html_url
stringlengths 51
51
| comments
stringlengths 67
24.7k
| title
stringlengths 6
280
| body
stringlengths 51
36.2k
| comment_length
int64 16
1.45k
| text
stringlengths 190
38.3k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2092 | @lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically? | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 31 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
@lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically? | [
-0.06998071074485779,
-0.5376312732696533,
-0.060694172978401184,
0.2699543237686157,
0.03118870034813881,
0.18576984107494354,
0.2047215849161148,
-0.07386000454425812,
0.5251615643501282,
0.19155439734458923,
-0.20835720002651215,
0.2142612636089325,
0.1429017186164856,
0.06532792001962662,
0.2521747946739197,
0.07142268866300583,
0.06970159709453583,
0.3191801607608795,
-0.48510852456092834,
-0.2686428129673004,
-0.11092011630535126,
-0.03626039996743202,
-0.13807708024978638,
0.12889233231544495,
-0.28745928406715393,
-0.246381476521492,
-0.012084364891052246,
-0.010751279070973396,
-0.25998884439468384,
-0.23137310147285461,
0.3290427625179291,
0.39068880677223206,
-0.09853766113519669,
0.2785454988479614,
-0.0001202593557536602,
0.052239030599594116,
-0.04834864288568497,
0.03758121281862259,
-0.46674564480781555,
-0.05957525968551636,
-0.043303925544023514,
0.02328299731016159,
0.5407467484474182,
0.1272079199552536,
0.07930666208267212,
-0.2443217784166336,
-0.2729656994342804,
-0.3654932379722595,
0.3282221853733063,
-0.018144141882658005,
0.15779323875904083,
0.36444902420043945,
-0.23007968068122864,
-0.13111703097820282,
0.2805154323577881,
0.1233363151550293,
-0.4778995215892792,
0.25376641750335693,
0.054030656814575195,
0.06320222467184067,
-0.16135331988334656,
-0.024350911378860474,
-0.14817669987678528,
-0.058238495141267776,
0.37441983819007874,
-0.11067494750022888,
-0.25963646173477173,
-0.48175469040870667,
0.16579771041870117,
0.4390701353549957,
0.7818116545677185,
-0.36949440836906433,
-0.05246424302458763,
-0.2837281823158264,
0.15518254041671753,
0.12235325574874878,
0.19640280306339264,
0.3899794816970825,
-0.08611924201250076,
0.11965160816907883,
-0.17515966296195984,
-0.5157374739646912,
-0.22678202390670776,
-0.2266262322664261,
0.30751949548721313,
-0.13187240064144135,
-0.1225428581237793,
0.05854056775569916,
0.4478563070297241,
0.11249116063117981,
0.3323296010494232,
-0.1756279319524765,
-0.41551876068115234,
0.31087732315063477,
-0.41341760754585266,
-0.2898397147655487,
-0.11530786752700806,
0.42774224281311035,
0.39854222536087036,
0.23061788082122803,
0.31788766384124756,
0.12359686195850372,
0.05377059057354927,
-0.04112262278795242,
-0.058604225516319275,
0.15823864936828613,
0.16172067821025848,
0.07680511474609375,
0.09835222363471985,
-0.03685739263892174,
0.16415289044380188,
-0.035723745822906494,
0.0670011043548584,
-0.3181813955307007,
-0.2331133633852005,
-0.04348680004477501,
-0.07040296494960785,
-0.18526765704154968,
-0.07371644675731659,
0.009637851268053055,
0.331265926361084,
0.04395036771893501,
0.3386295437812805,
0.27112412452697754,
0.33043408393859863,
-0.08821293711662292,
-0.15445932745933533,
0.3299464285373688,
-0.23816856741905212,
-0.23853799700737,
-0.14563260972499847,
-0.13152673840522766,
-0.21180063486099243,
0.4393598735332489,
0.2759013772010803,
-0.050180330872535706,
-0.184932142496109,
0.4688892662525177,
-0.04402488097548485,
0.13175970315933228,
-0.049225885421037674,
-0.30384254455566406,
0.24602758884429932,
0.49696701765060425,
-0.050932303071022034,
-0.0564781129360199,
0.15984229743480682,
0.20204411447048187,
-0.24831271171569824,
0.18331564962863922,
-0.3329201340675354,
-0.3900691866874695,
-0.0035930443555116653,
0.03222302719950676,
0.04122830927371979,
-0.04043925181031227,
-0.8469285368919373,
0.34604382514953613,
-0.3431284725666046,
0.3712804913520813,
0.4440464377403259,
0.11903715133666992,
-0.0005572065711021423,
-0.17311465740203857,
0.03331982344388962,
0.5034134387969971,
-0.1700739562511444,
-0.008530385792255402,
0.1776856780052185,
-0.3054763674736023,
-0.1037430390715599,
0.04398953169584274,
-0.36307665705680847,
0.06950202584266663,
-0.12723295390605927,
-0.08578525483608246,
0.379274845123291,
0.022876523435115814,
-0.052542559802532196,
0.08452694118022919,
0.17024792730808258,
-0.014817684888839722,
0.07116710394620895,
-0.17734238505363464,
-0.02182483673095703,
0.019965026527643204,
-0.4476979374885559,
0.1567913144826889,
0.21907493472099304,
-0.19821442663669586,
0.09746038913726807,
-0.24788689613342285,
0.09651801735162735,
-0.032461293041706085,
-0.13107198476791382,
0.23368149995803833,
0.2506479322910309,
-0.5099536776542664,
0.13552379608154297,
-0.14144712686538696,
-0.18442358076572418,
0.17860352993011475,
0.04706132411956787,
-0.013371780514717102,
-0.04111306369304657,
0.17425477504730225,
-0.7623875141143799,
0.31659209728240967,
-0.17888568341732025,
0.19005531072616577,
0.05947454646229744,
-0.18161430954933167,
0.12072470784187317,
0.2537689805030823,
-0.10285457223653793,
0.33562302589416504,
-0.03499060124158859,
-0.5231189727783203,
0.08467327058315277,
-0.30670925974845886,
-0.4564944803714752,
0.30380478501319885,
-0.35758456587791443,
0.36655884981155396,
-0.19588537514209747,
0.3150846064090729,
0.33371636271476746,
0.09932640194892883,
0.0923658013343811,
-0.019859541207551956,
0.106133833527565,
0.08539162576198578,
-0.17771050333976746,
0.2503396272659302,
0.1215638816356659,
0.3644588589668274,
0.20295435190200806,
0.3083251118659973,
0.05760066956281662,
-0.4684823453426361,
0.32342082262039185,
-0.3931078612804413,
0.037538714706897736,
0.1042507067322731,
0.03867832571268082,
0.3395085632801056,
-0.2522575855255127,
0.3089868128299713,
0.14658665657043457,
-0.06601506471633911,
-0.09557579457759857,
0.13609814643859863,
-0.10972374677658081,
-0.11935942620038986,
0.1630508303642273,
0.16921687126159668,
0.3703479766845703,
0.36446714401245117,
-0.08221405744552612,
0.00351141020655632,
0.06374963372945786,
-0.1441773921251297,
-0.02822929620742798,
0.14206011593341827,
-0.09895636141300201,
-0.22441253066062927,
0.31184735894203186,
-0.20241311192512512,
0.09649883210659027,
0.1933431625366211,
0.14417633414268494,
0.05305100232362747,
-0.2020271271467209,
-0.27631962299346924,
0.2760867178440094,
0.04686412960290909,
0.39842525124549866,
-0.025529835373163223,
-0.014695057645440102,
-0.030296411365270615,
-0.6330453157424927,
0.1473526507616043,
-0.23549774289131165,
-0.12068938463926315,
-0.30198997259140015,
0.07837114483118057,
-0.32286766171455383,
0.04183380305767059,
0.14468762278556824,
0.0071425847709178925,
-0.5675173401832581,
0.0022974498569965363,
0.23567964136600494,
-0.04046677052974701,
0.0701783150434494,
-0.06691843271255493,
-0.3137356638908386,
0.6049489378929138,
-0.2892215847969055,
-0.002812197431921959,
-0.5583304166793823,
0.059738799929618835,
0.08544197678565979,
0.030713487416505814,
0.0690540075302124,
0.20969198644161224,
0.34109190106391907,
0.034837640821933746,
0.07125872373580933,
-0.258775532245636,
0.13752025365829468,
0.3671417236328125,
-0.19721509516239166,
-0.08938174694776535,
0.020421745255589485,
0.1433384120464325,
-0.26643216609954834,
0.23886261880397797,
-0.10369516909122467,
-0.4493595361709595,
-0.03785676509141922,
0.16938261687755585,
-0.4139084815979004,
0.1722438633441925,
-0.032829977571964264,
0.05641184747219086,
-0.08669355511665344,
-0.18064969778060913,
0.2011316418647766,
-0.013064466416835785,
0.2047111690044403,
0.31518521904945374,
0.04983796179294586,
-0.03838285803794861,
-0.19235599040985107,
0.14860427379608154,
-0.16793929040431976,
-0.4587257504463196,
0.3519234359264374,
-0.1713164746761322,
-0.14779365062713623,
0.20705297589302063,
0.055161312222480774,
0.10599313676357269,
0.11612251400947571,
-0.609769344329834,
0.28935959935188293,
-0.2824663519859314,
0.028124071657657623,
-0.0854877308011055,
0.03463294357061386,
0.3091975152492523,
-0.057682622224092484,
0.016356833279132843,
-0.23209133744239807,
0.054094716906547546,
0.15641988813877106,
0.006589861586689949,
-0.08317524194717407,
0.029918942600488663,
0.010405639186501503,
-0.3959495723247528,
0.4441445767879486,
-0.038935884833335876,
0.16810357570648193,
0.39797869324684143,
0.10065984725952148,
0.4846954941749573,
-0.3332356810569763,
0.16860803961753845,
-0.34423819184303284,
-0.08424113690853119,
0.1325342059135437,
0.18423397839069366,
0.19620656967163086,
-0.053755491971969604,
-0.17223194241523743,
0.010592877864837646,
0.0044045522809028625,
-0.22187615931034088,
-0.061119936406612396,
-0.5079463124275208,
0.012744779698550701,
0.002601020038127899,
0.01149120181798935,
-0.18590965867042542,
-0.15083853900432587,
0.16933497786521912,
0.13342617452144623,
0.571755588054657,
-0.1340472251176834,
-0.46386080980300903,
-0.0279976986348629,
-0.313003271818161,
0.2442297339439392,
-0.2751081585884094,
-0.03590869903564453,
-0.11843165010213852,
-0.012829363346099854,
0.36019521951675415,
0.2560436725616455,
0.31040826439857483,
0.010717304423451424,
-0.23674967885017395,
-0.01916072890162468,
-0.026523929089307785,
-0.5356999039649963,
0.11735950410366058,
0.15103687345981598,
-0.0022137537598609924,
-0.4368468225002289,
0.16541478037834167,
-0.11915116757154465,
-0.5349701642990112,
-0.08019039034843445,
0.2858898639678955,
-0.1413327157497406,
-0.20203760266304016,
-0.24978585541248322,
0.0934705063700676,
0.06127091497182846,
-0.11750070750713348,
-0.04579675942659378,
-0.31651443243026733,
-0.4211544692516327,
-0.05548214167356491,
-0.07054610550403595,
-0.12862664461135864,
0.2033262401819229,
0.10388275980949402,
0.21414920687675476,
0.10606357455253601,
-0.09341631084680557,
0.5110623240470886,
0.16611066460609436,
0.3581535220146179,
0.9107130765914917,
-0.04464027285575867,
-0.2656346559524536,
0.16372692584991455,
0.034461647272109985,
0.27408847212791443,
0.3277544379234314,
-0.009177807718515396,
0.38273927569389343,
-0.09222285449504852,
0.010211467742919922,
-0.25422781705856323,
-0.3056768476963043,
-0.13650280237197876,
-0.1869211494922638,
-0.38031256198883057,
-0.3169400095939636,
0.5907814502716064,
0.0083090141415596,
-0.23174259066581726,
0.48543334007263184,
0.5626713037490845,
-0.28785592317581177,
0.38577404618263245,
0.23584672808647156,
0.983871340751648,
-0.1772717535495758,
0.08122271299362183,
0.13376113772392273,
-0.09768131375312805,
0.19054968655109406,
-0.2969294488430023,
-0.04193385690450668,
-0.24479427933692932,
-0.39988046884536743,
-0.21604442596435547,
-0.2909179925918579,
0.3766044080257416,
0.38909414410591125,
0.1521085798740387,
0.1069706380367279,
-0.3283904790878296,
0.17173457145690918,
-0.15240192413330078,
0.060943081974983215,
-0.3589855134487152,
-0.429020494222641,
-0.40781116485595703,
0.09211333841085434,
0.19406847655773163,
0.027937740087509155,
-0.02689775452017784,
0.19838407635688782,
0.11675754934549332,
-0.19256630539894104,
-0.07272942364215851,
-0.08729803562164307,
-0.37186354398727417,
-0.09952785819768906,
0.21649935841560364,
-0.3137661814689636,
0.33192792534828186,
0.05948764085769653,
0.22014671564102173,
-0.07384887337684631,
-0.08672451972961426,
0.15551353991031647,
0.13600170612335205,
0.1661953181028366,
-0.45365795493125916,
0.21467652916908264,
0.20083124935626984,
0.04102239012718201,
-0.23086673021316528,
0.18113195896148682,
0.042147669941186905,
-0.24221038818359375,
-0.0079098641872406,
-0.23152655363082886,
-0.06489749252796173,
-0.07986778020858765,
0.2335757166147232,
-0.03165765851736069,
0.33750054240226746,
-0.010126672685146332,
0.05790216475725174,
-0.024983514100313187,
0.19413702189922333,
-0.025154776871204376,
0.2263506054878235,
-0.34525060653686523,
-0.19225600361824036,
0.06841807812452316,
0.14501990377902985,
-0.21888375282287598,
0.21546658873558044,
0.21660280227661133,
-0.361148476600647,
-0.3672829270362854,
0.1145809143781662,
0.5732605457305908,
-0.8200094699859619,
-0.03539663180708885,
0.13046908378601074,
-0.020136967301368713,
-0.10837563872337341,
0.29396116733551025,
0.09206804633140564,
0.03581554442644119,
-0.10646127909421921,
0.056769683957099915,
-0.24588197469711304,
0.2419508695602417,
-0.12742140889167786,
0.33908072113990784,
0.05056345462799072,
-0.5303596258163452,
0.13953422009944916,
0.18600361049175262,
-0.20861177146434784,
-0.022277915850281715,
0.1690421998500824,
-0.19582797586917877,
-0.06354805082082748,
0.20942863821983337,
-0.004503399133682251,
-0.23513460159301758,
-0.045619308948516846,
-0.1633237898349762,
-0.20756001770496368,
-0.13320426642894745,
-0.08862244337797165,
0.2002154439687729,
-0.03262026607990265,
-0.07859566807746887,
-0.3392742872238159,
-0.41051921248435974,
-0.1677013337612152,
-0.2065606266260147,
0.27573227882385254,
0.10257844626903534,
0.03003298118710518,
-0.10218146443367004,
0.588626503944397,
-0.09737712144851685,
-0.4074099063873291,
0.06354742497205734,
0.2310921847820282,
0.40924668312072754,
0.12687218189239502,
-0.25628402829170227,
-0.018742894753813744,
-0.07997381687164307,
-0.010526139289140701,
0.48556995391845703,
0.271260529756546,
-0.1843237280845642,
-0.05848409980535507,
0.03461471572518349,
0.18398061394691467,
-0.2771967649459839,
0.052544377744197845,
0.1220446303486824,
0.1618269830942154,
-0.24475127458572388,
0.21441082656383514,
0.05848824232816696,
-0.0481414832174778,
-0.19423094391822815,
0.11130394786596298,
0.06927236914634705,
-0.08403970301151276,
0.3382109999656677,
0.3810347020626068,
0.14061963558197021,
-0.08435454964637756,
0.027552668005228043,
0.029682394117116928,
0.2904464602470398,
0.1392165571451187,
0.2014310210943222,
-0.020984157919883728,
0.0038975803181529045,
0.46653300523757935,
0.39742979407310486,
-0.04179339110851288,
-0.19788655638694763,
-0.05515407770872116,
0.3230113983154297,
0.21936199069023132,
0.10078379511833191,
0.1601339429616928,
-0.4338369369506836,
-0.24871081113815308,
-0.02121277153491974,
-0.10078974068164825,
-0.18394868075847626,
0.043989963829517365,
0.3703765273094177,
0.3934575617313385,
-0.5257889628410339,
-0.26903635263442993,
0.09103430807590485,
-0.008592654019594193,
-0.1007656678557396,
-0.023546528071165085,
-0.1616114377975464,
-0.025904223322868347,
0.04108075052499771,
-0.09124039113521576,
-0.11197122186422348,
0.31760236620903015,
0.041170720010995865,
0.2570936977863312,
0.05191460996866226,
0.4102001190185547,
0.3513191342353821,
0.04754576086997986,
0.25666192173957825,
0.03020455129444599,
-0.24605153501033783,
0.1910850703716278,
0.14039283990859985,
0.16351187229156494,
-0.1430162936449051,
-0.03535962849855423,
-0.17100843787193298,
-0.12837302684783936,
0.30384042859077454,
-0.032583050429821014,
0.11782011389732361,
0.26439011096954346,
0.0730951726436615,
0.01283186860382557,
0.16346463561058044,
0.03995678573846817,
0.008836720138788223,
-0.08459684252738953,
-0.17342281341552734,
0.49443382024765015,
-0.21570953726768494,
0.24710731208324432,
0.15379592776298523,
-0.12950272858142853,
0.10285770893096924,
0.08663080632686615,
0.029653489589691162,
0.14880403876304626,
0.5596120953559875,
-0.3162324130535126,
-0.15433932840824127,
-0.2396562099456787,
0.013285961002111435,
0.02082737535238266,
0.69196617603302,
0.1588600128889084,
0.4518476128578186,
-0.10230152308940887,
-0.2958512306213379,
-0.1313508003950119,
-0.13652712106704712,
0.026948735117912292,
0.30406463146209717,
0.324736624956131,
-0.2221427708864212,
0.36937111616134644,
0.28571948409080505,
0.31693845987319946,
0.03349464386701584,
0.20229271054267883,
0.026313703507184982,
0.03173603117465973,
0.08654144406318665,
-0.2278994619846344,
0.31274184584617615,
-0.4761160910129547,
-0.230373352766037,
0.01936708763241768,
0.17709317803382874,
-0.15759794414043427,
-0.12399359047412872,
0.27669090032577515,
0.21056556701660156,
0.05440717190504074,
0.35643255710601807,
0.04603142291307449,
0.3243827223777771,
0.002236008644104004,
-0.018723677843809128,
0.014505765400826931,
-0.5402617454528809,
-0.002169724553823471,
0.08119121193885803,
-0.10594955086708069,
-0.2795068025588989,
-0.030994359403848648,
-0.047840267419815063,
0.017875097692012787,
-0.1392124891281128,
0.17709621787071228,
0.4349820017814636,
-0.34960153698921204,
0.06981932371854782,
-0.10641368478536606,
-0.1567603349685669,
0.25923675298690796,
0.0271981842815876,
0.1648724377155304,
0.022875972092151642,
0.158003032207489,
0.11005377769470215,
0.3688216805458069,
0.03017200157046318,
-0.04095734283328056,
0.08169517666101456,
0.3904677629470825,
0.36055856943130493,
-0.17574924230575562,
-0.578234076499939,
-0.02417447417974472,
0.17883455753326416,
-0.30583348870277405,
0.008183799684047699,
0.3805200457572937,
-0.042457930743694305,
0.132242351770401,
-0.13772335648536682,
0.5173617601394653,
0.019762955605983734,
0.11783948540687561,
-0.40716174244880676,
-0.3186652362346649
] |
https://github.com/huggingface/datasets/issues/2092 | Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files. | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 36 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files. | [
-0.16667644679546356,
-0.099722720682621,
-0.0602356381714344,
0.2515960931777954,
-0.04688315838575363,
0.11431428790092468,
0.27080777287483215,
0.004835417494177818,
0.4697789251804352,
0.16326774656772614,
-0.037074875086545944,
0.19230926036834717,
0.18890449404716492,
0.01693016290664673,
0.2863856852054596,
0.1164424791932106,
-0.0252680703997612,
0.4686412811279297,
-0.33285918831825256,
-0.12431098520755768,
-0.1999845653772354,
-0.2028210610151291,
-0.07527800649404526,
0.0748855322599411,
-0.07131510227918625,
-0.2044893354177475,
0.17876027524471283,
-0.1432492882013321,
-0.3065360188484192,
-0.352885365486145,
0.1729181855916977,
0.38003242015838623,
-0.164208322763443,
0.12443525344133377,
-0.000126144484966062,
0.09429012984037399,
0.032920558005571365,
0.09487820416688919,
-0.5260358452796936,
0.006026819348335266,
-0.17463821172714233,
0.0031731203198432922,
0.4379303455352783,
-0.0186210498213768,
0.28191184997558594,
-0.4082459509372711,
-0.18630900979042053,
-0.34508630633354187,
0.3139989674091339,
0.005322355777025223,
0.09058083593845367,
-0.07163677364587784,
-0.06049047410488129,
0.20943865180015564,
0.5697901248931885,
0.27334117889404297,
-0.4536011815071106,
0.28385815024375916,
-0.16036517918109894,
-0.04546032473444939,
-0.23303690552711487,
-0.019830379635095596,
-0.16491961479187012,
-0.01761522889137268,
0.3427164554595947,
-0.06580531597137451,
-0.21826106309890747,
-0.46489596366882324,
0.32531675696372986,
0.447184681892395,
0.8690118193626404,
-0.41029155254364014,
-0.07292252779006958,
-0.18445265293121338,
0.2027648389339447,
0.09730221331119537,
0.28563767671585083,
0.3990592062473297,
-0.10664808750152588,
0.07589420676231384,
-0.2127395123243332,
-0.6784489154815674,
-0.25742942094802856,
-0.07118253409862518,
0.26036396622657776,
-0.11534210294485092,
0.01833399385213852,
0.050158943980932236,
0.3017890751361847,
0.008116081357002258,
0.36866524815559387,
-0.22384105622768402,
-0.36487042903900146,
0.27233394980430603,
-0.1842779517173767,
-0.2159966230392456,
-0.37398630380630493,
0.17448808252811432,
0.44096314907073975,
0.10098673403263092,
0.42957866191864014,
0.050321679562330246,
0.21707576513290405,
-0.07175087183713913,
-0.12527650594711304,
0.11283909529447556,
0.1504213511943817,
0.053388241678476334,
0.2999633252620697,
0.007772047072649002,
0.1263808310031891,
-0.00475188996642828,
0.15714195370674133,
-0.2876320779323578,
-0.07525774091482162,
-0.13768991827964783,
-0.06755901873111725,
-0.15530088543891907,
0.042805083096027374,
0.03080618754029274,
-0.09682932496070862,
-0.088814377784729,
0.1404576152563095,
0.17644983530044556,
0.23133981227874756,
-0.07162059843540192,
-0.09286289662122726,
0.39064136147499084,
-0.2245057076215744,
-0.16485214233398438,
0.06560362875461578,
-0.1498599797487259,
-0.13486680388450623,
0.47977888584136963,
0.4003247618675232,
0.053917814046144485,
-0.1964547038078308,
0.4721812307834625,
-0.23747161030769348,
0.016677886247634888,
0.3698479235172272,
-0.344774454832077,
0.17944781482219696,
0.5079672336578369,
0.16433459520339966,
-0.13455206155776978,
-0.028773654252290726,
0.01668788492679596,
-0.14657512307167053,
0.37999001145362854,
-0.3486207127571106,
-0.2767961025238037,
-0.09162392467260361,
0.019289471209049225,
0.15607936680316925,
0.10551805794239044,
-0.8544903993606567,
0.23417513072490692,
-0.06272870302200317,
0.19221852719783783,
0.34230145812034607,
0.13842615485191345,
-0.1474810689687729,
-0.19244536757469177,
0.1250506341457367,
0.46845027804374695,
-0.3885137736797333,
0.08698789030313492,
0.031810302287340164,
-0.15921831130981445,
-0.12263055890798569,
0.08673477917909622,
-0.35848215222358704,
0.256198525428772,
-0.1413198709487915,
-0.08861251175403595,
0.4231478273868561,
0.10553012043237686,
-0.19324058294296265,
0.24953824281692505,
0.17169299721717834,
-0.04793154448270798,
0.1314125657081604,
-0.02838348224759102,
0.0007525645196437836,
0.06928427517414093,
-0.388421893119812,
0.13323083519935608,
0.31277236342430115,
-0.14875449240207672,
0.1245483011007309,
-0.26450565457344055,
0.11710888147354126,
-0.1291521191596985,
-0.14173728227615356,
0.3576326370239258,
0.3157826066017151,
-0.22282427549362183,
0.11515013128519058,
-0.18697768449783325,
-0.05662042647600174,
0.24610000848770142,
0.09886997938156128,
0.06283603608608246,
-0.010571345686912537,
0.26776430010795593,
-0.7945265769958496,
0.178848534822464,
-0.33600080013275146,
0.05766450986266136,
-0.0180710107088089,
-0.2592441439628601,
0.06954112648963928,
0.17328819632530212,
-0.08639004826545715,
0.2867397367954254,
-0.03776652365922928,
-0.5865473747253418,
0.022451333701610565,
-0.033713217824697495,
-0.1333198994398117,
0.059219397604465485,
-0.4370776414871216,
0.24248580634593964,
-0.23345518112182617,
0.3700751066207886,
0.20475953817367554,
0.11871112883090973,
0.07104001939296722,
-0.0198320671916008,
0.01751239039003849,
0.2195650339126587,
-0.15292035043239594,
0.1186261922121048,
0.1463336944580078,
0.20476025342941284,
0.1609807312488556,
0.38479310274124146,
0.04758578538894653,
-0.5845121145248413,
0.3888184130191803,
-0.3807123899459839,
0.049306951463222504,
-0.06865522265434265,
0.009146936237812042,
0.2706061005592346,
-0.03963150084018707,
0.35395845770835876,
0.1418546438217163,
-0.06842977553606033,
-0.04058059677481651,
0.15397903323173523,
-0.01982465386390686,
-0.30337288975715637,
0.05306889861822128,
0.29900896549224854,
0.42243602871894836,
0.3638787567615509,
-0.006605356931686401,
-0.12190945446491241,
0.1077946126461029,
-0.036034636199474335,
0.20459523797035217,
0.3079281151294708,
-0.0441272109746933,
-0.3254677355289459,
0.07535025477409363,
-0.1600911021232605,
0.1006898358464241,
0.12845709919929504,
0.12051616609096527,
0.03442509472370148,
-0.1513560265302658,
-0.2663256824016571,
0.3290823698043823,
-0.024767518043518066,
0.45244231820106506,
0.19725514948368073,
0.052516598254442215,
-0.04291665554046631,
-0.5053234696388245,
0.11699637770652771,
-0.20846141874790192,
-0.06752198189496994,
-0.32718753814697266,
0.006736226379871368,
-0.23215073347091675,
-0.04294238239526749,
0.06923504173755646,
0.1974293291568756,
-0.5449185371398926,
-0.06463083624839783,
0.22378504276275635,
-0.06415987759828568,
0.12642773985862732,
-0.13845643401145935,
-0.21077199280261993,
0.3652668595314026,
-0.09928254783153534,
-0.17640043795108795,
-0.603121280670166,
-0.024792218580842018,
0.11107103526592255,
-0.014648515731096268,
0.08773291856050491,
0.11834243685007095,
0.21177677810192108,
0.06547468900680542,
-0.07971689105033875,
-0.4650190770626068,
-0.10346915572881699,
0.2821798622608185,
-0.05975909158587456,
-0.12618932127952576,
0.14217959344387054,
0.2849060893058777,
-0.19573861360549927,
0.1819579303264618,
-0.1306825876235962,
-0.23146723210811615,
-0.1515336036682129,
0.23937158286571503,
-0.37112659215927124,
0.4133029878139496,
-0.04176392778754234,
-0.02850022166967392,
0.1013331413269043,
-0.05248001217842102,
0.16473615169525146,
0.14077910780906677,
0.21113255620002747,
0.1314133256673813,
0.1692739576101303,
-0.032829612493515015,
0.07236996293067932,
0.0704224556684494,
-0.12465444207191467,
-0.20965757966041565,
0.46505007147789,
-0.28782597184181213,
-0.1776954084634781,
0.2696317434310913,
0.024889126420021057,
0.048199985176324844,
0.3943348824977875,
-0.7647733092308044,
0.4628789722919464,
-0.29949915409088135,
0.038551315665245056,
-0.30097049474716187,
-0.06571348011493683,
0.1779264211654663,
0.19023723900318146,
0.07070816308259964,
-0.2031705677509308,
0.1442662924528122,
0.30332276225090027,
-0.05196820944547653,
-0.12785708904266357,
0.2401958703994751,
0.37114834785461426,
-0.4483267366886139,
0.6514479517936707,
-0.2132665514945984,
0.20488308370113373,
0.37134116888046265,
0.06537503749132156,
0.48044419288635254,
-0.3940524160861969,
0.36826443672180176,
-0.353389173746109,
0.044067103415727615,
0.2167501449584961,
0.21281024813652039,
0.0239328034222126,
-0.281734824180603,
-0.1636437177658081,
0.06639218330383301,
-0.04863841459155083,
-0.1369580328464508,
-0.06715566664934158,
-0.5520757436752319,
0.11954636871814728,
0.021016068756580353,
-0.045057687908411026,
-0.002931799739599228,
-0.29839181900024414,
0.08291822671890259,
-0.06754203140735626,
0.4848749041557312,
-0.0068184994161129,
-0.2792007029056549,
-0.12406294047832489,
-0.3302902579307556,
0.08922643214464188,
-0.11961174011230469,
0.11811964213848114,
-0.13290175795555115,
0.22433651983737946,
0.33569031953811646,
0.1744418889284134,
0.16544102132320404,
-0.20950663089752197,
-0.02670944295823574,
-0.07909514009952545,
0.038094282150268555,
-0.37114664912223816,
0.20801560580730438,
0.07160918414592743,
-0.06578418612480164,
-0.49439752101898193,
0.17160935699939728,
-0.15472596883773804,
-0.3168124556541443,
0.011583918705582619,
0.451314777135849,
-0.20967960357666016,
-0.1479445993900299,
-0.33071082830429077,
-0.025451242923736572,
-0.055907733738422394,
-0.11776401847600937,
-0.042342301458120346,
-0.3654845058917999,
-0.41156741976737976,
-0.16794531047344208,
-0.2126999795436859,
-0.12154670804738998,
0.08065660297870636,
0.05653234198689461,
0.2683749496936798,
0.046349409967660904,
-0.10717754811048508,
0.3505340814590454,
-0.032514989376068115,
0.5019233226776123,
0.6358851194381714,
0.05618617683649063,
-0.17298978567123413,
0.20446039736270905,
-0.15379032492637634,
0.15890824794769287,
0.11654169112443924,
-0.1232471913099289,
0.3661242127418518,
-0.013746201060712337,
-0.08906827121973038,
-0.16292209923267365,
-0.3557831645011902,
-0.07658645510673523,
-0.30864399671554565,
-0.33228591084480286,
-0.4312344193458557,
0.5538911819458008,
0.08693467825651169,
-0.12688247859477997,
0.5455659031867981,
0.43966948986053467,
-0.42226317524909973,
0.3849901556968689,
0.42147985100746155,
0.877451479434967,
-0.1859510987997055,
0.13739995658397675,
0.0420108363032341,
-0.16026920080184937,
0.05168430507183075,
-0.34752917289733887,
-0.05530901998281479,
-0.276212602853775,
-0.24809440970420837,
-0.2208874225616455,
-0.2604960799217224,
0.32074737548828125,
0.5598616003990173,
0.07583127170801163,
-0.016809985041618347,
-0.384716272354126,
0.04344723001122475,
-0.08949516713619232,
0.27761977910995483,
-0.2985425889492035,
-0.3013456463813782,
-0.32948434352874756,
-0.0017132088541984558,
0.08052057027816772,
-0.18589261174201965,
-0.012010205537080765,
0.193457692861557,
0.14456909894943237,
-0.20845432579517365,
0.03094981610774994,
-0.0524723157286644,
-0.3397982120513916,
0.17621053755283356,
-0.20594844222068787,
-0.3090372383594513,
0.3525288701057434,
0.37892791628837585,
-0.03240981698036194,
0.12474432587623596,
-0.15079063177108765,
0.03421635180711746,
0.16416595876216888,
0.03645738959312439,
-0.41831955313682556,
0.2958885133266449,
-0.00742112472653389,
-0.03258930519223213,
-0.2283526360988617,
0.2319408357143402,
-0.06710246950387955,
-0.24585720896720886,
0.026758253574371338,
-0.2021275907754898,
-0.0008237091824412346,
-0.03052334673702717,
0.2954302728176117,
-0.1471581757068634,
0.11764136701822281,
0.035088397562503815,
-0.004023060202598572,
-0.04347139596939087,
0.341401070356369,
-0.14299529790878296,
0.12629249691963196,
-0.4455614387989044,
-0.168926402926445,
0.21171016991138458,
0.28736403584480286,
0.05824849754571915,
0.45128515362739563,
0.11489754915237427,
-0.37264883518218994,
-0.34625035524368286,
0.2389020472764969,
0.2295859456062317,
-0.6402406692504883,
-0.11738930642604828,
0.1829470843076706,
0.08421236276626587,
-0.14427927136421204,
0.08590219914913177,
-0.14110039174556732,
0.12003625929355621,
0.03190714120864868,
-0.05932210013270378,
-0.1330087035894394,
0.243414968252182,
-0.11369270831346512,
0.2819099426269531,
0.11488217860460281,
-0.6818986535072327,
0.22751736640930176,
0.23232221603393555,
-0.11188904941082001,
-0.08810146152973175,
0.23630806803703308,
-0.20889680087566376,
-0.17031995952129364,
0.3237912952899933,
-0.037816792726516724,
-0.12076081335544586,
-0.07702414691448212,
-0.16137361526489258,
-0.08197092264890671,
-0.06799083948135376,
-0.0786919966340065,
0.20692899823188782,
-0.06291979551315308,
-0.017048915848135948,
-0.3042810559272766,
-0.4994450807571411,
-0.23139148950576782,
-0.17665132880210876,
0.31653329730033875,
0.003768131136894226,
0.046587686985731125,
-0.0950724259018898,
0.5397335886955261,
-0.03744637221097946,
-0.5059787631034851,
0.0949014350771904,
0.06813196837902069,
0.31204068660736084,
0.03451567888259888,
-0.1459198296070099,
0.17989830672740936,
-0.07848628610372543,
-0.1369374394416809,
0.2776890993118286,
0.1636313796043396,
-0.17431217432022095,
-0.03909902647137642,
-0.088648721575737,
0.16836287081241608,
-0.2907940745353699,
-0.04981262981891632,
0.3259468674659729,
0.05786675214767456,
-0.40796294808387756,
0.2748278081417084,
-0.025851013138890266,
-0.04845878481864929,
-0.16978856921195984,
0.19934308528900146,
-0.12152518332004547,
-0.11918729543685913,
0.2989695072174072,
0.2730693221092224,
0.05330362915992737,
-0.2868101894855499,
0.05345775932073593,
-0.22103077173233032,
0.015947338193655014,
0.009328845888376236,
0.32860368490219116,
0.012122146785259247,
-0.020832974463701248,
0.1727485954761505,
0.3737921416759491,
-0.006851088255643845,
-0.16174530982971191,
0.16351717710494995,
0.2933344542980194,
0.252671480178833,
0.058813080191612244,
0.05663832277059555,
-0.2255408763885498,
-0.2934304177761078,
0.21542707085609436,
-0.3224659562110901,
-0.14082355797290802,
0.13553638756275177,
0.207071453332901,
0.6086522340774536,
-0.28561949729919434,
-0.23229224979877472,
-0.021581903100013733,
0.036851588636636734,
-0.01529712975025177,
-0.15858599543571472,
-0.1238398402929306,
0.03293567895889282,
0.05005720257759094,
-0.012346608564257622,
-0.0004821009933948517,
0.2223770022392273,
0.1357264518737793,
0.17438450455665588,
-0.004715908318758011,
0.79972904920578,
0.25980210304260254,
0.05425133556127548,
0.12621115148067474,
-0.0841548889875412,
-0.2683348059654236,
0.24776509404182434,
0.041463106870651245,
0.25548410415649414,
-0.2757989466190338,
0.11203794181346893,
-0.16592128574848175,
-0.25640714168548584,
0.3634272813796997,
-0.05574744939804077,
0.11212332546710968,
0.2614704966545105,
0.2424994558095932,
-0.0933838039636612,
0.30082303285598755,
-0.037958260625600815,
0.035584706813097,
-0.2434578239917755,
0.16826891899108887,
0.49422401189804077,
0.006617754697799683,
-0.08793938159942627,
0.2070050835609436,
-0.21294400095939636,
0.28650856018066406,
-0.017345663160085678,
0.025147102773189545,
0.1361808180809021,
0.5175830125808716,
-0.1937052607536316,
-0.2439177930355072,
-0.27462509274482727,
-0.019890183582901955,
-0.09084340929985046,
0.7207257747650146,
0.09938804805278778,
0.3605441749095917,
-0.04199878126382828,
-0.28704580664634705,
-0.17296013236045837,
-0.17099200189113617,
-0.205361470580101,
0.24526789784431458,
0.3425687253475189,
0.004652760922908783,
0.18946540355682373,
0.36506766080856323,
0.257570743560791,
-0.10267621278762817,
0.12707015872001648,
0.15550023317337036,
-0.02297203242778778,
-0.014991266652941704,
-0.05771486088633537,
0.343426376581192,
-0.6017377376556396,
-0.3483433127403259,
0.038135726004838943,
0.18957707285881042,
-0.12639419734477997,
-0.12013618648052216,
0.19930899143218994,
0.24552960693836212,
0.3667795956134796,
0.47010311484336853,
0.04517704248428345,
0.2308688759803772,
-0.06627003103494644,
-0.02609281614422798,
0.1762666553258896,
-0.4044029116630554,
-0.009700685739517212,
0.26984328031539917,
0.021732456982135773,
-0.24805092811584473,
-0.07703842222690582,
0.13353915512561798,
0.03518291190266609,
0.04541368782520294,
0.060702234506607056,
0.4718449115753174,
-0.30786168575286865,
0.07112126797437668,
0.09820772707462311,
-0.047893501818180084,
0.05590517073869705,
-0.10702741146087646,
0.16134314239025116,
0.06454694271087646,
0.0472760945558548,
-0.05936713144183159,
0.19970184564590454,
-0.05510605126619339,
-0.016073208302259445,
0.2807057201862335,
0.42764103412628174,
0.26631635427474976,
-0.1641877442598343,
-0.42570626735687256,
0.08378522098064423,
0.3360574543476105,
-0.30016079545021057,
-0.07545612007379532,
0.25714758038520813,
-0.14759561419487,
0.26425015926361084,
-0.18790188431739807,
0.5215159058570862,
-0.07734568417072296,
0.09868903458118439,
-0.5550123453140259,
-0.37780845165252686
] |
https://github.com/huggingface/datasets/issues/2092 | @lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ? | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 23 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
@lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ? | [
-0.11009694635868073,
-0.4545696973800659,
-0.12453398108482361,
0.32752248644828796,
0.138505220413208,
0.06665016710758209,
0.10800839215517044,
0.005187086760997772,
0.2907286584377289,
0.2163161039352417,
-0.07625748962163925,
0.3311559855937958,
0.07582558691501617,
0.2674563229084015,
0.31140968203544617,
0.07535265386104584,
-0.0126064233481884,
0.33741098642349243,
-0.47077441215515137,
-0.07295814156532288,
-0.022650882601737976,
-0.13127067685127258,
-0.028079628944396973,
0.14297246932983398,
-0.36972928047180176,
-0.12027707695960999,
0.16590192914009094,
0.1318926215171814,
-0.4114730954170227,
-0.30045831203460693,
0.27992597222328186,
0.3918721675872803,
-0.21103306114673615,
0.2840105891227722,
-0.00011852829629788175,
0.03479137271642685,
0.014841195195913315,
0.04694289714097977,
-0.4234541058540344,
-0.06300034373998642,
-0.10527896136045456,
-0.09001301229000092,
0.5526963472366333,
0.13635772466659546,
0.1049981340765953,
-0.4011053740978241,
-0.22450058162212372,
-0.14695578813552856,
0.4965696632862091,
-0.1221487894654274,
0.170803502202034,
0.4002009332180023,
-0.03679528832435608,
0.0012567564845085144,
0.21029670536518097,
0.3903616964817047,
-0.49055251479148865,
0.2777501046657562,
0.10352708399295807,
0.042191341519355774,
-0.2085118591785431,
-0.04912526533007622,
-0.0048566535115242004,
-0.1373191773891449,
0.37560760974884033,
-0.036060623824596405,
-0.19853991270065308,
-0.463998407125473,
0.07086475193500519,
0.3484269678592682,
0.5639100670814514,
-0.3297151029109955,
-0.14463546872138977,
-0.3594790995121002,
0.2402590811252594,
-0.021607421338558197,
0.329365611076355,
0.22553737461566925,
-0.15787670016288757,
0.0673471987247467,
-0.2663390040397644,
-0.5470796227455139,
-0.33338332176208496,
-0.21857580542564392,
0.5047804713249207,
-0.0769149512052536,
-0.10865415632724762,
-0.012990627437829971,
0.2491815686225891,
-0.07774167507886887,
0.29175180196762085,
-0.08054564148187637,
-0.2887807786464691,
0.21612726151943207,
-0.1914636641740799,
-0.3093222975730896,
-0.28123709559440613,
0.47359946370124817,
0.39618849754333496,
0.4002005457878113,
0.5239636301994324,
0.09594054520130157,
0.07201074063777924,
-0.11747594177722931,
-0.031717319041490555,
0.15873025357723236,
0.19355390965938568,
-0.11553268879652023,
0.2119949758052826,
0.1582827866077423,
0.1720874011516571,
0.009821118786931038,
0.06018109247088432,
-0.32965758442878723,
-0.19554710388183594,
-0.02246825024485588,
0.15448318421840668,
-0.15538467466831207,
0.09394456446170807,
-0.1374528557062149,
0.26133716106414795,
0.06386931240558624,
0.35609516501426697,
0.05697453022003174,
0.18069234490394592,
-0.029546113684773445,
-0.17910489439964294,
0.379006028175354,
-0.24808312952518463,
-0.27929210662841797,
-0.104742631316185,
-0.16943851113319397,
-0.18060770630836487,
0.458604097366333,
0.40906190872192383,
-0.11228698492050171,
-0.08871129155158997,
0.44870275259017944,
0.05722523853182793,
-0.01534288376569748,
0.048490315675735474,
-0.16983237862586975,
0.14901837706565857,
0.4378683567047119,
-0.02909720316529274,
-0.07057908922433853,
-0.09944160282611847,
0.1250169575214386,
-0.14652539789676666,
0.26501768827438354,
-0.36466774344444275,
-0.4418754577636719,
0.04447532445192337,
0.054317060858011246,
-0.04444599151611328,
0.01825854368507862,
-0.793211817741394,
0.12924617528915405,
-0.29538053274154663,
0.34962254762649536,
0.2732413113117218,
0.18343332409858704,
-0.04244661331176758,
-0.20146586000919342,
0.18595539033412933,
0.3522908389568329,
-0.18421150743961334,
0.09594406932592392,
0.1387861967086792,
-0.3303408920764923,
-0.17801833152770996,
0.11798901855945587,
-0.366770476102829,
0.24279147386550903,
-0.15447506308555603,
0.04164433479309082,
0.42121878266334534,
-0.09073509275913239,
-0.00772685743868351,
-0.07636696100234985,
-0.03432300686836243,
0.10334981232881546,
0.1471959948539734,
-0.10763564705848694,
-0.038074791431427,
-0.12160064280033112,
-0.2622416317462921,
0.1754319816827774,
0.15813219547271729,
-0.18942677974700928,
0.08905287086963654,
-0.22003722190856934,
-0.047020118683576584,
0.01552417129278183,
-0.38545897603034973,
0.13618844747543335,
0.06948871165513992,
-0.37775176763534546,
0.06121500954031944,
-0.1447187066078186,
-0.10637397319078445,
0.07156608253717422,
-0.005489676259458065,
0.09059002250432968,
-0.027594266459345818,
0.24646461009979248,
-0.8245878219604492,
0.26139774918556213,
-0.12073126435279846,
-0.014408189803361893,
-0.12860773503780365,
-0.19913461804389954,
0.0065704211592674255,
0.19677136838436127,
-0.16133572161197662,
0.419843852519989,
0.04008546471595764,
-0.6630691885948181,
0.12370224297046661,
-0.20789232850074768,
-0.4388539791107178,
0.12590032815933228,
-0.3588654398918152,
0.4169157147407532,
-0.5347790718078613,
0.1409379243850708,
0.2798049747943878,
0.00239451602101326,
0.10170833021402359,
0.0857686847448349,
-0.005961824208498001,
0.12026656419038773,
-0.08339443802833557,
0.20826855301856995,
0.20246027410030365,
0.45758992433547974,
0.30439722537994385,
0.41586482524871826,
0.15022709965705872,
-0.4250657856464386,
0.22534306347370148,
-0.4385344386100769,
-0.04006265848875046,
-0.006869189441204071,
-0.00012473948299884796,
0.26026439666748047,
-0.47748780250549316,
0.24871215224266052,
0.07176382839679718,
-0.0799846425652504,
-0.0640241727232933,
0.16097067296504974,
-0.2656230330467224,
-0.214577317237854,
0.15596473217010498,
0.16313043236732483,
0.3208196461200714,
0.27112096548080444,
0.07313959300518036,
-0.03462335094809532,
0.018313538283109665,
-0.10535436868667603,
-0.056252285838127136,
0.13569127023220062,
0.0144983921200037,
-0.09409701079130173,
0.19219854474067688,
-0.1028645783662796,
0.1302124261856079,
0.1553017944097519,
0.19307120144367218,
0.07490204274654388,
-0.17825615406036377,
-0.34132280945777893,
0.24328045547008514,
0.15923815965652466,
0.3405294418334961,
-0.017316874116659164,
-0.07344634085893631,
-0.07063121348619461,
-0.5441478490829468,
0.17751699686050415,
-0.33890238404273987,
-0.17543338239192963,
-0.34000205993652344,
-0.08054612576961517,
-0.28966739773750305,
0.025549858808517456,
0.0797000601887703,
-0.22927550971508026,
-0.5078180432319641,
0.049662232398986816,
0.3225148916244507,
-0.019066927954554558,
-0.094764344394207,
-0.07931322604417801,
-0.058398306369781494,
0.5088121891021729,
-0.22794681787490845,
0.018519802019000053,
-0.5136082172393799,
0.10253573954105377,
0.18985995650291443,
0.041152507066726685,
0.13106894493103027,
0.11519700288772583,
0.3711617588996887,
-0.050433360040187836,
0.14801064133644104,
-0.27432334423065186,
0.0571412667632103,
0.21856656670570374,
-0.17487093806266785,
-0.0808984711766243,
0.06508155912160873,
0.2000824511051178,
-0.07124397158622742,
0.16529303789138794,
0.011965010315179825,
-0.2896599769592285,
-0.157896488904953,
0.0980067253112793,
-0.21792954206466675,
0.26116806268692017,
-0.14661845564842224,
0.07851128280162811,
0.08478165417909622,
-0.23726396262645721,
0.3560939431190491,
0.0727698802947998,
0.16594024002552032,
0.18217496573925018,
0.18537412583827972,
0.022503193467855453,
-0.23591852188110352,
0.13326618075370789,
-0.07921664416790009,
-0.4334353506565094,
0.44755712151527405,
-0.23340758681297302,
-0.26123130321502686,
0.3169552683830261,
0.12969350814819336,
0.23791639506816864,
0.1163238137960434,
-0.5254435539245605,
0.1258658617734909,
-0.17058750987052917,
0.031962379813194275,
-0.16008830070495605,
0.05619172751903534,
0.31847700476646423,
0.08640226721763611,
-0.0027335025370121002,
-0.14391598105430603,
0.10065705329179764,
0.30760863423347473,
-0.04589465260505676,
-0.04212513566017151,
0.04266287758946419,
0.014901133254170418,
-0.4100801348686218,
0.43635764718055725,
-0.06406307220458984,
0.22185927629470825,
0.35286852717399597,
0.1127992495894432,
0.39645814895629883,
-0.2960089147090912,
0.280789315700531,
-0.5286573171615601,
-0.0807233527302742,
0.2156338095664978,
0.1306065320968628,
0.42946961522102356,
0.13014516234397888,
-0.25061315298080444,
0.0370229110121727,
0.01228092610836029,
-0.22761943936347961,
0.08424917608499527,
-0.4871129095554352,
-0.10967661440372467,
-0.03299212455749512,
-0.07474197447299957,
-0.06108814477920532,
-0.20151977241039276,
0.14682409167289734,
-0.08547279238700867,
0.4783966541290283,
-0.15602809190750122,
-0.4461253881454468,
-0.12905752658843994,
-0.3959273397922516,
0.11367055028676987,
-0.12003108859062195,
-0.11012263596057892,
-0.013036608695983887,
-0.051196202635765076,
0.3627043664455414,
0.2612913250923157,
0.3381398022174835,
-0.017580760642886162,
-0.22695378959178925,
-0.18113863468170166,
-0.1522102653980255,
-0.5588300824165344,
0.27309685945510864,
-0.02500254660844803,
0.0530473031103611,
-0.4321385324001312,
0.23220562934875488,
-0.1590503603219986,
-0.4867696762084961,
-0.03473220020532608,
0.3422044813632965,
-0.1691904366016388,
-0.1565612256526947,
-0.2592449188232422,
0.007549002766609192,
0.009630471467971802,
-0.19625800848007202,
0.02380973845720291,
-0.33799028396606445,
-0.3770414888858795,
-0.23759934306144714,
-0.136736199259758,
-0.07026354223489761,
0.06932773441076279,
0.13054844737052917,
0.30565470457077026,
-0.04910238832235336,
-0.05010725185275078,
0.6013354063034058,
0.13187181949615479,
0.3350692689418793,
0.7355268597602844,
0.04717783257365227,
-0.33114388585090637,
-0.0033872704952955246,
-0.048433057963848114,
0.3059706687927246,
0.36209630966186523,
-0.014642558991909027,
0.27495434880256653,
-0.11066402494907379,
-0.034235481172800064,
-0.4976652264595032,
-0.29902589321136475,
0.07015922665596008,
-0.26178818941116333,
-0.2227216511964798,
-0.21904560923576355,
0.5680626630783081,
0.01899643987417221,
-0.15206068754196167,
0.5435663461685181,
0.7026253938674927,
-0.28650838136672974,
0.36208376288414,
0.25075504183769226,
1.0189743041992188,
-0.1258428990840912,
0.1765023022890091,
0.16446058452129364,
-0.15961378812789917,
0.2215941995382309,
-0.15654388070106506,
-0.07280989736318588,
-0.11081875115633011,
-0.18128374218940735,
-0.11277225613594055,
-0.20244768261909485,
0.23493951559066772,
0.3957485258579254,
0.07975760102272034,
0.0002262406051158905,
-0.3505665957927704,
0.02467767894268036,
-0.2778591513633728,
0.14374035596847534,
-0.30004173517227173,
-0.5094457268714905,
-0.5215592980384827,
0.09045439958572388,
0.1492137312889099,
-0.06680332124233246,
-0.06095700338482857,
0.17196914553642273,
0.07232242822647095,
-0.15978682041168213,
0.08206292986869812,
-0.15385764837265015,
-0.23088769614696503,
-0.05092446133494377,
0.1718113273382187,
-0.2952212691307068,
0.17727895081043243,
0.30743667483329773,
0.12403549998998642,
-0.06675109267234802,
-0.1936374008655548,
0.09378495812416077,
0.019896209239959717,
0.04197240620851517,
-0.4512568414211273,
0.18632352352142334,
0.04365156590938568,
-0.11459813266992569,
-0.19313448667526245,
-0.014962606132030487,
0.06897512078285217,
-0.16750210523605347,
0.05953797698020935,
-0.12824374437332153,
-0.02607303112745285,
-0.17717024683952332,
0.25039994716644287,
-0.10111973434686661,
0.29991766810417175,
0.04533253610134125,
0.07862745225429535,
0.11160822212696075,
0.19354847073554993,
-0.005319196730852127,
0.35072553157806396,
-0.2922367453575134,
-0.10052981972694397,
0.17093521356582642,
0.12276846170425415,
-0.3113185167312622,
0.363663911819458,
0.07271969318389893,
-0.30711811780929565,
-0.3510373830795288,
0.3143329918384552,
0.39192670583724976,
-0.8428550362586975,
-0.007308626547455788,
0.23568032681941986,
-0.07065266370773315,
-0.19131594896316528,
0.1781540960073471,
0.13873499631881714,
-0.07107465714216232,
0.06333328783512115,
0.06305506825447083,
-0.335890531539917,
0.3309183418750763,
0.1152627021074295,
0.22596538066864014,
-0.05699988454580307,
-0.7230478525161743,
0.19068604707717896,
0.2346632480621338,
-0.21086706221103668,
-0.011026354506611824,
0.14330565929412842,
-0.13708561658859253,
-0.1973811835050583,
0.21826604008674622,
0.08253158628940582,
-0.2296375185251236,
-0.031000401824712753,
-0.12594541907310486,
-0.25822654366493225,
-0.15487250685691833,
-0.14986976981163025,
0.16339369118213654,
-0.07319029420614243,
-0.10375133156776428,
-0.31078484654426575,
-0.3471992611885071,
-0.09703417122364044,
-0.17016035318374634,
0.24928410351276398,
0.05974264442920685,
0.12586700916290283,
-0.26831531524658203,
0.681731104850769,
0.10243138670921326,
-0.4241311848163605,
0.12370047718286514,
0.23055273294448853,
0.4535214602947235,
0.11636857688426971,
-0.34048202633857727,
-0.12076136469841003,
-0.19149279594421387,
0.21197062730789185,
0.33744803071022034,
0.3766675889492035,
-0.13558107614517212,
-0.11386939138174057,
0.04664986953139305,
0.156505286693573,
-0.3454877734184265,
0.09470803290605545,
0.3999518156051636,
0.05424468591809273,
-0.25534385442733765,
0.25094112753868103,
0.08727261424064636,
0.046514011919498444,
-0.06088632345199585,
0.25091052055358887,
0.0469508171081543,
-0.10933035612106323,
0.26471513509750366,
0.2352202832698822,
0.2208653837442398,
-0.10220596194267273,
0.049036696553230286,
-0.14804187417030334,
0.1447734236717224,
0.030469443649053574,
0.1158180683851242,
-0.21760931611061096,
-0.08587262034416199,
0.3323887586593628,
0.4036591947078705,
-0.006565570831298828,
-0.043548766523599625,
-0.02668694406747818,
0.4827597141265869,
0.17136746644973755,
0.19139017164707184,
0.19797180593013763,
-0.2922004163265228,
-0.36436811089515686,
-0.0274740532040596,
-0.10327331721782684,
-0.15354840457439423,
0.15260066092014313,
0.48738768696784973,
0.34851816296577454,
-0.4362679719924927,
-0.27602171897888184,
-0.05715547874569893,
-0.030401676893234253,
-0.03833384066820145,
-0.17584320902824402,
-0.1453132927417755,
-0.01654352992773056,
-0.08562297374010086,
-0.08031482994556427,
-0.016051754355430603,
0.29371029138565063,
0.08977697789669037,
0.22874346375465393,
0.06396067142486572,
0.39390796422958374,
0.206111341714859,
0.1510295569896698,
0.3409268260002136,
0.06315907090902328,
0.005954999476671219,
0.32308584451675415,
0.09474807232618332,
0.2646946907043457,
-0.11242244392633438,
-0.05002492293715477,
-0.17274686694145203,
-0.008248012512922287,
0.3032369017601013,
-0.09250958263874054,
0.049607619643211365,
0.3993672728538513,
0.17488208413124084,
0.13276207447052002,
0.13119608163833618,
0.07551181316375732,
-0.03727558255195618,
-0.1949140727519989,
-0.08900000154972076,
0.41919392347335815,
-0.018863890320062637,
0.10955239832401276,
0.09706996381282806,
-0.21617089211940765,
-0.03509283810853958,
-0.030807524919509888,
-0.049423038959503174,
0.09700576961040497,
0.4881446659564972,
-0.2978169322013855,
-0.2739187479019165,
-0.2831571102142334,
0.03072616457939148,
0.05821596831083298,
0.8948061466217041,
0.24009718000888824,
0.2643410861492157,
0.011320844292640686,
-0.35473793745040894,
-0.23992429673671722,
-0.03300502151250839,
-0.07517048716545105,
0.27138909697532654,
0.18881694972515106,
-0.13064634799957275,
0.20978876948356628,
0.4919033348560333,
0.24005085229873657,
-0.1573127806186676,
0.15948115289211273,
-0.0028051957488059998,
-0.06643106788396835,
0.01402401551604271,
0.03036443516612053,
0.19391995668411255,
-0.4093897342681885,
-0.15085764229297638,
0.16415449976921082,
0.255195677280426,
-0.1288655698299408,
0.0609905943274498,
0.2979821562767029,
0.04699617624282837,
0.2677919864654541,
0.3522818386554718,
0.10147828608751297,
0.1359044909477234,
0.06569978594779968,
-0.0964447408914566,
-0.050831519067287445,
-0.45656275749206543,
0.001054130494594574,
0.22056561708450317,
-0.00741208391264081,
-0.30852895975112915,
-0.12220243364572525,
0.034591108560562134,
0.07050614058971405,
-0.008491165935993195,
0.003095194697380066,
0.2791025638580322,
-0.28368768095970154,
0.07359598577022552,
0.1059359461069107,
-0.05502372607588768,
0.1909136027097702,
0.009986799210309982,
-0.00545571930706501,
0.01615990698337555,
0.049666404724121094,
0.0464627668261528,
0.40597739815711975,
0.06410932540893555,
-0.03982028365135193,
0.1455322504043579,
0.33637839555740356,
0.3294089436531067,
-0.19508272409439087,
-0.5431341528892517,
0.022327378392219543,
0.06802478432655334,
-0.32048752903938293,
-0.019293885678052902,
0.520704448223114,
-0.1929076910018921,
0.07618401199579239,
-0.1330619603395462,
0.6729962825775146,
0.03514323756098747,
0.20699040591716766,
-0.27965617179870605,
-0.2860950529575348
] |
https://github.com/huggingface/datasets/issues/2092 | We're still working on this :) This will be available soon
Users will be able to put their processed arrow files on the Hub | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 24 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
We're still working on this :) This will be available soon
Users will be able to put their processed arrow files on the Hub | [
-0.31036800146102905,
-0.20938341319561005,
-0.14643235504627228,
0.26523539423942566,
0.034569788724184036,
0.0666944831609726,
0.2737096846103668,
0.11328855156898499,
0.3428300619125366,
0.22532963752746582,
0.022578425705432892,
0.525862455368042,
0.020450837910175323,
0.13482186198234558,
0.21488416194915771,
0.21048662066459656,
-0.05675438046455383,
0.38356032967567444,
-0.3702232837677002,
-0.021793268620967865,
-0.01323062926530838,
-0.2425345629453659,
-0.03695646673440933,
0.16542552411556244,
-0.35279273986816406,
-0.1516541689634323,
0.20509174466133118,
-0.07997746020555496,
-0.37333083152770996,
-0.35534214973449707,
0.2808744013309479,
0.3713865280151367,
-0.25695857405662537,
0.214072585105896,
-0.00011598391574807465,
0.08175237476825714,
0.11647594720125198,
0.12940451502799988,
-0.35112738609313965,
0.027133524417877197,
-0.27096372842788696,
-0.05063115060329437,
0.5330001711845398,
0.04818955063819885,
0.17402105033397675,
-0.3140253722667694,
-0.32610559463500977,
-0.23735737800598145,
0.30755236744880676,
-0.10841740667819977,
0.19016149640083313,
0.1338147222995758,
-0.12586531043052673,
0.021421946585178375,
0.3372375965118408,
0.26441439986228943,
-0.5166214108467102,
0.17665593326091766,
0.0029492825269699097,
0.018685176968574524,
-0.2683086097240448,
-0.06923948228359222,
-0.08066347986459732,
-0.1670561283826828,
0.2791845500469208,
-0.15353669226169586,
-0.11417786777019501,
-0.4275372326374054,
0.0803016945719719,
0.2599160671234131,
0.7489733695983887,
-0.34266817569732666,
-0.10134035348892212,
-0.22712090611457825,
0.23998430371284485,
0.046320222318172455,
0.2915192246437073,
0.24840132892131805,
-0.14381225407123566,
0.04929087683558464,
-0.3220917582511902,
-0.5807151198387146,
-0.3312956690788269,
-0.22875086963176727,
0.3389682173728943,
-0.10106968134641647,
-0.0031774863600730896,
-0.004358429461717606,
0.2739899754524231,
-0.03224630653858185,
0.6454587578773499,
-0.09578267484903336,
-0.4226685166358948,
0.1684315800666809,
-0.25799381732940674,
-0.34509989619255066,
-0.2567850947380066,
0.39407485723495483,
0.2697524428367615,
0.33450931310653687,
0.5258707404136658,
0.08301103115081787,
0.10218413174152374,
-0.06016028672456741,
-0.08298121392726898,
0.1526263952255249,
0.3308388292789459,
-0.05397458001971245,
0.2798464596271515,
-0.0290624238550663,
0.09410757571458817,
0.030074547976255417,
0.0683988630771637,
-0.4570538401603699,
-0.17364351451396942,
0.032119717448949814,
-0.0016696080565452576,
-0.18580986559391022,
0.054864346981048584,
-0.19811157882213593,
0.18231269717216492,
0.07439208030700684,
0.33495262265205383,
0.04474278539419174,
0.29450079798698425,
0.07408733665943146,
-0.18319441378116608,
0.2993353605270386,
-0.20953229069709778,
-0.1715041846036911,
-0.047271206974983215,
-0.20762689411640167,
-0.2439625859260559,
0.3211621642112732,
0.3855164349079132,
0.021937191486358643,
-0.1519089937210083,
0.45058968663215637,
-0.06351291388273239,
0.017169147729873657,
0.2573390603065491,
-0.18189910054206848,
0.1704494059085846,
0.5423359870910645,
0.009039394557476044,
-0.16206350922584534,
-0.11043322831392288,
0.028239548206329346,
-0.07017543911933899,
0.45096275210380554,
-0.4174424707889557,
-0.3716728091239929,
0.06009357422590256,
0.10577082633972168,
-0.07882540673017502,
-0.06295531243085861,
-0.7715761065483093,
0.044814787805080414,
-0.1329561024904251,
0.3094385266304016,
0.264872670173645,
0.1242683157324791,
-0.07665510475635529,
-0.20447632670402527,
0.08952255547046661,
0.2795029580593109,
-0.3330899477005005,
0.18440207839012146,
-0.056063298135995865,
-0.20377221703529358,
-0.1754717230796814,
-0.0012653768062591553,
-0.4258306920528412,
0.20051787793636322,
-0.13040336966514587,
0.01186487078666687,
0.5192416310310364,
-0.06679513305425644,
-0.007045218721032143,
0.07265783846378326,
0.043677106499671936,
-0.09003649652004242,
0.15256023406982422,
-0.06359744071960449,
-0.0286896750330925,
-0.14478954672813416,
-0.2948603928089142,
0.05170151963829994,
0.23703978955745697,
-0.16872861981391907,
0.10822103917598724,
-0.2682803273200989,
0.09478448331356049,
-0.09104008972644806,
-0.2780420184135437,
0.12101125717163086,
0.2302224487066269,
-0.23424701392650604,
0.15051425993442535,
-0.13245528936386108,
-0.10915615409612656,
0.15298700332641602,
0.09979643672704697,
-0.096534363925457,
-0.0026662610471248627,
0.17292964458465576,
-0.645912230014801,
0.24462701380252838,
-0.13482260704040527,
-0.003556673415005207,
-0.014318335801362991,
-0.258192777633667,
0.05533655360341072,
0.12925316393375397,
-0.16762393712997437,
0.3968890905380249,
0.06442676484584808,
-0.7594504952430725,
-0.02104198932647705,
-0.273054301738739,
-0.31729060411453247,
0.06330279260873795,
-0.3434697985649109,
0.20906755328178406,
-0.3996979594230652,
0.19453972578048706,
0.2741888463497162,
0.017556797713041306,
0.09690643846988678,
0.04658885300159454,
-0.005608303472399712,
0.19213253259658813,
-0.18213000893592834,
0.21623338758945465,
0.24959519505500793,
0.30249595642089844,
0.2750135064125061,
0.3957771062850952,
0.06316949427127838,
-0.46250098943710327,
0.43027690052986145,
-0.4933481216430664,
-0.05087081342935562,
-0.0299595445394516,
0.05758165568113327,
0.228127121925354,
-0.43889397382736206,
0.2713943421840668,
0.014362148940563202,
-0.06406917423009872,
-0.002512417733669281,
0.13787280023097992,
-0.1525088995695114,
-0.19673720002174377,
0.0699671059846878,
0.25558286905288696,
0.25783053040504456,
0.291130930185318,
0.15280628204345703,
-0.024493351578712463,
0.021672610193490982,
0.07969039678573608,
-0.0018181875348091125,
0.14290626347064972,
0.01625658944249153,
-0.1354295313358307,
0.11111266911029816,
0.01360483467578888,
0.2229939103126526,
0.17357321083545685,
0.08487866073846817,
-0.021246733143925667,
-0.13281024992465973,
-0.3586786389350891,
0.3063270151615143,
0.10056135803461075,
0.4162053167819977,
0.052924346178770065,
-0.022004371508955956,
-0.16834615170955658,
-0.5321384072303772,
0.10237224400043488,
-0.20034228265285492,
-0.1142188087105751,
-0.3129299283027649,
-0.10569903254508972,
-0.3163558840751648,
-0.008168965578079224,
0.07854858785867691,
-0.10673466324806213,
-0.490887314081192,
-0.04136482626199722,
0.3447565734386444,
-0.03847408667206764,
-0.02073156088590622,
-0.019073761999607086,
-0.22083032131195068,
0.39610427618026733,
-0.12125860899686813,
0.06607597321271896,
-0.6435344219207764,
-0.02236795425415039,
0.24652080237865448,
0.10311602056026459,
0.06953991204500198,
0.11059577763080597,
0.2626502513885498,
0.09765425324440002,
0.1982637345790863,
-0.21043278276920319,
0.04421196132898331,
0.15285661816596985,
-0.08807814121246338,
-0.140304833650589,
0.11372348666191101,
0.12617620825767517,
-0.09978699684143066,
0.12349261343479156,
-0.12224620580673218,
-0.2544909119606018,
-0.12007525563240051,
0.16815826296806335,
-0.2586185336112976,
0.2979021370410919,
-0.13292334973812103,
-0.01574423909187317,
0.10734592378139496,
-0.22317928075790405,
0.17706839740276337,
0.12415756285190582,
0.18619804084300995,
0.14407037198543549,
0.23284706473350525,
-0.019337473437190056,
-0.05566197261214256,
-0.07994947582483292,
-0.026209400966763496,
-0.3828009366989136,
0.4329153001308441,
-0.3228120505809784,
-0.19169139862060547,
0.3459976315498352,
0.20780035853385925,
0.30503687262535095,
0.1848866045475006,
-0.47446438670158386,
0.3793216347694397,
-0.21856753528118134,
0.01295536756515503,
-0.23853398859500885,
-0.020847424864768982,
0.24468883872032166,
0.1760331690311432,
-0.04186927527189255,
-0.1761094331741333,
0.22955164313316345,
0.25442835688591003,
0.04376182332634926,
-0.054827407002449036,
0.025107111781835556,
0.07713726907968521,
-0.3237438499927521,
0.3563770055770874,
-0.12451095879077911,
0.14903801679611206,
0.22948357462882996,
0.026924313977360725,
0.3668174147605896,
-0.3066940903663635,
0.3087345361709595,
-0.4477265775203705,
-0.041546210646629333,
0.14450064301490784,
0.0641135647892952,
0.2390732765197754,
-0.12017524242401123,
-0.16019156575202942,
0.00965215265750885,
0.13191896677017212,
-0.161261647939682,
-0.034619204699993134,
-0.7436398267745972,
-0.1173463761806488,
-0.05583351105451584,
-0.04804617539048195,
-0.029278911650180817,
-0.2988169193267822,
0.15224318206310272,
-0.13564780354499817,
0.4277973473072052,
-0.2315807193517685,
-0.3994401693344116,
-0.08729669451713562,
-0.2561012804508209,
0.0836077630519867,
-0.18275311589241028,
0.010035421699285507,
-0.011882580816745758,
0.1019519492983818,
0.28881803154945374,
0.24737778306007385,
0.3161110281944275,
-0.21731723845005035,
-0.09040193259716034,
-0.016789983958005905,
0.026806950569152832,
-0.5356786251068115,
0.25160062313079834,
0.10035412013530731,
0.12652695178985596,
-0.5037959218025208,
0.15405194461345673,
0.03338971734046936,
-0.44282954931259155,
-0.0943354144692421,
0.37205836176872253,
-0.27750885486602783,
-0.23391535878181458,
-0.2597723603248596,
0.11570435017347336,
-0.005063481628894806,
-0.1438826620578766,
0.06100188195705414,
-0.30927109718322754,
-0.535169780254364,
-0.37125346064567566,
-0.21949909627437592,
-0.20148594677448273,
0.045150257647037506,
0.16970889270305634,
0.2755420207977295,
-0.05764800310134888,
-0.09010625630617142,
0.46450313925743103,
0.01001343596726656,
0.3138619661331177,
0.568085253238678,
0.11471129208803177,
-0.2208566665649414,
0.10534708946943283,
-0.25552815198898315,
0.3461347818374634,
0.18334327638149261,
-0.14667634665966034,
0.2589339315891266,
-0.12999707460403442,
-0.14730161428451538,
-0.2657667398452759,
-0.3406081199645996,
-0.07620009779930115,
-0.2886854410171509,
-0.1925840824842453,
-0.4018353223800659,
0.4588523805141449,
0.04647088050842285,
-0.19205209612846375,
0.6431565284729004,
0.3190079927444458,
-0.33946603536605835,
0.4343406856060028,
0.35485976934432983,
0.8494627475738525,
-0.11274980008602142,
0.09163419157266617,
0.021782804280519485,
-0.07937006652355194,
0.09846865385770798,
-0.2582958936691284,
-0.030872702598571777,
-0.21900829672813416,
-0.23961305618286133,
-0.15526902675628662,
-0.29671531915664673,
0.30317413806915283,
0.6141327619552612,
0.10159356892108917,
-0.06747126579284668,
-0.4352978765964508,
-0.06423161178827286,
-0.2260584533214569,
0.14627383649349213,
-0.2950595021247864,
-0.3401353359222412,
-0.3785330653190613,
0.11251525580883026,
0.13483884930610657,
-0.2577759027481079,
0.019770987331867218,
0.18664687871932983,
0.0442516952753067,
-0.1310451626777649,
0.11500895023345947,
-0.006273165345191956,
-0.14191436767578125,
0.15258684754371643,
-0.11897046864032745,
-0.2175104022026062,
0.2758840322494507,
0.3597981631755829,
0.023815220221877098,
0.0525275319814682,
-0.14328943192958832,
0.2025453895330429,
0.16436846554279327,
0.15498892962932587,
-0.3488695025444031,
0.19793099164962769,
0.02894446812570095,
-0.12030534446239471,
-0.25547879934310913,
0.0646887719631195,
0.09313234686851501,
-0.28962886333465576,
0.21492353081703186,
-0.03537784516811371,
0.08911946415901184,
-0.1722826063632965,
0.281796932220459,
-0.07680264115333557,
0.22136810421943665,
0.042048171162605286,
0.11818347126245499,
0.17779415845870972,
0.16221721470355988,
0.12484697252511978,
0.19563251733779907,
-0.3417983651161194,
0.00519227422773838,
0.18400797247886658,
0.2707306444644928,
-0.220585897564888,
0.3048515319824219,
-0.009532429277896881,
-0.30667608976364136,
-0.4091406464576721,
0.4217349886894226,
0.3146270513534546,
-0.8149150013923645,
-0.05724222958087921,
0.20928630232810974,
-0.0014708936214447021,
-0.05409587547183037,
0.08220052719116211,
-0.05929840728640556,
0.12207117676734924,
-0.0522359199821949,
-0.014666199684143066,
-0.2908226251602173,
0.2115478217601776,
0.11225239187479019,
0.31091567873954773,
-0.08971323817968369,
-0.7034538388252258,
0.18048612773418427,
0.15363247692584991,
-0.21999391913414001,
-0.05999160557985306,
0.22686752676963806,
-0.10255925357341766,
-0.37320834398269653,
0.2789994776248932,
-0.02801012620329857,
-0.22213415801525116,
-0.0012286864221096039,
-0.09534716606140137,
-0.1374150812625885,
-0.16942624747753143,
-0.14142680168151855,
0.148606538772583,
-0.04524802416563034,
-0.027626357972621918,
-0.32364511489868164,
-0.39718419313430786,
-0.216758131980896,
-0.07180193066596985,
0.22952225804328918,
0.019502893090248108,
0.07253855466842651,
-0.12252728641033173,
0.6832393407821655,
-0.022525154054164886,
-0.3817601799964905,
0.15879154205322266,
0.1356399953365326,
0.38806986808776855,
0.1000988706946373,
-0.156002476811409,
0.022011108696460724,
-0.1547558754682541,
0.18189111351966858,
0.22451630234718323,
0.09303779155015945,
-0.011964092962443829,
-0.09836933016777039,
0.0272614024579525,
0.1843191683292389,
-0.31566882133483887,
0.027468621730804443,
0.3971517086029053,
0.09730786085128784,
-0.37813812494277954,
0.25858718156814575,
0.12905241549015045,
0.0012021958827972412,
-0.1575755476951599,
0.2228885293006897,
0.056625958532094955,
-0.1367577761411667,
0.15797054767608643,
0.2353890836238861,
0.06973572075366974,
-0.2357998937368393,
0.08002126216888428,
-0.11769375205039978,
-0.0643167495727539,
0.08031259477138519,
0.26742827892303467,
-0.17025554180145264,
-0.12276385724544525,
0.25049012899398804,
0.2941710650920868,
-0.012187410145998001,
0.13033533096313477,
0.13126835227012634,
0.42209091782569885,
0.4682115316390991,
0.06443080306053162,
0.08939259499311447,
-0.14023536443710327,
-0.3395056426525116,
-0.03896522521972656,
-0.19892971217632294,
-0.2140466272830963,
0.24710997939109802,
0.2983282208442688,
0.4900265038013458,
-0.31157898902893066,
-0.1952570676803589,
-0.05861514434218407,
0.0022102240473031998,
0.05996467173099518,
-0.25111639499664307,
-0.11936739087104797,
0.02836974710226059,
-0.12943977117538452,
-0.07326841354370117,
0.19702017307281494,
0.2804989218711853,
0.139581099152565,
0.21686893701553345,
0.13571640849113464,
0.6554522514343262,
0.27734220027923584,
0.13340792059898376,
0.2608630359172821,
-0.08659578859806061,
-0.15077537298202515,
0.30105555057525635,
0.09828487783670425,
0.21403811872005463,
-0.21611295640468597,
0.012824460864067078,
-0.10680797696113586,
-0.014180567115545273,
0.30383676290512085,
-0.12288536131381989,
-0.0021903030574321747,
0.37918728590011597,
0.16927418112754822,
0.1502939760684967,
0.19707077741622925,
0.08628788590431213,
-0.004229705780744553,
-0.24149207770824432,
0.015736078843474388,
0.4444570243358612,
0.07769240438938141,
0.15331964194774628,
0.331096887588501,
-0.35675182938575745,
0.11817383766174316,
0.007983028888702393,
0.06466548144817352,
0.05851799622178078,
0.6564629077911377,
-0.31637850403785706,
-0.2799339294433594,
-0.38614702224731445,
0.036657292395830154,
-0.04521939158439636,
0.865664005279541,
-0.008355420082807541,
0.2765962481498718,
0.04942787066102028,
-0.28425097465515137,
-0.22945484519004822,
-0.06622455269098282,
-0.04758774861693382,
0.3431776165962219,
0.2284073829650879,
-0.13737481832504272,
0.23494111001491547,
0.40117380023002625,
0.2569218873977661,
-0.16220177710056305,
0.2006436437368393,
0.09885509312152863,
-0.10666554421186447,
0.07743331789970398,
0.05706467479467392,
0.3371535539627075,
-0.5004720091819763,
-0.20390766859054565,
0.1073564887046814,
0.2701491713523865,
-0.0749054029583931,
-0.004189679399132729,
0.13133680820465088,
0.3006615936756134,
0.40708380937576294,
0.41924595832824707,
0.05416807532310486,
0.20036804676055908,
0.02732718735933304,
0.0839657410979271,
-0.025934696197509766,
-0.49608317017555237,
-0.0011240355670452118,
0.2126312404870987,
0.06386086344718933,
-0.38755476474761963,
-0.09279851615428925,
0.1831553876399994,
0.027768202126026154,
-0.16269084811210632,
-0.09975200146436691,
0.359546035528183,
-0.25041207671165466,
0.024056293070316315,
0.12899160385131836,
-0.00778309628367424,
0.04471518099308014,
-0.07870995998382568,
0.05420524626970291,
0.022709600627422333,
0.10669603943824768,
0.021028995513916016,
0.2980058789253235,
0.08335526287555695,
-0.11879099905490875,
0.23987607657909393,
0.3707805871963501,
0.2511378824710846,
-0.12867052853107452,
-0.36799460649490356,
-0.0019751042127609253,
0.26965025067329407,
-0.2883359491825104,
0.09059092402458191,
0.4025953412055969,
-0.07588039338588715,
0.14645615220069885,
-0.11018450558185577,
0.5680815577507019,
-0.01564934104681015,
0.19628438353538513,
-0.42828160524368286,
-0.33015596866607666
] |
https://github.com/huggingface/datasets/issues/2092 | Hi! You can now use `Dataset.push_to_hub` to store preprocessed files on the Hub.
And to avoid downloading preprocessed files, you can use streaming by setting `streaming=True` in `load_dataset`. | How to disable making arrow tables in load_dataset ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 28 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
Hi! You can now use `Dataset.push_to_hub` to store preprocessed files on the Hub.
And to avoid downloading preprocessed files, you can use streaming by setting `streaming=True` in `load_dataset`. | [
-0.4052203893661499,
-0.1968802511692047,
-0.1395871490240097,
0.1919092983007431,
0.16952583193778992,
0.03651537001132965,
0.14603039622306824,
0.188218891620636,
0.2423788607120514,
0.21509592235088348,
-0.06278691440820694,
0.5453227162361145,
0.013995453715324402,
0.20260056853294373,
0.25900715589523315,
0.2459288388490677,
0.04462313652038574,
0.3764571249485016,
-0.3432464301586151,
-0.03559562563896179,
-0.11941195279359818,
-0.2088577151298523,
-0.03276391327381134,
0.08095754683017731,
-0.3135523796081543,
-0.08689730614423752,
0.20037168264389038,
-0.00038115400820970535,
-0.437374472618103,
-0.3860315680503845,
0.14985205233097076,
0.49946358799934387,
-0.23887866735458374,
0.2137957364320755,
-0.00011493725469335914,
0.13247057795524597,
0.07505263388156891,
-0.011510659009218216,
-0.3603461682796478,
-0.05293658375740051,
-0.22849151492118835,
-0.057379186153411865,
0.4460434913635254,
0.009770199656486511,
0.14850100874900818,
-0.3472621440887451,
-0.24229209125041962,
-0.20345252752304077,
0.2758961319923401,
0.008384935557842255,
0.2055666297674179,
0.05844645947217941,
-0.10516262799501419,
0.06620055437088013,
0.3517315089702606,
0.3189104199409485,
-0.5356533527374268,
0.08561351895332336,
0.12333975732326508,
0.1556122601032257,
-0.22097305953502655,
0.02825818583369255,
-0.06878268718719482,
-0.09462069720029831,
0.37991848587989807,
-0.10098029673099518,
-0.12726891040802002,
-0.4841555953025818,
0.11107909679412842,
0.1875746250152588,
0.6616777181625366,
-0.48480895161628723,
-0.09517925977706909,
-0.20053964853286743,
0.14136503636837006,
-0.013462856411933899,
0.2618098258972168,
0.22291791439056396,
-0.1412999927997589,
0.11909157782793045,
-0.4137284755706787,
-0.7122359275817871,
-0.34767937660217285,
-0.3188081681728363,
0.40357232093811035,
-0.0505351647734642,
0.05527297034859657,
-0.014823511242866516,
0.24200239777565002,
0.0936426892876625,
0.7132237553596497,
-0.1416359394788742,
-0.4654327929019928,
0.12012999504804611,
-0.20129357278347015,
-0.29609793424606323,
-0.23369333148002625,
0.353252649307251,
0.3268963396549225,
0.30072852969169617,
0.5257332921028137,
0.10129953920841217,
0.12032588571310043,
-0.1625598967075348,
-0.04795687645673752,
0.10023444145917892,
0.30511674284935,
0.00470447912812233,
0.24068039655685425,
0.05280345305800438,
0.16673076152801514,
-0.006733172107487917,
0.06370619684457779,
-0.38631153106689453,
-0.0642327144742012,
0.07407374680042267,
0.10555580258369446,
-0.24281170964241028,
0.08408459275960922,
-0.08917646110057831,
0.2381521314382553,
0.03645261749625206,
0.2978093922138214,
0.1267215758562088,
0.2991115152835846,
0.11869817972183228,
-0.17223277688026428,
0.3154856860637665,
-0.1799039989709854,
-0.2174464464187622,
-0.07984749227762222,
-0.16134198009967804,
-0.27804017066955566,
0.252392441034317,
0.41405248641967773,
-0.12954628467559814,
-0.03518278896808624,
0.4412539005279541,
-0.052902765572071075,
0.01489970088005066,
0.2605839967727661,
-0.23352551460266113,
0.2636101245880127,
0.4753924608230591,
0.09480829536914825,
-0.11496841907501221,
-0.17586001753807068,
0.13402974605560303,
-0.05779913812875748,
0.47780171036720276,
-0.4014231562614441,
-0.4730401933193207,
0.11403453350067139,
0.11856664717197418,
-0.04370986670255661,
0.10156688839197159,
-0.7802318334579468,
0.03325250744819641,
-0.19619160890579224,
0.2477412074804306,
0.19639824330806732,
0.12924501299858093,
-0.12420050799846649,
-0.20544597506523132,
0.1875767558813095,
0.21659936010837555,
-0.37810540199279785,
0.21781115233898163,
0.03578924760222435,
-0.2749398946762085,
-0.09090429544448853,
-0.05442317947745323,
-0.4053371548652649,
0.3176671862602234,
-0.14750684797763824,
0.017469480633735657,
0.43303826451301575,
-0.12909474968910217,
-0.19485591351985931,
0.14469653367996216,
0.0705195814371109,
-0.03225991502404213,
0.1396576315164566,
0.00751861184835434,
0.028539884835481644,
-0.08936657011508942,
-0.28176531195640564,
0.12000113725662231,
0.22125594317913055,
-0.03799086809158325,
0.040314845740795135,
-0.22171325981616974,
-0.045848775655031204,
-0.12443898618221283,
-0.19125179946422577,
0.13788793981075287,
0.13993039727210999,
-0.15249712765216827,
0.2346963882446289,
-0.17841483652591705,
-0.007214594632387161,
0.16838230192661285,
0.16448239982128143,
-0.08998676389455795,
-0.03590067848563194,
0.13167081773281097,
-0.6245195269584656,
0.25788426399230957,
-0.14037565886974335,
0.011608912609517574,
-0.1429448127746582,
-0.27298250794410706,
0.04146179184317589,
0.15173038840293884,
-0.16578446328639984,
0.3179362118244171,
0.0974317193031311,
-0.6045358777046204,
-0.08116577565670013,
-0.27403104305267334,
-0.27229657769203186,
0.168435201048851,
-0.3016510307788849,
0.17431116104125977,
-0.3595038056373596,
0.22428050637245178,
0.2115800529718399,
0.03834228590130806,
0.09017755836248398,
0.0013960208743810654,
-0.01793743669986725,
0.10954685509204865,
-0.15877673029899597,
0.331451416015625,
0.2601056694984436,
0.3451935052871704,
0.21217408776283264,
0.2922511100769043,
0.07942856103181839,
-0.3748869299888611,
0.1983780860900879,
-0.44003060460090637,
0.024797998368740082,
-0.016976960003376007,
-0.0297870971262455,
0.2918371558189392,
-0.3387264013290405,
0.2818220853805542,
0.017397254705429077,
-0.04628770798444748,
0.08017657697200775,
0.17535500228405,
-0.1541948765516281,
-0.21780331432819366,
0.11250443011522293,
0.38798636198043823,
0.2013576328754425,
0.27913573384284973,
0.08184393495321274,
0.0447535403072834,
0.10261564701795578,
0.11409890651702881,
-0.11839425563812256,
0.13819517195224762,
-0.029091008007526398,
-0.24651315808296204,
0.16562822461128235,
0.06120183318853378,
0.2539358139038086,
0.1769227236509323,
0.11474470049142838,
0.09816556423902512,
-0.12338411808013916,
-0.3171585500240326,
0.38864457607269287,
0.14165283739566803,
0.3738430142402649,
0.15156632661819458,
-0.08082319796085358,
-0.22737948596477509,
-0.4491086006164551,
0.10583259910345078,
-0.040402501821517944,
0.02152889408171177,
-0.3709682822227478,
-0.20445069670677185,
-0.3041362166404724,
0.07068978995084763,
0.21770194172859192,
-0.14961759746074677,
-0.3920614421367645,
-0.02678799256682396,
0.3422318696975708,
0.11295802891254425,
-0.06960085779428482,
0.004556711763143539,
-0.1462654024362564,
0.37602952122688293,
-0.1492992639541626,
0.013414105400443077,
-0.5668156147003174,
-0.05778229981660843,
0.21823906898498535,
0.08874423801898956,
0.12931710481643677,
0.2269917130470276,
0.25033143162727356,
0.08416272699832916,
0.1328844279050827,
-0.3371778130531311,
0.1445978432893753,
0.1566002517938614,
-0.1546870768070221,
0.00592120923101902,
0.08227258920669556,
0.17932505905628204,
-0.0220339372754097,
0.09394088387489319,
-0.11633764207363129,
-0.24815154075622559,
-0.13493433594703674,
0.17223957180976868,
-0.31293419003486633,
0.1711207628250122,
-0.1364726722240448,
-0.12536361813545227,
0.09075265377759933,
-0.2739560306072235,
0.17777393758296967,
0.06619735062122345,
0.2073672115802765,
0.08073978126049042,
0.16436505317687988,
-0.0640813410282135,
-0.00261562317609787,
-0.08904547244310379,
-0.042577434331178665,
-0.48540860414505005,
0.3937738835811615,
-0.29813775420188904,
-0.23894977569580078,
0.3353010416030884,
0.21932882070541382,
0.30800744891166687,
0.27356332540512085,
-0.523195207118988,
0.3081943690776825,
-0.11188989132642746,
0.003675989806652069,
-0.25644493103027344,
-0.10121791064739227,
0.3165072500705719,
0.24160823225975037,
-0.061178695410490036,
-0.1632501482963562,
0.2277446985244751,
0.2863844037055969,
-0.03622278571128845,
-0.017596397548913956,
0.025410287082195282,
0.17125234007835388,
-0.324225515127182,
0.4838038682937622,
-0.155768483877182,
0.18746767938137054,
0.336209237575531,
0.04804284870624542,
0.374210000038147,
-0.37551242113113403,
0.24151107668876648,
-0.41268083453178406,
-0.08276340365409851,
0.12171246111392975,
0.20325016975402832,
0.14619570970535278,
-0.1281190812587738,
-0.23710846900939941,
-0.05329607054591179,
0.10869620740413666,
-0.19090735912322998,
0.07975365221500397,
-0.6821790933609009,
-0.06554003804922104,
-0.005182281136512756,
0.010834865272045135,
-0.12871167063713074,
-0.24865847826004028,
0.12687751650810242,
-0.2441553771495819,
0.3798927664756775,
-0.21345558762550354,
-0.3773469626903534,
-0.06610739976167679,
-0.4805041551589966,
0.0342278927564621,
-0.13772538304328918,
0.014586441218852997,
-0.010854974389076233,
0.09866342693567276,
0.2883698046207428,
0.14158621430397034,
0.319370836019516,
-0.2579498887062073,
-0.02830839715898037,
-0.038131050765514374,
-0.009485974907875061,
-0.4368639290332794,
0.18456095457077026,
-0.062102172523736954,
0.27216655015945435,
-0.3148837983608246,
0.20031799376010895,
-0.05889372527599335,
-0.4083264470100403,
-0.19805863499641418,
0.21069474518299103,
-0.22698573768138885,
-0.17809315025806427,
-0.2433934062719345,
0.09003687649965286,
-0.09544268995523453,
-0.02057572454214096,
0.13527853786945343,
-0.23195482790470123,
-0.5517026782035828,
-0.34050238132476807,
-0.20216351747512817,
-0.10586139559745789,
0.049212340265512466,
0.07579971849918365,
0.40524041652679443,
-0.06324547529220581,
0.030491329729557037,
0.37338078022003174,
0.12419797480106354,
0.4229603409767151,
0.5497992038726807,
0.09086199849843979,
-0.17901179194450378,
0.10118086636066437,
-0.2975946366786957,
0.3088170886039734,
0.2786403000354767,
-0.12807218730449677,
0.2253641039133072,
-0.14604699611663818,
-0.10861073434352875,
-0.41309788823127747,
-0.267744779586792,
0.044215574860572815,
-0.28957831859588623,
-0.23932239413261414,
-0.4470382332801819,
0.36171382665634155,
0.0479714572429657,
-0.2307121902704239,
0.6139363050460815,
0.2656312584877014,
-0.4007493853569031,
0.44462674856185913,
0.41163724660873413,
0.948222815990448,
-0.03327304497361183,
0.09294229745864868,
0.08902822434902191,
-0.15526147186756134,
0.11714771389961243,
-0.3935530185699463,
0.01986190304160118,
-0.14875531196594238,
-0.43081313371658325,
-0.1418513059616089,
-0.18608646094799042,
0.22955214977264404,
0.5341552495956421,
-0.01338835060596466,
-0.018675727769732475,
-0.34085357189178467,
-0.14803962409496307,
-0.23323719203472137,
0.1796771138906479,
-0.18634457886219025,
-0.4249289929866791,
-0.24203753471374512,
0.12144049257040024,
0.082883819937706,
-0.3482292890548706,
-0.04961393028497696,
0.09662690758705139,
0.06192521005868912,
-0.15268680453300476,
0.06370830535888672,
0.02163611352443695,
-0.06799972057342529,
0.09852486848831177,
-0.29081031680107117,
-0.20807397365570068,
0.21570608019828796,
0.2921544313430786,
0.15528814494609833,
0.12133053690195084,
-0.25929394364356995,
0.26857176423072815,
0.1958514004945755,
0.21359671652317047,
-0.37372639775276184,
0.1361951380968094,
0.06645213067531586,
-0.16114458441734314,
-0.3161865472793579,
0.006989319808781147,
0.00542081892490387,
-0.33651456236839294,
0.25154995918273926,
-0.16787277162075043,
0.215674489736557,
-0.17655150592327118,
0.12301260977983475,
-0.056545015424489975,
0.1362597495317459,
0.025977157056331635,
0.13855069875717163,
0.07288852334022522,
0.02319127321243286,
0.14042264223098755,
0.10774500668048859,
-0.385362446308136,
-0.058537546545267105,
0.23121945559978485,
0.2848474085330963,
-0.21856831014156342,
0.35439586639404297,
-0.026232801377773285,
-0.32824450731277466,
-0.4102475643157959,
0.3036971688270569,
0.3879184424877167,
-0.7895288467407227,
-0.03544974699616432,
0.16090527176856995,
0.0317220538854599,
-0.05320585146546364,
0.10423913598060608,
-0.03308345749974251,
0.10052616894245148,
-0.11713749170303345,
0.10550370067358017,
-0.3713926374912262,
0.13523581624031067,
0.06442142277956009,
0.41470012068748474,
0.03879591077566147,
-0.6241438984870911,
0.21848906576633453,
0.21244719624519348,
-0.26748451590538025,
-0.03855666518211365,
0.13944625854492188,
-0.02062102034687996,
-0.4809094965457916,
0.22545985877513885,
-0.07395544648170471,
-0.2990182042121887,
0.02070082724094391,
-0.06255064904689789,
-0.23326805233955383,
-0.16564184427261353,
-0.12936142086982727,
0.13719268143177032,
-0.09210531413555145,
-0.03366165980696678,
-0.28200575709342957,
-0.332000195980072,
-0.2863916754722595,
-0.0584898479282856,
0.23070286214351654,
0.06532079726457596,
0.09095939993858337,
-0.24712711572647095,
0.8363045454025269,
-0.050530921667814255,
-0.43738067150115967,
0.1565384864807129,
0.15296532213687897,
0.3851822316646576,
-0.0003084801137447357,
-0.045303426682949066,
-0.037196848541498184,
-0.1794828325510025,
0.048086635768413544,
0.24344028532505035,
0.27389606833457947,
0.07114268839359283,
-0.016903813928365707,
0.03449312224984169,
0.15074674785137177,
-0.18631196022033691,
0.14220647513866425,
0.3330906331539154,
0.085216224193573,
-0.3532838523387909,
0.2792257070541382,
0.16581766307353973,
-0.08628157526254654,
-0.21287864446640015,
0.19405411183834076,
-0.05434931814670563,
-0.0947498232126236,
0.12408366799354553,
0.4099133610725403,
0.06083698570728302,
-0.15874627232551575,
0.13235004246234894,
-0.08234959840774536,
-0.043371446430683136,
0.10949363559484482,
0.22442524135112762,
-0.0718635618686676,
-0.08777709305286407,
0.19550517201423645,
0.2954463064670563,
0.022502485662698746,
0.2594134211540222,
0.038553349673748016,
0.41206851601600647,
0.4603413939476013,
0.12027420103549957,
-0.010511338710784912,
-0.20121142268180847,
-0.4202205538749695,
-0.06924267113208771,
-0.2981393039226532,
-0.13391104340553284,
0.1603265255689621,
0.2888921797275543,
0.426423043012619,
-0.39926785230636597,
-0.26953065395355225,
0.024207893759012222,
-0.024952927604317665,
0.06498582661151886,
-0.31698963046073914,
-0.10950199514627457,
-0.06936085969209671,
-0.02152721956372261,
-0.052155330777168274,
0.22717678546905518,
0.30659860372543335,
0.18452511727809906,
0.19416266679763794,
0.12817363440990448,
0.5500061511993408,
0.18242834508419037,
0.06983925402164459,
0.20964647829532623,
0.09213296324014664,
-0.12557023763656616,
0.1976589858531952,
0.16821721196174622,
0.24545608460903168,
-0.11355918645858765,
0.09289698302745819,
-0.14308440685272217,
0.01945905014872551,
0.3753949999809265,
-0.05330091714859009,
-0.06788448989391327,
0.2587439715862274,
0.20684751868247986,
0.19910962879657745,
0.2635693848133087,
0.10232467949390411,
0.0180572047829628,
-0.20007306337356567,
0.03618815168738365,
0.4063089191913605,
0.17468617856502533,
0.2258913815021515,
0.46591508388519287,
-0.3790130317211151,
0.13525567948818207,
-0.059420276433229446,
-0.05906244367361069,
0.09233652055263519,
0.5068262815475464,
-0.32523113489151,
-0.17796164751052856,
-0.3500879406929016,
0.05418655276298523,
-0.057261161506175995,
0.8695896863937378,
-0.07543770968914032,
0.17145174741744995,
-0.11843203008174896,
-0.3980925679206848,
-0.30991989374160767,
-0.09023621678352356,
-0.005554853938519955,
0.3555877208709717,
0.2039424479007721,
-0.06922045350074768,
0.11945728957653046,
0.34669041633605957,
0.17087921500205994,
-0.14993883669376373,
0.030218306928873062,
0.29755792021751404,
-0.15992243587970734,
0.15193673968315125,
0.10222487896680832,
0.34999439120292664,
-0.4453175365924835,
-0.17296671867370605,
0.20645123720169067,
0.31872838735580444,
-0.04392251744866371,
0.03919151797890663,
0.19907915592193604,
0.28916633129119873,
0.27870455384254456,
0.43519580364227295,
-0.053562991321086884,
0.13616518676280975,
-0.07731141895055771,
0.12995806336402893,
-0.09925533831119537,
-0.392971932888031,
-0.07711932063102722,
0.08266156911849976,
0.15745964646339417,
-0.32847797870635986,
-0.18073052167892456,
0.08729571104049683,
0.018395081162452698,
-0.11025035381317139,
-0.05750672146677971,
0.4071103036403656,
-0.356564998626709,
-0.03934565186500549,
0.01700630784034729,
0.1068490743637085,
-0.0008557438850402832,
-0.06789989769458771,
0.054830338805913925,
0.07677653431892395,
-0.09079252183437347,
-0.1188712790608406,
0.3469392657279968,
0.22992263734340668,
-0.10432887077331543,
0.12126608192920685,
0.4082443416118622,
0.2502463757991791,
-0.07501298189163208,
-0.39560604095458984,
-0.03773981332778931,
0.17238128185272217,
-0.2915390431880951,
0.004205986857414246,
0.39606624841690063,
-0.10639037936925888,
0.1832486391067505,
-0.15052351355552673,
0.4720410704612732,
-0.02583836205303669,
0.13737395405769348,
-0.34716230630874634,
-0.4123590588569641
] |
https://github.com/huggingface/datasets/issues/2089 | Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add.
We are also adding the full list of tags in #2107
This covers multilinguality, language_creators, licenses, size_categories and task_categories.
In general if you want to add a tag that doesn't exist (for example for a custom license) you must make it start with `other-` and then a custom tag name.
edit (@theo-m) if you ever find yourself resorting to adding an `other-*` tag, please do ping us somewhere so we can think about adding it to the "official" list :) | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 94 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add.
We are also adding the full list of tags in #2107
This covers multilinguality, language_creators, licenses, size_categories and task_categories.
In general if you want to add a tag that doesn't exist (for example for a custom license) you must make it start with `other-` and then a custom tag name.
edit (@theo-m) if you ever find yourself resorting to adding an `other-*` tag, please do ping us somewhere so we can think about adding it to the "official" list :) | [
-0.2009662389755249,
0.25202423334121704,
-0.13049304485321045,
0.07989367842674255,
0.18093259632587433,
0.3571425974369049,
0.31196463108062744,
0.1849830448627472,
0.16446059942245483,
-0.01634671539068222,
-0.021375935524702072,
0.3338295519351959,
-0.09630252420902252,
0.1983846127986908,
0.17110732197761536,
0.03998253121972084,
0.11463388800621033,
-0.06307917833328247,
0.3094627559185028,
-0.1812993884086609,
-0.20113418996334076,
-0.032979246228933334,
-0.057861439883708954,
-0.20018203556537628,
-0.3019791543483734,
-0.09221544861793518,
-0.2026938647031784,
0.03419458866119385,
-0.3976996839046478,
-0.6076431274414062,
0.02488354593515396,
0.333452045917511,
0.17429687082767487,
0.0735342800617218,
-0.00010723502782639116,
-0.159661203622818,
0.1788148283958435,
-0.23956626653671265,
-0.019153360277414322,
-0.1502259373664856,
-0.26503217220306396,
-0.42210373282432556,
-0.14403942227363586,
-0.07009926438331604,
0.07828265428543091,
-0.2990444004535675,
-0.047019511461257935,
-0.14260733127593994,
0.018922511488199234,
0.447711318731308,
0.20506054162979126,
-0.21061824262142181,
0.330857515335083,
-0.26098838448524475,
0.41784894466400146,
0.21136467158794403,
-0.10374075174331665,
0.37626707553863525,
0.4526175856590271,
0.09362515062093735,
0.0395134873688221,
0.1774764209985733,
-0.12393166124820709,
0.1795838177204132,
0.374946653842926,
-0.04512253403663635,
0.3577612340450287,
-0.5386648178100586,
0.22897154092788696,
0.3996187746524811,
1.1531600952148438,
-0.293137788772583,
-0.31076017022132874,
-0.4575537443161011,
0.10562022030353546,
-0.1025073453783989,
0.19889716804027557,
0.31950101256370544,
0.04213649407029152,
0.1530991494655609,
0.1238834410905838,
-0.344856321811676,
-0.23809853196144104,
0.12588632106781006,
0.1208825409412384,
0.46935391426086426,
-0.04953891038894653,
-0.04617978259921074,
0.2738637328147888,
-0.07653850317001343,
0.091446653008461,
-0.008607099764049053,
-0.23176470398902893,
0.13635291159152985,
0.15945827960968018,
-0.06463538110256195,
-0.2846122086048126,
-0.10535454750061035,
0.24940559267997742,
-0.017172841355204582,
-0.03791899234056473,
0.012572962790727615,
-0.1057559996843338,
0.3409811854362488,
0.12435565888881683,
-0.17687180638313293,
0.16517695784568787,
0.21109192073345184,
0.10149592161178589,
-0.2915715277194977,
0.33281153440475464,
-0.1448078751564026,
-0.1592111736536026,
-0.15297487378120422,
0.014806188642978668,
-0.0020566340535879135,
-0.10873021185398102,
-0.2182011604309082,
0.03899138420820236,
-0.023660775274038315,
0.08686906099319458,
-0.18008068203926086,
0.014684543013572693,
0.16239330172538757,
0.14091354608535767,
-0.22575172781944275,
-0.285469114780426,
0.17492547631263733,
0.06963225454092026,
-0.12727141380310059,
-0.02419181354343891,
0.22701433300971985,
-0.12852080166339874,
0.1915760487318039,
0.301363468170166,
-0.03260262683033943,
0.2947961688041687,
0.2256808876991272,
-0.13695809245109558,
-0.11986551433801651,
0.20909322798252106,
-0.030132628977298737,
0.27640804648399353,
0.3786616623401642,
-0.021972883492708206,
0.0751834586262703,
-0.0591331385076046,
-0.43039050698280334,
-0.2476123571395874,
0.13326440751552582,
-0.4022577404975891,
-0.23956398665905,
-0.41429567337036133,
0.22733387351036072,
-0.11816763132810593,
-0.04516850411891937,
-0.22617104649543762,
0.28055837750434875,
0.09361902624368668,
-0.14592596888542175,
0.24344433844089508,
0.21067313849925995,
-0.3568451404571533,
-0.28053444623947144,
0.0597086027264595,
0.4360632300376892,
-0.40218621492385864,
-0.005940362811088562,
-0.09240300208330154,
-0.022078953683376312,
-0.14535826444625854,
-0.11482483148574829,
-0.26231592893600464,
0.43306267261505127,
-0.34106528759002686,
0.26788201928138733,
0.43670400977134705,
-0.4631897807121277,
-0.2488020658493042,
0.15136149525642395,
0.024761967360973358,
-0.2738640308380127,
0.17683455348014832,
0.051014602184295654,
0.5288445353507996,
-0.1293235719203949,
-0.21330800652503967,
-0.030290506780147552,
-0.19845306873321533,
-0.10618725419044495,
-0.11989716440439224,
0.0688980370759964,
0.09746994078159332,
0.09274451434612274,
0.0935567170381546,
-0.0396653488278389,
0.4201056659221649,
0.12741102278232574,
-0.0038210172206163406,
-0.07197602093219757,
0.184222012758255,
0.39006829261779785,
0.21786387264728546,
0.22412854433059692,
-0.03491513058543205,
-0.08051297813653946,
-0.40130022168159485,
0.14364677667617798,
0.10194225609302521,
0.23965759575366974,
0.008704371750354767,
-0.27921730279922485,
-0.34344905614852905,
-0.18107366561889648,
-0.32649973034858704,
-0.3358737826347351,
0.1371121108531952,
0.09588351100683212,
-0.20061230659484863,
0.16701790690422058,
-0.13824525475502014,
0.2745998799800873,
0.06476806849241257,
0.12902142107486725,
-0.21279029548168182,
-0.03563887998461723,
-0.2517774999141693,
-0.005851920694112778,
0.22623193264007568,
0.06622156500816345,
0.2643674612045288,
0.05708064138889313,
-0.03682582452893257,
0.24640533328056335,
0.19644904136657715,
0.25893381237983704,
0.26214179396629333,
0.5404537916183472,
0.4105028808116913,
-0.2865331768989563,
0.3115127384662628,
-0.3376365005970001,
0.11784312129020691,
-0.2898560166358948,
-0.3992738425731659,
0.07650992274284363,
-0.1542874276638031,
-0.11915512382984161,
-0.11717653274536133,
-0.05081052705645561,
0.18092750012874603,
0.015232682228088379,
-0.12212991714477539,
-0.43974119424819946,
-0.17119082808494568,
0.010651405900716782,
0.017794445157051086,
0.0007568895816802979,
0.2007206231355667,
0.1873476803302765,
0.6095916032791138,
-0.11334887146949768,
0.1476428508758545,
0.09236316382884979,
-0.12582355737686157,
-0.02890726923942566,
0.1834840029478073,
0.20113471150398254,
0.13202983140945435,
0.23997622728347778,
0.2614590525627136,
0.08916295319795609,
-0.04477725178003311,
-0.2854475975036621,
0.14240604639053345,
-0.04162244498729706,
-0.029398050159215927,
0.2343936711549759,
-0.22527861595153809,
-0.08140259981155396,
-0.2844703197479248,
-0.10787171870470047,
0.19003379344940186,
0.33330368995666504,
-0.27338486909866333,
-0.22537711262702942,
-0.277877539396286,
-0.08119918406009674,
-0.20232853293418884,
-0.260531485080719,
-0.4937744140625,
-0.3111182451248169,
0.09326407313346863,
0.2138173133134842,
0.0015658363699913025,
-0.0029055122286081314,
-0.24562151730060577,
-0.023508429527282715,
-0.2265373170375824,
0.1571202427148819,
-0.2096744328737259,
-0.23613910377025604,
-0.10603857040405273,
0.08587823808193207,
0.4665776491165161,
0.4596543610095978,
0.5857222676277161,
-0.29452815651893616,
0.29092729091644287,
-0.32503288984298706,
-0.49250081181526184,
0.10655021667480469,
-0.1111656129360199,
0.3061677813529968,
0.02784843184053898,
0.006420418620109558,
-0.03305107355117798,
-0.043122123926877975,
0.0325089730322361,
0.01702059805393219,
-0.08607979863882065,
-0.1726718246936798,
-0.05781837925314903,
-0.17689818143844604,
-0.044668976217508316,
-0.5428528785705566,
-0.18469230830669403,
-0.372265100479126,
0.0926659107208252,
-0.14137935638427734,
0.14812631905078888,
0.10805894434452057,
0.06081847473978996,
0.20767273008823395,
-0.1641066074371338,
0.21284452080726624,
-0.25286298990249634,
-0.04716133698821068,
0.48315295577049255,
-0.3762436509132385,
-0.28607869148254395,
0.5221697688102722,
0.0618426650762558,
0.3283829092979431,
-0.2235667109489441,
-0.2752350866794586,
0.19388006627559662,
0.20085948705673218,
0.06146074831485748,
-0.020401855930685997,
-0.0826197937130928,
0.2799646854400635,
0.21537171304225922,
0.044646456837654114,
-0.2033182978630066,
-0.20754779875278473,
-0.16182397305965424,
-0.06513145565986633,
-0.012048948556184769,
0.03916393965482712,
0.1518172025680542,
-0.043234169483184814,
0.419506698846817,
0.030005954205989838,
0.18428584933280945,
0.3928277790546417,
-0.012865021824836731,
0.3791911005973816,
0.047049928456544876,
-0.3830394446849823,
0.19773143529891968,
0.040178082883358,
0.18016813695430756,
0.262178897857666,
0.08099638670682907,
0.14867691695690155,
-0.0885649174451828,
-0.15982532501220703,
-0.3769286274909973,
-0.22435706853866577,
0.19702443480491638,
-0.14069315791130066,
0.09613041579723358,
-0.194437637925148,
0.011747993528842926,
-0.11416797339916229,
-0.20630408823490143,
0.2016548216342926,
0.8246315121650696,
-0.1158844456076622,
0.15930886566638947,
-0.384501576423645,
0.26317644119262695,
-0.027377422899007797,
0.06666476279497147,
0.17261172831058502,
0.1781700998544693,
-0.3565506637096405,
0.21468380093574524,
-0.030537068843841553,
0.2248924970626831,
0.3928492069244385,
-0.7406406998634338,
-0.05744175240397453,
0.2093595564365387,
0.17879310250282288,
0.16524380445480347,
-0.039343543350696564,
-0.08031243085861206,
0.10391075909137726,
0.12803833186626434,
0.2370578646659851,
-0.20504286885261536,
-0.15062671899795532,
-0.16255341470241547,
0.01576167717576027,
0.10637374967336655,
-0.25576531887054443,
-0.04093542695045471,
-0.25790315866470337,
-0.5642451643943787,
-0.0782642811536789,
0.15247264504432678,
-0.20037466287612915,
-0.2615467309951782,
-0.22121182084083557,
0.19587492942810059,
0.1203879788517952,
0.27474626898765564,
0.08231787383556366,
0.058877430856227875,
0.2790195345878601,
0.08772742748260498,
0.23928824067115784,
0.07097610831260681,
0.7544960379600525,
0.39730679988861084,
-0.23983800411224365,
-0.3075884282588959,
0.060138192027807236,
-0.8074311017990112,
0.38098710775375366,
0.05400984361767769,
0.24220962822437286,
0.05585530027747154,
0.2597580850124359,
-0.4497743546962738,
-0.19207219779491425,
0.02205059677362442,
0.08745065331459045,
0.008010827004909515,
-0.3625234365463257,
-0.6086063981056213,
0.32062041759490967,
0.2070431113243103,
-0.05922281742095947,
0.21836510300636292,
-0.10706256330013275,
-0.39871230721473694,
-0.129047691822052,
0.23114529252052307,
0.9148774147033691,
0.0308576337993145,
-0.17122283577919006,
-0.34515756368637085,
-0.4033823013305664,
0.15485255420207977,
-0.30344700813293457,
-0.08842164278030396,
-0.22180543839931488,
0.11094764620065689,
-0.09891752898693085,
-0.03354041650891304,
0.47105178236961365,
0.2911984920501709,
-0.294273316860199,
0.07002647966146469,
0.22380909323692322,
0.2063959538936615,
-0.05180596187710762,
0.7011326551437378,
-0.3197647035121918,
-0.33442842960357666,
0.30890530347824097,
0.17336353659629822,
-0.015811054036021233,
0.015183920040726662,
-0.0882289856672287,
-0.41428977251052856,
-0.1256171464920044,
-0.021039940416812897,
-0.4336163103580475,
-0.2997393012046814,
-0.07214949280023575,
-0.26907068490982056,
-0.27098676562309265,
-0.0649745762348175,
0.4915100336074829,
0.25417405366897583,
0.5265601873397827,
0.1324874460697174,
-0.4326540529727936,
0.04839246720075607,
0.033251479268074036,
-0.22024738788604736,
-0.16510280966758728,
-0.12304025888442993,
0.41455838084220886,
-0.12072664499282837,
-0.2863668203353882,
0.0005598999559879303,
-0.07331874221563339,
-0.028563976287841797,
-0.2847561538219452,
-0.08501215279102325,
0.20723319053649902,
-0.28113648295402527,
0.12839213013648987,
-0.15353240072727203,
-0.09041683375835419,
-0.2006104588508606,
0.18200238049030304,
0.21205517649650574,
-0.07147002220153809,
0.05069202557206154,
0.09958761930465698,
-0.08413927257061005,
-0.12225071340799332,
0.21399730443954468,
-0.21509701013565063,
-0.005841642618179321,
0.07045824825763702,
0.10204899311065674,
-0.2353195697069168,
-0.3233814239501953,
0.07025287300348282,
0.08864517509937286,
-0.2820441424846649,
-0.3095585107803345,
0.061412788927555084,
-0.03524346649646759,
0.09505735337734222,
0.13287970423698425,
0.20427116751670837,
-0.018508967012166977,
0.0005059018731117249,
-0.3790470361709595,
-0.370239794254303,
0.03422392159700394,
-0.26738590002059937,
0.15352612733840942,
-0.2898293733596802,
-0.2604178190231323,
0.22452281415462494,
0.1190139651298523,
-0.3590899705886841,
-0.05048460513353348,
-0.011052675545215607,
0.13220305740833282,
0.079983651638031,
0.13673615455627441,
-0.21018239855766296,
-0.3123737573623657,
0.01329880952835083,
0.05808829888701439,
-0.2618292570114136,
-0.13959260284900665,
-0.15929731726646423,
0.14271023869514465,
0.057481370866298676,
0.015355106443166733,
-0.17454490065574646,
-0.24346178770065308,
-0.27246755361557007,
-0.07814095169305801,
0.09277468919754028,
-0.07850518077611923,
-0.011211037635803223,
0.2574883699417114,
0.13864123821258545,
0.24186928570270538,
0.13233143091201782,
0.02551131695508957,
-0.03757732734084129,
0.18369179964065552,
0.021550416946411133,
-0.1092887744307518,
-0.1287727653980255,
0.09879405796527863,
0.2268560826778412,
0.20505087077617645,
0.06786409020423889,
-0.0804055780172348,
0.3333837389945984,
-0.10494162887334824,
0.38145047426223755,
0.5024670958518982,
-0.04275275766849518,
0.17861568927764893,
-0.21686282753944397,
0.08695757389068604,
0.3599408268928528,
0.24236078560352325,
-0.17577436566352844,
-0.1600547730922699,
0.4079790711402893,
-0.10844748467206955,
0.03402308374643326,
0.24462305009365082,
0.6767520904541016,
0.09579110145568848,
-0.2147063910961151,
0.12337248772382736,
0.3482162356376648,
-0.10657081007957458,
0.10277758538722992,
0.39462390542030334,
-0.31017202138900757,
0.09684233367443085,
0.3800019323825836,
0.3323696553707123,
-0.00923212617635727,
0.2448050081729889,
0.07276320457458496,
0.26602548360824585,
0.3410683572292328,
0.22371149063110352,
0.301782488822937,
-0.35409095883369446,
0.3159092366695404,
0.23098480701446533,
0.2680964171886444,
0.1732630580663681,
0.11945289373397827,
0.05127112567424774,
0.22352834045886993,
-0.20307505130767822,
-0.002363763749599457,
0.04386139288544655,
-0.17174756526947021,
0.2513711750507355,
-0.10158390551805496,
-0.18022611737251282,
-0.07697291672229767,
-0.12956862151622772,
0.04709106311202049,
-0.21334786713123322,
-0.06733611971139908,
-0.10051524639129639,
-0.1876315474510193,
-0.050835445523262024,
0.10214781761169434,
-0.05719856545329094,
-0.0003615282475948334,
-0.2093276083469391,
0.06065765768289566,
-0.08968040347099304,
-0.20436729490756989,
0.28440964221954346,
0.11651740223169327,
0.34165310859680176,
0.07791697233915329,
0.01257767528295517,
0.1170877069234848,
-0.05614538863301277,
-0.2006205916404724,
0.14991474151611328,
0.5387471914291382,
0.07977741956710815,
0.16697606444358826,
0.19178572297096252,
0.13721582293510437,
-0.056848205626010895,
-0.008006230928003788,
-0.03287274017930031,
-0.16291120648384094,
0.10685640573501587,
-0.17786797881126404,
0.17302021384239197,
-0.19832965731620789,
-0.1582743227481842,
0.04208478704094887,
-0.2208034098148346,
-0.3285658657550812,
0.7464048862457275,
0.011461962014436722,
0.016664717346429825,
-0.22169287502765656,
0.08084350824356079,
0.2176809310913086,
0.2572935223579407,
0.23598530888557434,
0.051127731800079346,
-0.07885025441646576,
0.04420892894268036,
-0.7780942320823669,
-0.02001376450061798,
-0.21567633748054504,
-0.0004588887095451355,
0.14601849019527435,
-0.2096678912639618,
0.3006262183189392,
0.21809016168117523,
0.2118472158908844,
0.015851229429244995,
0.13952124118804932,
0.18536996841430664,
-0.07829144597053528,
-0.27352243661880493,
0.07687868177890778,
0.18836574256420135,
-0.029858600348234177,
0.00396217405796051,
0.2491554170846939,
0.16650737822055817,
0.061522476375103,
-0.39080435037612915,
0.20399096608161926,
0.04182519018650055,
0.10137417912483215,
0.5442778468132019,
-0.09107974916696548,
0.5890610218048096,
-0.21084749698638916,
0.04967815428972244,
-0.008278010413050652,
0.33363232016563416,
-0.07405512034893036,
0.4311031997203827,
0.09659108519554138,
0.15719693899154663,
-0.12671995162963867,
-0.07822240144014359,
-0.2770255506038666,
0.19780875742435455,
-0.05219918489456177,
0.05930786952376366,
-0.5329077243804932,
0.061382561922073364,
0.0637989491224289,
-0.09557124972343445,
0.10468912124633789,
-0.15253688395023346,
0.013946542516350746,
-0.053996264934539795,
-0.1509704738855362,
-0.2541344165802002,
0.4322206676006317,
-0.05792628601193428,
-0.09954296052455902,
0.022174637764692307,
0.020163416862487793,
0.406052827835083,
0.20046931505203247,
-0.8780806064605713,
0.052876442670822144,
0.4730554223060608,
-0.0019280295819044113,
-0.18710841238498688,
0.09645578265190125,
-0.015066700056195259,
0.057180002331733704,
-0.16430562734603882,
0.1252109706401825,
0.08836705982685089,
-0.14502662420272827,
-0.12717083096504211,
-0.1554461419582367
] |
https://github.com/huggingface/datasets/issues/2089 | @lhoestq hmm - ok thanks for the answer.
To be honest I am not sure if this issue can be closed now.
I just wanted to point out that this should either be documented or linked in the documentation.
If you feel like it is (will be) please just close this. | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 51 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
@lhoestq hmm - ok thanks for the answer.
To be honest I am not sure if this issue can be closed now.
I just wanted to point out that this should either be documented or linked in the documentation.
If you feel like it is (will be) please just close this. | [
-0.18345075845718384,
0.25136494636535645,
-0.1089651957154274,
0.1974366009235382,
0.11071696877479553,
0.33122318983078003,
0.37459027767181396,
0.17199581861495972,
0.03208541125059128,
0.047319196164608,
0.028343573212623596,
0.23826652765274048,
-0.06312786042690277,
0.09270738065242767,
0.0448257252573967,
0.03255195915699005,
0.0677398219704628,
-0.020182259380817413,
0.22821006178855896,
-0.27177858352661133,
-0.18817739188671112,
-0.012063469737768173,
-0.1926741898059845,
-0.26006412506103516,
-0.2601344883441925,
-0.10619109123945236,
-0.1686316877603531,
0.16795121133327484,
-0.41751521825790405,
-0.5190830826759338,
0.017021507024765015,
0.2592078447341919,
0.17945712804794312,
0.06925757229328156,
-0.0001086839911295101,
-0.23778343200683594,
0.22748859226703644,
-0.22224056720733643,
0.012414664030075073,
-0.003968961536884308,
-0.2563706040382385,
-0.39208275079727173,
-0.20116972923278809,
-0.18431422114372253,
0.08136358857154846,
-0.1434149593114853,
-0.11069148778915405,
-0.21706411242485046,
0.18811732530593872,
0.570010244846344,
0.20628005266189575,
-0.25078994035720825,
0.300117164850235,
-0.21435678005218506,
0.4646461009979248,
0.2964089810848236,
-0.14451703429222107,
0.34673935174942017,
0.5063991546630859,
0.11642913520336151,
0.05159939453005791,
0.16784922778606415,
-0.14614073932170868,
0.10657425224781036,
0.31189125776290894,
-0.13323676586151123,
0.44173410534858704,
-0.5099038481712341,
0.24963967502117157,
0.3756166100502014,
1.1862670183181763,
-0.18973658978939056,
-0.14405682682991028,
-0.3056924343109131,
0.07485613971948624,
-0.04991452395915985,
0.16177263855934143,
0.3897082805633545,
0.014175038784742355,
0.14416243135929108,
0.13837240636348724,
-0.380475252866745,
-0.3181424140930176,
0.06084713712334633,
0.11162813007831573,
0.419542133808136,
-0.07796460390090942,
-0.07542110234498978,
0.14781054854393005,
-0.08499304205179214,
0.2784859836101532,
0.05703594535589218,
-0.2141941636800766,
0.2259548306465149,
0.18925540149211884,
-0.11223987489938736,
-0.3635401129722595,
-0.1978415548801422,
0.21185550093650818,
-0.17355462908744812,
-0.053695015609264374,
0.030630771070718765,
-0.01668182760477066,
0.28244444727897644,
0.18403759598731995,
-0.09895402193069458,
0.15546289086341858,
0.26764148473739624,
0.10741882026195526,
-0.22809705138206482,
0.27068594098091125,
-0.06822683662176132,
-0.228181391954422,
-0.13001011312007904,
-0.025022435933351517,
0.041349295526742935,
-0.06686839461326599,
-0.34557682275772095,
0.07656796276569366,
-0.04384059086441994,
0.07076522707939148,
-0.14835327863693237,
0.01314515620470047,
0.23653560876846313,
0.01936572790145874,
-0.15802644193172455,
-0.22762233018875122,
0.10915012657642365,
0.013161063194274902,
-0.11871889233589172,
0.019070327281951904,
0.2393929809331894,
-0.12263824790716171,
0.19049856066703796,
0.2675634026527405,
0.05708965286612511,
0.20644310116767883,
0.25711870193481445,
-0.06903836131095886,
-0.21326133608818054,
0.22078639268875122,
-0.035057827830314636,
0.31343021988868713,
0.3436417579650879,
-0.04393055662512779,
0.08691181987524033,
-0.08941102027893066,
-0.37844812870025635,
-0.18856942653656006,
0.191226989030838,
-0.5235505104064941,
-0.2824634909629822,
-0.39530447125434875,
0.20593588054180145,
-0.07527844607830048,
0.040586598217487335,
-0.12388423085212708,
0.22089889645576477,
0.12228365242481232,
-0.1311613917350769,
0.17067065834999084,
0.13159237802028656,
-0.37945234775543213,
-0.29313579201698303,
-0.01478482410311699,
0.411275714635849,
-0.3530886173248291,
0.09206978231668472,
-0.1462332308292389,
0.06088999658823013,
-0.09736417979001999,
0.03389323875308037,
-0.320252388715744,
0.31233394145965576,
-0.3375396132469177,
0.19947656989097595,
0.4865383505821228,
-0.6443997621536255,
-0.24905315041542053,
0.16809909045696259,
0.0996948629617691,
-0.3379286825656891,
0.19984041154384613,
-0.07615947723388672,
0.5245916843414307,
-0.24726146459579468,
-0.1961391270160675,
-0.1009451374411583,
-0.12061569839715958,
-0.044988393783569336,
-0.2056625783443451,
0.0024413838982582092,
-0.02799314074218273,
0.1433911919593811,
0.0930468738079071,
-0.008590888231992722,
0.5141077637672424,
0.11154836416244507,
0.11130008846521378,
-0.11304683983325958,
0.2350054532289505,
0.5121797323226929,
0.27800801396369934,
0.07337631285190582,
-0.0036750808358192444,
0.06019311398267746,
-0.34587815403938293,
0.10165400803089142,
0.038181282579898834,
0.2979981005191803,
0.02252596616744995,
-0.2697305679321289,
-0.3078659176826477,
-0.20984980463981628,
-0.30703866481781006,
-0.34663403034210205,
0.1509179323911667,
0.07213564217090607,
-0.28998124599456787,
0.17425668239593506,
-0.05838806554675102,
0.2585524320602417,
-0.022553473711013794,
-0.02296118251979351,
-0.1868533194065094,
0.014731340110301971,
-0.1795286238193512,
0.07141096144914627,
0.3635662794113159,
0.11799755692481995,
0.2934601306915283,
0.06731817126274109,
-0.051296308636665344,
0.17270469665527344,
0.16819584369659424,
0.18678894639015198,
0.19701749086380005,
0.5089139938354492,
0.34858763217926025,
-0.3183598220348358,
0.3216243386268616,
-0.331941157579422,
0.10596038401126862,
-0.2947619557380676,
-0.3823409974575043,
0.09376022219657898,
-0.08751434832811356,
-0.1562453806400299,
-0.09665323793888092,
-0.055042754858732224,
0.15599989891052246,
-0.04309961572289467,
-0.12134349346160889,
-0.41865694522857666,
-0.21394920349121094,
0.1382649540901184,
0.04924830049276352,
0.0433531329035759,
0.15250776708126068,
0.2591988146305084,
0.6951576471328735,
-0.08936487138271332,
0.12333713471889496,
0.047764115035533905,
-0.04440615326166153,
-0.04587821289896965,
0.2343299686908722,
0.17933708429336548,
0.2504529356956482,
0.19508425891399384,
0.26886022090911865,
0.16851802170276642,
-0.025638531893491745,
-0.21547646820545197,
0.11437425762414932,
-0.15649132430553436,
0.05483385547995567,
0.18598762154579163,
-0.2092631757259369,
-0.0657520517706871,
-0.24087604880332947,
0.001968391239643097,
0.17680858075618744,
0.3061314821243286,
-0.27528515458106995,
-0.3088805377483368,
-0.2675400674343109,
-0.010410010814666748,
-0.24294407665729523,
-0.14920014142990112,
-0.5167267322540283,
-0.17433789372444153,
0.06381054222583771,
0.11789940297603607,
0.03700902312994003,
-0.042977649718523026,
-0.18995876610279083,
0.16765394806861877,
-0.2003878653049469,
0.2505880296230316,
-0.18585874140262604,
-0.2149972915649414,
-0.22991688549518585,
0.07945869117975235,
0.46367233991622925,
0.5456963777542114,
0.5315337181091309,
-0.2386777102947235,
0.27869001030921936,
-0.3564070165157318,
-0.4406818449497223,
0.08587189763784409,
-0.04643244668841362,
0.31451186537742615,
-0.06198839843273163,
0.10288192331790924,
-0.04277653247117996,
0.0008728019893169403,
-0.019908754155039787,
0.11118154227733612,
-0.11034376919269562,
-0.2667786478996277,
0.002824261784553528,
-0.3291392922401428,
-0.03901984915137291,
-0.5944358110427856,
-0.1559264063835144,
-0.38573721051216125,
0.07302284985780716,
-0.19424277544021606,
0.2018294334411621,
0.07086985558271408,
-0.011716116219758987,
0.10064762830734253,
-0.1449376344680786,
0.1740792691707611,
-0.3098459243774414,
-0.10015267878770828,
0.47698456048965454,
-0.4734630584716797,
-0.43427497148513794,
0.5254819393157959,
0.0934794545173645,
0.39276137948036194,
-0.1414426565170288,
-0.31363800168037415,
0.22512668371200562,
0.19277280569076538,
-0.2009272575378418,
-0.18187738955020905,
-0.02007417194545269,
0.32674700021743774,
0.21136996150016785,
0.06632140278816223,
-0.20788440108299255,
-0.2461216002702713,
-0.09685909748077393,
-0.008620300330221653,
0.0727899819612503,
-0.019777758046984673,
0.06846767663955688,
-0.004804886877536774,
0.332069456577301,
-0.005123637616634369,
0.2867010235786438,
0.33411890268325806,
-0.006813036277890205,
0.3818560242652893,
0.11769325286149979,
-0.3456971347332001,
0.26547008752822876,
0.05271380767226219,
0.1426992118358612,
0.3200281858444214,
0.12047567218542099,
-0.022079728543758392,
-0.10310618579387665,
-0.20675687491893768,
-0.41003531217575073,
-0.2712361216545105,
0.16203582286834717,
-0.11310897022485733,
0.18740230798721313,
-0.13714604079723358,
0.009538225829601288,
-0.1100553423166275,
-0.18937639892101288,
0.18816587328910828,
0.8119853138923645,
-0.19757124781608582,
0.15778028964996338,
-0.4499604403972626,
0.2427947223186493,
-0.024780884385108948,
0.04627066105604172,
0.20617562532424927,
0.28069210052490234,
-0.4020808935165405,
0.2396637201309204,
0.014631185680627823,
0.2007168084383011,
0.3344193994998932,
-0.6941189169883728,
-0.031309716403484344,
0.24698998034000397,
0.2598073482513428,
0.18587161600589752,
-0.06271879374980927,
-0.05730080232024193,
0.14862903952598572,
0.091074138879776,
0.2207508534193039,
-0.14425353705883026,
-0.20568837225437164,
-0.15842565894126892,
-0.04390134662389755,
0.008981533348560333,
-0.3161908686161041,
-0.045507512986660004,
-0.29976117610931396,
-0.4207755923271179,
-0.1131020188331604,
0.2319420874118805,
-0.2269570529460907,
-0.31904536485671997,
-0.3087128698825836,
0.21100468933582306,
0.07801450788974762,
0.22069552540779114,
0.06088787689805031,
0.08065137267112732,
0.2518095374107361,
0.02754562348127365,
0.21405969560146332,
0.09650858491659164,
0.7797985076904297,
0.37436744570732117,
-0.23505261540412903,
-0.21117328107357025,
0.08049482107162476,
-0.8616190552711487,
0.37139472365379333,
0.2012154459953308,
0.19703008234500885,
-0.05219949781894684,
0.17093035578727722,
-0.42246013879776,
-0.0202348493039608,
0.022151734679937363,
0.13960883021354675,
-0.04436975345015526,
-0.532026469707489,
-0.6122275590896606,
0.28456029295921326,
0.08952675759792328,
-0.05665873736143112,
0.23848818242549896,
-0.028061464428901672,
-0.3622266948223114,
-0.13422343134880066,
0.30180805921554565,
1.077789545059204,
0.016521837562322617,
-0.12008015811443329,
-0.328502357006073,
-0.3679197430610657,
0.14223608374595642,
-0.2336849570274353,
-0.10099619626998901,
-0.32888126373291016,
0.13679566979408264,
-0.09014766663312912,
-0.034989602863788605,
0.4635133147239685,
0.3538166880607605,
-0.3111797869205475,
0.017957676202058792,
0.32680743932724,
0.08490966260433197,
-0.020902274176478386,
0.6265953779220581,
-0.2827163636684418,
-0.23741023242473602,
0.2187495082616806,
0.14732401072978973,
0.06292254477739334,
-0.04083188623189926,
-0.15253840386867523,
-0.4462302625179291,
-0.22234533727169037,
-0.0729607567191124,
-0.39199402928352356,
-0.242404043674469,
-0.1159103661775589,
-0.21787478029727936,
-0.22318372130393982,
-0.05551717430353165,
0.5816287994384766,
0.2120998352766037,
0.47178351879119873,
0.22341087460517883,
-0.42942240834236145,
0.1494554579257965,
0.10075069963932037,
-0.2574826180934906,
-0.09952066093683243,
-0.07141946256160736,
0.36974477767944336,
-0.20659737288951874,
-0.29428333044052124,
-0.045279547572135925,
-0.22114655375480652,
-0.030451908707618713,
-0.3569752871990204,
0.055932220071554184,
0.2022373378276825,
-0.26189160346984863,
0.06482471525669098,
-0.17668481171131134,
-0.13561350107192993,
-0.06110316514968872,
0.1754431128501892,
0.17779815196990967,
0.025732148438692093,
0.14139699935913086,
0.1436351239681244,
-0.10167631506919861,
-0.02008061110973358,
0.2583363652229309,
-0.07170730829238892,
-0.13645045459270477,
0.14516392350196838,
0.05539558827877045,
-0.1846817433834076,
-0.3555239737033844,
0.09283920377492905,
0.03595444932579994,
-0.1644410341978073,
-0.320190966129303,
0.009408429265022278,
-0.040877312421798706,
0.13022246956825256,
0.1905408650636673,
0.14974123239517212,
-0.06663674116134644,
-0.008763320744037628,
-0.3896552324295044,
-0.3948330283164978,
0.01964862272143364,
-0.3371899127960205,
0.12659280002117157,
-0.30143845081329346,
-0.2930762767791748,
0.20619963109493256,
0.04585425555706024,
-0.3518182933330536,
0.046375617384910583,
-0.019558902829885483,
0.11416136473417282,
0.16156239807605743,
0.16691544651985168,
-0.20819473266601562,
-0.26560279726982117,
-0.004330668598413467,
0.09284262359142303,
-0.24211353063583374,
-0.1493668556213379,
-0.10269251465797424,
0.1623726338148117,
0.07018129527568817,
0.017804641276597977,
-0.14156374335289001,
-0.3763383626937866,
-0.2985941171646118,
0.025354929268360138,
0.036317482590675354,
-0.016992107033729553,
-0.02583365887403488,
0.21005073189735413,
0.148545503616333,
0.25031864643096924,
0.047738850116729736,
0.18123739957809448,
-0.03791564330458641,
0.1779121607542038,
-0.029230477288365364,
-0.022249510511755943,
-0.10179337859153748,
0.0560356080532074,
0.36774787306785583,
0.1331213116645813,
-0.0008753836154937744,
-0.010262742638587952,
0.3827042877674103,
-0.09804245084524155,
0.39710116386413574,
0.366828590631485,
-0.11732341349124908,
0.2400018274784088,
-0.2710822820663452,
0.10942225903272629,
0.3641291558742523,
0.22302618622779846,
-0.12839581072330475,
-0.17669092118740082,
0.29058295488357544,
-0.17288917303085327,
-0.052951037883758545,
0.23693224787712097,
0.6858569979667664,
0.037559762597084045,
-0.14107811450958252,
0.12139596045017242,
0.3364262580871582,
-0.06688059866428375,
-0.006633326411247253,
0.3637581765651703,
-0.32108965516090393,
0.025862880051136017,
0.3457221984863281,
0.25614264607429504,
0.02706626057624817,
0.21122965216636658,
0.20784005522727966,
0.15717284381389618,
0.4067310690879822,
0.28545254468917847,
0.21396905183792114,
-0.34923940896987915,
0.3475607931613922,
0.2237093150615692,
0.2600419223308563,
0.20578017830848694,
0.12392885982990265,
0.04048772156238556,
0.3550102710723877,
-0.20746447145938873,
-0.0038649365305900574,
0.00897629838436842,
-0.1628413200378418,
0.25979548692703247,
0.017035558819770813,
-0.17253458499908447,
-0.10710324347019196,
-0.14658358693122864,
-0.04772046580910683,
-0.19302569329738617,
-0.19665643572807312,
-0.03880968689918518,
-0.13258373737335205,
0.0795842632651329,
0.14740201830863953,
0.06816762685775757,
-0.00649382546544075,
-0.18076539039611816,
0.06240972876548767,
-0.11905388534069061,
-0.13881638646125793,
0.32265934348106384,
0.09854060411453247,
0.3425765037536621,
0.18693317472934723,
0.022783946245908737,
0.0996563583612442,
0.09196072816848755,
-0.19911280274391174,
0.15406852960586548,
0.4935735762119293,
0.1587819755077362,
0.22553256154060364,
0.15894228219985962,
0.11605118215084076,
-0.06208944320678711,
-0.010372042655944824,
-0.13676071166992188,
-0.22122952342033386,
0.1200183853507042,
-0.18787606060504913,
0.11107576638460159,
-0.27567917108535767,
-0.18334536254405975,
-0.10390494763851166,
-0.23057186603546143,
-0.35999804735183716,
0.7408992648124695,
-0.03147846460342407,
0.06531283259391785,
-0.24567461013793945,
0.0934501439332962,
0.1306947022676468,
0.32886630296707153,
0.27290862798690796,
0.010978126898407936,
-0.004929868504405022,
-0.12268353998661041,
-0.8196239471435547,
0.05288718640804291,
-0.16500048339366913,
0.010589390993118286,
0.18238192796707153,
-0.17004762589931488,
0.29911407828330994,
0.15115657448768616,
0.20176562666893005,
-0.07784263789653778,
0.14874568581581116,
0.24358360469341278,
-0.1664608120918274,
-0.23811104893684387,
0.12856899201869965,
0.16550111770629883,
-0.056677140295505524,
-0.0922168493270874,
0.2949965000152588,
0.23565837740898132,
0.06850403547286987,
-0.3996610641479492,
0.2636979818344116,
0.02687881886959076,
0.1268492341041565,
0.456240177154541,
-0.05802728235721588,
0.546705424785614,
-0.20635876059532166,
0.019913122057914734,
-0.0018066484481096268,
0.3925987482070923,
0.0396028570830822,
0.4238409101963043,
0.16679184138774872,
0.1110910028219223,
-0.10635881125926971,
-0.07358689606189728,
-0.23899078369140625,
0.22788041830062866,
-0.0945504903793335,
0.11505205929279327,
-0.5860778093338013,
0.050182439386844635,
0.08246446400880814,
-0.03064611181616783,
0.07943342626094818,
-0.11608235538005829,
-0.07485565543174744,
-0.09659186005592346,
-0.21339549124240875,
-0.18239319324493408,
0.466123104095459,
-0.13445357978343964,
-0.14637504518032074,
0.10903587937355042,
0.11536918580532074,
0.26099884510040283,
0.16990752518177032,
-0.8375414609909058,
0.0024475157260894775,
0.4686848223209381,
-0.04556180536746979,
-0.17496126890182495,
0.06438267230987549,
-0.0900101587176323,
0.06796325743198395,
-0.1342228204011917,
0.13633011281490326,
0.08322940766811371,
-0.11875705420970917,
-0.15180565416812897,
-0.17226216197013855
] |
https://github.com/huggingface/datasets/issues/2089 | We're still working on the validation+documentation in this.
Feel free to keep this issue open till we've added them | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 19 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
We're still working on the validation+documentation in this.
Feel free to keep this issue open till we've added them | [
-0.21523365378379822,
0.264982670545578,
-0.12585438787937164,
0.1683344542980194,
0.15319745242595673,
0.29334065318107605,
0.2924141585826874,
0.1951218545436859,
0.03196552395820618,
0.020962607115507126,
0.050094008445739746,
0.20491014420986176,
-0.07927616685628891,
0.10062237083911896,
-0.0031885281205177307,
0.022652151063084602,
0.04879094660282135,
-0.050570834428071976,
0.20978979766368866,
-0.25325116515159607,
-0.11106190830469131,
-0.07210683077573776,
-0.16808071732521057,
-0.21694153547286987,
-0.27961745858192444,
-0.14987210929393768,
-0.12106749415397644,
0.1117400974035263,
-0.5551062226295471,
-0.5625537633895874,
-0.056959234178066254,
0.3236434757709503,
0.20564742386341095,
0.07571211457252502,
-0.00010885611845878884,
-0.23723217844963074,
0.31310540437698364,
-0.19695329666137695,
0.041835904121398926,
-0.013443410396575928,
-0.31865745782852173,
-0.3487754762172699,
-0.14189034700393677,
-0.17904634773731232,
0.07340076565742493,
-0.16689948737621307,
-0.0970635637640953,
-0.12420383840799332,
0.21787919104099274,
0.613963782787323,
0.19205209612846375,
-0.17682428658008575,
0.3337365984916687,
-0.16209115087985992,
0.348605751991272,
0.2870311737060547,
-0.13875794410705566,
0.31517067551612854,
0.43895819783210754,
0.13280503451824188,
-0.0011084191501140594,
0.17296907305717468,
-0.08880272507667542,
0.07424748688936234,
0.3544277548789978,
-0.17406682670116425,
0.4313995838165283,
-0.564296543598175,
0.13734140992164612,
0.4447305202484131,
1.175717830657959,
-0.24660417437553406,
-0.14762963354587555,
-0.2829689383506775,
0.05953430384397507,
0.0118936225771904,
0.20217129588127136,
0.3936530649662018,
0.020163778215646744,
0.14828766882419586,
0.052376385778188705,
-0.29624396562576294,
-0.3464110791683197,
0.02732909470796585,
0.16383551061153412,
0.4449428617954254,
-0.04058658331632614,
-0.16214361786842346,
0.24062886834144592,
-0.0741211324930191,
0.2830769121646881,
-0.005719371140003204,
-0.2207942008972168,
0.2731739282608032,
0.1728253960609436,
-0.14577868580818176,
-0.34484386444091797,
-0.11324518173933029,
0.2412939965724945,
-0.13589483499526978,
-0.05984684079885483,
0.06470117717981339,
-0.0455053448677063,
0.34572210907936096,
0.19969503581523895,
-0.0847960114479065,
0.18499082326889038,
0.24893616139888763,
0.11395583301782608,
-0.19277599453926086,
0.29918983578681946,
-0.0795421451330185,
-0.14906615018844604,
-0.14138510823249817,
0.058341190218925476,
0.10447476804256439,
-0.12328554689884186,
-0.3599948287010193,
0.09388867765665054,
0.004855412989854813,
0.13185317814350128,
-0.20132234692573547,
0.06631214916706085,
0.19653218984603882,
0.022552188485860825,
-0.1681503802537918,
-0.34683188796043396,
0.07081098854541779,
0.051112785935401917,
-0.13527044653892517,
0.024648696184158325,
0.24359135329723358,
-0.14121611416339874,
0.15868911147117615,
0.28759053349494934,
-0.004069607704877853,
0.276680588722229,
0.18197476863861084,
-0.062002263963222504,
-0.20753148198127747,
0.22986339032649994,
-0.07405181229114532,
0.3065568804740906,
0.3483855128288269,
-0.06452186405658722,
-0.07043139636516571,
-0.10154615342617035,
-0.33422625064849854,
-0.22690421342849731,
0.11767934262752533,
-0.37486737966537476,
-0.3299017548561096,
-0.36050841212272644,
0.20990078151226044,
-0.0848122164607048,
0.07804884016513824,
-0.08246192336082458,
0.25969815254211426,
0.14490948617458344,
-0.09138482809066772,
0.18958112597465515,
0.13420367240905762,
-0.24407868087291718,
-0.24462540447711945,
-0.0487651601433754,
0.39327865839004517,
-0.30490463972091675,
0.1307746171951294,
-0.11829683184623718,
-0.03632256016135216,
-0.1880006343126297,
0.0069953687489032745,
-0.3300701975822449,
0.36037111282348633,
-0.2602697014808655,
0.23140619695186615,
0.5233440399169922,
-0.6178889870643616,
-0.1908920407295227,
0.20195272564888,
0.11889111995697021,
-0.3653547465801239,
0.19966545701026917,
-0.12253090739250183,
0.5625221133232117,
-0.30216872692108154,
-0.2760791778564453,
-0.08371813595294952,
-0.20963872969150543,
-0.08623482286930084,
-0.2159944325685501,
0.06583711504936218,
0.0004534022882580757,
0.09255483001470566,
0.08712523430585861,
-0.1019032746553421,
0.49546247720718384,
0.1496521532535553,
0.08101796358823776,
-0.13253681361675262,
0.18712317943572998,
0.4300885796546936,
0.3101039230823517,
0.005164701491594315,
-0.018790969625115395,
0.029772639274597168,
-0.31593987345695496,
0.006874680519104004,
0.07920171320438385,
0.31214645504951477,
0.060248732566833496,
-0.2735973000526428,
-0.30913764238357544,
-0.2166575938463211,
-0.329451322555542,
-0.34892022609710693,
0.16178685426712036,
-0.012899693101644516,
-0.1812310516834259,
0.19812682271003723,
-0.14653412997722626,
0.28032538294792175,
-0.06596285104751587,
0.04615558311343193,
-0.1705377995967865,
-0.024312812834978104,
-0.23450855910778046,
0.07657410204410553,
0.2834572494029999,
0.11288854479789734,
0.23577141761779785,
0.05974704027175903,
-0.03704932704567909,
0.27690449357032776,
0.2859247624874115,
0.1337732970714569,
0.12289592623710632,
0.5454465746879578,
0.4069087505340576,
-0.3052138686180115,
0.3498120903968811,
-0.3611951172351837,
0.005080606788396835,
-0.2370346188545227,
-0.39166203141212463,
0.09733844548463821,
-0.21997302770614624,
-0.1376936435699463,
-0.09118659794330597,
-0.09090590476989746,
0.14511491358280182,
-0.0685640424489975,
-0.21910426020622253,
-0.4312102198600769,
-0.24345070123672485,
0.06874065846204758,
0.012326627969741821,
0.0651024878025055,
0.0938149243593216,
0.1581427901983261,
0.6090505123138428,
-0.11356917023658752,
0.13350766897201538,
0.07392251491546631,
0.0357704758644104,
-0.10658061504364014,
0.22304470837116241,
0.2026786357164383,
0.18155278265476227,
0.1377197802066803,
0.2089841067790985,
0.18370860815048218,
-0.10694222152233124,
-0.23149749636650085,
0.17404073476791382,
-0.17435745894908905,
0.04335320368409157,
0.19605760276317596,
-0.33038488030433655,
-0.010741038247942924,
-0.296442449092865,
-0.029724765568971634,
0.18037793040275574,
0.3155515789985657,
-0.2707267999649048,
-0.27265411615371704,
-0.2162567675113678,
-0.020458348095417023,
-0.1964753419160843,
-0.1118420884013176,
-0.47514429688453674,
-0.21352270245552063,
0.10434028506278992,
0.14216740429401398,
0.03777671605348587,
-0.022237617522478104,
-0.2111310362815857,
0.09613118320703506,
-0.17436610162258148,
0.21976923942565918,
-0.2013038545846939,
-0.22924712300300598,
-0.1875760406255722,
0.09850282967090607,
0.45795121788978577,
0.5772246718406677,
0.48626482486724854,
-0.24764785170555115,
0.2650543451309204,
-0.28787750005722046,
-0.521621823310852,
0.07349546253681183,
-0.03537438064813614,
0.29945623874664307,
-0.05133110284805298,
0.09527291357517242,
-0.017334967851638794,
0.026920821517705917,
-0.08144879341125488,
0.0998435914516449,
-0.18862199783325195,
-0.20197135210037231,
-0.01580691710114479,
-0.31079840660095215,
-0.028934553265571594,
-0.5464144945144653,
-0.17624686658382416,
-0.38261666893959045,
0.03500036150217056,
-0.21768105030059814,
0.17915017902851105,
0.06945979595184326,
0.029038894921541214,
0.08996352553367615,
-0.21298888325691223,
0.20342062413692474,
-0.25114360451698303,
-0.060532987117767334,
0.47756654024124146,
-0.4183158874511719,
-0.41148659586906433,
0.4373295307159424,
0.07203695178031921,
0.3632577657699585,
-0.17379648983478546,
-0.2805131673812866,
0.11504654586315155,
0.16192039847373962,
-0.12446174025535583,
-0.0841161459684372,
-0.005279842764139175,
0.34495872259140015,
0.27257856726646423,
0.07193788141012192,
-0.16323232650756836,
-0.2096584141254425,
-0.14514893293380737,
0.0296204574406147,
0.13145951926708221,
-0.024418190121650696,
0.06787717342376709,
0.010065935552120209,
0.30525314807891846,
0.054094098508358,
0.1991351693868637,
0.34189873933792114,
0.061314888298511505,
0.43218475580215454,
0.1601075530052185,
-0.359463095664978,
0.3082561194896698,
0.04893242567777634,
0.12972572445869446,
0.19273757934570312,
0.0335305891931057,
0.02810426615178585,
-0.09657952934503555,
-0.20877021551132202,
-0.41293227672576904,
-0.2539668679237366,
0.13163989782333374,
-0.19528307020664215,
0.23154468834400177,
-0.13275271654129028,
0.022219792008399963,
0.05305371433496475,
-0.14922918379306793,
0.2017638087272644,
0.8191648721694946,
-0.12928971648216248,
0.12718477845191956,
-0.4532555043697357,
0.2284458875656128,
-0.051644500344991684,
-0.015898168087005615,
0.17341405153274536,
0.22824552655220032,
-0.3218298554420471,
0.2446124255657196,
-0.03931388258934021,
0.18634971976280212,
0.2971588373184204,
-0.7153288722038269,
-0.05428609251976013,
0.15259936451911926,
0.2156132161617279,
0.2075253576040268,
-0.03872508183121681,
-0.08375807851552963,
0.06291832029819489,
0.10479132831096649,
0.26736903190612793,
-0.21660232543945312,
-0.2455441653728485,
-0.1294277310371399,
-0.06403963267803192,
0.04815411567687988,
-0.3154781758785248,
-0.03239375352859497,
-0.32091018557548523,
-0.40094828605651855,
-0.05112667754292488,
0.19866973161697388,
-0.22765453159809113,
-0.33995765447616577,
-0.183265820145607,
0.1877874732017517,
0.11658133566379547,
0.22617201507091522,
0.17512308061122894,
0.1291007399559021,
0.13732239603996277,
0.011145912110805511,
0.20522888004779816,
0.050524529069662094,
0.7449355721473694,
0.29765239357948303,
-0.252868115901947,
-0.20545978844165802,
-0.003678787499666214,
-0.8008687496185303,
0.3690814971923828,
0.09560225903987885,
0.22410020232200623,
-0.12404877692461014,
0.18547423183918,
-0.38758593797683716,
-0.0491371713578701,
0.10454034805297852,
0.071808822453022,
-0.04678882658481598,
-0.5273841023445129,
-0.6166066527366638,
0.25386106967926025,
0.10034890472888947,
-0.0705331563949585,
0.17610149085521698,
-0.03950079530477524,
-0.3721260130405426,
-0.1266319900751114,
0.4468614459037781,
0.9914244413375854,
0.12628298997879028,
-0.2045709788799286,
-0.30647554993629456,
-0.3717338740825653,
0.052141543477773666,
-0.32246294617652893,
-0.14873021841049194,
-0.31639760732650757,
0.13552448153495789,
-0.10691963136196136,
-0.048362601548433304,
0.47401630878448486,
0.33955639600753784,
-0.3923215866088867,
0.04491336643695831,
0.37160956859588623,
0.04689022898674011,
-0.045536626130342484,
0.7784317135810852,
-0.3186798393726349,
-0.23674458265304565,
0.20474396646022797,
0.14856183528900146,
0.05717005208134651,
-0.0882895439863205,
-0.11424367129802704,
-0.439916729927063,
-0.07120731472969055,
-0.1273900270462036,
-0.40613362193107605,
-0.29204505681991577,
-0.10561200976371765,
-0.23477627336978912,
-0.20928379893302917,
-0.03536008298397064,
0.5741903781890869,
0.21899396181106567,
0.5228850841522217,
0.255845844745636,
-0.4140743315219879,
0.12191831320524216,
0.14342805743217468,
-0.25668177008628845,
-0.13210931420326233,
-0.10003625601530075,
0.4088860750198364,
-0.19349297881126404,
-0.27502214908599854,
-0.10792070627212524,
-0.20196302235126495,
0.04913514852523804,
-0.280518114566803,
0.007155124098062515,
0.12333477288484573,
-0.2930009365081787,
0.10044263303279877,
-0.21396952867507935,
-0.19780734181404114,
-0.04956381022930145,
0.183770552277565,
0.1370210200548172,
-0.05015164613723755,
0.2450447678565979,
0.1658848524093628,
-0.029810354113578796,
-0.028801655396819115,
0.18475136160850525,
-0.15993043780326843,
-0.14236792922019958,
0.02017170563340187,
0.012178942561149597,
-0.17608153820037842,
-0.38458526134490967,
0.1371566355228424,
0.08416476845741272,
-0.1237306296825409,
-0.3440844714641571,
-0.024625295773148537,
-0.1328618824481964,
0.13083380460739136,
0.19080179929733276,
0.26276853680610657,
-0.022268757224082947,
0.03868409991264343,
-0.3699914813041687,
-0.3957142233848572,
0.05286189168691635,
-0.27821993827819824,
0.14911630749702454,
-0.34593480825424194,
-0.3236498534679413,
0.16905559599399567,
0.11833028495311737,
-0.3498454689979553,
-0.015138866379857063,
0.04466880112886429,
0.16421759128570557,
0.12444038689136505,
0.10521875321865082,
-0.2040431797504425,
-0.2846585512161255,
-0.0039753541350364685,
0.12827296555042267,
-0.23726873099803925,
-0.1594516634941101,
-0.09152458608150482,
0.16031500697135925,
0.10458292812108994,
0.028122641146183014,
-0.21574079990386963,
-0.2551918625831604,
-0.35547295212745667,
0.001178797334432602,
0.007399789988994598,
-0.09608004242181778,
-0.006895370781421661,
0.31422242522239685,
0.18403103947639465,
0.17503076791763306,
0.06715862452983856,
0.08260217308998108,
-0.048365604132413864,
0.19071808457374573,
0.04350307956337929,
-0.04020913317799568,
-0.047053415328264236,
0.03125379979610443,
0.3196409344673157,
0.22040130198001862,
0.06495454907417297,
-0.019617993384599686,
0.33278411626815796,
-0.03253241255879402,
0.35357433557510376,
0.2818243205547333,
-0.022031787782907486,
0.3322063386440277,
-0.18980753421783447,
0.05792566388845444,
0.38029128313064575,
0.22996127605438232,
-0.11757703125476837,
-0.17092090845108032,
0.2942967712879181,
-0.15550431609153748,
-0.004347912967205048,
0.2126317024230957,
0.6201545596122742,
0.12706682085990906,
-0.10949405282735825,
0.12651826441287994,
0.34981486201286316,
-0.08437913656234741,
0.04552595317363739,
0.3721078038215637,
-0.31278878450393677,
0.01993298903107643,
0.3568807542324066,
0.2236068695783615,
-0.006333149969577789,
0.18968312442302704,
0.24010677635669708,
0.18890173733234406,
0.3412056267261505,
0.27252504229545593,
0.23095670342445374,
-0.22623500227928162,
0.33668583631515503,
0.2455376833677292,
0.22246253490447998,
0.16776394844055176,
0.13814586400985718,
-0.010823480784893036,
0.3621060252189636,
-0.2713712453842163,
-0.08673341572284698,
0.0033021625131368637,
-0.12109015882015228,
0.2783876657485962,
-0.024225953966379166,
-0.20792093873023987,
-0.04683899134397507,
-0.13302043080329895,
0.04221223294734955,
-0.16679057478904724,
-0.12515798211097717,
-0.015796713531017303,
-0.11011993885040283,
0.010661369189620018,
0.2138073742389679,
0.12666937708854675,
0.02822905406355858,
-0.18070918321609497,
0.1252240538597107,
-0.06218073144555092,
-0.14931339025497437,
0.26484769582748413,
0.13934403657913208,
0.3062213957309723,
0.17575934529304504,
-0.033494170755147934,
0.10386179387569427,
0.030080169439315796,
-0.23531457781791687,
0.2081429809331894,
0.5127871632575989,
0.2062884420156479,
0.2292843908071518,
0.1889367252588272,
0.12856164574623108,
-0.02384406328201294,
0.058672934770584106,
-0.15861208736896515,
-0.29414165019989014,
0.11558602750301361,
-0.11737850308418274,
0.2776811122894287,
-0.2918068766593933,
-0.15614236891269684,
-0.05699976906180382,
-0.2494591772556305,
-0.3193225562572479,
0.7226656079292297,
-0.027661530300974846,
0.08749562501907349,
-0.30538493394851685,
0.08537468314170837,
0.20623068511486053,
0.39190953969955444,
0.2959231734275818,
0.010229160077869892,
-0.03856553137302399,
-0.11361435055732727,
-0.8005523681640625,
0.01550128310918808,
-0.14306272566318512,
0.005848780274391174,
0.20739012956619263,
-0.20922315120697021,
0.2151768058538437,
0.25665992498397827,
0.17570829391479492,
-0.0690443217754364,
0.0997631698846817,
0.25928357243537903,
-0.14794191718101501,
-0.15357555449008942,
0.14401736855506897,
0.24052231013774872,
-0.07506735622882843,
-0.03517220914363861,
0.28986048698425293,
0.19193822145462036,
0.06648509204387665,
-0.37752261757850647,
0.27470526099205017,
0.08228056132793427,
0.18151485919952393,
0.40610718727111816,
0.014021636918187141,
0.5782949328422546,
-0.18078497052192688,
0.028242215514183044,
0.010386430658400059,
0.46995893120765686,
-0.021354015916585922,
0.3975282907485962,
0.17314815521240234,
0.116214320063591,
-0.0753772184252739,
-0.09730322659015656,
-0.26722341775894165,
0.26403239369392395,
-0.08819747716188431,
0.04047659784555435,
-0.5378922820091248,
-0.054422665387392044,
0.16393408179283142,
-0.10242043435573578,
0.0689287930727005,
-0.13003110885620117,
-0.04297405481338501,
-0.041747596114873886,
-0.19643519818782806,
-0.25423529744148254,
0.4476867616176605,
-0.08416467159986496,
-0.12622129917144775,
0.08385200798511505,
0.02712523192167282,
0.2643658220767975,
0.1328543722629547,
-0.9024060964584351,
0.04391951858997345,
0.4450133442878723,
-0.08125418424606323,
-0.19155992567539215,
0.07879595458507538,
0.0548194982111454,
0.05584456026554108,
-0.14660973846912384,
0.13136026263237,
0.06189405545592308,
-0.14948555827140808,
-0.2070050984621048,
-0.11947596818208694
] |
https://github.com/huggingface/datasets/issues/2089 | Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use.
It shows the list of all the tags you can use.
It is based on all the tag sets defined in this folder:
https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 36 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use.
It shows the list of all the tags you can use.
It is based on all the tag sets defined in this folder:
https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources | [
-0.286616712808609,
0.09453307092189789,
-0.15884873270988464,
0.19306425750255585,
0.2768501341342926,
0.31561392545700073,
0.26612046360969543,
0.1931912899017334,
0.1716579794883728,
0.023347027599811554,
-0.12728968262672424,
0.24129432439804077,
-0.12643861770629883,
0.3597063422203064,
0.09149059653282166,
0.026762809604406357,
0.08608341962099075,
-0.10283997654914856,
0.15925845503807068,
-0.18457919359207153,
-0.16914495825767517,
0.017429808154702187,
-0.04486612230539322,
-0.16415055096149445,
-0.32863813638687134,
-0.1695871353149414,
-0.12665629386901855,
0.09945624321699142,
-0.41461607813835144,
-0.5925247073173523,
-0.050210677087306976,
0.31106388568878174,
0.2041497379541397,
0.11580729484558105,
-0.0001010502819553949,
-0.2147541344165802,
0.20521724224090576,
-0.23522993922233582,
-0.013936061412096024,
-0.11267609894275665,
-0.17687779664993286,
-0.32792720198631287,
-0.060152895748615265,
-0.10671982169151306,
-0.05971906706690788,
-0.2925768494606018,
-0.08418019860982895,
-0.19045069813728333,
0.19795633852481842,
0.42053890228271484,
0.26861143112182617,
-0.11035070568323135,
0.3406371474266052,
-0.22505316138267517,
0.2706679403781891,
0.1677975207567215,
-0.12398186326026917,
0.43744030594825745,
0.4900670349597931,
0.1472698152065277,
-0.027812689542770386,
0.2508872151374817,
-0.03731987997889519,
0.18734940886497498,
0.4723612070083618,
-0.08203207701444626,
0.24237871170043945,
-0.576803982257843,
0.2497013360261917,
0.38705170154571533,
1.039131760597229,
-0.2780822217464447,
-0.25297558307647705,
-0.3692147135734558,
0.08368249237537384,
-0.14494237303733826,
0.19674214720726013,
0.3172575831413269,
0.024647042155265808,
0.1599290519952774,
-0.021522818133234978,
-0.36351248621940613,
-0.2490014284849167,
0.03080768883228302,
0.18050210177898407,
0.40411850810050964,
-0.11611337959766388,
-0.10122193396091461,
0.23094594478607178,
-0.14537332952022552,
-0.02807384356856346,
0.11795683205127716,
-0.18536342680454254,
0.1704542338848114,
0.12579751014709473,
-0.056418970227241516,
-0.3248477876186371,
-0.06845158338546753,
0.2850891947746277,
-0.025975016877055168,
-0.0902741551399231,
0.09604108333587646,
-0.0556008405983448,
0.28617507219314575,
0.15120694041252136,
-0.10179734230041504,
0.18573176860809326,
0.1761162132024765,
0.12155002355575562,
-0.1716192662715912,
0.21331053972244263,
-0.15623748302459717,
-0.15300723910331726,
-0.09065331518650055,
-0.02751481533050537,
-0.08233889937400818,
-0.15275686979293823,
-0.2826739549636841,
0.020031839609146118,
-0.11338795721530914,
0.09690143913030624,
-0.12563900649547577,
0.024313263595104218,
0.285411536693573,
0.07406201958656311,
-0.21253451704978943,
-0.26713186502456665,
0.18967613577842712,
-0.006165619939565659,
-0.14196044206619263,
-0.04664125293493271,
0.16654495894908905,
-0.12566815316677094,
0.2072860598564148,
0.2524135112762451,
-0.12575386464595795,
0.3280341327190399,
0.13523757457733154,
-0.07582806050777435,
-0.18535253405570984,
0.13547605276107788,
0.0137874074280262,
0.21637821197509766,
0.2859228551387787,
-0.02094365656375885,
0.00562720000743866,
-0.03946633264422417,
-0.4076997637748718,
-0.23940831422805786,
-0.03690696507692337,
-0.41101592779159546,
-0.2267908751964569,
-0.3655213415622711,
0.2676395773887634,
-0.12431960552930832,
-0.04593219608068466,
-0.20273429155349731,
0.3219771683216095,
0.08121554553508759,
0.04503268748521805,
0.16627994179725647,
0.2537733316421509,
-0.3481634557247162,
-0.2576189339160919,
0.030251793563365936,
0.4434049129486084,
-0.262056827545166,
-0.11566496640443802,
0.06251899898052216,
-0.08723485469818115,
-0.1335524320602417,
0.01852085068821907,
-0.2578814625740051,
0.2984241247177124,
-0.2528006434440613,
0.26485002040863037,
0.37748008966445923,
-0.46077781915664673,
-0.16829197108745575,
0.07593439519405365,
0.021000489592552185,
-0.342953622341156,
0.15426716208457947,
-0.045794252306222916,
0.47413766384124756,
-0.17839854955673218,
-0.1736370325088501,
0.021554522216320038,
-0.13560545444488525,
0.038315460085868835,
-0.17076055705547333,
-0.026744011789560318,
0.04208385571837425,
0.14779244363307953,
0.0901242345571518,
-0.09279072284698486,
0.39239296317100525,
0.08401332050561905,
-0.0065961070358753204,
-0.12466080486774445,
0.16669347882270813,
0.3540770411491394,
0.18076995015144348,
0.18788322806358337,
-0.009458027780056,
-0.10037169605493546,
-0.44681161642074585,
0.10828188061714172,
0.07804958522319794,
0.2980457544326782,
-0.018167074769735336,
-0.30649861693382263,
-0.366393119096756,
-0.24085283279418945,
-0.3977142572402954,
-0.3615730106830597,
0.18908798694610596,
0.03035583533346653,
-0.12492622435092926,
0.1889827847480774,
-0.17470872402191162,
0.20965716242790222,
-0.026315849274396896,
0.1258699595928192,
-0.28288084268569946,
-0.05410657823085785,
-0.18976512551307678,
-0.012179266661405563,
0.35334181785583496,
0.08893725275993347,
0.20291396975517273,
-0.004182077944278717,
-0.05476543307304382,
0.3221331536769867,
0.17338010668754578,
0.27282509207725525,
0.23412013053894043,
0.5424047708511353,
0.3943712115287781,
-0.3049965500831604,
0.28065595030784607,
-0.3187289535999298,
0.098284512758255,
-0.2413080930709839,
-0.425342321395874,
0.1217970997095108,
-0.21087083220481873,
-0.08557190001010895,
-0.08782310038805008,
-0.04318879172205925,
0.20232586562633514,
0.025789529085159302,
-0.14155685901641846,
-0.4092409014701843,
-0.19960829615592957,
-0.09293738007545471,
0.13402192294597626,
-0.014262478798627853,
0.07029034197330475,
0.15935762226581573,
0.6423453092575073,
-0.010372906923294067,
0.10533422231674194,
0.1113666445016861,
-0.11600832641124725,
0.01884940266609192,
0.23011963069438934,
0.15411220490932465,
0.08343386650085449,
0.2618066668510437,
0.2813137471675873,
0.1955118179321289,
0.012178141623735428,
-0.28201407194137573,
0.15821784734725952,
-0.0850910097360611,
-0.008879471570253372,
0.1671549677848816,
-0.20944756269454956,
-0.1137014627456665,
-0.2982534170150757,
-0.013009853661060333,
0.10259722173213959,
0.2986980080604553,
-0.29725223779678345,
-0.2102067619562149,
-0.30443471670150757,
-0.19053985178470612,
-0.24613282084465027,
-0.24861007928848267,
-0.5396837592124939,
-0.24662303924560547,
0.083643838763237,
0.0687137246131897,
0.018368102610111237,
0.0576094314455986,
-0.1129017323255539,
0.01859872043132782,
-0.22591492533683777,
0.24943940341472626,
-0.16715511679649353,
-0.21854259073734283,
-0.11166033893823624,
0.15299183130264282,
0.5170537233352661,
0.4568580090999603,
0.6414662599563599,
-0.35836848616600037,
0.253612220287323,
-0.24703244864940643,
-0.4476347267627716,
0.12780356407165527,
-0.09855598211288452,
0.27601680159568787,
0.0628415197134018,
0.08695088326931,
-0.032417215406894684,
0.03356073424220085,
0.12976498901844025,
-0.026087168604135513,
-0.12149380892515182,
-0.2069977968931198,
-0.02157769352197647,
-0.2263171374797821,
-0.062215909361839294,
-0.5958683490753174,
-0.21169233322143555,
-0.4526795744895935,
0.17332495748996735,
-0.11795103549957275,
0.16487038135528564,
0.18940690159797668,
-0.00553024560213089,
0.24143725633621216,
-0.22197261452674866,
0.25685441493988037,
-0.26771068572998047,
-0.13667945563793182,
0.3523484468460083,
-0.4366492033004761,
-0.3181602954864502,
0.5248669385910034,
0.20301374793052673,
0.4070844054222107,
-0.1904558688402176,
-0.2272372841835022,
0.03990410268306732,
0.14607301354408264,
-0.005459681153297424,
0.04565242677927017,
0.04508552700281143,
0.20715808868408203,
0.18424183130264282,
0.01266273483633995,
-0.14879651367664337,
-0.1339661180973053,
-0.1094261035323143,
-0.15330025553703308,
-0.04526298865675926,
0.0002431906759738922,
0.12601108849048615,
-0.0166642963886261,
0.4119056165218353,
0.20078016817569733,
0.1465076357126236,
0.433197557926178,
-0.03869891166687012,
0.3499615490436554,
0.007420282810926437,
-0.3237251937389374,
0.24139545857906342,
0.03198666870594025,
0.20891450345516205,
0.3521709144115448,
0.1811697632074356,
0.11117995530366898,
-0.1400904357433319,
-0.18475958704948425,
-0.4298864006996155,
-0.24746260046958923,
0.15734773874282837,
-0.07367245107889175,
0.14956992864608765,
-0.24708446860313416,
0.059907346963882446,
0.06619809567928314,
-0.20990893244743347,
0.26346784830093384,
0.721168041229248,
-0.1686716079711914,
0.17188970744609833,
-0.40082061290740967,
0.13141125440597534,
-0.08367308229207993,
0.10110535472631454,
0.16514793038368225,
0.0881720781326294,
-0.3792566657066345,
0.15646909177303314,
0.041223153471946716,
0.17430797219276428,
0.3637606203556061,
-0.6297621726989746,
-0.05664564669132233,
0.16254517436027527,
0.15333977341651917,
0.16710877418518066,
0.06257002055644989,
-0.07570891827344894,
0.059778254479169846,
0.16868387162685394,
0.30571478605270386,
-0.3238653838634491,
-0.23827005922794342,
-0.19111979007720947,
0.0012685023248195648,
0.0694751963019371,
-0.19673611223697662,
-0.035805996507406235,
-0.2466350495815277,
-0.5505591630935669,
-0.06428758800029755,
0.15550391376018524,
-0.1778167188167572,
-0.21486985683441162,
-0.1831832230091095,
0.15841767191886902,
0.11107784509658813,
0.21557751297950745,
0.22875697910785675,
0.13626766204833984,
0.18196649849414825,
0.05075513571500778,
0.3108939826488495,
0.07808094471693039,
0.6399565935134888,
0.4952017068862915,
-0.3066951632499695,
-0.2850317358970642,
-0.00712704099714756,
-0.6396300792694092,
0.3948834240436554,
0.08349165320396423,
0.2394912838935852,
-0.05769198387861252,
0.22035394608974457,
-0.3084162175655365,
-0.18507100641727448,
0.0404486283659935,
0.015322331339120865,
0.07671567797660828,
-0.42579570412635803,
-0.581758975982666,
0.382216215133667,
0.14451247453689575,
-0.03739001601934433,
0.17839406430721283,
0.019167345017194748,
-0.36159273982048035,
-0.11244077980518341,
0.28350257873535156,
0.9116522073745728,
-0.03479282185435295,
-0.19592615962028503,
-0.2540160119533539,
-0.3699357807636261,
0.19584670662879944,
-0.2573850750923157,
-0.18428777158260345,
-0.24107123911380768,
0.12396515905857086,
-0.05341639369726181,
0.012265697121620178,
0.4137493371963501,
0.309144526720047,
-0.38997194170951843,
0.1745360940694809,
0.2809736132621765,
0.07068058848381042,
-0.12508152425289154,
0.7324374318122864,
-0.30975791811943054,
-0.3987356424331665,
0.04993879422545433,
0.23093914985656738,
-0.09879931807518005,
0.02675466611981392,
-0.06316675990819931,
-0.4066275954246521,
-0.031203821301460266,
0.03071548044681549,
-0.34341293573379517,
-0.27801474928855896,
-0.15242581069469452,
-0.29904893040657043,
-0.14135879278182983,
0.000401422381401062,
0.4997798204421997,
0.22156107425689697,
0.48009514808654785,
0.11989492923021317,
-0.4500294029712677,
0.07063177227973938,
-0.03439469262957573,
-0.19115304946899414,
-0.153199702501297,
-0.03265485167503357,
0.4229026436805725,
-0.1708020567893982,
-0.18037617206573486,
-0.08461812138557434,
0.016716867685317993,
0.11342626065015793,
-0.2783229351043701,
-0.07450246810913086,
0.14159555733203888,
-0.31835395097732544,
0.18766939640045166,
-0.22711339592933655,
-0.1258002072572708,
-0.14712630212306976,
0.22405296564102173,
0.148853600025177,
-0.045738495886325836,
0.07887426018714905,
0.23666781187057495,
-0.06271423399448395,
-0.14448875188827515,
0.1992688775062561,
-0.19471411406993866,
-0.06801409274339676,
-0.0035507718566805124,
0.18395496904850006,
-0.2444024533033371,
-0.36528480052948,
0.07152636349201202,
0.09709029644727707,
-0.29109734296798706,
-0.22420454025268555,
0.12692269682884216,
-0.08332981169223785,
0.08546658605337143,
0.2186804860830307,
0.1883479356765747,
-0.12387816607952118,
0.013475686311721802,
-0.3131445050239563,
-0.3636690080165863,
0.07124963402748108,
-0.1343921422958374,
0.17808252573013306,
-0.3083217144012451,
-0.22609639167785645,
0.22046062350273132,
0.16329404711723328,
-0.422583669424057,
-0.08447794616222382,
-0.02637377381324768,
0.10502374172210693,
0.13140122592449188,
0.08049680292606354,
-0.07601963728666306,
-0.20775070786476135,
0.032126836478710175,
0.15388882160186768,
-0.32120251655578613,
-0.2053707242012024,
-0.1563447117805481,
0.10448168218135834,
-0.0265800878405571,
-0.018757671117782593,
-0.134359672665596,
-0.16242748498916626,
-0.27307355403900146,
-0.10607853531837463,
0.14215300977230072,
-0.07770971208810806,
-0.030681423842906952,
0.227683424949646,
0.20365841686725616,
0.15462297201156616,
0.11255033314228058,
-0.023295335471630096,
0.03423038125038147,
0.21080511808395386,
0.03692028671503067,
-0.17079339921474457,
-0.15420329570770264,
0.015604659914970398,
0.2406659722328186,
0.2459496557712555,
0.1718396097421646,
-0.1532496064901352,
0.32326698303222656,
-0.07174888253211975,
0.31823307275772095,
0.4493519961833954,
0.07567517459392548,
0.23002852499485016,
-0.16026124358177185,
0.14816930890083313,
0.39298737049102783,
0.3036416471004486,
-0.13575509190559387,
-0.14407314360141754,
0.26807525753974915,
-0.14213669300079346,
0.059187084436416626,
0.3028165102005005,
0.5868410468101501,
0.11363106966018677,
-0.1470521092414856,
0.06025746464729309,
0.3613985478878021,
-0.13029614090919495,
0.10258527845144272,
0.2724302411079407,
-0.26735469698905945,
0.042676012963056564,
0.42619338631629944,
0.3482818007469177,
0.06479182094335556,
0.18362843990325928,
0.08377767354249954,
0.3153513967990875,
0.275912880897522,
0.2919808626174927,
0.21431244909763336,
-0.28173068165779114,
0.19229014217853546,
0.24285465478897095,
0.23433232307434082,
0.19101658463478088,
0.06428631395101547,
0.23526106774806976,
0.20196141302585602,
-0.34950336813926697,
-0.02408159151673317,
0.18415643274784088,
-0.12169000506401062,
0.20931236445903778,
-0.04179762676358223,
-0.173892080783844,
-0.15528307855129242,
-0.058513954281806946,
-0.029058929532766342,
-0.33987540006637573,
-0.0005945302546024323,
-0.09073569625616074,
-0.10265645384788513,
-0.14300227165222168,
-0.00010464712977409363,
0.004643930122256279,
0.1416654884815216,
-0.2170206904411316,
0.17823007702827454,
-0.036396536976099014,
-0.12864750623703003,
0.24890029430389404,
0.179615318775177,
0.33871325850486755,
0.1064286082983017,
0.004988010972738266,
0.1239868775010109,
-0.08109322190284729,
-0.1823846995830536,
0.06757790595293045,
0.4848439693450928,
0.06366662681102753,
0.1557959020137787,
0.20961043238639832,
0.15933340787887573,
-0.14251209795475006,
-0.04258156567811966,
-0.22611594200134277,
-0.06343203037977219,
0.0810692235827446,
-0.20031589269638062,
0.06509701907634735,
-0.1656089872121811,
-0.20102350413799286,
-0.07082190364599228,
-0.3651632070541382,
-0.135748028755188,
0.5536831617355347,
-0.056329548358917236,
0.05734505131840706,
-0.2745267152786255,
0.11981819570064545,
0.2667571008205414,
0.3728232681751251,
0.18857541680335999,
0.11641445755958557,
-0.030619515106081963,
-0.08405045419931412,
-0.7492573857307434,
-0.07264572381973267,
-0.09139630198478699,
0.013757199048995972,
0.13573357462882996,
-0.17103955149650574,
0.2055642306804657,
0.26959219574928284,
0.12366887927055359,
0.010231774300336838,
0.16599054634571075,
0.1899448186159134,
-0.11428031325340271,
-0.21078282594680786,
-0.011523179709911346,
0.15439549088478088,
0.0576939657330513,
0.03331497311592102,
0.23401546478271484,
0.052460454404354095,
0.06890067458152771,
-0.328601598739624,
0.29450637102127075,
-0.006517872214317322,
0.07377737760543823,
0.4180585443973541,
-0.08500435203313828,
0.4787152409553528,
-0.19538742303848267,
0.01740654557943344,
-0.022914133965969086,
0.1985989212989807,
-0.13946235179901123,
0.40790897607803345,
0.1480744481086731,
0.20087547600269318,
-0.09285040199756622,
-0.1245313435792923,
-0.2761181592941284,
0.20356513559818268,
-0.05659167468547821,
0.06933996826410294,
-0.4167179465293884,
0.01293548196554184,
0.12362582981586456,
-0.15462839603424072,
0.0853094682097435,
0.050872474908828735,
-0.007576305419206619,
-0.1288851797580719,
-0.19279980659484863,
-0.2794755697250366,
0.4735988676548004,
-0.06923583149909973,
-0.11550544202327728,
0.12133657932281494,
0.009320847690105438,
0.4011225700378418,
0.06227049231529236,
-0.9307848215103149,
0.1676553189754486,
0.4140990972518921,
0.0344725027680397,
-0.2256738841533661,
0.1757378876209259,
-0.0129388477653265,
-0.015529200434684753,
-0.19148164987564087,
0.18286029994487762,
0.07117220759391785,
-0.11266328394412994,
-0.06457209587097168,
-0.12526915967464447
] |
https://github.com/huggingface/datasets/issues/2089 | I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can discuss this | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 52 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can discuss this | [
-0.1301451325416565,
-0.03524297475814819,
-0.05321868509054184,
0.24710454046726227,
0.2942430078983307,
0.2559414505958557,
0.4152010679244995,
0.1293424665927887,
0.09287899732589722,
-0.04842432588338852,
-0.1729552149772644,
0.07008889317512512,
-0.17187120020389557,
0.3322661221027374,
0.11022821068763733,
-0.07998683303594589,
0.07458198070526123,
-0.06401215493679047,
0.08292954415082932,
-0.34254100918769836,
-0.12059975415468216,
0.04733095318078995,
0.00860564410686493,
-0.15901657938957214,
-0.3415006697177887,
-0.064756378531456,
-0.10810865461826324,
0.08788243681192398,
-0.366105318069458,
-0.4418184459209442,
0.034378379583358765,
0.3645287752151489,
0.27533334493637085,
0.20003001391887665,
-0.0001122495814342983,
-0.08206778019666672,
0.20179830491542816,
-0.29372191429138184,
0.08058519661426544,
-0.06951603293418884,
-0.1306842416524887,
-0.22356021404266357,
0.0002540498971939087,
-0.16599825024604797,
-0.0443720817565918,
-0.11045598238706589,
-0.08385130017995834,
0.07290870696306229,
0.43705007433891296,
0.37518614530563354,
0.148133784532547,
0.15687155723571777,
0.3579423427581787,
-0.07536280155181885,
0.39063286781311035,
0.5329561829566956,
-0.17211425304412842,
0.3704754114151001,
0.40026235580444336,
0.13447678089141846,
-0.008602648973464966,
0.34295541048049927,
0.010265275835990906,
0.08151178061962128,
0.5320786833763123,
0.06147650629281998,
0.457728773355484,
-0.49992918968200684,
0.07460479438304901,
0.49686911702156067,
0.8872467875480652,
-0.27786293625831604,
-0.3920513391494751,
-0.4509528875350952,
0.05117339268326759,
-0.0022101178765296936,
0.127515971660614,
0.22921407222747803,
-0.022325579077005386,
0.2023371309041977,
-0.03596262261271477,
-0.39701616764068604,
-0.29501092433929443,
-0.0164492130279541,
0.21325822174549103,
0.5303968787193298,
-0.08309870958328247,
-0.048389073461294174,
0.20289286971092224,
-0.07507186383008957,
0.03790657967329025,
-0.02093011699616909,
-0.13303114473819733,
0.18088406324386597,
0.1829432249069214,
-0.27205780148506165,
-0.4023818373680115,
-0.009105287492275238,
0.28358033299446106,
-0.12887176871299744,
-0.09295672178268433,
0.010474719107151031,
-0.05702712759375572,
0.2156037539243698,
0.2461789846420288,
-0.07066524028778076,
-0.10412193834781647,
0.2844151258468628,
0.1489339917898178,
-0.06323661655187607,
0.3504866361618042,
-0.1537153571844101,
-0.14323978126049042,
0.032052118331193924,
-0.16252917051315308,
-0.05854291841387749,
-0.1197233647108078,
-0.21734718978405,
0.16576619446277618,
-0.18949933350086212,
0.224590465426445,
-0.11914125084877014,
0.08653820306062698,
0.3314213454723358,
0.06749007850885391,
-0.13504858314990997,
-0.2403622716665268,
0.08499521017074585,
0.05126721411943436,
-0.1340709626674652,
-0.029530413448810577,
0.08564545214176178,
-0.1304163634777069,
0.256633996963501,
0.2308347225189209,
-0.045377496629953384,
0.2571467161178589,
0.0018116123974323273,
0.11419184505939484,
-0.09511599689722061,
0.0790749043226242,
0.05530143156647682,
0.1696840077638626,
0.37545427680015564,
-0.2198621779680252,
0.04221770167350769,
-0.05932921543717384,
-0.38386058807373047,
-0.2995627522468567,
0.06807802617549896,
-0.3602793216705322,
-0.28454622626304626,
-0.37642398476600647,
0.13326750695705414,
-0.17126861214637756,
0.0672326385974884,
-0.25173047184944153,
0.29263949394226074,
0.19820213317871094,
-0.09825042635202408,
0.27114078402519226,
0.2577008605003357,
-0.26461923122406006,
-0.15254348516464233,
0.054329171776771545,
0.5442985892295837,
-0.15501850843429565,
-0.24142321944236755,
-0.012160073965787888,
-0.015332402661442757,
-0.25386181473731995,
0.1582326591014862,
-0.31047314405441284,
0.2880327105522156,
-0.21257942914962769,
0.195470929145813,
0.3075236678123474,
-0.5969018340110779,
-0.2878672480583191,
0.18992161750793457,
0.04410111904144287,
-0.24301782250404358,
0.27520906925201416,
-0.009863816201686859,
0.4363814890384674,
-0.2221132218837738,
-0.22169646620750427,
-0.116481713950634,
-0.14547497034072876,
0.03004256635904312,
-0.1788654923439026,
-0.18242430686950684,
0.1801668107509613,
0.17706818878650665,
0.1427144706249237,
-0.00565284863114357,
0.28130966424942017,
0.31773653626441956,
0.18076013028621674,
-0.08943706750869751,
0.1050366461277008,
0.39709293842315674,
0.34766194224357605,
0.034450724720954895,
0.05760848522186279,
-0.09566567093133926,
-0.6226605176925659,
0.036994628608226776,
-0.04078007489442825,
0.3914709687232971,
-0.07539903372526169,
-0.323852002620697,
-0.26405730843544006,
-0.2537074685096741,
-0.31155046820640564,
-0.44227316975593567,
0.0766933336853981,
-0.049022477120161057,
-0.23233702778816223,
0.11212003231048584,
-0.27602189779281616,
0.32504475116729736,
0.08415853977203369,
0.17670226097106934,
-0.42315423488616943,
0.0879206508398056,
-0.3023083806037903,
0.0981675386428833,
0.24127018451690674,
0.10989925265312195,
0.12735870480537415,
-0.0951986163854599,
0.009488075971603394,
0.23343653976917267,
-0.021051468327641487,
0.2175310254096985,
0.09824611246585846,
0.66241455078125,
0.5612779855728149,
-0.3053039610385895,
0.1880624145269394,
-0.2835327088832855,
0.09846650063991547,
-0.18101006746292114,
-0.5105969309806824,
0.06831793487071991,
-0.18711252510547638,
-0.05704352259635925,
-0.002772130072116852,
-0.10046510398387909,
0.19076915085315704,
0.032071828842163086,
-0.2853167653083801,
-0.355647474527359,
-0.23454336822032928,
0.09649720788002014,
0.23932252824306488,
0.0928761288523674,
0.1901286095380783,
0.06278598308563232,
0.7504203915596008,
-0.12580043077468872,
0.09177447855472565,
0.19571518898010254,
-0.22763164341449738,
-0.021266702562570572,
0.1258775144815445,
0.12219464778900146,
0.14490538835525513,
0.21344463527202606,
0.060428813099861145,
0.1615925282239914,
0.09863588958978653,
-0.17373107373714447,
0.1242918148636818,
0.03721281513571739,
-0.07002522051334381,
0.2428625077009201,
-0.2385568767786026,
0.011653080582618713,
-0.29255878925323486,
-0.02385551482439041,
0.13656410574913025,
0.22980615496635437,
-0.39266136288642883,
-0.16882386803627014,
0.050581417977809906,
0.03855758160352707,
-0.2868266999721527,
-0.2530355453491211,
-0.6583179831504822,
-0.11108990013599396,
0.09610477089881897,
0.02890840545296669,
0.05611933022737503,
0.062409259378910065,
0.0627807229757309,
0.19701962172985077,
-0.17628055810928345,
0.26208099722862244,
-0.33911067247390747,
-0.22608250379562378,
-0.08661411702632904,
0.038384728133678436,
0.4431888163089752,
0.37958911061286926,
0.3404737710952759,
-0.3237484395503998,
0.24067941308021545,
-0.1147795245051384,
-0.600581705570221,
0.22577762603759766,
-0.13844998180866241,
0.31395235657691956,
0.11847471445798874,
0.05758054926991463,
0.10743516683578491,
-0.11118526756763458,
0.13580535352230072,
-0.03346572816371918,
-0.12986066937446594,
-0.25498759746551514,
-0.03327982500195503,
-0.2619004547595978,
-0.12098067998886108,
-0.4445781707763672,
-0.2484944611787796,
-0.38264763355255127,
0.3122246563434601,
-0.13250872492790222,
0.05550270155072212,
0.30775919556617737,
-0.007762890309095383,
0.1976732611656189,
-0.2474430799484253,
0.11548049002885818,
-0.1699935495853424,
-0.09006579965353012,
0.4744247794151306,
-0.34643101692199707,
-0.28345322608947754,
0.2812023460865021,
0.0528322234749794,
0.2554819881916046,
-0.2843570411205292,
-0.2434408813714981,
0.04280838742852211,
0.0934884175658226,
-0.25095072388648987,
0.02761773020029068,
0.07666289061307907,
0.27477899193763733,
0.25907641649246216,
0.11700049787759781,
-0.11309368163347244,
-0.17458628118038177,
-0.040185265243053436,
0.06214447692036629,
-0.0020897015929222107,
-0.10460726171731949,
0.1465645432472229,
-0.07571367919445038,
0.36239832639694214,
0.07720011472702026,
0.06155857816338539,
0.3316227197647095,
0.05718561261892319,
0.4331565797328949,
0.06602548062801361,
-0.3546021580696106,
0.20627182722091675,
0.006727308034896851,
0.08007755875587463,
0.3720383048057556,
0.08021368086338043,
0.17184196412563324,
-0.12518492341041565,
-0.31226590275764465,
-0.3093339800834656,
-0.3860098123550415,
0.10219178348779678,
0.22280186414718628,
0.09347160905599594,
-0.17058387398719788,
0.003720894455909729,
-0.05338257551193237,
-0.1663527488708496,
0.35437214374542236,
0.8319617509841919,
-0.14103516936302185,
0.08831590414047241,
-0.28000426292419434,
0.18883547186851501,
-0.22738271951675415,
0.021554768085479736,
0.1896584928035736,
0.012695934623479843,
-0.23343396186828613,
0.21133366227149963,
-0.007656589150428772,
0.15658722817897797,
0.5497599840164185,
-0.5247403979301453,
-0.06314880400896072,
0.012960322201251984,
0.01762070506811142,
0.11084401607513428,
0.06637339293956757,
-0.1372966170310974,
-0.09216132760047913,
0.13167698681354523,
0.49496179819107056,
-0.4311371445655823,
-0.28164446353912354,
-0.08440108597278595,
-0.0765886977314949,
-0.06942048668861389,
-0.2530349791049957,
-0.09525883197784424,
-0.15937495231628418,
-0.5372493267059326,
-0.12789243459701538,
0.2674383521080017,
-0.29539212584495544,
-0.17291784286499023,
-0.24302290380001068,
0.18324610590934753,
0.045596763491630554,
0.27723363041877747,
0.2463170439004898,
0.15554635226726532,
0.1407822072505951,
-0.021229729056358337,
0.3834702968597412,
0.07925372570753098,
0.6136361360549927,
0.40857991576194763,
-0.3780503571033478,
-0.32430586218833923,
0.032222434878349304,
-0.7105810046195984,
0.2947056293487549,
0.2757340967655182,
0.25166261196136475,
-0.06870000809431076,
0.42588603496551514,
-0.2119213342666626,
-0.1852734088897705,
0.058973051607608795,
0.11564787477254868,
0.019267398864030838,
-0.507000744342804,
-0.5510523319244385,
0.4138427972793579,
-0.006082899868488312,
-0.03763560950756073,
0.012716380879282951,
0.2641602158546448,
-0.3906281292438507,
0.15367889404296875,
0.3243081867694855,
1.215169906616211,
-0.10245320945978165,
0.05640255659818649,
-0.30508020520210266,
-0.24167418479919434,
0.3678267300128937,
-0.41565653681755066,
-0.1234322041273117,
-0.26714983582496643,
0.014427859336137772,
-0.12643036246299744,
0.014588207006454468,
0.3629637360572815,
0.36741524934768677,
-0.380130410194397,
0.06065722554922104,
0.34213224053382874,
0.20658430457115173,
-0.1084153801202774,
0.7030025720596313,
-0.13091933727264404,
-0.4052954912185669,
0.021796073764562607,
0.07646257430315018,
0.029423389583826065,
0.13671474158763885,
-0.08364054560661316,
-0.5859963893890381,
-0.07805529236793518,
-0.13613715767860413,
-0.3741074800491333,
-0.35253971815109253,
-0.20449629426002502,
-0.21102187037467957,
0.02392401173710823,
0.02466672658920288,
0.553437352180481,
0.23665113747119904,
0.5483722686767578,
0.16214995086193085,
-0.640477180480957,
0.13559764623641968,
-0.12392380833625793,
-0.19569987058639526,
-0.22477930784225464,
0.04787514731287956,
0.3694455325603485,
-0.12993723154067993,
-0.20230329036712646,
-0.13304109871387482,
-0.06826842576265335,
-0.0005882605910301208,
-0.246547132730484,
-0.14961759746074677,
0.10547864437103271,
-0.3484679162502289,
0.1442783623933792,
-0.19869421422481537,
-0.241131991147995,
-0.14794792234897614,
0.1371402144432068,
0.0323931910097599,
-0.1151270866394043,
0.03510050103068352,
0.2759849727153778,
-0.155231311917305,
-0.08789759874343872,
0.2337965965270996,
-0.1964874267578125,
-0.09904524683952332,
0.10551857948303223,
0.10040944814682007,
-0.2399870753288269,
-0.2959398627281189,
-0.01567351073026657,
0.26851651072502136,
-0.6028072834014893,
-0.24544855952262878,
0.06272247433662415,
-0.18084555864334106,
0.012280236929655075,
0.36995604634284973,
0.3838861286640167,
-0.1363750845193863,
-0.05213572829961777,
-0.2257375419139862,
-0.5842851996421814,
0.15385477244853973,
-0.14063385128974915,
0.16995500028133392,
-0.18897369503974915,
-0.11572694778442383,
0.19679442048072815,
0.21675710380077362,
-0.3300188481807709,
-0.13945230841636658,
-0.01664476841688156,
0.04117411747574806,
0.1615883857011795,
-0.004522836767137051,
0.0675559788942337,
-0.3016514480113983,
-0.05239877477288246,
0.2579052150249481,
-0.2703537344932556,
-0.09995677322149277,
-0.24501442909240723,
0.17750991880893707,
0.025321591645479202,
0.014225039631128311,
-0.20255006849765778,
-0.023404590785503387,
-0.29658016562461853,
-0.12781573832035065,
0.2104472517967224,
0.041906341910362244,
0.14589616656303406,
0.25942668318748474,
0.2857018709182739,
0.1632176637649536,
-0.15039414167404175,
0.02794385328888893,
0.12850941717624664,
0.17035463452339172,
0.14813148975372314,
-0.15652167797088623,
-0.16114342212677002,
0.1048818975687027,
0.30868712067604065,
0.23694272339344025,
0.2171386182308197,
-0.004965170286595821,
0.39919641613960266,
-0.007529567927122116,
0.2695423662662506,
0.3434646427631378,
0.11907421052455902,
0.19015565514564514,
-0.12954378128051758,
0.13850459456443787,
0.3368327021598816,
0.17722418904304504,
-0.2271178662776947,
-0.10551030933856964,
0.31891077756881714,
-0.17776960134506226,
0.10208659619092941,
0.42212364077568054,
0.5702977180480957,
0.2688581347465515,
-0.01727161929011345,
0.12583836913108826,
0.4669814109802246,
0.02577851340174675,
0.09440860897302628,
0.40130415558815,
-0.2711421251296997,
0.12810418009757996,
0.4452599883079529,
0.3683159053325653,
0.17300443351268768,
0.19133612513542175,
0.09185627102851868,
0.11471972614526749,
0.003472299315035343,
0.2881263792514801,
0.33392491936683655,
-0.1554177701473236,
0.18779268860816956,
0.15638583898544312,
0.42288991808891296,
0.20241621136665344,
0.07722330838441849,
0.07687453925609589,
0.31155213713645935,
-0.22703656554222107,
-0.12061561644077301,
0.11911490559577942,
-0.06484462320804596,
0.06646353006362915,
0.2424652874469757,
-0.1248515248298645,
-0.2164679765701294,
-0.10075601190328598,
-0.04001801088452339,
-0.32613977789878845,
-0.06290563941001892,
0.0003624372184276581,
-0.0012203715741634369,
0.09547611325979233,
-0.05731796473264694,
0.06829969584941864,
0.14246103167533875,
-0.23031724989414215,
0.1369355469942093,
0.17438486218452454,
-0.14686135947704315,
0.16293027997016907,
0.2221173793077469,
0.2091761827468872,
0.07199083268642426,
-0.02522408775985241,
0.20931988954544067,
0.041927315294742584,
-0.13462510704994202,
0.08987760543823242,
0.4182916283607483,
0.18996772170066833,
0.27052903175354004,
0.09561088681221008,
0.06139557808637619,
-0.11488934606313705,
-0.03881179541349411,
-0.284731388092041,
-0.08632579445838928,
-0.009929131716489792,
0.06289657205343246,
-0.006866321433335543,
-0.24126365780830383,
-0.23674732446670532,
-0.1236434057354927,
-0.4529110789299011,
-0.08922107517719269,
0.5199391841888428,
-0.14344064891338348,
0.05442607030272484,
-0.18105560541152954,
0.05027034506201744,
0.20860382914543152,
0.4289126992225647,
0.24354639649391174,
0.027823658660054207,
-0.08885572850704193,
0.06259433925151825,
-0.710192859172821,
-0.012414664030075073,
-0.019106285646557808,
0.12454549968242645,
0.18921902775764465,
-0.21410426497459412,
0.24092084169387817,
0.1618461310863495,
0.12125377357006073,
-0.07457448542118073,
-0.06715741753578186,
0.08009657263755798,
-0.07104770839214325,
-0.17404845356941223,
-0.20684751868247986,
0.17683075368404388,
0.12985527515411377,
0.01319655030965805,
0.19741152226924896,
0.3441027104854584,
-0.04799521341919899,
-0.45237600803375244,
0.35016483068466187,
-0.03307070583105087,
0.062108900398015976,
0.31491440534591675,
-0.08597331494092941,
0.4451005458831787,
-0.20298850536346436,
-0.1355409026145935,
0.06715338677167892,
0.24984467029571533,
-0.116387277841568,
0.34994348883628845,
0.16672122478485107,
0.2466561198234558,
-0.24407383799552917,
-0.27460789680480957,
-0.46813249588012695,
0.05802614241838455,
-0.003403797745704651,
-0.13275980949401855,
-0.6510512232780457,
0.0006268471479415894,
0.04648326337337494,
-0.2279352843761444,
0.21119558811187744,
0.054285597056150436,
-0.037128087133169174,
-0.11822309345006943,
-0.1886247843503952,
-0.13552170991897583,
0.6211867928504944,
-0.1726369857788086,
-0.1415703296661377,
0.13339784741401672,
-0.0454602986574173,
0.40835800766944885,
-0.01704992540180683,
-1.161651849746704,
0.13225744664669037,
0.31774553656578064,
0.02581259235739708,
-0.24813181161880493,
0.02750486135482788,
0.07884020358324051,
-0.02599772810935974,
-0.23171833157539368,
0.2802075147628784,
0.09768497943878174,
-0.1532401293516159,
-0.18206128478050232,
-0.17606967687606812
] |
https://github.com/huggingface/datasets/issues/2089 | When modifying a README file, the Hub now displays a special UI with allowed values (see https://huggingface.co/docs/datasets/main/en/upload_dataset#create-a-dataset-card). | Add documentaton for dataset README.md files | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 17 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
When modifying a README file, the Hub now displays a special UI with allowed values (see https://huggingface.co/docs/datasets/main/en/upload_dataset#create-a-dataset-card). | [
-0.23015610873699188,
-0.055515289306640625,
-0.09261234104633331,
0.16921979188919067,
0.17993967235088348,
0.3060292601585388,
0.262212336063385,
0.18050922453403473,
0.2094041109085083,
0.08875872939825058,
-0.1332424134016037,
0.29123228788375854,
-0.038379184901714325,
0.3361720144748688,
0.015504740178585052,
0.15765875577926636,
0.06953635811805725,
-0.10729449987411499,
0.21264857053756714,
-0.21168005466461182,
-0.12024020403623581,
-0.049559563398361206,
-0.12425784766674042,
-0.27008211612701416,
-0.4469238221645355,
-0.08881056308746338,
-0.049699798226356506,
0.26702332496643066,
-0.4672124981880188,
-0.5440710186958313,
-0.02266818657517433,
0.47832536697387695,
0.13653481006622314,
0.12575766444206238,
-0.00011119517148472369,
-0.26156628131866455,
0.3017752170562744,
-0.19868960976600647,
-0.05712613835930824,
-0.07687126845121384,
-0.265636682510376,
-0.30660125613212585,
-0.07226771861314774,
-0.05827052891254425,
0.04201948642730713,
-0.08987478911876678,
-0.09558157622814178,
0.018302112817764282,
0.20085516571998596,
0.4222249984741211,
0.16267037391662598,
0.03744315356016159,
0.2924048900604248,
-0.1722564846277237,
0.3187524080276489,
0.43937352299690247,
-0.20264945924282074,
0.4595182538032532,
0.5249036550521851,
0.23480471968650818,
-0.05733097717165947,
0.14342500269412994,
-0.052798330783843994,
0.12135359644889832,
0.45182016491889954,
-0.06008714437484741,
0.24531471729278564,
-0.4812934100627899,
0.11995391547679901,
0.4456983506679535,
0.8907902240753174,
-0.2951691150665283,
-0.1933416873216629,
-0.48983126878738403,
0.17440372705459595,
-0.022671610116958618,
0.30546435713768005,
0.2857322692871094,
-0.034597717225551605,
0.18523713946342468,
0.029350262135267258,
-0.45765960216522217,
-0.24464750289916992,
0.06725017726421356,
0.22821442782878876,
0.33221834897994995,
-0.12162795662879944,
-0.05345902591943741,
0.07855319231748581,
-0.029783086851239204,
0.26132631301879883,
0.010667514055967331,
-0.20853698253631592,
0.19939343631267548,
0.12455639988183975,
-0.0824909508228302,
-0.2857319116592407,
0.20372815430164337,
0.2847280502319336,
-0.052330952137708664,
-0.02342071384191513,
0.16300219297409058,
-0.21763744950294495,
0.25741779804229736,
0.15488584339618683,
-0.15110178291797638,
0.18242119252681732,
0.19085693359375,
0.22152799367904663,
0.036118604242801666,
0.31184643507003784,
-0.12411773949861526,
-0.18401163816452026,
-0.013601604849100113,
-0.1521209180355072,
-0.030320456251502037,
0.0025695711374282837,
-0.23008517920970917,
0.009308725595474243,
-0.1471272110939026,
0.2735329270362854,
-0.1005331426858902,
0.1789231151342392,
0.21593424677848816,
-0.06269277632236481,
-0.15239745378494263,
-0.2810451090335846,
0.16442511975765228,
-0.011265281587839127,
-0.1220318004488945,
-0.021089889109134674,
0.19608141481876373,
0.04153311997652054,
0.34715476632118225,
0.3402135968208313,
-0.1779729425907135,
0.280281126499176,
0.250314861536026,
0.07868123054504395,
-0.20713560283184052,
0.08473489433526993,
0.024498458951711655,
0.33560076355934143,
0.3735090494155884,
0.018918216228485107,
0.10151118785142899,
-0.05997203290462494,
-0.34242182970046997,
-0.18088826537132263,
0.09625525772571564,
-0.4657919704914093,
-0.40551555156707764,
-0.29282262921333313,
0.16618259251117706,
-0.19073161482810974,
0.0989239290356636,
-0.32025790214538574,
0.23753085732460022,
-0.04985100030899048,
-0.0536237396299839,
0.21917009353637695,
0.2555234432220459,
-0.23572763800621033,
-0.27724218368530273,
0.043984539806842804,
0.5059964656829834,
-0.14779430627822876,
0.008892104029655457,
0.012948710471391678,
0.0029538441449403763,
-0.2691262364387512,
0.04348661005496979,
-0.32964539527893066,
0.34548163414001465,
-0.254738986492157,
0.3554297685623169,
0.42094123363494873,
-0.77967369556427,
-0.24454958736896515,
-0.04407254606485367,
0.1284334361553192,
-0.2641856074333191,
0.07490284740924835,
-0.044447269290685654,
0.49030008912086487,
-0.31752288341522217,
-0.12826722860336304,
-0.07663944363594055,
-0.030975643545389175,
-0.04853465408086777,
-0.1513621211051941,
-0.10841012001037598,
-0.13631829619407654,
0.12069424986839294,
-0.032137103378772736,
0.014471331611275673,
0.34386688470840454,
0.22064340114593506,
0.13797511160373688,
-0.05904432013630867,
0.216498464345932,
0.35865548253059387,
0.3208799958229065,
0.10336810350418091,
0.01151786744594574,
-0.0476159043610096,
-0.3021247982978821,
0.10268379747867584,
0.047607727348804474,
0.27204766869544983,
0.02081977389752865,
-0.3302035331726074,
-0.4079068899154663,
-0.21722739934921265,
-0.40265077352523804,
-0.28802043199539185,
0.14356693625450134,
-0.03625665232539177,
-0.1636548936367035,
0.09478043019771576,
-0.24525408446788788,
0.41456347703933716,
-0.2022992968559265,
0.11960399150848389,
-0.37896257638931274,
0.11350230872631073,
-0.13260021805763245,
-0.07345182448625565,
0.3545367121696472,
0.11861871182918549,
0.22465813159942627,
0.031873397529125214,
-0.07076399773359299,
0.38697943091392517,
0.09057562798261642,
0.32494762539863586,
0.14658786356449127,
0.48882484436035156,
0.5092266201972961,
-0.20419862866401672,
0.2522411346435547,
-0.47536563873291016,
0.06747612357139587,
-0.17871135473251343,
-0.4538819193840027,
0.026540271937847137,
-0.3501626253128052,
-0.2284327894449234,
-0.16803981363773346,
-0.06091183051466942,
0.04059714078903198,
0.10549462586641312,
-0.16274034976959229,
-0.4099687337875366,
-0.1842678338289261,
0.1378052532672882,
-0.04691082239151001,
-0.03696339204907417,
0.17098096013069153,
0.2983543872833252,
0.6099581122398376,
-0.11576341837644577,
0.1178368479013443,
0.08081644773483276,
-0.042895909398794174,
-0.035945478826761246,
0.235307976603508,
0.18866024911403656,
0.14984279870986938,
0.10850760340690613,
0.15766263008117676,
0.19423313438892365,
-0.028178904205560684,
-0.271675169467926,
0.14237485826015472,
-0.09799008071422577,
0.016047995537519455,
0.2037184238433838,
-0.1667749136686325,
-0.04412488639354706,
-0.33319634199142456,
0.058725304901599884,
0.1388351321220398,
0.3940953016281128,
-0.33133506774902344,
-0.40218254923820496,
-0.21918070316314697,
0.13202449679374695,
-0.03738005459308624,
-0.23623311519622803,
-0.4998980760574341,
-0.1778247058391571,
0.07829850167036057,
0.3158605396747589,
0.10829119384288788,
-0.08509189635515213,
0.05543230473995209,
0.1688920110464096,
-0.18881110846996307,
0.27817288041114807,
-0.29404416680336,
-0.027228351682424545,
-0.0823155865073204,
0.05555573105812073,
0.36808547377586365,
0.6320251226425171,
0.43753427267074585,
-0.29252034425735474,
0.38104015588760376,
-0.4330935478210449,
-0.3974592387676239,
0.09455488622188568,
-0.17936797440052032,
0.39265814423561096,
0.10887068510055542,
0.16735130548477173,
-0.018034115433692932,
0.05043803155422211,
0.09486742317676544,
-0.00858808308839798,
-0.07806145399808884,
-0.2753638029098511,
-0.02396649681031704,
-0.23788419365882874,
-0.012152940034866333,
-0.40024685859680176,
-0.10963031649589539,
-0.4522426426410675,
0.1944800317287445,
-0.03911440074443817,
0.14095203578472137,
0.11941608786582947,
0.05979536101222038,
0.16416549682617188,
-0.16651856899261475,
0.09485200047492981,
-0.3178548514842987,
-0.28661197423934937,
0.4301733076572418,
-0.4915323555469513,
-0.3978671133518219,
0.3689326047897339,
0.17545804381370544,
0.31688398122787476,
-0.14421840012073517,
-0.2489689290523529,
-0.08276244252920151,
0.06261897832155228,
0.008563652634620667,
-0.03853077441453934,
0.05346647650003433,
0.33745622634887695,
0.2566004693508148,
0.0694810152053833,
-0.19145455956459045,
-0.3331584334373474,
-0.1715800017118454,
0.1217552125453949,
-0.09176082909107208,
0.07358388602733612,
-0.03571341186761856,
-0.033937014639377594,
0.10570582747459412,
0.179799884557724,
0.38092318177223206,
0.4146564304828644,
-0.005089700222015381,
0.45609042048454285,
0.03638862445950508,
-0.2657989263534546,
0.26923972368240356,
0.11230833828449249,
0.21927949786186218,
0.27462440729141235,
0.21863456070423126,
0.28158852458000183,
-0.05054042860865593,
-0.3347553610801697,
-0.3718140721321106,
-0.31107228994369507,
0.06469161063432693,
-0.019210342317819595,
0.1149185299873352,
-0.13722801208496094,
0.042534902691841125,
-0.18107402324676514,
-0.2649502754211426,
0.2632831931114197,
0.7288561463356018,
-0.14811012148857117,
0.09233974665403366,
-0.42423033714294434,
0.07754161953926086,
-0.22762185335159302,
-0.034584514796733856,
0.14890290796756744,
0.14830590784549713,
-0.28640836477279663,
0.20521491765975952,
0.13251160085201263,
0.13937506079673767,
0.397683322429657,
-0.7395808100700378,
-0.06485575437545776,
0.08331659436225891,
0.1730557680130005,
-0.03821210190653801,
0.009770430624485016,
-0.08254153281450272,
0.1192392110824585,
-0.08717525005340576,
0.41459381580352783,
-0.20630964636802673,
-0.41518503427505493,
-0.10358904302120209,
-0.06241810321807861,
0.062320202589035034,
-0.30681943893432617,
-0.012826934456825256,
-0.30340099334716797,
-0.6358057260513306,
-0.1958266645669937,
0.22290849685668945,
-0.1923452615737915,
-0.3197174668312073,
-0.22504575550556183,
0.14308670163154602,
0.18334242701530457,
0.21369482576847076,
0.16183209419250488,
0.14183923602104187,
0.25438496470451355,
-0.014590218663215637,
0.39180681109428406,
-0.046576209366321564,
0.6353704333305359,
0.34210389852523804,
-0.11623819172382355,
-0.09145379811525345,
-0.0016454700380563736,
-0.7189284563064575,
0.09822047501802444,
0.2663893401622772,
0.23012278974056244,
0.09085087478160858,
0.09556177258491516,
-0.25477084517478943,
-0.3161552846431732,
0.13130319118499756,
0.09059908986091614,
-0.10779419541358948,
-0.505805492401123,
-0.4485974907875061,
0.4769212305545807,
0.09586688131093979,
-0.08397068083286285,
0.2876754701137543,
0.3431178331375122,
-0.3910442888736725,
-0.13546089828014374,
0.3367302715778351,
1.019291877746582,
-0.005590401589870453,
-0.09106048941612244,
-0.1944516897201538,
-0.273831307888031,
0.1790081411600113,
-0.34494584798812866,
-0.1473248302936554,
-0.2500031292438507,
0.14075180888175964,
-0.12102007865905762,
-0.015020139515399933,
0.4345802664756775,
0.23646534979343414,
-0.34280475974082947,
0.00561903789639473,
0.2527908682823181,
0.14924098551273346,
-0.20999746024608612,
0.6636109948158264,
-0.565985381603241,
-0.3694925606250763,
0.07744783908128738,
0.15874622762203217,
0.037810228765010834,
0.08527790009975433,
-0.01756797730922699,
-0.3739090859889984,
-0.23570843040943146,
0.0011340826749801636,
-0.43655091524124146,
-0.4055124521255493,
-0.0987028032541275,
-0.2840672731399536,
-0.020561477169394493,
-0.025875650346279144,
0.5071110725402832,
0.2520166337490082,
0.5631756782531738,
0.1696377694606781,
-0.5605167150497437,
0.09482812881469727,
-0.14901523292064667,
-0.2905045747756958,
-0.16817998886108398,
-0.03305675834417343,
0.31261229515075684,
-0.19989366829395294,
-0.34972083568573,
-0.06745562702417374,
-0.07869550585746765,
0.027581840753555298,
-0.33629822731018066,
0.0308721624314785,
0.2174360603094101,
-0.3658706545829773,
0.059256017208099365,
-0.25310006737709045,
-0.18769347667694092,
-0.07971019297838211,
0.12619775533676147,
0.18453380465507507,
0.03944495692849159,
0.1131862923502922,
0.3070635199546814,
-0.08331140875816345,
-0.057035140693187714,
0.20916429162025452,
-0.2712705731391907,
-0.20265062153339386,
0.12546510994434357,
-0.06786443293094635,
-0.14603419601917267,
-0.3246396481990814,
0.15154330432415009,
0.21357418596744537,
-0.2958022952079773,
-0.308761864900589,
0.006791107356548309,
-0.08151252567768097,
0.07740914821624756,
0.21639537811279297,
0.2711471915245056,
-0.12288124859333038,
0.02354271709918976,
-0.3815763294696808,
-0.37525591254234314,
0.046255700290203094,
-0.15763552486896515,
0.19112510979175568,
-0.3248848617076874,
-0.38538625836372375,
0.19555141031742096,
0.050180234014987946,
-0.3228287100791931,
0.07672116905450821,
-0.04951820150017738,
0.12288230657577515,
0.05139588937163353,
0.1547563523054123,
-0.08959007263183594,
-0.3524509370326996,
-0.02456631325185299,
0.11694177985191345,
-0.3223489820957184,
-0.11945575475692749,
-0.20482105016708374,
0.16828395426273346,
0.07315784692764282,
-0.12178018689155579,
-0.18797722458839417,
-0.1908799260854721,
-0.26039695739746094,
-0.12594273686408997,
0.15193384885787964,
0.043150246143341064,
0.062058065086603165,
0.13884183764457703,
0.3605199456214905,
0.19218239188194275,
-0.0005537942051887512,
0.0333801694214344,
0.16937600076198578,
0.16045838594436646,
-0.0340123176574707,
-0.11266770958900452,
-0.15426087379455566,
0.03968659043312073,
0.35428547859191895,
0.33981332182884216,
0.2671423554420471,
-0.016325928270816803,
0.31129398941993713,
-0.015151336789131165,
0.4428154230117798,
0.2875143885612488,
0.014922164380550385,
0.2895645797252655,
-0.1791183054447174,
0.1007557287812233,
0.2971416115760803,
0.1777411252260208,
0.03754960745573044,
-0.16048739850521088,
0.2431035041809082,
-0.2080572247505188,
0.032177165150642395,
0.26494431495666504,
0.6548212766647339,
0.12036077678203583,
-0.23436526954174042,
0.12495462596416473,
0.3742353022098541,
-0.173052117228508,
-0.012610377743840218,
0.21722014248371124,
-0.32510656118392944,
0.026071280241012573,
0.3879782259464264,
0.2195519655942917,
0.026184506714344025,
0.24421454966068268,
0.15922263264656067,
0.32188087701797485,
0.28215163946151733,
0.1973571926355362,
0.2936456799507141,
-0.3295266628265381,
0.24648785591125488,
0.1501663625240326,
0.20433610677719116,
0.12810750305652618,
0.07880252599716187,
0.059756018221378326,
0.14553700387477875,
-0.2938394248485565,
-0.0734746977686882,
-0.010101652704179287,
-0.09027411788702011,
0.1356220245361328,
0.00520169734954834,
-0.18230050802230835,
-0.17667973041534424,
-0.14436039328575134,
-0.023185480386018753,
-0.30770036578178406,
-0.09699846804141998,
0.005048787221312523,
-0.09992682933807373,
-0.09487593173980713,
0.1424756497144699,
0.13793058693408966,
0.0968599021434784,
-0.12468531727790833,
0.05195905268192291,
-0.08282362669706345,
-0.186329647898674,
0.2946735620498657,
0.17740440368652344,
0.3212208151817322,
0.1501658856868744,
-0.04549538344144821,
0.2343134880065918,
0.01237361878156662,
-0.1831655502319336,
0.23818767070770264,
0.44185370206832886,
0.09510540962219238,
0.23362258076667786,
0.02125842496752739,
0.12944480776786804,
-0.12147527933120728,
-0.21156534552574158,
-0.2456022948026657,
-0.22306503355503082,
0.09545902907848358,
-0.06960014998912811,
0.04522603377699852,
-0.22100895643234253,
-0.12331546097993851,
-0.10754712671041489,
-0.2589522898197174,
-0.09554758667945862,
0.7135035395622253,
-0.07553230971097946,
0.07646636664867401,
-0.2909214198589325,
0.06912834197282791,
0.2723240852355957,
0.3714037537574768,
0.2943520247936249,
-0.05552732199430466,
0.03844594582915306,
-0.11801442503929138,
-0.6717060804367065,
-0.03844831883907318,
0.09013072401285172,
-0.05619253218173981,
0.16545745730400085,
-0.19446636736392975,
0.08764418959617615,
0.17512443661689758,
0.20797890424728394,
-0.15248119831085205,
0.2586107552051544,
0.1506578028202057,
-0.01565331220626831,
-0.21938641369342804,
0.1618904173374176,
0.08301033824682236,
0.005303904414176941,
-0.029336921870708466,
0.34168386459350586,
0.19802851974964142,
0.005930498242378235,
-0.36255961656570435,
0.38676679134368896,
0.009950824081897736,
-0.06341271102428436,
0.31554535031318665,
-0.022794783115386963,
0.4073639214038849,
-0.19899550080299377,
-0.019154224544763565,
-0.19941197335720062,
0.31368401646614075,
-0.07599528133869171,
0.3309553563594818,
0.0051932502537965775,
0.17928320169448853,
-0.05593397095799446,
-0.21621498465538025,
-0.2376926839351654,
0.2626194655895233,
-0.05280957370996475,
0.1709180474281311,
-0.4570809304714203,
0.050806157290935516,
0.06679308414459229,
-0.1128050684928894,
0.24191954731941223,
-0.062023013830184937,
-0.03998402878642082,
0.10359803587198257,
-0.2186289131641388,
-0.253449022769928,
0.5333069562911987,
-0.1486867368221283,
-0.150637686252594,
0.09632723033428192,
0.016929548233747482,
0.32702213525772095,
0.066253162920475,
-0.9636611938476562,
0.14625778794288635,
0.3639834523200989,
-0.09498049318790436,
-0.21506309509277344,
0.26012733578681946,
-0.024821680039167404,
0.006473548710346222,
-0.12324691563844681,
0.29084813594818115,
0.07632935047149658,
-0.10190699994564056,
0.06679818034172058,
-0.0940687283873558
] |
https://github.com/huggingface/datasets/issues/2083 | Hi,
this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit:
```python
common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment'])
```
The order is important because the resulting dataset inherits the schema metadata of the first dataset passed to the `concatenate_datasets(...)` function (`pa.concat_tables` [docs](https://arrow.apache.org/docs/python/generated/pyarrow.concat_tables.html)). I'll try to fix this ASAP. | `concatenate_datasets` throws error when changing the order of datasets to concatenate | Hey,
I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets
and noticed that when the order in which the datasets are concatenated changes an error is thrown where it should not IMO.
Here is a google colab to reproduce the error: https://colab.research.google.com/drive/17VTFU4KQ735-waWZJjeOHS6yDTfV5ekK?usp=sharing | 70 | `concatenate_datasets` throws error when changing the order of datasets to concatenate
Hey,
I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets
and noticed that when the order in which the datasets are concatenated changes an error is thrown where it should not IMO.
Here is a google colab to reproduce the error: https://colab.research.google.com/drive/17VTFU4KQ735-waWZJjeOHS6yDTfV5ekK?usp=sharing
Hi,
this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit:
```python
common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment'])
```
The order is important because the resulting dataset inherits the schema metadata of the first dataset passed to the `concatenate_datasets(...)` function (`pa.concat_tables` [docs](https://arrow.apache.org/docs/python/generated/pyarrow.concat_tables.html)). I'll try to fix this ASAP. | [
-0.07968540489673615,
-0.003556951880455017,
0.04932413250207901,
0.09624490886926651,
0.4001431465148926,
0.20311090350151062,
0.14764654636383057,
0.1685888022184372,
-0.4686335325241089,
0.03903452306985855,
-0.1133432388305664,
0.22358575463294983,
0.1865089237689972,
0.22799581289291382,
-0.15247218310832977,
-0.3764883279800415,
0.18034391105175018,
-0.033542536199092865,
-0.03185230866074562,
0.158972829580307,
-0.33061516284942627,
0.27825188636779785,
-0.4217688739299774,
0.11940055340528488,
-0.277040958404541,
0.16557607054710388,
-0.28765869140625,
0.21420061588287354,
-0.13174812495708466,
-0.3083036541938782,
0.22181899845600128,
0.20892515778541565,
0.026824552565813065,
0.4889540374279022,
-0.00010560233204159886,
-0.01312437653541565,
0.1394525170326233,
0.026906393468379974,
-0.2604874074459076,
-0.22725091874599457,
-0.2251272201538086,
-0.10867713391780853,
-0.16232451796531677,
0.03797541558742523,
0.14694495499134064,
-0.15970160067081451,
-0.2429727017879486,
-0.1502542793750763,
0.2837974429130554,
0.27740278840065,
0.23799237608909607,
0.17553752660751343,
0.24264776706695557,
-0.3864704370498657,
0.11600517481565475,
-0.12717534601688385,
-0.03232858330011368,
0.08276964724063873,
-0.15783515572547913,
-0.21142232418060303,
0.16231444478034973,
0.2935609817504883,
-0.22053980827331543,
-0.3700945973396301,
0.04827231541275978,
0.14493130147457123,
-0.04909976199269295,
-0.13518820703029633,
-0.00034544337540864944,
0.07268844544887543,
0.4189140796661377,
-0.4847952127456665,
-0.3530628979206085,
-0.28783324360847473,
0.37972962856292725,
-0.38484257459640503,
0.23351487517356873,
0.10796833783388138,
0.18085704743862152,
0.16018396615982056,
-0.11174258589744568,
-0.005286712199449539,
0.0029111504554748535,
0.007369639351963997,
-0.05433891713619232,
0.07949046790599823,
0.05774438753724098,
0.012179434299468994,
0.1555245816707611,
-0.30293089151382446,
0.07643059641122818,
-0.11394637078046799,
-0.27232158184051514,
0.11298219859600067,
-0.48198822140693665,
0.0012334063649177551,
0.04312773048877716,
-0.2525560259819031,
0.35934168100357056,
0.13042214512825012,
-0.021705973893404007,
-0.028369687497615814,
-0.09755618870258331,
0.11753189563751221,
0.25330379605293274,
0.3586050570011139,
0.09566189348697662,
0.2279181331396103,
0.09096476435661316,
0.22172723710536957,
0.1781281679868698,
0.022759389132261276,
0.12297655642032623,
-0.2932564616203308,
-0.03944157063961029,
0.1017422154545784,
0.30595582723617554,
0.06010781228542328,
-0.1682274341583252,
0.11039218306541443,
-0.12779606878757477,
0.0942961573600769,
0.045383270829916,
0.17529451847076416,
0.041901785880327225,
0.34786128997802734,
0.29252880811691284,
0.3554246723651886,
0.12511539459228516,
0.013611610978841782,
-0.15901580452919006,
-0.2540305256843567,
-0.10264069586992264,
0.29680243134498596,
-0.03791945427656174,
-0.11697109043598175,
-0.020783178508281708,
0.3439497947692871,
0.17241962254047394,
0.1211993545293808,
-0.23695304989814758,
0.016123130917549133,
-0.13190671801567078,
0.2203482985496521,
0.04393546283245087,
-0.007123880088329315,
0.06242707744240761,
-0.007491812109947205,
-0.14476892352104187,
-0.018963292241096497,
-0.28580185770988464,
-0.5416708588600159,
-0.4975186288356781,
0.2481808364391327,
0.17606574296951294,
-0.08878396451473236,
0.001142360270023346,
0.2109564244747162,
0.3790780305862427,
-0.21448656916618347,
-0.010091360658407211,
-0.13114748895168304,
-0.3337845504283905,
-0.17831306159496307,
-0.03065168485045433,
0.2728121876716614,
-0.07838720828294754,
0.038948118686676025,
0.16702549159526825,
0.028401494026184082,
-0.13531658053398132,
0.41193681955337524,
-0.13252951204776764,
-0.11950366199016571,
-0.1640450656414032,
0.2925848066806793,
0.21482278406620026,
-0.3234606385231018,
-0.1954001784324646,
0.015626564621925354,
-0.1306154727935791,
0.049350619316101074,
0.04881282150745392,
-0.1344638168811798,
-0.19321109354496002,
-0.13464616239070892,
0.3389672040939331,
0.36160194873809814,
0.017334328964352608,
0.0530785471200943,
-0.06397798657417297,
-0.0736650824546814,
0.22548381984233856,
-0.15547309815883636,
-0.44541481137275696,
0.20845551788806915,
-0.28205475211143494,
-0.1806512475013733,
0.3597201704978943,
-0.20287400484085083,
-0.024919280782341957,
0.3321022391319275,
0.19029557704925537,
0.10281866788864136,
0.22810925543308258,
0.03303207457065582,
-0.49440842866897583,
0.06920100748538971,
0.07796967029571533,
0.11204934865236282,
-0.27326369285583496,
-0.30516132712364197,
-0.1832830160856247,
-0.026138082146644592,
-0.32294803857803345,
0.10752643644809723,
0.18990084528923035,
0.019083280116319656,
0.10135790705680847,
-0.13907784223556519,
-0.14069229364395142,
0.3601435124874115,
-0.04018811881542206,
0.11331722140312195,
-0.4093935191631317,
0.2946315407752991,
-0.2757103145122528,
-0.005780678242444992,
0.09602090716362,
0.28505879640579224,
0.15173040330410004,
0.0952610969543457,
-0.20580455660820007,
0.6714099049568176,
-0.22945553064346313,
-0.298173189163208,
0.012951520271599293,
-0.04099126160144806,
0.0063925497233867645,
0.06049025058746338,
-0.10195948928594589,
-0.010719996877014637,
-0.17606467008590698,
-0.05780878663063049,
-0.2104916274547577,
0.37961792945861816,
0.0027710930444300175,
0.28781720995903015,
-0.0005506128072738647,
0.12733221054077148,
0.2976997494697571,
0.02361822873353958,
-0.05228136479854584,
-0.3162910044193268,
0.11106696724891663,
0.07204164564609528,
0.10836346447467804,
0.09133298695087433,
-0.5487788915634155,
0.1539599895477295,
0.6155298352241516,
-0.07234914600849152,
-0.020485136657953262,
0.07559993863105774,
-0.04699269309639931,
-0.004391126334667206,
0.024662578478455544,
-0.03429822623729706,
0.5151793360710144,
0.1922239363193512,
-0.14515186846256256,
0.38007092475891113,
-0.1407291293144226,
-0.12366466969251633,
0.1264638900756836,
0.008558560162782669,
0.18795660138130188,
0.37489667534828186,
0.4192982614040375,
0.25453490018844604,
-0.2852296829223633,
-0.2111073136329651,
0.002057276666164398,
0.012081393972039223,
-0.24824455380439758,
0.06619702279567719,
-0.2989227771759033,
-0.14732415974140167,
-0.21434393525123596,
-0.4559222161769867,
-0.5343990325927734,
-0.36468055844306946,
0.16372345387935638,
0.095100536942482,
-0.23067310452461243,
0.320912629365921,
-0.07332184165716171,
0.012633249163627625,
0.37993887066841125,
-0.0807909220457077,
-0.20833687484264374,
-0.030446887016296387,
0.02259068936109543,
-0.0015236809849739075,
0.09681034088134766,
-0.13794496655464172,
0.00629347562789917,
-0.08259584754705429,
-0.020582154393196106,
-0.2717048227787018,
-0.2621473968029022,
0.025196533650159836,
-0.37972593307495117,
-0.07118786126375198,
0.20132975280284882,
-0.045154161751270294,
0.11325585842132568,
-0.436052531003952,
0.43034616112709045,
0.15720710158348083,
-0.21472033858299255,
0.6075905561447144,
0.16842809319496155,
-0.18782681226730347,
-0.15362641215324402,
-0.4074482023715973,
-0.12938298285007477,
-0.414642333984375,
0.22669339179992676,
-0.20330390334129333,
-0.00415743887424469,
0.5315071940422058,
0.13898873329162598,
-0.25139617919921875,
-0.16627122461795807,
0.1982160210609436,
-0.33192479610443115,
-0.22686223685741425,
0.11820518970489502,
-0.2356245368719101,
-0.3592351973056793,
-0.0796588659286499,
0.13989490270614624,
0.09865637123584747,
0.06354807317256927,
-0.1372639685869217,
-0.1302848756313324,
-0.10490278899669647,
0.2873051166534424,
-0.30987828969955444,
0.07583761215209961,
0.37300005555152893,
0.3206866383552551,
-0.11611969769001007,
-0.12791459262371063,
-0.18260528147220612,
-0.005853619426488876,
0.244807168841362,
0.2611478567123413,
-0.18072658777236938,
0.31004366278648376,
-0.018820784986019135,
0.3491806387901306,
0.2283608317375183,
-0.00573761248961091,
0.1428748369216919,
0.04097326844930649,
0.3439367711544037,
-0.26102593541145325,
-0.303194135427475,
-0.15330037474632263,
-0.24642041325569153,
0.22554965317249298,
0.12361891567707062,
0.004114631563425064,
0.13537514209747314,
-0.041990503668785095,
0.3345291018486023,
0.06604233384132385,
-0.22682105004787445,
-0.008291563019156456,
-0.1154850572347641,
0.27741923928260803,
0.18539375066757202,
-0.04681241884827614,
-0.21135534346103668,
-0.002703644335269928,
0.09342704713344574,
0.14897175133228302,
-0.16697078943252563,
-0.13121441006660461,
-0.43300214409828186,
-0.1807781159877777,
-0.3780791759490967,
0.36074817180633545,
0.14748689532279968,
0.31973499059677124,
0.10556378960609436,
-0.11447670310735703,
-0.11437177658081055,
0.05730456858873367,
0.5016083121299744,
-0.07276296615600586,
-0.4048740267753601,
0.4655725955963135,
0.18539738655090332,
-0.22893761098384857,
-0.3301277756690979,
-0.1556289941072464,
0.1920015513896942,
0.09926116466522217,
0.39794856309890747,
-0.34229761362075806,
-0.16603738069534302,
0.35652977228164673,
0.21366891264915466,
0.11099068820476532,
-0.09127573668956757,
-0.36423975229263306,
-0.24687790870666504,
-0.3064168393611908,
-0.1125771552324295,
-0.056544601917266846,
0.4393940567970276,
-0.47441673278808594,
0.13601109385490417,
0.2629767060279846,
-0.20298948884010315,
-0.130255788564682,
-0.09407517313957214,
0.27057552337646484,
0.006704982370138168,
0.1725478172302246,
0.05015330761671066,
0.22901803255081177,
0.3115619122982025,
0.5891236662864685,
0.05688850209116936,
-0.7131998538970947,
-0.14939798414707184,
0.0947640985250473,
0.11799356341362,
0.17173722386360168,
-0.08632092922925949,
0.3397347331047058,
0.01984422281384468,
0.19312573969364166,
0.06509293615818024,
-0.14335982501506805,
0.680939257144928,
-0.07629211246967316,
-0.6452268362045288,
-0.31430959701538086,
0.5154019594192505,
0.20800597965717316,
0.012078270316123962,
0.17500004172325134,
0.03679286316037178,
-0.2994353473186493,
0.28758367896080017,
-0.18846434354782104,
0.8607546091079712,
0.04813450202345848,
0.3077598810195923,
0.369594931602478,
0.09365415573120117,
0.30315297842025757,
-0.06616757810115814,
0.3982151746749878,
-0.3754052519798279,
-0.25330719351768494,
-0.004234064370393753,
-0.10321322083473206,
0.035705797374248505,
-0.07052235305309296,
-0.5698782205581665,
0.14377301931381226,
-0.39963075518608093,
0.19864368438720703,
-0.1967107206583023,
0.13993576169013977,
-0.2798861265182495,
-0.17388899624347687,
-0.5225828886032104,
0.1542307287454605,
0.22646769881248474,
-0.12105273455381393,
-0.08645717799663544,
-0.05205240845680237,
-0.07783215492963791,
-0.27027440071105957,
-0.20367711782455444,
0.3030858337879181,
-0.26478779315948486,
0.31418517231941223,
0.16325314342975616,
-0.12286020070314407,
0.09961125254631042,
0.05653776600956917,
0.2340860366821289,
-0.06486750394105911,
-0.11231375485658646,
0.026038583368062973,
0.13056343793869019,
0.06373121589422226,
-0.040914829820394516,
-0.12661311030387878,
0.33078455924987793,
0.1718059480190277,
-0.2644074559211731,
0.06152019277215004,
0.10782603919506073,
-0.20414383709430695,
-0.3926246762275696,
-0.012263398617506027,
-0.02158670872449875,
-0.4964892864227295,
0.19053682684898376,
0.15424394607543945,
0.19226713478565216,
-0.2586193084716797,
0.173012375831604,
0.09895235300064087,
-0.1877947598695755,
0.04717309772968292,
-0.1320609301328659,
-0.17403700947761536,
-0.008201932534575462,
0.3596716523170471,
-0.01742519438266754,
0.04025666415691376,
0.40469565987586975,
0.1664830595254898,
-0.09422130882740021,
-0.06203944608569145,
-0.02623646706342697,
-0.0034962594509124756,
-0.2976416051387787,
0.12443150579929352,
0.08955681324005127,
0.00007918477058410645,
0.060054924339056015,
0.4102916419506073,
0.010927732102572918,
-0.09744976460933685,
0.014266647398471832,
-0.06839089095592499,
-0.20662355422973633,
0.2139131724834442,
0.19531051814556122,
0.06679017841815948,
-0.08407258242368698,
0.4412164092063904,
-0.03676285594701767,
0.011687802150845528,
-0.3577222228050232,
-0.06982499361038208,
-0.1693752408027649,
0.2305312305688858,
0.13667942583560944,
-0.10886942595243454,
-0.019326576963067055,
-0.06540553271770477,
0.19003920257091522,
0.14874720573425293,
-0.06064446270465851,
-0.24065351486206055,
-0.07593341171741486,
0.07289204001426697,
0.29582613706588745,
-0.005035176873207092,
-0.0025420524179935455,
-0.10384616255760193,
-0.13902559876441956,
-0.2507747709751129,
0.05855599045753479,
0.21111196279525757,
-0.026470504701137543,
-0.011415570974349976,
-0.015109224244952202,
0.11827939003705978,
0.32516852021217346,
0.1095738559961319,
0.07569215446710587,
-0.16584531962871552,
-0.17626577615737915,
0.2312309741973877,
-0.4591177701950073,
-0.025122277438640594,
0.044967420399188995,
0.27196618914604187,
0.14425122737884521,
0.05050070956349373,
0.09814973920583725,
-0.43056437373161316,
-0.11012592911720276,
-0.030726872384548187,
0.5766242146492004,
0.459928423166275,
-0.25105366110801697,
-0.09479105472564697,
0.19125331938266754,
0.2583909034729004,
-0.43330830335617065,
-0.29713162779808044,
0.11464846134185791,
-0.00931471772491932,
-0.07562923431396484,
-0.10084657371044159,
0.1585252285003662,
0.03542028367519379,
-0.002257600426673889,
0.14718833565711975,
0.1625918745994568,
0.003957318142056465,
0.36357876658439636,
0.3141833543777466,
0.08729274570941925,
0.17760592699050903,
0.37674933671951294,
0.18457652628421783,
0.25600960850715637,
0.27907830476760864,
0.007342040538787842,
0.174057275056839,
0.17205917835235596,
-0.2379538118839264,
0.2201375514268875,
-0.33798789978027344,
-0.10553278028964996,
0.028396323323249817,
-0.016760315746068954,
-0.07023229449987411,
-0.05150529742240906,
0.5235231518745422,
-0.38841164112091064,
-0.2773982584476471,
-0.14295928180217743,
0.361954927444458,
-0.07249562442302704,
-0.07346974313259125,
0.10429181158542633,
0.0501958429813385,
-0.10112302005290985,
-0.1904466450214386,
0.05807916820049286,
-0.06879989802837372,
0.6510471701622009,
-0.16810265183448792,
-0.005469419062137604,
-0.5817868709564209,
0.190434068441391,
0.2763528525829315,
0.21394488215446472,
-0.1554393470287323,
0.04987829178571701,
0.27396315336227417,
-0.16570374369621277,
0.33474963903427124,
0.23086954653263092,
0.6353483200073242,
0.2914363443851471,
0.020343810319900513,
0.04696641117334366,
-0.19692103564739227,
0.07244829088449478,
0.2094472199678421,
0.1526716947555542,
0.1200888454914093,
-0.2670750021934509,
0.22941778600215912,
0.13594433665275574,
-0.13427381217479706,
-0.09999486804008484,
0.2606731653213501,
0.31387680768966675,
-0.39107805490493774,
0.17737403512001038,
-0.2687884569168091,
-0.266405314207077,
-0.09359060227870941,
0.10297012329101562,
-0.2182300090789795,
0.08945979177951813,
0.537132978439331,
0.31444376707077026,
0.1687239408493042,
-0.1476960927248001,
0.1568286269903183,
0.3726186752319336,
0.31288427114486694,
0.5908776521682739,
0.022830042988061905,
-0.15258315205574036,
-0.1991579830646515,
-0.44418320059776306,
0.1017586961388588,
0.06367437541484833,
0.23989371955394745,
-0.008514774963259697,
0.08075694739818573,
-0.01712285727262497,
-0.027106422930955887,
0.12930050492286682,
-0.1434696912765503,
-0.1768602728843689,
-0.03666909039020538,
-0.41248172521591187,
-0.15874111652374268,
0.038061827421188354,
-0.2000686228275299,
0.10361818224191666,
-0.24335575103759766,
0.064429871737957,
0.09861057996749878,
0.07846414297819138,
-0.11976073682308197,
0.1893944889307022,
0.1105801910161972,
-0.04218447208404541,
0.2163258045911789,
0.22801849246025085,
0.2743911147117615,
-0.029495295137166977,
-0.11765417456626892,
-0.26087886095046997,
-0.6040968298912048,
-0.4140899181365967,
0.14968504011631012,
-0.09739217162132263,
0.0983688235282898,
-0.06598475575447083,
-0.06658010184764862,
-0.16396969556808472,
0.1544445902109146,
0.15156912803649902,
-0.12185415625572205,
-0.4928680956363678,
0.2210882157087326,
0.08522653579711914,
0.0022881366312503815,
-0.11374326050281525,
0.20069393515586853,
0.019055724143981934,
0.5071313381195068,
-0.20358026027679443,
-0.6065545678138733,
0.6595961451530457,
-0.06834635883569717,
-0.3848763704299927,
-0.03308693692088127,
0.09767752885818481,
0.08023154735565186,
-0.1977584809064865,
-0.5424656271934509,
0.05946725606918335,
0.1686285436153412,
0.03952379524707794,
-0.2772475779056549,
0.2007497102022171,
-0.08647690713405609,
-0.0491294302046299,
-0.11125011742115021,
0.35446181893348694,
0.06072663888335228,
-0.4413897395133972,
0.2329769730567932,
-0.10567057132720947
] |
https://github.com/huggingface/datasets/issues/2080 | Hi !
This is actually supported ! but not yet in `from_pandas`.
You can use `from_dict` for now instead:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset)
```
This will work but to use it with the torch formatter you must specify the `Array2D` feature type in order to tell the shape:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset, features=Features({
"bbox": Array2D(shape=(3, 4), dtype="int64"),
"input_ids": Value("int64")
}))
dataset.set_format("torch")
print(dataset[0]['bbox'])
# tensor([[1, 2, 3, 4],
# [1, 2, 3, 4],
# [1, 2, 3, 4]])
```
If you don't specify the `Array2D` feature type, then the inferred type will be Sequence(Sequence(Value("int64"))) and therefore the torch formatter will return list of tensors | Multidimensional arrays in a Dataset | Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263). | 165 | Multidimensional arrays in a Dataset
Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263).
Hi !
This is actually supported ! but not yet in `from_pandas`.
You can use `from_dict` for now instead:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset)
```
This will work but to use it with the torch formatter you must specify the `Array2D` feature type in order to tell the shape:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset, features=Features({
"bbox": Array2D(shape=(3, 4), dtype="int64"),
"input_ids": Value("int64")
}))
dataset.set_format("torch")
print(dataset[0]['bbox'])
# tensor([[1, 2, 3, 4],
# [1, 2, 3, 4],
# [1, 2, 3, 4]])
```
If you don't specify the `Array2D` feature type, then the inferred type will be Sequence(Sequence(Value("int64"))) and therefore the torch formatter will return list of tensors | [
0.014902204275131226,
-0.2567944824695587,
-0.07993536442518234,
0.19153155386447906,
0.44957035779953003,
0.054927706718444824,
0.8991124033927917,
0.10109418630599976,
0.18042466044425964,
0.06783026456832886,
-0.11097677797079086,
0.32042503356933594,
-0.2819291055202484,
0.05221142619848251,
0.17841202020645142,
-0.4505751132965088,
0.1631147265434265,
0.294037789106369,
-0.3680662512779236,
0.09732834249734879,
-0.05655095353722572,
-0.056346602737903595,
-0.2456144541501999,
-0.041922010481357574,
-0.3301549255847931,
-0.20088359713554382,
-0.14763665199279785,
-0.1640363335609436,
-0.0638762041926384,
-0.1978777050971985,
0.2409166544675827,
-0.17062534391880035,
0.270060658454895,
0.2606251835823059,
-0.00011955088120885193,
0.2267989069223404,
0.02477424032986164,
-0.1292833387851715,
-0.03596775233745575,
-0.039348989725112915,
0.27251482009887695,
-0.6480609178543091,
-0.08060112595558167,
-0.43247509002685547,
0.008071772754192352,
-0.4712083637714386,
-0.2638433575630188,
-0.5005578398704529,
0.051389969885349274,
0.3928322196006775,
0.11419633775949478,
0.33147764205932617,
0.23635664582252502,
0.15799793601036072,
0.1462768018245697,
0.013280901126563549,
-0.1706012338399887,
-0.20054487884044647,
0.2393975555896759,
-0.20722585916519165,
0.030029401183128357,
0.09321052581071854,
-0.2798197269439697,
0.16612082719802856,
0.2681392431259155,
0.20493561029434204,
0.005801161751151085,
0.061136435717344284,
-0.03135768324136734,
0.12784385681152344,
0.42765912413597107,
-0.3980730473995209,
-0.36398613452911377,
-0.2793344259262085,
0.06869292259216309,
-0.11977459490299225,
-0.1095300167798996,
0.3258957266807556,
-0.12660017609596252,
0.09108060598373413,
-0.4061068296432495,
0.14080019295215607,
-0.31824684143066406,
0.33433255553245544,
-0.40434637665748596,
0.22821930050849915,
0.1337881088256836,
0.16129951179027557,
0.03959992527961731,
-0.13248661160469055,
0.73390793800354,
-0.024670859798789024,
0.3878379166126251,
0.07807232439517975,
-0.30604952573776245,
-0.029210418462753296,
-0.19112055003643036,
-0.554595947265625,
-0.03882389888167381,
-0.4604114592075348,
0.3082383871078491,
0.1663305014371872,
0.10438814759254456,
0.19769251346588135,
0.035352807492017746,
0.23832844197750092,
-0.43630751967430115,
0.41212132573127747,
-0.0672474354505539,
-0.23684945702552795,
0.4810279607772827,
0.09924802929162979,
-0.15616551041603088,
-0.15026526153087616,
0.1455620676279068,
0.006174221634864807,
-0.027242489159107208,
0.3684127628803253,
-0.2227877378463745,
0.007069405168294907,
-0.516088604927063,
-0.008648425340652466,
0.0363629050552845,
0.14736171066761017,
0.10867221653461456,
0.39572325348854065,
0.04166854918003082,
0.3720446527004242,
0.1662512719631195,
-0.11952638626098633,
-0.07113973796367645,
0.32249969244003296,
-0.3391713798046112,
-0.0316564179956913,
0.16391965746879578,
0.5651170015335083,
-0.0971912145614624,
0.020491376519203186,
0.20878097414970398,
-0.07643240690231323,
0.028902895748615265,
-0.08741675317287445,
0.2978042960166931,
0.29088136553764343,
-0.1416597068309784,
-0.04868103563785553,
0.04127282649278641,
0.24161282181739807,
-0.013037681579589844,
0.4392247200012207,
-0.07118473947048187,
-0.04718800261616707,
-0.3636683523654938,
-0.03748774901032448,
-0.09458944946527481,
-0.026414625346660614,
-0.196016326546669,
0.1866910308599472,
0.4951612055301666,
-0.028208725154399872,
0.10754605382680893,
-0.5084320306777954,
0.08893042802810669,
-0.20724472403526306,
0.14008960127830505,
-0.3502916991710663,
-0.39059552550315857,
0.20100294053554535,
0.24070128798484802,
0.34632375836372375,
0.09755924344062805,
0.28345105051994324,
-0.344948410987854,
0.054057952016592026,
0.03290034085512161,
0.24733419716358185,
0.3387681841850281,
-0.04200054705142975,
-0.08711715042591095,
-0.1622389853000641,
-0.01732495427131653,
-0.0007176846265792847,
0.11120052635669708,
0.3168392777442932,
0.13971978425979614,
0.19581067562103271,
0.18611904978752136,
0.19720935821533203,
-0.03896661847829819,
0.35238027572631836,
-0.09162966907024384,
-0.21544674038887024,
0.4633566439151764,
0.2579583525657654,
0.30608052015304565,
-0.15489664673805237,
0.017665846273303032,
0.056327611207962036,
0.09404373914003372,
-0.543179452419281,
0.19490422308444977,
0.34915411472320557,
-0.018713723868131638,
-0.09863413870334625,
0.05644141510128975,
-0.449257493019104,
-0.7101922035217285,
0.1608668714761734,
0.048302263021469116,
0.1065320074558258,
-0.18375635147094727,
-0.06632501631975174,
-0.10793901234865189,
0.11183176934719086,
0.07206980884075165,
0.11789754033088684,
0.04174964502453804,
0.03523325175046921,
-0.07352320104837418,
-0.3971257209777832,
-0.20474496483802795,
0.07765233516693115,
0.3375151753425598,
-0.08291810005903244,
-0.3645126223564148,
0.5928974151611328,
-0.10395266860723495,
-0.28629398345947266,
0.01013503223657608,
0.44628939032554626,
0.06118009239435196,
-0.0496978722512722,
0.19775894284248352,
0.2274240106344223,
0.12309283763170242,
-0.3832359313964844,
-0.4160241484642029,
0.4727385640144348,
0.25628861784935,
-0.27217987179756165,
0.203681081533432,
0.0511426143348217,
0.015731804072856903,
-0.008493505418300629,
-0.3207268714904785,
0.568791389465332,
-0.0014344756491482258,
-0.026108581572771072,
-0.27262818813323975,
0.19143876433372498,
0.08335421234369278,
0.09092941135168076,
-0.11716002225875854,
-0.06775803864002228,
-0.23000356554985046,
-0.21157366037368774,
0.09221615642309189,
-0.004559783264994621,
-0.38978374004364014,
0.05587216466665268,
0.26775461435317993,
-0.18925169110298157,
0.2653503715991974,
-0.13475006818771362,
-0.03758474066853523,
0.015086792409420013,
0.17935864627361298,
-0.03715302050113678,
0.1663658618927002,
0.20581147074699402,
0.11508673429489136,
-0.12482014298439026,
-0.4518624544143677,
-0.13972869515419006,
0.05173054337501526,
-0.10792030394077301,
0.18124239146709442,
0.05186156556010246,
0.29553312063217163,
-0.16763581335544586,
-0.0637025386095047,
0.09142860770225525,
0.3197636902332306,
0.22884443402290344,
-0.4060828685760498,
0.16245916485786438,
-0.3874126672744751,
-0.066465824842453,
-0.23047702014446259,
-0.2601809501647949,
0.0049727242439985275,
0.08687716722488403,
-0.08801925927400589,
0.23420307040214539,
0.08120501041412354,
0.16895803809165955,
0.02776685357093811,
-0.04500007629394531,
0.2548812925815582,
-0.24779632687568665,
-0.06248822063207626,
-0.13135354220867157,
-0.06415921449661255,
-0.0014591105282306671,
0.10308676958084106,
0.14193180203437805,
0.13379231095314026,
0.4435393810272217,
-0.05716199427843094,
-0.45929962396621704,
-0.03475072979927063,
-0.14632678031921387,
-0.2035895586013794,
-0.16977645456790924,
0.09047956764698029,
0.010605454444885254,
-0.11258616298437119,
-0.04037987440824509,
0.30961135029792786,
0.29277950525283813,
0.03552170842885971,
0.3789583146572113,
0.20877724885940552,
-0.11533574759960175,
-0.1274021565914154,
-0.13282696902751923,
-0.14983119070529938,
-0.26560789346694946,
0.02125905081629753,
-0.39214563369750977,
0.10539355874061584,
-0.2647838890552521,
0.3787119388580322,
0.19258812069892883,
0.15870307385921478,
-0.2593994140625,
0.07405796647071838,
0.34466826915740967,
0.6661352515220642,
-0.03519480675458908,
-0.39073842763900757,
-0.3848363161087036,
-0.16445840895175934,
0.0585448257625103,
0.701117753982544,
-0.21244856715202332,
-0.23206236958503723,
-0.13377591967582703,
-0.06269288808107376,
-0.13287082314491272,
-0.05993395298719406,
0.634539008140564,
0.08619886636734009,
0.001302231103181839,
-0.09038746356964111,
-0.16631625592708588,
0.06630360335111618,
0.1509488821029663,
0.09398077428340912,
-0.08139866590499878,
0.3435147702693939,
0.2753550708293915,
0.30177414417266846,
0.023156657814979553,
-0.2025797963142395,
0.2516394853591919,
-0.1907728612422943,
0.15490755438804626,
-0.029443059116601944,
-0.2573094666004181,
-0.07659021764993668,
-0.37835457921028137,
-0.16270889341831207,
-0.08777846395969391,
-0.21942245960235596,
-0.5588400363922119,
-0.01349550485610962,
0.35416626930236816,
-0.11286107450723648,
-0.06205468624830246,
0.4988286793231964,
-0.38660815358161926,
0.3288065791130066,
-0.0005443543195724487,
0.049164094030857086,
-0.3488151431083679,
-0.16227085888385773,
-0.18839624524116516,
-0.3264351487159729,
-0.131792813539505,
0.02074054256081581,
-0.5361713171005249,
-0.26963600516319275,
0.18088281154632568,
0.12617839872837067,
0.3767215609550476,
0.7153759002685547,
0.11382578313350677,
0.040026746690273285,
0.21624311804771423,
-0.029535863548517227,
0.5638819932937622,
-0.07000720500946045,
-0.30266085267066956,
0.32995834946632385,
0.05557116121053696,
-0.5217559933662415,
-0.23254898190498352,
-0.3563009798526764,
-0.14398160576820374,
-0.09719600528478622,
0.47888386249542236,
-0.3085346221923828,
-0.2305999994277954,
0.19100640714168549,
0.18537431955337524,
-0.1017971858382225,
-0.07346107065677643,
-0.24735969305038452,
-0.2527901232242584,
-0.18897680938243866,
-0.14286799728870392,
0.4407947063446045,
0.31979483366012573,
0.2110816240310669,
-0.22339367866516113,
-0.10558053106069565,
-0.3295325040817261,
0.0886833518743515,
-0.0368407666683197,
0.08961208909749985,
0.13585253059864044,
-0.12473438680171967,
0.1726723462343216,
0.22215911746025085,
0.48255249857902527,
0.09615272283554077,
-0.11076755821704865,
-0.013558965176343918,
0.17098936438560486,
-0.12790848314762115,
0.37958455085754395,
0.15185922384262085,
-0.1087806224822998,
-0.2579713463783264,
-0.08833178877830505,
0.001515144482254982,
-0.12079302221536636,
-0.029729587957262993,
0.2756112217903137,
-0.03569585084915161,
-0.2073618769645691,
-0.2779882550239563,
0.2343326210975647,
-0.025475356727838516,
0.11399877071380615,
0.17162317037582397,
0.2811611592769623,
-0.16812263429164886,
0.28834640979766846,
0.33342301845550537,
0.6774015426635742,
-0.5055261850357056,
0.3920159935951233,
0.4707363247871399,
-0.11079486459493637,
0.20893162488937378,
-0.13665905594825745,
0.31784847378730774,
-0.23953720927238464,
0.01992892101407051,
-0.2089608758687973,
-0.18501833081245422,
0.20928512513637543,
0.4186440706253052,
-0.027602970600128174,
0.08131009340286255,
0.04853212833404541,
0.21094758808612823,
0.19195763766765594,
-0.08710624277591705,
0.12907423079013824,
-0.24501146376132965,
-0.07336905598640442,
0.07221522927284241,
-0.19499027729034424,
-0.3241557478904724,
-0.012673754245042801,
-0.20417173206806183,
-0.34223365783691406,
-0.020346157252788544,
-0.34459394216537476,
-0.1296943575143814,
-0.30061468482017517,
0.4228592813014984,
0.13846051692962646,
-0.494845986366272,
0.04870501160621643,
0.5728104114532471,
0.025615578517317772,
-0.38159507513046265,
-0.14501570165157318,
-0.3738669455051422,
-0.2349483221769333,
-0.22082915902137756,
-0.048831015825271606,
-0.255801260471344,
0.3040536344051361,
0.015650436282157898,
-0.07397350668907166,
0.16438451409339905,
-0.03041667491197586,
-0.39627236127853394,
-0.010893493890762329,
0.2503048777580261,
0.09720736742019653,
-0.24616354703903198,
-0.025374703109264374,
-0.18848012387752533,
0.14461129903793335,
-0.050029922276735306,
0.06043194234371185,
-0.09656745195388794,
-0.03861963748931885,
0.2899436950683594,
-0.04602073132991791,
0.07748611271381378,
0.12573620676994324,
0.22394268214702606,
0.1179814413189888,
-0.3031094968318939,
0.18126162886619568,
0.10924968123435974,
-0.30350059270858765,
-0.15382489562034607,
0.20045551657676697,
0.5446792840957642,
-0.06635130196809769,
0.023445583879947662,
-0.3518611192703247,
-0.3031124770641327,
-0.0683956891298294,
0.1484072208404541,
0.31319460272789,
0.12769412994384766,
-0.19339585304260254,
-0.20293687283992767,
-0.26349252462387085,
0.42870384454727173,
0.37948814034461975,
0.27472996711730957,
-0.03510360047221184,
0.2906455993652344,
-0.1598075032234192,
0.005198854953050613,
-0.23141774535179138,
-0.02594074048101902,
-0.09794909507036209,
0.27712133526802063,
-0.021553710103034973,
-0.3222760260105133,
-0.1066989153623581,
-0.10972395539283752,
0.08155208826065063,
-0.08753545582294464,
-0.11624915897846222,
-0.1111932173371315,
0.07811614871025085,
0.1195414587855339,
0.11838336288928986,
-0.003928665071725845,
0.025731489062309265,
-0.47149157524108887,
-0.3264600932598114,
-0.23633943498134613,
0.00800788402557373,
0.45332252979278564,
-0.004155544564127922,
0.16547316312789917,
0.29987823963165283,
0.11579367518424988,
-0.07617519795894623,
-0.168829545378685,
-0.15012872219085693,
-0.13836082816123962,
0.00503959134221077,
0.21832887828350067,
0.2484649419784546,
0.0066201165318489075,
-0.296795129776001,
0.13182154297828674,
0.07041003555059433,
-0.07402816414833069,
0.31374627351760864,
-0.3049808442592621,
-0.05275095999240875,
-0.1453632414340973,
0.4793776273727417,
-0.054444100707769394,
-0.33187270164489746,
0.04266937077045441,
0.15170355141162872,
0.0878729596734047,
-0.2129775881767273,
-0.3487563729286194,
0.12695671617984772,
0.03489678353071213,
0.14103585481643677,
0.5094714760780334,
0.36713212728500366,
0.19690464437007904,
0.12617583572864532,
-0.12476062774658203,
0.3551175892353058,
-0.13373929262161255,
-0.1359167993068695,
0.33050769567489624,
-0.047736603766679764,
-0.015956053510308266,
0.2496727555990219,
0.003282323479652405,
0.20690570771694183,
0.5683194398880005,
-0.0471285805106163,
0.2942132353782654,
0.40078282356262207,
0.10459090024232864,
-0.173431396484375,
0.15799179673194885,
-0.09683124721050262,
-0.09427367895841599,
0.23897325992584229,
-0.14454558491706848,
-0.14823931455612183,
0.20992439985275269,
-0.12586066126823425,
-0.020397543907165527,
-0.11069326102733612,
0.0989396721124649,
-0.2336275279521942,
0.14432857930660248,
0.026103578507900238,
0.05436187982559204,
-0.09923382103443146,
-0.18718907237052917,
-0.09873253107070923,
-0.07736232876777649,
0.33278775215148926,
-0.006064489483833313,
0.1644572615623474,
0.010361861437559128,
0.1795242726802826,
0.4635999798774719,
0.03438043221831322,
-0.18017125129699707,
0.2851695716381073,
0.31748926639556885,
-0.16269025206565857,
-0.06692679226398468,
0.028595512732863426,
0.29329681396484375,
0.29059338569641113,
0.005514420568943024,
0.01784708723425865,
-0.15862207114696503,
-0.18521639704704285,
-0.07138010114431381,
0.042283833026885986,
0.03921886160969734,
0.27126550674438477,
0.27942878007888794,
0.02866433933377266,
-0.06538176536560059,
0.17845286428928375,
-0.02358807995915413,
0.051359210163354874,
-0.1432749181985855,
0.29609420895576477,
-0.1465904414653778,
-0.5235883593559265,
0.1866847574710846,
-0.324972003698349,
-0.3480749726295471,
0.029694221913814545,
0.33926650881767273,
-0.08028166741132736,
0.2214089184999466,
0.27699506282806396,
0.02038729190826416,
0.14600177109241486,
0.4759076237678528,
0.09761147201061249,
0.3561212122440338,
-0.07670039683580399,
-0.06897249817848206,
-0.5012390613555908,
0.13981738686561584,
-0.4139971435070038,
0.04084350913763046,
0.2894044518470764,
0.17247071862220764,
0.32250747084617615,
0.28956326842308044,
0.03762241080403328,
0.1403893530368805,
-0.0968746617436409,
0.38435688614845276,
-0.22702926397323608,
-0.06456901878118515,
0.19505266845226288,
0.21187704801559448,
0.10901673883199692,
-0.23885729908943176,
0.3231706917285919,
0.29305019974708557,
0.02054917812347412,
-0.2603200078010559,
0.399215430021286,
-0.19718006253242493,
0.30748292803764343,
-0.07281216979026794,
-0.13892394304275513,
0.5194196701049805,
0.22934624552726746,
0.2214033454656601,
-0.1439768671989441,
0.03000371903181076,
-0.09081262350082397,
0.3211366534233093,
0.14612846076488495,
0.4942120909690857,
-0.4318765699863434,
-0.21084272861480713,
-0.05426957085728645,
0.14286883175373077,
0.02464013546705246,
-0.04252767562866211,
-0.18933838605880737,
0.25848788022994995,
-0.22036172449588776,
-0.01482287049293518,
0.057934194803237915,
0.03374393284320831,
0.07941161096096039,
0.21956664323806763,
-0.2821284532546997,
-0.41873908042907715,
0.42353981733322144,
-0.1683388352394104,
-0.5067201852798462,
0.17998197674751282,
-0.24475225806236267,
0.15599596500396729,
0.13811585307121277,
-0.5674666166305542,
-0.14944115281105042,
0.21183517575263977,
-0.1582859754562378,
-0.20383726060390472,
-0.03757072612643242,
-0.005842756479978561,
-0.16729211807250977,
-0.14893323183059692,
0.35477831959724426,
-0.10515403747558594,
-0.16717547178268433,
-0.42029350996017456,
-0.325451135635376
] |
https://github.com/huggingface/datasets/issues/2080 | Thanks for the explanation.
With my original DataFrame, I did
```
dataset = dataset.to_dict("list")
```
and then the rest of the transformation from dictionary works just fine. | Multidimensional arrays in a Dataset | Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263). | 27 | Multidimensional arrays in a Dataset
Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263).
Thanks for the explanation.
With my original DataFrame, I did
```
dataset = dataset.to_dict("list")
```
and then the rest of the transformation from dictionary works just fine. | [
0.014902204275131226,
-0.2567944824695587,
-0.07993536442518234,
0.19153155386447906,
0.44957035779953003,
0.054927706718444824,
0.8991124033927917,
0.10109418630599976,
0.18042466044425964,
0.06783026456832886,
-0.11097677797079086,
0.32042503356933594,
-0.2819291055202484,
0.05221142619848251,
0.17841202020645142,
-0.4505751132965088,
0.1631147265434265,
0.294037789106369,
-0.3680662512779236,
0.09732834249734879,
-0.05655095353722572,
-0.056346602737903595,
-0.2456144541501999,
-0.041922010481357574,
-0.3301549255847931,
-0.20088359713554382,
-0.14763665199279785,
-0.1640363335609436,
-0.0638762041926384,
-0.1978777050971985,
0.2409166544675827,
-0.17062534391880035,
0.270060658454895,
0.2606251835823059,
-0.00011955088120885193,
0.2267989069223404,
0.02477424032986164,
-0.1292833387851715,
-0.03596775233745575,
-0.039348989725112915,
0.27251482009887695,
-0.6480609178543091,
-0.08060112595558167,
-0.43247509002685547,
0.008071772754192352,
-0.4712083637714386,
-0.2638433575630188,
-0.5005578398704529,
0.051389969885349274,
0.3928322196006775,
0.11419633775949478,
0.33147764205932617,
0.23635664582252502,
0.15799793601036072,
0.1462768018245697,
0.013280901126563549,
-0.1706012338399887,
-0.20054487884044647,
0.2393975555896759,
-0.20722585916519165,
0.030029401183128357,
0.09321052581071854,
-0.2798197269439697,
0.16612082719802856,
0.2681392431259155,
0.20493561029434204,
0.005801161751151085,
0.061136435717344284,
-0.03135768324136734,
0.12784385681152344,
0.42765912413597107,
-0.3980730473995209,
-0.36398613452911377,
-0.2793344259262085,
0.06869292259216309,
-0.11977459490299225,
-0.1095300167798996,
0.3258957266807556,
-0.12660017609596252,
0.09108060598373413,
-0.4061068296432495,
0.14080019295215607,
-0.31824684143066406,
0.33433255553245544,
-0.40434637665748596,
0.22821930050849915,
0.1337881088256836,
0.16129951179027557,
0.03959992527961731,
-0.13248661160469055,
0.73390793800354,
-0.024670859798789024,
0.3878379166126251,
0.07807232439517975,
-0.30604952573776245,
-0.029210418462753296,
-0.19112055003643036,
-0.554595947265625,
-0.03882389888167381,
-0.4604114592075348,
0.3082383871078491,
0.1663305014371872,
0.10438814759254456,
0.19769251346588135,
0.035352807492017746,
0.23832844197750092,
-0.43630751967430115,
0.41212132573127747,
-0.0672474354505539,
-0.23684945702552795,
0.4810279607772827,
0.09924802929162979,
-0.15616551041603088,
-0.15026526153087616,
0.1455620676279068,
0.006174221634864807,
-0.027242489159107208,
0.3684127628803253,
-0.2227877378463745,
0.007069405168294907,
-0.516088604927063,
-0.008648425340652466,
0.0363629050552845,
0.14736171066761017,
0.10867221653461456,
0.39572325348854065,
0.04166854918003082,
0.3720446527004242,
0.1662512719631195,
-0.11952638626098633,
-0.07113973796367645,
0.32249969244003296,
-0.3391713798046112,
-0.0316564179956913,
0.16391965746879578,
0.5651170015335083,
-0.0971912145614624,
0.020491376519203186,
0.20878097414970398,
-0.07643240690231323,
0.028902895748615265,
-0.08741675317287445,
0.2978042960166931,
0.29088136553764343,
-0.1416597068309784,
-0.04868103563785553,
0.04127282649278641,
0.24161282181739807,
-0.013037681579589844,
0.4392247200012207,
-0.07118473947048187,
-0.04718800261616707,
-0.3636683523654938,
-0.03748774901032448,
-0.09458944946527481,
-0.026414625346660614,
-0.196016326546669,
0.1866910308599472,
0.4951612055301666,
-0.028208725154399872,
0.10754605382680893,
-0.5084320306777954,
0.08893042802810669,
-0.20724472403526306,
0.14008960127830505,
-0.3502916991710663,
-0.39059552550315857,
0.20100294053554535,
0.24070128798484802,
0.34632375836372375,
0.09755924344062805,
0.28345105051994324,
-0.344948410987854,
0.054057952016592026,
0.03290034085512161,
0.24733419716358185,
0.3387681841850281,
-0.04200054705142975,
-0.08711715042591095,
-0.1622389853000641,
-0.01732495427131653,
-0.0007176846265792847,
0.11120052635669708,
0.3168392777442932,
0.13971978425979614,
0.19581067562103271,
0.18611904978752136,
0.19720935821533203,
-0.03896661847829819,
0.35238027572631836,
-0.09162966907024384,
-0.21544674038887024,
0.4633566439151764,
0.2579583525657654,
0.30608052015304565,
-0.15489664673805237,
0.017665846273303032,
0.056327611207962036,
0.09404373914003372,
-0.543179452419281,
0.19490422308444977,
0.34915411472320557,
-0.018713723868131638,
-0.09863413870334625,
0.05644141510128975,
-0.449257493019104,
-0.7101922035217285,
0.1608668714761734,
0.048302263021469116,
0.1065320074558258,
-0.18375635147094727,
-0.06632501631975174,
-0.10793901234865189,
0.11183176934719086,
0.07206980884075165,
0.11789754033088684,
0.04174964502453804,
0.03523325175046921,
-0.07352320104837418,
-0.3971257209777832,
-0.20474496483802795,
0.07765233516693115,
0.3375151753425598,
-0.08291810005903244,
-0.3645126223564148,
0.5928974151611328,
-0.10395266860723495,
-0.28629398345947266,
0.01013503223657608,
0.44628939032554626,
0.06118009239435196,
-0.0496978722512722,
0.19775894284248352,
0.2274240106344223,
0.12309283763170242,
-0.3832359313964844,
-0.4160241484642029,
0.4727385640144348,
0.25628861784935,
-0.27217987179756165,
0.203681081533432,
0.0511426143348217,
0.015731804072856903,
-0.008493505418300629,
-0.3207268714904785,
0.568791389465332,
-0.0014344756491482258,
-0.026108581572771072,
-0.27262818813323975,
0.19143876433372498,
0.08335421234369278,
0.09092941135168076,
-0.11716002225875854,
-0.06775803864002228,
-0.23000356554985046,
-0.21157366037368774,
0.09221615642309189,
-0.004559783264994621,
-0.38978374004364014,
0.05587216466665268,
0.26775461435317993,
-0.18925169110298157,
0.2653503715991974,
-0.13475006818771362,
-0.03758474066853523,
0.015086792409420013,
0.17935864627361298,
-0.03715302050113678,
0.1663658618927002,
0.20581147074699402,
0.11508673429489136,
-0.12482014298439026,
-0.4518624544143677,
-0.13972869515419006,
0.05173054337501526,
-0.10792030394077301,
0.18124239146709442,
0.05186156556010246,
0.29553312063217163,
-0.16763581335544586,
-0.0637025386095047,
0.09142860770225525,
0.3197636902332306,
0.22884443402290344,
-0.4060828685760498,
0.16245916485786438,
-0.3874126672744751,
-0.066465824842453,
-0.23047702014446259,
-0.2601809501647949,
0.0049727242439985275,
0.08687716722488403,
-0.08801925927400589,
0.23420307040214539,
0.08120501041412354,
0.16895803809165955,
0.02776685357093811,
-0.04500007629394531,
0.2548812925815582,
-0.24779632687568665,
-0.06248822063207626,
-0.13135354220867157,
-0.06415921449661255,
-0.0014591105282306671,
0.10308676958084106,
0.14193180203437805,
0.13379231095314026,
0.4435393810272217,
-0.05716199427843094,
-0.45929962396621704,
-0.03475072979927063,
-0.14632678031921387,
-0.2035895586013794,
-0.16977645456790924,
0.09047956764698029,
0.010605454444885254,
-0.11258616298437119,
-0.04037987440824509,
0.30961135029792786,
0.29277950525283813,
0.03552170842885971,
0.3789583146572113,
0.20877724885940552,
-0.11533574759960175,
-0.1274021565914154,
-0.13282696902751923,
-0.14983119070529938,
-0.26560789346694946,
0.02125905081629753,
-0.39214563369750977,
0.10539355874061584,
-0.2647838890552521,
0.3787119388580322,
0.19258812069892883,
0.15870307385921478,
-0.2593994140625,
0.07405796647071838,
0.34466826915740967,
0.6661352515220642,
-0.03519480675458908,
-0.39073842763900757,
-0.3848363161087036,
-0.16445840895175934,
0.0585448257625103,
0.701117753982544,
-0.21244856715202332,
-0.23206236958503723,
-0.13377591967582703,
-0.06269288808107376,
-0.13287082314491272,
-0.05993395298719406,
0.634539008140564,
0.08619886636734009,
0.001302231103181839,
-0.09038746356964111,
-0.16631625592708588,
0.06630360335111618,
0.1509488821029663,
0.09398077428340912,
-0.08139866590499878,
0.3435147702693939,
0.2753550708293915,
0.30177414417266846,
0.023156657814979553,
-0.2025797963142395,
0.2516394853591919,
-0.1907728612422943,
0.15490755438804626,
-0.029443059116601944,
-0.2573094666004181,
-0.07659021764993668,
-0.37835457921028137,
-0.16270889341831207,
-0.08777846395969391,
-0.21942245960235596,
-0.5588400363922119,
-0.01349550485610962,
0.35416626930236816,
-0.11286107450723648,
-0.06205468624830246,
0.4988286793231964,
-0.38660815358161926,
0.3288065791130066,
-0.0005443543195724487,
0.049164094030857086,
-0.3488151431083679,
-0.16227085888385773,
-0.18839624524116516,
-0.3264351487159729,
-0.131792813539505,
0.02074054256081581,
-0.5361713171005249,
-0.26963600516319275,
0.18088281154632568,
0.12617839872837067,
0.3767215609550476,
0.7153759002685547,
0.11382578313350677,
0.040026746690273285,
0.21624311804771423,
-0.029535863548517227,
0.5638819932937622,
-0.07000720500946045,
-0.30266085267066956,
0.32995834946632385,
0.05557116121053696,
-0.5217559933662415,
-0.23254898190498352,
-0.3563009798526764,
-0.14398160576820374,
-0.09719600528478622,
0.47888386249542236,
-0.3085346221923828,
-0.2305999994277954,
0.19100640714168549,
0.18537431955337524,
-0.1017971858382225,
-0.07346107065677643,
-0.24735969305038452,
-0.2527901232242584,
-0.18897680938243866,
-0.14286799728870392,
0.4407947063446045,
0.31979483366012573,
0.2110816240310669,
-0.22339367866516113,
-0.10558053106069565,
-0.3295325040817261,
0.0886833518743515,
-0.0368407666683197,
0.08961208909749985,
0.13585253059864044,
-0.12473438680171967,
0.1726723462343216,
0.22215911746025085,
0.48255249857902527,
0.09615272283554077,
-0.11076755821704865,
-0.013558965176343918,
0.17098936438560486,
-0.12790848314762115,
0.37958455085754395,
0.15185922384262085,
-0.1087806224822998,
-0.2579713463783264,
-0.08833178877830505,
0.001515144482254982,
-0.12079302221536636,
-0.029729587957262993,
0.2756112217903137,
-0.03569585084915161,
-0.2073618769645691,
-0.2779882550239563,
0.2343326210975647,
-0.025475356727838516,
0.11399877071380615,
0.17162317037582397,
0.2811611592769623,
-0.16812263429164886,
0.28834640979766846,
0.33342301845550537,
0.6774015426635742,
-0.5055261850357056,
0.3920159935951233,
0.4707363247871399,
-0.11079486459493637,
0.20893162488937378,
-0.13665905594825745,
0.31784847378730774,
-0.23953720927238464,
0.01992892101407051,
-0.2089608758687973,
-0.18501833081245422,
0.20928512513637543,
0.4186440706253052,
-0.027602970600128174,
0.08131009340286255,
0.04853212833404541,
0.21094758808612823,
0.19195763766765594,
-0.08710624277591705,
0.12907423079013824,
-0.24501146376132965,
-0.07336905598640442,
0.07221522927284241,
-0.19499027729034424,
-0.3241557478904724,
-0.012673754245042801,
-0.20417173206806183,
-0.34223365783691406,
-0.020346157252788544,
-0.34459394216537476,
-0.1296943575143814,
-0.30061468482017517,
0.4228592813014984,
0.13846051692962646,
-0.494845986366272,
0.04870501160621643,
0.5728104114532471,
0.025615578517317772,
-0.38159507513046265,
-0.14501570165157318,
-0.3738669455051422,
-0.2349483221769333,
-0.22082915902137756,
-0.048831015825271606,
-0.255801260471344,
0.3040536344051361,
0.015650436282157898,
-0.07397350668907166,
0.16438451409339905,
-0.03041667491197586,
-0.39627236127853394,
-0.010893493890762329,
0.2503048777580261,
0.09720736742019653,
-0.24616354703903198,
-0.025374703109264374,
-0.18848012387752533,
0.14461129903793335,
-0.050029922276735306,
0.06043194234371185,
-0.09656745195388794,
-0.03861963748931885,
0.2899436950683594,
-0.04602073132991791,
0.07748611271381378,
0.12573620676994324,
0.22394268214702606,
0.1179814413189888,
-0.3031094968318939,
0.18126162886619568,
0.10924968123435974,
-0.30350059270858765,
-0.15382489562034607,
0.20045551657676697,
0.5446792840957642,
-0.06635130196809769,
0.023445583879947662,
-0.3518611192703247,
-0.3031124770641327,
-0.0683956891298294,
0.1484072208404541,
0.31319460272789,
0.12769412994384766,
-0.19339585304260254,
-0.20293687283992767,
-0.26349252462387085,
0.42870384454727173,
0.37948814034461975,
0.27472996711730957,
-0.03510360047221184,
0.2906455993652344,
-0.1598075032234192,
0.005198854953050613,
-0.23141774535179138,
-0.02594074048101902,
-0.09794909507036209,
0.27712133526802063,
-0.021553710103034973,
-0.3222760260105133,
-0.1066989153623581,
-0.10972395539283752,
0.08155208826065063,
-0.08753545582294464,
-0.11624915897846222,
-0.1111932173371315,
0.07811614871025085,
0.1195414587855339,
0.11838336288928986,
-0.003928665071725845,
0.025731489062309265,
-0.47149157524108887,
-0.3264600932598114,
-0.23633943498134613,
0.00800788402557373,
0.45332252979278564,
-0.004155544564127922,
0.16547316312789917,
0.29987823963165283,
0.11579367518424988,
-0.07617519795894623,
-0.168829545378685,
-0.15012872219085693,
-0.13836082816123962,
0.00503959134221077,
0.21832887828350067,
0.2484649419784546,
0.0066201165318489075,
-0.296795129776001,
0.13182154297828674,
0.07041003555059433,
-0.07402816414833069,
0.31374627351760864,
-0.3049808442592621,
-0.05275095999240875,
-0.1453632414340973,
0.4793776273727417,
-0.054444100707769394,
-0.33187270164489746,
0.04266937077045441,
0.15170355141162872,
0.0878729596734047,
-0.2129775881767273,
-0.3487563729286194,
0.12695671617984772,
0.03489678353071213,
0.14103585481643677,
0.5094714760780334,
0.36713212728500366,
0.19690464437007904,
0.12617583572864532,
-0.12476062774658203,
0.3551175892353058,
-0.13373929262161255,
-0.1359167993068695,
0.33050769567489624,
-0.047736603766679764,
-0.015956053510308266,
0.2496727555990219,
0.003282323479652405,
0.20690570771694183,
0.5683194398880005,
-0.0471285805106163,
0.2942132353782654,
0.40078282356262207,
0.10459090024232864,
-0.173431396484375,
0.15799179673194885,
-0.09683124721050262,
-0.09427367895841599,
0.23897325992584229,
-0.14454558491706848,
-0.14823931455612183,
0.20992439985275269,
-0.12586066126823425,
-0.020397543907165527,
-0.11069326102733612,
0.0989396721124649,
-0.2336275279521942,
0.14432857930660248,
0.026103578507900238,
0.05436187982559204,
-0.09923382103443146,
-0.18718907237052917,
-0.09873253107070923,
-0.07736232876777649,
0.33278775215148926,
-0.006064489483833313,
0.1644572615623474,
0.010361861437559128,
0.1795242726802826,
0.4635999798774719,
0.03438043221831322,
-0.18017125129699707,
0.2851695716381073,
0.31748926639556885,
-0.16269025206565857,
-0.06692679226398468,
0.028595512732863426,
0.29329681396484375,
0.29059338569641113,
0.005514420568943024,
0.01784708723425865,
-0.15862207114696503,
-0.18521639704704285,
-0.07138010114431381,
0.042283833026885986,
0.03921886160969734,
0.27126550674438477,
0.27942878007888794,
0.02866433933377266,
-0.06538176536560059,
0.17845286428928375,
-0.02358807995915413,
0.051359210163354874,
-0.1432749181985855,
0.29609420895576477,
-0.1465904414653778,
-0.5235883593559265,
0.1866847574710846,
-0.324972003698349,
-0.3480749726295471,
0.029694221913814545,
0.33926650881767273,
-0.08028166741132736,
0.2214089184999466,
0.27699506282806396,
0.02038729190826416,
0.14600177109241486,
0.4759076237678528,
0.09761147201061249,
0.3561212122440338,
-0.07670039683580399,
-0.06897249817848206,
-0.5012390613555908,
0.13981738686561584,
-0.4139971435070038,
0.04084350913763046,
0.2894044518470764,
0.17247071862220764,
0.32250747084617615,
0.28956326842308044,
0.03762241080403328,
0.1403893530368805,
-0.0968746617436409,
0.38435688614845276,
-0.22702926397323608,
-0.06456901878118515,
0.19505266845226288,
0.21187704801559448,
0.10901673883199692,
-0.23885729908943176,
0.3231706917285919,
0.29305019974708557,
0.02054917812347412,
-0.2603200078010559,
0.399215430021286,
-0.19718006253242493,
0.30748292803764343,
-0.07281216979026794,
-0.13892394304275513,
0.5194196701049805,
0.22934624552726746,
0.2214033454656601,
-0.1439768671989441,
0.03000371903181076,
-0.09081262350082397,
0.3211366534233093,
0.14612846076488495,
0.4942120909690857,
-0.4318765699863434,
-0.21084272861480713,
-0.05426957085728645,
0.14286883175373077,
0.02464013546705246,
-0.04252767562866211,
-0.18933838605880737,
0.25848788022994995,
-0.22036172449588776,
-0.01482287049293518,
0.057934194803237915,
0.03374393284320831,
0.07941161096096039,
0.21956664323806763,
-0.2821284532546997,
-0.41873908042907715,
0.42353981733322144,
-0.1683388352394104,
-0.5067201852798462,
0.17998197674751282,
-0.24475225806236267,
0.15599596500396729,
0.13811585307121277,
-0.5674666166305542,
-0.14944115281105042,
0.21183517575263977,
-0.1582859754562378,
-0.20383726060390472,
-0.03757072612643242,
-0.005842756479978561,
-0.16729211807250977,
-0.14893323183059692,
0.35477831959724426,
-0.10515403747558594,
-0.16717547178268433,
-0.42029350996017456,
-0.325451135635376
] |
https://github.com/huggingface/datasets/issues/2078 | Hi ! Thanks for reporting.
We're indeed using `jiwer` to compute the WER.
Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible.
Currently the code to compute the WER is defined here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/metrics/wer/wer.py#L93-L94 | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 56 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi ! Thanks for reporting.
We're indeed using `jiwer` to compute the WER.
Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible.
Currently the code to compute the WER is defined here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/metrics/wer/wer.py#L93-L94 | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2078 | Hi,
I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at the end. | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 48 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi,
I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at the end. | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2078 | I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :) | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 23 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :) | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2078 | Thanks for diving into this anyway ^^'
As you said this actually got solved a few days ago | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 18 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Thanks for diving into this anyway ^^'
As you said this actually got solved a few days ago | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2078 | Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples? | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 53 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples? | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2078 | Hi !
It's computed iteratively so not sure what could go wrong
https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106
@NiklasHoltmeyer what version of `datasets` are you running ?
| MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 22 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi !
It's computed iteratively so not sure what could go wrong
https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106
@NiklasHoltmeyer what version of `datasets` are you running ?
| [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2078 | One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`?
As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each.
This could be the case, for example, with a single string with all sentences:
```python
result["predicted"] = "One sentence. Other sentence."
```
or with a __double__ nested list of sentence lists
```python
result["predicted"] = [[ ["One sentence."], ["Other sentence"] ]]
```
The user should check the dimensions of the data structure passed to `predictions` and `references`. | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 103 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`?
As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each.
This could be the case, for example, with a single string with all sentences:
```python
result["predicted"] = "One sentence. Other sentence."
```
or with a __double__ nested list of sentence lists
```python
result["predicted"] = [[ ["One sentence."], ["Other sentence"] ]]
```
The user should check the dimensions of the data structure passed to `predictions` and `references`. | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2078 | Hi all,
in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with the latest implementation of datasets, or by using the alternative WER function that I've contributed on this [pull request](https://github.com/huggingface/datasets/pull/2169) there shouldn't be memory errors. | MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 82 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi all,
in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with the latest implementation of datasets, or by using the alternative WER function that I've contributed on this [pull request](https://github.com/huggingface/datasets/pull/2169) there shouldn't be memory errors. | [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2078 | @lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version
->
```
File "../preprocess_dataset.py", line 132, in <module>
pq.write_table(train_dataset.data, f'{resampled_data_dir}/{data_args.dataset_config_name}.train.parquet')
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 1674, in write_table
writer.write_table(table, row_group_size=row_group_size)
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 588, in write_table
self.writer.write_table(table, row_group_size=row_group_size)
TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got ConcatenationTable)
```
if i do
```
import pyarrow.parquet as pq
...
...
pq.write_table(train_dataset.data, 'train.parquet')
pq.write_table(eval_dataset.data, 'eval.parquet')
```
while using 1.6.1. and its working with 1.5.0
| MemoryError when computing WER metric | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 96 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
@lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version
->
```
File "../preprocess_dataset.py", line 132, in <module>
pq.write_table(train_dataset.data, f'{resampled_data_dir}/{data_args.dataset_config_name}.train.parquet')
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 1674, in write_table
writer.write_table(table, row_group_size=row_group_size)
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 588, in write_table
self.writer.write_table(table, row_group_size=row_group_size)
TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got ConcatenationTable)
```
if i do
```
import pyarrow.parquet as pq
...
...
pq.write_table(train_dataset.data, 'train.parquet')
pq.write_table(eval_dataset.data, 'eval.parquet')
```
while using 1.6.1. and its working with 1.5.0
| [
0.124979168176651,
-0.2007296085357666,
0.058718085289001465,
0.32565104961395264,
0.43339431285858154,
0.07378920167684555,
-0.21804319322109222,
0.2950878441333771,
0.02883128821849823,
0.43098685145378113,
0.09653045982122421,
-0.09463454782962799,
-0.30588796734809875,
-0.5752209424972534,
-0.17998382449150085,
-0.3347722589969635,
-0.13059145212173462,
-0.060313984751701355,
-0.09396814554929733,
0.2673473060131073,
-0.24140101671218872,
0.21814490854740143,
-0.34886592626571655,
0.12293407320976257,
-0.07173290848731995,
-0.011054472997784615,
-0.17592376470565796,
0.1331794261932373,
-0.22127187252044678,
-0.5667485594749451,
0.30259284377098083,
-0.30793890357017517,
0.1904904991388321,
0.3594333529472351,
-0.0001142789697041735,
0.02825520932674408,
0.1901022344827652,
-0.17844702303409576,
-0.010959964245557785,
0.11745588481426239,
-0.12585356831550598,
-0.1865430772304535,
-0.13194003701210022,
-0.009258106350898743,
-0.03298795595765114,
0.03756680712103844,
0.1080688014626503,
-0.2880084216594696,
0.06320881098508835,
0.24494636058807373,
0.19924293458461761,
-0.06094619259238243,
0.296123743057251,
-0.22950813174247742,
-0.12410904467105865,
-0.19057801365852356,
0.19770288467407227,
0.31632816791534424,
-0.2703137993812561,
-0.17763583362102509,
-0.27142640948295593,
0.2580876052379608,
-0.04277707636356354,
0.2143143117427826,
0.09361183643341064,
0.11576016247272491,
0.08539421111345291,
0.011005068197846413,
0.08476661145687103,
-0.2555570602416992,
0.26716890931129456,
-0.32630443572998047,
-0.030164416879415512,
0.20488767325878143,
-0.16143378615379333,
-0.4275713264942169,
0.16603000462055206,
0.11872592568397522,
-0.5047886371612549,
0.0975700244307518,
-0.20402735471725464,
-0.12048114091157913,
-0.3942309021949768,
0.12548117339611053,
-0.005826741456985474,
0.09103207290172577,
-0.19651690125465393,
0.10574258118867874,
0.33680593967437744,
0.15664418041706085,
0.060436274856328964,
0.20696958899497986,
-0.12335391342639923,
0.012526098638772964,
-0.3743092119693756,
-0.08814249187707901,
-0.058486565947532654,
-0.23261986672878265,
0.1580236256122589,
-0.5695323944091797,
0.5826600193977356,
-0.08412738144397736,
0.35244232416152954,
0.44587093591690063,
-0.2218327820301056,
0.8173156976699829,
-0.09721888601779938,
0.07901621609926224,
0.041408419609069824,
0.07843916118144989,
-0.11529292166233063,
-0.24389299750328064,
-0.08986690640449524,
-0.38395974040031433,
0.2813352644443512,
0.18847577273845673,
-0.1235136017203331,
-0.19924253225326538,
-0.44008517265319824,
0.06396611779928207,
-0.04093558341264725,
0.1174827516078949,
0.12619544565677643,
0.3188077509403229,
0.16514766216278076,
0.48937124013900757,
0.31324321031570435,
0.07207314670085907,
-0.17832744121551514,
0.06215321272611618,
-0.23344837129116058,
0.23191002011299133,
-0.22425031661987305,
0.03089819848537445,
0.12527447938919067,
0.22979579865932465,
0.3616984486579895,
-0.232232928276062,
0.21067661046981812,
-0.2574240267276764,
0.2766294479370117,
-0.11066071689128876,
0.08386771380901337,
0.2026335448026657,
-0.0995928943157196,
-0.008728019893169403,
0.2297709882259369,
0.2736266553401947,
0.034562841057777405,
0.11659888923168182,
-0.21280339360237122,
-0.2432081550359726,
0.30050894618034363,
0.15803945064544678,
-0.0586497038602829,
0.06795687228441238,
-0.06455739587545395,
-0.00578202772885561,
0.2805485725402832,
-0.05489280819892883,
-0.3401750326156616,
0.08686605095863342,
-0.7389826774597168,
-0.2600604295730591,
0.1528927981853485,
0.006036624312400818,
-0.17567509412765503,
0.005463764071464539,
0.25586143136024475,
-0.012083569541573524,
0.24220943450927734,
0.0330553874373436,
0.06806487590074539,
0.1206669956445694,
-0.2044021338224411,
-0.10566022992134094,
0.3498843312263489,
-0.8443557620048523,
-0.1511174738407135,
-0.04996895790100098,
-0.1328817754983902,
-0.02565808966755867,
0.2559601068496704,
-0.21462398767471313,
0.14976896345615387,
0.11315914988517761,
0.37853044271469116,
-0.2864329218864441,
-0.17955359816551208,
0.024175703525543213,
-0.1898522973060608,
-0.11398783326148987,
0.1790434867143631,
-0.14133170247077942,
0.39436662197113037,
0.08920513093471527,
0.16556881368160248,
0.14076396822929382,
0.21558617055416107,
-0.027472686022520065,
0.1473461091518402,
0.2670477628707886,
0.2488003671169281,
-0.6484081149101257,
0.3060636818408966,
-0.06286434829235077,
0.1538832187652588,
0.1872505396604538,
-0.242123544216156,
0.06600263714790344,
0.4159047305583954,
0.4293134808540344,
-0.13009922206401825,
0.016113899648189545,
0.061244167387485504,
-0.1678280532360077,
0.2202240228652954,
-0.0615801140666008,
0.30642497539520264,
-0.2538883090019226,
-0.004113420844078064,
0.07258009165525436,
-0.3613114655017853,
-0.08067692816257477,
-0.006758468225598335,
-0.232768714427948,
-0.10887105017900467,
-0.22204184532165527,
0.29364389181137085,
0.19079303741455078,
0.20068608224391937,
0.17184779047966003,
-0.2917719781398773,
0.35057199001312256,
0.10633900761604309,
-0.01704825460910797,
0.1874936819076538,
0.18841242790222168,
-0.1544378250837326,
-0.40107667446136475,
0.21743148565292358,
-0.028292499482631683,
0.20304906368255615,
-0.11859265714883804,
0.23637330532073975,
-0.1250060796737671,
0.005632909946143627,
0.3543411195278168,
0.05272573232650757,
0.31398940086364746,
0.11357317864894867,
0.27626824378967285,
0.1866983026266098,
0.14317645132541656,
0.3140139579772949,
-0.43406999111175537,
-0.2543807029724121,
-0.3894142806529999,
0.36162906885147095,
-0.31483224034309387,
0.3210274279117584,
0.15097638964653015,
-0.14335399866104126,
0.4951443076133728,
-0.13738135993480682,
-0.17804864048957825,
-0.07750573009252548,
-0.32914644479751587,
0.48422446846961975,
0.024781685322523117,
0.06279134750366211,
0.11737354099750519,
-0.03683207556605339,
0.14725317060947418,
0.11951567977666855,
0.2113156020641327,
-0.109455905854702,
-0.06268566101789474,
0.21121522784233093,
-0.4670901894569397,
0.15942569077014923,
0.12574918568134308,
0.10199625045061111,
0.33879464864730835,
-0.22002017498016357,
-0.11528966575860977,
0.2674162983894348,
0.2180284708738327,
-0.13208724558353424,
-0.043518126010894775,
-0.025864820927381516,
-0.2954535186290741,
-0.20420624315738678,
0.3511809706687927,
0.10404261946678162,
0.1294226348400116,
-0.04594176262617111,
0.23271751403808594,
0.24169647693634033,
0.42760440707206726,
0.21142588555812836,
-0.02550128661096096,
-0.1811802089214325,
0.05906042829155922,
0.021860364824533463,
-0.049709491431713104,
0.14635147154331207,
0.08624884486198425,
-0.049868881702423096,
-0.04357152432203293,
-0.18042464554309845,
-0.007156061008572578,
-0.0013990812003612518,
0.41044142842292786,
0.22059449553489685,
0.0727372020483017,
-0.23666486144065857,
-0.03222165256738663,
0.17432370781898499,
-0.23742151260375977,
-0.038494713604450226,
0.5531138181686401,
-0.058711227029561996,
0.08928076922893524,
-0.05655673146247864,
-0.17159247398376465,
-0.09363477677106857,
-0.39646655321121216,
-0.02070193737745285,
0.04138639569282532,
0.1471431404352188,
-0.11817488074302673,
0.14094629883766174,
0.22467303276062012,
0.1708790808916092,
0.00794558972120285,
-0.2062760591506958,
-0.3394729495048523,
-0.026805855333805084,
-0.23064100742340088,
-0.1545541137456894,
0.061892762780189514,
0.017621271312236786,
0.6852980256080627,
0.13802100718021393,
-0.14058305323123932,
-0.45607197284698486,
0.0017371773719787598,
-0.2098914384841919,
-0.030375739559531212,
-0.01608395390212536,
0.2644731104373932,
-0.06265740096569061,
-0.15696260333061218,
-0.28421252965927124,
-0.05428951233625412,
0.21243277192115784,
0.11877460777759552,
-0.0273834727704525,
0.031765084713697433,
0.03221728280186653,
0.28308331966400146,
0.520956814289093,
0.395330011844635,
0.10299529880285263,
0.2838950455188751,
0.19213220477104187,
0.003679282031953335,
0.0900348573923111,
-0.10751000046730042,
0.1794605255126953,
-0.10672513395547867,
-0.1737583875656128,
0.11602859199047089,
0.07035920023918152,
-0.1351752132177353,
-0.1973450481891632,
-0.008781366050243378,
0.08463900536298752,
-0.18407197296619415,
-0.021470550447702408,
-0.01880614645779133,
0.5045292973518372,
0.09238497912883759,
0.047034844756126404,
-0.16068747639656067,
-0.3939409554004669,
0.10256119817495346,
-0.04596209526062012,
0.06707063317298889,
0.009926453232765198,
-0.05994021147489548,
-0.009008865803480148,
-0.7305296063423157,
0.2685512602329254,
0.11236019432544708,
0.4320126473903656,
-0.10201156139373779,
0.05228810012340546,
-0.15860800445079803,
0.11426740139722824,
0.42869675159454346,
-0.06445702165365219,
-0.176528200507164,
0.0596214234828949,
0.05246516317129135,
-0.16835977137088776,
0.14714330434799194,
-0.1711665540933609,
-0.03841644152998924,
-0.26131170988082886,
-0.11688175797462463,
-0.08205938339233398,
0.04727417603135109,
-0.0062200333923101425,
0.3131181597709656,
-0.16019853949546814,
-0.25004929304122925,
-0.34724995493888855,
-0.12205332517623901,
0.0043928250670433044,
-0.2169685959815979,
-0.12264080345630646,
0.08955264091491699,
-0.21764177083969116,
0.25235113501548767,
0.022733772173523903,
-0.2952421307563782,
0.34826308488845825,
-0.11240630596876144,
0.1965743601322174,
-0.4322449266910553,
0.13328002393245697,
0.46444395184516907,
-0.2072870135307312,
-0.017049219459295273,
0.11370646953582764,
0.06955104321241379,
-0.28177914023399353,
0.24075686931610107,
0.20175325870513916,
0.35957837104797363,
0.06757725775241852,
-0.29125258326530457,
0.2509191632270813,
-0.03618241846561432,
0.08534865081310272,
-0.5771863460540771,
0.1801709681749344,
0.08866323530673981,
0.06133875250816345,
0.13817578554153442,
-0.062436074018478394,
0.23269738256931305,
0.055265314877033234,
-0.13690081238746643,
0.2892400324344635,
-0.01952161267399788,
-0.2696187496185303,
0.2825178802013397,
0.24875158071517944,
0.7941436767578125,
-0.14858867228031158,
-0.06106533855199814,
0.4458683431148529,
0.008394218981266022,
-0.08810556679964066,
-0.21181833744049072,
0.5530892014503479,
-0.15169759094715118,
-0.014636177569627762,
0.08713634312152863,
-0.2238290011882782,
-0.09138950705528259,
-0.2526904344558716,
-0.2605436146259308,
0.6565312743186951,
0.038912221789360046,
-0.1428082287311554,
0.08655442297458649,
-0.04743930697441101,
-0.11878731846809387,
-0.24658462405204773,
0.22224408388137817,
0.184226855635643,
-0.18770679831504822,
-0.14840014278888702,
-0.0387454517185688,
0.07642349600791931,
0.0927676260471344,
-0.3213993310928345,
-0.21347537636756897,
0.009413331747055054,
-0.2341894507408142,
0.12290409207344055,
-0.287666916847229,
0.13847453892230988,
-0.03381912410259247,
0.4129704236984253,
0.35050153732299805,
0.13478539884090424,
-0.043951645493507385,
0.06422112882137299,
-0.14094334840774536,
0.06738215684890747,
0.08167873322963715,
0.19362321496009827,
-0.07724709808826447,
-0.04236741364002228,
-0.23620225489139557,
0.3239811360836029,
0.03189963474869728,
-0.30357709527015686,
0.020979002118110657,
0.004149869084358215,
-0.0676419734954834,
-0.09274174273014069,
-0.09915517270565033,
-0.12263442575931549,
-0.40542787313461304,
-0.10168392956256866,
0.16659769415855408,
0.3358542323112488,
-0.6273186206817627,
0.37179771065711975,
0.05995861440896988,
-0.058107078075408936,
0.20397138595581055,
0.3034741282463074,
0.2402009665966034,
-0.3711039423942566,
0.522854208946228,
-0.07030896097421646,
-0.06644998490810394,
-0.08496050536632538,
-0.3364024758338928,
-0.10577543079853058,
0.02512297034263611,
0.18758544325828552,
0.23094473779201508,
0.08632144331932068,
-0.21489456295967102,
0.12959842383861542,
0.0714634358882904,
0.28600162267684937,
0.14781895279884338,
-0.3211328387260437,
-0.5705016851425171,
0.19842880964279175,
-0.13433603942394257,
0.06976958364248276,
-0.4777343273162842,
-0.29287442564964294,
-0.5433307886123657,
0.019710278138518333,
-0.26497238874435425,
0.13094110786914825,
-0.4698498249053955,
0.15289872884750366,
-0.05602338910102844,
-0.10722792893648148,
0.24121464788913727,
0.16624081134796143,
0.13166187703609467,
0.48614975810050964,
-0.16091853380203247,
-0.11483306437730789,
0.01308208703994751,
0.07637631893157959,
-0.023865705356001854,
-0.10377257317304611,
0.23436208069324493,
0.07662539184093475,
-0.12784233689308167,
-0.12012936174869537,
-0.1803637444972992,
0.27237987518310547,
-0.2416997253894806,
0.08689625561237335,
-0.3836641311645508,
0.07315938174724579,
0.6001410484313965,
0.20373305678367615,
-0.021924078464508057,
0.24486061930656433,
0.061567991971969604,
0.2490886151790619,
-0.11190304160118103,
-0.05834651738405228,
0.21348902583122253,
0.10714487731456757,
-0.11078308522701263,
-0.24328631162643433,
0.1940627098083496,
-0.20063966512680054,
-0.23091328144073486,
-0.11894556879997253,
0.22506210207939148,
-0.17952825129032135,
-0.26971060037612915,
0.05126144737005234,
0.14574816823005676,
0.21089139580726624,
0.05138562619686127,
0.17894506454467773,
-0.14126616716384888,
0.08250643312931061,
0.05826288461685181,
0.22826765477657318,
0.17244255542755127,
-0.2710608243942261,
-0.05411574989557266,
-0.04304400831460953,
0.22778160870075226,
-0.3114747703075409,
-0.1649620234966278,
-0.24813327193260193,
-0.0783555805683136,
-0.12320302426815033,
-0.13706231117248535,
-0.0019344184547662735,
0.3038545846939087,
0.5290904641151428,
-0.257344514131546,
0.4064505994319916,
-0.46004518866539,
0.07677952200174332,
-0.07827267050743103,
-0.38954317569732666,
-0.32591983675956726,
0.31040459871292114,
0.039380207657814026,
0.31343069672584534,
-0.3366592228412628,
0.12215149402618408,
0.13134580850601196,
0.16834180057048798,
-0.15117642283439636,
-0.2036626636981964,
-0.11607342213392258,
0.06364286690950394,
0.15781182050704956,
-0.3073451519012451,
0.024630963802337646,
-0.05029124394059181,
0.3668288290500641,
-0.034252557903528214,
0.3742721378803253,
0.0016252454370260239,
-0.22364412248134613,
0.26011455059051514,
-0.018012885004281998,
0.5469641089439392,
0.010053329169750214,
-0.28326666355133057,
0.11461420357227325,
0.41811132431030273,
0.14264270663261414,
0.1386210173368454,
0.2846044600009918,
0.48290807008743286,
0.358848512172699,
-0.2767454981803894,
0.21840199828147888,
-0.11270003765821457,
-0.12938077747821808,
-0.01032169908285141,
0.28464192152023315,
0.24546842277050018,
-0.002327771857380867,
0.18504829704761505,
0.03481674566864967,
-0.035140834748744965,
-0.14975965023040771,
0.0099583575502038,
0.05680377781391144,
-0.22267314791679382,
0.057020045816898346,
-0.21532297134399414,
0.025585182011127472,
-0.2253831923007965,
-0.09231151640415192,
-0.37782853841781616,
0.2275392711162567,
0.00916832685470581,
-0.1401444673538208,
0.20493167638778687,
0.07738049328327179,
0.05607740581035614,
-0.26621726155281067,
0.36422353982925415,
-0.05091390386223793,
0.21516409516334534,
-0.6167621612548828,
-0.23420289158821106,
-0.17649833858013153,
0.1513809859752655,
-0.15935055911540985,
0.4129829406738281,
-0.13978388905525208,
0.09398543834686279,
-0.14025354385375977,
-0.028662484139204025,
-0.06776882708072662,
0.12308891117572784,
-0.10358833521604538,
0.2747891843318939,
-0.35789746046066284,
-0.29493504762649536,
0.2261705845594406,
-0.1421801894903183,
0.25434672832489014,
-0.43658447265625,
-0.16024670004844666,
-0.23355898261070251,
0.01077832281589508,
-0.038984619081020355,
0.4080348312854767,
-0.09498089551925659,
0.5220334529876709,
0.06293801218271255,
0.3354322016239166,
0.5877149105072021,
-0.01179361343383789,
-0.29718366265296936,
-0.10959456861019135,
-0.1789063811302185,
-0.21372005343437195,
-0.45101264119148254,
-0.07933757454156876,
0.5294626355171204,
-0.17824354767799377,
-0.29557356238365173,
-0.2922704815864563,
0.3045112192630768,
-0.03914860263466835,
-0.02772693708539009,
-0.17961342632770538,
0.3239210247993469,
-0.2037033587694168,
0.2875930964946747,
0.2503640353679657,
0.06695690751075745,
0.15626616775989532,
0.412555992603302,
-0.3301571309566498,
-0.09062845259904861,
0.5843920707702637,
-0.1609610617160797,
-0.35113462805747986,
0.09496845304965973,
0.2776322066783905,
0.19762861728668213,
-0.3637206554412842,
-0.8314568400382996,
-0.027013421058654785,
0.28776609897613525,
0.23663878440856934,
-0.1023111566901207,
0.047182850539684296,
0.07295205444097519,
-0.013490356504917145,
0.2048303484916687,
-0.08375236392021179,
-0.10401825606822968,
-0.17195871472358704,
0.1146993339061737,
-0.13320519030094147
] |
https://github.com/huggingface/datasets/issues/2076 | Hi @XuhuiZhou, thanks for reporting this issue.
Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive. | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 32 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi @XuhuiZhou, thanks for reporting this issue.
Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive. | [
-0.2337624728679657,
0.14580845832824707,
0.0028068460524082184,
-0.03095075860619545,
-0.027438422664999962,
0.08244847506284714,
0.3759452998638153,
0.20595726370811462,
0.15375956892967224,
0.014403622597455978,
0.18484774231910706,
-0.1723964512348175,
0.2339601218700409,
0.2969173192977905,
0.16451528668403625,
-0.07033578306436539,
0.11244329065084457,
0.03902166336774826,
-0.20785877108573914,
0.008446522057056427,
-0.34042197465896606,
0.20839951932430267,
-0.336063027381897,
0.07765460759401321,
-0.13393628597259521,
0.10821729898452759,
-0.23428748548030853,
0.2046140432357788,
0.005303423851728439,
-0.5016642808914185,
0.18562480807304382,
0.24969901144504547,
0.2551790475845337,
0.23037050664424896,
-0.00012611185957212,
-0.026572205126285553,
0.43591639399528503,
-0.1366344392299652,
-0.21735897660255432,
0.09907980263233185,
-0.453817218542099,
-0.2230212390422821,
-0.16180500388145447,
-0.3308693766593933,
0.2659611105918884,
-0.19331662356853485,
0.18024064600467682,
0.32384079694747925,
0.16279670596122742,
0.5249040722846985,
0.09545549750328064,
0.24404014647006989,
0.3832687735557556,
-0.017859002575278282,
0.029593167826533318,
-0.13988837599754333,
0.005616724491119385,
0.2431163638830185,
0.16717848181724548,
-0.13129891455173492,
0.19347460567951202,
0.2265266478061676,
-0.02001834288239479,
0.09479764103889465,
0.24477306008338928,
0.08612906187772751,
0.22190165519714355,
-0.4831435978412628,
0.2752976715564728,
0.07405664026737213,
0.9506678581237793,
-0.3367394208908081,
-0.3953084945678711,
0.0342550203204155,
0.15370550751686096,
-0.03477294370532036,
0.21874211728572845,
-0.09934456646442413,
-0.07661910355091095,
0.1927039921283722,
-0.07197404652833939,
-0.4454040825366974,
-0.2641430199146271,
0.2948842942714691,
-0.07054013758897781,
0.6482890844345093,
0.20047172904014587,
0.15319932997226715,
0.19431382417678833,
-0.03140722215175629,
0.3032344877719879,
0.12023264169692993,
-0.1972547173500061,
-0.0020125769078731537,
0.22401827573776245,
-0.22576506435871124,
-0.14258700609207153,
0.1321185678243637,
-0.03798602148890495,
0.09006606787443161,
-0.015837665647268295,
-0.0804634839296341,
-0.13139040768146515,
0.03180316090583801,
0.2977488338947296,
-0.025964930653572083,
-0.06394889205694199,
-0.13573402166366577,
0.5959559679031372,
0.4367469549179077,
0.1359974890947342,
-0.04846520721912384,
0.24673780798912048,
-0.5086385011672974,
-0.08417679369449615,
0.12939880788326263,
0.3410677909851074,
-0.06490348279476166,
-0.240212544798851,
-0.33564886450767517,
0.00783635675907135,
-0.11449772119522095,
-0.14299863576889038,
0.24630433320999146,
-0.024805260822176933,
0.09816192090511322,
0.0490984246134758,
0.17633092403411865,
-0.05798259750008583,
-0.21415436267852783,
0.06570057570934296,
0.1828422248363495,
0.07344520092010498,
0.057135336101055145,
0.19777631759643555,
0.2320505827665329,
-0.05722051486372948,
-0.04420037567615509,
-0.3850718140602112,
-0.21327440440654755,
-0.27796685695648193,
0.06555214524269104,
0.07058881223201752,
-0.005324356257915497,
-0.09221422672271729,
0.11732868105173111,
-0.07566900551319122,
-0.19583049416542053,
-0.17426034808158875,
0.3008243441581726,
-0.4043315052986145,
-0.1922464370727539,
-0.1143399327993393,
-0.0011620535515248775,
-0.22432488203048706,
-0.36673682928085327,
0.10750049352645874,
0.020169572904706,
-0.31284746527671814,
-0.38990098237991333,
-0.03867942839860916,
-0.08722816407680511,
-0.373751163482666,
-0.18148592114448547,
0.12546899914741516,
0.7528220415115356,
-0.5478041172027588,
-0.21153059601783752,
-0.27931976318359375,
-0.2170640230178833,
0.022943994030356407,
0.2886829674243927,
-0.1325899064540863,
0.35535871982574463,
-0.40544483065605164,
0.12954553961753845,
0.515388548374176,
-0.41720619797706604,
-0.7371991872787476,
0.1446792483329773,
-0.0059494078159332275,
-0.1772410273551941,
0.11218008399009705,
0.1850418895483017,
0.12485318630933762,
-0.21033650636672974,
-0.4866018295288086,
0.11590074002742767,
-0.016194241121411324,
0.06334985047578812,
-0.11062189191579819,
-0.5575133562088013,
0.3404841125011444,
0.055874064564704895,
0.2634511888027191,
0.23671001195907593,
0.46123459935188293,
-0.02078339084982872,
0.4065787196159363,
-0.060917869210243225,
0.10009639710187912,
0.38684046268463135,
0.47760486602783203,
0.044723957777023315,
0.23101218044757843,
0.08810827881097794,
-0.41345828771591187,
0.14870992302894592,
0.10350429266691208,
0.011276090517640114,
-0.35656729340553284,
-0.05821667239069939,
-0.4483051598072052,
-0.12142781913280487,
-0.26695284247398376,
0.014910738915205002,
-0.032103244215250015,
0.031587935984134674,
0.060546115040779114,
0.05010034143924713,
-0.14291365444660187,
0.04952250421047211,
-0.10356497764587402,
-0.019248610362410545,
0.0885358601808548,
0.5486964583396912,
-0.17578431963920593,
-0.0942080095410347,
0.15932518243789673,
0.12712042033672333,
0.2328130006790161,
-0.2303653508424759,
-0.120008684694767,
0.4031566381454468,
-0.24895425140857697,
0.47722652554512024,
0.32951802015304565,
0.30720704793930054,
0.17016783356666565,
-0.40896767377853394,
0.2946336269378662,
0.45257729291915894,
0.012385401874780655,
0.05766300857067108,
-0.14505788683891296,
-0.16380912065505981,
0.07043604552745819,
0.2487751543521881,
0.05979175865650177,
0.003461576998233795,
0.1770109236240387,
-0.25441285967826843,
0.05704578757286072,
-0.18400350213050842,
-0.3074970245361328,
-0.19615474343299866,
-0.0975584089756012,
-0.21416765451431274,
-0.027273312211036682,
0.19444502890110016,
0.5489946007728577,
-0.09812937676906586,
0.2854127585887909,
0.3537486791610718,
-0.013109918683767319,
-0.10599316656589508,
-0.18627004325389862,
0.6357642412185669,
0.34743547439575195,
-0.06941103935241699,
-0.1281583607196808,
0.16235852241516113,
0.2249322533607483,
-0.10266321897506714,
0.2864803671836853,
0.11012424528598785,
-0.20345622301101685,
0.14196637272834778,
-0.08073295652866364,
-0.10862988978624344,
-0.025958508253097534,
0.08843754231929779,
0.14897720515727997,
0.3354446589946747,
-0.37482360005378723,
-0.013394776731729507,
-0.3511459231376648,
-0.489900141954422,
-0.3558899760246277,
0.44115111231803894,
-0.2762395143508911,
-0.3060370087623596,
-0.02084735780954361,
0.36512863636016846,
-0.15540707111358643,
0.12034905701875687,
0.1482287049293518,
0.30383509397506714,
0.055049829185009,
-0.02162902057170868,
-0.3250444233417511,
-0.09326016157865524,
-0.164598286151886,
-0.06291407346725464,
0.36740830540657043,
0.04796147346496582,
0.09506986290216446,
-0.5916246175765991,
-0.08395680785179138,
-1.0300796031951904,
-0.07027758657932281,
0.06334780156612396,
0.16015978157520294,
0.1411256045103073,
0.21586079895496368,
0.3985547423362732,
0.16170749068260193,
-0.041331686079502106,
0.11028188467025757,
-0.2546848654747009,
0.14992409944534302,
-0.24341855943202972,
-0.1488882452249527,
0.13299161195755005,
0.0021188557147979736,
-0.19312474131584167,
-0.550832986831665,
-0.1271965354681015,
0.12041667103767395,
-0.06604350358247757,
0.08397507667541504,
-0.11322526633739471,
0.2934362590312958,
-0.20332446694374084,
0.20353186130523682,
-0.31172043085098267,
0.12898334860801697,
0.30970999598503113,
0.4342477023601532,
-0.05756908655166626,
-0.3968016803264618,
0.27183058857917786,
0.11638528108596802,
-0.0004380885511636734,
-0.043647173792123795,
-0.5142812728881836,
-0.19390682876110077,
0.01196063868701458,
0.24723443388938904,
-0.06327803432941437,
0.3359139561653137,
0.12727558612823486,
0.13652294874191284,
0.03280334919691086,
0.007582701742649078,
-0.22302532196044922,
-0.12423735857009888,
0.37774622440338135,
0.5201429724693298,
0.534779965877533,
0.4276018440723419,
-0.15359005331993103,
0.2914150059223175,
-0.18111544847488403,
0.048928845673799515,
0.3592682182788849,
-0.31361618638038635,
0.2962455451488495,
0.10199998319149017,
-0.21165478229522705,
0.15932583808898926,
-0.16497956216335297,
0.06634154915809631,
0.23455941677093506,
-0.09059439599514008,
-0.03904053568840027,
-0.0410175547003746,
-0.26185670495033264,
-0.30017632246017456,
-0.4504912495613098,
-0.21433307230472565,
0.5330836772918701,
0.25151845812797546,
0.28911757469177246,
0.048566900193691254,
-0.2502555251121521,
-0.19673846662044525,
0.4842904508113861,
0.38637131452560425,
0.03300650417804718,
0.11093559861183167,
0.2658002972602844,
-0.15296654403209686,
-0.49522149562835693,
0.293728232383728,
0.10645033419132233,
0.37043851613998413,
-0.03879263252019882,
0.15758047997951508,
0.0535716786980629,
-0.1242310032248497,
0.5772594213485718,
-0.25392064452171326,
0.26224440336227417,
0.06846306473016739,
0.4507427215576172,
0.2348899394273758,
-0.11901327967643738,
-0.12133486568927765,
0.2323833405971527,
0.27702853083610535,
0.042176008224487305,
-0.0232236310839653,
-0.2797359824180603,
0.4637603163719177,
0.3966558575630188,
-0.21983101963996887,
-0.1668153554201126,
0.03584866225719452,
-0.4945955276489258,
-0.5470477342605591,
-0.15878897905349731,
-0.04642032831907272,
-0.12778429687023163,
-0.2064092457294464,
0.14717859029769897,
0.21955309808254242,
-0.405036985874176,
-0.12163125723600388,
-0.07957889139652252,
0.3472926914691925,
0.3004157245159149,
-0.1756516396999359,
0.09633920341730118,
-0.11355029046535492,
0.04845443367958069,
0.2051045298576355,
0.05588226020336151,
-0.09086703509092331,
-0.0405818447470665,
-0.2574220895767212,
-0.0985092967748642,
0.3127679228782654,
-0.0970453992486,
0.062367089092731476,
0.09622450172901154,
0.09056589007377625,
-0.03731332719326019,
-0.08231569826602936,
0.46405988931655884,
-0.1007034108042717,
-0.36376434564590454,
-0.30877912044525146,
0.3928527235984802,
-0.15189701318740845,
-0.11302430927753448,
0.37432169914245605,
0.25737640261650085,
-0.21761929988861084,
-0.12128669023513794,
-0.19085435569286346,
0.7290438413619995,
0.11899468302726746,
0.060818690806627274,
0.23246124386787415,
-0.10317421704530716,
0.39288637042045593,
0.04422770440578461,
0.1866859495639801,
-0.3072916269302368,
0.013565629720687866,
-0.12691694498062134,
0.06993435323238373,
-0.21789716184139252,
0.3358355760574341,
-0.13968169689178467,
0.59587562084198,
0.026424244046211243,
0.0196545347571373,
0.1223936602473259,
0.4716736674308777,
-0.160915806889534,
0.13476751744747162,
0.021793074905872345,
0.015531014651060104,
0.005871644709259272,
0.3723074793815613,
-0.20406033098697662,
-0.1112762987613678,
0.14040473103523254,
-0.2147955298423767,
-0.5518467426300049,
0.031219258904457092,
-0.21965759992599487,
0.25811755657196045,
-0.12952493131160736,
-0.21454229950904846,
0.2832953929901123,
0.2206096351146698,
0.23766228556632996,
0.05116933211684227,
-0.397294282913208,
0.3764602243900299,
-0.16784769296646118,
-0.1342570185661316,
-0.01647024415433407,
0.42518648505210876,
-0.09328047186136246,
-0.12903626263141632,
-0.5057973861694336,
-0.06652598083019257,
-0.06338445842266083,
-0.43353036046028137,
0.03531406819820404,
-0.14364288747310638,
0.20739257335662842,
0.022326484322547913,
-0.2601279020309448,
-0.1609870344400406,
-0.25718310475349426,
-0.32026857137680054,
0.03219820186495781,
-0.15327486395835876,
0.2593231201171875,
0.2261020839214325,
-0.3166194260120392,
-0.09971161186695099,
0.022773385047912598,
0.3828009068965912,
-0.3625803589820862,
-0.17836683988571167,
0.715167760848999,
0.27531033754348755,
0.03418833762407303,
-0.25458255410194397,
-0.10986553132534027,
-0.2667810916900635,
-0.5026063323020935,
0.2774842381477356,
0.02833237126469612,
0.2976672947406769,
-0.14774799346923828,
0.39149731397628784,
-0.028155364096164703,
0.3012159466743469,
-0.324728399515152,
-0.46237730979919434,
-0.11381527036428452,
0.16309413313865662,
0.3029041290283203,
0.20989981293678284,
-0.11545783281326294,
-0.12089468538761139,
0.2744280695915222,
-0.772793710231781,
-0.17107383906841278,
0.170076385140419,
0.10759121179580688,
-0.14919210970401764,
0.6299347281455994,
0.26350006461143494,
0.12232689559459686,
0.04820317402482033,
-0.015293240547180176,
-0.08896013349294662,
0.15786655247211456,
0.010766267776489258,
-0.18164777755737305,
0.19983699917793274,
-0.10187268257141113,
-0.30295470356941223,
-0.04351220652461052,
-0.38210904598236084,
-0.09147965162992477,
0.08920809626579285,
-0.07049326598644257,
0.19082918763160706,
-0.0954103171825409,
0.15955707430839539,
0.2407403290271759,
-0.21788644790649414,
-0.15271377563476562,
0.1699921190738678,
0.1581745743751526,
0.6770748496055603,
0.02249855548143387,
0.590676486492157,
0.07154574990272522,
0.2081637680530548,
0.12682586908340454,
-0.02721119299530983,
-0.011810004711151123,
-0.09028320014476776,
0.2888883352279663,
-0.14998090267181396,
0.018156513571739197,
0.11296303570270538,
0.04991418868303299,
0.5606861114501953,
-0.32442960143089294,
-0.1388920694589615,
0.17533013224601746,
0.010301150381565094,
-0.31601274013519287,
-0.2641209363937378,
0.05858894810080528,
-0.1067056953907013,
-0.08894428610801697,
0.05819906294345856,
0.20039530098438263,
-0.17897814512252808,
0.2719349265098572,
0.13728061318397522,
0.5460575819015503,
-0.21839752793312073,
-0.0025362707674503326,
0.18309982120990753,
0.08392364531755447,
0.06388094276189804,
-0.12889441847801208,
-0.019584055989980698,
0.13154816627502441,
0.20454268157482147,
-0.20311085879802704,
-0.1803327202796936,
0.051329661160707474,
0.2913495600223541,
-0.11827845871448517,
-0.3024701178073883,
0.035025399178266525,
-0.17569617927074432,
-0.005463853478431702,
-0.03317387402057648,
0.16363202035427094,
-0.03540511056780815,
0.009117800742387772,
0.017628952860832214,
-0.2669946551322937,
0.3506844639778137,
0.3031774163246155,
-0.1372591108083725,
-0.07526671141386032,
-0.2641395330429077,
-0.18474861979484558,
0.1526067852973938,
-0.10084030032157898,
-0.1865111142396927,
-0.14940118789672852,
0.11718869209289551,
-0.02819141000509262,
0.0020578820258378983,
0.039711542427539825,
-0.1866706907749176,
0.30739617347717285,
-0.2139274626970291,
0.06510605663061142,
0.11433254927396774,
0.04194948822259903,
0.24956682324409485,
0.30841323733329773,
0.3976803719997406,
0.20473049581050873,
0.1932733803987503,
0.035363852977752686,
-0.051666244864463806,
-0.12821176648139954,
0.13006730377674103,
-0.0342165008187294,
0.062227651476860046,
0.014437342062592506,
0.18516601622104645,
0.06520693749189377,
0.012953240424394608,
-0.2733806371688843,
0.06990049034357071,
0.006742313504219055,
-0.05967124179005623,
0.1353980302810669,
-0.13592466711997986,
-0.17529425024986267,
-0.39133888483047485,
0.12473410367965698,
-0.2187502086162567,
-0.22545164823532104,
0.2953236401081085,
-0.037071578204631805,
0.029527049511671066,
0.015936855226755142,
-0.013718601316213608,
-0.06351851671934128,
0.3564923107624054,
0.3876611888408661,
0.2662045955657959,
-0.27500811219215393,
-0.31626778841018677,
-0.6508069038391113,
0.05280507355928421,
-0.01151749212294817,
-0.046380095183849335,
-0.07172475755214691,
0.034612298011779785,
-0.4731673002243042,
-0.205836221575737,
0.662277102470398,
0.32139039039611816,
0.06575638800859451,
0.09412501752376556,
-0.008842945098876953,
-0.27262014150619507,
-0.06663377583026886,
0.4215424060821533,
-0.050357524305582047,
-0.3091488480567932,
0.13691608607769012,
-0.2878558933734894,
-0.12077058851718903,
0.026560496538877487,
-0.1604079306125641,
-0.0896117240190506,
-0.16394342482089996,
0.4298086166381836,
-0.03289524465799332,
0.3747124671936035,
-0.1414087414741516,
-0.2511022984981537,
-0.4756081998348236,
-0.3053545355796814,
-0.23962090909481049,
0.23572473227977753,
-0.06467919051647186,
0.040148548781871796,
0.04801285266876221,
0.32129335403442383,
-0.42066463828086853,
0.11668413132429123,
-0.11588834971189499,
0.2996491491794586,
-0.18119116127490997,
0.07390085607767105,
-0.05502068251371384,
0.12777802348136902,
0.36258745193481445,
-0.11977747082710266,
-0.1424407958984375,
0.0054814741015434265,
-0.30370885133743286,
-0.06947891414165497,
0.3491154909133911,
0.003365006297826767,
-0.13482140004634857,
-0.17449742555618286,
0.36340951919555664,
-0.0651315227150917,
-0.0328342467546463,
-0.2893856167793274,
0.02067318558692932,
0.13455058634281158,
0.29097694158554077,
0.008133001625537872,
-0.010698402300477028,
-0.08476991951465607,
0.09847953915596008,
0.1847168207168579,
-0.013101834803819656,
0.21957996487617493,
-0.3208525776863098,
-0.07768526673316956,
-0.05057205259799957
] |
https://github.com/huggingface/datasets/issues/2076 | It would be nice to update the urls indeed !
To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with
```
datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications
``` | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 37 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
It would be nice to update the urls indeed !
To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with
```
datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications
``` | [
-0.2658805847167969,
0.1200055181980133,
-0.08369515091180801,
-0.10603167116641998,
-0.0561513714492321,
0.013199284672737122,
0.11352714896202087,
0.3138657510280609,
0.18830378353595734,
-0.06657429784536362,
0.09627284109592438,
0.0473739393055439,
0.26303771138191223,
0.2957363724708557,
0.0410308837890625,
0.008764002472162247,
0.09777092933654785,
-0.012060210108757019,
-0.2833590805530548,
0.047756634652614594,
-0.40100690722465515,
0.18544818460941315,
-0.31265324354171753,
-0.09356332570314407,
-0.06016884744167328,
0.12591499090194702,
-0.30167531967163086,
0.11546792089939117,
-0.02810254879295826,
-0.6263320446014404,
0.27200809121131897,
0.39135506749153137,
0.3162032961845398,
0.18803896009922028,
-0.00011581882426980883,
-0.1218976229429245,
0.37693169713020325,
-0.1369827389717102,
-0.29844439029693604,
0.04358435794711113,
-0.6287514567375183,
-0.3450359106063843,
-0.13607372343540192,
-0.2700527310371399,
0.22668230533599854,
-0.3958933353424072,
0.06924954801797867,
0.20548772811889648,
0.19028937816619873,
0.5130625367164612,
0.18357789516448975,
0.3192787766456604,
0.2641102075576782,
-0.06364013254642487,
-0.05983277037739754,
-0.02259492129087448,
0.0009518638253211975,
0.07057066261768341,
0.27307432889938354,
-0.118573859333992,
0.24921156466007233,
0.271538645029068,
-0.01523536816239357,
0.010092858225107193,
0.27887803316116333,
-0.07894627749919891,
0.2402881532907486,
-0.4742942750453949,
0.18148958683013916,
-0.02243497595191002,
0.8869275450706482,
-0.30215954780578613,
-0.4625476598739624,
0.13100728392601013,
0.08093302696943283,
-0.016342204064130783,
0.060764338821172714,
-0.07973756641149521,
-0.12188977003097534,
0.2370423823595047,
-0.1727013885974884,
-0.4722522497177124,
-0.24646353721618652,
0.3339923620223999,
0.14140701293945312,
0.6231672763824463,
0.161586195230484,
0.18880660831928253,
0.15743187069892883,
-0.1041223332285881,
0.2951928973197937,
0.030481401830911636,
-0.23201806843280792,
0.025493424385786057,
-0.0074018388986587524,
-0.29575419425964355,
-0.08897024393081665,
0.046894680708646774,
0.008447416126728058,
0.23308716714382172,
-0.06862449645996094,
0.036283764988183975,
-0.15879817306995392,
-0.004776539281010628,
0.2110501527786255,
0.04062693938612938,
0.196181520819664,
-0.008839283138513565,
0.4371442496776581,
0.6046848893165588,
0.13065016269683838,
-0.041873618960380554,
0.20249004662036896,
-0.37946003675460815,
-0.264507532119751,
0.19085538387298584,
0.22636675834655762,
-0.10449322313070297,
-0.10375989228487015,
-0.22271490097045898,
0.0441984087228775,
-0.12683479487895966,
-0.04760089889168739,
0.27714455127716064,
-0.1958620548248291,
0.29302099347114563,
0.1614927053451538,
0.12689879536628723,
-0.022055812180042267,
-0.2848353683948517,
-0.0018291249871253967,
0.0769972950220108,
0.043015219271183014,
0.11600671708583832,
0.19619670510292053,
0.31514284014701843,
0.14336153864860535,
-0.09620024263858795,
-0.3094976842403412,
-0.12951627373695374,
-0.15711596608161926,
0.22096869349479675,
0.13127543032169342,
0.049155402928590775,
-0.12159590423107147,
0.23865669965744019,
-0.043996937572956085,
-0.022794313728809357,
-0.12351258099079132,
0.28563952445983887,
-0.25184035301208496,
-0.20539900660514832,
-0.19395926594734192,
0.09601232409477234,
-0.1884026825428009,
-0.387775719165802,
0.05360384285449982,
-0.05624798312783241,
-0.2581745982170105,
-0.35036182403564453,
0.014182906597852707,
-0.04623352736234665,
-0.30277496576309204,
-0.16214361786842346,
0.1841406673192978,
0.5909866690635681,
-0.45617395639419556,
-0.12290935218334198,
-0.18296432495117188,
-0.20617380738258362,
0.07107771933078766,
0.1980038285255432,
-0.1920291632413864,
0.1715584695339203,
-0.1458818018436432,
0.09554988145828247,
0.5259148478507996,
-0.44132062792778015,
-0.5953450202941895,
0.2981190085411072,
0.08023857325315475,
-0.1355932205915451,
0.0588277205824852,
0.21661919355392456,
0.02630285546183586,
-0.22332127392292023,
-0.5292843580245972,
0.14463171362876892,
-0.0034886905923485756,
0.11471431702375412,
-0.2648131847381592,
-0.5547558665275574,
0.26284557580947876,
0.055711910128593445,
0.09343793988227844,
0.14743061363697052,
0.23818327486515045,
0.12809479236602783,
0.5918655395507812,
-0.08849994838237762,
0.12062091380357742,
0.2447381615638733,
0.4602722227573395,
0.21887555718421936,
0.21805910766124725,
0.13071663677692413,
-0.3153167963027954,
0.1767420768737793,
0.10156185925006866,
0.04563978314399719,
-0.34607917070388794,
-0.15676677227020264,
-0.4196774363517761,
-0.062003906816244125,
-0.2741813659667969,
-0.21610644459724426,
0.06592019647359848,
0.1583600491285324,
0.12440688908100128,
-0.12132502347230911,
-0.2550233006477356,
0.16915489733219147,
-0.20958717167377472,
-0.012071888893842697,
-0.016606062650680542,
0.4373680353164673,
-0.17229947447776794,
0.03742626681923866,
0.08343736082315445,
0.061631202697753906,
0.18083639442920685,
-0.2504224181175232,
-0.25792863965034485,
0.6097427010536194,
-0.2146877497434616,
0.2997119128704071,
0.42985549569129944,
0.14924374222755432,
0.12074430286884308,
-0.3250734806060791,
0.20126822590827942,
0.40720194578170776,
-0.008943997323513031,
0.17078688740730286,
-0.06720659881830215,
-0.18609273433685303,
-0.02130265161395073,
0.4060421586036682,
0.09327352046966553,
-0.00043595582246780396,
0.17027434706687927,
-0.22491739690303802,
-0.08091778308153152,
-0.23271869122982025,
-0.2935732305049896,
-0.19630566239356995,
-0.2587292492389679,
-0.17212364077568054,
0.04894517362117767,
0.24774347245693207,
0.40907999873161316,
-0.09536672383546829,
0.057670604437589645,
0.3085028827190399,
0.06544579565525055,
-0.09701476991176605,
-0.11723116040229797,
0.6027159690856934,
0.33529120683670044,
-0.052672117948532104,
-0.24764063954353333,
0.14538198709487915,
0.2162245362997055,
-0.09102603793144226,
0.29755669832229614,
0.13904306292533875,
-0.08562639355659485,
0.04019398242235184,
-0.04819026589393616,
-0.08746486902236938,
0.018293581902980804,
-0.02377166599035263,
0.15000897645950317,
0.37714090943336487,
-0.28762751817703247,
-0.03231094032526016,
-0.3990885019302368,
-0.5441098213195801,
-0.25966787338256836,
0.22568470239639282,
-0.17870698869228363,
-0.3382886052131653,
0.03403550386428833,
0.27665698528289795,
-0.16629278659820557,
0.29129350185394287,
0.08308825641870499,
0.20723283290863037,
-0.02984197810292244,
0.12574170529842377,
-0.2831586003303528,
-0.10417070239782333,
-0.1987839788198471,
-0.005161244422197342,
0.3439476788043976,
0.08792687952518463,
0.12586161494255066,
-0.5627509355545044,
-0.1183171197772026,
-0.8395566940307617,
-0.05981719493865967,
-0.10804887115955353,
0.179633229970932,
0.11238274723291397,
0.25558069348335266,
0.47476670145988464,
0.24107415974140167,
-0.11113262176513672,
0.22540394961833954,
-0.16849172115325928,
0.2313164323568344,
-0.35954970121383667,
-0.08880819380283356,
0.052810586988925934,
-0.031605929136276245,
-0.3374096751213074,
-0.47213298082351685,
-0.25925081968307495,
0.09980642050504684,
-0.08831005543470383,
0.13362771272659302,
-0.08369465917348862,
0.31514039635658264,
-0.256166934967041,
0.0332762710750103,
-0.24387754499912262,
0.07641953229904175,
0.12679064273834229,
0.3804924488067627,
-0.183055579662323,
-0.40394124388694763,
0.17340087890625,
0.14668917655944824,
0.1630404144525528,
-0.12106262147426605,
-0.4460039436817169,
-0.21272344887256622,
0.05249759554862976,
0.17908361554145813,
-0.08791131526231766,
0.3145512044429779,
0.08667091280221939,
0.07738946378231049,
-0.06009894609451294,
-0.060495030134916306,
-0.1283685863018036,
-0.14227087795734406,
0.25201722979545593,
0.6086519956588745,
0.3990355134010315,
0.36536017060279846,
-0.014084331691265106,
0.27532893419265747,
-0.001912042498588562,
-0.03315489739179611,
0.2885209918022156,
-0.2751230001449585,
0.2634464502334595,
0.181266188621521,
-0.34730061888694763,
0.05998678132891655,
-0.13477826118469238,
0.132314532995224,
0.1809363067150116,
-0.06346867978572845,
0.04719359427690506,
-0.08346763253211975,
-0.22229193150997162,
-0.20629173517227173,
-0.39798790216445923,
-0.10048968344926834,
0.4765741229057312,
0.2636372148990631,
0.35254067182540894,
0.08689945936203003,
-0.35353296995162964,
-0.10680016875267029,
0.40277838706970215,
0.33366265892982483,
-0.003547433763742447,
0.06838133186101913,
0.022877193987369537,
-0.187833771109581,
-0.38917428255081177,
0.3738923966884613,
0.11542162299156189,
0.3910484313964844,
0.12191222608089447,
0.08707505464553833,
0.007919210940599442,
-0.11955876648426056,
0.6106877326965332,
-0.425392210483551,
0.10430145263671875,
0.04889035224914551,
0.4268633723258972,
-0.11183680593967438,
-0.1418842077255249,
-0.04117083549499512,
0.2548779845237732,
0.26160573959350586,
0.09716425836086273,
0.03744371235370636,
-0.33996230363845825,
0.34745553135871887,
0.3804399073123932,
-0.2724186182022095,
-0.18041133880615234,
0.12989285588264465,
-0.40395206212997437,
-0.6693721413612366,
-0.2616967260837555,
-0.131241112947464,
-0.11883172392845154,
-0.12768349051475525,
0.14645785093307495,
0.33425337076187134,
-0.1344386339187622,
-0.10071910172700882,
0.10443486273288727,
0.19179973006248474,
0.57746422290802,
-0.08427022397518158,
-0.035393327474594116,
-0.13077662885189056,
0.1626768261194229,
0.17191752791404724,
-0.04852622374892235,
-0.1981223076581955,
-0.21730801463127136,
-0.12125591933727264,
0.031682081520557404,
0.2801329493522644,
-0.033784106373786926,
0.07147229462862015,
0.17536574602127075,
0.18171824514865875,
0.026415549218654633,
0.14698870480060577,
0.5127025246620178,
-0.19810183346271515,
-0.27748584747314453,
-0.5861620306968689,
0.38410505652427673,
-0.18134403228759766,
-0.09580953419208527,
0.3464316725730896,
0.09816253185272217,
-0.14926974475383759,
-0.012949883937835693,
0.004846286028623581,
0.6299364566802979,
0.29251083731651306,
0.05223527550697327,
0.20482487976551056,
-0.02859991043806076,
0.5659810304641724,
0.005944214761257172,
0.12678685784339905,
-0.33908599615097046,
-0.03208038583397865,
-0.028711501508951187,
0.12288299202919006,
-0.11938199400901794,
0.2378740757703781,
-0.14340589940547943,
0.5463701486587524,
-0.00788871943950653,
-0.09309320151805878,
0.14643780887126923,
0.48807868361473083,
-0.14451299607753754,
-0.023282162845134735,
-0.10622847080230713,
0.13166439533233643,
-0.04818915203213692,
0.33458828926086426,
-0.09512066841125488,
-0.1221301406621933,
0.07243611663579941,
-0.15104445815086365,
-0.42896759510040283,
0.10747332870960236,
-0.3221229314804077,
0.28529584407806396,
-0.12694597244262695,
0.17876148223876953,
0.20977962017059326,
0.23067781329154968,
0.20536155998706818,
0.17464840412139893,
-0.2870626747608185,
0.36991235613822937,
-0.07072463631629944,
-0.10918951034545898,
0.026630070060491562,
0.32303768396377563,
-0.04753618314862251,
-0.2259252965450287,
-0.5937910676002502,
-0.09512920677661896,
0.016321130096912384,
-0.29014304280281067,
0.1625814437866211,
-0.2702566087245941,
0.37043917179107666,
-0.11172421276569366,
-0.2816070318222046,
-0.055328916758298874,
-0.2641739845275879,
-0.2904844880104065,
0.09573211520910263,
-0.20688894391059875,
0.0748639702796936,
0.3429566025733948,
-0.20374850928783417,
-0.08319589495658875,
0.02261827141046524,
0.3929961323738098,
-0.36181244254112244,
-0.15027979016304016,
0.6512706875801086,
0.24638712406158447,
0.1058228462934494,
-0.3233753442764282,
-0.07398681342601776,
-0.21347808837890625,
-0.5588196516036987,
0.13428407907485962,
0.12847381830215454,
0.2565953731536865,
-0.10763344168663025,
0.5815691351890564,
0.06903614848852158,
0.3135821223258972,
-0.2030028998851776,
-0.4405820965766907,
-0.17726323008537292,
0.16001689434051514,
0.3316250443458557,
0.20191827416419983,
-0.20396512746810913,
-0.11003580689430237,
0.10436724871397018,
-0.622613787651062,
-0.26353704929351807,
0.07137293368577957,
0.0797322615981102,
-0.08309320360422134,
0.5312464237213135,
0.28115200996398926,
0.23593224585056305,
0.024613458663225174,
0.030604563653469086,
-0.1111806109547615,
0.0029793456196784973,
-0.08183324337005615,
-0.2952370047569275,
0.14336824417114258,
-0.007805497385561466,
-0.3700466752052307,
-0.06790156662464142,
-0.33827468752861023,
-0.1110144555568695,
0.012249458581209183,
-0.23593690991401672,
0.132366344332695,
-0.0991360992193222,
0.327461838722229,
0.12898795306682587,
-0.2455885410308838,
-0.07980861514806747,
0.22458688914775848,
0.24560758471488953,
0.6195133924484253,
0.08936921507120132,
0.512522280216217,
0.03438356891274452,
0.03445380926132202,
0.1903526782989502,
0.012658385559916496,
-0.10680795460939407,
0.040170811116695404,
0.24099557101726532,
-0.06359200924634933,
0.12474794685840607,
0.287876158952713,
0.14643889665603638,
0.7235216498374939,
-0.16572941839694977,
-0.10740357637405396,
0.17831379175186157,
0.1075236052274704,
-0.24221526086330414,
-0.1480085849761963,
0.11442297697067261,
-0.06034313142299652,
-0.1510431170463562,
0.05078023299574852,
0.1459885537624359,
-0.26480424404144287,
0.32087022066116333,
0.13632988929748535,
0.41056007146835327,
-0.20913651585578918,
0.13901421427726746,
0.2326117753982544,
-0.040219686925411224,
0.010630033910274506,
-0.2607230246067047,
-0.016524698585271835,
0.14342564344406128,
0.0729607343673706,
-0.25908493995666504,
0.0021666493266820908,
0.13597218692302704,
0.2214532196521759,
-0.12562289834022522,
-0.2092447578907013,
0.12441679835319519,
-0.3079872131347656,
0.05313265323638916,
-0.07804042100906372,
0.1538694202899933,
0.09309981763362885,
0.063008151948452,
-0.08376951515674591,
-0.18680691719055176,
0.4469356834888458,
0.3637334704399109,
-0.22845949232578278,
-0.33118563890457153,
-0.20893363654613495,
-0.2458162158727646,
-0.010843202471733093,
-0.13134847581386566,
-0.2673424780368805,
-0.042036231607198715,
0.020869029685854912,
-0.06512371450662613,
-0.2304665744304657,
-0.07953482866287231,
-0.164140522480011,
0.3442992866039276,
-0.1986876130104065,
-0.03406931459903717,
0.3539015054702759,
0.019296620041131973,
0.2935784161090851,
0.16620886325836182,
0.38901323080062866,
0.3031672537326813,
0.28255966305732727,
0.13414087891578674,
-0.07474740594625473,
-0.07643768936395645,
0.13276463747024536,
-0.051559511572122574,
0.04852309077978134,
-0.016899416223168373,
0.2257484346628189,
0.12437097728252411,
-0.06338895112276077,
-0.21916840970516205,
-0.018853576853871346,
0.13394388556480408,
0.0066306740045547485,
0.25884589552879333,
0.02742106467485428,
-0.09826373308897018,
-0.3797434866428375,
0.14979782700538635,
-0.25671541690826416,
-0.26852256059646606,
0.25296974182128906,
-0.058197975158691406,
0.07543100416660309,
-0.05420564487576485,
0.04560662433505058,
-0.20225390791893005,
0.5885553359985352,
0.29646363854408264,
-0.0175198744982481,
-0.24980582296848297,
-0.32371410727500916,
-0.6692293882369995,
-0.02962658554315567,
0.11074349284172058,
-0.13532337546348572,
-0.158966064453125,
0.04063750058412552,
-0.36853644251823425,
-0.1781419962644577,
0.45350033044815063,
0.06763844192028046,
0.0767982006072998,
0.20880188047885895,
-0.07425493001937866,
-0.16036994755268097,
-0.14252963662147522,
0.5685747861862183,
0.13274072110652924,
-0.24230308830738068,
0.08433815091848373,
-0.3750148415565491,
-0.0309348963201046,
0.02488844096660614,
-0.28988081216812134,
0.0856146514415741,
-0.265217661857605,
0.3958439528942108,
0.015682848170399666,
0.3200855255126953,
-0.21069613099098206,
-0.2838002145290375,
-0.5346635580062866,
-0.324872761964798,
-0.2505563497543335,
0.28242674469947815,
-0.04688705503940582,
0.1986868679523468,
0.055188387632369995,
0.33109933137893677,
-0.46355605125427246,
-0.02625274285674095,
-0.16265305876731873,
0.058861635625362396,
-0.12975285947322845,
0.04317951202392578,
0.06070573627948761,
0.061632584780454636,
0.30753740668296814,
-0.07340909540653229,
-0.18371781706809998,
0.06409807503223419,
-0.29047220945358276,
-0.1000136062502861,
0.6150928735733032,
-0.05457867309451103,
-0.19013237953186035,
-0.17686811089515686,
0.2843324840068817,
-0.15286043286323547,
-0.11105173826217651,
-0.2704388201236725,
0.0030383914709091187,
0.15680362284183502,
0.30586379766464233,
-0.02437390387058258,
0.14282642304897308,
-0.15863581001758575,
0.12436946481466293,
0.08337777853012085,
-0.01517479494214058,
0.15026551485061646,
-0.34175992012023926,
-0.12324240803718567,
-0.02354491874575615
] |
https://github.com/huggingface/datasets/issues/2076 | Is this a command to update my local files or fix the file Github repo in general? (I am not so familiar with the datasets-cli command here)
I also took a brief look at the **Sharing your dataset** section, looks like I could fix that locally and push it to the repo? I guess we are "canonical" category? | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 58 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Is this a command to update my local files or fix the file Github repo in general? (I am not so familiar with the datasets-cli command here)
I also took a brief look at the **Sharing your dataset** section, looks like I could fix that locally and push it to the repo? I guess we are "canonical" category? | [
-0.328745037317276,
0.22784584760665894,
0.01716836914420128,
-0.1485101729631424,
-0.027821142226457596,
0.12953564524650574,
0.21594449877738953,
0.40293964743614197,
0.12522679567337036,
-0.053337037563323975,
0.12921839952468872,
-0.14838257431983948,
0.36618104577064514,
0.16260385513305664,
0.09307052940130234,
0.03713446855545044,
0.08825906366109848,
0.11645903438329697,
-0.1444554477930069,
-0.1393209993839264,
-0.27356457710266113,
0.051936618983745575,
-0.11367134749889374,
0.08188719302415848,
-0.09425307810306549,
0.0077919382601976395,
-0.20590054988861084,
0.15307757258415222,
-0.1278965175151825,
-0.47731906175613403,
0.3734850287437439,
0.38723379373550415,
0.25811314582824707,
0.12172257900238037,
-0.00012119410530431196,
0.03537054359912872,
0.4054265022277832,
-0.08816653490066528,
-0.3705861568450928,
0.0765683576464653,
-0.5739340782165527,
-0.4313012957572937,
-0.06114554405212402,
-0.2580588161945343,
0.1887962520122528,
-0.12985436618328094,
0.20988725125789642,
0.0811498612165451,
0.11627400666475296,
0.4262787699699402,
0.1302454173564911,
0.22306279838085175,
0.3262277841567993,
-0.07375692576169968,
0.148908793926239,
0.16815578937530518,
-0.013227887451648712,
0.37210187315940857,
0.4372788965702057,
-0.10926611721515656,
0.08603432774543762,
0.15340039134025574,
-0.08409085869789124,
0.2124537229537964,
0.35414037108421326,
0.049541305750608444,
0.4574350416660309,
-0.40485015511512756,
0.2234412431716919,
0.032490234822034836,
0.8967595100402832,
-0.42277422547340393,
-0.34206902980804443,
0.08725759387016296,
0.00953717902302742,
-0.08982233703136444,
0.15861590206623077,
0.08596710115671158,
-0.20028458535671234,
0.2778536379337311,
-0.18046875298023224,
-0.36041513085365295,
-0.15912745893001556,
0.3106371760368347,
-0.08730832487344742,
0.5873486995697021,
0.10104724019765854,
0.208222895860672,
0.10319507122039795,
-0.05715537071228027,
-0.127401664853096,
0.04596923664212227,
-0.22257262468338013,
0.07417729496955872,
0.11822465062141418,
-0.20777973532676697,
-0.12128540873527527,
-0.10250851511955261,
0.10666435956954956,
0.15324874222278595,
-0.1984603852033615,
-0.03694334998726845,
-0.17346394062042236,
0.07187667489051819,
0.4032161235809326,
-0.038165364414453506,
0.04572055861353874,
0.1548081338405609,
0.5666861534118652,
0.4230883717536926,
0.011266268789768219,
-0.017905747517943382,
0.1470712274312973,
-0.2979697585105896,
-0.09772719442844391,
0.15507683157920837,
0.4336482286453247,
-0.3121049702167511,
-0.23665717244148254,
-0.10287902504205704,
0.1271018385887146,
-0.11445967853069305,
-0.07682391256093979,
0.12782517075538635,
-0.16138383746147156,
0.23570388555526733,
-0.12471819669008255,
0.04752619192004204,
-0.10263083875179291,
-0.3002573847770691,
0.042725369334220886,
-0.03347928822040558,
0.13293589651584625,
0.11830811947584152,
0.012096226215362549,
0.0708034485578537,
0.05177535116672516,
-0.08319608122110367,
-0.01216001808643341,
-0.17916488647460938,
-0.22841091454029083,
0.1644672155380249,
-0.12868818640708923,
0.26661306619644165,
-0.22456145286560059,
0.26760920882225037,
0.1448451429605484,
-0.32326847314834595,
-0.28282880783081055,
0.2915725111961365,
-0.28825104236602783,
-0.3567066192626953,
-0.32810115814208984,
0.036519963294267654,
-0.07125549018383026,
-0.1758403480052948,
-0.03245526924729347,
-0.21059562265872955,
-0.15741683542728424,
-0.2907344400882721,
0.07414737343788147,
0.0098833367228508,
-0.12923270463943481,
-0.18717040121555328,
0.1953064203262329,
0.5042908787727356,
-0.6066139340400696,
-0.16143931448459625,
-0.23137249052524567,
-0.08165079355239868,
0.2087165117263794,
0.33781296014785767,
-0.276935338973999,
0.16993960738182068,
-0.14608433842658997,
0.027796238660812378,
0.5927788615226746,
-0.5152544975280762,
-0.6871727705001831,
0.204190194606781,
-0.01307116448879242,
-0.22991742193698883,
-0.021408885717391968,
0.2520218789577484,
0.12315010279417038,
-0.34529900550842285,
-0.4743500053882599,
0.08463015407323837,
-0.12905611097812653,
0.09958666563034058,
-0.2955792546272278,
-0.5416895151138306,
0.1625075489282608,
0.181647390127182,
0.04693187028169632,
0.18216025829315186,
0.399283766746521,
0.17664054036140442,
0.3272174298763275,
0.05881957709789276,
0.20111578702926636,
0.2115604132413864,
0.5126594305038452,
0.13144898414611816,
0.15330800414085388,
0.223204106092453,
-0.2943214178085327,
0.1469663828611374,
0.24891287088394165,
0.09496277570724487,
-0.3220590651035309,
-0.2608613073825836,
-0.4123026430606842,
-0.10208101570606232,
-0.3485299348831177,
-0.09098087251186371,
-0.01798241212964058,
0.1807575225830078,
0.11647850275039673,
-0.11034756153821945,
-0.3459632396697998,
0.30937883257865906,
-0.4763232469558716,
0.07452572882175446,
0.23373177647590637,
0.5755882859230042,
-0.1695273220539093,
-0.019682221114635468,
0.05202706158161163,
0.13012897968292236,
0.06396717578172684,
-0.2785017788410187,
-0.21435101330280304,
0.5593364834785461,
-0.312723845243454,
0.23414672911167145,
0.4399033784866333,
0.31176498532295227,
0.1940220296382904,
-0.3202226161956787,
0.11191143095493317,
0.2882179021835327,
-0.02260058932006359,
0.14902864396572113,
-0.174198180437088,
-0.19895650446414948,
0.0576518289744854,
0.17081254720687866,
-0.06553307920694351,
0.0031275153160095215,
0.27498602867126465,
-0.0832783654332161,
-0.14107218384742737,
-0.16225196421146393,
-0.2921610474586487,
-0.02503083273768425,
-0.04150773212313652,
-0.045363664627075195,
-0.06046907231211662,
0.17856690287590027,
0.5440228581428528,
-0.123842254281044,
0.11657409369945526,
0.3003474175930023,
0.09525793790817261,
-0.05968882516026497,
-0.10998888313770294,
0.55647212266922,
0.3104228973388672,
-0.15128499269485474,
-0.1697159856557846,
0.1790991872549057,
0.057859815657138824,
-0.03731054067611694,
0.046599529683589935,
0.19252857565879822,
-0.12007081508636475,
0.01096170861274004,
-0.04682581499218941,
-0.037214748561382294,
0.16952010989189148,
0.1583195924758911,
0.14741250872612,
0.483959823846817,
-0.24621865153312683,
-0.013301670551300049,
-0.3664868175983429,
-0.5353518128395081,
-0.32515183091163635,
0.318996787071228,
-0.379027396440506,
-0.18590861558914185,
-0.04210618510842323,
0.17874281108379364,
-0.21071627736091614,
0.19015735387802124,
0.2043236643075943,
0.317218542098999,
-0.0788312554359436,
0.0009444225579500198,
-0.17194172739982605,
-0.23169417679309845,
-0.3306143283843994,
-0.051932193338871,
0.4443802535533905,
-0.041708678007125854,
0.1766372174024582,
-0.6509732604026794,
-0.1097552701830864,
-1.0360767841339111,
-0.016830898821353912,
-0.046115390956401825,
0.2316713184118271,
0.11536778509616852,
0.15930034220218658,
0.45374590158462524,
-0.016382627189159393,
-0.17074275016784668,
0.26074278354644775,
-0.04019477590918541,
0.21494647860527039,
-0.3174859583377838,
-0.1729995757341385,
0.01675359159708023,
0.04561354219913483,
-0.1350584626197815,
-0.5641145706176758,
-0.3411816358566284,
0.16009657084941864,
0.024100899696350098,
0.14497724175453186,
-0.05096226558089256,
0.04354865103960037,
-0.19061417877674103,
0.13581956923007965,
-0.2904103994369507,
0.15606601536273956,
-0.010705061256885529,
0.26330792903900146,
-0.14436408877372742,
-0.40140852332115173,
0.13297739624977112,
0.3028896749019623,
0.04684847593307495,
0.06647837162017822,
-0.5709301829338074,
-0.2596457600593567,
0.03024483658373356,
0.41496339440345764,
0.12011143565177917,
0.24560998380184174,
0.1748134344816208,
-0.0011634305119514465,
0.03836890310049057,
0.045427724719047546,
-0.19143053889274597,
-0.09535159915685654,
0.5123043656349182,
0.34170591831207275,
0.4293990731239319,
0.37546825408935547,
-0.10853094607591629,
0.5380148887634277,
0.06281976401805878,
-0.12036694586277008,
0.2591623067855835,
-0.1626129299402237,
0.30612167716026306,
-0.00029622018337249756,
-0.2931821942329407,
0.19560278952121735,
-0.15505586564540863,
-0.06570092588663101,
0.4099549651145935,
0.08926022052764893,
-0.03657535836100578,
-0.07392515242099762,
-0.1810673475265503,
-0.2698785066604614,
-0.49219876527786255,
-0.16279400885105133,
0.4599234163761139,
0.25769007205963135,
0.2941860556602478,
-0.13777343928813934,
-0.29249030351638794,
-0.16970489919185638,
0.4024108648300171,
0.6239659190177917,
-0.1235479936003685,
0.20654956996440887,
0.11472899466753006,
-0.1757798045873642,
-0.10044212639331818,
0.26472097635269165,
0.19807486236095428,
0.2662752866744995,
0.03425446152687073,
0.07944000512361526,
0.10083955526351929,
-0.11244867742061615,
0.40057262778282166,
-0.20484386384487152,
0.13915662467479706,
0.1369846910238266,
0.423628032207489,
0.13606911897659302,
-0.2744186222553253,
0.02073007822036743,
0.4552536606788635,
0.20490391552448273,
0.0759628415107727,
-0.022156402468681335,
-0.31525522470474243,
0.3411845564842224,
0.3714483976364136,
-0.20025037229061127,
0.02197948470711708,
0.146714985370636,
-0.402273952960968,
-0.49776333570480347,
-0.2266692817211151,
-0.11953097581863403,
-0.23209872841835022,
-0.07223578542470932,
0.17652127146720886,
0.23329265415668488,
-0.15763306617736816,
-0.15367048978805542,
0.003054089844226837,
0.2076951265335083,
0.49472320079803467,
-0.019830070436000824,
-0.008981890045106411,
0.012931511737406254,
0.09099751710891724,
0.3013310134410858,
0.07005305588245392,
-0.35108911991119385,
-0.1641138345003128,
-0.3205774128437042,
-0.09497091174125671,
0.20824456214904785,
0.11769210547208786,
-0.08273087441921234,
0.14482802152633667,
0.06163627281785011,
-0.08759142458438873,
0.11920703202486038,
0.35842958092689514,
-0.0849577784538269,
-0.5300600528717041,
-0.5256216526031494,
0.40855613350868225,
-0.11996457725763321,
-0.16549427807331085,
0.400360107421875,
0.15636347234249115,
-0.032314956188201904,
-0.2735864520072937,
0.08305144309997559,
0.7465673685073853,
-0.022925976663827896,
0.03270621597766876,
-0.007563565857708454,
-0.0916319265961647,
0.6845269799232483,
-0.35563385486602783,
0.08036217838525772,
-0.2357020229101181,
0.04437361657619476,
-0.14003053307533264,
0.09372387826442719,
-0.03457820042967796,
0.1248345822095871,
-0.2527691721916199,
0.3953992426395416,
0.011126324534416199,
0.12812645733356476,
0.1678035855293274,
0.1267898827791214,
-0.031540513038635254,
0.005841325968503952,
-0.07438819110393524,
0.08309800922870636,
-0.16223880648612976,
0.48664557933807373,
-0.16987964510917664,
0.006891421973705292,
0.012457221746444702,
-0.1154114156961441,
-0.5681359767913818,
-0.06287433207035065,
-0.1664639711380005,
0.2920020818710327,
-0.029978089034557343,
0.021006911993026733,
0.0415385365486145,
0.09921130537986755,
0.42923176288604736,
0.13215576112270355,
-0.20165762305259705,
0.3129695653915405,
-0.005943456664681435,
0.06011289730668068,
0.0004795640707015991,
0.33379998803138733,
0.15796294808387756,
-0.24225330352783203,
-0.3779410123825073,
-0.1441570371389389,
-0.1342758685350418,
-0.38342905044555664,
0.023597076535224915,
-0.2298964411020279,
0.6278175115585327,
0.00046693161129951477,
-0.03048674575984478,
-0.05963988974690437,
-0.12158391624689102,
-0.223188117146492,
0.0184048879891634,
-0.15353411436080933,
0.14163802564144135,
0.08167174458503723,
-0.2914770245552063,
-0.22446796298027039,
0.01916651241481304,
0.18952204287052155,
-0.13990235328674316,
-0.2665095329284668,
0.4547465741634369,
0.12190300971269608,
0.06394276022911072,
-0.19953954219818115,
-0.07254824042320251,
-0.1438465714454651,
-0.6568562984466553,
0.11910929530858994,
-0.0967697948217392,
0.18281525373458862,
-0.10909967124462128,
0.5960334539413452,
0.2512533962726593,
0.16732846200466156,
-0.2896711826324463,
-0.4213559329509735,
-0.27155619859695435,
-0.053264643996953964,
0.3364652693271637,
0.15546578168869019,
-0.017614983022212982,
-0.16495054960250854,
0.1936541050672531,
-0.6747888326644897,
-0.16149300336837769,
0.009075716137886047,
-0.16926288604736328,
0.029619917273521423,
0.670488178730011,
0.4356498122215271,
0.08699751645326614,
0.018851567059755325,
-0.061227768659591675,
-0.17506584525108337,
-0.08128576725721359,
-0.025692380964756012,
-0.13224855065345764,
0.20067964494228363,
-0.05579487606883049,
-0.4399529993534088,
0.050034113228321075,
-0.33748355507850647,
0.0406046062707901,
0.057286959141492844,
-0.10887834429740906,
0.031580545008182526,
-0.058990318328142166,
0.22444482147693634,
0.3297687768936157,
-0.09604284167289734,
-0.1266280561685562,
0.23704031109809875,
0.23531612753868103,
0.696325957775116,
0.047942448407411575,
0.5046021938323975,
0.12467682361602783,
0.10585397481918335,
0.09729595482349396,
0.0786668211221695,
-0.08986698091030121,
-0.021633366122841835,
0.1773710399866104,
-0.18767087161540985,
0.2144841104745865,
0.2815784513950348,
0.2141183465719223,
0.5254455804824829,
-0.1734645962715149,
-0.15317338705062866,
0.37305203080177307,
0.07362478971481323,
-0.17447783052921295,
-0.1968689262866974,
0.34199827909469604,
0.10919871926307678,
-0.05771365761756897,
0.04705588519573212,
0.30090659856796265,
-0.1780046820640564,
0.3103749454021454,
0.08932851254940033,
0.6003994941711426,
-0.22758284211158752,
0.14736603200435638,
0.4256235659122467,
0.18514060974121094,
0.07660255581140518,
-0.5151525139808655,
-0.008837677538394928,
0.08593197166919708,
0.0910278707742691,
-0.31554898619651794,
-0.007645834237337112,
0.3904763460159302,
0.18822114169597626,
0.019511951133608818,
-0.2847192883491516,
0.4502232074737549,
-0.08681736886501312,
-0.006413422524929047,
-0.16028843820095062,
0.2936164140701294,
0.19380223751068115,
0.15453515946865082,
-0.2132190465927124,
-0.10559171438217163,
0.3199579417705536,
0.21938341856002808,
-0.049965593963861465,
-0.29817837476730347,
-0.18535883724689484,
-0.21743473410606384,
0.04132015258073807,
-0.19675689935684204,
-0.0639089047908783,
0.10196657478809357,
-0.000018283724784851074,
-0.02097654715180397,
-0.09959767013788223,
0.0869242399930954,
-0.22545099258422852,
0.2697070837020874,
-0.17320016026496887,
0.0348745658993721,
0.26997679471969604,
-0.04491700977087021,
0.35737472772598267,
0.30325305461883545,
0.35110992193222046,
0.3506346344947815,
0.2956431210041046,
0.22150960564613342,
0.046282362192869186,
-0.027579806745052338,
-0.07052794098854065,
-0.14133945107460022,
-0.23789885640144348,
0.008593667298555374,
0.07536520063877106,
0.11463320255279541,
0.022232919931411743,
-0.08800378441810608,
-0.24142014980316162,
-0.09090861678123474,
-0.1766737699508667,
0.2309429794549942,
-0.12480257451534271,
-0.2502402663230896,
-0.17322848737239838,
0.16439758241176605,
-0.1407437026500702,
-0.23054544627666473,
0.3772294223308563,
0.055609919130802155,
0.04930149391293526,
0.10842563211917877,
0.018488507717847824,
-0.11838153004646301,
0.44385817646980286,
0.4053958058357239,
0.039358630776405334,
-0.050696395337581635,
-0.35498419404029846,
-0.6613136529922485,
0.25252893567085266,
0.04311129450798035,
-0.34343594312667847,
0.020299341529607773,
-0.036552220582962036,
-0.2431383728981018,
-0.01497727446258068,
0.3215935230255127,
-0.19569823145866394,
-0.07188303768634796,
0.001666444819420576,
-0.012256599962711334,
-0.36655229330062866,
-0.10385499149560928,
0.2837752103805542,
0.020628556609153748,
-0.30847638845443726,
0.17895981669425964,
-0.16885709762573242,
-0.07212553918361664,
0.0031013209372758865,
-0.16266684234142303,
0.218478262424469,
-0.44748055934906006,
0.2214149385690689,
0.042312927544116974,
0.3322559595108032,
0.015724748373031616,
-0.323859304189682,
-0.4520311951637268,
-0.2165612131357193,
-0.24480479955673218,
0.28285059332847595,
-0.3794673681259155,
0.16711074113845825,
-0.14895713329315186,
0.2827146351337433,
-0.5202071070671082,
-0.0893792062997818,
-0.14397242665290833,
0.35474246740341187,
-0.11200345307588577,
-0.05661747604608536,
-0.055804550647735596,
-0.13558964431285858,
0.3962641656398773,
-0.10837186127901077,
-0.007829034700989723,
-0.049840476363897324,
-0.3642435669898987,
-0.04547593742609024,
0.41134122014045715,
-0.29125532507896423,
-0.15768401324748993,
-0.19809457659721375,
0.2725573778152466,
-0.09348222613334656,
-0.18713834881782532,
-0.2544824182987213,
-0.07944308966398239,
0.29329970479011536,
0.25105777382850647,
-0.1649758517742157,
0.028510641306638718,
0.01574106141924858,
0.06465041637420654,
0.06831251084804535,
-0.08312968164682388,
0.028445765376091003,
-0.36816930770874023,
0.026878677308559418,
-0.1657811403274536
] |
https://github.com/huggingface/datasets/issues/2076 | This command will update your local file. Then you can open a Pull Request to push your fix to the github repo :)
And yes you are right, it is a "canonical" dataset, i.e. a dataset script defined in this github repo (as opposed to dataset repositories of users on the huggingface hub) | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 53 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
This command will update your local file. Then you can open a Pull Request to push your fix to the github repo :)
And yes you are right, it is a "canonical" dataset, i.e. a dataset script defined in this github repo (as opposed to dataset repositories of users on the huggingface hub) | [
-0.233566552400589,
-0.11886108666658401,
0.018963590264320374,
-0.1395546793937683,
0.01611199416220188,
-0.005983717739582062,
0.17576421797275543,
0.3258337676525116,
0.2067854404449463,
-0.049147799611091614,
0.12043049931526184,
-0.044896163046360016,
0.20969918370246887,
0.4580938518047333,
0.18855415284633636,
-0.08569975942373276,
0.07323212176561356,
0.004608776420354843,
-0.3236837387084961,
-0.0383639931678772,
-0.2702770233154297,
0.3223569989204407,
-0.18502925336360931,
0.13544943928718567,
-0.23891912400722504,
0.1353992372751236,
-0.18851517140865326,
0.19838371872901917,
-0.18059073388576508,
-0.4625661373138428,
0.5045472979545593,
0.24002552032470703,
0.1559288650751114,
0.19239933788776398,
-0.00010926468530669808,
-0.02458833158016205,
0.3951174020767212,
-0.17177428305149078,
-0.10877590626478195,
-0.011408388614654541,
-0.3153640627861023,
-0.3022524416446686,
0.010129518806934357,
-0.2516595423221588,
0.03988198935985565,
-0.10557161271572113,
0.16274288296699524,
0.2556888461112976,
0.21351845562458038,
0.4070447087287903,
0.2583004832267761,
0.42199409008026123,
0.4020581543445587,
-0.1656321883201599,
-0.09692475199699402,
0.04518341273069382,
-0.18396329879760742,
0.08460921794176102,
0.1392519325017929,
-0.16584007441997528,
-0.00794745609164238,
0.26283225417137146,
0.03806556016206741,
0.17740702629089355,
0.3683724105358124,
0.03323662281036377,
0.27709656953811646,
-0.47733744978904724,
0.17774802446365356,
0.2426345944404602,
0.7822639346122742,
-0.34990593791007996,
-0.27006465196609497,
0.08369311690330505,
0.05550386756658554,
-0.08595836162567139,
0.14425799250602722,
0.0836828276515007,
-0.18380194902420044,
0.21456880867481232,
-0.027069365605711937,
-0.19740484654903412,
-0.14740538597106934,
0.19893412292003632,
-0.1147591695189476,
0.4739900231361389,
-0.041831180453300476,
0.11007429659366608,
0.2187187373638153,
-0.17219769954681396,
-0.03838937357068062,
0.2162342667579651,
-0.1291910707950592,
0.0995904952287674,
0.027193978428840637,
-0.16127140820026398,
-0.03950214013457298,
0.12775282561779022,
0.2365034818649292,
0.12150835990905762,
-0.1918831169605255,
0.010319579392671585,
-0.19549322128295898,
-0.07490747421979904,
0.3661407232284546,
-0.02468595653772354,
0.03775897994637489,
-0.20544898509979248,
0.6392713189125061,
0.4878350496292114,
0.13468044996261597,
0.04057968780398369,
0.15307274460792542,
-0.31196603178977966,
-0.2728496789932251,
-0.020996779203414917,
0.41473186016082764,
-0.23581381142139435,
-0.19466963410377502,
-0.22940270602703094,
0.28421056270599365,
0.04850936308503151,
-0.12422031909227371,
0.24081751704216003,
-0.06433168053627014,
0.2211933434009552,
-0.013327941298484802,
0.04140925407409668,
-0.1770208775997162,
-0.2442881166934967,
-0.13930584490299225,
0.037597864866256714,
0.1275269240140915,
0.02694256231188774,
0.1333571970462799,
-0.017165513709187508,
0.20502063632011414,
-0.05056239664554596,
-0.0681755393743515,
-0.09549753367900848,
-0.36660265922546387,
0.2655591070652008,
-0.03676532581448555,
0.22117289900779724,
-0.18859240412712097,
0.22258096933364868,
0.13221774995326996,
-0.15584620833396912,
-0.244950532913208,
0.11672475934028625,
-0.24225889146327972,
-0.33355480432510376,
-0.3620157241821289,
0.12754803895950317,
-0.3240916430950165,
-0.2706543207168579,
0.0901474803686142,
0.028584323823451996,
-0.24508798122406006,
-0.10809986293315887,
0.004352390766143799,
-0.043062999844551086,
-0.3726973831653595,
-0.17731213569641113,
0.2803134322166443,
0.5215451717376709,
-0.41673046350479126,
-0.2620278000831604,
-0.12027572840452194,
-0.24335911870002747,
0.07997725903987885,
0.34577134251594543,
-0.18079642951488495,
0.16309650242328644,
-0.29106059670448303,
0.24941593408584595,
0.2408747524023056,
-0.356361448764801,
-0.6736317873001099,
-0.024150056764483452,
-0.02342063933610916,
-0.106447234749794,
-0.04780036583542824,
0.1957675665616989,
0.09924793243408203,
-0.26807495951652527,
-0.33196505904197693,
0.13649000227451324,
0.0773572325706482,
0.18631601333618164,
-0.22930283844470978,
-0.5873640179634094,
0.15022148191928864,
0.0775778740644455,
0.07903197407722473,
-0.034825053066015244,
0.26307135820388794,
0.23384156823158264,
0.35383734107017517,
-0.02240748703479767,
0.09534207731485367,
0.28158295154571533,
0.40125226974487305,
0.1791227161884308,
0.2152356654405594,
0.08691798895597458,
-0.2827009856700897,
0.1946863979101181,
0.1992514282464981,
0.263484925031662,
-0.23977957665920258,
-0.21289893984794617,
-0.5051877498626709,
-0.09976369142532349,
-0.34823375940322876,
-0.25332242250442505,
0.13733059167861938,
0.06070142984390259,
0.03769610822200775,
-0.04024907574057579,
-0.36641255021095276,
0.35279610753059387,
-0.27357321977615356,
-0.018204500898718834,
-0.16200482845306396,
0.4413309693336487,
-0.17378003895282745,
-0.03589386120438576,
0.21601061522960663,
0.21365268528461456,
0.11474683880805969,
-0.21470023691654205,
-0.11331917345523834,
0.38552501797676086,
-0.20433863997459412,
0.2543186545372009,
0.2713073492050171,
0.29598864912986755,
0.14296318590641022,
-0.44051429629325867,
0.0782652348279953,
0.2604020833969116,
0.0026075616478919983,
0.12078998982906342,
-0.14127318561077118,
-0.03893739730119705,
0.0335717536509037,
0.10484574735164642,
-0.017927445471286774,
0.1726456582546234,
0.43519827723503113,
-0.1481436789035797,
-0.138898566365242,
-0.22318357229232788,
-0.20202796161174774,
-0.27903038263320923,
-0.19091099500656128,
-0.12204141914844513,
-0.09434279054403305,
0.19531980156898499,
0.6526302695274353,
-0.08113442361354828,
0.1934058964252472,
0.3059243857860565,
-0.08804100751876831,
-0.08349186927080154,
-0.0656970962882042,
0.24087664484977722,
0.2677806615829468,
0.027259916067123413,
-0.1545906960964203,
0.18929365277290344,
0.017676588147878647,
-0.0730949193239212,
0.10901623219251633,
0.0896606594324112,
-0.1755734533071518,
0.030161932110786438,
-0.07320339977741241,
-0.08097110688686371,
-0.27388978004455566,
0.29197898507118225,
-0.05333297327160835,
0.3131769299507141,
-0.27860546112060547,
-0.12109306454658508,
-0.3761143386363983,
-0.4734438955783844,
-0.28011882305145264,
0.16655832529067993,
-0.38546934723854065,
-0.34200841188430786,
0.0037458036094903946,
0.25561395287513733,
-0.111904077231884,
0.21810489892959595,
0.15161862969398499,
0.3672245442867279,
-0.10042326897382736,
0.19798538088798523,
-0.23050381243228912,
-0.23155973851680756,
-0.24340908229351044,
0.056248005479574203,
0.3037784993648529,
0.1399765908718109,
0.30244457721710205,
-0.6965794563293457,
-0.0006319135427474976,
-0.9145672917366028,
-0.2800678610801697,
0.11373130232095718,
0.07845324277877808,
0.23368626832962036,
0.3152011036872864,
0.4718117415904999,
0.03624999523162842,
-0.09299107640981674,
0.19160506129264832,
-0.3334910273551941,
0.044595710933208466,
-0.28655996918678284,
-0.20284971594810486,
0.035854849964380264,
-0.014976978302001953,
-0.18371468782424927,
-0.4896513819694519,
-0.3156399428844452,
0.27440041303634644,
-0.028238512575626373,
0.030895637348294258,
0.029481828212738037,
0.0008586160838603973,
-0.06270688027143478,
0.011218570172786713,
-0.23042258620262146,
-0.13358046114444733,
0.11091509461402893,
0.4065054655075073,
-0.13139387965202332,
-0.5269102454185486,
0.23077261447906494,
0.15088796615600586,
0.11479092389345169,
-0.2585178017616272,
-0.5553163886070251,
-0.31045711040496826,
-0.046288151293992996,
0.4160473644733429,
0.10707532614469528,
0.31481537222862244,
0.2358894646167755,
-0.04793484881520271,
-0.05933123826980591,
-0.055654916912317276,
-0.36138051748275757,
-0.046739622950553894,
0.32737115025520325,
0.3528599739074707,
0.3838156759738922,
0.28026285767555237,
-0.013092346489429474,
0.42801111936569214,
0.10910136997699738,
-0.042183153331279755,
0.23249372839927673,
-0.34164488315582275,
0.31441858410835266,
-0.10110557079315186,
-0.31279441714286804,
0.21383188664913177,
-0.21301238238811493,
0.2422894537448883,
0.36997273564338684,
0.1163371354341507,
0.12085551768541336,
-0.06257778406143188,
-0.2283206284046173,
-0.18776953220367432,
-0.4996316730976105,
-0.19159606099128723,
0.5330440402030945,
0.08644162118434906,
0.24573636054992676,
0.027590714395046234,
-0.30736908316612244,
-0.2219127118587494,
0.5058278441429138,
0.5238962769508362,
-0.15147538483142853,
0.18568462133407593,
0.1707988679409027,
-0.012557972222566605,
-0.4755595624446869,
0.1710110902786255,
0.04004693776369095,
0.19654303789138794,
0.004942387342453003,
0.027559466660022736,
0.17324167490005493,
-0.07844266295433044,
0.6037290692329407,
-0.04728328436613083,
0.14951463043689728,
0.05079241842031479,
0.1644228994846344,
-0.07537002116441727,
-0.11667387932538986,
0.014949217438697815,
0.2956688404083252,
0.08637996017932892,
0.15832585096359253,
-0.12830676138401031,
-0.36245885491371155,
0.4438437223434448,
0.3782402575016022,
-0.24684032797813416,
-0.11089828610420227,
-0.017087802290916443,
-0.6500027179718018,
-0.5062054991722107,
-0.1907252073287964,
0.03735140711069107,
-0.14126521348953247,
-0.06170376017689705,
0.24884521961212158,
0.13067883253097534,
-0.24118414521217346,
-0.09580089896917343,
0.13946399092674255,
0.2625068724155426,
0.43790069222450256,
-0.009743832051753998,
0.2182336300611496,
-0.13646188378334045,
-0.16538803279399872,
0.43128591775894165,
0.07310108840465546,
-0.40824803709983826,
-0.1175408735871315,
-0.28848302364349365,
-0.1285904198884964,
0.28342849016189575,
0.028476417064666748,
-0.020341791212558746,
0.0824790745973587,
0.07023224234580994,
-0.19803285598754883,
0.12828093767166138,
0.4534527361392975,
-0.07996473461389542,
-0.3448008894920349,
-0.3542915880680084,
0.4003818929195404,
-0.11478815227746964,
-0.07752090692520142,
0.37798044085502625,
0.3538372814655304,
-0.04986245557665825,
-0.0894845500588417,
-0.024859942495822906,
0.6526332497596741,
0.11468411237001419,
0.07956695556640625,
0.24205373227596283,
-0.10198228061199188,
0.6518203616142273,
-0.04103969782590866,
0.12226340174674988,
-0.3257211148738861,
0.0006457753479480743,
-0.09963145852088928,
0.15052153170108795,
-0.241248220205307,
-0.003945421427488327,
-0.0847463458776474,
0.4775625169277191,
0.15148332715034485,
0.19451624155044556,
0.12787556648254395,
0.30774974822998047,
-0.05442463606595993,
-0.13557890057563782,
-0.27003026008605957,
0.2111504226922989,
-0.08851054310798645,
0.6037112474441528,
-0.0892816036939621,
-0.16215401887893677,
0.20687627792358398,
-0.1975574493408203,
-0.5399234294891357,
0.04768584668636322,
-0.13310953974723816,
0.3173459768295288,
0.07731457054615021,
0.12147998809814453,
0.06887680292129517,
0.11820642650127411,
0.4526981711387634,
0.0669938325881958,
-0.37286195158958435,
0.2600720226764679,
-0.013128895312547684,
-0.1014178991317749,
-0.010123420506715775,
0.3554031252861023,
0.06443178653717041,
-0.3104497492313385,
-0.4030137062072754,
-0.19978779554367065,
-0.024762393906712532,
-0.22619596123695374,
0.05459800362586975,
-0.1979747861623764,
0.3774759769439697,
0.0033660531044006348,
-0.07945942133665085,
-0.0526563860476017,
-0.005354173481464386,
-0.2600458860397339,
0.13644422590732574,
-0.1225389689207077,
0.021039649844169617,
0.12882444262504578,
-0.16153579950332642,
-0.10955819487571716,
-0.018448874354362488,
0.28167837858200073,
-0.2700922191143036,
-0.14042720198631287,
0.49180829524993896,
0.28615057468414307,
-0.016139034181833267,
-0.2439471185207367,
-0.07038673758506775,
-0.03972989693284035,
-0.79221111536026,
0.11324772238731384,
0.06183334439992905,
0.09776556491851807,
-0.10278207063674927,
0.6565716862678528,
0.19023717939853668,
-0.08658668398857117,
-0.28093016147613525,
-0.4150908589363098,
-0.3234255313873291,
0.09809868037700653,
0.21709521114826202,
0.2083803415298462,
0.08412793278694153,
0.01564861088991165,
0.2016143500804901,
-0.5624889731407166,
-0.33211272954940796,
0.06501451134681702,
-0.08976267278194427,
-0.11266472935676575,
0.5341256260871887,
0.16139912605285645,
0.17361000180244446,
0.05908805876970291,
0.07962986826896667,
-0.04110241308808327,
-0.20694079995155334,
-0.16286857426166534,
-0.3124524652957916,
0.12378308922052383,
-0.13712841272354126,
-0.39706510305404663,
0.08432094007730484,
-0.22419823706150055,
-0.1113068088889122,
0.009243343025445938,
0.11313697695732117,
0.2931984066963196,
-0.007024545222520828,
0.22142179310321808,
0.35576510429382324,
-0.12193207442760468,
0.03787366300821304,
0.14404121041297913,
0.3490452170372009,
0.57115638256073,
0.07518700510263443,
0.3948971927165985,
-0.09187131375074387,
0.10505671799182892,
0.38192033767700195,
0.15601389110088348,
-0.04242542386054993,
-0.05192314460873604,
0.19178175926208496,
-0.1765860617160797,
0.07074262946844101,
0.18674412369728088,
0.16200679540634155,
0.5038245320320129,
-0.2613508701324463,
-0.11057785153388977,
0.24600069224834442,
0.15062279999256134,
-0.33462342619895935,
-0.18287977576255798,
0.2637702226638794,
0.09904642403125763,
-0.04410144314169884,
0.08313048630952835,
0.3345205783843994,
-0.17476306855678558,
0.28953275084495544,
0.09710533916950226,
0.5810632109642029,
-0.25874564051628113,
0.053666818886995316,
0.2354915291070938,
-0.043796420097351074,
0.0007870439440011978,
-0.2322135716676712,
0.0009575095027685165,
0.21139977872371674,
0.15078476071357727,
-0.2013857364654541,
-0.04276661574840546,
-0.009260009974241257,
0.2668435573577881,
0.09168451279401779,
-0.2197219282388687,
0.23249229788780212,
-0.13321441411972046,
0.03015083819627762,
-0.11367714405059814,
0.19474202394485474,
0.24234408140182495,
-0.03289575129747391,
-0.18025687336921692,
-0.34116676449775696,
0.4657827615737915,
0.15781040489673615,
-0.1460879147052765,
-0.11409065872430801,
-0.14455412328243256,
-0.14629648625850677,
0.10827988386154175,
-0.17094290256500244,
-0.11861258745193481,
0.09379759430885315,
-0.03434669226408005,
-0.07889008522033691,
-0.14610791206359863,
-0.15439105033874512,
-0.12329450249671936,
0.3736058473587036,
-0.1328391283750534,
0.11629398167133331,
0.29698196053504944,
0.03825201839208603,
0.2212432324886322,
0.3534232974052429,
0.47453224658966064,
0.17893677949905396,
0.17254436016082764,
0.15857228636741638,
0.004651535302400589,
-0.09924114495515823,
-0.017581690102815628,
-0.012458325363695621,
-0.08962184935808182,
0.12905007600784302,
0.23050743341445923,
0.18996204435825348,
-0.08551612496376038,
-0.2006916105747223,
-0.15549716353416443,
0.004414889961481094,
-0.11032840609550476,
0.0721082091331482,
-0.23110172152519226,
-0.056719422340393066,
-0.33285218477249146,
0.14900019764900208,
-0.17400214076042175,
-0.1544373780488968,
0.29454782605171204,
0.03504657745361328,
0.12691038846969604,
0.01749512553215027,
0.09802713245153427,
-0.129097118973732,
0.5321987271308899,
0.32124578952789307,
0.0379091314971447,
-0.022243496030569077,
-0.3133053183555603,
-0.7508373260498047,
0.13433198630809784,
0.011783279478549957,
-0.24444171786308289,
0.06562410295009613,
-0.06776113063097,
-0.16106891632080078,
0.016258902847766876,
0.25511419773101807,
-0.0839386135339737,
0.015144485980272293,
-0.06346255540847778,
-0.05916581675410271,
-0.2827607989311218,
-0.08818104863166809,
0.25526121258735657,
0.11630816012620926,
-0.20393437147140503,
0.11726626753807068,
-0.12346663326025009,
0.018498100340366364,
0.0706113949418068,
-0.08587497472763062,
-0.022495262324810028,
-0.3802751898765564,
0.06497488915920258,
0.11107944697141647,
0.2818399965763092,
-0.18641628324985504,
-0.2438085973262787,
-0.4563574194908142,
-0.2451845109462738,
-0.3523600101470947,
0.2957238256931305,
-0.23104892671108246,
0.14001789689064026,
0.07149899750947952,
0.11894872784614563,
-0.4806298017501831,
0.04996291548013687,
0.020512983202934265,
0.2524634599685669,
-0.2548213005065918,
0.15105947852134705,
-0.12150625139474869,
-0.021983293816447258,
0.31261831521987915,
0.047185540199279785,
-0.163613960146904,
-0.08446191251277924,
-0.12417018413543701,
-0.17335332930088043,
0.6147266030311584,
-0.2698357105255127,
-0.12955066561698914,
-0.14464011788368225,
0.1861276775598526,
-0.08622726798057556,
-0.279391884803772,
-0.3792194724082947,
0.1572498381137848,
0.08191590756177902,
0.29102274775505066,
-0.12665951251983643,
0.13687795400619507,
-0.15124386548995972,
0.0280846506357193,
0.05433562397956848,
0.06383568048477173,
0.22393165528774261,
-0.3455145061016083,
0.08397942781448364,
-0.18001550436019897
] |
https://github.com/huggingface/datasets/issues/2076 | Hi, thanks for the answer.
I gave a try to the problem today. But I encountered an upload error:
```
git push -u origin fix_link_iwslt
Enter passphrase for key '/home2/xuhuizh/.ssh/id_rsa':
ERROR: Permission to huggingface/datasets.git denied to XuhuiZhou.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
```
Any insight here?
By the way, when I run the datasets-cli command, it shows the following error, but does not seem to be the error coming from `iwslt.py`
```
Traceback (most recent call last):
File "/home2/xuhuizh/anaconda3/envs/UMT/bin/datasets-cli", line 33, in <module>
sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')())
File "/home2/xuhuizh/projects/datasets/src/datasets/commands/datasets_cli.py", line 35, in main
service.run()
File "/home2/xuhuizh/projects/datasets/src/datasets/commands/test.py", line 141, in run
try_from_hf_gcs=False,
File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 639, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home2/xuhuizh/projects/datasets/src/datasets/utils/info_utils.py", line 32, in verify_checksums
raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {'https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz'}
``` | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 148 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi, thanks for the answer.
I gave a try to the problem today. But I encountered an upload error:
```
git push -u origin fix_link_iwslt
Enter passphrase for key '/home2/xuhuizh/.ssh/id_rsa':
ERROR: Permission to huggingface/datasets.git denied to XuhuiZhou.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
```
Any insight here?
By the way, when I run the datasets-cli command, it shows the following error, but does not seem to be the error coming from `iwslt.py`
```
Traceback (most recent call last):
File "/home2/xuhuizh/anaconda3/envs/UMT/bin/datasets-cli", line 33, in <module>
sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')())
File "/home2/xuhuizh/projects/datasets/src/datasets/commands/datasets_cli.py", line 35, in main
service.run()
File "/home2/xuhuizh/projects/datasets/src/datasets/commands/test.py", line 141, in run
try_from_hf_gcs=False,
File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 639, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home2/xuhuizh/projects/datasets/src/datasets/utils/info_utils.py", line 32, in verify_checksums
raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums)))
datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {'https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz'}
``` | [
-0.1731773018836975,
-0.01039007306098938,
0.05730967968702316,
-0.03935623914003372,
0.05381656065583229,
-0.012416303157806396,
0.25629982352256775,
0.3127621114253998,
0.11338673532009125,
0.020173683762550354,
0.031347937881946564,
0.01898278295993805,
0.3240015506744385,
0.2409657984972,
0.1655397266149521,
0.08329485356807709,
0.09354798495769501,
0.007020745426416397,
-0.29775550961494446,
-0.018183521926403046,
-0.24642246961593628,
0.2069953978061676,
-0.18713778257369995,
0.09840531647205353,
-0.06641390919685364,
0.09391584247350693,
-0.14374229311943054,
0.13233087956905365,
0.07113276422023773,
-0.5863397121429443,
0.28371235728263855,
0.15161718428134918,
0.2967729866504669,
0.27966153621673584,
-0.0001216274977196008,
-0.02988024801015854,
0.27234727144241333,
-0.1334090679883957,
-0.36353206634521484,
-0.027610667049884796,
-0.4098815619945526,
-0.4128108024597168,
-0.25031372904777527,
-0.26979148387908936,
0.12526294589042664,
-0.047043245285749435,
0.05262700468301773,
0.17822960019111633,
0.25513920187950134,
0.4470215439796448,
0.11546455323696136,
0.354239821434021,
0.40064364671707153,
-0.09960448741912842,
-0.07632799446582794,
0.06241797283291817,
-0.080891914665699,
0.19452957808971405,
0.17656204104423523,
0.004309065639972687,
0.31907373666763306,
0.12492817640304565,
0.07743509858846664,
0.09309478104114532,
0.24388493597507477,
-0.09956434369087219,
0.40321820974349976,
-0.3919488787651062,
0.22263257205486298,
0.04671141877770424,
0.757717490196228,
-0.2985825538635254,
-0.5799195170402527,
-0.04423825442790985,
0.15990421175956726,
0.04990547150373459,
0.1854633390903473,
0.046991102397441864,
-0.2484171986579895,
0.3061734437942505,
-0.15145067870616913,
-0.4920487701892853,
-0.26952865719795227,
0.35240790247917175,
0.07799117267131805,
0.44475167989730835,
0.06079208105802536,
0.195039302110672,
0.24973700940608978,
-0.14348571002483368,
0.030761215835809708,
0.11080728471279144,
-0.24117493629455566,
0.16072599589824677,
0.011444899253547192,
-0.10124676674604416,
-0.10412314534187317,
0.18923431634902954,
0.13511711359024048,
0.09794627130031586,
-0.22963495552539825,
-0.06818707287311554,
-0.09950472414493561,
-0.010115422308444977,
0.2546985149383545,
0.09388146549463272,
-0.0022866949439048767,
0.02348853275179863,
0.42501193284988403,
0.42841243743896484,
0.20597092807292938,
-0.06375806033611298,
0.08494198322296143,
-0.3227723240852356,
-0.30130356550216675,
0.05413436144590378,
0.2840806245803833,
-0.15110580623149872,
-0.2094751000404358,
-0.2937171459197998,
0.039977170526981354,
-0.01059502363204956,
-0.07029649615287781,
0.22062599658966064,
-0.10208330303430557,
0.15460233390331268,
0.016657494008541107,
0.14944115281105042,
-0.0292687825858593,
-0.3486826717853546,
0.020252127200365067,
-0.005921397358179092,
-0.008056692779064178,
0.15730896592140198,
0.17373335361480713,
-0.09851934015750885,
0.0062294043600559235,
-0.00808405876159668,
-0.23371244966983795,
-0.17634037137031555,
-0.29842647910118103,
0.1085456982254982,
0.10478551685810089,
0.12625449895858765,
-0.13587327301502228,
0.2610068917274475,
0.034558966755867004,
-0.17501208186149597,
-0.0659158006310463,
0.12261265516281128,
-0.35522404313087463,
-0.24120375514030457,
-0.24734525382518768,
0.00901011098176241,
-0.22747674584388733,
-0.1725844144821167,
-0.15141452848911285,
-0.09464102238416672,
-0.12647143006324768,
-0.3580669164657593,
-0.007644280791282654,
0.019254472106695175,
-0.22576402127742767,
-0.15444976091384888,
0.29904696345329285,
0.5962203741073608,
-0.5039990544319153,
-0.3450404405593872,
-0.2770167887210846,
-0.20290279388427734,
0.07892803102731705,
0.31904739141464233,
-0.2443765252828598,
0.22599667310714722,
-0.2795184254646301,
0.12838095426559448,
0.33242344856262207,
-0.5260114669799805,
-0.7665930390357971,
0.20688609778881073,
0.014696270227432251,
-0.024541158229112625,
0.017246413975954056,
0.08171883225440979,
0.09004607051610947,
-0.2895280718803406,
-0.6715383529663086,
0.05716536194086075,
0.07817655056715012,
0.11017702519893646,
-0.17484164237976074,
-0.5463125705718994,
0.14033177495002747,
-0.02096179872751236,
0.04764177277684212,
0.24661347270011902,
0.45285293459892273,
0.16259527206420898,
0.48416203260421753,
-0.10683220624923706,
0.24864453077316284,
0.18198838829994202,
0.5102996826171875,
0.18152029812335968,
0.12838563323020935,
0.026796169579029083,
-0.32591599225997925,
0.2599063515663147,
0.26521897315979004,
0.11926747858524323,
-0.46959182620048523,
-0.07143206149339676,
-0.38380539417266846,
-0.07783464342355728,
-0.34337207674980164,
-0.10256414115428925,
-0.01724417507648468,
0.21398690342903137,
0.06952854990959167,
-0.019134610891342163,
-0.14085304737091064,
0.23319928348064423,
-0.12024140357971191,
-0.01354004442691803,
-0.09895747900009155,
0.3463072180747986,
-0.16212324798107147,
-0.02245413511991501,
-0.03257863223552704,
0.188435897231102,
0.22301217913627625,
-0.22817683219909668,
-0.14157319068908691,
0.49470534920692444,
-0.4156078100204468,
0.32292240858078003,
0.2500261664390564,
0.11366540193557739,
0.17533479630947113,
-0.3674815595149994,
0.13240313529968262,
0.22340573370456696,
0.023048076778650284,
0.17551341652870178,
-0.10779263079166412,
-0.20794814825057983,
0.0823868066072464,
0.21694615483283997,
0.012245513498783112,
-0.001903630793094635,
0.2869504690170288,
-0.16552701592445374,
-0.05046580359339714,
-0.1969951093196869,
-0.11621345579624176,
-0.13633590936660767,
-0.14994776248931885,
-0.19515888392925262,
-0.022400498390197754,
0.18987703323364258,
0.444751501083374,
-0.07519882917404175,
0.16471481323242188,
0.3001329302787781,
0.043280526995658875,
0.06439359486103058,
-0.05509142577648163,
0.6107308864593506,
0.27160000801086426,
-0.14957930147647858,
-0.2571929693222046,
0.07107527554035187,
0.26237398386001587,
-0.15532398223876953,
0.19136446714401245,
0.0627831369638443,
-0.045987702906131744,
0.08775907754898071,
-0.04735042154788971,
-0.03950733691453934,
0.09108427166938782,
0.21501146256923676,
0.1679966151714325,
0.43879222869873047,
-0.4453456997871399,
-0.006193831562995911,
-0.4293611943721771,
-0.6389663219451904,
-0.20033472776412964,
0.2501920759677887,
-0.23662620782852173,
-0.185872882604599,
-0.1833363026380539,
0.2103630006313324,
-0.07887888699769974,
0.20534494519233704,
0.03790343552827835,
0.3174072802066803,
-0.08436015993356705,
0.16590246558189392,
-0.26039791107177734,
-0.048341892659664154,
-0.20617008209228516,
-0.0613752156496048,
0.2968950867652893,
-0.07037422806024551,
0.2664996385574341,
-0.5192922949790955,
-0.10636873543262482,
-0.9385623335838318,
-0.04000913351774216,
0.04453463479876518,
0.08853563666343689,
0.24539293348789215,
0.12656597793102264,
0.4747098684310913,
0.14921864867210388,
-0.059593215584754944,
0.2381044626235962,
-0.15946900844573975,
0.12004727870225906,
-0.1929836869239807,
-0.08514387905597687,
0.06527668237686157,
-0.1378381997346878,
-0.1064782589673996,
-0.5346982479095459,
-0.2964920997619629,
0.3588111698627472,
-0.06602895259857178,
0.1081242561340332,
0.09742698073387146,
0.20436157286167145,
-0.07271935790777206,
-0.03734922409057617,
-0.17077627778053284,
0.023580428212881088,
0.040108442306518555,
0.26249006390571594,
-0.09810318052768707,
-0.4878208041191101,
0.13309207558631897,
0.36271560192108154,
0.24138031899929047,
-0.04054783284664154,
-0.4037991166114807,
-0.02932259812951088,
0.028239240869879723,
0.5150353312492371,
-0.005289379041641951,
0.23201416432857513,
0.06923309713602066,
-0.02977759949862957,
0.0736689418554306,
-0.007638059556484222,
-0.1586826741695404,
-0.06324713677167892,
0.23886647820472717,
0.46978503465652466,
0.5023779273033142,
0.5303525328636169,
-0.016053631901741028,
0.31576859951019287,
0.02317805588245392,
0.0330219529569149,
0.44923844933509827,
-0.3102991580963135,
0.3521686792373657,
0.18781501054763794,
-0.47141748666763306,
0.18396760523319244,
-0.07332676649093628,
0.23290279507637024,
0.277969092130661,
-0.0017411541193723679,
0.06596554815769196,
-0.17094990611076355,
-0.25625258684158325,
-0.2403242290019989,
-0.488118052482605,
-0.2364591509103775,
0.4585447311401367,
0.276552677154541,
0.2874038815498352,
0.06834536790847778,
-0.4240665137767792,
-0.25228044390678406,
0.44819560647010803,
0.3350018262863159,
0.08278755843639374,
0.16867297887802124,
0.048156991600990295,
-0.21306365728378296,
-0.44617560505867004,
0.2900398373603821,
0.1415865123271942,
0.4409947395324707,
-0.11990928649902344,
0.16558395326137543,
0.13902053236961365,
-0.0851575955748558,
0.5852243304252625,
-0.17159916460514069,
0.19933325052261353,
-0.13694143295288086,
0.3749862611293793,
-0.10455019772052765,
-0.11609675735235214,
0.0892065018415451,
0.2740936279296875,
0.4025421440601349,
0.29189062118530273,
-0.1657918393611908,
-0.3208502531051636,
0.22142106294631958,
0.38307297229766846,
-0.22414728999137878,
-0.23012423515319824,
0.0008437111973762512,
-0.3451744318008423,
-0.693325400352478,
-0.328115314245224,
-0.006982468068599701,
-0.08807161450386047,
0.05120902508497238,
0.22419756650924683,
0.21424444019794464,
-0.0677863135933876,
-0.10708320885896683,
-0.0017376765608787537,
0.22216933965682983,
0.47396352887153625,
-0.039384275674819946,
0.18468940258026123,
0.00231386860832572,
0.17618291079998016,
0.3277203440666199,
-0.010735026560723782,
-0.2566163241863251,
-0.1608530730009079,
-0.2513643503189087,
-0.11396266520023346,
0.29039981961250305,
-0.032751377671957016,
0.19266235828399658,
0.1949867457151413,
0.08923022449016571,
-0.03468169644474983,
-0.05789382755756378,
0.4571625292301178,
-0.11643277108669281,
-0.3752478361129761,
-0.4556742012500763,
0.3361278772354126,
-0.24959388375282288,
-0.042885392904281616,
0.18452830612659454,
0.3937384784221649,
-0.1125243529677391,
-0.29469966888427734,
-0.14756302535533905,
0.7340785264968872,
0.21023374795913696,
0.01299025397747755,
0.27000507712364197,
0.09168528020381927,
0.6499996185302734,
0.04595652222633362,
0.08656834810972214,
-0.21052178740501404,
0.07528763264417648,
-0.05893195420503616,
0.10290390253067017,
-0.24619600176811218,
0.09280712902545929,
-0.061020318418741226,
0.4542873501777649,
-0.03218209743499756,
0.027831414714455605,
0.1643616408109665,
0.4223261773586273,
-0.12499237805604935,
0.00006422959268093109,
-0.08982651680707932,
0.09600494801998138,
-0.07623440027236938,
0.3992207646369934,
-0.05956710875034332,
-0.170447438955307,
-0.031148560345172882,
0.026430845260620117,
-0.5818719267845154,
0.19425462186336517,
-0.27101144194602966,
0.23840978741645813,
-0.10241963714361191,
-0.001200258731842041,
0.3617004454135895,
0.15046843886375427,
0.359102725982666,
0.049404576420784,
-0.349703848361969,
0.22351673245429993,
-0.1748245358467102,
-0.10817690193653107,
-0.10182826220989227,
0.36302661895751953,
0.08838312327861786,
-0.2549302577972412,
-0.5241522192955017,
-0.008662112057209015,
-0.036123305559158325,
-0.23641279339790344,
0.10484245419502258,
-0.16675521433353424,
0.40924158692359924,
-0.09896276146173477,
-0.24618105590343475,
-0.20791199803352356,
-0.12354879081249237,
-0.2296195775270462,
0.021053873002529144,
-0.12083835899829865,
0.13678039610385895,
0.11031942814588547,
-0.26998984813690186,
-0.16453629732131958,
0.04628319665789604,
0.4265492260456085,
-0.4591663181781769,
-0.1281842142343521,
0.796483039855957,
0.2921913266181946,
-0.06721937656402588,
-0.17165149748325348,
-0.14136245846748352,
-0.14426417648792267,
-0.9090530872344971,
0.06036173179745674,
0.15437786281108856,
0.2676522135734558,
-0.06454965472221375,
0.4446272552013397,
0.12250806391239166,
0.06262558698654175,
-0.2182362675666809,
-0.4203624725341797,
-0.10499238967895508,
0.004581930115818977,
0.24430473148822784,
0.1058991402387619,
-0.07365451753139496,
-0.0744287520647049,
0.14326024055480957,
-0.5616604685783386,
-0.18512345850467682,
0.02771228551864624,
0.004925630986690521,
-0.09340707212686539,
0.6767570972442627,
0.29003095626831055,
0.2609380781650543,
-0.09072762727737427,
-0.027165202423930168,
-0.037719547748565674,
0.0028268955647945404,
-0.026270374655723572,
-0.22351671755313873,
0.18334054946899414,
0.05950344353914261,
-0.4573155641555786,
-0.04539281129837036,
-0.3796967566013336,
0.005225935950875282,
0.025217629969120026,
-0.07692127674818039,
0.11974842846393585,
0.02084369957447052,
0.21083275973796844,
0.26003190875053406,
-0.10266344249248505,
-0.04796115681529045,
0.31857672333717346,
0.25827038288116455,
0.4589097499847412,
-0.04116925597190857,
0.5171278715133667,
-0.021903056651353836,
0.1272801011800766,
-0.1412893682718277,
0.04473161697387695,
0.0138179250061512,
-0.0031939707696437836,
0.30173736810684204,
-0.23994526267051697,
0.19388723373413086,
0.27939799427986145,
0.025716520845890045,
0.3771681487560272,
-0.17804089188575745,
-0.17604869604110718,
0.20112313330173492,
0.042530328035354614,
-0.24722857773303986,
-0.12493747472763062,
0.1232035681605339,
-0.12593743205070496,
-0.1002599373459816,
0.06164345517754555,
0.13258667290210724,
-0.3096863925457001,
0.2227419912815094,
0.07609058171510696,
0.49696946144104004,
-0.12799127399921417,
0.0035037770867347717,
0.4426576495170593,
0.11138898134231567,
0.08243735134601593,
-0.2332005798816681,
0.10570785403251648,
0.10845582187175751,
0.12356646358966827,
-0.4334861636161804,
-0.1788528859615326,
0.13832241296768188,
0.24263429641723633,
0.010389041155576706,
-0.3338913917541504,
0.1450663059949875,
-0.18558494746685028,
-0.11396880447864532,
-0.15714144706726074,
0.1135377436876297,
0.2669583261013031,
0.05497673898935318,
-0.21656379103660583,
-0.17585286498069763,
0.587236762046814,
0.2028711885213852,
-0.04734916239976883,
-0.290447473526001,
-0.23323699831962585,
-0.1876092255115509,
0.0005465969443321228,
-0.19722381234169006,
-0.2776620388031006,
-0.10445473343133926,
0.1796913892030716,
-0.14788353443145752,
-0.2340172827243805,
-0.10566119849681854,
-0.1362779438495636,
0.3717670142650604,
-0.13134171068668365,
0.09575141221284866,
0.19094572961330414,
-0.05003570020198822,
0.2088552713394165,
0.33420541882514954,
0.4915674328804016,
0.2866504490375519,
0.5088070034980774,
0.2947314381599426,
0.0730188637971878,
-0.02741403877735138,
0.13017040491104126,
-0.028518836945295334,
0.010105185210704803,
0.16173890233039856,
0.10697270929813385,
0.06603407114744186,
-0.005749501287937164,
-0.3965218961238861,
-0.08879218995571136,
0.09079974889755249,
-0.11412963271141052,
0.25069600343704224,
-0.3444794714450836,
-0.2569883465766907,
-0.32638853788375854,
0.17862489819526672,
-0.14174410700798035,
0.06496258080005646,
0.3046623468399048,
-0.024597156792879105,
0.10863145440816879,
-0.11766615509986877,
0.02141965553164482,
-0.17237268388271332,
0.4463747441768646,
0.40362584590911865,
0.0717262327671051,
-0.19991353154182434,
-0.27809321880340576,
-0.671922504901886,
0.08964624255895615,
0.025211473926901817,
-0.19610761106014252,
-0.06072846055030823,
-0.07233133167028427,
-0.2990930378437042,
-0.2401505410671234,
0.3871958255767822,
-0.014077100902795792,
0.19449299573898315,
0.15099406242370605,
0.03842425346374512,
-0.25995588302612305,
-0.035337142646312714,
0.3991890251636505,
0.08208011090755463,
-0.22985519468784332,
0.1750032603740692,
-0.3563648760318756,
-0.08082617819309235,
0.08152695000171661,
-0.13140252232551575,
-0.040539372712373734,
-0.30326348543167114,
0.19696201384067535,
0.02863774262368679,
0.28682053089141846,
-0.10246835649013519,
-0.3316047489643097,
-0.48109936714172363,
-0.2985098361968994,
-0.2880403697490692,
0.30284029245376587,
-0.15380319952964783,
0.08846265077590942,
0.05185660719871521,
0.2830045521259308,
-0.5554577112197876,
0.020586688071489334,
-0.11215952783823013,
0.20028924942016602,
-0.08680807054042816,
0.017459571361541748,
-0.011079959571361542,
-0.03635246306657791,
0.49126362800598145,
-0.15437465906143188,
-0.11633957922458649,
0.1405218094587326,
-0.35662105679512024,
-0.0735706090927124,
0.5362972617149353,
-0.35837170481681824,
-0.06597872823476791,
-0.08042117953300476,
0.39463576674461365,
-0.04047166928648949,
-0.28466707468032837,
-0.3354429602622986,
0.059370145201683044,
0.23041652143001556,
0.2856466770172119,
-0.0827297642827034,
0.08288009464740753,
-0.2585715055465698,
0.1965324431657791,
0.14691773056983948,
0.09618745744228363,
0.2246541976928711,
-0.39549970626831055,
0.1924876719713211,
0.06143735349178314
] |
https://github.com/huggingface/datasets/issues/2076 | Hi ! To create a PR on this repo your must fork it and create a branch on your fork. See how to fork the repo [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#start-by-preparing-your-environment).
And to make the command work without the `ExpectedMoreDownloadedFiles` error, you just need to use the `--ignore_verifications` flag. | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 45 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi ! To create a PR on this repo your must fork it and create a branch on your fork. See how to fork the repo [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#start-by-preparing-your-environment).
And to make the command work without the `ExpectedMoreDownloadedFiles` error, you just need to use the `--ignore_verifications` flag. | [
-0.25608742237091064,
-0.09676963835954666,
0.017853710800409317,
-0.06596158444881439,
0.09448842704296112,
0.049594685435295105,
0.19209600985050201,
0.2611153721809387,
0.1636171042919159,
0.04193772375583649,
0.005067098885774612,
-0.01336287334561348,
0.2525419294834137,
0.39412540197372437,
0.3025115430355072,
-0.1754235327243805,
0.1524588018655777,
0.07196961343288422,
-0.21727509796619415,
0.05435609072446823,
-0.20551955699920654,
0.2804816961288452,
-0.2303614318370819,
0.020961012691259384,
-0.119382843375206,
0.1293283849954605,
-0.3126567602157593,
0.17321504652500153,
-0.1787012815475464,
-0.6029584407806396,
0.3105774521827698,
0.3934970498085022,
0.2743174433708191,
0.23773939907550812,
-0.00012351051555015147,
-0.02324073016643524,
0.391042023897171,
-0.19182689487934113,
-0.2590368986129761,
-0.026731140911579132,
-0.37426406145095825,
-0.42015019059181213,
-0.14840193092823029,
-0.17796218395233154,
0.0797271877527237,
-0.2863837480545044,
0.10791458934545517,
0.37109822034835815,
0.2191399484872818,
0.38762548565864563,
0.12552201747894287,
0.43912962079048157,
0.5360846519470215,
-0.18453314900398254,
-0.0708417221903801,
0.10654312372207642,
-0.16276821494102478,
0.27504757046699524,
0.17808550596237183,
-0.08070611953735352,
0.20445869863033295,
0.173539936542511,
-0.02094314992427826,
0.06422129273414612,
0.3660503029823303,
0.14449205994606018,
0.31092584133148193,
-0.4145335853099823,
0.19081029295921326,
0.23902641236782074,
0.7586014270782471,
-0.3389021158218384,
-0.43803590536117554,
-0.08681181818246841,
0.1690298467874527,
-0.2703782320022583,
0.14889664947986603,
-0.036151207983493805,
-0.1700429916381836,
0.29794350266456604,
-0.16484476625919342,
-0.4038982391357422,
-0.28583571314811707,
0.3131335377693176,
0.07620587944984436,
0.4441387951374054,
0.012992899864912033,
0.13729843497276306,
0.4096084535121918,
-0.10149839520454407,
-0.04746018722653389,
0.17213976383209229,
-0.2839382588863373,
0.05069059506058693,
0.1691611409187317,
-0.28524041175842285,
-0.15912525355815887,
0.07876946032047272,
0.30092713236808777,
0.1759154349565506,
-0.32081565260887146,
-0.12623095512390137,
-0.19528746604919434,
-0.09716720879077911,
0.2797224223613739,
0.08892719447612762,
0.028729932382702827,
-0.051912516355514526,
0.40556779503822327,
0.6368987560272217,
0.2258513867855072,
-0.07371177524328232,
0.15132030844688416,
-0.30142971873283386,
-0.2974281311035156,
-0.08742529898881912,
0.2769133448600769,
-0.18782182037830353,
-0.0803297758102417,
-0.2514243423938751,
0.14493271708488464,
-0.16072247922420502,
-0.08611377328634262,
0.3290608525276184,
-0.1138230413198471,
0.1629011034965515,
0.02083680033683777,
0.17003493010997772,
-0.14080552756786346,
-0.26075273752212524,
-0.023827355355024338,
0.036417555063962936,
0.0059565529227256775,
0.15469515323638916,
0.10649625957012177,
0.09815867245197296,
0.1805330514907837,
-0.09652099758386612,
-0.09712638705968857,
-0.18322984874248505,
-0.3297603726387024,
0.1840200126171112,
0.05294148251414299,
0.03538414090871811,
-0.15304750204086304,
0.11695218831300735,
0.027281668037176132,
-0.1550365686416626,
-0.20401786267757416,
0.22597888112068176,
-0.13150492310523987,
-0.3452869653701782,
-0.1903005838394165,
0.0012860866263508797,
-0.2778306007385254,
-0.445415198802948,
-0.031339287757873535,
0.052188415080308914,
-0.24589946866035461,
-0.21384286880493164,
0.015332084149122238,
0.07654723525047302,
-0.32499489188194275,
-0.11814658343791962,
0.2416536659002304,
0.7265809774398804,
-0.513905942440033,
-0.27892690896987915,
-0.07644473016262054,
-0.3277509808540344,
0.22452236711978912,
0.25159862637519836,
-0.16154301166534424,
0.24883754551410675,
-0.3000686764717102,
0.0010979920625686646,
0.3311365246772766,
-0.38044267892837524,
-0.6101982593536377,
0.1879911720752716,
-0.05406346917152405,
-0.05055827274918556,
0.11244052648544312,
0.12940657138824463,
0.1397247016429901,
-0.32849836349487305,
-0.5146920084953308,
-0.015763241797685623,
-0.023205691948533058,
0.030654460191726685,
-0.17653098702430725,
-0.610656201839447,
0.20204272866249084,
-0.004054166376590729,
0.064826101064682,
0.2028805911540985,
0.21946078538894653,
0.25281235575675964,
0.4670444428920746,
-0.06755124777555466,
0.097759909927845,
0.21564596891403198,
0.4710688889026642,
0.2730846405029297,
0.06700879335403442,
0.06013260781764984,
-0.17628927528858185,
0.1627107709646225,
0.14908823370933533,
0.22796595096588135,
-0.21236000955104828,
-0.06180133670568466,
-0.5251750946044922,
-0.12855398654937744,
-0.3235303461551666,
-0.2717589735984802,
-0.028741419315338135,
0.09019284695386887,
0.2446548193693161,
-0.11216165125370026,
-0.25867024064064026,
0.24789603054523468,
-0.2294483482837677,
0.10921831429004669,
-0.12076453864574432,
0.43801504373550415,
-0.2130046784877777,
-0.011913135647773743,
-0.02828216552734375,
0.19454246759414673,
0.23810622096061707,
-0.32130977511405945,
-0.0859922468662262,
0.482378214597702,
-0.30508971214294434,
0.27628636360168457,
0.3618415296077728,
0.20527571439743042,
0.2600654363632202,
-0.4229331910610199,
0.22897224128246307,
0.12326394021511078,
-0.07466574758291245,
0.15778572857379913,
-0.1887502670288086,
-0.09270814061164856,
-0.008854980580508709,
0.26205208897590637,
-0.04181301221251488,
-0.02757999300956726,
0.3348994553089142,
-0.19639916718006134,
-0.08839962631464005,
-0.2597969174385071,
-0.20728394389152527,
-0.24967323243618011,
-0.2829406261444092,
-0.26051419973373413,
0.017116829752922058,
0.21265514194965363,
0.4123401939868927,
-0.13853062689304352,
0.02950306609272957,
0.35908305644989014,
0.06739853322505951,
-0.006564438343048096,
-0.2185407429933548,
0.4872530698776245,
0.3576415777206421,
0.020248468965291977,
-0.1737888604402542,
0.1996554583311081,
0.16900554299354553,
-0.07507914304733276,
0.24545957148075104,
0.10359908640384674,
-0.17095251381397247,
0.05860159546136856,
-0.07979512214660645,
-0.047522276639938354,
-0.05193473771214485,
0.11764664947986603,
0.1086500808596611,
0.33975163102149963,
-0.24607345461845398,
-0.06746110320091248,
-0.33428189158439636,
-0.6024013161659241,
-0.3408094048500061,
0.16914796829223633,
-0.3219607174396515,
-0.1643620878458023,
-0.030135322362184525,
0.26581230759620667,
-0.037743180990219116,
0.2160300761461258,
0.10990467667579651,
0.259346604347229,
-0.08485814929008484,
0.14228591322898865,
-0.23889872431755066,
0.0188317708671093,
-0.15929089486598969,
-0.028754714876413345,
0.35455918312072754,
0.06279143691062927,
0.289908766746521,
-0.586101233959198,
-0.24623876810073853,
-1.0009711980819702,
-0.18789944052696228,
0.11994896829128265,
0.003207211382687092,
0.15407218039035797,
0.41573596000671387,
0.39132755994796753,
0.28903406858444214,
0.06032329425215721,
0.2781769037246704,
-0.23996856808662415,
0.1530868411064148,
-0.28307485580444336,
-0.15202417969703674,
0.09306396543979645,
-0.05928923562169075,
-0.25696802139282227,
-0.45896434783935547,
-0.22088265419006348,
0.29607659578323364,
0.13601292669773102,
0.11073475331068039,
0.0468272864818573,
0.24368703365325928,
-0.04830406233668327,
0.0023810602724552155,
-0.20825639367103577,
0.009636614471673965,
0.03443334996700287,
0.2957967221736908,
-0.13250631093978882,
-0.4118841290473938,
0.2555497884750366,
0.2001848816871643,
0.028118450194597244,
-0.20479045808315277,
-0.5103382468223572,
-0.3684636056423187,
-0.0034453775733709335,
0.4062129557132721,
0.054858382791280746,
0.4638820290565491,
0.18918852508068085,
0.06250880658626556,
-0.012224286794662476,
-0.01084291934967041,
-0.367807000875473,
-0.08956850320100784,
0.19723062217235565,
0.5582020282745361,
0.4164219796657562,
0.4434437155723572,
-0.14518561959266663,
0.5577758550643921,
0.08764243125915527,
0.009520310908555984,
0.29899901151657104,
-0.36364293098449707,
0.4048634469509125,
-0.04204399511218071,
-0.3322060704231262,
0.18261225521564484,
-0.19452710449695587,
0.3318013548851013,
0.3361842930316925,
0.14699450135231018,
0.10407505929470062,
-0.0948176234960556,
-0.17029161751270294,
-0.13299401104450226,
-0.4028577208518982,
-0.1485631763935089,
0.5888516902923584,
0.14368948340415955,
0.23237623274326324,
0.022849105298519135,
-0.37724000215530396,
-0.1427166908979416,
0.4252015948295593,
0.37840256094932556,
0.03069739043712616,
0.09628351032733917,
0.16036230325698853,
0.009738773107528687,
-0.5299110412597656,
0.2029697299003601,
0.056525975465774536,
0.17126348614692688,
0.022037625312805176,
0.08570738881826401,
0.15114951133728027,
-0.06974960118532181,
0.703893780708313,
-0.1408514827489853,
0.08775119483470917,
-0.006686411798000336,
0.16290968656539917,
0.1104423999786377,
-0.05152967572212219,
-0.03849707171320915,
0.18245550990104675,
0.3331945538520813,
0.14456740021705627,
-0.2590571939945221,
-0.32965245842933655,
0.5500895380973816,
0.4340199828147888,
-0.1855708658695221,
-0.21353057026863098,
-0.00677885115146637,
-0.4758860766887665,
-0.6366708278656006,
-0.11366445571184158,
-0.05401850491762161,
-0.07404099404811859,
-0.15436694025993347,
0.11386188119649887,
0.25641265511512756,
-0.17071110010147095,
-0.1556665450334549,
-0.08927786350250244,
0.17696571350097656,
0.41896089911460876,
-0.056101344525814056,
0.1763489842414856,
-0.05180569365620613,
0.11377599835395813,
0.3967268466949463,
-0.07797808945178986,
-0.38726943731307983,
-0.12442654371261597,
-0.222502201795578,
-0.10311083495616913,
0.3866276144981384,
0.09103672206401825,
0.10346934199333191,
0.2654750645160675,
0.17718546092510223,
-0.07700701057910919,
0.0565066859126091,
0.4585668742656708,
-0.0764741525053978,
-0.39696764945983887,
-0.4541285037994385,
0.33063212037086487,
-0.12287209928035736,
0.016230285167694092,
0.2529272437095642,
0.42267724871635437,
-0.10934644937515259,
-0.21920156478881836,
-0.1736413538455963,
0.9077024459838867,
0.08279316872358322,
0.03477373719215393,
0.2712680995464325,
-0.10254877060651779,
0.673748254776001,
-0.13173124194145203,
0.13284257054328918,
-0.2610989809036255,
-0.049230705946683884,
-0.08136840164661407,
0.10122205317020416,
-0.15584444999694824,
0.06356719136238098,
-0.12616249918937683,
0.45672178268432617,
0.059892624616622925,
-0.014063579961657524,
0.1917673796415329,
0.4202847480773926,
-0.11783090978860855,
-0.17182596027851105,
-0.30968475341796875,
0.07607819139957428,
0.07585504651069641,
0.42379721999168396,
-0.12206763029098511,
-0.14694859087467194,
0.1439669132232666,
-0.21936552226543427,
-0.6025189161300659,
0.06877601146697998,
-0.20065045356750488,
0.08746632933616638,
0.13611160218715668,
0.07313576340675354,
0.24864895641803741,
0.1761365532875061,
0.4182499349117279,
0.09585102647542953,
-0.3794705867767334,
0.22383739054203033,
-0.15559576451778412,
-0.1785176694393158,
-0.07026540488004684,
0.32493436336517334,
-0.06142694503068924,
-0.25740867853164673,
-0.43572813272476196,
-0.20550790429115295,
-0.011179793626070023,
-0.29999953508377075,
0.10222603380680084,
-0.25200366973876953,
0.5220279097557068,
-0.11844691634178162,
-0.0968034416437149,
-0.07299055904150009,
-0.16120848059654236,
-0.34481707215309143,
0.018516480922698975,
-0.044270001351833344,
-0.11205406486988068,
0.03909285366535187,
-0.17824766039848328,
-0.05704174190759659,
-0.08962470293045044,
0.233962282538414,
-0.37154123187065125,
-0.18170326948165894,
0.5752363204956055,
0.344654381275177,
-0.01558002084493637,
-0.23055937886238098,
-0.2190040647983551,
-0.22226551175117493,
-0.8353123664855957,
0.18356715142726898,
0.29157689213752747,
0.16719476878643036,
-0.06725136935710907,
0.5296764373779297,
0.15224610269069672,
0.0785767138004303,
-0.1942712962627411,
-0.35216230154037476,
-0.26186490058898926,
-0.0023978836834430695,
0.23421716690063477,
0.19489626586437225,
-0.006325148046016693,
-0.0003677085041999817,
0.1384163200855255,
-0.4774491786956787,
-0.1938972771167755,
0.009214241057634354,
0.06375112384557724,
-0.09112530946731567,
0.6803833246231079,
0.1719939261674881,
0.26997116208076477,
0.02580413594841957,
0.006825413554906845,
0.036997031420469284,
-0.010118208825588226,
-0.011070918291807175,
-0.28750383853912354,
0.18071767687797546,
-0.1370132565498352,
-0.41305604577064514,
0.026774905622005463,
-0.1023891493678093,
-0.0760750025510788,
-0.03437349572777748,
0.06970065832138062,
0.18790000677108765,
-0.06361594051122665,
0.07086839526891708,
0.4111153781414032,
-0.1488434076309204,
-0.13037322461605072,
0.14191710948944092,
0.3417854607105255,
0.5433336496353149,
0.14605511724948883,
0.39775100350379944,
-0.09449130296707153,
0.08448480069637299,
0.17410016059875488,
0.1218334287405014,
0.21440696716308594,
0.046066202223300934,
0.33534398674964905,
-0.13723964989185333,
0.06465192884206772,
0.31660497188568115,
0.20939289033412933,
0.47509244084358215,
-0.1000739261507988,
-0.0756380632519722,
0.30471915006637573,
0.03431418165564537,
-0.3281182050704956,
-0.1599634736776352,
0.2656956613063812,
-0.04413177818059921,
-0.07750555127859116,
0.21222907304763794,
0.17083512246608734,
-0.15684424340724945,
0.3383660316467285,
0.11900630593299866,
0.4063677489757538,
-0.20767834782600403,
0.10749989748001099,
0.3448404371738434,
-0.018434032797813416,
0.02052164077758789,
-0.08403096348047256,
0.0543317049741745,
0.1479148417711258,
-0.006914989091455936,
-0.3325805366039276,
0.0007728766649961472,
-0.04410787299275398,
0.3287571966648102,
-0.06991303712129593,
-0.33609190583229065,
0.18083101511001587,
-0.19229988753795624,
0.12399269640445709,
-0.16254526376724243,
0.03267940878868103,
0.39668822288513184,
0.07305324077606201,
-0.12372396886348724,
-0.3008500337600708,
0.49384114146232605,
0.29632097482681274,
-0.17256498336791992,
-0.12681986391544342,
-0.19060340523719788,
-0.13638447225093842,
0.06686230003833771,
-0.1083369106054306,
-0.32337817549705505,
0.09206998348236084,
0.004757296293973923,
-0.07733513414859772,
-0.4025580585002899,
-0.13643337786197662,
-0.22812774777412415,
0.3287060260772705,
-0.13472485542297363,
0.11916129291057587,
0.2238927036523819,
-0.0048154257237911224,
0.2363281399011612,
0.28581565618515015,
0.4661470353603363,
0.21528469026088715,
0.4449121952056885,
0.20521986484527588,
-0.0639490857720375,
-0.032474812120199203,
0.11891220510005951,
0.043831393122673035,
-0.05158846452832222,
0.14175017178058624,
0.05615605041384697,
0.029295116662979126,
-0.02159876562654972,
-0.34408971667289734,
-0.05173545330762863,
-0.06654362380504608,
-0.13672944903373718,
0.3235187530517578,
-0.07577523589134216,
-0.13499440252780914,
-0.49743136763572693,
0.1811790019273758,
-0.20728760957717896,
-0.050732411444187164,
0.20207378268241882,
-0.0605684258043766,
0.035854924470186234,
0.05794572830200195,
0.007143814116716385,
-0.0892656147480011,
0.3542530834674835,
0.3961353600025177,
0.05713941529393196,
-0.23316939175128937,
-0.13735060393810272,
-0.6080150604248047,
0.0722813755273819,
0.029527414590120316,
-0.2606557607650757,
-0.16070811450481415,
-0.05046869069337845,
-0.24220693111419678,
-0.006700732745230198,
0.3835420608520508,
-0.11394574493169785,
0.2681029438972473,
0.12058545649051666,
-0.0389937162399292,
-0.19143256545066833,
-0.12587687373161316,
0.4343545436859131,
0.1069079041481018,
-0.13476164638996124,
0.05513831600546837,
-0.11802001297473907,
-0.13624754548072815,
0.16710756719112396,
-0.034527309238910675,
-0.1286477893590927,
-0.30729299783706665,
0.14296025037765503,
0.07705798745155334,
0.3717907667160034,
-0.15293768048286438,
-0.3054276704788208,
-0.48343321681022644,
-0.222625732421875,
-0.4171459674835205,
0.2702682614326477,
-0.08217212557792664,
0.07179118692874908,
-0.03312191367149353,
0.17940905690193176,
-0.5594059824943542,
0.05337008088827133,
0.047989025712013245,
0.22274862229824066,
-0.2027694433927536,
0.14648300409317017,
-0.04881902039051056,
-0.03361376374959946,
0.41084328293800354,
-0.08755071461200714,
-0.11982694268226624,
-0.04907779395580292,
-0.24095483124256134,
-0.009733282029628754,
0.6197206974029541,
-0.21841490268707275,
-0.10496441274881363,
-0.07501757144927979,
0.21928927302360535,
-0.03596882522106171,
-0.30541691184043884,
-0.4327183961868286,
0.17024795711040497,
0.11237925291061401,
0.2900766432285309,
-0.07367399334907532,
0.21342851221561432,
-0.31350699067115784,
0.09390584379434586,
0.06361964344978333,
0.20414039492607117,
0.17470939457416534,
-0.3216531276702881,
0.033929817378520966,
-0.060759536921978
] |
https://github.com/huggingface/datasets/issues/2076 | Hi @XuhuiZhou,
As @lhoestq has well explained, you need to fork HF's repository, create a feature branch in your fork, push your changes to it and then open a Pull Request to HF's upstream repository. This is so because at HuggingFace Datasets we follow a development model called "Fork and Pull Model". You can find more information here:
- [Understanding the GitHub flow](https://guides.github.com/introduction/flow/)
- [Forking Projects](https://guides.github.com/activities/forking/)
Alternatively, if you find all these steps too complicated, you can use the GitHub official command line tool: [GitHub CLI](https://cli.github.com/). Once installed, in order to create a Pull Request, you only need to use this command:
```shell
gh pr create --web
```
This utility will automatically create the fork, push your changes and open a Pull Request, under the hood. | Issue: Dataset download error | The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link? | 126 | Issue: Dataset download error
The download link in `iwslt2017.py` file does not seem to work anymore.
For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz`
Would be nice if we could modify it script and use the new downloadable link?
Hi @XuhuiZhou,
As @lhoestq has well explained, you need to fork HF's repository, create a feature branch in your fork, push your changes to it and then open a Pull Request to HF's upstream repository. This is so because at HuggingFace Datasets we follow a development model called "Fork and Pull Model". You can find more information here:
- [Understanding the GitHub flow](https://guides.github.com/introduction/flow/)
- [Forking Projects](https://guides.github.com/activities/forking/)
Alternatively, if you find all these steps too complicated, you can use the GitHub official command line tool: [GitHub CLI](https://cli.github.com/). Once installed, in order to create a Pull Request, you only need to use this command:
```shell
gh pr create --web
```
This utility will automatically create the fork, push your changes and open a Pull Request, under the hood. | [
-0.2110828310251236,
-0.23542684316635132,
0.05395222827792168,
-0.12035326659679413,
-0.01603779010474682,
0.0573173463344574,
0.07369102537631989,
0.3318697214126587,
0.27531036734580994,
0.03606121987104416,
-0.14635877311229706,
-0.14004136621952057,
0.32786697149276733,
0.3584643006324768,
0.20506975054740906,
-0.16436471045017242,
0.10162859410047531,
0.019257809966802597,
-0.34863951802253723,
-0.02590789645910263,
-0.20463192462921143,
0.16035392880439758,
-0.03233198821544647,
0.09144169837236404,
-0.02804705500602722,
0.01908939518034458,
-0.2939881682395935,
0.3911275267601013,
-0.03637124225497246,
-0.47281593084335327,
0.40349438786506653,
0.3701823353767395,
0.20427978038787842,
0.3489316701889038,
-0.00011846524284919724,
0.01425284892320633,
0.23679539561271667,
-0.04109220206737518,
-0.2115548551082611,
-0.10773120820522308,
-0.2645907998085022,
-0.43903154134750366,
-0.1316620409488678,
-0.1381310075521469,
0.03440488129854202,
-0.09121781587600708,
0.15894876420497894,
0.3369337320327759,
0.3802202045917511,
0.2255796492099762,
0.12584052979946136,
0.42302611470222473,
0.4710547924041748,
-0.21853843331336975,
0.08626782894134521,
0.06143892556428909,
-0.12821465730667114,
0.2936408817768097,
0.08984138816595078,
-0.05915829911828041,
0.036488126963377,
0.21529120206832886,
0.07816582173109055,
0.24974432587623596,
0.4219129979610443,
0.07370057702064514,
0.16081637144088745,
-0.39572790265083313,
0.1415681391954422,
0.2385164499282837,
0.6311092376708984,
-0.354759156703949,
-0.3796703517436981,
-0.07608132809400558,
0.033320046961307526,
-0.11449064314365387,
0.1499062329530716,
0.02648017928004265,
-0.16599835455417633,
0.3294631838798523,
0.07866095006465912,
-0.5474178194999695,
-0.23950046300888062,
0.23119467496871948,
0.18107329308986664,
0.2853419780731201,
0.001794278621673584,
0.0789148211479187,
0.37991461157798767,
-0.1323515623807907,
-0.1323440968990326,
0.15751393139362335,
-0.2554051876068115,
0.10316777229309082,
0.11078453063964844,
-0.2356528788805008,
-0.11034638434648514,
-0.055062927305698395,
0.40481725335121155,
0.06133115291595459,
-0.35431990027427673,
-0.0444747619330883,
-0.2573796808719635,
0.011175652034580708,
0.1744706779718399,
-0.01499684527516365,
-0.17847393453121185,
-0.05999649688601494,
0.4562723934650421,
0.47767961025238037,
0.1987171769142151,
-0.14513911306858063,
0.2203814685344696,
-0.22681725025177002,
-0.3670244514942169,
-0.20109231770038605,
0.4068784713745117,
-0.21968674659729004,
-0.07142137736082077,
-0.30438661575317383,
0.13041092455387115,
-0.0501970574259758,
-0.19430571794509888,
0.4044192135334015,
-0.1218395084142685,
0.036983855068683624,
0.06399118900299072,
0.28103578090667725,
-0.15741904079914093,
-0.21968786418437958,
-0.11348606646060944,
-0.0748005211353302,
0.19717514514923096,
0.1814003586769104,
0.0033579543232917786,
-0.010848583653569221,
0.06228320300579071,
0.13432109355926514,
-0.1932731568813324,
-0.1267477124929428,
-0.21926182508468628,
0.2691919803619385,
-0.030506625771522522,
0.20955148339271545,
-0.024965520948171616,
0.21047580242156982,
0.12295900285243988,
-0.11837169528007507,
-0.1643960177898407,
-0.025780905038118362,
-0.225396990776062,
-0.2972944378852844,
-0.3480556905269623,
0.04384448006749153,
-0.07913996279239655,
-0.30154743790626526,
-0.05415154621005058,
0.0778256207704544,
-0.3137888014316559,
-0.1640634834766388,
0.04726185277104378,
0.1616935431957245,
-0.29039087891578674,
-0.11994405090808868,
0.314506471157074,
0.6965312361717224,
-0.2458406686782837,
-0.3773680627346039,
-0.15988612174987793,
-0.135954812169075,
0.07212378829717636,
0.3017198145389557,
-0.14996986091136932,
0.11953307688236237,
-0.27131953835487366,
0.1623038649559021,
0.26665493845939636,
-0.4356096684932709,
-0.5098185539245605,
0.22223305702209473,
-0.09000644087791443,
-0.05613408237695694,
0.03602757304906845,
0.09098923206329346,
0.13521912693977356,
-0.2080691009759903,
-0.5479165315628052,
0.028452053666114807,
0.05753590911626816,
0.06038591265678406,
-0.21718552708625793,
-0.5456907749176025,
0.047457896173000336,
0.04272506386041641,
0.11204923689365387,
0.34815409779548645,
0.41646119952201843,
0.11774240434169769,
0.3645390272140503,
-0.18297544121742249,
0.13381701707839966,
0.28972941637039185,
0.5038341283798218,
0.4074413776397705,
0.0071040429174900055,
0.03019079566001892,
-0.29823362827301025,
0.14319244027137756,
0.04231575131416321,
0.2540910542011261,
-0.12660729885101318,
-0.12442806363105774,
-0.49428224563598633,
-0.09517884999513626,
-0.2824360728263855,
-0.1889825016260147,
0.004709139466285706,
0.06790442019701004,
0.06749202311038971,
-0.03557218611240387,
-0.13866132497787476,
0.39570721983909607,
-0.21467775106430054,
0.16613861918449402,
-0.1394144892692566,
0.5787003636360168,
-0.16046158969402313,
0.05813215300440788,
0.10758640617132187,
0.13328972458839417,
0.24447950720787048,
-0.22594088315963745,
-0.15143129229545593,
0.4178691804409027,
-0.4214972257614136,
0.24109594523906708,
0.530156135559082,
0.20470993220806122,
0.24717389047145844,
-0.5035049915313721,
0.32562488317489624,
0.15828663110733032,
-0.05246088653802872,
0.11651927977800369,
-0.007210534065961838,
-0.03889150172472,
0.061717044562101364,
0.22402431070804596,
0.05153057724237442,
0.06389418244361877,
0.42885255813598633,
-0.22044755518436432,
-0.02487243339419365,
-0.11231496930122375,
-0.2210937738418579,
-0.4116816520690918,
-0.05366123467683792,
-0.3122766613960266,
-0.11003240942955017,
0.2835020422935486,
0.5371801853179932,
-0.13353051245212555,
0.12549176812171936,
0.4350461959838867,
-0.041250694543123245,
0.04135962575674057,
0.019250834360718727,
0.2674679160118103,
0.05427232384681702,
0.07374969869852066,
-0.1289023905992508,
0.2507378160953522,
0.04355250298976898,
0.02667282521724701,
0.1505315601825714,
0.1345541924238205,
-0.06771744787693024,
-0.0425434485077858,
-0.0737457424402237,
-0.11196981370449066,
-0.03482028469443321,
0.033727675676345825,
-0.09661124646663666,
0.2112504243850708,
-0.3681170642375946,
-0.03462962806224823,
-0.36100760102272034,
-0.6220448017120361,
-0.36554673314094543,
0.1438073217868805,
-0.4196515381336212,
-0.25895947217941284,
-0.027066076174378395,
0.31427091360092163,
-0.10005128383636475,
0.15562191605567932,
0.12368229031562805,
0.17500914633274078,
-0.12230444699525833,
0.20792829990386963,
-0.2587127387523651,
-0.05621502175927162,
-0.16043899953365326,
-0.043736472725868225,
0.26742902398109436,
0.20799073576927185,
0.320557177066803,
-0.522485077381134,
-0.13171665370464325,
-0.901618242263794,
-0.11449547857046127,
0.21933335065841675,
0.04595969244837761,
0.11469566076993942,
0.32268252968788147,
0.4915750324726105,
0.16849210858345032,
0.036383453756570816,
0.2897357642650604,
-0.12805414199829102,
0.08441384881734848,
-0.2710858881473541,
-0.18077585101127625,
0.11455899477005005,
0.017579257488250732,
-0.07768534123897552,
-0.5018085837364197,
-0.3658219575881958,
0.33813753724098206,
0.0024158135056495667,
0.05087168142199516,
0.20508556067943573,
0.1885678619146347,
0.0024427808821201324,
0.1367034614086151,
-0.12559598684310913,
0.009396720677614212,
0.05628908425569534,
0.31248801946640015,
-0.21251767873764038,
-0.34245991706848145,
0.3461083471775055,
0.20880910754203796,
-0.06225462257862091,
-0.24583344161510468,
-0.5297689437866211,
-0.14046034216880798,
-0.03561779484152794,
0.5182732343673706,
0.01567089557647705,
0.49503642320632935,
0.1784033626317978,
-0.021653618663549423,
-0.00802561268210411,
-0.03688463568687439,
-0.22312380373477936,
0.053745198994874954,
0.217912495136261,
0.3834920823574066,
0.41088834404945374,
0.49330708384513855,
-0.10120996087789536,
0.6489819288253784,
0.13515689969062805,
0.09926687180995941,
0.3816055357456207,
-0.29879581928253174,
0.3904782235622406,
-0.14697569608688354,
-0.2986432909965515,
-0.0016429871320724487,
-0.15195441246032715,
0.22343778610229492,
0.3047829270362854,
0.13894742727279663,
0.15923848748207092,
-0.09365373849868774,
-0.38419124484062195,
-0.1008109450340271,
-0.4200044870376587,
-0.15248660743236542,
0.3653806447982788,
0.13393668830394745,
0.22606094181537628,
-0.09653429687023163,
-0.3875354528427124,
-0.14477922022342682,
0.4546307623386383,
0.4856206476688385,
0.07883591949939728,
0.19010871648788452,
0.22115379571914673,
0.036466993391513824,
-0.4469141364097595,
0.2903984785079956,
0.132007896900177,
-0.022710710763931274,
-0.045388590544462204,
0.042898029088974,
0.10851708799600601,
-0.14097531139850616,
0.5532929301261902,
0.011217856779694557,
0.21674616634845734,
-0.098549984395504,
0.022987298667430878,
0.0994182676076889,
0.010796137154102325,
0.04371102899312973,
0.18378543853759766,
0.32691341638565063,
0.058639515191316605,
-0.4327538013458252,
-0.4608090817928314,
0.4464084506034851,
0.2359810471534729,
-0.19685961306095123,
-0.0085383839905262,
-0.041210372000932693,
-0.5688756108283997,
-0.7045997977256775,
-0.16785623133182526,
-0.007856309413909912,
-0.18797385692596436,
-0.12093003839254379,
0.07760670781135559,
0.19031940400600433,
-0.15689313411712646,
-0.19720730185508728,
0.007823154330253601,
0.18017776310443878,
0.2754974663257599,
-0.0363740473985672,
0.15666580200195312,
-0.024771839380264282,
0.10787418484687805,
0.4978242814540863,
0.005208585411310196,
-0.20941084623336792,
-0.13687671720981598,
-0.05394647642970085,
-0.1945207417011261,
0.32702329754829407,
0.21491891145706177,
0.2794044315814972,
0.5513017177581787,
0.25945624709129333,
-0.2275276929140091,
0.00534859299659729,
0.361330509185791,
-0.0919295996427536,
-0.34106844663619995,
-0.37209609150886536,
0.5128762125968933,
-0.29191723465919495,
0.025315433740615845,
0.30095770955085754,
0.6141800284385681,
-0.04244139418005943,
-0.10704468190670013,
-0.211615189909935,
0.8171713352203369,
0.10980375856161118,
0.02331814542412758,
0.32054316997528076,
-0.3169648051261902,
0.4993392825126648,
-0.18347427248954773,
-0.07007162272930145,
-0.22372092306613922,
-0.10225680470466614,
-0.12986919283866882,
0.1635371595621109,
-0.14756670594215393,
-0.02116558328270912,
-0.024891726672649384,
0.48757532238960266,
0.21942639350891113,
0.1664324849843979,
0.1990480124950409,
0.4001981019973755,
-0.1482168287038803,
-0.18413656949996948,
-0.3412177264690399,
0.13239184021949768,
-0.10164886713027954,
0.5201215744018555,
-0.042682766914367676,
-0.36069053411483765,
0.03999681770801544,
-0.1636304259300232,
-0.4959299564361572,
0.09777452051639557,
-0.21162152290344238,
0.1316365897655487,
0.06448820233345032,
0.1285901665687561,
0.18964171409606934,
-0.17682026326656342,
0.4203735589981079,
0.08910204470157623,
-0.37051522731781006,
0.2290136069059372,
-0.08219276368618011,
-0.08821676671504974,
-0.09380762279033661,
0.3628080487251282,
0.12929865717887878,
-0.2935976982116699,
-0.415325790643692,
-0.11989130079746246,
-0.02880542352795601,
-0.39683425426483154,
0.1516188085079193,
-0.3641490042209625,
0.06774625182151794,
-0.04857989028096199,
-0.09872879832983017,
0.07227081060409546,
-0.07356632500886917,
-0.31614455580711365,
0.03890356793999672,
-0.15566997230052948,
-0.09972087293863297,
-0.14705230295658112,
-0.09519694745540619,
-0.004418119788169861,
-0.11973434686660767,
0.21529370546340942,
-0.4728778600692749,
0.023132644593715668,
0.47910088300704956,
0.43171295523643494,
-0.08307579159736633,
-0.13882873952388763,
-0.29563140869140625,
0.05712670832872391,
-0.8023343682289124,
0.20802997052669525,
-0.03472442924976349,
0.12687230110168457,
-0.2369493544101715,
0.5104185342788696,
0.18615128099918365,
0.03033958002924919,
-0.14084039628505707,
-0.33297809958457947,
-0.18921242654323578,
0.1432465761899948,
0.1213507205247879,
0.13899151980876923,
-0.015481449663639069,
0.13250377774238586,
0.13118207454681396,
-0.3261323869228363,
-0.24532726407051086,
-0.05921570956707001,
0.008890315890312195,
-0.14259368181228638,
0.5837340354919434,
0.06773766875267029,
0.3327387273311615,
0.03860016539692879,
-0.0028794072568416595,
-0.07867592573165894,
-0.15129241347312927,
-0.015379905700683594,
-0.30947381258010864,
0.12701863050460815,
-0.19380035996437073,
-0.3463669419288635,
-0.06613073498010635,
-0.2369442582130432,
-0.09941616654396057,
0.02458963915705681,
0.11646789312362671,
0.06737582385540009,
-0.09986768662929535,
0.10071127116680145,
0.32446780800819397,
-0.23288750648498535,
-0.18344146013259888,
0.11278210580348969,
0.49622881412506104,
0.5475105047225952,
-0.11236844956874847,
0.3527328372001648,
-0.21551427245140076,
0.036101892590522766,
0.007223308086395264,
0.15174813568592072,
0.2413235753774643,
-0.12308059632778168,
0.4092424511909485,
-0.09621484577655792,
0.033708781003952026,
0.1993790566921234,
0.272416353225708,
0.21721868216991425,
-0.030128780752420425,
0.00025175511837005615,
0.19705802202224731,
0.033430177718400955,
-0.24071787297725677,
0.004387747496366501,
0.2773885428905487,
-0.31658798456192017,
0.0001486465334892273,
0.24450866878032684,
0.24342021346092224,
0.032686829566955566,
0.20975105464458466,
0.1546023041009903,
0.3843667507171631,
-0.13548874855041504,
-0.005950450897216797,
0.2811087667942047,
-0.056639038026332855,
0.07233750820159912,
-0.1455574631690979,
0.14887717366218567,
0.2666098177433014,
0.08120908588171005,
-0.2176889181137085,
-0.019149143248796463,
-0.00005596969276666641,
0.26462090015411377,
0.06885823607444763,
-0.4345846176147461,
-0.012429206632077694,
-0.18144293129444122,
0.19808915257453918,
-0.12556655704975128,
0.02349453791975975,
0.2571660280227661,
0.07224433124065399,
-0.39083391427993774,
-0.18623283505439758,
0.6675002574920654,
0.27296966314315796,
-0.00677398219704628,
-0.161790668964386,
-0.17661629617214203,
-0.2412552386522293,
0.04725448787212372,
-0.10854656994342804,
-0.3009737730026245,
0.1466248780488968,
0.03428522124886513,
0.1258673369884491,
-0.21880707144737244,
-0.05671731010079384,
-0.15338340401649475,
0.3554353713989258,
-0.10988561809062958,
0.14943499863147736,
0.30638450384140015,
-0.11608633399009705,
0.0994158536195755,
0.24215877056121826,
0.4903850853443146,
0.08804421126842499,
0.11182192713022232,
0.17830175161361694,
0.130344957113266,
-0.16388340294361115,
0.14863993227481842,
-0.13576650619506836,
-0.1518823355436325,
0.11627297103404999,
0.10039195418357849,
0.05475920811295509,
-0.09635176509618759,
-0.27571412920951843,
-0.2807413935661316,
0.03274163231253624,
-0.1258043348789215,
0.4316258430480957,
-0.18653976917266846,
-0.14931491017341614,
-0.28941649198532104,
0.02951602078974247,
-0.191905677318573,
0.012049321085214615,
0.19103974103927612,
-0.2029004991054535,
0.01640542596578598,
0.03760089725255966,
0.030353393405675888,
-0.18488065898418427,
0.38305264711380005,
0.36889809370040894,
0.1084757074713707,
-0.04044649377465248,
-0.14934717118740082,
-0.5221025347709656,
-0.09119854867458344,
-0.064628005027771,
-0.3110874891281128,
0.08188913762569427,
0.021668069064617157,
-0.13555145263671875,
-0.05172552913427353,
0.43420812487602234,
-0.30803999304771423,
0.36085328459739685,
0.13532322645187378,
0.12330975383520126,
-0.21881301701068878,
-0.3192848563194275,
0.3344917595386505,
0.10198396444320679,
-0.18569104373455048,
0.10057561099529266,
0.028441909700632095,
-0.10476279258728027,
0.2286314070224762,
0.031407564878463745,
0.06853270530700684,
-0.7217938899993896,
0.05771060287952423,
0.010811218991875648,
0.20157387852668762,
-0.2599644660949707,
-0.4110693633556366,
-0.28141459822654724,
-0.34057316184043884,
-0.3281991183757782,
0.10834134370088577,
-0.2560908794403076,
0.3493719696998596,
0.09750813245773315,
0.014631306752562523,
-0.5679987668991089,
0.039332758635282516,
0.10836498439311981,
0.12243562936782837,
-0.16011495888233185,
0.23942741751670837,
-0.21918264031410217,
-0.02463236264884472,
0.5274122357368469,
0.014111865311861038,
-0.08249953389167786,
0.05620085448026657,
-0.3022768497467041,
-0.13463053107261658,
0.5225576162338257,
-0.1165839433670044,
-0.08328576385974884,
-0.04012366384267807,
0.27800828218460083,
0.16978120803833008,
-0.36634713411331177,
-0.46278929710388184,
0.1363801211118698,
0.004142627120018005,
0.28462570905685425,
-0.05903153866529465,
0.22009921073913574,
-0.14469054341316223,
0.0008829757571220398,
0.10614857077598572,
0.18280678987503052,
0.1683298647403717,
-0.34485337138175964,
0.061668410897254944,
-0.01893998309969902
] |
https://github.com/huggingface/datasets/issues/2075 | Hi @LifaSun, thanks for reporting this issue.
Sometimes, GitHub has some connectivity problems. Could you confirm that the problem persists? | ConnectionError: Couldn't reach common_voice.py | When I run:
from datasets import load_dataset, load_metric
common_voice_train = load_dataset("common_voice", "zh-CN", split="train+validation")
common_voice_test = load_dataset("common_voice", "zh-CN", split="test")
Got:
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/common_voice/common_voice.py
Version:
1.4.1
Thanks! @lhoestq @LysandreJik @thomwolf | 20 | ConnectionError: Couldn't reach common_voice.py
When I run:
from datasets import load_dataset, load_metric
common_voice_train = load_dataset("common_voice", "zh-CN", split="train+validation")
common_voice_test = load_dataset("common_voice", "zh-CN", split="test")
Got:
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/common_voice/common_voice.py
Version:
1.4.1
Thanks! @lhoestq @LysandreJik @thomwolf
Hi @LifaSun, thanks for reporting this issue.
Sometimes, GitHub has some connectivity problems. Could you confirm that the problem persists? | [
-0.4876464009284973,
-0.0846991166472435,
-0.07917759567499161,
-0.004803512245416641,
0.39035600423812866,
0.012986861169338226,
0.27043020725250244,
0.30163270235061646,
-0.06318780779838562,
0.3089750409126282,
-0.21267545223236084,
-0.1347057968378067,
0.12261801958084106,
0.017010115087032318,
-0.009428149089217186,
-0.09317833185195923,
-0.00447893887758255,
0.0029828883707523346,
0.19253334403038025,
0.024769514799118042,
-0.03877847641706467,
0.08584323525428772,
-0.17600570619106293,
0.31234973669052124,
-0.1892663687467575,
-0.05078008025884628,
0.05891139805316925,
0.07704474776983261,
-0.21321991086006165,
-0.35607531666755676,
0.4676540493965149,
0.02777790278196335,
-0.041264113038778305,
0.8190295100212097,
-0.00011300459300400689,
0.145191952586174,
0.44140052795410156,
-0.06832519918680191,
-0.307611882686615,
-0.4945725202560425,
-0.0904800146818161,
-0.016524523496627808,
0.13038766384124756,
0.16184404492378235,
-0.16147780418395996,
0.05184222757816315,
0.06876309216022491,
-0.2308126986026764,
0.35920000076293945,
0.35605916380882263,
0.21533681452274323,
0.20065155625343323,
0.3548300266265869,
-0.18685908615589142,
-0.0521090142428875,
-0.1892622709274292,
-0.02189415693283081,
0.815543532371521,
0.0865340381860733,
-0.22358766198158264,
0.2252187877893448,
0.1362258493900299,
0.11471353471279144,
-0.04245568811893463,
-0.09717150777578354,
-0.04460667818784714,
0.11514680087566376,
-0.3021114468574524,
0.04659896716475487,
0.24857363104820251,
0.40802016854286194,
-0.41085320711135864,
-0.33932891488075256,
-0.009671621024608612,
0.06880034506320953,
-0.1919008046388626,
0.17943710088729858,
0.0755961462855339,
-0.3747929334640503,
0.08969005197286606,
-0.4395817816257477,
-0.3170168995857239,
-0.16873842477798462,
0.22199584543704987,
-0.03880274295806885,
0.07056137919425964,
-0.11154936999082565,
0.0763532817363739,
0.1780450940132141,
0.0002034483477473259,
-0.3434881865978241,
0.17137955129146576,
0.0020533644128590822,
0.405492901802063,
-0.5099363327026367,
-0.02702929824590683,
-0.24460259079933167,
-0.38340821862220764,
0.3409879207611084,
-0.001212848350405693,
-0.06601576507091522,
-0.04445850849151611,
-0.2184317260980606,
0.19570320844650269,
0.3238676190376282,
0.23192474246025085,
-0.014554150402545929,
0.227081298828125,
0.41106289625167847,
0.21892131865024567,
-0.09508664906024933,
-0.044209208339452744,
-0.35073649883270264,
-0.3648317754268646,
0.19443058967590332,
-0.013700848445296288,
0.3809742331504822,
-0.3023436367511749,
-0.2657468020915985,
0.09506772458553314,
-0.20451238751411438,
-0.027401380240917206,
-0.04868914186954498,
0.3798328936100006,
-0.13500382006168365,
0.038254618644714355,
-0.12368275225162506,
0.4221954941749573,
-0.1185595691204071,
0.08154058456420898,
-0.21664100885391235,
-0.0903097540140152,
-0.11282654106616974,
0.09766979515552521,
0.049313269555568695,
-0.3984244465827942,
0.20740048587322235,
0.03797535225749016,
0.3572258949279785,
-0.3074055314064026,
-0.08911007642745972,
-0.08565770089626312,
-0.5720179677009583,
0.16422954201698303,
0.053368598222732544,
0.21465182304382324,
0.2993554174900055,
-0.1587567925453186,
-0.1170123964548111,
-0.10496731102466583,
-0.30462419986724854,
-0.47165584564208984,
0.048219695687294006,
0.2257326990365982,
-0.010270282626152039,
0.05696169286966324,
-0.4090844690799713,
-0.17717784643173218,
0.14865007996559143,
-0.2936158776283264,
-0.08806054294109344,
-0.301613450050354,
0.05975690484046936,
-0.1316051334142685,
0.4870409667491913,
0.07138693332672119,
0.052771687507629395,
-0.16944849491119385,
-0.03512009605765343,
-0.10186074674129486,
0.054831020534038544,
0.5269745588302612,
-0.24845659732818604,
0.06013984605669975,
-0.2221781313419342,
0.15609702467918396,
0.5217099189758301,
-0.6526110768318176,
-0.48797255754470825,
0.4022219181060791,
-0.23586980998516083,
0.06717073917388916,
-0.09392901510000229,
-0.2874568700790405,
0.03927465155720711,
-0.032344087958335876,
0.5161756277084351,
0.11746369302272797,
-0.09799529612064362,
-0.19687770307064056,
0.0407911017537117,
-0.20472362637519836,
0.17068088054656982,
0.021109960973262787,
-0.009748288430273533,
0.07873991876840591,
0.16236110031604767,
-0.02697853371500969,
0.41640323400497437,
0.10372847318649292,
0.009009119123220444,
0.22488780319690704,
0.31085124611854553,
-0.22777633368968964,
-0.1555938422679901,
-0.15966345369815826,
0.15187063813209534,
0.1177365705370903,
0.27977997064590454,
0.3692600727081299,
-0.12914656102657318,
-0.12520727515220642,
-0.4446752369403839,
-0.025786064565181732,
-0.2310209572315216,
0.062279533594846725,
0.05680867284536362,
0.03203124552965164,
0.06463141739368439,
0.2193547487258911,
-0.18407684564590454,
0.16225963830947876,
-0.2816714346408844,
0.10973355174064636,
-0.13200509548187256,
0.46922481060028076,
-0.2606516182422638,
-0.03480613976716995,
0.22117789089679718,
0.2767658233642578,
0.045645974576473236,
-0.07883879542350769,
-0.2146998643875122,
0.31529858708381653,
-0.31785985827445984,
0.23517528176307678,
0.12059757113456726,
0.2831672430038452,
0.11759498715400696,
-0.591106653213501,
0.0591869130730629,
0.14855431020259857,
-0.02324041910469532,
0.04245740920305252,
0.3778436481952667,
0.23864080011844635,
0.17280340194702148,
0.44965898990631104,
0.07263338565826416,
0.08587469160556793,
0.29090985655784607,
0.24765701591968536,
-0.1342754364013672,
0.14535784721374512,
0.16169770061969757,
-0.1719188094139099,
0.31922993063926697,
-0.18308433890342712,
-0.340532124042511,
-0.16514980792999268,
0.3829869329929352,
-0.0832231268286705,
0.10789359360933304,
0.11361581087112427,
-0.13908301293849945,
-0.1129104495048523,
-0.013241663575172424,
-0.008658677339553833,
0.23839280009269714,
0.09118884801864624,
0.010604463517665863,
0.3226591646671295,
-0.26201099157333374,
0.003635447472333908,
0.054935555905103683,
0.05832374840974808,
0.17430724203586578,
0.2589445114135742,
0.02267291769385338,
-0.021720487624406815,
-0.045666515827178955,
-0.25809746980667114,
-0.20933549106121063,
0.14789032936096191,
-0.18081538379192352,
0.14808450639247894,
-0.0866636261343956,
0.013279654085636139,
-0.08053740859031677,
-0.3049543499946594,
-0.5015802383422852,
-0.2510821521282196,
-0.12521156668663025,
0.10890126973390579,
0.3503381609916687,
0.2614881992340088,
-0.03982127085328102,
-0.10080425441265106,
0.19077691435813904,
-0.2764284014701843,
0.06049656122922897,
-0.21828526258468628,
-0.22438889741897583,
0.07060551643371582,
0.08442439138889313,
-0.31232020258903503,
0.02334493212401867,
-0.22959041595458984,
-0.13746383786201477,
-0.07820460200309753,
-0.11752949655056,
0.008350620046257973,
-0.24554885923862457,
0.3056173324584961,
0.1816340982913971,
0.39868101477622986,
0.23304083943367004,
-0.006505843251943588,
0.4217597544193268,
-0.21888133883476257,
-0.021995626389980316,
0.04424726217985153,
-0.06340380012989044,
0.022656269371509552,
0.17673614621162415,
-0.28329965472221375,
-0.4118850529193878,
-0.3967009484767914,
0.23751267790794373,
-0.16988804936408997,
0.05010499432682991,
0.2355160415172577,
0.12342549860477448,
-0.047363538295030594,
0.0705346018075943,
0.3045693039894104,
-0.1642434000968933,
-0.36542052030563354,
0.04843013361096382,
-0.0856718122959137,
-0.16017046570777893,
0.17187103629112244,
0.23913273215293884,
0.5762709379196167,
-0.07253589481115341,
-0.4448833465576172,
-0.01685025915503502,
-0.05347462743520737,
0.32423290610313416,
0.10211087763309479,
-0.007223799824714661,
-0.017047040164470673,
-0.09059736877679825,
-0.057672254741191864,
0.14035159349441528,
-0.23528534173965454,
-0.06298121809959412,
0.20436814427375793,
0.30512380599975586,
0.12385080754756927,
0.5398368835449219,
-0.13484492897987366,
0.6648232340812683,
0.29272615909576416,
0.15644380450248718,
0.1879330724477768,
-0.20863953232765198,
0.3413591682910919,
-0.2027694582939148,
-0.44191649556159973,
0.10327956080436707,
-0.17082993686199188,
-0.0757671520113945,
0.08268643915653229,
0.17492908239364624,
0.03571178764104843,
-0.3792595863342285,
-0.451511949300766,
-0.14046327769756317,
-0.212009996175766,
-0.23059622943401337,
-0.24948126077651978,
0.09731199592351913,
0.08861953765153885,
-0.02552766352891922,
-0.11314424872398376,
-0.08588768541812897,
-0.016193192452192307,
0.4476884603500366,
-0.13470548391342163,
0.13764157891273499,
-0.23221808671951294,
-0.25183969736099243,
-0.30934762954711914,
0.18620340526103973,
0.05720258876681328,
0.41248446702957153,
-0.387154221534729,
0.18817336857318878,
-0.10863552242517471,
0.023167308419942856,
0.17578661441802979,
-0.12606452405452728,
0.08961614221334457,
0.029685184359550476,
0.007516324520111084,
-0.18143418431282043,
-0.06714992225170135,
0.19485056400299072,
0.33338814973831177,
0.30827227234840393,
0.2268792688846588,
-0.16490694880485535,
0.043612558394670486,
0.15034586191177368,
0.44916242361068726,
0.052108362317085266,
0.035622838884592056,
-0.31612175703048706,
-0.20281237363815308,
-0.3019145727157593,
0.04516729712486267,
0.006408661603927612,
0.3169748783111572,
-0.17870189249515533,
0.040092915296554565,
0.33802351355552673,
-0.2488069087266922,
0.2350933849811554,
0.04588693007826805,
-0.07953891158103943,
-0.35746341943740845,
0.18483105301856995,
0.285829097032547,
0.04181055724620819,
0.06718626618385315,
0.747065007686615,
0.1048019528388977,
-0.5249843001365662,
0.015138369053602219,
0.2105799913406372,
0.3927265405654907,
0.3051043450832367,
0.014523837715387344,
0.21297797560691833,
0.2763596475124359,
0.08474017679691315,
-0.027173373848199844,
0.196818545460701,
0.3358711302280426,
0.33918288350105286,
-0.6512298583984375,
-0.5451784729957581,
0.1240200623869896,
-0.16483744978904724,
-0.013387151062488556,
0.3071775436401367,
0.15525053441524506,
-0.1331917941570282,
0.0506519116461277,
-0.5677533745765686,
1.0728424787521362,
0.18510985374450684,
0.08114200085401535,
0.03696958348155022,
-0.040856584906578064,
-0.04295435547828674,
-0.3154563903808594,
0.07942920178174973,
-0.1125623807311058,
-0.10457438230514526,
-0.013576094061136246,
-0.20590761303901672,
0.06886721402406693,
-0.19625692069530487,
-0.07629048824310303,
0.48100221157073975,
-0.08708568662405014,
0.0726328194141388,
0.1857946664094925,
0.26835936307907104,
0.013669287785887718,
0.24456852674484253,
-0.273453027009964,
0.17763660848140717,
-0.048789285123348236,
0.5176773071289062,
0.002268388867378235,
-0.0941769927740097,
-0.24350599944591522,
-0.3722913861274719,
-0.36880990862846375,
0.28390803933143616,
-0.11938062310218811,
0.06717512011528015,
0.18565095961093903,
-0.26720142364501953,
0.2050153911113739,
0.17187388241291046,
0.35222405195236206,
0.29816552996635437,
-0.28471115231513977,
0.17621009051799774,
-0.0071890875697135925,
-0.07783308625221252,
0.15461547672748566,
0.1250276267528534,
0.052141524851322174,
-0.16791146993637085,
-0.502281665802002,
0.3732268512248993,
-0.015688341110944748,
-0.39645326137542725,
-0.13001343607902527,
-0.24428071081638336,
0.008855100721120834,
-0.16381517052650452,
0.20535442233085632,
-0.3347203731536865,
0.17216303944587708,
-0.3236493766307831,
0.12639592587947845,
0.18910299241542816,
-0.1880550980567932,
-0.1597912758588791,
0.20887023210525513,
-0.19250459969043732,
-0.056302547454833984,
0.24884575605392456,
0.049743641167879105,
-0.13858149945735931,
0.45959922671318054,
0.13963055610656738,
-0.045438773930072784,
-0.2443520426750183,
-0.05857212468981743,
0.5368099212646484,
-0.471984326839447,
-0.02850973606109619,
-0.11123205721378326,
0.19442787766456604,
-0.1658235788345337,
0.44094526767730713,
0.20322158932685852,
-0.07848654687404633,
0.10249879956245422,
-0.4698053300380707,
-0.31293678283691406,
0.19365602731704712,
-0.061578042805194855,
0.20661801099777222,
-0.0816059485077858,
0.10829347372055054,
-0.006718795746564865,
-0.04456069692969322,
-0.2897929847240448,
-0.10779961198568344,
-0.34318578243255615,
0.020967114716768265,
0.33397331833839417,
-0.1914006471633911,
0.38503557443618774,
0.04021674022078514,
0.22577840089797974,
-0.24550575017929077,
-0.18081940710544586,
-0.14693213999271393,
0.021318994462490082,
0.12127605825662613,
0.019761651754379272,
-0.25336143374443054,
0.1456553339958191,
0.056452587246894836,
-0.14737191796302795,
-0.008609328418970108,
0.18584874272346497,
0.04803527146577835,
0.05523101985454559,
-0.13472431898117065,
-0.07230691611766815,
-0.11457954347133636,
0.05437096953392029,
0.11887376755475998,
0.0379200242459774,
0.40122857689857483,
-0.009239643812179565,
0.14576779305934906,
0.015803221613168716,
-0.22881051898002625,
-0.41039377450942993,
0.06348752975463867,
0.11046993732452393,
0.01887790486216545,
0.3517827093601227,
-0.3496558964252472,
0.06948411464691162,
0.04873736575245857,
0.6509905457496643,
0.10222777724266052,
-0.35336580872535706,
0.2629571855068207,
0.25021129846572876,
0.15454575419425964,
-0.22293147444725037,
-0.024043595418334007,
0.16324353218078613,
-0.16365347802639008,
-0.017364218831062317,
0.11624293774366379,
0.18226800858974457,
0.058286115527153015,
-0.0675276517868042,
-0.09430433064699173,
0.49974215030670166,
-0.08563168346881866,
0.2728966176509857,
0.16341541707515717,
0.11910395324230194,
-0.008213570341467857,
0.10749713331460953,
0.13304561376571655,
0.043090321123600006,
0.3482436537742615,
-0.5331622362136841,
0.09003128111362457,
0.06722962856292725,
-0.09371939301490784,
0.16207125782966614,
-0.1775238811969757,
0.10250703990459442,
0.00014466047286987305,
-0.35716164112091064,
-0.25713253021240234,
-0.19786104559898376,
0.40014874935150146,
-0.37337058782577515,
0.14291158318519592,
-0.23027417063713074,
0.1050119698047638,
-0.05531658977270126,
-0.16856086254119873,
0.011750377714633942,
-0.28628402948379517,
-0.20233440399169922,
-0.19512970745563507,
0.0582067109644413,
-0.06720317900180817,
0.20153942704200745,
-0.05340776965022087,
0.08703407645225525,
-0.30177390575408936,
-0.1426234245300293,
0.22017426788806915,
-0.06256258487701416,
-0.10323243588209152,
0.3250923752784729,
0.10042053461074829,
-0.09805156290531158,
0.23330393433570862,
0.2825147211551666,
0.7588903903961182,
0.17233124375343323,
-0.07945408672094345,
0.2104051113128662,
0.12197814881801605,
-0.13088443875312805,
0.2585340142250061,
0.04861605539917946,
0.21713587641716003,
0.16467314958572388,
0.2685931324958801,
0.2097797989845276,
-0.12167581915855408,
0.22200019657611847,
-0.14170591533184052,
0.05217738449573517,
-0.3314895033836365,
0.4694359302520752,
-0.40282702445983887,
-0.18313001096248627,
-0.49033743143081665,
0.16563421487808228,
-0.4790596663951874,
-0.028008658438920975,
0.4250088930130005,
0.1137312576174736,
0.0196257084608078,
-0.40839624404907227,
0.0869361162185669,
-0.05387091264128685,
0.3900734484195709,
0.3639172613620758,
0.4856373965740204,
-0.10299740731716156,
-0.10191134363412857,
-0.41009464859962463,
0.3474358916282654,
-0.1695382446050644,
-0.06341627240180969,
-0.1056860014796257,
-0.1028933972120285,
0.032690227031707764,
0.2012595236301422,
0.22357463836669922,
-0.14115113019943237,
-0.19967171549797058,
0.012637689709663391,
-0.014284692704677582,
-0.23948612809181213,
-0.003485802561044693,
0.13725970685482025,
-0.018422935158014297,
-0.2118447870016098,
0.15800198912620544,
-0.4327091872692108,
0.025136657059192657,
0.07089874893426895,
0.12021760642528534,
0.08790166676044464,
-0.3852391541004181,
0.2949138581752777,
0.1643313616514206,
0.73880535364151,
0.027025073766708374,
-0.19433507323265076,
-0.08842504024505615,
-0.35697320103645325,
-0.1504111886024475,
-0.00983159989118576,
-0.21857978403568268,
0.43245282769203186,
-0.11282513290643692,
0.028594013303518295,
-0.37838295102119446,
-0.12911345064640045,
-0.03393580764532089,
-0.1541232317686081,
0.021120786666870117,
-0.06828171759843826,
0.03825369477272034,
0.014283377677202225,
0.2206725776195526,
-0.13157816231250763,
0.016592536121606827,
0.09292890876531601,
-0.13904917240142822,
-0.14976850152015686,
0.4321294128894806,
-0.19756662845611572,
-0.2928904592990875,
-0.3356834352016449,
0.26771289110183716,
0.013756361790001392,
-0.10377659648656845,
-0.47074437141418457,
0.27046796679496765,
0.42334458231925964,
0.3171434700489044,
-0.33214807510375977,
0.14375843107700348,
-0.08324220776557922,
0.12601876258850098,
0.16126033663749695,
0.20680466294288635,
-0.32501155138015747,
-0.25657546520233154,
0.09093349426984787,
-0.1341867595911026
] |
https://github.com/huggingface/datasets/issues/2070 | Hi ! This error happens when you use `map` in batched mode and then your function doesn't return the same number of values per column.
Indeed since you're using `map` in batched mode, `prepare_validation_features` must take a batch as input (i.e. a dictionary of multiple rows of the dataset), and return a batch.
However it seems like `tokenized_examples` doesn't have the same number of elements in each field. One field seems to have `1180` elements while `candidate_attention_mask` only has `1178`. | ArrowInvalid issue for squad v2 dataset | Hello, I am using the huggingface official question answering example notebook (https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb).
In the prepare_validation_features function, I made some modifications to tokenize a new set of quesions with the original contexts and save them in three different list called candidate_input_dis, candidate_attetion_mask and candidate_token_type_ids. When I try to run the next cell for dataset.map, I got the following error:
`ArrowInvalid: Column 1 named candidate_attention_mask expected length 1180 but got length 1178`
My code is as follows:
```
def generate_candidate_questions(examples):
val_questions = examples["question"]
candididate_questions = random.sample(datasets["train"]["question"], len(val_questions))
candididate_questions = [x[:max_length] for x in candididate_questions]
return candididate_questions
def prepare_validation_features(examples, use_mixing=False):
pad_on_right = tokenizer.padding_side == "right"
tokenized_examples = tokenizer(
examples["question" if pad_on_right else "context"],
examples["context" if pad_on_right else "question"],
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
if use_mixing:
candidate_questions = generate_candidate_questions(examples)
tokenized_candidates = tokenizer(
candidate_questions if pad_on_right else examples["context"],
examples["context"] if pad_on_right else candidate_questions,
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping")
tokenized_examples["example_id"] = []
if use_mixing:
tokenized_examples["candidate_input_ids"] = tokenized_candidates["input_ids"]
tokenized_examples["candidate_attention_mask"] = tokenized_candidates["attention_mask"]
tokenized_examples["candidate_token_type_ids"] = tokenized_candidates["token_type_ids"]
for i in range(len(tokenized_examples["input_ids"])):
sequence_ids = tokenized_examples.sequence_ids(i)
context_index = 1 if pad_on_right else 0
sample_index = sample_mapping[i]
tokenized_examples["example_id"].append(examples["id"][sample_index])
tokenized_examples["offset_mapping"][i] = [
(o if sequence_ids[k] == context_index else None)
for k, o in enumerate(tokenized_examples["offset_mapping"][i])
]
return tokenized_examples
validation_features = datasets["validation"].map(
lambda xs: prepare_validation_features(xs, True),
batched=True,
remove_columns=datasets["validation"].column_names
)
```
I guess this might happen because of the batched=True. I see similar issues in this repo related to arrow table length mismatch error, but in their cases, the numbers vary a lot. In my case, this error always happens when the expected length and unexpected length are very close. Thanks for the help! | 80 | ArrowInvalid issue for squad v2 dataset
Hello, I am using the huggingface official question answering example notebook (https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb).
In the prepare_validation_features function, I made some modifications to tokenize a new set of quesions with the original contexts and save them in three different list called candidate_input_dis, candidate_attetion_mask and candidate_token_type_ids. When I try to run the next cell for dataset.map, I got the following error:
`ArrowInvalid: Column 1 named candidate_attention_mask expected length 1180 but got length 1178`
My code is as follows:
```
def generate_candidate_questions(examples):
val_questions = examples["question"]
candididate_questions = random.sample(datasets["train"]["question"], len(val_questions))
candididate_questions = [x[:max_length] for x in candididate_questions]
return candididate_questions
def prepare_validation_features(examples, use_mixing=False):
pad_on_right = tokenizer.padding_side == "right"
tokenized_examples = tokenizer(
examples["question" if pad_on_right else "context"],
examples["context" if pad_on_right else "question"],
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
if use_mixing:
candidate_questions = generate_candidate_questions(examples)
tokenized_candidates = tokenizer(
candidate_questions if pad_on_right else examples["context"],
examples["context"] if pad_on_right else candidate_questions,
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping")
tokenized_examples["example_id"] = []
if use_mixing:
tokenized_examples["candidate_input_ids"] = tokenized_candidates["input_ids"]
tokenized_examples["candidate_attention_mask"] = tokenized_candidates["attention_mask"]
tokenized_examples["candidate_token_type_ids"] = tokenized_candidates["token_type_ids"]
for i in range(len(tokenized_examples["input_ids"])):
sequence_ids = tokenized_examples.sequence_ids(i)
context_index = 1 if pad_on_right else 0
sample_index = sample_mapping[i]
tokenized_examples["example_id"].append(examples["id"][sample_index])
tokenized_examples["offset_mapping"][i] = [
(o if sequence_ids[k] == context_index else None)
for k, o in enumerate(tokenized_examples["offset_mapping"][i])
]
return tokenized_examples
validation_features = datasets["validation"].map(
lambda xs: prepare_validation_features(xs, True),
batched=True,
remove_columns=datasets["validation"].column_names
)
```
I guess this might happen because of the batched=True. I see similar issues in this repo related to arrow table length mismatch error, but in their cases, the numbers vary a lot. In my case, this error always happens when the expected length and unexpected length are very close. Thanks for the help!
Hi ! This error happens when you use `map` in batched mode and then your function doesn't return the same number of values per column.
Indeed since you're using `map` in batched mode, `prepare_validation_features` must take a batch as input (i.e. a dictionary of multiple rows of the dataset), and return a batch.
However it seems like `tokenized_examples` doesn't have the same number of elements in each field. One field seems to have `1180` elements while `candidate_attention_mask` only has `1178`. | [
0.19508695602416992,
-0.5012054443359375,
0.004113953560590744,
0.2735457718372345,
0.2830953001976013,
-0.06308551877737045,
0.2918868064880371,
0.1244552731513977,
-0.3849659860134125,
0.19322830438613892,
0.06840673089027405,
0.27129727602005005,
0.11750516295433044,
-0.27016234397888184,
-0.07083320617675781,
-0.1942005753517151,
0.04387665539979935,
-0.018505357205867767,
0.16635525226593018,
-0.07367362082004547,
-0.16446462273597717,
0.20849694311618805,
-0.47302791476249695,
0.3151914179325104,
-0.36819159984588623,
-0.27927422523498535,
-0.06522910296916962,
-0.1413506269454956,
-0.20850306749343872,
-0.7724213600158691,
0.1893930733203888,
-0.2526656985282898,
0.2286590337753296,
0.2269303947687149,
-0.00012930438970215619,
-0.07085099816322327,
0.054647959768772125,
-0.10822762548923492,
-0.2221764326095581,
0.05034708231687546,
0.20060116052627563,
-0.11575417965650558,
0.023501001298427582,
-0.15060225129127502,
0.08626198768615723,
-0.2532844543457031,
-0.2258583903312683,
-0.2837267816066742,
0.5048593282699585,
0.21831299364566803,
0.03984211012721062,
0.3087807297706604,
0.13261578977108002,
-0.01809709519147873,
0.025421468541026115,
0.02071528509259224,
-0.10040006041526794,
-0.06118996441364288,
0.21778130531311035,
-0.01663161814212799,
0.11068660020828247,
0.6158599853515625,
0.2363806962966919,
0.12036474049091339,
0.3287786841392517,
-0.0844719409942627,
0.051251597702503204,
-0.24248595535755157,
0.16215747594833374,
0.1987713724374771,
0.12032158672809601,
-0.08065609633922577,
-0.2992400527000427,
-0.3082878291606903,
0.22351862490177155,
-0.01755828782916069,
0.14167651534080505,
-0.16003252565860748,
0.22672399878501892,
0.07995148003101349,
-0.0211589764803648,
0.27637386322021484,
-0.23090368509292603,
0.12465633451938629,
0.15557436645030975,
0.05819624289870262,
-0.12733370065689087,
0.3357895016670227,
0.08436878025531769,
-0.4302314519882202,
-0.3450867235660553,
0.1799302101135254,
-0.17609310150146484,
0.384898841381073,
-0.472077876329422,
-0.13469785451889038,
-0.17839984595775604,
-0.23474080860614777,
0.33014976978302,
-0.12975938618183136,
0.20125624537467957,
-0.08828440308570862,
0.35519304871559143,
0.02187151089310646,
0.07195866107940674,
0.33367976546287537,
0.3085627853870392,
0.4262864589691162,
-0.21800769865512848,
-0.3491992950439453,
0.12054908275604248,
-0.12062118947505951,
-0.25477293133735657,
-0.3665161728858948,
0.22097308933734894,
0.11672308295965195,
0.384670615196228,
-0.051637228578329086,
-0.39398422837257385,
0.46828019618988037,
-0.764968752861023,
0.08119808882474899,
-0.005818838253617287,
0.1781892329454422,
0.21982380747795105,
-0.0031698131933808327,
-0.12049467861652374,
0.21135902404785156,
-0.025923628360033035,
-0.2856939136981964,
-0.020510952919721603,
-0.07508033514022827,
-0.1858084350824356,
0.0906655564904213,
0.0571444109082222,
0.1531475931406021,
0.3249376118183136,
-0.10287356376647949,
0.37993746995925903,
-0.3787393569946289,
0.18798717856407166,
-0.18446823954582214,
0.34553396701812744,
-0.07274165749549866,
-0.3098553419113159,
0.14246298372745514,
0.05842861533164978,
-0.1654931902885437,
-0.053913794457912445,
-0.10272170603275299,
-0.18743380904197693,
-0.1261957734823227,
-0.24258816242218018,
-0.020872877910733223,
0.08112096786499023,
0.1629774272441864,
0.10433845967054367,
0.13195109367370605,
0.24595189094543457,
-0.09680710732936859,
0.3539924919605255,
-0.39053237438201904,
0.12057754397392273,
-0.014522505924105644,
-0.020582620054483414,
0.17087122797966003,
-0.35654473304748535,
-0.15422546863555908,
0.5501694083213806,
0.2950056791305542,
-0.2008676528930664,
0.38714399933815,
-0.15492135286331177,
0.07523517310619354,
-0.15557339787483215,
0.5609899163246155,
0.2675239145755768,
-0.7531769871711731,
-0.35518670082092285,
-0.050306446850299835,
-0.28584450483322144,
-0.05222681164741516,
0.08023253083229065,
-0.13081052899360657,
0.35153672099113464,
0.05596192926168442,
0.050204455852508545,
-0.02215278148651123,
-0.0017573479562997818,
0.06744159013032913,
-0.17031019926071167,
-0.06607016921043396,
0.06019578501582146,
-0.056051842868328094,
-0.2504400610923767,
-0.20833922922611237,
-0.115380197763443,
-0.16533522307872772,
0.046534664928913116,
-0.07871080189943314,
0.2557060122489929,
0.30744433403015137,
0.306441068649292,
0.03710800036787987,
0.29824352264404297,
-0.04245080053806305,
-0.5195571184158325,
-0.06737938523292542,
-0.08614827692508698,
-0.055526990443468094,
-0.09347347915172577,
-0.3999192416667938,
-0.4834735691547394,
0.12283773720264435,
-0.255113422870636,
-0.36266183853149414,
-0.010857254266738892,
0.05586599186062813,
0.15181168913841248,
-0.31383103132247925,
-0.06477906554937363,
0.08779525011777878,
-0.06719094514846802,
0.26884573698043823,
-0.12333658337593079,
-0.016010288149118423,
-0.059526845812797546,
-0.18051013350486755,
0.04528294503688812,
0.1954576075077057,
0.3556152880191803,
-0.06701028347015381,
-0.10628817975521088,
0.35173845291137695,
0.2318134903907776,
-0.10747423768043518,
0.1140643060207367,
-0.1387196183204651,
0.16964539885520935,
-0.2511659562587738,
-0.04637077450752258,
0.1581394374370575,
0.08317902684211731,
0.015389218926429749,
-0.1450783610343933,
0.49665096402168274,
0.0857708752155304,
0.36371317505836487,
-0.3584548234939575,
0.008390098810195923,
0.05687530338764191,
0.15088202059268951,
-0.4269770383834839,
-0.02565174549818039,
-0.12535378336906433,
0.14497561752796173,
0.40170350670814514,
-0.10177941620349884,
-0.05155611038208008,
0.04923529922962189,
0.33588480949401855,
0.03540629893541336,
-0.07634809613227844,
-0.024279575794935226,
-0.09252671897411346,
0.17318713665008545,
0.2631242573261261,
-0.044820599257946014,
0.2035180628299713,
0.12937691807746887,
-0.2184268832206726,
-0.01909460499882698,
-0.014703106135129929,
0.11196660250425339,
0.05559265613555908,
0.0647544115781784,
0.1183324009180069,
0.24950894713401794,
0.330202579498291,
-0.03056788258254528,
-0.18902693688869476,
0.039637789130210876,
0.13063094019889832,
0.09409013390541077,
-0.30667781829833984,
0.21547213196754456,
-0.12222133576869965,
0.19132281839847565,
-0.0042548589408397675,
-0.20168010890483856,
-0.012733541429042816,
-0.1387365460395813,
-0.11069446802139282,
0.1354755014181137,
0.05070651322603226,
0.3411771357059479,
0.2539765238761902,
0.34785914421081543,
0.46297499537467957,
0.025127334520220757,
-0.07852724194526672,
-0.06090964376926422,
-0.12765535712242126,
-0.16250115633010864,
0.009655747562646866,
-0.17426055669784546,
0.044179633259773254,
0.27780216932296753,
-0.05065496265888214,
-0.46066877245903015,
-0.6184923648834229,
0.18876588344573975,
-0.14378421008586884,
0.14736822247505188,
0.23465853929519653,
0.13757795095443726,
-0.5523958206176758,
-0.1461130827665329,
0.28259238600730896,
0.15654407441616058,
-0.3298371434211731,
0.007880456745624542,
-0.10757184028625488,
-0.21124714612960815,
0.0480220690369606,
-0.29353055357933044,
-0.1629592627286911,
-0.06165822595357895,
0.5795472860336304,
-0.3441348373889923,
-0.1095501035451889,
0.2096654772758484,
0.20395700633525848,
0.028625719249248505,
-0.33029547333717346,
-0.14911580085754395,
-0.27241793274879456,
0.14244146645069122,
0.3052257001399994,
-0.319895476102829,
-0.053276319056749344,
-0.06784893572330475,
-0.1944742202758789,
0.22944340109825134,
0.08545733988285065,
-0.08464536815881729,
-0.3280027210712433,
0.03639337420463562,
0.3106924891471863,
-0.25629693269729614,
0.13296116888523102,
0.4908972382545471,
-0.11662530153989792,
0.20662227272987366,
-0.09547125548124313,
-0.2646961808204651,
0.37131190299987793,
0.17105750739574432,
0.2116570770740509,
-0.11923442780971527,
0.5886766314506531,
0.009384267032146454,
0.8307527899742126,
0.39694473147392273,
0.06312432885169983,
0.04079161584377289,
-0.17296436429023743,
0.00892719067633152,
-0.11185362935066223,
-0.1739911139011383,
0.2700001895427704,
-0.18900364637374878,
-0.06349964439868927,
-0.009526431560516357,
-0.030404947698116302,
-0.09425567090511322,
0.36928921937942505,
0.1485637128353119,
-0.30629974603652954,
-0.20044532418251038,
-0.07917062193155289,
0.22205135226249695,
0.22723616659641266,
0.23754936456680298,
0.12328635156154633,
-0.45112621784210205,
0.1228208988904953,
-0.01823543757200241,
-0.250937819480896,
0.1650422215461731,
0.051788803189992905,
-0.8704368472099304,
-0.13904443383216858,
-0.14943289756774902,
0.4401814639568329,
0.36630481481552124,
0.44089028239250183,
0.14574259519577026,
-0.30244892835617065,
0.0741487517952919,
0.0059388913214206696,
0.5031286478042603,
0.14114542305469513,
-0.23070679605007172,
0.0029418468475341797,
-0.11967898905277252,
-0.38739079236984253,
-0.21901638805866241,
-0.04969017580151558,
0.3620966970920563,
0.40475258231163025,
0.3142857551574707,
-0.35313552618026733,
-0.20447573065757751,
0.40256208181381226,
-0.14667236804962158,
0.03331782668828964,
0.09631618857383728,
-0.2732214331626892,
-0.12937377393245697,
-0.4035228192806244,
0.26790088415145874,
0.2889299690723419,
0.13708478212356567,
0.33203384280204773,
-0.09332629293203354,
-0.10252698510885239,
-0.1522097885608673,
-0.0332016758620739,
0.2846736013889313,
0.4153457283973694,
0.16012652218341827,
0.03489129990339279,
0.35114699602127075,
0.005356013774871826,
0.2843344807624817,
0.1784130185842514,
-0.04187534749507904,
-0.6814484596252441,
0.2047100067138672,
-0.34170109033584595,
0.43014344573020935,
0.6046116948127747,
-0.028857672587037086,
0.22932782769203186,
-0.17418357729911804,
0.22428317368030548,
-0.05510139465332031,
0.1478205919265747,
0.5106639266014099,
0.321977823972702,
0.2062796950340271,
0.09650063514709473,
0.05332183092832565,
-0.11702421307563782,
-0.10833597183227539,
0.672084391117096,
0.46956247091293335,
-0.19180136919021606,
0.08468249440193176,
0.1610693335533142,
0.9873968362808228,
0.4777241051197052,
0.08410254120826721,
0.49319151043891907,
-0.18525227904319763,
-0.12188227474689484,
0.04484100639820099,
0.13393253087997437,
-0.45743709802627563,
-0.008353380486369133,
0.08890145272016525,
-0.2034323662519455,
0.05837409570813179,
0.13914090394973755,
-0.0358729213476181,
-0.13357196748256683,
0.020732834935188293,
0.3618425130844116,
-0.3089624047279358,
0.11128811538219452,
-0.24788765609264374,
-0.18838587403297424,
-0.20986786484718323,
-0.0012322217226028442,
-0.04582252353429794,
0.06953379511833191,
-0.13305862247943878,
-0.07580101490020752,
-0.44456344842910767,
-0.4326425790786743,
-0.11957518756389618,
-0.15561525523662567,
-0.6754677891731262,
0.18905088305473328,
0.6171088814735413,
-0.12326015532016754,
0.12161628901958466,
0.20805969834327698,
0.4921887218952179,
-0.015011734329164028,
-0.07538929581642151,
0.24311815202236176,
0.18003278970718384,
-0.020220685750246048,
-0.08254818618297577,
-0.10398794710636139,
-0.010382832027971745,
-0.08530987054109573,
-0.30401283502578735,
0.17918626964092255,
0.04158665984869003,
-0.24503222107887268,
-0.2042885422706604,
-0.0527837909758091,
0.2268562763929367,
-0.30412372946739197,
-0.023577436804771423,
-0.06009326130151749,
-0.09535647928714752,
-0.17262080311775208,
-0.055108264088630676,
-0.12531596422195435,
-0.26280710101127625,
-0.0821695327758789,
0.4602862596511841,
-0.20769208669662476,
0.23403021693229675,
0.26751381158828735,
-0.29946768283843994,
-0.1334337592124939,
0.737673282623291,
-0.08941175043582916,
-0.07827242463827133,
-0.13009704649448395,
0.493999719619751,
0.34985262155532837,
-0.4605633020401001,
-0.02296573668718338,
-0.0998602956533432,
-0.2655721604824066,
-0.19483807682991028,
0.5396842360496521,
0.4198509752750397,
0.14911167323589325,
0.04354076087474823,
-0.13140179216861725,
-0.4555128514766693,
0.23826542496681213,
-0.2345762699842453,
0.19530220329761505,
0.04129151999950409,
0.01272721216082573,
-0.2794874310493469,
0.21704435348510742,
-0.16515251994132996,
-0.010523904114961624,
-0.14175641536712646,
0.18641406297683716,
-0.18255312740802765,
-0.3321324586868286,
0.1994381546974182,
0.027630947530269623,
-0.12358861416578293,
0.4358770549297333,
-0.09071151167154312,
-0.045068345963954926,
-0.22408029437065125,
0.19430692493915558,
0.05535348504781723,
0.11422049254179001,
-0.24917778372764587,
-0.14086130261421204,
-0.10867325961589813,
-0.13331420719623566,
0.02399388700723648,
-0.04682783782482147,
0.30592605471611023,
0.1365162432193756,
-0.0672820508480072,
-0.08818922936916351,
0.12489084154367447,
-0.14573034644126892,
0.3126370310783386,
-0.08671148866415024,
0.20108218491077423,
0.1968143880367279,
-0.11013782024383545,
0.09049873054027557,
-0.1544697880744934,
0.3345204293727875,
0.1623489260673523,
0.016560591757297516,
0.007667641621083021,
-0.3720276355743408,
-0.20011000335216522,
0.07687992602586746,
-0.2525678277015686,
0.3860223889350891,
-0.2191203236579895,
-0.04795672744512558,
0.009351037442684174,
0.10444913804531097,
-0.12259067595005035,
0.15988866984844208,
0.4138641953468323,
-0.1265067756175995,
-0.009075097739696503,
0.24097572267055511,
-0.048312410712242126,
0.12635597586631775,
0.290240615606308,
0.17671069502830505,
0.3259355127811432,
-0.21946802735328674,
-0.050314608961343765,
0.12131227552890778,
-0.15040232241153717,
0.02911209501326084,
0.6292265057563782,
0.09231844544410706,
0.3154924809932709,
-0.07255961000919342,
-0.2231789529323578,
0.22734001278877258,
-0.08147716522216797,
0.3294859826564789,
0.19372421503067017,
0.17924177646636963,
-0.32608291506767273,
0.12998610734939575,
0.09999361634254456,
-0.20001815259456635,
0.14689989387989044,
0.5979399681091309,
0.14956140518188477,
-0.6717575788497925,
-0.16252702474594116,
0.09866510331630707,
-0.18242545425891876,
-0.14837884902954102,
-0.7064803838729858,
0.02557222545146942,
-0.30080747604370117,
-0.10624861717224121,
-0.16844183206558228,
0.15865564346313477,
0.48343947529792786,
0.05035927891731262,
0.0037670880556106567,
-0.3265327513217926,
-0.25314339995384216,
0.34978175163269043,
0.28393006324768066,
-0.2735244929790497,
0.2680557668209076,
0.065773606300354,
0.11802920699119568,
0.09593576192855835,
0.40897998213768005,
0.2865680754184723,
0.14551277458667755,
-0.15122485160827637,
-0.15140514075756073,
-0.1721799075603485,
0.0007874593138694763,
0.21963223814964294,
0.16117271780967712,
0.28425440192222595,
-0.10512133687734604,
0.11252716183662415,
-0.09577295184135437,
-0.03037368692457676,
-0.10102953016757965,
0.13795793056488037,
-0.03242359310388565,
-0.18708088994026184,
-0.3491014242172241,
-0.4216121435165405,
-0.024104595184326172,
-0.2664981186389923,
0.0799737423658371,
-0.27984219789505005,
0.27921122312545776,
0.15074163675308228,
0.04456091299653053,
0.0716162919998169,
-0.017158616334199905,
-0.02298407256603241,
-0.16267849504947662,
0.24088971316814423,
0.3803332448005676,
-0.1053195521235466,
-0.29942700266838074,
-0.21079784631729126,
-0.5407533645629883,
0.047868214547634125,
-0.08951209485530853,
-0.03529072552919388,
0.29052069783210754,
0.29438450932502747,
0.2752113342285156,
0.19203786551952362,
0.32365745306015015,
-0.20218640565872192,
-0.18592804670333862,
0.27051594853401184,
-0.41199472546577454,
0.05049827694892883,
0.3089601993560791,
0.14703302085399628,
0.2046709507703781,
-0.21444988250732422,
0.08864666521549225,
0.30675119161605835,
-0.22059735655784607,
-0.047508787363767624,
-0.16360116004943848,
-0.3189330995082855,
-0.18444307148456573,
0.29470130801200867,
0.11611757427453995,
0.1754455864429474,
0.2240552306175232,
-0.25720149278640747,
-0.13652579486370087,
-0.1764373481273651,
-0.13938170671463013,
0.14518482983112335,
0.11065821349620819,
0.611653745174408,
-0.04738384857773781,
-0.10781531780958176,
-0.026738455519080162,
0.04441124573349953,
0.10386799275875092,
-0.3887692093849182,
-0.2920264005661011,
0.38628846406936646,
-0.2014172375202179,
0.2640101909637451,
-0.16449207067489624,
0.1330406814813614,
0.17618843913078308,
0.4649394154548645,
-0.24768762290477753,
-0.36716052889823914,
0.7873599529266357,
-0.3886917531490326,
-0.30853503942489624,
0.21838241815567017,
0.1803085058927536,
0.6121311783790588,
-0.3203865587711334,
-0.5169119238853455,
-0.044636115431785583,
0.23400166630744934,
-0.06431473046541214,
-0.30731746554374695,
0.11789947748184204,
0.004913456737995148,
0.08175209164619446,
-0.17355677485466003,
0.322535902261734,
0.12918011844158173,
0.1259121298789978,
-0.1175740510225296,
-0.22945347428321838
] |
https://github.com/huggingface/datasets/issues/2068 | Hey @sivakhno,
how does your `requirements.txt` look like to install the `datasets` library and which version of it are you running? Can you try to install `datasets>=1.4.0` | PyTorch not available error on SageMaker GPU docker though it is installed | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
| 27 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
Hey @sivakhno,
how does your `requirements.txt` look like to install the `datasets` library and which version of it are you running? Can you try to install `datasets>=1.4.0` | [
-0.35786426067352295,
0.06243103742599487,
-0.003559581935405731,
0.09239527583122253,
0.20111912488937378,
0.034648530185222626,
0.5519385933876038,
0.32340720295906067,
0.3856210708618164,
0.09295850247144699,
0.0008824244141578674,
0.3965824842453003,
-0.03543047234416008,
0.1952463686466217,
0.07368398457765579,
-0.2641969621181488,
-0.05602932721376419,
0.22846923768520355,
-0.3105960190296173,
0.02670888602733612,
0.17195500433444977,
0.1197909265756607,
-0.2741038203239441,
0.18573187291622162,
-0.35249119997024536,
-0.09301009029150009,
0.25065699219703674,
-0.06403970718383789,
-0.17889589071273804,
-0.40698856115341187,
0.2793973386287689,
-0.061361152678728104,
0.23973126709461212,
0.496963232755661,
-0.00011404362885514274,
0.303216814994812,
0.18156665563583374,
-0.05208155885338783,
-0.2339608371257782,
-0.49460455775260925,
0.26934733986854553,
-0.21354976296424866,
0.2534043788909912,
-0.35874491930007935,
-0.2566692531108856,
-0.6176712512969971,
-0.16178423166275024,
-0.10641324520111084,
0.18972788751125336,
0.48300766944885254,
0.17783847451210022,
0.2304897904396057,
0.37042471766471863,
-0.10688399523496628,
-0.02136285975575447,
-0.12869012355804443,
-0.19988426566123962,
0.19338494539260864,
0.06061320751905441,
-0.04771890863776207,
-0.22151951491832733,
0.3306259512901306,
0.05328863859176636,
0.2221890091896057,
0.2746855616569519,
-0.027760101482272148,
0.30277299880981445,
-0.32847344875335693,
0.012803789228200912,
0.018637770786881447,
0.37838491797447205,
-0.16730764508247375,
-0.26154547929763794,
-0.1401582956314087,
0.240666002035141,
-0.18567180633544922,
0.2258490025997162,
0.2011609971523285,
-0.23859919607639313,
-0.23078405857086182,
-0.09248673915863037,
-0.244817316532135,
-0.49422869086265564,
0.0012737978249788284,
-0.14867737889289856,
0.6484245657920837,
-0.009729629382491112,
0.295864075422287,
-0.10884840786457062,
0.03163030743598938,
0.10879789292812347,
-0.017453989014029503,
0.1367831826210022,
-0.10355418175458908,
-0.44121482968330383,
0.012114673852920532,
-0.18480071425437927,
-0.3475171625614166,
-0.15453088283538818,
0.17633157968521118,
0.024453260004520416,
0.03855203464627266,
0.46138837933540344,
0.2319643497467041,
-0.06487417221069336,
0.21338336169719696,
-0.16768242418766022,
0.2672361731529236,
0.31560391187667847,
0.17838387191295624,
0.05828222632408142,
-0.011022448539733887,
-0.2719787359237671,
-0.26180464029312134,
0.0919804722070694,
-0.04094630479812622,
0.18391352891921997,
-0.2599913477897644,
-0.18967054784297943,
-0.06472614407539368,
-0.2254168838262558,
-0.004805773496627808,
0.34276527166366577,
0.37950047850608826,
-0.3616907000541687,
0.02155483514070511,
0.39052122831344604,
0.09702250361442566,
-0.15715433657169342,
0.10861761122941971,
-0.0689174085855484,
0.36923784017562866,
-0.30539536476135254,
-0.1699036806821823,
0.25709301233291626,
-0.28327736258506775,
0.31903958320617676,
0.0521269217133522,
0.43821364641189575,
0.019435741007328033,
0.1652493178844452,
-0.03628411889076233,
-0.030519999563694,
0.3495334982872009,
0.1684820055961609,
-0.09932252764701843,
0.06731436401605606,
-0.13105186820030212,
0.04356004297733307,
0.16401074826717377,
-0.3027127981185913,
-0.1731039583683014,
-0.27772819995880127,
0.21805836260318756,
0.02398058772087097,
-0.08284730464220047,
-0.09560269117355347,
-0.23635923862457275,
0.13843317329883575,
-0.24626967310905457,
-0.1988413780927658,
-0.5774737000465393,
-0.15188249945640564,
0.10097450762987137,
0.35055863857269287,
-0.10600750148296356,
-0.25523900985717773,
-0.24292774498462677,
0.21696382761001587,
-0.04458274692296982,
0.1921146661043167,
0.16726906597614288,
-0.32135653495788574,
0.36413758993148804,
-0.22417965531349182,
-0.11627428233623505,
0.4368959069252014,
-0.15826350450515747,
-0.4274960160255432,
-0.052653148770332336,
-0.13175609707832336,
-0.18149006366729736,
0.2424347847700119,
-0.021029984578490257,
0.10271954536437988,
0.06948577612638474,
0.1587238609790802,
0.22124052047729492,
0.05506322532892227,
-0.06414716690778732,
0.07116226106882095,
-0.030114680528640747,
0.06930649280548096,
0.3470239043235779,
0.469692587852478,
0.0405193455517292,
-0.22032827138900757,
0.10528254508972168,
0.0011495668441057205,
-0.33499273657798767,
-0.07290896773338318,
0.19361621141433716,
0.0726027563214302,
0.19731730222702026,
0.23420538008213043,
-0.024151019752025604,
-0.2846355438232422,
0.43725311756134033,
-0.40783852338790894,
0.22019752860069275,
-0.40127405524253845,
0.2799264192581177,
0.07399772852659225,
0.2309342324733734,
-0.44054561853408813,
-0.029049251228570938,
0.07402122020721436,
0.2747325599193573,
0.14336657524108887,
-0.07165054231882095,
-0.04318852722644806,
0.16421522200107574,
-0.20154687762260437,
0.25705355405807495,
-0.029723379760980606,
0.16484394669532776,
-0.3522479236125946,
-0.2846185564994812,
-0.026778176426887512,
0.08328212797641754,
0.0867886170744896,
-0.1338348686695099,
-0.18519042432308197,
-0.02230536751449108,
0.05635131895542145,
-0.18563182651996613,
-0.4077396094799042,
0.010759115219116211,
0.21343450248241425,
-0.02648807317018509,
0.15463751554489136,
0.22619923949241638,
0.053507473319768906,
0.06594975292682648,
-0.05961299687623978,
0.2794194519519806,
0.07685281336307526,
0.33161938190460205,
0.15635892748832703,
0.12432730197906494,
0.3506568670272827,
0.1796322762966156,
-0.037096716463565826,
0.03125080466270447,
0.3116854727268219,
-0.18155045807361603,
0.3884935975074768,
-0.28034108877182007,
-0.06709398329257965,
-0.22698667645454407,
0.05822049081325531,
0.09681764245033264,
0.20945154130458832,
-0.05841856449842453,
-0.26416823267936707,
-0.01971546560525894,
0.16551248729228973,
0.020151451230049133,
0.17631122469902039,
0.08555419743061066,
-0.20542755722999573,
-0.07315810024738312,
-0.2630329728126526,
-0.28534597158432007,
0.01994866132736206,
0.205454021692276,
0.18034885823726654,
0.4772663712501526,
-0.02497723698616028,
-0.13536310195922852,
-0.20539656281471252,
-0.31538599729537964,
0.04423397779464722,
0.24649488925933838,
-0.016700908541679382,
0.1939777433872223,
0.021379441022872925,
-0.25878816843032837,
-0.15713395178318024,
0.06886705756187439,
-0.08306555449962616,
-0.07055944204330444,
-0.056711502373218536,
0.43709781765937805,
0.10463930666446686,
0.30158358812332153,
0.12426111102104187,
0.0017419010400772095,
0.09092936664819717,
-0.09151984751224518,
-0.10100492835044861,
-0.19977377355098724,
-0.1029306948184967,
0.0908149927854538,
0.013918206095695496,
-0.15220487117767334,
0.45308300852775574,
-0.022692445665597916,
0.23972973227500916,
-0.47522279620170593,
-0.4546355605125427,
0.2639150321483612,
0.09467123448848724,
0.07035587728023529,
0.08312797546386719,
-0.10046933591365814,
0.23054295778274536,
-0.11517539620399475,
0.2874082922935486,
-0.36674273014068604,
-0.009985465556383133,
0.17113134264945984,
-0.3040319085121155,
-0.09116101264953613,
-0.042921923100948334,
-0.23733605444431305,
-0.21311718225479126,
-0.2420700043439865,
-0.16253146529197693,
0.19256338477134705,
0.06929539144039154,
0.07107670605182648,
-0.04821145534515381,
0.23994988203048706,
0.06124066933989525,
0.4208263158798218,
-0.0505230575799942,
-0.014203064143657684,
0.3403245806694031,
-0.14491254091262817,
-0.45854130387306213,
0.19907830655574799,
-0.07102566212415695,
0.48737385869026184,
0.18767568469047546,
-0.3572618365287781,
-0.14321385324001312,
-0.08768551796674728,
-0.01040593534708023,
-0.23097248375415802,
-0.31549370288848877,
0.4347073435783386,
0.08586755394935608,
-0.001758527010679245,
-0.018087737262248993,
-0.2098880410194397,
-0.005836945027112961,
-0.1161857545375824,
0.11075110733509064,
0.018055856227874756,
0.521802544593811,
0.016134940087795258,
0.505434513092041,
-0.14929430186748505,
-0.18492311239242554,
0.07876065373420715,
-0.0914803072810173,
0.1306823343038559,
-0.0777425467967987,
-0.35435885190963745,
0.09092000126838684,
-0.07847707718610764,
0.04230920970439911,
-0.11436508595943451,
-0.23755091428756714,
-0.25456807017326355,
-0.2243155837059021,
0.13673236966133118,
0.20567259192466736,
-0.07492256164550781,
0.14705641567707062,
-0.02185182273387909,
0.23477335274219513,
-0.10058271884918213,
0.2911742031574249,
-0.058270152658224106,
-0.0206461139023304,
-0.006881896406412125,
0.4009917676448822,
0.24711240828037262,
0.04054940119385719,
-0.35047006607055664,
-0.4177761971950531,
-0.3089730739593506,
0.1535237431526184,
0.11115583032369614,
0.43414220213890076,
-0.25353163480758667,
0.13533920049667358,
0.251821905374527,
-0.07312923669815063,
0.13055011630058289,
0.20158864557743073,
-0.07694030553102493,
0.13044780492782593,
-0.5629464983940125,
-0.21404895186424255,
-0.40258362889289856,
-0.20411524176597595,
0.3084564805030823,
-0.137836754322052,
0.2591090202331543,
-0.0521872341632843,
-0.23618295788764954,
0.3772248327732086,
-0.0014558285474777222,
-0.3549470603466034,
-0.16548778116703033,
-0.3093603253364563,
-0.0071023255586624146,
-0.3891408443450928,
0.14182160794734955,
-0.16303548216819763,
0.1648109257221222,
0.10335003584623337,
0.1802527904510498,
-0.047827113419771194,
-0.06736238300800323,
-0.24184782803058624,
0.1251702606678009,
0.15085352957248688,
-0.17966623604297638,
0.020629815757274628,
0.25830867886543274,
0.4035358130931854,
0.02466202713549137,
0.1251707822084427,
0.16587364673614502,
-0.6877145171165466,
0.2279512882232666,
0.14377684891223907,
0.03375368192791939,
-0.0006095319986343384,
-0.2813969850540161,
-0.015133123844861984,
0.028864149004220963,
0.2616086006164551,
-0.27891257405281067,
0.2849280834197998,
0.4318096339702606,
0.04355476051568985,
-0.3361484706401825,
-0.5102329254150391,
-0.02851305902004242,
0.11905354261398315,
0.13070860505104065,
0.10727346688508987,
-0.3197687566280365,
-0.23879629373550415,
0.10094496607780457,
0.23397859930992126,
0.39980819821357727,
-0.1230272650718689,
0.163187175989151,
0.3690176010131836,
-0.05627724155783653,
0.6690495014190674,
-0.07014870643615723,
0.5010372400283813,
-0.29644975066185,
-0.023695506155490875,
-0.021967001259326935,
-0.33303511142730713,
0.12492360174655914,
-0.08943229913711548,
0.019607514142990112,
0.46159636974334717,
0.02274230122566223,
0.1879121959209442,
0.08244265615940094,
0.5432860851287842,
-0.05619325488805771,
-0.31517308950424194,
0.08934266865253448,
0.082431361079216,
-0.47152769565582275,
0.45541971921920776,
-0.11191903054714203,
0.12960611283779144,
0.26461732387542725,
-0.08539005368947983,
-0.20248669385910034,
0.3169838786125183,
-0.10351884365081787,
0.5135720372200012,
-0.2603100836277008,
-0.717881977558136,
0.22172819077968597,
0.19350025057792664,
0.04758013039827347,
-0.016391152516007423,
-0.08404408395290375,
0.2869558334350586,
-0.5260505080223083,
-0.26488804817199707,
-0.11868128180503845,
0.14465616643428802,
0.41260528564453125,
-0.17664113640785217,
-0.17508625984191895,
0.0456952229142189,
-0.020709242671728134,
-0.34803301095962524,
-0.14750586450099945,
0.022914940491318703,
0.5239813327789307,
0.05061178654432297,
0.1382591277360916,
-0.24367105960845947,
-0.19852754473686218,
-0.11875981092453003,
0.13928945362567902,
0.18644198775291443,
-0.19202056527137756,
0.009254496544599533,
0.11267022788524628,
-0.23677001893520355,
0.02677922323346138,
0.40350964665412903,
0.2485734075307846,
-0.07548540830612183,
0.7604895830154419,
0.2701001465320587,
-0.215338334441185,
-0.18952466547489166,
-0.5757738351821899,
0.1880677044391632,
-0.4746960401535034,
0.0904083251953125,
0.0883789137005806,
-0.0010321438312530518,
-0.025246495380997658,
0.08325214684009552,
0.24049295485019684,
-0.3185771703720093,
-0.20643901824951172,
-0.4979454576969147,
-0.2446029782295227,
-0.012177661061286926,
-0.09707358479499817,
0.1446903496980667,
0.4060984253883362,
0.021310634911060333,
-0.03745304048061371,
-0.1176229789853096,
-0.24866142868995667,
-0.08124604821205139,
-0.08575166761875153,
-0.017891034483909607,
0.028843775391578674,
-0.24645906686782837,
0.018050499260425568,
0.1339569389820099,
0.11658070981502533,
-0.016181260347366333,
-0.05232394114136696,
-0.13773028552532196,
-0.05938040465116501,
0.06380251795053482,
0.15011154115200043,
-0.18413208425045013,
-0.15671765804290771,
-0.3472018539905548,
-0.168695867061615,
0.0619376003742218,
0.35113441944122314,
0.07319783419370651,
-0.03360239788889885,
0.10005556046962738,
-0.181509330868721,
0.03056982532143593,
-0.239394873380661,
0.19995519518852234,
-0.1581183224916458,
-0.03445980325341225,
0.2619612216949463,
0.2125541716814041,
0.0491621308028698,
0.17512039840221405,
-0.2967495322227478,
0.01222175732254982,
-0.22475336492061615,
0.07957097887992859,
0.38787397742271423,
-0.5469017624855042,
0.3201330900192261,
-0.11404579877853394,
0.32639360427856445,
0.2481028139591217,
-0.11123707890510559,
0.006945744156837463,
0.20776274800300598,
0.192999467253685,
-0.3124341070652008,
-0.17502765357494354,
-0.20476463437080383,
0.02555326744914055,
0.19517090916633606,
-0.03369041532278061,
0.03352205455303192,
0.20342493057250977,
0.24184367060661316,
0.21766801178455353,
0.3072524666786194,
-0.2194328010082245,
0.16087239980697632,
0.2555875778198242,
-0.03151383996009827,
0.1866934597492218,
0.4408330023288727,
0.2895788848400116,
0.03443001210689545,
0.2087426334619522,
-0.05012349411845207,
0.26835519075393677,
-0.035519495606422424,
0.049307841807603836,
0.27842873334884644,
-0.14063751697540283,
-0.1351005733013153,
0.15987175703048706,
-0.06665346026420593,
-0.09757279604673386,
-0.23563621938228607,
0.13799381256103516,
-0.5082182884216309,
-0.001611705869436264,
-0.3276996612548828,
-0.06167208403348923,
-0.3606293201446533,
0.1335805505514145,
-0.25792840123176575,
-0.023372329771518707,
0.07977552711963654,
0.17723098397254944,
0.11178838461637497,
0.10143408179283142,
-0.44695231318473816,
0.12593750655651093,
-0.40831732749938965,
0.04446154832839966,
-0.23946313560009003,
0.3101459741592407,
-0.12115228176116943,
-0.08415824919939041,
0.18983584642410278,
0.29036247730255127,
-0.12193898856639862,
-0.11502489447593689,
0.17517761886119843,
0.47628581523895264,
0.14574086666107178,
0.04347001388669014,
-0.08061525225639343,
-0.02929488569498062,
-0.03212485462427139,
-0.01908242702484131,
0.2248753160238266,
0.20044037699699402,
-0.039776742458343506,
0.15629157423973083,
0.15418460965156555,
-0.11820243299007416,
0.1891733556985855,
0.12600156664848328,
0.024107422679662704,
0.11597064137458801,
0.26614782214164734,
0.0735388994216919,
-0.15479812026023865,
-0.13362616300582886,
-0.02617485821247101,
-0.31927797198295593,
-0.15224957466125488,
0.3894207775592804,
0.2127334624528885,
-0.23531962931156158,
-0.11317865550518036,
0.07375632226467133,
0.01578039675951004,
0.44649213552474976,
0.12910521030426025,
0.004601584747433662,
-0.12044142931699753,
0.03963489830493927,
-0.20765966176986694,
0.21962347626686096,
-0.023898765444755554,
0.01662888377904892,
0.12267646193504333,
0.09477893263101578,
-0.02647288516163826,
-0.025327926501631737,
0.303305059671402,
-0.12534110248088837,
0.12073332071304321,
-0.14345702528953552,
-0.2756645679473877,
-0.05758937820792198,
0.30880653858184814,
0.08149813860654831,
0.07550500333309174,
-0.2945994734764099,
0.016118597239255905,
0.022224318236112595,
0.11124926805496216,
-0.2723047733306885,
0.05816300958395004,
0.09985174983739853,
-0.3974205255508423,
0.2679630517959595,
-0.08305086940526962,
0.7890287637710571,
0.09276147931814194,
-0.10290848463773727,
-0.004499657079577446,
-0.20567050576210022,
-0.3405405282974243,
0.27081701159477234,
0.09723196923732758,
0.5719092488288879,
0.16132406890392303,
-0.12863300740718842,
-0.4244959056377411,
0.3670106530189514,
-0.16975586116313934,
-0.666180431842804,
-0.16411751508712769,
0.1922508180141449,
-0.11734072864055634,
0.25027042627334595,
0.22450248897075653,
0.10295452177524567,
0.30653083324432373,
-0.28956231474876404,
-0.3585675358772278,
-0.12027998268604279,
0.580431342124939,
-0.2649388015270233,
-0.2065293788909912,
-0.28632232546806335,
0.14597266912460327,
-0.16293933987617493,
0.13018715381622314,
-0.1651323437690735,
0.11296091973781586,
0.026145506650209427,
-0.003977478481829166,
-0.01535072922706604,
0.2036133110523224,
0.24844393134117126,
0.16647258400917053,
-0.140039324760437,
0.44262728095054626,
-0.14893001317977905,
-0.23235461115837097,
-0.38598841428756714,
-0.2470759004354477
] |
https://github.com/huggingface/datasets/issues/2068 | Hi @philschmid - thanks for suggestion. I am using `datasets==1.4.1`.
I have also tried using `torch=1.6.0` (docker `763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.6.0-gpu-py3 `), but the error is the same. | PyTorch not available error on SageMaker GPU docker though it is installed | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
| 25 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
Hi @philschmid - thanks for suggestion. I am using `datasets==1.4.1`.
I have also tried using `torch=1.6.0` (docker `763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.6.0-gpu-py3 `), but the error is the same. | [
-0.35786426067352295,
0.06243103742599487,
-0.003559581935405731,
0.09239527583122253,
0.20111912488937378,
0.034648530185222626,
0.5519385933876038,
0.32340720295906067,
0.3856210708618164,
0.09295850247144699,
0.0008824244141578674,
0.3965824842453003,
-0.03543047234416008,
0.1952463686466217,
0.07368398457765579,
-0.2641969621181488,
-0.05602932721376419,
0.22846923768520355,
-0.3105960190296173,
0.02670888602733612,
0.17195500433444977,
0.1197909265756607,
-0.2741038203239441,
0.18573187291622162,
-0.35249119997024536,
-0.09301009029150009,
0.25065699219703674,
-0.06403970718383789,
-0.17889589071273804,
-0.40698856115341187,
0.2793973386287689,
-0.061361152678728104,
0.23973126709461212,
0.496963232755661,
-0.00011404362885514274,
0.303216814994812,
0.18156665563583374,
-0.05208155885338783,
-0.2339608371257782,
-0.49460455775260925,
0.26934733986854553,
-0.21354976296424866,
0.2534043788909912,
-0.35874491930007935,
-0.2566692531108856,
-0.6176712512969971,
-0.16178423166275024,
-0.10641324520111084,
0.18972788751125336,
0.48300766944885254,
0.17783847451210022,
0.2304897904396057,
0.37042471766471863,
-0.10688399523496628,
-0.02136285975575447,
-0.12869012355804443,
-0.19988426566123962,
0.19338494539260864,
0.06061320751905441,
-0.04771890863776207,
-0.22151951491832733,
0.3306259512901306,
0.05328863859176636,
0.2221890091896057,
0.2746855616569519,
-0.027760101482272148,
0.30277299880981445,
-0.32847344875335693,
0.012803789228200912,
0.018637770786881447,
0.37838491797447205,
-0.16730764508247375,
-0.26154547929763794,
-0.1401582956314087,
0.240666002035141,
-0.18567180633544922,
0.2258490025997162,
0.2011609971523285,
-0.23859919607639313,
-0.23078405857086182,
-0.09248673915863037,
-0.244817316532135,
-0.49422869086265564,
0.0012737978249788284,
-0.14867737889289856,
0.6484245657920837,
-0.009729629382491112,
0.295864075422287,
-0.10884840786457062,
0.03163030743598938,
0.10879789292812347,
-0.017453989014029503,
0.1367831826210022,
-0.10355418175458908,
-0.44121482968330383,
0.012114673852920532,
-0.18480071425437927,
-0.3475171625614166,
-0.15453088283538818,
0.17633157968521118,
0.024453260004520416,
0.03855203464627266,
0.46138837933540344,
0.2319643497467041,
-0.06487417221069336,
0.21338336169719696,
-0.16768242418766022,
0.2672361731529236,
0.31560391187667847,
0.17838387191295624,
0.05828222632408142,
-0.011022448539733887,
-0.2719787359237671,
-0.26180464029312134,
0.0919804722070694,
-0.04094630479812622,
0.18391352891921997,
-0.2599913477897644,
-0.18967054784297943,
-0.06472614407539368,
-0.2254168838262558,
-0.004805773496627808,
0.34276527166366577,
0.37950047850608826,
-0.3616907000541687,
0.02155483514070511,
0.39052122831344604,
0.09702250361442566,
-0.15715433657169342,
0.10861761122941971,
-0.0689174085855484,
0.36923784017562866,
-0.30539536476135254,
-0.1699036806821823,
0.25709301233291626,
-0.28327736258506775,
0.31903958320617676,
0.0521269217133522,
0.43821364641189575,
0.019435741007328033,
0.1652493178844452,
-0.03628411889076233,
-0.030519999563694,
0.3495334982872009,
0.1684820055961609,
-0.09932252764701843,
0.06731436401605606,
-0.13105186820030212,
0.04356004297733307,
0.16401074826717377,
-0.3027127981185913,
-0.1731039583683014,
-0.27772819995880127,
0.21805836260318756,
0.02398058772087097,
-0.08284730464220047,
-0.09560269117355347,
-0.23635923862457275,
0.13843317329883575,
-0.24626967310905457,
-0.1988413780927658,
-0.5774737000465393,
-0.15188249945640564,
0.10097450762987137,
0.35055863857269287,
-0.10600750148296356,
-0.25523900985717773,
-0.24292774498462677,
0.21696382761001587,
-0.04458274692296982,
0.1921146661043167,
0.16726906597614288,
-0.32135653495788574,
0.36413758993148804,
-0.22417965531349182,
-0.11627428233623505,
0.4368959069252014,
-0.15826350450515747,
-0.4274960160255432,
-0.052653148770332336,
-0.13175609707832336,
-0.18149006366729736,
0.2424347847700119,
-0.021029984578490257,
0.10271954536437988,
0.06948577612638474,
0.1587238609790802,
0.22124052047729492,
0.05506322532892227,
-0.06414716690778732,
0.07116226106882095,
-0.030114680528640747,
0.06930649280548096,
0.3470239043235779,
0.469692587852478,
0.0405193455517292,
-0.22032827138900757,
0.10528254508972168,
0.0011495668441057205,
-0.33499273657798767,
-0.07290896773338318,
0.19361621141433716,
0.0726027563214302,
0.19731730222702026,
0.23420538008213043,
-0.024151019752025604,
-0.2846355438232422,
0.43725311756134033,
-0.40783852338790894,
0.22019752860069275,
-0.40127405524253845,
0.2799264192581177,
0.07399772852659225,
0.2309342324733734,
-0.44054561853408813,
-0.029049251228570938,
0.07402122020721436,
0.2747325599193573,
0.14336657524108887,
-0.07165054231882095,
-0.04318852722644806,
0.16421522200107574,
-0.20154687762260437,
0.25705355405807495,
-0.029723379760980606,
0.16484394669532776,
-0.3522479236125946,
-0.2846185564994812,
-0.026778176426887512,
0.08328212797641754,
0.0867886170744896,
-0.1338348686695099,
-0.18519042432308197,
-0.02230536751449108,
0.05635131895542145,
-0.18563182651996613,
-0.4077396094799042,
0.010759115219116211,
0.21343450248241425,
-0.02648807317018509,
0.15463751554489136,
0.22619923949241638,
0.053507473319768906,
0.06594975292682648,
-0.05961299687623978,
0.2794194519519806,
0.07685281336307526,
0.33161938190460205,
0.15635892748832703,
0.12432730197906494,
0.3506568670272827,
0.1796322762966156,
-0.037096716463565826,
0.03125080466270447,
0.3116854727268219,
-0.18155045807361603,
0.3884935975074768,
-0.28034108877182007,
-0.06709398329257965,
-0.22698667645454407,
0.05822049081325531,
0.09681764245033264,
0.20945154130458832,
-0.05841856449842453,
-0.26416823267936707,
-0.01971546560525894,
0.16551248729228973,
0.020151451230049133,
0.17631122469902039,
0.08555419743061066,
-0.20542755722999573,
-0.07315810024738312,
-0.2630329728126526,
-0.28534597158432007,
0.01994866132736206,
0.205454021692276,
0.18034885823726654,
0.4772663712501526,
-0.02497723698616028,
-0.13536310195922852,
-0.20539656281471252,
-0.31538599729537964,
0.04423397779464722,
0.24649488925933838,
-0.016700908541679382,
0.1939777433872223,
0.021379441022872925,
-0.25878816843032837,
-0.15713395178318024,
0.06886705756187439,
-0.08306555449962616,
-0.07055944204330444,
-0.056711502373218536,
0.43709781765937805,
0.10463930666446686,
0.30158358812332153,
0.12426111102104187,
0.0017419010400772095,
0.09092936664819717,
-0.09151984751224518,
-0.10100492835044861,
-0.19977377355098724,
-0.1029306948184967,
0.0908149927854538,
0.013918206095695496,
-0.15220487117767334,
0.45308300852775574,
-0.022692445665597916,
0.23972973227500916,
-0.47522279620170593,
-0.4546355605125427,
0.2639150321483612,
0.09467123448848724,
0.07035587728023529,
0.08312797546386719,
-0.10046933591365814,
0.23054295778274536,
-0.11517539620399475,
0.2874082922935486,
-0.36674273014068604,
-0.009985465556383133,
0.17113134264945984,
-0.3040319085121155,
-0.09116101264953613,
-0.042921923100948334,
-0.23733605444431305,
-0.21311718225479126,
-0.2420700043439865,
-0.16253146529197693,
0.19256338477134705,
0.06929539144039154,
0.07107670605182648,
-0.04821145534515381,
0.23994988203048706,
0.06124066933989525,
0.4208263158798218,
-0.0505230575799942,
-0.014203064143657684,
0.3403245806694031,
-0.14491254091262817,
-0.45854130387306213,
0.19907830655574799,
-0.07102566212415695,
0.48737385869026184,
0.18767568469047546,
-0.3572618365287781,
-0.14321385324001312,
-0.08768551796674728,
-0.01040593534708023,
-0.23097248375415802,
-0.31549370288848877,
0.4347073435783386,
0.08586755394935608,
-0.001758527010679245,
-0.018087737262248993,
-0.2098880410194397,
-0.005836945027112961,
-0.1161857545375824,
0.11075110733509064,
0.018055856227874756,
0.521802544593811,
0.016134940087795258,
0.505434513092041,
-0.14929430186748505,
-0.18492311239242554,
0.07876065373420715,
-0.0914803072810173,
0.1306823343038559,
-0.0777425467967987,
-0.35435885190963745,
0.09092000126838684,
-0.07847707718610764,
0.04230920970439911,
-0.11436508595943451,
-0.23755091428756714,
-0.25456807017326355,
-0.2243155837059021,
0.13673236966133118,
0.20567259192466736,
-0.07492256164550781,
0.14705641567707062,
-0.02185182273387909,
0.23477335274219513,
-0.10058271884918213,
0.2911742031574249,
-0.058270152658224106,
-0.0206461139023304,
-0.006881896406412125,
0.4009917676448822,
0.24711240828037262,
0.04054940119385719,
-0.35047006607055664,
-0.4177761971950531,
-0.3089730739593506,
0.1535237431526184,
0.11115583032369614,
0.43414220213890076,
-0.25353163480758667,
0.13533920049667358,
0.251821905374527,
-0.07312923669815063,
0.13055011630058289,
0.20158864557743073,
-0.07694030553102493,
0.13044780492782593,
-0.5629464983940125,
-0.21404895186424255,
-0.40258362889289856,
-0.20411524176597595,
0.3084564805030823,
-0.137836754322052,
0.2591090202331543,
-0.0521872341632843,
-0.23618295788764954,
0.3772248327732086,
-0.0014558285474777222,
-0.3549470603466034,
-0.16548778116703033,
-0.3093603253364563,
-0.0071023255586624146,
-0.3891408443450928,
0.14182160794734955,
-0.16303548216819763,
0.1648109257221222,
0.10335003584623337,
0.1802527904510498,
-0.047827113419771194,
-0.06736238300800323,
-0.24184782803058624,
0.1251702606678009,
0.15085352957248688,
-0.17966623604297638,
0.020629815757274628,
0.25830867886543274,
0.4035358130931854,
0.02466202713549137,
0.1251707822084427,
0.16587364673614502,
-0.6877145171165466,
0.2279512882232666,
0.14377684891223907,
0.03375368192791939,
-0.0006095319986343384,
-0.2813969850540161,
-0.015133123844861984,
0.028864149004220963,
0.2616086006164551,
-0.27891257405281067,
0.2849280834197998,
0.4318096339702606,
0.04355476051568985,
-0.3361484706401825,
-0.5102329254150391,
-0.02851305902004242,
0.11905354261398315,
0.13070860505104065,
0.10727346688508987,
-0.3197687566280365,
-0.23879629373550415,
0.10094496607780457,
0.23397859930992126,
0.39980819821357727,
-0.1230272650718689,
0.163187175989151,
0.3690176010131836,
-0.05627724155783653,
0.6690495014190674,
-0.07014870643615723,
0.5010372400283813,
-0.29644975066185,
-0.023695506155490875,
-0.021967001259326935,
-0.33303511142730713,
0.12492360174655914,
-0.08943229913711548,
0.019607514142990112,
0.46159636974334717,
0.02274230122566223,
0.1879121959209442,
0.08244265615940094,
0.5432860851287842,
-0.05619325488805771,
-0.31517308950424194,
0.08934266865253448,
0.082431361079216,
-0.47152769565582275,
0.45541971921920776,
-0.11191903054714203,
0.12960611283779144,
0.26461732387542725,
-0.08539005368947983,
-0.20248669385910034,
0.3169838786125183,
-0.10351884365081787,
0.5135720372200012,
-0.2603100836277008,
-0.717881977558136,
0.22172819077968597,
0.19350025057792664,
0.04758013039827347,
-0.016391152516007423,
-0.08404408395290375,
0.2869558334350586,
-0.5260505080223083,
-0.26488804817199707,
-0.11868128180503845,
0.14465616643428802,
0.41260528564453125,
-0.17664113640785217,
-0.17508625984191895,
0.0456952229142189,
-0.020709242671728134,
-0.34803301095962524,
-0.14750586450099945,
0.022914940491318703,
0.5239813327789307,
0.05061178654432297,
0.1382591277360916,
-0.24367105960845947,
-0.19852754473686218,
-0.11875981092453003,
0.13928945362567902,
0.18644198775291443,
-0.19202056527137756,
0.009254496544599533,
0.11267022788524628,
-0.23677001893520355,
0.02677922323346138,
0.40350964665412903,
0.2485734075307846,
-0.07548540830612183,
0.7604895830154419,
0.2701001465320587,
-0.215338334441185,
-0.18952466547489166,
-0.5757738351821899,
0.1880677044391632,
-0.4746960401535034,
0.0904083251953125,
0.0883789137005806,
-0.0010321438312530518,
-0.025246495380997658,
0.08325214684009552,
0.24049295485019684,
-0.3185771703720093,
-0.20643901824951172,
-0.4979454576969147,
-0.2446029782295227,
-0.012177661061286926,
-0.09707358479499817,
0.1446903496980667,
0.4060984253883362,
0.021310634911060333,
-0.03745304048061371,
-0.1176229789853096,
-0.24866142868995667,
-0.08124604821205139,
-0.08575166761875153,
-0.017891034483909607,
0.028843775391578674,
-0.24645906686782837,
0.018050499260425568,
0.1339569389820099,
0.11658070981502533,
-0.016181260347366333,
-0.05232394114136696,
-0.13773028552532196,
-0.05938040465116501,
0.06380251795053482,
0.15011154115200043,
-0.18413208425045013,
-0.15671765804290771,
-0.3472018539905548,
-0.168695867061615,
0.0619376003742218,
0.35113441944122314,
0.07319783419370651,
-0.03360239788889885,
0.10005556046962738,
-0.181509330868721,
0.03056982532143593,
-0.239394873380661,
0.19995519518852234,
-0.1581183224916458,
-0.03445980325341225,
0.2619612216949463,
0.2125541716814041,
0.0491621308028698,
0.17512039840221405,
-0.2967495322227478,
0.01222175732254982,
-0.22475336492061615,
0.07957097887992859,
0.38787397742271423,
-0.5469017624855042,
0.3201330900192261,
-0.11404579877853394,
0.32639360427856445,
0.2481028139591217,
-0.11123707890510559,
0.006945744156837463,
0.20776274800300598,
0.192999467253685,
-0.3124341070652008,
-0.17502765357494354,
-0.20476463437080383,
0.02555326744914055,
0.19517090916633606,
-0.03369041532278061,
0.03352205455303192,
0.20342493057250977,
0.24184367060661316,
0.21766801178455353,
0.3072524666786194,
-0.2194328010082245,
0.16087239980697632,
0.2555875778198242,
-0.03151383996009827,
0.1866934597492218,
0.4408330023288727,
0.2895788848400116,
0.03443001210689545,
0.2087426334619522,
-0.05012349411845207,
0.26835519075393677,
-0.035519495606422424,
0.049307841807603836,
0.27842873334884644,
-0.14063751697540283,
-0.1351005733013153,
0.15987175703048706,
-0.06665346026420593,
-0.09757279604673386,
-0.23563621938228607,
0.13799381256103516,
-0.5082182884216309,
-0.001611705869436264,
-0.3276996612548828,
-0.06167208403348923,
-0.3606293201446533,
0.1335805505514145,
-0.25792840123176575,
-0.023372329771518707,
0.07977552711963654,
0.17723098397254944,
0.11178838461637497,
0.10143408179283142,
-0.44695231318473816,
0.12593750655651093,
-0.40831732749938965,
0.04446154832839966,
-0.23946313560009003,
0.3101459741592407,
-0.12115228176116943,
-0.08415824919939041,
0.18983584642410278,
0.29036247730255127,
-0.12193898856639862,
-0.11502489447593689,
0.17517761886119843,
0.47628581523895264,
0.14574086666107178,
0.04347001388669014,
-0.08061525225639343,
-0.02929488569498062,
-0.03212485462427139,
-0.01908242702484131,
0.2248753160238266,
0.20044037699699402,
-0.039776742458343506,
0.15629157423973083,
0.15418460965156555,
-0.11820243299007416,
0.1891733556985855,
0.12600156664848328,
0.024107422679662704,
0.11597064137458801,
0.26614782214164734,
0.0735388994216919,
-0.15479812026023865,
-0.13362616300582886,
-0.02617485821247101,
-0.31927797198295593,
-0.15224957466125488,
0.3894207775592804,
0.2127334624528885,
-0.23531962931156158,
-0.11317865550518036,
0.07375632226467133,
0.01578039675951004,
0.44649213552474976,
0.12910521030426025,
0.004601584747433662,
-0.12044142931699753,
0.03963489830493927,
-0.20765966176986694,
0.21962347626686096,
-0.023898765444755554,
0.01662888377904892,
0.12267646193504333,
0.09477893263101578,
-0.02647288516163826,
-0.025327926501631737,
0.303305059671402,
-0.12534110248088837,
0.12073332071304321,
-0.14345702528953552,
-0.2756645679473877,
-0.05758937820792198,
0.30880653858184814,
0.08149813860654831,
0.07550500333309174,
-0.2945994734764099,
0.016118597239255905,
0.022224318236112595,
0.11124926805496216,
-0.2723047733306885,
0.05816300958395004,
0.09985174983739853,
-0.3974205255508423,
0.2679630517959595,
-0.08305086940526962,
0.7890287637710571,
0.09276147931814194,
-0.10290848463773727,
-0.004499657079577446,
-0.20567050576210022,
-0.3405405282974243,
0.27081701159477234,
0.09723196923732758,
0.5719092488288879,
0.16132406890392303,
-0.12863300740718842,
-0.4244959056377411,
0.3670106530189514,
-0.16975586116313934,
-0.666180431842804,
-0.16411751508712769,
0.1922508180141449,
-0.11734072864055634,
0.25027042627334595,
0.22450248897075653,
0.10295452177524567,
0.30653083324432373,
-0.28956231474876404,
-0.3585675358772278,
-0.12027998268604279,
0.580431342124939,
-0.2649388015270233,
-0.2065293788909912,
-0.28632232546806335,
0.14597266912460327,
-0.16293933987617493,
0.13018715381622314,
-0.1651323437690735,
0.11296091973781586,
0.026145506650209427,
-0.003977478481829166,
-0.01535072922706604,
0.2036133110523224,
0.24844393134117126,
0.16647258400917053,
-0.140039324760437,
0.44262728095054626,
-0.14893001317977905,
-0.23235461115837097,
-0.38598841428756714,
-0.2470759004354477
] |
https://github.com/huggingface/datasets/issues/2068 | Could paste the code you use the start your training job and the fine-tuning script you run? | PyTorch not available error on SageMaker GPU docker though it is installed | I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
| 17 | PyTorch not available error on SageMaker GPU docker though it is installed
I get en error when running data loading using SageMaker SDK
```
File "main.py", line 34, in <module>
run_training()
File "main.py", line 25, in run_training
dm.setup('fit')
File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn
return fn(*args, **kwargs)
File "/opt/ml/code/data_module.py", line 103, in setup
self.dataset[split].set_format(type="torch", columns=self.columns)
File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format
_ = get_formatter(type, **format_kwargs)
File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter
raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type]
ValueError: PyTorch needs to be installed to be able to return PyTorch tensors.
```
when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines
```
self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns]
self.dataset[split].set_format(type="torch", columns=self.columns)
```
The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 .
By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`.
Also as a first line in the data loading module I have
```
import os
os.environ["USE_TF"] = "0"
os.environ["USE_TORCH"] = "1"
````
But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack.
Many Thanks!
Could paste the code you use the start your training job and the fine-tuning script you run? | [
-0.35786426067352295,
0.06243103742599487,
-0.003559581935405731,
0.09239527583122253,
0.20111912488937378,
0.034648530185222626,
0.5519385933876038,
0.32340720295906067,
0.3856210708618164,
0.09295850247144699,
0.0008824244141578674,
0.3965824842453003,
-0.03543047234416008,
0.1952463686466217,
0.07368398457765579,
-0.2641969621181488,
-0.05602932721376419,
0.22846923768520355,
-0.3105960190296173,
0.02670888602733612,
0.17195500433444977,
0.1197909265756607,
-0.2741038203239441,
0.18573187291622162,
-0.35249119997024536,
-0.09301009029150009,
0.25065699219703674,
-0.06403970718383789,
-0.17889589071273804,
-0.40698856115341187,
0.2793973386287689,
-0.061361152678728104,
0.23973126709461212,
0.496963232755661,
-0.00011404362885514274,
0.303216814994812,
0.18156665563583374,
-0.05208155885338783,
-0.2339608371257782,
-0.49460455775260925,
0.26934733986854553,
-0.21354976296424866,
0.2534043788909912,
-0.35874491930007935,
-0.2566692531108856,
-0.6176712512969971,
-0.16178423166275024,
-0.10641324520111084,
0.18972788751125336,
0.48300766944885254,
0.17783847451210022,
0.2304897904396057,
0.37042471766471863,
-0.10688399523496628,
-0.02136285975575447,
-0.12869012355804443,
-0.19988426566123962,
0.19338494539260864,
0.06061320751905441,
-0.04771890863776207,
-0.22151951491832733,
0.3306259512901306,
0.05328863859176636,
0.2221890091896057,
0.2746855616569519,
-0.027760101482272148,
0.30277299880981445,
-0.32847344875335693,
0.012803789228200912,
0.018637770786881447,
0.37838491797447205,
-0.16730764508247375,
-0.26154547929763794,
-0.1401582956314087,
0.240666002035141,
-0.18567180633544922,
0.2258490025997162,
0.2011609971523285,
-0.23859919607639313,
-0.23078405857086182,
-0.09248673915863037,
-0.244817316532135,
-0.49422869086265564,
0.0012737978249788284,
-0.14867737889289856,
0.6484245657920837,
-0.009729629382491112,
0.295864075422287,
-0.10884840786457062,
0.03163030743598938,
0.10879789292812347,
-0.017453989014029503,
0.1367831826210022,
-0.10355418175458908,
-0.44121482968330383,
0.012114673852920532,
-0.18480071425437927,
-0.3475171625614166,
-0.15453088283538818,
0.17633157968521118,
0.024453260004520416,
0.03855203464627266,
0.46138837933540344,
0.2319643497467041,
-0.06487417221069336,
0.21338336169719696,
-0.16768242418766022,
0.2672361731529236,
0.31560391187667847,
0.17838387191295624,
0.05828222632408142,
-0.011022448539733887,
-0.2719787359237671,
-0.26180464029312134,
0.0919804722070694,
-0.04094630479812622,
0.18391352891921997,
-0.2599913477897644,
-0.18967054784297943,
-0.06472614407539368,
-0.2254168838262558,
-0.004805773496627808,
0.34276527166366577,
0.37950047850608826,
-0.3616907000541687,
0.02155483514070511,
0.39052122831344604,
0.09702250361442566,
-0.15715433657169342,
0.10861761122941971,
-0.0689174085855484,
0.36923784017562866,
-0.30539536476135254,
-0.1699036806821823,
0.25709301233291626,
-0.28327736258506775,
0.31903958320617676,
0.0521269217133522,
0.43821364641189575,
0.019435741007328033,
0.1652493178844452,
-0.03628411889076233,
-0.030519999563694,
0.3495334982872009,
0.1684820055961609,
-0.09932252764701843,
0.06731436401605606,
-0.13105186820030212,
0.04356004297733307,
0.16401074826717377,
-0.3027127981185913,
-0.1731039583683014,
-0.27772819995880127,
0.21805836260318756,
0.02398058772087097,
-0.08284730464220047,
-0.09560269117355347,
-0.23635923862457275,
0.13843317329883575,
-0.24626967310905457,
-0.1988413780927658,
-0.5774737000465393,
-0.15188249945640564,
0.10097450762987137,
0.35055863857269287,
-0.10600750148296356,
-0.25523900985717773,
-0.24292774498462677,
0.21696382761001587,
-0.04458274692296982,
0.1921146661043167,
0.16726906597614288,
-0.32135653495788574,
0.36413758993148804,
-0.22417965531349182,
-0.11627428233623505,
0.4368959069252014,
-0.15826350450515747,
-0.4274960160255432,
-0.052653148770332336,
-0.13175609707832336,
-0.18149006366729736,
0.2424347847700119,
-0.021029984578490257,
0.10271954536437988,
0.06948577612638474,
0.1587238609790802,
0.22124052047729492,
0.05506322532892227,
-0.06414716690778732,
0.07116226106882095,
-0.030114680528640747,
0.06930649280548096,
0.3470239043235779,
0.469692587852478,
0.0405193455517292,
-0.22032827138900757,
0.10528254508972168,
0.0011495668441057205,
-0.33499273657798767,
-0.07290896773338318,
0.19361621141433716,
0.0726027563214302,
0.19731730222702026,
0.23420538008213043,
-0.024151019752025604,
-0.2846355438232422,
0.43725311756134033,
-0.40783852338790894,
0.22019752860069275,
-0.40127405524253845,
0.2799264192581177,
0.07399772852659225,
0.2309342324733734,
-0.44054561853408813,
-0.029049251228570938,
0.07402122020721436,
0.2747325599193573,
0.14336657524108887,
-0.07165054231882095,
-0.04318852722644806,
0.16421522200107574,
-0.20154687762260437,
0.25705355405807495,
-0.029723379760980606,
0.16484394669532776,
-0.3522479236125946,
-0.2846185564994812,
-0.026778176426887512,
0.08328212797641754,
0.0867886170744896,
-0.1338348686695099,
-0.18519042432308197,
-0.02230536751449108,
0.05635131895542145,
-0.18563182651996613,
-0.4077396094799042,
0.010759115219116211,
0.21343450248241425,
-0.02648807317018509,
0.15463751554489136,
0.22619923949241638,
0.053507473319768906,
0.06594975292682648,
-0.05961299687623978,
0.2794194519519806,
0.07685281336307526,
0.33161938190460205,
0.15635892748832703,
0.12432730197906494,
0.3506568670272827,
0.1796322762966156,
-0.037096716463565826,
0.03125080466270447,
0.3116854727268219,
-0.18155045807361603,
0.3884935975074768,
-0.28034108877182007,
-0.06709398329257965,
-0.22698667645454407,
0.05822049081325531,
0.09681764245033264,
0.20945154130458832,
-0.05841856449842453,
-0.26416823267936707,
-0.01971546560525894,
0.16551248729228973,
0.020151451230049133,
0.17631122469902039,
0.08555419743061066,
-0.20542755722999573,
-0.07315810024738312,
-0.2630329728126526,
-0.28534597158432007,
0.01994866132736206,
0.205454021692276,
0.18034885823726654,
0.4772663712501526,
-0.02497723698616028,
-0.13536310195922852,
-0.20539656281471252,
-0.31538599729537964,
0.04423397779464722,
0.24649488925933838,
-0.016700908541679382,
0.1939777433872223,
0.021379441022872925,
-0.25878816843032837,
-0.15713395178318024,
0.06886705756187439,
-0.08306555449962616,
-0.07055944204330444,
-0.056711502373218536,
0.43709781765937805,
0.10463930666446686,
0.30158358812332153,
0.12426111102104187,
0.0017419010400772095,
0.09092936664819717,
-0.09151984751224518,
-0.10100492835044861,
-0.19977377355098724,
-0.1029306948184967,
0.0908149927854538,
0.013918206095695496,
-0.15220487117767334,
0.45308300852775574,
-0.022692445665597916,
0.23972973227500916,
-0.47522279620170593,
-0.4546355605125427,
0.2639150321483612,
0.09467123448848724,
0.07035587728023529,
0.08312797546386719,
-0.10046933591365814,
0.23054295778274536,
-0.11517539620399475,
0.2874082922935486,
-0.36674273014068604,
-0.009985465556383133,
0.17113134264945984,
-0.3040319085121155,
-0.09116101264953613,
-0.042921923100948334,
-0.23733605444431305,
-0.21311718225479126,
-0.2420700043439865,
-0.16253146529197693,
0.19256338477134705,
0.06929539144039154,
0.07107670605182648,
-0.04821145534515381,
0.23994988203048706,
0.06124066933989525,
0.4208263158798218,
-0.0505230575799942,
-0.014203064143657684,
0.3403245806694031,
-0.14491254091262817,
-0.45854130387306213,
0.19907830655574799,
-0.07102566212415695,
0.48737385869026184,
0.18767568469047546,
-0.3572618365287781,
-0.14321385324001312,
-0.08768551796674728,
-0.01040593534708023,
-0.23097248375415802,
-0.31549370288848877,
0.4347073435783386,
0.08586755394935608,
-0.001758527010679245,
-0.018087737262248993,
-0.2098880410194397,
-0.005836945027112961,
-0.1161857545375824,
0.11075110733509064,
0.018055856227874756,
0.521802544593811,
0.016134940087795258,
0.505434513092041,
-0.14929430186748505,
-0.18492311239242554,
0.07876065373420715,
-0.0914803072810173,
0.1306823343038559,
-0.0777425467967987,
-0.35435885190963745,
0.09092000126838684,
-0.07847707718610764,
0.04230920970439911,
-0.11436508595943451,
-0.23755091428756714,
-0.25456807017326355,
-0.2243155837059021,
0.13673236966133118,
0.20567259192466736,
-0.07492256164550781,
0.14705641567707062,
-0.02185182273387909,
0.23477335274219513,
-0.10058271884918213,
0.2911742031574249,
-0.058270152658224106,
-0.0206461139023304,
-0.006881896406412125,
0.4009917676448822,
0.24711240828037262,
0.04054940119385719,
-0.35047006607055664,
-0.4177761971950531,
-0.3089730739593506,
0.1535237431526184,
0.11115583032369614,
0.43414220213890076,
-0.25353163480758667,
0.13533920049667358,
0.251821905374527,
-0.07312923669815063,
0.13055011630058289,
0.20158864557743073,
-0.07694030553102493,
0.13044780492782593,
-0.5629464983940125,
-0.21404895186424255,
-0.40258362889289856,
-0.20411524176597595,
0.3084564805030823,
-0.137836754322052,
0.2591090202331543,
-0.0521872341632843,
-0.23618295788764954,
0.3772248327732086,
-0.0014558285474777222,
-0.3549470603466034,
-0.16548778116703033,
-0.3093603253364563,
-0.0071023255586624146,
-0.3891408443450928,
0.14182160794734955,
-0.16303548216819763,
0.1648109257221222,
0.10335003584623337,
0.1802527904510498,
-0.047827113419771194,
-0.06736238300800323,
-0.24184782803058624,
0.1251702606678009,
0.15085352957248688,
-0.17966623604297638,
0.020629815757274628,
0.25830867886543274,
0.4035358130931854,
0.02466202713549137,
0.1251707822084427,
0.16587364673614502,
-0.6877145171165466,
0.2279512882232666,
0.14377684891223907,
0.03375368192791939,
-0.0006095319986343384,
-0.2813969850540161,
-0.015133123844861984,
0.028864149004220963,
0.2616086006164551,
-0.27891257405281067,
0.2849280834197998,
0.4318096339702606,
0.04355476051568985,
-0.3361484706401825,
-0.5102329254150391,
-0.02851305902004242,
0.11905354261398315,
0.13070860505104065,
0.10727346688508987,
-0.3197687566280365,
-0.23879629373550415,
0.10094496607780457,
0.23397859930992126,
0.39980819821357727,
-0.1230272650718689,
0.163187175989151,
0.3690176010131836,
-0.05627724155783653,
0.6690495014190674,
-0.07014870643615723,
0.5010372400283813,
-0.29644975066185,
-0.023695506155490875,
-0.021967001259326935,
-0.33303511142730713,
0.12492360174655914,
-0.08943229913711548,
0.019607514142990112,
0.46159636974334717,
0.02274230122566223,
0.1879121959209442,
0.08244265615940094,
0.5432860851287842,
-0.05619325488805771,
-0.31517308950424194,
0.08934266865253448,
0.082431361079216,
-0.47152769565582275,
0.45541971921920776,
-0.11191903054714203,
0.12960611283779144,
0.26461732387542725,
-0.08539005368947983,
-0.20248669385910034,
0.3169838786125183,
-0.10351884365081787,
0.5135720372200012,
-0.2603100836277008,
-0.717881977558136,
0.22172819077968597,
0.19350025057792664,
0.04758013039827347,
-0.016391152516007423,
-0.08404408395290375,
0.2869558334350586,
-0.5260505080223083,
-0.26488804817199707,
-0.11868128180503845,
0.14465616643428802,
0.41260528564453125,
-0.17664113640785217,
-0.17508625984191895,
0.0456952229142189,
-0.020709242671728134,
-0.34803301095962524,
-0.14750586450099945,
0.022914940491318703,
0.5239813327789307,
0.05061178654432297,
0.1382591277360916,
-0.24367105960845947,
-0.19852754473686218,
-0.11875981092453003,
0.13928945362567902,
0.18644198775291443,
-0.19202056527137756,
0.009254496544599533,
0.11267022788524628,
-0.23677001893520355,
0.02677922323346138,
0.40350964665412903,
0.2485734075307846,
-0.07548540830612183,
0.7604895830154419,
0.2701001465320587,
-0.215338334441185,
-0.18952466547489166,
-0.5757738351821899,
0.1880677044391632,
-0.4746960401535034,
0.0904083251953125,
0.0883789137005806,
-0.0010321438312530518,
-0.025246495380997658,
0.08325214684009552,
0.24049295485019684,
-0.3185771703720093,
-0.20643901824951172,
-0.4979454576969147,
-0.2446029782295227,
-0.012177661061286926,
-0.09707358479499817,
0.1446903496980667,
0.4060984253883362,
0.021310634911060333,
-0.03745304048061371,
-0.1176229789853096,
-0.24866142868995667,
-0.08124604821205139,
-0.08575166761875153,
-0.017891034483909607,
0.028843775391578674,
-0.24645906686782837,
0.018050499260425568,
0.1339569389820099,
0.11658070981502533,
-0.016181260347366333,
-0.05232394114136696,
-0.13773028552532196,
-0.05938040465116501,
0.06380251795053482,
0.15011154115200043,
-0.18413208425045013,
-0.15671765804290771,
-0.3472018539905548,
-0.168695867061615,
0.0619376003742218,
0.35113441944122314,
0.07319783419370651,
-0.03360239788889885,
0.10005556046962738,
-0.181509330868721,
0.03056982532143593,
-0.239394873380661,
0.19995519518852234,
-0.1581183224916458,
-0.03445980325341225,
0.2619612216949463,
0.2125541716814041,
0.0491621308028698,
0.17512039840221405,
-0.2967495322227478,
0.01222175732254982,
-0.22475336492061615,
0.07957097887992859,
0.38787397742271423,
-0.5469017624855042,
0.3201330900192261,
-0.11404579877853394,
0.32639360427856445,
0.2481028139591217,
-0.11123707890510559,
0.006945744156837463,
0.20776274800300598,
0.192999467253685,
-0.3124341070652008,
-0.17502765357494354,
-0.20476463437080383,
0.02555326744914055,
0.19517090916633606,
-0.03369041532278061,
0.03352205455303192,
0.20342493057250977,
0.24184367060661316,
0.21766801178455353,
0.3072524666786194,
-0.2194328010082245,
0.16087239980697632,
0.2555875778198242,
-0.03151383996009827,
0.1866934597492218,
0.4408330023288727,
0.2895788848400116,
0.03443001210689545,
0.2087426334619522,
-0.05012349411845207,
0.26835519075393677,
-0.035519495606422424,
0.049307841807603836,
0.27842873334884644,
-0.14063751697540283,
-0.1351005733013153,
0.15987175703048706,
-0.06665346026420593,
-0.09757279604673386,
-0.23563621938228607,
0.13799381256103516,
-0.5082182884216309,
-0.001611705869436264,
-0.3276996612548828,
-0.06167208403348923,
-0.3606293201446533,
0.1335805505514145,
-0.25792840123176575,
-0.023372329771518707,
0.07977552711963654,
0.17723098397254944,
0.11178838461637497,
0.10143408179283142,
-0.44695231318473816,
0.12593750655651093,
-0.40831732749938965,
0.04446154832839966,
-0.23946313560009003,
0.3101459741592407,
-0.12115228176116943,
-0.08415824919939041,
0.18983584642410278,
0.29036247730255127,
-0.12193898856639862,
-0.11502489447593689,
0.17517761886119843,
0.47628581523895264,
0.14574086666107178,
0.04347001388669014,
-0.08061525225639343,
-0.02929488569498062,
-0.03212485462427139,
-0.01908242702484131,
0.2248753160238266,
0.20044037699699402,
-0.039776742458343506,
0.15629157423973083,
0.15418460965156555,
-0.11820243299007416,
0.1891733556985855,
0.12600156664848328,
0.024107422679662704,
0.11597064137458801,
0.26614782214164734,
0.0735388994216919,
-0.15479812026023865,
-0.13362616300582886,
-0.02617485821247101,
-0.31927797198295593,
-0.15224957466125488,
0.3894207775592804,
0.2127334624528885,
-0.23531962931156158,
-0.11317865550518036,
0.07375632226467133,
0.01578039675951004,
0.44649213552474976,
0.12910521030426025,
0.004601584747433662,
-0.12044142931699753,
0.03963489830493927,
-0.20765966176986694,
0.21962347626686096,
-0.023898765444755554,
0.01662888377904892,
0.12267646193504333,
0.09477893263101578,
-0.02647288516163826,
-0.025327926501631737,
0.303305059671402,
-0.12534110248088837,
0.12073332071304321,
-0.14345702528953552,
-0.2756645679473877,
-0.05758937820792198,
0.30880653858184814,
0.08149813860654831,
0.07550500333309174,
-0.2945994734764099,
0.016118597239255905,
0.022224318236112595,
0.11124926805496216,
-0.2723047733306885,
0.05816300958395004,
0.09985174983739853,
-0.3974205255508423,
0.2679630517959595,
-0.08305086940526962,
0.7890287637710571,
0.09276147931814194,
-0.10290848463773727,
-0.004499657079577446,
-0.20567050576210022,
-0.3405405282974243,
0.27081701159477234,
0.09723196923732758,
0.5719092488288879,
0.16132406890392303,
-0.12863300740718842,
-0.4244959056377411,
0.3670106530189514,
-0.16975586116313934,
-0.666180431842804,
-0.16411751508712769,
0.1922508180141449,
-0.11734072864055634,
0.25027042627334595,
0.22450248897075653,
0.10295452177524567,
0.30653083324432373,
-0.28956231474876404,
-0.3585675358772278,
-0.12027998268604279,
0.580431342124939,
-0.2649388015270233,
-0.2065293788909912,
-0.28632232546806335,
0.14597266912460327,
-0.16293933987617493,
0.13018715381622314,
-0.1651323437690735,
0.11296091973781586,
0.026145506650209427,
-0.003977478481829166,
-0.01535072922706604,
0.2036133110523224,
0.24844393134117126,
0.16647258400917053,
-0.140039324760437,
0.44262728095054626,
-0.14893001317977905,
-0.23235461115837097,
-0.38598841428756714,
-0.2470759004354477
] |
https://github.com/huggingface/datasets/issues/2067 | Hi ! Thanks for reporting.
This looks like a bug, could you try to provide a minimal code example that reproduces the issue ? This would be very helpful !
Otherwise I can try to run the wav2vec2 code above on my side but probably not this week.. | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 48 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Hi ! Thanks for reporting.
This looks like a bug, could you try to provide a minimal code example that reproduces the issue ? This would be very helpful !
Otherwise I can try to run the wav2vec2 code above on my side but probably not this week.. | [
-0.05814218521118164,
-0.45367881655693054,
-0.03556230664253235,
0.2569918632507324,
0.08609446883201599,
-0.003773897886276245,
0.11553118377923965,
-0.06296030431985855,
0.04080414026975632,
0.3191870450973511,
0.2538124918937683,
0.07012895494699478,
-0.3072562515735626,
-0.04254570230841637,
-0.22199419140815735,
-0.2463470995426178,
0.18920794129371643,
-0.12947484850883484,
0.3075396418571472,
0.33531323075294495,
-0.4257969856262207,
0.5416622757911682,
-0.402621328830719,
0.19734877347946167,
-0.41432613134384155,
0.005931446328759193,
-0.2583840489387512,
0.49445641040802,
0.389454185962677,
-0.3567267060279846,
0.07124724239110947,
-0.39317786693573,
0.15090127289295197,
0.15283869206905365,
-0.00012249735300429165,
-0.12420676648616791,
0.03992471843957901,
-0.04017939791083336,
0.41068562865257263,
0.23250646889209747,
0.23275074362754822,
0.11603298783302307,
-0.08967147767543793,
-0.00013643503189086914,
0.18030890822410583,
0.3176901936531067,
0.023025354370474815,
-0.043663717806339264,
0.37888777256011963,
0.24942342936992645,
0.10863520205020905,
0.2697452902793884,
0.05848154425621033,
-0.017271729186177254,
-0.33739250898361206,
-0.40872272849082947,
-0.035606879740953445,
0.18798880279064178,
0.48002737760543823,
-0.38807016611099243,
0.20810402929782867,
0.2298605591058731,
-0.24762240052223206,
0.022245284169912338,
-0.30439478158950806,
0.004737980663776398,
0.37761661410331726,
-0.5156354904174805,
0.07045754790306091,
-0.08932788670063019,
-0.10664313286542892,
-0.1918100267648697,
0.31751105189323425,
0.09562385827302933,
0.12410402297973633,
-0.8489115238189697,
0.11942233145236969,
0.2649231255054474,
-0.38564738631248474,
0.09654632210731506,
-0.03316865861415863,
0.06999854743480682,
-0.060277972370386124,
-0.1735406219959259,
0.15583139657974243,
-0.05035770311951637,
0.05992021784186363,
0.16525232791900635,
0.12970338761806488,
0.3123301565647125,
-0.28530725836753845,
0.29926690459251404,
-0.0785919651389122,
0.056382231414318085,
-0.45823076367378235,
-0.010789364576339722,
0.024560563266277313,
0.21383409202098846,
-0.3155739903450012,
-0.21936911344528198,
-0.07228150218725204,
0.05770927295088768,
0.2103293389081955,
0.18776538968086243,
0.2185831218957901,
-0.18825635313987732,
0.04422890022397041,
-0.5686365365982056,
0.16752243041992188,
-0.5050086975097656,
-0.14249494671821594,
-0.08116793632507324,
-0.008024297654628754,
-0.5607302784919739,
0.3573494553565979,
0.3995010554790497,
0.230215385556221,
-0.10807303339242935,
-0.33860835433006287,
0.21012118458747864,
-0.04086406156420708,
0.29010695219039917,
0.2734653353691101,
0.297185480594635,
0.3146834373474121,
0.7152175307273865,
-0.01778261363506317,
0.25139421224594116,
-0.5292391180992126,
0.06867282837629318,
0.07883486151695251,
0.12384258210659027,
-0.2765548825263977,
0.10745836049318314,
0.21243681013584137,
0.01877237856388092,
0.19029222428798676,
0.13903522491455078,
0.2973754107952118,
-0.3688143491744995,
-0.018452603369951248,
-0.20974884927272797,
-0.17067377269268036,
0.21967455744743347,
0.23052304983139038,
0.19683799147605896,
-0.009325368329882622,
0.06100763380527496,
0.02385367453098297,
0.22543370723724365,
-0.38235828280448914,
-0.35442978143692017,
-0.12698811292648315,
0.025281362235546112,
0.39795440435409546,
0.4406099021434784,
0.34505218267440796,
-0.1068727970123291,
0.3525730073451996,
-0.32990768551826477,
-0.12402620911598206,
-0.4204719662666321,
-0.3616982102394104,
-0.3426903188228607,
-0.08012629300355911,
0.29534912109375,
0.030153267085552216,
0.31209343671798706,
0.30055469274520874,
-0.05833354964852333,
0.18983058631420135,
0.34202757477760315,
0.23217613995075226,
-0.15416988730430603,
-0.14279073476791382,
-0.05129814147949219,
-0.2075473964214325,
-0.24476280808448792,
0.02872617542743683,
0.10450848191976547,
-0.08764883875846863,
-0.0770462155342102,
0.24264240264892578,
0.09129347652196884,
-0.14054344594478607,
-0.3693988025188446,
0.45935148000717163,
-0.24297069013118744,
-0.14236772060394287,
0.2521112561225891,
-0.18322139978408813,
0.08267699182033539,
-0.03617837280035019,
0.015551961958408356,
0.05547071248292923,
-0.039352964609861374,
-0.06999759376049042,
-0.07501623034477234,
0.2342376708984375,
0.12123434245586395,
0.007189668715000153,
0.29431870579719543,
0.2643739879131317,
-0.025582756847143173,
0.04727978631854057,
-0.3173384666442871,
0.025003310292959213,
0.09443157911300659,
-0.1837327480316162,
-0.059316486120224,
0.44183993339538574,
0.14879730343818665,
0.19144876301288605,
0.2850690484046936,
-0.15779051184654236,
-0.286676824092865,
0.0075830332934856415,
-0.08881047368049622,
0.03141512721776962,
-0.20195841789245605,
0.04160235822200775,
0.5415998697280884,
0.09244851022958755,
-0.20502085983753204,
-0.07755561172962189,
-0.043245285749435425,
-0.3279133141040802,
-0.3441633880138397,
-0.09580458700656891,
0.3061348795890808,
0.23242411017417908,
0.2131822258234024,
0.09310902655124664,
0.22492492198944092,
0.17834870517253876,
-0.1250433623790741,
-0.17883837223052979,
-0.01898425817489624,
0.1657315492630005,
-0.3093583881855011,
0.09457594156265259,
0.02339772880077362,
0.16863757371902466,
-0.274084210395813,
0.4795755445957184,
0.11126440763473511,
-0.0392509326338768,
0.24645282328128815,
-0.16478869318962097,
0.18577705323696136,
0.12391483038663864,
0.08680509030818939,
0.25008198618888855,
0.29579854011535645,
0.35409918427467346,
0.07377685606479645,
-0.094307079911232,
-0.37737178802490234,
-0.3285283148288727,
0.06343528628349304,
0.151941180229187,
0.23935753107070923,
-0.02599107101559639,
0.058411117643117905,
-0.19903698563575745,
0.201797217130661,
-0.016757722944021225,
-0.45247262716293335,
0.7369388937950134,
0.07086852192878723,
-0.15863734483718872,
0.30138275027275085,
-0.3818296790122986,
-0.10298275947570801,
0.256470650434494,
0.05587587505578995,
0.01425069198012352,
0.15148717164993286,
-0.07932133972644806,
-0.07018581032752991,
0.015665903687477112,
-0.06301737576723099,
-0.11213892698287964,
0.024523640051484108,
-0.3366856873035431,
0.14371207356452942,
-0.07035277038812637,
0.5119799375534058,
-0.3930770754814148,
-0.4185871481895447,
-0.015863994136452675,
-0.14486569166183472,
0.07371047139167786,
0.4412175416946411,
-0.1272926926612854,
-0.0961337760090828,
0.016548477113246918,
0.004298612475395203,
0.12297471612691879,
0.2859155833721161,
0.3148190379142761,
-0.042182352393865585,
-0.10145658254623413,
-0.09973617643117905,
0.2983357906341553,
-0.16474904119968414,
0.2087993025779724,
0.35323047637939453,
-0.03722406178712845,
0.08494415134191513,
0.1645265817642212,
-0.00950910896062851,
0.057611990720033646,
0.26229843497276306,
0.04403512924909592,
0.037500157952308655,
0.1767672449350357,
-0.41250619292259216,
0.0998600572347641,
-0.3187250792980194,
0.19152173399925232,
0.2610322833061218,
0.17134146392345428,
-0.39749616384506226,
-0.2762925624847412,
-0.028308384120464325,
-0.42769044637680054,
-0.1810946762561798,
0.05519915372133255,
-0.18468314409255981,
0.2561764717102051,
-0.25474604964256287,
0.09003876894712448,
0.08470585197210312,
0.26424211263656616,
-0.20377066731452942,
-0.14338092505931854,
0.17167958617210388,
-0.08444222807884216,
-0.2580582797527313,
-0.1759231686592102,
0.25074681639671326,
0.16632689535617828,
0.034059811383485794,
-0.23007506132125854,
-0.18440620601177216,
-0.3176005482673645,
0.01960889808833599,
0.03227318078279495,
-0.057280369102954865,
0.2107919305562973,
0.38464081287384033,
0.1109752357006073,
-0.09155136346817017,
0.024196192622184753,
-0.11187072843313217,
0.12265515327453613,
0.02505362778902054,
0.14209961891174316,
0.22012419998645782,
0.07127358019351959,
-0.16959774494171143,
0.5418451428413391,
0.5851693153381348,
0.12319602072238922,
0.3024076223373413,
0.11544636636972427,
0.016769804060459137,
0.03435331583023071,
-0.18132749199867249,
0.04325798898935318,
-0.4538235664367676,
-0.18460655212402344,
0.18527725338935852,
0.13678881525993347,
-0.36916202306747437,
-0.2682441473007202,
0.20604491233825684,
-0.34498363733291626,
-0.11765480041503906,
0.08894580602645874,
0.09459389746189117,
0.21256330609321594,
-0.20404052734375,
-0.033610761165618896,
0.09818191081285477,
0.06724610924720764,
-0.19226832687854767,
0.16430658102035522,
-0.1859419345855713,
-0.211478590965271,
-0.005840100347995758,
-0.5571391582489014,
-0.38482311367988586,
0.32805973291397095,
0.12192337960004807,
0.5821324586868286,
-0.06776493787765503,
-0.17201338708400726,
-0.07614494115114212,
-0.30844780802726746,
0.8612223863601685,
-0.12406542897224426,
-0.17287202179431915,
0.20275133848190308,
0.21316926181316376,
0.04803287237882614,
-0.1954340636730194,
-0.20255880057811737,
0.37669098377227783,
0.058495305478572845,
-0.08274015784263611,
0.33472299575805664,
0.014659341424703598,
0.05775285139679909,
-0.07586359232664108,
-0.1576247662305832,
-0.11390314251184464,
-0.39562708139419556,
-0.26471996307373047,
0.07987013459205627,
0.29542332887649536,
0.06083356589078903,
0.018323086202144623,
-0.4867066442966461,
0.058887504041194916,
0.12653358280658722,
-0.047632861882448196,
0.2799255847930908,
-0.10757320374250412,
0.10518831014633179,
-0.19546622037887573,
0.20812830328941345,
-0.30918097496032715,
0.3162391185760498,
-0.22098134458065033,
-0.030438873916864395,
-0.11674104630947113,
0.21736320853233337,
0.34339794516563416,
-0.1115775927901268,
0.46179530024528503,
0.4835233688354492,
0.10734689235687256,
0.0466570109128952,
-0.302340030670166,
0.3954613506793976,
-0.2997341454029083,
-0.29299527406692505,
0.3063976764678955,
0.22527319192886353,
0.10647641122341156,
0.3608357608318329,
0.26589494943618774,
0.1251865029335022,
-0.09708271920681,
0.5405083298683167,
-0.2946853041648865,
-0.06812036782503128,
-0.05785166472196579,
0.09798213839530945,
0.9706499576568604,
0.16721764206886292,
0.1279156357049942,
0.06668706238269806,
-0.4959297776222229,
-0.20375597476959229,
-0.12534990906715393,
0.3211532235145569,
-0.25029823184013367,
-0.20166414976119995,
0.04836560785770416,
-0.10472134500741959,
0.15142922103405,
-0.11486166715621948,
-0.3159126341342926,
0.43448391556739807,
0.08562666177749634,
-0.24076798558235168,
-0.10794185101985931,
-0.33933407068252563,
-0.06388404965400696,
-0.16768184304237366,
0.05291789397597313,
0.03333684056997299,
0.12992170453071594,
-0.07859516143798828,
-0.2901930510997772,
0.16032548248767853,
0.43778055906295776,
-0.38648131489753723,
-0.5973954796791077,
0.05852615833282471,
-0.22185540199279785,
0.12962111830711365,
0.02470066025853157,
0.21419505774974823,
0.11333954334259033,
0.3457569479942322,
0.18833160400390625,
-0.06397450715303421,
-0.25100940465927124,
0.03703991696238518,
0.41175463795661926,
-0.025216789916157722,
-0.12669944763183594,
0.018613651394844055,
-0.12159748375415802,
-0.14543437957763672,
-0.26242882013320923,
0.34676027297973633,
-0.17874003946781158,
-0.05812873691320419,
-0.3553861677646637,
0.3969111144542694,
0.06647743284702301,
0.22348180413246155,
-0.17888544499874115,
0.259115993976593,
-0.09721454232931137,
-0.18638482689857483,
0.07092636823654175,
0.08987599611282349,
-0.5308446884155273,
0.49425965547561646,
-0.5991373658180237,
-0.08748625218868256,
0.040423475205898285,
0.08994706720113754,
-0.004493911750614643,
-0.14277958869934082,
0.1440739631652832,
0.2740442752838135,
-0.037534020841121674,
-0.189378023147583,
-0.08322659879922867,
-0.5538095235824585,
-0.0639178454875946,
-0.03810317814350128,
0.3845424950122833,
-0.13657909631729126,
0.1988968700170517,
-0.2631216049194336,
0.03435251861810684,
0.08596688508987427,
0.00007655471563339233,
-0.4166378974914551,
-0.15240633487701416,
-0.08183637261390686,
-0.10891687870025635,
0.07616358250379562,
-0.06807373464107513,
0.04931030422449112,
0.12972676753997803,
0.030705058947205544,
-0.22120431065559387,
0.049632005393505096,
-0.14512892067432404,
0.10468797385692596,
0.05240841954946518,
-0.19594305753707886,
-0.11743084341287613,
0.17339083552360535,
-0.013985682278871536,
0.33724257349967957,
-0.27686625719070435,
-0.07661068439483643,
0.0311620831489563,
0.12523609399795532,
-0.10287707298994064,
-0.012093577533960342,
0.144331157207489,
0.11662071198225021,
0.04616527259349823,
0.07222216576337814,
0.1374603807926178,
0.0705852210521698,
-0.2863956391811371,
0.10496678948402405,
-0.03686084225773811,
0.26697829365730286,
0.14011874794960022,
0.29923903942108154,
-0.11956904828548431,
0.4209020733833313,
0.07167275249958038,
0.01219291053712368,
0.10211054235696793,
-0.0031002461910247803,
-0.021077364683151245,
0.007285714149475098,
-0.15871897339820862,
-0.1828371286392212,
-0.1783350110054016,
-0.14513489603996277,
-0.22224238514900208,
-0.16027691960334778,
0.18009218573570251,
0.2320830374956131,
-0.1891259104013443,
0.35960397124290466,
0.3616657257080078,
0.1855931133031845,
-0.17673984169960022,
0.100949227809906,
-0.08479484915733337,
-0.11321466416120529,
-0.20287969708442688,
0.3118569254875183,
0.19511444866657257,
-0.4828324317932129,
0.3124464750289917,
0.07684582471847534,
0.2162153273820877,
-0.39971569180488586,
-0.32706397771835327,
0.09996313601732254,
0.21165168285369873,
0.15684014558792114,
-0.11750636994838715,
-0.16229839622974396,
0.0289105586707592,
0.5074877142906189,
-0.010263144969940186,
0.14452168345451355,
-0.16567306220531464,
0.060352422297000885,
-0.0937686562538147,
-0.2105654776096344,
-0.2816865146160126,
0.11445851624011993,
-0.30638325214385986,
0.4082041382789612,
-0.26976892352104187,
0.4192982316017151,
-0.590057373046875,
-0.31318292021751404,
-0.3440954089164734,
0.34098052978515625,
-0.2885805368423462,
-0.12610408663749695,
0.13793645799160004,
0.013824477791786194,
0.029238328337669373,
0.10499568283557892,
0.3350331485271454,
0.10359197854995728,
0.5011778473854065,
0.1839788258075714,
-0.12753669917583466,
-0.02470795065164566,
-0.24112719297409058,
0.24837979674339294,
0.014742746949195862,
-0.20528413355350494,
0.19892430305480957,
0.43187254667282104,
-0.07154864072799683,
-0.16164162755012512,
-0.017358042299747467,
0.5543358325958252,
0.3776862621307373,
-0.720274031162262,
-0.05498070269823074,
0.1337958425283432,
0.16199088096618652,
0.039095520973205566,
0.18314693868160248,
0.18679726123809814,
0.2772274911403656,
-0.030189640820026398,
-0.03593024984002113,
-0.05722478777170181,
0.033589255064725876,
0.3075830042362213,
0.2061607986688614,
-0.02191914990544319,
0.2436191886663437,
-0.17959046363830566,
-0.1927601397037506,
0.09783603996038437,
0.14973096549510956,
-0.597498893737793,
0.03358333557844162,
0.2408355176448822,
-0.34228670597076416,
0.0626598596572876,
0.10909047722816467,
0.02392013743519783,
-0.04537706449627876,
0.37042316794395447,
-0.07111486792564392,
0.33025771379470825,
-0.2325228750705719,
-0.20240189135074615,
-0.3596876859664917,
0.0660741850733757,
0.030629165470600128,
0.08327673375606537,
-0.14726613461971283,
-0.16488251090049744,
-0.09343778342008591,
0.1557215005159378,
0.06484473496675491,
0.14286856353282928,
0.2611777186393738,
0.7247502207756042,
-0.6224195957183838,
0.2886499762535095,
0.3918007016181946,
-0.029620984569191933,
0.24714790284633636,
-0.40015125274658203,
0.1693502515554428,
0.010367605835199356,
0.002228483557701111,
-0.17733383178710938,
0.15398922562599182,
-0.16941556334495544,
0.446898877620697,
0.15492817759513855,
0.06436470150947571,
0.26956331729888916,
0.0336148664355278,
-0.11734827607870102,
0.01934003457427025,
0.2997877299785614,
0.30062010884284973,
-0.5452708005905151,
0.21351397037506104,
0.07730711996555328,
-0.44845786690711975,
-0.019957110285758972,
0.009789630770683289,
-0.0015113502740859985,
0.11823801696300507,
0.1396419107913971,
-0.15437358617782593,
0.019128061830997467,
-0.09322161972522736,
0.14225974678993225,
0.0317067876458168,
0.3753749132156372,
-0.03673144429922104,
0.1789431869983673,
-0.23781843483448029,
0.05141335725784302,
0.08945560455322266,
-0.17669075727462769,
-0.31629663705825806,
-0.3609883189201355,
0.5703048706054688,
-0.4823662042617798,
0.10833156853914261,
-0.056699804961681366,
-0.12746688723564148,
-0.05276917666196823,
0.07121536880731583,
-0.621537446975708,
0.2518402934074402,
-0.360824316740036,
-0.6840994358062744,
0.18339404463768005,
-0.1227835863828659,
0.11387931555509567,
-0.047870926558971405,
0.29180341958999634,
-0.18875724077224731
] |
https://github.com/huggingface/datasets/issues/2067 | ```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
``` | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 22 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
```
from datasets import load_dataset
dataset = load_dataset('glue', 'mrpc', split='train')
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
``` | [
-0.21642139554023743,
-0.2695314884185791,
-0.030776336789131165,
0.18502293527126312,
0.17840233445167542,
0.1376417726278305,
0.057568926364183426,
-0.0025019999593496323,
0.008718162775039673,
0.2766420543193817,
0.14897456765174866,
0.1610603928565979,
-0.28545236587524414,
-0.10231790691614151,
-0.12377551198005676,
-0.18284724652767181,
0.19459767639636993,
-0.16329815983772278,
0.2638877332210541,
0.34032654762268066,
-0.4150702655315399,
0.4792792797088623,
-0.3459641933441162,
0.07344914972782135,
-0.5422177314758301,
-0.10415823012590408,
-0.297615110874176,
0.4396464228630066,
0.19728893041610718,
-0.45179978013038635,
-0.013877443969249725,
-0.1838335543870926,
0.2181248664855957,
0.17760227620601654,
-0.00012069214426446706,
-0.10656434297561646,
0.05752434954047203,
-0.021633990108966827,
0.3331862986087799,
0.229483962059021,
0.09891550242900848,
0.028636939823627472,
-0.08903171867132187,
-0.08559682965278625,
0.1740061640739441,
0.29788878560066223,
0.09632784128189087,
-0.1282740831375122,
0.5274693965911865,
0.38252362608909607,
0.07585729658603668,
0.22729706764221191,
0.08764806389808655,
0.00782054290175438,
-0.18784166872501373,
-0.2888143062591553,
0.02035549283027649,
0.20242668688297272,
0.540601372718811,
-0.30690163373947144,
0.08760964870452881,
0.2608897089958191,
-0.3369729816913605,
0.005856107920408249,
-0.3788694441318512,
-0.0015092305839061737,
0.3409762978553772,
-0.49721473455429077,
0.13559529185295105,
-0.06810163706541061,
-0.013013113290071487,
-0.3219808042049408,
0.15283676981925964,
-0.02167445421218872,
0.18630599975585938,
-0.8767050504684448,
-0.011593535542488098,
0.1989574432373047,
-0.31447601318359375,
0.074117012321949,
-0.15295617282390594,
-0.05945510417222977,
-0.0408121719956398,
-0.1191428005695343,
0.18302547931671143,
0.023044656962156296,
0.04270706698298454,
0.16738423705101013,
0.24123843014240265,
0.22891728579998016,
-0.19544589519500732,
0.2736678421497345,
-0.10217936336994171,
0.13654302060604095,
-0.5750362277030945,
-0.003418959677219391,
-0.035842377692461014,
0.11982980370521545,
-0.24780447781085968,
-0.36532801389694214,
-0.010133188217878342,
0.06694267690181732,
0.2934775650501251,
0.1694192886352539,
0.2630364000797272,
-0.1541759967803955,
0.05055205896496773,
-0.5396240949630737,
0.23374652862548828,
-0.49707290530204773,
-0.17936131358146667,
-0.0397484190762043,
-0.039352163672447205,
-0.5704107284545898,
0.32871320843696594,
0.4325675666332245,
0.29499685764312744,
-0.07710909843444824,
-0.3808993101119995,
0.19823017716407776,
-0.034311890602111816,
0.15759392082691193,
0.1864149272441864,
0.2853849530220032,
0.3009818196296692,
0.6022767424583435,
-0.10891173779964447,
0.2430972456932068,
-0.5615466833114624,
-0.024918917566537857,
0.006589829921722412,
0.026332508772611618,
-0.36802375316619873,
0.14882785081863403,
0.26858365535736084,
0.053636129945516586,
0.124918632209301,
0.1504223644733429,
0.13725416362285614,
-0.37017202377319336,
-0.1397935152053833,
-0.23612938821315765,
-0.2652796506881714,
0.2284744828939438,
0.2142869234085083,
0.2383061796426773,
-0.047464270144701004,
-0.023805856704711914,
0.026290982961654663,
0.3022710084915161,
-0.3516973853111267,
-0.3986416161060333,
-0.12663818895816803,
0.031595464795827866,
0.3112637996673584,
0.2649719715118408,
0.08642122149467468,
0.14119715988636017,
0.4162355363368988,
-0.26842767000198364,
-0.1504579484462738,
-0.3968692421913147,
-0.2766779065132141,
-0.307866632938385,
-0.06563898921012878,
0.4170381426811218,
-0.13652732968330383,
0.290033221244812,
0.2960907220840454,
0.03144318237900734,
0.19459214806556702,
0.36554330587387085,
0.15528161823749542,
-0.08138542622327805,
-0.050569724291563034,
0.0832354873418808,
-0.020559921860694885,
-0.2881665825843811,
-0.19922509789466858,
0.1760379821062088,
-0.07383177429437637,
-0.09783808887004852,
0.315591037273407,
0.16299200057983398,
0.08186829090118408,
-0.2875575125217438,
0.4907431900501251,
-0.16385938227176666,
-0.11479278653860092,
0.21943210065364838,
-0.1701686531305313,
0.11430361121892929,
0.002051093615591526,
0.05975433439016342,
0.00550426822155714,
-0.10012301057577133,
-0.07470415532588959,
-0.08218613266944885,
0.3725980222225189,
0.04935272037982941,
0.032932206988334656,
0.4288320541381836,
0.12511372566223145,
0.04267934709787369,
-0.03800343722105026,
-0.441200852394104,
-0.1410391628742218,
0.036427393555641174,
-0.14548265933990479,
0.12022112309932709,
0.21549151837825775,
0.012319855391979218,
0.1436549723148346,
0.27996712923049927,
-0.17073169350624084,
-0.36521339416503906,
0.026243790984153748,
-0.08552801609039307,
0.047041699290275574,
-0.2536361813545227,
-0.07403357326984406,
0.5049322843551636,
-0.04102940112352371,
-0.06585211306810379,
-0.1183069497346878,
-0.03570546954870224,
-0.2768334448337555,
-0.4343215823173523,
-0.037774208933115005,
0.3438783288002014,
0.2160581350326538,
0.14897620677947998,
0.04803913086652756,
0.3426547944545746,
0.18630556762218475,
0.008138373494148254,
-0.1519271582365036,
-0.06055864691734314,
0.21190403401851654,
-0.30943381786346436,
0.0922357365489006,
0.04352620616555214,
0.16802306473255157,
-0.19742465019226074,
0.33086293935775757,
0.05125230923295021,
0.04555812478065491,
0.30312466621398926,
-0.1308646947145462,
0.12745699286460876,
0.13500823080539703,
0.12182888388633728,
0.15686282515525818,
0.15459799766540527,
0.27939966320991516,
0.0749836266040802,
-0.027177978307008743,
-0.26463058590888977,
-0.30501389503479004,
0.02481096051633358,
0.27887293696403503,
0.15748442709445953,
0.007560477592051029,
0.04768051952123642,
-0.32259640097618103,
0.12227553129196167,
-0.022054452449083328,
-0.3254919648170471,
0.7709752321243286,
0.1396937370300293,
-0.09179212152957916,
0.29219529032707214,
-0.43721500039100647,
-0.10928620398044586,
0.2887382209300995,
0.09581534564495087,
0.01829163357615471,
0.12131541967391968,
-0.07258782535791397,
-0.006696317344903946,
-0.1947631984949112,
-0.08003167062997818,
0.0012706741690635681,
0.16168329119682312,
-0.39431148767471313,
0.056744568049907684,
-0.14572705328464508,
0.3488927483558655,
-0.38662365078926086,
-0.41303446888923645,
-0.043693531304597855,
-0.20898345112800598,
-0.00449945405125618,
0.3486008048057556,
-0.008753634989261627,
0.09810439497232437,
0.05096834897994995,
-0.15003231167793274,
0.14289312064647675,
0.14551942050457,
0.2662489414215088,
-0.0906190574169159,
-0.12540963292121887,
-0.10486762225627899,
0.3953678011894226,
-0.14870835840702057,
0.2262793928384781,
0.25367024540901184,
0.05338110029697418,
-0.02277025207877159,
0.12295708805322647,
-0.10322169959545135,
0.001377440057694912,
0.36771339178085327,
0.034486494958400726,
0.07142581045627594,
0.07288850843906403,
-0.37511929869651794,
0.13725616037845612,
-0.30810806155204773,
0.18053841590881348,
0.14202716946601868,
0.17696481943130493,
-0.42816513776779175,
-0.15453556180000305,
-0.23902109265327454,
-0.4491521716117859,
-0.20150433480739594,
0.04727346450090408,
-0.26944494247436523,
0.25836899876594543,
-0.26008370518684387,
0.14037644863128662,
0.12281966954469681,
0.30627962946891785,
-0.10060547292232513,
-0.1949615329504013,
0.20938332378864288,
-0.05337071046233177,
-0.26595568656921387,
-0.21523568034172058,
0.09531854838132858,
0.1492292881011963,
-0.008938957005739212,
-0.07561375200748444,
-0.20120283961296082,
-0.3000940680503845,
-0.13289311528205872,
-0.004120722413063049,
-0.0031264242716133595,
0.3379206955432892,
0.504485011100769,
0.15376518666744232,
-0.08958625793457031,
0.028056174516677856,
-0.1914941370487213,
0.08168675005435944,
0.1449466049671173,
0.14349478483200073,
0.15601825714111328,
0.1827499121427536,
-0.12496510148048401,
0.4865589737892151,
0.6543412804603577,
-0.006632042117416859,
0.3675020635128021,
0.000898212194442749,
0.0191048551350832,
0.010392643511295319,
-0.2558257579803467,
0.07087797671556473,
-0.44345158338546753,
-0.09433452785015106,
0.19675223529338837,
0.14017440378665924,
-0.3902769982814789,
-0.2533399164676666,
0.19719362258911133,
-0.3684372305870056,
-0.16614852845668793,
0.16767527163028717,
0.02873532846570015,
0.2189524918794632,
-0.09089891612529755,
-0.08637689054012299,
0.017485596239566803,
0.02334502339363098,
-0.14182010293006897,
0.14240556955337524,
-0.19119380414485931,
-0.20005162060260773,
-0.16224634647369385,
-0.4725293517112732,
-0.5464193224906921,
0.4420814514160156,
0.1902509480714798,
0.5572493672370911,
-0.0004186108708381653,
-0.10336345434188843,
-0.007723275572061539,
-0.2483179122209549,
0.9616148471832275,
-0.25579237937927246,
-0.23216360807418823,
0.26235640048980713,
0.31858745217323303,
-0.14501044154167175,
-0.06318129599094391,
-0.31865015625953674,
0.3344961404800415,
0.15415799617767334,
0.072203628718853,
0.2450813204050064,
-0.1232590526342392,
0.11160583794116974,
-0.09644068777561188,
-0.16937796771526337,
-0.12990325689315796,
-0.30902862548828125,
-0.29477009177207947,
-0.10303450375795364,
0.25471001863479614,
0.07254519313573837,
0.06472346186637878,
-0.28760063648223877,
-0.03046976774930954,
0.05571907013654709,
-0.0892975777387619,
0.32426145672798157,
-0.05140511319041252,
0.17787539958953857,
-0.008767344057559967,
0.12907223403453827,
-0.3243989050388336,
0.3358862102031708,
-0.10609333217144012,
0.06696906685829163,
-0.25745347142219543,
0.12268348783254623,
0.24834449589252472,
-0.08436571061611176,
0.5241110324859619,
0.4933411478996277,
0.05577494949102402,
-0.007919911295175552,
-0.3167232871055603,
0.4300363063812256,
-0.31851667165756226,
-0.09908692538738251,
0.4587605595588684,
0.41840749979019165,
-0.05521014332771301,
0.0967346653342247,
0.3463328182697296,
0.20581331849098206,
-0.1845184713602066,
0.3874590992927551,
-0.19013282656669617,
-0.18937896192073822,
0.0983557179570198,
0.11404652893543243,
1.0056906938552856,
0.020904328674077988,
0.19676335155963898,
-0.036347534507513046,
-0.41719961166381836,
-0.08780388534069061,
-0.1630505621433258,
0.3706018030643463,
-0.17691472172737122,
-0.19231674075126648,
0.018591850996017456,
-0.06885549426078796,
0.2651752531528473,
0.03026946447789669,
-0.3834731876850128,
0.5674392580986023,
0.16103340685367584,
-0.22660976648330688,
-0.09264057874679565,
-0.1582125872373581,
-0.14060665667057037,
-0.282017320394516,
-0.09943258762359619,
0.015465103089809418,
0.05811035633087158,
-0.1524651050567627,
-0.24077069759368896,
0.16428713500499725,
0.3962033689022064,
-0.3548477292060852,
-0.5855563879013062,
-0.022485073655843735,
-0.39428117871284485,
0.15943725407123566,
-0.14407187700271606,
0.1530199646949768,
0.07048562914133072,
0.5233255624771118,
0.11553597450256348,
-0.026822660118341446,
-0.19012878835201263,
0.028517547994852066,
0.47664961218833923,
-0.04358764737844467,
0.0016902796924114227,
0.03641587868332863,
0.10924047976732254,
-0.13053089380264282,
-0.3378484845161438,
0.29884085059165955,
-0.15085235238075256,
-0.09667840600013733,
-0.293201744556427,
0.1758430451154709,
0.13696949183940887,
0.050684165209531784,
-0.2225041687488556,
0.2744399309158325,
-0.06368038058280945,
-0.247529074549675,
0.04863975942134857,
0.03690977394580841,
-0.46898698806762695,
0.6542812585830688,
-0.5486724376678467,
-0.16867946088314056,
0.0071557071059942245,
0.19733089208602905,
0.0030325185507535934,
-0.1446201056241989,
0.24448253214359283,
0.29996752738952637,
-0.02373548597097397,
-0.19717133045196533,
-0.12121664732694626,
-0.4443231225013733,
-0.08502200245857239,
-0.021259984001517296,
0.33506661653518677,
-0.11419574916362762,
0.20376244187355042,
-0.19730831682682037,
0.12672805786132812,
0.11229237914085388,
0.01361151784658432,
-0.46400153636932373,
-0.30026888847351074,
0.025987915694713593,
0.0194076020270586,
0.14997956156730652,
0.002245768904685974,
0.13532781600952148,
0.1626279354095459,
0.08263038843870163,
-0.23596400022506714,
0.08792772889137268,
-0.07344170659780502,
0.1371510624885559,
0.237246572971344,
-0.2229141741991043,
-0.061926767230033875,
0.14099177718162537,
0.017772722989320755,
0.35061126947402954,
-0.3006499111652374,
-0.11034385114908218,
0.04416409134864807,
0.09413894265890121,
-0.16228070855140686,
0.009096920490264893,
0.0983472466468811,
0.057667553424835205,
0.0028966646641492844,
-0.005353126674890518,
0.18688738346099854,
0.16726602613925934,
-0.31758996844291687,
0.12896445393562317,
0.03370826691389084,
0.22497893869876862,
0.156576007604599,
0.24356110394001007,
-0.1932961791753769,
0.28549957275390625,
0.11263793706893921,
0.09228751808404922,
0.11906938999891281,
-0.025029398500919342,
-0.011418882757425308,
-0.00045599229633808136,
0.022474052384495735,
-0.24089297652244568,
-0.12089823186397552,
-0.20999926328659058,
-0.2908897399902344,
-0.09293905645608902,
0.3533417582511902,
0.36654919385910034,
-0.163688063621521,
0.26027920842170715,
0.3331293761730194,
0.16327449679374695,
-0.2968602180480957,
0.08949799835681915,
0.08522877842187881,
-0.11770014464855194,
-0.1173398345708847,
0.30398014187812805,
0.24681390821933746,
-0.3369475305080414,
0.12802234292030334,
0.06805333495140076,
0.2644030451774597,
-0.3204004466533661,
-0.3003344237804413,
0.21818996965885162,
0.23228536546230316,
0.11487099528312683,
-0.05666198581457138,
0.016687441617250443,
0.10038119554519653,
0.5405624508857727,
-0.1263544261455536,
0.2218710035085678,
-0.14423403143882751,
0.1424393653869629,
-0.10318689793348312,
-0.19459354877471924,
-0.1662878394126892,
0.15636976063251495,
-0.2756226360797882,
0.4519442021846771,
-0.23142839968204498,
0.6587278246879578,
-0.3951897919178009,
-0.4038066864013672,
-0.27091914415359497,
0.46136561036109924,
-0.28932592272758484,
-0.30826812982559204,
0.08060136437416077,
0.033760786056518555,
0.005071312189102173,
0.06756177544593811,
0.1498342603445053,
0.015894273295998573,
0.5080649256706238,
0.10549966990947723,
-0.044604845345020294,
-0.17129968106746674,
-0.24807818233966827,
0.1482362598180771,
0.03292699530720711,
-0.20411010086536407,
0.3403041362762451,
0.39467698335647583,
-0.03508864715695381,
-0.11266403645277023,
0.030420588329434395,
0.6076419353485107,
0.353249192237854,
-0.6928080320358276,
0.07804153114557266,
0.12278208881616592,
0.14453810453414917,
0.04422406852245331,
0.14379608631134033,
0.20571862161159515,
0.32899659872055054,
0.0988517701625824,
-0.021801620721817017,
-0.06857778877019882,
0.04141570255160332,
0.19230131804943085,
0.26047322154045105,
0.037893231958150864,
0.18811297416687012,
-0.03409320116043091,
-0.23307615518569946,
0.06357872486114502,
0.04360891506075859,
-0.6348344683647156,
-0.02929016947746277,
0.4114501476287842,
-0.49035993218421936,
0.08885257691144943,
0.08270134031772614,
0.04200901836156845,
-0.06045624241232872,
0.39908450841903687,
0.011533305048942566,
0.3016091585159302,
-0.267370343208313,
-0.168844074010849,
-0.5573816299438477,
0.01297730952501297,
0.1003672331571579,
-0.020199306309223175,
-0.18293556571006775,
-0.17103135585784912,
-0.04339338466525078,
0.2719521224498749,
0.1712251901626587,
0.0828571617603302,
0.17844924330711365,
0.7048637270927429,
-0.6334084272384644,
0.31711748242378235,
0.2510332465171814,
0.10438048839569092,
0.2963540256023407,
-0.37998342514038086,
0.1781570315361023,
0.07620765268802643,
-0.027744509279727936,
-0.28035968542099,
0.1965390294790268,
-0.11784176528453827,
0.368713915348053,
0.2799828052520752,
0.06566889584064484,
0.3750952482223511,
-0.0018230676651000977,
-0.007641993463039398,
-0.09024082124233246,
0.3053022027015686,
0.1900223344564438,
-0.4532955586910248,
0.29295027256011963,
0.17084497213363647,
-0.5065392255783081,
0.07062667608261108,
0.048774708062410355,
-0.0507214218378067,
0.1662178337574005,
-0.004019398242235184,
-0.2534013092517853,
0.03292110562324524,
0.008796557784080505,
0.07153525948524475,
0.0729665756225586,
0.48779991269111633,
-0.05636274442076683,
0.28838226199150085,
-0.20618735253810883,
-0.1364276260137558,
0.15666493773460388,
-0.24870318174362183,
-0.3022475242614746,
-0.3512846827507019,
0.4295423924922943,
-0.3348478078842163,
0.11135232448577881,
-0.24484629929065704,
-0.08163727819919586,
0.023803316056728363,
0.05709635838866234,
-0.6880537867546082,
0.3799358606338501,
-0.3070555031299591,
-0.6153403520584106,
0.10814373940229416,
-0.040941715240478516,
0.08435919880867004,
-0.15827052295207977,
0.10822685062885284,
-0.33475983142852783
] |
https://github.com/huggingface/datasets/issues/2067 |
I was able to copy some of the shell
This is repeating every half second
Win 10, Anaconda with python 3.8, datasets installed from main branche
```
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
_check_not_importing_main()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
exitcode = _main(fd, parent_sentinel)
raise RuntimeError('''
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable. return _run_module_code(code, init_globals, run_name,
prepare(preparation_data)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare
_run_code(code, mod_globals, init_globals,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\test.py", line 6, in <module>
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool
return _run_module_code(code, init_globals, run_name,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\test.py", line 6, in <module>
self._repopulate_pool()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map
return self._repopulate_pool_static(self._ctx, self.Process,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool
w.start()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__
self._popen = self._Popen(self)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 327, in _Popen
self._repopulate_pool()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool
return Popen(process_obj)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\popen_spawn_win32.py", line 45, in __init__
return self._repopulate_pool_static(self._ctx, self.Process,
prep_data = spawn.get_preparation_data(process_obj._name)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 154, in get_preparation_data
_check_not_importing_main()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main
w.start()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
``` | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 433 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
I was able to copy some of the shell
This is repeating every half second
Win 10, Anaconda with python 3.8, datasets installed from main branche
```
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
_check_not_importing_main()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
exitcode = _main(fd, parent_sentinel)
raise RuntimeError('''
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable. return _run_module_code(code, init_globals, run_name,
prepare(preparation_data)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare
_run_code(code, mod_globals, init_globals,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\test.py", line 6, in <module>
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool
return _run_module_code(code, init_globals, run_name,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\test.py", line 6, in <module>
self._repopulate_pool()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool
updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map
return self._repopulate_pool_static(self._ctx, self.Process,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool
w.start()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start
return Pool(processes, initializer, initargs, maxtasksperchild,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__
self._popen = self._Popen(self)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 327, in _Popen
self._repopulate_pool()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool
return Popen(process_obj)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\popen_spawn_win32.py", line 45, in __init__
return self._repopulate_pool_static(self._ctx, self.Process,
prep_data = spawn.get_preparation_data(process_obj._name)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 154, in get_preparation_data
_check_not_importing_main()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main
w.start()
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
``` | [
-0.18814688920974731,
-0.3144046664237976,
-0.0391354002058506,
0.1985248327255249,
0.1111997663974762,
0.004422590136528015,
0.147380530834198,
0.052242573350667953,
0.0072062090039253235,
0.15420666337013245,
0.03806160390377045,
-0.036998309195041656,
-0.23013293743133545,
0.0049480050802230835,
-0.1641259640455246,
-0.20177370309829712,
0.12297144532203674,
-0.14779630303382874,
0.1082703024148941,
0.3176005780696869,
-0.46819254755973816,
0.47096189856529236,
-0.2818864583969116,
0.1857168972492218,
-0.19820427894592285,
-0.05356653034687042,
-0.2812376022338867,
0.5518501400947571,
0.22895172238349915,
-0.501471757888794,
0.10333997011184692,
-0.369596391916275,
0.20536677539348602,
0.1928679496049881,
-0.00011916280345758423,
-0.09571588784456253,
0.12400992214679718,
0.017228618264198303,
0.27942246198654175,
0.22583088278770447,
0.259986013174057,
0.04340355098247528,
0.009118270128965378,
-0.022887960076332092,
0.2111763060092926,
0.23331090807914734,
0.02885294146835804,
-0.1462768018245697,
0.4757125973701477,
0.1996723711490631,
0.06838010996580124,
0.15873602032661438,
0.12234796583652496,
-0.01791997067630291,
-0.3447394371032715,
-0.2424110770225525,
-0.007487267255783081,
0.2551129460334778,
0.4874382019042969,
-0.31832581758499146,
0.220986470580101,
0.1477997601032257,
-0.2789093255996704,
0.08369627594947815,
-0.49959108233451843,
0.03853967413306236,
0.6404629945755005,
-0.5573274493217468,
0.012313390150666237,
0.003933952189981937,
-0.13714119791984558,
-0.17225970327854156,
0.14125102758407593,
-0.07143911719322205,
0.20486968755722046,
-0.8496659994125366,
-0.05665788799524307,
0.22380957007408142,
-0.45335930585861206,
0.07005706429481506,
0.03761334344744682,
0.1382521688938141,
0.02112269401550293,
-0.1229696273803711,
0.17871278524398804,
0.048056717962026596,
0.024106677621603012,
0.21374154090881348,
0.2611125707626343,
0.2568983733654022,
-0.2901439368724823,
0.3060051500797272,
-0.1656569242477417,
0.1110764592885971,
-0.559320867061615,
0.04356653243303299,
-0.08759083598852158,
0.13957586884498596,
-0.26038917899131775,
-0.0911269336938858,
-0.14506687223911285,
-0.0010927114635705948,
0.24373792111873627,
0.12246176600456238,
0.16438065469264984,
-0.22492516040802002,
0.016275446861982346,
-0.5754623413085938,
0.07629958540201187,
-0.31931614875793457,
-0.01927109807729721,
-0.06312640011310577,
-0.039631132036447525,
-0.5433813333511353,
0.16386935114860535,
0.47545015811920166,
0.31273743510246277,
-0.09082920104265213,
-0.4087654650211334,
0.004649363458156586,
0.0548972487449646,
0.1591065376996994,
0.3263026475906372,
0.3785497844219208,
0.23752576112747192,
0.6493284106254578,
0.11646666377782822,
0.30086803436279297,
-0.4983568787574768,
0.24988731741905212,
0.10552623867988586,
-0.009914984926581383,
-0.26468223333358765,
0.28402912616729736,
0.20158275961875916,
-0.10501715540885925,
0.19191205501556396,
0.09136783331632614,
0.2648686170578003,
-0.19339187443256378,
-0.05482383072376251,
-0.17752422392368317,
-0.1875755339860916,
0.2483477145433426,
0.10397742688655853,
0.2727550268173218,
0.07822306454181671,
0.06140051782131195,
-0.058839768171310425,
0.12170471251010895,
-0.23320195078849792,
-0.3323020339012146,
-0.29087379574775696,
0.04879530519247055,
0.34559834003448486,
0.4107145369052887,
0.35907113552093506,
-0.18269872665405273,
0.36978793144226074,
-0.11411118507385254,
-0.11491093039512634,
-0.33697935938835144,
-0.36059319972991943,
-0.25368964672088623,
0.05598928779363632,
0.3577573299407959,
-0.011711344122886658,
0.26251381635665894,
0.13361777365207672,
-0.023401623591780663,
0.17300835251808167,
0.2555246651172638,
0.15292787551879883,
-0.04413892328739166,
-0.15998467803001404,
-0.18454089760780334,
-0.253180593252182,
-0.4692433774471283,
0.28135091066360474,
-0.053199440240859985,
-0.09472378343343735,
0.014414660632610321,
0.26352551579475403,
-0.09240579605102539,
0.08414163440465927,
-0.3598732054233551,
0.4103766679763794,
-0.13976365327835083,
-0.000029131770133972168,
0.15640059113502502,
-0.2134256511926651,
-0.01893867552280426,
-0.21049830317497253,
0.15808004140853882,
-0.14157909154891968,
-0.17171519994735718,
-0.14690500497817993,
-0.08877265453338623,
0.2672271430492401,
0.13230390846729279,
0.0029335878789424896,
0.26263147592544556,
0.32900771498680115,
-0.05047263205051422,
0.07051175832748413,
-0.23542512953281403,
-0.1410973072052002,
0.14496004581451416,
-0.09269154071807861,
0.061488907784223557,
0.3000001311302185,
0.2150602638721466,
0.1844712793827057,
0.28847071528434753,
-0.2682777941226959,
-0.3507545590400696,
0.05383407324552536,
-0.010150402784347534,
0.17598529160022736,
-0.17734500765800476,
0.013145409524440765,
0.5986764430999756,
-0.1233622133731842,
0.013616558164358139,
-0.23588697612285614,
-0.11504414677619934,
-0.3619884252548218,
-0.27897512912750244,
-0.010339580476284027,
0.3257577419281006,
0.17609456181526184,
0.05443858355283737,
0.1365504413843155,
0.24620680510997772,
0.14905095100402832,
-0.15969789028167725,
-0.1565384864807129,
-0.16658048331737518,
0.1694265753030777,
-0.20533667504787445,
0.1545630544424057,
0.06258171796798706,
0.09267912805080414,
-0.2570308446884155,
0.43000420928001404,
0.05162743479013443,
-0.03390320762991905,
0.375666081905365,
-0.08909554034471512,
0.18732468783855438,
0.15252989530563354,
-0.012663505971431732,
0.21885228157043457,
0.14794236421585083,
0.34595271944999695,
0.16920171678066254,
0.14378972351551056,
-0.4511527419090271,
-0.15191826224327087,
0.1961425095796585,
0.21035312116146088,
0.07902389019727707,
-0.12226641178131104,
0.11418868601322174,
-0.18150568008422852,
0.18329861760139465,
-0.015374795533716679,
-0.18706190586090088,
0.7362309694290161,
0.04742836207151413,
-0.11041650921106339,
0.28050923347473145,
-0.4284939765930176,
-0.09395436942577362,
0.39005813002586365,
0.06129319593310356,
0.23311971127986908,
0.16932857036590576,
-0.1249576136469841,
-0.04593405872583389,
-0.029167041182518005,
-0.2392556369304657,
-0.036274299025535583,
0.08005788177251816,
-0.34027963876724243,
0.061263471841812134,
-0.09240887314081192,
0.4969220459461212,
-0.41141578555107117,
-0.4017822742462158,
0.022753454744815826,
-0.13638730347156525,
-0.053573641926050186,
0.4672955572605133,
-0.13143979012966156,
0.023618541657924652,
-0.03626960515975952,
-0.011386200785636902,
0.03884406387805939,
0.33477330207824707,
0.15677964687347412,
-0.021787121891975403,
-0.0881475955247879,
-0.07520691305398941,
0.3987685441970825,
-0.062162041664123535,
0.20753490924835205,
0.28543639183044434,
-0.05746737867593765,
0.23565039038658142,
0.04212534427642822,
-0.03568119928240776,
0.02626693993806839,
0.3805268406867981,
0.03013365902006626,
0.17326369881629944,
0.1848590075969696,
-0.5782221555709839,
0.16267511248588562,
-0.16355180740356445,
0.11817334592342377,
0.11898799985647202,
0.02758137136697769,
-0.40578678250312805,
-0.19389057159423828,
-0.03974771127104759,
-0.48830702900886536,
-0.296563982963562,
0.032254502177238464,
-0.03258073329925537,
0.19348543882369995,
-0.006460309028625488,
0.100311778485775,
0.1495276838541031,
0.07365769147872925,
-0.13815189898014069,
-0.12205737829208374,
0.07685218751430511,
-0.06147674471139908,
-0.22393567860126495,
-0.048726435750722885,
0.034448444843292236,
0.0997958704829216,
0.05381042882800102,
-0.24581623077392578,
-0.10847416520118713,
-0.2988758981227875,
-0.11471180617809296,
0.04348228871822357,
0.042318593710660934,
0.21405935287475586,
0.4646482765674591,
0.24511611461639404,
-0.16033703088760376,
0.1172705888748169,
0.035430580377578735,
0.11385005712509155,
0.01414736732840538,
0.15711867809295654,
0.12900827825069427,
0.03884081169962883,
-0.2746428847312927,
0.5560707449913025,
0.7195620536804199,
0.007973108440637589,
0.21176303923130035,
0.17258746922016144,
0.1281336396932602,
-0.08887229859828949,
-0.2836924195289612,
0.018999923020601273,
-0.3320363461971283,
-0.047518935054540634,
0.11526311933994293,
0.11908567696809769,
-0.19437363743782043,
-0.22585734724998474,
0.29844948649406433,
-0.3609919846057892,
-0.21443293988704681,
0.09131301939487457,
-0.003126929048448801,
0.10684899240732193,
-0.287164568901062,
-0.001467481255531311,
0.08855842053890228,
0.09020592272281647,
-0.16380245983600616,
0.2348211258649826,
-0.2531650960445404,
-0.3102206289768219,
-0.28064313530921936,
-0.49744129180908203,
-0.4011015295982361,
0.32559341192245483,
0.11216919124126434,
0.5273085832595825,
0.03844086825847626,
-0.18095222115516663,
-0.08018504828214645,
-0.2546064257621765,
0.9073622822761536,
-0.22857964038848877,
-0.23657265305519104,
0.2589760720729828,
0.3240388035774231,
-0.08398281037807465,
-0.15961256623268127,
-0.18575122952461243,
0.2760503888130188,
0.17242471873760223,
0.0037938524037599564,
0.11942528188228607,
-0.18723222613334656,
0.12223933637142181,
0.02393101155757904,
-0.13239140808582306,
-0.050341296941041946,
-0.35349416732788086,
-0.3537784516811371,
-0.10543327033519745,
0.19528904557228088,
-0.0393822155892849,
0.08093777298927307,
-0.5451445579528809,
-0.04102944955229759,
0.10715862363576889,
-0.0651639997959137,
0.10586149990558624,
0.04253070056438446,
0.09357073158025742,
-0.036701351404190063,
0.418415904045105,
-0.2705119252204895,
0.22695480287075043,
-0.13253875076770782,
0.10206398367881775,
-0.23105299472808838,
-0.011166635900735855,
0.17635376751422882,
-0.05936310440301895,
0.36248475313186646,
0.49112096428871155,
0.11737281084060669,
-0.0381045900285244,
-0.33174222707748413,
0.4632002115249634,
-0.24249479174613953,
-0.23250754177570343,
0.3120749294757843,
0.25265464186668396,
0.09631615877151489,
0.30375349521636963,
0.26207244396209717,
0.012033127248287201,
-0.13212227821350098,
0.6690813899040222,
-0.28656265139579773,
-0.13096866011619568,
0.09156215190887451,
0.26700347661972046,
0.9803851842880249,
0.00028003938496112823,
0.1036660298705101,
0.1353645622730255,
-0.3450928330421448,
0.016871124505996704,
0.14852933585643768,
0.2275097370147705,
-0.2147379219532013,
-0.09211835265159607,
0.15341967344284058,
-0.06922461837530136,
0.2798222303390503,
-0.14866206049919128,
-0.3306344449520111,
0.27782854437828064,
0.1979103684425354,
-0.2983659505844116,
-0.1088460385799408,
-0.15597909688949585,
-0.030514024198055267,
-0.38702189922332764,
0.11181309819221497,
0.00501231849193573,
0.08030576258897781,
-0.022695235908031464,
-0.24182291328907013,
0.14739347994327545,
0.41677606105804443,
-0.3222225308418274,
-0.5853478908538818,
0.07997918128967285,
-0.25005680322647095,
0.09879861772060394,
-0.10646276921033859,
0.07899969816207886,
-0.02068883553147316,
0.27385982871055603,
0.29242756962776184,
-0.15867291390895844,
-0.1383260190486908,
0.059691451489925385,
0.3177005350589752,
-0.10671144723892212,
-0.028784913942217827,
-0.18386121094226837,
-0.07802186906337738,
-0.04522915929555893,
-0.35013172030448914,
0.2171633243560791,
-0.1274765282869339,
0.04023884981870651,
-0.23606400191783905,
0.3128054440021515,
-0.006031042896211147,
0.23740458488464355,
-0.16927041113376617,
0.3972187638282776,
-0.12809446454048157,
-0.1625913381576538,
0.07923844456672668,
-0.03923780843615532,
-0.46987807750701904,
0.5655832290649414,
-0.6352735161781311,
-0.12463372945785522,
0.06849898397922516,
0.04319271817803383,
0.05121622234582901,
0.09850235283374786,
0.32212379574775696,
0.2966785430908203,
-0.012475050985813141,
-0.21096168458461761,
-0.11226273328065872,
-0.5198853611946106,
-0.12864872813224792,
-0.12323354184627533,
0.41794201731681824,
-0.11531077325344086,
0.24548117816448212,
-0.3513736128807068,
-0.05507362633943558,
-0.07554256916046143,
-0.06762893497943878,
-0.4756990373134613,
-0.0865643247961998,
0.0446375235915184,
-0.2182353436946869,
0.07464699447154999,
-0.14402902126312256,
0.20002038776874542,
0.07883376628160477,
0.11628533154726028,
-0.24530240893363953,
-0.019225018098950386,
-0.10593777894973755,
0.12911772727966309,
0.06576012074947357,
-0.2747897803783417,
0.05254208669066429,
0.14848986268043518,
0.011602342128753662,
0.2926318049430847,
-0.2524474859237671,
-0.1338890790939331,
0.061261191964149475,
0.09830603748559952,
-0.15294235944747925,
-0.13970158994197845,
0.20244351029396057,
0.0376424640417099,
0.032036252319812775,
-0.0035299621522426605,
0.03849861025810242,
-0.028225254267454147,
-0.19528287649154663,
0.028511490672826767,
-0.044393911957740784,
0.3265432119369507,
0.15904371440410614,
0.26065176725387573,
-0.1510518342256546,
0.3736737370491028,
0.136455237865448,
0.07309748977422714,
0.01313980296254158,
-0.046171508729457855,
-0.1199256181716919,
-0.05686011537909508,
-0.10784177482128143,
-0.04809395223855972,
-0.09491149336099625,
0.04588945582509041,
-0.3931426405906677,
-0.3150412142276764,
0.13228994607925415,
0.5207766890525818,
-0.09063662588596344,
0.2684803605079651,
0.3860580027103424,
0.1517118364572525,
-0.19979998469352722,
0.10718704760074615,
-0.09235886484384537,
-0.23282882571220398,
-0.1368255913257599,
0.3245013654232025,
0.06443999707698822,
-0.5508658289909363,
0.47705695033073425,
0.06959523260593414,
0.38343775272369385,
-0.3326541781425476,
-0.1584959626197815,
0.31987813115119934,
0.32084691524505615,
0.037848785519599915,
-0.015056677162647247,
-0.09156380593776703,
0.2071586400270462,
0.45932474732398987,
-0.13113285601139069,
0.20141389966011047,
-0.32387733459472656,
0.15788601338863373,
-0.08962075412273407,
-0.23982907831668854,
-0.11022882908582687,
0.1657063364982605,
-0.19131547212600708,
0.2936510741710663,
-0.189956396818161,
0.4689156115055084,
-0.596027135848999,
-0.37466007471084595,
-0.3592117428779602,
0.3930903375148773,
-0.13363787531852722,
-0.18629390001296997,
-0.10753615200519562,
0.08869433403015137,
0.12827140092849731,
0.08796858787536621,
0.30193328857421875,
-0.10858158767223358,
0.6149498224258423,
0.11132249236106873,
-0.21908597648143768,
-0.17365415394306183,
-0.38517293334007263,
0.22450247406959534,
-0.009377490729093552,
-0.13110128045082092,
0.3541278541088104,
0.6124846339225769,
-0.06549353152513504,
-0.2977389991283417,
0.19731467962265015,
0.5848490595817566,
0.44690462946891785,
-0.6962714791297913,
0.14492151141166687,
0.12279988825321198,
0.11265765875577927,
-0.013166870921850204,
0.1467435508966446,
0.10204140841960907,
0.1914798766374588,
0.04056733846664429,
0.025395255535840988,
-0.07160551846027374,
-0.10150790959596634,
0.3518773913383484,
-0.026962388306856155,
0.16271182894706726,
0.18046604096889496,
-0.10238513350486755,
-0.1577702760696411,
0.11368255317211151,
0.10082432627677917,
-0.6489604711532593,
0.19411669671535492,
0.23407578468322754,
-0.5234291553497314,
0.013580653816461563,
0.12754230201244354,
0.04889342188835144,
-0.10518346726894379,
0.4409931004047394,
-0.03856239840388298,
0.2765520215034485,
-0.2048591673374176,
-0.21426334977149963,
-0.3133779764175415,
-0.10799907147884369,
-0.1254139542579651,
-0.05371052026748657,
-0.18953092396259308,
-0.06215979903936386,
0.038629576563835144,
0.2744993567466736,
0.027352355420589447,
0.10422000288963318,
0.22542521357536316,
0.6995899677276611,
-0.6562349796295166,
0.18320000171661377,
0.38763558864593506,
0.0067537035793066025,
0.21496248245239258,
-0.49835920333862305,
0.1673813760280609,
0.11966319382190704,
-0.002962164580821991,
-0.018107056617736816,
0.230674147605896,
-0.1568349003791809,
0.11183905601501465,
0.20749475061893463,
0.1057581827044487,
0.08677279949188232,
0.01408589631319046,
-0.20202237367630005,
-0.1171707808971405,
0.252569317817688,
0.2592408359050751,
-0.3225482404232025,
0.34697145223617554,
0.09998281300067902,
-0.4285966455936432,
-0.182736337184906,
-0.0377776063978672,
-0.08706784248352051,
0.1813717931509018,
0.16606394946575165,
-0.13059167563915253,
0.03302742540836334,
0.06078890711069107,
0.13221296668052673,
0.04925316944718361,
0.3977869749069214,
-0.034906674176454544,
0.2151014357805252,
-0.2833608388900757,
-0.045622825622558594,
0.1644546091556549,
-0.14221492409706116,
-0.21719315648078918,
-0.25302594900131226,
0.37971195578575134,
-0.4996716380119324,
0.20783178508281708,
-0.21363940834999084,
0.0040059685707092285,
-0.016012631356716156,
-0.001264091581106186,
-0.5598611235618591,
0.3290335237979889,
-0.1534709334373474,
-0.7110198736190796,
0.0667741596698761,
-0.09960563480854034,
0.11392567306756973,
-0.10345147550106049,
0.252804696559906,
-0.04946396127343178
] |
https://github.com/huggingface/datasets/issues/2067 | Thanks this is really helpful !
I'll try to reproduce on my side and come back to you | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 18 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Thanks this is really helpful !
I'll try to reproduce on my side and come back to you | [
-0.15062811970710754,
-0.46654409170150757,
-0.08509175479412079,
0.2313077598810196,
0.08652767539024353,
0.010160371661186218,
0.0336141437292099,
-0.030732613056898117,
0.02308843284845352,
0.2842901647090912,
0.12158605456352234,
0.06673723459243774,
-0.3062888979911804,
0.01604963093996048,
-0.19412973523139954,
-0.17272190749645233,
0.09843380749225616,
-0.14653563499450684,
0.2517451047897339,
0.3242735266685486,
-0.46028420329093933,
0.48658496141433716,
-0.3101290464401245,
0.1724269837141037,
-0.4106288254261017,
-0.04608112946152687,
-0.20039334893226624,
0.484228253364563,
0.2549557387828827,
-0.38770490884780884,
-0.0000802353024482727,
-0.31135815382003784,
0.15096676349639893,
0.14044225215911865,
-0.00011554679076652974,
-0.14471246302127838,
0.01405701320618391,
-0.015594515949487686,
0.3914157748222351,
0.23568154871463776,
0.17477098107337952,
0.015411347150802612,
-0.09307214617729187,
-0.027862511575222015,
0.13276243209838867,
0.27510175108909607,
0.04753392934799194,
0.003651343286037445,
0.4036988615989685,
0.3019193410873413,
0.15907400846481323,
0.25883400440216064,
0.10206839442253113,
0.043588608503341675,
-0.3204173147678375,
-0.38962146639823914,
-0.05090174451470375,
0.2563920319080353,
0.5162350535392761,
-0.286671906709671,
0.17486369609832764,
0.26247018575668335,
-0.24079629778862,
0.03738914430141449,
-0.3169419765472412,
-0.009436322376132011,
0.43163350224494934,
-0.5044820308685303,
0.053050167858600616,
-0.08573098480701447,
-0.08600128442049026,
-0.17231924831867218,
0.3172116279602051,
0.1498870849609375,
0.10572199523448944,
-0.8734206557273865,
0.037371926009655,
0.22369545698165894,
-0.3608475625514984,
0.06360799074172974,
-0.07681670039892197,
0.00048660486936569214,
-0.07338404655456543,
-0.20570191740989685,
0.10647503286600113,
-0.04202480614185333,
0.05887589231133461,
0.1621665358543396,
0.15678822994232178,
0.25811469554901123,
-0.26608121395111084,
0.31230679154396057,
-0.0895460918545723,
0.08247174322605133,
-0.5067334771156311,
-0.013056792318820953,
0.024487854912877083,
0.21075168251991272,
-0.2819764018058777,
-0.22385163605213165,
-0.03987988829612732,
0.16080552339553833,
0.2515886127948761,
0.18123899400234222,
0.20875364542007446,
-0.16379593312740326,
0.05779518932104111,
-0.5973330736160278,
0.22775542736053467,
-0.4697575271129608,
-0.1418825089931488,
-0.090849369764328,
0.05905817821621895,
-0.5761104822158813,
0.30175161361694336,
0.4158448576927185,
0.1878652423620224,
-0.10296683013439178,
-0.3051145076751709,
0.22791741788387299,
0.03879201412200928,
0.2444170117378235,
0.2676875591278076,
0.30374160408973694,
0.32954034209251404,
0.6703653931617737,
0.004698529839515686,
0.1355358213186264,
-0.5587138533592224,
0.13538484275341034,
0.05355927348136902,
0.09622235596179962,
-0.30824607610702515,
0.12394183874130249,
0.2694670557975769,
0.007762830704450607,
0.16414713859558105,
0.14239875972270966,
0.27459535002708435,
-0.3172975182533264,
-0.04318962246179581,
-0.22459933161735535,
-0.17050324380397797,
0.240204855799675,
0.2170298993587494,
0.19543901085853577,
-0.049146346747875214,
0.0771690160036087,
0.003331601619720459,
0.2177008092403412,
-0.37143880128860474,
-0.3710876703262329,
-0.07800689339637756,
0.09104016423225403,
0.4564344882965088,
0.41241538524627686,
0.2775188982486725,
-0.041483886539936066,
0.2997339069843292,
-0.28989550471305847,
-0.1395445168018341,
-0.44177961349487305,
-0.27530166506767273,
-0.30286771059036255,
-0.07706382125616074,
0.25495609641075134,
-0.013891704380512238,
0.3129972517490387,
0.32755446434020996,
-0.053920991718769073,
0.19669237732887268,
0.3646479845046997,
0.23579759895801544,
-0.22957885265350342,
-0.07652845233678818,
-0.015418440103530884,
-0.16920572519302368,
-0.21643470227718353,
-0.025646641850471497,
0.12488076090812683,
-0.050249435007572174,
-0.158202663064003,
0.23693448305130005,
0.13968510925769806,
-0.042105045169591904,
-0.3254144489765167,
0.47339314222335815,
-0.18739855289459229,
-0.13803912699222565,
0.24175362288951874,
-0.2508319616317749,
0.1379859447479248,
-0.09019163250923157,
0.07464104145765305,
0.07859639823436737,
-0.13082104921340942,
-0.07585979253053665,
-0.09138231724500656,
0.25327521562576294,
0.1211821436882019,
-0.028855133801698685,
0.3372826874256134,
0.1698218137025833,
-0.01887095719575882,
0.04521596059203148,
-0.3747880756855011,
0.0022796597331762314,
0.026934176683425903,
-0.28051885962486267,
0.038488537073135376,
0.3604877293109894,
0.12969240546226501,
0.13331802189350128,
0.2604678273200989,
-0.19306431710720062,
-0.2732437551021576,
0.07167921215295792,
-0.09738079458475113,
0.06371305882930756,
-0.20183780789375305,
-0.011837959289550781,
0.49875178933143616,
0.042145028710365295,
-0.15411855280399323,
-0.14277693629264832,
-0.07498186081647873,
-0.3986946940422058,
-0.3253808319568634,
-0.02155570685863495,
0.3518843650817871,
0.20702379941940308,
0.14874108135700226,
0.12298218905925751,
0.2170087844133377,
0.09771664440631866,
-0.1447272151708603,
-0.14345428347587585,
-0.026722028851509094,
0.22109141945838928,
-0.2565096914768219,
0.0919930562376976,
0.015468534082174301,
0.15548551082611084,
-0.2237294614315033,
0.48349082469940186,
0.07802601903676987,
-0.05178632214665413,
0.21525540947914124,
-0.13560815155506134,
0.17570295929908752,
0.1661113202571869,
0.026871927082538605,
0.28289729356765747,
0.269986629486084,
0.36017245054244995,
0.12102806568145752,
-0.09841872751712799,
-0.33581438660621643,
-0.34114599227905273,
0.07872051745653152,
0.20476360619068146,
0.18563127517700195,
-0.049433834850788116,
0.03445159271359444,
-0.19755959510803223,
0.14808829128742218,
-0.029665682464838028,
-0.4081711173057556,
0.6608490943908691,
0.1290353238582611,
-0.12387938797473907,
0.2897004783153534,
-0.41682395339012146,
-0.12867648899555206,
0.2691905200481415,
0.018980514258146286,
-0.048523370176553726,
0.18378208577632904,
-0.10219117254018784,
-0.1305871307849884,
-0.06270796060562134,
-0.095993772149086,
-0.0835924744606018,
0.09055036306381226,
-0.311203271150589,
0.07541400194168091,
-0.06831272691488266,
0.48188316822052,
-0.3881743550300598,
-0.4849451184272766,
-0.03638507053256035,
-0.20109470188617706,
0.09337176382541656,
0.37699267268180847,
-0.06603992730379105,
-0.03695468604564667,
0.06397852301597595,
-0.07537759840488434,
0.13539336621761322,
0.34126216173171997,
0.2241436094045639,
-0.08249581605195999,
-0.07570119947195053,
-0.04271208867430687,
0.35436975955963135,
-0.10736450552940369,
0.24517777562141418,
0.30005842447280884,
-0.008039433509111404,
0.12378626316785812,
0.154709130525589,
-0.07087402045726776,
0.04973695054650307,
0.25461265444755554,
-0.0004116259515285492,
0.10001789033412933,
0.18989317119121552,
-0.4014510214328766,
0.09812052547931671,
-0.32712244987487793,
0.21639420092105865,
0.25937727093696594,
0.13897079229354858,
-0.3894452452659607,
-0.26541775465011597,
-0.15316492319107056,
-0.4650592803955078,
-0.1933443397283554,
0.015845106914639473,
-0.16555887460708618,
0.28330591320991516,
-0.25240573287010193,
0.062452249228954315,
0.10903267562389374,
0.3357047140598297,
-0.12974241375923157,
-0.1685180366039276,
0.22008977830410004,
-0.0323103666305542,
-0.3071313202381134,
-0.20822779834270477,
0.20303066074848175,
0.22799092531204224,
0.06288987398147583,
-0.24706849455833435,
-0.15624986588954926,
-0.3293305039405823,
-0.015441641211509705,
-0.01879233866930008,
-0.038283899426460266,
0.24966707825660706,
0.3877027630805969,
0.17064733803272247,
-0.1693151891231537,
0.13691933453083038,
-0.0877077504992485,
0.03437086567282677,
0.035476915538311005,
0.16564622521400452,
0.2234891653060913,
0.09420037269592285,
-0.17432594299316406,
0.47982603311538696,
0.5712582468986511,
0.06822161376476288,
0.28401443362236023,
0.11666303873062134,
-0.02797573059797287,
0.01973658800125122,
-0.19869256019592285,
0.10416797548532486,
-0.40295377373695374,
-0.11826978623867035,
0.16224375367164612,
0.12217535823583603,
-0.31319954991340637,
-0.26024848222732544,
0.23124422132968903,
-0.29882222414016724,
-0.11104593425989151,
0.08930525928735733,
0.07151509821414948,
0.16652773320674896,
-0.19119995832443237,
-0.10864327847957611,
0.07486704736948013,
0.07243698835372925,
-0.12625277042388916,
0.18318025767803192,
-0.25875821709632874,
-0.23379039764404297,
-0.04944974556565285,
-0.5941672325134277,
-0.47664499282836914,
0.41011977195739746,
0.10824994742870331,
0.5226664543151855,
-0.008231781423091888,
-0.11495280265808105,
-0.017629925161600113,
-0.29641905426979065,
0.807100236415863,
-0.1431356519460678,
-0.18302923440933228,
0.21156373620033264,
0.20903395116329193,
-0.009849779307842255,
-0.12212519347667694,
-0.22694528102874756,
0.2996339201927185,
0.11281506717205048,
-0.060176439583301544,
0.251370906829834,
-0.06675885617733002,
0.06760455667972565,
-0.10732124745845795,
-0.16887173056602478,
-0.11656278371810913,
-0.33116161823272705,
-0.2884026765823364,
0.04856911301612854,
0.2625979483127594,
-0.012628044933080673,
0.0332486629486084,
-0.4210144877433777,
-0.019149892032146454,
0.1351577639579773,
-0.06856833398342133,
0.29477524757385254,
-0.0726626068353653,
0.11756908893585205,
-0.14219756424427032,
0.1428370326757431,
-0.2732448875904083,
0.367543488740921,
-0.1351262480020523,
-0.014485658146440983,
-0.1890774667263031,
0.19652731716632843,
0.27840423583984375,
-0.11024212092161179,
0.3729200065135956,
0.38142329454421997,
0.1360357701778412,
0.013593995943665504,
-0.37040096521377563,
0.4939797520637512,
-0.24521856009960175,
-0.20914162695407867,
0.3325047194957733,
0.26646697521209717,
0.08148027956485748,
0.26498135924339294,
0.31704533100128174,
0.12603649497032166,
-0.09224681556224823,
0.4775734543800354,
-0.3215057849884033,
-0.0968964546918869,
-0.02897767722606659,
0.14342127740383148,
0.9238150119781494,
0.08468970656394958,
0.10809463262557983,
0.012065544724464417,
-0.49052363634109497,
-0.2325475811958313,
-0.17031514644622803,
0.3275730013847351,
-0.26938241720199585,
-0.14813271164894104,
0.030451670289039612,
-0.03826611116528511,
0.1322239339351654,
-0.10534758865833282,
-0.34096479415893555,
0.4729430377483368,
0.0977981835603714,
-0.29133322834968567,
-0.17942410707473755,
-0.23554518818855286,
-0.07401776313781738,
-0.18059855699539185,
0.0021827332675457,
0.07861756533384323,
0.07835596799850464,
-0.14484672248363495,
-0.2679344415664673,
0.13463430106639862,
0.449171781539917,
-0.33026617765426636,
-0.48555880784988403,
-0.017163589596748352,
-0.19901028275489807,
0.1551019251346588,
-0.05521461367607117,
0.16231077909469604,
0.06682699173688889,
0.3810668885707855,
0.15391619503498077,
-0.08298259973526001,
-0.24850644171237946,
0.019128870218992233,
0.3927863538265228,
-0.047860581427812576,
-0.11059510707855225,
0.04631965607404709,
-0.018898507580161095,
-0.15032024681568146,
-0.2896612286567688,
0.392605721950531,
-0.12284907698631287,
-0.014036200940608978,
-0.3258325457572937,
0.3156886100769043,
0.09106019139289856,
0.1713143140077591,
-0.1278262436389923,
0.24406655132770538,
-0.12442973256111145,
-0.1677267849445343,
0.1221420019865036,
0.0498555451631546,
-0.5294657349586487,
0.652123212814331,
-0.5616602301597595,
-0.09329473972320557,
0.005516014993190765,
0.06846461445093155,
0.014698613435029984,
-0.05575980991125107,
0.1593244969844818,
0.27149730920791626,
-0.10283449292182922,
-0.23033495247364044,
-0.1057637631893158,
-0.4670144021511078,
-0.05513036251068115,
-0.03599167615175247,
0.45476382970809937,
-0.14249727129936218,
0.24890640377998352,
-0.21289251744747162,
0.05839492380619049,
0.04452824965119362,
-0.02472086250782013,
-0.3333129286766052,
-0.22526733577251434,
-0.07533958554267883,
-0.08256547898054123,
0.15319441258907318,
-0.056925419718027115,
0.09209194034337997,
0.10993783175945282,
0.0790005549788475,
-0.29157131910324097,
0.047388263046741486,
-0.2277822196483612,
0.10021382570266724,
0.07932044565677643,
-0.26634493470191956,
-0.09752970933914185,
0.2109728455543518,
0.06406068056821823,
0.34590667486190796,
-0.35061928629875183,
-0.14852820336818695,
0.0790708065032959,
0.0717255249619484,
-0.09642067551612854,
-0.04376798868179321,
0.07988883554935455,
0.08568953722715378,
0.029015738517045975,
0.07507238537073135,
0.14411473274230957,
0.09008915722370148,
-0.28540340065956116,
0.11945384740829468,
-0.05024443194270134,
0.20434094965457916,
0.18996891379356384,
0.2846992313861847,
-0.16668564081192017,
0.39328476786613464,
0.10646940767765045,
0.006347548216581345,
0.05235184729099274,
-0.03212524205446243,
-0.06871716678142548,
0.05616429075598717,
-0.08454331010580063,
-0.23933309316635132,
-0.10153540223836899,
-0.11302495002746582,
-0.28271564841270447,
-0.10894015431404114,
0.28269851207733154,
0.29607999324798584,
-0.16479843854904175,
0.28692737221717834,
0.2995327115058899,
0.227822944521904,
-0.21487441658973694,
0.048052869737148285,
-0.1478598415851593,
-0.12486308068037033,
-0.13604296743869781,
0.26848411560058594,
0.18237480521202087,
-0.4664897918701172,
0.3124745488166809,
0.07060912251472473,
0.18491703271865845,
-0.40602588653564453,
-0.3674871623516083,
0.07825672626495361,
0.226485937833786,
0.1041756421327591,
0.028776006773114204,
-0.08638201653957367,
0.05678700655698776,
0.4952467381954193,
-0.0511147677898407,
0.1885722428560257,
-0.22598382830619812,
0.0775546282529831,
-0.11702795326709747,
-0.17093226313591003,
-0.25316646695137024,
0.09213702380657196,
-0.3694230914115906,
0.4250568747520447,
-0.23247593641281128,
0.44614940881729126,
-0.5816574096679688,
-0.31292983889579773,
-0.31357541680336,
0.4110395908355713,
-0.26170265674591064,
-0.12495625019073486,
0.10125507414340973,
0.011574968695640564,
0.10345874726772308,
0.08493401110172272,
0.3099183142185211,
0.08892035484313965,
0.5263203978538513,
0.22620443999767303,
-0.08248890936374664,
-0.0340428426861763,
-0.268404483795166,
0.22713233530521393,
-0.01955767348408699,
-0.19740304350852966,
0.18820001184940338,
0.4959087371826172,
-0.047025833278894424,
-0.17214462161064148,
-0.002035345882177353,
0.5398035049438477,
0.37725794315338135,
-0.7378942966461182,
0.008080672472715378,
0.16012218594551086,
0.14591673016548157,
0.04354820400476456,
0.15616638958454132,
0.19982752203941345,
0.2554306983947754,
0.04833900183439255,
0.020367935299873352,
-0.12424828112125397,
-0.004572942852973938,
0.26417821645736694,
0.22413277626037598,
0.11288335919380188,
0.2446005642414093,
-0.0508267767727375,
-0.23040327429771423,
0.04607969522476196,
0.0731755942106247,
-0.6401625871658325,
-0.024128567427396774,
0.23481296002864838,
-0.3941695988178253,
0.050793882459402084,
0.039931848645210266,
0.06694172322750092,
-0.075395867228508,
0.4105226397514343,
-0.05494625121355057,
0.2512812316417694,
-0.26375746726989746,
-0.15871554613113403,
-0.3679075241088867,
0.013018812984228134,
0.1524791270494461,
-0.010224424302577972,
-0.19380271434783936,
-0.16690880060195923,
-0.06895998120307922,
0.11177506297826767,
0.08638545870780945,
0.09763912111520767,
0.3191107511520386,
0.6845182180404663,
-0.605582594871521,
0.3746795952320099,
0.3027547299861908,
-0.025377104058861732,
0.27102354168891907,
-0.3583439290523529,
0.21160389482975006,
0.021200813353061676,
0.06363020837306976,
-0.22554443776607513,
0.21016505360603333,
-0.1030668094754219,
0.47344210743904114,
0.18190588057041168,
0.04852898418903351,
0.25633153319358826,
0.0007867366075515747,
-0.06254680454730988,
0.12063582241535187,
0.3517192602157593,
0.2666045129299164,
-0.5823002457618713,
0.2764891982078552,
0.08330594748258591,
-0.36275607347488403,
-0.061993569135665894,
-0.0267343670129776,
-0.016134031116962433,
0.06672174483537674,
0.10257260501384735,
-0.10872508585453033,
0.0047641322016716,
-0.00507345050573349,
0.04120296984910965,
0.04134644567966461,
0.4595140516757965,
0.012710665352642536,
0.20372283458709717,
-0.2745135426521301,
-0.016232334077358246,
0.09233301132917404,
-0.061656706035137177,
-0.31615546345710754,
-0.31002193689346313,
0.5059922337532043,
-0.5154703855514526,
0.13328106701374054,
-0.08988228440284729,
-0.07879752665758133,
-0.0806526243686676,
0.016879066824913025,
-0.6610686182975769,
0.2708573639392853,
-0.3067220151424408,
-0.6747819185256958,
0.13711555302143097,
-0.1630328893661499,
0.18355490267276764,
-0.0199977345764637,
0.2053033858537674,
-0.17068563401699066
] |
https://github.com/huggingface/datasets/issues/2067 | if __name__ == '__main__':
This line before calling the map function stops the error but the script still repeats endless | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 20 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
if __name__ == '__main__':
This line before calling the map function stops the error but the script still repeats endless | [
-0.11089139431715012,
-0.439287006855011,
-0.0885382741689682,
0.20902125537395477,
0.062263134866952896,
0.03885606676340103,
0.005569770932197571,
0.03431245684623718,
0.1305551528930664,
0.35071203112602234,
0.18459156155586243,
0.11303404718637466,
-0.27034926414489746,
-0.06256010383367538,
-0.16307002305984497,
-0.09918273985385895,
0.09583480656147003,
-0.05586225911974907,
0.28451985120773315,
0.30602365732192993,
-0.5200819969177246,
0.4720439612865448,
-0.32901912927627563,
0.15054872632026672,
-0.3321794271469116,
-0.026869136840105057,
-0.12737146019935608,
0.43264031410217285,
0.2777256369590759,
-0.44788509607315063,
-0.03303692862391472,
-0.30907049775123596,
0.11824063956737518,
0.11319774389266968,
-0.00011938092211494222,
-0.15792027115821838,
-0.014201126992702484,
-0.06127030774950981,
0.4552113115787506,
0.16230161488056183,
0.17969867587089539,
0.09623263031244278,
-0.14072808623313904,
-0.13648368418216705,
0.21329256892204285,
0.324424147605896,
0.11804194003343582,
-0.05366485193371773,
0.402844101190567,
0.26556646823883057,
0.1118752509355545,
0.20554934442043304,
0.09391920268535614,
0.07542388141155243,
-0.26952773332595825,
-0.37260228395462036,
-0.05642223358154297,
0.28902286291122437,
0.5033330917358398,
-0.38200026750564575,
0.14141622185707092,
0.31437015533447266,
-0.30303695797920227,
0.03751377761363983,
-0.2931309938430786,
-0.06406654417514801,
0.5305414795875549,
-0.5780693292617798,
0.09767313301563263,
-0.11051569879055023,
-0.17095008492469788,
-0.2201833724975586,
0.37713879346847534,
0.16103872656822205,
0.05074141547083855,
-0.8099099397659302,
0.0275960061699152,
0.13647079467773438,
-0.41562363505363464,
0.030588455498218536,
-0.14913251996040344,
0.01358293741941452,
-0.02683793008327484,
-0.14678359031677246,
0.09750859439373016,
0.0018119923770427704,
0.06741122901439667,
0.222169890999794,
0.25120002031326294,
0.267657607793808,
-0.317238450050354,
0.30021971464157104,
-0.0685030072927475,
0.1161162406206131,
-0.4423091411590576,
-0.0357515811920166,
0.07734568417072296,
0.18877731263637543,
-0.2333674281835556,
-0.2691734731197357,
0.010995261371135712,
0.13863837718963623,
0.2498510330915451,
0.2138967663049698,
0.21391157805919647,
-0.19126154482364655,
0.12676241993904114,
-0.6191259026527405,
0.21867093443870544,
-0.4347948133945465,
-0.10451455414295197,
-0.04800812527537346,
0.06859844923019409,
-0.5401849746704102,
0.3463866710662842,
0.4573225975036621,
0.27972543239593506,
-0.10791467130184174,
-0.28960537910461426,
0.29563310742378235,
0.011903271079063416,
0.2019830048084259,
0.2572346329689026,
0.3027792274951935,
0.3510759174823761,
0.6872228384017944,
-0.0302589014172554,
0.07495202124118805,
-0.5382586717605591,
0.17090147733688354,
0.10131125152111053,
0.1404789388179779,
-0.32609307765960693,
0.15111029148101807,
0.2556610107421875,
0.06633298099040985,
0.13999512791633606,
0.07152765989303589,
0.26466065645217896,
-0.3194345235824585,
-0.1016470193862915,
-0.2185528576374054,
-0.023928098380565643,
0.21936872601509094,
0.15595099329948425,
0.22795407474040985,
-0.05148313567042351,
0.07511547952890396,
-0.028001748025417328,
0.22884789109230042,
-0.3791946768760681,
-0.3146424889564514,
0.005625396966934204,
0.06088503450155258,
0.47427093982696533,
0.48001521825790405,
0.3062349855899811,
-0.09772256016731262,
0.2995285391807556,
-0.3837091624736786,
-0.06158857420086861,
-0.44071316719055176,
-0.32539182901382446,
-0.33491063117980957,
-0.1095619946718216,
0.33428722620010376,
0.016576893627643585,
0.33360347151756287,
0.35005107522010803,
-0.005990322679281235,
0.10591062903404236,
0.25976651906967163,
0.21961361169815063,
-0.2469082772731781,
-0.13908560574054718,
-0.00793544203042984,
-0.16829267144203186,
-0.19904109835624695,
-0.027467774227261543,
0.1558072715997696,
-0.08952511847019196,
-0.1395351141691208,
0.20325841009616852,
0.08983659744262695,
0.009012546390295029,
-0.3770281672477722,
0.47430160641670227,
-0.26103392243385315,
-0.16012844443321228,
0.2233109474182129,
-0.1887081116437912,
0.16288581490516663,
-0.09736485779285431,
-0.0018647238612174988,
0.04768011346459389,
-0.07393708825111389,
-0.04609910771250725,
-0.09430751204490662,
0.25385555624961853,
0.14620742201805115,
-0.037349339574575424,
0.29308539628982544,
0.14268207550048828,
-0.044098060578107834,
0.04125382378697395,
-0.3803650438785553,
-0.03695794194936752,
0.041953206062316895,
-0.2586919665336609,
-0.03181351721286774,
0.2738761603832245,
0.11006635427474976,
0.15338359773159027,
0.2823154330253601,
-0.17858028411865234,
-0.183335080742836,
0.03990454599261284,
-0.080184705555439,
0.05703075975179672,
-0.22649437189102173,
-0.04175089672207832,
0.3700163662433624,
0.013644427061080933,
-0.18330508470535278,
-0.16898928582668304,
-0.11473093181848526,
-0.38202616572380066,
-0.3083174228668213,
-0.06276553869247437,
0.35027793049812317,
0.23178625106811523,
0.09700256586074829,
0.0890677273273468,
0.23483043909072876,
0.1195782721042633,
-0.1474682241678238,
-0.15316787362098694,
0.027425311505794525,
0.19046178460121155,
-0.25883328914642334,
0.05809783935546875,
0.07131229341030121,
0.18490444123744965,
-0.24339625239372253,
0.48062458634376526,
0.06383025646209717,
-0.03179266303777695,
0.2943503260612488,
-0.14053349196910858,
0.16324184834957123,
0.11012092977762222,
-0.006384529173374176,
0.21786344051361084,
0.14911624789237976,
0.32504504919052124,
0.15160566568374634,
-0.06329935044050217,
-0.3150222897529602,
-0.28454482555389404,
0.05274996533989906,
0.2794162631034851,
0.1230379268527031,
-0.08621124178171158,
-0.011348462663590908,
-0.14561855792999268,
0.19358855485916138,
-0.03295227885246277,
-0.42240917682647705,
0.6393153071403503,
0.09582658112049103,
-0.1360434591770172,
0.26961949467658997,
-0.41967177391052246,
-0.11508721113204956,
0.24199999868869781,
0.03873545676469803,
0.01644543930888176,
0.18877114355564117,
-0.18156929314136505,
-0.13241267204284668,
-0.08717678487300873,
-0.19706575572490692,
-0.08164258301258087,
0.034639857709407806,
-0.25954166054725647,
0.061271004378795624,
-0.04897909611463547,
0.4968198835849762,
-0.3601052761077881,
-0.46575504541397095,
-0.04275786131620407,
-0.19183975458145142,
0.044760771095752716,
0.4225374460220337,
-0.09103609621524811,
0.000368557870388031,
0.04836476594209671,
-0.07523123919963837,
0.12536221742630005,
0.20830988883972168,
0.18872162699699402,
-0.13002222776412964,
-0.01766369119286537,
-0.09031245857477188,
0.4238031506538391,
-0.2149711549282074,
0.23657144606113434,
0.23880144953727722,
-0.03603571653366089,
0.0988384336233139,
0.16305524110794067,
-0.013102822005748749,
0.02433156594634056,
0.15732088685035706,
0.05408874526619911,
0.17232699692249298,
0.16418743133544922,
-0.333553284406662,
0.0946284681558609,
-0.42517781257629395,
0.20395155251026154,
0.24986523389816284,
0.13483454287052155,
-0.47967541217803955,
-0.3031042218208313,
-0.1587505340576172,
-0.34296679496765137,
-0.21281617879867554,
0.08128634095191956,
-0.17941682040691376,
0.30700767040252686,
-0.3042922616004944,
0.12313566356897354,
0.08398795127868652,
0.2612294554710388,
-0.16303253173828125,
-0.21925455331802368,
0.24093106389045715,
0.002817109227180481,
-0.24715891480445862,
-0.15665628015995026,
0.24605268239974976,
0.1974765807390213,
0.03510474041104317,
-0.18082700669765472,
-0.15189146995544434,
-0.33172062039375305,
0.006831871345639229,
0.011425793170928955,
-0.008176799863576889,
0.2596694827079773,
0.4391311705112457,
0.19965748488903046,
-0.128546804189682,
0.11514858901500702,
-0.10724601149559021,
0.03880249336361885,
0.09459654986858368,
0.12175282835960388,
0.33560001850128174,
0.12429606914520264,
-0.19198207557201385,
0.3964085280895233,
0.5850520730018616,
0.06698334217071533,
0.29814791679382324,
0.07127851247787476,
0.07230125367641449,
-0.008435457944869995,
-0.16406908631324768,
0.07009133696556091,
-0.3994196653366089,
-0.15461766719818115,
0.1536274552345276,
0.03610590472817421,
-0.36889153718948364,
-0.2827151417732239,
0.2706740200519562,
-0.3177095353603363,
-0.16785667836666107,
0.1270987093448639,
0.06909356266260147,
0.13070258498191833,
-0.17401395738124847,
-0.03491376340389252,
0.05919733643531799,
0.1001402884721756,
-0.1112741157412529,
0.18108244240283966,
-0.16932855546474457,
-0.24026063084602356,
-0.06780752539634705,
-0.5501946210861206,
-0.4681791663169861,
0.42014431953430176,
0.15057049691677094,
0.569585919380188,
-0.002304255962371826,
-0.1535203605890274,
-0.059758104383945465,
-0.29354313015937805,
0.849672794342041,
-0.19817617535591125,
-0.19344466924667358,
0.2181832492351532,
0.26585671305656433,
-0.002650938928127289,
-0.07989215850830078,
-0.18245238065719604,
0.3223557472229004,
0.10830958187580109,
-0.05368145555257797,
0.25106102228164673,
-0.07569435238838196,
0.11799238622188568,
-0.09274806082248688,
-0.17282648384571075,
-0.09142466634511948,
-0.3367772698402405,
-0.29600757360458374,
-0.05457067862153053,
0.27188870310783386,
0.02578388899564743,
-0.06298141181468964,
-0.3283903896808624,
0.009557202458381653,
0.20257671177387238,
-0.10107199847698212,
0.3030553162097931,
-0.01099301129579544,
0.1442430317401886,
-0.10021525621414185,
0.060025498270988464,
-0.2607693672180176,
0.2963291108608246,
-0.16333183646202087,
-0.0030010927002876997,
-0.19227859377861023,
0.24048538506031036,
0.3096618354320526,
-0.09188288450241089,
0.39292293787002563,
0.44573524594306946,
0.14240732789039612,
-0.12339483201503754,
-0.3963150382041931,
0.49408724904060364,
-0.2796328365802765,
-0.21912238001823425,
0.27299121022224426,
0.27184948325157166,
0.04765128344297409,
0.25305965542793274,
0.2464245706796646,
0.10823836922645569,
-0.10779562592506409,
0.4929208755493164,
-0.3655339777469635,
-0.0749301016330719,
0.035627976059913635,
0.13043081760406494,
0.9967209696769714,
0.04332008957862854,
0.11891177296638489,
-0.05944433435797691,
-0.433074027299881,
-0.2991347312927246,
-0.15476034581661224,
0.33761289715766907,
-0.24754922091960907,
-0.14417313039302826,
-0.01078035682439804,
-0.032746315002441406,
0.1365702748298645,
-0.048197463154792786,
-0.31087368726730347,
0.5423758625984192,
0.2191964089870453,
-0.15520767867565155,
-0.15972170233726501,
-0.24490691721439362,
-0.044762276113033295,
-0.20884686708450317,
0.1253475546836853,
0.026019543409347534,
0.08246870338916779,
-0.10332822054624557,
-0.27088016271591187,
0.16086070239543915,
0.4782743453979492,
-0.4204179644584656,
-0.4470709264278412,
0.022220000624656677,
-0.29245418310165405,
0.15170064568519592,
-0.1510334461927414,
0.28365570306777954,
0.008221268653869629,
0.393349289894104,
0.08621391654014587,
-0.03390798717737198,
-0.2003096640110016,
-0.05124896764755249,
0.5149102210998535,
-0.07340332120656967,
-0.15489479899406433,
0.046951666474342346,
-0.06450026482343674,
-0.08827991783618927,
-0.2245565801858902,
0.32784324884414673,
-0.14643371105194092,
-0.016719721257686615,
-0.4602334797382355,
0.35106027126312256,
0.14277587831020355,
0.21579349040985107,
-0.1538732945919037,
0.2385241687297821,
-0.20421624183654785,
-0.13417060673236847,
0.08761098980903625,
-0.05200280621647835,
-0.4558408260345459,
0.6648209691047668,
-0.5725062489509583,
-0.16524480283260345,
0.0157147366553545,
0.03855619207024574,
0.025658879429101944,
-0.08238503336906433,
0.09131249040365219,
0.1807394176721573,
-0.07983297854661942,
-0.24971547722816467,
-0.10019240528345108,
-0.4476296305656433,
-0.05906135216355324,
-0.014096377417445183,
0.41319528222084045,
-0.15561231970787048,
0.19120502471923828,
-0.22206440567970276,
0.02932140976190567,
0.1280602663755417,
-0.0034404098987579346,
-0.3608270287513733,
-0.2059660255908966,
0.0041354503482580185,
-0.03844352439045906,
0.18407391011714935,
0.00036951154470443726,
0.09033951163291931,
0.11456852406263351,
0.04337945580482483,
-0.26995140314102173,
0.023775428533554077,
-0.20484565198421478,
0.1520060896873474,
0.08224324882030487,
-0.23548898100852966,
-0.10316647589206696,
0.14230109751224518,
0.038522861897945404,
0.4069349467754364,
-0.411188542842865,
-0.10574300587177277,
0.11333724111318588,
0.09243287891149521,
-0.08201171457767487,
0.019855670630931854,
0.07017406821250916,
0.03868170827627182,
0.09402723610401154,
-0.030610453337430954,
0.11766037344932556,
0.08484388142824173,
-0.29912638664245605,
0.07463348656892776,
-0.028800304979085922,
0.20660041272640228,
0.1639944314956665,
0.2659653425216675,
-0.18645447492599487,
0.43945616483688354,
0.09814918786287308,
0.02351360209286213,
0.004468090832233429,
-0.010096237063407898,
-0.05544169247150421,
0.07107111811637878,
-0.09209209680557251,
-0.2425915002822876,
-0.10499101132154465,
-0.07736736536026001,
-0.31473731994628906,
-0.12281466275453568,
0.23543959856033325,
0.33338484168052673,
-0.21715104579925537,
0.2746221423149109,
0.30431604385375977,
0.17820122838020325,
-0.21593326330184937,
0.06132069230079651,
-0.02428070642054081,
-0.11040736734867096,
-0.07028695195913315,
0.3360288739204407,
0.21716782450675964,
-0.515562891960144,
0.3308371901512146,
0.05071180313825607,
0.18113473057746887,
-0.41088953614234924,
-0.35991859436035156,
0.151651531457901,
0.2669435739517212,
0.12570691108703613,
0.049897342920303345,
-0.031967051327228546,
0.09228147566318512,
0.4622262120246887,
-0.07374852895736694,
0.230136901140213,
-0.2403804361820221,
0.14718294143676758,
-0.09885711222887039,
-0.17089219391345978,
-0.1792939454317093,
0.1233837902545929,
-0.32529884576797485,
0.4941764771938324,
-0.11517627537250519,
0.3551943898200989,
-0.5752063989639282,
-0.3193899691104889,
-0.3000151515007019,
0.3833562433719635,
-0.27610519528388977,
-0.09426112473011017,
0.07312146574258804,
-0.004629410803318024,
0.08488374948501587,
0.1095990464091301,
0.3375641107559204,
0.07305793464183807,
0.647261917591095,
0.22194069623947144,
-0.09655623137950897,
0.061637669801712036,
-0.3227701187133789,
0.13968196511268616,
0.04834645986557007,
-0.24886171519756317,
0.22720862925052643,
0.4413455128669739,
-0.015043042600154877,
-0.25591573119163513,
-0.07868915051221848,
0.518431544303894,
0.39736539125442505,
-0.7148280143737793,
0.007322538644075394,
0.1765235811471939,
0.134855255484581,
0.024688608944416046,
0.11713387072086334,
0.12649525701999664,
0.27126234769821167,
0.032304130494594574,
0.008261259645223618,
-0.09023803472518921,
-0.017629200592637062,
0.3147459626197815,
0.2156035304069519,
0.2337629497051239,
0.16078777611255646,
-0.005442984402179718,
-0.20687946677207947,
0.03493867069482803,
0.10918568074703217,
-0.6795328259468079,
-0.030622515827417374,
0.1634548306465149,
-0.4358772933483124,
0.08230017125606537,
0.034672580659389496,
0.056447140872478485,
-0.03175773471593857,
0.32027754187583923,
-0.06082311272621155,
0.21359345316886902,
-0.29251015186309814,
-0.18115727603435516,
-0.3769398331642151,
0.013010669499635696,
0.10314394533634186,
0.013751275837421417,
-0.11987563967704773,
-0.15812501311302185,
-0.03815224766731262,
0.16780343651771545,
0.10597001016139984,
0.09036709368228912,
0.2510837912559509,
0.7179802656173706,
-0.5408717393875122,
0.39112377166748047,
0.381426602602005,
0.005104372277855873,
0.29693955183029175,
-0.4028027057647705,
0.23933616280555725,
-0.032980866730213165,
0.04916950315237045,
-0.25405335426330566,
0.27568942308425903,
-0.15997275710105896,
0.4374842047691345,
0.2795373499393463,
0.027305161580443382,
0.1966370791196823,
-0.09661597013473511,
-0.0949588343501091,
0.10995407402515411,
0.41399282217025757,
0.3005552291870117,
-0.5189862847328186,
0.3097030222415924,
0.01986841857433319,
-0.40538257360458374,
-0.09641654789447784,
-0.051048509776592255,
-0.06677664816379547,
0.06062328815460205,
0.17480209469795227,
-0.09610354155302048,
0.03917849808931351,
-0.005900420248508453,
0.11203967034816742,
-0.035793282091617584,
0.4521820843219757,
0.007308547850698233,
0.20617812871932983,
-0.2073805034160614,
-0.05991796404123306,
0.18641699850559235,
-0.030624771490693092,
-0.3157815933227539,
-0.2376834601163864,
0.47641080617904663,
-0.555482029914856,
0.09870564937591553,
-0.1281590312719345,
-0.06185121089220047,
-0.10755164921283722,
0.030357088893651962,
-0.7285945415496826,
0.26026180386543274,
-0.43142056465148926,
-0.6321409344673157,
0.1089845597743988,
-0.0953817069530487,
0.1943977177143097,
-0.09242219477891922,
0.2282526046037674,
-0.19621506333351135
] |
https://github.com/huggingface/datasets/issues/2067 | Indeed you needed `if __name__ == '__main__'` since accoding to [this stackoverflow post](https://stackoverflow.com/a/18205006):
> On Windows the subprocesses will import (i.e. execute) the main module at start. You need to insert an if __name__ == '__main__': guard in the main module to avoid creating subprocesses recursively.
Regarding the hanging issue, can you try to update `dill` and `multiprocess` ? | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 59 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Indeed you needed `if __name__ == '__main__'` since accoding to [this stackoverflow post](https://stackoverflow.com/a/18205006):
> On Windows the subprocesses will import (i.e. execute) the main module at start. You need to insert an if __name__ == '__main__': guard in the main module to avoid creating subprocesses recursively.
Regarding the hanging issue, can you try to update `dill` and `multiprocess` ? | [
-0.13518193364143372,
-0.42261362075805664,
-0.11948464810848236,
-0.017614521086215973,
0.10806336998939514,
-0.09601254761219025,
0.13206380605697632,
0.03084711730480194,
-0.10139169543981552,
0.3602203130722046,
-0.055188484489917755,
0.09469017386436462,
-0.37365955114364624,
-0.1421172022819519,
-0.15793804824352264,
-0.019644711166620255,
0.0329827219247818,
-0.11282758414745331,
0.047878485172986984,
0.09045512229204178,
-0.33944427967071533,
0.40241846442222595,
-0.2713932991027832,
0.0268044862896204,
-0.4019661247730255,
0.07968860864639282,
-0.061742380261421204,
0.5093017220497131,
0.019132457673549652,
-0.3639238476753235,
-0.10211707651615143,
-0.21955543756484985,
0.23863962292671204,
0.13217315077781677,
-0.00010341058805352077,
-0.1818680763244629,
0.020588412880897522,
0.004690572619438171,
0.1855372190475464,
0.07881488651037216,
0.36214736104011536,
-0.22690799832344055,
0.07145527750253677,
-0.04146774858236313,
0.044520966708660126,
0.21842193603515625,
0.005528511479496956,
0.07621868699789047,
0.47998809814453125,
0.22934426367282867,
0.26367390155792236,
0.0895196795463562,
0.18868792057037354,
0.14080168306827545,
-0.15244188904762268,
-0.2853359282016754,
-0.11970698088407516,
0.41747140884399414,
0.39942827820777893,
-0.16106149554252625,
0.07929404079914093,
0.2322094440460205,
-0.1770651936531067,
0.08595436066389084,
-0.23217111825942993,
-0.0009667575359344482,
0.4042547345161438,
-0.4059966802597046,
0.015639903023838997,
0.0012501152232289314,
-0.09211601316928864,
-0.10740415006875992,
0.22775034606456757,
0.10527953505516052,
0.22892537713050842,
-0.8124302625656128,
0.016680369153618813,
0.047257691621780396,
-0.32503020763397217,
0.08084926009178162,
0.1410830169916153,
-0.124296635389328,
-0.022024445235729218,
-0.21458202600479126,
-0.04282698035240173,
0.10053817927837372,
0.13823631405830383,
0.057148389518260956,
0.14644786715507507,
0.007800029590725899,
-0.23720084130764008,
0.3869684338569641,
-0.01150593813508749,
0.08500880002975464,
-0.41477325558662415,
0.07705766707658768,
0.1552436351776123,
0.005167318508028984,
-0.23439794778823853,
-0.24771907925605774,
-0.026691965758800507,
0.13809244334697723,
0.2967425286769867,
0.1935618817806244,
0.13101202249526978,
-0.09735017269849777,
0.10964703559875488,
-0.5587247610092163,
0.35675981640815735,
-0.4095543622970581,
-0.06583913415670395,
0.11630170792341232,
-0.06646718084812164,
-0.48124760389328003,
0.21113860607147217,
0.36409565806388855,
0.13876326382160187,
-0.1785721778869629,
-0.24128851294517517,
0.26116943359375,
0.07610540091991425,
0.1619965136051178,
0.174835667014122,
0.3731553852558136,
0.2703035771846771,
0.6323959231376648,
0.12113317847251892,
0.03956916555762291,
-0.5594884157180786,
0.30150106549263,
0.05858025327324867,
0.07654048502445221,
-0.19994056224822998,
-0.03670920059084892,
0.21904386579990387,
0.04800180718302727,
0.10932733118534088,
0.0806695818901062,
0.19757011532783508,
-0.12940853834152222,
-0.02991918846964836,
-0.11909075081348419,
-0.019333556294441223,
0.19678638875484467,
0.12089799344539642,
0.2237982153892517,
-0.04205325245857239,
0.04690926522016525,
-0.12702322006225586,
0.28165632486343384,
-0.17049241065979004,
-0.21695804595947266,
-0.09667051583528519,
0.2064182013273239,
0.31832945346832275,
0.3302815556526184,
0.4069041311740875,
0.020221736282110214,
0.07875703275203705,
-0.3521755337715149,
-0.21296584606170654,
-0.42627811431884766,
-0.15322156250476837,
-0.22043846547603607,
0.19797924160957336,
0.20152437686920166,
-0.2252463400363922,
0.23771263659000397,
0.1215575635433197,
-0.10782934725284576,
0.2043153941631317,
0.2541859745979309,
0.290834903717041,
-0.2798777222633362,
0.006535157561302185,
-0.02972976118326187,
-0.0913805365562439,
-0.20779207348823547,
-0.03437858819961548,
0.08676812052726746,
-0.09551984071731567,
-0.12936176359653473,
0.0654299259185791,
0.10552731156349182,
0.1556665301322937,
-0.15468576550483704,
0.3835841715335846,
0.025229353457689285,
0.06254745274782181,
0.16705888509750366,
-0.3813204765319824,
0.15408720076084137,
-0.10821100324392319,
0.1325487345457077,
-0.015302184969186783,
-0.3098197281360626,
-0.18585127592086792,
-0.044018879532814026,
0.31260353326797485,
0.11230272054672241,
-0.05831886827945709,
0.3177087903022766,
0.21398037672042847,
-0.04294824227690697,
0.033017534762620926,
-0.2787875235080719,
-0.047393422573804855,
-0.03262590989470482,
-0.2836298942565918,
0.11098010838031769,
0.2854704260826111,
0.12765835225582123,
0.0835922360420227,
0.26655805110931396,
-0.15759015083312988,
-0.29247018694877625,
0.2016201913356781,
0.06178301200270653,
0.05847571790218353,
-0.09083812683820724,
-0.11905193328857422,
0.22707469761371613,
0.1003558486700058,
-0.1943214237689972,
-0.12135149538516998,
-0.1139201819896698,
-0.4869259297847748,
-0.2864392399787903,
0.06169167906045914,
0.40436628460884094,
0.08701221644878387,
0.07157798111438751,
0.01197938621044159,
0.28059396147727966,
0.12024504691362381,
-0.1503617912530899,
-0.056234296411275864,
-0.11173239350318909,
0.16334716975688934,
-0.16659903526306152,
0.0865735113620758,
0.1966271996498108,
0.1060522049665451,
-0.19405150413513184,
0.3674076199531555,
0.09487640857696533,
0.11143357306718826,
0.28851959109306335,
-0.011570699512958527,
0.16564804315567017,
0.15551836788654327,
0.0989127978682518,
0.12689459323883057,
0.09782244265079498,
0.4008513391017914,
0.11412891745567322,
0.10210709273815155,
-0.2333519607782364,
-0.28678834438323975,
0.10279430449008942,
0.26843103766441345,
0.09921097010374069,
-0.0008458048105239868,
0.1202717125415802,
-0.13316261768341064,
0.09464365988969803,
-0.044156212359666824,
-0.40500861406326294,
0.33011746406555176,
0.176639586687088,
0.08090245723724365,
0.24930426478385925,
-0.4532826244831085,
-0.11890916526317596,
0.20479418337345123,
-0.1069696843624115,
-0.1498226672410965,
0.25401586294174194,
-0.11364607512950897,
-0.17808395624160767,
-0.10862269997596741,
-0.1908423900604248,
-0.14637795090675354,
0.10596837103366852,
-0.12255237996578217,
-0.11240281164646149,
-0.2060621976852417,
0.5869613885879517,
-0.33795255422592163,
-0.53432697057724,
-0.21727417409420013,
-0.2400304079055786,
0.20020796358585358,
0.2956996262073517,
-0.15511953830718994,
0.17678554356098175,
0.17039935290813446,
-0.1477070450782776,
0.1539737582206726,
0.24463015794754028,
0.1054777204990387,
-0.19661909341812134,
-0.0911581814289093,
0.06456049531698227,
0.38957488536834717,
0.05363563448190689,
0.2719881534576416,
0.21856531500816345,
-0.08399958163499832,
0.11593427509069443,
0.017936259508132935,
-0.1176387295126915,
0.006587618961930275,
0.25273993611335754,
0.05239742249250412,
0.08706067502498627,
0.23333197832107544,
-0.40075749158859253,
0.16903643310070038,
-0.41452452540397644,
0.19899222254753113,
0.21554039418697357,
0.159694105386734,
-0.2973792850971222,
-0.31849193572998047,
-0.3417878746986389,
-0.42263171076774597,
-0.4237925410270691,
-0.004604015499353409,
-0.10884197056293488,
0.18924127519130707,
-0.3053780794143677,
0.09388228505849838,
0.1626901775598526,
0.4764081537723541,
0.10991817712783813,
-0.10979147255420685,
0.3985266387462616,
0.11492136865854263,
-0.42328447103500366,
-0.3036079704761505,
0.0739738941192627,
0.08624759316444397,
0.0005403240211308002,
-0.34873366355895996,
-0.09381066262722015,
-0.2605397403240204,
-0.040270134806632996,
-0.04119400680065155,
0.01683797314763069,
0.19227489829063416,
0.32051724195480347,
0.21998156607151031,
-0.19749072194099426,
0.12539830803871155,
-0.10872198641300201,
0.010256484150886536,
0.021746572107076645,
0.06425002962350845,
0.13241758942604065,
-0.008242209441959858,
-0.3252885043621063,
0.5187215805053711,
0.29881152510643005,
0.04302649572491646,
0.24150188267230988,
0.14956465363502502,
0.07384958118200302,
-0.11256487667560577,
-0.11497820913791656,
0.21598446369171143,
-0.18123771250247955,
-0.12338212132453918,
0.3385452926158905,
0.0637296661734581,
-0.3440638482570648,
-0.385245680809021,
0.3334490954875946,
-0.22410567104816437,
-0.21686404943466187,
0.10376676172018051,
-0.0125344917178154,
-0.005407398566603661,
-0.06726939976215363,
-0.005300141870975494,
0.05924813449382782,
0.15132898092269897,
-0.01571764051914215,
0.1620752066373825,
-0.19818328320980072,
-0.22615118324756622,
-0.08535107225179672,
-0.5560271143913269,
-0.5261833071708679,
0.360152930021286,
0.16126039624214172,
0.404540091753006,
-0.027957238256931305,
-0.3122998774051666,
0.11046666651964188,
-0.31534722447395325,
0.605042040348053,
-0.10408157855272293,
-0.2310168743133545,
0.29576218128204346,
0.19776585698127747,
-0.12131805717945099,
-0.12236417829990387,
-0.2776656746864319,
0.016612816601991653,
0.27557745575904846,
-0.23397406935691833,
-0.018775269389152527,
-0.0773269534111023,
0.04086044058203697,
-0.0962730348110199,
-0.1876426339149475,
-0.12303480505943298,
-0.31883013248443604,
-0.2852321267127991,
-0.12988503277301788,
0.1400088220834732,
-0.08760754019021988,
0.11716745793819427,
-0.4547159671783447,
0.009069301187992096,
0.08787328004837036,
-0.08147001266479492,
0.15769225358963013,
0.11931709945201874,
0.16751739382743835,
-0.14904001355171204,
0.22978392243385315,
-0.15331101417541504,
0.5115941762924194,
-0.04252607375383377,
-0.00996092613786459,
-0.28376537561416626,
0.1625424325466156,
0.42910829186439514,
-0.1789734661579132,
0.20914492011070251,
0.33569028973579407,
0.16791988909244537,
0.0008672289550304413,
-0.4147988557815552,
0.4918944537639618,
-0.2210255265235901,
-0.03654756397008896,
0.37379539012908936,
0.316468209028244,
0.13062763214111328,
0.07211782783269882,
0.26899269223213196,
0.050337813794612885,
-0.11903585493564606,
0.29755330085754395,
-0.34392616152763367,
0.02280154824256897,
0.09795237332582474,
0.1122826337814331,
0.9095654487609863,
0.1273317039012909,
0.05034638196229935,
0.17708662152290344,
-0.45765799283981323,
-0.24649198353290558,
-0.24523064494132996,
0.21504150331020355,
-0.3452491760253906,
-0.007695134729146957,
0.1278994083404541,
-0.01612493395805359,
-0.036416761577129364,
-0.1383351981639862,
-0.32750171422958374,
0.33171597123146057,
0.014462009072303772,
-0.2145618200302124,
-0.26691490411758423,
-0.02334650605916977,
-0.06674212217330933,
-0.15582291781902313,
-0.004671229049563408,
0.1918945610523224,
0.2317623645067215,
-0.09813127666711807,
-0.2949545383453369,
0.08838661015033722,
0.3090928792953491,
-0.36571741104125977,
-0.2679747939109802,
-0.004426449537277222,
-0.049530960619449615,
0.13752056658267975,
-0.13225792348384857,
-0.12631654739379883,
-0.1111646220088005,
0.4085238575935364,
0.06417293846607208,
0.03526339307427406,
-0.21227523684501648,
0.0762815997004509,
0.22853344678878784,
0.025971174240112305,
-0.08887434005737305,
0.10099025070667267,
0.006217103451490402,
-0.19283974170684814,
-0.2835327982902527,
0.2746957540512085,
-0.09334701299667358,
0.05282042920589447,
-0.19578664004802704,
0.3317500650882721,
0.11355940252542496,
0.18402567505836487,
-0.08954619616270065,
0.30044639110565186,
-0.23430992662906647,
-0.16870087385177612,
0.2205447405576706,
-0.0026312656700611115,
-0.5343676209449768,
0.6597442030906677,
-0.3583517372608185,
-0.04280131310224533,
-0.03230798989534378,
0.048882897943258286,
0.020763903856277466,
0.15058138966560364,
0.17781393229961395,
0.2599489092826843,
-0.23133927583694458,
-0.2610791325569153,
-0.13002295792102814,
-0.3829299807548523,
0.022850021719932556,
-0.03133998438715935,
0.5056535005569458,
-0.26532286405563354,
0.17490100860595703,
-0.23434296250343323,
-0.026294631883502007,
-0.00534607470035553,
-0.17591121792793274,
-0.1204574927687645,
-0.15559250116348267,
0.02131132036447525,
-0.05038434639573097,
0.23290185630321503,
-0.11262783408164978,
0.16652241349220276,
0.007086522877216339,
0.10559216141700745,
-0.41001731157302856,
0.012273035943508148,
-0.29440754652023315,
0.08156892657279968,
-0.0398196280002594,
-0.42135077714920044,
0.04316292703151703,
0.2566627264022827,
0.2082245647907257,
0.36612367630004883,
-0.30609190464019775,
-0.2721683382987976,
-0.006680816411972046,
0.0311000794172287,
-0.16692502796649933,
0.02603153884410858,
0.08757659047842026,
0.05002184212207794,
-0.043152693659067154,
-0.039467703551054,
0.07173410058021545,
-0.029592327773571014,
-0.1960066258907318,
0.13999301195144653,
-0.07123222947120667,
0.2636043131351471,
0.30905067920684814,
0.4009550213813782,
-0.12668275833129883,
0.4257572889328003,
-0.02236022800207138,
0.01209741085767746,
0.014173295348882675,
-0.08428718149662018,
-0.04284871369600296,
0.046157870441675186,
-0.06829603016376495,
-0.19552958011627197,
0.014597335830330849,
0.1875317096710205,
-0.23917683959007263,
-0.14565670490264893,
0.554257869720459,
0.48255041241645813,
-0.04868093878030777,
0.1391606628894806,
0.4199680685997009,
0.30927416682243347,
-0.23189233243465424,
0.08464349806308746,
-0.1809263676404953,
-0.1913691908121109,
0.09318669885396957,
0.1590423882007599,
0.06163035333156586,
-0.3784908056259155,
0.20297330617904663,
0.14721113443374634,
-0.04336492717266083,
-0.24267971515655518,
-0.5065714716911316,
0.18881255388259888,
0.16775107383728027,
0.057042691856622696,
0.05237945169210434,
-0.10789097845554352,
0.1624528020620346,
0.41258499026298523,
-0.1772693395614624,
0.21987615525722504,
-0.3080129325389862,
0.11130286753177643,
-0.061529844999313354,
-0.23009300231933594,
-0.10264337807893753,
0.10077181458473206,
-0.20142561197280884,
0.27180391550064087,
-0.16079212725162506,
0.45022326707839966,
-0.5096834301948547,
-0.3224600553512573,
-0.24384509027004242,
0.41453057527542114,
-0.2001020908355713,
-0.09695713222026825,
0.08955592662096024,
0.027081698179244995,
0.07426489144563675,
0.0635610967874527,
0.26580116152763367,
0.15403105318546295,
0.4127887785434723,
0.3011641502380371,
0.06638485938310623,
-0.18359310925006866,
-0.26125943660736084,
-0.012426910921931267,
0.045187611132860184,
-0.15764841437339783,
0.1958625167608261,
0.5646458864212036,
0.0671810507774353,
-0.19348901510238647,
0.027795040979981422,
0.4950585961341858,
0.45220476388931274,
-0.7212640643119812,
0.05560629442334175,
0.07716354727745056,
0.08330786228179932,
-0.18172955513000488,
0.18735341727733612,
0.08585052192211151,
0.18518076837062836,
0.20491212606430054,
0.14457260072231293,
-0.24544373154640198,
-0.06052384153008461,
0.1923830509185791,
0.15058353543281555,
0.2461462914943695,
0.14846689999103546,
0.024957168847322464,
-0.10381465405225754,
-0.13544818758964539,
-0.0955178290605545,
-0.661191463470459,
-0.04939086362719536,
0.05820414423942566,
-0.28900396823883057,
0.0885874405503273,
-0.15878690779209137,
0.12018579244613647,
-0.177804633975029,
0.4030879735946655,
0.08895806968212128,
0.41242632269859314,
-0.11652225255966187,
-0.1426829993724823,
-0.5166682004928589,
0.09031419456005096,
0.08724784851074219,
-0.12556853890419006,
-0.3189956545829773,
-0.10613126307725906,
0.04900094494223595,
0.11520923674106598,
0.05792583152651787,
0.043091896921396255,
0.22172227501869202,
0.6491615772247314,
-0.639693021774292,
0.3707629442214966,
0.12191900610923767,
-0.10667797178030014,
0.23208007216453552,
-0.37244948744773865,
0.19260139763355255,
-0.018784143030643463,
0.1491536647081375,
-0.11501164734363556,
0.18880876898765564,
-0.12741830945014954,
0.5095860958099365,
0.23106040060520172,
0.1437455117702484,
0.25113844871520996,
-0.15071609616279602,
-0.13586291670799255,
0.10073601454496384,
0.3031367063522339,
0.16308172047138214,
-0.5176218152046204,
0.29951339960098267,
0.08904433250427246,
-0.22535361349582672,
-0.21223726868629456,
-0.07191501557826996,
0.26952746510505676,
0.028627119958400726,
0.17644037306308746,
-0.10585302859544754,
-0.02425238862633705,
0.10536298155784607,
0.02219308167695999,
-0.026565417647361755,
0.46887874603271484,
0.010847056284546852,
0.2176400125026703,
-0.3726310431957245,
-0.10973326861858368,
0.24909356236457825,
0.1428990364074707,
-0.1955767273902893,
-0.3436613976955414,
0.38923710584640503,
-0.38142406940460205,
0.09864553064107895,
-0.19773972034454346,
-0.027596764266490936,
-0.15115198493003845,
0.00769670307636261,
-0.5447807908058167,
0.23850755393505096,
-0.22838813066482544,
-0.5854173898696899,
-0.014367319643497467,
-0.1419527530670166,
0.2517256736755371,
0.0379587784409523,
0.1321120262145996,
-0.258789598941803
] |
https://github.com/huggingface/datasets/issues/2067 | ```
Traceback (most recent call last):
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 791, in move
os.rename(src, real_dst)
FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\tmpx9fl_jg8' -> 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main
prepare(preparation_data)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\cvtrain.py", line 243, in <module>
common_voice_train = common_voice_train.map(remove_special_characters, remove_columns=["sentence"])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1339, in map
return self._map_single(
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 203, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1646, in _map_single
shutil.move(tmp_file.name, cache_file_name)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 805, in move
copy_function(src, real_dst)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
0%| | 0/27771 [00:00<?, ?ex/s]
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
OSError: [Errno 22] Invalid argument: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow'
```
I was adding freeze support before calling the mapping function like this
if __name__ == '__main__':
freeze_support()
dataset.map(....) | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 224 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
```
Traceback (most recent call last):
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 791, in move
os.rename(src, real_dst)
FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\tmpx9fl_jg8' -> 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main
prepare(preparation_data)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "F:\Codes\Python Apps\asr\cvtrain.py", line 243, in <module>
common_voice_train = common_voice_train.map(remove_special_characters, remove_columns=["sentence"])
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1339, in map
return self._map_single(
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 203, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1646, in _map_single
shutil.move(tmp_file.name, cache_file_name)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 805, in move
copy_function(src, real_dst)
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
0%| | 0/27771 [00:00<?, ?ex/s]
File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
OSError: [Errno 22] Invalid argument: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow'
```
I was adding freeze support before calling the mapping function like this
if __name__ == '__main__':
freeze_support()
dataset.map(....) | [
-0.01263648271560669,
-0.38743355870246887,
-0.05402318760752678,
0.20228013396263123,
0.13534751534461975,
0.018755614757537842,
0.09084798395633698,
0.07784993946552277,
0.039303191006183624,
0.2612572908401489,
0.011653650552034378,
-0.07170067727565765,
-0.3001475930213928,
-0.077501580119133,
-0.12497981637716293,
-0.21812838315963745,
0.1993369162082672,
-0.12250053882598877,
0.269847571849823,
0.3569086194038391,
-0.45309728384017944,
0.5776939392089844,
-0.3369619846343994,
0.2170218825340271,
-0.373882532119751,
-0.01770072989165783,
-0.25014978647232056,
0.6321833729743958,
0.30169469118118286,
-0.37666255235671997,
-0.04099304974079132,
-0.31412509083747864,
0.11254715919494629,
0.11296868324279785,
-0.00011927906598430127,
-0.08996864408254623,
-0.05254681035876274,
-0.06090546399354935,
0.3652591109275818,
0.29030680656433105,
0.26863497495651245,
0.07078443467617035,
-0.14726856350898743,
0.015483751893043518,
0.2896391451358795,
0.28881242871284485,
-0.0069160182029008865,
-0.11513595283031464,
0.5103615522384644,
0.3108976483345032,
0.09642788767814636,
0.2305840104818344,
0.2101578414440155,
0.005320996046066284,
-0.2566915452480316,
-0.3280826210975647,
-0.04261654242873192,
0.32656899094581604,
0.42580902576446533,
-0.3297051787376404,
0.12852934002876282,
0.2043697088956833,
-0.2732003629207611,
-0.034686408936977386,
-0.4689790904521942,
0.06657136231660843,
0.4387376010417938,
-0.5151547193527222,
0.11645761132240295,
-0.03513209521770477,
-0.2860221862792969,
-0.12608851492404938,
0.14040282368659973,
-0.02986813336610794,
0.16665172576904297,
-0.7686854004859924,
0.055099546909332275,
0.1580190360546112,
-0.3607046604156494,
0.09105164557695389,
-0.10800236463546753,
0.07679548114538193,
-0.01049535721540451,
-0.18621355295181274,
0.21114489436149597,
-0.000812239944934845,
-0.019244957715272903,
0.15762189030647278,
0.2552623152732849,
0.2031300663948059,
-0.3922745883464813,
0.34484976530075073,
-0.08371645212173462,
0.08033519983291626,
-0.5561098456382751,
0.07550675421953201,
0.003969551995396614,
0.315390944480896,
-0.27064311504364014,
-0.2075471580028534,
-0.07142741978168488,
0.03568264842033386,
0.23246270418167114,
0.12227524816989899,
0.023068305104970932,
-0.004825860261917114,
0.05171094089746475,
-0.640105128288269,
0.18031512200832367,
-0.2331950068473816,
-0.026500441133975983,
-0.01460532657802105,
-0.07061302661895752,
-0.6683468818664551,
0.1515747308731079,
0.4515002965927124,
0.23569554090499878,
-0.11434132605791092,
-0.38527345657348633,
0.08358822762966156,
-0.030576243996620178,
0.22308270633220673,
0.35938119888305664,
0.3545977771282196,
0.3032066524028778,
0.7514010071754456,
0.00429873913526535,
0.20045040547847748,
-0.4899942874908447,
0.1166699081659317,
0.07200663536787033,
0.13231691718101501,
-0.2918376922607422,
0.33493518829345703,
0.21567699313163757,
-0.023937897756695747,
0.13697221875190735,
0.164311021566391,
0.3601239323616028,
-0.3316323161125183,
-0.14117872714996338,
-0.13079167902469635,
-0.16646264493465424,
0.20332685112953186,
0.07661254703998566,
0.18893080949783325,
0.03789961338043213,
0.05539332330226898,
0.021619081497192383,
0.008960912004113197,
-0.2776421904563904,
-0.41423287987709045,
-0.1573718935251236,
0.05475086346268654,
0.3095565438270569,
0.4490513503551483,
0.33619236946105957,
-0.04047895595431328,
0.3349384367465973,
-0.24009940028190613,
-0.08122971653938293,
-0.32799482345581055,
-0.38053828477859497,
-0.30113473534584045,
0.09364596754312515,
0.324167937040329,
-0.00668615847826004,
0.22896170616149902,
0.3274363577365875,
-0.06843432784080505,
0.10324370861053467,
0.29708361625671387,
0.2495613992214203,
-0.17600476741790771,
-0.19116473197937012,
-0.03647712618112564,
-0.24467936158180237,
-0.365083247423172,
0.10489142686128616,
0.04675886407494545,
-0.08037243783473969,
0.06395809352397919,
0.3371140658855438,
-0.10187852382659912,
-0.05242600291967392,
-0.3592815101146698,
0.41409674286842346,
-0.25768083333969116,
-0.09189711511135101,
0.17716951668262482,
-0.21552717685699463,
0.06012120842933655,
-0.20368537306785583,
0.02102479338645935,
-0.16435687243938446,
-0.09897582232952118,
-0.0998639166355133,
-0.007844969630241394,
0.22196190059185028,
0.09708131849765778,
0.0769433006644249,
0.288982093334198,
0.14347463846206665,
0.02591455727815628,
0.08733226358890533,
-0.23889905214309692,
-0.22752901911735535,
0.19199098646640778,
-0.19814006984233856,
0.06895004212856293,
0.28050801157951355,
0.13109156489372253,
0.12735655903816223,
0.22483618557453156,
-0.2467900514602661,
-0.3968260884284973,
0.047763872891664505,
-0.014368142932653427,
0.18686369061470032,
-0.19708922505378723,
0.00847143679857254,
0.5062975287437439,
0.01651676744222641,
-0.09495777636766434,
-0.20396104454994202,
-0.16960477828979492,
-0.3601672351360321,
-0.3072245121002197,
-0.154981330037117,
0.32382792234420776,
0.18394581973552704,
0.06574882566928864,
0.1309625208377838,
0.3159964680671692,
0.07974575459957123,
-0.040971383452415466,
-0.14927347004413605,
0.009014971554279327,
0.09806586056947708,
-0.15741342306137085,
0.10815048217773438,
-0.03865330293774605,
0.13153187930583954,
-0.21997947990894318,
0.48346030712127686,
0.15237471461296082,
-0.09314718842506409,
0.40092411637306213,
-0.1808025985956192,
0.12606927752494812,
0.12157686054706573,
0.10767261683940887,
0.2794557511806488,
0.14026853442192078,
0.4186382591724396,
0.07216648012399673,
0.0782996267080307,
-0.41594210267066956,
-0.2257852405309677,
0.09540756791830063,
0.11772452294826508,
0.09038743376731873,
-0.07448379695415497,
0.046026162803173065,
-0.10725858807563782,
0.10497035831212997,
-0.0948023870587349,
-0.35879260301589966,
0.7520030736923218,
0.027898218482732773,
-0.045960135757923126,
0.30250439047813416,
-0.3354749381542206,
-0.13554905354976654,
0.29629647731781006,
0.027977634221315384,
0.12415402382612228,
0.2167375236749649,
-0.13887926936149597,
-0.00013514235615730286,
-0.0964125543832779,
-0.16872158646583557,
-0.04499521106481552,
-0.007134541869163513,
-0.40664762258529663,
-0.02432180568575859,
-0.02486414462327957,
0.5111109614372253,
-0.39092108607292175,
-0.41352930665016174,
-0.13593292236328125,
-0.20262511074543,
-0.00860539823770523,
0.4150254428386688,
-0.08834772557020187,
0.025290410965681076,
0.000980094075202942,
-0.0015359669923782349,
0.028641313314437866,
0.31899625062942505,
0.0660698413848877,
0.02430962398648262,
-0.10141291469335556,
-0.08528728783130646,
0.3036764860153198,
-0.16883602738380432,
0.11682255566120148,
0.22834762930870056,
0.003636695444583893,
0.09864267706871033,
0.021066874265670776,
0.030095983296632767,
-0.04242400825023651,
0.30059945583343506,
0.11826550960540771,
0.1036486104130745,
0.16139858961105347,
-0.4868730902671814,
0.2238769829273224,
-0.3242427706718445,
0.1113816648721695,
0.15318918228149414,
0.09359308332204819,
-0.31518715620040894,
-0.2749289274215698,
-0.02055705338716507,
-0.4393348693847656,
-0.29004791378974915,
0.13684667646884918,
-0.2023085653781891,
0.16439887881278992,
-0.16015584766864777,
-0.06264207512140274,
0.18905925750732422,
0.14491060376167297,
0.005138956010341644,
-0.13388782739639282,
0.13562262058258057,
-0.0922912061214447,
-0.21089598536491394,
-0.040602002292871475,
0.07500923424959183,
0.12158195674419403,
0.05314420536160469,
-0.2295713722705841,
-0.09803269058465958,
-0.43996894359588623,
-0.035189613699913025,
-0.025089949369430542,
-0.01861078292131424,
0.11209350824356079,
0.43570080399513245,
0.23803678154945374,
-0.14818838238716125,
0.07480351626873016,
-0.10587459802627563,
0.1633778065443039,
0.03964933753013611,
0.11932657659053802,
0.1462286114692688,
0.0730905830860138,
-0.14291569590568542,
0.4496080279350281,
0.630186915397644,
0.15406014025211334,
0.30962443351745605,
0.0698951706290245,
0.0727030485868454,
0.002680400386452675,
-0.21790918707847595,
0.1445670872926712,
-0.37797269225120544,
-0.0718570277094841,
0.18210521340370178,
0.15124061703681946,
-0.09807777404785156,
-0.30834507942199707,
0.26429519057273865,
-0.36750102043151855,
-0.21951748430728912,
0.15370886027812958,
0.10103502869606018,
0.21805799007415771,
-0.34576669335365295,
-0.037908487021923065,
0.2031925469636917,
0.053093571215867996,
-0.07012034207582474,
0.28884029388427734,
-0.24505528807640076,
-0.24834686517715454,
-0.14415299892425537,
-0.4103229343891144,
-0.48016443848609924,
0.5223152041435242,
0.19339656829833984,
0.5758064985275269,
-0.03021472692489624,
-0.21908481419086456,
-0.10334841907024384,
-0.2501760423183441,
0.9639765024185181,
-0.09104791283607483,
-0.26139557361602783,
0.18803925812244415,
0.25212007761001587,
0.06966227293014526,
-0.1496625542640686,
-0.21069291234016418,
0.2268148958683014,
0.14989535510540009,
-0.012071743607521057,
0.18206606805324554,
-0.10185110569000244,
0.09082365036010742,
-0.00648440420627594,
-0.16290654242038727,
-0.06515412032604218,
-0.3694272041320801,
-0.23092246055603027,
-0.06250876933336258,
0.18146175146102905,
-0.0226508267223835,
0.09202413260936737,
-0.40597862005233765,
0.10616837441921234,
0.2339818775653839,
-0.17395055294036865,
0.20424635708332062,
-0.011072617024183273,
0.10493966937065125,
0.019305642694234848,
0.15222997963428497,
-0.1700286865234375,
0.3072299361228943,
-0.3097631633281708,
0.04766514152288437,
-0.279103547334671,
-0.013028938323259354,
0.2011614292860031,
0.0132356658577919,
0.3436422348022461,
0.5690306425094604,
0.09851393103599548,
-0.04794027656316757,
-0.25606048107147217,
0.49189066886901855,
-0.2900902032852173,
-0.11554709076881409,
0.3786419630050659,
0.16696259379386902,
0.12300175428390503,
0.3054516911506653,
0.2370193600654602,
0.06819488108158112,
-0.18518061935901642,
0.40379491448402405,
-0.07327000796794891,
-0.17303109169006348,
-0.03462091088294983,
0.1439497470855713,
1.0082626342773438,
0.06596660614013672,
0.14274032413959503,
0.08594904839992523,
-0.366224080324173,
-0.012762650847434998,
0.09895363450050354,
0.2966797351837158,
-0.18210512399673462,
-0.15071088075637817,
0.07726705074310303,
-0.01641305536031723,
0.15283767879009247,
-0.08372655510902405,
-0.3051028847694397,
0.5029765367507935,
0.23730851709842682,
-0.2455085963010788,
-0.18257570266723633,
-0.28114044666290283,
-0.10204555839300156,
-0.3525353670120239,
-0.015313350595533848,
0.014993906021118164,
0.01674739643931389,
-0.04915141686797142,
-0.24288851022720337,
0.21792705357074738,
0.45799875259399414,
-0.327572762966156,
-0.5520534515380859,
0.09704336524009705,
-0.3538520336151123,
0.12544259428977966,
-0.10177115350961685,
0.15601608157157898,
-0.014572642743587494,
0.3209180533885956,
0.2605886459350586,
-0.20928260684013367,
-0.14039161801338196,
0.06808061897754669,
0.42104893922805786,
-0.02756572887301445,
-0.05252312123775482,
-0.01861603930592537,
-0.04601157456636429,
-0.07147134840488434,
-0.20839709043502808,
0.23694606125354767,
-0.23611345887184143,
0.056713514029979706,
-0.4017179608345032,
0.29216495156288147,
0.1818339228630066,
0.1981835812330246,
-0.13079918920993805,
0.2302303910255432,
-0.09914619475603104,
-0.15831148624420166,
0.06418373435735703,
0.017110642045736313,
-0.4364326000213623,
0.3884578347206116,
-0.6675551533699036,
-0.1721237599849701,
0.022978875786066055,
0.09336183220148087,
-0.15144529938697815,
-0.21838879585266113,
0.2554524838924408,
0.29425644874572754,
-0.041381288319826126,
-0.1620464324951172,
-0.06785950064659119,
-0.502735435962677,
-0.24374890327453613,
-0.023828541859984398,
0.49969911575317383,
-0.18137583136558533,
0.2660713493824005,
-0.1820056438446045,
0.1536480039358139,
0.06845930218696594,
0.04829162359237671,
-0.4530947804450989,
-0.16922789812088013,
0.041360050439834595,
-0.10644205659627914,
0.12757006287574768,
-0.11533358693122864,
0.013379700481891632,
0.09076831489801407,
0.02949661575257778,
-0.23644603788852692,
-0.05036298930644989,
-0.18197001516819,
0.06837546825408936,
0.13643985986709595,
-0.2566855847835541,
0.062401242554187775,
0.22162503004074097,
0.053017184138298035,
0.35496532917022705,
-0.31327852606773376,
-0.09963813424110413,
0.04404650628566742,
0.09952185302972794,
-0.15422841906547546,
-0.06049137935042381,
0.1313074678182602,
0.19404961168766022,
0.06775987893342972,
-0.036791104823350906,
0.12096606194972992,
0.08614320307970047,
-0.20975300669670105,
0.0010943859815597534,
-0.15691626071929932,
0.32322797179222107,
0.19265945255756378,
0.22625386714935303,
-0.15206600725650787,
0.4106263220310211,
0.18054579198360443,
0.0026901159435510635,
-0.02247370406985283,
-0.0589791014790535,
0.0302354097366333,
0.023804616183042526,
-0.07920388877391815,
-0.20040133595466614,
-0.1716606467962265,
-0.04449008032679558,
-0.41749054193496704,
-0.2303556650876999,
0.23377269506454468,
0.41215401887893677,
-0.11317209154367447,
0.26894834637641907,
0.3589968681335449,
0.14175938069820404,
-0.1508745551109314,
0.135093554854393,
-0.10227175801992416,
-0.22683578729629517,
-0.15456406772136688,
0.3098674714565277,
0.08775199949741364,
-0.42682594060897827,
0.40175163745880127,
0.10556916892528534,
0.2037147879600525,
-0.34656670689582825,
-0.3353353440761566,
0.1248307153582573,
0.28164470195770264,
0.14357838034629822,
0.02068781666457653,
-0.09542372822761536,
0.13402806222438812,
0.42477890849113464,
-0.22974854707717896,
0.1962561011314392,
-0.42189279198646545,
0.24813617765903473,
0.06723061203956604,
-0.22359885275363922,
-0.2706950902938843,
0.18429116904735565,
-0.3110417425632477,
0.44558197259902954,
-0.2803734242916107,
0.5137363076210022,
-0.7224975228309631,
-0.37786969542503357,
-0.29431647062301636,
0.36820849776268005,
-0.18513908982276917,
-0.18656118214130402,
0.17712604999542236,
0.059812694787979126,
-0.03879392892122269,
0.1001301109790802,
0.28237128257751465,
-0.0009698942303657532,
0.5339973568916321,
0.13893909752368927,
-0.11509834229946136,
-0.1258365511894226,
-0.5283536911010742,
0.21127118170261383,
0.061876021325588226,
-0.18728205561637878,
0.3285215497016907,
0.6931874752044678,
-0.07393652200698853,
-0.15328073501586914,
0.0762571394443512,
0.5918375849723816,
0.35020911693573,
-0.6384211182594299,
0.08129090070724487,
0.14673282206058502,
0.19461791217327118,
0.026822678744792938,
0.15086105465888977,
0.1952531933784485,
0.26288026571273804,
-0.008512087166309357,
-0.001749526709318161,
-0.08430697023868561,
-0.15174618363380432,
0.23414736986160278,
0.21143943071365356,
0.21197038888931274,
0.3036636412143707,
-0.18037492036819458,
-0.10488356649875641,
0.007672816514968872,
0.1784789264202118,
-0.6597291827201843,
0.09432966262102127,
0.04670592024922371,
-0.4122411906719208,
0.02291198819875717,
0.15297789871692657,
0.050307512283325195,
0.04590312018990517,
0.45793381333351135,
-0.03732679411768913,
0.252183735370636,
-0.2265133112668991,
-0.24710597097873688,
-0.34947019815444946,
0.001282624900341034,
0.23407074809074402,
0.03216846287250519,
-0.26942136883735657,
-0.1398395448923111,
0.006718017160892487,
0.17224842309951782,
-0.009175814688205719,
0.002984270453453064,
0.33016136288642883,
0.5812100172042847,
-0.5686644911766052,
0.3624999225139618,
0.42132365703582764,
-0.023312117904424667,
0.30726194381713867,
-0.40777045488357544,
0.21793454885482788,
0.06598184257745743,
-0.018494270741939545,
-0.11867959052324295,
0.2612791359424591,
-0.21286103129386902,
0.3040603697299957,
0.14489156007766724,
0.1129050999879837,
0.15317539870738983,
-0.040270380675792694,
-0.1507805585861206,
-0.06879053264856339,
0.2566033601760864,
0.2663230001926422,
-0.36583763360977173,
0.18593882024288177,
0.10334718227386475,
-0.37215495109558105,
-0.06252788752317429,
-0.06904517114162445,
0.028853323310613632,
0.15285438299179077,
0.13545775413513184,
-0.2201826274394989,
0.10538961738348007,
0.07798689603805542,
0.11020766198635101,
0.10673370212316513,
0.4693092107772827,
0.03133879974484444,
0.17244940996170044,
-0.29650846123695374,
-0.10135186463594437,
0.22141864895820618,
-0.2022678554058075,
-0.23846322298049927,
-0.18935328722000122,
0.5010420083999634,
-0.45496249198913574,
0.04831211268901825,
-0.24511513113975525,
0.006587371230125427,
-0.04835671931505203,
0.12495321035385132,
-0.6412273645401001,
0.2450706660747528,
-0.3631625771522522,
-0.7568079233169556,
0.11770711839199066,
-0.1873658001422882,
0.17633534967899323,
-0.12206480652093887,
0.35756629705429077,
-0.1268754005432129
] |
https://github.com/huggingface/datasets/issues/2067 | Usually OSError of an arrow file on windows means that the file is currently opened as a dataset object, so you can't overwrite it until the dataset object falls out of scope.
Can you make sure that there's no dataset object that loaded the `cache-9b4f203a63742dfc.arrow` file ? | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 47 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Usually OSError of an arrow file on windows means that the file is currently opened as a dataset object, so you can't overwrite it until the dataset object falls out of scope.
Can you make sure that there's no dataset object that loaded the `cache-9b4f203a63742dfc.arrow` file ? | [
-0.3012990355491638,
-0.2888679802417755,
-0.08387655019760132,
0.19855482876300812,
0.024326074868440628,
-0.052532315254211426,
0.06525401771068573,
-0.014697568491101265,
0.08489978313446045,
0.28298115730285645,
0.17037929594516754,
0.26384198665618896,
-0.31195971369743347,
-0.10786550492048264,
-0.3288581967353821,
-0.15838083624839783,
0.006989482790231705,
-0.0020368508994579315,
0.13822883367538452,
0.2635190486907959,
-0.45213669538497925,
0.4412012994289398,
-0.26161450147628784,
0.29266250133514404,
-0.39326635003089905,
-0.21155281364917755,
-0.13868089020252228,
0.44381600618362427,
0.06617734581232071,
-0.4786921739578247,
0.000565163791179657,
-0.41433843970298767,
0.17441755533218384,
0.1870650351047516,
-0.00011593153612921014,
-0.06843329966068268,
0.042629752308130264,
0.04080936312675476,
0.26287686824798584,
0.20875340700149536,
0.22274553775787354,
-0.04344978928565979,
0.08066394925117493,
-0.06293689459562302,
0.36006954312324524,
0.1284511536359787,
-0.020727546885609627,
-0.12253987789154053,
0.45982155203819275,
0.4392026662826538,
0.16873440146446228,
0.29018348455429077,
0.17811356484889984,
0.09790679812431335,
-0.15735620260238647,
-0.335421085357666,
-0.10237150639295578,
0.24539057910442352,
0.3822474479675293,
-0.2205764651298523,
0.024191351607441902,
0.23575659096240997,
-0.19614097476005554,
0.1414804905653,
-0.33746927976608276,
-0.0767131969332695,
0.41966715455055237,
-0.4534090459346771,
0.10919973254203796,
-0.03032223880290985,
0.08269163966178894,
-0.1416194587945938,
0.20353519916534424,
0.07132472842931747,
0.0753629058599472,
-0.8428002595901489,
0.0727442055940628,
0.22416430711746216,
-0.3516499400138855,
0.023474903777241707,
0.09541939198970795,
-0.07229549437761307,
-0.12136700749397278,
-0.08558938652276993,
0.0745181143283844,
0.007409397512674332,
0.022639326751232147,
0.21464690566062927,
0.24427185952663422,
0.2144131064414978,
-0.09972284734249115,
0.3688185214996338,
-0.16942988336086273,
0.07757674157619476,
-0.47251904010772705,
0.12558387219905853,
-0.1103655993938446,
0.10668677091598511,
-0.2916967272758484,
-0.0352250337600708,
0.13700927793979645,
0.16704459488391876,
0.1998489797115326,
0.20739229023456573,
0.20345838367938995,
-0.06746508181095123,
0.09277305006980896,
-0.5522862076759338,
0.11399760842323303,
-0.4261641502380371,
-0.16623462736606598,
-0.07750444114208221,
-0.058307260274887085,
-0.6734822392463684,
0.386569082736969,
0.38237887620925903,
0.2839418649673462,
-0.1032036691904068,
-0.3083174526691437,
0.19888177514076233,
-0.012898162007331848,
0.14736510813236237,
0.22528205811977386,
0.225657120347023,
0.3258134424686432,
0.7511109113693237,
0.017836660146713257,
0.1931525617837906,
-0.561514139175415,
0.10340666025876999,
0.12310358881950378,
0.07905462384223938,
-0.39851295948028564,
0.144761323928833,
0.182488813996315,
0.00660298764705658,
0.19230177998542786,
-0.013763464987277985,
0.2352597713470459,
-0.27884823083877563,
0.006942324340343475,
-0.22928529977798462,
-0.05831417068839073,
0.23405836522579193,
0.12576480209827423,
0.24750971794128418,
0.04950321838259697,
0.09672906249761581,
0.04791443049907684,
0.32630234956741333,
-0.4066801071166992,
-0.43466997146606445,
-0.21207170188426971,
0.08558321744203568,
0.3318752348423004,
0.32498404383659363,
0.19219718873500824,
-0.12621575593948364,
0.2943270206451416,
-0.23135361075401306,
0.03850751370191574,
-0.4561123847961426,
-0.20425209403038025,
-0.36382314562797546,
-0.09649138152599335,
0.2022484540939331,
-0.19776993989944458,
0.27080920338630676,
0.18462589383125305,
-0.06089235469698906,
0.15179289877414703,
0.4130901098251343,
0.10462115705013275,
-0.2259475290775299,
-0.17287355661392212,
0.07342387735843658,
0.021048303693532944,
-0.11634378135204315,
-0.18030965328216553,
0.05924798548221588,
-0.1359139382839203,
-0.12486298382282257,
0.1888771802186966,
0.08124221861362457,
-0.032982900738716125,
-0.1442914456129074,
0.2504728436470032,
-0.1793409138917923,
-0.0492129847407341,
0.13649287819862366,
-0.2602326571941376,
0.1588732898235321,
-0.26080062985420227,
0.08280982822179794,
0.015311485156416893,
-0.2696193754673004,
0.0008565671741962433,
-0.3050090968608856,
0.31336700916290283,
0.0978257805109024,
-0.019854113459587097,
0.33420589566230774,
0.21499767899513245,
-0.04928557574748993,
0.11614356935024261,
-0.2854293882846832,
-0.05914787948131561,
0.03610866516828537,
-0.17027032375335693,
-0.0094009879976511,
0.14694496989250183,
0.15020067989826202,
0.18286320567131042,
0.3816410303115845,
-0.26322513818740845,
-0.27833619713783264,
0.061717718839645386,
-0.08594923466444016,
0.08824918419122696,
-0.2227863073348999,
-0.09870152920484543,
0.4120553135871887,
0.014545366168022156,
-0.09103578329086304,
-0.09435024857521057,
-0.04712919890880585,
-0.368472695350647,
-0.396433562040329,
-0.1642620861530304,
0.22398066520690918,
0.08592483401298523,
0.18449683487415314,
-0.025565046817064285,
0.26498308777809143,
0.07452992349863052,
-0.17389197647571564,
-0.12687163054943085,
0.0038353800773620605,
0.12433748692274094,
-0.4475925862789154,
0.1477019041776657,
0.12275907397270203,
0.0794958621263504,
-0.14095503091812134,
0.49054765701293945,
0.1705707609653473,
-0.0011531268246471882,
0.2986794710159302,
-0.12566417455673218,
0.2619836926460266,
0.12337570637464523,
0.15302370488643646,
0.10671217739582062,
0.17652527987957,
0.5011746883392334,
-0.011043267324566841,
0.017214618623256683,
-0.30966150760650635,
-0.2230343520641327,
0.061209797859191895,
0.3033374547958374,
0.170925572514534,
0.08340924978256226,
0.047092121094465256,
-0.304357647895813,
0.2167910635471344,
-0.02483345754444599,
-0.286458283662796,
0.6092162132263184,
0.09398159384727478,
-0.048090267926454544,
0.23173017799854279,
-0.37340086698532104,
-0.10235241055488586,
0.2643333077430725,
0.09586720168590546,
0.22973452508449554,
0.16502098739147186,
-0.14047174155712128,
-0.06399041414260864,
-0.17301559448242188,
-0.2523161470890045,
-0.17248205840587616,
0.09481541067361832,
-0.30478888750076294,
0.11456138640642166,
-0.10763123631477356,
0.4711630940437317,
-0.43640202283859253,
-0.571509063243866,
-0.021258603781461716,
-0.22871677577495575,
0.09436545521020889,
0.3082365095615387,
-0.06786021590232849,
0.00817914679646492,
-0.10764497518539429,
-0.04292336106300354,
0.19493767619132996,
0.20072127878665924,
0.207179993391037,
-0.1450234204530716,
-0.15353764593601227,
-0.05266907066106796,
0.3419601023197174,
-0.1540524959564209,
0.2248850017786026,
0.27569371461868286,
0.19287410378456116,
-0.025049909949302673,
0.18333572149276733,
-0.08843134343624115,
0.14626872539520264,
0.08712241798639297,
0.0022805333137512207,
0.1489717662334442,
0.024493053555488586,
-0.4572961926460266,
0.17402750253677368,
-0.4738197326660156,
0.09655307978391647,
0.18646270036697388,
0.12732569873332977,
-0.27302464842796326,
-0.15489380061626434,
-0.16576063632965088,
-0.4591582715511322,
-0.37351351976394653,
0.11616964638233185,
-0.1351015418767929,
0.3259914517402649,
-0.17248864471912384,
0.1658075451850891,
0.18881480395793915,
0.2840820550918579,
-0.11599771678447723,
-0.04642845690250397,
0.2811428904533386,
0.027478517964482307,
-0.27554771304130554,
-0.20809969305992126,
0.1801072210073471,
0.12718512117862701,
0.07160156965255737,
-0.06430450826883316,
-0.25952810049057007,
-0.28461310267448425,
-0.08324053883552551,
0.10085985064506531,
-0.13801881670951843,
0.23870137333869934,
0.4770815074443817,
0.231362983584404,
-0.19337016344070435,
0.11741791665554047,
-0.09190383553504944,
0.04584582895040512,
-0.0704018622636795,
0.1200021505355835,
0.2052815854549408,
0.22946183383464813,
-0.21555879712104797,
0.6325456500053406,
0.45821502804756165,
0.03079291433095932,
0.36804264783859253,
0.12409809231758118,
0.06560228765010834,
0.002461738884449005,
-0.16062450408935547,
0.09120096266269684,
-0.4899180233478546,
-0.06128723546862602,
0.15343528985977173,
0.12727069854736328,
-0.32576847076416016,
-0.19799861311912537,
0.3006587624549866,
-0.3699684739112854,
-0.17699307203292847,
0.2430412769317627,
-0.15699072182178497,
0.044219255447387695,
-0.2551781237125397,
-0.02871520072221756,
0.002401605248451233,
0.13843519985675812,
0.027594365179538727,
0.13333997130393982,
-0.23778583109378815,
-0.21518969535827637,
-0.09155210107564926,
-0.4752044379711151,
-0.46214085817337036,
0.42458510398864746,
0.0595678873360157,
0.5636225938796997,
0.12640821933746338,
-0.23057551681995392,
-0.05311938747763634,
-0.3705176115036011,
0.699120819568634,
-0.03580358251929283,
-0.2761754095554352,
0.2132500559091568,
0.24028944969177246,
-0.24655269086360931,
-0.1589066982269287,
-0.26129597425460815,
0.4468986988067627,
0.020823072642087936,
-0.06128415837883949,
0.2832249701023102,
-0.05139899626374245,
-0.033578574657440186,
-0.04753359779715538,
-0.2228851020336151,
-0.04920072853565216,
-0.34127354621887207,
-0.3061119318008423,
-0.08095230162143707,
0.2572229206562042,
0.012558996677398682,
0.037871140986680984,
-0.3442617654800415,
0.09753604978322983,
-0.06850569695234299,
-0.1439993977546692,
0.05118642747402191,
-0.14449867606163025,
0.2184312343597412,
-0.24858827888965607,
0.06269437074661255,
-0.21415872871875763,
0.5296192765235901,
0.09320772439241409,
0.24484048783779144,
-0.16846878826618195,
0.017168434336781502,
0.30497971177101135,
-0.16243797540664673,
0.3107883036136627,
0.3642147183418274,
0.15948592126369476,
0.03423366695642471,
-0.3147217333316803,
0.41392332315444946,
-0.0765744149684906,
-0.19695208966732025,
0.2822986841201782,
0.2887895703315735,
0.09021483361721039,
0.3220946192741394,
0.4193080961704254,
0.1612427681684494,
-0.09387288987636566,
0.6326378583908081,
-0.14045174419879913,
-0.015639688819646835,
0.1491311639547348,
0.15728072822093964,
0.911328136920929,
0.04260130226612091,
0.1545386165380478,
0.05791584029793739,
-0.5945174694061279,
-0.09509885311126709,
-0.03423973545432091,
0.26792556047439575,
-0.2766168713569641,
-0.1228446513414383,
0.06868363916873932,
-0.12800073623657227,
0.10484980046749115,
0.011140622198581696,
-0.2543606758117676,
0.3314642608165741,
0.12192107737064362,
-0.3869193196296692,
-0.09594152122735977,
-0.2051418125629425,
-0.06873966753482819,
-0.20717349648475647,
0.045601602643728256,
0.05802833288908005,
0.07268355786800385,
-0.08642427623271942,
-0.22334519028663635,
0.13298124074935913,
0.3250890076160431,
-0.37294313311576843,
-0.48273077607154846,
0.023227781057357788,
-0.4337730407714844,
0.17459242045879364,
0.022566843777894974,
-0.08600020408630371,
0.06891533732414246,
0.34635302424430847,
0.09829112887382507,
-0.24056199193000793,
-0.17299261689186096,
0.00995149090886116,
0.627453088760376,
-0.18285086750984192,
-0.054227326065301895,
-0.04066099226474762,
0.07883819937705994,
-0.1367994248867035,
-0.26354172825813293,
0.43349993228912354,
-0.1802440881729126,
-0.2150205671787262,
-0.0945548489689827,
0.34973958134651184,
0.12785527110099792,
0.2987194359302521,
-0.12524957954883575,
0.1256760209798813,
-0.15283726155757904,
-0.19789275527000427,
0.10090810060501099,
0.11823614686727524,
-0.42160898447036743,
0.5439649224281311,
-0.3533351421356201,
-0.20441293716430664,
0.05905110016465187,
0.00022589415311813354,
-0.05948001146316528,
-0.03573936969041824,
0.3162465989589691,
0.2656044065952301,
-0.15355557203292847,
-0.2551206052303314,
-0.07012727856636047,
-0.1949208825826645,
-0.2966144382953644,
-0.07747228443622589,
0.3323429226875305,
-0.14654013514518738,
0.3233778178691864,
-0.27384376525878906,
0.19832095503807068,
0.1877671182155609,
-0.14367252588272095,
-0.3700414001941681,
-0.2890413701534271,
0.024123767390847206,
-0.14047196507453918,
0.12582173943519592,
-0.12966954708099365,
-0.20566818118095398,
0.13240507245063782,
0.12876716256141663,
-0.28371572494506836,
0.10014719516038895,
-0.14400652050971985,
0.05192993953824043,
0.02020896226167679,
-0.24936652183532715,
-0.03263547644019127,
0.2872551381587982,
0.035303037613630295,
0.2821321189403534,
-0.3100240230560303,
-0.1693076640367508,
0.12928052246570587,
0.06830305606126785,
-0.10674869269132614,
-0.11516502499580383,
0.10554742813110352,
0.0432194247841835,
0.06281686574220657,
0.04557645320892334,
0.003349520266056061,
0.013754583895206451,
-0.36492326855659485,
0.04643329232931137,
0.059175871312618256,
0.16977925598621368,
0.04442863166332245,
0.34812116622924805,
-0.20076119899749756,
0.5282027721405029,
0.07793110609054565,
0.09939107298851013,
0.09371031075716019,
-0.028597809374332428,
0.06635543704032898,
-0.016921497881412506,
-0.10503776371479034,
-0.21671244502067566,
-0.23096497356891632,
-0.2578291893005371,
-0.34219691157341003,
-0.2438063621520996,
0.36170679330825806,
0.39173126220703125,
-0.14032979309558868,
0.22375601530075073,
0.3442857563495636,
0.1931288242340088,
-0.19980216026306152,
0.034146785736083984,
-0.03579341620206833,
-0.15095528960227966,
-0.05945345014333725,
0.3008093237876892,
0.1946815699338913,
-0.4732252359390259,
0.3133518695831299,
0.07270431518554688,
-0.009988076984882355,
-0.3309752345085144,
-0.3665044605731964,
0.1488688886165619,
0.17790549993515015,
0.03204629570245743,
0.09838747978210449,
-0.05027465894818306,
0.16278964281082153,
0.416014164686203,
-0.13464543223381042,
0.27284497022628784,
0.022548269480466843,
0.050252657383680344,
-0.1894926279783249,
-0.2202545404434204,
-0.35022908449172974,
-0.010718457400798798,
-0.2131241261959076,
0.31823664903640747,
-0.09381332248449326,
0.5318560004234314,
-0.47476518154144287,
-0.39784830808639526,
-0.17047524452209473,
0.22448761761188507,
-0.23336873948574066,
-0.12339547276496887,
-0.09333665668964386,
0.01605379581451416,
0.04455414414405823,
0.06838890165090561,
0.2233016937971115,
0.1202734112739563,
0.5587496161460876,
0.20864637196063995,
-0.07056795060634613,
-0.10671399533748627,
-0.263999879360199,
0.2165120244026184,
-0.037336163222789764,
-0.14359527826309204,
0.26020607352256775,
0.4493556022644043,
-0.02698185294866562,
-0.20663604140281677,
0.09954266250133514,
0.5852431058883667,
0.3542619049549103,
-0.7494063973426819,
0.032588012516498566,
0.16793248057365417,
0.1283968985080719,
-0.009752463549375534,
0.061060041189193726,
0.20161283016204834,
0.026462681591510773,
0.13230030238628387,
0.04440964385867119,
-0.13274800777435303,
0.1357133537530899,
0.13487203419208527,
0.2581340968608856,
0.23414209485054016,
-0.01965527981519699,
-0.061066512018442154,
-0.24029311537742615,
0.05297480523586273,
-0.051732759922742844,
-0.5167412161827087,
-0.07342059910297394,
0.312528133392334,
-0.44964373111724854,
0.007221877574920654,
0.07332561910152435,
0.07023412734270096,
-0.12850812077522278,
0.41875290870666504,
0.23823317885398865,
0.5921289920806885,
-0.18909911811351776,
-0.19179722666740417,
-0.39011305570602417,
0.16200369596481323,
-0.02425123192369938,
-0.08068176358938217,
-0.1342090368270874,
-0.11724063754081726,
0.028715036809444427,
0.18571807444095612,
0.3021776080131531,
0.22622157633304596,
0.4093021750450134,
0.7774031162261963,
-0.7687119841575623,
0.3445773422718048,
0.5484129786491394,
0.016610683873295784,
0.2883967459201813,
-0.45768284797668457,
0.10552947223186493,
0.09821823239326477,
0.0701034814119339,
-0.16295592486858368,
0.13609209656715393,
-0.11129625141620636,
0.48549965023994446,
0.40851494669914246,
0.009462928399443626,
0.21908029913902283,
0.04522888362407684,
-0.09948356449604034,
-0.006926175206899643,
0.28824979066848755,
0.15700167417526245,
-0.3998826742172241,
0.3899233937263489,
0.1509765088558197,
-0.35302305221557617,
-0.013395948335528374,
-0.03811843693256378,
-0.06989239156246185,
0.028415001928806305,
0.16960197687149048,
-0.06961235404014587,
0.12636157870292664,
0.023090973496437073,
-0.050387393683195114,
0.039020657539367676,
0.35774490237236023,
0.0982690304517746,
0.17866875231266022,
-0.2670297920703888,
0.0021818876266479492,
0.18038147687911987,
-0.08682642877101898,
-0.2147698849439621,
-0.21072669327259064,
0.4449526071548462,
-0.29143959283828735,
0.1601669192314148,
-0.18850235641002655,
-0.1079748123884201,
-0.08246354758739471,
-0.037001147866249084,
-0.7148553133010864,
0.0046231187880039215,
-0.3284478187561035,
-0.5302843451499939,
0.09871800988912582,
0.21862442791461945,
0.09924785047769547,
-0.017171736806631088,
0.05487486720085144,
-0.23082822561264038
] |
https://github.com/huggingface/datasets/issues/2067 | Now I understand
The error occures because the script got restarted in another thread, so the object is already loaded.
Still don't have an idea why a new thread starts the whole script again | Multiprocessing windows error | As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop | 34 | Multiprocessing windows error
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2
When using the num_proc argument on windows the whole Python environment crashes and hanging in loop.
For example at the map_to_array part.
An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
Now I understand
The error occures because the script got restarted in another thread, so the object is already loaded.
Still don't have an idea why a new thread starts the whole script again | [
-0.1712799370288849,
-0.6625725626945496,
-0.015667472034692764,
0.3150125741958618,
-0.010367951355874538,
-0.025893546640872955,
0.1337393820285797,
-0.13210530579090118,
0.0881272554397583,
0.2671477198600769,
0.23279546201229095,
0.06817074120044708,
-0.12538118660449982,
-0.06737571954727173,
-0.1413184404373169,
-0.09390464425086975,
0.09127538651227951,
-0.01726732775568962,
0.21231770515441895,
0.29248690605163574,
-0.4489225149154663,
0.4319567084312439,
-0.296261191368103,
0.1619100421667099,
-0.4213714599609375,
-0.030851269140839577,
-0.24378368258476257,
0.5600069165229797,
0.35955315828323364,
-0.4632328450679779,
-0.03081567957997322,
-0.36166056990623474,
0.24211370944976807,
0.13949164748191833,
-0.00012223649537190795,
-0.12079912424087524,
0.004493804182857275,
0.033482037484645844,
0.42926543951034546,
0.2617115378379822,
0.2565518617630005,
0.12223944067955017,
0.04992824047803879,
-0.08626344799995422,
0.23295530676841736,
0.35929733514785767,
0.12694886326789856,
-0.014465562999248505,
0.4354672431945801,
0.20341289043426514,
0.08139009773731232,
0.3555282950401306,
-0.08576253801584244,
0.005675151944160461,
-0.3969980478286743,
-0.5251871943473816,
0.0046939849853515625,
0.2967619299888611,
0.527470052242279,
-0.3028687536716461,
0.04612703248858452,
0.1945871263742447,
-0.2724512815475464,
0.14175258576869965,
-0.29011067748069763,
-0.050319354981184006,
0.4512547552585602,
-0.47488856315612793,
0.10354064404964447,
-0.043343108147382736,
-0.053686849772930145,
-0.13524405658245087,
0.35856983065605164,
0.08346378058195114,
0.07281680405139923,
-0.7990480661392212,
0.010399242863059044,
0.19021636247634888,
-0.2553434371948242,
0.09689949452877045,
0.028348445892333984,
0.01781560853123665,
0.01806003600358963,
-0.20192845165729523,
0.21416886150836945,
-0.08249406516551971,
0.06191089004278183,
0.2800358235836029,
0.1466715931892395,
0.51349937915802,
-0.17063727974891663,
0.2777178883552551,
-0.08766867220401764,
0.0011064112186431885,
-0.39322707056999207,
0.03701774775981903,
0.17745853960514069,
0.27754369378089905,
-0.2528109848499298,
-0.09795372188091278,
-0.017656248062849045,
0.12527938187122345,
0.1939219981431961,
0.11671629548072815,
0.2955617904663086,
-0.20593512058258057,
0.09392604231834412,
-0.719355583190918,
0.23746411502361298,
-0.38866472244262695,
-0.30855607986450195,
-0.1262359619140625,
0.012017879635095596,
-0.4726981818675995,
0.5541788935661316,
0.4347583055496216,
0.309013694524765,
0.027784422039985657,
-0.3281402587890625,
0.2083694487810135,
-0.03478768467903137,
0.0783001184463501,
0.19891047477722168,
0.23923371732234955,
0.2733892798423767,
0.726544201374054,
-0.00374564528465271,
0.08543802052736282,
-0.6531364917755127,
0.12511111795902252,
0.01207897812128067,
0.07539230585098267,
-0.2927777171134949,
0.21104896068572998,
0.18642766773700714,
-0.08958572149276733,
0.24648699164390564,
0.24711409211158752,
0.20024794340133667,
-0.4891737699508667,
-0.040861815214157104,
-0.15185919404029846,
-0.17923349142074585,
0.21119694411754608,
0.30169767141342163,
0.18575787544250488,
0.029187660664319992,
0.11409971117973328,
-0.016073547303676605,
0.28113648295402527,
-0.44623175263404846,
-0.4116552174091339,
-0.10339196026325226,
0.01958061009645462,
0.4211145341396332,
0.4560447335243225,
0.2546273469924927,
-0.18947423994541168,
0.2538905739784241,
-0.28140100836753845,
-0.054410818964242935,
-0.46155846118927,
-0.34251099824905396,
-0.35885903239250183,
-0.21772682666778564,
0.38950085639953613,
0.04938244819641113,
0.2522602379322052,
0.3038569986820221,
-0.12818273901939392,
0.03149789571762085,
0.2952198088169098,
0.11017534136772156,
-0.057213228195905685,
-0.26175007224082947,
-0.03749924153089523,
-0.30098265409469604,
-0.2548571228981018,
-0.025292018428444862,
0.13735225796699524,
-0.17252010107040405,
0.0516209602355957,
0.2739415168762207,
0.19592297077178955,
-0.0675697773694992,
-0.28929293155670166,
0.4228895306587219,
-0.3635500371456146,
-0.19169193506240845,
0.19802045822143555,
-0.12816572189331055,
0.2224155068397522,
-0.14051620662212372,
-0.0704595223069191,
0.028591357171535492,
-0.014097396284341812,
0.06005803495645523,
-0.0747784897685051,
0.31666457653045654,
0.06928873807191849,
-0.1556328535079956,
0.22024372220039368,
0.12032310664653778,
0.07674611359834671,
0.14010128378868103,
-0.28235775232315063,
-0.1525946408510208,
0.08151823282241821,
-0.14640474319458008,
-0.06481245905160904,
0.4011062979698181,
0.07771129906177521,
0.14141887426376343,
0.27707555890083313,
-0.16337792575359344,
-0.21560558676719666,
-0.024055827409029007,
0.06271354109048843,
-0.11233577132225037,
-0.28684964776039124,
-0.06498384475708008,
0.5646056532859802,
-0.09672477096319199,
-0.1501532644033432,
-0.17920982837677002,
-0.0841851755976677,
-0.3506614863872528,
-0.2286665290594101,
-0.09002547711133957,
0.3097999691963196,
0.3073633909225464,
0.05686647444963455,
0.13225482404232025,
0.2861675024032593,
0.16924142837524414,
-0.19247478246688843,
-0.19994814693927765,
-0.004284366965293884,
0.11246109008789062,
-0.22499316930770874,
0.14712972939014435,
-0.0961141362786293,
0.1865077167749405,
-0.3468337059020996,
0.5800676941871643,
0.06727572530508041,
0.013212626799941063,
0.17503592371940613,
-0.09669147431850433,
0.05443893373012543,
0.09182225912809372,
-0.07464875280857086,
0.18072938919067383,
0.1711859405040741,
0.3868526220321655,
0.24447716772556305,
-0.09281391650438309,
-0.25726598501205444,
-0.41583406925201416,
0.033752795308828354,
0.21617579460144043,
0.19494673609733582,
0.015319031663239002,
-0.020291319116950035,
-0.15017607808113098,
0.1898728609085083,
-0.18341509997844696,
-0.43302664160728455,
0.710969090461731,
0.05003959313035011,
-0.22007609903812408,
0.319489449262619,
-0.3909803330898285,
-0.15995043516159058,
0.14583685994148254,
0.07038432359695435,
0.27382177114486694,
0.18106956779956818,
-0.13378621637821198,
-0.07073517888784409,
-0.1608109176158905,
-0.1408391296863556,
-0.11027123034000397,
0.031002769246697426,
-0.31587982177734375,
0.15465709567070007,
-0.05567144602537155,
0.5288812518119812,
-0.5717421770095825,
-0.2965102791786194,
0.1039448231458664,
-0.14314943552017212,
-0.026252957060933113,
0.4722510278224945,
0.04340951144695282,
-0.1602647751569748,
0.10587970912456512,
-0.008490040898323059,
0.053319454193115234,
0.4678291082382202,
0.2351023107767105,
-0.10785840451717377,
-0.08093737065792084,
-0.14812658727169037,
0.27205216884613037,
-0.26539847254753113,
0.2656960189342499,
0.2764616012573242,
0.021756358444690704,
0.08742091804742813,
0.1147225871682167,
-0.07549217343330383,
0.07892313599586487,
0.22302308678627014,
0.03630007430911064,
0.13915503025054932,
0.2482607662677765,
-0.31958848237991333,
0.07396139204502106,
-0.331523597240448,
0.16129818558692932,
0.18166211247444153,
0.04053806886076927,
-0.47109323740005493,
-0.19506606459617615,
-0.1901162564754486,
-0.29666194319725037,
-0.04531767591834068,
0.03244030475616455,
-0.16223734617233276,
0.2462160885334015,
-0.2940748631954193,
0.04607965052127838,
0.058027639985084534,
0.3004620373249054,
-0.12974992394447327,
-0.17751038074493408,
0.1552203893661499,
-0.22798636555671692,
-0.18656164407730103,
-0.17709067463874817,
0.24029406905174255,
0.09299439936876297,
0.05296261981129646,
-0.24804389476776123,
-0.35085105895996094,
-0.4391508996486664,
-0.03107946552336216,
0.016328774392604828,
-0.09752658754587173,
0.27507561445236206,
0.38727644085884094,
0.17050622403621674,
-0.10096718370914459,
0.055506378412246704,
-0.20206686854362488,
-0.04022869095206261,
-0.02344982512295246,
0.042374175041913986,
0.21113936603069305,
0.280583918094635,
-0.10635383427143097,
0.38296106457710266,
0.47703424096107483,
0.04140523076057434,
0.2799215316772461,
0.012513333931565285,
0.07769443094730377,
-0.047738704830408096,
-0.21130681037902832,
0.0037537068128585815,
-0.47063156962394714,
-0.2145148515701294,
0.14373739063739777,
0.08389534056186676,
-0.28865981101989746,
-0.2216685265302658,
0.1442611664533615,
-0.3500610589981079,
-0.0793585404753685,
0.05413550138473511,
0.03398030623793602,
0.09217312932014465,
-0.10497510433197021,
-0.05969449505209923,
0.11241608113050461,
0.1811380833387375,
-0.17170780897140503,
0.22319923341274261,
-0.0951152890920639,
-0.2706491947174072,
-0.14064007997512817,
-0.5947110056877136,
-0.3499530553817749,
0.34173017740249634,
0.12604975700378418,
0.5890112519264221,
0.08959081768989563,
-0.06416850537061691,
0.08162133395671844,
-0.3378751277923584,
0.8207426071166992,
-0.06554094702005386,
-0.12960505485534668,
0.1744304597377777,
0.11247866600751877,
-0.031246233731508255,
-0.09491316229104996,
-0.1349959522485733,
0.3841560184955597,
0.16490879654884338,
-0.05572379007935524,
0.3446405529975891,
-0.002125561237335205,
0.17973674833774567,
-0.03457226604223251,
-0.29099708795547485,
-0.17934077978134155,
-0.37076494097709656,
-0.36367976665496826,
-0.10765440762042999,
0.2095051109790802,
-0.1274852603673935,
-0.023697471246123314,
-0.4341149926185608,
0.04189780354499817,
0.17327331006526947,
-0.07983007282018661,
0.14047160744667053,
-0.08377629518508911,
0.014860350638628006,
-0.10358843952417374,
0.11901597678661346,
-0.3424035310745239,
0.3403809070587158,
-0.12294017523527145,
0.0551147498190403,
-0.12247875332832336,
0.2570064663887024,
0.2643358111381531,
-0.044844403862953186,
0.3813433349132538,
0.3954421579837799,
0.14931073784828186,
-0.016191605478525162,
-0.2516629993915558,
0.4158468544483185,
-0.25762665271759033,
-0.29469648003578186,
0.34506213665008545,
0.23403216898441315,
0.02137831598520279,
0.21163958311080933,
0.2932527959346771,
0.1255919635295868,
-0.08133503049612045,
0.560887336730957,
-0.4173088073730469,
0.04707443714141846,
-0.05993490666151047,
0.033555299043655396,
0.9265297055244446,
0.035853683948516846,
0.08676865696907043,
0.008221112191677094,
-0.5504249930381775,
-0.28224894404411316,
-0.045165009796619415,
0.32867905497550964,
-0.35029739141464233,
-0.1361202895641327,
0.008969910442829132,
-0.12741562724113464,
0.15315133333206177,
-0.10189898312091827,
-0.19593465328216553,
0.40018004179000854,
0.14832764863967896,
-0.30792227387428284,
-0.14864268898963928,
-0.09666022658348083,
-0.1646384745836258,
-0.07118852436542511,
0.25689589977264404,
-0.02416541427373886,
0.08934113383293152,
0.0283762626349926,
-0.3298291563987732,
0.2616400420665741,
0.5286316871643066,
-0.43120044469833374,
-0.5639265775680542,
-0.0004574805498123169,
-0.20299023389816284,
0.15603779256343842,
-0.08686482906341553,
0.1947956085205078,
-0.02623101696372032,
0.2657792568206787,
0.141968235373497,
-0.12945857644081116,
-0.058921441435813904,
0.07339487969875336,
0.4570518732070923,
-0.11654853075742722,
-0.0910666435956955,
-0.06545941531658173,
0.09788590669631958,
-0.07435987889766693,
-0.31049758195877075,
0.2991294264793396,
-0.07400345802307129,
-0.15958255529403687,
-0.37903106212615967,
0.5051360130310059,
0.15668068826198578,
0.13285067677497864,
-0.20496276021003723,
0.3506375849246979,
-0.13902872800827026,
-0.20634132623672485,
0.04445904493331909,
0.09483474493026733,
-0.3500111699104309,
0.5624648928642273,
-0.6116796731948853,
-0.23837976157665253,
0.006032643839716911,
0.03211567550897598,
0.16798630356788635,
-0.11394564062356949,
0.15241068601608276,
0.3349117040634155,
-0.07597267627716064,
-0.19078783690929413,
-0.10886093229055405,
-0.39421069622039795,
-0.12000762671232224,
0.038936734199523926,
0.43789976835250854,
0.0002709925174713135,
0.26219460368156433,
-0.21921813488006592,
-0.07778774201869965,
0.17110681533813477,
-0.014927573502063751,
-0.41758859157562256,
-0.1179727092385292,
-0.1142519861459732,
-0.07142656296491623,
0.18894129991531372,
0.16126999258995056,
0.2009701132774353,
0.11117631942033768,
0.16408006846904755,
-0.21953798830509186,
0.08231636881828308,
-0.04740836098790169,
0.14645279943943024,
0.16211390495300293,
-0.1990697681903839,
-0.1465611606836319,
0.2585705518722534,
0.024545423686504364,
0.43140774965286255,
-0.28681620955467224,
-0.07698710262775421,
0.05707105994224548,
0.1320337951183319,
-0.06447411328554153,
-0.03657688573002815,
-0.03539160639047623,
0.009598806500434875,
0.20402824878692627,
0.05827552080154419,
0.21162158250808716,
0.144263356924057,
-0.2677050232887268,
0.16817234456539154,
0.15613244473934174,
0.24946996569633484,
0.16216154396533966,
0.2457757592201233,
-0.3181508779525757,
0.5134385824203491,
0.1124679297208786,
-0.027822550386190414,
-0.0005710795521736145,
0.04000997543334961,
-0.19525350630283356,
-0.05106639117002487,
0.056430891156196594,
-0.09846768528223038,
-0.14987322688102722,
-0.08407905697822571,
-0.26779186725616455,
-0.2255556732416153,
0.2083292454481125,
0.23342686891555786,
-0.20011873543262482,
0.24247552454471588,
0.18907403945922852,
0.13920578360557556,
-0.1934066265821457,
0.052516087889671326,
-0.04523704946041107,
-0.14183317124843597,
-0.17843171954154968,
0.32796719670295715,
0.18383227288722992,
-0.4275369346141815,
0.265091210603714,
0.014986589550971985,
0.27091529965400696,
-0.4879365563392639,
-0.30589714646339417,
-0.07975161075592041,
0.2495059072971344,
0.0095331110060215,
0.07674995064735413,
-0.03649459034204483,
0.10260582715272903,
0.4438358247280121,
0.05436256527900696,
0.09175276011228561,
-0.1511087566614151,
0.08789743483066559,
-0.0865112692117691,
-0.2448277771472931,
-0.22107315063476562,
0.13137362897396088,
-0.30526202917099,
0.3262874186038971,
-0.15483804047107697,
0.23474550247192383,
-0.4640170931816101,
-0.13890404999256134,
-0.3260337710380554,
0.37931859493255615,
-0.31932759284973145,
-0.14428071677684784,
0.0801301896572113,
0.05333280563354492,
0.2540436387062073,
0.1909761130809784,
0.320254921913147,
0.09937439858913422,
0.48180678486824036,
0.19110998511314392,
-0.24947044253349304,
-0.0012372490018606186,
-0.28000885248184204,
0.1448802649974823,
-0.057253237813711166,
-0.20167961716651917,
0.17517316341400146,
0.46240466833114624,
0.09028211236000061,
-0.21439555287361145,
0.028950350359082222,
0.5371638536453247,
0.37602028250694275,
-0.6026483774185181,
0.02540048584342003,
0.15686479210853577,
0.15015074610710144,
0.011498190462589264,
0.08235666155815125,
0.11651112139225006,
0.41389212012290955,
-0.07263602316379547,
-0.010402774438261986,
-0.08066803216934204,
0.07769419252872467,
0.3648619055747986,
0.09871084988117218,
0.07979646325111389,
0.21442338824272156,
-0.04904183745384216,
-0.21852532029151917,
0.009937837719917297,
0.3268943428993225,
-0.5410404801368713,
-0.07424984872341156,
0.27201277017593384,
-0.43770623207092285,
-0.015520431101322174,
-0.06754748523235321,
0.03925947844982147,
-0.10365522652864456,
0.22380651533603668,
0.12283989787101746,
0.2415568083524704,
-0.31142476201057434,
-0.15317358076572418,
-0.3678255081176758,
0.11484244465827942,
0.040641725063323975,
0.010596610605716705,
-0.10386817902326584,
0.01808241754770279,
-0.20687933266162872,
0.016151485964655876,
0.14468804001808167,
0.0786626935005188,
0.3608981668949127,
0.6846513748168945,
-0.47152766585350037,
0.2879044711589813,
0.2935226559638977,
-0.08751919120550156,
0.17422927916049957,
-0.2717556953430176,
0.21508173644542694,
-0.12408280372619629,
0.03590419888496399,
-0.2507133483886719,
0.1639462560415268,
-0.02069094032049179,
0.4521366059780121,
0.33757084608078003,
0.008204741403460503,
0.22944925725460052,
-0.07574120163917542,
-0.014094822108745575,
0.06961376965045929,
0.23636630177497864,
0.24771755933761597,
-0.4594479501247406,
0.2727327346801758,
-0.0016646534204483032,
-0.36053234338760376,
0.0471048578619957,
-0.020984016358852386,
-0.059732262045145035,
0.010536178946495056,
0.09093499183654785,
-0.018148262053728104,
0.0759609118103981,
-0.09917197376489639,
0.09925387054681778,
0.029601093381643295,
0.511515200138092,
0.1061001718044281,
0.2029326856136322,
-0.15986499190330505,
-0.02621745690703392,
0.1000169962644577,
-0.000649869441986084,
-0.2621959149837494,
-0.3264177739620209,
0.5467151999473572,
-0.6228097677230835,
0.12414948642253876,
-0.05231019854545593,
-0.07802703231573105,
0.030311204493045807,
0.053356513381004333,
-0.7121001482009888,
0.2988535165786743,
-0.3098047077655792,
-0.5994614362716675,
0.2013067752122879,
-0.10339746624231339,
0.16415894031524658,
-0.11843705922365189,
0.22329378128051758,
-0.16116929054260254
] |
https://github.com/huggingface/datasets/issues/2065 | Hi ! Thanks for reporting.
Currently there's no way to specify this.
When loading/processing a dataset, the arrow file is written using a temporary file. Then once writing is finished, it's moved to the cache directory (using `shutil.move` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646))
That means it keeps the permissions specified by the `tempfile.NamedTemporaryFile` object, i.e. `-rw-------` instead of `-rw-r--r--`. Improving this could be a nice first contribution to the library :) | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 67 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Hi ! Thanks for reporting.
Currently there's no way to specify this.
When loading/processing a dataset, the arrow file is written using a temporary file. Then once writing is finished, it's moved to the cache directory (using `shutil.move` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646))
That means it keeps the permissions specified by the `tempfile.NamedTemporaryFile` object, i.e. `-rw-------` instead of `-rw-r--r--`. Improving this could be a nice first contribution to the library :) | [
-0.11390159279108047,
0.2815684676170349,
-0.07893506437540054,
0.11773641407489777,
-0.025967609137296677,
0.09056645631790161,
0.4060140550136566,
0.11466380953788757,
-0.09347958117723465,
-0.0789993405342102,
-0.1739809215068817,
0.12208816409111023,
-0.05902677774429321,
-0.20906710624694824,
-0.021160395815968513,
0.06701549887657166,
0.13754895329475403,
0.11998003721237183,
-0.020917192101478577,
-0.07752187550067902,
-0.08099500834941864,
-0.06338874995708466,
-0.07038190960884094,
-0.02246565744280815,
-0.14904968440532684,
-0.22742368280887604,
0.2636187672615051,
0.21657870709896088,
0.05052705854177475,
-0.24894727766513824,
0.39332616329193115,
0.5603932738304138,
0.07887208461761475,
0.036811135709285736,
-0.00011671097308862954,
-0.12581509351730347,
0.0032833190634846687,
-0.10008138418197632,
0.010359466075897217,
0.15622617304325104,
0.003882467746734619,
-0.1965799182653427,
0.0558968186378479,
-0.10560908913612366,
-0.07175671309232712,
-0.009751681238412857,
0.07052207738161087,
-0.6625341176986694,
0.5320056080818176,
0.09112237393856049,
0.16123400628566742,
-0.002660781145095825,
-0.19055429100990295,
0.23747245967388153,
0.3361724019050598,
0.04953708499670029,
-0.29998141527175903,
0.12372121959924698,
0.25328314304351807,
-0.159429132938385,
-0.09955312311649323,
0.1485675871372223,
-0.25215205550193787,
0.14002487063407898,
0.27181264758110046,
-0.09976241737604141,
-0.4176008701324463,
-0.47728535532951355,
0.08092030882835388,
0.2960629463195801,
0.7476209402084351,
-0.2350282222032547,
-0.6028385162353516,
-0.30800262093544006,
0.05442410707473755,
0.041343122720718384,
0.42343461513519287,
0.35413554310798645,
0.08775690943002701,
0.26511839032173157,
-0.26069796085357666,
-0.04380464181303978,
-0.2725634276866913,
0.07077598571777344,
0.35934484004974365,
-0.061640940606594086,
-0.08565142750740051,
0.14998993277549744,
0.100201815366745,
-0.1112540066242218,
0.12715858221054077,
0.15061743557453156,
-0.3372896909713745,
0.47440436482429504,
-0.31533336639404297,
0.10501624643802643,
-0.2302902191877365,
0.28774237632751465,
0.19541683793067932,
0.42090272903442383,
0.23299114406108856,
0.20707838237285614,
-0.005303345620632172,
0.1705387979745865,
0.11389654874801636,
0.2038518488407135,
0.33601561188697815,
0.35912108421325684,
0.5324922800064087,
-0.27015671133995056,
-0.0247047021985054,
-0.04275856912136078,
0.03125486522912979,
-0.3672645688056946,
0.10352189838886261,
0.19411373138427734,
0.03017067164182663,
-0.22662842273712158,
0.20464643836021423,
0.07793401181697845,
-0.1002267524600029,
-0.16751627624034882,
0.08205941319465637,
0.2720397114753723,
0.07984663546085358,
0.0128087867051363,
0.0658995509147644,
0.17474445700645447,
0.009433411061763763,
-0.21593879163265228,
0.01314370334148407,
-0.31834161281585693,
-0.35585668683052063,
0.4290778636932373,
0.4010545015335083,
-0.29120516777038574,
0.0979929193854332,
0.18066363036632538,
0.1176944226026535,
-0.1855769008398056,
0.43653663992881775,
-0.12717799842357635,
0.46565765142440796,
0.41694560647010803,
0.12080331146717072,
0.33177313208580017,
0.02657414600253105,
0.09284131973981857,
-0.19259357452392578,
0.2829545736312866,
-0.27263307571411133,
-0.2166963666677475,
0.17521852254867554,
-0.026947371661663055,
-0.12245096266269684,
0.29854273796081543,
-0.4154492914676666,
0.0384296290576458,
0.5024693608283997,
-0.13701575994491577,
0.5040848851203918,
0.23932379484176636,
-0.08703656494617462,
-0.46915969252586365,
-0.11998823285102844,
0.38072890043258667,
-0.21054810285568237,
-0.040214166045188904,
-0.13333015143871307,
-0.05463184416294098,
-0.08191752433776855,
0.4235096871852875,
-0.10997234284877777,
0.04557071626186371,
-0.10043683648109436,
0.26157957315444946,
0.5675193667411804,
-0.17852789163589478,
-0.5578051209449768,
0.024296168237924576,
0.2172669768333435,
-0.1352308988571167,
0.11793358623981476,
0.08603957295417786,
0.1229751706123352,
-0.12732669711112976,
-0.28405308723449707,
0.38518258929252625,
0.27677205204963684,
0.23493695259094238,
0.1342644840478897,
-0.09281956404447556,
0.007756782695651054,
-0.04636605083942413,
-0.0722498744726181,
0.08978907763957977,
0.3758876323699951,
-0.35634198784828186,
0.24645207822322845,
-0.2243759036064148,
0.280627578496933,
0.4626380205154419,
0.14989104866981506,
-0.012264810502529144,
-0.004741650074720383,
-0.06460338830947876,
-0.504874587059021,
0.2847754955291748,
-0.10485802590847015,
-0.3897145092487335,
-0.060888729989528656,
-0.45286914706230164,
0.1028997153043747,
-0.189522385597229,
-0.2636232376098633,
-0.10187673568725586,
0.01718737557530403,
-0.15850315988063812,
0.0539393424987793,
-0.34113186597824097,
0.07772983610630035,
0.37286633253097534,
0.12564733624458313,
0.09265029430389404,
-0.3170211911201477,
0.11527516692876816,
0.04766274243593216,
-0.10843407362699509,
-0.20969116687774658,
0.06054438278079033,
0.17266148328781128,
-0.002026878297328949,
-0.28621214628219604,
0.3028354346752167,
0.11271040141582489,
0.11897151917219162,
-0.07513219118118286,
0.31477096676826477,
-0.0050379205495119095,
-0.047680724412202835,
0.13103795051574707,
-0.22224323451519012,
-0.05863604322075844,
-0.07012210786342621,
-0.2442380040884018,
0.43774527311325073,
-0.11959195882081985,
0.030349405482411385,
-0.2249271422624588,
0.1831502616405487,
0.13236229121685028,
0.04657168686389923,
-0.21256016194820404,
-0.18153703212738037,
-0.034594401717185974,
0.19693809747695923,
0.38521069288253784,
0.13864651322364807,
0.013944864273071289,
0.029781311750411987,
0.40344518423080444,
0.22284042835235596,
0.14700159430503845,
-0.020291708409786224,
-0.25163406133651733,
0.036787860095500946,
0.33162909746170044,
0.3446902334690094,
0.23738741874694824,
0.023981109261512756,
0.2902219891548157,
-0.24866046011447906,
0.3055887818336487,
-0.11376072466373444,
0.02035081759095192,
-0.09098358452320099,
0.1459847390651703,
-0.17945519089698792,
-0.10968371480703354,
-0.03309217467904091,
-0.13410741090774536,
0.23393957316875458,
0.015325970947742462,
0.08919151872396469,
-0.3397919535636902,
-0.10280558466911316,
-0.23078422248363495,
-0.1499904990196228,
0.22172269225120544,
-0.13832968473434448,
-0.5088286995887756,
-0.028106365352869034,
-0.21925464272499084,
0.21352343261241913,
-0.07016561925411224,
0.1367035210132599,
-0.3560691475868225,
0.09111426025629044,
-0.050691381096839905,
-0.2864064872264862,
-0.2728371024131775,
0.11885584890842438,
0.08051440119743347,
-0.021158210933208466,
0.24004019796848297,
-0.5178114771842957,
0.21122124791145325,
0.1159662976861,
0.2316279113292694,
-0.3298773169517517,
0.004156447947025299,
-0.16368530690670013,
0.008272605016827583,
0.08844029903411865,
-0.2788841426372528,
0.1476423144340515,
-0.15844860672950745,
-0.0314580537378788,
-0.10589221119880676,
-0.3152565360069275,
-0.21384921669960022,
0.003410905599594116,
-0.03788921236991882,
0.11635404825210571,
-0.2580217123031616,
-0.19514024257659912,
-0.18018858134746552,
-0.18530023097991943,
0.6918118596076965,
0.12873968482017517,
0.22761985659599304,
0.16147015988826752,
-0.18223202228546143,
-0.29581668972969055,
-0.2885790467262268,
0.1839357316493988,
-0.3551090359687805,
-0.46157923340797424,
0.37655824422836304,
-0.4756702780723572,
-0.3748239576816559,
0.15811759233474731,
0.08230304718017578,
0.14959806203842163,
0.42214158177375793,
-0.020189955830574036,
-0.06831325590610504,
-0.2880266308784485,
0.25202175974845886,
-0.23040743172168732,
0.1999938189983368,
0.07818031311035156,
0.0989566296339035,
0.1633313000202179,
-0.043246593326330185,
-0.1822212040424347,
0.15200920403003693,
-0.029681600630283356,
-0.22164717316627502,
0.18750855326652527,
0.09897120296955109,
0.08296665549278259,
0.8199110627174377,
0.4076657295227051,
0.2582356333732605,
0.30228132009506226,
0.3216724395751953,
0.6892605423927307,
0.017400991171598434,
-0.07833825051784515,
0.17679491639137268,
-0.04833734780550003,
0.024217240512371063,
0.07917953282594681,
0.13210777938365936,
-0.13525354862213135,
0.0937080979347229,
0.05077707767486572,
-0.27050095796585083,
-0.47049981355667114,
-0.15254603326320648,
-0.2357138842344284,
0.1107388436794281,
0.03676312416791916,
0.06436626613140106,
-0.23486392199993134,
-0.29284200072288513,
0.026822779327630997,
0.3534122109413147,
0.18919198215007782,
0.28687983751296997,
-0.256798654794693,
0.04825302213430405,
-0.29223552346229553,
0.3158988952636719,
-0.06029355525970459,
0.482071191072464,
-0.08320872485637665,
0.15534870326519012,
0.2287256419658661,
0.31115877628326416,
0.3185237646102905,
-0.34724345803260803,
0.16434714198112488,
-0.140858992934227,
0.2853546738624573,
0.10828400403261185,
-0.20878860354423523,
0.4010732173919678,
0.34123465418815613,
-0.03381098061800003,
0.06381501257419586,
0.011095747351646423,
-0.2834739685058594,
-0.4190143942832947,
-0.10381566733121872,
-0.055101267993450165,
-0.10895197093486786,
0.06914675235748291,
0.14114370942115784,
-0.23386472463607788,
-0.07339206337928772,
0.27502796053886414,
-0.3893100619316101,
-0.07735209912061691,
-0.10780736804008484,
-0.1599097102880478,
0.08545468747615814,
-0.0013957619667053223,
0.0076046958565711975,
0.47253257036209106,
-0.042145974934101105,
0.03401262313127518,
0.4962308704853058,
-0.019878659397363663,
0.12192253768444061,
0.43592461943626404,
-0.24144241213798523,
0.20701271295547485,
-0.2778049409389496,
-0.19873499870300293,
0.33107104897499084,
0.06025858223438263,
-0.4291297495365143,
0.12762868404388428,
0.02011161297559738,
-0.20264612138271332,
-0.18884208798408508,
-0.02835029736161232,
-0.07126925885677338,
0.05433539301156998,
-0.12405518442392349,
-0.6317941546440125,
0.35048291087150574,
0.5621970891952515,
-0.3145400285720825,
0.46333667635917664,
-0.07606667280197144,
-0.3373923599720001,
0.12918969988822937,
0.19390511512756348,
0.7914403676986694,
-0.24127277731895447,
0.3664587438106537,
-0.34109532833099365,
-0.17551353573799133,
0.2110014110803604,
-0.28236669301986694,
0.05960740149021149,
-0.5691586136817932,
-0.13155126571655273,
-0.10902702063322067,
-0.12614096701145172,
0.04644126445055008,
0.36063727736473083,
0.12352168560028076,
0.1501414179801941,
-0.0942053347826004,
-0.12149873375892639,
-0.2578483819961548,
-0.13363143801689148,
-0.1990875005722046,
-0.4416547119617462,
0.10405554622411728,
0.08687525987625122,
-0.2521273195743561,
0.033376190811395645,
0.007298074662685394,
-0.07975466549396515,
-0.17536160349845886,
0.19465740025043488,
-0.35107266902923584,
0.00948653370141983,
-0.7321100234985352,
0.05554640293121338,
-0.08023329079151154,
-0.07469867914915085,
0.2835652828216553,
0.241990864276886,
0.26554539799690247,
0.28179097175598145,
-0.06898465752601624,
-0.030594540759921074,
0.3015553653240204,
0.0778157189488411,
-0.24952465295791626,
0.09094229340553284,
0.3329409658908844,
0.15678980946540833,
0.1441711038351059,
-0.2441050261259079,
-0.23369140923023224,
-0.30971530079841614,
-0.13368594646453857,
0.16790196299552917,
0.06779631972312927,
-0.21807309985160828,
0.07140102982521057,
-0.12524686753749847,
-0.02805173397064209,
0.05175665020942688,
0.03432227671146393,
0.5124654769897461,
-0.013218432664871216,
0.4656543731689453,
-0.2672816812992096,
-0.2642108201980591,
0.08396822214126587,
0.4322429299354553,
-0.046950504183769226,
-0.14427395164966583,
0.30262306332588196,
-0.16809242963790894,
-0.23749014735221863,
-0.13432447612285614,
0.1846393644809723,
0.2124638557434082,
-0.4013373851776123,
0.014873776584863663,
0.17951804399490356,
-0.12597212195396423,
0.17920562624931335,
-0.32755351066589355,
0.02131163887679577,
0.15815746784210205,
0.04977831244468689,
-0.38073354959487915,
-0.5134575366973877,
-0.19813300669193268,
-0.4549815356731415,
0.3089853823184967,
0.14540518820285797,
-0.5356981158256531,
0.11617041379213333,
0.03305654972791672,
-0.18897858262062073,
-0.18971991539001465,
0.07237348705530167,
0.07741893082857132,
0.29646122455596924,
0.09872761368751526,
0.04964069649577141,
-0.1879550814628601,
-0.1491694152355194,
0.0007807034999132156,
-0.1911093294620514,
-0.11849105358123779,
-0.15992587804794312,
0.17779646813869476,
0.14365842938423157,
-0.4071888029575348,
0.06357672810554504,
-0.487798810005188,
-0.0730009526014328,
-0.4753144085407257,
0.07467581331729889,
0.25863271951675415,
0.20494365692138672,
0.2999977767467499,
0.15832769870758057,
0.014529812149703503,
-0.2263757437467575,
0.17821459472179413,
-0.14829353988170624,
-0.23181770741939545,
-0.20764878392219543,
0.23734000325202942,
-0.3053379952907562,
-0.07932861149311066,
0.1403389871120453,
-0.08588069677352905,
0.1546076089143753,
0.02719433605670929,
0.07240335643291473,
-0.013103295117616653,
-0.1753617823123932,
0.08595988154411316,
0.3437356650829315,
0.14271950721740723,
-0.007609181106090546,
0.0061483681201934814,
0.2816978693008423,
0.03918880224227905,
0.037750162184238434,
-0.16422398388385773,
0.14902932941913605,
-0.15912792086601257,
0.06123960018157959,
0.35407498478889465,
0.2451784312725067,
-0.2089478075504303,
0.08639498054981232,
-0.09960568696260452,
-0.06322136521339417,
-0.387013703584671,
0.3799756169319153,
0.05625031515955925,
0.03369989991188049,
0.03280288353562355,
0.45858126878738403,
0.22095531225204468,
0.16946330666542053,
0.3566693067550659,
0.10391385108232498,
0.20195002853870392,
0.37039563059806824,
-0.3335016071796417,
0.12434005737304688,
-0.6093454360961914,
-0.02810031548142433,
0.004825755953788757,
0.14108669757843018,
0.3332566022872925,
0.15623196959495544,
0.3620608448982239,
0.060689881443977356,
-0.3311576843261719,
0.09098371118307114,
-0.06582778692245483,
-0.0824802815914154,
-0.19363898038864136,
0.07948359102010727,
0.1319948434829712,
0.014934822916984558,
-0.2887558043003082,
-0.2105191946029663,
-0.29863694310188293,
0.24385270476341248,
0.21416962146759033,
0.16175015270709991,
0.030115559697151184,
0.04339805990457535,
0.2481648325920105,
0.11134932935237885,
-0.14658202230930328,
-0.09888642281293869,
-0.4035574793815613,
-0.13354520499706268,
0.07920539379119873,
0.059820011258125305,
0.08887986093759537,
-0.02125290408730507,
0.12809313833713531,
0.23678481578826904,
0.3385288119316101,
0.05240686982870102,
-0.175622820854187,
0.30217888951301575,
-0.08642898499965668,
-0.34947705268859863,
0.08305630087852478,
-0.05351371690630913,
-0.036273255944252014,
-0.051205992698669434,
-0.2340816855430603,
0.049914468079805374,
0.08195362240076065,
0.0820503681898117,
-0.16320249438285828,
-0.5107899308204651,
0.03522692620754242,
-0.025689799338579178,
0.23290963470935822,
0.025345727801322937,
0.6404663324356079,
0.013388209044933319,
0.10713257640600204,
-0.5667568445205688,
0.004858464002609253,
0.4031060039997101,
0.3281869888305664,
0.40972429513931274,
-0.01841450296342373,
-0.043703023344278336,
0.10094155371189117,
-0.4795346260070801,
0.05234771594405174,
0.2027018815279007,
0.3064163625240326,
-0.04474073275923729,
-0.15516038239002228,
0.15622586011886597,
-0.06147928908467293,
0.5907255411148071,
-0.1586553305387497,
0.5455060601234436,
0.3326400816440582,
-0.1861787736415863,
-0.22070899605751038,
0.14997608959674835,
-0.029015259817242622,
0.1411052793264389,
-0.42604050040245056,
0.1080254390835762,
0.14583632349967957,
-0.03432588279247284,
-0.20179161429405212,
-0.13926741480827332,
0.17582343518733978,
0.4092657268047333,
0.5364011526107788,
0.25656890869140625,
-0.07387399673461914,
0.06878054141998291,
0.2827915549278259,
-0.45587974786758423,
0.09724101424217224,
-0.22182250022888184,
-0.10097971558570862,
-0.21700222790241241,
0.14114294946193695,
-0.4870670437812805,
-0.07994543015956879,
-0.42249614000320435,
-0.04249325767159462,
-0.1411924809217453,
0.2920134365558624,
0.0026113539934158325,
0.19955042004585266,
-0.10776369273662567,
0.07741308212280273,
0.2919272780418396,
0.21752507984638214,
-0.12326638400554657,
0.2709347605705261,
-0.5050196647644043,
-0.26470500230789185,
0.3797585964202881,
-0.3792266845703125,
-0.13790877163410187,
0.11695381999015808,
0.4003452956676483,
0.28825634717941284,
-0.1926329880952835,
-0.2629815340042114,
0.20957554876804352,
0.2626621723175049,
-0.3446148931980133,
-0.14465555548667908,
-0.09224449098110199,
-0.311626672744751,
0.14021992683410645,
-0.16826564073562622,
0.5989025235176086,
0.09177789092063904,
-0.17893177270889282,
0.06500102579593658,
-0.2615373134613037
] |
https://github.com/huggingface/datasets/issues/2065 | Hi @lhoestq,
I looked into this and yes you're right. The `NamedTemporaryFile` is always created with mode 0600, which prevents group from reading the file. Should we change the permissions of `tmp_file.name` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1871) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1590), post creation to 0644 inorder for group and others to read it? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 47 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Hi @lhoestq,
I looked into this and yes you're right. The `NamedTemporaryFile` is always created with mode 0600, which prevents group from reading the file. Should we change the permissions of `tmp_file.name` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1871) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1590), post creation to 0644 inorder for group and others to read it? | [
0.0629386156797409,
0.035980939865112305,
-0.11017100512981415,
0.2581421732902527,
0.06019924208521843,
0.1329316347837448,
0.3463629484176636,
0.09343530237674713,
-0.2962668240070343,
-0.030303247272968292,
-0.2803182005882263,
-0.05260353535413742,
0.08457191288471222,
-0.3134355843067169,
-0.020883508026599884,
0.07891343533992767,
0.09932545572519302,
0.046585772186517715,
0.09405258297920227,
-0.024798646569252014,
-0.11668536067008972,
-0.05449949577450752,
-0.04500524699687958,
0.022196561098098755,
-0.31777405738830566,
-0.10338156670331955,
0.19088435173034668,
0.2698514461517334,
0.150868758559227,
-0.20025838911533356,
0.249722421169281,
0.4694797694683075,
0.059870973229408264,
0.3494143486022949,
-0.00011459896632004529,
-0.11247069388628006,
0.011985167860984802,
-0.13530151546001434,
0.1181618720293045,
0.19289174675941467,
-0.01824626326560974,
-0.221333846449852,
-0.11130252480506897,
-0.15296730399131775,
-0.16108492016792297,
0.08375406265258789,
0.1846526712179184,
-0.5527172088623047,
0.5385573506355286,
0.12456189095973969,
0.1720823496580124,
0.005743101239204407,
-0.19514963030815125,
0.20095311105251312,
0.24075506627559662,
0.00368359312415123,
-0.3262529969215393,
0.030217748135328293,
0.27921152114868164,
-0.045450083911418915,
0.002083148807287216,
0.11008647084236145,
-0.3180336058139801,
0.05319621041417122,
0.21499931812286377,
-0.056622400879859924,
-0.3709009289741516,
-0.5180931091308594,
0.09479247778654099,
0.178188294172287,
0.6756841540336609,
-0.1113855391740799,
-0.5353289246559143,
-0.28122344613075256,
-0.08956126868724823,
0.09039882570505142,
0.48960140347480774,
0.31815555691719055,
0.02304595336318016,
0.3016812801361084,
-0.3137829601764679,
0.06712029874324799,
-0.322937935590744,
-0.04458009824156761,
0.28220421075820923,
-0.08712926506996155,
-0.173117533326149,
0.08098392188549042,
-0.06322833895683289,
-0.10685563087463379,
0.042908910661935806,
0.04627244919538498,
-0.21842433512210846,
0.3654842674732208,
-0.19814099371433258,
0.155548557639122,
-0.1800212264060974,
0.26785963773727417,
0.11119922995567322,
0.19440872967243195,
0.2835127115249634,
0.1963796615600586,
0.030971292406320572,
0.1938636302947998,
0.024697307497262955,
0.14630946516990662,
0.28794315457344055,
0.3549537658691406,
0.5183435678482056,
-0.34961897134780884,
-0.19950354099273682,
-0.061019621789455414,
-0.028424978256225586,
-0.3210824131965637,
0.0414983332157135,
0.15820159018039703,
-0.035494498908519745,
-0.23281176388263702,
0.2620951235294342,
0.03512537479400635,
-0.07126196473836899,
-0.1606619954109192,
0.04065980389714241,
0.19719929993152618,
0.048062220215797424,
-0.0866670310497284,
0.0407196581363678,
0.12884296476840973,
-0.02694055065512657,
-0.29828548431396484,
-0.028372934088110924,
-0.46034425497055054,
-0.3541784882545471,
0.4744061827659607,
0.36910080909729004,
-0.2717588543891907,
0.09368100762367249,
0.08429300785064697,
0.17079192399978638,
-0.23673246800899506,
0.3412821590900421,
-0.13339997828006744,
0.5103939771652222,
0.40801870822906494,
0.2221880853176117,
0.3522750735282898,
0.06695948541164398,
0.04418134689331055,
-0.11798743903636932,
0.29868263006210327,
-0.3013738989830017,
-0.26370149850845337,
0.3343164026737213,
0.014955808408558369,
-0.0801660418510437,
0.3795680105686188,
-0.25122979283332825,
0.018579529598355293,
0.6816849112510681,
-0.1709812879562378,
0.35156503319740295,
0.23202206194400787,
-0.23747456073760986,
-0.5314834713935852,
-0.15169619023799896,
0.37802910804748535,
-0.1693877875804901,
0.0742436945438385,
0.03579019010066986,
-0.06749125570058823,
-0.10188670456409454,
0.42175114154815674,
0.008361909538507462,
0.05821538716554642,
-0.119858518242836,
0.2898959517478943,
0.472568541765213,
-0.19399072229862213,
-0.5428643226623535,
0.12677866220474243,
0.12997105717658997,
-0.06647278368473053,
0.3089478313922882,
0.04647786542773247,
-0.04274124279618263,
-0.29180264472961426,
-0.1804216206073761,
0.1915932297706604,
0.212032750248909,
0.1901741623878479,
-0.024766504764556885,
0.04321173578500748,
-0.04822869226336479,
-0.062235020101070404,
-0.13002616167068481,
0.1985941380262375,
0.3295985460281372,
-0.3414554297924042,
0.21429692208766937,
-0.17138174176216125,
0.21081221103668213,
0.41860252618789673,
0.07363007962703705,
0.06690430641174316,
0.029122382402420044,
-0.01633075624704361,
-0.4610423445701599,
0.25557568669319153,
-0.021850887686014175,
-0.40109914541244507,
0.0054405927658081055,
-0.49144089221954346,
0.1290142983198166,
-0.33631056547164917,
-0.34060850739479065,
-0.06479722261428833,
0.06326718628406525,
0.018358910456299782,
0.07618659734725952,
-0.36645209789276123,
0.20445168018341064,
0.5146682858467102,
0.1338810920715332,
0.028246954083442688,
-0.2692755162715912,
0.03940697759389877,
-0.1339567005634308,
-0.08652719855308533,
-0.2505774199962616,
0.04640602320432663,
0.27394068241119385,
-0.04653366282582283,
-0.26616233587265015,
0.2970260679721832,
0.08234747499227524,
0.1673612892627716,
-0.1172359436750412,
0.39387139678001404,
-0.07880845665931702,
0.0712931752204895,
0.06735469400882721,
-0.23244157433509827,
-0.018589237704873085,
-0.18734291195869446,
-0.20112033188343048,
0.3971308469772339,
-0.07320008426904678,
-0.02776111289858818,
-0.2225702852010727,
0.01985856145620346,
0.11116908490657806,
0.03759617358446121,
-0.2298995405435562,
-0.13365381956100464,
0.0004844428040087223,
0.26114705204963684,
0.3052661716938019,
0.14624068140983582,
0.01927655190229416,
0.05817181617021561,
0.3956890404224396,
0.17367404699325562,
0.010814645327627659,
-0.12914107739925385,
-0.1472679078578949,
0.006796017289161682,
0.20614954829216003,
0.18643438816070557,
0.27142783999443054,
0.07164338231086731,
0.3254539370536804,
-0.15342266857624054,
0.30505210161209106,
-0.2041756510734558,
0.03014814853668213,
0.04346209391951561,
0.08676190674304962,
-0.12322627007961273,
-0.11945395171642303,
-0.011352630332112312,
0.03477552533149719,
0.30093348026275635,
0.11343856900930405,
0.04652509093284607,
-0.4610220193862915,
-0.08700678497552872,
-0.07429042458534241,
-0.24540399014949799,
0.1902795284986496,
0.031986698508262634,
-0.5370315313339233,
-0.06656070053577423,
-0.2675866484642029,
0.2792451083660126,
-0.03336925432085991,
0.07613979279994965,
-0.2946602404117584,
0.1234036237001419,
-0.01750604808330536,
-0.19090737402439117,
-0.3536764979362488,
0.12227088212966919,
0.0023420071229338646,
0.000437665730714798,
0.2619782090187073,
-0.6254094243049622,
0.24114562571048737,
-0.0882330909371376,
0.2667476236820221,
-0.0968480259180069,
0.05007563531398773,
-0.11856762319803238,
-0.10746031999588013,
0.1476893573999405,
-0.48176294565200806,
0.1109737902879715,
-0.18082931637763977,
0.09870900213718414,
0.028931930661201477,
-0.2333100140094757,
-0.2578204274177551,
-0.016946803778409958,
0.05931210145354271,
-0.07101945579051971,
-0.2332141250371933,
-0.22738425433635712,
-0.18991048634052277,
-0.15115976333618164,
0.5195329189300537,
0.10571542382240295,
0.26916399598121643,
0.22448351979255676,
-0.3414487838745117,
-0.25076550245285034,
-0.2969977855682373,
0.27499401569366455,
-0.4282779097557068,
-0.5996936559677124,
0.3007460832595825,
-0.5475546717643738,
-0.4464108347892761,
0.10922005772590637,
0.25047820806503296,
0.1346748173236847,
0.38458120822906494,
-0.04074200987815857,
-0.12197369337081909,
-0.19172461330890656,
0.32237762212753296,
-0.20720921456813812,
0.17615124583244324,
0.06593961268663406,
0.08321529626846313,
0.1708463579416275,
-0.09174853563308716,
-0.1216966062784195,
0.06546813249588013,
-0.057764578610658646,
-0.19072368741035461,
0.21624457836151123,
0.15687790513038635,
0.1997009515762329,
0.7097827196121216,
0.5631095767021179,
0.32395049929618835,
0.2527132034301758,
0.21945013105869293,
0.676372766494751,
0.03184770420193672,
-0.17410346865653992,
0.20448173582553864,
-0.04733559489250183,
-0.09003782272338867,
0.2030479609966278,
0.1669001430273056,
-0.040180571377277374,
-0.03745918720960617,
0.07815393805503845,
-0.4097560942173004,
-0.4254502058029175,
-0.24075977504253387,
-0.03597868233919144,
0.22231510281562805,
0.14999942481517792,
0.043146222829818726,
-0.3063419461250305,
-0.33339938521385193,
-0.044588781893253326,
0.4886273145675659,
0.15173625946044922,
0.23711258172988892,
-0.3397939205169678,
0.034618813544511795,
-0.24036791920661926,
0.3305451273918152,
0.06670263409614563,
0.4926593005657196,
-0.14938309788703918,
0.15003573894500732,
0.27660202980041504,
0.30186697840690613,
0.4911459684371948,
-0.3916003704071045,
0.24844524264335632,
-0.03509543463587761,
0.2665247321128845,
0.28472843766212463,
-0.11261183768510818,
0.29273006319999695,
0.40710487961769104,
0.18647435307502747,
0.210504949092865,
0.09347988665103912,
-0.2875419557094574,
-0.4842905104160309,
-0.09761026501655579,
-0.09730125218629837,
-0.18682517111301422,
0.022341981530189514,
0.15136907994747162,
-0.024543985724449158,
-0.12555912137031555,
0.2902854382991791,
-0.30912691354751587,
-0.12327806651592255,
0.0230306014418602,
-0.04871494323015213,
0.16580289602279663,
0.012725535780191422,
0.059175897389650345,
0.33651405572891235,
0.024909041821956635,
0.08567637205123901,
0.4946666657924652,
0.09832917153835297,
0.07670774310827255,
0.4088824987411499,
-0.2843141257762909,
0.29724186658859253,
-0.21154490113258362,
-0.3195393979549408,
0.3478294909000397,
0.15008476376533508,
-0.34698039293289185,
-0.11149860918521881,
-0.030395425856113434,
-0.19061583280563354,
-0.23682330548763275,
-0.08686231076717377,
0.024000808596611023,
0.01114872470498085,
-0.2902595102787018,
-0.6117976307868958,
0.3529457151889801,
0.5719925165176392,
-0.3593302369117737,
0.20938611030578613,
-0.2003001868724823,
-0.32641714811325073,
0.08290448784828186,
0.0077393073588609695,
0.9369333386421204,
-0.22578361630439758,
0.40960001945495605,
-0.2878205180168152,
-0.05821943283081055,
0.11933796107769012,
-0.37258821725845337,
0.12212958186864853,
-0.4467962980270386,
-0.27390938997268677,
-0.07542085647583008,
-0.07833442836999893,
0.07348526269197464,
0.4323982894420624,
0.12319909036159515,
0.11684291064739227,
0.04312188923358917,
0.005523078143596649,
-0.20577120780944824,
-0.16884905099868774,
-0.06320344656705856,
-0.2718176543712616,
0.09073697030544281,
0.09236617386341095,
-0.1487281322479248,
0.12555742263793945,
0.060645632445812225,
-0.04318125173449516,
-0.25320497155189514,
0.2730289101600647,
-0.21867156028747559,
-0.00006175786256790161,
-0.6532602310180664,
0.026109647005796432,
-0.18720874190330505,
-0.11619096249341965,
0.1783677339553833,
0.25107482075691223,
0.3610555827617645,
0.32282277941703796,
-0.08591631054878235,
-0.06511877477169037,
0.3787958323955536,
0.1497555375099182,
-0.2526305317878723,
0.08368819952011108,
0.3546639680862427,
0.1261637955904007,
0.1357942521572113,
-0.28782129287719727,
-0.2010754644870758,
-0.2188827246427536,
-0.3760908246040344,
0.06573687493801117,
0.12402006983757019,
-0.37650081515312195,
0.03645956888794899,
-0.13044404983520508,
0.007648594677448273,
0.033053576946258545,
0.06856316328048706,
0.394257128238678,
-0.0736783817410469,
0.5132029056549072,
-0.328864187002182,
-0.33342862129211426,
0.10960531234741211,
0.561951220035553,
0.04519016668200493,
-0.17901429533958435,
0.22133910655975342,
-0.12820298969745636,
-0.31079939007759094,
-0.12084193527698517,
0.29190298914909363,
0.03425445035099983,
-0.23281152546405792,
-0.08312256634235382,
0.26278677582740784,
-0.07399559020996094,
0.19875966012477875,
-0.3054348826408386,
0.11786258220672607,
0.04827626422047615,
0.14809277653694153,
-0.3466266989707947,
-0.4610138535499573,
-0.30810242891311646,
-0.28178325295448303,
0.19721800088882446,
0.2503424286842346,
-0.3422870934009552,
0.07724227756261826,
0.039960138499736786,
-0.22492295503616333,
-0.16540107131004333,
0.0796475037932396,
0.12473005056381226,
0.3286462426185608,
0.06106848642230034,
0.07143083214759827,
-0.18531499803066254,
-0.10631339251995087,
0.06446707248687744,
-0.16224172711372375,
-0.15813162922859192,
-0.05069287121295929,
0.15579679608345032,
0.2641827464103699,
-0.41238483786582947,
-0.032917171716690063,
-0.5092147588729858,
-0.15983609855175018,
-0.42609450221061707,
0.09914745390415192,
0.32997435331344604,
0.2834774851799011,
0.33468136191368103,
0.12554478645324707,
0.09007084369659424,
-0.10735204815864563,
0.30298903584480286,
-0.2726712226867676,
-0.1294933557510376,
-0.22070157527923584,
0.19965946674346924,
-0.3490001857280731,
-0.024182774126529694,
0.04743160307407379,
-0.11728852987289429,
0.14305932819843292,
0.03963298350572586,
0.13787394762039185,
-0.14587989449501038,
-0.017938919365406036,
0.11825892329216003,
0.2574124038219452,
0.09928834438323975,
-0.04563883692026138,
0.007557205855846405,
0.3028249740600586,
0.05584138631820679,
0.1122477799654007,
-0.10609245300292969,
0.21483218669891357,
-0.20889964699745178,
0.05902693420648575,
0.42157718539237976,
0.2109963297843933,
-0.07082536071538925,
0.13393598794937134,
-0.1005328893661499,
0.18097573518753052,
-0.3331480324268341,
0.36118459701538086,
0.020434845238924026,
0.1567511409521103,
0.10773064196109772,
0.39926281571388245,
0.2707894444465637,
-0.03868306055665016,
0.39473506808280945,
0.23521359264850616,
0.16767776012420654,
0.2850371301174164,
-0.2464899867773056,
0.12940120697021484,
-0.625769853591919,
0.02162606082856655,
0.09707383811473846,
-0.053484268486499786,
0.38459378480911255,
0.04298761114478111,
0.20830300450325012,
-0.13420993089675903,
-0.2344428300857544,
0.08055676519870758,
-0.09503906220197678,
-0.1613716185092926,
-0.2004224807024002,
0.09211430698633194,
0.04543332755565643,
0.056162938475608826,
-0.3239436745643616,
-0.20235441625118256,
-0.1829463243484497,
0.13009530305862427,
0.26803770661354065,
0.10000963509082794,
0.18395310640335083,
-0.08263042569160461,
0.21006669104099274,
0.14511409401893616,
-0.15465430915355682,
0.030119849368929863,
-0.49890682101249695,
-0.07506391406059265,
0.17681115865707397,
0.035088904201984406,
0.12879368662834167,
-0.038070328533649445,
0.10888813436031342,
0.14094729721546173,
0.26283344626426697,
-0.003316115587949753,
-0.2178950309753418,
0.3813551962375641,
-0.17831051349639893,
-0.4085470736026764,
0.10229107737541199,
-0.026367472484707832,
-0.020762421190738678,
-0.1616538166999817,
-0.14248742163181305,
-0.06847943365573883,
0.019870001822710037,
0.07455237209796906,
-0.3266836106777191,
-0.5774412155151367,
0.10149067640304565,
-0.11915546655654907,
0.06921359896659851,
0.06743541359901428,
0.5840873122215271,
-0.01035616546869278,
0.20939967036247253,
-0.5183776021003723,
0.037002820521593094,
0.3841399848461151,
0.29939526319503784,
0.4569985270500183,
-0.2200731784105301,
0.017912190407514572,
0.05339345335960388,
-0.446108341217041,
0.23656290769577026,
0.218409925699234,
0.2441498339176178,
-0.1144663617014885,
-0.19232682883739471,
0.09105613827705383,
-0.07613994181156158,
0.40969979763031006,
-0.28295350074768066,
0.41672709584236145,
0.3628411591053009,
-0.173906147480011,
-0.29694676399230957,
0.12107907235622406,
-0.002082429826259613,
0.10126465559005737,
-0.3733639121055603,
0.18259680271148682,
0.23044133186340332,
0.024224884808063507,
-0.2581581175327301,
0.015023022890090942,
0.1672135889530182,
0.4510231018066406,
0.46193021535873413,
0.2830507159233093,
0.008550290018320084,
0.08074328303337097,
0.1979321837425232,
-0.37079352140426636,
0.15165060758590698,
-0.16838671267032623,
-0.019381359219551086,
-0.1912817656993866,
0.04081665724515915,
-0.5298498272895813,
-0.17727303504943848,
-0.3872588872909546,
-0.08815976232290268,
-0.1900457888841629,
0.30714747309684753,
0.10424189269542694,
0.07736167311668396,
-0.09271281212568283,
0.047635357826948166,
0.3853413760662079,
0.2807732820510864,
-0.15783369541168213,
0.35761693120002747,
-0.5059362649917603,
-0.293394535779953,
0.3969261944293976,
-0.385660320520401,
-0.17344999313354492,
0.09973329305648804,
0.4679129123687744,
0.10503283143043518,
-0.16987569630146027,
-0.137510746717453,
0.11445252597332001,
0.3514275848865509,
-0.3437354564666748,
-0.10909145325422287,
-0.005255671218037605,
-0.33750829100608826,
0.037818022072315216,
-0.19253931939601898,
0.5049102902412415,
0.038017455488443375,
-0.19609957933425903,
0.13039115071296692,
-0.12354972958564758
] |
https://github.com/huggingface/datasets/issues/2065 | Good idea :) we could even update the permissions after the file has been moved by shutil.move [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1899) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646) actually.
Apparently they set the default 0600 for temporary files for security reasons, so let's update the umask only after the file has been moved | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 45 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Good idea :) we could even update the permissions after the file has been moved by shutil.move [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1899) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646) actually.
Apparently they set the default 0600 for temporary files for security reasons, so let's update the umask only after the file has been moved | [
-0.1486676186323166,
0.14043843746185303,
-0.07720566540956497,
0.0294160358607769,
0.12957951426506042,
0.0463581383228302,
0.3478867709636688,
0.03462383896112442,
-0.1299445629119873,
0.020075958222150803,
-0.13891679048538208,
-0.06765949726104736,
0.018578872084617615,
-0.27129238843917847,
-0.03812137991189957,
0.18400728702545166,
0.18726681172847748,
-0.05057216063141823,
0.02600248157978058,
-0.1504371613264084,
-0.17447537183761597,
-0.2032017707824707,
-0.12159424275159836,
-0.08834236860275269,
-0.2847403287887573,
-0.14733757078647614,
0.14211055636405945,
0.2907128930091858,
-0.02680356055498123,
-0.2053438425064087,
0.3806229829788208,
0.6655228734016418,
0.1290060579776764,
0.14114341139793396,
-0.00011431737220846117,
-0.16952668130397797,
0.014489598572254181,
-0.09893085807561874,
-0.04808899015188217,
0.1656079888343811,
0.005617998540401459,
-0.1768363118171692,
-0.16704018414020538,
-0.12490914016962051,
-0.11642853915691376,
0.06794452667236328,
0.15166075527668,
-0.6368476748466492,
0.4671246409416199,
0.23607774078845978,
0.1751861423254013,
-0.08754618465900421,
-0.19000792503356934,
0.0938936099410057,
0.2960257828235626,
0.03409090265631676,
-0.15580187737941742,
0.13956697285175323,
0.3170783221721649,
-0.24802759289741516,
-0.07458339631557465,
0.05213490128517151,
-0.2701606750488281,
0.04134673625230789,
0.1690552532672882,
-0.12238473445177078,
-0.42459946870803833,
-0.5232914686203003,
0.14002725481987,
0.1401766985654831,
0.5876783132553101,
-0.13202530145645142,
-0.6810221076011658,
-0.1792593151330948,
0.09880910068750381,
0.157760351896286,
0.34852954745292664,
0.3710070550441742,
0.15107318758964539,
0.3128530979156494,
-0.47451987862586975,
0.026900935918092728,
-0.17940668761730194,
0.06495621055364609,
0.2594904899597168,
0.02272852323949337,
-0.05612841993570328,
0.12273337692022324,
0.0393807552754879,
-0.14704930782318115,
0.22662976384162903,
0.13502612709999084,
-0.2991214394569397,
0.4194129407405853,
-0.24551664292812347,
0.1774931699037552,
-0.22311097383499146,
0.437694251537323,
0.17998556792736053,
0.41819173097610474,
0.08723917603492737,
0.20305481553077698,
0.07782648503780365,
0.16257834434509277,
-0.05344041436910629,
0.2625303268432617,
0.37959203124046326,
0.43616577982902527,
0.5410408973693848,
-0.17192226648330688,
-0.17750069499015808,
-0.03190964460372925,
0.039319977164268494,
-0.38631346821784973,
0.021677665412425995,
0.30150407552719116,
0.048869773745536804,
-0.14325958490371704,
0.10215980559587479,
0.05347597971558571,
-0.14530226588249207,
-0.14893756806850433,
0.02507120370864868,
0.30097347497940063,
0.04306624457240105,
-0.07395482063293457,
0.13843989372253418,
0.2581046223640442,
-0.02877914160490036,
-0.2274988442659378,
-0.041153062134981155,
-0.3239300549030304,
-0.28176653385162354,
0.40881919860839844,
0.36779364943504333,
-0.18788883090019226,
0.10118724405765533,
0.22757862508296967,
0.12572790682315826,
-0.1951034963130951,
0.43496525287628174,
-0.06727394461631775,
0.438270628452301,
0.4045003056526184,
0.1662745326757431,
0.2871086597442627,
0.11790427565574646,
-0.0030374452471733093,
-0.07218213379383087,
0.23935799300670624,
-0.24091559648513794,
-0.21447671949863434,
0.32115450501441956,
0.022324874997138977,
-0.11687685549259186,
0.2934510111808777,
-0.22961154580116272,
-0.000731342937797308,
0.4634186029434204,
-0.03612421080470085,
0.4591255187988281,
0.20700688660144806,
-0.23148638010025024,
-0.38735711574554443,
-0.04023433476686478,
0.43321844935417175,
0.029906675219535828,
-0.08639127016067505,
-0.12368129193782806,
0.0183943472802639,
-0.04818829894065857,
0.3993481695652008,
-0.047174762934446335,
0.0548303946852684,
-0.15305578708648682,
0.18716323375701904,
0.4613814353942871,
-0.25873422622680664,
-0.637353241443634,
0.07264814525842667,
0.1465539038181305,
-0.07867977768182755,
0.26189208030700684,
0.08661741763353348,
0.03771362453699112,
-0.19498851895332336,
0.004364578053355217,
0.34235861897468567,
0.24051950871944427,
0.25372055172920227,
0.06634953618049622,
-0.007734619081020355,
-0.060234829783439636,
0.020008064806461334,
0.0013891268754377961,
0.2903933525085449,
0.37424349784851074,
-0.3105025887489319,
0.25263652205467224,
-0.18244528770446777,
0.24964088201522827,
0.5188258290290833,
0.16984298825263977,
-0.0004988852888345718,
-0.02316264808177948,
0.006814032793045044,
-0.5052881240844727,
0.2801293134689331,
-0.09908152371644974,
-0.34322842955589294,
-0.017061598598957062,
-0.5464773774147034,
0.03393647074699402,
-0.29512661695480347,
-0.296785831451416,
-0.19558730721473694,
0.05668414384126663,
-0.07011435925960541,
0.06905096769332886,
-0.2528028190135956,
0.15932539105415344,
0.38450634479522705,
0.16054120659828186,
0.05664153769612312,
-0.14579260349273682,
0.13467048108577728,
-0.08164937049150467,
-0.12074922025203705,
-0.18074482679367065,
-0.04922017827630043,
0.30018502473831177,
-0.05706070363521576,
-0.27750664949417114,
0.33852237462997437,
0.17911647260189056,
0.07632413506507874,
0.004068874754011631,
0.2548023760318756,
0.02303813211619854,
0.2091922163963318,
0.08595423400402069,
-0.22230352461338043,
-0.10745865851640701,
-0.08142411708831787,
-0.2597405016422272,
0.45295077562332153,
-0.0995965451002121,
-0.06421318650245667,
-0.18379299342632294,
0.2674839496612549,
0.1773671954870224,
-0.009666375815868378,
-0.16972965002059937,
-0.16190293431282043,
0.05024257302284241,
0.2686871290206909,
0.38280364871025085,
0.1910717785358429,
0.05640299618244171,
0.028909137472510338,
0.44215458631515503,
0.22898805141448975,
0.1401609182357788,
-0.05119219422340393,
-0.131716787815094,
0.08945364505052567,
0.22565004229545593,
0.36718130111694336,
0.2941920757293701,
0.05113571882247925,
0.27280014753341675,
-0.1256539225578308,
0.39815056324005127,
-0.1889781951904297,
-0.023252196609973907,
-0.05894504860043526,
0.030311141163110733,
-0.13923968374729156,
-0.1011137068271637,
-0.017982471734285355,
-0.13651952147483826,
0.34692060947418213,
0.05435315519571304,
0.16543447971343994,
-0.33965975046157837,
-0.12098277360200882,
-0.19774207472801208,
-0.13412263989448547,
0.239508256316185,
-0.024376824498176575,
-0.5376532077789307,
-0.07394623756408691,
-0.1817747801542282,
0.20304691791534424,
-0.08115153014659882,
0.20604273676872253,
-0.19020777940750122,
0.03855647146701813,
-0.01449325680732727,
-0.07309962064027786,
-0.29048392176628113,
0.09845505654811859,
0.10592234134674072,
-0.006964225322008133,
0.23050376772880554,
-0.6279549598693848,
0.17806439101696014,
0.0020360350608825684,
0.2553759217262268,
-0.40010178089141846,
-0.034234121441841125,
-0.2547353208065033,
-0.008198998868465424,
0.08703585714101791,
-0.3297150731086731,
0.08619128167629242,
-0.15027201175689697,
0.05831842124462128,
0.008335951715707779,
-0.29168689250946045,
-0.20983821153640747,
0.03115178644657135,
0.001275341957807541,
0.013298477977514267,
-0.28698766231536865,
-0.13879887759685516,
-0.1922626495361328,
-0.23665252327919006,
0.6767061352729797,
0.17320778965950012,
0.12165477871894836,
-0.0473199188709259,
-0.17078350484371185,
-0.4097973704338074,
-0.22928425669670105,
0.17037443816661835,
-0.3344256281852722,
-0.5908138751983643,
0.31330716609954834,
-0.45030689239501953,
-0.4157238006591797,
0.03900005668401718,
0.1510157585144043,
0.05546555295586586,
0.4662575125694275,
-0.020336687564849854,
-0.23315539956092834,
-0.3058474361896515,
0.22120149433612823,
-0.21928340196609497,
0.18224844336509705,
0.014100687578320503,
0.04141116887331009,
0.14083236455917358,
0.024425379931926727,
-0.13050568103790283,
0.12179674208164215,
-0.018033036962151527,
-0.3016529679298401,
0.08221017569303513,
0.20108738541603088,
0.2049245536327362,
0.5803414583206177,
0.4103993773460388,
0.298084020614624,
0.22168248891830444,
0.18894584476947784,
0.6551342606544495,
0.02101995050907135,
-0.221145361661911,
0.2425190806388855,
-0.03966769576072693,
-0.047164272516965866,
0.0539855882525444,
0.04498744010925293,
0.042030513286590576,
0.037869617342948914,
0.013038501143455505,
-0.23989540338516235,
-0.5029902458190918,
-0.2120031863451004,
-0.19949449598789215,
0.09045001119375229,
0.09919026494026184,
0.12031975388526917,
-0.22870495915412903,
-0.2225499153137207,
0.03507447987794876,
0.29910972714424133,
0.17769062519073486,
0.3196594715118408,
-0.3608701825141907,
0.10826839506626129,
-0.19857409596443176,
0.48023679852485657,
-0.012387018650770187,
0.5126089453697205,
-0.15565058588981628,
0.1874571144580841,
0.21411779522895813,
0.3622050881385803,
0.4309048056602478,
-0.40643206238746643,
0.19574685394763947,
-0.11442764103412628,
0.1360839456319809,
0.12786975502967834,
-0.24623113870620728,
0.3391300141811371,
0.4184546172618866,
0.1934330016374588,
0.21804779767990112,
0.12385852634906769,
-0.1820775717496872,
-0.3830624520778656,
-0.1949625164270401,
-0.08456329256296158,
-0.12239829450845718,
0.01940244436264038,
0.09197782725095749,
-0.26391881704330444,
-0.03844735771417618,
0.2674633264541626,
-0.41279029846191406,
-0.24457740783691406,
0.003988295793533325,
-0.19754478335380554,
0.12053228914737701,
-0.07658727467060089,
-0.1716652512550354,
0.38381263613700867,
-0.01901417039334774,
0.000757955014705658,
0.4223496615886688,
-0.11193569004535675,
0.1820332407951355,
0.4454094171524048,
-0.2894165813922882,
0.15306450426578522,
-0.2905002236366272,
-0.25870057940483093,
0.3308093845844269,
0.0902596265077591,
-0.34665432572364807,
0.011935798451304436,
0.20443712174892426,
-0.064363032579422,
-0.28625956177711487,
-0.08649656176567078,
0.04355202615261078,
0.049952272325754166,
-0.13651874661445618,
-0.6606179475784302,
0.2589043080806732,
0.5378467440605164,
-0.28049761056900024,
0.23544549942016602,
-0.12158770859241486,
-0.3739422559738159,
0.08993621170520782,
0.124411940574646,
0.7908813953399658,
-0.19477686285972595,
0.3848075270652771,
-0.4029830992221832,
-0.00886186957359314,
0.1285378634929657,
-0.44457823038101196,
0.08155247569084167,
-0.5112549662590027,
-0.33671897649765015,
-0.06414294242858887,
-0.13370954990386963,
0.033064208924770355,
0.370794415473938,
-0.04970605671405792,
0.1543717086315155,
-0.1544705182313919,
-0.05728989839553833,
-0.16368797421455383,
-0.15316498279571533,
-0.3730814754962921,
-0.23707851767539978,
0.14580106735229492,
0.09375736117362976,
-0.14706170558929443,
0.1671070009469986,
0.0507022887468338,
-0.004625972360372543,
-0.20594461262226105,
0.27017948031425476,
-0.30426299571990967,
0.0200909823179245,
-0.7715393900871277,
0.2240670919418335,
-0.1763988733291626,
0.04454180598258972,
0.08037319779396057,
0.32504674792289734,
0.49317875504493713,
0.3552217185497284,
-0.03897691145539284,
0.08926315605640411,
0.35553309321403503,
0.11776787042617798,
-0.1683688759803772,
0.0776086300611496,
0.3183528184890747,
0.17128950357437134,
0.10535527765750885,
-0.3185614347457886,
-0.16088122129440308,
-0.2662643790245056,
-0.35225898027420044,
0.17898452281951904,
-0.05705123767256737,
-0.25640547275543213,
0.049535296857357025,
-0.15366552770137787,
-0.048109255731105804,
0.0013128593564033508,
0.05055947229266167,
0.4336293935775757,
0.006098296493291855,
0.5138241648674011,
-0.3861309885978699,
-0.32192903757095337,
0.046354204416275024,
0.6867849826812744,
-0.12127076089382172,
-0.17530080676078796,
0.2578016519546509,
-0.22702717781066895,
-0.22555601596832275,
-0.15342757105827332,
0.12180300056934357,
0.1055646687746048,
-0.2715558409690857,
0.08940708637237549,
0.11676973849534988,
-0.08391197770833969,
0.2019045352935791,
-0.4685651659965515,
0.05259866639971733,
0.04471264034509659,
0.08013349026441574,
-0.36716946959495544,
-0.4777839779853821,
-0.2479076087474823,
-0.22566550970077515,
0.21675419807434082,
0.21463091671466827,
-0.48041319847106934,
0.15370236337184906,
-0.017410583794116974,
-0.21900054812431335,
-0.1148725152015686,
-0.06034216284751892,
0.10701654851436615,
0.28442609310150146,
0.011100893840193748,
0.008008521050214767,
-0.19909533858299255,
-0.11154130101203918,
-0.08614487946033478,
-0.13666996359825134,
-0.1592533439397812,
-0.10844779014587402,
0.15009695291519165,
0.1591554582118988,
-0.3309411406517029,
0.05986731871962547,
-0.4955001771450043,
-0.08865386247634888,
-0.4539220631122589,
0.02922382950782776,
0.41491952538490295,
0.18819653987884521,
0.3245113790035248,
0.09235559403896332,
0.056051354855298996,
-0.07511723786592484,
0.15026572346687317,
-0.2506338953971863,
-0.30604591965675354,
-0.20193596184253693,
0.22434991598129272,
-0.2615668475627899,
-0.012210533022880554,
0.23071283102035522,
-0.14341133832931519,
0.08363866806030273,
0.07022073864936829,
0.1397663950920105,
-0.06603839248418808,
-0.0364290326833725,
0.01219024509191513,
0.32265979051589966,
0.1396934986114502,
-0.06910974532365799,
-0.010676652193069458,
0.282823383808136,
0.07459379732608795,
0.033401183784008026,
-0.2358488142490387,
0.2527933120727539,
-0.1717260479927063,
0.0732230395078659,
0.295907199382782,
0.19935286045074463,
-0.25499477982521057,
0.08986198902130127,
-0.04004993662238121,
0.05415201932191849,
-0.4245871305465698,
0.33970221877098083,
-0.09816832840442657,
0.11988122761249542,
0.09367116540670395,
0.26899030804634094,
0.19475623965263367,
0.10341282188892365,
0.3501397669315338,
0.16343891620635986,
0.23263487219810486,
0.21079881489276886,
-0.3692203164100647,
0.19714146852493286,
-0.6348796486854553,
0.09334133565425873,
0.05628681182861328,
-0.08659782260656357,
0.3066341280937195,
0.15212219953536987,
0.30387964844703674,
0.004368014633655548,
-0.2596389353275299,
0.05651114135980606,
-0.07708286494016647,
-0.10694147646427155,
-0.13040579855442047,
0.0652911365032196,
0.11955529451370239,
-0.016908518970012665,
-0.2276170700788498,
-0.1421545445919037,
-0.1524275541305542,
0.12549594044685364,
0.21671868860721588,
0.140748530626297,
0.17793338000774384,
-0.08393494784832001,
0.16795653104782104,
0.11249670386314392,
-0.20654644072055817,
-0.12422960251569748,
-0.23509445786476135,
-0.15807755291461945,
0.24271900951862335,
0.08407751470804214,
0.20053274929523468,
0.0134679414331913,
0.11361934244632721,
0.29425591230392456,
0.3542514145374298,
0.02978316694498062,
-0.30162233114242554,
0.3524743914604187,
-0.1150171309709549,
-0.3615785837173462,
0.07311142981052399,
0.012349467724561691,
-0.07623565196990967,
-0.10622762888669968,
-0.2283654361963272,
-0.01784396544098854,
0.11968666315078735,
0.03880710154771805,
-0.1391332745552063,
-0.5474354028701782,
0.03299252688884735,
0.013050325214862823,
0.16632184386253357,
0.07378476858139038,
0.4963422417640686,
0.027947064489126205,
0.20067532360553741,
-0.5633282661437988,
0.03455609083175659,
0.4846208691596985,
0.29926761984825134,
0.473564088344574,
-0.18529804050922394,
-0.019008971750736237,
-0.009206831455230713,
-0.4812477231025696,
0.07532282173633575,
0.2396787405014038,
0.36699897050857544,
-0.03173062577843666,
-0.2118472158908844,
0.0898561179637909,
-0.17153313755989075,
0.443578839302063,
-0.3060115873813629,
0.4268411695957184,
0.3170056939125061,
-0.2341446876525879,
-0.27567896246910095,
0.17601172626018524,
-0.014743506908416748,
0.1640821248292923,
-0.41003116965293884,
0.23711127042770386,
0.0033719502389431,
0.04076436907052994,
-0.1905737668275833,
-0.019830532371997833,
0.16663962602615356,
0.4183311462402344,
0.4170888364315033,
0.24839967489242554,
-0.04172738268971443,
0.06295028328895569,
0.2919248342514038,
-0.43171191215515137,
0.1377897709608078,
-0.2335241436958313,
-0.10244494676589966,
-0.20492589473724365,
0.09117260575294495,
-0.5365709066390991,
-0.25655418634414673,
-0.4064130485057831,
0.08364007622003555,
-0.12799513339996338,
0.26292088627815247,
0.05298175662755966,
0.17037934064865112,
-0.05999771133065224,
0.09543980658054352,
0.30645114183425903,
0.24371632933616638,
-0.11010464280843735,
0.3391706943511963,
-0.49700841307640076,
-0.281946063041687,
0.40789052844047546,
-0.3286448121070862,
-0.18217132985591888,
-0.005822684615850449,
0.3923448622226715,
0.15608827769756317,
-0.23638463020324707,
-0.04348139464855194,
0.16047176718711853,
0.30314305424690247,
-0.3153868019580841,
-0.13804829120635986,
0.05526687949895859,
-0.2985897660255432,
0.08156366646289825,
-0.15724672377109528,
0.4083766043186188,
0.08653059601783752,
-0.22822678089141846,
0.10883355885744095,
-0.13530752062797546
] |
https://github.com/huggingface/datasets/issues/2065 | Would it be possible to actually set the umask based on a user provided argument? For example, a popular usecase my team has is using a shared file-system for processing datasets. This may involve writing/deleting other files, or changing filenames, which a -rw-r--r-- wouldn't fix. | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 45 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Would it be possible to actually set the umask based on a user provided argument? For example, a popular usecase my team has is using a shared file-system for processing datasets. This may involve writing/deleting other files, or changing filenames, which a -rw-r--r-- wouldn't fix. | [
-0.14714986085891724,
0.09206673502922058,
-0.05052252113819122,
-0.05057564005255699,
-0.10244080424308777,
0.06507508456707001,
0.2770627737045288,
0.03331296145915985,
-0.12057293951511383,
0.07548297941684723,
-0.08884073793888092,
-0.12017867714166641,
0.0910978838801384,
-0.4219701290130615,
-0.19256652891635895,
0.23253360390663147,
0.13335789740085602,
-0.01766335591673851,
0.15074779093265533,
-0.1546301543712616,
-0.21149790287017822,
-0.013696258887648582,
-0.08542612940073013,
-0.07912439107894897,
-0.353549987077713,
-0.17215488851070404,
0.16812756657600403,
0.2706644535064697,
-0.05658368021249771,
-0.07852354645729065,
0.2250819206237793,
0.6471478939056396,
0.14977137744426727,
0.0538107231259346,
-0.00011989401536993682,
-0.28704187273979187,
0.006174072157591581,
-0.15166762471199036,
-0.06340385228395462,
0.18705806136131287,
0.08874654024839401,
0.06735076010227203,
-0.10307888686656952,
-0.12478943914175034,
-0.09440863132476807,
0.22612076997756958,
0.18142247200012207,
-0.7467901706695557,
0.36642998456954956,
0.174821138381958,
0.1095253974199295,
-0.19688771665096283,
-0.386359304189682,
0.02779216691851616,
0.1778070032596588,
0.12260954827070236,
-0.1285097301006317,
0.04909916967153549,
0.4465577304363251,
-0.2761497497558594,
-0.09581735730171204,
-0.06984055042266846,
-0.2673167586326599,
0.09566035866737366,
0.16451576352119446,
-0.13033561408519745,
-0.24298180639743805,
-0.39944347739219666,
0.14508987963199615,
0.11066700518131256,
0.6790685057640076,
-0.11666068434715271,
-0.5629664063453674,
-0.11351508647203445,
0.11431504786014557,
0.38432440161705017,
0.32925885915756226,
0.2766023874282837,
-0.16324147582054138,
0.3412986397743225,
-0.44928407669067383,
0.18957753479480743,
-0.15688297152519226,
0.10351204872131348,
0.19702333211898804,
0.10236772894859314,
0.0025067292153835297,
0.06778699159622192,
0.011501047760248184,
-0.028824511915445328,
0.22652342915534973,
0.05814162269234657,
-0.2915637791156769,
0.4532558023929596,
-0.16343988478183746,
0.04481559246778488,
-0.20364275574684143,
0.42428916692733765,
0.22303900122642517,
0.36838799715042114,
0.27768799662590027,
0.2417333722114563,
-0.04898025095462799,
0.3250258266925812,
0.002622658386826515,
0.22215081751346588,
0.4380914866924286,
0.30346187949180603,
0.5250223875045776,
-0.31991687417030334,
-0.11069868505001068,
0.05349253490567207,
0.028156332671642303,
-0.31997427344322205,
0.0004487559199333191,
0.2718319296836853,
-0.025619111955165863,
-0.23009902238845825,
0.15154655277729034,
0.007420055568218231,
-0.25161662697792053,
-0.22014570236206055,
-0.014600545167922974,
0.330180823802948,
0.11046455800533295,
0.02126196026802063,
0.1741766631603241,
0.2590630352497101,
-0.04705365002155304,
-0.23974889516830444,
0.06585544347763062,
-0.3669915795326233,
-0.3004591464996338,
0.44151216745376587,
0.42177677154541016,
0.0930415540933609,
0.05566123127937317,
0.19593341648578644,
0.17995557188987732,
-0.20455560088157654,
0.40452802181243896,
-0.01055934652686119,
0.47550535202026367,
0.29111218452453613,
0.4127848446369171,
0.30719244480133057,
0.15261048078536987,
-0.1512584090232849,
-0.17155563831329346,
0.3212668001651764,
-0.23732668161392212,
-0.13875803351402283,
0.3256177306175232,
-0.009579232893884182,
-0.06720445305109024,
0.29845356941223145,
-0.29006749391555786,
0.04070589691400528,
0.46712374687194824,
-0.03430471196770668,
0.46793556213378906,
0.23952682316303253,
-0.10938872396945953,
-0.3718368411064148,
-0.15334713459014893,
0.2511182427406311,
0.012815751135349274,
-0.15370535850524902,
-0.14967034757137299,
0.027479197829961777,
-0.1170956939458847,
0.5004411935806274,
-0.01076500117778778,
0.06908174604177475,
-0.17807318270206451,
0.2032708078622818,
0.4645264148712158,
-0.052138276398181915,
-0.5090235471725464,
0.06843510270118713,
0.24206823110580444,
-0.004206061363220215,
0.30276378989219666,
0.15403342247009277,
-0.1393563151359558,
-0.15941035747528076,
0.13487060368061066,
0.34900107979774475,
0.14409199357032776,
0.1884932965040207,
0.0646124929189682,
0.005974911153316498,
-0.1699061095714569,
-0.027753274887800217,
0.03733755275607109,
0.25574952363967896,
0.3359964191913605,
-0.34381920099258423,
0.32853713631629944,
-0.2910957634449005,
0.20323756337165833,
0.39478257298469543,
0.19779837131500244,
-0.0213811993598938,
-0.03698036074638367,
0.07348828762769699,
-0.3018436133861542,
0.2468530237674713,
-0.11586292088031769,
-0.23524297773838043,
0.16871899366378784,
-0.5432312488555908,
0.18679462373256683,
-0.26269909739494324,
-0.05731422081589699,
-0.1396666169166565,
-0.021017514169216156,
0.15439388155937195,
-0.04252631962299347,
-0.3075684905052185,
0.08693452179431915,
0.3220134973526001,
0.18502075970172882,
-0.007995441555976868,
-0.1341930627822876,
0.025866396725177765,
-0.0760849267244339,
-0.09818750619888306,
-0.17631986737251282,
-0.09619984030723572,
0.23546406626701355,
0.12450353801250458,
-0.2654774487018585,
0.3121873736381531,
0.19754064083099365,
-0.05068540200591087,
-0.19365796446800232,
0.2976667582988739,
-0.06724309921264648,
0.18819604814052582,
0.09365628659725189,
-0.14303117990493774,
-0.12927651405334473,
-0.14049997925758362,
-0.34750452637672424,
0.5174837112426758,
-0.08013418316841125,
-0.12006140500307083,
-0.14880071580410004,
0.29071325063705444,
0.18238843977451324,
-0.03521677106618881,
-0.11652706563472748,
-0.10509376972913742,
0.13710512220859528,
0.18944764137268066,
0.41158783435821533,
0.13009804487228394,
0.13904112577438354,
-0.01992202177643776,
0.3039122521877289,
0.15208584070205688,
0.15590007603168488,
0.06406757235527039,
-0.0592852346599102,
0.11747153103351593,
0.2574257254600525,
0.3071286082267761,
0.31687599420547485,
0.0771377831697464,
0.24865038692951202,
-0.18618588149547577,
0.2994369566440582,
-0.17617718875408173,
-0.014917977154254913,
-0.07440676540136337,
-0.19402800500392914,
-0.17326155304908752,
-0.21222876012325287,
-0.07874660193920135,
-0.03657880052924156,
0.19738174974918365,
-0.10330398380756378,
0.05942979454994202,
-0.39226222038269043,
-0.12745541334152222,
-0.10771901160478592,
-0.180771604180336,
0.2595333158969879,
0.003694981336593628,
-0.5104748010635376,
-0.1243763342499733,
-0.05584793910384178,
0.26982381939888,
-0.04690679535269737,
0.27977290749549866,
-0.20464742183685303,
0.2511657476425171,
-0.1471157670021057,
-0.021751780062913895,
-0.13548976182937622,
0.16270238161087036,
0.13629861176013947,
-0.01160430908203125,
0.22515006363391876,
-0.567370593547821,
0.11501224339008331,
0.009725593030452728,
0.19682662189006805,
-0.2695704400539398,
0.018731966614723206,
-0.17576241493225098,
0.08691193163394928,
0.07481157034635544,
-0.360603392124176,
-0.0461839959025383,
-0.2265404760837555,
-0.09107612073421478,
-0.08368802070617676,
-0.3345745801925659,
-0.11628849804401398,
-0.02342638000845909,
0.16397535800933838,
-0.13111406564712524,
-0.2262912541627884,
0.020182857289910316,
-0.1411018967628479,
-0.128946915268898,
0.5307949185371399,
0.13322727382183075,
0.22470977902412415,
-0.17567232251167297,
-0.17226159572601318,
-0.42267778515815735,
-0.12573598325252533,
0.1453988254070282,
-0.3245464861392975,
-0.6174485683441162,
0.3266459107398987,
-0.47117647528648376,
-0.3162115514278412,
-0.007634386420249939,
0.15871165692806244,
0.0754438042640686,
0.5489595532417297,
0.06612528860569,
-0.1826241910457611,
-0.22511246800422668,
0.11580145359039307,
-0.19051963090896606,
0.10722270607948303,
-0.005488928407430649,
0.034658435732126236,
0.14487478137016296,
-0.010273709893226624,
-0.14964637160301208,
0.10108569264411926,
-0.10544392466545105,
-0.28457343578338623,
0.17953264713287354,
0.10752499103546143,
0.19620198011398315,
0.5320226550102234,
0.401636004447937,
0.4496496915817261,
0.23469871282577515,
0.3224681615829468,
0.621249794960022,
0.10914753377437592,
0.007070079445838928,
0.10998514294624329,
0.056445010006427765,
-0.19765198230743408,
0.19281068444252014,
0.13784098625183105,
-0.14251847565174103,
0.025061853229999542,
-0.07511980086565018,
-0.1683899164199829,
-0.5382798314094543,
-0.02260715886950493,
-0.3873749375343323,
0.08684886991977692,
-0.026056140661239624,
0.1959289312362671,
-0.2685118317604065,
-0.18003180623054504,
0.03077571466565132,
0.35712188482284546,
0.15172669291496277,
0.3505571186542511,
-0.6412394046783447,
0.09082333743572235,
-0.31678125262260437,
0.47198987007141113,
-0.04250357300043106,
0.4521333873271942,
-0.24611486494541168,
0.2270343154668808,
0.16411727666854858,
0.32755807042121887,
0.32710084319114685,
-0.4988219439983368,
0.32677963376045227,
0.009352877736091614,
0.008739747107028961,
0.19135743379592896,
-0.11924947053194046,
0.3321492075920105,
0.36682966351509094,
0.09374214708805084,
0.15429630875587463,
0.16097557544708252,
-0.09152385592460632,
-0.5370302796363831,
-0.3308063745498657,
-0.1116437017917633,
-0.23676933348178864,
0.21700939536094666,
0.10543941706418991,
-0.18626129627227783,
-0.016410142183303833,
0.3671918213367462,
-0.4705692529678345,
-0.09947586059570312,
0.027424268424510956,
-0.3810954988002777,
0.20719915628433228,
0.15393270552158356,
-0.10855705291032791,
0.2331237941980362,
-0.047757599502801895,
-0.14715084433555603,
0.30435481667518616,
-0.028974540531635284,
0.34420084953308105,
0.3182346522808075,
-0.2673044800758362,
0.2928968667984009,
-0.2188660204410553,
-0.3312990665435791,
0.4388865828514099,
0.08419503271579742,
-0.2857546806335449,
-0.09085661172866821,
0.2405928373336792,
-0.08958541601896286,
-0.22429755330085754,
-0.14346477389335632,
-0.13658002018928528,
0.06769925355911255,
-0.1706239879131317,
-0.6507313251495361,
0.2193378508090973,
0.6206012964248657,
-0.3546893894672394,
0.27531400322914124,
-0.06872105598449707,
-0.41859060525894165,
0.36972135305404663,
0.17524372041225433,
0.8520863056182861,
-0.19543105363845825,
0.43178173899650574,
-0.5393025875091553,
0.05618128180503845,
-0.009326562285423279,
-0.5421409010887146,
0.09541764855384827,
-0.48270925879478455,
-0.3196132779121399,
-0.15986597537994385,
-0.11526967585086823,
0.09652677923440933,
0.536881685256958,
-0.0007456839084625244,
0.0883786529302597,
-0.05653961002826691,
-0.1894959956407547,
-0.04728423058986664,
-0.17385654151439667,
-0.4432770013809204,
-0.20745447278022766,
0.25500673055648804,
0.048389505594968796,
-0.08105252683162689,
0.018403343856334686,
0.07283833622932434,
0.08736440539360046,
-0.26215094327926636,
0.17075592279434204,
-0.34325772523880005,
-0.034622564911842346,
-0.7361095547676086,
0.05973929539322853,
-0.14826926589012146,
0.041416674852371216,
0.19489198923110962,
0.43655526638031006,
0.4191000759601593,
0.3678157329559326,
0.003450075164437294,
0.1286642849445343,
0.29112812876701355,
0.19329875707626343,
-0.11876769363880157,
0.005705595016479492,
0.26792165637016296,
0.19809356331825256,
0.08601973950862885,
-0.20347076654434204,
-0.1211959570646286,
-0.3485175371170044,
-0.3933888077735901,
0.053943417966365814,
0.10855008661746979,
-0.26800066232681274,
-0.09995532035827637,
-0.31097427010536194,
-0.055523090064525604,
0.09468236565589905,
0.020819783210754395,
0.4337208867073059,
-0.011768996715545654,
0.5506768822669983,
-0.3282584249973297,
-0.2934184670448303,
0.06344737112522125,
0.6677954196929932,
-0.19444887340068817,
-0.24920707941055298,
0.13110271096229553,
-0.2961777448654175,
-0.21818499267101288,
-0.12239034473896027,
0.08970984816551208,
0.2830389440059662,
-0.22775757312774658,
-0.0652296170592308,
-0.007820319384336472,
-0.18304511904716492,
0.24903909862041473,
-0.44173359870910645,
0.12384016811847687,
0.21655189990997314,
0.08228786289691925,
-0.33324378728866577,
-0.30159732699394226,
-0.27592992782592773,
-0.1818505823612213,
0.22809217870235443,
0.29551807045936584,
-0.6359662413597107,
0.1383025348186493,
0.1753508299589157,
-0.16398939490318298,
-0.23781171441078186,
0.010698996484279633,
0.10829351842403412,
0.052918970584869385,
0.14607590436935425,
-0.13914063572883606,
-0.17091627418994904,
-0.1404721438884735,
-0.057395897805690765,
0.04525897651910782,
-0.09434208273887634,
-0.07158221304416656,
0.18963316082954407,
0.16896696388721466,
-0.42973631620407104,
0.24337467551231384,
-0.4658846855163574,
-0.07275509834289551,
-0.5211846232414246,
0.03723299503326416,
0.4400121867656708,
0.09621782600879669,
0.3277226984500885,
0.17764326930046082,
-0.016768034547567368,
-0.31440019607543945,
0.14125710725784302,
-0.1770416647195816,
-0.25716346502304077,
-0.21366623044013977,
0.18408510088920593,
-0.3134496808052063,
-0.08584298193454742,
0.34309157729148865,
-0.02275744080543518,
0.1673571616411209,
0.12697859108448029,
0.03578346595168114,
0.0650411993265152,
-0.04157863184809685,
0.011366792023181915,
0.2966189980506897,
-0.13521522283554077,
-0.05555882677435875,
0.020754650235176086,
0.35007521510124207,
0.02641381323337555,
0.13894274830818176,
-0.2497936636209488,
0.21742171049118042,
-0.12841035425662994,
0.02364761382341385,
0.46562957763671875,
0.15407995879650116,
-0.41797852516174316,
0.18083439767360687,
-0.19816134870052338,
0.14398770034313202,
-0.34733298420906067,
0.2857910692691803,
0.0039982302114367485,
0.047026485204696655,
0.1241559088230133,
0.14425218105316162,
0.07800348103046417,
0.244706392288208,
0.24671903252601624,
0.2031865119934082,
0.2100973129272461,
0.2925577163696289,
-0.37409573793411255,
0.15250737965106964,
-0.6392157077789307,
0.09233129024505615,
0.05736931413412094,
0.038630321621894836,
0.30661341547966003,
0.12077747285366058,
0.04551556333899498,
0.14421816170215607,
-0.17202255129814148,
0.088991180062294,
-0.17066684365272522,
-0.08451975136995316,
-0.16405853629112244,
-0.0227186381816864,
0.07303847372531891,
-0.1671445071697235,
-0.22943775355815887,
-0.3076397478580475,
-0.16272930800914764,
0.13992324471473694,
0.2915469706058502,
0.1834629774093628,
0.21290597319602966,
-0.01291649043560028,
0.07763929665088654,
0.04924047738313675,
-0.2998976707458496,
-0.20141839981079102,
-0.32896608114242554,
-0.07475541532039642,
0.3622376024723053,
0.045328423380851746,
0.1428123563528061,
0.09104493260383606,
0.1489473283290863,
0.252482146024704,
0.21231982111930847,
0.0896754264831543,
-0.30447918176651,
0.16894783079624176,
-0.01945490762591362,
-0.38779670000076294,
0.03237524628639221,
-0.011439912021160126,
-0.03277954086661339,
-0.0719321072101593,
-0.18534444272518158,
-0.11226844787597656,
0.020880088210105896,
0.037501897662878036,
-0.10523809492588043,
-0.42902225255966187,
0.15870563685894012,
-0.03382933884859085,
0.1928042471408844,
0.042140260338783264,
0.3670751452445984,
0.02629261463880539,
0.21010443568229675,
-0.3965533673763275,
-0.005846744403243065,
0.4231172204017639,
0.18669912219047546,
0.46272075176239014,
-0.18756580352783203,
0.039490435272455215,
-0.14630019664764404,
-0.3878423571586609,
0.12534399330615997,
0.24416187405586243,
0.31610390543937683,
-0.028806567192077637,
-0.35110294818878174,
0.19668668508529663,
-0.07667386531829834,
0.5007018446922302,
-0.11721466481685638,
0.2203657180070877,
0.45269620418548584,
-0.2806839644908905,
-0.29369309544563293,
0.2575283944606781,
-0.011424124240875244,
0.13738597929477692,
-0.42555075883865356,
0.15056449174880981,
0.06130651757121086,
0.017689965665340424,
-0.1303204894065857,
-0.15691320598125458,
0.16898666322231293,
0.5910175442695618,
0.31619301438331604,
0.29639482498168945,
-0.0551009438931942,
-0.02911899983882904,
0.4183221459388733,
-0.2877555787563324,
0.24198880791664124,
-0.24078091979026794,
-0.1349710077047348,
-0.16516050696372986,
0.16663461923599243,
-0.6858277320861816,
-0.25403285026550293,
-0.3417346775531769,
0.029731128364801407,
-0.16837020218372345,
0.2199373096227646,
0.046233199536800385,
0.22816500067710876,
-0.17286299169063568,
0.13773369789123535,
0.37576425075531006,
0.38087889552116394,
-0.1494627743959427,
0.4492860436439514,
-0.48673397302627563,
-0.007340442389249802,
0.25010764598846436,
-0.22293159365653992,
-0.17093098163604736,
-0.08036550134420395,
0.3517572283744812,
0.12708893418312073,
-0.26989278197288513,
0.12201094627380371,
0.027054592967033386,
0.33315107226371765,
-0.2721729874610901,
-0.10104390978813171,
0.006984766572713852,
-0.24729573726654053,
-0.048984918743371964,
-0.15640243887901306,
0.33850035071372986,
0.15707065165042877,
-0.21794860064983368,
0.033849939703941345,
-0.30734381079673767
] |
https://github.com/huggingface/datasets/issues/2065 | Note that you can get the cache files of a dataset with the `cache_files` attributes.
Then you can `chmod` those files and all the other cache files in the same directory.
Moreover we can probably keep the same permissions after each transform. This way you just need to set the permissions once after doing `load_dataset` for example, and then all the new transformed cached files will have the same permissions.
What do you think ? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 75 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Note that you can get the cache files of a dataset with the `cache_files` attributes.
Then you can `chmod` those files and all the other cache files in the same directory.
Moreover we can probably keep the same permissions after each transform. This way you just need to set the permissions once after doing `load_dataset` for example, and then all the new transformed cached files will have the same permissions.
What do you think ? | [
-0.11946776509284973,
0.25942397117614746,
-0.09670411050319672,
0.03038511797785759,
0.02317885309457779,
0.10834965109825134,
0.33913034200668335,
0.2117256373167038,
-0.33623433113098145,
-0.03682345151901245,
-0.14438754320144653,
0.022060520946979523,
0.010938532650470734,
-0.2525070607662201,
-0.030132632702589035,
0.07438850402832031,
0.22781041264533997,
0.12081369757652283,
-0.11842863261699677,
-0.07780859619379044,
-0.07537372410297394,
-0.15563026070594788,
-0.06453387439250946,
-0.06881539523601532,
-0.2214253693819046,
-0.15285569429397583,
0.23447448015213013,
0.14636822044849396,
0.06782681494951248,
-0.046034716069698334,
0.22121551632881165,
0.5300709009170532,
0.1394364982843399,
0.12973183393478394,
-0.00011139971320517361,
-0.1518128514289856,
-0.018424034118652344,
-0.08940369635820389,
0.05359030142426491,
0.19440986216068268,
-0.13250510394573212,
-0.2093673050403595,
-0.27640676498413086,
-0.15941019356250763,
-0.11222448945045471,
0.11670468747615814,
0.16420920193195343,
-0.6036270260810852,
0.5433728098869324,
0.14046140015125275,
0.19184917211532593,
-0.1789262592792511,
-0.41048064827919006,
0.08267627656459808,
0.2436181902885437,
0.07859356701374054,
-0.1785174012184143,
0.04801541194319725,
0.27318114042282104,
-0.07998170703649521,
-0.04989607632160187,
0.14044630527496338,
-0.25392431020736694,
0.02367643639445305,
0.23574498295783997,
-0.14084994792938232,
-0.2738702893257141,
-0.5522379279136658,
0.14366859197616577,
0.08342639356851578,
0.6017306447029114,
-0.12326008081436157,
-0.5118139386177063,
-0.20266640186309814,
0.1050674170255661,
0.20665289461612701,
0.27122506499290466,
0.36916065216064453,
0.09368245303630829,
0.29654306173324585,
-0.5677486658096313,
-0.04961303621530533,
-0.1733718067407608,
-0.04453425481915474,
0.2027280032634735,
-0.11692007631063461,
-0.03591231629252434,
0.05785425752401352,
-0.022085703909397125,
-0.061276875436306,
0.2435196191072464,
0.16879966855049133,
-0.3648126423358917,
0.3007422089576721,
-0.1860242784023285,
0.08122982084751129,
-0.2588999271392822,
0.4488409757614136,
0.16287769377231598,
0.32402047514915466,
0.09203078597784042,
0.19522272050380707,
0.07095802575349808,
0.140842467546463,
-0.06136703863739967,
0.29603004455566406,
0.24897630512714386,
0.4393758475780487,
0.49831509590148926,
-0.39286062121391296,
-0.23317496478557587,
0.025957472622394562,
-0.003199983388185501,
-0.38852494955062866,
0.04230397939682007,
0.3014148771762848,
0.005866058170795441,
-0.19410604238510132,
0.2318098545074463,
0.023072734475135803,
0.02777595818042755,
-0.20674775540828705,
0.03483007103204727,
0.29147064685821533,
0.1373828798532486,
-0.048593729734420776,
0.031297288835048676,
0.15315786004066467,
0.087790846824646,
-0.40739935636520386,
-0.014228729531168938,
-0.3188684582710266,
-0.4200417399406433,
0.42487001419067383,
0.45444297790527344,
-0.15314951539039612,
-0.057280462235212326,
0.2649715840816498,
0.2661163806915283,
-0.1907426118850708,
0.23798421025276184,
-0.021670080721378326,
0.45783761143684387,
0.32964372634887695,
0.19381876289844513,
0.31199491024017334,
0.07201172411441803,
0.06076157093048096,
-0.14678646624088287,
0.29237860441207886,
-0.2984640598297119,
-0.10558292269706726,
0.37846553325653076,
0.055793724954128265,
-0.01330261304974556,
0.31579405069351196,
-0.39774277806282043,
0.05883844569325447,
0.5510910749435425,
-0.17793801426887512,
0.3704771101474762,
0.20523348450660706,
-0.027375824749469757,
-0.36652201414108276,
-0.15808424353599548,
0.3250623345375061,
0.008227452635765076,
-0.03324512392282486,
0.017076406627893448,
0.029469013214111328,
-0.07307662069797516,
0.2770831286907196,
-0.07740680873394012,
0.0894964337348938,
-0.1327401101589203,
0.10823401808738708,
0.5130736231803894,
0.0005702823400497437,
-0.5620497465133667,
0.1342482566833496,
0.1925630271434784,
-0.17343249917030334,
0.2454901784658432,
0.009697012603282928,
0.11853376775979996,
-0.21282647550106049,
-0.2583189308643341,
0.3564733862876892,
0.17735779285430908,
0.253607839345932,
0.11098016798496246,
0.0733584389090538,
0.04106907173991203,
-0.13297384977340698,
0.11544090509414673,
0.43330371379852295,
0.2992611825466156,
-0.18246325850486755,
0.16170945763587952,
-0.3766428828239441,
0.2751654386520386,
0.4555324912071228,
-0.036531880497932434,
-0.10155168920755386,
-0.01766306161880493,
-0.007352381944656372,
-0.3946577310562134,
0.24729835987091064,
-0.31838899850845337,
-0.389682412147522,
0.07556528598070145,
-0.41269904375076294,
0.049264878034591675,
-0.39189594984054565,
-0.16421276330947876,
-0.0987657904624939,
0.10220497846603394,
0.028506353497505188,
0.012480385601520538,
-0.36704468727111816,
0.1314266324043274,
0.4621593952178955,
0.23610703647136688,
-0.011071447283029556,
-0.1629887968301773,
0.13592836260795593,
-0.09196252375841141,
-0.03928319737315178,
-0.2335415929555893,
-0.022504854947328568,
0.30919408798217773,
-0.0741983950138092,
-0.2938145697116852,
0.21663455665111542,
0.018628641963005066,
0.17117959260940552,
-0.10681900382041931,
0.31293803453445435,
0.038264527916908264,
0.025569245219230652,
0.132221519947052,
-0.2872105538845062,
-0.13486388325691223,
-0.11010889708995819,
-0.18415269255638123,
0.3122932016849518,
-0.15726996958255768,
-0.0030585266649723053,
-0.17040354013442993,
0.22141052782535553,
0.1716570258140564,
-0.07357056438922882,
-0.1987820267677307,
-0.16610676050186157,
-0.08806022256612778,
0.15406981110572815,
0.40023642778396606,
0.19949057698249817,
0.15894170105457306,
0.06835684925317764,
0.3487052023410797,
0.15812160074710846,
0.0729844719171524,
-0.03985918313264847,
-0.12381264567375183,
0.11629590392112732,
0.11393117904663086,
0.4215902090072632,
0.24963800609111786,
0.062409766018390656,
0.33822500705718994,
-0.1299833208322525,
0.32259073853492737,
-0.1342460662126541,
-0.011377260088920593,
-0.15507808327674866,
0.0726025253534317,
-0.12519636750221252,
-0.19601643085479736,
0.025293651968240738,
0.013151265680789948,
0.24325115978717804,
0.15219399333000183,
0.07365424185991287,
-0.3208756744861603,
-0.053105078637599945,
-0.24785944819450378,
-0.19402092695236206,
0.21869274973869324,
-0.053189244121313095,
-0.4666423797607422,
0.03510241210460663,
-0.21372589468955994,
0.12077629566192627,
-0.042089302092790604,
0.26204878091812134,
-0.2179090976715088,
0.18830202519893646,
-0.0940764844417572,
-0.09550271183252335,
-0.2950899004936218,
0.27400368452072144,
-0.016244571655988693,
0.014099128544330597,
0.2692718505859375,
-0.7202326059341431,
0.08227625489234924,
-0.10379153490066528,
0.335143506526947,
-0.33259958028793335,
-0.001395389437675476,
-0.1677365005016327,
-0.05839676409959793,
0.040000103414058685,
-0.5119996666908264,
0.07907301187515259,
-0.132131889462471,
0.005573142319917679,
-0.15033528208732605,
-0.2388792634010315,
-0.17516309022903442,
0.06383329629898071,
-0.008444011211395264,
-0.06307445466518402,
-0.26914358139038086,
-0.11059021949768066,
-0.0748647004365921,
-0.15295475721359253,
0.41721686720848083,
0.024252980947494507,
0.2210448682308197,
0.07125452160835266,
-0.2961512804031372,
-0.45922428369522095,
-0.17086587846279144,
0.32248079776763916,
-0.35070204734802246,
-0.4663727283477783,
0.37464797496795654,
-0.46524837613105774,
-0.391949325799942,
0.008976228535175323,
0.15250590443611145,
0.09564744681119919,
0.5313207507133484,
0.008107885718345642,
0.006563864648342133,
-0.21562209725379944,
0.164285346865654,
-0.24481208622455597,
0.1427268385887146,
0.06334005296230316,
0.12030059099197388,
0.12329277396202087,
-0.02626931667327881,
-0.14194172620773315,
0.0039663054049015045,
0.0027324818074703217,
-0.19794635474681854,
0.05590013414621353,
-0.023403510451316833,
0.2471242994070053,
0.6841845512390137,
0.47430235147476196,
0.2400142103433609,
0.20362678170204163,
0.33891648054122925,
0.6224416494369507,
0.12087695300579071,
-0.19565272331237793,
0.1466686874628067,
-0.03950127959251404,
-0.14634013175964355,
0.07162865996360779,
0.024373218417167664,
-0.2579856514930725,
-0.004330329596996307,
0.011359751224517822,
-0.3083682060241699,
-0.420299768447876,
-0.1478903889656067,
-0.35418936610221863,
0.22554901242256165,
0.14203006029129028,
0.07216183841228485,
-0.20011267066001892,
-0.17612718045711517,
0.06706415116786957,
0.3497656285762787,
0.21497687697410583,
0.26235249638557434,
-0.30202823877334595,
-0.09926122426986694,
-0.2113831341266632,
0.3652659058570862,
-0.06169110909104347,
0.42556458711624146,
-0.17671793699264526,
0.11119286715984344,
0.1521211415529251,
0.3573996424674988,
0.3918287754058838,
-0.3412022590637207,
0.2567473351955414,
-0.01871781423687935,
0.14706216752529144,
0.34583157300949097,
-0.2633593678474426,
0.4020395874977112,
0.33507299423217773,
0.0278940312564373,
0.16372236609458923,
0.10022930800914764,
-0.11537549644708633,
-0.4289388358592987,
-0.12455116957426071,
-0.15589302778244019,
-0.13361957669258118,
0.15551017224788666,
0.20040380954742432,
-0.1273491382598877,
-0.08463850617408752,
0.2400333285331726,
-0.354484885931015,
-0.24178732931613922,
0.020813927054405212,
-0.21397826075553894,
0.08737966418266296,
0.07659316062927246,
0.0004746168851852417,
0.3266929090023041,
0.11235740035772324,
-0.009302087128162384,
0.3724152743816376,
0.06925061345100403,
0.08343195170164108,
0.29792696237564087,
-0.19960463047027588,
0.29971638321876526,
-0.24800220131874084,
-0.18839459121227264,
0.29069584608078003,
0.011079490184783936,
-0.40315547585487366,
-0.24411648511886597,
0.118433877825737,
-0.17410261929035187,
-0.27032312750816345,
-0.05456317216157913,
-0.14825627207756042,
-0.007920682430267334,
-0.23356735706329346,
-0.6500523090362549,
0.24102136492729187,
0.5714666843414307,
-0.3636013865470886,
0.2110617309808731,
-0.29898926615715027,
-0.3920722007751465,
0.09975980222225189,
0.12468037009239197,
0.8228697776794434,
-0.2001391053199768,
0.3372625708580017,
-0.43607786297798157,
0.09147058427333832,
0.03386225923895836,
-0.5424814224243164,
0.13351061940193176,
-0.3649224042892456,
-0.48454371094703674,
-0.13968755304813385,
-0.17535251379013062,
0.03290487825870514,
0.4268997311592102,
-0.05034036934375763,
0.13176172971725464,
-0.11103449761867523,
-0.11787751317024231,
-0.157669335603714,
-0.24483364820480347,
-0.16099528968334198,
-0.3166031837463379,
0.2871120572090149,
0.12592920660972595,
-0.3188804090023041,
0.0841597467660904,
-0.03727512061595917,
-0.04422423243522644,
-0.20891857147216797,
0.3265964686870575,
-0.255303293466568,
0.10092231631278992,
-0.5163571834564209,
0.10253329575061798,
-0.27376729249954224,
-0.04475799947977066,
0.17235934734344482,
0.3448408544063568,
0.3541642129421234,
0.32867294549942017,
0.012813964858651161,
0.04265975579619408,
0.298612117767334,
0.20196203887462616,
-0.24757353961467743,
0.0381963774561882,
0.31983140110969543,
0.16093681752681732,
0.13653816282749176,
-0.27374503016471863,
-0.13164770603179932,
-0.21735605597496033,
-0.3580756187438965,
0.19739201664924622,
0.014258818700909615,
-0.23012378811836243,
0.0675700455904007,
0.10135404765605927,
0.028969384729862213,
0.08282195031642914,
0.09048760682344437,
0.436530739068985,
-0.0731009840965271,
0.6100828051567078,
-0.31135132908821106,
-0.36974087357521057,
0.07226632535457611,
0.4648306369781494,
-0.00513911247253418,
-0.27982109785079956,
0.16849356889724731,
-0.3599313497543335,
-0.23812168836593628,
-0.15420134365558624,
0.20330052077770233,
0.054781123995780945,
-0.21829475462436676,
-0.03165615350008011,
0.017932865768671036,
-0.049475982785224915,
0.1912437081336975,
-0.4619821608066559,
0.11503874510526657,
0.10760607570409775,
0.1272987574338913,
-0.3227124512195587,
-0.41833290457725525,
-0.2269861251115799,
-0.33664393424987793,
0.20104874670505524,
0.19143244624137878,
-0.4584569036960602,
0.13387688994407654,
0.14644527435302734,
-0.2239752858877182,
-0.2006184458732605,
0.07434526085853577,
0.14637796580791473,
0.20060759782791138,
-0.002839595079421997,
-0.2117864191532135,
-0.19916021823883057,
-0.09704721719026566,
-0.030966293066740036,
-0.06590079516172409,
-0.17207393050193787,
-0.09704609215259552,
0.14123515784740448,
0.23235037922859192,
-0.25121334195137024,
0.00012705102562904358,
-0.41728323698043823,
-0.10244498401880264,
-0.46336185932159424,
-0.00010095536708831787,
0.2615754008293152,
0.22683900594711304,
0.4361834228038788,
0.12855497002601624,
0.010206202045083046,
-0.19425442814826965,
0.14103585481643677,
-0.13068342208862305,
-0.21083489060401917,
-0.17807640135288239,
0.2598569095134735,
-0.19986772537231445,
-0.08927769958972931,
-0.11356708407402039,
-0.10939903557300568,
0.19181878864765167,
0.14791083335876465,
0.15830188989639282,
0.02865491434931755,
0.05887208878993988,
0.1932995766401291,
0.22126702964305878,
0.04259636998176575,
-0.10432890057563782,
0.04193147271871567,
0.35571372509002686,
0.125034898519516,
0.07768826186656952,
-0.22863474488258362,
0.26444149017333984,
-0.09766828268766403,
-0.007672533392906189,
0.3514917492866516,
0.2559177875518799,
-0.2805992364883423,
0.15996979176998138,
-0.1296694278717041,
0.10930952429771423,
-0.35856372117996216,
0.4870340824127197,
0.051644887775182724,
0.1429765820503235,
0.0976533591747284,
0.4060678482055664,
0.2815797030925751,
0.018712259829044342,
0.3793064057826996,
0.19096502661705017,
0.2533022463321686,
0.3172955811023712,
-0.28739047050476074,
0.1972580850124359,
-0.5817478895187378,
0.08462250977754593,
-0.01084698736667633,
0.0909682959318161,
0.3315359950065613,
0.014952532947063446,
0.008035534992814064,
0.021772660315036774,
-0.3373452425003052,
-0.004947558045387268,
-0.02476567216217518,
-0.10730154067277908,
-0.11211161315441132,
0.1384299099445343,
0.10986180603504181,
0.060983121395111084,
-0.2639665901660919,
-0.11712483316659927,
-0.20149710774421692,
0.22644206881523132,
0.3205134868621826,
0.0693647712469101,
0.3160950243473053,
0.09332187473773956,
0.19555401802062988,
0.029904963448643684,
-0.18293944001197815,
-0.047127604484558105,
-0.4374748468399048,
-0.12146057188510895,
0.24904227256774902,
0.05561017990112305,
0.04745800420641899,
0.15167030692100525,
0.12877006828784943,
0.22495079040527344,
0.2636330723762512,
0.09833066165447235,
-0.2886022925376892,
0.38324257731437683,
-0.10387630760669708,
-0.3053619861602783,
-0.01328076422214508,
0.014080651104450226,
-0.07107065618038177,
-0.04404710978269577,
-0.29960864782333374,
0.056102752685546875,
0.0851869136095047,
0.07608617842197418,
-0.06158456951379776,
-0.46788841485977173,
0.11242599785327911,
-0.04672037437558174,
0.12676793336868286,
0.14598774909973145,
0.6005497574806213,
-0.015753157436847687,
0.18274547159671783,
-0.4610280692577362,
0.0580456517636776,
0.5085269212722778,
0.26668405532836914,
0.3715483844280243,
-0.14362040162086487,
-0.04093348979949951,
0.022576838731765747,
-0.33515265583992004,
0.1201801747083664,
0.3190222382545471,
0.4509510397911072,
-0.06665752083063126,
-0.17844533920288086,
0.08208020031452179,
-0.1517661213874817,
0.6258016228675842,
-0.33845198154449463,
0.30949556827545166,
0.37575894594192505,
-0.1707218885421753,
-0.22273412346839905,
0.16444438695907593,
0.057920947670936584,
0.11502425372600555,
-0.2996993064880371,
0.2737307846546173,
0.25599125027656555,
0.06746343523263931,
-0.12319658696651459,
-0.1630067229270935,
0.2323898822069168,
0.47929316759109497,
0.49963459372520447,
0.2923944890499115,
-0.09206509590148926,
0.01705281436443329,
0.3724159598350525,
-0.4259382486343384,
0.11669597774744034,
-0.16584156453609467,
-0.09416987001895905,
-0.17014680802822113,
-0.07975924760103226,
-0.6363080143928528,
-0.2001446634531021,
-0.4148024618625641,
-0.09239085018634796,
-0.07236309349536896,
0.2521127462387085,
-0.0389404296875,
0.03509563207626343,
-0.1592819094657898,
0.037023741751909256,
0.29983267188072205,
0.31706252694129944,
-0.13197746872901917,
0.34999290108680725,
-0.43780097365379333,
-0.20046639442443848,
0.2926464378833771,
-0.3081226646900177,
-0.31085503101348877,
0.042786844074726105,
0.35672616958618164,
0.08081702888011932,
-0.17759858071804047,
0.0596107542514801,
0.1286209523677826,
0.3334871232509613,
-0.38257044553756714,
-0.049408238381147385,
0.04624437540769577,
-0.39224904775619507,
0.0021781399846076965,
-0.1448620706796646,
0.5197303891181946,
0.028205744922161102,
-0.2426551878452301,
0.009650208055973053,
-0.22241339087486267
] |
https://github.com/huggingface/datasets/issues/2065 | This means we'll check the permissions of other `cache_files` already created for a dataset before setting permissions for new `cache_files`? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 20 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
This means we'll check the permissions of other `cache_files` already created for a dataset before setting permissions for new `cache_files`? | [
-0.14285695552825928,
0.24719205498695374,
-0.13657593727111816,
0.021837841719388962,
-0.06113343685865402,
0.1519795060157776,
0.29721832275390625,
0.17494076490402222,
-0.21720290184020996,
-0.02154584974050522,
-0.0839368999004364,
-0.05868124961853027,
0.03178375959396362,
-0.28569263219833374,
-0.03197748586535454,
0.13326029479503632,
0.1821877658367157,
0.04435379430651665,
0.09654907882213593,
-0.06093169376254082,
-0.10181349515914917,
-0.11741328984498978,
-0.02727193385362625,
-0.09650833904743195,
-0.287299782037735,
-0.17004993557929993,
0.24643418192863464,
0.13951100409030914,
-0.0033840760588645935,
-0.16781474649906158,
0.32201406359672546,
0.5283101201057434,
0.10398901253938675,
0.12328311800956726,
-0.00011132273357361555,
-0.1744421124458313,
0.03319244086742401,
-0.09607398509979248,
0.07746873795986176,
0.19453667104244232,
-0.17945244908332825,
-0.17812731862068176,
-0.15436269342899323,
-0.1446089744567871,
-0.09529012441635132,
0.16484878957271576,
0.16694240272045135,
-0.6869980096817017,
0.4415380358695984,
0.18916743993759155,
0.2091258466243744,
-0.2013518512248993,
-0.37774112820625305,
0.04954148828983307,
0.251010537147522,
0.0257303137332201,
-0.15162160992622375,
0.1294456571340561,
0.215684175491333,
-0.18244668841362,
-0.03241010755300522,
0.04044914245605469,
-0.3017320930957794,
0.1421564668416977,
0.15948261320590973,
-0.11642461270093918,
-0.30293071269989014,
-0.5466195344924927,
0.11512035131454468,
0.10166847705841064,
0.7427786588668823,
-0.13046371936798096,
-0.5221777558326721,
-0.22474855184555054,
0.026039235293865204,
0.14676374197006226,
0.3395375907421112,
0.3094368875026703,
0.0320565439760685,
0.26447954773902893,
-0.4822489619255066,
-0.06032700464129448,
-0.12340044975280762,
-0.014905016869306564,
0.2107096016407013,
-0.0578126385807991,
-0.054318033158779144,
0.0511021763086319,
0.008981402963399887,
-0.03147529810667038,
0.169854998588562,
0.12233784794807434,
-0.3839341402053833,
0.33227819204330444,
-0.21739470958709717,
0.04769870638847351,
-0.20456251502037048,
0.4771672785282135,
0.24695032835006714,
0.3256940543651581,
0.18476203083992004,
0.18957678973674774,
0.04835261404514313,
0.21009835600852966,
-0.013755524531006813,
0.20427057147026062,
0.36645597219467163,
0.3078049421310425,
0.5489119291305542,
-0.368614137172699,
-0.15094904601573944,
-0.008852561935782433,
0.08776482194662094,
-0.39146947860717773,
0.12542609870433807,
0.2992858588695526,
0.014448992908000946,
-0.17913749814033508,
0.15739594399929047,
0.10272499918937683,
-0.07055308669805527,
-0.2997870147228241,
0.04228441044688225,
0.25415074825286865,
0.08511549234390259,
-0.07631728798151016,
-0.07229416817426682,
0.14653456211090088,
0.03246635943651199,
-0.3402564525604248,
-0.024213016033172607,
-0.2963755130767822,
-0.3305015563964844,
0.45240241289138794,
0.4746805727481842,
-0.21685481071472168,
0.0492037758231163,
0.24845916032791138,
0.1645350605249405,
-0.19606913626194,
0.34962978959083557,
-0.09178625792264938,
0.3922555148601532,
0.32559680938720703,
0.23617500066757202,
0.3156213164329529,
0.026767604053020477,
0.027248181402683258,
-0.1347602903842926,
0.26778101921081543,
-0.3485304117202759,
-0.13942040503025055,
0.27243557572364807,
0.06985154747962952,
-0.04144793748855591,
0.26830434799194336,
-0.40000468492507935,
0.09639005362987518,
0.582056999206543,
-0.18216729164123535,
0.3664323091506958,
0.3113207221031189,
-0.18424144387245178,
-0.3967318534851074,
-0.13906075060367584,
0.3455356955528259,
-0.08557432889938354,
-0.020813457667827606,
-0.03436955809593201,
0.024370089173316956,
-0.05822179839015007,
0.28588029742240906,
-0.03354348987340927,
0.21493396162986755,
-0.1570042371749878,
0.19005969166755676,
0.46251001954078674,
-0.03948720917105675,
-0.5458710193634033,
0.10020698606967926,
0.20192481577396393,
-0.17775829136371613,
0.17420727014541626,
0.008128829300403595,
0.09090302884578705,
-0.1267574429512024,
-0.11230533570051193,
0.3109276294708252,
0.14371588826179504,
0.22104164958000183,
0.12055866420269012,
0.08345826715230942,
0.020955979824066162,
-0.10795591026544571,
0.0776224136352539,
0.34903454780578613,
0.3411441743373871,
-0.2767300307750702,
0.13310416042804718,
-0.25447359681129456,
0.21850581467151642,
0.42600518465042114,
0.07472512125968933,
-0.14569401741027832,
-0.026889881119132042,
-0.07905224710702896,
-0.49021488428115845,
0.29716846346855164,
-0.16276851296424866,
-0.45365846157073975,
0.1062266007065773,
-0.4373445510864258,
0.03761874884366989,
-0.34692639112472534,
-0.19416405260562897,
-0.022837135940790176,
0.10047085583209991,
0.024615390226244926,
0.03707987815141678,
-0.3169475793838501,
0.13272453844547272,
0.47637930512428284,
0.24243757128715515,
-0.009325742721557617,
-0.07069844007492065,
0.10997754335403442,
-0.08905142545700073,
-0.0683470219373703,
-0.25530487298965454,
-0.08746136724948883,
0.25828108191490173,
-0.01277298666536808,
-0.25271567702293396,
0.2583007216453552,
0.12204398214817047,
0.043248388916254044,
-0.038616523146629333,
0.2850625514984131,
0.026318570598959923,
0.106776162981987,
0.03340178728103638,
-0.264730304479599,
-0.08487392961978912,
-0.13508538901805878,
-0.2590283155441284,
0.33485719561576843,
-0.05610450357198715,
-0.09973956644535065,
-0.19693425297737122,
0.15802153944969177,
0.17150557041168213,
-0.028749041259288788,
-0.0890951082110405,
-0.18044859170913696,
-0.019694577902555466,
0.14615653455257416,
0.4113466739654541,
0.1597364842891693,
0.07700295001268387,
-0.006258334964513779,
0.33783334493637085,
0.15220335125923157,
0.1228649914264679,
-0.05160317197442055,
-0.03564339503645897,
0.09733337163925171,
0.18139433860778809,
0.4060631990432739,
0.23975984752178192,
0.03904405236244202,
0.371491938829422,
-0.21523918211460114,
0.28868982195854187,
-0.17118021845817566,
-0.033736228942871094,
-0.11910855770111084,
-0.02796461619436741,
-0.0900123342871666,
-0.12637437880039215,
-0.03206024318933487,
-0.0565786175429821,
0.29186663031578064,
0.12021060287952423,
0.09077899903059006,
-0.31210798025131226,
-0.10801224410533905,
-0.21185246109962463,
-0.214595228433609,
0.2602290213108063,
-0.025187654420733452,
-0.5517679452896118,
-0.04754731431603432,
-0.17020758986473083,
0.15399552881717682,
0.012137196958065033,
0.18693289160728455,
-0.32036545872688293,
0.19473695755004883,
-0.07455570995807648,
-0.12966077029705048,
-0.2249746322631836,
0.23782265186309814,
0.08942818641662598,
0.04610033333301544,
0.3092411756515503,
-0.635391891002655,
0.17016813158988953,
-0.019093357026576996,
0.2957184910774231,
-0.3063872456550598,
0.05945548415184021,
-0.1494600772857666,
0.005105474963784218,
0.1052006185054779,
-0.5079742074012756,
0.08962596952915192,
-0.16390740871429443,
0.014955516904592514,
-0.17651265859603882,
-0.1853562295436859,
-0.2112884223461151,
-0.04080440104007721,
-0.013154271990060806,
-0.005391772836446762,
-0.2753223776817322,
-0.07769221812486649,
-0.09433823823928833,
-0.11514643579721451,
0.405174195766449,
0.11053404957056046,
0.2217613160610199,
0.012044217437505722,
-0.3030835688114166,
-0.3747802674770355,
-0.24461570382118225,
0.2633526027202606,
-0.36764079332351685,
-0.6070090532302856,
0.3593267798423767,
-0.4767056107521057,
-0.34569209814071655,
0.04336664080619812,
0.13311977684497833,
0.09917229413986206,
0.42971357703208923,
-0.004110075533390045,
-0.02115502953529358,
-0.22804975509643555,
0.22101615369319916,
-0.19640356302261353,
0.11390040069818497,
0.03188648074865341,
0.0017943717539310455,
0.1376153528690338,
-0.034489598125219345,
-0.10622268915176392,
0.04729977995157242,
0.006584864109754562,
-0.2572192847728729,
0.11314897239208221,
0.03605039790272713,
0.16075733304023743,
0.7411163449287415,
0.43887144327163696,
0.3008577227592468,
0.33247077465057373,
0.31142565608024597,
0.665005087852478,
0.09719467163085938,
-0.11344452947378159,
0.1356719732284546,
-0.031731054186820984,
-0.10317767411470413,
0.06249900534749031,
0.02724219113588333,
-0.22289255261421204,
-0.0018457770347595215,
0.06449874490499496,
-0.2801898717880249,
-0.3881298899650574,
-0.27470648288726807,
-0.3506072163581848,
0.18380054831504822,
0.11023211479187012,
0.08564406633377075,
-0.22238264977931976,
-0.21600103378295898,
0.01056845486164093,
0.3464002013206482,
0.24701657891273499,
0.22854892909526825,
-0.3671296238899231,
-0.019349578768014908,
-0.2943579852581024,
0.37421339750289917,
0.022745035588741302,
0.4750358760356903,
-0.22462372481822968,
0.21389257907867432,
0.1289340853691101,
0.33772727847099304,
0.33862826228141785,
-0.4378316402435303,
0.2274724692106247,
-0.05677587538957596,
0.2345617115497589,
0.41985204815864563,
-0.2332417517900467,
0.4352370500564575,
0.47182732820510864,
0.002042580395936966,
0.14080749452114105,
0.15493768453598022,
-0.1456117331981659,
-0.4588286578655243,
-0.19672566652297974,
-0.10025238990783691,
-0.15991440415382385,
0.14191681146621704,
0.21065926551818848,
-0.03961768373847008,
-0.0229199081659317,
0.2928187847137451,
-0.3281131386756897,
-0.11986920982599258,
-0.030273091048002243,
-0.18947456777095795,
0.18527613580226898,
0.10966809093952179,
-0.030438050627708435,
0.3070516884326935,
0.08747150003910065,
0.03221443295478821,
0.39323288202285767,
0.023763319477438927,
0.10954920947551727,
0.35670673847198486,
-0.22566327452659607,
0.3106735944747925,
-0.1641494333744049,
-0.21359074115753174,
0.3364751935005188,
-0.042443178594112396,
-0.3806392252445221,
-0.1152464896440506,
0.10904660075902939,
-0.18746425211429596,
-0.23661863803863525,
-0.0766056552529335,
-0.12061216682195663,
0.028881128877401352,
-0.27136409282684326,
-0.6071838140487671,
0.24860644340515137,
0.6297311782836914,
-0.32286983728408813,
0.2944398820400238,
-0.30779382586479187,
-0.346280574798584,
0.0473274290561676,
0.09541141986846924,
0.6720282435417175,
-0.20862393081188202,
0.31010615825653076,
-0.4427044093608856,
0.08982396125793457,
0.030825935304164886,
-0.4978623390197754,
0.11848306655883789,
-0.40835970640182495,
-0.4058102071285248,
-0.15482939779758453,
-0.10489438474178314,
0.0994061753153801,
0.43950188159942627,
0.028824254870414734,
0.1583293229341507,
-0.09289321303367615,
-0.027311353012919426,
-0.17797860503196716,
-0.16550515592098236,
-0.18108540773391724,
-0.3043155372142792,
0.3318409025669098,
0.13568027317523956,
-0.2932877242565155,
0.06253866851329803,
-0.03697919100522995,
0.02404700219631195,
-0.1608583927154541,
0.22992542386054993,
-0.2978423237800598,
0.026766225695610046,
-0.5783840417861938,
0.0810304582118988,
-0.2023809552192688,
-0.037169501185417175,
0.14416426420211792,
0.3316226005554199,
0.3499903976917267,
0.31777697801589966,
-0.006427946500480175,
0.027927592396736145,
0.3296208083629608,
0.15193043649196625,
-0.2706284821033478,
0.04943938925862312,
0.23874147236347198,
0.17179179191589355,
0.09231097996234894,
-0.27419400215148926,
-0.16872811317443848,
-0.28621822595596313,
-0.34047240018844604,
0.24411670863628387,
-0.0152167659252882,
-0.1859954297542572,
-0.002658240497112274,
-0.05527883768081665,
0.0938522145152092,
0.03968622535467148,
0.09528672695159912,
0.4472770690917969,
-0.019148143008351326,
0.5354318022727966,
-0.34225738048553467,
-0.2824053466320038,
0.04968657344579697,
0.5333956480026245,
-0.010320063680410385,
-0.231368288397789,
0.12325942516326904,
-0.36688828468322754,
-0.2851037383079529,
-0.16423574090003967,
0.2133498191833496,
0.07579860091209412,
-0.08060704171657562,
-0.07032787799835205,
-0.0012590326368808746,
-0.031780943274497986,
0.22647741436958313,
-0.48639073967933655,
0.06760679185390472,
0.15585798025131226,
0.17845584452152252,
-0.37884223461151123,
-0.416593074798584,
-0.2663297653198242,
-0.40019744634628296,
0.2526359260082245,
0.2241729497909546,
-0.5527942776679993,
0.13620609045028687,
0.10731596499681473,
-0.21616214513778687,
-0.21276727318763733,
0.04592905193567276,
0.10709334909915924,
0.21278810501098633,
0.05317205190658569,
-0.13369086384773254,
-0.20462338626384735,
-0.0729883685708046,
-0.014484823681414127,
-0.0733053982257843,
-0.20269732177257538,
-0.024058297276496887,
0.13688839972019196,
0.20042601227760315,
-0.276581734418869,
0.09283751249313354,
-0.4106261134147644,
-0.12571924924850464,
-0.44054079055786133,
0.015069440007209778,
0.23301836848258972,
0.2287781983613968,
0.39062678813934326,
0.17725518345832825,
-0.03442005068063736,
-0.1514306366443634,
0.15404260158538818,
-0.10499034821987152,
-0.22961929440498352,
-0.20433661341667175,
0.24281474947929382,
-0.2428244650363922,
-0.04971455782651901,
0.0680813193321228,
-0.07699939608573914,
0.10460314154624939,
0.07888322323560715,
0.03050333447754383,
-0.04535532742738724,
0.019006922841072083,
0.253447562456131,
0.27146244049072266,
-0.0059419311583042145,
-0.097411148250103,
0.07275158911943436,
0.36550599336624146,
0.10998639464378357,
0.07624159753322601,
-0.28454601764678955,
0.4150998890399933,
-0.08765116333961487,
0.09153537452220917,
0.3425656259059906,
0.26782718300819397,
-0.23539549112319946,
0.14936982095241547,
-0.09801873564720154,
0.0692608505487442,
-0.3902861475944519,
0.44815289974212646,
-0.02402811497449875,
0.1472289264202118,
0.05745462328195572,
0.4231707453727722,
0.2290755957365036,
0.04661189392209053,
0.4067044258117676,
0.24815602600574493,
0.2605166733264923,
0.33970534801483154,
-0.3458601236343384,
0.12767858803272247,
-0.7042195200920105,
0.12755966186523438,
-0.0197526216506958,
0.0561295747756958,
0.2758682072162628,
0.07587273418903351,
0.04238242283463478,
-0.01435886137187481,
-0.31971871852874756,
-0.01801196113228798,
-0.12879635393619537,
-0.14074352383613586,
-0.11641550809144974,
0.11532838642597198,
0.11066083610057831,
0.10543709993362427,
-0.2872699499130249,
-0.13925296068191528,
-0.21335162222385406,
0.1835162341594696,
0.1980626881122589,
0.04489588737487793,
0.30905231833457947,
0.07020319998264313,
0.1536201685667038,
0.010562874376773834,
-0.15876765549182892,
-0.05056096613407135,
-0.49937698245048523,
-0.15934808552265167,
0.14925166964530945,
0.08371593803167343,
0.024594305083155632,
0.10813552141189575,
0.14143216609954834,
0.15919990837574005,
0.2794610261917114,
0.06849159300327301,
-0.27625203132629395,
0.3350646495819092,
-0.10864529013633728,
-0.3857882022857666,
0.07748274505138397,
0.028965897858142853,
-0.053108811378479004,
0.006076931022107601,
-0.18144965171813965,
0.04735630005598068,
0.045956917107105255,
-0.08644597232341766,
-0.1857287436723709,
-0.4063054919242859,
0.12038038671016693,
0.020774420350790024,
0.1491139531135559,
0.04567157104611397,
0.5845215916633606,
0.03634690120816231,
0.18517160415649414,
-0.48936188220977783,
0.041437409818172455,
0.39163917303085327,
0.25771692395210266,
0.37249860167503357,
-0.045926161110401154,
-0.048546239733695984,
0.03061959147453308,
-0.4142841398715973,
0.10012243688106537,
0.1623341143131256,
0.4591630697250366,
-0.05316433310508728,
-0.1715993881225586,
0.09715168178081512,
-0.09358803927898407,
0.6016916632652283,
-0.24670104682445526,
0.32618972659111023,
0.33336326479911804,
-0.2155640721321106,
-0.3029915988445282,
0.13789165019989014,
-0.06600011885166168,
0.0854799747467041,
-0.35162362456321716,
0.26462656259536743,
0.14755140244960785,
0.06463228166103363,
-0.11059947311878204,
-0.204422265291214,
0.22349268198013306,
0.4779511094093323,
0.4655924439430237,
0.23241451382637024,
-0.007799733430147171,
-0.0009461194276809692,
0.4317924380302429,
-0.37452489137649536,
0.12435783445835114,
-0.1657429337501526,
-0.09362972527742386,
-0.20614856481552124,
0.05637037754058838,
-0.6334996223449707,
-0.14521022140979767,
-0.3863382339477539,
0.01962202787399292,
-0.11994852870702744,
0.24215087294578552,
0.06491312384605408,
0.020603716373443604,
-0.14336684346199036,
0.03325833007693291,
0.29961541295051575,
0.22860005497932434,
-0.1448933482170105,
0.37797898054122925,
-0.4137221872806549,
-0.10177532583475113,
0.28888559341430664,
-0.27195703983306885,
-0.20223820209503174,
-0.06339399516582489,
0.3643737733364105,
0.1807681769132614,
-0.20051820576190948,
0.06393887102603912,
0.08666543662548065,
0.3763284385204315,
-0.3834570646286011,
-0.0845932587981224,
0.03433272987604141,
-0.3514174818992615,
0.06721356511116028,
-0.13584427535533905,
0.5006893873214722,
0.029812030494213104,
-0.2390041947364807,
0.04794763773679733,
-0.22294822335243225
] |
https://github.com/huggingface/datasets/issues/2065 | > This way you just need to set the permissions once after doing load_dataset for example, and then all the new transformed cached files will have the same permissions.
I was referring to this. Ensuring that newly generated `cache_files` have the same permissions | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 43 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
> This way you just need to set the permissions once after doing load_dataset for example, and then all the new transformed cached files will have the same permissions.
I was referring to this. Ensuring that newly generated `cache_files` have the same permissions | [
-0.16499444842338562,
0.25044748187065125,
-0.13118040561676025,
0.0018536122515797615,
0.016402913257479668,
0.0696859136223793,
0.3859354257583618,
0.20129236578941345,
-0.24317559599876404,
-0.02685270458459854,
-0.083243228495121,
0.031755901873111725,
0.008832518011331558,
-0.20328444242477417,
-0.05662260577082634,
0.12449296563863754,
0.22513799369335175,
0.1058565154671669,
-0.04691276326775551,
-0.07590369880199432,
-0.10049773752689362,
-0.15619948506355286,
0.002028912305831909,
-0.13827484846115112,
-0.28030693531036377,
-0.13936646282672882,
0.25090086460113525,
0.1854487806558609,
0.024344351142644882,
-0.15512943267822266,
0.2401854395866394,
0.5586880445480347,
0.11958841979503632,
0.12781253457069397,
-0.00010850897524505854,
-0.15338779985904694,
-0.055117763578891754,
-0.08041156828403473,
0.027140241116285324,
0.1929071843624115,
-0.07473508268594742,
-0.19690841436386108,
-0.19173073768615723,
-0.1530253142118454,
-0.1357583999633789,
0.15548722445964813,
0.10049745440483093,
-0.6505796313285828,
0.5274168848991394,
0.1168164610862732,
0.21939781308174133,
-0.20994606614112854,
-0.38441941142082214,
0.03810962289571762,
0.22510293126106262,
0.047984715551137924,
-0.16841135919094086,
0.12000095099210739,
0.2247462421655655,
-0.11875881254673004,
-0.04395507276058197,
0.1332411766052246,
-0.30487149953842163,
0.10426659882068634,
0.20586110651493073,
-0.1382555067539215,
-0.24433401226997375,
-0.556390643119812,
0.0469927117228508,
0.08757743239402771,
0.626438558101654,
-0.09978556632995605,
-0.5162679553031921,
-0.24567458033561707,
0.10344880074262619,
0.14922967553138733,
0.29830247163772583,
0.304720938205719,
0.05446990206837654,
0.2399948090314865,
-0.5317007899284363,
-0.0625440776348114,
-0.1593407392501831,
-0.05855783820152283,
0.2357819676399231,
-0.10489575564861298,
0.008251797407865524,
0.023669956251978874,
0.020711403340101242,
-0.07963115721940994,
0.17986677587032318,
0.18958450853824615,
-0.40093234181404114,
0.3293810188770294,
-0.20592854917049408,
0.05832921713590622,
-0.22781305015087128,
0.4405929148197174,
0.24914240837097168,
0.3186536729335785,
0.1585351973772049,
0.20333173871040344,
0.07824069261550903,
0.13837601244449615,
-0.10317287594079971,
0.25676026940345764,
0.308361679315567,
0.3042285442352295,
0.5483264923095703,
-0.37301427125930786,
-0.22165018320083618,
0.03263263404369354,
0.03258335217833519,
-0.36786410212516785,
0.09040017426013947,
0.30389273166656494,
0.09474030137062073,
-0.17617185413837433,
0.21369792520999908,
0.10219883918762207,
-0.004824310541152954,
-0.23515364527702332,
-0.042187124490737915,
0.23202843964099884,
0.154597669839859,
-0.05397588387131691,
0.045296043157577515,
0.15120229125022888,
-0.04800548031926155,
-0.3640183210372925,
-0.010202212259173393,
-0.3659338355064392,
-0.39534634351730347,
0.4914129078388214,
0.49197670817375183,
-0.15804319083690643,
-0.031215954571962357,
0.28635913133621216,
0.18924839794635773,
-0.17330461740493774,
0.29453742504119873,
0.009413357824087143,
0.4202328324317932,
0.2606204152107239,
0.1965857446193695,
0.2976064085960388,
0.051644302904605865,
0.02674918621778488,
-0.07834358513355255,
0.32221728563308716,
-0.3108763098716736,
-0.10915535688400269,
0.27799928188323975,
0.09381435811519623,
-0.047620393335819244,
0.29097890853881836,
-0.3671759366989136,
0.0775538980960846,
0.5478352308273315,
-0.16281211376190186,
0.36836814880371094,
0.25728556513786316,
-0.09550128877162933,
-0.3553992807865143,
-0.1884084939956665,
0.390755295753479,
-0.02818896621465683,
-0.023180492222309113,
0.006879918277263641,
-0.0012330617755651474,
-0.10358461737632751,
0.2831074297428131,
-0.06478192657232285,
0.12355941534042358,
-0.13713645935058594,
0.1607356071472168,
0.4129779040813446,
0.016718387603759766,
-0.48963579535484314,
0.11583992838859558,
0.154693603515625,
-0.11525225639343262,
0.22078639268875122,
0.009418878704309464,
0.1001005619764328,
-0.1719110757112503,
-0.16121040284633636,
0.32146531343460083,
0.21989805996418,
0.2970987856388092,
0.07045090198516846,
0.07795111835002899,
0.06670236587524414,
-0.18115565180778503,
0.0924614667892456,
0.41824689507484436,
0.29406115412712097,
-0.22950716316699982,
0.13120171427726746,
-0.399558961391449,
0.25766420364379883,
0.35492315888404846,
0.05610378086566925,
-0.13883662223815918,
-0.02278711460530758,
0.015193827450275421,
-0.4653152525424957,
0.27691560983657837,
-0.2263014018535614,
-0.3846690356731415,
0.10977153480052948,
-0.46397852897644043,
0.05450624227523804,
-0.3579556941986084,
-0.18131668865680695,
-0.07143278419971466,
0.1170312687754631,
-0.0007735081017017365,
0.008554592728614807,
-0.33084654808044434,
0.14233195781707764,
0.47583574056625366,
0.21525657176971436,
0.010602764785289764,
-0.1697905957698822,
0.08890695124864578,
-0.0840100571513176,
-0.05511406064033508,
-0.23125594854354858,
-0.03182912617921829,
0.34137794375419617,
-0.0363168939948082,
-0.2875852882862091,
0.24205061793327332,
0.07106143236160278,
0.10216336697340012,
-0.08458798378705978,
0.26789209246635437,
0.03634938597679138,
0.12628500163555145,
0.11690749228000641,
-0.3277265727519989,
-0.1060258150100708,
-0.10146233439445496,
-0.17382760345935822,
0.37571021914482117,
-0.09455503523349762,
-0.05563813075423241,
-0.2235655039548874,
0.15332171320915222,
0.14442676305770874,
-0.06400308012962341,
-0.12711986899375916,
-0.16572260856628418,
-0.01890266314148903,
0.1657901406288147,
0.3277018964290619,
0.21675197780132294,
0.1122765839099884,
0.12250808626413345,
0.2859783470630646,
0.17968353629112244,
0.032764676958322525,
-0.016851117834448814,
-0.024493470788002014,
0.10011107474565506,
0.14474733173847198,
0.43725278973579407,
0.26202085614204407,
0.05756891518831253,
0.2727527320384979,
-0.13112421333789825,
0.31543534994125366,
-0.18056130409240723,
-0.008116744458675385,
-0.16011691093444824,
0.05200543999671936,
-0.06723491847515106,
-0.1780882328748703,
-0.01271284930408001,
-0.04668700322508812,
0.2545970380306244,
0.16357359290122986,
0.0634751245379448,
-0.3407387137413025,
-0.08512430638074875,
-0.2208598554134369,
-0.16829589009284973,
0.22486042976379395,
-0.06772921979427338,
-0.5411044359207153,
-0.000461723655462265,
-0.16864296793937683,
0.15752443671226501,
-0.016700349748134613,
0.2290777713060379,
-0.2502933144569397,
0.23094239830970764,
-0.05176759511232376,
-0.10686387866735458,
-0.2852393090724945,
0.19040796160697937,
0.03187793865799904,
0.039156410843133926,
0.26481959223747253,
-0.6819692254066467,
0.10821688175201416,
-0.0498187318444252,
0.3214024305343628,
-0.33624976873397827,
-0.006585322320461273,
-0.19647946953773499,
-0.031205998733639717,
0.09321039915084839,
-0.5233697295188904,
0.11066766828298569,
-0.09998882561922073,
-0.0006880499422550201,
-0.1943659484386444,
-0.2517958879470825,
-0.20661257207393646,
-0.005507133901119232,
-0.03496948629617691,
-0.053420983254909515,
-0.29058200120925903,
-0.15118518471717834,
-0.06140686571598053,
-0.14313030242919922,
0.43354129791259766,
0.08511152863502502,
0.22980472445487976,
0.08961650729179382,
-0.25781095027923584,
-0.48100221157073975,
-0.16152790188789368,
0.32981884479522705,
-0.4195418357849121,
-0.5174459218978882,
0.32482200860977173,
-0.5282971858978271,
-0.3527768850326538,
0.023585617542266846,
0.10813549160957336,
0.09741440415382385,
0.5158910751342773,
0.011687561869621277,
-0.04205711930990219,
-0.1728508472442627,
0.2145499438047409,
-0.2988649308681488,
0.09960372000932693,
0.026134300976991653,
0.06068979576230049,
0.09768068790435791,
-0.048699285835027695,
-0.12227102369070053,
0.04620787128806114,
-0.03574732691049576,
-0.2109105885028839,
0.07056793570518494,
0.015197142958641052,
0.15743470191955566,
0.6721855401992798,
0.3958400785923004,
0.27181485295295715,
0.2819131016731262,
0.2598072290420532,
0.6446481943130493,
0.09285837411880493,
-0.11205138266086578,
0.09377661347389221,
-0.043490931391716,
-0.11485103517770767,
-0.007651191204786301,
-0.013473802246153355,
-0.21596714854240417,
0.014853179454803467,
0.061509788036346436,
-0.2859519422054291,
-0.4133949279785156,
-0.18908368051052094,
-0.39305809140205383,
0.2043076902627945,
0.1477510929107666,
0.11174313724040985,
-0.20246727764606476,
-0.1891779750585556,
0.017770037055015564,
0.3212447762489319,
0.25250038504600525,
0.20857912302017212,
-0.3571208119392395,
-0.03252866864204407,
-0.2535927891731262,
0.3859597444534302,
-0.04132724553346634,
0.4713115692138672,
-0.19285500049591064,
0.06167084723711014,
0.1350407898426056,
0.34209004044532776,
0.43316739797592163,
-0.37255528569221497,
0.17922279238700867,
-0.056719567626714706,
0.22478431463241577,
0.3942972421646118,
-0.3113519251346588,
0.46752214431762695,
0.38808414340019226,
-0.0016573034226894379,
0.17092213034629822,
0.10481369495391846,
-0.13306593894958496,
-0.41717877984046936,
-0.20210638642311096,
-0.1294092833995819,
-0.14666324853897095,
0.10253123939037323,
0.23653128743171692,
-0.11272189021110535,
-0.04776744917035103,
0.20651698112487793,
-0.3365299701690674,
-0.2709624469280243,
0.005046568810939789,
-0.2208547294139862,
0.16279040277004242,
0.10109995305538177,
0.01723465695977211,
0.3342779874801636,
0.1163223385810852,
0.03957150876522064,
0.39236441254615784,
0.02802494540810585,
0.04752217233181,
0.34743404388427734,
-0.24918319284915924,
0.3688555657863617,
-0.22018644213676453,
-0.20185576379299164,
0.2742724120616913,
0.04194922745227814,
-0.38010990619659424,
-0.13464263081550598,
0.09521517157554626,
-0.146284818649292,
-0.3152120113372803,
-0.09260179102420807,
-0.1412157416343689,
-0.050810299813747406,
-0.24012872576713562,
-0.6445431709289551,
0.21525640785694122,
0.5688727498054504,
-0.34299445152282715,
0.22127500176429749,
-0.33525484800338745,
-0.3594669699668884,
0.11606772989034653,
0.12925322353839874,
0.7586538791656494,
-0.17006242275238037,
0.33388179540634155,
-0.367000937461853,
0.12707959115505219,
0.02353774756193161,
-0.4897475242614746,
0.0970180332660675,
-0.4280509948730469,
-0.35200387239456177,
-0.13495467603206635,
-0.14236484467983246,
0.03065684251487255,
0.43547651171684265,
-0.012136034667491913,
0.10666267573833466,
-0.10661587864160538,
-0.09492743015289307,
-0.2107931673526764,
-0.16999466717243195,
-0.2021683305501938,
-0.31528255343437195,
0.28599095344543457,
0.15210029482841492,
-0.31861111521720886,
0.07003355026245117,
-0.0612330362200737,
-0.031659238040447235,
-0.13536754250526428,
0.2244107574224472,
-0.21813812851905823,
0.07599890232086182,
-0.5058141946792603,
0.09524105489253998,
-0.180623397231102,
-0.06956513971090317,
0.113644078373909,
0.26440873742103577,
0.29614531993865967,
0.2816789746284485,
0.019024556502699852,
0.040675822645425797,
0.3031317889690399,
0.22017338871955872,
-0.25031664967536926,
-0.02569250762462616,
0.3489372134208679,
0.19680066406726837,
0.09932421147823334,
-0.3126577138900757,
-0.12626411020755768,
-0.21249553561210632,
-0.3996909558773041,
0.18700890243053436,
0.0007018726319074631,
-0.28625550866127014,
0.09420159459114075,
0.05129139870405197,
0.06472772359848022,
0.07653629779815674,
0.1084606945514679,
0.39290496706962585,
-0.08629593998193741,
0.5915558934211731,
-0.2861960232257843,
-0.3366982042789459,
0.07604365050792694,
0.5156174898147583,
-0.0015925690531730652,
-0.26483145356178284,
0.14391493797302246,
-0.3756623864173889,
-0.24304021894931793,
-0.16842123866081238,
0.18517765402793884,
0.08967761695384979,
-0.19361692667007446,
-0.005899157375097275,
0.06442061066627502,
-0.027755409479141235,
0.24190863966941833,
-0.48683562874794006,
0.07666901499032974,
0.1860865205526352,
0.20712481439113617,
-0.3204560875892639,
-0.35785311460494995,
-0.2923526465892792,
-0.3840436041355133,
0.28025367856025696,
0.24928899109363556,
-0.4645659625530243,
0.10486806184053421,
0.13954338431358337,
-0.2441071718931198,
-0.19160917401313782,
0.12409348040819168,
0.15810298919677734,
0.19496282935142517,
-0.0215589739382267,
-0.1759289801120758,
-0.20685476064682007,
-0.06861600279808044,
0.028729993849992752,
-0.06469607353210449,
-0.19900141656398773,
-0.10469404608011246,
0.11341792345046997,
0.1913425773382187,
-0.24480412900447845,
0.03402429074048996,
-0.37470513582229614,
-0.09023663401603699,
-0.41593313217163086,
0.04883008450269699,
0.24459698796272278,
0.16551896929740906,
0.3717601001262665,
0.16951128840446472,
0.004058875143527985,
-0.14805707335472107,
0.1289694905281067,
-0.13618165254592896,
-0.17486967146396637,
-0.1619591861963272,
0.24600423872470856,
-0.3091620206832886,
-0.03885991871356964,
-0.03129506856203079,
-0.08945445716381073,
0.16389745473861694,
0.11824079602956772,
0.0839182585477829,
0.00650474289432168,
-0.009380519390106201,
0.16490180790424347,
0.2747570872306824,
0.09075194597244263,
-0.13948480784893036,
0.016191132366657257,
0.37323740124702454,
0.13462217152118683,
0.09576446563005447,
-0.25773152709007263,
0.32113397121429443,
-0.15775617957115173,
0.009506218135356903,
0.36660000681877136,
0.3107985854148865,
-0.27816349267959595,
0.12290096282958984,
-0.08181696385145187,
0.07879971712827682,
-0.38408607244491577,
0.4889892339706421,
-0.06067671626806259,
0.09781892597675323,
0.0288362018764019,
0.4561580717563629,
0.2342555820941925,
0.012876879423856735,
0.3948360085487366,
0.19139233231544495,
0.28034549951553345,
0.3155326247215271,
-0.2956945300102234,
0.09327059984207153,
-0.6603908538818359,
0.12708209455013275,
-0.013350069522857666,
0.035137273371219635,
0.31754499673843384,
0.047076426446437836,
0.030849667266011238,
0.0010083355009555817,
-0.3721480071544647,
-0.035787444561719894,
-0.028816774487495422,
-0.12937858700752258,
-0.11129492521286011,
0.11160171031951904,
0.09496833384037018,
0.06348298490047455,
-0.2576338052749634,
-0.11629317700862885,
-0.17332711815834045,
0.2095678597688675,
0.3084498643875122,
0.060620587319135666,
0.24291878938674927,
0.03436249867081642,
0.16613666713237762,
0.06296418607234955,
-0.1984056532382965,
-0.05869550257921219,
-0.42291930317878723,
-0.1399528533220291,
0.2167058140039444,
0.06524896621704102,
0.07712413370609283,
0.17806629836559296,
0.15263573825359344,
0.20932364463806152,
0.29923105239868164,
0.10385660082101822,
-0.23057882487773895,
0.3860930800437927,
-0.06367012858390808,
-0.2987655997276306,
-0.009125892072916031,
0.041053980588912964,
-0.06762227416038513,
-0.013878230936825275,
-0.20730897784233093,
0.024930693209171295,
0.09936787188053131,
0.0009107030928134918,
-0.004615192301571369,
-0.39062806963920593,
0.027903161942958832,
-0.025914300233125687,
0.12537097930908203,
0.08215314894914627,
0.6104058623313904,
0.030668679624795914,
0.18541717529296875,
-0.5288828015327454,
0.0689343512058258,
0.5035284757614136,
0.31435713171958923,
0.329222172498703,
-0.13998408615589142,
-0.07386031746864319,
0.05771394073963165,
-0.38139915466308594,
0.10410387814044952,
0.2445230931043625,
0.4890329837799072,
-0.07097899913787842,
-0.11973414570093155,
0.0386081226170063,
-0.13649508357048035,
0.5329036116600037,
-0.3225669860839844,
0.2944772243499756,
0.3345530033111572,
-0.23734308779239655,
-0.2263546586036682,
0.16481882333755493,
-0.04111345112323761,
0.10476493835449219,
-0.2933596968650818,
0.27889883518218994,
0.2183084934949875,
0.07906989753246307,
-0.10363544523715973,
-0.17700029909610748,
0.236423060297966,
0.49155938625335693,
0.5217709541320801,
0.29911360144615173,
-0.06436437368392944,
0.027417749166488647,
0.4217228293418884,
-0.474216490983963,
0.059478018432855606,
-0.19547338783740997,
-0.10818494856357574,
-0.12176106870174408,
-0.05821869894862175,
-0.5593053102493286,
-0.14126041531562805,
-0.4380933344364166,
0.009638801217079163,
-0.081770159304142,
0.25507083535194397,
-0.011718466877937317,
0.023389816284179688,
-0.09026885032653809,
0.033453602343797684,
0.2685428261756897,
0.3378418982028961,
-0.11839200556278229,
0.4349151849746704,
-0.4485856592655182,
-0.18201203644275665,
0.32861045002937317,
-0.29225924611091614,
-0.23849819600582123,
-0.006625808775424957,
0.40368545055389404,
0.11225427687168121,
-0.2181578278541565,
0.0144234299659729,
0.12851998209953308,
0.3536311686038971,
-0.38262712955474854,
-0.02026453986763954,
0.11703997850418091,
-0.3663054406642914,
0.030218616127967834,
-0.1388583779335022,
0.44822511076927185,
0.006810391321778297,
-0.22192338109016418,
0.04918983578681946,
-0.23702764511108398
] |
https://github.com/huggingface/datasets/issues/2065 | Yes exactly
I imagine users can first do `load_dataset`, then chmod on the arrow files. After that all the new cache files could have the same permissions as the first arrow files. Opinions on this ? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 36 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Yes exactly
I imagine users can first do `load_dataset`, then chmod on the arrow files. After that all the new cache files could have the same permissions as the first arrow files. Opinions on this ? | [
-0.09823165088891983,
0.26637938618659973,
-0.12864354252815247,
0.08532819151878357,
-0.13202017545700073,
0.04467375576496124,
0.33241719007492065,
0.1185307502746582,
-0.235688716173172,
-0.06214785575866699,
-0.09892112016677856,
0.037031278014183044,
0.01958230882883072,
-0.2461385428905487,
-0.08055931329727173,
0.08728236705064774,
0.12276186794042587,
0.10728462040424347,
-0.033250611275434494,
-0.0952981486916542,
-0.02402765303850174,
-0.17155809700489044,
-0.03518162667751312,
-0.03326764330267906,
-0.1896342933177948,
-0.22902677953243256,
0.2739095389842987,
0.21339210867881775,
0.030915863811969757,
-0.2010473906993866,
0.23493307828903198,
0.5016703605651855,
0.10135552287101746,
0.20108337700366974,
-0.00011473565973574296,
-0.2658907175064087,
0.033873990178108215,
-0.05756399780511856,
0.007843676954507828,
0.26694655418395996,
-0.11617320775985718,
-0.2100122570991516,
-0.07042770087718964,
-0.13357171416282654,
0.03652327507734299,
0.0545724555850029,
0.09103567153215408,
-0.7105928659439087,
0.5204789042472839,
0.01227566972374916,
0.17917272448539734,
-0.19389164447784424,
-0.40238669514656067,
0.08328621089458466,
0.2860993444919586,
0.043065834790468216,
-0.1606018841266632,
0.17302824556827545,
0.31031009554862976,
-0.13610884547233582,
-0.052434977144002914,
0.1056954562664032,
-0.2200271487236023,
0.09869500994682312,
0.22578898072242737,
-0.17043368518352509,
-0.26361677050590515,
-0.45948198437690735,
0.075937919318676,
0.1365864872932434,
0.826653778553009,
-0.1198405772447586,
-0.4820730686187744,
-0.26380953192710876,
0.07331359386444092,
0.198356032371521,
0.29364416003227234,
0.3246239125728607,
0.0016633272171020508,
0.20019102096557617,
-0.35822930932044983,
-0.12227827310562134,
-0.19945046305656433,
-0.023381363600492477,
0.24687132239341736,
-0.14065289497375488,
-0.050077248364686966,
0.05355243384838104,
0.024977348744869232,
-0.08493559062480927,
0.26744717359542847,
0.09495390951633453,
-0.3414619266986847,
0.38008368015289307,
-0.18539905548095703,
0.09960804879665375,
-0.2771459221839905,
0.4416388273239136,
0.18489879369735718,
0.36710017919540405,
0.3062278628349304,
0.2615470886230469,
0.020835794508457184,
0.19107602536678314,
0.014087963849306107,
0.23006010055541992,
0.32321104407310486,
0.3352377712726593,
0.49782299995422363,
-0.4137336015701294,
-0.12702782452106476,
0.06572657823562622,
-0.06331109255552292,
-0.41951629519462585,
0.04750677943229675,
0.2454414814710617,
-0.027808815240859985,
-0.20976115763187408,
0.222966730594635,
0.13239288330078125,
-0.060598284006118774,
-0.2762773633003235,
0.027137286961078644,
0.303921639919281,
0.09225509315729141,
0.012481020763516426,
-0.026843678206205368,
0.15328919887542725,
0.0331941694021225,
-0.37982192635536194,
0.03376525640487671,
-0.3871086537837982,
-0.42007195949554443,
0.49298733472824097,
0.40442705154418945,
-0.1765279769897461,
-0.03310501575469971,
0.208552747964859,
0.24250495433807373,
-0.16365648806095123,
0.3366352915763855,
-0.04259147122502327,
0.37923020124435425,
0.28638553619384766,
0.17989522218704224,
0.36343276500701904,
0.01983208954334259,
0.07667823880910873,
-0.10698983073234558,
0.35860463976860046,
-0.33423730731010437,
-0.1467377245426178,
0.2806134819984436,
0.030429378151893616,
-0.047708842903375626,
0.28896474838256836,
-0.4568919539451599,
0.06355952471494675,
0.49040487408638,
-0.1834811270236969,
0.4105272889137268,
0.2586522698402405,
-0.06671150028705597,
-0.46657484769821167,
-0.20355400443077087,
0.4040687382221222,
-0.1568005084991455,
-0.043656013906002045,
-0.051136910915374756,
0.062106065452098846,
-0.1280888020992279,
0.3088608682155609,
-0.12447921931743622,
0.1140967607498169,
-0.13282978534698486,
0.16971293091773987,
0.6214050054550171,
-0.05542011931538582,
-0.5478650331497192,
0.15868747234344482,
0.18929706513881683,
-0.10273478925228119,
0.2174239456653595,
-0.0242301058024168,
0.025966715067625046,
-0.12591254711151123,
-0.2156147062778473,
0.2760068476200104,
0.24079985916614532,
0.15591883659362793,
0.10188592970371246,
0.02702808380126953,
-0.030063867568969727,
-0.08314946293830872,
0.02252279408276081,
0.27148351073265076,
0.42653030157089233,
-0.4358936548233032,
0.25477078557014465,
-0.2961648106575012,
0.2431107759475708,
0.4442703127861023,
0.08521613478660583,
-0.07153137028217316,
-0.0012011229991912842,
-0.02026558667421341,
-0.5487945675849915,
0.28938984870910645,
-0.17686334252357483,
-0.5273401141166687,
0.08091483265161514,
-0.40743929147720337,
0.03927380591630936,
-0.28975510597229004,
-0.18100689351558685,
0.04668690264225006,
0.04112643748521805,
0.03388351947069168,
-0.08872577548027039,
-0.4143952429294586,
0.11624675989151001,
0.387735515832901,
0.2359035462141037,
0.0315156988799572,
-0.06985527276992798,
0.08418944478034973,
-0.0712554007768631,
-0.03740928694605827,
-0.26878058910369873,
-0.04930563643574715,
0.17686086893081665,
0.03499917685985565,
-0.2530090808868408,
0.2679136097431183,
0.06014694273471832,
0.14415791630744934,
-0.0802505612373352,
0.2444087117910385,
0.03043203242123127,
-0.014118485152721405,
0.16848555207252502,
-0.2584221363067627,
-0.0873371958732605,
-0.1304803043603897,
-0.2503657341003418,
0.3609992265701294,
-0.1785721331834793,
-0.03346237540245056,
-0.11107424646615982,
0.13987265527248383,
0.08430842310190201,
0.016224324703216553,
-0.14756718277931213,
-0.129983052611351,
0.05276009812951088,
0.20989719033241272,
0.4378204345703125,
0.23618006706237793,
0.07894675433635712,
0.11878527700901031,
0.26837068796157837,
0.13183048367500305,
0.11817243695259094,
-0.0736093521118164,
-0.13770516216754913,
0.14217805862426758,
0.24718838930130005,
0.3656274080276489,
0.2177819460630417,
0.0397990383207798,
0.3672138452529907,
-0.20196890830993652,
0.35537806153297424,
-0.1610700488090515,
-0.04602843523025513,
-0.14808061718940735,
0.13553912937641144,
-0.06480872631072998,
-0.1560852974653244,
-0.05969306081533432,
0.018103040754795074,
0.23832732439041138,
0.13328073918819427,
0.008143005892634392,
-0.34356963634490967,
-0.1004173532128334,
-0.15086181461811066,
-0.15115292370319366,
0.17552664875984192,
-0.12994655966758728,
-0.47230029106140137,
0.05837860703468323,
-0.2219812572002411,
0.11329720914363861,
-0.02335169166326523,
0.19733694195747375,
-0.39707961678504944,
0.291777640581131,
-0.12870268523693085,
-0.12235011905431747,
-0.24814777076244354,
0.23019488155841827,
0.0850456953048706,
-0.0017607808113098145,
0.3133164048194885,
-0.6097190976142883,
0.08887563645839691,
0.08850578218698502,
0.37889885902404785,
-0.26765692234039307,
0.04291832447052002,
-0.17264589667320251,
0.08731411397457123,
-0.02657296508550644,
-0.5216035842895508,
0.03757089003920555,
-0.21702493727207184,
-0.05585603415966034,
-0.18701446056365967,
-0.2340089976787567,
-0.2217160165309906,
-0.07729346305131912,
-0.02865111455321312,
-0.011366128921508789,
-0.2143590748310089,
-0.08558353781700134,
-0.13663943111896515,
-0.18322333693504333,
0.5226251482963562,
0.1414615958929062,
0.25604885816574097,
-0.002305455505847931,
-0.22593587636947632,
-0.4002259075641632,
-0.2243371605873108,
0.3215576112270355,
-0.35465511679649353,
-0.43462368845939636,
0.32815688848495483,
-0.5130245685577393,
-0.3416808545589447,
0.03007681667804718,
0.12407389283180237,
0.10587016493082047,
0.5141778588294983,
-0.02607128769159317,
0.08564072847366333,
-0.21866971254348755,
0.20146706700325012,
-0.3087969422340393,
0.1535312980413437,
-0.0030912160873413086,
0.11963729560375214,
0.14666834473609924,
-0.053318608552217484,
-0.047132015228271484,
0.07801392674446106,
-0.08128306269645691,
-0.2787155508995056,
0.11234410852193832,
-0.01896933652460575,
0.15442097187042236,
0.8165990114212036,
0.418029248714447,
0.30736371874809265,
0.25785455107688904,
0.3554745316505432,
0.6551375389099121,
0.14289510250091553,
-0.047247447073459625,
0.1153944730758667,
-0.06108957529067993,
-0.07311590015888214,
0.05846257135272026,
0.07613178342580795,
-0.2318723201751709,
0.0199001282453537,
0.10936030745506287,
-0.24037331342697144,
-0.3566123843193054,
-0.14287914335727692,
-0.45253807306289673,
0.14258891344070435,
0.10790912806987762,
0.04641720652580261,
-0.2667253017425537,
-0.2012432962656021,
0.036888595670461655,
0.28550219535827637,
0.2145121842622757,
0.20001032948493958,
-0.4393429458141327,
0.023219019174575806,
-0.2913894057273865,
0.38255006074905396,
0.02403772622346878,
0.3767933249473572,
-0.15953105688095093,
0.08786624670028687,
0.1422176957130432,
0.30853986740112305,
0.19916090369224548,
-0.3688866198062897,
0.21759535372257233,
-0.0722925141453743,
0.3133906126022339,
0.19357925653457642,
-0.2300414890050888,
0.42392659187316895,
0.41673511266708374,
-0.06499984115362167,
0.08801044523715973,
0.10432340204715729,
-0.16244852542877197,
-0.4611431062221527,
-0.16292011737823486,
-0.1400512307882309,
-0.14902962744235992,
0.12778495252132416,
0.30097222328186035,
-0.059189751744270325,
-0.050706662237644196,
0.27494823932647705,
-0.3887249529361725,
-0.1966957449913025,
-0.056988250464200974,
-0.21753565967082977,
0.1835901439189911,
0.058552198112010956,
0.0031904876232147217,
0.35566338896751404,
0.06189032271504402,
-0.024190042167901993,
0.4219599962234497,
0.1054660975933075,
0.19056154787540436,
0.4501103162765503,
-0.23942066729068756,
0.25263553857803345,
-0.1963379979133606,
-0.2536071240901947,
0.34400683641433716,
0.12801063060760498,
-0.3881399929523468,
-0.09134074300527573,
0.09488366544246674,
-0.24097803235054016,
-0.17852738499641418,
-0.1467931568622589,
-0.13932158052921295,
-0.0003509633243083954,
-0.17939317226409912,
-0.5722703337669373,
0.2993483245372772,
0.5455888509750366,
-0.3873963952064514,
0.4094869792461395,
-0.182243213057518,
-0.29151955246925354,
0.12440334260463715,
0.08555352687835693,
0.8844553828239441,
-0.18662941455841064,
0.37746310234069824,
-0.3722919225692749,
-0.007861003279685974,
0.03431794419884682,
-0.3573719263076782,
0.048011526465415955,
-0.4815059006214142,
-0.31308713555336,
-0.12218376994132996,
-0.18200773000717163,
-0.002654680982232094,
0.47090524435043335,
0.09557544440031052,
0.08884565532207489,
-0.16639037430286407,
-0.09674359858036041,
-0.12405666708946228,
-0.1856989562511444,
-0.17455510795116425,
-0.2546983063220978,
0.31720614433288574,
0.09955489635467529,
-0.21952994167804718,
0.03810788318514824,
-0.10165633261203766,
-0.004811640828847885,
-0.2958865761756897,
0.22374454140663147,
-0.2638000249862671,
0.06633473932743073,
-0.6536074876785278,
0.08839987218379974,
-0.18417945504188538,
-0.19167006015777588,
0.19247354567050934,
0.3233485817909241,
0.25004446506500244,
0.1908152997493744,
0.01077990047633648,
0.08489775657653809,
0.3455128073692322,
0.15134872496128082,
-0.27242350578308105,
0.04242589324712753,
0.25807109475135803,
0.15149009227752686,
0.1023695319890976,
-0.19922661781311035,
-0.19654396176338196,
-0.36928972601890564,
-0.3049934506416321,
0.2606562674045563,
0.020378245040774345,
-0.19662387669086456,
0.016766149550676346,
0.00965605303645134,
0.019398704171180725,
0.13386420905590057,
0.06413817405700684,
0.44091975688934326,
0.01142004132270813,
0.5084739327430725,
-0.1870288997888565,
-0.26639360189437866,
0.12125431001186371,
0.48618197441101074,
-0.05171450227499008,
-0.2246519774198532,
0.2001374065876007,
-0.35662031173706055,
-0.28401532769203186,
-0.15740197896957397,
0.205840066075325,
0.22877372801303864,
-0.2739259600639343,
-0.09786085784435272,
-0.05001453682780266,
-0.12075750529766083,
0.2087790071964264,
-0.44000646471977234,
0.16527479887008667,
0.2225193977355957,
0.14455609023571014,
-0.3259629011154175,
-0.3702552318572998,
-0.15570910274982452,
-0.3802729547023773,
0.16940203309059143,
0.09819404780864716,
-0.6323503255844116,
0.08480531722307205,
0.15892204642295837,
-0.1927313506603241,
-0.08594602346420288,
0.1824997216463089,
0.0555276982486248,
0.19178149104118347,
0.018381990492343903,
-0.12139391154050827,
-0.14987410604953766,
-0.11522336304187775,
-0.02714821696281433,
-0.0567796528339386,
-0.16411574184894562,
-0.03980141878128052,
0.1679484099149704,
0.1820959448814392,
-0.357939213514328,
0.03408105671405792,
-0.4784618020057678,
-0.09294545650482178,
-0.37258633971214294,
-0.006916016340255737,
0.14403127133846283,
0.1984071433544159,
0.2655467987060547,
0.15833652019500732,
0.026544637978076935,
-0.250802218914032,
0.2939373552799225,
-0.08326439559459686,
-0.1457855999469757,
-0.17856092751026154,
0.24872814118862152,
-0.25603026151657104,
-0.06890929490327835,
0.12114950269460678,
-0.05345287173986435,
0.15995389223098755,
0.08766049891710281,
0.0329497829079628,
-0.03971834108233452,
0.013643883168697357,
0.09037631750106812,
0.3623434901237488,
0.14798502624034882,
-0.07483154535293579,
0.03842499852180481,
0.3330179750919342,
0.08940229564905167,
0.0964142233133316,
-0.2548564076423645,
0.2557436525821686,
-0.1211252510547638,
-0.013889238238334656,
0.3589087724685669,
0.2485763132572174,
-0.2838556170463562,
0.10822136700153351,
-0.11171472072601318,
-0.02460661716759205,
-0.342988520860672,
0.4184749126434326,
0.005170790478587151,
0.09477648138999939,
0.031618401408195496,
0.49151691794395447,
0.27978217601776123,
0.13363021612167358,
0.3028978705406189,
0.12477929145097733,
0.15891633927822113,
0.48482105135917664,
-0.33692917227745056,
0.1364089399576187,
-0.7019548416137695,
0.04022978991270065,
0.06432106345891953,
0.15008330345153809,
0.23707684874534607,
0.092081718146801,
0.17444247007369995,
0.07026222348213196,
-0.3857192397117615,
0.05375494062900543,
-0.21500550210475922,
-0.10690255463123322,
-0.1735503226518631,
0.052569128572940826,
0.010166376829147339,
0.023593053221702576,
-0.2575085759162903,
-0.2358398288488388,
-0.2523639500141144,
0.23807799816131592,
0.2800002098083496,
0.12528347969055176,
0.14734427630901337,
0.1435047835111618,
0.23822636902332306,
0.051871221512556076,
-0.1395547240972519,
-0.04918493703007698,
-0.44378232955932617,
-0.12354594469070435,
0.22236034274101257,
0.07071609050035477,
0.008214011788368225,
0.14155660569667816,
0.08432276546955109,
0.1917475163936615,
0.31143835186958313,
0.10314716398715973,
-0.2605125606060028,
0.2802601754665375,
0.03138913959264755,
-0.42639851570129395,
0.04956626892089844,
-0.011882724240422249,
-0.06616416573524475,
0.03959996998310089,
-0.1653691828250885,
-0.014356845989823341,
0.02570803090929985,
-0.09648625552654266,
-0.23720155656337738,
-0.48594316840171814,
0.12182742357254028,
-0.028764519840478897,
0.17254725098609924,
0.0998135507106781,
0.6371155977249146,
-0.03502804785966873,
0.1357843279838562,
-0.5039874911308289,
0.023602455854415894,
0.42247873544692993,
0.30497220158576965,
0.43295931816101074,
0.08612971007823944,
0.04179606959223747,
-0.004052773118019104,
-0.4279850721359253,
0.17832444608211517,
0.19301709532737732,
0.44800838828086853,
-0.04991263523697853,
-0.07186874747276306,
0.09799182415008545,
-0.09945814311504364,
0.6948081254959106,
-0.17923316359519958,
0.4205058217048645,
0.3750421404838562,
-0.29031187295913696,
-0.19507849216461182,
0.3442022204399109,
-0.003693077713251114,
0.07947477698326111,
-0.39785265922546387,
0.2591148018836975,
0.20873278379440308,
0.013708710670471191,
-0.06161199137568474,
-0.25497013330459595,
0.18347695469856262,
0.5491982698440552,
0.5960674285888672,
0.13804234564304352,
-0.03731995448470116,
0.07789468765258789,
0.29394274950027466,
-0.4272304177284241,
0.004646748304367065,
-0.13356412947177887,
-0.011072121560573578,
-0.12245123088359833,
-0.08022293448448181,
-0.5871816277503967,
-0.08369362354278564,
-0.3447759747505188,
-0.07141371816396713,
-0.08326387405395508,
0.29528310894966125,
0.003148183226585388,
0.012490063905715942,
-0.12588946521282196,
0.048420097678899765,
0.23229214549064636,
0.25874054431915283,
-0.1776360273361206,
0.3560265600681305,
-0.44207194447517395,
-0.042855679988861084,
0.33866846561431885,
-0.268160343170166,
-0.13259273767471313,
0.04721241444349289,
0.3721213936805725,
0.3301635980606079,
-0.18087497353553772,
0.016727715730667114,
0.08681620657444,
0.380814790725708,
-0.392034649848938,
-0.09910745173692703,
-0.0171488206833601,
-0.4355272650718689,
-0.008212804794311523,
-0.13836227357387543,
0.6257169246673584,
-0.012277504429221153,
-0.1993693858385086,
-0.03614882007241249,
-0.2800707519054413
] |
https://github.com/huggingface/datasets/issues/2065 | Sounds nice but I feel this is a sub-part of the approach mentioned by @siddk. Instead of letting the user set new permissions by itself first and then making sure newly generated files have same permissions why don't we ask the user initially only what they want? What are your thoughts? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 51 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Sounds nice but I feel this is a sub-part of the approach mentioned by @siddk. Instead of letting the user set new permissions by itself first and then making sure newly generated files have same permissions why don't we ask the user initially only what they want? What are your thoughts? | [
-0.021506771445274353,
0.3034680485725403,
-0.16133180260658264,
-0.06144966930150986,
-0.09429998695850372,
0.011614546179771423,
0.3593585193157196,
0.21026629209518433,
-0.28817421197891235,
0.06739774346351624,
0.021829381585121155,
-0.123779296875,
0.010428015142679214,
-0.22285735607147217,
-0.14883533120155334,
0.1429990977048874,
0.12253927439451218,
0.17538487911224365,
0.06430108845233917,
-0.08523362129926682,
-0.0920054093003273,
-0.25709134340286255,
0.0005782991647720337,
-0.08612699061632156,
-0.30424898862838745,
-0.14608576893806458,
0.1376362144947052,
0.19731220602989197,
-0.03698024898767471,
-0.1767529994249344,
0.14547088742256165,
0.5835267305374146,
0.060447439551353455,
0.17002354562282562,
-0.00011381300282664597,
-0.22992023825645447,
0.0330868661403656,
-0.043664637953042984,
0.016512617468833923,
0.21223628520965576,
-0.07354867458343506,
-0.1644749939441681,
-0.19431622326374054,
-0.2433006912469864,
-0.04620474949479103,
0.19971132278442383,
0.19790947437286377,
-0.6541274785995483,
0.5026413202285767,
-0.03636617958545685,
0.16959157586097717,
-0.2603197991847992,
-0.45810219645500183,
0.11497862637042999,
0.29270532727241516,
0.1554136574268341,
-0.14598605036735535,
0.10887385904788971,
0.4278715252876282,
-0.2223564088344574,
-0.04904602840542793,
0.10521477460861206,
-0.30663344264030457,
0.10899367183446884,
0.14398664236068726,
-0.1189899742603302,
-0.23431845009326935,
-0.5785056948661804,
0.006020098924636841,
0.11863774806261063,
0.7419646978378296,
-0.041439566761255264,
-0.5000027418136597,
-0.328044056892395,
0.11570648103952408,
0.20750699937343597,
0.22223927080631256,
0.31634214520454407,
-0.14469008147716522,
0.2639745771884918,
-0.4496849477291107,
-0.09392986446619034,
-0.13930799067020416,
-0.04971197992563248,
0.21923257410526276,
-0.11797723919153214,
-0.03718110918998718,
0.04568224772810936,
-0.03500055894255638,
0.017656760290265083,
0.22726261615753174,
0.11444240063428879,
-0.3335206210613251,
0.3299397826194763,
-0.11125390231609344,
-0.036091938614845276,
-0.21023280918598175,
0.47186708450317383,
0.24617116153240204,
0.35575616359710693,
0.28729063272476196,
0.22514140605926514,
0.04573618993163109,
0.14566585421562195,
0.07923360168933868,
0.13846425712108612,
0.34339046478271484,
0.19381283223628998,
0.5769109129905701,
-0.34865260124206543,
-0.062191590666770935,
0.09783704578876495,
0.08037367463111877,
-0.30986690521240234,
0.10347367823123932,
0.3815609812736511,
-0.0208682119846344,
-0.1177322268486023,
0.16763795912265778,
0.1382080465555191,
-0.14002561569213867,
-0.4070582687854767,
-0.038647446781396866,
0.20555144548416138,
0.04587285965681076,
-0.07817205786705017,
-0.00503307580947876,
0.1522565484046936,
0.03638587146997452,
-0.3549085259437561,
0.039927393198013306,
-0.32923537492752075,
-0.39531177282333374,
0.48182201385498047,
0.5079625248908997,
-0.21053826808929443,
-0.018610239028930664,
0.2744810879230499,
0.15050522983074188,
-0.10569604486227036,
0.3306501805782318,
-0.06058206036686897,
0.39920878410339355,
0.23702186346054077,
0.16559568047523499,
0.37063080072402954,
-0.023712849244475365,
-0.01113041490316391,
-0.12172883749008179,
0.3696784973144531,
-0.332118421792984,
-0.13728348910808563,
0.37285974621772766,
0.05405585467815399,
-0.003428235650062561,
0.3053072392940521,
-0.3055223822593689,
0.09751929342746735,
0.4749910235404968,
-0.18785041570663452,
0.26452285051345825,
0.3264566659927368,
-0.15082548558712006,
-0.44869136810302734,
-0.13006800413131714,
0.4278677701950073,
-0.052053991705179214,
0.036522671580314636,
-0.019655663520097733,
0.056593846529722214,
-0.12230335921049118,
0.26815134286880493,
-0.09357070922851562,
0.36713698506355286,
-0.16499269008636475,
0.1947631537914276,
0.42930135130882263,
-0.010686561465263367,
-0.43890267610549927,
0.19467902183532715,
0.16961568593978882,
-0.035028908401727676,
0.20524977147579193,
0.026507645845413208,
0.05682374909520149,
-0.21158789098262787,
-0.14297868311405182,
0.24177204072475433,
0.006836548447608948,
0.2508015036582947,
0.021711818873882294,
-0.013913124799728394,
0.08089321851730347,
-0.12157106399536133,
0.05804052576422691,
0.3386093080043793,
0.4151696562767029,
-0.31771084666252136,
0.20926015079021454,
-0.371804416179657,
0.21216309070587158,
0.23988185822963715,
0.12879657745361328,
-0.13514444231987,
-0.1405809223651886,
0.009482741355895996,
-0.48765596747398376,
0.32151538133621216,
-0.15778441727161407,
-0.3858758509159088,
0.14581532776355743,
-0.38155683875083923,
0.11969458311796188,
-0.3553348481655121,
-0.034814540296792984,
-0.010742606595158577,
0.0641673356294632,
0.011809160932898521,
-0.12380730360746384,
-0.38398686051368713,
0.06631407141685486,
0.42132994532585144,
0.18840333819389343,
0.010892771184444427,
-0.03260939195752144,
0.07937232404947281,
-0.16226297616958618,
0.03665478900074959,
-0.3233986496925354,
-0.10279590636491776,
0.1893298476934433,
-0.02894342690706253,
-0.15412577986717224,
0.2733413875102997,
0.08489383012056351,
0.059843532741069794,
-0.07643871009349823,
0.2839995324611664,
0.07125487923622131,
0.18368956446647644,
0.05055541545152664,
-0.2241448312997818,
-0.058955781161785126,
-0.24230483174324036,
-0.3031657636165619,
0.38289201259613037,
-0.07498161494731903,
-0.09968407452106476,
-0.19925808906555176,
0.09801844507455826,
-0.009871229529380798,
-0.12722329795360565,
-0.1304626762866974,
-0.09987293928861618,
-0.0674123466014862,
0.2601042687892914,
0.27914708852767944,
0.28103286027908325,
0.07919318974018097,
0.059967707842588425,
0.318528950214386,
0.12961013615131378,
0.07910586893558502,
-0.06052669882774353,
0.05661140754818916,
0.09245914220809937,
0.19749580323696136,
0.3689730167388916,
0.23946818709373474,
0.055405229330062866,
0.2686425745487213,
-0.18336579203605652,
0.37213292717933655,
-0.16428174078464508,
-0.05011560022830963,
-0.06097232177853584,
0.027087196707725525,
-0.06077937036752701,
-0.16565775871276855,
0.04880889505147934,
0.06025538593530655,
0.2263968586921692,
0.04124436527490616,
-0.045598044991493225,
-0.2876114845275879,
-0.16770291328430176,
-0.11976902186870575,
-0.21050962805747986,
0.28824931383132935,
-0.03896360844373703,
-0.4841926395893097,
0.028695836663246155,
-0.11276811361312866,
0.12957756221294403,
-0.07897157967090607,
0.12439540028572083,
-0.29070326685905457,
0.3436165452003479,
-0.16356918215751648,
-0.06601139903068542,
-0.16507285833358765,
0.2653515338897705,
0.09964011609554291,
0.026729807257652283,
0.3398624360561371,
-0.647487223148346,
0.23540115356445312,
0.024167940020561218,
0.32933932542800903,
-0.2896655201911926,
-0.08471472561359406,
-0.12014877796173096,
-0.06197676807641983,
0.10821185261011124,
-0.4897514581680298,
0.00020008906722068787,
-0.1599300503730774,
-0.024094589054584503,
-0.27292656898498535,
-0.18905329704284668,
-0.16934239864349365,
-0.15472346544265747,
0.0760243609547615,
0.02094528079032898,
-0.31502223014831543,
-0.11580976843833923,
-0.06778845936059952,
-0.13333342969417572,
0.41519516706466675,
0.12574465572834015,
0.2871502935886383,
0.043107882142066956,
-0.2571902871131897,
-0.46778902411460876,
-0.2548935115337372,
0.43329519033432007,
-0.29786211252212524,
-0.5735897421836853,
0.2667665481567383,
-0.3667280673980713,
-0.29503628611564636,
-0.05477039888501167,
0.05342353135347366,
0.04966016858816147,
0.5260621905326843,
-0.028042905032634735,
-0.07100670784711838,
-0.1727813184261322,
0.23782214522361755,
-0.3201945126056671,
0.17601421475410461,
0.05077075958251953,
0.04431190341711044,
0.10439929366111755,
-0.005994342267513275,
-0.06301803141832352,
0.09955427050590515,
-0.07241067290306091,
-0.33263736963272095,
0.210569366812706,
0.054405514150857925,
0.2172205150127411,
0.829928457736969,
0.3929791748523712,
0.37202662229537964,
0.2671794593334198,
0.35648444294929504,
0.6644088625907898,
0.10482263565063477,
-0.07250241935253143,
0.1425321251153946,
-0.036481186747550964,
-0.07174467295408249,
0.06949544697999954,
0.08119753003120422,
-0.2659110426902771,
-0.020788460969924927,
0.11085082590579987,
-0.31221359968185425,
-0.43893247842788696,
-0.10266232490539551,
-0.37607628107070923,
0.1761968433856964,
0.11929880082607269,
0.10657326877117157,
-0.1995282620191574,
-0.15441446006298065,
-0.021066494286060333,
0.26321497559547424,
0.3557826280593872,
0.17476814985275269,
-0.46371790766716003,
0.03693017363548279,
-0.34986311197280884,
0.2690500020980835,
0.089175745844841,
0.41858747601509094,
-0.14887604117393494,
0.05816064774990082,
0.17525756359100342,
0.286421537399292,
0.313520610332489,
-0.37020763754844666,
0.0821562334895134,
-0.12423921376466751,
0.1768731027841568,
0.382826030254364,
-0.19495989382266998,
0.43289971351623535,
0.4933440685272217,
0.07729083299636841,
0.1491275131702423,
0.02957090735435486,
-0.14380067586898804,
-0.42993468046188354,
-0.15536877512931824,
-0.03878897428512573,
-0.17530138790607452,
0.2569082975387573,
0.2764849066734314,
-0.07020576298236847,
-0.054804641753435135,
0.31861037015914917,
-0.42681998014450073,
-0.17721512913703918,
0.012555494904518127,
-0.14447176456451416,
0.3334309160709381,
0.1070249080657959,
-0.09562542289495468,
0.18864814937114716,
0.08685578405857086,
0.04013277590274811,
0.33179527521133423,
0.08293784409761429,
0.010430166497826576,
0.43790921568870544,
-0.26340508460998535,
0.4645078480243683,
-0.12028385698795319,
-0.3070557117462158,
0.3799797296524048,
0.20018646121025085,
-0.2821277678012848,
-0.14608196914196014,
0.10023686289787292,
-0.14741073548793793,
-0.39174917340278625,
-0.16838525235652924,
-0.08401238173246384,
-0.11728930473327637,
-0.29734596610069275,
-0.6107849478721619,
0.20313134789466858,
0.5352296233177185,
-0.3493177592754364,
0.2802355885505676,
-0.19767338037490845,
-0.3199748992919922,
0.11576810479164124,
0.08997058868408203,
0.8514477014541626,
-0.11892037093639374,
0.45814254879951477,
-0.3852829933166504,
0.09061887860298157,
0.03006475418806076,
-0.47935259342193604,
0.018478643149137497,
-0.4417716860771179,
-0.39649391174316406,
-0.1573922485113144,
-0.12645769119262695,
0.06115447357296944,
0.5074999332427979,
0.06994865834712982,
0.13193373382091522,
-0.031228676438331604,
-0.015699956566095352,
-0.08057671785354614,
-0.09558404982089996,
-0.24342747032642365,
-0.25305426120758057,
0.46733221411705017,
0.10352247953414917,
-0.21097028255462646,
0.041673704981803894,
-0.10588733106851578,
-0.019194331020116806,
-0.23024529218673706,
0.11745725572109222,
-0.19702014327049255,
-0.014703571796417236,
-0.554661750793457,
0.014659848064184189,
-0.1509052813053131,
-0.05323195457458496,
0.19789671897888184,
0.2467459887266159,
0.2595117688179016,
0.3690887987613678,
0.019892117008566856,
-0.0037853638641536236,
0.375962495803833,
0.28652137517929077,
-0.13384628295898438,
0.03504582494497299,
0.29505375027656555,
0.19529585540294647,
0.14185163378715515,
-0.2592482566833496,
-0.1916336715221405,
-0.353418231010437,
-0.5514914989471436,
0.29239770770072937,
0.03628982603549957,
-0.21550637483596802,
-0.029629066586494446,
0.0761442631483078,
0.07581787556409836,
0.09350833296775818,
0.07118487358093262,
0.44653141498565674,
0.03254071623086929,
0.5419019460678101,
-0.34804871678352356,
-0.2729814052581787,
0.017171313986182213,
0.4562429189682007,
-0.008791279047727585,
-0.2799375057220459,
0.1219349354505539,
-0.42470040917396545,
-0.2871578633785248,
-0.18389897048473358,
0.21658502519130707,
0.09926481544971466,
-0.19424080848693848,
-0.14537949860095978,
0.0039365217089653015,
-0.05367089807987213,
0.22821170091629028,
-0.5018804669380188,
0.13641251623630524,
0.06311307847499847,
0.24044404923915863,
-0.2232869267463684,
-0.33669787645339966,
-0.2222481667995453,
-0.28165334463119507,
0.2878143787384033,
0.17481602728366852,
-0.5316985845565796,
0.03425212204456329,
0.1116780936717987,
-0.2204289734363556,
-0.1617443561553955,
0.23769384622573853,
0.17678287625312805,
0.23742404580116272,
0.06450275331735611,
-0.21175266802310944,
-0.19753143191337585,
-0.08688308298587799,
-0.0958414226770401,
-0.07334459573030472,
-0.1839972734451294,
-0.022043287754058838,
0.16307714581489563,
0.1925927847623825,
-0.30572688579559326,
0.11555960029363632,
-0.4096887707710266,
-0.12166618555784225,
-0.41835734248161316,
0.06019832193851471,
0.25593870878219604,
0.20846807956695557,
0.2805692255496979,
0.2027064561843872,
-0.03405461832880974,
-0.13114553689956665,
0.27177369594573975,
-0.14904087781906128,
-0.1615099459886551,
-0.24046793580055237,
0.25738975405693054,
-0.27809590101242065,
-0.027179665863513947,
0.08812006562948227,
-0.0225394107401371,
0.08418305963277817,
0.14878922700881958,
0.06394131481647491,
0.023867182433605194,
0.0719449520111084,
0.1772979199886322,
0.3038206100463867,
-0.0395745187997818,
-0.1294693946838379,
0.05976269394159317,
0.47336655855178833,
0.13258910179138184,
0.1642729938030243,
-0.22115245461463928,
0.2963956296443939,
-0.19676928222179413,
0.03971421718597412,
0.4383152723312378,
0.26169076561927795,
-0.1876133233308792,
0.19473743438720703,
-0.14318695664405823,
0.028602004051208496,
-0.42177829146385193,
0.4083346128463745,
-0.02606148272752762,
0.08359022438526154,
-0.009268932044506073,
0.4539860785007477,
0.12057329714298248,
0.0059183016419410706,
0.2759366035461426,
0.2359692007303238,
0.22517938911914825,
0.39802423119544983,
-0.3255465030670166,
0.0371677465736866,
-0.6843451261520386,
0.15872745215892792,
0.06637365370988846,
0.13992704451084137,
0.26491424441337585,
0.06534471362829208,
0.09818975627422333,
-0.008855346590280533,
-0.3272554874420166,
0.077937550842762,
-0.22234994173049927,
-0.10730741918087006,
-0.09256342053413391,
0.09254881739616394,
-0.006445832550525665,
0.04140336811542511,
-0.24350827932357788,
-0.23931777477264404,
-0.2039112150669098,
0.17222380638122559,
0.2994825839996338,
0.0268008541315794,
0.23905211687088013,
-0.005767969414591789,
0.02274511754512787,
0.10521839559078217,
-0.23051810264587402,
-0.08860040456056595,
-0.5490131378173828,
-0.15878060460090637,
0.1963798552751541,
0.15768976509571075,
-0.0024716565385460854,
0.25078192353248596,
0.11550717055797577,
0.11430417001247406,
0.2105148434638977,
0.14106744527816772,
-0.30573660135269165,
0.31607797741889954,
-0.07843197137117386,
-0.3726968765258789,
0.02058017998933792,
0.013396620750427246,
-0.05569538474082947,
0.021304158493876457,
-0.14174620807170868,
-0.06973972916603088,
-0.10422749817371368,
-0.05915886536240578,
-0.0012652724981307983,
-0.36471742391586304,
0.19289669394493103,
-0.024681854993104935,
0.09962914884090424,
0.09298806637525558,
0.5304290056228638,
-0.08010297268629074,
0.21319018304347992,
-0.5350326895713806,
0.04062258452177048,
0.44604554772377014,
0.09690365195274353,
0.43697598576545715,
-0.060269955545663834,
-0.15798917412757874,
0.08234900236129761,
-0.39734527468681335,
0.06723099946975708,
0.2058849334716797,
0.4810691773891449,
-0.047396354377269745,
-0.1647840142250061,
0.1603337526321411,
-0.0201026052236557,
0.5293856263160706,
-0.3117314279079437,
0.23099815845489502,
0.3042066991329193,
-0.2668893337249756,
-0.16463406383991241,
0.20025423169136047,
-0.05599666386842728,
0.025570467114448547,
-0.3361580967903137,
0.2876138687133789,
0.20874886214733124,
0.056642062962055206,
-0.11867569386959076,
-0.2009543925523758,
0.18941202759742737,
0.5180320143699646,
0.44715213775634766,
0.2234645038843155,
-0.12816765904426575,
-0.014497071504592896,
0.32146018743515015,
-0.4525119364261627,
0.12045586109161377,
-0.18588201701641083,
-0.1433233916759491,
-0.1372976303100586,
0.023263193666934967,
-0.5915026664733887,
-0.14097924530506134,
-0.39000147581100464,
-0.05416324734687805,
-0.09597394615411758,
0.36697593331336975,
0.057474978268146515,
-0.004772387444972992,
-0.0992673709988594,
0.03496652469038963,
0.2579490840435028,
0.3559635579586029,
-0.1373485028743744,
0.436842679977417,
-0.42648255825042725,
-0.007700357586145401,
0.288461834192276,
-0.20155328512191772,
-0.14667394757270813,
-0.017401516437530518,
0.34916961193084717,
0.16213181614875793,
-0.10716629773378372,
0.058428019285202026,
-0.06407613307237625,
0.38375240564346313,
-0.4046952724456787,
-0.060008417814970016,
0.12962235510349274,
-0.4057177007198334,
-0.1622668355703354,
-0.05850725620985031,
0.5083827972412109,
-0.04596664756536484,
-0.25837382674217224,
0.013549819588661194,
-0.23338858783245087
] |
https://github.com/huggingface/datasets/issues/2065 | Yes sounds good. Should this be a parameter in `load_dataset` ? Or an env variable ? Or use the value of `os.umask` ? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 23 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Yes sounds good. Should this be a parameter in `load_dataset` ? Or an env variable ? Or use the value of `os.umask` ? | [
-0.11572422087192535,
0.19156616926193237,
-0.12044434249401093,
0.010219053365290165,
-0.004656887613236904,
0.07383756339550018,
0.35489413142204285,
0.0830477774143219,
-0.09774108976125717,
0.0234236977994442,
-0.10515768826007843,
0.11370635032653809,
0.07436947524547577,
-0.27142125368118286,
-0.0607256218791008,
0.15252093970775604,
0.2136559784412384,
0.02426857501268387,
0.031402017921209335,
-0.11502572149038315,
-0.16827572882175446,
-0.057777173817157745,
-0.10900562256574631,
-0.09702275693416595,
-0.23154419660568237,
-0.12353046238422394,
0.24491676688194275,
0.29547572135925293,
-0.012377353385090828,
-0.1583910882472992,
0.2343730479478836,
0.5587266087532043,
0.18393981456756592,
0.06645574420690536,
-0.00011460713722044602,
-0.13733315467834473,
0.02459912933409214,
-0.13007302582263947,
0.03299212455749512,
0.2129811942577362,
-0.019834071397781372,
-0.13540008664131165,
-0.10632789880037308,
-0.21078339219093323,
-0.14558236300945282,
0.18454858660697937,
0.08641021698713303,
-0.6697396039962769,
0.4485445022583008,
0.24989289045333862,
0.18491202592849731,
-0.17895737290382385,
-0.34196603298187256,
0.1327785700559616,
0.24984225630760193,
0.10166358202695847,
-0.1213097795844078,
0.0644461065530777,
0.2906065583229065,
-0.16770151257514954,
-0.03341783583164215,
-0.006596412509679794,
-0.29961639642715454,
0.06730575859546661,
0.20020782947540283,
-0.05600052699446678,
-0.2622169256210327,
-0.542602002620697,
0.07750019431114197,
0.06789964437484741,
0.7661520838737488,
-0.08331263810396194,
-0.518566370010376,
-0.10435602813959122,
0.09090122580528259,
0.22546085715293884,
0.38256049156188965,
0.3455038070678711,
-0.021785471588373184,
0.31509438157081604,
-0.5068027377128601,
0.010549768805503845,
-0.2292098104953766,
0.049969516694545746,
0.15380220115184784,
0.014185629785060883,
-0.0012822188436985016,
0.11215391755104065,
0.06971840560436249,
-0.08665906637907028,
0.1956956535577774,
0.11379405856132507,
-0.3244982957839966,
0.3942142724990845,
-0.2211422324180603,
0.03704841434955597,
-0.21995672583580017,
0.46403077244758606,
0.23840446770191193,
0.2879551351070404,
0.21114391088485718,
0.18489935994148254,
0.007535461336374283,
0.2291598916053772,
-0.0334102138876915,
0.14296755194664001,
0.39445409178733826,
0.27656036615371704,
0.5267387628555298,
-0.3781728148460388,
-0.11038346588611603,
0.03155951946973801,
-0.051686979830265045,
-0.39310750365257263,
0.07375103235244751,
0.23955824971199036,
0.04035871475934982,
-0.20363213121891022,
0.1282828152179718,
0.08213558048009872,
-0.11160872876644135,
-0.277332067489624,
0.031325969845056534,
0.3696843683719635,
0.11353442817926407,
-0.11508205533027649,
0.03989093750715256,
0.25309425592422485,
-0.04551750794053078,
-0.37537452578544617,
0.011407751590013504,
-0.3871249258518219,
-0.27920863032341003,
0.40332573652267456,
0.47523242235183716,
-0.12668074667453766,
0.037480637431144714,
0.2577851116657257,
0.12955476343631744,
-0.2477274090051651,
0.3621705174446106,
-0.04419814050197601,
0.39860624074935913,
0.3669500946998596,
0.2635761499404907,
0.2514342665672302,
0.09833953529596329,
0.02832581102848053,
-0.1079149916768074,
0.4005107581615448,
-0.35579320788383484,
-0.1548411101102829,
0.297898530960083,
0.05624133348464966,
-0.07005735486745834,
0.22292956709861755,
-0.3771531283855438,
0.10080888867378235,
0.5208303928375244,
-0.0400724858045578,
0.36023736000061035,
0.2457834780216217,
-0.20405909419059753,
-0.44340458512306213,
-0.07133259624242783,
0.27099013328552246,
-0.13439494371414185,
-0.05851712450385094,
-0.08772353827953339,
-0.06524701416492462,
0.0261636171489954,
0.3507985770702362,
-0.027254143729805946,
0.22788365185260773,
-0.09130101650953293,
0.16322295367717743,
0.4935806393623352,
-0.02708166092634201,
-0.5619920492172241,
0.12315718829631805,
0.22417519986629486,
-0.14953315258026123,
0.19179654121398926,
0.025275371968746185,
0.03262822702527046,
-0.05484660342335701,
-0.08132249116897583,
0.3807574212551117,
0.25872060656547546,
0.2704673409461975,
0.13848987221717834,
0.11018862575292587,
0.05164511129260063,
-0.018708545714616776,
0.04095664247870445,
0.3495683968067169,
0.3849889039993286,
-0.35705143213272095,
0.2508898079395294,
-0.28883856534957886,
0.23769132792949677,
0.455926775932312,
0.09419754147529602,
-0.12704980373382568,
0.02412862703204155,
0.04417819529771805,
-0.39310601353645325,
0.25041770935058594,
-0.09992921352386475,
-0.4025926887989044,
0.09857282042503357,
-0.47680482268333435,
0.05070556700229645,
-0.22610706090927124,
-0.15048286318778992,
-0.08767293393611908,
0.049879174679517746,
0.0069950055330991745,
-0.055115070194005966,
-0.3226659297943115,
0.13724248111248016,
0.3789219260215759,
0.20706650614738464,
-0.007192391902208328,
-0.1255989819765091,
0.13696172833442688,
-0.07973717153072357,
-0.07548042386770248,
-0.236145481467247,
-0.09979798644781113,
0.24949920177459717,
0.014925334602594376,
-0.2919358015060425,
0.30108997225761414,
0.20392227172851562,
0.0037092044949531555,
-0.17931044101715088,
0.15792377293109894,
-0.031622596085071564,
0.07925160229206085,
0.09224794059991837,
-0.18836651742458344,
-0.07806789875030518,
-0.17187568545341492,
-0.29973119497299194,
0.37964510917663574,
-0.1070985421538353,
-0.09612924605607986,
-0.27058422565460205,
0.18759793043136597,
0.12346538156270981,
0.0009856149554252625,
-0.13685926795005798,
-0.10228562355041504,
0.03755245730280876,
0.16700278222560883,
0.38140949606895447,
0.23003195226192474,
0.08533954620361328,
-0.020879097282886505,
0.34483182430267334,
0.16703882813453674,
0.0647968202829361,
0.014317912049591541,
-0.06580641865730286,
0.07113021612167358,
0.24881988763809204,
0.25836777687072754,
0.3715957999229431,
0.047927647829055786,
0.2792147099971771,
-0.16851089894771576,
0.37133166193962097,
-0.13287878036499023,
0.026925567537546158,
-0.09192405641078949,
-0.05796080082654953,
-0.20321747660636902,
-0.21280956268310547,
-0.06406524777412415,
-0.0018404051661491394,
0.2651611566543579,
0.10124955326318741,
0.08389004319906235,
-0.4108767509460449,
-0.11331137269735336,
-0.19674095511436462,
-0.1337636262178421,
0.3249429762363434,
0.004600703716278076,
-0.5532536506652832,
-0.05593479797244072,
-0.19944968819618225,
0.20223000645637512,
-0.033077422529459,
0.20917430520057678,
-0.2046143263578415,
0.20343945920467377,
-0.031007755547761917,
-0.1547105610370636,
-0.19210503995418549,
0.20373111963272095,
0.09176228940486908,
0.012130100280046463,
0.1726275086402893,
-0.5726965665817261,
0.11631879210472107,
-0.05812394246459007,
0.28658410906791687,
-0.2865249216556549,
0.03540947288274765,
-0.17413230240345,
-0.0007086098194122314,
0.12356585264205933,
-0.4385625123977661,
0.05180966854095459,
-0.23574303090572357,
0.007002353668212891,
-0.1307346522808075,
-0.26104915142059326,
-0.23071381449699402,
-0.032415106892585754,
0.12106683850288391,
-0.023593666031956673,
-0.26379159092903137,
-0.09451881051063538,
-0.19618406891822815,
-0.15844497084617615,
0.4723944067955017,
0.1527376025915146,
0.2521524727344513,
-0.01470971666276455,
-0.24282267689704895,
-0.41925856471061707,
-0.14235460758209229,
0.2821735143661499,
-0.39609506726264954,
-0.5978459715843201,
0.3621940016746521,
-0.49484017491340637,
-0.40881597995758057,
0.06481899321079254,
0.19022536277770996,
0.08736833184957504,
0.49653562903404236,
-0.020667731761932373,
-0.032721102237701416,
-0.13035818934440613,
0.21105842292308807,
-0.30216842889785767,
0.14907050132751465,
-0.01832307130098343,
-0.0033312998712062836,
0.19871735572814941,
-0.061612967401742935,
-0.20492702722549438,
0.01577060855925083,
-0.0018587764352560043,
-0.24356724321842194,
0.1733834147453308,
0.18040144443511963,
0.03685826063156128,
0.6638669967651367,
0.40061119198799133,
0.37117794156074524,
0.3447340726852417,
0.24606497585773468,
0.6566482782363892,
0.12778696417808533,
-0.09835433214902878,
0.13287989795207977,
0.03074202686548233,
-0.13441981375217438,
0.147620290517807,
0.050736188888549805,
-0.2245364785194397,
0.008626915514469147,
-0.030514728277921677,
-0.2527901232242584,
-0.4145503044128418,
-0.1356717050075531,
-0.28576382994651794,
0.09068095684051514,
0.012083873152732849,
0.2275615632534027,
-0.25447535514831543,
-0.19963009655475616,
0.015724755823612213,
0.3498133718967438,
0.1901766061782837,
0.28884807229042053,
-0.5011579990386963,
0.03220703825354576,
-0.3375476002693176,
0.4071541130542755,
-0.11288358271121979,
0.45793992280960083,
-0.23471897840499878,
0.12266293168067932,
0.21931888163089752,
0.3533583879470825,
0.42068204283714294,
-0.42602312564849854,
0.21917541325092316,
0.024685174226760864,
0.15916669368743896,
0.24355658888816833,
-0.18747569620609283,
0.4024350047111511,
0.45823585987091064,
0.03869957849383354,
0.10106097161769867,
0.1391744613647461,
-0.12691473960876465,
-0.41969484090805054,
-0.21219369769096375,
-0.08873666822910309,
-0.31152498722076416,
0.08655326813459396,
0.19467033445835114,
-0.11844395101070404,
-0.08385211229324341,
0.2580329179763794,
-0.31969380378723145,
-0.1928004026412964,
0.013565383851528168,
-0.23596180975437164,
0.21445690095424652,
0.08824009448289871,
-0.0233599953353405,
0.3749977648258209,
0.02907807007431984,
-0.013873524963855743,
0.38190004229545593,
0.007432509213685989,
0.1824670135974884,
0.47042250633239746,
-0.27579614520072937,
0.287559449672699,
-0.18409962952136993,
-0.2768239974975586,
0.40235504508018494,
-0.020773328840732574,
-0.35713356733322144,
-0.15686962008476257,
0.17439886927604675,
-0.193055659532547,
-0.26741349697113037,
-0.01114443689584732,
-0.10284484922885895,
0.07495403289794922,
-0.28011152148246765,
-0.6301468014717102,
0.20233778655529022,
0.5458948612213135,
-0.3691297173500061,
0.27002865076065063,
-0.3061341941356659,
-0.358010858297348,
0.21224625408649445,
0.10059960186481476,
0.7887314558029175,
-0.24648670852184296,
0.35369637608528137,
-0.4175286591053009,
0.12697428464889526,
0.021605942398309708,
-0.4390439987182617,
0.07169951498508453,
-0.47348594665527344,
-0.3681217432022095,
-0.11364591121673584,
-0.11035488545894623,
0.06010758876800537,
0.5340062379837036,
-0.04494420439004898,
0.09782882034778595,
-0.07068059593439102,
-0.10433846712112427,
-0.17646941542625427,
-0.1874251663684845,
-0.16082914173603058,
-0.32709836959838867,
0.23921313881874084,
0.11409884691238403,
-0.23129640519618988,
0.05583510920405388,
-0.03652524948120117,
0.012198787182569504,
-0.18671900033950806,
0.19567406177520752,
-0.19770660996437073,
0.06846322119235992,
-0.6160362958908081,
0.0682232528924942,
-0.1547408401966095,
-0.08785699307918549,
0.13093724846839905,
0.4158766269683838,
0.2986322343349457,
0.34836065769195557,
-0.013634994626045227,
0.02926911786198616,
0.34767812490463257,
0.20694351196289062,
-0.20356634259223938,
0.03422728180885315,
0.26275187730789185,
0.17587335407733917,
0.02145974338054657,
-0.25057753920555115,
-0.17453494668006897,
-0.3691313862800598,
-0.2691722512245178,
0.23845556378364563,
0.05408763512969017,
-0.29711320996284485,
-0.05459270998835564,
-0.1923462450504303,
0.09659408032894135,
0.1019243448972702,
0.06625606119632721,
0.5287201404571533,
-0.03303167223930359,
0.575649082660675,
-0.34440213441848755,
-0.3904918432235718,
0.03175165504217148,
0.5647519826889038,
-0.06698008626699448,
-0.23681685328483582,
0.15457993745803833,
-0.3134378492832184,
-0.2485010176897049,
-0.1570892333984375,
0.25009050965309143,
0.1942853480577469,
-0.12300628423690796,
-0.08774344623088837,
0.0684734359383583,
-0.06959913671016693,
0.19410090148448944,
-0.47713589668273926,
0.04617779701948166,
0.176419198513031,
0.1300102174282074,
-0.3780309855937958,
-0.4907987415790558,
-0.3061332106590271,
-0.30630379915237427,
0.22666269540786743,
0.3198883831501007,
-0.640857458114624,
0.10105332732200623,
-0.016024082899093628,
-0.1997380405664444,
-0.23471425473690033,
0.07675516605377197,
0.09674833714962006,
0.17769655585289001,
0.046779900789260864,
-0.091949462890625,
-0.20288614928722382,
-0.07036078721284866,
-0.11170658469200134,
-0.053386516869068146,
-0.16224366426467896,
-0.04699071869254112,
0.1502443253993988,
0.1753891557455063,
-0.3635750710964203,
0.13258987665176392,
-0.49738049507141113,
-0.1254301220178604,
-0.47608187794685364,
0.06025038659572601,
0.31471043825149536,
0.1937379688024521,
0.3190416693687439,
0.1800253987312317,
0.0004229787737131119,
-0.2174243927001953,
0.17613394558429718,
-0.18475627899169922,
-0.13351981341838837,
-0.2566708028316498,
0.24962660670280457,
-0.29182732105255127,
-0.044220343232154846,
0.09593372792005539,
-0.052566446363925934,
0.16841574013233185,
0.09684658795595169,
0.10871409624814987,
0.007795399054884911,
0.021009229123592377,
0.08257277309894562,
0.29725831747055054,
0.0636642575263977,
-0.18530063331127167,
0.0696975439786911,
0.38390716910362244,
0.0971769392490387,
0.13140657544136047,
-0.2571956515312195,
0.3448213040828705,
-0.10688234865665436,
0.00003203749656677246,
0.3978753685951233,
0.16171835362911224,
-0.28939956426620483,
0.15616007149219513,
-0.10308778285980225,
0.1565573364496231,
-0.2774786353111267,
0.3243858218193054,
-0.04051395133137703,
0.04158584028482437,
0.10162331163883209,
0.33670899271965027,
0.2523675858974457,
0.05845243111252785,
0.3339831531047821,
0.18653620779514313,
0.1996397227048874,
0.38674598932266235,
-0.32364746928215027,
0.10586871206760406,
-0.7008695006370544,
0.07364163547754288,
-0.0000703856348991394,
-0.0661129355430603,
0.300856351852417,
0.10887756943702698,
0.02568432316184044,
0.003340326249599457,
-0.2885980010032654,
-0.008892618119716644,
-0.12784764170646667,
-0.1557435393333435,
-0.1520419865846634,
0.04880921542644501,
0.13508017361164093,
0.035247355699539185,
-0.2344052791595459,
-0.19908149540424347,
-0.2742214500904083,
0.1608579456806183,
0.25855252146720886,
0.09712620079517365,
0.17734237015247345,
0.02286294475197792,
0.11487634479999542,
-0.026497550308704376,
-0.23956423997879028,
-0.057745009660720825,
-0.5136404037475586,
-0.09907666593790054,
0.34573647379875183,
-0.02010432630777359,
0.08735048770904541,
0.1511550396680832,
0.18201708793640137,
0.15139788389205933,
0.3052730858325958,
0.10705431550741196,
-0.2939302623271942,
0.28399187326431274,
-0.08076474070549011,
-0.23189133405685425,
0.10092940181493759,
-0.0029199644923210144,
-0.01538906991481781,
-0.12727874517440796,
-0.14178426563739777,
-0.010507913306355476,
0.05530102550983429,
-0.06679295003414154,
-0.13647246360778809,
-0.4391780495643616,
0.11450238525867462,
-0.042341601103544235,
0.1652352511882782,
0.04230848327279091,
0.49039411544799805,
0.09768673777580261,
0.2387547492980957,
-0.4316914677619934,
0.02014075592160225,
0.34641918540000916,
0.2648147940635681,
0.3824140727519989,
-0.008525896817445755,
-0.024271445348858833,
0.05640111863613129,
-0.40885019302368164,
0.1377025842666626,
0.20878541469573975,
0.3114926815032959,
0.01994471624493599,
-0.2332526445388794,
0.12491720914840698,
-0.06819816678762436,
0.5730350613594055,
-0.24754130840301514,
0.2576638162136078,
0.3815860450267792,
-0.24729196727275848,
-0.3133662939071655,
0.20093947649002075,
-0.021237973123788834,
0.07515174150466919,
-0.3698142170906067,
0.30972498655319214,
0.06144759804010391,
0.02729247510433197,
-0.16798339784145355,
-0.19557404518127441,
0.19881553947925568,
0.5369485020637512,
0.4967280626296997,
0.19375765323638916,
-0.003343958407640457,
0.028840407729148865,
0.4734126925468445,
-0.3762742877006531,
0.11907590925693512,
-0.20652489364147186,
-0.030942238867282867,
-0.18037830293178558,
0.024703003466129303,
-0.5975057482719421,
-0.20224225521087646,
-0.36346834897994995,
0.04675498604774475,
-0.15678533911705017,
0.19143345952033997,
0.08119706064462662,
0.10098228603601456,
-0.10090972483158112,
0.02740279585123062,
0.3133312463760376,
0.25611162185668945,
-0.14451837539672852,
0.37934058904647827,
-0.39967116713523865,
-0.12392737716436386,
0.26557737588882446,
-0.2716207504272461,
-0.1795499324798584,
-0.0824190080165863,
0.3575587868690491,
0.1435212790966034,
-0.17715686559677124,
-0.02165902405977249,
0.09055376052856445,
0.3699928820133209,
-0.43608927726745605,
-0.13805146515369415,
0.04608835279941559,
-0.3514818549156189,
0.07301107048988342,
-0.14634239673614502,
0.45257487893104553,
-0.0052709756419062614,
-0.23065568506717682,
0.06801673769950867,
-0.28779932856559753
] |
https://github.com/huggingface/datasets/issues/2065 | Ideally it should be a parameter in `load_dataset` but I'm not sure how important it is for the users (considering only important things should go into `load_dataset` parameters) | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 28 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Ideally it should be a parameter in `load_dataset` but I'm not sure how important it is for the users (considering only important things should go into `load_dataset` parameters) | [
-0.13602730631828308,
0.23576846718788147,
-0.1311272382736206,
0.06138227880001068,
-0.0553659163415432,
0.09406507015228271,
0.3185192346572876,
0.1379297375679016,
-0.17317333817481995,
0.021259717643260956,
-0.026156680658459663,
0.02686028555035591,
0.06032547727227211,
-0.2584318518638611,
-0.04040447250008583,
0.0852191150188446,
0.14060264825820923,
0.046948034316301346,
0.04175786301493645,
-0.06367634236812592,
-0.12455429136753082,
-0.12614752352237701,
-0.04929262399673462,
-0.09561887383460999,
-0.20342373847961426,
-0.13657540082931519,
0.3221452236175537,
0.25067102909088135,
0.03736111521720886,
-0.11351335048675537,
0.27644991874694824,
0.5581905245780945,
0.12196265161037445,
0.0878673642873764,
-0.00011505591101013124,
-0.18164485692977905,
0.03819166123867035,
-0.13210123777389526,
0.032518792897462845,
0.19419369101524353,
-0.12037941813468933,
-0.13452866673469543,
-0.12162645906209946,
-0.15873900055885315,
-0.10578496009111404,
0.16504859924316406,
0.10448986291885376,
-0.6469730138778687,
0.44606614112854004,
0.18288910388946533,
0.18591858446598053,
-0.22565557062625885,
-0.3946874737739563,
0.0816633552312851,
0.2488647699356079,
0.10169829428195953,
-0.14621004462242126,
0.11210814118385315,
0.2739815413951874,
-0.15141203999519348,
-0.0044228024780750275,
0.000006489455699920654,
-0.31308650970458984,
0.05122585594654083,
0.1830155998468399,
-0.15878069400787354,
-0.271663635969162,
-0.5145752429962158,
0.14291243255138397,
0.07301241159439087,
0.7643357515335083,
-0.10474503040313721,
-0.4819134473800659,
-0.18477052450180054,
0.022309836000204086,
0.21338523924350739,
0.34787946939468384,
0.2973594069480896,
0.013678416609764099,
0.30959615111351013,
-0.49085837602615356,
-0.06570028513669968,
-0.19927838444709778,
-0.0027749966830015182,
0.18805155158042908,
-0.0513998344540596,
-0.03816407546401024,
0.11537516862154007,
-0.0052999891340732574,
-0.05313108116388321,
0.14054957032203674,
0.11952108144760132,
-0.3659525215625763,
0.3780117928981781,
-0.1778174489736557,
0.07182122766971588,
-0.19305060803890228,
0.429360032081604,
0.23331831395626068,
0.3262346088886261,
0.26674509048461914,
0.20923465490341187,
0.08265434205532074,
0.22483518719673157,
0.009439095854759216,
0.15193091332912445,
0.40545791387557983,
0.27429360151290894,
0.5419005155563354,
-0.3882971704006195,
-0.06627292186021805,
0.02908708155155182,
-0.028464140370488167,
-0.3923725485801697,
0.12600071728229523,
0.24526849389076233,
0.01282474398612976,
-0.21031725406646729,
0.18210214376449585,
0.0922430157661438,
-0.04931492730975151,
-0.2737070322036743,
0.030684493482112885,
0.3166085183620453,
0.05915670469403267,
-0.0872475802898407,
0.007686115801334381,
0.11340361833572388,
0.02464774250984192,
-0.4042433202266693,
-0.0034629851579666138,
-0.3750949800014496,
-0.35898807644844055,
0.46414071321487427,
0.457797110080719,
-0.2448267638683319,
0.07822573184967041,
0.21907499432563782,
0.16372904181480408,
-0.24047788977622986,
0.3377039134502411,
-0.04998241737484932,
0.35772454738616943,
0.40294450521469116,
0.2828165292739868,
0.3107587695121765,
0.03899462893605232,
0.03981201350688934,
-0.09940344095230103,
0.3312431573867798,
-0.36996978521347046,
-0.15438105165958405,
0.2854836583137512,
0.042013660073280334,
-0.03528386354446411,
0.2946746051311493,
-0.47517499327659607,
0.10141777992248535,
0.5583774447441101,
-0.15067800879478455,
0.3145247995853424,
0.26509320735931396,
-0.22191128134727478,
-0.45027709007263184,
-0.07729886472225189,
0.3010317087173462,
-0.12036547064781189,
-0.04772472381591797,
-0.034895531833171844,
-0.014997722581028938,
-0.007838170975446701,
0.28005728125572205,
-0.07757632434368134,
0.24296045303344727,
-0.07062098383903503,
0.1884450912475586,
0.5337371230125427,
-0.0477491095662117,
-0.575014591217041,
0.1883641481399536,
0.188914954662323,
-0.17983144521713257,
0.18912583589553833,
-0.015231810510158539,
0.1123889684677124,
-0.07762264460325241,
-0.0667916089296341,
0.35436394810676575,
0.22729608416557312,
0.26021862030029297,
0.17824840545654297,
0.1146012470126152,
0.045652005821466446,
-0.05400236323475838,
0.03777281194925308,
0.3933875560760498,
0.3831641376018524,
-0.3089504837989807,
0.17881464958190918,
-0.25111207365989685,
0.2620517313480377,
0.4649663269519806,
0.030700985342264175,
-0.13288553059101105,
-0.007730197161436081,
-0.04659911245107651,
-0.4959966540336609,
0.2730867266654968,
-0.11014717817306519,
-0.4933682680130005,
0.09161299467086792,
-0.42833006381988525,
-0.018319621682167053,
-0.27269604802131653,
-0.14480307698249817,
0.006464118137955666,
0.04308338463306427,
-0.009461946785449982,
-0.07963288575410843,
-0.360562801361084,
0.17586596310138702,
0.42979079484939575,
0.20504683256149292,
-0.03769880160689354,
-0.12881231307983398,
0.08651423454284668,
-0.0465494766831398,
-0.10049605369567871,
-0.2174244523048401,
-0.12288841605186462,
0.2693600356578827,
0.030232548713684082,
-0.27961838245391846,
0.2872934937477112,
0.16084998846054077,
0.0764014720916748,
-0.10817481577396393,
0.22955164313316345,
-0.025997988879680634,
0.09413343667984009,
0.03479638695716858,
-0.2608453929424286,
-0.08013790100812912,
-0.16378988325595856,
-0.24255387485027313,
0.36754119396209717,
-0.11977103352546692,
-0.0849231481552124,
-0.22202995419502258,
0.18642449378967285,
0.16167545318603516,
0.008741997182369232,
-0.16251540184020996,
-0.08696451783180237,
-0.012595444917678833,
0.19249434769153595,
0.40178894996643066,
0.24354137480258942,
0.010120093822479248,
-0.024199794977903366,
0.3577237129211426,
0.15390726923942566,
0.08204866945743561,
-0.0283465925604105,
-0.08045969903469086,
0.057816460728645325,
0.24341504275798798,
0.283321738243103,
0.309388130903244,
0.04716062918305397,
0.29912981390953064,
-0.24227860569953918,
0.31656521558761597,
-0.1635981947183609,
-0.010538876056671143,
-0.10634841024875641,
0.002509135752916336,
-0.11187706142663956,
-0.1996191293001175,
-0.050508052110672,
-0.01264210045337677,
0.28950148820877075,
0.10809508711099625,
0.05649808049201965,
-0.38993126153945923,
-0.07095315307378769,
-0.20651721954345703,
-0.11479487270116806,
0.29457423090934753,
-0.0922335833311081,
-0.5483311414718628,
-0.05364279821515083,
-0.2354535013437271,
0.22909873723983765,
-0.01103973388671875,
0.16331693530082703,
-0.25836181640625,
0.22868365049362183,
-0.07558107376098633,
-0.16485898196697235,
-0.2506802976131439,
0.24843467772006989,
0.046066079288721085,
-0.002424437552690506,
0.1846737563610077,
-0.5759433507919312,
0.16441215574741364,
-0.029603075236082077,
0.3323054313659668,
-0.2513522207736969,
0.09493835270404816,
-0.1534491628408432,
0.021090522408485413,
0.15089644491672516,
-0.4861029386520386,
0.12404517829418182,
-0.15866711735725403,
0.021837417036294937,
-0.17342816293239594,
-0.187453493475914,
-0.17317241430282593,
-0.021398920565843582,
0.027845926582813263,
-0.031098749488592148,
-0.3103383779525757,
-0.10544516891241074,
-0.1327475607395172,
-0.14335206151008606,
0.3912357687950134,
0.11559943854808807,
0.23248663544654846,
0.007976073771715164,
-0.21877822279930115,
-0.41173112392425537,
-0.21796222031116486,
0.30847591161727905,
-0.3918886184692383,
-0.618273138999939,
0.35137954354286194,
-0.5044494271278381,
-0.40094858407974243,
0.047519758343696594,
0.2151394784450531,
0.12408076971769333,
0.5143632292747498,
0.023878425359725952,
0.03365195542573929,
-0.14287547767162323,
0.1807020604610443,
-0.3144254982471466,
0.09165933728218079,
0.015675675123929977,
0.04900683835148811,
0.19609637558460236,
-0.06676021963357925,
-0.16998276114463806,
0.05472451075911522,
-0.0005290992558002472,
-0.22207462787628174,
0.17491227388381958,
0.13274088501930237,
0.06348191201686859,
0.784999430179596,
0.3883151710033417,
0.3106004297733307,
0.31299278140068054,
0.2840477228164673,
0.6152812838554382,
0.13492171466350555,
-0.09277290105819702,
0.13802704215049744,
0.01942027360200882,
-0.09256471693515778,
0.1346922516822815,
0.023239873349666595,
-0.22102570533752441,
-0.016621224582195282,
-0.03666212782263756,
-0.30929139256477356,
-0.3717311918735504,
-0.2026936262845993,
-0.31591784954071045,
0.1572171449661255,
0.06422591954469681,
0.12353304773569107,
-0.29875731468200684,
-0.19087909162044525,
-0.016998354345560074,
0.3514692485332489,
0.23010604083538055,
0.2705022394657135,
-0.33799776434898376,
-0.02957615815103054,
-0.30262234807014465,
0.3595714867115021,
-0.035289399325847626,
0.4659917950630188,
-0.26626527309417725,
0.2106817215681076,
0.16733233630657196,
0.3745911419391632,
0.40726178884506226,
-0.4263468384742737,
0.2426745593547821,
-0.05411313846707344,
0.20291736721992493,
0.2937230169773102,
-0.2115204930305481,
0.462421178817749,
0.47302839159965515,
-0.03995095193386078,
0.08543990552425385,
0.12794385850429535,
-0.17486794292926788,
-0.4338360130786896,
-0.22166381776332855,
-0.14412057399749756,
-0.23560768365859985,
0.08513911068439484,
0.18468737602233887,
-0.051742468029260635,
-0.10392971336841583,
0.32523807883262634,
-0.3153507709503174,
-0.17910857498645782,
-0.05113198608160019,
-0.18276596069335938,
0.18007351458072662,
0.09176518768072128,
0.03563439100980759,
0.3379081189632416,
0.09019431471824646,
-0.04779425263404846,
0.42140471935272217,
0.04119882732629776,
0.12376078963279724,
0.3518938422203064,
-0.1940191090106964,
0.33216971158981323,
-0.16830448806285858,
-0.25591179728507996,
0.46732422709465027,
-0.03537159413099289,
-0.43216392397880554,
-0.12901470065116882,
0.12494631111621857,
-0.23340943455696106,
-0.28912293910980225,
-0.021047160029411316,
-0.06850482523441315,
0.005854617804288864,
-0.2907111942768097,
-0.6374564170837402,
0.22265377640724182,
0.5671570301055908,
-0.3972542881965637,
0.32894065976142883,
-0.36935028433799744,
-0.379777729511261,
0.10752591490745544,
0.1092870905995369,
0.7499825954437256,
-0.20781072974205017,
0.3130449950695038,
-0.45768284797668457,
0.1495300829410553,
-0.014685414731502533,
-0.3989049196243286,
0.04197809845209122,
-0.41422370076179504,
-0.3809761703014374,
-0.14496006071567535,
-0.11035212129354477,
0.04861617088317871,
0.49177369475364685,
0.03187023848295212,
0.14249202609062195,
-0.11799215525388718,
-0.09488202631473541,
-0.14610105752944946,
-0.1570741981267929,
-0.07805080711841583,
-0.33699822425842285,
0.2686448097229004,
0.10369326919317245,
-0.2924656271934509,
0.03831933066248894,
-0.025842731818556786,
0.0023595914244651794,
-0.16954073309898376,
0.23919358849525452,
-0.21511515974998474,
0.04280104488134384,
-0.5830397605895996,
0.027675438672304153,
-0.1792508065700531,
0.003408476710319519,
0.17122644186019897,
0.384939968585968,
0.22640185058116913,
0.3392249345779419,
-0.013463059440255165,
0.025763656944036484,
0.23697957396507263,
0.16994749009609222,
-0.28794795274734497,
0.134604811668396,
0.28973889350891113,
0.17683839797973633,
0.0375642329454422,
-0.19058313965797424,
-0.17056921124458313,
-0.296084463596344,
-0.30600273609161377,
0.20485511422157288,
0.02040577307343483,
-0.2292105108499527,
-0.041102126240730286,
-0.1447502225637436,
0.13068895041942596,
0.08932755887508392,
0.06525229662656784,
0.5086286067962646,
0.008481930941343307,
0.5539224147796631,
-0.26218223571777344,
-0.36463093757629395,
0.05029990151524544,
0.552265465259552,
-0.047782111912965775,
-0.22104312479496002,
0.14841997623443604,
-0.3808462619781494,
-0.21666531264781952,
-0.14911103248596191,
0.22139813005924225,
0.1041221171617508,
-0.11338803172111511,
-0.07027008384466171,
0.05289119482040405,
-0.06423524022102356,
0.17087770998477936,
-0.4494757056236267,
0.04657073691487312,
0.10838334262371063,
0.13822512328624725,
-0.3907185196876526,
-0.42874228954315186,
-0.28642743825912476,
-0.35782796144485474,
0.20639312267303467,
0.30533459782600403,
-0.5955713987350464,
0.10725070536136627,
0.041354045271873474,
-0.19101795554161072,
-0.24284107983112335,
0.06657984852790833,
0.0913415253162384,
0.24664254486560822,
0.10412685573101044,
-0.11786806583404541,
-0.16241545975208282,
-0.1032344251871109,
-0.08166488260030746,
-0.028734561055898666,
-0.1598638892173767,
-0.0934285894036293,
0.1571209579706192,
0.1877712607383728,
-0.24601249396800995,
0.08207134157419205,
-0.4838792085647583,
-0.1269894242286682,
-0.4443708062171936,
0.05976095795631409,
0.2401220053434372,
0.2697981894016266,
0.3521521985530853,
0.2059803158044815,
0.027986545115709305,
-0.19351617991924286,
0.23006513714790344,
-0.13042664527893066,
-0.16756057739257812,
-0.2544032633304596,
0.25287362933158875,
-0.27881476283073425,
-0.10303673148155212,
0.013167206197977066,
-0.08073052763938904,
0.17690539360046387,
0.03763872757554054,
0.08238352835178375,
0.017030417919158936,
0.07687307894229889,
0.14473631978034973,
0.24026164412498474,
0.027330899611115456,
-0.13486629724502563,
0.0675528421998024,
0.32562386989593506,
0.08256895840167999,
0.16619277000427246,
-0.23734429478645325,
0.3468438684940338,
-0.13270217180252075,
0.017686091363430023,
0.3570060431957245,
0.21006733179092407,
-0.21025854349136353,
0.1317545771598816,
-0.14890128374099731,
0.09543388336896896,
-0.3153632581233978,
0.34320130944252014,
-0.04719581827521324,
0.11398434638977051,
0.11444204300642014,
0.4226001799106598,
0.271716445684433,
0.06564796715974808,
0.3585306406021118,
0.21712221205234528,
0.22837714850902557,
0.36186331510543823,
-0.3181796371936798,
0.08361677825450897,
-0.6983568668365479,
0.11383451521396637,
0.026525288820266724,
-0.040522944182157516,
0.30497732758522034,
0.08281406760215759,
0.07336673140525818,
-0.0011718422174453735,
-0.24862581491470337,
-0.032970793545246124,
-0.12350627034902573,
-0.13068389892578125,
-0.20327335596084595,
0.010621130466461182,
0.08069154620170593,
0.031384095549583435,
-0.27322977781295776,
-0.1574331670999527,
-0.24298256635665894,
0.21377155184745789,
0.2132883220911026,
0.04282306134700775,
0.2503814697265625,
0.025199919939041138,
0.15015605092048645,
-0.03114468976855278,
-0.17002977430820465,
-0.041819389909505844,
-0.577183723449707,
-0.1135217547416687,
0.28091302514076233,
-0.025245385244488716,
0.018653597682714462,
0.11693736910820007,
0.17245207726955414,
0.11156386137008667,
0.3579920530319214,
0.07174849510192871,
-0.29095685482025146,
0.3410484492778778,
-0.0630938708782196,
-0.2622013986110687,
0.07155635952949524,
0.01196516677737236,
-0.031920816749334335,
-0.10767203569412231,
-0.12333882600069046,
0.05852913111448288,
0.07323859632015228,
-0.033272963017225266,
-0.169560045003891,
-0.4606761336326599,
0.08838604390621185,
-0.023055560886859894,
0.1516731232404709,
0.05338609218597412,
0.5730988383293152,
0.07576757669448853,
0.20852503180503845,
-0.48130086064338684,
0.02426043525338173,
0.39278432726860046,
0.33337169885635376,
0.33984866738319397,
-0.034554868936538696,
0.02037946879863739,
0.04888245463371277,
-0.41888952255249023,
0.1595374345779419,
0.2577321231365204,
0.4444582462310791,
0.048987045884132385,
-0.18772763013839722,
0.07865268737077713,
-0.08044465631246567,
0.5692909955978394,
-0.2544925808906555,
0.31341391801834106,
0.33770620822906494,
-0.199533611536026,
-0.32160207629203796,
0.11964944005012512,
0.0005236733704805374,
0.07971157878637314,
-0.3342706859111786,
0.28159451484680176,
0.11482498049736023,
0.037395939230918884,
-0.23286163806915283,
-0.23094624280929565,
0.20432893931865692,
0.5594165325164795,
0.47421106696128845,
0.17282497882843018,
-0.018482010811567307,
0.004315339028835297,
0.44836944341659546,
-0.3441617488861084,
0.13362455368041992,
-0.14622965455055237,
-0.10852473974227905,
-0.21921667456626892,
-0.015867281705141068,
-0.5714676380157471,
-0.129058837890625,
-0.38294902443885803,
0.006542764604091644,
-0.12747424840927124,
0.2369355708360672,
0.023130476474761963,
0.005163885653018951,
-0.10581450164318085,
-0.003986429423093796,
0.29902082681655884,
0.23565201461315155,
-0.1778026521205902,
0.35019242763519287,
-0.36551570892333984,
-0.07331246137619019,
0.2907477617263794,
-0.287326455116272,
-0.20612205564975739,
-0.02131803333759308,
0.3530809283256531,
0.10355538129806519,
-0.1624487191438675,
0.003414258360862732,
0.13045307993888855,
0.39351168274879456,
-0.4170917868614197,
-0.06326204538345337,
0.07567401975393295,
-0.4133787453174591,
0.10534484684467316,
-0.11921731382608414,
0.4856014549732208,
-0.00026872940361499786,
-0.1820439100265503,
0.05509369820356369,
-0.2337190955877304
] |
https://github.com/huggingface/datasets/issues/2065 | I think it's fairly important; for context, our team uses a shared file-system where many folks run experiments based on datasets that are cached by other users.
For example, I might start a training run, downloading a dataset. Then, a couple of days later, a collaborator using the same repository might want to use the same dataset on the same shared filesystem, but won't be able to under the default permissions.
Being able to specify directly in the top-level `load_dataset()` call seems important, but an equally valid option would be to just inherit from the running user's `umask` (this should probably be the default anyway).
So basically, argument that takes a custom set of permissions, and by default, use the running user's umask! | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 123 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
I think it's fairly important; for context, our team uses a shared file-system where many folks run experiments based on datasets that are cached by other users.
For example, I might start a training run, downloading a dataset. Then, a couple of days later, a collaborator using the same repository might want to use the same dataset on the same shared filesystem, but won't be able to under the default permissions.
Being able to specify directly in the top-level `load_dataset()` call seems important, but an equally valid option would be to just inherit from the running user's `umask` (this should probably be the default anyway).
So basically, argument that takes a custom set of permissions, and by default, use the running user's umask! | [
-0.13351938128471375,
0.26387014985084534,
-0.08877980709075928,
-0.013650387525558472,
-0.04831986874341965,
0.1047767698764801,
0.35522204637527466,
0.11916099488735199,
-0.16586026549339294,
0.037884972989559174,
-0.1065237820148468,
-0.024867119267582893,
-0.019191958010196686,
-0.3137134313583374,
-0.11798015236854553,
0.1778148114681244,
0.12633296847343445,
0.08586353808641434,
0.06025131419301033,
-0.10857057571411133,
-0.10097800195217133,
-0.138911172747612,
0.0054336488246917725,
-0.12483042478561401,
-0.21588215231895447,
-0.1946880966424942,
0.23527365922927856,
0.28539901971817017,
0.0203847736120224,
-0.09336318075656891,
0.32889270782470703,
0.5935893058776855,
0.10814038664102554,
0.12022291123867035,
-0.00011267023364780471,
-0.1727907508611679,
-0.019603639841079712,
-0.13695600628852844,
-0.06871390342712402,
0.12229505926370621,
-0.005035765469074249,
-0.10523251444101334,
-0.08020638674497604,
-0.1873367577791214,
-0.08841594308614731,
0.18419358134269714,
0.14396482706069946,
-0.7255417704582214,
0.48941147327423096,
0.09566275775432587,
0.1734696626663208,
-0.18604950606822968,
-0.39025938510894775,
0.05281570181250572,
0.19768698513507843,
0.02507321909070015,
-0.11621010303497314,
0.1660548895597458,
0.33358511328697205,
-0.1733826994895935,
-0.0796370804309845,
-0.004756249487400055,
-0.39493247866630554,
0.09349633008241653,
0.1791541576385498,
-0.16847266256809235,
-0.2764594554901123,
-0.46201515197753906,
0.09160799533128738,
0.15910813212394714,
0.6701869964599609,
-0.18893200159072876,
-0.4884358048439026,
-0.2769804000854492,
0.0945892184972763,
0.2630770802497864,
0.3322439193725586,
0.2956198751926422,
-0.07024676352739334,
0.29430118203163147,
-0.49629390239715576,
0.024975791573524475,
-0.11430725455284119,
0.07115887105464935,
0.24404367804527283,
-0.07765155285596848,
-0.022133570164442062,
0.06353233754634857,
0.05890986695885658,
-0.0742982029914856,
0.12987594306468964,
0.05135146901011467,
-0.2814575731754303,
0.33800357580184937,
-0.14418764412403107,
0.06838571280241013,
-0.15463140606880188,
0.32039517164230347,
0.25610291957855225,
0.3386804163455963,
0.25949519872665405,
0.20574422180652618,
0.026085197925567627,
0.273296982049942,
0.036469925194978714,
0.14713943004608154,
0.3354700207710266,
0.29815158247947693,
0.5131572484970093,
-0.3563099503517151,
-0.07895989716053009,
0.08036470413208008,
0.0015173032879829407,
-0.3296957314014435,
0.05325216054916382,
0.27542051672935486,
-0.03482099249958992,
-0.16845685243606567,
0.19729623198509216,
0.04338765889406204,
-0.13758517801761627,
-0.217500701546669,
0.0006879940629005432,
0.22186367213726044,
0.14358016848564148,
-0.041934601962566376,
0.050696961581707,
0.15690013766288757,
-0.0298382006585598,
-0.3474835753440857,
-0.002343781292438507,
-0.3836153745651245,
-0.3437674045562744,
0.45384275913238525,
0.5025843977928162,
-0.15039366483688354,
0.02598179131746292,
0.22861900925636292,
0.1914965808391571,
-0.17621517181396484,
0.35552120208740234,
-0.07030440866947174,
0.36952775716781616,
0.29530268907546997,
0.31043118238449097,
0.3790476322174072,
0.13479962944984436,
-0.03847888857126236,
-0.1857956349849701,
0.2925342917442322,
-0.3189616799354553,
-0.1988266408443451,
0.3306159973144531,
0.025236353278160095,
-0.12940548360347748,
0.349123477935791,
-0.4353012144565582,
0.05392790958285332,
0.48920485377311707,
-0.1339070051908493,
0.3949006199836731,
0.22849968075752258,
-0.16042540967464447,
-0.4301353991031647,
-0.09706196188926697,
0.3187616467475891,
-0.006824791431427002,
-0.0861123576760292,
-0.097091443836689,
-0.0044263508170843124,
-0.104623943567276,
0.3345024287700653,
-0.08757809549570084,
0.18198806047439575,
-0.07394623011350632,
0.1962854564189911,
0.43084782361984253,
-0.11925575137138367,
-0.562524139881134,
0.08564641326665878,
0.20815381407737732,
0.020019784569740295,
0.17982575297355652,
0.03329002112150192,
0.09281226992607117,
-0.1795363873243332,
-0.013074047863483429,
0.37487322092056274,
0.1747639775276184,
0.23365093767642975,
0.1346784383058548,
-0.021119017153978348,
-0.010762489400804043,
-0.07375045865774155,
0.016223356127738953,
0.29220545291900635,
0.3899528384208679,
-0.2811439037322998,
0.23321965336799622,
-0.34695133566856384,
0.2264993041753769,
0.3875043988227844,
0.08866854012012482,
-0.03212708234786987,
-0.07759222388267517,
-0.012540362775325775,
-0.46494945883750916,
0.3139137029647827,
-0.019517861306667328,
-0.37431100010871887,
0.07815249264240265,
-0.4427522122859955,
0.15277333557605743,
-0.30589592456817627,
-0.0785415917634964,
-0.059009190648794174,
0.06844012439250946,
-0.016934916377067566,
-0.06267260015010834,
-0.28712671995162964,
0.13865171372890472,
0.39767754077911377,
0.15690478682518005,
-0.0005138330161571503,
-0.18333673477172852,
0.11588771641254425,
-0.02073676511645317,
-0.09010903537273407,
-0.20965968072414398,
-0.004983391612768173,
0.21074464917182922,
0.05387478694319725,
-0.2475263476371765,
0.31813758611679077,
0.13600212335586548,
0.0878940150141716,
-0.20362317562103271,
0.31332069635391235,
-0.05959150940179825,
0.14397819340229034,
0.08008954674005508,
-0.2660571336746216,
-0.08184675127267838,
-0.13202722370624542,
-0.28210633993148804,
0.42146509885787964,
-0.19823838770389557,
-0.09842934459447861,
-0.2274123877286911,
0.19852012395858765,
0.13586264848709106,
-0.05311037227511406,
-0.16890984773635864,
-0.10185354948043823,
0.0592443123459816,
0.23334167897701263,
0.43524378538131714,
0.24166345596313477,
0.08636625111103058,
-0.07348264753818512,
0.29693883657455444,
0.16679205000400543,
0.13916441798210144,
-0.02486148290336132,
-0.11738627403974533,
0.07132483273744583,
0.26807552576065063,
0.3193114995956421,
0.26272231340408325,
0.08150768280029297,
0.302986204624176,
-0.17940446734428406,
0.36176979541778564,
-0.1280275285243988,
-0.053313374519348145,
-0.06382858008146286,
-0.009618788957595825,
-0.15162348747253418,
-0.20044559240341187,
0.03831417113542557,
-0.010299444198608398,
0.28322452306747437,
0.013939283788204193,
0.03105851821601391,
-0.35337215662002563,
-0.08511132746934891,
-0.15696614980697632,
-0.14395681023597717,
0.31331032514572144,
-0.04096851870417595,
-0.5186011791229248,
-0.03372492641210556,
-0.2119196355342865,
0.29017966985702515,
-0.06791798770427704,
0.20439833402633667,
-0.29761797189712524,
0.272285521030426,
-0.14647167921066284,
-0.21009360253810883,
-0.18332064151763916,
0.1580689698457718,
0.04977882280945778,
0.01904618740081787,
0.315629780292511,
-0.5992066860198975,
0.1461789608001709,
-0.001479901373386383,
0.25872910022735596,
-0.177886500954628,
0.07171504199504852,
-0.18567833304405212,
0.039468031376600266,
0.08482281118631363,
-0.44045335054397583,
0.08270533382892609,
-0.16660448908805847,
-0.05521845817565918,
-0.14951841533184052,
-0.2587296962738037,
-0.1490294635295868,
0.016552448272705078,
0.049150921404361725,
0.012648869305849075,
-0.2662489116191864,
-0.07434463500976562,
-0.16460424661636353,
-0.1609421968460083,
0.5063877701759338,
0.1258130520582199,
0.21807566285133362,
0.01777055487036705,
-0.20475776493549347,
-0.4433535933494568,
-0.2076890617609024,
0.30967843532562256,
-0.32853758335113525,
-0.5994925498962402,
0.31292253732681274,
-0.43929165601730347,
-0.29628461599349976,
-0.0024908483028411865,
0.11771765351295471,
0.0771656334400177,
0.5081127285957336,
0.014137260615825653,
-0.09991327673196793,
-0.1493714302778244,
0.22393986582756042,
-0.22639676928520203,
0.13150161504745483,
0.00923149287700653,
0.08067759871482849,
0.1833282709121704,
-0.02167654037475586,
-0.10745567083358765,
0.05994367599487305,
-0.0806836485862732,
-0.35608041286468506,
0.1849568486213684,
0.04483949765563011,
0.22105513513088226,
0.6883471608161926,
0.4353191554546356,
0.30875369906425476,
0.19470252096652985,
0.331105500459671,
0.6988670229911804,
0.07147069275379181,
-0.09679809957742691,
0.16014008224010468,
-0.059936538338661194,
-0.1391473412513733,
0.15302926301956177,
0.026865776628255844,
-0.15990355610847473,
0.03622820973396301,
0.020925559103488922,
-0.2974900007247925,
-0.5224306583404541,
-0.11706677824258804,
-0.3631199896335602,
0.07461968064308167,
0.0841093361377716,
0.09509611129760742,
-0.3080647587776184,
-0.22947773337364197,
0.021505724638700485,
0.35995960235595703,
0.1409599483013153,
0.35384976863861084,
-0.45798492431640625,
0.09316776692867279,
-0.25014862418174744,
0.36695486307144165,
-0.03592940419912338,
0.42486143112182617,
-0.16445693373680115,
0.17303572595119476,
0.12089106440544128,
0.36936891078948975,
0.28320690989494324,
-0.3664074242115021,
0.24122905731201172,
-0.0656469389796257,
0.13117796182632446,
0.3079436421394348,
-0.20378659665584564,
0.42636382579803467,
0.3683973252773285,
0.002461947500705719,
0.09108205139636993,
0.0815366804599762,
-0.12990358471870422,
-0.4899199604988098,
-0.1961277276277542,
-0.09341848641633987,
-0.1836802214384079,
0.1793939769268036,
0.1602243334054947,
-0.14381739497184753,
-0.10863976180553436,
0.2946445345878601,
-0.36958158016204834,
-0.20430144667625427,
0.06765791773796082,
-0.23850417137145996,
0.20181269943714142,
0.1579187512397766,
-0.000550832599401474,
0.25363755226135254,
0.00717867910861969,
-0.04590170830488205,
0.5038202404975891,
-0.032504115253686905,
0.22366079688072205,
0.3921172618865967,
-0.3262411653995514,
0.3009209930896759,
-0.25349706411361694,
-0.23266813158988953,
0.34819167852401733,
0.010959859937429428,
-0.33784228563308716,
-0.16362833976745605,
0.15951231122016907,
-0.21597394347190857,
-0.35877376794815063,
-0.06276045739650726,
-0.13377724587917328,
0.024637795984745026,
-0.22042831778526306,
-0.7126749753952026,
0.1923997700214386,
0.6057901382446289,
-0.3955472707748413,
0.2806619703769684,
-0.27259624004364014,
-0.37733855843544006,
0.16799414157867432,
0.11623087525367737,
0.7774203419685364,
-0.23494750261306763,
0.43849921226501465,
-0.43472862243652344,
0.12212596833705902,
0.06753231585025787,
-0.5041329264640808,
0.08521316200494766,
-0.40164196491241455,
-0.33069390058517456,
-0.12110376358032227,
-0.11567851155996323,
0.060007818043231964,
0.4919949471950531,
0.0954437404870987,
0.12535569071769714,
-0.02638014405965805,
-0.08192223310470581,
-0.11302179843187332,
-0.20941728353500366,
-0.1573782116174698,
-0.35983479022979736,
0.2407253235578537,
0.11782310903072357,
-0.22395214438438416,
0.0005101338028907776,
0.017883606255054474,
0.025251146405935287,
-0.19550707936286926,
0.1852472722530365,
-0.24853995442390442,
0.02305511385202408,
-0.6235012412071228,
0.05641207471489906,
-0.14691980183124542,
0.011174455285072327,
0.14157694578170776,
0.3558233976364136,
0.2799707055091858,
0.3346354365348816,
0.00786285288631916,
0.006831701844930649,
0.26419204473495483,
0.22424620389938354,
-0.24965991079807281,
0.043700218200683594,
0.35972341895103455,
0.22903263568878174,
0.13695089519023895,
-0.18502575159072876,
-0.14168493449687958,
-0.3284044861793518,
-0.301707923412323,
0.18121182918548584,
0.08327040076255798,
-0.2500024437904358,
-0.03949552774429321,
-0.10445383191108704,
0.10080871731042862,
0.10584662854671478,
0.04665222391486168,
0.46020910143852234,
0.02221335470676422,
0.522480845451355,
-0.3837366998195648,
-0.32559460401535034,
0.05446046590805054,
0.575596809387207,
-0.012459520250558853,
-0.2675659954547882,
0.13890624046325684,
-0.35798180103302,
-0.21121609210968018,
-0.12378720939159393,
0.20738708972930908,
0.15841102600097656,
-0.1332010179758072,
-0.1082579493522644,
0.007202804088592529,
-0.10467539727687836,
0.21624194085597992,
-0.466497540473938,
0.10118983685970306,
0.12620368599891663,
0.22424495220184326,
-0.29777267575263977,
-0.3513052463531494,
-0.23997128009796143,
-0.28130292892456055,
0.275471031665802,
0.3540194034576416,
-0.5409367084503174,
0.03508114069700241,
0.05114588141441345,
-0.2095494419336319,
-0.1660880148410797,
0.09070171415805817,
0.10389013588428497,
0.27784186601638794,
0.1022331714630127,
-0.08266010880470276,
-0.2200218141078949,
-0.10283637046813965,
-0.06922879070043564,
-0.06799787282943726,
-0.15639884769916534,
-0.10394123941659927,
0.13904352486133575,
0.19004637002944946,
-0.33337491750717163,
0.1476510763168335,
-0.44028523564338684,
-0.09770882874727249,
-0.5249468088150024,
0.07263123989105225,
0.36007800698280334,
0.21483942866325378,
0.30336806178092957,
0.1483829915523529,
0.10281890630722046,
-0.25634053349494934,
0.20475897192955017,
-0.1927189826965332,
-0.15735569596290588,
-0.22317007184028625,
0.2588319480419159,
-0.2905416786670685,
-0.03442366421222687,
0.08842463791370392,
-0.03164789453148842,
0.24693994224071503,
0.07837606966495514,
0.12196105718612671,
0.03826475888490677,
0.03282269835472107,
0.11217181384563446,
0.2635776698589325,
-0.03737236559391022,
-0.17414341866970062,
0.029092058539390564,
0.35940980911254883,
0.0863359272480011,
0.16639353334903717,
-0.22129188477993011,
0.30226150155067444,
-0.12140476703643799,
0.044468432664871216,
0.4241456389427185,
0.20056577026844025,
-0.2796056270599365,
0.04106678068637848,
-0.18484467267990112,
0.13998055458068848,
-0.2930701971054077,
0.4141855537891388,
-0.044921088963747025,
0.11246217787265778,
0.026001427322626114,
0.256804883480072,
0.27287763357162476,
0.1806207299232483,
0.39871153235435486,
0.16788791120052338,
0.22691509127616882,
0.32465073466300964,
-0.38822224736213684,
0.10904321074485779,
-0.7499382495880127,
0.11600072681903839,
0.06431664526462555,
0.05526783689856529,
0.29247063398361206,
0.0047918036580085754,
0.03241818770766258,
0.03395134210586548,
-0.24219579994678497,
0.07316957414150238,
-0.19516520202159882,
-0.10713046789169312,
-0.123128242790699,
0.09842561930418015,
0.06174549460411072,
-0.05804431438446045,
-0.27583080530166626,
-0.21017977595329285,
-0.27378541231155396,
0.2228967249393463,
0.2543887197971344,
0.10763131082057953,
0.17955151200294495,
-0.035410597920417786,
0.16808229684829712,
-0.0305829718708992,
-0.25263717770576477,
-0.13559547066688538,
-0.443983793258667,
-0.17976927757263184,
0.2402365654706955,
0.04287336766719818,
0.1080203503370285,
0.06999042630195618,
0.2003016471862793,
0.1465200036764145,
0.31044137477874756,
0.14608947932720184,
-0.31919065117836,
0.248001366853714,
-0.06395278871059418,
-0.29437875747680664,
0.031707972288131714,
0.03256651759147644,
-0.03881186619400978,
-0.0634446069598198,
-0.1798166036605835,
-0.06884944438934326,
-0.021503176540136337,
-0.055378928780555725,
-0.08784766495227814,
-0.39176198840141296,
0.14574000239372253,
0.0017107315361499786,
0.2160777449607849,
0.07255034148693085,
0.5099500417709351,
0.11272776126861572,
0.20343340933322906,
-0.4516065716743469,
0.03930853679776192,
0.47751981019973755,
0.2224104404449463,
0.39283138513565063,
-0.17547938227653503,
0.019479624927043915,
0.04813358187675476,
-0.40987104177474976,
0.16935139894485474,
0.1614997386932373,
0.36723360419273376,
-0.050283730030059814,
-0.24096280336380005,
0.213796928524971,
-0.03420431166887283,
0.43390506505966187,
-0.20058295130729675,
0.2635148763656616,
0.31188490986824036,
-0.18935951590538025,
-0.3202569782733917,
0.15473167598247528,
-0.12538115680217743,
0.10534200072288513,
-0.3782764673233032,
0.16745297610759735,
0.07022970914840698,
0.06249991059303284,
-0.140025332570076,
-0.20132172107696533,
0.24470379948616028,
0.5015898942947388,
0.445853590965271,
0.2797785997390747,
-0.051332078874111176,
0.04556472599506378,
0.3394957482814789,
-0.33622440695762634,
0.17568691074848175,
-0.1920134723186493,
-0.08336159586906433,
-0.24300456047058105,
0.009313233196735382,
-0.693760335445404,
-0.12205676734447479,
-0.3894575834274292,
-0.024661129340529442,
-0.11877197027206421,
0.1842208206653595,
-0.01803339272737503,
0.07513148337602615,
-0.14447909593582153,
0.07824897766113281,
0.3316345810890198,
0.349375456571579,
-0.15861818194389343,
0.45143982768058777,
-0.4411897659301758,
-0.018855873495340347,
0.2554279863834381,
-0.3255094885826111,
-0.1499677449464798,
-0.09593404829502106,
0.3641745448112488,
0.11326220631599426,
-0.13134169578552246,
0.027132347226142883,
0.13046613335609436,
0.36076173186302185,
-0.3851849138736725,
-0.10990287363529205,
-0.011672088876366615,
-0.3629738986492157,
-0.02491404116153717,
-0.11872638761997223,
0.39345821738243103,
0.018643002957105637,
-0.24286246299743652,
0.13579648733139038,
-0.2689586877822876
] |
https://github.com/huggingface/datasets/issues/2065 | Maybe let's start by defaulting to the user's umask !
Do you want to give it a try @bhavitvyamalik ? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 20 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Maybe let's start by defaulting to the user's umask !
Do you want to give it a try @bhavitvyamalik ? | [
-0.18029531836509705,
0.19892792403697968,
-0.10556546598672867,
-0.08582402765750885,
0.01097940281033516,
0.09721396863460541,
0.30967971682548523,
0.07195933163166046,
-0.1649409979581833,
0.08733582496643066,
-0.08067430555820465,
0.0011490806937217712,
0.06524594873189926,
-0.2650192379951477,
-0.05875411257147789,
0.13908016681671143,
0.15448816120624542,
-0.008077792823314667,
-0.010348599404096603,
-0.0530848354101181,
-0.12471135705709457,
-0.08110959827899933,
-0.09391050785779953,
-0.02448171377182007,
-0.32020995020866394,
-0.21046175062656403,
0.27092576026916504,
0.2456601858139038,
-0.10974372923374176,
-0.17014674842357635,
0.25312453508377075,
0.5244039297103882,
0.09508027136325836,
0.13622230291366577,
-0.00011029202141799033,
-0.22031772136688232,
0.05720997601747513,
-0.09839387238025665,
0.07178445905447006,
0.18362730741500854,
-0.008160658180713654,
-0.05786485970020294,
-0.15265032649040222,
-0.1333855390548706,
-0.19021755456924438,
0.21768030524253845,
0.13477517664432526,
-0.6735301613807678,
0.37578681111335754,
0.18010632693767548,
0.22847649455070496,
-0.16688844561576843,
-0.2878265976905823,
0.04124382883310318,
0.2450852245092392,
0.05361439660191536,
-0.16401559114456177,
0.012387115508317947,
0.35009294748306274,
-0.21604421734809875,
-0.03958458453416824,
0.033809687942266464,
-0.27679765224456787,
0.09187217056751251,
0.11124111711978912,
-0.0900149717926979,
-0.2701267600059509,
-0.5084247589111328,
0.16643725335597992,
0.09999854862689972,
0.7544164657592773,
-0.1295633614063263,
-0.4987756013870239,
-0.046583108603954315,
0.10720563679933548,
0.3296329081058502,
0.3315172791481018,
0.3367736339569092,
-0.0377412885427475,
0.30570366978645325,
-0.5110288858413696,
0.07167419791221619,
-0.15498074889183044,
0.05145672708749771,
0.2104095220565796,
0.01081530749797821,
-0.03958968073129654,
0.06902430951595306,
0.006346692331135273,
-0.16615737974643707,
0.17081202566623688,
0.10887417197227478,
-0.33579903841018677,
0.34993040561676025,
-0.13664522767066956,
0.023440159857273102,
-0.16858915984630585,
0.39939892292022705,
0.20737385749816895,
0.3033180832862854,
0.25167757272720337,
0.24963970482349396,
0.11499063670635223,
0.2281816303730011,
-0.04684896022081375,
0.19806620478630066,
0.4191332161426544,
0.27824297547340393,
0.6045433878898621,
-0.2715252637863159,
-0.10656122863292694,
0.014116313308477402,
0.09089025110006332,
-0.3845100402832031,
0.043096303939819336,
0.3155742287635803,
0.03475569188594818,
-0.23127952218055725,
0.20053309202194214,
0.07536858320236206,
-0.10988251864910126,
-0.19897833466529846,
0.01718864217400551,
0.3396972417831421,
0.11323655396699905,
-0.09138844907283783,
0.09451963007450104,
0.18758532404899597,
-0.02539787068963051,
-0.3473280668258667,
-0.028196901082992554,
-0.31118208169937134,
-0.33067458868026733,
0.4159272313117981,
0.4743273854255676,
-0.10798564553260803,
0.015020765364170074,
0.24906688928604126,
0.1299450397491455,
-0.19098930060863495,
0.34146949648857117,
-0.01594851166009903,
0.4194335341453552,
0.3074035048484802,
0.2932574450969696,
0.2807786762714386,
0.08494743704795837,
-0.025000855326652527,
-0.10676628351211548,
0.3163595199584961,
-0.26796120405197144,
-0.18258248269557953,
0.3279307186603546,
0.09496550261974335,
0.014849536120891571,
0.2611830234527588,
-0.317710280418396,
0.05779719352722168,
0.4880382716655731,
-0.06695462763309479,
0.40801751613616943,
0.31073805689811707,
-0.13418643176555634,
-0.40940794348716736,
-0.06297075003385544,
0.2717764973640442,
-0.08655857294797897,
-0.008627265691757202,
-0.10934419184923172,
-0.03929595649242401,
-0.05114289000630379,
0.35054948925971985,
-0.03630392625927925,
0.16799619793891907,
-0.1379118114709854,
0.21797317266464233,
0.4348883330821991,
-0.07851878553628922,
-0.5814696550369263,
0.08013154566287994,
0.19611436128616333,
-0.12391679733991623,
0.15254515409469604,
0.018069304525852203,
-0.04934800788760185,
-0.1270516812801361,
-0.011266089975833893,
0.3844028413295746,
0.21746963262557983,
0.2480631172657013,
0.052965059876441956,
0.020045235753059387,
-0.06103191152215004,
-0.005723446607589722,
0.07578329741954803,
0.33188334107398987,
0.3329183757305145,
-0.3726899027824402,
0.18833881616592407,
-0.3001168370246887,
0.2619222104549408,
0.45666754245758057,
0.16206234693527222,
-0.09560257941484451,
-0.041822027415037155,
-0.04471965879201889,
-0.374174028635025,
0.25062352418899536,
-0.15007367730140686,
-0.335197776556015,
0.02830684557557106,
-0.5107876062393188,
0.06384464353322983,
-0.27870985865592957,
-0.14233335852622986,
-0.09060366451740265,
0.11436626315116882,
-0.013112843036651611,
-0.01668207347393036,
-0.27777159214019775,
0.21080060303211212,
0.31331148743629456,
0.2674197256565094,
-0.019690563902258873,
-0.10412340611219406,
0.11479611694812775,
-0.14560218155384064,
-0.10466180741786957,
-0.1880638599395752,
-0.05705698952078819,
0.26821038126945496,
0.033988527953624725,
-0.306549996137619,
0.32438015937805176,
0.14562219381332397,
0.02644285187125206,
-0.17774659395217896,
0.16638727486133575,
-0.06539206951856613,
0.10112655162811279,
0.03850005567073822,
-0.16856735944747925,
-0.08430053293704987,
-0.1399025022983551,
-0.29333585500717163,
0.4097219705581665,
-0.0711343064904213,
-0.1476328819990158,
-0.23064829409122467,
0.23773819208145142,
0.156398743391037,
-0.05170256271958351,
-0.07974138110876083,
-0.18492788076400757,
0.029749911278486252,
0.1552094966173172,
0.3590901494026184,
0.1520940363407135,
0.09443964064121246,
0.03552262857556343,
0.32808035612106323,
0.1983676701784134,
0.14460806548595428,
-0.033848412334918976,
-0.07876879721879959,
0.11322391033172607,
0.2217770218849182,
0.32026875019073486,
0.2825588583946228,
0.06879942119121552,
0.28785234689712524,
-0.17685653269290924,
0.34737327694892883,
-0.1926754117012024,
-0.003003828227519989,
-0.07183901965618134,
-0.06445030868053436,
-0.15405592322349548,
-0.14141076803207397,
-0.05842114984989166,
-0.08712726086378098,
0.3273698687553406,
0.039938487112522125,
0.1147344559431076,
-0.34701716899871826,
-0.15865376591682434,
-0.18612119555473328,
-0.2396654188632965,
0.36502698063850403,
-0.005739402025938034,
-0.49326837062835693,
-0.08676987141370773,
-0.0944303423166275,
0.16543146967887878,
-0.11291136592626572,
0.25466597080230713,
-0.1431788206100464,
0.191202312707901,
-0.0893220454454422,
-0.04256592318415642,
-0.28246641159057617,
0.15126675367355347,
0.09664961695671082,
0.07328054308891296,
0.2500419616699219,
-0.5685632228851318,
0.1663990616798401,
0.008767403662204742,
0.3142613470554352,
-0.3341977894306183,
-0.015175260603427887,
-0.19845879077911377,
0.07176224887371063,
0.07946949452161789,
-0.40894925594329834,
0.04369427636265755,
-0.16865336894989014,
-0.07089649140834808,
-0.059497326612472534,
-0.3048059046268463,
-0.2399095594882965,
0.03282967954874039,
0.04801468178629875,
-0.11452938616275787,
-0.2582411766052246,
-0.07899802923202515,
-0.135462686419487,
-0.19966311752796173,
0.45752769708633423,
0.1265864372253418,
0.1798209249973297,
-0.12310649454593658,
-0.20273154973983765,
-0.4167490601539612,
-0.14437870681285858,
0.24375556409358978,
-0.35758906602859497,
-0.6189974546432495,
0.386065810918808,
-0.5305784940719604,
-0.4261038899421692,
0.061199501156806946,
0.20090638101100922,
0.11197508871555328,
0.4502743184566498,
0.02729375660419464,
-0.07193368673324585,
-0.22018663585186005,
0.1699351966381073,
-0.14901065826416016,
0.10468533635139465,
0.021952452138066292,
0.057429272681474686,
0.09260889142751694,
0.020704098045825958,
-0.1879633367061615,
0.04266955703496933,
-0.0683085173368454,
-0.2640703022480011,
0.10493418574333191,
0.12356933951377869,
0.23209381103515625,
0.6044671535491943,
0.4137207567691803,
0.3512722849845886,
0.2618797719478607,
0.3231718838214874,
0.5492523908615112,
-0.0017727091908454895,
-0.11612725257873535,
0.12863874435424805,
-0.030105508863925934,
-0.0633833259344101,
0.11069517582654953,
0.07157117128372192,
-0.21636618673801422,
0.026005737483501434,
-0.033410295844078064,
-0.21929046511650085,
-0.5093735456466675,
-0.1887931227684021,
-0.32854434847831726,
0.078911192715168,
0.074480339884758,
0.12746740877628326,
-0.23767317831516266,
-0.19325295090675354,
0.08262735605239868,
0.31764599680900574,
0.13467146456241608,
0.31787511706352234,
-0.5666815638542175,
0.12742701172828674,
-0.33562928438186646,
0.44274500012397766,
-0.04635171219706535,
0.49096423387527466,
-0.2584385871887207,
0.1571984589099884,
0.2063755989074707,
0.3330773413181305,
0.3566013276576996,
-0.5286800265312195,
0.27245694398880005,
-0.05111342668533325,
0.11264536529779434,
0.28610631823539734,
-0.20463818311691284,
0.4098230004310608,
0.4641551077365875,
0.15297910571098328,
0.15258164703845978,
0.12735116481781006,
-0.12621399760246277,
-0.4393823742866516,
-0.33904412388801575,
-0.07512900233268738,
-0.2391100972890854,
0.14866167306900024,
0.1858578324317932,
-0.159678116440773,
-0.037608034908771515,
0.3153553605079651,
-0.36115485429763794,
-0.12337213009595871,
-0.02502261847257614,
-0.28186529874801636,
0.21629230678081512,
0.0639568567276001,
-0.09318473935127258,
0.2871544659137726,
-0.04018547385931015,
-0.009804658591747284,
0.36080434918403625,
0.021415766328573227,
0.2246810495853424,
0.38864651322364807,
-0.2325313687324524,
0.3059428632259369,
-0.17446072399616241,
-0.3109084963798523,
0.3567633032798767,
0.015199027955532074,
-0.3405255377292633,
-0.15273445844650269,
0.1999453902244568,
-0.11154091358184814,
-0.23772889375686646,
-0.1410803198814392,
-0.11331673711538315,
0.0559861846268177,
-0.2763206958770752,
-0.570508599281311,
0.19064092636108398,
0.589158296585083,
-0.3231378197669983,
0.260038822889328,
-0.23346908390522003,
-0.3531176447868347,
0.20260725915431976,
0.10341029614210129,
0.8043713569641113,
-0.1996930092573166,
0.3696453273296356,
-0.4210779666900635,
0.029993422329425812,
0.03294103592634201,
-0.466368705034256,
0.0739387720823288,
-0.474835067987442,
-0.36094266176223755,
-0.11394660174846649,
-0.13616672158241272,
0.07482154667377472,
0.5008002519607544,
-0.05090899392962456,
0.0705021321773529,
-0.04466293752193451,
-0.11759363859891891,
-0.12405677139759064,
-0.14333684742450714,
-0.24367479979991913,
-0.28048163652420044,
0.283414751291275,
0.15468625724315643,
-0.22075989842414856,
0.041803620755672455,
-0.010515224188566208,
-0.008270572870969772,
-0.19304649531841278,
0.2263316810131073,
-0.25367867946624756,
0.09765417873859406,
-0.6266340613365173,
0.1544731706380844,
-0.17002254724502563,
-0.04800892621278763,
0.1589398980140686,
0.3637184202671051,
0.37790825963020325,
0.38054871559143066,
-0.04930602014064789,
0.10272766649723053,
0.38619863986968994,
0.19457152485847473,
-0.21208028495311737,
0.01807224750518799,
0.2800191640853882,
0.11794276535511017,
0.059493765234947205,
-0.29317373037338257,
-0.13589274883270264,
-0.30703598260879517,
-0.33864825963974,
0.15630581974983215,
0.07403167337179184,
-0.2711716592311859,
-0.06311944872140884,
-0.18315386772155762,
0.05663794279098511,
0.02959498018026352,
0.12105254083871841,
0.4231935143470764,
0.00023140013217926025,
0.5362319350242615,
-0.32726895809173584,
-0.30258601903915405,
0.05780770629644394,
0.6893189549446106,
-0.08276192843914032,
-0.19790883362293243,
0.14027957618236542,
-0.23005613684654236,
-0.3200796842575073,
-0.20837180316448212,
0.1428574025630951,
0.17299942672252655,
-0.14170275628566742,
-0.042753662914037704,
0.0286194309592247,
-0.1275181770324707,
0.2997003495693207,
-0.44294053316116333,
0.08043619990348816,
0.1046559289097786,
0.1733713448047638,
-0.30322033166885376,
-0.4135516881942749,
-0.29535606503486633,
-0.2933431565761566,
0.22460751235485077,
0.2591468095779419,
-0.5468915700912476,
0.15599891543388367,
0.11689047515392303,
-0.25342613458633423,
-0.16812126338481903,
-0.005044519901275635,
0.10278485715389252,
0.14808934926986694,
0.0008399579674005508,
-0.12424974143505096,
-0.18248018622398376,
-0.06376630812883377,
-0.03129315376281738,
-0.08484797179698944,
-0.22074845433235168,
-0.0021493807435035706,
0.10942317545413971,
0.2109241634607315,
-0.4119977355003357,
0.15228238701820374,
-0.3853234052658081,
-0.1325986385345459,
-0.4285101294517517,
0.04759158939123154,
0.35907772183418274,
0.15282030403614044,
0.3160889446735382,
0.19287949800491333,
-0.0775802731513977,
-0.20471590757369995,
0.1588992178440094,
-0.17968085408210754,
-0.23390866816043854,
-0.21316340565681458,
0.1666121780872345,
-0.32213279604911804,
-0.07823656499385834,
0.19221095740795135,
-0.06240183115005493,
0.12686674296855927,
0.1094139888882637,
0.11524046212434769,
-0.06628210842609406,
-0.034252412617206573,
0.06756669282913208,
0.25665444135665894,
-0.07713583111763,
-0.13991758227348328,
0.004963740706443787,
0.32686537504196167,
0.12838676571846008,
0.10420043766498566,
-0.3107629418373108,
0.3365096151828766,
-0.13644257187843323,
0.06468266248703003,
0.2991357445716858,
0.1867588758468628,
-0.3084300756454468,
0.13264374434947968,
-0.08440706133842468,
0.11735955625772476,
-0.35799354314804077,
0.4131156802177429,
-0.13507109880447388,
0.043174080550670624,
0.054368577897548676,
0.3032660484313965,
0.23240207135677338,
0.028904005885124207,
0.30378788709640503,
0.2282189428806305,
0.15961594879627228,
0.3071664869785309,
-0.32689112424850464,
0.14335863292217255,
-0.6421843767166138,
0.14181366562843323,
0.04886847361922264,
-0.019502446055412292,
0.2297239750623703,
0.19782859086990356,
0.05003461241722107,
0.05297660082578659,
-0.3077774941921234,
0.0020784959197044373,
-0.15141215920448303,
-0.1449219286441803,
-0.08564813435077667,
0.04824148118495941,
0.11917257308959961,
0.03865350782871246,
-0.2337673008441925,
-0.23033744096755981,
-0.18316544592380524,
0.1543702781200409,
0.24878400564193726,
0.11427576839923859,
0.189789280295372,
0.050877369940280914,
0.07366999238729477,
0.03931904211640358,
-0.2107703983783722,
-0.07654932141304016,
-0.4362018406391144,
-0.16385367512702942,
0.2595522999763489,
0.0762881189584732,
0.08968499302864075,
0.11240211874246597,
0.13075359165668488,
0.2092393934726715,
0.28673017024993896,
0.02716132253408432,
-0.31191539764404297,
0.3066921532154083,
-0.013536438345909119,
-0.338561475276947,
0.1068587452173233,
0.07552637904882431,
-0.07682658731937408,
-0.09265867620706558,
-0.16843867301940918,
0.028938941657543182,
0.12102238833904266,
-0.06403730809688568,
-0.1738274246454239,
-0.4742427468299866,
0.16101741790771484,
-0.07207944989204407,
0.11718086153268814,
0.023436717689037323,
0.4542990028858185,
0.007974982261657715,
0.2162092626094818,
-0.5413375496864319,
0.05013182759284973,
0.44071412086486816,
0.2609604001045227,
0.4043426513671875,
-0.12069545686244965,
-0.019532596692442894,
-0.07042708247900009,
-0.3925545811653137,
0.1042102724313736,
0.2170504629611969,
0.4251807630062103,
-0.004634436219930649,
-0.22882838547229767,
0.11266931891441345,
-0.08040929585695267,
0.5458395481109619,
-0.1988474577665329,
0.20657595992088318,
0.40432751178741455,
-0.27934759855270386,
-0.20902740955352783,
0.2195938378572464,
-0.04046862572431564,
0.12010979652404785,
-0.35930055379867554,
0.2756618857383728,
0.1133941262960434,
0.1277197003364563,
-0.15609757602214813,
-0.13143500685691833,
0.16533322632312775,
0.516116201877594,
0.4236019551753998,
0.23579512536525726,
-0.0478285513818264,
-0.032117411494255066,
0.42664867639541626,
-0.3159961402416229,
0.13276761770248413,
-0.17340978980064392,
-0.0589505136013031,
-0.1084841787815094,
0.09718881547451019,
-0.5752668380737305,
-0.22167709469795227,
-0.339599072933197,
0.039690177887678146,
-0.18518352508544922,
0.26449063420295715,
0.046113237738609314,
0.11068789660930634,
-0.12167911976575851,
0.08933486044406891,
0.27386361360549927,
0.27840283513069153,
-0.1784672737121582,
0.36648115515708923,
-0.47193044424057007,
-0.1327182948589325,
0.2813085913658142,
-0.18206077814102173,
-0.188260018825531,
-0.05038236081600189,
0.3723697364330292,
0.1919572651386261,
-0.19982650876045227,
0.10451392829418182,
0.08149532973766327,
0.29741838574409485,
-0.37834838032722473,
-0.09641451388597488,
0.11384622007608414,
-0.3751124441623688,
0.043581098318099976,
-0.2107977271080017,
0.4439983665943146,
0.06982474029064178,
-0.2243981808423996,
0.016383059322834015,
-0.2619253098964691
] |
https://github.com/huggingface/datasets/issues/2065 | Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
| Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 40 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
| [
-0.22427287697792053,
0.22611305117607117,
-0.08175298571586609,
0.009475701488554478,
0.047135815024375916,
0.014976009726524353,
0.2634161114692688,
0.0719241052865982,
-0.1914958357810974,
0.040730491280555725,
-0.13415327668190002,
0.08633598685264587,
0.0493936613202095,
-0.3142186105251312,
-0.11674550175666809,
0.13589783012866974,
0.15292589366436005,
-0.0015893876552581787,
-0.0006152261048555374,
-0.09638600051403046,
-0.22393514215946198,
-0.08624009042978287,
-0.10348749160766602,
-0.03367741405963898,
-0.3453717827796936,
-0.21795573830604553,
0.21195083856582642,
0.2314934879541397,
-0.08823667466640472,
-0.19050151109695435,
0.24261519312858582,
0.6062232851982117,
0.18005353212356567,
0.19833898544311523,
-0.00011554136290214956,
-0.21691904962062836,
0.08840563893318176,
-0.0958581417798996,
0.050229161977767944,
0.2252649962902069,
0.013323180377483368,
-0.06527669727802277,
-0.19007986783981323,
-0.18337297439575195,
-0.23625198006629944,
0.15678013861179352,
0.10035756975412369,
-0.7182679176330566,
0.36112943291664124,
0.200262650847435,
0.172333225607872,
-0.22327259182929993,
-0.23739612102508545,
0.08882409334182739,
0.2409687042236328,
0.1156112551689148,
-0.09895405173301697,
0.012623034417629242,
0.3320397734642029,
-0.16687239706516266,
-0.0690128356218338,
0.03431744873523712,
-0.28084516525268555,
0.0031792446970939636,
0.15464264154434204,
-0.07794605195522308,
-0.29836761951446533,
-0.5014811158180237,
0.12386548519134521,
0.1186877191066742,
0.7641481161117554,
-0.11712893843650818,
-0.5640266537666321,
-0.04962284862995148,
0.12958753108978271,
0.2901591956615448,
0.3258307874202728,
0.3054421842098236,
-0.0033054426312446594,
0.3387885093688965,
-0.5569107532501221,
0.09167926013469696,
-0.2294594645500183,
0.10124433040618896,
0.19669993221759796,
0.03669765964150429,
-0.06704090535640717,
0.1275734156370163,
0.006228921003639698,
-0.18615004420280457,
0.23208609223365784,
0.02419992908835411,
-0.3480369448661804,
0.37919580936431885,
-0.09579360485076904,
-0.012521304190158844,
-0.15370942652225494,
0.5009944438934326,
0.2390558123588562,
0.29132843017578125,
0.17131906747817993,
0.27433091402053833,
0.05061327666044235,
0.17303292453289032,
-0.031694427132606506,
0.18152174353599548,
0.46266913414001465,
0.2795346677303314,
0.5615984201431274,
-0.28980058431625366,
-0.12748044729232788,
0.02011093869805336,
0.04611584171652794,
-0.3072868287563324,
0.054731741547584534,
0.27862748503685,
0.039836958050727844,
-0.1740109622478485,
0.23153820633888245,
0.06332138925790787,
-0.19455483555793762,
-0.19721750915050507,
0.09983596205711365,
0.34421324729919434,
0.09193117916584015,
-0.0721917450428009,
0.05625277757644653,
0.17367836833000183,
-0.09466712176799774,
-0.3568929433822632,
-0.009011693298816681,
-0.328063040971756,
-0.2786850929260254,
0.3977697491645813,
0.42687326669692993,
-0.05904038995504379,
0.048290252685546875,
0.2228618711233139,
0.13982290029525757,
-0.16151750087738037,
0.44516485929489136,
-0.10490825027227402,
0.4017588496208191,
0.3126300871372223,
0.2725578546524048,
0.2442820966243744,
0.06198000907897949,
0.03934638202190399,
-0.11383938789367676,
0.33604517579078674,
-0.329965740442276,
-0.19835716485977173,
0.3492940068244934,
0.06044727563858032,
-0.04218021780252457,
0.2782869040966034,
-0.2858783006668091,
0.06827910989522934,
0.4992922246456146,
-0.07010596990585327,
0.3984586000442505,
0.1958020031452179,
-0.21895581483840942,
-0.41679126024246216,
-0.07103829085826874,
0.27807754278182983,
-0.048038262873888016,
-0.04002079367637634,
-0.1446886956691742,
-0.005447220057249069,
0.012144241482019424,
0.33048152923583984,
-0.030633024871349335,
0.23235875368118286,
-0.16232898831367493,
0.19568130373954773,
0.4786149561405182,
-0.14941079914569855,
-0.6601566076278687,
0.09333381056785583,
0.191359743475914,
-0.11073404550552368,
0.18149857223033905,
0.08801098167896271,
-0.051197122782468796,
-0.10903903841972351,
0.017031507566571236,
0.2962631583213806,
0.17348924279212952,
0.26796218752861023,
0.07821345329284668,
0.014511644840240479,
-0.10270655900239944,
0.011118821799755096,
0.03512871265411377,
0.263835072517395,
0.3305092453956604,
-0.3714773654937744,
0.24938565492630005,
-0.3268911838531494,
0.2354726493358612,
0.4526793658733368,
0.23690979182720184,
-0.12376997619867325,
0.008880268782377243,
0.007716476917266846,
-0.330477774143219,
0.22193853557109833,
-0.11207695305347443,
-0.33663249015808105,
0.035386331379413605,
-0.5332362055778503,
0.11614508926868439,
-0.2586066722869873,
-0.18350088596343994,
-0.10280050337314606,
0.05897421017289162,
-0.01319056749343872,
0.0431489571928978,
-0.26654547452926636,
0.198410302400589,
0.2996811270713806,
0.22091089189052582,
0.04676965996623039,
-0.1186484843492508,
0.08673291653394699,
-0.09542068094015121,
-0.13099098205566406,
-0.24010029435157776,
-0.037133075296878815,
0.2725088894367218,
-0.03682112693786621,
-0.24580973386764526,
0.31385669112205505,
0.24805520474910736,
-0.04371391236782074,
-0.22443166375160217,
0.2249995768070221,
-0.002051413059234619,
0.07913512736558914,
0.09314881265163422,
-0.1511029601097107,
-0.08382754027843475,
-0.11979945003986359,
-0.2827214300632477,
0.5314033031463623,
-0.09133036434650421,
-0.1963917315006256,
-0.28487834334373474,
0.21990931034088135,
0.17361418902873993,
-0.039281461387872696,
-0.1375674307346344,
-0.12513284385204315,
0.025919996201992035,
0.2324846237897873,
0.3876344859600067,
0.1938304454088211,
0.13233254849910736,
0.05045192688703537,
0.37564533948898315,
0.14947080612182617,
0.13090533018112183,
-0.03740210086107254,
-0.04677966609597206,
0.048779912292957306,
0.2571570873260498,
0.277641236782074,
0.3799564838409424,
0.07391805946826935,
0.27699485421180725,
-0.1387665569782257,
0.3776814639568329,
-0.10414372384548187,
-0.010229110717773438,
-0.01516488566994667,
-0.08966988325119019,
-0.16363656520843506,
-0.2192460000514984,
-0.07278192788362503,
-0.02252306044101715,
0.2986067533493042,
0.06836040318012238,
0.14790044724941254,
-0.3589763641357422,
-0.15647220611572266,
-0.12776458263397217,
-0.26560232043266296,
0.3322519063949585,
0.004739299416542053,
-0.4301031827926636,
-0.046785760670900345,
-0.1731005311012268,
0.2626761794090271,
-0.05561358854174614,
0.295981764793396,
-0.1558346152305603,
0.21583880484104156,
-0.015728667378425598,
-0.030307430773973465,
-0.18985521793365479,
0.18922215700149536,
0.0821966901421547,
0.023258760571479797,
0.2347506284713745,
-0.6215870380401611,
0.10955236107110977,
-0.05365702137351036,
0.275289386510849,
-0.38880592584609985,
-0.05420020967721939,
-0.1635516881942749,
0.09656780958175659,
0.08274586498737335,
-0.33418887853622437,
-0.07476695626974106,
-0.22519554197788239,
-0.00462409108877182,
-0.0955510139465332,
-0.33253151178359985,
-0.22389277815818787,
0.008983336389064789,
0.011031106114387512,
-0.033257536590099335,
-0.2029952108860016,
-0.06104188784956932,
-0.15554407238960266,
-0.12675346434116364,
0.4859428405761719,
0.15491218864917755,
0.2311936318874359,
-0.20376941561698914,
-0.221267431974411,
-0.3293209373950958,
-0.15535032749176025,
0.19970867037773132,
-0.3468119204044342,
-0.6803938150405884,
0.30595383048057556,
-0.5067751407623291,
-0.3965727984905243,
0.011728160083293915,
0.1094522774219513,
0.11936075240373611,
0.5079339146614075,
0.0697842389345169,
-0.21127420663833618,
-0.1897013783454895,
0.28614646196365356,
-0.21723976731300354,
0.14887456595897675,
-0.010219544172286987,
0.018429990857839584,
0.16938555240631104,
-0.013892218470573425,
-0.15424984693527222,
0.04585765302181244,
-0.03915043920278549,
-0.2779390215873718,
0.18556375801563263,
0.1891300231218338,
0.14232662320137024,
0.5497564077377319,
0.4713601768016815,
0.3665598928928375,
0.26960253715515137,
0.2861098647117615,
0.6051008701324463,
0.07836420089006424,
-0.1019396036863327,
0.16413599252700806,
0.07850630581378937,
-0.09389057755470276,
0.15884658694267273,
0.09094196557998657,
-0.1556551456451416,
0.05858325958251953,
-0.10559393465518951,
-0.2563832700252533,
-0.4986239969730377,
-0.14604127407073975,
-0.28952890634536743,
0.046591781079769135,
0.006777606904506683,
0.2124721109867096,
-0.24764731526374817,
-0.20216208696365356,
0.06070788949728012,
0.29616695642471313,
0.13248173892498016,
0.285815566778183,
-0.6697193384170532,
0.11266833543777466,
-0.3476344347000122,
0.46435093879699707,
-0.02506885677576065,
0.4630530774593353,
-0.18300408124923706,
0.19254477322101593,
0.20004254579544067,
0.3045371174812317,
0.4123748540878296,
-0.5408959984779358,
0.3032761216163635,
-0.03484947234392166,
0.04470617324113846,
0.24858719110488892,
-0.15070529282093048,
0.3441004753112793,
0.52854323387146,
0.11639943718910217,
0.1270214021205902,
0.13039660453796387,
-0.12364624440670013,
-0.4273568093776703,
-0.2987101078033447,
-0.08370238542556763,
-0.26713377237319946,
0.1920260787010193,
0.10251512378454208,
-0.057917237281799316,
-0.044982705265283585,
0.2800474166870117,
-0.3102291524410248,
-0.13424891233444214,
-0.006063185632228851,
-0.31040987372398376,
0.1651642918586731,
0.0825788825750351,
-0.14981217682361603,
0.35259050130844116,
-0.044575661420822144,
-0.05295182764530182,
0.3878892958164215,
-0.009542388841509819,
0.3630968928337097,
0.4198489487171173,
-0.28885596990585327,
0.22729867696762085,
-0.15549923479557037,
-0.34465667605400085,
0.36856144666671753,
0.0035263746976852417,
-0.2869548499584198,
-0.15785259008407593,
0.1833106428384781,
-0.08635377883911133,
-0.25822919607162476,
-0.1071280986070633,
-0.10990659892559052,
0.15331435203552246,
-0.28692173957824707,
-0.6173258423805237,
0.14577457308769226,
0.6142496466636658,
-0.340903103351593,
0.2515214681625366,
-0.14575515687465668,
-0.40505459904670715,
0.22268667817115784,
0.14972390234470367,
0.8280977010726929,
-0.12416306138038635,
0.4132516086101532,
-0.39656364917755127,
0.053272418677806854,
0.16006344556808472,
-0.476687490940094,
0.0904371365904808,
-0.5270589590072632,
-0.31784921884536743,
-0.10731764137744904,
-0.13086023926734924,
0.10582126677036285,
0.46748730540275574,
-0.09536956995725632,
0.10564015060663223,
-0.06905558705329895,
-0.19045604765415192,
-0.13848575949668884,
-0.13928279280662537,
-0.2735176384449005,
-0.26764124631881714,
0.29139354825019836,
0.1141192689538002,
-0.1776747703552246,
0.06267939507961273,
-0.004010092467069626,
0.060889292508363724,
-0.21836179494857788,
0.20517601072788239,
-0.2044144570827484,
0.02771802991628647,
-0.630415141582489,
0.13335084915161133,
-0.14402392506599426,
-0.03878858685493469,
0.13458311557769775,
0.41619905829429626,
0.3846626877784729,
0.336076021194458,
-0.04933570325374603,
0.062047090381383896,
0.37495511770248413,
0.2493368536233902,
-0.13668255507946014,
-0.066810742020607,
0.3273586928844452,
0.17554938793182373,
0.08586692810058594,
-0.24303114414215088,
-0.14040380716323853,
-0.2752976417541504,
-0.2996565103530884,
0.05285293981432915,
0.09273587167263031,
-0.36209994554519653,
-0.06945396959781647,
-0.26698848605155945,
0.03559208661317825,
0.08178072422742844,
0.05848199129104614,
0.4753654897212982,
-0.06157369166612625,
0.5999322533607483,
-0.33808913826942444,
-0.3707461953163147,
0.02325443923473358,
0.6508817672729492,
-0.07489795982837677,
-0.1919887363910675,
0.1610780656337738,
-0.28530076146125793,
-0.25632625818252563,
-0.16115929186344147,
0.2668006420135498,
0.30671846866607666,
-0.1084318682551384,
-0.10939450562000275,
0.062191180884838104,
-0.09284938126802444,
0.26042312383651733,
-0.5158434510231018,
0.07800699770450592,
0.19464156031608582,
0.09907016158103943,
-0.2784630358219147,
-0.4766997992992401,
-0.27960821986198425,
-0.17932088673114777,
0.1743408441543579,
0.27125316858291626,
-0.5941868424415588,
0.13451476395130157,
0.022895796224474907,
-0.2046208381652832,
-0.17612028121948242,
0.03751862794160843,
0.07089796662330627,
0.14855870604515076,
0.024730710312724113,
-0.11508312821388245,
-0.18911606073379517,
-0.0816255435347557,
-0.10842429846525192,
-0.10958589613437653,
-0.15185943245887756,
-0.07168006151914597,
0.12747922539710999,
0.19319754838943481,
-0.4675963521003723,
0.17740115523338318,
-0.4139454960823059,
-0.12337764352560043,
-0.42544370889663696,
0.057309120893478394,
0.39090389013290405,
0.17317594587802887,
0.310824990272522,
0.24255378544330597,
-0.06213145703077316,
-0.2998080551624298,
0.1931411474943161,
-0.2430417686700821,
-0.2243487536907196,
-0.2455175220966339,
0.2626129984855652,
-0.30394431948661804,
-0.08838902413845062,
0.2513171434402466,
-0.08788491785526276,
0.1320444941520691,
0.07705282419919968,
0.09453991055488586,
-0.026254668831825256,
0.02286142110824585,
0.11023247241973877,
0.2923843264579773,
-0.05522613227367401,
-0.16602134704589844,
-0.03230242803692818,
0.3039817810058594,
0.09585023671388626,
0.11968278884887695,
-0.3297821283340454,
0.2782697379589081,
-0.16583351790905,
0.02629818022251129,
0.37028735876083374,
0.08672204613685608,
-0.24812638759613037,
0.08566068112850189,
-0.15531617403030396,
0.17045104503631592,
-0.2783287763595581,
0.390242338180542,
-0.10391424596309662,
0.028176352381706238,
0.07272215932607651,
0.335469514131546,
0.201055109500885,
0.027896301820874214,
0.29809871315956116,
0.1519477367401123,
0.20824919641017914,
0.31244710087776184,
-0.2757878601551056,
0.16940703988075256,
-0.6644006371498108,
0.09758435934782028,
0.09667661786079407,
-0.03469017148017883,
0.22680962085723877,
0.16621044278144836,
0.06404054909944534,
-0.03679659217596054,
-0.2975319027900696,
0.05960164964199066,
-0.16105526685714722,
-0.1909189224243164,
-0.1152937188744545,
0.004600994288921356,
0.08133219182491302,
0.045523062348365784,
-0.2006155252456665,
-0.2622349262237549,
-0.17468193173408508,
0.09283186495304108,
0.2766188979148865,
0.07422597706317902,
0.16581618785858154,
-0.00898057408630848,
0.07607854902744293,
0.02180401049554348,
-0.2504441738128662,
-0.041088931262493134,
-0.44453853368759155,
-0.11190536618232727,
0.2693798840045929,
0.0846511498093605,
0.11982768028974533,
0.1264665126800537,
0.18062281608581543,
0.17191660404205322,
0.3239750266075134,
0.08220949023962021,
-0.2945542335510254,
0.23478105664253235,
0.01277395524084568,
-0.3522435128688812,
0.05308457836508751,
0.033213060349226,
-0.013933101668953896,
-0.10169170796871185,
-0.1442117691040039,
-0.04616757854819298,
0.09762465953826904,
-0.014744799584150314,
-0.13178923726081848,
-0.49606913328170776,
0.16504979133605957,
-0.009007494896650314,
0.16753928363323212,
0.03112548589706421,
0.44473546743392944,
0.01602809503674507,
0.21735645830631256,
-0.471294641494751,
0.024617712944746017,
0.394493043422699,
0.20755979418754578,
0.3714950680732727,
-0.15327803790569305,
-0.05140949785709381,
-0.05017764866352081,
-0.3450668454170227,
0.16595986485481262,
0.22714176774024963,
0.2972991168498993,
-0.011022211983799934,
-0.22641521692276,
0.051658790558576584,
-0.11250487715005875,
0.44935381412506104,
-0.17990685999393463,
0.2619473934173584,
0.3611072599887848,
-0.3241617977619171,
-0.21587379276752472,
0.21939562261104584,
-0.009048683568835258,
0.10063768923282623,
-0.42412298917770386,
0.31006142497062683,
0.06446738541126251,
0.06311193853616714,
-0.12998677790164948,
-0.10612699389457703,
0.15137381851673126,
0.5122236609458923,
0.3870994746685028,
0.26220569014549255,
-0.005773622542619705,
0.015665121376514435,
0.4608680307865143,
-0.24252979457378387,
0.1981351524591446,
-0.2715999186038971,
-0.008165976032614708,
-0.11495101451873779,
0.12258641421794891,
-0.5734188556671143,
-0.21235060691833496,
-0.3278992474079132,
0.024995747953653336,
-0.1814754158258438,
0.23282282054424286,
0.03091762214899063,
0.18971160054206848,
-0.12885937094688416,
0.023226387798786163,
0.29419219493865967,
0.30199816823005676,
-0.1238587349653244,
0.38623693585395813,
-0.46853581070899963,
-0.07660732418298721,
0.31012439727783203,
-0.25809669494628906,
-0.11882302165031433,
-0.13129237294197083,
0.3541136384010315,
0.189222052693367,
-0.27182236313819885,
0.13668584823608398,
0.07334400713443756,
0.38322097063064575,
-0.3898986577987671,
-0.10430645197629929,
0.05370562523603439,
-0.3147777318954468,
0.05022544413805008,
-0.1929299235343933,
0.4530383348464966,
0.046752989292144775,
-0.23462119698524475,
0.08102592080831528,
-0.23312698304653168
] |
https://github.com/huggingface/datasets/issues/2065 | You can get the umask using `os.umask` and then I guess you can just use `os.chmod` as in your previous PR, but with the right permissions depending on the umask. | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 30 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
You can get the umask using `os.umask` and then I guess you can just use `os.chmod` as in your previous PR, but with the right permissions depending on the umask. | [
-0.18572625517845154,
0.17379221320152283,
-0.10752765834331512,
-0.18510404229164124,
-0.008170237764716148,
0.0839049369096756,
0.3565376400947571,
0.07572709769010544,
-0.11083171516656876,
0.10525505244731903,
-0.22693879902362823,
0.15432405471801758,
0.10393137484788895,
-0.29344937205314636,
-0.06498056650161743,
0.21793580055236816,
0.0900314524769783,
-0.035147905349731445,
-0.05195215716958046,
-0.008974596858024597,
-0.13901589810848236,
-0.10628955811262131,
-0.09730752557516098,
-0.022076774388551712,
-0.21672102808952332,
-0.19771680235862732,
0.1695960909128189,
0.33889639377593994,
-0.05083780735731125,
-0.2708573639392853,
0.19472317397594452,
0.5540144443511963,
0.024419043213129044,
0.10413163900375366,
-0.00010545818076934665,
-0.1182967945933342,
0.02594457007944584,
-0.07668045163154602,
0.08370316028594971,
0.2544780969619751,
0.06165634095668793,
-0.0599539615213871,
-0.2419358342885971,
-0.17216713726520538,
-0.2474576234817505,
0.19508443772792816,
0.1271020472049713,
-0.5841304063796997,
0.37063539028167725,
0.26190900802612305,
0.26322126388549805,
0.004186660051345825,
-0.21592307090759277,
0.0827072262763977,
0.232205331325531,
0.039456769824028015,
-0.1844673603773117,
0.0040549226105213165,
0.3705591857433319,
-0.08177340030670166,
-0.02946086972951889,
0.04471100866794586,
-0.19668258726596832,
0.07993818819522858,
0.1410069763660431,
-0.049285609275102615,
-0.22016432881355286,
-0.49668818712234497,
0.17104777693748474,
0.06864047050476074,
0.7374112010002136,
-0.05055774748325348,
-0.5258098244667053,
0.0515311136841774,
0.16334885358810425,
0.26877933740615845,
0.35489752888679504,
0.3101952075958252,
-0.05436686426401138,
0.3213355541229248,
-0.44021931290626526,
0.14287325739860535,
-0.21385791897773743,
0.02315586432814598,
0.21602046489715576,
0.1043669581413269,
-0.013858756050467491,
0.11856074631214142,
0.13126258552074432,
-0.1723819375038147,
0.127388134598732,
0.22209833562374115,
-0.2841740548610687,
0.4184724986553192,
-0.08035409450531006,
0.021350406110286713,
-0.1795773208141327,
0.4277118444442749,
0.19308313727378845,
0.18298208713531494,
0.22105777263641357,
0.2631049156188965,
0.03993554413318634,
0.24810101091861725,
-0.1107327863574028,
0.0876157358288765,
0.30663996934890747,
0.3309394419193268,
0.600415050983429,
-0.2753514051437378,
-0.17739762365818024,
0.03613955155014992,
-0.00408259779214859,
-0.40077582001686096,
-0.007575400173664093,
0.2617323696613312,
0.10331475734710693,
-0.2411530315876007,
0.2197200059890747,
-0.014374010264873505,
-0.050394345074892044,
-0.13523972034454346,
0.05547752603888512,
0.4130482077598572,
0.21592363715171814,
-0.20108868181705475,
0.13299822807312012,
0.16104008257389069,
0.00026544928550720215,
-0.23621203005313873,
-0.009621595963835716,
-0.28264033794403076,
-0.35368525981903076,
0.3084273338317871,
0.42392170429229736,
0.02819335088133812,
-0.00593094527721405,
0.21353915333747864,
0.16407300531864166,
-0.21624761819839478,
0.35586559772491455,
0.0013644322752952576,
0.4887394607067108,
0.37805595993995667,
0.2298049032688141,
0.12427949905395508,
0.07132773846387863,
0.007000073790550232,
-0.13565468788146973,
0.37542569637298584,
-0.16858407855033875,
-0.15591904520988464,
0.29856163263320923,
0.14401812851428986,
0.051765330135822296,
0.235374316573143,
-0.17600423097610474,
0.00340304896235466,
0.422227680683136,
0.01927889883518219,
0.47307124733924866,
0.26343828439712524,
-0.18115505576133728,
-0.3831006586551666,
-0.06625906378030777,
0.16072601079940796,
-0.12459535151720047,
-0.0031764134764671326,
-0.2033127248287201,
-0.1225338727235794,
-0.06388358771800995,
0.3225443661212921,
-0.03494907170534134,
0.14607760310173035,
-0.1530030369758606,
0.1799980103969574,
0.4943959712982178,
-0.10542014986276627,
-0.5366949439048767,
0.017921891063451767,
0.14209413528442383,
-0.15751032531261444,
0.2553614377975464,
0.06994110345840454,
-0.08621722459793091,
-0.12054892629384995,
-0.08402188867330551,
0.3386439383029938,
0.24014082551002502,
0.19527819752693176,
0.07592208683490753,
0.0618521049618721,
-0.11563358455896378,
0.07490772008895874,
0.07167450338602066,
0.36320170760154724,
0.3213570713996887,
-0.32891952991485596,
0.2820543646812439,
-0.3049742877483368,
0.237145334482193,
0.4326985478401184,
0.22957894206047058,
-0.04572249948978424,
0.03914947435259819,
-0.0006194785237312317,
-0.2805824875831604,
0.29856178164482117,
-0.20284077525138855,
-0.2408686876296997,
0.05627565085887909,
-0.5901850461959839,
0.055527377873659134,
-0.21220926940441132,
-0.13978472352027893,
-0.16166704893112183,
0.1587006002664566,
0.024292077869176865,
0.1034163385629654,
-0.33600127696990967,
0.22343911230564117,
0.27465686202049255,
0.2683151066303253,
-0.012135861441493034,
-0.03983455151319504,
0.026717297732830048,
-0.21648941934108734,
-0.12059076875448227,
-0.19340479373931885,
0.014575867913663387,
0.18436506390571594,
-0.017895163968205452,
-0.28532350063323975,
0.35351046919822693,
0.18522892892360687,
0.020363587886095047,
-0.20013365149497986,
0.10850382596254349,
-0.10561999678611755,
0.10500964522361755,
0.035973288118839264,
-0.18668541312217712,
-0.10000341385602951,
-0.084883913397789,
-0.27447402477264404,
0.3847479224205017,
-0.0844666063785553,
-0.1805415004491806,
-0.23376333713531494,
0.20747169852256775,
0.17458072304725647,
-0.060958702117204666,
-0.08518490195274353,
-0.15739955008029938,
-0.026576373726129532,
0.17657208442687988,
0.31829801201820374,
0.1446729600429535,
0.13709980249404907,
0.0576271116733551,
0.29812198877334595,
0.18632255494594574,
0.06545231491327286,
-0.03010006994009018,
-0.013127081096172333,
0.13751675188541412,
0.20893095433712006,
0.2619200646877289,
0.34031885862350464,
0.12406181544065475,
0.34430640935897827,
-0.07577143609523773,
0.318488746881485,
-0.0739092081785202,
0.03387491777539253,
-0.11102108657360077,
-0.12560385465621948,
-0.19510610401630402,
-0.18303222954273224,
-0.09045259654521942,
-0.13623790442943573,
0.2723575830459595,
0.0790063664317131,
0.1283607929944992,
-0.3007155656814575,
-0.17031580209732056,
-0.13531126081943512,
-0.20514065027236938,
0.3513927459716797,
0.06783944368362427,
-0.5054527521133423,
-0.08965814113616943,
-0.05160541459918022,
0.20657187700271606,
-0.19157865643501282,
0.3344319462776184,
-0.18281498551368713,
0.1299619823694229,
0.02635417878627777,
-0.03701283037662506,
-0.2518056035041809,
0.12041642516851425,
0.15029846131801605,
0.11035159230232239,
0.19370119273662567,
-0.5752270221710205,
0.15697337687015533,
-0.04485221207141876,
0.22562697529792786,
-0.35473304986953735,
0.0017739534378051758,
-0.13116060197353363,
-0.07155655324459076,
-0.04301728308200836,
-0.31775903701782227,
-0.03994832560420036,
-0.19784364104270935,
-0.09189087152481079,
-0.009718071669340134,
-0.38439226150512695,
-0.3132212162017822,
-0.030798625200986862,
0.14639486372470856,
-0.06771862506866455,
-0.3414188027381897,
-0.059351686388254166,
-0.13897185027599335,
-0.27760565280914307,
0.48893195390701294,
0.11934152245521545,
0.23467373847961426,
-0.07312243431806564,
-0.33029037714004517,
-0.29860424995422363,
-0.037500545382499695,
0.16940051317214966,
-0.42593440413475037,
-0.5024002194404602,
0.3395010828971863,
-0.5373857617378235,
-0.4263421297073364,
0.14875385165214539,
0.25797563791275024,
0.11098140478134155,
0.45551589131355286,
0.05725672096014023,
-0.13292866945266724,
-0.15703509747982025,
0.21102768182754517,
-0.23340028524398804,
0.11519704759120941,
0.04402252659201622,
0.03998396173119545,
0.03301628679037094,
-0.02857932448387146,
-0.16773322224617004,
0.04341716691851616,
-0.044091567397117615,
-0.2562852203845978,
0.029993485659360886,
0.1130886897444725,
0.1858665645122528,
0.530642032623291,
0.2862324118614197,
0.36381685733795166,
0.26221004128456116,
0.21711315214633942,
0.6401689052581787,
0.008903354406356812,
-0.07042590528726578,
0.16201597452163696,
0.047368019819259644,
-0.07264646887779236,
0.20920196175575256,
0.058245062828063965,
-0.24569079279899597,
0.09010002017021179,
-0.009649880230426788,
-0.16035470366477966,
-0.5348588824272156,
-0.13640974462032318,
-0.27387765049934387,
0.08831752836704254,
-0.014095697551965714,
0.1447201818227768,
-0.2262013703584671,
-0.10985080897808075,
0.12528873980045319,
0.28265777230262756,
0.09381084144115448,
0.282267689704895,
-0.5877387523651123,
0.14005137979984283,
-0.4001903831958771,
0.45874422788619995,
-0.10892390459775925,
0.416745662689209,
-0.23806223273277283,
0.05568176507949829,
0.228184774518013,
0.26929065585136414,
0.37179961800575256,
-0.505896806716919,
0.37244275212287903,
0.05637304484844208,
0.1023867055773735,
0.2538185715675354,
-0.18486155569553375,
0.33778586983680725,
0.47536277770996094,
0.17431393265724182,
0.20081090927124023,
0.1267888993024826,
-0.07152210175991058,
-0.3775749206542969,
-0.319856196641922,
-0.037998441606760025,
-0.27077436447143555,
0.0847478061914444,
0.12335467338562012,
-0.22598907351493835,
0.07491536438465118,
0.26530712842941284,
-0.3210916221141815,
-0.12866473197937012,
0.037339746952056885,
-0.21655654907226562,
0.21114706993103027,
-0.031339794397354126,
-0.05306823179125786,
0.26631906628608704,
0.03702544793486595,
-0.02293652668595314,
0.2862890958786011,
0.027783038094639778,
0.222078338265419,
0.4201599359512329,
-0.23694683611392975,
0.33187538385391235,
-0.17029070854187012,
-0.3368825614452362,
0.2943888008594513,
0.024181410670280457,
-0.2756515145301819,
-0.21433021128177643,
0.21075782179832458,
-0.11100530624389648,
-0.1910562515258789,
-0.030451184138655663,
-0.11828240752220154,
0.08060146868228912,
-0.28837376832962036,
-0.4726790487766266,
0.09791985899209976,
0.5448185801506042,
-0.33146777749061584,
0.27286186814308167,
-0.14083604514598846,
-0.3869785666465759,
0.2660953402519226,
0.10943885147571564,
0.7270159721374512,
-0.274971604347229,
0.3488994836807251,
-0.43700799345970154,
0.040763869881629944,
0.032310470938682556,
-0.44451501965522766,
0.08480101823806763,
-0.40149208903312683,
-0.41333359479904175,
-0.05954514443874359,
-0.18931356072425842,
0.04021955281496048,
0.4990396499633789,
-0.14653047919273376,
-0.022271553054451942,
-0.017848268151283264,
-0.07636500895023346,
-0.16301292181015015,
-0.1716432124376297,
-0.3598259687423706,
-0.2808666229248047,
0.2287328690290451,
0.21740281581878662,
-0.18892008066177368,
0.09513674676418304,
-0.030471183359622955,
0.0031737983226776123,
-0.16273632645606995,
0.20386455953121185,
-0.21756526827812195,
0.08925556391477585,
-0.5943809151649475,
0.13763627409934998,
-0.21811604499816895,
0.024808108806610107,
0.08807091414928436,
0.31571322679519653,
0.4517292380332947,
0.4367557168006897,
0.002665819600224495,
0.11915899813175201,
0.44173139333724976,
0.19773954153060913,
-0.19067126512527466,
-0.07739408314228058,
0.20276163518428802,
0.12212766706943512,
0.07919709384441376,
-0.28340864181518555,
-0.12047076225280762,
-0.4084978699684143,
-0.20664989948272705,
0.13601911067962646,
0.042676519602537155,
-0.275986909866333,
-0.006843287497758865,
-0.16435930132865906,
0.00465761125087738,
0.021864384412765503,
0.1564435511827469,
0.3987323045730591,
-0.2099609524011612,
0.47802287340164185,
-0.43397849798202515,
-0.33443450927734375,
0.08629395067691803,
0.6166929602622986,
-0.08992949873209,
-0.1760612279176712,
0.12322653830051422,
-0.20642688870429993,
-0.2042391300201416,
-0.2376883178949356,
0.13174772262573242,
0.20236167311668396,
-0.1186874508857727,
-0.0029151812195777893,
0.12985093891620636,
-0.201567143201828,
0.25262320041656494,
-0.40550434589385986,
0.051546502858400345,
0.2109723687171936,
0.035671018064022064,
-0.2672995924949646,
-0.5579943656921387,
-0.2802608013153076,
-0.2669660151004791,
0.2188713401556015,
0.2362944781780243,
-0.4425871670246124,
0.12865759432315826,
0.0033917762339115143,
-0.30724409222602844,
-0.16271302103996277,
-0.036246344447135925,
0.12240874767303467,
0.18379436433315277,
-0.0766964852809906,
-0.03252318874001503,
-0.18415036797523499,
-0.0003420598804950714,
-0.018424920737743378,
-0.09415271878242493,
-0.25664183497428894,
-0.0072457455098629,
0.0827956348657608,
0.19266612827777863,
-0.4056093990802765,
0.18345369398593903,
-0.4027767777442932,
-0.10519635677337646,
-0.3707084059715271,
0.11699706315994263,
0.3733254075050354,
0.10564378648996353,
0.22041402757167816,
0.1463717520236969,
-0.06429187953472137,
-0.08913391828536987,
0.13610568642616272,
-0.2207280397415161,
-0.2519521117210388,
-0.260211706161499,
0.2186691164970398,
-0.35249534249305725,
-0.08475315570831299,
0.2697778344154358,
-0.08074293285608292,
0.11063709855079651,
0.10640377551317215,
0.13498058915138245,
0.06929413229227066,
-0.08487764745950699,
-0.0026870332658290863,
0.3689286708831787,
-0.07101693749427795,
-0.035571906715631485,
-0.014939878135919571,
0.30702292919158936,
0.1688724160194397,
0.07946491241455078,
-0.30349186062812805,
0.2815038561820984,
-0.26085785031318665,
0.11384207010269165,
0.3206256926059723,
0.15164043009281158,
-0.3100244998931885,
0.16788846254348755,
-0.0553317591547966,
0.14276018738746643,
-0.2854297161102295,
0.37259769439697266,
-0.03705285117030144,
-0.02424439787864685,
0.10646645724773407,
0.3017580509185791,
0.24555763602256775,
0.006735172122716904,
0.17861559987068176,
0.1392190307378769,
0.2059951275587082,
0.31614887714385986,
-0.37792015075683594,
0.24912235140800476,
-0.5594156384468079,
0.0484786182641983,
0.008232064545154572,
0.03254629671573639,
0.31141939759254456,
0.10863059014081955,
-0.014919508248567581,
-0.06773742288351059,
-0.3752583861351013,
-0.024697106331586838,
-0.06113187223672867,
-0.22305358946323395,
-0.0955304205417633,
0.044685788452625275,
0.1791999787092209,
-0.007664084434509277,
-0.1667661964893341,
-0.1541597992181778,
-0.18143431842327118,
0.07941044867038727,
0.19913852214813232,
0.16236715018749237,
0.25528398156166077,
0.03908351808786392,
0.03437131270766258,
-0.02181890979409218,
-0.25305014848709106,
-0.07371367514133453,
-0.4660959541797638,
-0.11477842926979065,
0.3790411353111267,
0.0014309696853160858,
0.13229013979434967,
0.026340249925851822,
0.08156080543994904,
0.24082891643047333,
0.2220015823841095,
0.07824573665857315,
-0.4063873291015625,
0.30512088537216187,
-0.07245129346847534,
-0.3299735188484192,
0.12915518879890442,
0.08069632947444916,
-0.12951038777828217,
-0.18495166301727295,
-0.2925867736339569,
-0.07619360834360123,
0.16652801632881165,
-0.07964848726987839,
-0.1766747683286667,
-0.5326673984527588,
0.19273741543293,
-0.036425624042749405,
0.13453026115894318,
0.058358121663331985,
0.3334975242614746,
0.014784492552280426,
0.18523623049259186,
-0.49018731713294983,
0.07737842947244644,
0.3475419580936432,
0.2903096377849579,
0.4328678250312805,
-0.17943403124809265,
0.0067896656692028046,
-0.058816611766815186,
-0.37550583481788635,
0.07901731878519058,
0.24033693969249725,
0.20122036337852478,
-0.04350452497601509,
-0.23689427971839905,
0.11399149894714355,
-0.17318886518478394,
0.6218094825744629,
-0.28110331296920776,
0.15270039439201355,
0.3637657165527344,
-0.21879713237285614,
-0.1694781333208084,
0.23256915807724,
-0.012817414477467537,
0.10897878557443619,
-0.4467698037624359,
0.2351071834564209,
0.10902225971221924,
0.14457395672798157,
-0.07534199953079224,
-0.14494504034519196,
0.17994345724582672,
0.4712296426296234,
0.461651086807251,
0.22167640924453735,
-0.05271855741739273,
0.008671492338180542,
0.38595637679100037,
-0.39134520292282104,
0.07963760942220688,
-0.22224193811416626,
-0.07899759709835052,
-0.09578248858451843,
0.07829824090003967,
-0.5545234680175781,
-0.23053205013275146,
-0.2888009250164032,
0.03866472840309143,
-0.1613692343235016,
0.2081173062324524,
0.13038024306297302,
0.15682852268218994,
-0.1873617321252823,
0.12220996618270874,
0.36092931032180786,
0.27846118807792664,
-0.08927007764577866,
0.2829226553440094,
-0.49971115589141846,
-0.21789860725402832,
0.2488846629858017,
-0.18255838751792908,
-0.23234736919403076,
-0.06422283500432968,
0.3706893026828766,
0.1894254833459854,
-0.2345670908689499,
0.10134910047054291,
0.1262747049331665,
0.2508758008480072,
-0.3542095124721527,
-0.15102128684520721,
0.04086240008473396,
-0.3003999590873718,
0.0062546506524086,
-0.2502034902572632,
0.397664338350296,
0.03913379833102226,
-0.23910918831825256,
-0.03542272746562958,
-0.29173195362091064
] |
https://github.com/huggingface/datasets/issues/2065 | FWIW, we have this issue with other caches - e.g. `transformers` model files. So probably will need to backport this into `transformers` as well.
thanks @thomwolf for the pointer. | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 29 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
FWIW, we have this issue with other caches - e.g. `transformers` model files. So probably will need to backport this into `transformers` as well.
thanks @thomwolf for the pointer. | [
-0.12074443697929382,
0.21106219291687012,
-0.084104984998703,
0.04681854322552681,
-0.0028635235503315926,
0.14593739807605743,
0.38540488481521606,
0.13916027545928955,
-0.20116811990737915,
-0.0585675984621048,
-0.13547825813293457,
-0.017622780054807663,
0.11561962962150574,
-0.2905226945877075,
-0.03995056822896004,
0.11758820712566376,
0.133742555975914,
0.0035107210278511047,
-0.03668688237667084,
-0.08392404019832611,
-0.09984130412340164,
-0.07525008916854858,
-0.08505207300186157,
-0.07264092564582825,
-0.361503005027771,
-0.13297612965106964,
0.2650977075099945,
0.22551444172859192,
0.009046964347362518,
-0.12460523843765259,
0.30474287271499634,
0.4333626627922058,
0.07846885919570923,
0.12999776005744934,
-0.00011065085709560663,
-0.13994553685188293,
0.04879433661699295,
-0.06425362825393677,
0.09056714177131653,
0.2714790105819702,
-0.1321595311164856,
-0.0761752799153328,
-0.16861718893051147,
-0.10695865750312805,
-0.1106693297624588,
0.29722630977630615,
0.12265703827142715,
-0.5791886448860168,
0.4974912405014038,
0.19748404622077942,
0.22749434411525726,
-0.05385082587599754,
-0.34133055806159973,
0.054043930023908615,
0.2926834523677826,
0.08097583055496216,
-0.2243642508983612,
0.055252283811569214,
0.2692471742630005,
-0.19586092233657837,
-0.01832137629389763,
0.05518634617328644,
-0.29503756761550903,
0.11538312584161758,
0.15488745272159576,
-0.12191293388605118,
-0.2390945553779602,
-0.5055351257324219,
0.19505420327186584,
0.062000952661037445,
0.7401832938194275,
-0.05043807998299599,
-0.4978569447994232,
-0.13246217370033264,
0.018821757286787033,
0.2531050443649292,
0.4132612943649292,
0.3396545350551605,
-0.0014015734195709229,
0.27197879552841187,
-0.539758563041687,
0.007285647094249725,
-0.13828907907009125,
-0.044791560620069504,
0.15223580598831177,
-0.0007980987429618835,
-0.013266846537590027,
0.08481569588184357,
-0.020191125571727753,
-0.09226685762405396,
0.09072654694318771,
0.08481913059949875,
-0.3772095739841461,
0.33448755741119385,
-0.17496198415756226,
0.0818714052438736,
-0.1774614304304123,
0.41313329339027405,
0.14112132787704468,
0.24015702307224274,
0.21636801958084106,
0.20278897881507874,
0.09417690336704254,
0.2004714161157608,
-0.0032463204115629196,
0.17157268524169922,
0.37084823846817017,
0.369602233171463,
0.5744592547416687,
-0.39038628339767456,
-0.17836743593215942,
0.00795471016317606,
0.0443066842854023,
-0.32673633098602295,
0.10369288176298141,
0.2564816176891327,
0.018813684582710266,
-0.2269122302532196,
0.15176329016685486,
0.11653759330511093,
-0.05086168274283409,
-0.21000325679779053,
0.04284534230828285,
0.2555072605609894,
0.16835959255695343,
-0.14306609332561493,
0.030289724469184875,
0.144500732421875,
0.033597491681575775,
-0.40303486585617065,
-0.02979941852390766,
-0.3423151969909668,
-0.4116487503051758,
0.35949915647506714,
0.47795799374580383,
-0.1639431118965149,
-0.0407777801156044,
0.22205495834350586,
0.10618267208337784,
-0.24785400927066803,
0.26982882618904114,
-0.0383964478969574,
0.4771813750267029,
0.35604262351989746,
0.14116519689559937,
0.34388574957847595,
0.07713963836431503,
-0.0027548521757125854,
-0.06629437953233719,
0.36061155796051025,
-0.278952956199646,
-0.06231231987476349,
0.30917680263519287,
0.06000380218029022,
-0.0259723998606205,
0.23416003584861755,
-0.300297349691391,
0.06536870449781418,
0.6256071925163269,
-0.12017378211021423,
0.415009081363678,
0.3077586591243744,
-0.19595910608768463,
-0.38340240716934204,
-0.14926165342330933,
0.31606221199035645,
-0.11996431648731232,
-0.030518367886543274,
-0.060519181191921234,
-0.03976728022098541,
-0.04604368284344673,
0.28011661767959595,
-0.03839484974741936,
0.1791476458311081,
-0.09199102222919464,
0.18464908003807068,
0.41499602794647217,
-0.026284366846084595,
-0.5820001363754272,
0.10691866278648376,
0.15091674029827118,
-0.1628607213497162,
0.13184140622615814,
-0.01729680225253105,
0.01634272187948227,
-0.07305270433425903,
-0.10576413571834564,
0.33871322870254517,
0.19759953022003174,
0.2817472517490387,
0.09357093274593353,
0.11249391734600067,
0.046246349811553955,
-0.08973804116249084,
0.13491961359977722,
0.40272343158721924,
0.2795727252960205,
-0.23796409368515015,
0.1736053228378296,
-0.22973096370697021,
0.3001245856285095,
0.48298147320747375,
0.08825770020484924,
-0.15607619285583496,
0.009419262409210205,
-0.08818595856428146,
-0.4463414251804352,
0.3059568703174591,
-0.17696495354175568,
-0.36492305994033813,
0.09362320601940155,
-0.3864361345767975,
0.023462995886802673,
-0.27652883529663086,
-0.21045958995819092,
-0.08247002214193344,
0.09919244796037674,
0.0023034531623125076,
-0.016041211783885956,
-0.3887529671192169,
0.22744274139404297,
0.3831128776073456,
0.304508239030838,
-0.030099177733063698,
-0.09522190690040588,
0.12346655875444412,
-0.1274683028459549,
-0.07492676377296448,
-0.2616175413131714,
-0.040663354098796844,
0.2922341823577881,
0.008163303136825562,
-0.32181504368782043,
0.23080748319625854,
0.11621563136577606,
0.056713830679655075,
-0.08736671507358551,
0.24935871362686157,
-0.03523219749331474,
0.08070239424705505,
0.042819492518901825,
-0.18409298360347748,
-0.05394915118813515,
-0.13258381187915802,
-0.28538116812705994,
0.274026095867157,
-0.03705301135778427,
-0.06514756381511688,
-0.23755064606666565,
0.21298544108867645,
0.14217524230480194,
-0.017199277877807617,
-0.07112482190132141,
-0.17824184894561768,
-0.06359614431858063,
0.1644783765077591,
0.3153991401195526,
0.22288893163204193,
0.11953140795230865,
0.04577625170350075,
0.40264326333999634,
0.22611626982688904,
0.11566038429737091,
-0.02256142720580101,
-0.15934401750564575,
0.06627453863620758,
0.17170321941375732,
0.36076250672340393,
0.22269275784492493,
0.014555346220731735,
0.3567924499511719,
-0.21216848492622375,
0.2847142219543457,
-0.18050500750541687,
0.02120339497923851,
-0.032997291535139084,
-0.028204655274748802,
-0.1503198891878128,
-0.09305877238512039,
0.00976179912686348,
-0.10507559031248093,
0.3722708821296692,
0.16793790459632874,
0.0914388969540596,
-0.34065407514572144,
-0.104112908244133,
-0.20761805772781372,
-0.16165098547935486,
0.26953253149986267,
-0.019201423972845078,
-0.6123400330543518,
-0.08510112762451172,
-0.15969431400299072,
0.16299760341644287,
-0.046583328396081924,
0.1571589708328247,
-0.26910483837127686,
0.20402640104293823,
-0.023453328758478165,
-0.11805547028779984,
-0.3213479220867157,
0.1613808423280716,
0.03320609778165817,
0.05376521497964859,
0.25607380270957947,
-0.6495656967163086,
0.09172989428043365,
0.026991426944732666,
0.3185984790325165,
-0.23262450098991394,
0.05958476662635803,
-0.14622779190540314,
-0.0715484470129013,
0.039310358464717865,
-0.517253577709198,
0.11414720118045807,
-0.14510750770568848,
0.03795015066862106,
-0.09774783253669739,
-0.2473941147327423,
-0.2224612534046173,
0.03857540339231491,
0.055155493319034576,
-0.10709498077630997,
-0.3245079517364502,
-0.04226887226104736,
-0.02628900296986103,
-0.1569158434867859,
0.43479257822036743,
0.05267046391963959,
0.1734730303287506,
0.11916738748550415,
-0.3077765703201294,
-0.352128803730011,
-0.22859644889831543,
0.24584737420082092,
-0.40416496992111206,
-0.5424073338508606,
0.36127254366874695,
-0.4819197952747345,
-0.43196165561676025,
0.07868801057338715,
0.21857821941375732,
0.07978800684213638,
0.4152202010154724,
0.04380026459693909,
0.08299568295478821,
-0.2696129381656647,
0.1614711880683899,
-0.1929752081632614,
0.07663866877555847,
0.051577065140008926,
0.04905019700527191,
0.11126400530338287,
-0.08585811406373978,
-0.1944165676832199,
0.10116206109523773,
0.02000568062067032,
-0.2241314798593521,
0.032372742891311646,
-0.004168202169239521,
0.17052292823791504,
0.6693531274795532,
0.39006054401397705,
0.2593128979206085,
0.26666682958602905,
0.36425235867500305,
0.5709925889968872,
0.04902570694684982,
-0.13288718461990356,
0.11909480392932892,
-0.0469399020075798,
-0.08855471014976501,
0.0905672162771225,
0.046361371874809265,
-0.2562759816646576,
0.03027717024087906,
0.0650874525308609,
-0.22953812777996063,
-0.46303170919418335,
-0.2507559657096863,
-0.30046260356903076,
0.14451853930950165,
0.15810339152812958,
0.12501513957977295,
-0.23618243634700775,
-0.16316981613636017,
0.058647945523262024,
0.2605685293674469,
0.2015032321214676,
0.23327788710594177,
-0.3842126429080963,
-0.010405529290437698,
-0.2581266760826111,
0.3752672076225281,
-0.023439764976501465,
0.5265200138092041,
-0.2363997995853424,
0.11084816604852676,
0.19920417666435242,
0.3797488510608673,
0.41199737787246704,
-0.43674173951148987,
0.3121190071105957,
-0.02903636544942856,
0.17296560108661652,
0.3494870364665985,
-0.25481677055358887,
0.43420448899269104,
0.4451817572116852,
0.09644235670566559,
0.12089388817548752,
0.15034115314483643,
-0.16601556539535522,
-0.40233314037323,
-0.2793959975242615,
-0.09916482865810394,
-0.19781355559825897,
0.10596179217100143,
0.31938785314559937,
-0.04683849215507507,
-0.033152949064970016,
0.330181360244751,
-0.34474992752075195,
-0.1954694241285324,
-0.010511606931686401,
-0.11847678571939468,
0.16097070276737213,
0.05160631984472275,
-0.05858984962105751,
0.2994741201400757,
0.06005534157156944,
0.05660781264305115,
0.4806615114212036,
0.0394468791782856,
0.02503070794045925,
0.37151068449020386,
-0.18798714876174927,
0.32470977306365967,
-0.1371186524629593,
-0.29705315828323364,
0.3379124701023102,
0.0407545268535614,
-0.3488022983074188,
-0.15309065580368042,
0.10462592542171478,
-0.25818318128585815,
-0.2618081569671631,
-0.15632304549217224,
-0.10677921026945114,
0.04925282672047615,
-0.20825998485088348,
-0.4934576749801636,
0.2734440565109253,
0.4977818429470062,
-0.3501680791378021,
0.2535848319530487,
-0.31351619958877563,
-0.3273329734802246,
0.149907186627388,
0.03243181109428406,
0.7552207708358765,
-0.24709674715995789,
0.3169735372066498,
-0.4600430130958557,
0.06716715544462204,
0.008199945092201233,
-0.39945828914642334,
0.1234065592288971,
-0.4250824451446533,
-0.35805100202560425,
-0.1449173092842102,
-0.14111241698265076,
0.018852142617106438,
0.4696407914161682,
0.04082164168357849,
0.03989464044570923,
-0.15101061761379242,
0.021585457026958466,
-0.09142772853374481,
-0.25676876306533813,
-0.0955880805850029,
-0.3043407201766968,
0.31245118379592896,
0.15150371193885803,
-0.23435544967651367,
0.09908498823642731,
-0.02983393333852291,
-0.05360132455825806,
-0.22792154550552368,
0.2225683629512787,
-0.3397306799888611,
0.12918563187122345,
-0.519161581993103,
0.1301487386226654,
-0.10927408188581467,
0.013814136385917664,
0.20910467207431793,
0.2999211847782135,
0.3164101243019104,
0.3617786765098572,
-0.06359852105379105,
0.13563203811645508,
0.34360453486442566,
0.2180137038230896,
-0.2584342956542969,
0.1038961410522461,
0.29545214772224426,
0.16152435541152954,
0.03941628336906433,
-0.2853001356124878,
-0.1933385729789734,
-0.2738267779350281,
-0.3235788345336914,
0.26835185289382935,
0.0029195351526141167,
-0.19891902804374695,
0.02427874505519867,
-0.11087814718484879,
0.06100241839885712,
0.015559695661067963,
0.1157345101237297,
0.42386654019355774,
-0.020925873890519142,
0.5243256092071533,
-0.3454038202762604,
-0.34920966625213623,
0.06384281814098358,
0.6376703381538391,
-0.07075278460979462,
-0.17711031436920166,
0.19358283281326294,
-0.25590601563453674,
-0.29884403944015503,
-0.19648253917694092,
0.13733163475990295,
0.06160375475883484,
-0.18593654036521912,
-0.040169764310121536,
0.03373332694172859,
-0.10015255957841873,
0.22257426381111145,
-0.41493555903434753,
0.0018223202787339687,
0.08366542309522629,
0.09382114559412003,
-0.3515957295894623,
-0.42222535610198975,
-0.3398020267486572,
-0.43312811851501465,
0.14470861852169037,
0.2051095813512802,
-0.4737241566181183,
0.23010241985321045,
0.09232696890830994,
-0.23309868574142456,
-0.23269608616828918,
0.017957210540771484,
0.1307041347026825,
0.2646753191947937,
-0.03880061209201813,
-0.09755317121744156,
-0.23626898229122162,
-0.08609214425086975,
0.0690360739827156,
-0.04647213593125343,
-0.2174896001815796,
-0.020386192947626114,
0.13343819975852966,
0.25569042563438416,
-0.3523869216442108,
0.09479773044586182,
-0.36805081367492676,
-0.1311713308095932,
-0.42311015725135803,
0.04217861592769623,
0.3070082664489746,
0.1483246386051178,
0.37425488233566284,
0.18870899081230164,
-0.008383158594369888,
-0.12447403371334076,
0.1481427401304245,
-0.16771508753299713,
-0.20918047428131104,
-0.20644435286521912,
0.19404377043247223,
-0.27293920516967773,
-0.050081878900527954,
-0.006315875798463821,
-0.06161843612790108,
0.0653189867734909,
0.05509266257286072,
0.14596885442733765,
-0.07096470892429352,
-0.006733238697052002,
0.13860481977462769,
0.23728302121162415,
-0.002030644565820694,
-0.05026960000395775,
-0.01039009541273117,
0.2375587821006775,
0.12212818115949631,
0.1217861920595169,
-0.2690325677394867,
0.3627375066280365,
-0.1349640041589737,
0.057602837681770325,
0.28760412335395813,
0.23206257820129395,
-0.279446005821228,
0.18336990475654602,
-0.03900950029492378,
0.10569745302200317,
-0.3609682321548462,
0.4730052351951599,
-0.05943739414215088,
0.12132171541452408,
0.10098820924758911,
0.4183328449726105,
0.21286927163600922,
-0.019625287503004074,
0.3656489849090576,
0.3269251883029938,
0.10126955807209015,
0.2761338949203491,
-0.34887197613716125,
0.14090660214424133,
-0.6575963497161865,
0.09694266319274902,
-0.03861502557992935,
0.016814105212688446,
0.32657936215400696,
0.07763707637786865,
0.009059218689799309,
-0.03212422505021095,
-0.2968243360519409,
-0.11238067597150803,
-0.08420202136039734,
-0.12608084082603455,
-0.11413262784481049,
0.11896733939647675,
0.10171414911746979,
0.04813230037689209,
-0.25133609771728516,
-0.1284193992614746,
-0.1908627152442932,
0.23669591546058655,
0.18947067856788635,
0.02254324220120907,
0.23108461499214172,
0.027327489107847214,
0.07066767662763596,
-0.01913447678089142,
-0.2209809422492981,
-0.05422632396221161,
-0.513969361782074,
-0.1181323379278183,
0.2671554386615753,
0.021915024146437645,
0.05167354270815849,
0.11157381534576416,
0.09486272931098938,
0.1615169644355774,
0.2507718801498413,
0.010993927717208862,
-0.3054788112640381,
0.4592895805835724,
-0.11786863207817078,
-0.35373160243034363,
0.09376581013202667,
0.021020695567131042,
-0.07841118425130844,
-0.10898162424564362,
-0.2171056568622589,
0.14532122015953064,
0.13752949237823486,
-0.00401126965880394,
-0.2561236619949341,
-0.501204252243042,
0.07708436250686646,
-0.0805307924747467,
0.18891651928424835,
0.07087408006191254,
0.5467100739479065,
0.033171478658914566,
0.20297493040561676,
-0.5516825914382935,
0.05141819268465042,
0.4038561284542084,
0.32212305068969727,
0.42214810848236084,
-0.11191920936107635,
-0.037520550191402435,
0.06983412802219391,
-0.3635554313659668,
0.1241147369146347,
0.24848651885986328,
0.5065732002258301,
0.0020052380859851837,
-0.18735574185848236,
0.117912657558918,
-0.21557475626468658,
0.6327928304672241,
-0.2546354830265045,
0.26723936200141907,
0.3509071469306946,
-0.22996753454208374,
-0.20000499486923218,
0.11872124671936035,
-0.07960781455039978,
0.10355297476053238,
-0.3836972117424011,
0.32404792308807373,
0.21627330780029297,
0.09568867087364197,
-0.20023715496063232,
-0.22552332282066345,
0.18380597233772278,
0.47271299362182617,
0.4594869911670685,
0.22867193818092346,
0.03395134210586548,
0.03512100875377655,
0.36506953835487366,
-0.4535733759403229,
0.054758377373218536,
-0.1416042447090149,
-0.09210088104009628,
-0.2004777044057846,
0.08679144084453583,
-0.5620110034942627,
-0.12653133273124695,
-0.37229833006858826,
0.01742539182305336,
-0.19917912781238556,
0.26977768540382385,
0.017330065369606018,
0.0229685977101326,
-0.22988012433052063,
0.09924215823411942,
0.3050503134727478,
0.2027696669101715,
-0.11153005063533783,
0.3502514064311981,
-0.4840325713157654,
-0.1511731743812561,
0.30064958333969116,
-0.2600475549697876,
-0.32856929302215576,
-0.013343766331672668,
0.37328916788101196,
0.1472625881433487,
-0.21728448569774628,
0.010692983865737915,
0.06261929869651794,
0.3244999647140503,
-0.37473052740097046,
-0.08604396879673004,
-0.022511214017868042,
-0.36463379859924316,
0.09160333126783371,
-0.17821303009986877,
0.5489760637283325,
-0.009465509094297886,
-0.20975923538208008,
0.07207953929901123,
-0.2157580852508545
] |
https://github.com/huggingface/datasets/issues/2065 | Hi @stas00,
For this should we use the same umask code in the respective model directory inside `TRANSFORMERS_CACHE`? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 18 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Hi @stas00,
For this should we use the same umask code in the respective model directory inside `TRANSFORMERS_CACHE`? | [
-0.20815686881542206,
0.11179560422897339,
-0.061236247420310974,
0.04073656350374222,
-0.006120380014181137,
0.1279415637254715,
0.3894426226615906,
0.05715934559702873,
-0.21278135478496552,
-0.04198862612247467,
-0.19218555092811584,
-0.1231594905257225,
0.10957241803407669,
-0.33432164788246155,
-0.06807143241167068,
0.14723457396030426,
0.18238887190818787,
-0.0031139813363552094,
-0.03652162477374077,
-0.12637490034103394,
-0.12844416499137878,
-0.08202174305915833,
-0.03726059943437576,
-0.0927572250366211,
-0.44900795817375183,
-0.13689537346363068,
0.2483735978603363,
0.15584668517112732,
-0.007317693904042244,
-0.06543343514204025,
0.28898975253105164,
0.5932967662811279,
0.23361456394195557,
0.1448650062084198,
-0.00011699361493811011,
-0.11807907372713089,
0.03912719339132309,
-0.12116697430610657,
0.04570888355374336,
0.2500948905944824,
0.025078311562538147,
0.09063704311847687,
-0.13915574550628662,
-0.09568305313587189,
-0.19041478633880615,
0.33189961314201355,
0.11942526698112488,
-0.5785186886787415,
0.5322913527488708,
0.14015699923038483,
0.13093408942222595,
-0.014124244451522827,
-0.3408098816871643,
0.1006268709897995,
0.20941945910453796,
0.17732957005500793,
-0.14003601670265198,
0.018630076199769974,
0.31942033767700195,
-0.21089786291122437,
-0.07113438844680786,
0.09768340736627579,
-0.21373048424720764,
0.08673490583896637,
0.1340913623571396,
-0.07249681651592255,
-0.13304740190505981,
-0.5008395910263062,
0.10768704116344452,
0.005132731050252914,
0.7109181880950928,
-0.142366424202919,
-0.6123546361923218,
-0.05606462061405182,
-0.03371400758624077,
0.3846222162246704,
0.33832716941833496,
0.28566983342170715,
-0.045028865337371826,
0.37556591629981995,
-0.5367850065231323,
0.06849157810211182,
-0.22871336340904236,
-0.04216105118393898,
0.13869822025299072,
0.2050117552280426,
-0.009668178856372833,
0.08899640291929245,
-0.08278512954711914,
-0.09615910798311234,
0.24550200998783112,
-0.005351897329092026,
-0.3007270395755768,
0.3485355079174042,
-0.18207812309265137,
-0.042630020529031754,
-0.22020848095417023,
0.33568888902664185,
0.16676604747772217,
0.3436242640018463,
0.18892717361450195,
0.17372050881385803,
0.1336095929145813,
0.22004222869873047,
0.007802385836839676,
0.23463097214698792,
0.37913408875465393,
0.5106110572814941,
0.5242033004760742,
-0.30716460943222046,
-0.20087681710720062,
-0.03526634722948074,
0.05759185925126076,
-0.25706747174263,
0.030737966299057007,
0.3571113348007202,
-0.015262752771377563,
-0.18888801336288452,
0.21967530250549316,
-0.03493162989616394,
-0.06663982570171356,
-0.25997084379196167,
0.07115677744150162,
0.3590392470359802,
0.145292267203331,
-0.03909800201654434,
0.012390904128551483,
0.141541987657547,
-0.0037327073514461517,
-0.33805644512176514,
-0.013078434392809868,
-0.36805516481399536,
-0.325483500957489,
0.4648857116699219,
0.4442014694213867,
0.08915309607982635,
0.03967469185590744,
0.13464505970478058,
0.20657019317150116,
-0.2064385712146759,
0.37500500679016113,
0.0013636872172355652,
0.40037408471107483,
0.43536579608917236,
0.2459951639175415,
0.3363814949989319,
0.015128236263990402,
-0.0809631422162056,
-0.14400744438171387,
0.3134814500808716,
-0.24287661910057068,
-0.19312560558319092,
0.4719356894493103,
0.03606151416897774,
-0.043691348284482956,
0.2789411246776581,
-0.26688283681869507,
0.026330001652240753,
0.665494441986084,
-0.09026839584112167,
0.4075945019721985,
0.3725253939628601,
-0.11058604717254639,
-0.4050096273422241,
-0.06724592298269272,
0.3489079475402832,
-0.010278984904289246,
-0.12888021767139435,
-0.014126986265182495,
-0.0060509201139211655,
-0.09852370619773865,
0.46306172013282776,
-0.09636425971984863,
0.1696590632200241,
-0.09435082226991653,
0.09779563546180725,
0.5256637334823608,
-0.17327404022216797,
-0.6490618586540222,
0.15004922449588776,
0.20325124263763428,
-0.10298162698745728,
0.2669629752635956,
0.013992294669151306,
-0.06500370055437088,
-0.13462667167186737,
-0.0769752562046051,
0.3790941834449768,
0.13223841786384583,
0.2626498341560364,
0.03444874286651611,
0.02482641488313675,
0.016653865575790405,
-0.030001122504472733,
0.1266813576221466,
0.369010865688324,
0.24322547018527985,
-0.19309641420841217,
0.3039461374282837,
-0.2294328212738037,
0.2638656497001648,
0.4840605556964874,
0.17772023379802704,
-0.16016915440559387,
0.08623966574668884,
-0.01896224170923233,
-0.4171617031097412,
0.25498828291893005,
-0.3125736713409424,
-0.3193020820617676,
-0.007652919739484787,
-0.5207284688949585,
0.07624590396881104,
-0.2444818615913391,
-0.20630212128162384,
-0.21497738361358643,
0.022807784378528595,
-0.04470294713973999,
0.10496917366981506,
-0.41116222739219666,
0.11102832853794098,
0.3464648127555847,
0.3115409016609192,
0.049517519772052765,
-0.19320032000541687,
0.18174079060554504,
-0.18960566818714142,
-0.06894391030073166,
-0.3376694619655609,
-0.11105895042419434,
0.20502571761608124,
-0.01927376538515091,
-0.2887730896472931,
0.29575929045677185,
0.14303646981716156,
0.007831446826457977,
-0.14203840494155884,
0.32612353563308716,
0.07837296277284622,
0.04708152264356613,
0.05940989404916763,
-0.10946594178676605,
-0.12912893295288086,
-0.10178925842046738,
-0.3648788630962372,
0.37840718030929565,
-0.08484445512294769,
-0.07702070474624634,
-0.1734047383069992,
0.20517274737358093,
0.15647655725479126,
0.00750134140253067,
-0.13633188605308533,
-0.16565825045108795,
-0.0612606555223465,
0.16250063478946686,
0.40348124504089355,
0.2103196680545807,
0.2471066266298294,
-0.025975454598665237,
0.37934741377830505,
0.1497160792350769,
0.06588149815797806,
-0.0658506453037262,
-0.19658613204956055,
0.07033036649227142,
0.18888920545578003,
0.3214995265007019,
0.27103695273399353,
0.013844046741724014,
0.2941032648086548,
-0.21107611060142517,
0.4143126308917999,
-0.15996423363685608,
0.010028433054685593,
0.043276429176330566,
-0.08962735533714294,
-0.1311381757259369,
-0.17033830285072327,
-0.03574501723051071,
-0.011599108576774597,
0.2849646806716919,
0.09546156972646713,
0.07645455002784729,
-0.30828946828842163,
-0.06911732256412506,
-0.006001859903335571,
-0.1206071525812149,
0.21134676039218903,
0.008836843073368073,
-0.534311056137085,
0.013432122766971588,
-0.15192192792892456,
0.18065768480300903,
-0.04566389322280884,
0.26926952600479126,
-0.06770668923854828,
0.17025889456272125,
-0.01670870929956436,
0.000453682616353035,
-0.3200587034225464,
0.13854876160621643,
0.11853344738483429,
0.00396709144115448,
0.20436057448387146,
-0.6563027501106262,
-0.027507953345775604,
0.0460510179400444,
0.3301208019256592,
-0.21555709838867188,
-0.055622100830078125,
-0.160806804895401,
0.09058128297328949,
0.07824358344078064,
-0.49640369415283203,
0.00020677968859672546,
-0.10861624032258987,
-0.06543585658073425,
-0.0726546198129654,
-0.2998085021972656,
-0.15918317437171936,
0.029574096202850342,
-0.022271016612648964,
-0.09887152910232544,
-0.22201849520206451,
-0.04800761491060257,
-0.1937405914068222,
-0.12970933318138123,
0.47647857666015625,
0.11653487384319305,
0.15817269682884216,
-0.007676992565393448,
-0.24292835593223572,
-0.4943928122520447,
-0.19731277227401733,
0.21325242519378662,
-0.24778428673744202,
-0.5221065878868103,
0.40467357635498047,
-0.5165215730667114,
-0.40420207381248474,
-0.037891559302806854,
0.12063657492399216,
0.10276356339454651,
0.42092007398605347,
0.12237000465393066,
0.010921157896518707,
-0.2580071687698364,
0.06677846610546112,
-0.14466077089309692,
0.07875905930995941,
-0.030087251216173172,
0.019384432584047318,
0.19900599122047424,
0.028443679213523865,
-0.0990145280957222,
0.04244463890790939,
-0.01890319213271141,
-0.16154992580413818,
-0.0023802854120731354,
0.11946660280227661,
0.15785819292068481,
0.5748951435089111,
0.515282928943634,
0.3354962468147278,
0.16769000887870789,
0.4023926854133606,
0.45401132106781006,
0.10085433721542358,
-0.05855587124824524,
0.04098052531480789,
0.020249418914318085,
-0.21650969982147217,
0.12308357656002045,
0.0902068018913269,
-0.16556888818740845,
0.015207700431346893,
-0.0641169548034668,
-0.18576976656913757,
-0.5319419503211975,
-0.14086899161338806,
-0.27218151092529297,
0.16162700951099396,
0.15762419998645782,
0.12660521268844604,
-0.28795844316482544,
-0.10875089466571808,
0.11601591110229492,
0.3581826984882355,
0.10022515803575516,
0.3036811351776123,
-0.5236629247665405,
-0.011666297912597656,
-0.29404115676879883,
0.37122222781181335,
-0.05267452821135521,
0.47818389534950256,
-0.1404576152563095,
0.13592739403247833,
0.17580106854438782,
0.2980238199234009,
0.4374081790447235,
-0.528073251247406,
0.23661743104457855,
-0.08742000162601471,
0.017616286873817444,
0.2904190421104431,
-0.21599021553993225,
0.33458787202835083,
0.3485827147960663,
0.15344396233558655,
0.23273229598999023,
0.11842334270477295,
-0.19433094561100006,
-0.41784822940826416,
-0.34189844131469727,
-0.19988581538200378,
-0.2810033857822418,
0.08845998346805573,
0.2675309479236603,
-0.15634529292583466,
-0.1238451823592186,
0.33864420652389526,
-0.4243192970752716,
-0.16917839646339417,
-0.030950527638196945,
-0.2532268464565277,
0.1516338437795639,
0.12433828413486481,
0.03802487999200821,
0.3162676990032196,
-0.08698464930057526,
-0.049333520233631134,
0.4028517007827759,
-0.06701977550983429,
0.19036635756492615,
0.3316859304904938,
-0.21631726622581482,
0.2620120048522949,
-0.14156733453273773,
-0.3252260386943817,
0.3678044378757477,
-0.01375870406627655,
-0.29717743396759033,
-0.12931662797927856,
0.24090000987052917,
-0.15910843014717102,
-0.21081987023353577,
-0.16388976573944092,
-0.19809702038764954,
0.11509633809328079,
-0.24453946948051453,
-0.6280332207679749,
0.20983217656612396,
0.5318973660469055,
-0.3056163787841797,
0.09316141903400421,
-0.3135222792625427,
-0.3025103509426117,
0.4424116909503937,
0.06268981099128723,
0.8635251522064209,
-0.22366932034492493,
0.38695788383483887,
-0.54082190990448,
0.07003635168075562,
0.09280019998550415,
-0.6927386522293091,
0.16626524925231934,
-0.4834657311439514,
-0.3403414487838745,
-0.15004660189151764,
-0.12808844447135925,
0.051707904785871506,
0.5709948539733887,
-0.022260375320911407,
0.11497737467288971,
-0.03657419979572296,
-0.027195574715733528,
-0.10760607570409775,
-0.1904333084821701,
-0.11430077254772186,
-0.24195946753025055,
0.35029417276382446,
0.06272569298744202,
-0.12591545283794403,
0.15669481456279755,
-0.043890330940485,
-0.08002559840679169,
-0.25016120076179504,
0.17296794056892395,
-0.2542051672935486,
0.06477274000644684,
-0.6468900442123413,
0.21808218955993652,
-0.08377162367105484,
-0.025067336857318878,
0.1623346209526062,
0.4216916859149933,
0.40394118428230286,
0.36500149965286255,
-0.031470902264118195,
0.10828608274459839,
0.3321976065635681,
0.14467354118824005,
-0.32376089692115784,
0.0723176896572113,
0.294104665517807,
0.15437929332256317,
0.015210375189781189,
-0.27002158761024475,
-0.15848670899868011,
-0.30131179094314575,
-0.30815818905830383,
0.08675168454647064,
0.10680437088012695,
-0.30214163661003113,
0.0785166472196579,
-0.14903470873832703,
-0.08905118703842163,
0.05875936150550842,
0.050411075353622437,
0.39105474948883057,
-0.0951102003455162,
0.5340355634689331,
-0.3091875910758972,
-0.3310890793800354,
0.03592486307024956,
0.6514387726783752,
-0.04537013918161392,
-0.19395919144153595,
0.15757867693901062,
-0.29661309719085693,
-0.27240002155303955,
-0.1678066998720169,
0.06826850771903992,
0.2438829243183136,
-0.39637088775634766,
-0.06856877356767654,
-0.0029539167881011963,
-0.23362310230731964,
0.2451341152191162,
-0.38474929332733154,
0.16896410286426544,
0.16393592953681946,
0.024643927812576294,
-0.26542845368385315,
-0.5594638586044312,
-0.28349852561950684,
-0.2164624184370041,
0.20274320244789124,
0.23690900206565857,
-0.4887748956680298,
0.10686629265546799,
0.1887073516845703,
-0.18415410816669464,
-0.31591057777404785,
-0.06301591545343399,
0.10146218538284302,
0.09158562123775482,
-0.08826135843992233,
-0.0840088352560997,
-0.1378980576992035,
-0.11527583003044128,
0.04915134236216545,
-0.07116089761257172,
-0.14313484728336334,
-0.02302965149283409,
0.1677422821521759,
0.21873439848423004,
-0.35382771492004395,
0.03717182204127312,
-0.259827196598053,
-0.08852757513523102,
-0.43739840388298035,
0.1055154949426651,
0.26221963763237,
0.2569025754928589,
0.38429147005081177,
0.26791179180145264,
-0.06951023638248444,
-0.39644724130630493,
0.1665250062942505,
-0.12369903922080994,
-0.26512929797172546,
-0.12650762498378754,
0.22971083223819733,
-0.3186565339565277,
-0.06101883575320244,
0.07647371292114258,
-0.1375400722026825,
0.21350102126598358,
0.09467341005802155,
0.14673060178756714,
-0.057869330048561096,
-0.03367311507463455,
0.06513898074626923,
0.19825954735279083,
-0.025997094810009003,
-0.04494601488113403,
0.013300351798534393,
0.17370186746120453,
0.08412856608629227,
0.12912607192993164,
-0.2564398944377899,
0.2524062991142273,
-0.15157338976860046,
0.042820170521736145,
0.42363378405570984,
0.2772772014141083,
-0.20707586407661438,
0.31707969307899475,
-0.03814954310655594,
0.18263666331768036,
-0.2552189826965332,
0.3662484884262085,
-0.006493846885859966,
0.14934992790222168,
0.189918652176857,
0.30613210797309875,
0.23712964355945587,
0.0702330619096756,
0.27719420194625854,
0.21583762764930725,
0.14196212589740753,
0.17075878381729126,
-0.33480164408683777,
0.17456437647342682,
-0.633568286895752,
0.06741753220558167,
-0.07875758409500122,
0.045823417603969574,
0.2807558476924896,
0.17738863825798035,
-0.11003720760345459,
0.11525282263755798,
-0.19911739230155945,
-0.01174900308251381,
-0.1957806944847107,
-0.09850862622261047,
-0.20100921392440796,
0.16801013052463531,
0.12251940369606018,
-0.030128605663776398,
-0.27151310443878174,
-0.1786382794380188,
-0.12180505692958832,
0.15853643417358398,
0.2640937864780426,
0.14307112991809845,
0.3340465724468231,
0.05513376742601395,
0.15709933638572693,
-0.017793960869312286,
-0.24397894740104675,
-0.07396736741065979,
-0.3206779956817627,
-0.13432975113391876,
0.20499934256076813,
0.0000669974833726883,
0.05799242854118347,
0.05112157389521599,
0.11866799741983414,
0.310568630695343,
0.34024927020072937,
0.017890609800815582,
-0.29191672801971436,
0.29634279012680054,
-0.08277900516986847,
-0.30416661500930786,
-0.018429897725582123,
0.002115122973918915,
-0.05448584258556366,
-0.1834934651851654,
-0.24120517075061798,
0.04299106448888779,
0.09394854307174683,
0.09257794171571732,
-0.17818836867809296,
-0.5503028631210327,
0.09452825039625168,
-0.06584519892930984,
0.07024882733821869,
0.09409907460212708,
0.47450992465019226,
-0.059111494570970535,
0.18573510646820068,
-0.4849860966205597,
0.006069004535675049,
0.4230896234512329,
0.3215772807598114,
0.41205865144729614,
-0.09900342673063278,
-0.04431185498833656,
-0.0291149839758873,
-0.30547648668289185,
0.1631394326686859,
0.283788800239563,
0.5087829828262329,
-0.02389044314622879,
-0.18261663615703583,
0.06060759723186493,
-0.16701458394527435,
0.5149813890457153,
-0.2089090645313263,
0.13681650161743164,
0.4491739273071289,
-0.2177421748638153,
-0.21925412118434906,
0.10720258206129074,
0.04069799929857254,
0.18624448776245117,
-0.3907722234725952,
0.2738785147666931,
0.27949365973472595,
0.0458575040102005,
-0.22873173654079437,
-0.17715366184711456,
0.25125205516815186,
0.5285199284553528,
0.40625065565109253,
0.24997395277023315,
0.00798209011554718,
-0.0523313507437706,
0.3134744465351105,
-0.32604798674583435,
0.1364382654428482,
-0.16926243901252747,
-0.1373758167028427,
-0.18826790153980255,
0.13720446825027466,
-0.5929562449455261,
-0.26248273253440857,
-0.3854259252548218,
-0.09654449671506882,
-0.13142412900924683,
0.048225127160549164,
0.04453735053539276,
0.07566844671964645,
-0.20004823803901672,
0.11093443632125854,
0.4055044949054718,
0.3100292682647705,
-0.11487296223640442,
0.34894272685050964,
-0.40454936027526855,
-0.061026643961668015,
0.32571613788604736,
-0.23062124848365784,
-0.21781358122825623,
-0.07273124158382416,
0.3382938802242279,
0.13069844245910645,
-0.21674659848213196,
-0.0988922119140625,
0.10647597908973694,
0.3080398440361023,
-0.36443114280700684,
-0.12644833326339722,
0.04999464005231857,
-0.1413325071334839,
0.02343890070915222,
-0.21859526634216309,
0.5168436765670776,
0.02584254741668701,
-0.21618683636188507,
0.012243837118148804,
-0.2569963335990906
] |
https://github.com/huggingface/datasets/issues/2065 | The cluster I am working on does not allow me to change the permission of the files with os.chmod. I was wondering if there is any workaround for this? My cache is in a GCP bucket and I can't change file permissions once I mount it. | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 46 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
The cluster I am working on does not allow me to change the permission of the files with os.chmod. I was wondering if there is any workaround for this? My cache is in a GCP bucket and I can't change file permissions once I mount it. | [
-0.0849485695362091,
0.2053641378879547,
-0.13074544072151184,
-0.029305942356586456,
-0.06478044390678406,
0.07882270216941833,
0.3084193766117096,
0.013334156945347786,
-0.2113334983587265,
0.03593330830335617,
-0.1470056176185608,
0.022648602724075317,
0.017908956855535507,
-0.24355930089950562,
-0.13073283433914185,
0.17412687838077545,
0.19587638974189758,
0.04343560338020325,
0.08693328499794006,
-0.08854711055755615,
-0.003311663866043091,
-0.057544007897377014,
-0.05967642366886139,
-0.1414012759923935,
-0.279451847076416,
-0.23823261260986328,
0.14776447415351868,
0.2552279531955719,
0.08635194599628448,
-0.12785369157791138,
0.22138890624046326,
0.48042726516723633,
0.028200097382068634,
0.20321691036224365,
-0.00011452189937699586,
-0.16824090480804443,
0.07915103435516357,
-0.11518459022045135,
0.04311906546354294,
0.3081018328666687,
0.06141357868909836,
-0.1325816512107849,
-0.12885357439517975,
-0.1664128452539444,
-0.0837651863694191,
0.20614784955978394,
0.19853593409061432,
-0.4843403995037079,
0.4135211408138275,
0.12881465256214142,
0.1643139123916626,
-0.15957704186439514,
-0.3996414840221405,
0.10880913585424423,
0.195116326212883,
0.15916550159454346,
-0.07064736634492874,
0.21368567645549774,
0.44614535570144653,
-0.16791126132011414,
-0.0726214051246643,
-0.039305008947849274,
-0.32938212156295776,
0.07360599935054779,
0.1594361811876297,
-0.11656785011291504,
-0.33046478033065796,
-0.49663877487182617,
0.21520788967609406,
0.10619653761386871,
0.6874063611030579,
-0.1381869614124298,
-0.5027025938034058,
-0.13933205604553223,
0.038323644548654556,
0.25308334827423096,
0.428499698638916,
0.41920581459999084,
0.0018134191632270813,
0.29650187492370605,
-0.47232356667518616,
-0.07866586744785309,
-0.134034663438797,
-0.052431829273700714,
0.17673850059509277,
-0.06322609633207321,
-0.004864463582634926,
0.03393971174955368,
-0.026395898312330246,
-0.02807980589568615,
0.12405896186828613,
0.030149605125188828,
-0.3629554808139801,
0.3153313994407654,
-0.14027810096740723,
0.09944527596235275,
-0.26512113213539124,
0.5284827947616577,
0.006276383996009827,
0.29181528091430664,
0.20822319388389587,
0.23710425198078156,
-0.03883560001850128,
0.29029738903045654,
-0.1067042201757431,
0.12288445234298706,
0.3259410560131073,
0.40871891379356384,
0.5137345194816589,
-0.36399543285369873,
-0.08751460164785385,
0.03783494234085083,
0.02360055223107338,
-0.3195236921310425,
-0.013885095715522766,
0.2421579360961914,
-0.0858338475227356,
-0.16394062340259552,
0.2257888913154602,
0.07599219679832458,
-0.008405238389968872,
-0.1867063343524933,
0.03926659747958183,
0.2887018024921417,
0.12234237790107727,
-0.1736307442188263,
-0.010698236525058746,
0.17976991832256317,
0.043452225625514984,
-0.3240155875682831,
0.013587307184934616,
-0.31135573983192444,
-0.26569047570228577,
0.4601539969444275,
0.41720306873321533,
-0.10507301241159439,
-0.06764407455921173,
0.2912190556526184,
0.1947982907295227,
-0.2353144884109497,
0.30912700295448303,
-0.0607093907892704,
0.2920544743537903,
0.325347900390625,
0.18684566020965576,
0.3309776186943054,
0.10179832577705383,
-0.024404175579547882,
-0.0934455543756485,
0.35784244537353516,
-0.3977195620536804,
-0.049747664481401443,
0.32606828212738037,
-0.0008940277621150017,
-0.03449036180973053,
0.25616732239723206,
-0.42837512493133545,
0.0628608763217926,
0.4540436267852783,
-0.1337539255619049,
0.428329735994339,
0.26108109951019287,
-0.07185044139623642,
-0.4513625502586365,
-0.20045146346092224,
0.2634904980659485,
-0.11972729861736298,
-0.016506589949131012,
0.037962447851896286,
0.0017695948481559753,
-0.021823108196258545,
0.320934534072876,
0.10781772434711456,
0.12528100609779358,
-0.0713312104344368,
0.23095811903476715,
0.47225382924079895,
-0.1774272918701172,
-0.5909866094589233,
0.09908539056777954,
0.21150052547454834,
-0.19238021969795227,
0.22524993121623993,
-0.016922760754823685,
0.08434794098138809,
-0.08936533331871033,
-0.2105858474969864,
0.25161588191986084,
0.25123727321624756,
0.2143014371395111,
0.11659042537212372,
0.03745049983263016,
-0.09595632553100586,
-0.08587783575057983,
0.08102746307849884,
0.3644486963748932,
0.48931190371513367,
-0.34906941652297974,
0.2804001271724701,
-0.32526615262031555,
0.3204003870487213,
0.5727002024650574,
0.13561642169952393,
-0.16823263466358185,
0.02549144998192787,
0.02209436148405075,
-0.3795965015888214,
0.29164648056030273,
-0.2632295489311218,
-0.3660082221031189,
0.07750269025564194,
-0.4162237048149109,
0.07734768092632294,
-0.35414502024650574,
-0.05663178116083145,
-0.03414076566696167,
0.04700722545385361,
-0.022220369428396225,
-0.03544754162430763,
-0.28453004360198975,
0.23688000440597534,
0.35754477977752686,
0.22148367762565613,
-0.036326341331005096,
0.02438877895474434,
0.17289280891418457,
-0.11158520728349686,
-0.18667002022266388,
-0.1827254444360733,
-0.13524305820465088,
0.2111755907535553,
-0.01947547122836113,
-0.2864001989364624,
0.32037466764450073,
0.0627136081457138,
0.2342618703842163,
-0.10768450796604156,
0.2704455852508545,
0.02440476231276989,
0.07021773606538773,
0.0878099650144577,
-0.24187013506889343,
-0.08751003444194794,
-0.16951210796833038,
-0.3584401309490204,
0.2034454047679901,
-0.08765161037445068,
-0.09714865684509277,
-0.19460472464561462,
0.22437237203121185,
0.08001681417226791,
-0.011498086154460907,
-0.07614198327064514,
-0.06735721230506897,
-0.0135894063860178,
0.08663615584373474,
0.39785054326057434,
0.19056935608386993,
0.1488155871629715,
0.05124657228589058,
0.28603363037109375,
0.12440001964569092,
0.1475752890110016,
-0.07548587024211884,
-0.09039299190044403,
0.10547861456871033,
0.279541552066803,
0.21873259544372559,
0.14710518717765808,
0.004030734300613403,
0.33859699964523315,
-0.14754636585712433,
0.3752838373184204,
-0.12684106826782227,
-0.07711836695671082,
-0.15405592322349548,
-0.08835726976394653,
-0.13599860668182373,
-0.11077186465263367,
-0.043459419161081314,
0.02426549792289734,
0.2827686071395874,
0.14557504653930664,
0.1204538643360138,
-0.2632810175418854,
-0.1141522079706192,
-0.255710244178772,
-0.051583319902420044,
0.36613041162490845,
0.08686424791812897,
-0.5661830902099609,
0.04333358258008957,
-0.2103928178548813,
0.26913997530937195,
-0.01351989060640335,
0.19118212163448334,
-0.25234904885292053,
0.2288282811641693,
-0.03227352350950241,
-0.14806324243545532,
-0.2952515482902527,
0.21416300535202026,
0.015819692984223366,
0.010695021599531174,
0.3028741776943207,
-0.6045711636543274,
0.09099850058555603,
0.0019458532333374023,
0.28315603733062744,
-0.2922200858592987,
0.10519347339868546,
-0.1740967333316803,
0.022633064538240433,
-0.0030489806085824966,
-0.5540347099304199,
0.027301277965307236,
-0.3341621160507202,
0.030437950044870377,
-0.12407945841550827,
-0.294771671295166,
-0.2539233863353729,
-0.023708179593086243,
0.054255563765764236,
-0.06347008794546127,
-0.26485127210617065,
0.06433404982089996,
-0.21015074849128723,
-0.1514260321855545,
0.46894216537475586,
0.15424053370952606,
0.254690945148468,
-0.004291672259569168,
-0.28131717443466187,
-0.44499748945236206,
-0.16702307760715485,
0.16571030020713806,
-0.31984010338783264,
-0.566350519657135,
0.3057975172996521,
-0.47323495149612427,
-0.40301403403282166,
-0.023372426629066467,
0.1524306833744049,
0.1272900104522705,
0.46783995628356934,
-0.02695348858833313,
0.005148023366928101,
-0.2500295341014862,
0.12239675223827362,
-0.2467847764492035,
0.1384652853012085,
0.02182823233306408,
0.03030494600534439,
0.19625869393348694,
-0.05296894162893295,
-0.12528930604457855,
0.05545850843191147,
0.12448697537183762,
-0.2791917622089386,
0.16640566289424896,
-0.0847843587398529,
0.14049962162971497,
0.6709716320037842,
0.3773748576641083,
0.4244348704814911,
0.272265762090683,
0.3247271776199341,
0.7302049994468689,
0.12461741268634796,
-0.0628170445561409,
0.28899016976356506,
-0.013389520347118378,
-0.175747811794281,
0.15961474180221558,
0.02034672349691391,
-0.2312094271183014,
0.09570671617984772,
-0.003727734088897705,
-0.27713823318481445,
-0.3858826756477356,
-0.20186492800712585,
-0.3079363703727722,
0.14873503148555756,
0.07286669313907623,
0.0545770525932312,
-0.3142862021923065,
-0.24703960120677948,
0.10747797787189484,
0.3831086754798889,
0.20306971669197083,
0.3425333499908447,
-0.4070144295692444,
-0.0347411185503006,
-0.3011969029903412,
0.3176653981208801,
0.011790607124567032,
0.37075749039649963,
-0.2678493559360504,
0.21570509672164917,
0.1715249866247177,
0.33956819772720337,
0.2564435601234436,
-0.3828893303871155,
0.26995018124580383,
0.008518777787685394,
0.2080085128545761,
0.29462164640426636,
-0.25724339485168457,
0.31248149275779724,
0.42224621772766113,
0.024907786399126053,
0.21697774529457092,
0.1960936188697815,
-0.10287526994943619,
-0.6051279306411743,
-0.22395509481430054,
-0.11190202832221985,
-0.20340494811534882,
0.17194348573684692,
0.17996975779533386,
-0.092299684882164,
-0.05624385178089142,
0.31988537311553955,
-0.30744630098342896,
-0.22490975260734558,
0.04544120281934738,
-0.12875258922576904,
0.18121367692947388,
0.09388566017150879,
-0.109000563621521,
0.33723875880241394,
0.06749887019395828,
-0.1226562038064003,
0.24836184084415436,
0.08353734761476517,
0.09303459525108337,
0.34977051615715027,
-0.14977872371673584,
0.42336392402648926,
-0.11376258730888367,
-0.297911673784256,
0.29812654852867126,
0.016107715666294098,
-0.2917388081550598,
-0.13824009895324707,
0.20755010843276978,
-0.21607857942581177,
-0.26803213357925415,
-0.04933531582355499,
-0.22400450706481934,
0.08202222734689713,
-0.3122127652168274,
-0.38802966475486755,
0.2686712145805359,
0.553467333316803,
-0.39655521512031555,
0.2616388201713562,
-0.16808849573135376,
-0.300828754901886,
0.17901867628097534,
0.12040436267852783,
0.7190362215042114,
-0.29612886905670166,
0.3211008608341217,
-0.46185213327407837,
0.11205233633518219,
0.03960879147052765,
-0.5703040957450867,
0.19952617585659027,
-0.44552913308143616,
-0.4774872362613678,
-0.11337989568710327,
-0.1065741777420044,
0.06555096805095673,
0.5330035090446472,
0.003749951720237732,
0.10778547823429108,
-0.05511142313480377,
0.03883719816803932,
-0.12134498357772827,
-0.32295870780944824,
-0.23504774272441864,
-0.22602640092372894,
0.41359376907348633,
0.1198645830154419,
-0.17444626986980438,
0.07465104758739471,
-0.014179971069097519,
0.04652945697307587,
-0.36173921823501587,
0.3299030065536499,
-0.2357504665851593,
0.040186621248722076,
-0.5751170516014099,
0.0991223007440567,
-0.07372818887233734,
-0.07401634007692337,
0.1048116534948349,
0.33926013112068176,
0.3460375964641571,
0.3306976854801178,
0.007202988490462303,
0.06395748257637024,
0.3123323917388916,
0.14176692068576813,
-0.21107017993927002,
0.0975186675786972,
0.24758335947990417,
0.1763695329427719,
0.09839107096195221,
-0.2315269410610199,
-0.2224016636610031,
-0.37363484501838684,
-0.30131474137306213,
0.2009025663137436,
-0.14795193076133728,
-0.10785464197397232,
-0.04246088117361069,
-0.20425502955913544,
0.03344185650348663,
0.09047708660364151,
0.049583226442337036,
0.4010518193244934,
0.03011554852128029,
0.642249584197998,
-0.36857202649116516,
-0.28548184037208557,
0.04085633158683777,
0.5404448509216309,
-0.05431031063199043,
-0.29566726088523865,
0.15509016811847687,
-0.3540063798427582,
-0.2286948710680008,
-0.14137449860572815,
0.14860473573207855,
0.07930883765220642,
0.010700896382331848,
-0.06307661533355713,
-0.04326186701655388,
-0.05687670409679413,
0.21385546028614044,
-0.5345432162284851,
0.07983699440956116,
0.22657549381256104,
0.04335375130176544,
-0.3421003818511963,
-0.4649162292480469,
-0.2401452660560608,
-0.3481583893299103,
0.15573082864284515,
0.1511918008327484,
-0.508783757686615,
0.09513682126998901,
0.041568823158741,
-0.16420727968215942,
-0.12861452996730804,
0.051601044833660126,
0.07311083376407623,
0.33850595355033875,
0.01899878866970539,
-0.1588599681854248,
-0.16263213753700256,
-0.1207437515258789,
-0.08929873257875443,
0.053351499140262604,
-0.15408413112163544,
0.005077563226222992,
0.1494770497083664,
0.26049378514289856,
-0.25310319662094116,
0.08123581856489182,
-0.43584877252578735,
-0.10039835423231125,
-0.4506257176399231,
0.04164516180753708,
0.2845422625541687,
0.20207694172859192,
0.2511107623577118,
0.06998355686664581,
0.06260891258716583,
-0.15283000469207764,
0.23919257521629333,
-0.14874497056007385,
-0.2532252073287964,
-0.2889768183231354,
0.17497143149375916,
-0.14203694462776184,
-0.007781632244586945,
0.1739615648984909,
-0.017034173011779785,
0.12529772520065308,
0.04234308376908302,
0.11931134760379791,
-0.035948846489191055,
0.054320164024829865,
0.14750131964683533,
0.27508074045181274,
-0.10931483656167984,
-0.08950444310903549,
0.0438598170876503,
0.3970387279987335,
0.07238661497831345,
0.17857414484024048,
-0.2559472918510437,
0.41711896657943726,
-0.06286409497261047,
0.03861289471387863,
0.36962199211120605,
0.2388712614774704,
-0.3735871911048889,
0.0670534074306488,
-0.045400530099868774,
0.10624082386493683,
-0.3169945478439331,
0.34141603112220764,
-0.013356797397136688,
0.16526710987091064,
0.13082167506217957,
0.386075496673584,
0.2238772213459015,
0.004743851721286774,
0.31098827719688416,
0.21202197670936584,
0.12346849590539932,
0.34333336353302,
-0.30536362528800964,
0.23510107398033142,
-0.7510091662406921,
-0.031038912013173103,
-0.14302735030651093,
0.04961147904396057,
0.3254125714302063,
-0.019784752279520035,
-0.00788358598947525,
-0.0898093432188034,
-0.3517856299877167,
0.01879284530878067,
-0.12844407558441162,
-0.19198979437351227,
-0.12209147214889526,
0.1341877430677414,
0.1036212146282196,
0.10803958773612976,
-0.2749180793762207,
-0.07915759086608887,
-0.17825855314731598,
0.13640284538269043,
0.228000670671463,
0.07636314630508423,
0.3642466962337494,
-0.06538526713848114,
0.1642998307943344,
0.07337523996829987,
-0.16496844589710236,
-0.10413808375597,
-0.5728365182876587,
-0.10511557757854462,
0.27070653438568115,
-0.019181804731488228,
0.06618931889533997,
0.11516973376274109,
0.106858029961586,
0.13422808051109314,
0.2190238982439041,
0.07347980886697769,
-0.25235235691070557,
0.27074211835861206,
-0.04092664271593094,
-0.4099368751049042,
-0.02648737281560898,
-0.014120390638709068,
-0.03404264152050018,
-0.0529232919216156,
-0.30124229192733765,
0.008419375866651535,
0.10287703573703766,
-0.10731418430805206,
-0.21305599808692932,
-0.49821871519088745,
0.061798546463251114,
-0.03902982547879219,
0.16347315907478333,
0.06297741830348969,
0.5249414443969727,
0.03628845885396004,
0.2379516363143921,
-0.3896828591823578,
0.02373775839805603,
0.39457452297210693,
0.1954464614391327,
0.4536018967628479,
-0.10138069093227386,
0.12337416410446167,
0.06125196814537048,
-0.28135043382644653,
0.12641139328479767,
0.2335796058177948,
0.39021962881088257,
-0.11251842975616455,
-0.2066308856010437,
0.1293865442276001,
-0.19493669271469116,
0.6329858303070068,
-0.1832147091627121,
0.2880232334136963,
0.34149253368377686,
-0.23752233386039734,
-0.22520753741264343,
0.1061292439699173,
-0.08448508381843567,
0.07515113055706024,
-0.34001481533050537,
0.36880576610565186,
0.22717207670211792,
0.022872433066368103,
-0.0829504057765007,
-0.2226986140012741,
0.15575569868087769,
0.42667388916015625,
0.48047778010368347,
0.25401097536087036,
-0.05453348532319069,
0.044172920286655426,
0.3467964231967926,
-0.4091741740703583,
0.12431376427412033,
-0.16600169241428375,
-0.10264536738395691,
-0.2254977822303772,
0.07024788856506348,
-0.6522080898284912,
-0.17672878503799438,
-0.3317255675792694,
0.058532483875751495,
-0.12384847551584244,
0.3116305470466614,
0.08826232701539993,
-0.02155314013361931,
-0.20396849513053894,
0.09235474467277527,
0.40776199102401733,
0.2135159969329834,
-0.028388187289237976,
0.39907708764076233,
-0.4507501721382141,
-0.15134504437446594,
0.2594718635082245,
-0.3168366849422455,
-0.2091645747423172,
-0.017280995845794678,
0.3075481653213501,
0.154598668217659,
-0.1715821474790573,
0.19395381212234497,
0.05028265714645386,
0.3308030664920807,
-0.3751111626625061,
-0.039459239691495895,
-0.08833915740251541,
-0.4700397253036499,
0.06762721389532089,
-0.09564434736967087,
0.4193247854709625,
-0.014669314958155155,
-0.19577902555465698,
0.0007104426622390747,
-0.17390157282352448
] |
https://github.com/huggingface/datasets/issues/2065 | I get a permission denied error on https://github.com/huggingface/datasets/blob/b8363e0539c6f0cb5de49af32962cf2eb4c47395/src/datasets/arrow_dataset.py#L2799. I suspect I don't have permissions to change group permissions. I am mounting a GCP bucket through [gcsfuse](https://github.com/GoogleCloudPlatform/gcsfuse). | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 26 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
I get a permission denied error on https://github.com/huggingface/datasets/blob/b8363e0539c6f0cb5de49af32962cf2eb4c47395/src/datasets/arrow_dataset.py#L2799. I suspect I don't have permissions to change group permissions. I am mounting a GCP bucket through [gcsfuse](https://github.com/GoogleCloudPlatform/gcsfuse). | [
-0.14622215926647186,
0.20528140664100647,
-0.09300415217876434,
0.059997763484716415,
-0.026322927325963974,
0.10093094408512115,
0.4535706639289856,
-0.1260243058204651,
-0.21142639219760895,
0.08157090842723846,
-0.008134491741657257,
-0.0675315111875534,
-0.07078680396080017,
-0.20634254813194275,
-0.057421278208494186,
0.127180814743042,
0.091409832239151,
-0.0190095454454422,
-0.004424929618835449,
-0.056396063417196274,
-0.04046548530459404,
0.05391068756580353,
-0.1667090803384781,
-0.05565176159143448,
-0.2524796426296234,
-0.2577718496322632,
0.22564813494682312,
0.251842737197876,
0.02069833129644394,
-0.09904070198535919,
0.2656813859939575,
0.49674227833747864,
-0.036712151020765305,
0.24163906276226044,
-0.00011821521184174344,
-0.12411896884441376,
0.002807585522532463,
-0.08642304688692093,
0.06669744849205017,
0.18227873742580414,
-0.11178450286388397,
-0.1355491578578949,
-0.05635446310043335,
-0.06010250002145767,
-0.1763063669204712,
0.127790629863739,
0.13306669890880585,
-0.45372486114501953,
0.45955875515937805,
0.2321484088897705,
0.1481187492609024,
-0.04501987621188164,
-0.3317504823207855,
0.12976761162281036,
0.18195897340774536,
-0.08833548426628113,
-0.16675104200839996,
0.32866203784942627,
0.36138421297073364,
-0.07786184549331665,
0.028729654848575592,
0.07541495561599731,
-0.29974624514579773,
0.033539075404405594,
0.16092656552791595,
-0.1677924394607544,
-0.36415863037109375,
-0.5191006660461426,
0.21899056434631348,
0.015591367147862911,
0.7891672253608704,
-0.20153598487377167,
-0.5452042818069458,
-0.20369797945022583,
0.05469436198472977,
0.2706667482852936,
0.32502782344818115,
0.391903281211853,
0.15744198858737946,
0.35864925384521484,
-0.5040281414985657,
-0.1271674633026123,
-0.24930545687675476,
-0.03184633329510689,
0.204496368765831,
-0.09083107113838196,
-0.06832219660282135,
0.16742828488349915,
-0.0681769847869873,
-0.012406175956130028,
0.12386567145586014,
0.05782286450266838,
-0.5043491125106812,
0.30446749925613403,
-0.20671556890010834,
0.05893409997224808,
-0.15895655751228333,
0.5276312828063965,
-0.0014169365167617798,
0.5432048439979553,
0.31755879521369934,
0.17415890097618103,
0.03880517929792404,
0.30072858929634094,
-0.10166361927986145,
0.20212237536907196,
0.2748289704322815,
0.4097312092781067,
0.5158768892288208,
-0.32065892219543457,
-0.022288233041763306,
-0.06284524500370026,
0.09477093815803528,
-0.4154112637042999,
-0.08501675724983215,
0.2862856388092041,
0.013437703251838684,
-0.12945997714996338,
0.06272129714488983,
0.11480417102575302,
-0.014851510524749756,
-0.09981867671012878,
0.18576101958751678,
0.28094229102134705,
0.1282489001750946,
-0.23999139666557312,
0.010036744177341461,
0.24757851660251617,
0.053864866495132446,
-0.2511395812034607,
-0.07074664533138275,
-0.20507849752902985,
-0.269931435585022,
0.4460501968860626,
0.3393915891647339,
-0.20773200690746307,
0.055924393236637115,
0.21945364773273468,
0.11604718863964081,
-0.25253018736839294,
0.3745294213294983,
-0.030672064051032066,
0.335592657327652,
0.3978816866874695,
0.19743753969669342,
0.2855837047100067,
0.17139177024364471,
0.016660884022712708,
-0.13120923936367035,
0.1918022632598877,
-0.4076482057571411,
-0.18641097843647003,
0.2823649048805237,
-0.02304166555404663,
0.08416838198900223,
0.31392931938171387,
-0.5275530219078064,
0.12176419794559479,
0.4461585581302643,
-0.23020020127296448,
0.4676682651042938,
0.1757821887731552,
-0.024812765419483185,
-0.4565615952014923,
-0.16297239065170288,
0.3034375011920929,
-0.2106919288635254,
-0.02545727789402008,
-0.0023383013904094696,
0.017873000353574753,
0.04440400004386902,
0.3884980082511902,
-0.018043512478470802,
0.0951092317700386,
-0.09060254693031311,
0.22178907692432404,
0.31092843413352966,
-0.1634920835494995,
-0.7365754842758179,
0.07135696709156036,
0.1723765730857849,
-0.22534438967704773,
0.14627529680728912,
-0.03174309805035591,
0.2018515169620514,
-0.17674535512924194,
-0.1293216347694397,
0.21721620857715607,
0.2534051239490509,
0.20357072353363037,
0.13749708235263824,
0.02105533331632614,
-0.06791886687278748,
-0.1625862717628479,
0.031071016564965248,
0.3264912962913513,
0.48057013750076294,
-0.5150447487831116,
0.15407666563987732,
-0.3151678740978241,
0.2270154356956482,
0.6452765464782715,
0.20159101486206055,
-0.325901597738266,
-0.07147015631198883,
0.01215469092130661,
-0.5454553961753845,
0.319150447845459,
-0.24799573421478271,
-0.33684781193733215,
-0.03371187299489975,
-0.3884523808956146,
0.04770521819591522,
-0.2479362189769745,
-0.18222467601299286,
-0.06930022686719894,
-0.012365531176328659,
-0.05394972488284111,
0.0895511731505394,
-0.2735848128795624,
0.2182045429944992,
0.4187459349632263,
0.232385516166687,
-0.011372040957212448,
-0.1233578771352768,
0.20115870237350464,
-0.0860169306397438,
-0.20793253183364868,
0.0005652830004692078,
-0.1075415313243866,
0.32552215456962585,
0.013547059148550034,
-0.2065555602312088,
0.2878839671611786,
-0.06370319426059723,
0.24373212456703186,
0.01227126270532608,
0.2889849543571472,
-0.016164325177669525,
0.005031608045101166,
0.09006793797016144,
-0.2951190769672394,
-0.08266923576593399,
-0.1337214559316635,
-0.20289790630340576,
0.34274381399154663,
0.03554823249578476,
-0.10224071890115738,
-0.21722805500030518,
0.1999673843383789,
0.02360635995864868,
0.08436785638332367,
-0.21783088147640228,
-0.06917700171470642,
-0.04625232517719269,
0.2680169343948364,
0.5171460509300232,
0.1317547857761383,
0.03415575623512268,
0.03507824242115021,
0.4168003797531128,
0.1702992022037506,
0.06573247164487839,
-0.10931121557950974,
-0.15258824825286865,
0.02112305909395218,
0.3862595558166504,
0.19610798358917236,
0.17560288310050964,
0.010184839367866516,
0.26838821172714233,
-0.20796255767345428,
0.2627241909503937,
-0.14657774567604065,
-0.017532669007778168,
-0.13104623556137085,
0.007561743259429932,
-0.16188934445381165,
-0.026638641953468323,
-0.07356545329093933,
-0.06865043938159943,
0.18822871148586273,
0.195918470621109,
0.21225935220718384,
-0.34668055176734924,
0.00223618745803833,
-0.24628260731697083,
-0.01740828901529312,
0.425067663192749,
-0.06864048540592194,
-0.5931144952774048,
-0.07851320505142212,
-0.20853665471076965,
0.3236026167869568,
0.009245730936527252,
0.1521124243736267,
-0.1972137689590454,
0.22678294777870178,
-0.02119339257478714,
-0.1856023073196411,
-0.4237440526485443,
0.19696931540966034,
-0.051369745284318924,
-0.0405433289706707,
0.22763195633888245,
-0.5680299997329712,
0.1801341325044632,
0.11127188056707382,
0.15951359272003174,
-0.3677113950252533,
0.053734660148620605,
-0.11607548594474792,
-0.11113330721855164,
0.18934346735477448,
-0.5033210515975952,
0.18091392517089844,
-0.31822994351387024,
0.041701432317495346,
-0.11851885914802551,
-0.1792142391204834,
-0.16295796632766724,
0.015284545719623566,
-0.05532240867614746,
-0.052777841687202454,
-0.20164591073989868,
-0.06521252542734146,
-0.2290836125612259,
-0.08815552294254303,
0.4414241313934326,
0.08607029914855957,
0.1729714274406433,
0.05057439208030701,
-0.18303470313549042,
-0.38447439670562744,
-0.1474950611591339,
0.02872854471206665,
-0.3530733287334442,
-0.6280268430709839,
0.30239108204841614,
-0.4563107192516327,
-0.4608500599861145,
0.035829097032547,
0.14676617085933685,
0.07373550534248352,
0.3983807861804962,
0.015284299850463867,
-0.09248003363609314,
-0.304383784532547,
0.10209006071090698,
-0.13457918167114258,
0.11336259543895721,
0.17174997925758362,
0.056879471987485886,
0.2034931778907776,
-0.04861629009246826,
-0.2372094988822937,
0.0715564489364624,
0.24947547912597656,
-0.24568289518356323,
0.16359888017177582,
0.08042784780263901,
0.05791418254375458,
0.7602648735046387,
0.38128021359443665,
0.32981887459754944,
0.24555198848247528,
0.2063853144645691,
0.6550754308700562,
0.03825320675969124,
-0.05730051547288895,
0.2956003248691559,
0.017447911202907562,
-0.2352379411458969,
0.1577099710702896,
0.07444867491722107,
-0.11875370889902115,
0.09818391501903534,
0.08111778646707535,
-0.40366220474243164,
-0.37802448868751526,
-0.28607529401779175,
-0.256642609834671,
0.11603029817342758,
0.14344456791877747,
0.10278529673814774,
-0.3210269808769226,
-0.2071978896856308,
-0.01500697061419487,
0.3339461088180542,
0.3047540783882141,
0.35893815755844116,
-0.20960655808448792,
-0.012418340891599655,
-0.5014479160308838,
0.42410072684288025,
-0.014899078756570816,
0.43121337890625,
-0.3226009011268616,
0.3723110854625702,
0.16627655923366547,
0.3245963752269745,
0.2176457643508911,
-0.5667890310287476,
0.1801433265209198,
-0.05998492240905762,
0.2731393575668335,
0.3353543281555176,
-0.2814726233482361,
0.2537362277507782,
0.4123603403568268,
0.08377400040626526,
0.1727781742811203,
0.08169019222259521,
-0.12241344153881073,
-0.46058401465415955,
-0.2705692648887634,
-0.04153319075703621,
0.010248072445392609,
-0.00839272141456604,
-0.06098492816090584,
-0.1860279142856598,
-0.02871796488761902,
0.3173018991947174,
-0.32412970066070557,
-0.18444417417049408,
-0.04346001520752907,
-0.061324477195739746,
0.09514626115560532,
0.10180822014808655,
-0.06803712248802185,
0.40956029295921326,
0.03952983394265175,
-0.0723888948559761,
0.32508397102355957,
-0.014000743627548218,
0.23771700263023376,
0.5308029651641846,
0.07180182635784149,
0.3552013039588928,
0.011012908071279526,
-0.1737343966960907,
0.37841105461120605,
0.11627091467380524,
-0.360075443983078,
-0.008651908487081528,
0.12385915219783783,
-0.10729631036520004,
-0.19323031604290009,
-0.0395611897110939,
-0.12343922257423401,
0.16038280725479126,
-0.43457311391830444,
-0.447787880897522,
0.3544226586818695,
0.5006805062294006,
-0.3758891820907593,
0.34263741970062256,
-0.06216583400964737,
-0.3251892328262329,
0.17069101333618164,
0.03883678466081619,
0.8416378498077393,
-0.30642223358154297,
0.27509409189224243,
-0.2877952456474304,
0.10588192939758301,
0.1060735434293747,
-0.37785086035728455,
0.23222219944000244,
-0.5369051694869995,
-0.3901207447052002,
-0.1720082312822342,
-0.17152142524719238,
0.21820709109306335,
0.5262711644172668,
0.020593538880348206,
0.265694260597229,
-0.05817129462957382,
0.03361949324607849,
-0.1400921493768692,
-0.2847077548503876,
-0.2530806064605713,
-0.24689973890781403,
0.2911521792411804,
0.08536577224731445,
-0.19400867819786072,
0.1476656198501587,
-0.09130118042230606,
-0.012718291953206062,
-0.3303360342979431,
0.15194006264209747,
-0.3643932342529297,
0.043286196887493134,
-0.6460046172142029,
0.03191066533327103,
-0.05806344375014305,
-0.2705724835395813,
0.213257297873497,
0.1916404664516449,
0.20136769115924835,
0.35483020544052124,
-0.09976842254400253,
0.14054518938064575,
0.1513330638408661,
0.10135944187641144,
-0.2524779438972473,
0.11423889547586441,
0.28482991456985474,
0.22187891602516174,
0.10026800632476807,
-0.23878540098667145,
-0.2269885390996933,
-0.4226628839969635,
-0.28777754306793213,
0.20365174114704132,
-0.19705656170845032,
-0.10570336133241653,
-0.1535319834947586,
-0.15139921009540558,
-0.03341929614543915,
-0.000027626752853393555,
0.00136158661916852,
0.34900766611099243,
0.07875489443540573,
0.5791303515434265,
-0.29441219568252563,
-0.2525791823863983,
-0.023055067285895348,
0.44599246978759766,
-0.08248788118362427,
-0.23384204506874084,
0.35541239380836487,
-0.22349876165390015,
-0.198834627866745,
-0.1361376941204071,
0.0007721781730651855,
0.21662111580371857,
-0.05346643924713135,
-0.0025753602385520935,
-0.003792162984609604,
0.005750939249992371,
0.22784459590911865,
-0.40480494499206543,
0.03264319524168968,
0.19448132812976837,
0.06770487129688263,
-0.43389591574668884,
-0.3883756101131439,
-0.281246542930603,
-0.330127477645874,
0.24953024089336395,
0.2698681354522705,
-0.37666988372802734,
0.05946652591228485,
0.017259033396840096,
-0.16282665729522705,
-0.18256178498268127,
-0.06958909332752228,
0.0012526735663414001,
0.3067159652709961,
0.04513966664671898,
0.04386284574866295,
-0.15361332893371582,
-0.09432424604892731,
0.014508511871099472,
0.008237507194280624,
-0.11145900934934616,
0.039814360439777374,
0.15082676708698273,
0.2794538140296936,
-0.21119830012321472,
0.021483808755874634,
-0.44571587443351746,
-0.12895187735557556,
-0.37741097807884216,
0.21032249927520752,
0.37219366431236267,
0.19093823432922363,
0.18664750456809998,
0.02037062868475914,
0.10277239233255386,
-0.15882624685764313,
0.12388993054628372,
-0.20745176076889038,
-0.17913171648979187,
-0.1705750823020935,
0.27291613817214966,
-0.16123291850090027,
-0.001947358250617981,
-0.014886606484651566,
0.03879827633500099,
0.25517040491104126,
0.07297864556312561,
0.14442136883735657,
-0.14989125728607178,
0.02176077663898468,
-0.07435941696166992,
0.3338133692741394,
-0.13636988401412964,
-0.057700928300619125,
-0.06310367584228516,
0.2941431403160095,
0.019826754927635193,
0.11033514142036438,
-0.15353833138942719,
0.22445273399353027,
-0.08575555682182312,
0.05608607083559036,
0.3354793190956116,
0.27029305696487427,
-0.21476222574710846,
-0.07556726783514023,
-0.0695200115442276,
0.20381060242652893,
-0.2251453399658203,
0.31135934591293335,
-0.2189256101846695,
0.09633463621139526,
0.07929735630750656,
0.5346599221229553,
0.1900164932012558,
0.05685995891690254,
0.25481486320495605,
0.08772315084934235,
0.045485980808734894,
0.32085758447647095,
-0.2513996362686157,
0.07425856590270996,
-0.8142783045768738,
-0.011158284731209278,
-0.09220609068870544,
0.11748829483985901,
0.398958683013916,
0.11225895583629608,
-0.014645550400018692,
-0.10661910474300385,
-0.25768131017684937,
-0.03818213939666748,
0.03306091949343681,
-0.1522151380777359,
-0.13337442278862,
0.0990624651312828,
0.06739670038223267,
0.2249118834733963,
-0.2041756510734558,
-0.11911614239215851,
-0.2705117166042328,
0.19909119606018066,
0.1512528359889984,
0.039611272513866425,
0.2480420172214508,
-0.01606750302016735,
0.2112349569797516,
0.00388239324092865,
-0.13188903033733368,
0.07852526754140854,
-0.5811503529548645,
-0.09030631184577942,
0.2247440069913864,
-0.020381933078169823,
0.18653112649917603,
-0.05022063106298447,
0.16999313235282898,
0.21603643894195557,
0.1750466525554657,
0.0068471357226371765,
-0.15222592651844025,
0.2385956197977066,
-0.1150461733341217,
-0.26275283098220825,
0.05670371279120445,
-0.0042002759873867035,
0.0007614344358444214,
-0.10172910988330841,
-0.21330910921096802,
0.1023719310760498,
0.06323382258415222,
-0.04461150988936424,
-0.3354346752166748,
-0.5002906918525696,
0.047919876873493195,
-0.025399431586265564,
0.12340246140956879,
0.002506788820028305,
0.567520797252655,
0.0738341361284256,
0.22785168886184692,
-0.3660042881965637,
0.004684798419475555,
0.3291788399219513,
0.29375648498535156,
0.5415589213371277,
-0.05375560000538826,
0.0017740018665790558,
0.04617281258106232,
-0.375097393989563,
0.076459601521492,
0.19974160194396973,
0.32408538460731506,
-0.04592244327068329,
-0.15097519755363464,
0.15721896290779114,
-0.20106829702854156,
0.593063235282898,
-0.05838317051529884,
0.2896493375301361,
0.32604265213012695,
-0.1804353892803192,
-0.21902987360954285,
-0.02005593106150627,
-0.04910781979560852,
0.0699213296175003,
-0.3299017548561096,
0.20764432847499847,
0.2079581469297409,
-0.008869186043739319,
-0.2100122720003128,
-0.02797657996416092,
0.10722290724515915,
0.2468089461326599,
0.5499602556228638,
0.38125139474868774,
0.16474229097366333,
0.03758988529443741,
0.3780442774295807,
-0.38002994656562805,
0.06836272776126862,
-0.1840001940727234,
-0.0912969708442688,
-0.2553681433200836,
0.22242465615272522,
-0.4048895537853241,
-0.17103320360183716,
-0.37027081847190857,
0.09780692309141159,
-0.07014531642198563,
0.37586575746536255,
0.05553340166807175,
0.07132989168167114,
-0.1634623408317566,
0.07816910743713379,
0.26215660572052,
0.130902960896492,
0.03588365018367767,
0.40203461050987244,
-0.42306405305862427,
-0.24398623406887054,
0.3644751310348511,
-0.40976616740226746,
-0.25492024421691895,
0.10151572525501251,
0.4548529386520386,
0.13351644575595856,
-0.2589387893676758,
0.01890455186367035,
0.14671576023101807,
0.26635268330574036,
-0.37819722294807434,
-0.0806320384144783,
-0.059775978326797485,
-0.35345205664634705,
0.1016489565372467,
-0.13265956938266754,
0.49309879541397095,
-0.008759850636124611,
-0.21188859641551971,
0.044787466526031494,
-0.10360158979892731
] |
https://github.com/huggingface/datasets/issues/2065 | What @lhoestq is asking for is the full multi-line traceback - it's almost never enough to show the last line - a full stack is needed to get the context. Thank you!
I wonder if a workaround is to try/except and then issue a warning if this fails? | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 48 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
What @lhoestq is asking for is the full multi-line traceback - it's almost never enough to show the last line - a full stack is needed to get the context. Thank you!
I wonder if a workaround is to try/except and then issue a warning if this fails? | [
-0.1648373305797577,
0.21514618396759033,
-0.05785181745886803,
0.07299824059009552,
-0.08065333962440491,
0.06957400590181351,
0.4272477626800537,
0.16266939043998718,
-0.2787992060184479,
0.027456406503915787,
0.02319205552339554,
-0.1252375692129135,
-0.01072489470243454,
-0.24131041765213013,
-0.05926176905632019,
0.18689675629138947,
0.07374083995819092,
0.14246413111686707,
0.04096898436546326,
-0.10892713814973831,
-0.040364138782024384,
0.013514319434762001,
-0.11067067086696625,
-0.09588795900344849,
-0.3297828435897827,
-0.17553500831127167,
0.17061448097229004,
0.29184138774871826,
0.08661296218633652,
-0.21008235216140747,
0.24032190442085266,
0.32945072650909424,
-0.09155992418527603,
0.15365718305110931,
-0.00011932826600968838,
-0.17404428124427795,
0.006955921184271574,
-0.1569390594959259,
0.026564981788396835,
0.2182944416999817,
-0.19533520936965942,
-0.045892197638750076,
-0.1359371542930603,
-0.2301802635192871,
-0.0021222159266471863,
0.49820780754089355,
0.14017397165298462,
-0.6290695071220398,
0.5692050457000732,
0.12068724632263184,
0.14441485702991486,
-0.1995587944984436,
-0.31454944610595703,
0.00928959995508194,
0.30686143040657043,
0.12506777048110962,
-0.09880151599645615,
0.005674596875905991,
0.22884172201156616,
-0.16811679303646088,
-0.06200160086154938,
0.17162056267261505,
-0.3814873695373535,
0.0355694517493248,
-0.018410880118608475,
-0.24579457938671112,
-0.04311491921544075,
-0.402339905500412,
0.21157187223434448,
0.2622794508934021,
0.742205023765564,
-0.007085163611918688,
-0.40132975578308105,
-0.27259719371795654,
-0.07724084705114365,
0.10662058740854263,
0.2934420704841614,
0.23929142951965332,
-0.24843502044677734,
0.3038947880268097,
-0.5228918194770813,
-0.005451731383800507,
-0.1581503003835678,
-0.06843718886375427,
-0.029552161693572998,
-0.08024275302886963,
-0.04354618117213249,
0.052988409996032715,
-0.06940694153308868,
0.08087549358606339,
0.15490254759788513,
0.14010244607925415,
-0.30422869324684143,
0.27002936601638794,
-0.17296667397022247,
0.08029647171497345,
0.03393734246492386,
0.40205156803131104,
0.31670308113098145,
0.278786838054657,
0.38668093085289,
0.36302265524864197,
0.0010499879717826843,
0.2272525131702423,
-0.012005819007754326,
0.15907074511051178,
0.4219043254852295,
0.18405050039291382,
0.6002587676048279,
-0.45852652192115784,
0.04580661654472351,
0.1004340797662735,
0.015232909470796585,
-0.34749990701675415,
-0.028531908988952637,
0.4460768699645996,
-0.00450684130191803,
-0.2621781527996063,
0.0024502724409103394,
0.07256466150283813,
-0.3355505168437958,
-0.3270936906337738,
0.028435710817575455,
0.31437891721725464,
0.16395626962184906,
-0.10316096246242523,
-0.05083698406815529,
0.07042504847049713,
0.06338092684745789,
-0.4500911235809326,
0.011595398187637329,
-0.39257633686065674,
-0.48652151226997375,
0.3129815459251404,
0.507570207118988,
-0.1509174108505249,
0.08582637459039688,
0.15951940417289734,
0.034536030143499374,
-0.19149047136306763,
0.2221420854330063,
-0.11495931446552277,
0.5741726160049438,
0.28855443000793457,
0.2583916485309601,
0.29756519198417664,
0.182076558470726,
0.01361837238073349,
-0.12645934522151947,
0.32687363028526306,
-0.30449169874191284,
-0.1829843819141388,
0.2831624150276184,
-0.036941446363925934,
-0.1449870467185974,
0.3711954951286316,
-0.36982905864715576,
0.1620716154575348,
0.48851096630096436,
-0.1432895064353943,
0.3870790898799896,
0.28734856843948364,
-0.2723705470561981,
-0.41352078318595886,
0.024690844118595123,
0.38457953929901123,
-0.2745829224586487,
-0.038895003497600555,
0.012972135096788406,
0.0034005343914031982,
-0.006006885319948196,
0.2618204951286316,
-0.03066922351717949,
0.33093947172164917,
-0.2557674050331116,
0.24277332425117493,
0.5609256625175476,
-0.02529345452785492,
-0.329609215259552,
0.08639909327030182,
0.08657945692539215,
-0.030756384134292603,
0.16538944840431213,
-0.16627660393714905,
0.00045305490493774414,
-0.06795697659254074,
0.03260664641857147,
0.29128557443618774,
0.132709801197052,
0.31743067502975464,
0.07301923632621765,
0.110028937458992,
0.03709777072072029,
-0.20983020961284637,
0.06148321554064751,
0.21971137821674347,
0.37594074010849,
-0.3495701551437378,
0.34983861446380615,
-0.35044580698013306,
0.29505467414855957,
0.48365798592567444,
0.06536681950092316,
-0.13765721023082733,
-0.051312681287527084,
-0.10930217802524567,
-0.38743454217910767,
0.25581204891204834,
0.00739692896604538,
-0.467902809381485,
0.0773201435804367,
-0.40965989232063293,
0.084569051861763,
-0.29395025968551636,
-0.1467610001564026,
-0.0301491878926754,
0.046114999800920486,
0.03795880824327469,
-0.08850158751010895,
-0.32256758213043213,
0.17387236654758453,
0.433695912361145,
0.347019225358963,
0.013371799141168594,
-0.06158638000488281,
0.06940086930990219,
-0.06850128620862961,
-0.0596986785531044,
-0.21975483000278473,
0.0012526046484708786,
0.3693960905075073,
0.03589591383934021,
-0.13109244406223297,
0.26314160227775574,
0.06431406736373901,
0.003168143332004547,
-0.22094790637493134,
0.23572970926761627,
-0.1875242292881012,
0.13940027356147766,
0.03816210478544235,
-0.1889500916004181,
-0.166513592004776,
-0.24360454082489014,
-0.45381730794906616,
0.3813091814517975,
0.04965997487306595,
0.013873588293790817,
-0.1805112212896347,
0.18436425924301147,
0.12059789150953293,
-0.09329293668270111,
-0.16395381093025208,
-0.16075587272644043,
0.13713669776916504,
0.2693333923816681,
0.28030040860176086,
0.14223697781562805,
-0.04724431782960892,
0.1899285465478897,
0.40343931317329407,
0.10605144500732422,
0.22591441869735718,
-0.0026655211113393307,
-0.141917422413826,
-0.03465113416314125,
0.37500491738319397,
0.36467739939689636,
0.10220343619585037,
0.12127024680376053,
0.4834997355937958,
-0.15678822994232178,
0.20855800807476044,
-0.0933445394039154,
0.03118198737502098,
-0.0712023675441742,
0.05391297489404678,
-0.09870333969593048,
-0.07399138808250427,
0.012127075344324112,
-0.08379589021205902,
0.1707187294960022,
0.03189060091972351,
-0.016545012593269348,
-0.5216463208198547,
-0.16271650791168213,
-0.30645155906677246,
-0.3100152611732483,
0.27441835403442383,
-0.05905897542834282,
-0.41621774435043335,
-0.115258127450943,
-0.17698292434215546,
0.19023042917251587,
0.006040513515472412,
0.1272171437740326,
-0.3159584105014801,
0.3673417270183563,
-0.045684315264225006,
-0.10108273476362228,
-0.18155702948570251,
0.18253277242183685,
0.07429012656211853,
0.011923078447580338,
0.18001335859298706,
-0.5510984063148499,
0.1863071173429489,
0.0046601369976997375,
0.19740167260169983,
-0.1869278848171234,
-0.01080157607793808,
-0.05054143816232681,
0.0033804159611463547,
-0.13401782512664795,
-0.3068767488002777,
0.1230640858411789,
-0.1570867896080017,
0.0006650127470493317,
-0.25033673644065857,
-0.09562306851148605,
-0.2765767574310303,
-0.08269645273685455,
0.18066425621509552,
0.017499737441539764,
-0.32646673917770386,
0.056391261518001556,
0.022868923842906952,
-0.15316666662693024,
0.5256494283676147,
-0.02376464381814003,
0.246745303273201,
0.020280681550502777,
-0.32202062010765076,
-0.27157941460609436,
-0.31983140110969543,
0.31013023853302,
-0.36622586846351624,
-0.47940319776535034,
0.2618294358253479,
-0.44149425625801086,
-0.2454763501882553,
0.10525360703468323,
0.11574533581733704,
0.12001051008701324,
0.49494707584381104,
-0.03542393445968628,
0.09523296356201172,
-0.21623116731643677,
0.18794351816177368,
-0.2632404863834381,
0.13827429711818695,
0.20341287553310394,
0.1566593199968338,
0.11672420054674149,
-0.0038347169756889343,
-0.24092058837413788,
-0.038883276283741,
-0.2563484311103821,
-0.12798866629600525,
0.07116372883319855,
0.1791173815727234,
0.315784215927124,
0.7414653301239014,
0.38530904054641724,
0.43906140327453613,
0.18112559616565704,
0.274640828371048,
0.6530048847198486,
0.019759289920330048,
-0.04783882200717926,
0.15929031372070312,
-0.06546133756637573,
-0.17308589816093445,
-0.020710144191980362,
0.07919525355100632,
-0.31332308053970337,
0.024229615926742554,
0.16092871129512787,
-0.3006429672241211,
-0.5101051330566406,
-0.19274437427520752,
-0.34268391132354736,
0.07197590172290802,
0.059920892119407654,
0.17556776106357574,
-0.24442130327224731,
-0.1585821509361267,
-0.041735365986824036,
0.2570580244064331,
0.21332508325576782,
0.19645443558692932,
-0.5431168079376221,
0.07895072549581528,
-0.434940904378891,
0.3830409348011017,
-0.04114096611738205,
0.3090972602367401,
-0.30233728885650635,
0.10945522785186768,
0.07725793123245239,
0.23627342283725739,
0.47404059767723083,
-0.3504267632961273,
0.35430729389190674,
0.012360557913780212,
0.21127650141716003,
0.18292421102523804,
-0.25272852182388306,
0.3960699439048767,
0.6069955825805664,
0.23139408230781555,
0.009226404130458832,
0.09916889667510986,
-0.10649366676807404,
-0.3376561999320984,
-0.21023212373256683,
0.008159272372722626,
-0.13426335155963898,
0.2548913061618805,
0.2926778793334961,
-0.05049892142415047,
-0.027958378195762634,
0.5053697824478149,
-0.38533085584640503,
-0.10308399796485901,
-0.11538742482662201,
0.010051319375634193,
0.18419526517391205,
0.09770559519529343,
-0.1436745524406433,
0.2714317739009857,
0.07705260813236237,
-0.0793122798204422,
0.30516836047172546,
0.11844217777252197,
0.15195676684379578,
0.4130353331565857,
-0.22215843200683594,
0.4354686737060547,
-0.060803476721048355,
-0.32545098662376404,
0.5182761549949646,
0.2513217031955719,
-0.37526369094848633,
-0.10899093747138977,
-0.09622371196746826,
-0.1691279262304306,
-0.2447729855775833,
-0.09777423739433289,
-0.14982950687408447,
0.08642549067735672,
-0.2659360468387604,
-0.37565356492996216,
0.2693890631198883,
0.504608154296875,
-0.33097177743911743,
0.34369197487831116,
-0.3217252790927887,
-0.40277600288391113,
0.138854518532753,
-0.036293815821409225,
0.8668201565742493,
-0.04491610825061798,
0.39520466327667236,
-0.4278412163257599,
-0.0029706358909606934,
0.06328973174095154,
-0.38088512420654297,
0.060415118932724,
-0.3578506112098694,
-0.18582716584205627,
-0.1811475157737732,
-0.13421756029129028,
-0.029823672026395798,
0.5065841674804688,
0.05467120558023453,
0.1482415795326233,
-0.09070771187543869,
-0.1508934497833252,
-0.05463045835494995,
-0.3397291302680969,
-0.025480981916189194,
-0.29188212752342224,
0.27529630064964294,
0.04638313129544258,
-0.0654921680688858,
-0.008385044522583485,
-0.044508859515190125,
0.08879755437374115,
-0.1770387589931488,
0.13669130206108093,
-0.606837272644043,
0.027989447116851807,
-0.7120094895362854,
-0.05572982132434845,
-0.14536061882972717,
-0.177298903465271,
0.2703583836555481,
0.30531367659568787,
0.29661911725997925,
0.32714030146598816,
-0.05192025005817413,
0.03441888839006424,
0.2883855700492859,
0.19644887745380402,
-0.16864922642707825,
0.01108253002166748,
0.2175399661064148,
0.0548543781042099,
0.12811309099197388,
-0.14733609557151794,
-0.315557599067688,
-0.3258044719696045,
-0.2921365201473236,
0.2466263473033905,
-0.06904436647891998,
-0.18012142181396484,
0.004739295691251755,
-0.037281863391399384,
0.22855624556541443,
0.04479178786277771,
0.022446760907769203,
0.4717966616153717,
0.032146651297807693,
0.5016628503799438,
-0.35968008637428284,
-0.2329448163509369,
0.1827692985534668,
0.6427828073501587,
-0.1579023152589798,
-0.27306586503982544,
0.19917084276676178,
-0.20825442671775818,
-0.24653014540672302,
-0.14315082132816315,
0.20836366713047028,
0.22077718377113342,
-0.059947215020656586,
-0.08972823619842529,
-0.04031158983707428,
-0.12274732440710068,
0.23158761858940125,
-0.34029313921928406,
0.09127450734376907,
0.23280483484268188,
0.11177010834217072,
-0.38928234577178955,
-0.3037358522415161,
-0.2644994556903839,
-0.3797585666179657,
0.2563275992870331,
0.2031267136335373,
-0.4965972602367401,
0.20734362304210663,
0.07053154706954956,
-0.1732335388660431,
-0.16182184219360352,
-0.0013036280870437622,
0.17638877034187317,
0.14493590593338013,
0.06811659783124924,
-0.07632490247488022,
-0.24757173657417297,
-0.17106860876083374,
-0.017409702762961388,
-0.01398874819278717,
-0.11703602969646454,
0.04795964062213898,
0.20768320560455322,
0.1634722352027893,
-0.2726319432258606,
0.29406142234802246,
-0.32295843958854675,
-0.032351911067962646,
-0.3129706084728241,
0.07572279125452042,
0.4044240117073059,
0.22435089945793152,
0.31562331318855286,
0.11857391148805618,
0.07399513572454453,
-0.2670416235923767,
0.04401623085141182,
-0.11503252387046814,
-0.22051408886909485,
-0.28232115507125854,
0.36739620566368103,
-0.48519232869148254,
-0.05481860786676407,
0.1383093148469925,
0.022276435047388077,
0.0635509043931961,
0.0616859532892704,
0.061049867421388626,
-0.02127341739833355,
-0.19703179597854614,
0.029690228402614594,
0.27354076504707336,
-0.13252311944961548,
-0.22481077909469604,
0.04867548495531082,
0.3249852657318115,
0.060770824551582336,
0.040834374725818634,
-0.21849969029426575,
0.3111575245857239,
-0.1275675892829895,
0.10596058517694473,
0.34114545583724976,
0.1466362178325653,
-0.37776312232017517,
0.3323000371456146,
-0.08843658864498138,
0.12357188761234283,
-0.3883475065231323,
0.34935498237609863,
-0.17192025482654572,
-0.10751339048147202,
0.06945077329874039,
0.42180171608924866,
0.2268991768360138,
0.18006020784378052,
0.34893518686294556,
0.35213345289230347,
0.059724532067775726,
0.4066123366355896,
-0.3283950984477997,
0.0870712548494339,
-0.7488125562667847,
0.14877717196941376,
0.03816809877753258,
0.06484682112932205,
0.32184600830078125,
0.06620761007070541,
0.0881270170211792,
0.014281533658504486,
-0.19784694910049438,
0.010325230658054352,
-0.17487500607967377,
-0.16754089295864105,
-0.10817502439022064,
-0.09868999570608139,
0.0859777182340622,
0.026817232370376587,
-0.26636528968811035,
-0.28233134746551514,
-0.2119489312171936,
0.19691024720668793,
0.13218414783477783,
0.04758945852518082,
0.27522096037864685,
0.03291692957282066,
-0.07098278403282166,
0.0755423754453659,
-0.22846537828445435,
-0.015292705968022346,
-0.442857950925827,
-0.13897812366485596,
0.22340434789657593,
0.0945059284567833,
0.20059612393379211,
0.010346315801143646,
0.32227814197540283,
0.056711360812187195,
0.18312183022499084,
0.03965429961681366,
-0.3173237442970276,
0.2401067465543747,
-0.008811820298433304,
-0.4698810875415802,
0.1635868102312088,
-0.04313398152589798,
-0.021431423723697662,
0.21837452054023743,
-0.12957128882408142,
0.05863609537482262,
0.053387414664030075,
-0.14077520370483398,
-0.14081965386867523,
-0.49134892225265503,
0.12913678586483002,
-0.11259981989860535,
0.19798709452152252,
-0.004124194383621216,
0.6003199219703674,
0.009793229401111603,
0.1895819753408432,
-0.3961738049983978,
0.03247688710689545,
0.5129689574241638,
0.08328337967395782,
0.5720721483230591,
-0.04389730840921402,
-0.06268835067749023,
0.008638456463813782,
-0.3225361406803131,
0.030872348695993423,
0.04427887126803398,
0.45487505197525024,
0.08253629505634308,
-0.10015007853507996,
0.2212931513786316,
0.006184784695506096,
0.7104746103286743,
-0.19156496226787567,
0.2863588333129883,
0.29792582988739014,
-0.29768437147140503,
-0.19196388125419617,
0.29985085129737854,
-0.0997927188873291,
0.14805781841278076,
-0.37187492847442627,
0.39370623230934143,
0.16212418675422668,
0.024553366005420685,
-0.11916403472423553,
-0.2047397643327713,
0.10709129273891449,
0.49619388580322266,
0.2914566099643707,
0.20809905230998993,
-0.03586721047759056,
0.015954583883285522,
0.308851033449173,
-0.3410908281803131,
0.19158445298671722,
-0.18537820875644684,
-0.11024975776672363,
-0.12459543347358704,
0.013595253229141235,
-0.6094385981559753,
-0.1992798000574112,
-0.2713518440723419,
0.1088414341211319,
-0.134722501039505,
0.30614784359931946,
0.05321383476257324,
0.10527725517749786,
-0.17068049311637878,
0.12216126918792725,
0.2829960882663727,
0.15989729762077332,
-0.22717003524303436,
0.4070545732975006,
-0.4947657287120819,
-0.19810286164283752,
0.29720309376716614,
-0.22276252508163452,
-0.17528676986694336,
-0.09273838996887207,
0.44695743918418884,
0.12548509240150452,
-0.050545357167720795,
-0.08752444386482239,
-0.03260399401187897,
0.38767582178115845,
-0.27019113302230835,
-0.25984102487564087,
0.04250666871666908,
-0.47028228640556335,
0.055390119552612305,
-0.1026950553059578,
0.44376644492149353,
0.14874038100242615,
-0.30175548791885376,
-0.07757917046546936,
-0.31911495327949524
] |
https://github.com/huggingface/datasets/issues/2065 | Hello, I'm working on a project with a very similar setup to the one mentioned by @siddk, namely we have a shared cache directory in the team that we wish to use to avoid redundant dataset downloads. However, we're hitting `PermissionError` when one member of the team tries to reload a dataset that was downloaded by another team member (stack trace below).
Concretely, we first create a shared directory and give everyone read, write, execute permissions as follows (I know this isn't best practice 🤫):
```shell
mkdir shared-folder
chmod -R 777 shared-folder
```
We then set the following in our `.bashrc` profiles:
```
# Hugging Face caches
export HUGGINGFACE_HUB_CACHE=/path/to/shared-folder
export HF_DATASETS_CACHE=/path/to/shared-folder
# For shared access to the shared-folder directory
umask 000
```
Now, running e.g. `load_dataset("emotion")` the first time works (as expected), but when another team member tries to load from cache we get something like:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1759, in load_dataset
builder_instance = load_dataset_builder(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1496, in load_dataset_builder
dataset_module = dataset_module_factory(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1218, in dataset_module_factory
raise e1 from None
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1193, in dataset_module_factory
).get_module()
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 903, in get_module
local_path = self.download_loading_script()
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 871, in download_loading_script
return cached_path(file_path, download_config=download_config)
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 210, in cached_path
output_path = ExtractManager(cache_dir=download_config.cache_dir).extract(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 42, in extract
extractor_format = self.extractor.infer_extractor_format(input_path)
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 287, in infer_extractor_format
if extractor.is_extractable(path, magic_number=magic_number):
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 84, in is_extractable
return tarfile.is_tarfile(path)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 2517, in is_tarfile
t = open(name)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 1632, in open
return func(name, "r", fileobj, **kwargs)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 1698, in gzopen
fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
File "~/miniconda3/envs/llama-nol/lib/python3.10/gzip.py", line 174, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
PermissionError: [Errno 13] Permission denied: '/path/to/shared-folder/downloads/4e7db366b1ea045d0faa083a2e47ac87326ad8e653f894763b0982c2a1e94078.cc96367835404d4195bf75b2602e6dbbfd2da9288170fc0b2298fc0e376ff52a.py'
```
If I understand this comment from @bhavitvyamalik:
> Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
the goal was to infer the `umask` of the user profile, but perhaps I misunderstood and the true solution is to chmod the `cache_files` as @lhoestq suggests above - is that correct?
cc @natolambert @nazneenrajani @edbeeching | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 385 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Hello, I'm working on a project with a very similar setup to the one mentioned by @siddk, namely we have a shared cache directory in the team that we wish to use to avoid redundant dataset downloads. However, we're hitting `PermissionError` when one member of the team tries to reload a dataset that was downloaded by another team member (stack trace below).
Concretely, we first create a shared directory and give everyone read, write, execute permissions as follows (I know this isn't best practice 🤫):
```shell
mkdir shared-folder
chmod -R 777 shared-folder
```
We then set the following in our `.bashrc` profiles:
```
# Hugging Face caches
export HUGGINGFACE_HUB_CACHE=/path/to/shared-folder
export HF_DATASETS_CACHE=/path/to/shared-folder
# For shared access to the shared-folder directory
umask 000
```
Now, running e.g. `load_dataset("emotion")` the first time works (as expected), but when another team member tries to load from cache we get something like:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1759, in load_dataset
builder_instance = load_dataset_builder(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1496, in load_dataset_builder
dataset_module = dataset_module_factory(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1218, in dataset_module_factory
raise e1 from None
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 1193, in dataset_module_factory
).get_module()
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 903, in get_module
local_path = self.download_loading_script()
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/load.py", line 871, in download_loading_script
return cached_path(file_path, download_config=download_config)
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/file_utils.py", line 210, in cached_path
output_path = ExtractManager(cache_dir=download_config.cache_dir).extract(
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 42, in extract
extractor_format = self.extractor.infer_extractor_format(input_path)
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 287, in infer_extractor_format
if extractor.is_extractable(path, magic_number=magic_number):
File "~/miniconda3/envs/llama-nol/lib/python3.10/site-packages/datasets/utils/extract.py", line 84, in is_extractable
return tarfile.is_tarfile(path)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 2517, in is_tarfile
t = open(name)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 1632, in open
return func(name, "r", fileobj, **kwargs)
File "~/miniconda3/envs/llama-nol/lib/python3.10/tarfile.py", line 1698, in gzopen
fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
File "~/miniconda3/envs/llama-nol/lib/python3.10/gzip.py", line 174, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
PermissionError: [Errno 13] Permission denied: '/path/to/shared-folder/downloads/4e7db366b1ea045d0faa083a2e47ac87326ad8e653f894763b0982c2a1e94078.cc96367835404d4195bf75b2602e6dbbfd2da9288170fc0b2298fc0e376ff52a.py'
```
If I understand this comment from @bhavitvyamalik:
> Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
the goal was to infer the `umask` of the user profile, but perhaps I misunderstood and the true solution is to chmod the `cache_files` as @lhoestq suggests above - is that correct?
cc @natolambert @nazneenrajani @edbeeching | [
-0.12435533106327057,
0.2709953188896179,
-0.07661039382219315,
0.18368886411190033,
-0.03524090349674225,
0.06472963094711304,
0.42424482107162476,
0.06204177066683769,
-0.18086853623390198,
0.045665986835956573,
-0.1041981428861618,
-0.09664130210876465,
-0.09747689962387085,
-0.34466439485549927,
-0.20482024550437927,
0.2118602991104126,
0.03399921581149101,
0.0688714012503624,
0.011385137215256691,
-0.07697666436433792,
-0.013826712965965271,
-0.02416817471385002,
0.0013115406036376953,
-0.03798363357782364,
-0.18670162558555603,
-0.14962169528007507,
0.2477635145187378,
0.3637615442276001,
0.07789487391710281,
-0.22110995650291443,
0.444168359041214,
0.4923804700374603,
0.12302784621715546,
0.3485480844974518,
-0.00011424153490224853,
-0.139677956700325,
0.04347846657037735,
-0.11840303242206573,
-0.1398497223854065,
-0.03161599487066269,
-0.03902488946914673,
-0.16343684494495392,
0.022573396563529968,
-0.09038339555263519,
0.05957609415054321,
0.23051372170448303,
0.006595708429813385,
-0.6742802262306213,
0.44385746121406555,
0.07153943181037903,
0.1661306917667389,
-0.11817890405654907,
-0.3892137408256531,
0.05558434873819351,
0.2273765504360199,
0.029527045786380768,
-0.16040951013565063,
0.1862923949956894,
0.2601468563079834,
-0.12010085582733154,
-0.02999011054635048,
0.10033180564641953,
-0.34139716625213623,
0.18070171773433685,
0.16163837909698486,
-0.2487817108631134,
-0.28493532538414,
-0.41025111079216003,
0.06936948001384735,
0.03621162474155426,
0.6649311780929565,
-0.1836806982755661,
-0.5616424083709717,
-0.3914380669593811,
0.043110016733407974,
0.1503106653690338,
0.3664645552635193,
0.24566197395324707,
-0.16481074690818787,
0.22399002313613892,
-0.5291076898574829,
0.020942993462085724,
-0.16047608852386475,
0.01004703901708126,
0.2098725289106369,
-0.08001779019832611,
-0.0885552316904068,
0.13345253467559814,
-0.048223745077848434,
-0.10126733779907227,
0.12195804715156555,
0.058945849537849426,
-0.20621967315673828,
0.2787313461303711,
-0.24108953773975372,
0.15354296565055847,
-0.09107986837625504,
0.2539154291152954,
0.14912642538547516,
0.37251004576683044,
0.2250628024339676,
0.16949047148227692,
0.005164027214050293,
0.27251937985420227,
0.1034659668803215,
0.23742900788784027,
0.3009171485900879,
0.3600507080554962,
0.5715787410736084,
-0.188205748796463,
-0.21322491765022278,
0.07673206180334091,
-0.02303718775510788,
-0.2133617401123047,
0.1196613535284996,
0.3101893663406372,
0.019207000732421875,
-0.07902095466852188,
0.03840415179729462,
0.18352268636226654,
-0.11897829920053482,
-0.1674906611442566,
0.058721091598272324,
0.33662864565849304,
0.04857155680656433,
0.003406308591365814,
0.1300928294658661,
0.08479788899421692,
-0.007717154920101166,
-0.23946772515773773,
0.0017399005591869354,
-0.3864385187625885,
-0.3724621534347534,
0.428475558757782,
0.4587952494621277,
-0.23772162199020386,
0.057929106056690216,
0.1784917712211609,
0.2588850259780884,
-0.22193633019924164,
0.23937317728996277,
-0.04247896000742912,
0.22465285658836365,
0.29645389318466187,
0.29802313446998596,
0.41925662755966187,
0.2740304172039032,
-0.12427444756031036,
-0.10986185073852539,
0.20786632597446442,
-0.2653895914554596,
-0.1305060088634491,
0.3298451900482178,
0.020138680934906006,
-0.16068433225154877,
0.3640116751194,
-0.3909316658973694,
-0.04843524843454361,
0.5374519228935242,
-0.15990057587623596,
0.2802768647670746,
0.16440686583518982,
-0.1622697412967682,
-0.47718194127082825,
-0.11470818519592285,
0.5115105509757996,
-0.1387699395418167,
-0.10189684480428696,
-0.1219947338104248,
0.04430306330323219,
-0.08691456913948059,
0.4470764100551605,
-0.110158771276474,
0.23214881122112274,
-0.18661510944366455,
0.09088793396949768,
0.45062941312789917,
-0.24704936146736145,
-0.6586799025535583,
0.16008806228637695,
0.12170995771884918,
0.10525193810462952,
0.2734413146972656,
0.07344294339418411,
0.06925402581691742,
-0.16945457458496094,
-0.11849910020828247,
0.3657402992248535,
0.09094126522541046,
0.2262960970401764,
0.11670906841754913,
-0.015221532434225082,
0.1064624935388565,
-0.09325471520423889,
0.029142828658223152,
0.24639400839805603,
0.4275612533092499,
-0.1809602975845337,
0.24457979202270508,
-0.32022151350975037,
0.19214385747909546,
0.43891286849975586,
0.13476970791816711,
0.044377293437719345,
0.0006388276815414429,
-0.056006330996751785,
-0.590954601764679,
0.3500705361366272,
-0.07689020037651062,
-0.3112918436527252,
-0.05433172732591629,
-0.3555313050746918,
0.01915266364812851,
-0.2863505780696869,
-0.36314457654953003,
-0.155212864279747,
0.0746702179312706,
0.16021639108657837,
-0.011362381279468536,
-0.31561291217803955,
0.17224788665771484,
0.5898879766464233,
0.22458675503730774,
0.018619954586029053,
-0.15329580008983612,
0.1698937863111496,
-0.17571312189102173,
-0.11758890748023987,
-0.2270365059375763,
0.05749978870153427,
0.2781729996204376,
-0.002317521721124649,
-0.20917034149169922,
0.3209058940410614,
0.08057096600532532,
0.1768283247947693,
-0.177159383893013,
0.06992286443710327,
-0.029583200812339783,
0.2501036822795868,
0.11090721935033798,
-0.20445823669433594,
-0.02725999988615513,
-0.14552170038223267,
-0.28216788172721863,
0.2768840789794922,
-0.14508527517318726,
-0.04017812758684158,
-0.09790539741516113,
0.1049995869398117,
0.14923015236854553,
0.02123461663722992,
-0.068050816655159,
-0.04144594818353653,
0.1237427294254303,
0.17641766369342804,
0.33898571133613586,
0.18410295248031616,
0.05609990656375885,
-0.026334326714277267,
0.21876999735832214,
0.23383790254592896,
0.19287195801734924,
-0.1184569001197815,
-0.039972785860300064,
0.11120941489934921,
0.157363161444664,
0.5357815027236938,
0.3191889226436615,
0.03145295009016991,
0.2309412807226181,
-0.15385137498378754,
0.4091443121433258,
-0.12129372358322144,
-0.10215584188699722,
-0.13565711677074432,
0.07105304300785065,
0.03311319649219513,
-0.0872892439365387,
0.007129605859518051,
-0.03399363532662392,
0.11135174334049225,
0.10371629893779755,
0.1532290130853653,
-0.3502565622329712,
-0.022411666810512543,
-0.17544645071029663,
-0.037371743470430374,
0.21458595991134644,
-0.15599830448627472,
-0.5184925198554993,
-0.2086847573518753,
-0.2744763493537903,
0.3610343039035797,
0.06004342436790466,
0.17759248614311218,
-0.25999096035957336,
0.026512011885643005,
-0.049814339727163315,
-0.22238126397132874,
-0.21824833750724792,
0.13154956698417664,
-0.007138778921216726,
-0.0241136122494936,
0.3109920918941498,
-0.6572149395942688,
0.1466340869665146,
-0.06989562511444092,
0.2783835828304291,
-0.3373982012271881,
0.043113671243190765,
-0.15813513100147247,
-0.13939626514911652,
0.09210670739412308,
-0.347949743270874,
0.11544476449489594,
-0.1422937661409378,
-0.1725667119026184,
0.03487694263458252,
-0.24764038622379303,
-0.19726163148880005,
0.10850173234939575,
0.10803517699241638,
-0.03334755077958107,
-0.14682608842849731,
-0.21070849895477295,
-0.19497047364711761,
-0.18366442620754242,
0.48342809081077576,
0.16722434759140015,
0.18445655703544617,
0.21879123151302338,
-0.18958960473537445,
-0.3139880895614624,
-0.15976303815841675,
0.28834110498428345,
-0.3243206739425659,
-0.5170648694038391,
0.19769743084907532,
-0.42379507422447205,
-0.34098830819129944,
0.006377860903739929,
0.2147502899169922,
0.14789655804634094,
0.41095593571662903,
-0.12636108696460724,
0.025489695370197296,
-0.1872834414243698,
0.25712716579437256,
-0.17027680575847626,
0.19228173792362213,
-0.02965749055147171,
0.15207262337207794,
0.1805688440799713,
-0.04518970474600792,
-0.12073013186454773,
-0.009375356137752533,
-0.11599623411893845,
-0.2203950732946396,
0.10451409965753555,
0.0729510635137558,
0.24371030926704407,
0.7599018812179565,
0.4779394567012787,
0.31621283292770386,
0.25096243619918823,
0.3202931880950928,
0.7149078845977783,
0.15461674332618713,
-0.2907140851020813,
0.13335725665092468,
-0.13045111298561096,
-0.22376736998558044,
0.08561676740646362,
0.0007749740034341812,
-0.11519636958837509,
0.00037066638469696045,
-0.014218047261238098,
-0.3366054892539978,
-0.5045105814933777,
-0.2717377841472626,
-0.319818377494812,
0.08734424412250519,
0.051227182149887085,
-0.02820233255624771,
-0.2948961853981018,
-0.14909690618515015,
-0.07206275314092636,
0.423881471157074,
0.14106759428977966,
0.2406100183725357,
-0.3619888722896576,
-0.08552876114845276,
-0.19804103672504425,
0.34246355295181274,
0.1407409906387329,
0.5759422779083252,
-0.18134649097919464,
0.2299988716840744,
0.03863641247153282,
0.34022220969200134,
0.3198053240776062,
-0.41171136498451233,
0.27053773403167725,
-0.06841620057821274,
0.1360660195350647,
0.1747111976146698,
-0.17375881969928741,
0.4177030026912689,
0.35498008131980896,
0.03131673485040665,
0.06179838255047798,
0.13553038239479065,
-0.07168042659759521,
-0.4545334577560425,
-0.09270286560058594,
-0.12669795751571655,
-0.16625505685806274,
0.06482040137052536,
0.027655914425849915,
-0.2562844157218933,
-0.1848030835390091,
0.13024450838565826,
-0.40449297428131104,
-0.05050358921289444,
0.09157955646514893,
-0.11884942650794983,
0.1292625367641449,
0.13527590036392212,
-0.01171337440609932,
0.23830381035804749,
-0.016995150595903397,
0.012957364320755005,
0.4471118748188019,
-0.11903929710388184,
0.30305421352386475,
0.5151857137680054,
-0.2983313202857971,
0.3108271658420563,
-0.18503783643245697,
-0.13625401258468628,
0.21751999855041504,
0.07944109290838242,
-0.3349106013774872,
-0.12063807249069214,
0.04466469958424568,
-0.16934096813201904,
-0.20178452134132385,
-0.21070387959480286,
-0.02870652638375759,
0.07235315442085266,
-0.15201498568058014,
-0.6603525876998901,
0.135559543967247,
0.46911340951919556,
-0.26833420991897583,
0.19630852341651917,
-0.29574859142303467,
-0.2930254340171814,
0.10578946769237518,
-0.06690957397222519,
0.7096010446548462,
-0.20583511888980865,
0.4117788076400757,
-0.30396392941474915,
0.11158245801925659,
0.16743813455104828,
-0.42976367473602295,
0.10308307409286499,
-0.471743643283844,
-0.22730684280395508,
-0.10718318819999695,
-0.16957247257232666,
0.0903635323047638,
0.22421780228614807,
-0.002127319574356079,
0.2538650333881378,
-0.15846575796604156,
-0.12476059794425964,
-0.12717962265014648,
-0.11992552131414413,
-0.31473469734191895,
-0.301435261964798,
0.17538388073444366,
0.11715779453516006,
-0.2041611671447754,
0.10109247267246246,
0.022607937455177307,
0.03801419958472252,
-0.31032294034957886,
0.13313543796539307,
-0.41550159454345703,
0.09807081520557404,
-0.6063598394393921,
0.06816861033439636,
-0.13212811946868896,
-0.04356896132230759,
0.23657678067684174,
0.401874840259552,
0.254228413105011,
0.24019265174865723,
-0.03680872917175293,
-0.03943486884236336,
0.13486146926879883,
0.20251740515232086,
-0.24202720820903778,
0.030865509063005447,
0.4300171434879303,
0.2321574091911316,
0.05410519242286682,
-0.14390380680561066,
-0.17134781181812286,
-0.2636895179748535,
-0.280326247215271,
0.31180036067962646,
0.07909281551837921,
-0.32374706864356995,
0.05157683789730072,
-0.13198883831501007,
-0.04600899666547775,
-0.0007108524441719055,
0.02623967081308365,
0.37813645601272583,
-0.056936707347631454,
0.48756200075149536,
-0.29247480630874634,
-0.34336215257644653,
0.09762001037597656,
0.5430065989494324,
0.09243880957365036,
-0.2549668252468109,
0.3180314600467682,
-0.21448449790477753,
-0.24845784902572632,
-0.11148547381162643,
0.24095419049263,
0.10705292224884033,
-0.18655189871788025,
-0.08200731873512268,
-0.060304537415504456,
-0.04629482328891754,
0.266079843044281,
-0.4257962107658386,
0.1785915046930313,
0.1330890655517578,
0.0777808204293251,
-0.4163023829460144,
-0.34700265526771545,
-0.276485413312912,
-0.38546454906463623,
0.17131274938583374,
0.2767595648765564,
-0.4784422814846039,
0.08792784810066223,
0.04438044875860214,
-0.19565510749816895,
-0.08175384253263474,
-0.1390710026025772,
0.07121968269348145,
0.3289010524749756,
-0.0077871521934866905,
0.03085174784064293,
-0.25956591963768005,
-0.06922115385532379,
-0.0003858571872115135,
-0.10537141561508179,
-0.1261986941099167,
-0.006791688501834869,
0.1472613662481308,
0.27069324254989624,
-0.2689049243927002,
0.03868081793189049,
-0.47722458839416504,
-0.01825343444943428,
-0.4027113616466522,
0.1188693419098854,
0.3718879222869873,
0.15892033278942108,
0.2735562026500702,
0.11392632126808167,
0.09620963037014008,
-0.20240835845470428,
0.2023695558309555,
-0.25953409075737,
-0.13688327372074127,
-0.2037535458803177,
0.24946291744709015,
-0.2688836455345154,
-0.037167295813560486,
-0.03773251175880432,
-0.013117074966430664,
0.18873843550682068,
0.10845990478992462,
0.19464492797851562,
-0.2550465166568756,
0.06642784178256989,
0.014588132500648499,
0.44736719131469727,
-0.020750083029270172,
-0.10262431204319,
-0.02159959450364113,
0.27049779891967773,
0.039666399359703064,
0.12392599880695343,
-0.23349633812904358,
0.2600385546684265,
-0.1359546035528183,
0.09773559123277664,
0.5454851388931274,
0.17057935893535614,
-0.38140127062797546,
0.12857601046562195,
-0.14512896537780762,
0.3243706524372101,
-0.20792722702026367,
0.3660820424556732,
-0.045829106122255325,
0.04585643112659454,
0.004846880212426186,
0.30225953459739685,
0.29302170872688293,
0.008213605731725693,
0.44146060943603516,
0.10677765309810638,
0.09492763876914978,
0.28694865107536316,
-0.4221341609954834,
0.12004729360342026,
-0.7122426629066467,
0.2450830638408661,
0.01697784662246704,
0.09511715173721313,
0.15645822882652283,
-0.03295958414673805,
0.16085539758205414,
-0.05823705345392227,
-0.1371895968914032,
0.203059583902359,
-0.09505690634250641,
-0.0661819726228714,
-0.06786620616912842,
0.18675746023654938,
-0.02508368343114853,
-0.15221722424030304,
-0.36024415493011475,
-0.1607031226158142,
-0.3056630492210388,
0.17926055192947388,
0.2863940894603729,
0.004756662994623184,
-0.003142286092042923,
-0.05740737169981003,
0.24209029972553253,
-0.08059598505496979,
-0.30999407172203064,
0.008462436497211456,
-0.26863205432891846,
-0.05017723888158798,
0.17677108943462372,
0.07993724942207336,
0.3224259614944458,
0.2175559252500534,
0.09659510850906372,
0.29795706272125244,
0.27909407019615173,
0.07510683685541153,
-0.2707597017288208,
0.25491583347320557,
-0.23461033403873444,
-0.22682711482048035,
0.033335354179143906,
0.020820435136556625,
-0.02054794318974018,
-0.10985894501209259,
-0.018469415605068207,
-0.09414023160934448,
-0.033622972667217255,
-0.019446518272161484,
-0.29509472846984863,
-0.2574273347854614,
0.08176815509796143,
0.06896808743476868,
-0.012912429869174957,
0.09517458826303482,
0.650627613067627,
0.029490910470485687,
0.33205822110176086,
-0.41531819105148315,
0.035515196621418,
0.38329631090164185,
0.22894325852394104,
0.5252737998962402,
-0.12779292464256287,
0.0017421245574951172,
0.160792738199234,
-0.49169042706489563,
0.2263583391904831,
0.009246950037777424,
0.2747388482093811,
-0.015467410907149315,
-0.1467352956533432,
0.12785956263542175,
-0.032485589385032654,
0.6264380216598511,
-0.010808255523443222,
0.22894138097763062,
0.3075389266014099,
-0.1496277004480362,
-0.4271560311317444,
0.18727710843086243,
-0.16483058035373688,
0.05979970097541809,
-0.4520975947380066,
0.21170182526111603,
0.05447707697749138,
0.0844283401966095,
-0.08923318982124329,
-0.2803601920604706,
0.23714376986026764,
0.48615166544914246,
0.4048145115375519,
0.3136323392391205,
0.17105208337306976,
0.1467067003250122,
0.11345076560974121,
-0.39921754598617554,
0.0529058538377285,
-0.13326390087604523,
-0.1021684855222702,
-0.174888014793396,
0.147147536277771,
-0.6555603742599487,
-0.21403652429580688,
-0.5553220510482788,
0.11687012016773224,
-0.019279882311820984,
0.28305140137672424,
0.03336391597986221,
0.09796104580163956,
-0.11190961301326752,
0.17097994685173035,
0.23996520042419434,
0.25878414511680603,
-0.22578194737434387,
0.5824905633926392,
-0.5557253956794739,
-0.1297142505645752,
0.3199279308319092,
-0.3030202388763428,
-0.29678109288215637,
0.03162363916635513,
0.3451510965824127,
0.11684054881334305,
-0.16404999792575836,
-0.1354975551366806,
0.20168620347976685,
0.35988879203796387,
-0.28258535265922546,
-0.16817399859428406,
-0.1930486410856247,
-0.37619248032569885,
-0.018261030316352844,
-0.07380703091621399,
0.34733325242996216,
-0.0011127488687634468,
-0.2509360611438751,
0.2778637409210205,
-0.127727210521698
] |
https://github.com/huggingface/datasets/issues/2065 | Python files are stored in the modules caches, that you can modify by setting `HF_MODULES_CACHE` as well and set appropriate permissions
They are in different locations because the `HF_MODULES_CACHE` is added to the python path to be able to import the dataset scripts :) | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 44 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Python files are stored in the modules caches, that you can modify by setting `HF_MODULES_CACHE` as well and set appropriate permissions
They are in different locations because the `HF_MODULES_CACHE` is added to the python path to be able to import the dataset scripts :) | [
-0.07112543284893036,
0.198626309633255,
-0.1148490309715271,
0.05539694055914879,
-0.043478988111019135,
0.17060156166553497,
0.3945292532444,
0.15830397605895996,
-0.05045390874147415,
0.013010833412408829,
-0.17951700091362,
-0.030754566192626953,
0.02522972598671913,
-0.2055610716342926,
0.07558640092611313,
0.10952535271644592,
0.1653948426246643,
-0.019076470285654068,
-0.002247404307126999,
-0.13414737582206726,
-0.10403116047382355,
-0.12435231357812881,
-0.1262221336364746,
-0.05748659372329712,
-0.26992085576057434,
-0.12303013354539871,
0.22472724318504333,
0.30172818899154663,
0.021706368774175644,
-0.29076138138771057,
0.2949121594429016,
0.5521218180656433,
0.09046974778175354,
0.2581302225589752,
-0.0001105751289287582,
-0.08747129142284393,
-0.0018194625154137611,
-0.08780033886432648,
0.036345381289720535,
0.16034477949142456,
-0.08377242088317871,
-0.1504790484905243,
-0.0485905222594738,
-0.14879098534584045,
-0.1516929268836975,
0.07510949671268463,
0.0730966329574585,
-0.5998990535736084,
0.4124056398868561,
0.314856618642807,
0.22469273209571838,
0.04755028337240219,
-0.23401932418346405,
0.13177995383739471,
0.2531026303768158,
-0.04245567321777344,
-0.17342795431613922,
0.09182937443256378,
0.27439984679222107,
-0.2015664130449295,
0.05508151277899742,
0.004601322114467621,
-0.2608136832714081,
0.07697442919015884,
0.23511168360710144,
-0.10094741731882095,
-0.2804279327392578,
-0.6450654864311218,
0.12432925403118134,
0.0684332400560379,
0.6779878735542297,
-0.17966309189796448,
-0.5759934186935425,
-0.17628487944602966,
0.028246764093637466,
0.1837732195854187,
0.3288760781288147,
0.4478762745857239,
0.05239255353808403,
0.29571250081062317,
-0.3743906617164612,
-0.07838503271341324,
-0.20609548687934875,
-0.006349267438054085,
0.18411074578762054,
0.12166206538677216,
0.03787001594901085,
0.074668288230896,
-0.09538024663925171,
-0.08063919842243195,
0.1385246068239212,
0.15239790081977844,
-0.21175888180732727,
0.39944684505462646,
-0.2095365673303604,
0.07717204838991165,
-0.1255355328321457,
0.4140172004699707,
0.13075046241283417,
0.2277756929397583,
0.07078389078378677,
0.13595308363437653,
0.035413708537817,
0.23430335521697998,
0.01088188961148262,
0.1417296826839447,
0.247793510556221,
0.3913319706916809,
0.6380589008331299,
-0.3282333016395569,
-0.24193131923675537,
0.007025483995676041,
0.06584842503070831,
-0.3527880311012268,
0.14391101896762848,
0.18421685695648193,
0.09375546872615814,
-0.17595189809799194,
0.14573805034160614,
0.12331593036651611,
-0.060995496809482574,
-0.13502544164657593,
0.06680033355951309,
0.3881250023841858,
0.011948101222515106,
-0.06363426148891449,
0.03648092597723007,
0.13511833548545837,
-0.05470418184995651,
-0.16784316301345825,
-0.04685603082180023,
-0.23762360215187073,
-0.2913806438446045,
0.30040350556373596,
0.43413886427879333,
-0.22445933520793915,
0.06662324070930481,
0.2674310505390167,
0.20149458944797516,
-0.17952045798301697,
0.422793984413147,
-0.10741166770458221,
0.47778287529945374,
0.4978712201118469,
0.29968565702438354,
0.26286137104034424,
0.0436851792037487,
0.00005323439836502075,
-0.13159765303134918,
0.2637687623500824,
-0.3032703399658203,
-0.09869329631328583,
0.28065770864486694,
0.08867881447076797,
-0.008012864738702774,
0.20237697660923004,
-0.28625422716140747,
-0.08162377774715424,
0.5120167136192322,
-0.08145778626203537,
0.40028947591781616,
0.15456004440784454,
-0.2154940366744995,
-0.4295494556427002,
-0.14987850189208984,
0.34908807277679443,
-0.08805394172668457,
0.029500126838684082,
0.06849513202905655,
-0.02644778974354267,
-0.11330854892730713,
0.3437565267086029,
-0.08613096177577972,
0.19854402542114258,
-0.13930447399616241,
0.13604071736335754,
0.5056204795837402,
-0.3151090741157532,
-0.6019191741943359,
0.06808602064847946,
0.221006840467453,
-0.13760975003242493,
0.1968550980091095,
0.029075879603624344,
0.07520560175180435,
-0.16876432299613953,
-0.09773087501525879,
0.3972986340522766,
0.26392242312431335,
0.3172335624694824,
0.11976254731416702,
0.1169280856847763,
0.10836794972419739,
-0.05220700800418854,
0.1615094393491745,
0.3317577540874481,
0.30354946851730347,
-0.3312929570674896,
0.2924826145172119,
-0.2231602817773819,
0.17416153848171234,
0.5437781810760498,
0.10809652507305145,
0.03283904865384102,
0.005981948226690292,
-0.17945817112922668,
-0.36364448070526123,
0.29117995500564575,
-0.1739557981491089,
-0.30728763341903687,
-0.04328982159495354,
-0.47094589471817017,
-0.025549408048391342,
-0.21480122208595276,
-0.3509742021560669,
-0.0974435955286026,
0.119044728577137,
-0.06468042731285095,
0.0989140048623085,
-0.2676987648010254,
0.11896628141403198,
0.588030219078064,
0.2745913863182068,
0.023697800934314728,
-0.17717525362968445,
0.1437133252620697,
-0.12301164120435715,
-0.09788304567337036,
-0.13938435912132263,
0.01733044534921646,
0.3056897222995758,
0.0067546553909778595,
-0.2790573537349701,
0.23170585930347443,
0.1888643354177475,
-0.020686544477939606,
-0.1135333776473999,
0.19675332307815552,
-0.014361179433763027,
0.11905078589916229,
0.19913418591022491,
-0.13114899396896362,
-0.05031955987215042,
-0.03382273018360138,
-0.19568398594856262,
0.3568631410598755,
-0.11216971278190613,
-0.1396445631980896,
-0.0749959871172905,
0.10831769555807114,
0.14216378331184387,
0.010201096534729004,
-0.1366043984889984,
-0.16714894771575928,
-0.0507783405482769,
0.18296843767166138,
0.407688707113266,
0.23047083616256714,
-0.018590830266475677,
0.03869158402085304,
0.5186434388160706,
0.17688888311386108,
0.09509488940238953,
-0.10307037830352783,
-0.1744237244129181,
0.04339386522769928,
0.20665287971496582,
0.34277740120887756,
0.3068874478340149,
0.07456083595752716,
0.2848573327064514,
-0.09522242844104767,
0.2039225548505783,
-0.11234777420759201,
0.0012846067547798157,
-0.05032029002904892,
-0.08296817541122437,
-0.10492832958698273,
-0.043223507702350616,
-0.006251217797398567,
-0.1390186995267868,
0.2644656300544739,
-0.018904484808444977,
0.10205163061618805,
-0.37029343843460083,
-0.00602935254573822,
-0.260534405708313,
-0.17543387413024902,
0.22564980387687683,
-0.11087030172348022,
-0.5705709457397461,
-0.18340958654880524,
-0.15537947416305542,
0.17453008890151978,
0.02039765566587448,
0.10008802264928818,
-0.3219854235649109,
-0.008590146899223328,
-0.05684363469481468,
-0.16508497297763824,
-0.24589453637599945,
0.1631689965724945,
0.10913141071796417,
0.03060723841190338,
0.2297913134098053,
-0.46976158022880554,
0.23927240073680878,
-0.050701260566711426,
0.16517354547977448,
-0.25033578276634216,
0.07268545031547546,
-0.1850317269563675,
-0.06198212876915932,
0.09729114174842834,
-0.4140036702156067,
0.09177658706903458,
-0.08305814117193222,
0.038968782871961594,
-0.04593732953071594,
-0.24162840843200684,
-0.22712573409080505,
-0.0010180026292800903,
0.06937006115913391,
-0.033775776624679565,
-0.26286059617996216,
-0.1665530502796173,
-0.27797797322273254,
-0.19947555661201477,
0.3931867778301239,
0.25744786858558655,
0.23691348731517792,
0.09302754700183868,
-0.2937966585159302,
-0.36478477716445923,
-0.12273496389389038,
0.3172641098499298,
-0.39823904633522034,
-0.6051721572875977,
0.4023295044898987,
-0.6219412684440613,
-0.4590935707092285,
0.2315783053636551,
0.20137283205986023,
0.1301625818014145,
0.34655529260635376,
0.04071563482284546,
-0.1867360919713974,
-0.2796531915664673,
0.20645643770694733,
-0.21087384223937988,
0.2814798951148987,
-0.02993578091263771,
0.07737459242343903,
0.13506007194519043,
-0.0318165123462677,
-0.10761937499046326,
-0.03924689441919327,
0.025378644466400146,
-0.34725797176361084,
0.07771710306406021,
0.09997937083244324,
0.07481828331947327,
0.6144019961357117,
0.44681423902511597,
0.33238428831100464,
0.3170764148235321,
0.21563957631587982,
0.6482462882995605,
-0.004631411284208298,
-0.187753364443779,
0.01932082325220108,
0.02915734052658081,
-0.018738403916358948,
0.06896187365055084,
0.07673261314630508,
-0.09612991660833359,
0.028400033712387085,
-0.0328601710498333,
-0.3210653066635132,
-0.43220245838165283,
-0.2342413067817688,
-0.26202821731567383,
0.20560595393180847,
0.10205668210983276,
0.12256575375795364,
-0.3078933656215668,
-0.1614585816860199,
0.011943832039833069,
0.3866814374923706,
0.14090430736541748,
0.28170761466026306,
-0.269100159406662,
-0.04693740978837013,
-0.3118239939212799,
0.3282056450843811,
-0.024290937930345535,
0.5517892837524414,
-0.15003231167793274,
0.17620515823364258,
0.23829661309719086,
0.28649577498435974,
0.35477396845817566,
-0.44402533769607544,
0.22789141535758972,
0.0337124839425087,
0.08798687905073166,
0.2197984904050827,
-0.22717265784740448,
0.38647225499153137,
0.48562437295913696,
-0.05056878924369812,
-0.00587024912238121,
0.15853406488895416,
-0.27782922983169556,
-0.2988145649433136,
-0.16479165852069855,
-0.14271453022956848,
-0.16315840184688568,
-0.0013468340039253235,
0.09173768013715744,
-0.2044086456298828,
-0.15151886641979218,
0.2864144444465637,
-0.3923816680908203,
-0.1722853034734726,
-0.03775550797581673,
-0.16305473446846008,
0.11780843138694763,
0.10897992551326752,
0.04741191864013672,
0.354759156703949,
-0.015121396631002426,
0.0062248557806015015,
0.4237990975379944,
0.008337798528373241,
0.10831508040428162,
0.4060097932815552,
-0.24797135591506958,
0.22844401001930237,
-0.26819419860839844,
-0.20995451509952545,
0.3711688220500946,
0.015712451189756393,
-0.39507660269737244,
-0.05638127401471138,
-0.016376078128814697,
-0.17166529595851898,
-0.24865582585334778,
-0.12185192108154297,
0.0031063295900821686,
0.07422837615013123,
-0.25665223598480225,
-0.7040783166885376,
0.2036033570766449,
0.5451359748840332,
-0.32511258125305176,
0.16677401959896088,
-0.24864907562732697,
-0.33603131771087646,
0.17988063395023346,
-0.03655508905649185,
0.6836584210395813,
-0.22377775609493256,
0.45508480072021484,
-0.34836292266845703,
0.03716796636581421,
0.0531216561794281,
-0.4687064290046692,
0.08383486419916153,
-0.43485912680625916,
-0.30962204933166504,
-0.15724773705005646,
-0.16280525922775269,
0.04992376267910004,
0.28015607595443726,
0.01364491879940033,
0.23120610415935516,
-0.21355196833610535,
-0.16672411561012268,
-0.22011955082416534,
-0.06751525402069092,
-0.20394404232501984,
-0.2713049054145813,
0.030423074960708618,
0.17705251276493073,
-0.1802370250225067,
0.09662316739559174,
-0.06617897748947144,
-0.028718797490000725,
-0.24901016056537628,
0.24657444655895233,
-0.2815467417240143,
0.04154127836227417,
-0.5490880012512207,
0.19780080020427704,
-0.14516490697860718,
-0.047533534467220306,
0.18618586659431458,
0.315398633480072,
0.3440716862678528,
0.4305204749107361,
0.013665655627846718,
0.02249591052532196,
0.23266172409057617,
0.13412901759147644,
-0.21980640292167664,
0.15353120863437653,
0.4004869759082794,
0.1104053258895874,
0.000603899359703064,
-0.22159254550933838,
-0.16467079520225525,
-0.3210332989692688,
-0.30665695667266846,
0.3289487063884735,
-0.006810244172811508,
-0.23868396878242493,
-0.004113782197237015,
-0.10880476236343384,
0.029780030250549316,
0.030420884490013123,
0.11281424015760422,
0.46726614236831665,
-0.08721639215946198,
0.6280364990234375,
-0.34464508295059204,
-0.36206701397895813,
0.04313652217388153,
0.5669906139373779,
0.015279406681656837,
-0.16585838794708252,
0.21513056755065918,
-0.20896440744400024,
-0.3185100555419922,
-0.17017804086208344,
0.13833442330360413,
-0.021737530827522278,
-0.008482985198497772,
0.03201107680797577,
0.17662978172302246,
-0.026590153574943542,
0.15741528570652008,
-0.37841659784317017,
-0.04474616050720215,
0.021092746406793594,
0.007719218730926514,
-0.4072594940662384,
-0.46672022342681885,
-0.28011763095855713,
-0.24608880281448364,
0.1990966945886612,
0.25640609860420227,
-0.4146184027194977,
0.16098657250404358,
-0.04034506157040596,
-0.25679537653923035,
-0.20944756269454956,
-0.041897233575582504,
0.07666787505149841,
0.3206290602684021,
-0.047973424196243286,
-0.11768742650747299,
-0.20461294054985046,
-0.028507165610790253,
-0.009681198745965958,
-0.1122550368309021,
-0.21966224908828735,
-0.10788553953170776,
0.13039249181747437,
0.20568764209747314,
-0.3368842899799347,
0.10039072483778,
-0.4761210083961487,
-0.07626299560070038,
-0.37368276715278625,
0.15042421221733093,
0.3948468565940857,
0.22272098064422607,
0.3620985746383667,
0.16539818048477173,
-0.09214822202920914,
-0.08065852522850037,
0.21140918135643005,
-0.11304637044668198,
-0.2150549441576004,
-0.14238664507865906,
0.19855138659477234,
-0.2949601709842682,
0.00009939819574356079,
0.07566465437412262,
-0.022005651146173477,
0.08320721983909607,
0.04502313956618309,
0.17491687834262848,
-0.10189276188611984,
0.052521780133247375,
0.1191096305847168,
0.2731993794441223,
0.10163205862045288,
-0.0901164785027504,
0.0789249837398529,
0.31777024269104004,
0.09842672944068909,
0.031347259879112244,
-0.3164446949958801,
0.41684821248054504,
-0.19711661338806152,
0.12375400960445404,
0.3544673025608063,
0.2651704251766205,
-0.20429271459579468,
0.11084583401679993,
-0.055655717849731445,
0.11557066440582275,
-0.2537091374397278,
0.3794843256473541,
-0.07333851605653763,
0.10726144164800644,
0.07721144706010818,
0.3670884668827057,
0.2896668612957001,
-0.01186315342783928,
0.5240715146064758,
0.28720226883888245,
0.21225517988204956,
0.25918275117874146,
-0.4382053315639496,
0.1598135381937027,
-0.5626023411750793,
0.10063792020082474,
-0.062424927949905396,
0.022085148841142654,
0.3251495957374573,
0.11567950248718262,
0.05595065653324127,
-0.0347575917840004,
-0.2897118330001831,
-0.027101993560791016,
-0.00025277910754084587,
-0.13391998410224915,
-0.1326565146446228,
0.2307313233613968,
0.1868317723274231,
0.042546167969703674,
-0.25194641947746277,
-0.12473472207784653,
-0.3412947654724121,
0.11692233383655548,
0.232842817902565,
0.07111464440822601,
0.22485552728176117,
0.18741825222969055,
0.04994191601872444,
0.024411574006080627,
-0.12580300867557526,
-0.07996417582035065,
-0.5003091096878052,
-0.01961306855082512,
0.06366927921772003,
-0.08830220252275467,
0.12784399092197418,
0.062103044241666794,
0.02695445343852043,
0.21255114674568176,
0.27333104610443115,
0.010528907179832458,
-0.2860458791255951,
0.3114447295665741,
-0.21065488457679749,
-0.1936759352684021,
0.08266116678714752,
0.05104752257466316,
-0.09519019722938538,
-0.20736467838287354,
-0.199863001704216,
-0.002143699675798416,
0.03496959060430527,
0.08853499591350555,
-0.22485999763011932,
-0.5489955544471741,
0.06560859084129333,
-0.029310151934623718,
0.004278339445590973,
0.03681635111570358,
0.5910900831222534,
0.10537105053663254,
0.19603851437568665,
-0.6189998984336853,
0.04935040324926376,
0.346638560295105,
0.34393638372421265,
0.38389134407043457,
0.054639898240566254,
0.005678202956914902,
0.06850054860115051,
-0.47377830743789673,
0.08492565155029297,
0.12787099182605743,
0.2983972430229187,
-0.03793276473879814,
-0.18366464972496033,
0.03403934836387634,
-0.11767251789569855,
0.6823740601539612,
-0.15315848588943481,
0.2927887439727783,
0.3198474049568176,
-0.17092999815940857,
-0.23506693542003632,
0.04870079457759857,
-0.04248776286840439,
0.1017598956823349,
-0.42392000555992126,
0.15162932872772217,
-0.03458666056394577,
0.09505201131105423,
-0.2461915910243988,
-0.1130703017115593,
0.23451733589172363,
0.4329432249069214,
0.5166051387786865,
0.21941079199314117,
0.1007152646780014,
0.04107469320297241,
0.2859894037246704,
-0.37164193391799927,
0.097593754529953,
-0.19171187281608582,
-0.05968533456325531,
-0.2950812876224518,
0.11143013089895248,
-0.5112542510032654,
-0.21877972781658173,
-0.3291865587234497,
0.11033621430397034,
-0.141596257686615,
0.16258537769317627,
0.12198373675346375,
0.11861070245504379,
-0.15356414020061493,
0.08637829124927521,
0.32072627544403076,
0.18347027897834778,
-0.1782270073890686,
0.3008374273777008,
-0.4282841384410858,
-0.18958546221256256,
0.29194897413253784,
-0.26246732473373413,
-0.34460192918777466,
-0.10996496677398682,
0.3860333561897278,
0.019311171025037766,
-0.2348552942276001,
-0.03235166519880295,
0.21782426536083221,
0.2736093997955322,
-0.34296464920043945,
-0.13503395020961761,
0.0921119749546051,
-0.3157941997051239,
0.10812430083751678,
-0.16674695909023285,
0.44704094529151917,
-0.034834325313568115,
-0.15782585740089417,
0.05318846553564072,
-0.17175710201263428
] |
https://github.com/huggingface/datasets/issues/2065 | Thanks a lot for the tip @lhoestq ! I didn't know about this extra cache - thanks :) | Only user permission of saved cache files, not group | Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? | 18 | Only user permission of saved cache files, not group
Hello,
It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
Thanks a lot for the tip @lhoestq ! I didn't know about this extra cache - thanks :) | [
-0.06479183584451675,
0.20447693765163422,
-0.10630634427070618,
0.06709427386522293,
-0.03161969035863876,
0.15743085741996765,
0.31393229961395264,
0.12262389808893204,
-0.21438561379909515,
-0.008581556379795074,
-0.11468895524740219,
0.003673069179058075,
0.0850943922996521,
-0.26100367307662964,
0.001788116991519928,
0.1243230476975441,
0.18572357296943665,
0.039196718484163284,
0.021340088918805122,
-0.08097311854362488,
-0.10897011309862137,
-0.08399339765310287,
-0.08275213837623596,
-0.107399582862854,
-0.31188488006591797,
-0.08455856889486313,
0.2020246684551239,
0.19781970977783203,
0.013630494475364685,
-0.11904288828372955,
0.25807076692581177,
0.45981520414352417,
0.03648724406957626,
0.11602316796779633,
-0.00011541865387698635,
-0.16934993863105774,
0.022782325744628906,
-0.099545419216156,
0.10346225649118423,
0.2583886384963989,
-0.16515909135341644,
-0.14162245392799377,
-0.14334186911582947,
-0.15706337988376617,
-0.091246098279953,
0.22953324019908905,
0.16240432858467102,
-0.6613761186599731,
0.40023818612098694,
0.17083962261676788,
0.2003532350063324,
-0.18468625843524933,
-0.39476633071899414,
0.0472150519490242,
0.3119211792945862,
0.061398427933454514,
-0.19190816581249237,
0.0414101742208004,
0.2918267250061035,
-0.17106077075004578,
0.02431456372141838,
0.09188210219144821,
-0.28863316774368286,
0.13353203237056732,
0.1308363527059555,
-0.08958284556865692,
-0.2581087648868561,
-0.5235272645950317,
0.22861739993095398,
0.09142188727855682,
0.7918451428413391,
-0.02005879208445549,
-0.42914533615112305,
-0.16312731802463531,
-0.0074493177235126495,
0.24992221593856812,
0.3861357867717743,
0.3525422215461731,
0.053986720740795135,
0.2923509180545807,
-0.5572311282157898,
-0.0011492520570755005,
-0.1483413428068161,
-0.018070582300424576,
0.1515580117702484,
-0.0346512496471405,
-0.04264368116855621,
0.08068584650754929,
-0.0031064581125974655,
-0.026269424706697464,
0.11613231897354126,
0.08848132193088531,
-0.3969157040119171,
0.3407529592514038,
-0.11836370825767517,
0.05776786804199219,
-0.19123438000679016,
0.46846795082092285,
0.1608625054359436,
0.2758367657661438,
0.24790260195732117,
0.17744924128055573,
0.0723019689321518,
0.15714628994464874,
0.015194132924079895,
0.1550821214914322,
0.36270013451576233,
0.31684762239456177,
0.5303484201431274,
-0.424489825963974,
-0.10350324213504791,
-0.011333956383168697,
0.10778632760047913,
-0.3264254331588745,
0.10363717377185822,
0.22449705004692078,
0.02737528830766678,
-0.2654409408569336,
0.1867840588092804,
0.12630555033683777,
-0.09396451711654663,
-0.26606622338294983,
0.006351929157972336,
0.2627648115158081,
0.10503523051738739,
-0.15653112530708313,
-0.05318273976445198,
0.1492689549922943,
0.019991688430309296,
-0.39193153381347656,
-0.010884968563914299,
-0.32748904824256897,
-0.3161981999874115,
0.4127456545829773,
0.49804967641830444,
-0.20441457629203796,
0.052746206521987915,
0.270977646112442,
0.12202859669923782,
-0.21562428772449493,
0.35257670283317566,
-0.04706905782222748,
0.4471730887889862,
0.3646436631679535,
0.21705688536167145,
0.34099677205085754,
0.05371484160423279,
0.03668370842933655,
-0.09282870590686798,
0.3504354953765869,
-0.33281829953193665,
-0.16258454322814941,
0.26985278725624084,
0.042131826281547546,
-0.0313393734395504,
0.19482287764549255,
-0.3664887547492981,
0.08997178077697754,
0.549483597278595,
-0.18559294939041138,
0.40857672691345215,
0.32363128662109375,
-0.20991255342960358,
-0.4009564518928528,
-0.13654720783233643,
0.2922774851322174,
-0.14695823192596436,
-0.013777956366539001,
-0.02768220379948616,
-0.023028887808322906,
-0.027819693088531494,
0.23810254037380219,
-0.02449621446430683,
0.22137147188186646,
-0.16465896368026733,
0.21526435017585754,
0.45103955268859863,
-0.052565835416316986,
-0.5900937914848328,
0.0967935249209404,
0.2218611240386963,
-0.09554678946733475,
0.15305712819099426,
0.02209143340587616,
0.03385594114661217,
-0.07488807290792465,
-0.1412716805934906,
0.33450770378112793,
0.17475885152816772,
0.2456584870815277,
0.11055190861225128,
0.13680724799633026,
0.08515380322933197,
-0.09633113443851471,
0.09352317452430725,
0.34407734870910645,
0.36804312467575073,
-0.33183133602142334,
0.19110313057899475,
-0.28759366273880005,
0.2736726403236389,
0.4330926835536957,
-0.005175435915589333,
-0.10103204846382141,
-0.008721698075532913,
-0.0862770602107048,
-0.46505028009414673,
0.3111625909805298,
-0.1957118809223175,
-0.41440537571907043,
0.08823160827159882,
-0.39240244030952454,
0.020931221544742584,
-0.3367339074611664,
-0.22865334153175354,
-0.10594695806503296,
0.06463642418384552,
0.03437019884586334,
0.004494518041610718,
-0.37346351146698,
0.22309041023254395,
0.4253520667552948,
0.2764871120452881,
-0.031362708657979965,
-0.09667004644870758,
0.08368731290102005,
-0.09375859797000885,
-0.04592650383710861,
-0.306956946849823,
-0.06977783143520355,
0.2804640233516693,
-0.02843344956636429,
-0.3114628493785858,
0.27033621072769165,
0.13966155052185059,
0.0561816468834877,
-0.040163055062294006,
0.2201688140630722,
-0.01474122516810894,
0.0993373692035675,
0.06958526372909546,
-0.21541425585746765,
-0.08771240711212158,
-0.1919046938419342,
-0.26971983909606934,
0.300530344247818,
-0.011014016345143318,
-0.05505278334021568,
-0.29663681983947754,
0.20621003210544586,
0.1292114108800888,
-0.019089818000793457,
-0.06877655535936356,
-0.16945134103298187,
0.0028385543264448643,
0.19957800209522247,
0.32018476724624634,
0.20841196179389954,
0.11314442753791809,
0.08312587440013885,
0.38309410214424133,
0.17376874387264252,
0.10007872432470322,
-0.048538822680711746,
-0.11286324262619019,
0.05134473741054535,
0.19266168773174286,
0.31196489930152893,
0.3048081398010254,
0.034713663160800934,
0.3426069915294647,
-0.18705613911151886,
0.33161216974258423,
-0.17342576384544373,
0.027922529727220535,
-0.0948621928691864,
-0.03270919620990753,
-0.16650870442390442,
-0.10223641246557236,
-0.04382822662591934,
-0.08789439499378204,
0.37735438346862793,
0.13069358468055725,
0.06600581109523773,
-0.30292579531669617,
-0.09511111676692963,
-0.2684301733970642,
-0.20949861407279968,
0.3591630756855011,
-0.07177761197090149,
-0.5595086216926575,
-0.07721517235040665,
-0.15929721295833588,
0.16911326348781586,
-0.015492580831050873,
0.1533823013305664,
-0.2617204487323761,
0.2485784888267517,
-0.10031023621559143,
-0.10703366994857788,
-0.2420038878917694,
0.2110459953546524,
0.04983770474791527,
0.030291084200143814,
0.2457883059978485,
-0.6253201365470886,
0.1705559939146042,
-0.027725130319595337,
0.3058012127876282,
-0.30921751260757446,
0.022503800690174103,
-0.15754148364067078,
-0.03666920214891434,
0.07301101088523865,
-0.5056200623512268,
0.0193648599088192,
-0.15618111193180084,
0.09507301449775696,
-0.13807076215744019,
-0.2237183004617691,
-0.2506905496120453,
-0.018004823476076126,
0.054144952446222305,
-0.03427358344197273,
-0.3012101352214813,
-0.05701263248920441,
-0.10786893218755722,
-0.08929725736379623,
0.443695992231369,
0.12404119968414307,
0.21856610476970673,
-0.021152205765247345,
-0.3268637955188751,
-0.36357182264328003,
-0.23304298520088196,
0.24087601900100708,
-0.46964332461357117,
-0.6174898743629456,
0.33923301100730896,
-0.5146865844726562,
-0.4035547077655792,
0.09329307824373245,
0.21373935043811798,
0.10881075263023376,
0.39910757541656494,
-0.05257205665111542,
0.02505107969045639,
-0.21560102701187134,
0.19943684339523315,
-0.2544969618320465,
0.09227000921964645,
0.12430663406848907,
0.03389664739370346,
0.14645428955554962,
-0.08981288969516754,
-0.19068394601345062,
0.046969812363386154,
-0.0027319714426994324,
-0.2420884221792221,
0.08874988555908203,
0.05023116245865822,
0.13112564384937286,
0.7595243453979492,
0.3844923973083496,
0.38422903418540955,
0.31316113471984863,
0.29918378591537476,
0.6219876408576965,
0.045827269554138184,
-0.13078925013542175,
0.1293983906507492,
-0.04962019622325897,
-0.04003218188881874,
0.14481668174266815,
0.0314846895635128,
-0.27435731887817383,
-0.023370593786239624,
0.04829028248786926,
-0.23027722537517548,
-0.381544291973114,
-0.23326252400875092,
-0.33706188201904297,
0.107791006565094,
0.1421271413564682,
0.09000898897647858,
-0.2779003381729126,
-0.2404344379901886,
0.0005118809640407562,
0.2555769979953766,
0.21674318611621857,
0.2459927648305893,
-0.3941875696182251,
-0.005587678402662277,
-0.2925552725791931,
0.4081471264362335,
0.0030059628188610077,
0.38297703862190247,
-0.23105154931545258,
0.17265968024730682,
0.22087882459163666,
0.39826956391334534,
0.38975095748901367,
-0.47403836250305176,
0.22684307396411896,
-0.05980522185564041,
0.1655973494052887,
0.3515671491622925,
-0.2572552561759949,
0.4296584725379944,
0.5278570055961609,
0.09323512762784958,
0.13583162426948547,
0.227738618850708,
-0.14867785573005676,
-0.3595304489135742,
-0.25089505314826965,
-0.09859282523393631,
-0.24344629049301147,
0.09652780741453171,
0.267578661441803,
-0.04920658469200134,
-0.05733783543109894,
0.31765371561050415,
-0.33295056223869324,
-0.1433669924736023,
-0.014815695583820343,
-0.13035848736763,
0.21831655502319336,
0.06471340358257294,
-0.0710843950510025,
0.2721516489982605,
0.1364482343196869,
0.001088939607143402,
0.43689340353012085,
0.07507087290287018,
0.043926022946834564,
0.4136188328266144,
-0.18670439720153809,
0.37064704298973083,
-0.12415249645709991,
-0.34858956933021545,
0.404531329870224,
0.04121283069252968,
-0.33418008685112,
-0.13246414065361023,
0.0830077975988388,
-0.22771087288856506,
-0.28587350249290466,
-0.1112697571516037,
-0.07928106188774109,
0.05634419620037079,
-0.20846165716648102,
-0.5229087471961975,
0.24367879331111908,
0.579918384552002,
-0.33490613102912903,
0.32538023591041565,
-0.3026421368122101,
-0.33562520146369934,
0.049368053674697876,
0.01631622016429901,
0.7756340503692627,
-0.15923582017421722,
0.3622458577156067,
-0.46159493923187256,
0.04596579819917679,
0.048076748847961426,
-0.4424738883972168,
0.13374075293540955,
-0.3946602940559387,
-0.40476730465888977,
-0.15236717462539673,
-0.12384969741106033,
0.04315520077943802,
0.41624850034713745,
0.022338055074214935,
0.11187851428985596,
-0.1172017976641655,
-0.005687061231583357,
-0.11455631256103516,
-0.24795302748680115,
-0.08096115291118622,
-0.2898816168308258,
0.3775227665901184,
0.12729588150978088,
-0.23595283925533295,
0.08280542492866516,
-0.0763489305973053,
0.007331721484661102,
-0.2202872484922409,
0.22045235335826874,
-0.2990441918373108,
0.07010588049888611,
-0.5314213037490845,
0.10795245319604874,
-0.19860173761844635,
0.014559000730514526,
0.14025361835956573,
0.321017861366272,
0.3332711160182953,
0.3232261836528778,
-0.058254554867744446,
0.06404156982898712,
0.38617393374443054,
0.19355478882789612,
-0.2532939612865448,
0.06482608616352081,
0.24441078305244446,
0.1126345619559288,
0.056864261627197266,
-0.2548208236694336,
-0.22392931580543518,
-0.35528743267059326,
-0.3316347301006317,
0.27928540110588074,
-0.0006437618285417557,
-0.1933026760816574,
0.00599236786365509,
-0.059264425188302994,
0.1213991641998291,
0.05446574091911316,
0.07763922959566116,
0.4348621666431427,
-0.0204966701567173,
0.5828230977058411,
-0.3567008674144745,
-0.3664834499359131,
0.029783375561237335,
0.5728054046630859,
-0.014972168020904064,
-0.2364809513092041,
0.1854829490184784,
-0.34347257018089294,
-0.27729105949401855,
-0.15173083543777466,
0.21436496078968048,
0.04427667707204819,
-0.11679788678884506,
-0.04975564405322075,
0.04758442938327789,
-0.04206746816635132,
0.16982927918434143,
-0.4634358286857605,
0.0300559364259243,
0.1219867616891861,
0.14018291234970093,
-0.3815537691116333,
-0.42912226915359497,
-0.35516753792762756,
-0.40208911895751953,
0.22275158762931824,
0.2295733541250229,
-0.5291106104850769,
0.20185942947864532,
0.1359895020723343,
-0.19778156280517578,
-0.14492559432983398,
0.07428936660289764,
0.16210952401161194,
0.2260468304157257,
0.017497126013040543,
-0.11132842302322388,
-0.21996383368968964,
-0.1258973330259323,
-0.012844951823353767,
-0.05265691131353378,
-0.17281384766101837,
-0.021209321916103363,
0.16490823030471802,
0.2178167849779129,
-0.37076669931411743,
0.10217980295419693,
-0.4015166163444519,
-0.09238629043102264,
-0.3750627040863037,
0.03473127633333206,
0.28538888692855835,
0.19934117794036865,
0.30483031272888184,
0.20491045713424683,
-0.06528190523386002,
-0.1485501378774643,
0.18980813026428223,
-0.16127566993236542,
-0.1635712832212448,
-0.2581999599933624,
0.212289497256279,
-0.2857264280319214,
-0.07437250018119812,
0.1071021556854248,
-0.07122215628623962,
0.10618659853935242,
0.0550682432949543,
0.10853473842144012,
-0.06252993643283844,
0.022095046937465668,
0.18368281424045563,
0.2165037840604782,
-0.021676257252693176,
-0.1116500198841095,
0.013261020183563232,
0.25493818521499634,
0.0904165655374527,
0.10025425255298615,
-0.2615320384502411,
0.41860559582710266,
-0.0758674144744873,
0.020715460181236267,
0.31370046734809875,
0.2799617648124695,
-0.2674165964126587,
0.2003631442785263,
-0.06698064506053925,
0.04992174729704857,
-0.36354750394821167,
0.4368879497051239,
-0.12358339130878448,
0.047113820910453796,
0.072119802236557,
0.4583738148212433,
0.2049814760684967,
-0.02108936384320259,
0.35733336210250854,
0.2675377130508423,
0.121635302901268,
0.3687780797481537,
-0.374383807182312,
0.11756204068660736,
-0.6657558679580688,
0.1307232528924942,
0.034610018134117126,
-0.017813175916671753,
0.3528151512145996,
0.10450094938278198,
0.05257882922887802,
-0.04750555008649826,
-0.30647486448287964,
-0.07882232218980789,
-0.0857234001159668,
-0.1671823263168335,
-0.11515755951404572,
0.08536450564861298,
0.06773892045021057,
0.04360461235046387,
-0.20343098044395447,
-0.1310873031616211,
-0.1799120306968689,
0.2882480025291443,
0.17083218693733215,
-0.00995584949851036,
0.24807453155517578,
0.04464520514011383,
0.05919020250439644,
0.024838300421833992,
-0.2052147388458252,
-0.05121976137161255,
-0.5117070078849792,
-0.1627865731716156,
0.2754262685775757,
0.09179691970348358,
0.02184022217988968,
0.09891217947006226,
0.12493640184402466,
0.16014795005321503,
0.29207441210746765,
0.04514497518539429,
-0.2735292315483093,
0.4018329083919525,
-0.08514204621315002,
-0.43260693550109863,
0.08314476907253265,
-0.0028404835611581802,
-0.03223100304603577,
-0.01665997877717018,
-0.15527470409870148,
0.1339859813451767,
0.06460197269916534,
-0.10305210947990417,
-0.20677915215492249,
-0.4355771541595459,
0.1004691869020462,
-0.0041680000722408295,
0.17432527244091034,
0.03791523352265358,
0.5371357798576355,
0.010731898248195648,
0.20455557107925415,
-0.5274996757507324,
0.024006377905607224,
0.40177950263023376,
0.3149831295013428,
0.4430723190307617,
-0.07567240297794342,
-0.09076401591300964,
0.002681925892829895,
-0.3664841651916504,
0.12266191840171814,
0.16352622210979462,
0.5250734686851501,
-0.004074122756719589,
-0.15735971927642822,
0.12131695449352264,
-0.12876617908477783,
0.6615421772003174,
-0.27465173602104187,
0.2636581361293793,
0.32205265760421753,
-0.2628834843635559,
-0.23318278789520264,
0.1789485216140747,
-0.04038105905056,
0.10154952108860016,
-0.35101643204689026,
0.33202505111694336,
0.14691023528575897,
0.04507530480623245,
-0.1530511975288391,
-0.21596002578735352,
0.13816647231578827,
0.5133702754974365,
0.4521469473838806,
0.23486319184303284,
-0.020986288785934448,
0.04278998076915741,
0.3680112957954407,
-0.3549984097480774,
0.08729113638401031,
-0.1447940617799759,
-0.04748294875025749,
-0.14182023704051971,
-0.006667390465736389,
-0.61394864320755,
-0.12349474430084229,
-0.32402873039245605,
0.03520938381552696,
-0.14205777645111084,
0.35428234934806824,
0.04111900180578232,
0.004270151257514954,
-0.19613483548164368,
0.0845533013343811,
0.2608841359615326,
0.205098956823349,
-0.1260756552219391,
0.36460280418395996,
-0.4710826575756073,
-0.11002284288406372,
0.2805606722831726,
-0.21718233823776245,
-0.24972651898860931,
-0.05510725826025009,
0.3602762222290039,
0.1630687117576599,
-0.1877470463514328,
0.007064029574394226,
0.05329892039299011,
0.41161614656448364,
-0.37541550397872925,
-0.05540631711483002,
0.08535625785589218,
-0.4313793182373047,
0.06285806745290756,
-0.12217257916927338,
0.5618528127670288,
0.036117732524871826,
-0.18273872137069702,
0.07820691168308258,
-0.24395807087421417
] |
https://github.com/huggingface/datasets/issues/2061 | @lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences. | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 35 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
@lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences. | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.0808662474155426,
0.11441240459680557,
-0.315104603767395,
-0.060249119997024536,
0.017356030642986298,
-0.2503678798675537,
-0.06550414860248566,
-0.41051703691482544,
-0.06232643872499466,
-0.3046579957008362,
0.10954286903142929,
-0.17110341787338257,
0.20645759999752045,
0.014145128428936005,
0.1647336483001709,
-0.3150222897529602,
-0.4950225353240967,
0.5633597373962402,
0.018032971769571304,
0.5800750255584717,
0.22132180631160736,
-0.0001253432419616729,
0.10603885352611542,
0.4861794412136078,
-0.06130571663379669,
-0.3452346622943878,
-0.40495800971984863,
-0.4189884066581726,
-0.13159742951393127,
-0.06906121224164963,
-0.0964653268456459,
0.1045275330543518,
-0.004398871213197708,
-0.08233431726694107,
-0.2585623860359192,
0.33210331201553345,
0.3678755462169647,
0.0941704511642456,
0.37202873826026917,
0.061858177185058594,
-0.22116543352603912,
0.475719690322876,
-0.04227086156606674,
-0.14890770614147186,
0.1563739776611328,
0.4271000623703003,
-0.32468125224113464,
0.1801445037126541,
0.1246253252029419,
-0.20913952589035034,
0.2249169945716858,
-0.16371780633926392,
0.05600580945611,
0.18213516473770142,
-0.25835102796554565,
0.23912444710731506,
0.13496512174606323,
0.8412336707115173,
-0.15123891830444336,
-0.41478148102760315,
0.018239103257656097,
-0.10140638053417206,
-0.35548245906829834,
0.1830141842365265,
0.0008574724197387695,
-0.05788693204522133,
0.07884173095226288,
-0.07680001854896545,
-0.0602417066693306,
0.05037584900856018,
0.2890724837779999,
-0.14345775544643402,
0.2910361886024475,
0.05412069335579872,
0.1338609904050827,
0.3239518702030182,
-0.10892048478126526,
0.4901399612426758,
0.09794209897518158,
-0.07307165116071701,
0.24106058478355408,
-0.3231167793273926,
0.2865314483642578,
-0.0756046399474144,
-0.3037874698638916,
0.23896415531635284,
-0.10459788888692856,
-0.10120704770088196,
0.003955548629164696,
-0.14436495304107666,
0.3295549154281616,
0.446702241897583,
0.25859272480010986,
0.3614312410354614,
0.2899976372718811,
0.10725375264883041,
0.15876880288124084,
-0.05657358467578888,
-0.0633866935968399,
-0.44746118783950806,
-0.21606257557868958,
0.08579227328300476,
-0.02712954767048359,
0.15717057883739471,
-0.45061877369880676,
-0.5827981233596802,
0.04483441263437271,
-0.16290155053138733,
-0.21788381040096283,
0.05834994465112686,
0.2688896358013153,
0.1545640230178833,
0.4297795593738556,
0.045862264931201935,
0.4458410143852234,
-0.49627935886383057,
-0.26598045229911804,
-0.05442378669977188,
0.16876265406608582,
-0.41896378993988037,
0.05851304531097412,
0.14394289255142212,
0.0052871257066726685,
0.2148580253124237,
0.016775526106357574,
0.26567429304122925,
-0.24525362253189087,
0.12882927060127258,
-0.23588603734970093,
-0.2444215565919876,
0.35405150055885315,
0.3105241656303406,
0.12189764529466629,
0.27113062143325806,
-0.3746762275695801,
-0.0785989984869957,
0.28915607929229736,
-0.22251109778881073,
-0.2350117415189743,
0.09094425290822983,
0.03285485506057739,
-0.1796908974647522,
0.05502047389745712,
-1.0357829332351685,
-0.07645796984434128,
0.08510298281908035,
0.1069331243634224,
-0.015508778393268585,
-0.27552929520606995,
-0.1712113618850708,
0.0025954470038414,
0.2848057448863983,
0.5355800986289978,
-0.28687143325805664,
-0.04640643298625946,
-0.14084014296531677,
-0.040089547634124756,
0.33559322357177734,
0.3613087832927704,
-0.3357943892478943,
0.07375460118055344,
-0.12798498570919037,
0.10571111738681793,
0.19821414351463318,
-0.5150756239891052,
-0.4803658425807953,
0.16409742832183838,
0.05092807114124298,
-0.016187570989131927,
-0.08576054126024246,
-0.3274519443511963,
0.23931807279586792,
0.03572038933634758,
0.1953129768371582,
0.25892430543899536,
0.05809725821018219,
-0.09088750928640366,
-0.1751013845205307,
-0.0985950455069542,
0.13611355423927307,
0.4271915555000305,
0.2911244332790375,
0.14539967477321625,
0.2614879012107849,
0.4392368495464325,
0.04362184554338455,
0.01657566986978054,
0.01318233460187912,
0.3216632008552551,
0.03335984796285629,
0.0902012288570404,
0.03624085336923599,
-0.059344395995140076,
-0.42229002714157104,
0.2021976113319397,
-0.09309966117143631,
-0.04537072032690048,
0.0975537821650505,
0.18124035000801086,
-0.38971126079559326,
0.12302221357822418,
-0.32474493980407715,
-0.3197047710418701,
-0.09428909420967102,
0.08660347014665604,
-0.09641335159540176,
-0.08180812001228333,
-0.16979987919330597,
0.0806681364774704,
-0.0715484544634819,
0.11032068729400635,
-0.37545129656791687,
0.4191191792488098,
0.04957816004753113,
-0.064890056848526,
0.08072404563426971,
0.20629987120628357,
0.2299799919128418,
-0.12608002126216888,
-0.17538127303123474,
0.18774199485778809,
0.6032567024230957,
-0.1791830211877823,
0.1357361227273941,
-0.04410378634929657,
0.30425840616226196,
-0.3885692059993744,
0.19620287418365479,
-0.027381664142012596,
0.11872179806232452,
0.11306485533714294,
0.059830449521541595,
0.25418978929519653,
-0.03597453981637955,
0.18406400084495544,
-0.12819069623947144,
0.12247241288423538,
0.38742637634277344,
0.0022267624735832214,
0.06135950982570648,
-0.29249560832977295,
0.510249137878418,
0.32502949237823486,
0.31844162940979004,
0.05247936397790909,
-0.14598579704761505,
-0.22427238523960114,
-0.11093030869960785,
-0.15162977576255798,
0.0816713199019432,
0.1515699326992035,
-0.22369888424873352,
0.044475749135017395,
0.2037227898836136,
0.23733550310134888,
0.3294335603713989,
0.021467119455337524,
0.07584698498249054,
-0.0468035489320755,
0.023762617260217667,
0.07017737627029419,
-0.009797453880310059,
-0.0718170553445816,
-0.10157576203346252,
0.06444044411182404,
0.0008363313972949982,
-0.20575778186321259,
-0.22481156885623932,
0.07293953001499176,
0.23779723048210144,
0.42306914925575256,
-0.30031639337539673,
0.047322116792201996,
-0.42317870259284973,
-0.15952953696250916,
0.1389966905117035,
-0.08027952909469604,
-0.038730937987565994,
-0.14833718538284302,
-0.3189133405685425,
0.2778153419494629,
0.33826661109924316,
0.12882253527641296,
0.10790923237800598,
-0.2398625910282135,
-0.024733025580644608,
-0.20222748816013336,
0.16747812926769257,
-0.1916828602552414,
-0.1363239586353302,
-0.11427707970142365,
0.23435337841510773,
0.17310625314712524,
0.09741038829088211,
-0.3408338129520416,
-0.045413486659526825,
-0.23199714720249176,
-0.055594682693481445,
0.23203080892562866,
-0.0026653544045984745,
0.30958691239356995,
-0.07700024545192719,
0.14246340095996857,
-0.35867586731910706,
0.03647232800722122,
0.3661395013332367,
0.02121773362159729,
-0.1678796410560608,
0.2677276134490967,
-0.012351896613836288,
-0.12510524690151215,
0.023681797087192535,
-0.14731228351593018,
-0.2998107373714447,
-0.2093850076198578,
0.017121555283665657,
0.04826594889163971,
0.0239053163677454,
-0.04711540788412094,
0.039598505944013596,
0.038050033152103424,
0.17748814821243286,
-0.1749289631843567,
-0.340343713760376,
-0.431957870721817,
0.4691958725452423,
-0.27102506160736084,
-0.2475004494190216,
0.0816969946026802,
0.04735599458217621,
0.20141123235225677,
0.34188273549079895,
-0.4603404998779297,
-0.07378657162189484,
-0.11739259213209152,
0.16462576389312744,
0.0758611261844635,
0.1864938884973526,
0.046967193484306335,
-0.13114875555038452,
0.15852011740207672,
-0.07704100757837296,
-0.33956673741340637,
-0.10581066459417343,
0.24256329238414764,
0.2578388452529907,
-0.10521703958511353,
0.44835734367370605,
-0.25083833932876587,
0.2393936812877655,
-0.012945976108312607,
0.28911033272743225,
0.542639970779419,
-0.0893334150314331,
0.15291279554367065,
-0.3217941224575043,
-0.31435278058052063,
-0.09971138089895248,
-0.19487527012825012,
-0.1389903575181961,
0.048357151448726654,
0.026965532451868057,
-0.14914585649967194,
-0.27067479491233826,
-0.05290850251913071,
-0.08796127140522003,
-0.17469948530197144,
-0.05534311383962631,
-0.0693778246641159,
0.32938528060913086,
-0.05049324780702591,
0.2791499197483063,
0.013617180287837982,
-0.04041896387934685,
-0.15393969416618347,
0.2246425449848175,
0.12359997630119324,
0.2225518524646759,
-0.3244818449020386,
0.1071845069527626,
-0.2705764174461365,
0.35297128558158875,
-0.04078753665089607,
0.7153810262680054,
-0.14472675323486328,
0.3261328935623169,
0.11281692981719971,
0.03812683746218681,
0.10555662214756012,
-0.29159626364707947,
0.11078041791915894,
0.025910258293151855,
-0.43943849205970764,
-0.057181358337402344,
-0.03271925821900368,
-0.048792555928230286,
-0.0640701949596405,
-0.02919122576713562,
0.2615404427051544,
-0.2473839521408081,
-0.10460551083087921,
-0.021286627277731895,
0.30486738681793213,
-0.04211370646953583,
-0.2426178902387619,
-0.3949684500694275,
-0.5412188172340393,
-0.43925076723098755,
-0.1890489161014557,
0.1465299129486084,
0.15771286189556122,
-0.07987215369939804,
0.20453929901123047,
-0.1588289588689804,
0.1053301990032196,
0.22422920167446136,
0.08409195393323898,
0.2725592851638794,
-0.0330144464969635,
0.15348760783672333,
0.2682337164878845,
-0.1665603518486023,
0.7140194177627563,
0.7792879343032837,
-0.16547289490699768,
-0.35192248225212097,
0.2531232535839081,
-0.07656945288181305,
0.021768983453512192,
-0.05635540187358856,
-0.026279335841536522,
0.047359734773635864,
-0.1993347406387329,
-0.1701831817626953,
-0.04642153158783913,
0.19832183420658112,
0.19671911001205444,
0.15442383289337158,
-0.2928842008113861,
-0.7532663345336914,
0.5231230854988098,
0.07335090637207031,
0.11949151754379272,
0.29480433464050293,
-0.09946583956480026,
-0.18771103024482727,
0.26917749643325806,
0.10974028706550598,
0.7309183478355408,
-0.40244320034980774,
0.06639973819255829,
0.1255255937576294,
0.03905375301837921,
0.09694746136665344,
-0.03893982991576195,
-0.2549378275871277,
-0.1899639070034027,
-0.21341705322265625,
-0.14643675088882446,
-0.163065105676651,
0.2815149426460266,
0.15234141051769257,
-0.07434447854757309,
0.2819466292858124,
-0.17345008254051208,
-0.028556345030665398,
0.23774752020835876,
0.11795365065336227,
-0.0852733626961708,
-0.3346668481826782,
-0.570162832736969,
0.06952624768018723,
-0.17449229955673218,
0.2196645438671112,
-0.022928249090909958,
0.04462641105055809,
-0.07708930969238281,
-0.05582142621278763,
-0.3917292058467865,
0.36484071612358093,
-0.2748182415962219,
0.3384896516799927,
-0.13014847040176392,
-0.3494685888290405,
0.18923407793045044,
0.4507744312286377,
0.22845691442489624,
0.14010950922966003,
-0.1527663916349411,
0.07425934076309204,
0.26427048444747925,
-0.252383828163147,
-0.030452726408839226,
-0.10021735727787018,
-0.06935513764619827,
-0.02304314821958542,
-0.273199200630188,
0.1419648826122284,
-0.07024785876274109,
-0.22475403547286987,
-0.0742938369512558,
0.1391913890838623,
0.028742358088493347,
-0.09943090379238129,
-0.3413546085357666,
-0.07189055532217026,
0.03511859476566315,
-0.16433066129684448,
-0.006722382269799709,
0.20912575721740723,
-0.0939808338880539,
0.0110954400151968,
0.05714898928999901,
-0.3362407684326172,
0.020826319232583046,
0.45987018942832947,
-0.06713642925024033,
-0.1035424992442131,
0.5126204490661621,
0.2207634150981903,
-0.20533376932144165,
-0.129189133644104,
0.26687443256378174,
0.3432769179344177,
-0.2435237020254135,
0.02479397878050804,
-0.1015283539891243,
0.12263865768909454,
0.01696464791893959,
0.019084040075540543,
0.23217591643333435,
-0.35060930252075195,
0.3566075563430786,
-0.5912506580352783,
-0.37390583753585815,
0.19041544198989868,
-0.18425247073173523,
0.02091025933623314,
-0.023007668554782867,
0.011409446597099304,
-0.15387094020843506,
-0.08554059267044067,
-0.11315365135669708,
0.1104639321565628,
-0.35552939772605896,
0.053175680339336395,
0.23331154882907867,
-0.003837699070572853,
0.02661770209670067,
-0.17022119462490082,
0.008407454937696457,
0.1382465660572052,
0.03584539517760277,
-0.038531623780727386,
-0.18231579661369324,
0.21420982480049133,
0.12910154461860657,
-0.3466270864009857,
0.009542394429445267,
-0.21731561422348022,
-0.040677525103092194,
-0.1456345021724701,
0.17523406445980072,
0.46423113346099854,
-0.05088531970977783,
0.11629143357276917,
0.20204514265060425,
0.11926437169313431,
-0.3610047698020935,
0.3773377239704132,
-0.05974648520350456,
0.21924082934856415,
0.1052805706858635,
0.1996854692697525,
0.226188063621521,
0.12845377624034882,
-0.29863885045051575,
-0.09186068177223206,
0.2543620467185974,
-0.020749734714627266,
0.27848753333091736,
-0.4246547818183899,
0.3846978545188904,
0.09340228140354156,
0.13926923274993896,
0.4423636496067047,
-0.27087074518203735,
0.06683047860860825,
0.322624146938324,
0.0277718435972929,
-0.2396785467863083,
-0.10680259019136429,
0.1143147200345993,
0.056722491979599,
-0.13262499868869781,
0.3174368143081665,
0.39816349744796753,
0.06588354706764221,
-0.14058347046375275,
0.03662274777889252,
0.06292062997817993,
-0.1436379998922348,
0.051992833614349365,
0.6180887818336487,
0.01825803518295288,
0.2121533304452896,
0.06275149434804916,
0.22510579228401184,
-0.02615329995751381,
0.3331245481967926,
-0.15771755576133728,
0.44614285230636597,
0.21345651149749756,
0.19085931777954102,
-0.3277812600135803,
-0.5346598029136658,
-0.169968843460083,
0.3204801082611084,
0.09440180659294128,
-0.025712285190820694,
-0.2086394727230072,
0.24226464331150055,
-0.18227142095565796,
0.1587972640991211,
-0.06975597143173218,
0.13053753972053528,
-0.034036144614219666,
-0.18388527631759644,
-0.13292250037193298,
-0.1520824432373047,
-0.5502750873565674,
0.18709276616573334,
-0.24702075123786926,
-0.12653875350952148,
0.1939038634300232,
0.15689635276794434,
-0.13298049569129944,
-0.3558679521083832,
-0.050960928201675415,
0.3773247003555298,
-0.34378594160079956,
-0.3400723338127136,
0.3964485228061676,
0.017726849764585495,
0.017270086333155632,
0.2495320737361908,
0.13937978446483612,
0.33069828152656555,
0.42049986124038696,
-0.3608878552913666,
-0.1154855340719223,
0.061338797211647034,
0.07740135490894318,
0.07656547427177429,
0.1979314088821411,
0.019552165642380714,
0.20653824508190155,
0.3709862530231476,
-0.011409854516386986,
-0.01394064910709858,
-0.03165747597813606,
0.15727069973945618,
-0.229726642370224,
-0.08797706663608551,
0.2299748957157135,
-0.04816083610057831,
0.19987666606903076,
-0.11763804405927658,
0.02451002411544323,
-0.24237385392189026,
0.021785806864500046,
0.5751785635948181,
0.010339446365833282,
0.1068289577960968,
0.059291865676641464,
-0.052746109664440155,
-0.18448767066001892,
0.3957372307777405,
0.6384896039962769,
0.3486223816871643,
-0.40219563245773315,
-0.19086410105228424,
-0.7238462567329407,
0.059811245650053024,
-0.4783253073692322,
-0.2568795680999756,
0.5058496594429016,
-0.07415714859962463,
0.10183131694793701,
0.3912000358104706,
-0.09394098818302155,
0.2525463104248047,
0.18576456606388092,
0.2951028645038605,
-0.2620007395744324,
-0.25890880823135376,
0.4163455367088318,
0.2090039998292923,
-0.1786017119884491,
-0.4936586320400238,
-0.010533789172768593,
0.04262368008494377,
-0.09226173162460327,
-0.18249139189720154,
0.04175621271133423,
0.14125744998455048,
0.37909218668937683,
0.1933656632900238,
0.05841154605150223,
0.776093602180481,
-0.025724176317453384,
-0.0648016631603241,
-0.07898283004760742,
-0.6323980093002319,
-0.05423632636666298,
0.06052106246352196,
0.06495653837919235,
0.129619762301445,
-0.1022135466337204,
-0.11268527060747147,
-0.3824729025363922,
0.30614060163497925,
-0.12557566165924072,
-0.14835233986377716,
-0.23188340663909912,
-0.004364050924777985,
-0.05085069686174393,
-0.06284943222999573,
-0.028133228421211243,
0.06108877435326576,
0.12244810163974762,
0.35521775484085083,
-0.12596498429775238,
-0.22627872228622437,
0.3989254832267761,
-0.05346258357167244,
-0.4505839943885803,
0.0725824385881424,
-0.11923105269670486,
0.33506542444229126,
-0.2118576616048813,
-0.4614248275756836,
0.1921403557062149,
0.22828266024589539,
-0.14500652253627777,
-0.3645922541618347,
0.035404615104198456,
0.14406399428844452,
0.10550902783870697,
-0.11913539469242096,
0.60804682970047,
0.00681413896381855,
-0.1588616967201233,
0.10727111995220184,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2061 | Hi ! Thanks for reporting @adzcodez
> @lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
>
> The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences.
You're right: "_" should be added to the list of labels, and the examples must be sequences of tokens, not singles tokens.
| Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 66 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
Hi ! Thanks for reporting @adzcodez
> @lhoestq Adding "_" to the class labels in the dataset script will fix the issue.
>
> The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences.
You're right: "_" should be added to the list of labels, and the examples must be sequences of tokens, not singles tokens.
| [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.0808662474155426,
0.11441240459680557,
-0.315104603767395,
-0.060249119997024536,
0.017356030642986298,
-0.2503678798675537,
-0.06550414860248566,
-0.41051703691482544,
-0.06232643872499466,
-0.3046579957008362,
0.10954286903142929,
-0.17110341787338257,
0.20645759999752045,
0.014145128428936005,
0.1647336483001709,
-0.3150222897529602,
-0.4950225353240967,
0.5633597373962402,
0.018032971769571304,
0.5800750255584717,
0.22132180631160736,
-0.0001253432419616729,
0.10603885352611542,
0.4861794412136078,
-0.06130571663379669,
-0.3452346622943878,
-0.40495800971984863,
-0.4189884066581726,
-0.13159742951393127,
-0.06906121224164963,
-0.0964653268456459,
0.1045275330543518,
-0.004398871213197708,
-0.08233431726694107,
-0.2585623860359192,
0.33210331201553345,
0.3678755462169647,
0.0941704511642456,
0.37202873826026917,
0.061858177185058594,
-0.22116543352603912,
0.475719690322876,
-0.04227086156606674,
-0.14890770614147186,
0.1563739776611328,
0.4271000623703003,
-0.32468125224113464,
0.1801445037126541,
0.1246253252029419,
-0.20913952589035034,
0.2249169945716858,
-0.16371780633926392,
0.05600580945611,
0.18213516473770142,
-0.25835102796554565,
0.23912444710731506,
0.13496512174606323,
0.8412336707115173,
-0.15123891830444336,
-0.41478148102760315,
0.018239103257656097,
-0.10140638053417206,
-0.35548245906829834,
0.1830141842365265,
0.0008574724197387695,
-0.05788693204522133,
0.07884173095226288,
-0.07680001854896545,
-0.0602417066693306,
0.05037584900856018,
0.2890724837779999,
-0.14345775544643402,
0.2910361886024475,
0.05412069335579872,
0.1338609904050827,
0.3239518702030182,
-0.10892048478126526,
0.4901399612426758,
0.09794209897518158,
-0.07307165116071701,
0.24106058478355408,
-0.3231167793273926,
0.2865314483642578,
-0.0756046399474144,
-0.3037874698638916,
0.23896415531635284,
-0.10459788888692856,
-0.10120704770088196,
0.003955548629164696,
-0.14436495304107666,
0.3295549154281616,
0.446702241897583,
0.25859272480010986,
0.3614312410354614,
0.2899976372718811,
0.10725375264883041,
0.15876880288124084,
-0.05657358467578888,
-0.0633866935968399,
-0.44746118783950806,
-0.21606257557868958,
0.08579227328300476,
-0.02712954767048359,
0.15717057883739471,
-0.45061877369880676,
-0.5827981233596802,
0.04483441263437271,
-0.16290155053138733,
-0.21788381040096283,
0.05834994465112686,
0.2688896358013153,
0.1545640230178833,
0.4297795593738556,
0.045862264931201935,
0.4458410143852234,
-0.49627935886383057,
-0.26598045229911804,
-0.05442378669977188,
0.16876265406608582,
-0.41896378993988037,
0.05851304531097412,
0.14394289255142212,
0.0052871257066726685,
0.2148580253124237,
0.016775526106357574,
0.26567429304122925,
-0.24525362253189087,
0.12882927060127258,
-0.23588603734970093,
-0.2444215565919876,
0.35405150055885315,
0.3105241656303406,
0.12189764529466629,
0.27113062143325806,
-0.3746762275695801,
-0.0785989984869957,
0.28915607929229736,
-0.22251109778881073,
-0.2350117415189743,
0.09094425290822983,
0.03285485506057739,
-0.1796908974647522,
0.05502047389745712,
-1.0357829332351685,
-0.07645796984434128,
0.08510298281908035,
0.1069331243634224,
-0.015508778393268585,
-0.27552929520606995,
-0.1712113618850708,
0.0025954470038414,
0.2848057448863983,
0.5355800986289978,
-0.28687143325805664,
-0.04640643298625946,
-0.14084014296531677,
-0.040089547634124756,
0.33559322357177734,
0.3613087832927704,
-0.3357943892478943,
0.07375460118055344,
-0.12798498570919037,
0.10571111738681793,
0.19821414351463318,
-0.5150756239891052,
-0.4803658425807953,
0.16409742832183838,
0.05092807114124298,
-0.016187570989131927,
-0.08576054126024246,
-0.3274519443511963,
0.23931807279586792,
0.03572038933634758,
0.1953129768371582,
0.25892430543899536,
0.05809725821018219,
-0.09088750928640366,
-0.1751013845205307,
-0.0985950455069542,
0.13611355423927307,
0.4271915555000305,
0.2911244332790375,
0.14539967477321625,
0.2614879012107849,
0.4392368495464325,
0.04362184554338455,
0.01657566986978054,
0.01318233460187912,
0.3216632008552551,
0.03335984796285629,
0.0902012288570404,
0.03624085336923599,
-0.059344395995140076,
-0.42229002714157104,
0.2021976113319397,
-0.09309966117143631,
-0.04537072032690048,
0.0975537821650505,
0.18124035000801086,
-0.38971126079559326,
0.12302221357822418,
-0.32474493980407715,
-0.3197047710418701,
-0.09428909420967102,
0.08660347014665604,
-0.09641335159540176,
-0.08180812001228333,
-0.16979987919330597,
0.0806681364774704,
-0.0715484544634819,
0.11032068729400635,
-0.37545129656791687,
0.4191191792488098,
0.04957816004753113,
-0.064890056848526,
0.08072404563426971,
0.20629987120628357,
0.2299799919128418,
-0.12608002126216888,
-0.17538127303123474,
0.18774199485778809,
0.6032567024230957,
-0.1791830211877823,
0.1357361227273941,
-0.04410378634929657,
0.30425840616226196,
-0.3885692059993744,
0.19620287418365479,
-0.027381664142012596,
0.11872179806232452,
0.11306485533714294,
0.059830449521541595,
0.25418978929519653,
-0.03597453981637955,
0.18406400084495544,
-0.12819069623947144,
0.12247241288423538,
0.38742637634277344,
0.0022267624735832214,
0.06135950982570648,
-0.29249560832977295,
0.510249137878418,
0.32502949237823486,
0.31844162940979004,
0.05247936397790909,
-0.14598579704761505,
-0.22427238523960114,
-0.11093030869960785,
-0.15162977576255798,
0.0816713199019432,
0.1515699326992035,
-0.22369888424873352,
0.044475749135017395,
0.2037227898836136,
0.23733550310134888,
0.3294335603713989,
0.021467119455337524,
0.07584698498249054,
-0.0468035489320755,
0.023762617260217667,
0.07017737627029419,
-0.009797453880310059,
-0.0718170553445816,
-0.10157576203346252,
0.06444044411182404,
0.0008363313972949982,
-0.20575778186321259,
-0.22481156885623932,
0.07293953001499176,
0.23779723048210144,
0.42306914925575256,
-0.30031639337539673,
0.047322116792201996,
-0.42317870259284973,
-0.15952953696250916,
0.1389966905117035,
-0.08027952909469604,
-0.038730937987565994,
-0.14833718538284302,
-0.3189133405685425,
0.2778153419494629,
0.33826661109924316,
0.12882253527641296,
0.10790923237800598,
-0.2398625910282135,
-0.024733025580644608,
-0.20222748816013336,
0.16747812926769257,
-0.1916828602552414,
-0.1363239586353302,
-0.11427707970142365,
0.23435337841510773,
0.17310625314712524,
0.09741038829088211,
-0.3408338129520416,
-0.045413486659526825,
-0.23199714720249176,
-0.055594682693481445,
0.23203080892562866,
-0.0026653544045984745,
0.30958691239356995,
-0.07700024545192719,
0.14246340095996857,
-0.35867586731910706,
0.03647232800722122,
0.3661395013332367,
0.02121773362159729,
-0.1678796410560608,
0.2677276134490967,
-0.012351896613836288,
-0.12510524690151215,
0.023681797087192535,
-0.14731228351593018,
-0.2998107373714447,
-0.2093850076198578,
0.017121555283665657,
0.04826594889163971,
0.0239053163677454,
-0.04711540788412094,
0.039598505944013596,
0.038050033152103424,
0.17748814821243286,
-0.1749289631843567,
-0.340343713760376,
-0.431957870721817,
0.4691958725452423,
-0.27102506160736084,
-0.2475004494190216,
0.0816969946026802,
0.04735599458217621,
0.20141123235225677,
0.34188273549079895,
-0.4603404998779297,
-0.07378657162189484,
-0.11739259213209152,
0.16462576389312744,
0.0758611261844635,
0.1864938884973526,
0.046967193484306335,
-0.13114875555038452,
0.15852011740207672,
-0.07704100757837296,
-0.33956673741340637,
-0.10581066459417343,
0.24256329238414764,
0.2578388452529907,
-0.10521703958511353,
0.44835734367370605,
-0.25083833932876587,
0.2393936812877655,
-0.012945976108312607,
0.28911033272743225,
0.542639970779419,
-0.0893334150314331,
0.15291279554367065,
-0.3217941224575043,
-0.31435278058052063,
-0.09971138089895248,
-0.19487527012825012,
-0.1389903575181961,
0.048357151448726654,
0.026965532451868057,
-0.14914585649967194,
-0.27067479491233826,
-0.05290850251913071,
-0.08796127140522003,
-0.17469948530197144,
-0.05534311383962631,
-0.0693778246641159,
0.32938528060913086,
-0.05049324780702591,
0.2791499197483063,
0.013617180287837982,
-0.04041896387934685,
-0.15393969416618347,
0.2246425449848175,
0.12359997630119324,
0.2225518524646759,
-0.3244818449020386,
0.1071845069527626,
-0.2705764174461365,
0.35297128558158875,
-0.04078753665089607,
0.7153810262680054,
-0.14472675323486328,
0.3261328935623169,
0.11281692981719971,
0.03812683746218681,
0.10555662214756012,
-0.29159626364707947,
0.11078041791915894,
0.025910258293151855,
-0.43943849205970764,
-0.057181358337402344,
-0.03271925821900368,
-0.048792555928230286,
-0.0640701949596405,
-0.02919122576713562,
0.2615404427051544,
-0.2473839521408081,
-0.10460551083087921,
-0.021286627277731895,
0.30486738681793213,
-0.04211370646953583,
-0.2426178902387619,
-0.3949684500694275,
-0.5412188172340393,
-0.43925076723098755,
-0.1890489161014557,
0.1465299129486084,
0.15771286189556122,
-0.07987215369939804,
0.20453929901123047,
-0.1588289588689804,
0.1053301990032196,
0.22422920167446136,
0.08409195393323898,
0.2725592851638794,
-0.0330144464969635,
0.15348760783672333,
0.2682337164878845,
-0.1665603518486023,
0.7140194177627563,
0.7792879343032837,
-0.16547289490699768,
-0.35192248225212097,
0.2531232535839081,
-0.07656945288181305,
0.021768983453512192,
-0.05635540187358856,
-0.026279335841536522,
0.047359734773635864,
-0.1993347406387329,
-0.1701831817626953,
-0.04642153158783913,
0.19832183420658112,
0.19671911001205444,
0.15442383289337158,
-0.2928842008113861,
-0.7532663345336914,
0.5231230854988098,
0.07335090637207031,
0.11949151754379272,
0.29480433464050293,
-0.09946583956480026,
-0.18771103024482727,
0.26917749643325806,
0.10974028706550598,
0.7309183478355408,
-0.40244320034980774,
0.06639973819255829,
0.1255255937576294,
0.03905375301837921,
0.09694746136665344,
-0.03893982991576195,
-0.2549378275871277,
-0.1899639070034027,
-0.21341705322265625,
-0.14643675088882446,
-0.163065105676651,
0.2815149426460266,
0.15234141051769257,
-0.07434447854757309,
0.2819466292858124,
-0.17345008254051208,
-0.028556345030665398,
0.23774752020835876,
0.11795365065336227,
-0.0852733626961708,
-0.3346668481826782,
-0.570162832736969,
0.06952624768018723,
-0.17449229955673218,
0.2196645438671112,
-0.022928249090909958,
0.04462641105055809,
-0.07708930969238281,
-0.05582142621278763,
-0.3917292058467865,
0.36484071612358093,
-0.2748182415962219,
0.3384896516799927,
-0.13014847040176392,
-0.3494685888290405,
0.18923407793045044,
0.4507744312286377,
0.22845691442489624,
0.14010950922966003,
-0.1527663916349411,
0.07425934076309204,
0.26427048444747925,
-0.252383828163147,
-0.030452726408839226,
-0.10021735727787018,
-0.06935513764619827,
-0.02304314821958542,
-0.273199200630188,
0.1419648826122284,
-0.07024785876274109,
-0.22475403547286987,
-0.0742938369512558,
0.1391913890838623,
0.028742358088493347,
-0.09943090379238129,
-0.3413546085357666,
-0.07189055532217026,
0.03511859476566315,
-0.16433066129684448,
-0.006722382269799709,
0.20912575721740723,
-0.0939808338880539,
0.0110954400151968,
0.05714898928999901,
-0.3362407684326172,
0.020826319232583046,
0.45987018942832947,
-0.06713642925024033,
-0.1035424992442131,
0.5126204490661621,
0.2207634150981903,
-0.20533376932144165,
-0.129189133644104,
0.26687443256378174,
0.3432769179344177,
-0.2435237020254135,
0.02479397878050804,
-0.1015283539891243,
0.12263865768909454,
0.01696464791893959,
0.019084040075540543,
0.23217591643333435,
-0.35060930252075195,
0.3566075563430786,
-0.5912506580352783,
-0.37390583753585815,
0.19041544198989868,
-0.18425247073173523,
0.02091025933623314,
-0.023007668554782867,
0.011409446597099304,
-0.15387094020843506,
-0.08554059267044067,
-0.11315365135669708,
0.1104639321565628,
-0.35552939772605896,
0.053175680339336395,
0.23331154882907867,
-0.003837699070572853,
0.02661770209670067,
-0.17022119462490082,
0.008407454937696457,
0.1382465660572052,
0.03584539517760277,
-0.038531623780727386,
-0.18231579661369324,
0.21420982480049133,
0.12910154461860657,
-0.3466270864009857,
0.009542394429445267,
-0.21731561422348022,
-0.040677525103092194,
-0.1456345021724701,
0.17523406445980072,
0.46423113346099854,
-0.05088531970977783,
0.11629143357276917,
0.20204514265060425,
0.11926437169313431,
-0.3610047698020935,
0.3773377239704132,
-0.05974648520350456,
0.21924082934856415,
0.1052805706858635,
0.1996854692697525,
0.226188063621521,
0.12845377624034882,
-0.29863885045051575,
-0.09186068177223206,
0.2543620467185974,
-0.020749734714627266,
0.27848753333091736,
-0.4246547818183899,
0.3846978545188904,
0.09340228140354156,
0.13926923274993896,
0.4423636496067047,
-0.27087074518203735,
0.06683047860860825,
0.322624146938324,
0.0277718435972929,
-0.2396785467863083,
-0.10680259019136429,
0.1143147200345993,
0.056722491979599,
-0.13262499868869781,
0.3174368143081665,
0.39816349744796753,
0.06588354706764221,
-0.14058347046375275,
0.03662274777889252,
0.06292062997817993,
-0.1436379998922348,
0.051992833614349365,
0.6180887818336487,
0.01825803518295288,
0.2121533304452896,
0.06275149434804916,
0.22510579228401184,
-0.02615329995751381,
0.3331245481967926,
-0.15771755576133728,
0.44614285230636597,
0.21345651149749756,
0.19085931777954102,
-0.3277812600135803,
-0.5346598029136658,
-0.169968843460083,
0.3204801082611084,
0.09440180659294128,
-0.025712285190820694,
-0.2086394727230072,
0.24226464331150055,
-0.18227142095565796,
0.1587972640991211,
-0.06975597143173218,
0.13053753972053528,
-0.034036144614219666,
-0.18388527631759644,
-0.13292250037193298,
-0.1520824432373047,
-0.5502750873565674,
0.18709276616573334,
-0.24702075123786926,
-0.12653875350952148,
0.1939038634300232,
0.15689635276794434,
-0.13298049569129944,
-0.3558679521083832,
-0.050960928201675415,
0.3773247003555298,
-0.34378594160079956,
-0.3400723338127136,
0.3964485228061676,
0.017726849764585495,
0.017270086333155632,
0.2495320737361908,
0.13937978446483612,
0.33069828152656555,
0.42049986124038696,
-0.3608878552913666,
-0.1154855340719223,
0.061338797211647034,
0.07740135490894318,
0.07656547427177429,
0.1979314088821411,
0.019552165642380714,
0.20653824508190155,
0.3709862530231476,
-0.011409854516386986,
-0.01394064910709858,
-0.03165747597813606,
0.15727069973945618,
-0.229726642370224,
-0.08797706663608551,
0.2299748957157135,
-0.04816083610057831,
0.19987666606903076,
-0.11763804405927658,
0.02451002411544323,
-0.24237385392189026,
0.021785806864500046,
0.5751785635948181,
0.010339446365833282,
0.1068289577960968,
0.059291865676641464,
-0.052746109664440155,
-0.18448767066001892,
0.3957372307777405,
0.6384896039962769,
0.3486223816871643,
-0.40219563245773315,
-0.19086410105228424,
-0.7238462567329407,
0.059811245650053024,
-0.4783253073692322,
-0.2568795680999756,
0.5058496594429016,
-0.07415714859962463,
0.10183131694793701,
0.3912000358104706,
-0.09394098818302155,
0.2525463104248047,
0.18576456606388092,
0.2951028645038605,
-0.2620007395744324,
-0.25890880823135376,
0.4163455367088318,
0.2090039998292923,
-0.1786017119884491,
-0.4936586320400238,
-0.010533789172768593,
0.04262368008494377,
-0.09226173162460327,
-0.18249139189720154,
0.04175621271133423,
0.14125744998455048,
0.37909218668937683,
0.1933656632900238,
0.05841154605150223,
0.776093602180481,
-0.025724176317453384,
-0.0648016631603241,
-0.07898283004760742,
-0.6323980093002319,
-0.05423632636666298,
0.06052106246352196,
0.06495653837919235,
0.129619762301445,
-0.1022135466337204,
-0.11268527060747147,
-0.3824729025363922,
0.30614060163497925,
-0.12557566165924072,
-0.14835233986377716,
-0.23188340663909912,
-0.004364050924777985,
-0.05085069686174393,
-0.06284943222999573,
-0.028133228421211243,
0.06108877435326576,
0.12244810163974762,
0.35521775484085083,
-0.12596498429775238,
-0.22627872228622437,
0.3989254832267761,
-0.05346258357167244,
-0.4505839943885803,
0.0725824385881424,
-0.11923105269670486,
0.33506542444229126,
-0.2118576616048813,
-0.4614248275756836,
0.1921403557062149,
0.22828266024589539,
-0.14500652253627777,
-0.3645922541618347,
0.035404615104198456,
0.14406399428844452,
0.10550902783870697,
-0.11913539469242096,
0.60804682970047,
0.00681413896381855,
-0.1588616967201233,
0.10727111995220184,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2061 | @lhoestq Can you please label this issue with the "good first issue" label? I'm not sure I'll find time to fix this.
To resolve it, the user should:
1. add `"_"` to the list of labels
2. transform the udpos subset to the conll format (I think the preprocessing logic can be borrowed from [the original repo](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204))
3. update the dummy data
4. update the dataset info
5. [optional] add info about the data fields structure of the udpos subset to the dataset readme | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 84 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
@lhoestq Can you please label this issue with the "good first issue" label? I'm not sure I'll find time to fix this.
To resolve it, the user should:
1. add `"_"` to the list of labels
2. transform the udpos subset to the conll format (I think the preprocessing logic can be borrowed from [the original repo](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204))
3. update the dummy data
4. update the dataset info
5. [optional] add info about the data fields structure of the udpos subset to the dataset readme | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.0808662474155426,
0.11441240459680557,
-0.315104603767395,
-0.060249119997024536,
0.017356030642986298,
-0.2503678798675537,
-0.06550414860248566,
-0.41051703691482544,
-0.06232643872499466,
-0.3046579957008362,
0.10954286903142929,
-0.17110341787338257,
0.20645759999752045,
0.014145128428936005,
0.1647336483001709,
-0.3150222897529602,
-0.4950225353240967,
0.5633597373962402,
0.018032971769571304,
0.5800750255584717,
0.22132180631160736,
-0.0001253432419616729,
0.10603885352611542,
0.4861794412136078,
-0.06130571663379669,
-0.3452346622943878,
-0.40495800971984863,
-0.4189884066581726,
-0.13159742951393127,
-0.06906121224164963,
-0.0964653268456459,
0.1045275330543518,
-0.004398871213197708,
-0.08233431726694107,
-0.2585623860359192,
0.33210331201553345,
0.3678755462169647,
0.0941704511642456,
0.37202873826026917,
0.061858177185058594,
-0.22116543352603912,
0.475719690322876,
-0.04227086156606674,
-0.14890770614147186,
0.1563739776611328,
0.4271000623703003,
-0.32468125224113464,
0.1801445037126541,
0.1246253252029419,
-0.20913952589035034,
0.2249169945716858,
-0.16371780633926392,
0.05600580945611,
0.18213516473770142,
-0.25835102796554565,
0.23912444710731506,
0.13496512174606323,
0.8412336707115173,
-0.15123891830444336,
-0.41478148102760315,
0.018239103257656097,
-0.10140638053417206,
-0.35548245906829834,
0.1830141842365265,
0.0008574724197387695,
-0.05788693204522133,
0.07884173095226288,
-0.07680001854896545,
-0.0602417066693306,
0.05037584900856018,
0.2890724837779999,
-0.14345775544643402,
0.2910361886024475,
0.05412069335579872,
0.1338609904050827,
0.3239518702030182,
-0.10892048478126526,
0.4901399612426758,
0.09794209897518158,
-0.07307165116071701,
0.24106058478355408,
-0.3231167793273926,
0.2865314483642578,
-0.0756046399474144,
-0.3037874698638916,
0.23896415531635284,
-0.10459788888692856,
-0.10120704770088196,
0.003955548629164696,
-0.14436495304107666,
0.3295549154281616,
0.446702241897583,
0.25859272480010986,
0.3614312410354614,
0.2899976372718811,
0.10725375264883041,
0.15876880288124084,
-0.05657358467578888,
-0.0633866935968399,
-0.44746118783950806,
-0.21606257557868958,
0.08579227328300476,
-0.02712954767048359,
0.15717057883739471,
-0.45061877369880676,
-0.5827981233596802,
0.04483441263437271,
-0.16290155053138733,
-0.21788381040096283,
0.05834994465112686,
0.2688896358013153,
0.1545640230178833,
0.4297795593738556,
0.045862264931201935,
0.4458410143852234,
-0.49627935886383057,
-0.26598045229911804,
-0.05442378669977188,
0.16876265406608582,
-0.41896378993988037,
0.05851304531097412,
0.14394289255142212,
0.0052871257066726685,
0.2148580253124237,
0.016775526106357574,
0.26567429304122925,
-0.24525362253189087,
0.12882927060127258,
-0.23588603734970093,
-0.2444215565919876,
0.35405150055885315,
0.3105241656303406,
0.12189764529466629,
0.27113062143325806,
-0.3746762275695801,
-0.0785989984869957,
0.28915607929229736,
-0.22251109778881073,
-0.2350117415189743,
0.09094425290822983,
0.03285485506057739,
-0.1796908974647522,
0.05502047389745712,
-1.0357829332351685,
-0.07645796984434128,
0.08510298281908035,
0.1069331243634224,
-0.015508778393268585,
-0.27552929520606995,
-0.1712113618850708,
0.0025954470038414,
0.2848057448863983,
0.5355800986289978,
-0.28687143325805664,
-0.04640643298625946,
-0.14084014296531677,
-0.040089547634124756,
0.33559322357177734,
0.3613087832927704,
-0.3357943892478943,
0.07375460118055344,
-0.12798498570919037,
0.10571111738681793,
0.19821414351463318,
-0.5150756239891052,
-0.4803658425807953,
0.16409742832183838,
0.05092807114124298,
-0.016187570989131927,
-0.08576054126024246,
-0.3274519443511963,
0.23931807279586792,
0.03572038933634758,
0.1953129768371582,
0.25892430543899536,
0.05809725821018219,
-0.09088750928640366,
-0.1751013845205307,
-0.0985950455069542,
0.13611355423927307,
0.4271915555000305,
0.2911244332790375,
0.14539967477321625,
0.2614879012107849,
0.4392368495464325,
0.04362184554338455,
0.01657566986978054,
0.01318233460187912,
0.3216632008552551,
0.03335984796285629,
0.0902012288570404,
0.03624085336923599,
-0.059344395995140076,
-0.42229002714157104,
0.2021976113319397,
-0.09309966117143631,
-0.04537072032690048,
0.0975537821650505,
0.18124035000801086,
-0.38971126079559326,
0.12302221357822418,
-0.32474493980407715,
-0.3197047710418701,
-0.09428909420967102,
0.08660347014665604,
-0.09641335159540176,
-0.08180812001228333,
-0.16979987919330597,
0.0806681364774704,
-0.0715484544634819,
0.11032068729400635,
-0.37545129656791687,
0.4191191792488098,
0.04957816004753113,
-0.064890056848526,
0.08072404563426971,
0.20629987120628357,
0.2299799919128418,
-0.12608002126216888,
-0.17538127303123474,
0.18774199485778809,
0.6032567024230957,
-0.1791830211877823,
0.1357361227273941,
-0.04410378634929657,
0.30425840616226196,
-0.3885692059993744,
0.19620287418365479,
-0.027381664142012596,
0.11872179806232452,
0.11306485533714294,
0.059830449521541595,
0.25418978929519653,
-0.03597453981637955,
0.18406400084495544,
-0.12819069623947144,
0.12247241288423538,
0.38742637634277344,
0.0022267624735832214,
0.06135950982570648,
-0.29249560832977295,
0.510249137878418,
0.32502949237823486,
0.31844162940979004,
0.05247936397790909,
-0.14598579704761505,
-0.22427238523960114,
-0.11093030869960785,
-0.15162977576255798,
0.0816713199019432,
0.1515699326992035,
-0.22369888424873352,
0.044475749135017395,
0.2037227898836136,
0.23733550310134888,
0.3294335603713989,
0.021467119455337524,
0.07584698498249054,
-0.0468035489320755,
0.023762617260217667,
0.07017737627029419,
-0.009797453880310059,
-0.0718170553445816,
-0.10157576203346252,
0.06444044411182404,
0.0008363313972949982,
-0.20575778186321259,
-0.22481156885623932,
0.07293953001499176,
0.23779723048210144,
0.42306914925575256,
-0.30031639337539673,
0.047322116792201996,
-0.42317870259284973,
-0.15952953696250916,
0.1389966905117035,
-0.08027952909469604,
-0.038730937987565994,
-0.14833718538284302,
-0.3189133405685425,
0.2778153419494629,
0.33826661109924316,
0.12882253527641296,
0.10790923237800598,
-0.2398625910282135,
-0.024733025580644608,
-0.20222748816013336,
0.16747812926769257,
-0.1916828602552414,
-0.1363239586353302,
-0.11427707970142365,
0.23435337841510773,
0.17310625314712524,
0.09741038829088211,
-0.3408338129520416,
-0.045413486659526825,
-0.23199714720249176,
-0.055594682693481445,
0.23203080892562866,
-0.0026653544045984745,
0.30958691239356995,
-0.07700024545192719,
0.14246340095996857,
-0.35867586731910706,
0.03647232800722122,
0.3661395013332367,
0.02121773362159729,
-0.1678796410560608,
0.2677276134490967,
-0.012351896613836288,
-0.12510524690151215,
0.023681797087192535,
-0.14731228351593018,
-0.2998107373714447,
-0.2093850076198578,
0.017121555283665657,
0.04826594889163971,
0.0239053163677454,
-0.04711540788412094,
0.039598505944013596,
0.038050033152103424,
0.17748814821243286,
-0.1749289631843567,
-0.340343713760376,
-0.431957870721817,
0.4691958725452423,
-0.27102506160736084,
-0.2475004494190216,
0.0816969946026802,
0.04735599458217621,
0.20141123235225677,
0.34188273549079895,
-0.4603404998779297,
-0.07378657162189484,
-0.11739259213209152,
0.16462576389312744,
0.0758611261844635,
0.1864938884973526,
0.046967193484306335,
-0.13114875555038452,
0.15852011740207672,
-0.07704100757837296,
-0.33956673741340637,
-0.10581066459417343,
0.24256329238414764,
0.2578388452529907,
-0.10521703958511353,
0.44835734367370605,
-0.25083833932876587,
0.2393936812877655,
-0.012945976108312607,
0.28911033272743225,
0.542639970779419,
-0.0893334150314331,
0.15291279554367065,
-0.3217941224575043,
-0.31435278058052063,
-0.09971138089895248,
-0.19487527012825012,
-0.1389903575181961,
0.048357151448726654,
0.026965532451868057,
-0.14914585649967194,
-0.27067479491233826,
-0.05290850251913071,
-0.08796127140522003,
-0.17469948530197144,
-0.05534311383962631,
-0.0693778246641159,
0.32938528060913086,
-0.05049324780702591,
0.2791499197483063,
0.013617180287837982,
-0.04041896387934685,
-0.15393969416618347,
0.2246425449848175,
0.12359997630119324,
0.2225518524646759,
-0.3244818449020386,
0.1071845069527626,
-0.2705764174461365,
0.35297128558158875,
-0.04078753665089607,
0.7153810262680054,
-0.14472675323486328,
0.3261328935623169,
0.11281692981719971,
0.03812683746218681,
0.10555662214756012,
-0.29159626364707947,
0.11078041791915894,
0.025910258293151855,
-0.43943849205970764,
-0.057181358337402344,
-0.03271925821900368,
-0.048792555928230286,
-0.0640701949596405,
-0.02919122576713562,
0.2615404427051544,
-0.2473839521408081,
-0.10460551083087921,
-0.021286627277731895,
0.30486738681793213,
-0.04211370646953583,
-0.2426178902387619,
-0.3949684500694275,
-0.5412188172340393,
-0.43925076723098755,
-0.1890489161014557,
0.1465299129486084,
0.15771286189556122,
-0.07987215369939804,
0.20453929901123047,
-0.1588289588689804,
0.1053301990032196,
0.22422920167446136,
0.08409195393323898,
0.2725592851638794,
-0.0330144464969635,
0.15348760783672333,
0.2682337164878845,
-0.1665603518486023,
0.7140194177627563,
0.7792879343032837,
-0.16547289490699768,
-0.35192248225212097,
0.2531232535839081,
-0.07656945288181305,
0.021768983453512192,
-0.05635540187358856,
-0.026279335841536522,
0.047359734773635864,
-0.1993347406387329,
-0.1701831817626953,
-0.04642153158783913,
0.19832183420658112,
0.19671911001205444,
0.15442383289337158,
-0.2928842008113861,
-0.7532663345336914,
0.5231230854988098,
0.07335090637207031,
0.11949151754379272,
0.29480433464050293,
-0.09946583956480026,
-0.18771103024482727,
0.26917749643325806,
0.10974028706550598,
0.7309183478355408,
-0.40244320034980774,
0.06639973819255829,
0.1255255937576294,
0.03905375301837921,
0.09694746136665344,
-0.03893982991576195,
-0.2549378275871277,
-0.1899639070034027,
-0.21341705322265625,
-0.14643675088882446,
-0.163065105676651,
0.2815149426460266,
0.15234141051769257,
-0.07434447854757309,
0.2819466292858124,
-0.17345008254051208,
-0.028556345030665398,
0.23774752020835876,
0.11795365065336227,
-0.0852733626961708,
-0.3346668481826782,
-0.570162832736969,
0.06952624768018723,
-0.17449229955673218,
0.2196645438671112,
-0.022928249090909958,
0.04462641105055809,
-0.07708930969238281,
-0.05582142621278763,
-0.3917292058467865,
0.36484071612358093,
-0.2748182415962219,
0.3384896516799927,
-0.13014847040176392,
-0.3494685888290405,
0.18923407793045044,
0.4507744312286377,
0.22845691442489624,
0.14010950922966003,
-0.1527663916349411,
0.07425934076309204,
0.26427048444747925,
-0.252383828163147,
-0.030452726408839226,
-0.10021735727787018,
-0.06935513764619827,
-0.02304314821958542,
-0.273199200630188,
0.1419648826122284,
-0.07024785876274109,
-0.22475403547286987,
-0.0742938369512558,
0.1391913890838623,
0.028742358088493347,
-0.09943090379238129,
-0.3413546085357666,
-0.07189055532217026,
0.03511859476566315,
-0.16433066129684448,
-0.006722382269799709,
0.20912575721740723,
-0.0939808338880539,
0.0110954400151968,
0.05714898928999901,
-0.3362407684326172,
0.020826319232583046,
0.45987018942832947,
-0.06713642925024033,
-0.1035424992442131,
0.5126204490661621,
0.2207634150981903,
-0.20533376932144165,
-0.129189133644104,
0.26687443256378174,
0.3432769179344177,
-0.2435237020254135,
0.02479397878050804,
-0.1015283539891243,
0.12263865768909454,
0.01696464791893959,
0.019084040075540543,
0.23217591643333435,
-0.35060930252075195,
0.3566075563430786,
-0.5912506580352783,
-0.37390583753585815,
0.19041544198989868,
-0.18425247073173523,
0.02091025933623314,
-0.023007668554782867,
0.011409446597099304,
-0.15387094020843506,
-0.08554059267044067,
-0.11315365135669708,
0.1104639321565628,
-0.35552939772605896,
0.053175680339336395,
0.23331154882907867,
-0.003837699070572853,
0.02661770209670067,
-0.17022119462490082,
0.008407454937696457,
0.1382465660572052,
0.03584539517760277,
-0.038531623780727386,
-0.18231579661369324,
0.21420982480049133,
0.12910154461860657,
-0.3466270864009857,
0.009542394429445267,
-0.21731561422348022,
-0.040677525103092194,
-0.1456345021724701,
0.17523406445980072,
0.46423113346099854,
-0.05088531970977783,
0.11629143357276917,
0.20204514265060425,
0.11926437169313431,
-0.3610047698020935,
0.3773377239704132,
-0.05974648520350456,
0.21924082934856415,
0.1052805706858635,
0.1996854692697525,
0.226188063621521,
0.12845377624034882,
-0.29863885045051575,
-0.09186068177223206,
0.2543620467185974,
-0.020749734714627266,
0.27848753333091736,
-0.4246547818183899,
0.3846978545188904,
0.09340228140354156,
0.13926923274993896,
0.4423636496067047,
-0.27087074518203735,
0.06683047860860825,
0.322624146938324,
0.0277718435972929,
-0.2396785467863083,
-0.10680259019136429,
0.1143147200345993,
0.056722491979599,
-0.13262499868869781,
0.3174368143081665,
0.39816349744796753,
0.06588354706764221,
-0.14058347046375275,
0.03662274777889252,
0.06292062997817993,
-0.1436379998922348,
0.051992833614349365,
0.6180887818336487,
0.01825803518295288,
0.2121533304452896,
0.06275149434804916,
0.22510579228401184,
-0.02615329995751381,
0.3331245481967926,
-0.15771755576133728,
0.44614285230636597,
0.21345651149749756,
0.19085931777954102,
-0.3277812600135803,
-0.5346598029136658,
-0.169968843460083,
0.3204801082611084,
0.09440180659294128,
-0.025712285190820694,
-0.2086394727230072,
0.24226464331150055,
-0.18227142095565796,
0.1587972640991211,
-0.06975597143173218,
0.13053753972053528,
-0.034036144614219666,
-0.18388527631759644,
-0.13292250037193298,
-0.1520824432373047,
-0.5502750873565674,
0.18709276616573334,
-0.24702075123786926,
-0.12653875350952148,
0.1939038634300232,
0.15689635276794434,
-0.13298049569129944,
-0.3558679521083832,
-0.050960928201675415,
0.3773247003555298,
-0.34378594160079956,
-0.3400723338127136,
0.3964485228061676,
0.017726849764585495,
0.017270086333155632,
0.2495320737361908,
0.13937978446483612,
0.33069828152656555,
0.42049986124038696,
-0.3608878552913666,
-0.1154855340719223,
0.061338797211647034,
0.07740135490894318,
0.07656547427177429,
0.1979314088821411,
0.019552165642380714,
0.20653824508190155,
0.3709862530231476,
-0.011409854516386986,
-0.01394064910709858,
-0.03165747597813606,
0.15727069973945618,
-0.229726642370224,
-0.08797706663608551,
0.2299748957157135,
-0.04816083610057831,
0.19987666606903076,
-0.11763804405927658,
0.02451002411544323,
-0.24237385392189026,
0.021785806864500046,
0.5751785635948181,
0.010339446365833282,
0.1068289577960968,
0.059291865676641464,
-0.052746109664440155,
-0.18448767066001892,
0.3957372307777405,
0.6384896039962769,
0.3486223816871643,
-0.40219563245773315,
-0.19086410105228424,
-0.7238462567329407,
0.059811245650053024,
-0.4783253073692322,
-0.2568795680999756,
0.5058496594429016,
-0.07415714859962463,
0.10183131694793701,
0.3912000358104706,
-0.09394098818302155,
0.2525463104248047,
0.18576456606388092,
0.2951028645038605,
-0.2620007395744324,
-0.25890880823135376,
0.4163455367088318,
0.2090039998292923,
-0.1786017119884491,
-0.4936586320400238,
-0.010533789172768593,
0.04262368008494377,
-0.09226173162460327,
-0.18249139189720154,
0.04175621271133423,
0.14125744998455048,
0.37909218668937683,
0.1933656632900238,
0.05841154605150223,
0.776093602180481,
-0.025724176317453384,
-0.0648016631603241,
-0.07898283004760742,
-0.6323980093002319,
-0.05423632636666298,
0.06052106246352196,
0.06495653837919235,
0.129619762301445,
-0.1022135466337204,
-0.11268527060747147,
-0.3824729025363922,
0.30614060163497925,
-0.12557566165924072,
-0.14835233986377716,
-0.23188340663909912,
-0.004364050924777985,
-0.05085069686174393,
-0.06284943222999573,
-0.028133228421211243,
0.06108877435326576,
0.12244810163974762,
0.35521775484085083,
-0.12596498429775238,
-0.22627872228622437,
0.3989254832267761,
-0.05346258357167244,
-0.4505839943885803,
0.0725824385881424,
-0.11923105269670486,
0.33506542444229126,
-0.2118576616048813,
-0.4614248275756836,
0.1921403557062149,
0.22828266024589539,
-0.14500652253627777,
-0.3645922541618347,
0.035404615104198456,
0.14406399428844452,
0.10550902783870697,
-0.11913539469242096,
0.60804682970047,
0.00681413896381855,
-0.1588616967201233,
0.10727111995220184,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2061 | I tried fixing this issue, but its working fine in the dev version : "1.6.2.dev0"
I think somebody already fixed it. | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 21 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
I tried fixing this issue, but its working fine in the dev version : "1.6.2.dev0"
I think somebody already fixed it. | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.0808662474155426,
0.11441240459680557,
-0.315104603767395,
-0.060249119997024536,
0.017356030642986298,
-0.2503678798675537,
-0.06550414860248566,
-0.41051703691482544,
-0.06232643872499466,
-0.3046579957008362,
0.10954286903142929,
-0.17110341787338257,
0.20645759999752045,
0.014145128428936005,
0.1647336483001709,
-0.3150222897529602,
-0.4950225353240967,
0.5633597373962402,
0.018032971769571304,
0.5800750255584717,
0.22132180631160736,
-0.0001253432419616729,
0.10603885352611542,
0.4861794412136078,
-0.06130571663379669,
-0.3452346622943878,
-0.40495800971984863,
-0.4189884066581726,
-0.13159742951393127,
-0.06906121224164963,
-0.0964653268456459,
0.1045275330543518,
-0.004398871213197708,
-0.08233431726694107,
-0.2585623860359192,
0.33210331201553345,
0.3678755462169647,
0.0941704511642456,
0.37202873826026917,
0.061858177185058594,
-0.22116543352603912,
0.475719690322876,
-0.04227086156606674,
-0.14890770614147186,
0.1563739776611328,
0.4271000623703003,
-0.32468125224113464,
0.1801445037126541,
0.1246253252029419,
-0.20913952589035034,
0.2249169945716858,
-0.16371780633926392,
0.05600580945611,
0.18213516473770142,
-0.25835102796554565,
0.23912444710731506,
0.13496512174606323,
0.8412336707115173,
-0.15123891830444336,
-0.41478148102760315,
0.018239103257656097,
-0.10140638053417206,
-0.35548245906829834,
0.1830141842365265,
0.0008574724197387695,
-0.05788693204522133,
0.07884173095226288,
-0.07680001854896545,
-0.0602417066693306,
0.05037584900856018,
0.2890724837779999,
-0.14345775544643402,
0.2910361886024475,
0.05412069335579872,
0.1338609904050827,
0.3239518702030182,
-0.10892048478126526,
0.4901399612426758,
0.09794209897518158,
-0.07307165116071701,
0.24106058478355408,
-0.3231167793273926,
0.2865314483642578,
-0.0756046399474144,
-0.3037874698638916,
0.23896415531635284,
-0.10459788888692856,
-0.10120704770088196,
0.003955548629164696,
-0.14436495304107666,
0.3295549154281616,
0.446702241897583,
0.25859272480010986,
0.3614312410354614,
0.2899976372718811,
0.10725375264883041,
0.15876880288124084,
-0.05657358467578888,
-0.0633866935968399,
-0.44746118783950806,
-0.21606257557868958,
0.08579227328300476,
-0.02712954767048359,
0.15717057883739471,
-0.45061877369880676,
-0.5827981233596802,
0.04483441263437271,
-0.16290155053138733,
-0.21788381040096283,
0.05834994465112686,
0.2688896358013153,
0.1545640230178833,
0.4297795593738556,
0.045862264931201935,
0.4458410143852234,
-0.49627935886383057,
-0.26598045229911804,
-0.05442378669977188,
0.16876265406608582,
-0.41896378993988037,
0.05851304531097412,
0.14394289255142212,
0.0052871257066726685,
0.2148580253124237,
0.016775526106357574,
0.26567429304122925,
-0.24525362253189087,
0.12882927060127258,
-0.23588603734970093,
-0.2444215565919876,
0.35405150055885315,
0.3105241656303406,
0.12189764529466629,
0.27113062143325806,
-0.3746762275695801,
-0.0785989984869957,
0.28915607929229736,
-0.22251109778881073,
-0.2350117415189743,
0.09094425290822983,
0.03285485506057739,
-0.1796908974647522,
0.05502047389745712,
-1.0357829332351685,
-0.07645796984434128,
0.08510298281908035,
0.1069331243634224,
-0.015508778393268585,
-0.27552929520606995,
-0.1712113618850708,
0.0025954470038414,
0.2848057448863983,
0.5355800986289978,
-0.28687143325805664,
-0.04640643298625946,
-0.14084014296531677,
-0.040089547634124756,
0.33559322357177734,
0.3613087832927704,
-0.3357943892478943,
0.07375460118055344,
-0.12798498570919037,
0.10571111738681793,
0.19821414351463318,
-0.5150756239891052,
-0.4803658425807953,
0.16409742832183838,
0.05092807114124298,
-0.016187570989131927,
-0.08576054126024246,
-0.3274519443511963,
0.23931807279586792,
0.03572038933634758,
0.1953129768371582,
0.25892430543899536,
0.05809725821018219,
-0.09088750928640366,
-0.1751013845205307,
-0.0985950455069542,
0.13611355423927307,
0.4271915555000305,
0.2911244332790375,
0.14539967477321625,
0.2614879012107849,
0.4392368495464325,
0.04362184554338455,
0.01657566986978054,
0.01318233460187912,
0.3216632008552551,
0.03335984796285629,
0.0902012288570404,
0.03624085336923599,
-0.059344395995140076,
-0.42229002714157104,
0.2021976113319397,
-0.09309966117143631,
-0.04537072032690048,
0.0975537821650505,
0.18124035000801086,
-0.38971126079559326,
0.12302221357822418,
-0.32474493980407715,
-0.3197047710418701,
-0.09428909420967102,
0.08660347014665604,
-0.09641335159540176,
-0.08180812001228333,
-0.16979987919330597,
0.0806681364774704,
-0.0715484544634819,
0.11032068729400635,
-0.37545129656791687,
0.4191191792488098,
0.04957816004753113,
-0.064890056848526,
0.08072404563426971,
0.20629987120628357,
0.2299799919128418,
-0.12608002126216888,
-0.17538127303123474,
0.18774199485778809,
0.6032567024230957,
-0.1791830211877823,
0.1357361227273941,
-0.04410378634929657,
0.30425840616226196,
-0.3885692059993744,
0.19620287418365479,
-0.027381664142012596,
0.11872179806232452,
0.11306485533714294,
0.059830449521541595,
0.25418978929519653,
-0.03597453981637955,
0.18406400084495544,
-0.12819069623947144,
0.12247241288423538,
0.38742637634277344,
0.0022267624735832214,
0.06135950982570648,
-0.29249560832977295,
0.510249137878418,
0.32502949237823486,
0.31844162940979004,
0.05247936397790909,
-0.14598579704761505,
-0.22427238523960114,
-0.11093030869960785,
-0.15162977576255798,
0.0816713199019432,
0.1515699326992035,
-0.22369888424873352,
0.044475749135017395,
0.2037227898836136,
0.23733550310134888,
0.3294335603713989,
0.021467119455337524,
0.07584698498249054,
-0.0468035489320755,
0.023762617260217667,
0.07017737627029419,
-0.009797453880310059,
-0.0718170553445816,
-0.10157576203346252,
0.06444044411182404,
0.0008363313972949982,
-0.20575778186321259,
-0.22481156885623932,
0.07293953001499176,
0.23779723048210144,
0.42306914925575256,
-0.30031639337539673,
0.047322116792201996,
-0.42317870259284973,
-0.15952953696250916,
0.1389966905117035,
-0.08027952909469604,
-0.038730937987565994,
-0.14833718538284302,
-0.3189133405685425,
0.2778153419494629,
0.33826661109924316,
0.12882253527641296,
0.10790923237800598,
-0.2398625910282135,
-0.024733025580644608,
-0.20222748816013336,
0.16747812926769257,
-0.1916828602552414,
-0.1363239586353302,
-0.11427707970142365,
0.23435337841510773,
0.17310625314712524,
0.09741038829088211,
-0.3408338129520416,
-0.045413486659526825,
-0.23199714720249176,
-0.055594682693481445,
0.23203080892562866,
-0.0026653544045984745,
0.30958691239356995,
-0.07700024545192719,
0.14246340095996857,
-0.35867586731910706,
0.03647232800722122,
0.3661395013332367,
0.02121773362159729,
-0.1678796410560608,
0.2677276134490967,
-0.012351896613836288,
-0.12510524690151215,
0.023681797087192535,
-0.14731228351593018,
-0.2998107373714447,
-0.2093850076198578,
0.017121555283665657,
0.04826594889163971,
0.0239053163677454,
-0.04711540788412094,
0.039598505944013596,
0.038050033152103424,
0.17748814821243286,
-0.1749289631843567,
-0.340343713760376,
-0.431957870721817,
0.4691958725452423,
-0.27102506160736084,
-0.2475004494190216,
0.0816969946026802,
0.04735599458217621,
0.20141123235225677,
0.34188273549079895,
-0.4603404998779297,
-0.07378657162189484,
-0.11739259213209152,
0.16462576389312744,
0.0758611261844635,
0.1864938884973526,
0.046967193484306335,
-0.13114875555038452,
0.15852011740207672,
-0.07704100757837296,
-0.33956673741340637,
-0.10581066459417343,
0.24256329238414764,
0.2578388452529907,
-0.10521703958511353,
0.44835734367370605,
-0.25083833932876587,
0.2393936812877655,
-0.012945976108312607,
0.28911033272743225,
0.542639970779419,
-0.0893334150314331,
0.15291279554367065,
-0.3217941224575043,
-0.31435278058052063,
-0.09971138089895248,
-0.19487527012825012,
-0.1389903575181961,
0.048357151448726654,
0.026965532451868057,
-0.14914585649967194,
-0.27067479491233826,
-0.05290850251913071,
-0.08796127140522003,
-0.17469948530197144,
-0.05534311383962631,
-0.0693778246641159,
0.32938528060913086,
-0.05049324780702591,
0.2791499197483063,
0.013617180287837982,
-0.04041896387934685,
-0.15393969416618347,
0.2246425449848175,
0.12359997630119324,
0.2225518524646759,
-0.3244818449020386,
0.1071845069527626,
-0.2705764174461365,
0.35297128558158875,
-0.04078753665089607,
0.7153810262680054,
-0.14472675323486328,
0.3261328935623169,
0.11281692981719971,
0.03812683746218681,
0.10555662214756012,
-0.29159626364707947,
0.11078041791915894,
0.025910258293151855,
-0.43943849205970764,
-0.057181358337402344,
-0.03271925821900368,
-0.048792555928230286,
-0.0640701949596405,
-0.02919122576713562,
0.2615404427051544,
-0.2473839521408081,
-0.10460551083087921,
-0.021286627277731895,
0.30486738681793213,
-0.04211370646953583,
-0.2426178902387619,
-0.3949684500694275,
-0.5412188172340393,
-0.43925076723098755,
-0.1890489161014557,
0.1465299129486084,
0.15771286189556122,
-0.07987215369939804,
0.20453929901123047,
-0.1588289588689804,
0.1053301990032196,
0.22422920167446136,
0.08409195393323898,
0.2725592851638794,
-0.0330144464969635,
0.15348760783672333,
0.2682337164878845,
-0.1665603518486023,
0.7140194177627563,
0.7792879343032837,
-0.16547289490699768,
-0.35192248225212097,
0.2531232535839081,
-0.07656945288181305,
0.021768983453512192,
-0.05635540187358856,
-0.026279335841536522,
0.047359734773635864,
-0.1993347406387329,
-0.1701831817626953,
-0.04642153158783913,
0.19832183420658112,
0.19671911001205444,
0.15442383289337158,
-0.2928842008113861,
-0.7532663345336914,
0.5231230854988098,
0.07335090637207031,
0.11949151754379272,
0.29480433464050293,
-0.09946583956480026,
-0.18771103024482727,
0.26917749643325806,
0.10974028706550598,
0.7309183478355408,
-0.40244320034980774,
0.06639973819255829,
0.1255255937576294,
0.03905375301837921,
0.09694746136665344,
-0.03893982991576195,
-0.2549378275871277,
-0.1899639070034027,
-0.21341705322265625,
-0.14643675088882446,
-0.163065105676651,
0.2815149426460266,
0.15234141051769257,
-0.07434447854757309,
0.2819466292858124,
-0.17345008254051208,
-0.028556345030665398,
0.23774752020835876,
0.11795365065336227,
-0.0852733626961708,
-0.3346668481826782,
-0.570162832736969,
0.06952624768018723,
-0.17449229955673218,
0.2196645438671112,
-0.022928249090909958,
0.04462641105055809,
-0.07708930969238281,
-0.05582142621278763,
-0.3917292058467865,
0.36484071612358093,
-0.2748182415962219,
0.3384896516799927,
-0.13014847040176392,
-0.3494685888290405,
0.18923407793045044,
0.4507744312286377,
0.22845691442489624,
0.14010950922966003,
-0.1527663916349411,
0.07425934076309204,
0.26427048444747925,
-0.252383828163147,
-0.030452726408839226,
-0.10021735727787018,
-0.06935513764619827,
-0.02304314821958542,
-0.273199200630188,
0.1419648826122284,
-0.07024785876274109,
-0.22475403547286987,
-0.0742938369512558,
0.1391913890838623,
0.028742358088493347,
-0.09943090379238129,
-0.3413546085357666,
-0.07189055532217026,
0.03511859476566315,
-0.16433066129684448,
-0.006722382269799709,
0.20912575721740723,
-0.0939808338880539,
0.0110954400151968,
0.05714898928999901,
-0.3362407684326172,
0.020826319232583046,
0.45987018942832947,
-0.06713642925024033,
-0.1035424992442131,
0.5126204490661621,
0.2207634150981903,
-0.20533376932144165,
-0.129189133644104,
0.26687443256378174,
0.3432769179344177,
-0.2435237020254135,
0.02479397878050804,
-0.1015283539891243,
0.12263865768909454,
0.01696464791893959,
0.019084040075540543,
0.23217591643333435,
-0.35060930252075195,
0.3566075563430786,
-0.5912506580352783,
-0.37390583753585815,
0.19041544198989868,
-0.18425247073173523,
0.02091025933623314,
-0.023007668554782867,
0.011409446597099304,
-0.15387094020843506,
-0.08554059267044067,
-0.11315365135669708,
0.1104639321565628,
-0.35552939772605896,
0.053175680339336395,
0.23331154882907867,
-0.003837699070572853,
0.02661770209670067,
-0.17022119462490082,
0.008407454937696457,
0.1382465660572052,
0.03584539517760277,
-0.038531623780727386,
-0.18231579661369324,
0.21420982480049133,
0.12910154461860657,
-0.3466270864009857,
0.009542394429445267,
-0.21731561422348022,
-0.040677525103092194,
-0.1456345021724701,
0.17523406445980072,
0.46423113346099854,
-0.05088531970977783,
0.11629143357276917,
0.20204514265060425,
0.11926437169313431,
-0.3610047698020935,
0.3773377239704132,
-0.05974648520350456,
0.21924082934856415,
0.1052805706858635,
0.1996854692697525,
0.226188063621521,
0.12845377624034882,
-0.29863885045051575,
-0.09186068177223206,
0.2543620467185974,
-0.020749734714627266,
0.27848753333091736,
-0.4246547818183899,
0.3846978545188904,
0.09340228140354156,
0.13926923274993896,
0.4423636496067047,
-0.27087074518203735,
0.06683047860860825,
0.322624146938324,
0.0277718435972929,
-0.2396785467863083,
-0.10680259019136429,
0.1143147200345993,
0.056722491979599,
-0.13262499868869781,
0.3174368143081665,
0.39816349744796753,
0.06588354706764221,
-0.14058347046375275,
0.03662274777889252,
0.06292062997817993,
-0.1436379998922348,
0.051992833614349365,
0.6180887818336487,
0.01825803518295288,
0.2121533304452896,
0.06275149434804916,
0.22510579228401184,
-0.02615329995751381,
0.3331245481967926,
-0.15771755576133728,
0.44614285230636597,
0.21345651149749756,
0.19085931777954102,
-0.3277812600135803,
-0.5346598029136658,
-0.169968843460083,
0.3204801082611084,
0.09440180659294128,
-0.025712285190820694,
-0.2086394727230072,
0.24226464331150055,
-0.18227142095565796,
0.1587972640991211,
-0.06975597143173218,
0.13053753972053528,
-0.034036144614219666,
-0.18388527631759644,
-0.13292250037193298,
-0.1520824432373047,
-0.5502750873565674,
0.18709276616573334,
-0.24702075123786926,
-0.12653875350952148,
0.1939038634300232,
0.15689635276794434,
-0.13298049569129944,
-0.3558679521083832,
-0.050960928201675415,
0.3773247003555298,
-0.34378594160079956,
-0.3400723338127136,
0.3964485228061676,
0.017726849764585495,
0.017270086333155632,
0.2495320737361908,
0.13937978446483612,
0.33069828152656555,
0.42049986124038696,
-0.3608878552913666,
-0.1154855340719223,
0.061338797211647034,
0.07740135490894318,
0.07656547427177429,
0.1979314088821411,
0.019552165642380714,
0.20653824508190155,
0.3709862530231476,
-0.011409854516386986,
-0.01394064910709858,
-0.03165747597813606,
0.15727069973945618,
-0.229726642370224,
-0.08797706663608551,
0.2299748957157135,
-0.04816083610057831,
0.19987666606903076,
-0.11763804405927658,
0.02451002411544323,
-0.24237385392189026,
0.021785806864500046,
0.5751785635948181,
0.010339446365833282,
0.1068289577960968,
0.059291865676641464,
-0.052746109664440155,
-0.18448767066001892,
0.3957372307777405,
0.6384896039962769,
0.3486223816871643,
-0.40219563245773315,
-0.19086410105228424,
-0.7238462567329407,
0.059811245650053024,
-0.4783253073692322,
-0.2568795680999756,
0.5058496594429016,
-0.07415714859962463,
0.10183131694793701,
0.3912000358104706,
-0.09394098818302155,
0.2525463104248047,
0.18576456606388092,
0.2951028645038605,
-0.2620007395744324,
-0.25890880823135376,
0.4163455367088318,
0.2090039998292923,
-0.1786017119884491,
-0.4936586320400238,
-0.010533789172768593,
0.04262368008494377,
-0.09226173162460327,
-0.18249139189720154,
0.04175621271133423,
0.14125744998455048,
0.37909218668937683,
0.1933656632900238,
0.05841154605150223,
0.776093602180481,
-0.025724176317453384,
-0.0648016631603241,
-0.07898283004760742,
-0.6323980093002319,
-0.05423632636666298,
0.06052106246352196,
0.06495653837919235,
0.129619762301445,
-0.1022135466337204,
-0.11268527060747147,
-0.3824729025363922,
0.30614060163497925,
-0.12557566165924072,
-0.14835233986377716,
-0.23188340663909912,
-0.004364050924777985,
-0.05085069686174393,
-0.06284943222999573,
-0.028133228421211243,
0.06108877435326576,
0.12244810163974762,
0.35521775484085083,
-0.12596498429775238,
-0.22627872228622437,
0.3989254832267761,
-0.05346258357167244,
-0.4505839943885803,
0.0725824385881424,
-0.11923105269670486,
0.33506542444229126,
-0.2118576616048813,
-0.4614248275756836,
0.1921403557062149,
0.22828266024589539,
-0.14500652253627777,
-0.3645922541618347,
0.035404615104198456,
0.14406399428844452,
0.10550902783870697,
-0.11913539469242096,
0.60804682970047,
0.00681413896381855,
-0.1588616967201233,
0.10727111995220184,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2061 | Hi,
after #2326, the lines with pos tags equal to `"_"` are filtered out when generating the dataset, so this fixes the KeyError described above. However, the udpos subset should be in the conll format i.e. it should yield sequences of tokens and not single tokens, so it would be great to see this fixed (feel free to borrow the logic from [here](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204) if you decide to work on this). | Cannot load udpos subsets from xtreme dataset using load_dataset() | Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
| 70 | Cannot load udpos subsets from xtreme dataset using load_dataset()
Hello,
I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error.
Reprex is:
`from datasets import load_dataset `
`dataset = load_dataset('xtreme', 'udpos.English')`
The error is:
`KeyError: '_'`
The full traceback is:
KeyError Traceback (most recent call last)
<ipython-input-5-7181359ea09d> in <module>
1 from datasets import load_dataset
----> 2 dataset = load_dataset('xtreme', 'udpos.English')
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
738
739 # Download and prepare data
--> 740 builder_instance.download_and_prepare(
741 download_config=download_config,
742 download_mode=download_mode,
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
576 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
577 if not downloaded_from_gcs:
--> 578 self._download_and_prepare(
579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
580 )
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
654 try:
655 # Prepare split will record examples associated to the split
--> 656 self._prepare_split(split_generator, **prepare_split_kwargs)
657 except OSError as e:
658 raise OSError(
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator)
977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
978 ):
--> 979 example = self.info.features.encode_example(record)
980 writer.write(example)
981 finally:
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example)
946 def encode_example(self, example):
947 example = cast_to_python_objects(example)
--> 948 return encode_nested_example(self, example)
949
950 def encode_batch(self, batch):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
840 # Nested structures: we allow dict, list/tuples, sequences
841 if isinstance(schema, dict):
--> 842 return {
843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0)
841 if isinstance(schema, dict):
842 return {
--> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
844 }
845 elif isinstance(schema, (list, tuple)):
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj)
868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks
869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)):
--> 870 return schema.encode_example(obj)
871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation)
872 return obj
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data)
647 # If a string is given, convert to associated integer
648 if isinstance(example_data, str):
--> 649 example_data = self.str2int(example_data)
650
651 # Allowing -1 to mean no label.
~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values)
605 if value not in self._str2int:
606 value = value.strip()
--> 607 output.append(self._str2int[str(value)])
608 else:
609 # No names provided, try to integerize
KeyError: '_'
Hi,
after #2326, the lines with pos tags equal to `"_"` are filtered out when generating the dataset, so this fixes the KeyError described above. However, the udpos subset should be in the conll format i.e. it should yield sequences of tokens and not single tokens, so it would be great to see this fixed (feel free to borrow the logic from [here](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204) if you decide to work on this). | [
-0.34640297293663025,
-0.07528622448444366,
0.0026139765977859497,
0.4443908631801605,
0.3713299632072449,
0.06911919265985489,
0.24056874215602875,
0.039475541561841965,
0.5101774334907532,
0.2061247080564499,
-0.3589058816432953,
0.05270513519644737,
0.08609636127948761,
0.0808662474155426,
0.11441240459680557,
-0.315104603767395,
-0.060249119997024536,
0.017356030642986298,
-0.2503678798675537,
-0.06550414860248566,
-0.41051703691482544,
-0.06232643872499466,
-0.3046579957008362,
0.10954286903142929,
-0.17110341787338257,
0.20645759999752045,
0.014145128428936005,
0.1647336483001709,
-0.3150222897529602,
-0.4950225353240967,
0.5633597373962402,
0.018032971769571304,
0.5800750255584717,
0.22132180631160736,
-0.0001253432419616729,
0.10603885352611542,
0.4861794412136078,
-0.06130571663379669,
-0.3452346622943878,
-0.40495800971984863,
-0.4189884066581726,
-0.13159742951393127,
-0.06906121224164963,
-0.0964653268456459,
0.1045275330543518,
-0.004398871213197708,
-0.08233431726694107,
-0.2585623860359192,
0.33210331201553345,
0.3678755462169647,
0.0941704511642456,
0.37202873826026917,
0.061858177185058594,
-0.22116543352603912,
0.475719690322876,
-0.04227086156606674,
-0.14890770614147186,
0.1563739776611328,
0.4271000623703003,
-0.32468125224113464,
0.1801445037126541,
0.1246253252029419,
-0.20913952589035034,
0.2249169945716858,
-0.16371780633926392,
0.05600580945611,
0.18213516473770142,
-0.25835102796554565,
0.23912444710731506,
0.13496512174606323,
0.8412336707115173,
-0.15123891830444336,
-0.41478148102760315,
0.018239103257656097,
-0.10140638053417206,
-0.35548245906829834,
0.1830141842365265,
0.0008574724197387695,
-0.05788693204522133,
0.07884173095226288,
-0.07680001854896545,
-0.0602417066693306,
0.05037584900856018,
0.2890724837779999,
-0.14345775544643402,
0.2910361886024475,
0.05412069335579872,
0.1338609904050827,
0.3239518702030182,
-0.10892048478126526,
0.4901399612426758,
0.09794209897518158,
-0.07307165116071701,
0.24106058478355408,
-0.3231167793273926,
0.2865314483642578,
-0.0756046399474144,
-0.3037874698638916,
0.23896415531635284,
-0.10459788888692856,
-0.10120704770088196,
0.003955548629164696,
-0.14436495304107666,
0.3295549154281616,
0.446702241897583,
0.25859272480010986,
0.3614312410354614,
0.2899976372718811,
0.10725375264883041,
0.15876880288124084,
-0.05657358467578888,
-0.0633866935968399,
-0.44746118783950806,
-0.21606257557868958,
0.08579227328300476,
-0.02712954767048359,
0.15717057883739471,
-0.45061877369880676,
-0.5827981233596802,
0.04483441263437271,
-0.16290155053138733,
-0.21788381040096283,
0.05834994465112686,
0.2688896358013153,
0.1545640230178833,
0.4297795593738556,
0.045862264931201935,
0.4458410143852234,
-0.49627935886383057,
-0.26598045229911804,
-0.05442378669977188,
0.16876265406608582,
-0.41896378993988037,
0.05851304531097412,
0.14394289255142212,
0.0052871257066726685,
0.2148580253124237,
0.016775526106357574,
0.26567429304122925,
-0.24525362253189087,
0.12882927060127258,
-0.23588603734970093,
-0.2444215565919876,
0.35405150055885315,
0.3105241656303406,
0.12189764529466629,
0.27113062143325806,
-0.3746762275695801,
-0.0785989984869957,
0.28915607929229736,
-0.22251109778881073,
-0.2350117415189743,
0.09094425290822983,
0.03285485506057739,
-0.1796908974647522,
0.05502047389745712,
-1.0357829332351685,
-0.07645796984434128,
0.08510298281908035,
0.1069331243634224,
-0.015508778393268585,
-0.27552929520606995,
-0.1712113618850708,
0.0025954470038414,
0.2848057448863983,
0.5355800986289978,
-0.28687143325805664,
-0.04640643298625946,
-0.14084014296531677,
-0.040089547634124756,
0.33559322357177734,
0.3613087832927704,
-0.3357943892478943,
0.07375460118055344,
-0.12798498570919037,
0.10571111738681793,
0.19821414351463318,
-0.5150756239891052,
-0.4803658425807953,
0.16409742832183838,
0.05092807114124298,
-0.016187570989131927,
-0.08576054126024246,
-0.3274519443511963,
0.23931807279586792,
0.03572038933634758,
0.1953129768371582,
0.25892430543899536,
0.05809725821018219,
-0.09088750928640366,
-0.1751013845205307,
-0.0985950455069542,
0.13611355423927307,
0.4271915555000305,
0.2911244332790375,
0.14539967477321625,
0.2614879012107849,
0.4392368495464325,
0.04362184554338455,
0.01657566986978054,
0.01318233460187912,
0.3216632008552551,
0.03335984796285629,
0.0902012288570404,
0.03624085336923599,
-0.059344395995140076,
-0.42229002714157104,
0.2021976113319397,
-0.09309966117143631,
-0.04537072032690048,
0.0975537821650505,
0.18124035000801086,
-0.38971126079559326,
0.12302221357822418,
-0.32474493980407715,
-0.3197047710418701,
-0.09428909420967102,
0.08660347014665604,
-0.09641335159540176,
-0.08180812001228333,
-0.16979987919330597,
0.0806681364774704,
-0.0715484544634819,
0.11032068729400635,
-0.37545129656791687,
0.4191191792488098,
0.04957816004753113,
-0.064890056848526,
0.08072404563426971,
0.20629987120628357,
0.2299799919128418,
-0.12608002126216888,
-0.17538127303123474,
0.18774199485778809,
0.6032567024230957,
-0.1791830211877823,
0.1357361227273941,
-0.04410378634929657,
0.30425840616226196,
-0.3885692059993744,
0.19620287418365479,
-0.027381664142012596,
0.11872179806232452,
0.11306485533714294,
0.059830449521541595,
0.25418978929519653,
-0.03597453981637955,
0.18406400084495544,
-0.12819069623947144,
0.12247241288423538,
0.38742637634277344,
0.0022267624735832214,
0.06135950982570648,
-0.29249560832977295,
0.510249137878418,
0.32502949237823486,
0.31844162940979004,
0.05247936397790909,
-0.14598579704761505,
-0.22427238523960114,
-0.11093030869960785,
-0.15162977576255798,
0.0816713199019432,
0.1515699326992035,
-0.22369888424873352,
0.044475749135017395,
0.2037227898836136,
0.23733550310134888,
0.3294335603713989,
0.021467119455337524,
0.07584698498249054,
-0.0468035489320755,
0.023762617260217667,
0.07017737627029419,
-0.009797453880310059,
-0.0718170553445816,
-0.10157576203346252,
0.06444044411182404,
0.0008363313972949982,
-0.20575778186321259,
-0.22481156885623932,
0.07293953001499176,
0.23779723048210144,
0.42306914925575256,
-0.30031639337539673,
0.047322116792201996,
-0.42317870259284973,
-0.15952953696250916,
0.1389966905117035,
-0.08027952909469604,
-0.038730937987565994,
-0.14833718538284302,
-0.3189133405685425,
0.2778153419494629,
0.33826661109924316,
0.12882253527641296,
0.10790923237800598,
-0.2398625910282135,
-0.024733025580644608,
-0.20222748816013336,
0.16747812926769257,
-0.1916828602552414,
-0.1363239586353302,
-0.11427707970142365,
0.23435337841510773,
0.17310625314712524,
0.09741038829088211,
-0.3408338129520416,
-0.045413486659526825,
-0.23199714720249176,
-0.055594682693481445,
0.23203080892562866,
-0.0026653544045984745,
0.30958691239356995,
-0.07700024545192719,
0.14246340095996857,
-0.35867586731910706,
0.03647232800722122,
0.3661395013332367,
0.02121773362159729,
-0.1678796410560608,
0.2677276134490967,
-0.012351896613836288,
-0.12510524690151215,
0.023681797087192535,
-0.14731228351593018,
-0.2998107373714447,
-0.2093850076198578,
0.017121555283665657,
0.04826594889163971,
0.0239053163677454,
-0.04711540788412094,
0.039598505944013596,
0.038050033152103424,
0.17748814821243286,
-0.1749289631843567,
-0.340343713760376,
-0.431957870721817,
0.4691958725452423,
-0.27102506160736084,
-0.2475004494190216,
0.0816969946026802,
0.04735599458217621,
0.20141123235225677,
0.34188273549079895,
-0.4603404998779297,
-0.07378657162189484,
-0.11739259213209152,
0.16462576389312744,
0.0758611261844635,
0.1864938884973526,
0.046967193484306335,
-0.13114875555038452,
0.15852011740207672,
-0.07704100757837296,
-0.33956673741340637,
-0.10581066459417343,
0.24256329238414764,
0.2578388452529907,
-0.10521703958511353,
0.44835734367370605,
-0.25083833932876587,
0.2393936812877655,
-0.012945976108312607,
0.28911033272743225,
0.542639970779419,
-0.0893334150314331,
0.15291279554367065,
-0.3217941224575043,
-0.31435278058052063,
-0.09971138089895248,
-0.19487527012825012,
-0.1389903575181961,
0.048357151448726654,
0.026965532451868057,
-0.14914585649967194,
-0.27067479491233826,
-0.05290850251913071,
-0.08796127140522003,
-0.17469948530197144,
-0.05534311383962631,
-0.0693778246641159,
0.32938528060913086,
-0.05049324780702591,
0.2791499197483063,
0.013617180287837982,
-0.04041896387934685,
-0.15393969416618347,
0.2246425449848175,
0.12359997630119324,
0.2225518524646759,
-0.3244818449020386,
0.1071845069527626,
-0.2705764174461365,
0.35297128558158875,
-0.04078753665089607,
0.7153810262680054,
-0.14472675323486328,
0.3261328935623169,
0.11281692981719971,
0.03812683746218681,
0.10555662214756012,
-0.29159626364707947,
0.11078041791915894,
0.025910258293151855,
-0.43943849205970764,
-0.057181358337402344,
-0.03271925821900368,
-0.048792555928230286,
-0.0640701949596405,
-0.02919122576713562,
0.2615404427051544,
-0.2473839521408081,
-0.10460551083087921,
-0.021286627277731895,
0.30486738681793213,
-0.04211370646953583,
-0.2426178902387619,
-0.3949684500694275,
-0.5412188172340393,
-0.43925076723098755,
-0.1890489161014557,
0.1465299129486084,
0.15771286189556122,
-0.07987215369939804,
0.20453929901123047,
-0.1588289588689804,
0.1053301990032196,
0.22422920167446136,
0.08409195393323898,
0.2725592851638794,
-0.0330144464969635,
0.15348760783672333,
0.2682337164878845,
-0.1665603518486023,
0.7140194177627563,
0.7792879343032837,
-0.16547289490699768,
-0.35192248225212097,
0.2531232535839081,
-0.07656945288181305,
0.021768983453512192,
-0.05635540187358856,
-0.026279335841536522,
0.047359734773635864,
-0.1993347406387329,
-0.1701831817626953,
-0.04642153158783913,
0.19832183420658112,
0.19671911001205444,
0.15442383289337158,
-0.2928842008113861,
-0.7532663345336914,
0.5231230854988098,
0.07335090637207031,
0.11949151754379272,
0.29480433464050293,
-0.09946583956480026,
-0.18771103024482727,
0.26917749643325806,
0.10974028706550598,
0.7309183478355408,
-0.40244320034980774,
0.06639973819255829,
0.1255255937576294,
0.03905375301837921,
0.09694746136665344,
-0.03893982991576195,
-0.2549378275871277,
-0.1899639070034027,
-0.21341705322265625,
-0.14643675088882446,
-0.163065105676651,
0.2815149426460266,
0.15234141051769257,
-0.07434447854757309,
0.2819466292858124,
-0.17345008254051208,
-0.028556345030665398,
0.23774752020835876,
0.11795365065336227,
-0.0852733626961708,
-0.3346668481826782,
-0.570162832736969,
0.06952624768018723,
-0.17449229955673218,
0.2196645438671112,
-0.022928249090909958,
0.04462641105055809,
-0.07708930969238281,
-0.05582142621278763,
-0.3917292058467865,
0.36484071612358093,
-0.2748182415962219,
0.3384896516799927,
-0.13014847040176392,
-0.3494685888290405,
0.18923407793045044,
0.4507744312286377,
0.22845691442489624,
0.14010950922966003,
-0.1527663916349411,
0.07425934076309204,
0.26427048444747925,
-0.252383828163147,
-0.030452726408839226,
-0.10021735727787018,
-0.06935513764619827,
-0.02304314821958542,
-0.273199200630188,
0.1419648826122284,
-0.07024785876274109,
-0.22475403547286987,
-0.0742938369512558,
0.1391913890838623,
0.028742358088493347,
-0.09943090379238129,
-0.3413546085357666,
-0.07189055532217026,
0.03511859476566315,
-0.16433066129684448,
-0.006722382269799709,
0.20912575721740723,
-0.0939808338880539,
0.0110954400151968,
0.05714898928999901,
-0.3362407684326172,
0.020826319232583046,
0.45987018942832947,
-0.06713642925024033,
-0.1035424992442131,
0.5126204490661621,
0.2207634150981903,
-0.20533376932144165,
-0.129189133644104,
0.26687443256378174,
0.3432769179344177,
-0.2435237020254135,
0.02479397878050804,
-0.1015283539891243,
0.12263865768909454,
0.01696464791893959,
0.019084040075540543,
0.23217591643333435,
-0.35060930252075195,
0.3566075563430786,
-0.5912506580352783,
-0.37390583753585815,
0.19041544198989868,
-0.18425247073173523,
0.02091025933623314,
-0.023007668554782867,
0.011409446597099304,
-0.15387094020843506,
-0.08554059267044067,
-0.11315365135669708,
0.1104639321565628,
-0.35552939772605896,
0.053175680339336395,
0.23331154882907867,
-0.003837699070572853,
0.02661770209670067,
-0.17022119462490082,
0.008407454937696457,
0.1382465660572052,
0.03584539517760277,
-0.038531623780727386,
-0.18231579661369324,
0.21420982480049133,
0.12910154461860657,
-0.3466270864009857,
0.009542394429445267,
-0.21731561422348022,
-0.040677525103092194,
-0.1456345021724701,
0.17523406445980072,
0.46423113346099854,
-0.05088531970977783,
0.11629143357276917,
0.20204514265060425,
0.11926437169313431,
-0.3610047698020935,
0.3773377239704132,
-0.05974648520350456,
0.21924082934856415,
0.1052805706858635,
0.1996854692697525,
0.226188063621521,
0.12845377624034882,
-0.29863885045051575,
-0.09186068177223206,
0.2543620467185974,
-0.020749734714627266,
0.27848753333091736,
-0.4246547818183899,
0.3846978545188904,
0.09340228140354156,
0.13926923274993896,
0.4423636496067047,
-0.27087074518203735,
0.06683047860860825,
0.322624146938324,
0.0277718435972929,
-0.2396785467863083,
-0.10680259019136429,
0.1143147200345993,
0.056722491979599,
-0.13262499868869781,
0.3174368143081665,
0.39816349744796753,
0.06588354706764221,
-0.14058347046375275,
0.03662274777889252,
0.06292062997817993,
-0.1436379998922348,
0.051992833614349365,
0.6180887818336487,
0.01825803518295288,
0.2121533304452896,
0.06275149434804916,
0.22510579228401184,
-0.02615329995751381,
0.3331245481967926,
-0.15771755576133728,
0.44614285230636597,
0.21345651149749756,
0.19085931777954102,
-0.3277812600135803,
-0.5346598029136658,
-0.169968843460083,
0.3204801082611084,
0.09440180659294128,
-0.025712285190820694,
-0.2086394727230072,
0.24226464331150055,
-0.18227142095565796,
0.1587972640991211,
-0.06975597143173218,
0.13053753972053528,
-0.034036144614219666,
-0.18388527631759644,
-0.13292250037193298,
-0.1520824432373047,
-0.5502750873565674,
0.18709276616573334,
-0.24702075123786926,
-0.12653875350952148,
0.1939038634300232,
0.15689635276794434,
-0.13298049569129944,
-0.3558679521083832,
-0.050960928201675415,
0.3773247003555298,
-0.34378594160079956,
-0.3400723338127136,
0.3964485228061676,
0.017726849764585495,
0.017270086333155632,
0.2495320737361908,
0.13937978446483612,
0.33069828152656555,
0.42049986124038696,
-0.3608878552913666,
-0.1154855340719223,
0.061338797211647034,
0.07740135490894318,
0.07656547427177429,
0.1979314088821411,
0.019552165642380714,
0.20653824508190155,
0.3709862530231476,
-0.011409854516386986,
-0.01394064910709858,
-0.03165747597813606,
0.15727069973945618,
-0.229726642370224,
-0.08797706663608551,
0.2299748957157135,
-0.04816083610057831,
0.19987666606903076,
-0.11763804405927658,
0.02451002411544323,
-0.24237385392189026,
0.021785806864500046,
0.5751785635948181,
0.010339446365833282,
0.1068289577960968,
0.059291865676641464,
-0.052746109664440155,
-0.18448767066001892,
0.3957372307777405,
0.6384896039962769,
0.3486223816871643,
-0.40219563245773315,
-0.19086410105228424,
-0.7238462567329407,
0.059811245650053024,
-0.4783253073692322,
-0.2568795680999756,
0.5058496594429016,
-0.07415714859962463,
0.10183131694793701,
0.3912000358104706,
-0.09394098818302155,
0.2525463104248047,
0.18576456606388092,
0.2951028645038605,
-0.2620007395744324,
-0.25890880823135376,
0.4163455367088318,
0.2090039998292923,
-0.1786017119884491,
-0.4936586320400238,
-0.010533789172768593,
0.04262368008494377,
-0.09226173162460327,
-0.18249139189720154,
0.04175621271133423,
0.14125744998455048,
0.37909218668937683,
0.1933656632900238,
0.05841154605150223,
0.776093602180481,
-0.025724176317453384,
-0.0648016631603241,
-0.07898283004760742,
-0.6323980093002319,
-0.05423632636666298,
0.06052106246352196,
0.06495653837919235,
0.129619762301445,
-0.1022135466337204,
-0.11268527060747147,
-0.3824729025363922,
0.30614060163497925,
-0.12557566165924072,
-0.14835233986377716,
-0.23188340663909912,
-0.004364050924777985,
-0.05085069686174393,
-0.06284943222999573,
-0.028133228421211243,
0.06108877435326576,
0.12244810163974762,
0.35521775484085083,
-0.12596498429775238,
-0.22627872228622437,
0.3989254832267761,
-0.05346258357167244,
-0.4505839943885803,
0.0725824385881424,
-0.11923105269670486,
0.33506542444229126,
-0.2118576616048813,
-0.4614248275756836,
0.1921403557062149,
0.22828266024589539,
-0.14500652253627777,
-0.3645922541618347,
0.035404615104198456,
0.14406399428844452,
0.10550902783870697,
-0.11913539469242096,
0.60804682970047,
0.00681413896381855,
-0.1588616967201233,
0.10727111995220184,
-0.17213541269302368
] |
https://github.com/huggingface/datasets/issues/2059 | This has been fixed in #2064 by @mariosasko (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | Error while following docs to load the `ted_talks_iwslt` dataset | I am currently trying to load the `ted_talks_iwslt` dataset into google colab.
The [docs](https://huggingface.co/datasets/ted_talks_iwslt) mention the following way of doing so.
```python
dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
```
Executing it results in the error attached below.
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-7dcc67154ef9> in <module>()
----> 1 dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
4 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
730 hash=hash,
731 features=features,
--> 732 **config_kwargs,
733 )
734
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, writer_batch_size, *args, **kwargs)
927
928 def __init__(self, *args, writer_batch_size=None, **kwargs):
--> 929 super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
930 # Batch size used by the ArrowWriter
931 # It defines the number of samples that are kept in memory before writing them
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, cache_dir, name, hash, features, **config_kwargs)
241 name,
242 custom_features=features,
--> 243 **config_kwargs,
244 )
245
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs)
337 if "version" not in config_kwargs and hasattr(self, "VERSION") and self.VERSION:
338 config_kwargs["version"] = self.VERSION
--> 339 builder_config = self.BUILDER_CONFIG_CLASS(**config_kwargs)
340
341 # otherwise use the config_kwargs to overwrite the attributes
/root/.cache/huggingface/modules/datasets_modules/datasets/ted_talks_iwslt/024d06b1376b361e59245c5878ab8acf9a7576d765f2d0077f61751158e60914/ted_talks_iwslt.py in __init__(self, language_pair, year, **kwargs)
219 description=description,
220 version=datasets.Version("1.1.0", ""),
--> 221 **kwargs,
222 )
223
TypeError: __init__() got multiple values for keyword argument 'version'
```
How to resolve this?
PS: Thanks a lot @huggingface team for creating this great library! | 28 | Error while following docs to load the `ted_talks_iwslt` dataset
I am currently trying to load the `ted_talks_iwslt` dataset into google colab.
The [docs](https://huggingface.co/datasets/ted_talks_iwslt) mention the following way of doing so.
```python
dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
```
Executing it results in the error attached below.
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-7dcc67154ef9> in <module>()
----> 1 dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")
4 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, **config_kwargs)
730 hash=hash,
731 features=features,
--> 732 **config_kwargs,
733 )
734
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, writer_batch_size, *args, **kwargs)
927
928 def __init__(self, *args, writer_batch_size=None, **kwargs):
--> 929 super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
930 # Batch size used by the ArrowWriter
931 # It defines the number of samples that are kept in memory before writing them
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, cache_dir, name, hash, features, **config_kwargs)
241 name,
242 custom_features=features,
--> 243 **config_kwargs,
244 )
245
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs)
337 if "version" not in config_kwargs and hasattr(self, "VERSION") and self.VERSION:
338 config_kwargs["version"] = self.VERSION
--> 339 builder_config = self.BUILDER_CONFIG_CLASS(**config_kwargs)
340
341 # otherwise use the config_kwargs to overwrite the attributes
/root/.cache/huggingface/modules/datasets_modules/datasets/ted_talks_iwslt/024d06b1376b361e59245c5878ab8acf9a7576d765f2d0077f61751158e60914/ted_talks_iwslt.py in __init__(self, language_pair, year, **kwargs)
219 description=description,
220 version=datasets.Version("1.1.0", ""),
--> 221 **kwargs,
222 )
223
TypeError: __init__() got multiple values for keyword argument 'version'
```
How to resolve this?
PS: Thanks a lot @huggingface team for creating this great library!
This has been fixed in #2064 by @mariosasko (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | [
-0.21400973200798035,
0.12844395637512207,
0.048511605709791183,
0.20013149082660675,
0.03129120171070099,
0.0933723971247673,
0.671215832233429,
0.19440868496894836,
0.12410249561071396,
-0.06191830337047577,
-0.0495758093893528,
0.3381049633026123,
-0.2910546660423279,
0.4190410375595093,
0.07738864421844482,
-0.28908771276474,
0.09974681586027145,
0.07318218052387238,
-0.05595805123448372,
0.20605014264583588,
-0.3254210352897644,
0.2124047577381134,
-0.4152064919471741,
0.012750104069709778,
-0.2546614110469818,
-0.20342059433460236,
0.046814076602458954,
0.2763833701610565,
-0.26611658930778503,
-0.3130563795566559,
0.3886879086494446,
-0.019434070214629173,
0.4227880835533142,
0.46559110283851624,
-0.00011431108578108251,
0.10717153549194336,
0.5188993215560913,
-0.1366393119096756,
-0.5111315250396729,
-0.3482475280761719,
-0.42827749252319336,
0.056436099112033844,
0.19204671680927277,
-0.14138494431972504,
0.04061117768287659,
0.19225868582725525,
0.1550242006778717,
0.07070495933294296,
0.24104523658752441,
0.4013662338256836,
0.1814022660255432,
0.38041257858276367,
0.23138068616390228,
-0.23516780138015747,
0.15459512174129486,
0.02484997734427452,
-0.0978885293006897,
0.564763605594635,
-0.04707547649741173,
-0.11410251259803772,
0.12869638204574585,
0.34895017743110657,
-0.1531595140695572,
0.14830107986927032,
0.22718209028244019,
0.03715341538190842,
-0.20694604516029358,
-0.25338777899742126,
0.16995391249656677,
0.14380083978176117,
0.6555978059768677,
-0.2468864917755127,
-0.25748008489608765,
-0.03358994424343109,
0.009955570101737976,
-0.2570735216140747,
0.2009018510580063,
0.1602669358253479,
-0.0814761072397232,
0.044007401913404465,
-0.0826554074883461,
-0.020636366680264473,
-0.23171472549438477,
0.24862897396087646,
-0.11926939338445663,
0.37885913252830505,
-0.12965072691440582,
0.22923389077186584,
0.19096431136131287,
-0.1613062024116516,
0.4198673963546753,
0.06734609603881836,
-0.00037443998735398054,
0.12366491556167603,
-0.1720060408115387,
0.09205864369869232,
0.07430645078420639,
0.267972469329834,
0.005041748285293579,
-0.18031170964241028,
-0.04619145020842552,
-0.1731354296207428,
0.07009503245353699,
0.3650495707988739,
0.41405922174453735,
0.17184200882911682,
0.036454640328884125,
0.2923619747161865,
0.24135993421077728,
0.3500972092151642,
-0.018687516450881958,
0.005767269060015678,
-0.26726657152175903,
-0.16435737907886505,
0.13001126050949097,
0.004981162026524544,
0.4590967297554016,
-0.042384564876556396,
-0.4038478434085846,
-0.00037724897265434265,
-0.301018089056015,
0.08247193694114685,
0.08906292915344238,
0.37044623494148254,
0.027856208384037018,
-0.00011188257485628128,
0.20959487557411194,
0.1817009598016739,
-0.12938299775123596,
-0.04316680133342743,
-0.14256715774536133,
0.4191194772720337,
-0.13191497325897217,
0.14973747730255127,
0.21870416402816772,
0.07675975561141968,
0.14100807905197144,
-0.13793939352035522,
0.22206979990005493,
0.044645488262176514,
-0.02682635188102722,
-0.10824385285377502,
-0.17722710967063904,
0.28559815883636475,
0.1986786276102066,
0.11575744301080704,
0.2717035114765167,
-0.4462214410305023,
-0.20216837525367737,
0.19388103485107422,
-0.3336772620677948,
-0.4380977153778076,
-0.24774785339832306,
0.13999105989933014,
-0.14223545789718628,
-0.08078218996524811,
-0.6888024806976318,
0.0970539003610611,
0.32038071751594543,
-0.2366490513086319,
-0.11768244206905365,
-0.34629786014556885,
-0.4640255272388458,
-0.17704254388809204,
0.10388923436403275,
0.610526442527771,
-0.402802973985672,
-0.1032448261976242,
-0.21073201298713684,
0.13067521154880524,
0.17037980258464813,
0.2542805075645447,
-0.3040800094604492,
0.43800440430641174,
-0.12646210193634033,
0.16866779327392578,
0.02721261978149414,
-0.21677550673484802,
-0.2442438006401062,
0.06886788457632065,
0.14411363005638123,
0.13906651735305786,
-0.10066315531730652,
-0.11116170883178711,
0.19637709856033325,
-0.11561739444732666,
0.48708420991897583,
0.2835543751716614,
-0.15320517122745514,
0.04930385947227478,
-0.17282311618328094,
-0.1591176688671112,
0.2652181088924408,
0.2218356430530548,
0.16024520993232727,
0.10630335658788681,
0.020407984033226967,
0.16329823434352875,
-0.07608696818351746,
-0.1615736186504364,
-0.10272041708230972,
0.10231487452983856,
0.33723166584968567,
0.045719780027866364,
-0.05767560005187988,
0.07024283707141876,
-0.6290016174316406,
0.11771468818187714,
-0.08998627960681915,
0.4876350164413452,
-0.2378154844045639,
-0.0781502053141594,
-0.3759539723396301,
0.2315169721841812,
-0.25866222381591797,
0.02119683474302292,
0.10279250144958496,
0.13754573464393616,
-0.34059324860572815,
0.10958594083786011,
0.002486221492290497,
0.39377322793006897,
-0.18009769916534424,
-0.05020638927817345,
-0.5546483993530273,
0.3506631553173065,
-0.24768586456775665,
-0.26094579696655273,
0.23602013289928436,
0.012841776944696903,
0.15122723579406738,
-0.08523708581924438,
-0.10424280166625977,
0.22084268927574158,
0.0838627815246582,
0.17825451493263245,
-0.041542984545230865,
0.049828752875328064,
0.08662273734807968,
-0.24700286984443665,
-0.0502537339925766,
0.2800144553184509,
0.3062436580657959,
-0.022260010242462158,
0.007283060345798731,
0.33882349729537964,
0.21452879905700684,
0.061796147376298904,
-0.10642872005701065,
0.08690674602985382,
0.15293076634407043,
-0.03219469636678696,
-0.015445835888385773,
-0.10980155318975449,
0.09408164024353027,
0.3077627122402191,
-0.21735084056854248,
-0.006536994129419327,
-0.36730703711509705,
0.10656937956809998,
0.3472859263420105,
-0.040675971657037735,
0.10630729794502258,
0.200485959649086,
-0.04580733925104141,
-0.2589947581291199,
0.15289455652236938,
-0.09880869090557098,
0.3416541814804077,
-0.06521530449390411,
-0.19084495306015015,
-0.020092124119400978,
0.09835436195135117,
0.00004174932837486267,
0.11114482581615448,
0.1305607706308365,
0.2045360803604126,
-0.021802715957164764,
0.1338375210762024,
0.04691071808338165,
-0.1636054515838623,
-0.172635018825531,
0.000748559832572937,
0.48915210366249084,
-0.45903483033180237,
0.3445877432823181,
-0.08381418138742447,
-0.3980567455291748,
-0.11777887493371964,
-0.021256305277347565,
-0.09371030330657959,
-0.37588608264923096,
-0.14979873597621918,
0.4769553244113922,
-0.016330257058143616,
0.06470512598752975,
0.331870973110199,
0.30939382314682007,
0.3434869945049286,
-0.18017758429050446,
-0.09137055277824402,
-0.36691612005233765,
-0.2936856150627136,
0.03223012387752533,
0.4665718376636505,
0.11508414894342422,
0.21030329167842865,
-0.2565609812736511,
-0.07440381497144699,
-0.15552738308906555,
-0.3767434358596802,
0.19776755571365356,
-0.28209495544433594,
0.557405412197113,
0.19279304146766663,
0.40363678336143494,
-0.40214988589286804,
-0.41708043217658997,
0.21654239296913147,
-0.2159273624420166,
0.02285538613796234,
0.06007016450166702,
-0.25757595896720886,
-0.16954576969146729,
-0.07805424183607101,
-0.21543565392494202,
-0.38806578516960144,
-0.3334845006465912,
0.041179534047842026,
0.023491285741329193,
0.10877792537212372,
0.4082963764667511,
0.10399524122476578,
0.0826147198677063,
0.500186562538147,
-0.12017936259508133,
-0.22048211097717285,
-0.18961191177368164,
0.37135636806488037,
-0.26797378063201904,
-0.2996506094932556,
0.057434216141700745,
-0.11184537410736084,
-0.03453909605741501,
-0.12770026922225952,
-0.39799001812934875,
-0.1679544299840927,
-0.07960022240877151,
0.03434769809246063,
0.08701024949550629,
0.004682829603552818,
0.09030629694461823,
0.040992140769958496,
0.016509201377630234,
-0.1444607377052307,
-0.39719629287719727,
-0.04470684379339218,
0.28628093004226685,
0.18965238332748413,
0.3199491500854492,
0.1527794599533081,
-0.2465851604938507,
0.49331992864608765,
0.12704025208950043,
-0.18350623548030853,
0.34924066066741943,
0.02506162039935589,
0.1754012107849121,
-0.3715403974056244,
-0.43684548139572144,
0.23761756718158722,
-0.18792247772216797,
-0.22807946801185608,
0.2979319393634796,
-0.2045452892780304,
-0.3474060893058777,
-0.22486481070518494,
0.04381607472896576,
-0.1779915988445282,
-0.437747061252594,
0.258379727602005,
0.3308212161064148,
0.1570836901664734,
0.07716578245162964,
-0.22236096858978271,
-0.23640993237495422,
-0.14512497186660767,
-0.009316805750131607,
0.4067424535751343,
0.035208240151405334,
0.02375314012169838,
0.2685166597366333,
-0.0196396391838789,
-0.6131860613822937,
0.26197296380996704,
0.3598893880844116,
0.25677490234375,
-0.18410012125968933,
-0.006345599889755249,
0.003963101655244827,
0.08356918394565582,
0.10820046067237854,
-0.1093384325504303,
-0.010837995447218418,
0.1519348919391632,
0.03918401896953583,
-0.02634304016828537,
-0.07902698963880539,
-0.34495213627815247,
0.3172372579574585,
0.18619129061698914,
0.29382503032684326,
-0.3232550323009491,
0.10216487944126129,
0.29997187852859497,
0.15344324707984924,
-0.14502915740013123,
-0.1421937495470047,
-0.30567270517349243,
-0.5755375027656555,
-0.4369577169418335,
-0.1568489372730255,
0.2291857898235321,
0.3046581447124481,
-0.044502776116132736,
0.27701956033706665,
0.11607081443071365,
-0.02497432753443718,
0.2497917115688324,
0.19063159823417664,
0.2642819881439209,
0.2793496251106262,
-0.0030474811792373657,
-0.10238851606845856,
-0.08830505609512329,
0.3251288831233978,
0.5740010142326355,
0.07658429443836212,
-0.3027881383895874,
0.15344440937042236,
-0.0007591173052787781,
-0.03513215482234955,
0.14200404286384583,
-0.22359609603881836,
-0.11904159188270569,
-0.07917355000972748,
0.11919142305850983,
0.09210768342018127,
0.3412059545516968,
0.11210975795984268,
0.004006534814834595,
-0.6925356984138489,
-0.49811750650405884,
0.409097284078598,
-0.007239930331707001,
0.01927979290485382,
0.4975599944591522,
0.18674173951148987,
-0.29832708835601807,
0.3348347842693329,
0.12213742733001709,
0.8771529197692871,
-0.11099502444267273,
0.17018435895442963,
0.7048410177230835,
0.3051098585128784,
0.34828609228134155,
0.1293722242116928,
0.19868104159832,
-0.2439751923084259,
-0.010168535634875298,
-0.17797726392745972,
-0.034731943160295486,
-0.10598644614219666,
-0.17897988855838776,
-0.513309895992279,
0.1631123274564743,
-0.13955992460250854,
0.15329840779304504,
0.19626401364803314,
0.20550838112831116,
-0.08526451140642166,
-0.22225362062454224,
-0.447022408246994,
0.13574334979057312,
-0.1891506016254425,
0.15252867341041565,
-0.16985070705413818,
-0.19998742640018463,
-0.04225269332528114,
-0.22372961044311523,
-0.44312986731529236,
-0.010141141712665558,
-0.3017945885658264,
0.2878568470478058,
0.12850630283355713,
-0.3540194630622864,
0.3821357190608978,
0.08731333911418915,
0.2093690037727356,
-0.08612518012523651,
-0.2630382776260376,
0.07961489260196686,
-0.04228832200169563,
-0.18228617310523987,
-0.2927994728088379,
-0.083949014544487,
0.389005571603775,
0.010422438383102417,
-0.05553338676691055,
-0.1049363911151886,
-0.021770114079117775,
-0.32255181670188904,
-0.02104376256465912,
0.10696913301944733,
-0.11464190483093262,
-0.35907241702079773,
-0.18639683723449707,
-0.0565645731985569,
-0.0802442654967308,
-0.1424153745174408,
0.1051645427942276,
-0.023029517382383347,
-0.045269548892974854,
-0.05827657878398895,
0.0906592607498169,
-0.28899118304252625,
-0.013359792530536652,
0.2108226865530014,
-0.01698395051062107,
0.20195390284061432,
0.505975067615509,
0.32310521602630615,
-0.14874482154846191,
-0.15561601519584656,
0.09032053500413895,
0.03709240257740021,
-0.17664463818073273,
0.36801743507385254,
0.07644743472337723,
0.17774130403995514,
-0.11764170229434967,
0.7146797180175781,
0.004976003896445036,
0.11667338013648987,
0.20426182448863983,
-0.6232947111129761,
-0.15411078929901123,
0.2746366262435913,
-0.29941555857658386,
0.12327273190021515,
0.10352773219347,
0.16691197454929352,
0.029756680130958557,
-0.29670101404190063,
-0.2817040681838989,
0.029734835028648376,
-0.34226417541503906,
0.11655756831169128,
0.5153743624687195,
-0.14487212896347046,
0.26892924308776855,
0.051856908947229385,
0.10478970408439636,
0.01063329167664051,
0.013003155589103699,
-0.21687152981758118,
-0.15621218085289001,
0.13669706881046295,
-0.0015313532203435898,
-0.2776116132736206,
-0.10310468077659607,
-0.023294668644666672,
-0.20414787530899048,
-0.12578967213630676,
0.2398001253604889,
0.2675269842147827,
-0.20158466696739197,
0.08861811459064484,
-0.05847448483109474,
0.09013029932975769,
0.028978638350963593,
0.26912662386894226,
0.05761956050992012,
0.3624676465988159,
0.07588671147823334,
0.25649014115333557,
0.12191396206617355,
0.06191467493772507,
0.1604730188846588,
0.3062054514884949,
0.1793515831232071,
0.08066830039024353,
0.19381527602672577,
-0.46662184596061707,
0.08489696681499481,
-0.30389076471328735,
0.14713993668556213,
0.34802350401878357,
-0.34218040108680725,
0.029250413179397583,
0.15270143747329712,
0.07472896575927734,
-0.14069929718971252,
0.0847325325012207,
0.20975103974342346,
-0.12182793766260147,
-0.036392729729413986,
0.3370082378387451,
0.09527043998241425,
0.16075222194194794,
-0.13024169206619263,
-0.009169485419988632,
0.28607121109962463,
0.2742428779602051,
0.11559536308050156,
-0.031512048095464706,
-0.1654587984085083,
0.11398418247699738,
0.017961839213967323,
0.18741729855537415,
0.18310415744781494,
0.06149778142571449,
-0.12294313311576843,
0.19942893087863922,
-0.2232545018196106,
0.0014124223962426186,
0.2800668478012085,
-0.529149055480957,
0.04188616946339607,
0.08801527321338654,
0.10263463854789734,
0.07133817672729492,
0.0034235604107379913,
0.40991562604904175,
-0.24650387465953827,
-0.08768823742866516,
-0.20129171013832092,
0.12133444845676422,
-0.17159974575042725,
-0.022015539929270744,
-0.10884684324264526,
-0.0851299911737442,
-0.3159868121147156,
0.1381998211145401,
-0.04268394783139229,
-0.09509103000164032,
0.20096153020858765,
0.3130762577056885,
-0.0781465396285057,
-0.2880218029022217,
0.06129142642021179,
0.2677076458930969,
-0.12422775477170944,
-0.1469755619764328,
0.23574866354465485,
0.010840319097042084,
-0.10583928227424622,
-0.050967566668987274,
0.26606884598731995,
0.7285700440406799,
0.3192518949508667,
-0.25510677695274353,
0.07731267809867859,
-0.06903737783432007,
-0.14059209823608398,
0.027850590646266937,
0.00320294126868248,
0.18342368304729462,
0.18441462516784668,
0.3254413902759552,
0.16188371181488037,
-0.0949518233537674,
0.15285973250865936,
0.08831731975078583,
-0.07674835622310638,
-0.04484603926539421,
-0.06969044357538223,
-0.31891006231307983,
0.11084236949682236,
-0.24432039260864258,
0.055568091571331024,
-0.3604245185852051,
0.04885658621788025,
0.3898119330406189,
0.06134585663676262,
0.14078956842422485,
0.09845529496669769,
0.04323253035545349,
-0.08916114270687103,
0.7480611205101013,
0.42452919483184814,
0.57011878490448,
-0.46068257093429565,
-0.20809634029865265,
-0.4583548903465271,
0.1459202766418457,
-0.06892338395118713,
-0.04683884605765343,
-0.032621417194604874,
0.010774761438369751,
0.07430609315633774,
0.21332134306430817,
-0.19009867310523987,
-0.15466494858264923,
-0.1080704778432846,
-0.048901092261075974,
-0.12394121289253235,
-0.3723292946815491,
0.05557657778263092,
-0.16658218204975128,
-0.09454971551895142,
-0.3566226363182068,
-0.0013353731483221054,
-0.3693269193172455,
0.03915437310934067,
-0.3989432454109192,
-0.27288514375686646,
-0.011551864445209503,
-0.04818284139037132,
0.16782335937023163,
0.18031108379364014,
0.6532689929008484,
-0.15871237218379974,
-0.13813520967960358,
-0.06256738305091858,
-0.36947882175445557,
-0.12168867886066437,
0.17177148163318634,
0.02656501904129982,
0.42723605036735535,
-0.004724528640508652,
0.20101776719093323,
-0.434411883354187,
0.33396974205970764,
0.014144837856292725,
-0.11431028693914413,
-0.4061488211154938,
0.03754463791847229,
-0.2808108925819397,
0.059157345443964005,
-0.005675997585058212,
0.0953870490193367,
-0.10217495262622833,
0.14464953541755676,
-0.17786194384098053,
-0.38124802708625793,
0.713803231716156,
-0.6547104716300964,
-0.5138835310935974,
-0.017322242259979248,
-0.19665087759494781,
-0.1308056116104126,
0.033608488738536835,
-0.7398448586463928,
0.1849345564842224,
0.04919435828924179,
-0.02367948368191719,
-0.3672487735748291,
0.17213311791419983,
0.10165800154209137,
0.09487994760274887,
-0.14820513129234314,
0.27442336082458496,
0.03895626589655876,
-0.18225449323654175,
-0.1232796311378479,
-0.2610342502593994
] |
https://github.com/huggingface/datasets/issues/2058 | Hi! You can either save the TF dataset to one of the formats supported by datasets (`parquet`, `csv`, `json`, ...) or pass a generator function to `Dataset.from_generator` that yields its examples. | Is it possible to convert a `tfds` to HuggingFace `dataset`? | I was having some weird bugs with `C4`dataset version of HuggingFace, so I decided to try to download `C4`from `tfds`. I would like to know if it is possible to convert a tfds dataset to HuggingFace dataset format :)
I can also open a new issue reporting the bug I'm receiving with `datasets.load_dataset('c4','en')` in the future if you think that it would be useful.
Thanks!
| 31 | Is it possible to convert a `tfds` to HuggingFace `dataset`?
I was having some weird bugs with `C4`dataset version of HuggingFace, so I decided to try to download `C4`from `tfds`. I would like to know if it is possible to convert a tfds dataset to HuggingFace dataset format :)
I can also open a new issue reporting the bug I'm receiving with `datasets.load_dataset('c4','en')` in the future if you think that it would be useful.
Thanks!
Hi! You can either save the TF dataset to one of the formats supported by datasets (`parquet`, `csv`, `json`, ...) or pass a generator function to `Dataset.from_generator` that yields its examples. | [
-0.10825781524181366,
-0.4855848550796509,
0.011034652590751648,
0.5216737985610962,
0.305899053812027,
0.2818625569343567,
-0.16113384068012238,
0.21135073900222778,
-0.1777811348438263,
-0.03816591203212738,
-0.5086010694503784,
-0.10756836831569672,
-0.35055696964263916,
0.5548804998397827,
0.25607410073280334,
-0.27107739448547363,
0.1627797782421112,
-0.003766186535358429,
-0.42443832755088806,
0.09976881742477417,
0.08129478991031647,
0.4191952049732208,
0.19333580136299133,
0.08123251050710678,
-0.038647644221782684,
0.059167325496673584,
-0.07089637219905853,
0.15165823698043823,
-0.07892785966396332,
-0.018415022641420364,
0.3210586905479431,
0.044375237077474594,
0.18569546937942505,
0.6315202713012695,
-0.00012116193101974204,
-0.012935258448123932,
-0.25251656770706177,
-0.06243514269590378,
0.11387744545936584,
-0.04162530601024628,
0.02620718628168106,
0.11503015458583832,
0.08572515845298767,
0.011889278888702393,
-0.209248349070549,
-0.34479013085365295,
-0.17580083012580872,
-0.29331088066101074,
0.43080639839172363,
0.31093302369117737,
0.16872724890708923,
0.39459386467933655,
0.26993119716644287,
0.17639368772506714,
-0.14179033041000366,
0.28996068239212036,
-0.17361897230148315,
0.19109390676021576,
-0.043732013553380966,
0.2742738425731659,
0.39439937472343445,
-0.02952851727604866,
-0.04910808429121971,
-0.1592722237110138,
0.6587481498718262,
0.10162147879600525,
-0.18079990148544312,
-0.24087297916412354,
0.22215712070465088,
0.5640734434127808,
0.5609465837478638,
-0.2762662172317505,
-0.3356533646583557,
-0.09695866703987122,
-0.018355291336774826,
0.029692649841308594,
-0.14257243275642395,
0.08338046818971634,
-0.17740897834300995,
0.32374587655067444,
-0.4310893416404724,
-0.4506913721561432,
-0.20932334661483765,
-0.07838252186775208,
-0.291084885597229,
-0.3069011867046356,
-0.2990265488624573,
-0.1748047024011612,
0.23091189563274384,
-0.33043012022972107,
-0.12691178917884827,
-0.0004409477114677429,
0.07589012384414673,
0.2089916616678238,
-0.16992883384227753,
-0.3435593247413635,
-0.206468865275383,
0.4611179530620575,
0.3718816936016083,
-0.06592779606580734,
-0.3232395648956299,
-0.18884463608264923,
-0.38473355770111084,
-0.23963704705238342,
0.18455654382705688,
-0.11924893409013748,
-0.11810635030269623,
-0.021036647260189056,
0.00872504897415638,
-0.1700166016817093,
0.012026458978652954,
0.13474655151367188,
-0.15069562196731567,
0.01775958761572838,
-0.17322856187820435,
-0.39584580063819885,
0.13450956344604492,
-0.2753129005432129,
0.07434456050395966,
-0.1433999091386795,
0.026950418949127197,
0.22862184047698975,
-0.1608104258775711,
0.1546430140733719,
-0.018794119358062744,
0.0673566684126854,
0.2696564793586731,
0.04219670221209526,
-0.006986018270254135,
-0.2465808391571045,
-0.09259247034788132,
-0.2505733072757721,
0.1273975372314453,
0.045651160180568695,
-0.25358444452285767,
-0.6053482890129089,
-0.039936281740665436,
-0.014788474887609482,
0.17593732476234436,
0.28116095066070557,
-0.3351196050643921,
0.3038594722747803,
0.16498112678527832,
0.06606803834438324,
-0.03314704820513725,
0.11785301566123962,
0.2766420543193817,
0.0022167861461639404,
-0.18939392268657684,
0.022570732980966568,
-0.08868010342121124,
0.16892437636852264,
-0.4472966194152832,
0.022406641393899918,
-0.1265643835067749,
-0.2712606191635132,
-0.5323465466499329,
0.2862047851085663,
-0.07062049210071564,
-0.04953215271234512,
0.04804573953151703,
-0.16092213988304138,
-0.1822047233581543,
-0.12827907502651215,
0.23462527990341187,
0.5185167193412781,
-0.2775284945964813,
-0.19900429248809814,
0.3132714331150055,
-0.47079020738601685,
-0.17317011952400208,
0.3865005671977997,
0.16634757816791534,
-0.1540318727493286,
-0.3359750807285309,
0.0006499588489532471,
-0.0959872305393219,
-0.2513941824436188,
0.05609896779060364,
0.480977326631546,
0.014347463846206665,
0.2287147045135498,
-0.21415579319000244,
-0.009703923016786575,
0.08823002874851227,
0.03889293223619461,
-0.00044380128383636475,
-0.007097868248820305,
-0.23018185794353485,
0.057525187730789185,
-0.030344650149345398,
-0.23712089657783508,
0.45528465509414673,
-0.2030019313097,
0.016261279582977295,
0.35370129346847534,
-0.1333860456943512,
0.003346554934978485,
0.2635965943336487,
-0.2132769525051117,
0.05837645381689072,
0.11223766952753067,
-0.003720950335264206,
0.288748562335968,
0.03264894336462021,
-0.2646239995956421,
-0.6827170252799988,
0.027694061398506165,
0.22205118834972382,
-0.04128694161772728,
0.22792457044124603,
-0.20620772242546082,
-0.10560229420661926,
-0.06614958494901657,
0.17244645953178406,
0.21272611618041992,
0.03359067812561989,
-0.1292041391134262,
0.1477440446615219,
-0.027194418013095856,
-0.37690871953964233,
0.41544753313064575,
-0.01814952865242958,
0.14829006791114807,
-0.21871569752693176,
0.25917941331863403,
0.3332136869430542,
0.09894030541181564,
0.04341238737106323,
0.09010975807905197,
-0.03428366780281067,
-0.2980102300643921,
0.016857296228408813,
0.24660657346248627,
-0.0415387861430645,
0.3408234715461731,
-0.090538889169693,
0.44182026386260986,
0.14858296513557434,
-0.19389481842517853,
-0.3708656430244446,
0.17390945553779602,
-0.04128153994679451,
0.020324796438217163,
-0.12506797909736633,
0.16725954413414001,
-0.07589582353830338,
0.22709505259990692,
0.17009058594703674,
0.26029855012893677,
0.02512338012456894,
0.14489033818244934,
-0.07081511616706848,
-0.00020760297775268555,
0.0029476804193109274,
-0.3227821886539459,
0.25374773144721985,
0.15848207473754883,
-0.5944380760192871,
0.2886715233325958,
0.0749177560210228,
-0.21450906991958618,
-0.21739700436592102,
0.32418957352638245,
-0.15422393381595612,
0.020247936248779297,
0.15005791187286377,
0.09053204953670502,
0.24546422064304352,
0.1269128918647766,
0.1848459243774414,
0.20192310214042664,
0.20071052014827728,
0.11041948199272156,
0.25377362966537476,
-0.13891002535820007,
0.045274920761585236,
-0.10712657123804092,
-0.096208356320858,
0.17959529161453247,
-0.1486772894859314,
0.29912468791007996,
-0.20556622743606567,
0.08589375019073486,
-0.5473347306251526,
0.05345741659402847,
-0.5500630140304565,
-0.3677465617656708,
-0.1881425976753235,
0.16926932334899902,
-0.3600311279296875,
-0.05323613062500954,
-0.24549606442451477,
0.038732632994651794,
0.17190231382846832,
-0.2521851360797882,
-0.22740775346755981,
0.10903868079185486,
-0.16024824976921082,
0.06017815321683884,
-0.3322966694831848,
-0.08040815591812134,
-0.2219037562608719,
0.06539146602153778,
0.4738277494907379,
-0.04366398975253105,
0.32760193943977356,
-0.47402095794677734,
0.037443406879901886,
-0.5424832105636597,
-0.16006439924240112,
0.2090861052274704,
-0.2144959419965744,
0.1287345439195633,
0.15766292810440063,
0.44993656873703003,
-0.30345895886421204,
0.09776000678539276,
-0.14340128004550934,
-0.21693092584609985,
-0.27513474225997925,
-0.08657868206501007,
-0.1994566023349762,
-0.01308206096291542,
-0.10837583243846893,
0.173946350812912,
-0.29110977053642273,
0.06323926150798798,
0.4337122142314911,
-0.11498323082923889,
-0.12374080717563629,
0.34553062915802,
-0.1459391564130783,
0.25006842613220215,
-0.14754720032215118,
-0.17660287022590637,
-0.10704056918621063,
-0.39912816882133484,
0.2461010068655014,
-0.2348625361919403,
-0.3973759114742279,
0.05049210786819458,
0.26577669382095337,
0.09504006803035736,
0.013998419046401978,
-0.2833748757839203,
0.15290313959121704,
-0.23191317915916443,
0.06615196168422699,
-0.2250855267047882,
-0.07350515574216843,
0.15644897520542145,
-0.17631101608276367,
0.07271973043680191,
-0.013647735118865967,
0.1440073847770691,
0.03407822921872139,
-0.11987055838108063,
0.12529246509075165,
0.10071323812007904,
0.017777370288968086,
-0.06129517778754234,
0.32216817140579224,
0.29579317569732666,
-0.24221137166023254,
0.10983788967132568,
-0.4528508186340332,
0.4629542827606201,
-0.022709600627422333,
-0.3216935992240906,
0.2673271894454956,
-0.036130696535110474,
0.07834865152835846,
0.40421339869499207,
0.1677803099155426,
0.3764926791191101,
-0.06595440208911896,
0.14019504189491272,
-0.18537041544914246,
-0.11346925050020218,
-0.33351805806159973,
-0.03006460703909397,
0.19814932346343994,
-0.00193747878074646,
-0.11582715809345245,
0.07859806716442108,
-0.3300097584724426,
0.21354809403419495,
0.531869113445282,
0.618037760257721,
0.2952607572078705,
-0.27875369787216187,
-0.014341641217470169,
-0.46713128685951233,
0.13987761735916138,
0.12152232229709625,
-0.16861996054649353,
-0.21972137689590454,
0.2575461268424988,
0.03581168130040169,
0.09280378371477127,
0.8121088743209839,
0.2824491560459137,
-0.11059191077947617,
0.06260964274406433,
-0.14309200644493103,
-0.3997073173522949,
0.14072369039058685,
0.042295634746551514,
-0.0423051193356514,
0.0909413993358612,
0.5083251595497131,
-0.2978519797325134,
-0.2954474985599518,
-0.015930000692605972,
0.34258827567100525,
-0.21953120827674866,
-0.026612412184476852,
-0.0010127201676368713,
-0.2014884650707245,
0.17182138562202454,
-0.22029154002666473,
0.2704426646232605,
0.19960623979568481,
0.08864648640155792,
-0.03180134296417236,
-0.026457704603672028,
-0.11995568871498108,
0.23352275788784027,
-0.017807386815547943,
0.3155490458011627,
0.3471461236476898,
0.013437420129776001,
0.2535460889339447,
-0.09016768634319305,
0.14041981101036072,
0.17707374691963196,
-0.11448909342288971,
-0.2961031496524811,
-0.03229324519634247,
0.2710312604904175,
0.21350917220115662,
0.06430326402187347,
-0.2176763415336609,
0.029969487339258194,
0.050389476120471954,
0.218827486038208,
-0.21956661343574524,
0.07821015268564224,
0.29575231671333313,
-0.01179502159357071,
-0.33635473251342773,
-0.2322545349597931,
0.44558364152908325,
0.013173751533031464,
0.29072731733322144,
0.06777799874544144,
1.0066267251968384,
-0.1484939157962799,
-0.21902382373809814,
0.15879768133163452,
0.7926890850067139,
-0.311573326587677,
0.2484312206506729,
0.4830816090106964,
-0.29869669675827026,
0.8211823105812073,
-0.01661362498998642,
-0.3645351827144623,
-0.16414521634578705,
-0.136670783162117,
-0.17000336945056915,
0.087654709815979,
-0.002648930996656418,
0.2004677951335907,
-0.05107789859175682,
0.1842281073331833,
-0.10137296468019485,
0.2171679586172104,
0.23809029161930084,
0.1005496084690094,
0.23114833235740662,
-0.07480831444263458,
-0.38271602988243103,
0.1311626136302948,
-0.1349402666091919,
0.11471423506736755,
-0.023729810491204262,
-0.20132017135620117,
0.037427082657814026,
0.24887825548648834,
-0.3608262240886688,
-0.13434858620166779,
-0.22604280710220337,
-0.33056509494781494,
0.3266478180885315,
-0.1139792948961258,
0.33735358715057373,
0.3970012962818146,
0.47078609466552734,
0.07949726283550262,
-0.50946444272995,
-0.19490884244441986,
-0.21591711044311523,
0.055815454572439194,
-0.18003834784030914,
0.01610647886991501,
0.10209542512893677,
0.0004817172884941101,
0.22105707228183746,
-0.02057104930281639,
0.18072514235973358,
-0.11201699078083038,
-0.12432412058115005,
-0.3929932415485382,
-0.4089440703392029,
-0.26691117882728577,
-0.1705022156238556,
-0.027946967631578445,
0.33065223693847656,
0.14677654206752777,
0.0032768971286714077,
0.032831788063049316,
0.01386934518814087,
-0.07261930406093597,
0.2106688916683197,
-0.09779037535190582,
0.05862075090408325,
0.313109815120697,
-0.14999106526374817,
-0.346373975276947,
0.16979819536209106,
0.380440354347229,
-0.13718384504318237,
-0.025315817445516586,
0.23780721426010132,
0.14472992718219757,
-0.23370811343193054,
0.236240953207016,
-0.003023959696292877,
0.4222082495689392,
-0.2406262904405594,
0.22145022451877594,
0.11457552015781403,
-0.1504267007112503,
0.11208029091358185,
-0.029795140027999878,
-0.3483726680278778,
0.07112608850002289,
-0.09258899092674255,
0.10996294766664505,
0.2607017159461975,
0.3176029622554779,
-0.22442205250263214,
-0.1443101465702057,
-0.18069423735141754,
0.20570895075798035,
0.1034100353717804,
-0.24690404534339905,
0.5127018094062805,
0.03857233747839928,
-0.03253917768597603,
-0.25501134991645813,
-0.011798959225416183,
0.25532984733581543,
0.08145128190517426,
-0.12122851610183716,
-0.32037457823753357,
0.17894433438777924,
0.09333249926567078,
-0.24383112788200378,
0.3913862705230713,
0.05852946639060974,
-0.2808082401752472,
-0.11187524348497391,
0.2979218065738678,
0.33647966384887695,
0.06945651024580002,
0.09151272475719452,
0.2759016752243042,
0.02391183003783226,
-0.3470996618270874,
0.13201193511486053,
0.5605685710906982,
0.3578399419784546,
-0.1169336810708046,
0.1951979547739029,
-0.09519658982753754,
-0.10211455821990967,
-0.10127358138561249,
0.3330879211425781,
0.24879324436187744,
-0.28437864780426025,
0.30828213691711426,
-0.06773513555526733,
0.05020085722208023,
0.11779440939426422,
0.4297581911087036,
0.16522076725959778,
-0.027009721845388412,
0.25686052441596985,
0.24780908226966858,
-0.04033605754375458,
-0.09597213566303253,
0.00037273019552230835,
0.2555648982524872,
-0.055339716374874115,
-0.2261078804731369,
0.10611387342214584,
-0.2223738133907318,
0.19637224078178406,
0.2536010444164276,
-0.2184387445449829,
0.20038791000843048,
0.14007532596588135,
0.07792070508003235,
0.329304963350296,
-0.005993276834487915,
0.07382295280694962,
0.036265477538108826,
0.1767124980688095,
0.017798271030187607,
-0.012358423322439194,
-0.08905642479658127,
-0.08593284338712692,
-0.38577765226364136,
0.21154369413852692,
0.558837354183197,
-0.3393329381942749,
-0.1673651486635208,
0.0337287038564682,
0.09889322519302368,
0.3249584436416626,
0.0630352571606636,
0.3844088017940521,
-0.12102305889129639,
-0.5020900964736938,
-0.06805136054754257,
0.4779582619667053,
-0.12924420833587646,
-0.17285308241844177,
0.3824360966682434,
-0.23420655727386475,
-0.07826609164476395,
0.16055303812026978,
-0.41839614510536194,
-0.5010731220245361,
-0.10461685061454773,
0.11261351406574249,
0.14221423864364624,
-0.125548854470253,
-0.2746410667896271,
0.061931315809488297,
0.04135650023818016,
0.032065801322460175,
0.003337247297167778,
0.05156506597995758,
-0.19555990397930145,
0.033436909317970276,
0.39122381806373596,
0.10736070573329926,
0.0075433943420648575,
0.21854403614997864,
0.21950900554656982,
-0.06520024687051773,
0.06807246059179306,
0.3431723713874817,
0.10027293860912323,
-0.01450951024889946,
0.014264382421970367,
0.26511868834495544,
-0.02101273462176323,
0.09179665148258209,
-0.11690282821655273,
-0.1340733915567398,
0.3576865494251251,
-0.5578404664993286,
0.15544870495796204,
-0.3189811110496521,
0.08560477197170258,
-0.2938965857028961,
-0.02692907676100731,
-0.22643235325813293,
0.07869600504636765,
0.06836630403995514,
0.004373073577880859,
-0.03745903819799423,
0.02514544129371643,
0.016254205256700516,
0.17416079342365265,
0.5598734021186829,
0.2509249150753021,
0.3608969748020172,
-0.046922676265239716,
-0.18862593173980713,
-0.5740364789962769,
0.09190868586301804,
0.2876107692718506,
0.3142901062965393,
0.07910269498825073,
-0.1955462247133255,
0.15099221467971802,
0.1625230312347412,
0.03167090192437172,
0.10306805372238159,
0.013412859290838242,
0.2138226479291916,
0.19609318673610687,
-0.2264590561389923,
-0.2570657730102539,
0.09935671091079712,
-0.057168129831552505,
0.006984919309616089,
0.3534689247608185,
0.04915819689631462,
-0.16788974404335022,
-0.09993170946836472,
0.2452271580696106,
-0.16795679926872253,
-0.3593364357948303,
-0.09293853491544724,
0.19029992818832397,
0.35532844066619873,
-0.09494469314813614,
-0.13503524661064148,
0.08180861175060272,
-0.0597735270857811,
-0.3520955443382263,
0.28123101592063904,
-0.26889142394065857,
0.04599893093109131,
-0.15881673991680145,
-0.4164021909236908,
-0.27092525362968445,
0.08342619240283966,
0.14769409596920013,
0.12692652642726898,
-0.32759690284729004,
0.12716853618621826,
-0.27470046281814575,
-0.27078360319137573,
0.39941638708114624,
0.39691969752311707,
-0.2943214774131775,
0.1345953345298767,
-0.15025188028812408,
0.08885567635297775,
0.524682343006134,
-0.4218525290489197,
0.06907764077186584,
0.18022260069847107,
-0.13403290510177612,
0.3321491479873657,
-0.5923342704772949,
-0.4125972390174866,
0.040384724736213684,
0.3092040419578552,
-0.05362999439239502,
0.22501243650913239,
0.20508559048175812,
-0.08220350742340088,
-0.06775625050067902,
-0.16261929273605347,
0.5423563718795776,
0.3297281861305237,
-0.05195571482181549,
0.267427921295166,
-0.2518031597137451
] |
https://github.com/huggingface/datasets/issues/2056 | @lhoestq I also deleted the cache and redownload the file and still the same issue, I appreciate any help on this. thanks | issue with opus100/en-fr dataset | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
` | 22 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
`
@lhoestq I also deleted the cache and redownload the file and still the same issue, I appreciate any help on this. thanks | [
-0.41173648834228516,
-0.1673513799905777,
-0.01564515009522438,
0.39724838733673096,
0.11825765669345856,
0.08237646520137787,
0.1922522336244583,
0.28199779987335205,
-0.1431499719619751,
0.25799307227134705,
-0.24243488907814026,
-0.024896178394556046,
0.132223442196846,
0.38342130184173584,
-0.23991364240646362,
-0.17258547246456146,
-0.07827191054821014,
0.12080921232700348,
-0.41650718450546265,
-0.12028925865888596,
-0.45594823360443115,
0.22388337552547455,
-0.15639269351959229,
0.2297668308019638,
0.31866076588630676,
-0.07025551795959473,
0.15184462070465088,
0.057933829724788666,
-0.2905828356742859,
-0.3938673138618469,
-0.15120193362236023,
-0.2992527484893799,
0.39835643768310547,
0.24866031110286713,
-0.00012405679444782436,
0.013962551951408386,
0.1579873412847519,
-0.03846215456724167,
0.08095946907997131,
-0.059217795729637146,
0.10003775358200073,
0.14733223617076874,
-0.02871253713965416,
-0.3051404654979706,
0.03718145936727524,
-0.22510108351707458,
-0.37088802456855774,
-0.2680356502532959,
0.28802162408828735,
0.3753129541873932,
0.08677588403224945,
0.5228811502456665,
0.33736127614974976,
-0.146207794547081,
0.18301403522491455,
-0.04229818284511566,
0.05866190791130066,
-0.06936176121234894,
0.3234793543815613,
-0.22807806730270386,
0.36842429637908936,
0.2993505001068115,
-0.11020459979772568,
-0.13651444017887115,
0.22037670016288757,
-0.2563658356666565,
0.6804654002189636,
-0.5535477995872498,
0.011116249486804008,
0.3440341353416443,
0.07399025559425354,
0.023066794499754906,
-0.07224757969379425,
0.028432324528694153,
-0.014741592109203339,
-0.812233567237854,
-0.0916820615530014,
0.11364984512329102,
-0.04266390949487686,
0.16671153903007507,
-0.3281249701976776,
0.05663552135229111,
0.08465120196342468,
0.18013525009155273,
0.03430250287055969,
0.33272048830986023,
0.006103642284870148,
0.2988552153110504,
0.25027284026145935,
-0.2295200377702713,
-0.40942272543907166,
0.2705802917480469,
-0.1085323840379715,
0.28716570138931274,
-0.4670933485031128,
-0.04398886114358902,
0.07007438689470291,
-0.13623641431331635,
0.4946715831756592,
0.2132565677165985,
-0.5131158828735352,
-0.16268041729927063,
0.41003891825675964,
-0.006746208295226097,
0.28499311208724976,
0.2695946991443634,
-0.011115409433841705,
0.02303275838494301,
0.20296594500541687,
0.021527554839849472,
0.12237841635942459,
-0.057264991104602814,
-0.040500458329916,
-0.2940117120742798,
-0.25618597865104675,
-0.0725325271487236,
0.13846413791179657,
-0.48927974700927734,
-0.240901917219162,
0.3880999684333801,
-0.3146693706512451,
-0.059529416263103485,
0.5197179913520813,
0.33393025398254395,
0.19662925601005554,
-0.11512874066829681,
-0.09283540397882462,
0.27908530831336975,
-0.3406357169151306,
0.00218302384018898,
-0.018069608137011528,
-0.031798362731933594,
-0.03664316236972809,
0.015990138053894043,
-0.033779606223106384,
-0.6434459090232849,
0.26844778656959534,
0.16194161772727966,
0.5190972089767456,
-0.4269458055496216,
0.11982348561286926,
-0.2199242264032364,
-0.016850393265485764,
0.2775987684726715,
-0.0571955069899559,
0.15401247143745422,
0.36323270201683044,
0.0032503679394721985,
-0.05903849005699158,
0.05319267511367798,
-0.46135351061820984,
-0.4059741497039795,
-0.3444899618625641,
0.04951005429029465,
-0.13873371481895447,
0.4478001594543457,
0.17568953335285187,
-0.016650404781103134,
0.4423442482948303,
-0.1872701346874237,
0.20435211062431335,
-0.18262867629528046,
-0.30206018686294556,
0.051862966269254684,
0.38997411727905273,
0.1399206966161728,
0.026558414101600647,
0.14844165742397308,
0.21942371129989624,
0.212754026055336,
0.3668287396430969,
0.5186989903450012,
-0.2727023661136627,
-0.0015198122709989548,
-0.4783478081226349,
0.23124872148036957,
0.0005182921886444092,
-0.4624030292034149,
-0.24266782402992249,
-0.1247510313987732,
-0.2872539162635803,
-0.2944652736186981,
0.055365633219480515,
-0.17813867330551147,
0.6758931875228882,
-0.04526736959815025,
0.21899093687534332,
0.07321690022945404,
0.04595255106687546,
-0.186319500207901,
-0.2554854154586792,
0.007721945643424988,
0.351378858089447,
-0.19881314039230347,
0.008260943926870823,
-0.023290637880563736,
-0.04938207566738129,
-0.14823390543460846,
0.11013392359018326,
-0.06054382771253586,
0.13232488930225372,
0.26012736558914185,
0.21079418063163757,
0.07425984740257263,
0.24878734350204468,
-0.06112409010529518,
0.15357816219329834,
-0.0508141815662384,
-0.46939489245414734,
0.2518244981765747,
-0.07836030423641205,
0.00792296975851059,
-0.36558660864830017,
0.09754905849695206,
-0.10309717059135437,
-0.2655680775642395,
-0.0031702183187007904,
-0.211654931306839,
0.11130944639444351,
0.10974976420402527,
0.1644178330898285,
-0.1983312964439392,
-0.0019175782799720764,
0.2205997109413147,
-0.3111982047557831,
0.3991577923297882,
-0.24424238502979279,
-0.01849055103957653,
0.02902922034263611,
0.35713207721710205,
0.3908424377441406,
-0.27590107917785645,
-0.16444450616836548,
0.23479518294334412,
0.022370383143424988,
-0.290648877620697,
-0.2894760072231293,
0.31550395488739014,
0.16784517467021942,
-0.3867717385292053,
0.002417454496026039,
-0.2825698256492615,
0.030420150607824326,
-0.032820962369441986,
0.1935180276632309,
0.527335524559021,
-0.1704321801662445,
0.3984833359718323,
-0.26109805703163147,
0.11004062741994858,
0.025460094213485718,
0.14518588781356812,
0.0004747360944747925,
-0.1778210699558258,
0.3125908374786377,
0.31074345111846924,
0.11200027167797089,
0.06752707809209824,
-0.12413360923528671,
-0.050155527889728546,
0.29827681183815,
0.011672012507915497,
0.10620557516813278,
0.049867596477270126,
-0.0823497474193573,
-0.01834392547607422,
0.1508110761642456,
-0.2998585104942322,
0.17139726877212524,
0.13587674498558044,
-0.054796718060970306,
0.01223822869360447,
-0.004969295114278793,
-0.012108195573091507,
0.25571757555007935,
0.0212529506534338,
0.3840556740760803,
0.19203177094459534,
0.001348491758108139,
-0.08902943134307861,
-0.15624772012233734,
-0.10548853129148483,
0.12330594658851624,
0.4478664994239807,
-0.2748394012451172,
0.06270485371351242,
-0.08543303608894348,
0.019741475582122803,
-0.12271302938461304,
-0.3330765962600708,
-0.6193657517433167,
-0.1888410449028015,
0.11142882704734802,
0.0365401990711689,
0.030959486961364746,
0.05615551024675369,
0.14872699975967407,
-0.07035507261753082,
0.22868673503398895,
0.1457812488079071,
0.16936171054840088,
-0.06298229098320007,
-0.18236084282398224,
-0.14824877679347992,
0.19539448618888855,
-0.016338612884283066,
0.04710948467254639,
0.13650080561637878,
-0.09677186608314514,
-0.03259563818573952,
-0.5894052386283875,
0.31065255403518677,
-0.056813813745975494,
0.3301672041416168,
0.04912338778376579,
0.11473572254180908,
-0.0633862316608429,
-0.1362302303314209,
0.19130051136016846,
0.09951275587081909,
-0.2120431363582611,
0.08224762231111526,
-0.08355878293514252,
0.23795586824417114,
-0.13266773521900177,
-0.09505340456962585,
-0.23275312781333923,
-0.41110026836395264,
0.2914523482322693,
-0.19135922193527222,
0.05871355161070824,
0.2794516682624817,
-0.15641441941261292,
-0.020589616149663925,
0.07979811728000641,
-0.13913100957870483,
-0.322467565536499,
0.10247287154197693,
0.3471241593360901,
-0.28418856859207153,
-0.2615581154823303,
-0.23280391097068787,
0.1744871437549591,
0.21096348762512207,
-0.10368365049362183,
-0.4139458239078522,
-0.021609965711832047,
-0.12470460683107376,
0.07976116240024567,
-0.23714374005794525,
0.14708927273750305,
0.37464115023612976,
-0.14691445231437683,
-0.0013900510966777802,
-0.10652319341897964,
-0.12483306229114532,
0.18233747780323029,
-0.09005273878574371,
0.005625665187835693,
-0.04081626236438751,
0.7449670433998108,
-0.14146246016025543,
0.5462420582771301,
0.11663820594549179,
0.04635253921151161,
0.333482563495636,
-0.18536020815372467,
0.36385124921798706,
-0.09257913380861282,
-0.30354976654052734,
0.2539815902709961,
0.2515968978404999,
-0.23978900909423828,
0.16352587938308716,
-0.16276881098747253,
0.09147976338863373,
-0.06578821688890457,
-0.10140561312437057,
0.054939329624176025,
-0.28108009696006775,
-0.11901456862688065,
0.4435960650444031,
0.34014248847961426,
0.07350557297468185,
0.41277337074279785,
-0.08512882888317108,
-0.15780998766422272,
0.10607734322547913,
-0.030228275805711746,
-0.03831230476498604,
0.14158794283866882,
-0.6263697147369385,
-0.43131154775619507,
-0.5289624929428101,
0.41552114486694336,
0.07415834069252014,
0.7487247586250305,
-0.18716752529144287,
0.10062353312969208,
0.0712510198354721,
0.06396225094795227,
0.7198233008384705,
0.20710782706737518,
-0.021300895139575005,
-0.03991656005382538,
-0.14771705865859985,
-0.2423105537891388,
-0.14080066978931427,
-0.027839183807373047,
0.5661056041717529,
0.02406855672597885,
0.6595687866210938,
-0.2567324638366699,
-0.2979438304901123,
0.3916323482990265,
0.13204915821552277,
-0.16797520220279694,
-0.0606120228767395,
-0.19553586840629578,
-0.3098437190055847,
-0.26393720507621765,
0.33793526887893677,
0.1940552294254303,
0.5438347458839417,
-0.12344885617494583,
-0.015889853239059448,
0.16314415633678436,
-0.19433525204658508,
0.10991431772708893,
0.16430018842220306,
0.40074053406715393,
0.0797051191329956,
0.08985669910907745,
0.21128235757350922,
-0.055895306169986725,
0.5950173139572144,
0.10406909883022308,
-0.06041959673166275,
-0.09154023230075836,
0.19391393661499023,
0.0131676085293293,
0.325415700674057,
0.13910254836082458,
0.09675736725330353,
0.10802026093006134,
0.14630818367004395,
0.3830467164516449,
-0.25499898195266724,
-0.027253909036517143,
0.2192222774028778,
0.25641441345214844,
-0.3760877251625061,
0.044660307466983795,
0.05866888165473938,
0.05657997727394104,
-0.01721060276031494,
0.2615417242050171,
0.3256278336048126,
-0.16925489902496338,
0.19657394289970398,
0.4372459352016449,
1.1253494024276733,
-0.2956346273422241,
-0.07804010808467865,
-0.1270177811384201,
-0.33611950278282166,
0.6042554974555969,
-0.26303160190582275,
-0.04624972119927406,
-0.3473004996776581,
-0.1285603940486908,
0.02908145636320114,
-0.18670108914375305,
-0.00977165438234806,
-0.219094917178154,
-0.09976498782634735,
0.15271320939064026,
-0.22510328888893127,
-0.1580950766801834,
-0.21828502416610718,
0.2269459366798401,
0.3224572241306305,
-0.23322084546089172,
-0.15305311977863312,
-0.032768428325653076,
-0.06460587680339813,
0.1714264154434204,
-0.21025331318378448,
-0.172231525182724,
0.197098970413208,
-0.2368190884590149,
-0.22999531030654907,
-0.14150819182395935,
-0.4525684118270874,
0.29463765025138855,
0.02080686017870903,
-0.32272303104400635,
0.33003169298171997,
0.1336202174425125,
0.12281511723995209,
0.43253037333488464,
-0.2202581912279129,
-0.026876918971538544,
-0.00636867992579937,
-0.10939279198646545,
-0.08678911626338959,
0.06745383143424988,
0.04466722905635834,
-0.11347567290067673,
-0.4193345308303833,
0.10085627436637878,
-0.04158612713217735,
-0.03723244369029999,
-0.11821708083152771,
0.1514538824558258,
0.15903207659721375,
-0.2331363558769226,
0.3106337785720825,
0.029277034103870392,
-0.10713852941989899,
-0.2391304075717926,
-0.06054956838488579,
0.11021116375923157,
-0.43077877163887024,
0.019544780254364014,
0.09354884922504425,
-0.4853803515434265,
0.008994979783892632,
0.44142618775367737,
-0.021724320948123932,
-0.1256331205368042,
0.5604748129844666,
0.38702601194381714,
-0.08330095559358597,
-0.08913116157054901,
0.06656001508235931,
0.37948381900787354,
-0.3428507447242737,
-0.02067812718451023,
-0.026881545782089233,
0.03663825988769531,
-0.03188546746969223,
0.07719351351261139,
0.14659082889556885,
-0.005567565560340881,
-0.10012505948543549,
-0.49277442693710327,
-0.45021817088127136,
0.10503604263067245,
-0.14111950993537903,
0.09197629988193512,
0.17323046922683716,
0.05336916446685791,
-0.21244308352470398,
-0.061937712132930756,
-0.15852169692516327,
-0.06348562240600586,
-0.42073315382003784,
0.23240862786769867,
0.10087374597787857,
-0.4312162399291992,
0.03964477777481079,
-0.023310624063014984,
-0.09351953864097595,
0.19028262794017792,
-0.317238986492157,
-0.0028023943305015564,
-0.15535423159599304,
0.23936253786087036,
-0.09555014967918396,
-0.5256474018096924,
0.002838004380464554,
-0.1402631253004074,
-0.12862485647201538,
-0.14502489566802979,
-0.06846459209918976,
0.17215880751609802,
0.06603236496448517,
-0.28441211581230164,
0.2785301208496094,
-0.2525462806224823,
-0.1802474409341812,
0.07355007529258728,
0.2667730152606964,
0.18055202066898346,
-0.0312234815210104,
0.42722994089126587,
0.04696988686919212,
-0.1794162541627884,
-0.444358766078949,
0.08446471393108368,
0.2403591126203537,
-0.30848583579063416,
0.08180703222751617,
-0.22725564241409302,
-0.10024014860391617,
0.46247461438179016,
0.43953412771224976,
0.3952622413635254,
0.005478668957948685,
-0.06401027739048004,
0.2593306005001068,
0.06969121843576431,
-0.1671454906463623,
-0.13681179285049438,
0.2515740394592285,
-0.004936352372169495,
-0.06902934610843658,
0.4297882616519928,
0.28082984685897827,
0.09137833118438721,
0.06304396688938141,
0.042307473719120026,
0.26335930824279785,
0.142508864402771,
0.08284607529640198,
0.12847265601158142,
-0.09135519713163376,
-0.03809003159403801,
0.2750038206577301,
-0.06232180446386337,
0.4039418697357178,
0.32543864846229553,
-0.19078314304351807,
0.12841792404651642,
0.4210962653160095,
0.12743130326271057,
0.13662239909172058,
-0.26246339082717896,
-0.1123235821723938,
0.22445324063301086,
0.2346695512533188,
0.11280641704797745,
-0.11134429275989532,
0.7335343956947327,
-0.08745120465755463,
-0.3345423936843872,
-0.025738075375556946,
0.45917201042175293,
-0.27478358149528503,
-0.08902165293693542,
-0.15613387525081635,
-0.13246801495552063,
-0.0322471484541893,
-0.06878906488418579,
0.17788049578666687,
0.0589250773191452,
-0.022229716181755066,
0.023392416536808014,
-0.22225569188594818,
-0.3103191554546356,
-0.5450292825698853,
0.5357747077941895,
-0.029343396425247192,
-0.3221192955970764,
0.33281347155570984,
0.38622888922691345,
-0.10732783377170563,
0.16935473680496216,
0.3321021795272827,
0.5232435464859009,
0.23270012438297272,
-0.1036636009812355,
-0.07962489128112793,
0.06393556296825409,
0.15876677632331848,
-0.0327845998108387,
-0.08394840359687805,
0.08795484900474548,
0.13561272621154785,
0.08774535357952118,
-0.06674516201019287,
-0.0521092414855957,
-0.04493916779756546,
0.20361806452274323,
0.059541936963796616,
0.09976470470428467,
-0.544407844543457,
-0.15487249195575714,
-0.13108770549297333,
-0.32982316613197327,
0.02883804589509964,
-0.14548088610172272,
0.2842450737953186,
0.3009549081325531,
-0.0438532680273056,
0.033954184502363205,
0.036765724420547485,
0.0023882724344730377,
-0.18562380969524384,
0.409200519323349,
0.4066255986690521,
0.011280439794063568,
-0.2685205042362213,
-0.13448919355869293,
-0.4065999984741211,
0.24261386692523956,
-0.31824955344200134,
-0.10873043537139893,
0.41685932874679565,
0.1510162651538849,
0.038254182785749435,
0.045190081000328064,
0.4998103380203247,
-0.24657011032104492,
-0.13619352877140045,
0.2110147625207901,
-0.323779821395874,
-0.03807757794857025,
-0.2183675318956375,
-0.05809424817562103,
0.15897582471370697,
0.013718217611312866,
0.32723090052604675,
-0.057099848985672,
-0.07973611354827881,
-0.30923324823379517,
0.22657540440559387,
-0.34287434816360474,
-0.09711330384016037,
0.18312382698059082,
0.40925970673561096,
0.260373055934906,
0.14658500254154205,
0.08634606003761292,
0.17153427004814148,
-0.2983759343624115,
-0.0559379868209362,
0.2614251971244812,
0.025976993143558502,
0.018819577991962433,
-0.12802349030971527,
-0.7292591333389282,
-0.4894469082355499,
0.16183100640773773,
0.018607132136821747,
-0.21612028777599335,
-0.2587125897407532,
0.32207709550857544,
-0.08697675168514252,
0.018175311386585236,
0.14647626876831055,
0.31365129351615906,
0.3915124833583832,
0.24258458614349365,
-0.26417070627212524,
-0.414734810590744,
0.6981275081634521,
-0.5851549506187439,
-0.2028038501739502,
-0.20273947715759277,
0.22334052622318268,
0.5235946178436279,
-0.3709135055541992,
-0.31158798933029175,
-0.051318682730197906,
0.21268031001091003,
0.2346116602420807,
-0.43005597591400146,
-0.047907453030347824,
-0.2759913504123688,
-0.08745536208152771,
0.026260249316692352,
-0.025526635348796844,
0.16173624992370605,
-0.2601891756057739,
0.2698342204093933,
-0.047677963972091675
] |
https://github.com/huggingface/datasets/issues/2056 | Here please find the minimal code to reproduce the issue @lhoestq note this only happens with MT5TokenizerFast
```
from datasets import load_dataset
from transformers import MT5TokenizerFast
def get_tokenized_dataset(dataset_name, dataset_config_name, tokenizer):
datasets = load_dataset(dataset_name, dataset_config_name, script_version="master")
column_names = datasets["train"].column_names
text_column_name = "translation"
def process_dataset(datasets):
def process_function(examples):
lang = "fr"
return {"src_texts": [example[lang] for example in examples[text_column_name]]}
datasets = datasets.map(
process_function,
batched=True,
num_proc=None,
remove_columns=column_names,
load_from_cache_file=True,
)
return datasets
datasets = process_dataset(datasets)
text_column_name = "src_texts"
column_names = ["src_texts"]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=None,
remove_columns=column_names,
load_from_cache_file=True
)
if __name__ == "__main__":
tokenizer_kwargs = {
"cache_dir": None,
"use_fast": True,
"revision": "main",
"use_auth_token": None
}
tokenizer = MT5TokenizerFast.from_pretrained("google/mt5-small", **tokenizer_kwargs)
get_tokenized_dataset(dataset_name="opus100", dataset_config_name="en-fr", tokenizer=tokenizer)
~
``` | issue with opus100/en-fr dataset | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
` | 114 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
`
Here please find the minimal code to reproduce the issue @lhoestq note this only happens with MT5TokenizerFast
```
from datasets import load_dataset
from transformers import MT5TokenizerFast
def get_tokenized_dataset(dataset_name, dataset_config_name, tokenizer):
datasets = load_dataset(dataset_name, dataset_config_name, script_version="master")
column_names = datasets["train"].column_names
text_column_name = "translation"
def process_dataset(datasets):
def process_function(examples):
lang = "fr"
return {"src_texts": [example[lang] for example in examples[text_column_name]]}
datasets = datasets.map(
process_function,
batched=True,
num_proc=None,
remove_columns=column_names,
load_from_cache_file=True,
)
return datasets
datasets = process_dataset(datasets)
text_column_name = "src_texts"
column_names = ["src_texts"]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=None,
remove_columns=column_names,
load_from_cache_file=True
)
if __name__ == "__main__":
tokenizer_kwargs = {
"cache_dir": None,
"use_fast": True,
"revision": "main",
"use_auth_token": None
}
tokenizer = MT5TokenizerFast.from_pretrained("google/mt5-small", **tokenizer_kwargs)
get_tokenized_dataset(dataset_name="opus100", dataset_config_name="en-fr", tokenizer=tokenizer)
~
``` | [
-0.41173648834228516,
-0.1673513799905777,
-0.01564515009522438,
0.39724838733673096,
0.11825765669345856,
0.08237646520137787,
0.1922522336244583,
0.28199779987335205,
-0.1431499719619751,
0.25799307227134705,
-0.24243488907814026,
-0.024896178394556046,
0.132223442196846,
0.38342130184173584,
-0.23991364240646362,
-0.17258547246456146,
-0.07827191054821014,
0.12080921232700348,
-0.41650718450546265,
-0.12028925865888596,
-0.45594823360443115,
0.22388337552547455,
-0.15639269351959229,
0.2297668308019638,
0.31866076588630676,
-0.07025551795959473,
0.15184462070465088,
0.057933829724788666,
-0.2905828356742859,
-0.3938673138618469,
-0.15120193362236023,
-0.2992527484893799,
0.39835643768310547,
0.24866031110286713,
-0.00012405679444782436,
0.013962551951408386,
0.1579873412847519,
-0.03846215456724167,
0.08095946907997131,
-0.059217795729637146,
0.10003775358200073,
0.14733223617076874,
-0.02871253713965416,
-0.3051404654979706,
0.03718145936727524,
-0.22510108351707458,
-0.37088802456855774,
-0.2680356502532959,
0.28802162408828735,
0.3753129541873932,
0.08677588403224945,
0.5228811502456665,
0.33736127614974976,
-0.146207794547081,
0.18301403522491455,
-0.04229818284511566,
0.05866190791130066,
-0.06936176121234894,
0.3234793543815613,
-0.22807806730270386,
0.36842429637908936,
0.2993505001068115,
-0.11020459979772568,
-0.13651444017887115,
0.22037670016288757,
-0.2563658356666565,
0.6804654002189636,
-0.5535477995872498,
0.011116249486804008,
0.3440341353416443,
0.07399025559425354,
0.023066794499754906,
-0.07224757969379425,
0.028432324528694153,
-0.014741592109203339,
-0.812233567237854,
-0.0916820615530014,
0.11364984512329102,
-0.04266390949487686,
0.16671153903007507,
-0.3281249701976776,
0.05663552135229111,
0.08465120196342468,
0.18013525009155273,
0.03430250287055969,
0.33272048830986023,
0.006103642284870148,
0.2988552153110504,
0.25027284026145935,
-0.2295200377702713,
-0.40942272543907166,
0.2705802917480469,
-0.1085323840379715,
0.28716570138931274,
-0.4670933485031128,
-0.04398886114358902,
0.07007438689470291,
-0.13623641431331635,
0.4946715831756592,
0.2132565677165985,
-0.5131158828735352,
-0.16268041729927063,
0.41003891825675964,
-0.006746208295226097,
0.28499311208724976,
0.2695946991443634,
-0.011115409433841705,
0.02303275838494301,
0.20296594500541687,
0.021527554839849472,
0.12237841635942459,
-0.057264991104602814,
-0.040500458329916,
-0.2940117120742798,
-0.25618597865104675,
-0.0725325271487236,
0.13846413791179657,
-0.48927974700927734,
-0.240901917219162,
0.3880999684333801,
-0.3146693706512451,
-0.059529416263103485,
0.5197179913520813,
0.33393025398254395,
0.19662925601005554,
-0.11512874066829681,
-0.09283540397882462,
0.27908530831336975,
-0.3406357169151306,
0.00218302384018898,
-0.018069608137011528,
-0.031798362731933594,
-0.03664316236972809,
0.015990138053894043,
-0.033779606223106384,
-0.6434459090232849,
0.26844778656959534,
0.16194161772727966,
0.5190972089767456,
-0.4269458055496216,
0.11982348561286926,
-0.2199242264032364,
-0.016850393265485764,
0.2775987684726715,
-0.0571955069899559,
0.15401247143745422,
0.36323270201683044,
0.0032503679394721985,
-0.05903849005699158,
0.05319267511367798,
-0.46135351061820984,
-0.4059741497039795,
-0.3444899618625641,
0.04951005429029465,
-0.13873371481895447,
0.4478001594543457,
0.17568953335285187,
-0.016650404781103134,
0.4423442482948303,
-0.1872701346874237,
0.20435211062431335,
-0.18262867629528046,
-0.30206018686294556,
0.051862966269254684,
0.38997411727905273,
0.1399206966161728,
0.026558414101600647,
0.14844165742397308,
0.21942371129989624,
0.212754026055336,
0.3668287396430969,
0.5186989903450012,
-0.2727023661136627,
-0.0015198122709989548,
-0.4783478081226349,
0.23124872148036957,
0.0005182921886444092,
-0.4624030292034149,
-0.24266782402992249,
-0.1247510313987732,
-0.2872539162635803,
-0.2944652736186981,
0.055365633219480515,
-0.17813867330551147,
0.6758931875228882,
-0.04526736959815025,
0.21899093687534332,
0.07321690022945404,
0.04595255106687546,
-0.186319500207901,
-0.2554854154586792,
0.007721945643424988,
0.351378858089447,
-0.19881314039230347,
0.008260943926870823,
-0.023290637880563736,
-0.04938207566738129,
-0.14823390543460846,
0.11013392359018326,
-0.06054382771253586,
0.13232488930225372,
0.26012736558914185,
0.21079418063163757,
0.07425984740257263,
0.24878734350204468,
-0.06112409010529518,
0.15357816219329834,
-0.0508141815662384,
-0.46939489245414734,
0.2518244981765747,
-0.07836030423641205,
0.00792296975851059,
-0.36558660864830017,
0.09754905849695206,
-0.10309717059135437,
-0.2655680775642395,
-0.0031702183187007904,
-0.211654931306839,
0.11130944639444351,
0.10974976420402527,
0.1644178330898285,
-0.1983312964439392,
-0.0019175782799720764,
0.2205997109413147,
-0.3111982047557831,
0.3991577923297882,
-0.24424238502979279,
-0.01849055103957653,
0.02902922034263611,
0.35713207721710205,
0.3908424377441406,
-0.27590107917785645,
-0.16444450616836548,
0.23479518294334412,
0.022370383143424988,
-0.290648877620697,
-0.2894760072231293,
0.31550395488739014,
0.16784517467021942,
-0.3867717385292053,
0.002417454496026039,
-0.2825698256492615,
0.030420150607824326,
-0.032820962369441986,
0.1935180276632309,
0.527335524559021,
-0.1704321801662445,
0.3984833359718323,
-0.26109805703163147,
0.11004062741994858,
0.025460094213485718,
0.14518588781356812,
0.0004747360944747925,
-0.1778210699558258,
0.3125908374786377,
0.31074345111846924,
0.11200027167797089,
0.06752707809209824,
-0.12413360923528671,
-0.050155527889728546,
0.29827681183815,
0.011672012507915497,
0.10620557516813278,
0.049867596477270126,
-0.0823497474193573,
-0.01834392547607422,
0.1508110761642456,
-0.2998585104942322,
0.17139726877212524,
0.13587674498558044,
-0.054796718060970306,
0.01223822869360447,
-0.004969295114278793,
-0.012108195573091507,
0.25571757555007935,
0.0212529506534338,
0.3840556740760803,
0.19203177094459534,
0.001348491758108139,
-0.08902943134307861,
-0.15624772012233734,
-0.10548853129148483,
0.12330594658851624,
0.4478664994239807,
-0.2748394012451172,
0.06270485371351242,
-0.08543303608894348,
0.019741475582122803,
-0.12271302938461304,
-0.3330765962600708,
-0.6193657517433167,
-0.1888410449028015,
0.11142882704734802,
0.0365401990711689,
0.030959486961364746,
0.05615551024675369,
0.14872699975967407,
-0.07035507261753082,
0.22868673503398895,
0.1457812488079071,
0.16936171054840088,
-0.06298229098320007,
-0.18236084282398224,
-0.14824877679347992,
0.19539448618888855,
-0.016338612884283066,
0.04710948467254639,
0.13650080561637878,
-0.09677186608314514,
-0.03259563818573952,
-0.5894052386283875,
0.31065255403518677,
-0.056813813745975494,
0.3301672041416168,
0.04912338778376579,
0.11473572254180908,
-0.0633862316608429,
-0.1362302303314209,
0.19130051136016846,
0.09951275587081909,
-0.2120431363582611,
0.08224762231111526,
-0.08355878293514252,
0.23795586824417114,
-0.13266773521900177,
-0.09505340456962585,
-0.23275312781333923,
-0.41110026836395264,
0.2914523482322693,
-0.19135922193527222,
0.05871355161070824,
0.2794516682624817,
-0.15641441941261292,
-0.020589616149663925,
0.07979811728000641,
-0.13913100957870483,
-0.322467565536499,
0.10247287154197693,
0.3471241593360901,
-0.28418856859207153,
-0.2615581154823303,
-0.23280391097068787,
0.1744871437549591,
0.21096348762512207,
-0.10368365049362183,
-0.4139458239078522,
-0.021609965711832047,
-0.12470460683107376,
0.07976116240024567,
-0.23714374005794525,
0.14708927273750305,
0.37464115023612976,
-0.14691445231437683,
-0.0013900510966777802,
-0.10652319341897964,
-0.12483306229114532,
0.18233747780323029,
-0.09005273878574371,
0.005625665187835693,
-0.04081626236438751,
0.7449670433998108,
-0.14146246016025543,
0.5462420582771301,
0.11663820594549179,
0.04635253921151161,
0.333482563495636,
-0.18536020815372467,
0.36385124921798706,
-0.09257913380861282,
-0.30354976654052734,
0.2539815902709961,
0.2515968978404999,
-0.23978900909423828,
0.16352587938308716,
-0.16276881098747253,
0.09147976338863373,
-0.06578821688890457,
-0.10140561312437057,
0.054939329624176025,
-0.28108009696006775,
-0.11901456862688065,
0.4435960650444031,
0.34014248847961426,
0.07350557297468185,
0.41277337074279785,
-0.08512882888317108,
-0.15780998766422272,
0.10607734322547913,
-0.030228275805711746,
-0.03831230476498604,
0.14158794283866882,
-0.6263697147369385,
-0.43131154775619507,
-0.5289624929428101,
0.41552114486694336,
0.07415834069252014,
0.7487247586250305,
-0.18716752529144287,
0.10062353312969208,
0.0712510198354721,
0.06396225094795227,
0.7198233008384705,
0.20710782706737518,
-0.021300895139575005,
-0.03991656005382538,
-0.14771705865859985,
-0.2423105537891388,
-0.14080066978931427,
-0.027839183807373047,
0.5661056041717529,
0.02406855672597885,
0.6595687866210938,
-0.2567324638366699,
-0.2979438304901123,
0.3916323482990265,
0.13204915821552277,
-0.16797520220279694,
-0.0606120228767395,
-0.19553586840629578,
-0.3098437190055847,
-0.26393720507621765,
0.33793526887893677,
0.1940552294254303,
0.5438347458839417,
-0.12344885617494583,
-0.015889853239059448,
0.16314415633678436,
-0.19433525204658508,
0.10991431772708893,
0.16430018842220306,
0.40074053406715393,
0.0797051191329956,
0.08985669910907745,
0.21128235757350922,
-0.055895306169986725,
0.5950173139572144,
0.10406909883022308,
-0.06041959673166275,
-0.09154023230075836,
0.19391393661499023,
0.0131676085293293,
0.325415700674057,
0.13910254836082458,
0.09675736725330353,
0.10802026093006134,
0.14630818367004395,
0.3830467164516449,
-0.25499898195266724,
-0.027253909036517143,
0.2192222774028778,
0.25641441345214844,
-0.3760877251625061,
0.044660307466983795,
0.05866888165473938,
0.05657997727394104,
-0.01721060276031494,
0.2615417242050171,
0.3256278336048126,
-0.16925489902496338,
0.19657394289970398,
0.4372459352016449,
1.1253494024276733,
-0.2956346273422241,
-0.07804010808467865,
-0.1270177811384201,
-0.33611950278282166,
0.6042554974555969,
-0.26303160190582275,
-0.04624972119927406,
-0.3473004996776581,
-0.1285603940486908,
0.02908145636320114,
-0.18670108914375305,
-0.00977165438234806,
-0.219094917178154,
-0.09976498782634735,
0.15271320939064026,
-0.22510328888893127,
-0.1580950766801834,
-0.21828502416610718,
0.2269459366798401,
0.3224572241306305,
-0.23322084546089172,
-0.15305311977863312,
-0.032768428325653076,
-0.06460587680339813,
0.1714264154434204,
-0.21025331318378448,
-0.172231525182724,
0.197098970413208,
-0.2368190884590149,
-0.22999531030654907,
-0.14150819182395935,
-0.4525684118270874,
0.29463765025138855,
0.02080686017870903,
-0.32272303104400635,
0.33003169298171997,
0.1336202174425125,
0.12281511723995209,
0.43253037333488464,
-0.2202581912279129,
-0.026876918971538544,
-0.00636867992579937,
-0.10939279198646545,
-0.08678911626338959,
0.06745383143424988,
0.04466722905635834,
-0.11347567290067673,
-0.4193345308303833,
0.10085627436637878,
-0.04158612713217735,
-0.03723244369029999,
-0.11821708083152771,
0.1514538824558258,
0.15903207659721375,
-0.2331363558769226,
0.3106337785720825,
0.029277034103870392,
-0.10713852941989899,
-0.2391304075717926,
-0.06054956838488579,
0.11021116375923157,
-0.43077877163887024,
0.019544780254364014,
0.09354884922504425,
-0.4853803515434265,
0.008994979783892632,
0.44142618775367737,
-0.021724320948123932,
-0.1256331205368042,
0.5604748129844666,
0.38702601194381714,
-0.08330095559358597,
-0.08913116157054901,
0.06656001508235931,
0.37948381900787354,
-0.3428507447242737,
-0.02067812718451023,
-0.026881545782089233,
0.03663825988769531,
-0.03188546746969223,
0.07719351351261139,
0.14659082889556885,
-0.005567565560340881,
-0.10012505948543549,
-0.49277442693710327,
-0.45021817088127136,
0.10503604263067245,
-0.14111950993537903,
0.09197629988193512,
0.17323046922683716,
0.05336916446685791,
-0.21244308352470398,
-0.061937712132930756,
-0.15852169692516327,
-0.06348562240600586,
-0.42073315382003784,
0.23240862786769867,
0.10087374597787857,
-0.4312162399291992,
0.03964477777481079,
-0.023310624063014984,
-0.09351953864097595,
0.19028262794017792,
-0.317238986492157,
-0.0028023943305015564,
-0.15535423159599304,
0.23936253786087036,
-0.09555014967918396,
-0.5256474018096924,
0.002838004380464554,
-0.1402631253004074,
-0.12862485647201538,
-0.14502489566802979,
-0.06846459209918976,
0.17215880751609802,
0.06603236496448517,
-0.28441211581230164,
0.2785301208496094,
-0.2525462806224823,
-0.1802474409341812,
0.07355007529258728,
0.2667730152606964,
0.18055202066898346,
-0.0312234815210104,
0.42722994089126587,
0.04696988686919212,
-0.1794162541627884,
-0.444358766078949,
0.08446471393108368,
0.2403591126203537,
-0.30848583579063416,
0.08180703222751617,
-0.22725564241409302,
-0.10024014860391617,
0.46247461438179016,
0.43953412771224976,
0.3952622413635254,
0.005478668957948685,
-0.06401027739048004,
0.2593306005001068,
0.06969121843576431,
-0.1671454906463623,
-0.13681179285049438,
0.2515740394592285,
-0.004936352372169495,
-0.06902934610843658,
0.4297882616519928,
0.28082984685897827,
0.09137833118438721,
0.06304396688938141,
0.042307473719120026,
0.26335930824279785,
0.142508864402771,
0.08284607529640198,
0.12847265601158142,
-0.09135519713163376,
-0.03809003159403801,
0.2750038206577301,
-0.06232180446386337,
0.4039418697357178,
0.32543864846229553,
-0.19078314304351807,
0.12841792404651642,
0.4210962653160095,
0.12743130326271057,
0.13662239909172058,
-0.26246339082717896,
-0.1123235821723938,
0.22445324063301086,
0.2346695512533188,
0.11280641704797745,
-0.11134429275989532,
0.7335343956947327,
-0.08745120465755463,
-0.3345423936843872,
-0.025738075375556946,
0.45917201042175293,
-0.27478358149528503,
-0.08902165293693542,
-0.15613387525081635,
-0.13246801495552063,
-0.0322471484541893,
-0.06878906488418579,
0.17788049578666687,
0.0589250773191452,
-0.022229716181755066,
0.023392416536808014,
-0.22225569188594818,
-0.3103191554546356,
-0.5450292825698853,
0.5357747077941895,
-0.029343396425247192,
-0.3221192955970764,
0.33281347155570984,
0.38622888922691345,
-0.10732783377170563,
0.16935473680496216,
0.3321021795272827,
0.5232435464859009,
0.23270012438297272,
-0.1036636009812355,
-0.07962489128112793,
0.06393556296825409,
0.15876677632331848,
-0.0327845998108387,
-0.08394840359687805,
0.08795484900474548,
0.13561272621154785,
0.08774535357952118,
-0.06674516201019287,
-0.0521092414855957,
-0.04493916779756546,
0.20361806452274323,
0.059541936963796616,
0.09976470470428467,
-0.544407844543457,
-0.15487249195575714,
-0.13108770549297333,
-0.32982316613197327,
0.02883804589509964,
-0.14548088610172272,
0.2842450737953186,
0.3009549081325531,
-0.0438532680273056,
0.033954184502363205,
0.036765724420547485,
0.0023882724344730377,
-0.18562380969524384,
0.409200519323349,
0.4066255986690521,
0.011280439794063568,
-0.2685205042362213,
-0.13448919355869293,
-0.4065999984741211,
0.24261386692523956,
-0.31824955344200134,
-0.10873043537139893,
0.41685932874679565,
0.1510162651538849,
0.038254182785749435,
0.045190081000328064,
0.4998103380203247,
-0.24657011032104492,
-0.13619352877140045,
0.2110147625207901,
-0.323779821395874,
-0.03807757794857025,
-0.2183675318956375,
-0.05809424817562103,
0.15897582471370697,
0.013718217611312866,
0.32723090052604675,
-0.057099848985672,
-0.07973611354827881,
-0.30923324823379517,
0.22657540440559387,
-0.34287434816360474,
-0.09711330384016037,
0.18312382698059082,
0.40925970673561096,
0.260373055934906,
0.14658500254154205,
0.08634606003761292,
0.17153427004814148,
-0.2983759343624115,
-0.0559379868209362,
0.2614251971244812,
0.025976993143558502,
0.018819577991962433,
-0.12802349030971527,
-0.7292591333389282,
-0.4894469082355499,
0.16183100640773773,
0.018607132136821747,
-0.21612028777599335,
-0.2587125897407532,
0.32207709550857544,
-0.08697675168514252,
0.018175311386585236,
0.14647626876831055,
0.31365129351615906,
0.3915124833583832,
0.24258458614349365,
-0.26417070627212524,
-0.414734810590744,
0.6981275081634521,
-0.5851549506187439,
-0.2028038501739502,
-0.20273947715759277,
0.22334052622318268,
0.5235946178436279,
-0.3709135055541992,
-0.31158798933029175,
-0.051318682730197906,
0.21268031001091003,
0.2346116602420807,
-0.43005597591400146,
-0.047907453030347824,
-0.2759913504123688,
-0.08745536208152771,
0.026260249316692352,
-0.025526635348796844,
0.16173624992370605,
-0.2601891756057739,
0.2698342204093933,
-0.047677963972091675
] |
https://github.com/huggingface/datasets/issues/2056 | as per https://github.com/huggingface/tokenizers/issues/626 this looks like to be the tokenizer bug, I therefore, reported it there https://github.com/huggingface/tokenizers/issues/626 and I am closing this one. | issue with opus100/en-fr dataset | Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
` | 23 | issue with opus100/en-fr dataset
Hi
I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this?
Thanks a lot @lhoestq for your help in advance.
`
thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s]
Traceback (most recent call last):
File "run_mlm.py", line 550, in <module>
main()
File "run_mlm.py", line 412, in main
in zip(data_args.dataset_name, data_args.dataset_config_name)]
File "run_mlm.py", line 411, in <listcomp>
logger) for dataset_name, dataset_config_name\
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset
load_from_cache_file=not data_args.overwrite_cache,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp>
for k, dataset in self.items()
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map
update_data=update_data,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper
out = func(self, *args, **kwargs)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single
batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs
function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus
**kwargs,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus
is_pretokenized=is_split_into_words,
pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617
`
as per https://github.com/huggingface/tokenizers/issues/626 this looks like to be the tokenizer bug, I therefore, reported it there https://github.com/huggingface/tokenizers/issues/626 and I am closing this one. | [
-0.41173648834228516,
-0.1673513799905777,
-0.01564515009522438,
0.39724838733673096,
0.11825765669345856,
0.08237646520137787,
0.1922522336244583,
0.28199779987335205,
-0.1431499719619751,
0.25799307227134705,
-0.24243488907814026,
-0.024896178394556046,
0.132223442196846,
0.38342130184173584,
-0.23991364240646362,
-0.17258547246456146,
-0.07827191054821014,
0.12080921232700348,
-0.41650718450546265,
-0.12028925865888596,
-0.45594823360443115,
0.22388337552547455,
-0.15639269351959229,
0.2297668308019638,
0.31866076588630676,
-0.07025551795959473,
0.15184462070465088,
0.057933829724788666,
-0.2905828356742859,
-0.3938673138618469,
-0.15120193362236023,
-0.2992527484893799,
0.39835643768310547,
0.24866031110286713,
-0.00012405679444782436,
0.013962551951408386,
0.1579873412847519,
-0.03846215456724167,
0.08095946907997131,
-0.059217795729637146,
0.10003775358200073,
0.14733223617076874,
-0.02871253713965416,
-0.3051404654979706,
0.03718145936727524,
-0.22510108351707458,
-0.37088802456855774,
-0.2680356502532959,
0.28802162408828735,
0.3753129541873932,
0.08677588403224945,
0.5228811502456665,
0.33736127614974976,
-0.146207794547081,
0.18301403522491455,
-0.04229818284511566,
0.05866190791130066,
-0.06936176121234894,
0.3234793543815613,
-0.22807806730270386,
0.36842429637908936,
0.2993505001068115,
-0.11020459979772568,
-0.13651444017887115,
0.22037670016288757,
-0.2563658356666565,
0.6804654002189636,
-0.5535477995872498,
0.011116249486804008,
0.3440341353416443,
0.07399025559425354,
0.023066794499754906,
-0.07224757969379425,
0.028432324528694153,
-0.014741592109203339,
-0.812233567237854,
-0.0916820615530014,
0.11364984512329102,
-0.04266390949487686,
0.16671153903007507,
-0.3281249701976776,
0.05663552135229111,
0.08465120196342468,
0.18013525009155273,
0.03430250287055969,
0.33272048830986023,
0.006103642284870148,
0.2988552153110504,
0.25027284026145935,
-0.2295200377702713,
-0.40942272543907166,
0.2705802917480469,
-0.1085323840379715,
0.28716570138931274,
-0.4670933485031128,
-0.04398886114358902,
0.07007438689470291,
-0.13623641431331635,
0.4946715831756592,
0.2132565677165985,
-0.5131158828735352,
-0.16268041729927063,
0.41003891825675964,
-0.006746208295226097,
0.28499311208724976,
0.2695946991443634,
-0.011115409433841705,
0.02303275838494301,
0.20296594500541687,
0.021527554839849472,
0.12237841635942459,
-0.057264991104602814,
-0.040500458329916,
-0.2940117120742798,
-0.25618597865104675,
-0.0725325271487236,
0.13846413791179657,
-0.48927974700927734,
-0.240901917219162,
0.3880999684333801,
-0.3146693706512451,
-0.059529416263103485,
0.5197179913520813,
0.33393025398254395,
0.19662925601005554,
-0.11512874066829681,
-0.09283540397882462,
0.27908530831336975,
-0.3406357169151306,
0.00218302384018898,
-0.018069608137011528,
-0.031798362731933594,
-0.03664316236972809,
0.015990138053894043,
-0.033779606223106384,
-0.6434459090232849,
0.26844778656959534,
0.16194161772727966,
0.5190972089767456,
-0.4269458055496216,
0.11982348561286926,
-0.2199242264032364,
-0.016850393265485764,
0.2775987684726715,
-0.0571955069899559,
0.15401247143745422,
0.36323270201683044,
0.0032503679394721985,
-0.05903849005699158,
0.05319267511367798,
-0.46135351061820984,
-0.4059741497039795,
-0.3444899618625641,
0.04951005429029465,
-0.13873371481895447,
0.4478001594543457,
0.17568953335285187,
-0.016650404781103134,
0.4423442482948303,
-0.1872701346874237,
0.20435211062431335,
-0.18262867629528046,
-0.30206018686294556,
0.051862966269254684,
0.38997411727905273,
0.1399206966161728,
0.026558414101600647,
0.14844165742397308,
0.21942371129989624,
0.212754026055336,
0.3668287396430969,
0.5186989903450012,
-0.2727023661136627,
-0.0015198122709989548,
-0.4783478081226349,
0.23124872148036957,
0.0005182921886444092,
-0.4624030292034149,
-0.24266782402992249,
-0.1247510313987732,
-0.2872539162635803,
-0.2944652736186981,
0.055365633219480515,
-0.17813867330551147,
0.6758931875228882,
-0.04526736959815025,
0.21899093687534332,
0.07321690022945404,
0.04595255106687546,
-0.186319500207901,
-0.2554854154586792,
0.007721945643424988,
0.351378858089447,
-0.19881314039230347,
0.008260943926870823,
-0.023290637880563736,
-0.04938207566738129,
-0.14823390543460846,
0.11013392359018326,
-0.06054382771253586,
0.13232488930225372,
0.26012736558914185,
0.21079418063163757,
0.07425984740257263,
0.24878734350204468,
-0.06112409010529518,
0.15357816219329834,
-0.0508141815662384,
-0.46939489245414734,
0.2518244981765747,
-0.07836030423641205,
0.00792296975851059,
-0.36558660864830017,
0.09754905849695206,
-0.10309717059135437,
-0.2655680775642395,
-0.0031702183187007904,
-0.211654931306839,
0.11130944639444351,
0.10974976420402527,
0.1644178330898285,
-0.1983312964439392,
-0.0019175782799720764,
0.2205997109413147,
-0.3111982047557831,
0.3991577923297882,
-0.24424238502979279,
-0.01849055103957653,
0.02902922034263611,
0.35713207721710205,
0.3908424377441406,
-0.27590107917785645,
-0.16444450616836548,
0.23479518294334412,
0.022370383143424988,
-0.290648877620697,
-0.2894760072231293,
0.31550395488739014,
0.16784517467021942,
-0.3867717385292053,
0.002417454496026039,
-0.2825698256492615,
0.030420150607824326,
-0.032820962369441986,
0.1935180276632309,
0.527335524559021,
-0.1704321801662445,
0.3984833359718323,
-0.26109805703163147,
0.11004062741994858,
0.025460094213485718,
0.14518588781356812,
0.0004747360944747925,
-0.1778210699558258,
0.3125908374786377,
0.31074345111846924,
0.11200027167797089,
0.06752707809209824,
-0.12413360923528671,
-0.050155527889728546,
0.29827681183815,
0.011672012507915497,
0.10620557516813278,
0.049867596477270126,
-0.0823497474193573,
-0.01834392547607422,
0.1508110761642456,
-0.2998585104942322,
0.17139726877212524,
0.13587674498558044,
-0.054796718060970306,
0.01223822869360447,
-0.004969295114278793,
-0.012108195573091507,
0.25571757555007935,
0.0212529506534338,
0.3840556740760803,
0.19203177094459534,
0.001348491758108139,
-0.08902943134307861,
-0.15624772012233734,
-0.10548853129148483,
0.12330594658851624,
0.4478664994239807,
-0.2748394012451172,
0.06270485371351242,
-0.08543303608894348,
0.019741475582122803,
-0.12271302938461304,
-0.3330765962600708,
-0.6193657517433167,
-0.1888410449028015,
0.11142882704734802,
0.0365401990711689,
0.030959486961364746,
0.05615551024675369,
0.14872699975967407,
-0.07035507261753082,
0.22868673503398895,
0.1457812488079071,
0.16936171054840088,
-0.06298229098320007,
-0.18236084282398224,
-0.14824877679347992,
0.19539448618888855,
-0.016338612884283066,
0.04710948467254639,
0.13650080561637878,
-0.09677186608314514,
-0.03259563818573952,
-0.5894052386283875,
0.31065255403518677,
-0.056813813745975494,
0.3301672041416168,
0.04912338778376579,
0.11473572254180908,
-0.0633862316608429,
-0.1362302303314209,
0.19130051136016846,
0.09951275587081909,
-0.2120431363582611,
0.08224762231111526,
-0.08355878293514252,
0.23795586824417114,
-0.13266773521900177,
-0.09505340456962585,
-0.23275312781333923,
-0.41110026836395264,
0.2914523482322693,
-0.19135922193527222,
0.05871355161070824,
0.2794516682624817,
-0.15641441941261292,
-0.020589616149663925,
0.07979811728000641,
-0.13913100957870483,
-0.322467565536499,
0.10247287154197693,
0.3471241593360901,
-0.28418856859207153,
-0.2615581154823303,
-0.23280391097068787,
0.1744871437549591,
0.21096348762512207,
-0.10368365049362183,
-0.4139458239078522,
-0.021609965711832047,
-0.12470460683107376,
0.07976116240024567,
-0.23714374005794525,
0.14708927273750305,
0.37464115023612976,
-0.14691445231437683,
-0.0013900510966777802,
-0.10652319341897964,
-0.12483306229114532,
0.18233747780323029,
-0.09005273878574371,
0.005625665187835693,
-0.04081626236438751,
0.7449670433998108,
-0.14146246016025543,
0.5462420582771301,
0.11663820594549179,
0.04635253921151161,
0.333482563495636,
-0.18536020815372467,
0.36385124921798706,
-0.09257913380861282,
-0.30354976654052734,
0.2539815902709961,
0.2515968978404999,
-0.23978900909423828,
0.16352587938308716,
-0.16276881098747253,
0.09147976338863373,
-0.06578821688890457,
-0.10140561312437057,
0.054939329624176025,
-0.28108009696006775,
-0.11901456862688065,
0.4435960650444031,
0.34014248847961426,
0.07350557297468185,
0.41277337074279785,
-0.08512882888317108,
-0.15780998766422272,
0.10607734322547913,
-0.030228275805711746,
-0.03831230476498604,
0.14158794283866882,
-0.6263697147369385,
-0.43131154775619507,
-0.5289624929428101,
0.41552114486694336,
0.07415834069252014,
0.7487247586250305,
-0.18716752529144287,
0.10062353312969208,
0.0712510198354721,
0.06396225094795227,
0.7198233008384705,
0.20710782706737518,
-0.021300895139575005,
-0.03991656005382538,
-0.14771705865859985,
-0.2423105537891388,
-0.14080066978931427,
-0.027839183807373047,
0.5661056041717529,
0.02406855672597885,
0.6595687866210938,
-0.2567324638366699,
-0.2979438304901123,
0.3916323482990265,
0.13204915821552277,
-0.16797520220279694,
-0.0606120228767395,
-0.19553586840629578,
-0.3098437190055847,
-0.26393720507621765,
0.33793526887893677,
0.1940552294254303,
0.5438347458839417,
-0.12344885617494583,
-0.015889853239059448,
0.16314415633678436,
-0.19433525204658508,
0.10991431772708893,
0.16430018842220306,
0.40074053406715393,
0.0797051191329956,
0.08985669910907745,
0.21128235757350922,
-0.055895306169986725,
0.5950173139572144,
0.10406909883022308,
-0.06041959673166275,
-0.09154023230075836,
0.19391393661499023,
0.0131676085293293,
0.325415700674057,
0.13910254836082458,
0.09675736725330353,
0.10802026093006134,
0.14630818367004395,
0.3830467164516449,
-0.25499898195266724,
-0.027253909036517143,
0.2192222774028778,
0.25641441345214844,
-0.3760877251625061,
0.044660307466983795,
0.05866888165473938,
0.05657997727394104,
-0.01721060276031494,
0.2615417242050171,
0.3256278336048126,
-0.16925489902496338,
0.19657394289970398,
0.4372459352016449,
1.1253494024276733,
-0.2956346273422241,
-0.07804010808467865,
-0.1270177811384201,
-0.33611950278282166,
0.6042554974555969,
-0.26303160190582275,
-0.04624972119927406,
-0.3473004996776581,
-0.1285603940486908,
0.02908145636320114,
-0.18670108914375305,
-0.00977165438234806,
-0.219094917178154,
-0.09976498782634735,
0.15271320939064026,
-0.22510328888893127,
-0.1580950766801834,
-0.21828502416610718,
0.2269459366798401,
0.3224572241306305,
-0.23322084546089172,
-0.15305311977863312,
-0.032768428325653076,
-0.06460587680339813,
0.1714264154434204,
-0.21025331318378448,
-0.172231525182724,
0.197098970413208,
-0.2368190884590149,
-0.22999531030654907,
-0.14150819182395935,
-0.4525684118270874,
0.29463765025138855,
0.02080686017870903,
-0.32272303104400635,
0.33003169298171997,
0.1336202174425125,
0.12281511723995209,
0.43253037333488464,
-0.2202581912279129,
-0.026876918971538544,
-0.00636867992579937,
-0.10939279198646545,
-0.08678911626338959,
0.06745383143424988,
0.04466722905635834,
-0.11347567290067673,
-0.4193345308303833,
0.10085627436637878,
-0.04158612713217735,
-0.03723244369029999,
-0.11821708083152771,
0.1514538824558258,
0.15903207659721375,
-0.2331363558769226,
0.3106337785720825,
0.029277034103870392,
-0.10713852941989899,
-0.2391304075717926,
-0.06054956838488579,
0.11021116375923157,
-0.43077877163887024,
0.019544780254364014,
0.09354884922504425,
-0.4853803515434265,
0.008994979783892632,
0.44142618775367737,
-0.021724320948123932,
-0.1256331205368042,
0.5604748129844666,
0.38702601194381714,
-0.08330095559358597,
-0.08913116157054901,
0.06656001508235931,
0.37948381900787354,
-0.3428507447242737,
-0.02067812718451023,
-0.026881545782089233,
0.03663825988769531,
-0.03188546746969223,
0.07719351351261139,
0.14659082889556885,
-0.005567565560340881,
-0.10012505948543549,
-0.49277442693710327,
-0.45021817088127136,
0.10503604263067245,
-0.14111950993537903,
0.09197629988193512,
0.17323046922683716,
0.05336916446685791,
-0.21244308352470398,
-0.061937712132930756,
-0.15852169692516327,
-0.06348562240600586,
-0.42073315382003784,
0.23240862786769867,
0.10087374597787857,
-0.4312162399291992,
0.03964477777481079,
-0.023310624063014984,
-0.09351953864097595,
0.19028262794017792,
-0.317238986492157,
-0.0028023943305015564,
-0.15535423159599304,
0.23936253786087036,
-0.09555014967918396,
-0.5256474018096924,
0.002838004380464554,
-0.1402631253004074,
-0.12862485647201538,
-0.14502489566802979,
-0.06846459209918976,
0.17215880751609802,
0.06603236496448517,
-0.28441211581230164,
0.2785301208496094,
-0.2525462806224823,
-0.1802474409341812,
0.07355007529258728,
0.2667730152606964,
0.18055202066898346,
-0.0312234815210104,
0.42722994089126587,
0.04696988686919212,
-0.1794162541627884,
-0.444358766078949,
0.08446471393108368,
0.2403591126203537,
-0.30848583579063416,
0.08180703222751617,
-0.22725564241409302,
-0.10024014860391617,
0.46247461438179016,
0.43953412771224976,
0.3952622413635254,
0.005478668957948685,
-0.06401027739048004,
0.2593306005001068,
0.06969121843576431,
-0.1671454906463623,
-0.13681179285049438,
0.2515740394592285,
-0.004936352372169495,
-0.06902934610843658,
0.4297882616519928,
0.28082984685897827,
0.09137833118438721,
0.06304396688938141,
0.042307473719120026,
0.26335930824279785,
0.142508864402771,
0.08284607529640198,
0.12847265601158142,
-0.09135519713163376,
-0.03809003159403801,
0.2750038206577301,
-0.06232180446386337,
0.4039418697357178,
0.32543864846229553,
-0.19078314304351807,
0.12841792404651642,
0.4210962653160095,
0.12743130326271057,
0.13662239909172058,
-0.26246339082717896,
-0.1123235821723938,
0.22445324063301086,
0.2346695512533188,
0.11280641704797745,
-0.11134429275989532,
0.7335343956947327,
-0.08745120465755463,
-0.3345423936843872,
-0.025738075375556946,
0.45917201042175293,
-0.27478358149528503,
-0.08902165293693542,
-0.15613387525081635,
-0.13246801495552063,
-0.0322471484541893,
-0.06878906488418579,
0.17788049578666687,
0.0589250773191452,
-0.022229716181755066,
0.023392416536808014,
-0.22225569188594818,
-0.3103191554546356,
-0.5450292825698853,
0.5357747077941895,
-0.029343396425247192,
-0.3221192955970764,
0.33281347155570984,
0.38622888922691345,
-0.10732783377170563,
0.16935473680496216,
0.3321021795272827,
0.5232435464859009,
0.23270012438297272,
-0.1036636009812355,
-0.07962489128112793,
0.06393556296825409,
0.15876677632331848,
-0.0327845998108387,
-0.08394840359687805,
0.08795484900474548,
0.13561272621154785,
0.08774535357952118,
-0.06674516201019287,
-0.0521092414855957,
-0.04493916779756546,
0.20361806452274323,
0.059541936963796616,
0.09976470470428467,
-0.544407844543457,
-0.15487249195575714,
-0.13108770549297333,
-0.32982316613197327,
0.02883804589509964,
-0.14548088610172272,
0.2842450737953186,
0.3009549081325531,
-0.0438532680273056,
0.033954184502363205,
0.036765724420547485,
0.0023882724344730377,
-0.18562380969524384,
0.409200519323349,
0.4066255986690521,
0.011280439794063568,
-0.2685205042362213,
-0.13448919355869293,
-0.4065999984741211,
0.24261386692523956,
-0.31824955344200134,
-0.10873043537139893,
0.41685932874679565,
0.1510162651538849,
0.038254182785749435,
0.045190081000328064,
0.4998103380203247,
-0.24657011032104492,
-0.13619352877140045,
0.2110147625207901,
-0.323779821395874,
-0.03807757794857025,
-0.2183675318956375,
-0.05809424817562103,
0.15897582471370697,
0.013718217611312866,
0.32723090052604675,
-0.057099848985672,
-0.07973611354827881,
-0.30923324823379517,
0.22657540440559387,
-0.34287434816360474,
-0.09711330384016037,
0.18312382698059082,
0.40925970673561096,
0.260373055934906,
0.14658500254154205,
0.08634606003761292,
0.17153427004814148,
-0.2983759343624115,
-0.0559379868209362,
0.2614251971244812,
0.025976993143558502,
0.018819577991962433,
-0.12802349030971527,
-0.7292591333389282,
-0.4894469082355499,
0.16183100640773773,
0.018607132136821747,
-0.21612028777599335,
-0.2587125897407532,
0.32207709550857544,
-0.08697675168514252,
0.018175311386585236,
0.14647626876831055,
0.31365129351615906,
0.3915124833583832,
0.24258458614349365,
-0.26417070627212524,
-0.414734810590744,
0.6981275081634521,
-0.5851549506187439,
-0.2028038501739502,
-0.20273947715759277,
0.22334052622318268,
0.5235946178436279,
-0.3709135055541992,
-0.31158798933029175,
-0.051318682730197906,
0.21268031001091003,
0.2346116602420807,
-0.43005597591400146,
-0.047907453030347824,
-0.2759913504123688,
-0.08745536208152771,
0.026260249316692352,
-0.025526635348796844,
0.16173624992370605,
-0.2601891756057739,
0.2698342204093933,
-0.047677963972091675
] |
https://github.com/huggingface/datasets/issues/2055 | I tried this way, but when there is a mapping process to the dataset, it again uses a random cache name. atm, I am trying to use the following method by setting an exact cache file,
```
dataset_with_embedding =csv_dataset.map(
partial(self.embed, ctx_encoder=ctx_encoder, ctx_tokenizer=self.context_tokenizer),
batched=True,
batch_size=1,
features=new_features,
cache_file_name=cache_arrow_path,
load_from_cache_file=False
)
```
So here we set a cache_file_name , after this it uses the same file name when saving again and again. | is there a way to override a dataset object saved with save_to_disk? | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 69 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
I tried this way, but when there is a mapping process to the dataset, it again uses a random cache name. atm, I am trying to use the following method by setting an exact cache file,
```
dataset_with_embedding =csv_dataset.map(
partial(self.embed, ctx_encoder=ctx_encoder, ctx_tokenizer=self.context_tokenizer),
batched=True,
batch_size=1,
features=new_features,
cache_file_name=cache_arrow_path,
load_from_cache_file=False
)
```
So here we set a cache_file_name , after this it uses the same file name when saving again and again. | [
0.01877675950527191,
-0.15488958358764648,
-0.014641482383012772,
-0.03985309228301048,
0.24491699039936066,
0.27030324935913086,
0.14376652240753174,
0.12786026298999786,
0.1100357323884964,
0.1771552860736847,
0.3504514992237091,
0.45321065187454224,
-0.20381209254264832,
-0.036236733198165894,
0.2456676959991455,
0.15281155705451965,
0.474881112575531,
-0.020253527909517288,
-0.025607064366340637,
0.2713930904865265,
-0.4494592547416687,
0.2261943370103836,
0.2889961004257202,
-0.04244839400053024,
-0.15775136649608612,
-0.10205530375242233,
0.05107143521308899,
-0.19240085780620575,
0.17306740581989288,
-0.40099847316741943,
0.287232905626297,
0.17241594195365906,
0.00013265013694763184,
0.14868837594985962,
-0.00012018569395877421,
-0.17888358235359192,
-0.03008425235748291,
-0.11758048832416534,
-0.24674668908119202,
0.1999175250530243,
-0.20805872976779938,
-0.30767524242401123,
0.05577845871448517,
-0.5268293619155884,
0.2334901988506317,
0.06895163655281067,
0.23015771806240082,
-0.38178640604019165,
0.1915486752986908,
-0.14450472593307495,
0.10072959959506989,
-0.1398894488811493,
0.01792837679386139,
0.24298563599586487,
0.06843313574790955,
-0.025823168456554413,
-0.2400592416524887,
0.29392653703689575,
0.02571682631969452,
0.3028871417045593,
0.10996104776859283,
0.05428668484091759,
-0.16942131519317627,
0.04805143550038338,
0.6855140328407288,
-0.02583998069167137,
-0.22123873233795166,
-0.049067605286836624,
0.21122479438781738,
0.03019285947084427,
0.6607097387313843,
-0.44772252440452576,
-0.14428797364234924,
-0.060102853924036026,
-0.059160053730010986,
-0.4760400056838989,
0.23449578881263733,
-0.2521854043006897,
0.09125883877277374,
0.12441703677177429,
-0.14751695096492767,
-0.5672840476036072,
-0.13889876008033752,
0.04130695015192032,
0.24106623232364655,
-0.43220236897468567,
-0.1471637487411499,
0.22764351963996887,
0.20357957482337952,
-0.0040798853151500225,
0.4306218922138214,
-0.39345523715019226,
-0.3842323124408722,
-0.20308297872543335,
-0.20610260963439941,
-0.14626844227313995,
-0.38509151339530945,
0.29053258895874023,
0.02562437206506729,
0.19891144335269928,
0.46178334951400757,
0.22646421194076538,
-0.000042341649532318115,
0.24839983880519867,
0.04274286702275276,
0.28690192103385925,
0.050777629017829895,
0.014792431145906448,
0.0957552120089531,
-0.22342054545879364,
-0.2146577090024948,
-0.14359170198440552,
0.26767024397850037,
-0.3017749488353729,
0.6434222459793091,
-0.12056879699230194,
0.0917804092168808,
-0.1733267456293106,
0.18079547584056854,
-0.0465305894613266,
0.22989004850387573,
0.21853859722614288,
-0.11403843760490417,
-0.017294201999902725,
0.01658683270215988,
-0.028529688715934753,
-0.11959787458181381,
0.009990479797124863,
0.14715462923049927,
0.1509021520614624,
0.022468693554401398,
-0.1985744684934616,
0.18764632940292358,
0.42620187997817993,
0.11722852289676666,
0.061921533197164536,
0.08144630491733551,
-0.17453080415725708,
0.07543779909610748,
-0.15346059203147888,
0.2329118847846985,
0.0419623889029026,
0.40060099959373474,
-0.11498752236366272,
-0.13123705983161926,
0.2729933559894562,
0.023958144709467888,
-0.22957491874694824,
-0.1466408669948578,
0.22716163098812103,
-0.36770886182785034,
-0.3400830030441284,
0.10101079940795898,
0.02359822392463684,
-0.35797059535980225,
-0.07785071432590485,
-0.5644941926002502,
0.053348053246736526,
0.062416646629571915,
-0.2227301001548767,
0.24587564170360565,
0.28758299350738525,
-0.18625077605247498,
-0.3175991475582123,
-0.08985535800457001,
0.26367324590682983,
-0.3861022889614105,
-0.002346716821193695,
-0.0945788025856018,
0.06422177702188492,
-0.33520281314849854,
-0.06237301230430603,
-0.13913771510124207,
-0.2302372306585312,
-0.300942063331604,
-0.06634316593408585,
0.31271547079086304,
-0.2570266127586365,
-0.6499446034431458,
-0.04191185534000397,
-0.045767396688461304,
-0.0369238555431366,
0.13324055075645447,
0.3977475166320801,
0.2084972858428955,
-0.017514988780021667,
-0.3062954545021057,
0.06421960145235062,
0.035924166440963745,
-0.24911004304885864,
-0.15345408022403717,
-0.1586134135723114,
-0.1160493791103363,
-0.27026990056037903,
-0.25790950655937195,
0.3812936544418335,
-0.04600590094923973,
-0.18067871034145355,
0.05448448657989502,
0.07456899434328079,
0.2152923047542572,
0.45881444215774536,
0.395997554063797,
-0.17526312172412872,
-0.05872026085853577,
-0.10273200273513794,
-0.4525175988674164,
0.0595373809337616,
0.43587154150009155,
-0.4237767159938812,
0.10292018949985504,
-0.2893725335597992,
0.030379004776477814,
0.058804549276828766,
-0.18575826287269592,
0.0930103212594986,
-0.04947067052125931,
0.32066312432289124,
0.06824290752410889,
-0.1817137598991394,
-0.22546067833900452,
0.3056718707084656,
0.08194954693317413,
0.0807870402932167,
-0.19695939123630524,
-0.08394540846347809,
0.0476202666759491,
-0.09040874242782593,
-0.46442389488220215,
-0.20129308104515076,
0.19872911274433136,
-0.18827615678310394,
-0.16134579479694366,
0.49102917313575745,
-0.19107691943645477,
0.20470969378948212,
0.1569013148546219,
0.4119254946708679,
-0.04117381200194359,
-0.32912304997444153,
0.20223979651927948,
0.09879599511623383,
0.07163363695144653,
0.06592780351638794,
-0.17340087890625,
0.28702497482299805,
0.04870330169796944,
0.07851631939411163,
-0.05998381972312927,
0.13260558247566223,
0.22570990025997162,
-0.03736450523138046,
-0.19950927793979645,
-0.23793712258338928,
-0.34044554829597473,
0.19955208897590637,
0.39604973793029785,
-0.10044262558221817,
-0.11891968548297882,
0.17763975262641907,
0.5097336173057556,
0.03745579719543457,
0.11998242884874344,
-0.0382121242582798,
-0.35502535104751587,
-0.13047556579113007,
-0.09800410270690918,
0.606318473815918,
0.3569961190223694,
0.11721856147050858,
0.057832442224025726,
-0.21373291313648224,
0.11268186569213867,
0.0051049888134002686,
0.24538281559944153,
0.10024301707744598,
0.20059730112552643,
-0.021801002323627472,
0.22792214155197144,
-0.174411803483963,
-0.21179655194282532,
0.17030823230743408,
0.0876714289188385,
-0.039356112480163574,
0.057253457605838776,
0.1778850555419922,
-0.1406293511390686,
-0.0025291666388511658,
-0.3594079315662384,
0.14179953932762146,
-0.33706292510032654,
-0.27885130047798157,
-0.07003875076770782,
0.5343757271766663,
0.08573043346405029,
0.1341635137796402,
-0.0817064568400383,
0.48543256521224976,
-0.18191543221473694,
-0.480211079120636,
-0.06354597210884094,
0.07656551897525787,
-0.12301862239837646,
-0.09750397503376007,
0.019039355218410492,
-0.4540121853351593,
0.27781251072883606,
0.11079635471105576,
0.21130868792533875,
-0.6378805637359619,
0.10112370550632477,
-0.1067347526550293,
0.3585079610347748,
0.24715711176395416,
-0.14796283841133118,
0.11345997452735901,
-0.22188597917556763,
-0.017291773110628128,
-0.07114119082689285,
-0.02293122187256813,
0.07921867072582245,
-0.020404770970344543,
0.03526890277862549,
0.1745040863752365,
0.05406516045331955,
0.12567496299743652,
-0.2316398024559021,
-0.15923245251178741,
0.15516425669193268,
-0.11619627475738525,
-0.005929239094257355,
-0.12075972557067871,
0.0031599625945091248,
-0.058969881385564804,
0.10948868840932846,
-0.45395782589912415,
-0.23082168400287628,
-0.665976345539093,
0.5767187476158142,
-0.2546722888946533,
-0.03100636415183544,
0.10166610777378082,
-0.094305619597435,
-0.010053175501525402,
0.20117369294166565,
-0.3397991359233856,
-0.10341772437095642,
-0.100875623524189,
0.22342880070209503,
0.09485101699829102,
-0.34115225076675415,
0.24154707789421082,
0.5115864276885986,
-0.05404895171523094,
-0.09834260493516922,
-0.550816535949707,
0.25433778762817383,
0.24408836662769318,
0.4389614760875702,
0.35652968287467957,
0.1832326054573059,
0.04261709749698639,
0.4608434736728668,
-0.20742996037006378,
0.02544907107949257,
0.48777803778648376,
0.10067975521087646,
0.390709787607193,
0.051401522010564804,
-0.05895747244358063,
-0.20134058594703674,
-0.3123384118080139,
-0.1426023244857788,
-0.026809588074684143,
-0.011530468240380287,
-0.01566966623067856,
0.23340852558612823,
0.05042784661054611,
-0.029805749654769897,
-0.33466991782188416,
0.0077392589300870895,
-0.29269468784332275,
0.12006792426109314,
0.04336727410554886,
-0.1981487274169922,
-0.4714187979698181,
-0.214931920170784,
0.0872352123260498,
0.3912336528301239,
0.12727372348308563,
-0.08267480134963989,
-0.5049140453338623,
-0.011738840490579605,
-0.48056209087371826,
0.42964738607406616,
-0.2495911419391632,
0.11662109196186066,
0.04421312361955643,
0.058454081416130066,
-0.10808037966489792,
-0.08460348844528198,
0.8759823441505432,
-0.13533882796764374,
0.1624021828174591,
-0.08969011902809143,
0.19077235460281372,
-0.08411529660224915,
0.08783377707004547,
0.42052069306373596,
0.43673402070999146,
-0.2517588436603546,
0.2692507207393646,
0.2571452260017395,
-0.08063802123069763,
-0.11693622171878815,
0.3535146713256836,
-0.5934960246086121,
-0.12064039707183838,
0.21519695222377777,
-0.08269226551055908,
-0.057954542338848114,
-0.35400906205177307,
0.18011623620986938,
0.02306729182600975,
0.10586558282375336,
-0.08195625245571136,
-0.4227648973464966,
-0.03434354439377785,
0.045264534652233124,
-0.2890198528766632,
0.4680197238922119,
-0.1545279622077942,
0.006953351199626923,
-0.08506099134683609,
0.2909592092037201,
0.3853336572647095,
0.2827956974506378,
-0.33843982219696045,
-0.3447605073451996,
-0.06374851614236832,
-0.14119768142700195,
0.1837269365787506,
0.11235426366329193,
-0.060523491352796555,
0.24211335182189941,
0.19796884059906006,
-0.18805204331874847,
-0.005778277292847633,
0.10275459289550781,
-0.09244054555892944,
0.3334354758262634,
-0.15021300315856934,
-0.4014715254306793,
0.37417083978652954,
0.28871220350265503,
-0.006609782576560974,
0.2434086799621582,
0.11077195405960083,
-0.4094179570674896,
0.46833938360214233,
0.023811083287000656,
0.6857131719589233,
0.03289538621902466,
0.37695783376693726,
-0.23155930638313293,
-0.3167062997817993,
0.1525564193725586,
-0.08917387574911118,
0.09092864394187927,
-0.1217389702796936,
-0.22121022641658783,
-0.029122892767190933,
0.09530659019947052,
0.32726386189460754,
0.4822128415107727,
-0.05027377977967262,
0.366199791431427,
-0.15191417932510376,
0.0964507907629013,
-0.2594844102859497,
0.0771624892950058,
-0.17665880918502808,
-0.17690302431583405,
0.14726287126541138,
0.05715245380997658,
0.011742139235138893,
-0.1370297372341156,
0.10000771284103394,
-0.07602749764919281,
0.07868404686450958,
-0.00020378828048706055,
-0.1984480321407318,
-0.22507472336292267,
-0.17406003177165985,
-0.2131839245557785,
-0.24699628353118896,
-0.46276867389678955,
0.012171760201454163,
0.27712616324424744,
0.32720863819122314,
0.07560494542121887,
-0.013924346305429935,
0.18026715517044067,
0.22201745212078094,
0.05467626824975014,
-0.2464648187160492,
-0.07678643614053726,
0.16959528625011444,
0.044829368591308594,
0.043645694851875305,
0.035059764981269836,
0.07267273962497711,
-0.4616365134716034,
0.3340904712677002,
-0.14733290672302246,
0.1642681062221527,
-0.04764057695865631,
-0.5405942797660828,
-0.16174964606761932,
-0.23076733946800232,
-0.32116830348968506,
0.052435681223869324,
-0.1010848730802536,
-0.054255954921245575,
0.35960668325424194,
-0.23788855969905853,
-0.08767830580472946,
0.14085473120212555,
0.3142169117927551,
-0.11578600108623505,
-0.19486552476882935,
0.6367974877357483,
-0.49388980865478516,
0.04823700338602066,
-0.10501635074615479,
0.2423696219921112,
0.10088975727558136,
-0.07805977016687393,
0.17577379941940308,
-0.1397126317024231,
0.11407816410064697,
-0.0665978193283081,
-0.13688594102859497,
0.11697065085172653,
0.32026493549346924,
-0.2614653706550598,
-0.19220560789108276,
-0.4788094162940979,
-0.10562566667795181,
0.2239226996898651,
0.33667996525764465,
-0.0704573392868042,
-0.4245382249355316,
-0.14245742559432983,
-0.047673650085926056,
-0.1446591466665268,
0.038507379591464996,
0.01996145397424698,
-0.03279337286949158,
0.21659550070762634,
0.4628361761569977,
0.058529652655124664,
-0.09027686715126038,
-0.07175420224666595,
-0.022866012528538704,
-0.06309022009372711,
-0.1342511773109436,
-0.2262951135635376,
0.18885883688926697,
-0.1266929805278778,
-0.23237422108650208,
-0.17360979318618774,
-0.3062690496444702,
0.23623211681842804,
-0.0703762024641037,
-0.23084692656993866,
0.18916526436805725,
0.1071474626660347,
0.28600025177001953,
-0.033535588532686234,
0.11150003969669342,
0.014768458902835846,
-0.16621126234531403,
0.2184540331363678,
0.38393205404281616,
0.1790778934955597,
0.21594788134098053,
-0.05187799036502838,
-0.06886129826307297,
-0.14276333153247833,
-0.11996953189373016,
-0.05187392234802246,
-0.01876862719655037,
-0.1914042979478836,
-0.10523039102554321,
-0.072073794901371,
0.4625987410545349,
0.10934276133775711,
0.010647418908774853,
-0.22171056270599365,
-0.1483028382062912,
0.3819296956062317,
0.05568341910839081,
0.06220138072967529,
-0.35569462180137634,
0.48379847407341003,
-0.3391481041908264,
0.02610155940055847,
0.11974853277206421,
0.1509523093700409,
0.0948636531829834,
-0.2867467403411865,
-0.10768233239650726,
0.3201234042644501,
-0.416261225938797,
0.2764835059642792,
0.11645006388425827,
0.1428447663784027,
0.12206322699785233,
0.46233248710632324,
0.387182354927063,
0.3841487765312195,
0.7751975059509277,
-0.01125701516866684,
0.006685227155685425,
0.45954543352127075,
-0.08496301621198654,
-0.010280083864927292,
-0.16493116319179535,
0.14950117468833923,
-0.10435569286346436,
-0.06561547517776489,
0.5459072589874268,
0.44207456707954407,
0.007658947259187698,
0.009714502841234207,
-0.3250496983528137,
0.09481465816497803,
-0.009107625111937523,
0.06004032492637634,
-0.38814112544059753,
0.2045377939939499,
0.020789161324501038,
0.17572073638439178,
0.23215553164482117,
-0.20622994005680084,
-0.31995657086372375,
0.3652496933937073,
-0.1482037752866745,
0.04979429021477699,
0.23166432976722717,
0.2691745460033417,
-0.11201047152280807,
0.1832074522972107,
-0.03725564107298851,
-0.12611471116542816,
-0.30103346705436707,
-0.07761026918888092,
0.09200677275657654,
-0.02614927664399147,
-0.19294743239879608,
-0.10823756456375122,
0.038724809885025024,
0.16818590462207794,
-0.03581608459353447,
-0.0256357304751873,
-0.11809390038251877,
-0.31947335600852966,
0.010824348777532578,
-0.32047009468078613,
0.14948047697544098,
0.05596262961626053,
0.05986267700791359,
0.19303208589553833,
0.2173728048801422,
0.45064467191696167,
-0.2284136712551117,
-0.13949626684188843,
0.29048654437065125,
-0.41476956009864807,
-0.010719744488596916,
0.11113403737545013,
-0.07370220869779587,
-0.38332483172416687,
0.7265044450759888,
0.00430699810385704,
0.09014391154050827,
0.08397091925144196,
0.045522455126047134,
-0.1325955092906952,
0.3578689396381378,
-0.17253731191158295,
-0.04253657907247543,
-0.26540249586105347,
-0.030788183212280273,
-0.3812369704246521,
0.13566705584526062,
0.30854588747024536,
0.08378081768751144,
-0.103838711977005,
-0.07070712745189667,
-0.01794467866420746,
-0.0395764485001564,
0.16237607598304749,
-0.05705367401242256,
0.18178746104240417,
0.5798850059509277,
-0.2913218140602112,
-0.2843709886074066,
0.20689986646175385,
0.37730079889297485,
0.2617410123348236,
-0.4093431532382965,
-0.10808248817920685,
0.3444976210594177,
-0.0864497572183609,
0.04784654080867767,
-0.04411012679338455,
-0.02653171867132187,
0.05159739777445793,
0.5468361973762512,
0.0009372662752866745,
0.024111883714795113,
-0.13043834269046783,
0.03296802192926407,
0.28138822317123413,
0.13475078344345093,
-0.38424018025398254,
0.007321229204535484,
0.09670481085777283,
0.13719891011714935,
-0.4002992510795593,
0.3226001560688019,
-0.13269196450710297,
-0.09202700853347778,
-0.012856297194957733,
-0.1971435546875,
-0.18307703733444214,
0.23616084456443787,
0.21111677587032318,
-0.11219684034585953,
0.3844279646873474,
0.40358906984329224,
-0.007087418809533119,
0.4863263666629791,
-0.3266410231590271,
0.4129480719566345,
0.4259536862373352,
-0.06598157435655594,
-0.08501825481653214,
0.28400513529777527,
0.11947529762983322,
0.2796074450016022,
-0.2027406096458435,
-0.24166277050971985,
-0.16219857335090637,
0.306648850440979,
-0.22257262468338013,
-0.12363304197788239,
0.29727622866630554,
-0.43943795561790466,
0.21389968693256378,
0.08304280042648315,
0.9734272360801697,
0.237605482339859,
0.004844538867473602,
-0.26133987307548523,
-0.1835114061832428
] |
https://github.com/huggingface/datasets/issues/2055 | I'm not sure I understand your issue, can you elaborate ?
`cache_file_name` is indeed an argument you can set to specify the cache file that will be used for the processed dataset. By default the file is named with something like `cache-<fingerprint>.arrow` where the fingerprint is a hash. | is there a way to override a dataset object saved with save_to_disk? | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 48 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
I'm not sure I understand your issue, can you elaborate ?
`cache_file_name` is indeed an argument you can set to specify the cache file that will be used for the processed dataset. By default the file is named with something like `cache-<fingerprint>.arrow` where the fingerprint is a hash. | [
0.005880638957023621,
-0.0709291324019432,
-0.045395489782094955,
0.009185930714011192,
0.27734971046447754,
0.2527236044406891,
0.2612767815589905,
0.24260661005973816,
-0.053569622337818146,
0.10696284472942352,
0.30203554034233093,
0.4447040557861328,
-0.16169270873069763,
-0.12795723974704742,
0.2059168517589569,
0.006319910287857056,
0.3146955072879791,
-0.11881306767463684,
-0.09844005107879639,
0.1764317750930786,
-0.36264705657958984,
0.2778182327747345,
0.21464239060878754,
0.06288887560367584,
-0.357814222574234,
-0.1051509827375412,
0.1591540426015854,
0.023573782294988632,
0.07123368978500366,
-0.49810072779655457,
0.24882401525974274,
0.2438836693763733,
0.001854635775089264,
0.04460863769054413,
-0.00011317694588797167,
-0.19219395518302917,
0.1759779006242752,
-0.10215601325035095,
-0.3182257115840912,
0.1989145427942276,
-0.29044538736343384,
-0.20708058774471283,
-0.01577649638056755,
-0.5379847884178162,
0.3022143244743347,
0.047941017895936966,
0.13909749686717987,
-0.30580443143844604,
0.15684081614017487,
-0.08517442643642426,
0.18830707669258118,
-0.19132012128829956,
0.09578103572130203,
0.1804768443107605,
0.06810027360916138,
0.08023146539926529,
-0.2438439130783081,
0.2512892484664917,
0.02161525748670101,
0.2512298822402954,
0.04886630177497864,
0.13685519993305206,
-0.09259320050477982,
-0.04845621436834335,
0.5817064642906189,
-0.057109422981739044,
-0.11386367678642273,
0.03800634667277336,
0.31238624453544617,
0.15230350196361542,
0.7274109721183777,
-0.4069980978965759,
-0.08807258307933807,
-0.09351099282503128,
-0.1064908504486084,
-0.278557151556015,
0.2970905303955078,
-0.28704649209976196,
0.03141137212514877,
0.1581905335187912,
-0.14430658519268036,
-0.5655369162559509,
-0.15787741541862488,
0.045410893857479095,
0.29255494475364685,
-0.3315795958042145,
-0.18471971154212952,
0.25475913286209106,
0.22459058463573456,
0.00620371475815773,
0.45882171392440796,
-0.27878907322883606,
-0.40558484196662903,
-0.20954228937625885,
-0.2231866717338562,
-0.09952559322118759,
-0.3349788784980774,
0.404570072889328,
0.06757007539272308,
0.2259327620267868,
0.43451374769210815,
0.3098505139350891,
0.03749895468354225,
0.1940719336271286,
0.10989420115947723,
0.25583261251449585,
0.09144896268844604,
-0.014535769820213318,
0.07534515857696533,
-0.25802963972091675,
-0.3399425446987152,
-0.19699090719223022,
0.2101663202047348,
-0.3805345892906189,
0.7020931243896484,
-0.18384364247322083,
0.19405168294906616,
-0.30504706501960754,
0.19084560871124268,
-0.08428752422332764,
0.21905526518821716,
0.06759366393089294,
0.07819359004497528,
0.012820214033126831,
0.06677969545125961,
0.06489124894142151,
-0.08880241215229034,
0.05613305792212486,
0.06152402609586716,
0.09737834334373474,
-0.06420373171567917,
-0.2585119903087616,
0.10586406290531158,
0.37152099609375,
0.07006222009658813,
0.11341699957847595,
0.04573063552379608,
-0.1482764184474945,
0.13644307851791382,
-0.0534759946167469,
0.3880757689476013,
-0.05207180604338646,
0.4737304747104645,
-0.06155454367399216,
-0.1686994880437851,
0.2550693452358246,
0.008135432377457619,
-0.1564420610666275,
-0.1375380903482437,
0.3093264400959015,
-0.3865033686161041,
-0.42399609088897705,
0.0999031513929367,
0.0781678855419159,
-0.39993101358413696,
-0.062071241438388824,
-0.5250159502029419,
-0.0384049117565155,
0.1165148988366127,
-0.14374953508377075,
0.23817288875579834,
0.20408204197883606,
-0.15256267786026,
-0.38734471797943115,
-0.052669957280159,
0.22917479276657104,
-0.4178433418273926,
0.05112435668706894,
-0.24416060745716095,
-0.02113623172044754,
-0.24147427082061768,
-0.16096286475658417,
-0.26307573914527893,
-0.10548067092895508,
-0.34666597843170166,
0.06447313725948334,
0.3076822757720947,
-0.34735384583473206,
-0.6475951075553894,
-0.05933665484189987,
-0.06429699063301086,
0.028302066028118134,
0.04752501845359802,
0.3307829201221466,
0.056651193648576736,
-0.10223600268363953,
-0.4012674391269684,
0.10129667818546295,
-0.02002551406621933,
-0.30654558539390564,
-0.27808523178100586,
-0.008047550916671753,
-0.1057395339012146,
-0.14617496728897095,
-0.22025084495544434,
0.3657614588737488,
-0.03802642598748207,
-0.02842540107667446,
0.07239031791687012,
0.20119310915470123,
0.20468425750732422,
0.47139135003089905,
0.48455461859703064,
-0.1623983532190323,
0.028085730969905853,
-0.05227924883365631,
-0.3321332335472107,
0.14716650545597076,
0.37000757455825806,
-0.39392077922821045,
0.0009517259895801544,
-0.24996474385261536,
0.01634426787495613,
0.07342254370450974,
-0.1349819004535675,
0.1541033685207367,
0.02803824096918106,
0.31835177540779114,
0.07306221127510071,
-0.27113625407218933,
-0.13998420536518097,
0.41567370295524597,
-0.035384055227041245,
-0.03525366634130478,
-0.1052669882774353,
-0.0459292009472847,
0.003633759915828705,
-0.05812261998653412,
-0.4752199053764343,
-0.2656543254852295,
0.18388670682907104,
-0.12955445051193237,
-0.22985371947288513,
0.518612802028656,
-0.09122000634670258,
0.053474247455596924,
0.2685377597808838,
0.42093637585639954,
-0.1508520394563675,
-0.4421941637992859,
0.2504710555076599,
-0.0025528892874717712,
0.027371462434530258,
-0.00554647296667099,
-0.12525291740894318,
0.17774921655654907,
-0.07860197126865387,
0.05803073197603226,
-0.19634675979614258,
0.13800093531608582,
0.28741514682769775,
-0.07805667072534561,
-0.17351803183555603,
-0.23932695388793945,
-0.31351566314697266,
0.07501330971717834,
0.46131256222724915,
-0.08207622170448303,
-0.21109409630298615,
0.30250972509384155,
0.5622272491455078,
0.058873072266578674,
0.10138743370771408,
0.03640080615878105,
-0.26441600918769836,
-0.12854117155075073,
-0.10247281938791275,
0.6723659038543701,
0.5421386957168579,
0.1920129954814911,
0.14051906764507294,
-0.21334975957870483,
0.09585422277450562,
-0.03835340216755867,
0.13248956203460693,
0.15438655018806458,
0.2147182673215866,
-0.10201279819011688,
0.14431849122047424,
-0.1821785420179367,
-0.13386988639831543,
0.159654438495636,
0.11188574880361557,
0.011033730581402779,
-0.006396941840648651,
0.18882495164871216,
-0.19276969134807587,
-0.027813326567411423,
-0.2950424551963806,
-0.031935397535562515,
-0.40772736072540283,
-0.3630104064941406,
0.06693387031555176,
0.32692623138427734,
0.08980897068977356,
0.14906108379364014,
-0.11566100269556046,
0.504223644733429,
-0.17349441349506378,
-0.42046424746513367,
-0.1750682294368744,
-0.031110305339097977,
-0.23258313536643982,
-0.022364510223269463,
0.07424400746822357,
-0.2729972004890442,
0.22917607426643372,
-0.01663270965218544,
0.25551638007164,
-0.5720792412757874,
0.029358074069023132,
-0.05678817257285118,
0.27256664633750916,
0.33263084292411804,
-0.06666459143161774,
0.1852228045463562,
-0.22872333228588104,
0.0670948177576065,
-0.015786955133080482,
-0.07919109612703323,
0.01584240049123764,
-0.01624814048409462,
0.11656065285205841,
0.08001349866390228,
0.03783830255270004,
0.2091628611087799,
-0.15199683606624603,
-0.24448637664318085,
0.1520078331232071,
-0.10921266674995422,
0.06126460060477257,
-0.05126672238111496,
0.015882205218076706,
-0.011744663119316101,
0.04593588039278984,
-0.3617249131202698,
-0.3731369376182556,
-0.8067584037780762,
0.5466673374176025,
-0.3449465036392212,
-0.09707134962081909,
0.1465294361114502,
0.05424812436103821,
0.14215360581874847,
0.21201421320438385,
-0.3342684507369995,
-0.2800639867782593,
-0.052838049829006195,
0.21753734350204468,
-0.019075807183980942,
-0.28132984042167664,
0.22583286464214325,
0.4095548391342163,
-0.09718417376279831,
-0.24838583171367645,
-0.5289541482925415,
0.39878544211387634,
0.1717527061700821,
0.5748048424720764,
0.2610900402069092,
0.09203920513391495,
0.05475149303674698,
0.5059794783592224,
-0.28286468982696533,
0.011398939415812492,
0.40439242124557495,
0.19014889001846313,
0.3782545328140259,
0.01622738689184189,
-0.13098105788230896,
-0.1413494199514389,
-0.2167467474937439,
-0.07607650756835938,
-0.04978279396891594,
0.08787225186824799,
0.01903483457863331,
0.26730990409851074,
0.0565374419093132,
-0.1562478095293045,
-0.3716949224472046,
0.0874495729804039,
-0.25969916582107544,
0.11596347391605377,
0.04225289076566696,
-0.14290213584899902,
-0.5049207806587219,
-0.14481374621391296,
0.18704506754875183,
0.38151872158050537,
0.11402970552444458,
-0.08515438437461853,
-0.5466572642326355,
0.1567210704088211,
-0.3572346270084381,
0.43694257736206055,
-0.20017939805984497,
0.11978724598884583,
-0.10392004996538162,
-0.049808941781520844,
-0.021227333694696426,
-0.05035603046417236,
0.880452573299408,
-0.17385585606098175,
0.15856994688510895,
0.06297677755355835,
0.11062975227832794,
-0.131480410695076,
0.09822261333465576,
0.4506978988647461,
0.4493224024772644,
-0.14583027362823486,
0.10646073520183563,
0.09412731230258942,
-0.22352352738380432,
-0.17333120107650757,
0.3369658887386322,
-0.52655029296875,
-0.217553973197937,
0.15228426456451416,
-0.14505070447921753,
-0.007651150226593018,
-0.26757240295410156,
0.20549258589744568,
0.013174641877412796,
0.08131839334964752,
0.02082148939371109,
-0.4381811320781708,
-0.13319478929042816,
-0.003473900258541107,
-0.19506925344467163,
0.5359505414962769,
-0.22869810461997986,
0.0376807376742363,
-0.022511368617415428,
0.25286272168159485,
0.3890485167503357,
0.2947441041469574,
-0.35650932788848877,
-0.20212283730506897,
-0.03545061871409416,
-0.24817349016666412,
0.01784151792526245,
0.2599077522754669,
-0.07626566290855408,
0.16641101241111755,
0.2039913535118103,
-0.17035923898220062,
-0.014016255736351013,
0.14869758486747742,
-0.14412325620651245,
0.25274422764778137,
-0.19160014390945435,
-0.34991124272346497,
0.375948429107666,
0.2600650191307068,
-0.06482183188199997,
0.36665141582489014,
0.17466741800308228,
-0.378032922744751,
0.41979745030403137,
0.09013484418392181,
0.9501259326934814,
-0.0370364636182785,
0.2972921133041382,
-0.3037029504776001,
-0.3726535737514496,
0.029851045459508896,
-0.07033923268318176,
-0.02712317183613777,
-0.13109667599201202,
-0.20190976560115814,
0.009243354201316833,
0.06998185813426971,
0.23412300646305084,
0.5468809604644775,
-0.03995826840400696,
0.09492960572242737,
-0.22739487886428833,
-0.18618425726890564,
-0.25740668177604675,
0.23814457654953003,
-0.1397065371274948,
-0.1130986213684082,
0.08044520020484924,
0.1651393622159958,
-0.06124794855713844,
-0.15383440256118774,
0.06080121174454689,
-0.21775083243846893,
0.021424107253551483,
-0.030250906944274902,
-0.1726943701505661,
-0.18976262211799622,
-0.1683494746685028,
-0.2046884000301361,
-0.07041333615779877,
-0.40955299139022827,
0.018539853394031525,
0.20188060402870178,
0.44215816259384155,
-0.02735723741352558,
-0.05650675296783447,
0.3041878640651703,
0.17455491423606873,
0.0735195130109787,
-0.22492001950740814,
-0.14952611923217773,
0.25833410024642944,
-0.0437394417822361,
-0.01928587257862091,
0.002218620851635933,
0.07708389312028885,
-0.6202125549316406,
0.2067079395055771,
-0.09972493350505829,
0.13004161417484283,
-0.0917498990893364,
-0.49442142248153687,
-0.16466553509235382,
-0.24611777067184448,
-0.30053430795669556,
0.14192266762256622,
0.2287476509809494,
-0.10757844895124435,
0.41414159536361694,
-0.17702433466911316,
-0.04516027867794037,
0.15547476708889008,
0.2797192335128784,
-0.21761836111545563,
-0.1377958357334137,
0.509489893913269,
-0.35042884945869446,
0.014818437397480011,
-0.13858957588672638,
0.06893406808376312,
0.048717085272073746,
-0.14854225516319275,
0.14948053658008575,
-0.17866460978984833,
0.13883012533187866,
-0.03225376456975937,
-0.23614653944969177,
0.1513170450925827,
0.31057676672935486,
-0.2591749429702759,
-0.17481769621372223,
-0.5221586227416992,
-0.08173834532499313,
0.06593930721282959,
0.30631348490715027,
-0.07622798532247543,
-0.4527074098587036,
-0.06304162740707397,
0.08879955857992172,
-0.25305891036987305,
0.012161750346422195,
-0.04532536491751671,
0.027161166071891785,
0.18926851451396942,
0.24537958204746246,
0.15558254718780518,
-0.18648074567317963,
-0.018708331510424614,
0.0017404882237315178,
-0.17256416380405426,
-0.19922985136508942,
-0.26648426055908203,
0.17183449864387512,
-0.09362595528364182,
-0.27796831727027893,
-0.13104739785194397,
-0.31012433767318726,
0.21159201860427856,
-0.04758766293525696,
-0.1959192007780075,
0.17813357710838318,
0.03733678162097931,
0.22857557237148285,
0.07218733429908752,
0.0019590649753808975,
0.0486028790473938,
-0.17980745434761047,
0.1992195099592209,
0.3495189845561981,
0.16640704870224,
0.12581484019756317,
-0.014022566378116608,
-0.06620317697525024,
-0.0015532821416854858,
-0.10242121666669846,
-0.10554081201553345,
-0.03042079135775566,
-0.19015279412269592,
-0.06388813257217407,
-0.0378781296312809,
0.4332277774810791,
0.1673297882080078,
0.040572211146354675,
-0.21002128720283508,
-0.17137399315834045,
0.3683485984802246,
0.1341480314731598,
0.10618877410888672,
-0.4036818742752075,
0.42701849341392517,
-0.26776137948036194,
-0.038147442042827606,
0.0870683342218399,
0.14651963114738464,
0.19512386620044708,
-0.16844534873962402,
-0.005548883229494095,
0.25671419501304626,
-0.4714049696922302,
0.1689606010913849,
0.05270957946777344,
-0.013302929699420929,
0.08110831677913666,
0.5374562740325928,
0.38648584485054016,
0.30916500091552734,
0.7966077923774719,
0.014929359778761864,
0.1586896926164627,
0.4057992994785309,
-0.03340684249997139,
-0.012748219072818756,
-0.15422970056533813,
0.029058340936899185,
-0.04648846387863159,
-0.043182265013456345,
0.4586324095726013,
0.286324679851532,
0.13279487192630768,
0.12383343279361725,
-0.3554236590862274,
0.17328289151191711,
-0.02898765355348587,
0.02085115946829319,
-0.3102228045463562,
0.07974720001220703,
0.02053128182888031,
0.1260371059179306,
0.10968128591775894,
-0.19416218996047974,
-0.25271227955818176,
0.46347394585609436,
-0.1370220184326172,
0.0431455597281456,
0.16839195787906647,
0.1710462123155594,
-0.06856920570135117,
0.12863683700561523,
-0.03951752558350563,
-0.0998140275478363,
-0.26912468671798706,
-0.13453295826911926,
0.2595929801464081,
0.002104939892888069,
-0.16875749826431274,
-0.05420402064919472,
0.042962174862623215,
0.08154216408729553,
-0.04110275208950043,
-0.07923966646194458,
-0.22621901333332062,
-0.20229487121105194,
0.06824575364589691,
-0.32621845602989197,
0.20055493712425232,
0.1387024223804474,
0.01217629760503769,
0.13348926603794098,
0.14365126192569733,
0.379052072763443,
-0.14722198247909546,
-0.1271030753850937,
0.3025745749473572,
-0.3633195161819458,
-0.12168917804956436,
0.11717978119850159,
-0.07057712972164154,
-0.37469685077667236,
0.7522785663604736,
0.04258447885513306,
0.04917602986097336,
-0.05408770963549614,
0.06759678572416306,
-0.17592063546180725,
0.44890064001083374,
-0.01877744495868683,
-0.013620993122458458,
-0.2923688292503357,
-0.1183672845363617,
-0.394676148891449,
0.13727882504463196,
0.10895495116710663,
0.0853915736079216,
0.06721104681491852,
-0.053130634129047394,
0.03180309012532234,
0.013865597546100616,
0.2937546968460083,
0.08105956017971039,
0.1560964286327362,
0.5610344409942627,
-0.39069241285324097,
-0.1711733490228653,
0.32703834772109985,
0.29722124338150024,
0.2671145796775818,
-0.3106239438056946,
-0.11763174831867218,
0.4650089740753174,
0.021207548677921295,
0.003784516826272011,
-0.09938958287239075,
0.006793037056922913,
0.23261114954948425,
0.5678703188896179,
-0.018730808049440384,
0.06856337934732437,
-0.06760097295045853,
0.015210002660751343,
0.12501029670238495,
0.10045723617076874,
-0.32796967029571533,
-0.06483350694179535,
0.07880835235118866,
0.1504221260547638,
-0.3691145181655884,
0.3105677366256714,
-0.21345700323581696,
0.001957714557647705,
-0.12338533252477646,
-0.07383673638105392,
-0.20916251838207245,
0.21772319078445435,
0.15163372457027435,
-0.027065616101026535,
0.42729130387306213,
0.44290995597839355,
0.04621933400630951,
0.4174528419971466,
-0.44531160593032837,
0.35331061482429504,
0.5391594171524048,
-0.00788680836558342,
-0.1656595915555954,
0.2888103425502777,
0.15099921822547913,
0.2713834345340729,
-0.2632127106189728,
-0.347270667552948,
-0.21030330657958984,
0.27432674169540405,
-0.1712188422679901,
-0.07675940543413162,
0.2778632342815399,
-0.33336761593818665,
0.30099380016326904,
0.10581852495670319,
0.8167824149131775,
0.17162087559700012,
0.08846365660429001,
-0.30204975605010986,
-0.09666582942008972
] |
https://github.com/huggingface/datasets/issues/2055 | Let's say I am updating a set of embedding in a dataset that is around 40GB inside a training loop every 500 steps (Ex: calculating the embeddings in updated ctx_encoder in RAG and saving it to the passage path). So when we use **dataset_object.save_to_disk('passage_path_directory')** it will save the new dataset object every time with a random file name, especially when we do some transformations to dataset objects such as map or shards. This way, we keep collecting unwanted files that will eventually eat up all the disk space.
But if we can save the dataset object every time by a single name like **data_shard_1.arrow**, it will automatically remove the previous file and save the new one in the same directory. I found the above-mentioned code snippet useful to complete this task.
Is this clear? | is there a way to override a dataset object saved with save_to_disk? | At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? | 134 | is there a way to override a dataset object saved with save_to_disk?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
Let's say I am updating a set of embedding in a dataset that is around 40GB inside a training loop every 500 steps (Ex: calculating the embeddings in updated ctx_encoder in RAG and saving it to the passage path). So when we use **dataset_object.save_to_disk('passage_path_directory')** it will save the new dataset object every time with a random file name, especially when we do some transformations to dataset objects such as map or shards. This way, we keep collecting unwanted files that will eventually eat up all the disk space.
But if we can save the dataset object every time by a single name like **data_shard_1.arrow**, it will automatically remove the previous file and save the new one in the same directory. I found the above-mentioned code snippet useful to complete this task.
Is this clear? | [
0.045734621584415436,
-0.0365205854177475,
-0.006559804081916809,
-0.06631392985582352,
0.2652112543582916,
0.1467556208372116,
0.05342165380716324,
0.13368827104568481,
-0.13232587277889252,
0.3330437242984772,
0.32839661836624146,
0.48019108176231384,
-0.38887009024620056,
0.09337802231311798,
0.23198378086090088,
0.07448264956474304,
0.3734700679779053,
-0.06701803207397461,
-0.1254187822341919,
0.18103088438510895,
-0.41791269183158875,
0.04415082931518555,
0.2109161615371704,
0.01598297990858555,
-0.08205027878284454,
-0.02643701620399952,
0.0004687979817390442,
-0.25080958008766174,
0.05765562504529953,
-0.43080809712409973,
0.22839948534965515,
0.2565985321998596,
0.11991365253925323,
0.13861873745918274,
-0.00012125576904509217,
-0.06955806910991669,
0.009533853270113468,
-0.06924384087324142,
-0.41690152883529663,
0.09945989400148392,
-0.06093625724315643,
-0.4046192467212677,
-0.043145500123500824,
-0.4321475625038147,
0.3878166675567627,
-0.24965229630470276,
0.27784836292266846,
-0.1676831990480423,
0.10131002962589264,
-0.13044993579387665,
0.07575687021017075,
-0.07309537380933762,
0.191056028008461,
0.20928893983364105,
0.13046719133853912,
0.2837991416454315,
-0.10730365663766861,
0.2409992218017578,
0.05361659824848175,
0.24854694306850433,
0.004452664405107498,
0.10470147430896759,
-0.039897382259368896,
-0.09036475419998169,
0.7107024192810059,
0.03975438326597214,
-0.08300181478261948,
-0.06894095242023468,
0.06325562298297882,
0.1232704222202301,
0.5087647438049316,
-0.5339452028274536,
-0.13153541088104248,
-0.17497628927230835,
0.1265871822834015,
-0.3090943396091461,
0.2692341208457947,
-0.2114599347114563,
-0.06950189918279648,
0.020907018333673477,
-0.08521729707717896,
-0.6508271098136902,
-0.19854438304901123,
0.25564849376678467,
0.2591595947742462,
-0.5391647219657898,
-0.06641235947608948,
0.22882166504859924,
0.31623178720474243,
0.007681833580136299,
0.31619539856910706,
-0.3927270770072937,
-0.22382691502571106,
-0.3384261429309845,
-0.12807199358940125,
-0.1810760200023651,
-0.3935975134372711,
0.22917607426643372,
0.055453673005104065,
0.34977707266807556,
0.436137318611145,
0.13568127155303955,
-0.06774408370256424,
0.22032839059829712,
0.10183169692754745,
0.023384276777505875,
-0.04052533209323883,
0.126822367310524,
0.07799199223518372,
-0.01957050710916519,
-0.1697918027639389,
-0.030151722952723503,
0.24583792686462402,
-0.31121450662612915,
0.39212357997894287,
-0.26658791303634644,
0.2572688162326813,
0.058126240968704224,
0.007382817566394806,
-0.07744146138429642,
-0.04197823256254196,
0.10957837104797363,
-0.005676887929439545,
-0.1309603899717331,
0.2353038489818573,
-0.12214936316013336,
-0.10053987801074982,
0.13820551335811615,
0.177567720413208,
0.14519749581813812,
0.08032868802547455,
-0.17611725628376007,
0.10483294725418091,
0.4112701416015625,
0.038988955318927765,
0.17242984473705292,
-0.04522620886564255,
-0.2201780080795288,
0.04123619943857193,
-0.0717490166425705,
0.18356287479400635,
0.0025436505675315857,
0.4037233889102936,
-0.09839934855699539,
-0.1946253776550293,
0.19454330205917358,
-0.1654604822397232,
-0.18618586659431458,
-0.22887906432151794,
0.24918685853481293,
-0.23980143666267395,
-0.2797170877456665,
-0.021578297019004822,
0.02627459540963173,
-0.22498121857643127,
-0.10489203035831451,
-0.5177106857299805,
0.16233289241790771,
-0.13106782734394073,
-0.2600250244140625,
0.21265769004821777,
0.277254194021225,
-0.25323057174682617,
-0.2626475691795349,
-0.0001722276210784912,
0.11682306230068207,
-0.33830133080482483,
-0.047385476529598236,
-0.13282480835914612,
-0.026851831004023552,
-0.36206451058387756,
-0.1325850933790207,
-0.2609151005744934,
-0.01061985269188881,
-0.29515624046325684,
-0.021145977079868317,
0.34092968702316284,
-0.13204626739025116,
-0.5908207893371582,
-0.22782856225967407,
-0.15082155168056488,
-0.005291871726512909,
-0.0067437514662742615,
0.5044074058532715,
0.14414264261722565,
-0.057604093104600906,
-0.5045726895332336,
0.053438451141119,
0.06197362393140793,
-0.3500504493713379,
-0.06069228798151016,
-0.14419284462928772,
-0.1976327747106552,
-0.17175273597240448,
-0.2981697916984558,
0.219776451587677,
-0.05560455843806267,
0.025111019611358643,
0.21679748594760895,
0.0732121542096138,
0.24018293619155884,
0.4485563337802887,
0.4341869652271271,
-0.11549531668424606,
-0.16888679563999176,
-0.14257310330867767,
-0.3905545771121979,
-0.031955279409885406,
0.5924949049949646,
-0.4588950276374817,
0.11325827240943909,
-0.2073935866355896,
0.17470479011535645,
0.1230463907122612,
-0.19683754444122314,
0.23522324860095978,
-0.05482263118028641,
0.31227776408195496,
-0.0037067756056785583,
-0.15668532252311707,
-0.3619379997253418,
0.06743935495615005,
-0.17299853265285492,
0.18043993413448334,
-0.13488245010375977,
0.14646363258361816,
0.1023184210062027,
-0.04585254192352295,
-0.36339157819747925,
-0.15338705480098724,
-0.10640456527471542,
-0.09650897234678268,
-0.07514837384223938,
0.4044416546821594,
-0.2464149296283722,
0.11919280886650085,
0.17265792191028595,
0.4314654469490051,
-0.06194058060646057,
-0.3676760792732239,
0.2172437161207199,
0.23570659756660461,
0.08937130868434906,
0.12281017005443573,
-0.35869187116622925,
0.12104493379592896,
-0.027017677202820778,
0.1744959056377411,
-0.06124001741409302,
0.13847267627716064,
0.05136066675186157,
-0.05097082629799843,
-0.3274543881416321,
-0.22608160972595215,
-0.3494558036327362,
0.18419797718524933,
0.421974241733551,
-0.06836366653442383,
-0.12962639331817627,
0.10653603076934814,
0.6030345559120178,
-0.1011485606431961,
0.06264285743236542,
0.1921169012784958,
-0.2957581579685211,
-0.08019214123487473,
-0.25684529542922974,
0.8007149696350098,
0.37928658723831177,
0.07458522915840149,
0.1722940355539322,
-0.2163553386926651,
0.07660764455795288,
-0.0620700865983963,
0.18343248963356018,
0.35282766819000244,
0.23133796453475952,
0.06898254156112671,
0.21714872121810913,
-0.08420149236917496,
-0.2327297329902649,
0.02291616052389145,
0.031018011271953583,
-0.004507681354880333,
-0.03112604469060898,
0.0636649951338768,
-0.0542585551738739,
0.06262616813182831,
-0.4437844753265381,
0.09744228422641754,
-0.2583099901676178,
-0.19728726148605347,
0.023963600397109985,
0.32983165979385376,
-0.06332077085971832,
0.18094399571418762,
0.29266291856765747,
0.41979360580444336,
-0.26441025733947754,
-0.3293958008289337,
0.023505523800849915,
0.2038993090391159,
-0.15381814539432526,
-0.1272314190864563,
0.1778416633605957,
-0.3315119445323944,
0.3227913975715637,
0.13448786735534668,
0.16412608325481415,
-0.7020504474639893,
0.07245051115751266,
-0.1511766016483307,
0.2363012582063675,
0.1226455494761467,
-0.011348631232976913,
0.06700887531042099,
-0.22855514287948608,
0.06878146529197693,
-0.02128184214234352,
0.020753219723701477,
0.03845418244600296,
-0.036336854100227356,
0.05666167289018631,
0.29141122102737427,
0.12042398750782013,
0.21167638897895813,
-0.16903184354305267,
-0.12929841876029968,
0.18942467868328094,
-0.09246859699487686,
-0.012783171609044075,
-0.15233629941940308,
0.2509377896785736,
0.07163232564926147,
-0.020514942705631256,
-0.39271607995033264,
0.00946609303355217,
-0.6643105745315552,
0.3599241077899933,
-0.06304171681404114,
0.0037834029644727707,
-0.02448737621307373,
-0.03777991607785225,
-0.043600235134363174,
0.27273422479629517,
-0.3989456295967102,
-0.24523895978927612,
-0.039836205542087555,
0.14064601063728333,
-0.07629914581775665,
-0.18810805678367615,
0.1733016073703766,
0.4887497127056122,
-0.020688772201538086,
0.02758564054965973,
-0.4749940037727356,
0.2654615044593811,
0.1800309419631958,
0.3496617376804352,
0.207192063331604,
0.17199349403381348,
0.11533522605895996,
0.3271219730377197,
-0.06718599051237106,
-0.1364268660545349,
0.40313002467155457,
0.15849389135837555,
0.3615850508213043,
0.06978040933609009,
-0.057910799980163574,
-0.1681995391845703,
-0.21034254133701324,
-0.1022319421172142,
-0.008655685931444168,
-0.06917378306388855,
0.23026059567928314,
0.37292295694351196,
-0.03157481551170349,
0.07506845146417618,
-0.3564734160900116,
0.13017036020755768,
-0.19902652502059937,
0.08180546760559082,
-0.024535972625017166,
-0.13954131305217743,
-0.2211088240146637,
-0.15810227394104004,
0.09656646847724915,
0.3935679495334625,
0.20685234665870667,
-0.060420215129852295,
-0.6695665717124939,
-0.1548299789428711,
-0.3504047691822052,
0.24570487439632416,
-0.3112829625606537,
-0.053045809268951416,
0.14817240834236145,
0.031963929533958435,
0.01376461610198021,
-0.06690560281276703,
0.6469919681549072,
0.000005140900611877441,
0.08350728452205658,
-0.19046393036842346,
0.18431073427200317,
-0.18998447060585022,
0.09440821409225464,
0.31971675157546997,
0.3267338275909424,
-0.34340476989746094,
0.41333138942718506,
0.10805995762348175,
-0.23383764922618866,
0.09097236394882202,
0.45993390679359436,
-0.5098072290420532,
-0.057945042848587036,
0.2214578539133072,
-0.2996600270271301,
-0.14803600311279297,
-0.3749028444290161,
0.09971226751804352,
0.036637548357248306,
0.20426036417484283,
-0.21328029036521912,
-0.3660639524459839,
-0.12378586828708649,
0.14252927899360657,
-0.39592963457107544,
0.4069085717201233,
-0.06542939692735672,
-0.0009558051824569702,
-0.06640520691871643,
0.39823681116104126,
0.6073395609855652,
0.24179160594940186,
-0.4718923568725586,
-0.39557933807373047,
-0.11286583542823792,
-0.1703762412071228,
0.23260429501533508,
0.23936869204044342,
0.012222059071063995,
0.1966254711151123,
0.12386012822389603,
-0.13398538529872894,
-0.2612435221672058,
0.18208734691143036,
0.11945594847202301,
0.30223897099494934,
-0.17342109978199005,
-0.3173743784427643,
0.45098015666007996,
0.2749403715133667,
0.047771140933036804,
0.19783632457256317,
0.35384950041770935,
-0.37766754627227783,
0.3673595190048218,
0.11812746524810791,
0.6669074892997742,
-0.01820651814341545,
0.4968535602092743,
-0.09859224408864975,
-0.3663337826728821,
-0.03501001372933388,
0.018319979310035706,
0.08022931218147278,
-0.07115837186574936,
-0.10287316888570786,
-0.01679006963968277,
0.08193925768136978,
0.23236805200576782,
0.5184147953987122,
-0.04798450320959091,
0.2158784717321396,
-0.1498364508152008,
0.08524489402770996,
-0.3729448914527893,
0.20463936030864716,
-0.19102182984352112,
-0.159438356757164,
0.04106282442808151,
0.023762360215187073,
0.08883340656757355,
-0.13318020105361938,
0.14963451027870178,
-0.08568402379751205,
0.091776542365551,
-0.05969534069299698,
-0.16563859581947327,
-0.40726882219314575,
-0.14811241626739502,
-0.2073442041873932,
-0.19550542533397675,
-0.529010534286499,
0.03859618306159973,
0.42848753929138184,
0.19724354147911072,
0.060671452432870865,
0.08352538198232651,
0.2208252102136612,
0.04842067509889603,
0.12394322454929352,
-0.16686835885047913,
-0.18230752646923065,
0.18798242509365082,
0.07524608075618744,
0.027372613549232483,
0.025048350915312767,
0.11285555362701416,
-0.42122116684913635,
0.0675826221704483,
-0.11932644248008728,
0.26329362392425537,
-0.030707843601703644,
-0.33659687638282776,
-0.16666245460510254,
-0.3178778290748596,
-0.4264824390411377,
0.03700221702456474,
-0.06813515722751617,
-0.009188834577798843,
0.4155028164386749,
-0.19749943912029266,
-0.12378980219364166,
0.1959584355354309,
0.1716916561126709,
-0.14904852211475372,
0.04873424768447876,
0.7534676790237427,
-0.44080621004104614,
0.11566022038459778,
-0.1474776268005371,
0.4632134735584259,
0.25515255331993103,
-0.15433384478092194,
0.313785195350647,
-0.15445059537887573,
0.2359161525964737,
-0.05553978309035301,
-0.1251845508813858,
0.05003022775053978,
0.10264958441257477,
-0.3332234025001526,
-0.09578341245651245,
-0.37271612882614136,
0.045963890850543976,
0.3631146550178528,
0.45488327741622925,
-0.1544361710548401,
-0.3133370876312256,
-0.17454996705055237,
-0.062390826642513275,
-0.12903599441051483,
0.19285154342651367,
0.11156520992517471,
-0.033786922693252563,
0.08926884829998016,
0.5190906524658203,
0.09274974465370178,
-0.04397737979888916,
-0.08749702572822571,
-0.0811779797077179,
0.049068812280893326,
-0.06777000427246094,
-0.2429114282131195,
0.21718013286590576,
-0.16237841546535492,
-0.09614656120538712,
-0.12649506330490112,
-0.2579055428504944,
0.1673527956008911,
-0.10996226966381073,
-0.32375138998031616,
0.14333204925060272,
0.1516301929950714,
0.19258788228034973,
0.039325542747974396,
0.13731025159358978,
0.23044317960739136,
-0.12711083889007568,
0.2648397982120514,
0.3415452241897583,
0.18943101167678833,
0.2597721219062805,
0.11799655109643936,
-0.16691474616527557,
-0.27264565229415894,
0.030675597488880157,
0.11636365950107574,
-0.12077885121107101,
-0.2451494038105011,
0.002541579306125641,
-0.1187874972820282,
0.3289446532726288,
0.18721701204776764,
0.28149351477622986,
-0.2939673066139221,
-0.2809569239616394,
0.3967542052268982,
0.032784461975097656,
0.06946194171905518,
-0.31227055191993713,
0.4320265054702759,
-0.2886403799057007,
-0.024497948586940765,
0.06490660458803177,
-0.11048125475645065,
0.16356147825717926,
-0.6306898593902588,
-0.13157013058662415,
-0.005037631839513779,
-0.17571711540222168,
0.18364104628562927,
0.3621574640274048,
0.03519539535045624,
-0.011380691081285477,
0.299821138381958,
0.3326321244239807,
0.4769550859928131,
0.7569001913070679,
-0.19465585052967072,
0.3213781416416168,
0.35841551423072815,
-0.11210469156503677,
0.16655747592449188,
-0.13363467156887054,
0.006257873494178057,
0.01907970756292343,
0.08390476554632187,
0.3280993700027466,
0.4132538139820099,
0.07035763561725616,
0.16777557134628296,
-0.3083193004131317,
0.07716476917266846,
-0.021054811775684357,
0.11728896200656891,
-0.40653902292251587,
0.05210830271244049,
-0.03156012296676636,
0.14871445298194885,
0.296212375164032,
-0.18619997799396515,
-0.4566998779773712,
0.3414573669433594,
-0.1709359586238861,
0.09259161353111267,
0.2572571337223053,
0.28879088163375854,
-0.12810833752155304,
-0.010504085570573807,
-0.05942839756608009,
-0.2913375198841095,
-0.19452956318855286,
0.04013257473707199,
0.1520557552576065,
-0.0660124346613884,
-0.24034248292446136,
-0.15928184986114502,
0.011473629623651505,
0.1467018574476242,
-0.1973901391029358,
0.04333271086215973,
-0.19931277632713318,
-0.3347667455673218,
0.007289847359061241,
-0.1861632615327835,
0.35767704248428345,
0.006786320358514786,
0.10362254083156586,
0.04002654552459717,
0.2810908555984497,
0.42036715149879456,
-0.4444260597229004,
0.05765238404273987,
0.15058885514736176,
-0.3244644105434418,
-0.022769156843423843,
0.023982884362339973,
-0.02297975867986679,
-0.42383503913879395,
0.7393189668655396,
0.04737044870853424,
0.009485505521297455,
0.12373390793800354,
0.0314197912812233,
-0.26728224754333496,
0.37290680408477783,
-0.09125448763370514,
-0.2442430853843689,
-0.20169250667095184,
-0.14765554666519165,
-0.4075843393802643,
0.08890359848737717,
0.1213938444852829,
-0.00145065039396286,
-0.08974295109510422,
-0.08085097372531891,
0.07443968951702118,
-0.10164378583431244,
0.2257518470287323,
-0.14257024228572845,
0.03134256973862648,
0.5929244756698608,
-0.26936855912208557,
-0.2329324185848236,
0.10447555780410767,
0.42496463656425476,
0.27071326971054077,
-0.3766429126262665,
-0.05877137929201126,
0.2983463406562805,
-0.09468743950128555,
0.05556388944387436,
0.1400134563446045,
-0.11160097271203995,
0.09867487102746964,
0.6502912044525146,
-0.14440526068210602,
-0.12456798553466797,
-0.16748389601707458,
-0.1460268795490265,
0.18600374460220337,
0.25739967823028564,
-0.47189003229141235,
0.24579201638698578,
-0.04504719749093056,
0.28271469473838806,
-0.41670823097229004,
0.5806437730789185,
-0.0772676020860672,
-0.34628042578697205,
-0.11110644042491913,
-0.15648579597473145,
-0.17295332252979279,
0.2177678942680359,
0.3041038513183594,
-0.00996682420372963,
0.3712158203125,
0.36150145530700684,
0.05173272639513016,
0.39543724060058594,
-0.4144781231880188,
0.37055307626724243,
0.509077787399292,
0.09489744901657104,
-0.05329765006899834,
0.2723086476325989,
-0.0018010511994361877,
0.2699894309043884,
-0.1241065263748169,
-0.48965707421302795,
-0.21826645731925964,
0.3479818105697632,
-0.1333281695842743,
-0.13732221722602844,
0.2824610471725464,
-0.26154986023902893,
0.12498483061790466,
0.07145600020885468,
0.842063307762146,
0.18220750987529755,
-0.11859505623579025,
-0.16203463077545166,
-0.2001539170742035
] |
https://github.com/huggingface/datasets/issues/2054 | This has been fixed in #2057 by @matt-peters (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | Could not find file for ZEST dataset | I am trying to use zest dataset from Allen AI using below code in colab,
```
!pip install -q datasets
from datasets import load_dataset
dataset = load_dataset("zest")
```
I am getting the following error,
```
Using custom data configuration default
Downloading and preparing dataset zest/default (download: 5.53 MiB, generated: 19.96 MiB, post-processed: Unknown size, total: 25.48 MiB) to /root/.cache/huggingface/datasets/zest/default/0.0.0/1f7a230fbfc964d979bbca0f0130fbab3259fce547ee758ad8aa4f9c9bec6cca...
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-18dbbc1a4b8a> in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("zest")
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
612 )
613 elif response is not None and response.status_code == 404:
--> 614 raise FileNotFoundError("Couldn't find file at {}".format(url))
615 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
616 raise ConnectionError("Couldn't reach {}".format(url))
FileNotFoundError: Couldn't find file at https://ai2-datasets.s3-us-west-2.amazonaws.com/zest/zest.zip
``` | 28 | Could not find file for ZEST dataset
I am trying to use zest dataset from Allen AI using below code in colab,
```
!pip install -q datasets
from datasets import load_dataset
dataset = load_dataset("zest")
```
I am getting the following error,
```
Using custom data configuration default
Downloading and preparing dataset zest/default (download: 5.53 MiB, generated: 19.96 MiB, post-processed: Unknown size, total: 25.48 MiB) to /root/.cache/huggingface/datasets/zest/default/0.0.0/1f7a230fbfc964d979bbca0f0130fbab3259fce547ee758ad8aa4f9c9bec6cca...
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-18dbbc1a4b8a> in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("zest")
9 frames
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token)
612 )
613 elif response is not None and response.status_code == 404:
--> 614 raise FileNotFoundError("Couldn't find file at {}".format(url))
615 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
616 raise ConnectionError("Couldn't reach {}".format(url))
FileNotFoundError: Couldn't find file at https://ai2-datasets.s3-us-west-2.amazonaws.com/zest/zest.zip
```
This has been fixed in #2057 by @matt-peters (thanks again !)
The fix is available on the master branch and we'll do a new release very soon :) | [
-0.5492256879806519,
-0.15621739625930786,
-0.09730516374111176,
0.3641074597835541,
0.3012053370475769,
0.09310780465602875,
0.031872428953647614,
0.22301292419433594,
0.23836341500282288,
0.4310351610183716,
-0.20342132449150085,
-0.009750917553901672,
-0.11628186702728271,
0.12189775705337524,
-0.08435006439685822,
0.2447763830423355,
-0.23085463047027588,
0.43426698446273804,
0.43542996048927307,
0.08094675838947296,
-0.1463073492050171,
0.32276099920272827,
-0.03295724838972092,
0.013456655666232109,
-0.229686439037323,
-0.02667093649506569,
0.06496965885162354,
0.22699019312858582,
-0.24693743884563446,
-0.4500756561756134,
0.5318311452865601,
-0.20409679412841797,
0.38214555382728577,
0.48626428842544556,
-0.00011926759907510132,
0.07678309082984924,
0.29230761528015137,
-0.17239689826965332,
-0.277204304933548,
-0.6352192759513855,
-0.5189527273178101,
-0.10691632330417633,
0.02278336137533188,
-0.17459873855113983,
-0.49875810742378235,
0.14196297526359558,
0.09058013558387756,
0.0844900831580162,
0.13186149299144745,
0.4710632562637329,
0.13234740495681763,
-0.025552615523338318,
0.4266809821128845,
-0.26141148805618286,
0.6230579018592834,
0.06759753823280334,
-0.13573284447193146,
0.09859728813171387,
0.28857094049453735,
0.27009809017181396,
0.4061022698879242,
0.1312183290719986,
-0.020903892815113068,
0.16053901612758636,
0.12593629956245422,
0.00510178878903389,
0.21551218628883362,
-0.39269161224365234,
0.29013144969940186,
0.20277899503707886,
0.7724490165710449,
-0.2937852442264557,
-0.3040546774864197,
0.11151507496833801,
0.08118236064910889,
-0.46641722321510315,
0.21704959869384766,
0.15076205134391785,
-0.28026166558265686,
0.20951227843761444,
0.19018274545669556,
-0.05832662433385849,
-0.11233048886060715,
0.3451274335384369,
0.08798182755708694,
0.12697067856788635,
-0.1504746526479721,
0.005552278831601143,
-0.023779060691595078,
-0.15012723207473755,
0.27117371559143066,
-0.03890182077884674,
-0.08413924276828766,
0.11225137114524841,
-0.2754397690296173,
-0.16042685508728027,
0.016655076295137405,
0.24369792640209198,
-0.022371776401996613,
0.13066428899765015,
0.059291135519742966,
-0.20011496543884277,
0.10216376930475235,
0.19040878117084503,
0.06227755919098854,
0.15417121350765228,
-0.07592204213142395,
-0.340962290763855,
0.2246869057416916,
0.16614678502082825,
-0.27931931614875793,
-0.2687014639377594,
-0.16671736538410187,
-0.24949020147323608,
-0.14474907517433167,
-0.09267043322324753,
0.19134750962257385,
-0.3504556119441986,
-0.47221916913986206,
-0.22922682762145996,
-0.5416936874389648,
0.08712023496627808,
0.192185640335083,
0.3942381739616394,
0.08774308860301971,
-0.2509025037288666,
-0.0993419885635376,
-0.04067210853099823,
-0.28723105788230896,
-0.03263535350561142,
-0.142581045627594,
0.2985756993293762,
-0.10216855257749557,
0.002405475825071335,
0.26073792576789856,
0.08077061176300049,
0.5792791247367859,
-0.28433313965797424,
0.008404775522649288,
-0.023325778543949127,
0.2975991666316986,
-0.2074871063232422,
0.05213790386915207,
0.4288756251335144,
0.38086259365081787,
0.01616397500038147,
-0.09825286269187927,
-0.44453907012939453,
-0.30563563108444214,
0.3296529948711395,
-0.43945902585983276,
-0.4657530188560486,
-0.13549640774726868,
0.07438932359218597,
-0.43524473905563354,
0.0035240035504102707,
0.0006517581641674042,
-0.23478057980537415,
0.16041716933250427,
-0.3929882347583771,
-0.02172357589006424,
-0.3515499532222748,
-0.04343219846487045,
-0.2112886756658554,
0.25022757053375244,
0.3778168559074402,
-0.6014805436134338,
0.012842632830142975,
-0.3805825412273407,
0.15508246421813965,
0.11992961913347244,
0.19890788197517395,
-0.16859737038612366,
0.5266979336738586,
-0.2713930606842041,
-0.09150183945894241,
0.6319553852081299,
-0.6368861198425293,
-0.8415308594703674,
-0.16621506214141846,
-0.062347374856472015,
-0.049129389226436615,
0.23308676481246948,
0.29538968205451965,
0.17698663473129272,
-0.20696783065795898,
0.005366014316678047,
0.028004754334688187,
-0.1691214144229889,
-0.11352036893367767,
-0.1612263172864914,
-0.18575143814086914,
-0.3377089202404022,
0.14517465233802795,
-0.04247447848320007,
-0.19019177556037903,
0.3948429524898529,
-0.029916351661086082,
-0.028318170458078384,
0.03570724278688431,
0.004188958555459976,
0.13330724835395813,
0.5193718671798706,
0.18914948403835297,
-0.0042396970093250275,
0.023118384182453156,
-0.3082270622253418,
0.04484798014163971,
-0.10940758883953094,
0.06475014984607697,
-0.30854982137680054,
-0.04041024670004845,
-0.2715916037559509,
-0.30366194248199463,
-0.4424656331539154,
-0.2636527419090271,
0.021144140511751175,
-0.034180980175733566,
0.339051753282547,
0.08272188901901245,
-0.040954336524009705,
0.0463736355304718,
-0.03916217014193535,
0.03713461756706238,
-0.18167050182819366,
0.13812288641929626,
-0.1515359878540039,
-0.30195340514183044,
-0.05270631983876228,
0.2655152678489685,
-0.07926376163959503,
0.005150541663169861,
-0.15738362073898315,
0.1158522516489029,
0.17054109275341034,
-0.18269768357276917,
0.2029101848602295,
0.24538308382034302,
0.21086640655994415,
-0.2708519697189331,
0.1889868676662445,
-0.008236253634095192,
0.14061881601810455,
0.02245621383190155,
-0.026513922959566116,
0.18148398399353027,
0.06429921090602875,
-0.09261718392372131,
0.01420343667268753,
-0.15763628482818604,
0.3949756324291229,
-0.04139503091573715,
0.007103435695171356,
-0.06916485726833344,
0.10237081348896027,
0.2601839303970337,
0.26869118213653564,
0.0029979199171066284,
-0.15575845539569855,
0.018282640725374222,
0.5315015912055969,
0.11428242921829224,
0.00699170958250761,
0.053042806684970856,
-0.13273677229881287,
0.09639018028974533,
0.2903289496898651,
0.47293025255203247,
0.6047755479812622,
0.3320864140987396,
-0.20148760080337524,
-0.1512371152639389,
0.09975415468215942,
-0.13108345866203308,
0.09551731497049332,
0.10108773410320282,
0.21358588337898254,
0.2487533539533615,
0.09122748672962189,
0.08356758952140808,
-0.05029551684856415,
-0.5824815630912781,
-0.05930802971124649,
0.3502301871776581,
-0.1561136245727539,
-0.12992529571056366,
-0.16298529505729675,
-0.4231377840042114,
0.012132398784160614,
-0.2939906418323517,
0.15316088497638702,
-0.04118061065673828,
-0.012482992373406887,
0.27933016419410706,
0.31219926476478577,
0.15062306821346283,
-0.12417638301849365,
0.10465728491544724,
0.0333118662238121,
-0.5073768496513367,
-0.10873515903949738,
-0.08982518315315247,
-0.11686429381370544,
0.026091955602169037,
0.4296645522117615,
0.09903077781200409,
0.28512877225875854,
-0.40565526485443115,
0.14470350742340088,
-0.27275845408439636,
-0.14654318988323212,
0.20223471522331238,
0.04958223178982735,
0.33682551980018616,
0.18841402232646942,
0.1252974420785904,
-0.2552148103713989,
-0.02740834839642048,
0.26410889625549316,
-0.061229877173900604,
-0.14085575938224792,
-0.09807322919368744,
-0.2689775228500366,
-0.05545581504702568,
0.05292727053165436,
-0.34383663535118103,
-0.5639114379882812,
-0.258571982383728,
-0.1811029613018036,
0.18918752670288086,
0.1829725205898285,
0.0982801541686058,
0.16704688966274261,
0.17943987250328064,
0.03412370756268501,
-0.06522591412067413,
0.07894827425479889,
-0.5655248761177063,
0.4193029999732971,
-0.5766729116439819,
-0.12473117560148239,
0.4705353379249573,
-0.14884734153747559,
0.5684301853179932,
0.02059963345527649,
-0.2560327351093292,
-0.08911426365375519,
-0.15989500284194946,
0.4458845257759094,
-0.18850383162498474,
0.039676733314991,
0.33153045177459717,
-0.014748986810445786,
0.043048106133937836,
0.0007883608341217041,
-0.0024128109216690063,
-0.06214866787195206,
0.04070747643709183,
0.6619493365287781,
0.19210031628608704,
0.4910690486431122,
-0.2392265349626541,
0.5676392912864685,
0.07564091682434082,
-0.044208038598299026,
0.42629846930503845,
-0.17832303047180176,
0.22196230292320251,
-0.506176233291626,
-0.14532968401908875,
0.1648273766040802,
0.185512512922287,
-0.1260240226984024,
0.12721683084964752,
0.26104751229286194,
-0.0493677482008934,
-0.23328697681427002,
0.09220235049724579,
-0.349393367767334,
-0.04005831107497215,
0.01509288139641285,
0.29603368043899536,
0.16702358424663544,
0.0034791752696037292,
0.0046507492661476135,
-0.11226397752761841,
-0.41511860489845276,
0.013592232018709183,
0.48286932706832886,
-0.0788007527589798,
0.27388796210289,
0.21620020270347595,
-0.430986225605011,
-0.35677027702331543,
0.20085282623767853,
0.2648073136806488,
-0.18657469749450684,
-0.17550015449523926,
0.1863671839237213,
0.16183994710445404,
0.15472954511642456,
0.44477379322052,
-0.03233608603477478,
0.07827824354171753,
0.180215984582901,
-0.024722926318645477,
-0.025211751461029053,
-0.0299440398812294,
-0.1443330943584442,
0.2997742295265198,
0.25181496143341064,
0.14301252365112305,
-0.08639250695705414,
-0.17898622155189514,
0.1666560173034668,
0.10228531807661057,
-0.1228085458278656,
0.02575324848294258,
-0.10046754777431488,
-0.5379289388656616,
-0.37526100873947144,
-0.15745696425437927,
0.04065311700105667,
0.24525371193885803,
0.15218853950500488,
-0.08701833337545395,
0.056965552270412445,
0.0963929295539856,
0.07277446985244751,
0.23352059721946716,
0.5060461163520813,
-0.036047887057065964,
0.025024183094501495,
-0.015061075799167156,
-0.3126758337020874,
0.6949641704559326,
0.47294414043426514,
0.05678895115852356,
-0.28657999634742737,
0.034061282873153687,
-0.14374130964279175,
0.14735238254070282,
-0.010249041020870209,
-0.0963008776307106,
-0.24351903796195984,
-0.49355557560920715,
0.06725621968507767,
0.2556270360946655,
0.1614799201488495,
0.1735776960849762,
0.02134282886981964,
-0.3130955100059509,
-0.2729228436946869,
0.1826113909482956,
0.032707735896110535,
0.21563506126403809,
0.3947991132736206,
0.2493327111005783,
-0.1905590295791626,
0.4591023623943329,
-0.0358181856572628,
0.8300564289093018,
0.0358709916472435,
0.11063968390226364,
0.17122283577919006,
0.11616586893796921,
0.4242929220199585,
-0.15242864191532135,
0.3545798659324646,
-0.17720112204551697,
-0.06231428682804108,
-0.15703867375850677,
-0.16647455096244812,
0.08439531922340393,
0.25735360383987427,
-0.22871902585029602,
0.3569447696208954,
0.3331587016582489,
0.10487276315689087,
-0.03239535912871361,
0.19064782559871674,
-0.2452906221151352,
0.08188550174236298,
-0.15702342987060547,
0.07918375730514526,
-0.15490922331809998,
0.6620939373970032,
-0.0841338261961937,
-0.16756008565425873,
-0.5331511497497559,
-0.06499368697404861,
-0.16655762493610382,
-0.1421954333782196,
-0.55193692445755,
0.2744590640068054,
-0.18330682814121246,
-0.8469386696815491,
0.09232178330421448,
0.29167038202285767,
-0.11294815689325333,
0.10487249493598938,
-0.33786192536354065,
0.22168654203414917,
0.3370819687843323,
-0.2387387752532959,
0.18347153067588806,
0.1530795395374298,
0.10346677154302597,
-0.25921881198883057,
-0.22604867815971375,
0.04140208289027214,
0.12492180615663528,
-0.3734331429004669,
0.11934709548950195,
-0.1821628212928772,
0.07808298617601395,
-0.12100599706172943,
-0.408934086561203,
-0.16842836141586304,
-0.14271819591522217,
-0.05412565916776657,
0.08819595724344254,
0.06457870453596115,
0.062432531267404556,
0.23282139003276825,
-0.2019103765487671,
-0.26595932245254517,
-0.18750742077827454,
0.0992814376950264,
-0.2765614688396454,
0.4114072024822235,
0.5215311646461487,
0.022476091980934143,
-0.16648182272911072,
-0.11050847172737122,
0.2171851396560669,
-0.16085514426231384,
-0.31354448199272156,
0.025799613445997238,
0.10303236544132233,
0.2682356834411621,
0.002202000468969345,
0.3596259355545044,
0.3383306860923767,
-0.19767546653747559,
-0.06653517484664917,
-0.5111648440361023,
-0.17946437001228333,
0.22166815400123596,
0.2026064693927765,
0.313202828168869,
-0.18025700747966766,
0.2094539850950241,
0.17142198979854584,
-0.40077200531959534,
-0.2214139848947525,
0.1799665093421936,
-0.08622867614030838,
0.05072963610291481,
-0.03413600102066994,
0.14435754716396332,
0.3577934801578522,
0.09807103872299194,
-0.006873946636915207,
-0.13185769319534302,
-0.16162380576133728,
-0.21573561429977417,
0.1419704556465149,
0.14294937252998352,
-0.018537063151597977,
0.010515905916690826,
-0.06889530271291733,
-0.060512423515319824,
-0.08238731324672699,
-0.03001304529607296,
0.15197214484214783,
0.2290613204240799,
-0.009497947990894318,
0.19909745454788208,
0.060187168419361115,
-0.07607480883598328,
-0.11694192886352539,
0.3815585970878601,
0.13565081357955933,
0.17045935988426208,
0.16903939843177795,
0.2944317162036896,
0.051256678998470306,
-0.031167559325695038,
-0.00932043045759201,
-0.14812123775482178,
-0.3203987777233124,
0.021012082695961,
0.1947283148765564,
-0.18557773530483246,
0.016272298991680145,
0.2852482199668884,
0.0702979639172554,
0.05839507654309273,
-0.08021502196788788,
0.1453116536140442,
0.2804785370826721,
0.061956778168678284,
-0.21226249635219574,
0.10615202784538269,
0.32973557710647583,
0.21417349576950073,
0.0580625981092453,
0.2490781992673874,
-0.024248287081718445,
0.0569596141576767,
0.03402865678071976,
0.19547201693058014,
0.758529782295227,
-0.20845219492912292,
-0.09514375030994415,
0.29746904969215393,
-0.048634592443704605,
0.2966543436050415,
0.015199525281786919,
0.03201277181506157,
0.08893199265003204,
0.4520905315876007,
-0.13120855391025543,
0.36908867955207825,
-0.1816401183605194,
0.10361874848604202,
-0.01687069609761238,
-0.4776885509490967,
-0.3266046345233917,
-0.23459289968013763,
-0.1599961817264557,
-0.16802191734313965,
-0.0013959184288978577,
0.5693008303642273,
0.020611610263586044,
0.12685951590538025,
-0.2767932116985321,
0.035546284168958664,
-0.31360843777656555,
0.2228030562400818,
-0.27532801032066345,
-0.21705684065818787,
0.24898314476013184,
0.04732688516378403,
0.028721284121274948,
0.08381136506795883,
-0.12339499592781067,
0.21483328938484192,
-0.2976410388946533,
0.19650748372077942,
0.05697564035654068,
0.0758286640048027,
-0.05001523718237877,
-0.07995463162660599,
0.3521752655506134,
0.05489591509103775,
-0.09956415742635727,
-0.14382751286029816,
0.2892385423183441,
0.47523730993270874,
0.3081265389919281,
-0.005724295973777771,
-0.10636276751756668,
-0.019874239340424538,
-0.2170749306678772,
-0.11123599857091904,
0.023557450622320175,
0.10226640105247498,
-0.02056286670267582,
-0.011727768927812576,
0.14690040051937103,
-0.06780266761779785,
0.04238848760724068,
0.06828867644071579,
-0.09842036664485931,
-0.059191472828388214,
0.0013837888836860657,
-0.08751071989536285,
-0.22621557116508484,
-0.14558947086334229,
0.06451396644115448,
-0.3305792808532715,
0.07007487118244171,
-0.03510425612330437,
0.026613745838403702,
-0.00922287255525589,
-0.05505083501338959,
0.020775947719812393,
-0.23827169835567474,
0.09306590259075165,
0.27953240275382996,
0.35450440645217896,
-0.43598294258117676,
-0.16758456826210022,
-0.5266872048377991,
0.08687211573123932,
-0.11022195219993591,
-0.16367319226264954,
-0.19490894675254822,
0.15380966663360596,
-0.4237273931503296,
0.08209852874279022,
0.3141465187072754,
0.002733074128627777,
0.2736623287200928,
0.31615591049194336,
-0.16671082377433777,
-0.2694211006164551,
-0.09418677538633347,
-0.07495296746492386,
-0.00455547496676445,
-0.2586072087287903,
0.03182494640350342,
-0.14932896196842194,
-0.06179011985659599,
-0.18871992826461792,
-0.2497362494468689,
0.15259993076324463,
-0.02564825862646103,
0.49469009041786194,
-0.17386884987354279,
0.5443021059036255,
-0.14266377687454224,
0.18135176599025726,
0.09708650410175323,
-0.013570306822657585,
-0.08429519832134247,
0.0893273875117302,
0.14161120355129242,
0.35052165389060974,
-0.25505170226097107,
-0.015750091522932053,
-0.2995866537094116,
0.1975637674331665,
-0.05927462503314018,
-0.034116603434085846,
-0.0428285114467144,
-0.11274941265583038,
-0.2846974730491638,
0.25591111183166504,
0.16056442260742188,
0.0230689886957407,
-0.169834703207016,
0.12079676240682602,
-0.31960493326187134,
-0.11808722466230392,
0.5395078063011169,
-0.18129651248455048,
0.14852888882160187,
-0.1643863022327423,
0.028692662715911865,
-0.07907320559024811,
-0.2623629570007324,
0.05923439562320709,
0.08532989025115967,
0.21876288950443268,
0.14011871814727783,
-0.17868775129318237,
0.29414787888526917,
0.11966180801391602,
0.035120926797389984,
0.15723294019699097,
0.5685504078865051,
0.0433792918920517,
-0.023019634187221527,
-0.28874868154525757,
-0.1851944774389267
] |
https://github.com/huggingface/datasets/issues/2052 | Hi,
this was fixed by #1995, so you can wait for the next release or install the package directly from the master branch with the following command:
```bash
pip install git+https://github.com/huggingface/datasets
``` | Timit_asr dataset repeats examples | Summary
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same
Steps to reproduce
As an example, on this code there is the text from the training part:
Code snippet:
```
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
timit['train']['text']
#['Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
```
The same behavior happens for other columns
Expected behavior:
Different info on the actual timit_asr dataset
Actual behavior:
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same. I've checked datasets 1.3 and the rows are different
Debug info
Streamlit version: (get it with $ streamlit version)
Python version: Python 3.6.12
Using Conda? PipEnv? PyEnv? Pex? Using pip
OS version: Centos-release-7-9.2009.1.el7.centos.x86_64
Additional information
You can check the same behavior on https://huggingface.co/datasets/viewer/?dataset=timit_asr | 32 | Timit_asr dataset repeats examples
Summary
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same
Steps to reproduce
As an example, on this code there is the text from the training part:
Code snippet:
```
from datasets import load_dataset, load_metric
timit = load_dataset("timit_asr")
timit['train']['text']
#['Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
# 'Would such an act of refusal be useful?',
```
The same behavior happens for other columns
Expected behavior:
Different info on the actual timit_asr dataset
Actual behavior:
When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same. I've checked datasets 1.3 and the rows are different
Debug info
Streamlit version: (get it with $ streamlit version)
Python version: Python 3.6.12
Using Conda? PipEnv? PyEnv? Pex? Using pip
OS version: Centos-release-7-9.2009.1.el7.centos.x86_64
Additional information
You can check the same behavior on https://huggingface.co/datasets/viewer/?dataset=timit_asr
Hi,
this was fixed by #1995, so you can wait for the next release or install the package directly from the master branch with the following command:
```bash
pip install git+https://github.com/huggingface/datasets
``` | [
0.06932377070188522,
-0.23608100414276123,
0.014321446418762207,
0.38754141330718994,
0.2564872205257416,
-0.05277504026889801,
0.3894461691379547,
0.1509234458208084,
-0.3530937433242798,
0.21451421082019806,
0.03625626116991043,
0.3838866353034973,
-0.19141097366809845,
0.3149210810661316,
0.1428200751543045,
0.08972427248954773,
-0.06450813263654709,
0.17463001608848572,
-0.5109459757804871,
-0.20785436034202576,
0.15595941245555878,
0.10734938830137253,
-0.04419978708028793,
-0.021940991282463074,
-0.19256389141082764,
0.2516244649887085,
0.0345335453748703,
-0.27534034848213196,
0.028873883187770844,
-0.6021386384963989,
0.21523559093475342,
0.08594042807817459,
0.16023582220077515,
0.5223377346992493,
-0.00012033857638016343,
0.08506260067224503,
-0.10062522441148758,
-0.058589428663253784,
-0.44371461868286133,
-0.33151304721832275,
-0.12937353551387787,
-0.009858842939138412,
0.499436616897583,
-0.12943069636821747,
-0.35387974977493286,
-0.26584193110466003,
0.022859780117869377,
0.1678990125656128,
0.13871300220489502,
0.19774875044822693,
0.14430013298988342,
0.20762896537780762,
-0.485228568315506,
-0.05988400802016258,
0.17897562682628632,
0.09279710054397583,
-0.0897975042462349,
0.1834603250026703,
-0.1145901009440422,
0.343479722738266,
-0.08619299530982971,
0.2969876229763031,
0.04721543937921524,
0.3001301884651184,
-0.03258899599313736,
0.03432969003915787,
0.08034300804138184,
-0.1385798305273056,
0.053086988627910614,
0.30745214223861694,
0.6112803816795349,
-0.19117286801338196,
-0.006163798272609711,
-0.2379681020975113,
0.2809107303619385,
-0.008917070925235748,
0.13152259588241577,
0.22823722660541534,
-0.15788957476615906,
0.17160449922084808,
-0.4439935088157654,
0.16408199071884155,
-0.2220606505870819,
0.10229087620973587,
-0.07236501574516296,
-0.4805193543434143,
-0.2431517094373703,
0.0890062004327774,
-0.19932471215724945,
-0.19239316880702972,
0.20144891738891602,
-0.21418756246566772,
0.15944413840770721,
0.034559231251478195,
-0.2622406780719757,
0.1092173308134079,
-0.03982238471508026,
0.2607022225856781,
0.04372147470712662,
0.21765848994255066,
0.7037342190742493,
0.19501930475234985,
-0.16518910229206085,
-0.12095202505588531,
0.1111266016960144,
0.2142631858587265,
0.14031408727169037,
-0.10361193120479584,
0.0006799325346946716,
0.14066185057163239,
-0.32478949427604675,
0.016145024448633194,
-0.09482041001319885,
0.3506811261177063,
0.29835447669029236,
-0.4594764709472656,
0.24851255118846893,
-0.24131615459918976,
-0.4751442074775696,
0.17532750964164734,
-0.43297523260116577,
-0.1862199306488037,
-0.030171798542141914,
0.1282127946615219,
-0.03281763941049576,
0.28878864645957947,
-0.06715241819620132,
-0.1436188519001007,
0.0331263542175293,
-0.1429728865623474,
-0.17336980998516083,
-0.24472318589687347,
-0.29972028732299805,
0.31735947728157043,
0.1830931305885315,
-0.5795411467552185,
0.17554298043251038,
0.5316575169563293,
-0.0979861468076706,
-0.059951648116111755,
0.1499045491218567,
0.04843367636203766,
0.06053915619850159,
0.0527876578271389,
-0.0916912779211998,
0.21545466780662537,
0.045324113219976425,
0.19597065448760986,
-0.00455145537853241,
0.09920652955770493,
0.006008160300552845,
0.08487282693386078,
0.508686363697052,
0.19522592425346375,
-0.3254634737968445,
-0.14162972569465637,
-0.13613037765026093,
0.15038840472698212,
-0.13097022473812103,
-0.10115453600883484,
0.0790347084403038,
-0.22111466526985168,
-0.1790561079978943,
-0.17749303579330444,
0.06750572472810745,
0.3432033061981201,
-0.3481624722480774,
-0.17978572845458984,
0.3411162495613098,
0.0673227608203888,
0.12096032500267029,
0.01706916093826294,
-0.03977068513631821,
0.2547905743122101,
-0.15842445194721222,
-0.06254970282316208,
0.019832294434309006,
-0.18381397426128387,
-0.2675590217113495,
0.13680866360664368,
-0.03174993395805359,
0.46771639585494995,
0.018071584403514862,
-0.04579627886414528,
0.32518258690834045,
0.37205907702445984,
0.08713708817958832,
-0.04690784960985184,
0.40461230278015137,
-0.037094440311193466,
-0.41913101077079773,
-0.06839139759540558,
0.1653863489627838,
0.19854341447353363,
-0.17358985543251038,
0.2753487229347229,
0.11031022667884827,
-0.06502248346805573,
0.3484918475151062,
-0.11650235950946808,
-0.14797452092170715,
-0.13332703709602356,
0.09105397760868073,
0.15530931949615479,
0.1657627671957016,
-0.37851232290267944,
-0.13619926571846008,
-0.013142161071300507,
0.2551572918891907,
0.19182711839675903,
0.3550345301628113,
-0.03331834822893143,
-0.36649566888809204,
-0.2809584140777588,
-0.39504969120025635,
-0.037855587899684906,
0.10212484747171402,
0.5243573188781738,
-0.020652759820222855,
0.2404850721359253,
0.025402948260307312,
0.6545196175575256,
-0.48340100049972534,
0.15544827282428741,
-0.11687307059764862,
0.18298190832138062,
0.07460767030715942,
-0.008381705731153488,
0.02388639748096466,
0.08530452847480774,
0.1819915473461151,
-0.1432332992553711,
0.11976844072341919,
0.32225358486175537,
0.06084395945072174,
-0.022939447313547134,
-0.22276875376701355,
-0.19323298335075378,
0.2595638036727905,
-0.19837605953216553,
-0.15344099700450897,
0.18771901726722717,
0.1179833635687828,
0.03574301302433014,
-0.09552132338285446,
0.30966371297836304,
0.010377330705523491,
0.14830683171749115,
0.22136524319648743,
0.07385188341140747,
0.021174974739551544,
-0.08089958876371384,
-0.36857283115386963,
-0.4152880311012268,
0.41159433126449585,
-0.04455935209989548,
0.06609638035297394,
0.17359870672225952,
-0.41374471783638,
0.1797877550125122,
0.0957721471786499,
-0.12905725836753845,
-0.13192708790302277,
0.19785457849502563,
-0.15852227807044983,
0.24808742105960846,
0.0489424467086792,
0.30099552869796753,
0.22301557660102844,
0.1953907310962677,
-0.001930571161210537,
0.07476723939180374,
-0.2692967653274536,
-0.19357414543628693,
0.14332205057144165,
0.01934468373656273,
-0.26032307744026184,
0.40373849868774414,
0.21911579370498657,
-0.017681382596492767,
-0.6143211126327515,
-0.0884905532002449,
0.21711848676204681,
0.2974386215209961,
-0.2661319971084595,
0.08534977585077286,
-0.4890751838684082,
-0.04500657320022583,
-0.30117470026016235,
-0.1606362760066986,
0.1040867492556572,
0.0812571570277214,
0.03938392922282219,
0.20805756747722626,
0.19908109307289124,
0.20264509320259094,
-0.39721164107322693,
0.2981904447078705,
-0.06823399662971497,
0.43915748596191406,
-0.09727094322443008,
0.24798107147216797,
-0.33489421010017395,
0.042461879551410675,
-0.08527271449565887,
0.12156639248132706,
0.268883615732193,
-0.4862581789493561,
0.09935441613197327,
-0.31780198216438293,
-0.3299519419670105,
0.39187726378440857,
-0.14892004430294037,
0.47573792934417725,
0.22168715298175812,
0.07834681868553162,
-0.1970853954553604,
-0.25063174962997437,
0.010231994092464447,
-0.14003004133701324,
-0.20912238955497742,
0.12644146382808685,
-0.05641975998878479,
0.0704469233751297,
-0.17075589299201965,
-0.5320759415626526,
0.13262048363685608,
-0.17592430114746094,
0.42669832706451416,
0.1929594725370407,
0.15905335545539856,
0.5182474851608276,
0.027614612132310867,
0.3334205150604248,
0.11542856693267822,
0.2547900676727295,
-0.4598691463470459,
-0.2551383972167969,
0.22258970141410828,
-0.058835357427597046,
-0.13104307651519775,
-0.1529299020767212,
0.020457647740840912,
0.06936605274677277,
0.27385663986206055,
-0.6682430505752563,
-0.05946710705757141,
-0.23476029932498932,
0.06697378307580948,
0.009898333810269833,
0.06578567624092102,
0.17932599782943726,
-0.08590253442525864,
-0.03529743105173111,
-0.13921114802360535,
-0.013734966516494751,
0.20269973576068878,
-0.0850532054901123,
-0.05056685581803322,
0.05240099877119064,
0.15729045867919922,
0.0933312475681305,
0.19903242588043213,
0.4609858989715576,
-0.10917077958583832,
0.29486411809921265,
-0.09480161964893341,
0.5107044577598572,
-0.07972507923841476,
-0.17769810557365417,
-0.21116489171981812,
-0.11231078207492828,
0.012511417269706726,
0.26503416895866394,
-0.14423315227031708,
0.18554270267486572,
-0.05280196666717529,
-0.007715135812759399,
0.05567711591720581,
-0.270303338766098,
-0.2283928245306015,
-0.4031396508216858,
0.33692508935928345,
0.19738182425498962,
0.1473367065191269,
0.023982562124729156,
-0.1598917543888092,
-0.23915033042430878,
0.27519404888153076,
0.10585502535104752,
-0.05467594787478447,
-0.7649231553077698,
-0.20497465133666992,
-0.4185812175273895,
0.24637433886528015,
0.34615448117256165,
0.3524981737136841,
0.09825073182582855,
-0.28501951694488525,
0.42312610149383545,
0.08939725905656815,
0.5272783041000366,
-0.42617371678352356,
-0.12258288264274597,
0.0781606137752533,
0.07081088423728943,
-0.5122363567352295,
-0.1821727752685547,
-0.376961886882782,
-0.10747969150543213,
0.10667525231838226,
0.3323649764060974,
-0.14470012485980988,
-0.25692418217658997,
0.28970369696617126,
0.24838320910930634,
-0.13746261596679688,
-0.21363596618175507,
-0.07764748483896255,
-0.07472102344036102,
0.06465320289134979,
-0.001866266131401062,
-0.24642370641231537,
-0.12127675861120224,
-0.39477837085723877,
0.012344986200332642,
-0.29855647683143616,
0.1659851372241974,
0.5115224719047546,
0.2698187828063965,
0.49009281396865845,
0.00917074829339981,
0.3090982139110565,
0.3732331395149231,
-0.05116057023406029,
0.18707478046417236,
0.571359395980835,
-0.3596920371055603,
-0.004707865417003632,
0.19240523874759674,
-0.2698390781879425,
0.10468551516532898,
0.4873097240924835,
-0.060864295810461044,
0.2108045220375061,
-0.21177639067173004,
-0.018489938229322433,
-0.1353258192539215,
0.23548470437526703,
0.25728702545166016,
0.008317790925502777,
0.08976536989212036,
-0.6204380989074707,
0.26613864302635193,
0.008617840707302094,
-0.2467440664768219,
0.27055996656417847,
0.07447099685668945,
-0.09553153812885284,
0.159713476896286,
-0.27956622838974,
0.8087236881256104,
0.1241445392370224,
0.5083410143852234,
0.3728879392147064,
0.02765294909477234,
0.05371719226241112,
-0.12369270622730255,
0.0781792476773262,
-0.20461654663085938,
-0.20072327554225922,
-0.12225178629159927,
-0.16528944671154022,
-0.0426904521882534,
0.11962085962295532,
-0.37272197008132935,
0.0550796203315258,
-0.04008907079696655,
0.21999409794807434,
0.11894819140434265,
0.030928917229175568,
-0.24421828985214233,
0.09775854647159576,
-0.044365450739860535,
0.05916991084814072,
0.06498821824789047,
0.11208057403564453,
0.10477636754512787,
0.15554988384246826,
0.3324551284313202,
-0.2676260769367218,
-0.28835082054138184,
0.025153107941150665,
-0.1185302734375,
-0.12339433282613754,
0.01508813351392746,
-0.5537111759185791,
-0.05436393618583679,
0.02271720953285694,
0.03766457736492157,
0.08256259560585022,
0.019677573814988136,
-0.18978431820869446,
0.14448215067386627,
0.28915831446647644,
-0.26729100942611694,
-0.04021969437599182,
0.5374184250831604,
0.23137933015823364,
-0.32568591833114624,
0.1473492532968521,
0.27184492349624634,
-0.0018390938639640808,
-0.3763468861579895,
0.13288255035877228,
-0.2728024125099182,
-0.6834980845451355,
0.09932616353034973,
0.018812477588653564,
-0.05487755686044693,
-0.22638508677482605,
0.07696627825498581,
-0.31523817777633667,
-0.16917331516742706,
0.24659495055675507,
0.31255975365638733,
-0.4311821460723877,
-0.1518794447183609,
0.40578731894493103,
0.3899215757846832,
-0.032227203249931335,
0.48338425159454346,
-0.055357448756694794,
-0.09314949810504913,
-0.2447720468044281,
0.08967738598585129,
0.1940062940120697,
-0.2671211361885071,
0.08319027721881866,
-0.21828658878803253,
0.23541894555091858,
0.21104753017425537,
0.24754953384399414,
0.0582139752805233,
-0.037555351853370667,
-0.31823983788490295,
-0.2167702168226242,
0.05500961095094681,
0.13999691605567932,
0.2336660772562027,
0.374697744846344,
-0.049318090081214905,
0.2886081039905548,
-0.012801550328731537,
-0.1217283308506012,
-0.2259509265422821,
0.3694862127304077,
0.07178318500518799,
0.23209260404109955,
0.04767260700464249,
-0.28353917598724365,
0.2777881622314453,
-0.0037467218935489655,
0.08948713541030884,
0.28113025426864624,
-0.15671879053115845,
-0.10799480974674225,
-0.37540769577026367,
0.1233825832605362,
0.03196735307574272,
0.062264248728752136,
-0.2143041491508484,
0.04906878620386124,
0.14484763145446777,
-0.00801190547645092,
0.20081961154937744,
0.2167953997850418,
0.03449206054210663,
0.1800309270620346,
-0.06338247656822205,
0.16113868355751038,
0.0755770206451416,
-0.19406041502952576,
-0.08796631544828415,
0.02658156491816044,
0.3356523811817169,
-0.11457020044326782,
-0.36869141459465027,
0.12558645009994507,
-0.2908983528614044,
0.13725900650024414,
0.22784845530986786,
-0.06070363149046898,
0.006029034033417702,
-0.22502262890338898,
-0.005733974277973175,
0.09072735905647278,
0.25559914112091064,
0.5138311982154846,
-0.2099699079990387,
-0.3390117585659027,
0.05770294740796089,
0.1151939183473587,
-0.1063014417886734,
-0.11410842835903168,
-0.1480737328529358,
0.12495219707489014,
0.1658429205417633,
0.3090195655822754,
0.051454827189445496,
-0.42457497119903564,
0.4315132200717926,
-0.1258099228143692,
0.24995170533657074,
-0.23171919584274292,
0.2440086156129837,
0.41433030366897583,
-0.0603279285132885,
-0.1476062834262848,
0.2601907253265381,
0.12352869659662247,
-0.21308645606040955,
0.5466446876525879,
-0.06037265807390213,
0.029023313894867897,
-0.3541243076324463,
-0.024836711585521698,
0.08989346027374268,
-0.10185782611370087,
-0.08028118312358856,
0.23034994304180145,
-0.21280810236930847,
0.3305298089981079,
0.1146320253610611,
0.4066488742828369,
-0.04084520787000656,
-0.0810561329126358,
-0.3341463804244995,
-0.27296218276023865,
-0.25808680057525635,
-0.13054445385932922,
-0.30988967418670654,
-0.4051511287689209,
-0.06257633119821548,
0.05754271149635315,
-0.19616451859474182,
0.05446057766675949,
0.49979153275489807,
0.14600427448749542,
-0.008259497582912445,
-0.7142173647880554,
-0.2702357769012451,
0.1107901781797409,
0.29334011673927307,
0.04919157177209854,
0.47030946612358093,
0.13401512801647186,
0.01781557872891426,
0.08531210571527481,
0.19572992622852325,
0.23974382877349854,
0.18891802430152893,
0.1225123330950737,
0.1102057695388794,
-0.37644827365875244,
0.07457496970891953,
0.06370370090007782,
0.3070594072341919,
0.07657867670059204,
-0.27329036593437195,
0.10728709399700165,
0.03339807689189911,
-0.07894260436296463,
0.2780892550945282,
0.06806983053684235,
-0.02647019550204277,
-0.8032143115997314,
0.35196149349212646,
0.019274182617664337,
0.2420414388179779,
0.0527271032333374,
-0.035287778824567795,
-0.45741668343544006,
0.4931131601333618,
0.3092859387397766,
0.032106440514326096,
0.05305328965187073,
-0.2545376121997833,
0.0737999677658081,
-0.24975737929344177,
0.2542213499546051,
0.1347322165966034,
-0.019086943939328194,
-0.12400390207767487,
-0.16254273056983948,
-0.6735636591911316,
0.07172214239835739,
-0.2230778932571411,
-0.012496665120124817,
0.15405860543251038,
0.06004006415605545,
-0.0518551804125309,
0.08834345638751984,
0.17885446548461914,
0.08643925935029984,
-0.4328102171421051,
0.04753793403506279,
-0.401068776845932,
-0.13230498135089874,
0.12054964900016785,
0.06344129145145416,
-0.07101980596780777,
-0.11094792932271957,
0.04704969748854637,
-0.10677181929349899,
-0.039010386914014816,
-0.04584047943353653,
0.0019415542483329773,
-0.08507978171110153,
0.1856611669063568,
-0.011327918618917465,
-0.0458151139318943,
0.3190465569496155,
0.13763584196567535,
-0.13626980781555176,
-0.3025197386741638,
-0.3942963778972626,
-0.132710263133049,
0.4103941321372986,
0.16523194313049316,
0.13514567911624908,
-0.10270455479621887,
-0.5430186986923218,
0.029053781181573868,
0.059609510004520416,
0.31606173515319824,
0.10683031380176544,
0.03542107343673706,
0.0028794333338737488,
-0.21547643840312958,
0.16014346480369568,
0.027387309819459915,
0.6485618948936462,
0.10671956837177277,
0.16071656346321106,
-0.19408056139945984,
-0.6553240418434143,
0.4583483934402466,
-0.6851571798324585,
-0.3094450831413269,
-0.12231620401144028,
0.17611198127269745,
0.13547082245349884,
-0.20740516483783722,
-0.7160694599151611,
-0.010619014501571655,
0.5319483876228333,
-0.17390309274196625,
-0.07667416334152222,
0.39153414964675903,
-0.04291081055998802,
0.019274309277534485,
-0.26808691024780273,
0.6225160956382751,
0.4484643042087555,
-0.3485529124736786,
0.10752460360527039,
-0.368380069732666
] |
https://github.com/huggingface/datasets/issues/2050 | Sure you can use the json loader
```python
data_files = {"train": "path/to/your/train_data.json", "test": "path/to/your/test_data.json"}
train_dataset = load_dataset("json", data_files=data_files, split="train")
test_dataset = load_dataset("json", data_files=data_files, split="test")
```
You just need to make sure that the data contain the paths to the audio files.
If not, feel free to use `.map()` to add them. | Build custom dataset to fine-tune Wav2Vec2 | Thank you for your recent tutorial on how to finetune Wav2Vec2 on a custom dataset. The example you gave here (https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) was on the CommonVoice dataset. However, what if I want to load my own dataset? I have a manifest (transcript and their audio files) in a JSON file.
| 51 | Build custom dataset to fine-tune Wav2Vec2
Thank you for your recent tutorial on how to finetune Wav2Vec2 on a custom dataset. The example you gave here (https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) was on the CommonVoice dataset. However, what if I want to load my own dataset? I have a manifest (transcript and their audio files) in a JSON file.
Sure you can use the json loader
```python
data_files = {"train": "path/to/your/train_data.json", "test": "path/to/your/test_data.json"}
train_dataset = load_dataset("json", data_files=data_files, split="train")
test_dataset = load_dataset("json", data_files=data_files, split="test")
```
You just need to make sure that the data contain the paths to the audio files.
If not, feel free to use `.map()` to add them. | [
-0.08610294759273529,
0.025272607803344727,
0.013138361275196075,
0.0565955713391304,
-0.015416242182254791,
-0.0016974955797195435,
0.04018605127930641,
0.16728049516677856,
0.11139741539955139,
-0.03239324688911438,
-0.21395531296730042,
0.4168873131275177,
-0.2158392369747162,
0.11425549536943436,
-0.026624344289302826,
0.025971850380301476,
-0.1856241375207901,
0.2257935255765915,
0.1270139217376709,
-0.02979317307472229,
-0.23030944168567657,
0.15053988993167877,
-0.08918733894824982,
-0.07079195976257324,
-0.12121039628982544,
0.11651980131864548,
0.17767798900604248,
0.4099346995353699,
-0.13589543104171753,
-0.3398262560367584,
0.40746623277664185,
0.3265334367752075,
0.1645616590976715,
0.3329024612903595,
-0.0000988554020295851,
-0.1569034606218338,
-0.014649607241153717,
-0.2888990640640259,
0.06872386485338211,
0.12926854193210602,
-0.49520546197891235,
-0.15905827283859253,
-0.103142149746418,
-0.059848852455616,
-0.29747432470321655,
-0.18606245517730713,
-0.2987945079803467,
-0.2663179636001587,
0.7216199636459351,
0.31418442726135254,
0.2168494164943695,
-0.31200623512268066,
0.028778307139873505,
-0.01626642420887947,
0.0748971551656723,
0.04785358905792236,
0.0662216767668724,
0.4144843816757202,
0.2814682424068451,
0.06522677838802338,
0.2580660581588745,
0.04390481114387512,
-0.30998581647872925,
0.1127447634935379,
0.26555049419403076,
-0.002798844128847122,
-0.41116976737976074,
-0.21625900268554688,
-0.09577459841966629,
0.5772785544395447,
0.4842570722103119,
-0.5012126564979553,
-0.19859230518341064,
-0.18905064463615417,
0.19998621940612793,
-0.4806694984436035,
-0.04145616292953491,
0.04582500457763672,
-0.1702147275209427,
0.30520200729370117,
-0.02569553069770336,
-0.36197879910469055,
-0.20766431093215942,
-0.09060647338628769,
0.04543460160493851,
0.0527968630194664,
-0.1664787232875824,
-0.058932702988386154,
0.04236094281077385,
-0.051307905465364456,
-0.1957065463066101,
0.03931679204106331,
-0.2192351371049881,
0.3246355950832367,
-0.42656445503234863,
-0.3958185017108917,
-0.09535764157772064,
-0.44234365224838257,
0.05045867711305618,
0.033885642886161804,
0.3694807291030884,
0.1431516855955124,
-0.11746232956647873,
0.15120112895965576,
0.021868154406547546,
0.010642141103744507,
0.0032329149544239044,
-0.17320185899734497,
0.09869576245546341,
-0.43266671895980835,
-0.03505397588014603,
0.026426151394844055,
-0.2180437296628952,
-0.043256860226392746,
-0.3427796959877014,
0.056650444865226746,
0.1485426127910614,
-0.31402847170829773,
-0.3048003315925598,
-0.08908633887767792,
-0.13655124604701996,
0.011078350245952606,
0.06657502055168152,
0.4089036285877228,
0.10105639696121216,
0.05411427095532417,
-0.05696721374988556,
0.39808207750320435,
0.1612129509449005,
0.01882566511631012,
0.043964315205812454,
0.2589758038520813,
0.3334701657295227,
0.1825694739818573,
0.37484368681907654,
0.00008609332144260406,
0.4036771059036255,
-0.1982593983411789,
0.20774447917938232,
-0.13878707587718964,
-0.03273216634988785,
0.1331547498703003,
-0.28262725472450256,
-0.05619220808148384,
-0.004810310900211334,
0.18394972383975983,
-0.10191117227077484,
0.031598374247550964,
-0.3335481882095337,
-0.09363344311714172,
-0.3694886267185211,
-0.3046225309371948,
0.11106373369693756,
0.22222301363945007,
-0.22404827177524567,
-0.1587858945131302,
-0.13896219432353973,
0.06356129795312881,
-0.10522203147411346,
-0.28927475214004517,
-0.2854253351688385,
-0.033619027584791183,
-0.2655041813850403,
-0.161924809217453,
0.1819530725479126,
-0.09873498976230621,
-0.6757566928863525,
0.08975692093372345,
-0.1216200441122055,
0.193148672580719,
0.00010645762085914612,
0.2764824628829956,
-0.04736407473683357,
0.5055427551269531,
-0.0960015058517456,
0.35634341835975647,
0.26185697317123413,
-0.4331696629524231,
-0.234276682138443,
0.3278564512729645,
-0.19370070099830627,
0.13959038257598877,
0.11195001006126404,
-0.053850457072257996,
0.41802093386650085,
-0.3144519627094269,
0.21697869896888733,
0.414783775806427,
0.1869998723268509,
0.010118722915649414,
0.14761142432689667,
-0.049518514424562454,
0.18540997803211212,
0.049597084522247314,
-0.3701094686985016,
-0.06951960921287537,
-0.11357783526182175,
-0.03352759778499603,
0.26872488856315613,
-0.1552431434392929,
0.06290921568870544,
0.1805385798215866,
0.24526947736740112,
-0.21021534502506256,
0.013358015567064285,
0.10913911461830139,
0.04477301239967346,
0.10262307524681091,
-0.11043265461921692,
0.005972918123006821,
0.3424818813800812,
0.07177570462226868,
-0.27542680501937866,
-0.20761731266975403,
-0.34488701820373535,
-0.3608686923980713,
0.18591107428073883,
0.1474170684814453,
0.22125717997550964,
-0.47529247403144836,
-0.41220739483833313,
0.08076860010623932,
-0.09431055933237076,
-0.1427309215068817,
-0.24583405256271362,
-0.03676869720220566,
0.35013797879219055,
0.007016319781541824,
0.39414146542549133,
0.39477288722991943,
0.1325920671224594,
0.14081093668937683,
-0.03190319240093231,
0.4642839729785919,
0.20633167028427124,
0.37023213505744934,
0.14350257813930511,
0.23806051909923553,
-0.12490775436162949,
-0.4643811881542206,
0.3657502830028534,
0.3537258803844452,
0.2512151896953583,
-0.07665097713470459,
-0.3008253574371338,
0.37310177087783813,
0.25225546956062317,
0.36343318223953247,
-0.04814103990793228,
-0.11686986684799194,
0.36351141333580017,
0.12616142630577087,
-0.26280513405799866,
0.10926710069179535,
-0.09144678711891174,
-0.0808728039264679,
0.40645384788513184,
-0.20657853782176971,
-0.06838637590408325,
0.08453750610351562,
0.20536276698112488,
-0.0750659927725792,
0.08099591732025146,
0.1536126285791397,
-0.42576903104782104,
-0.11885742843151093,
-0.11343370378017426,
0.17895625531673431,
0.4203052520751953,
0.3598633110523224,
-0.07085626572370529,
-0.06625555455684662,
-0.05268704518675804,
-0.12654250860214233,
0.10803288966417313,
-0.11571265757083893,
-0.09399810433387756,
0.30897343158721924,
0.10585269331932068,
-0.18341340124607086,
-0.15013231337070465,
-0.06047704815864563,
-0.31328272819519043,
0.07474144548177719,
-0.39486950635910034,
-0.4067823886871338,
-0.10294713824987411,
0.3815215229988098,
-0.1875576376914978,
-0.35452425479888916,
0.05327971652150154,
0.18062564730644226,
0.24974903464317322,
0.08368103206157684,
-0.07800673693418503,
0.08767364174127579,
0.049749284982681274,
0.4142826795578003,
0.03944066911935806,
-0.36893126368522644,
0.23870420455932617,
-0.0507124625146389,
0.0788014680147171,
0.25756722688674927,
0.12068615853786469,
0.2905210256576538,
0.11380846053361893,
0.22413495182991028,
0.09197796881198883,
0.040780238807201385,
0.19824963808059692,
0.04747234284877777,
-0.12987180054187775,
0.1506040096282959,
0.020096611231565475,
0.2760102152824402,
0.36978062987327576,
-0.13450323045253754,
-0.17770101130008698,
0.15849198400974274,
-0.007083836942911148,
-0.036513663828372955,
0.03276063874363899,
0.09718877822160721,
0.13467775285243988,
-0.5730342864990234,
-0.2228904813528061,
-0.40192556381225586,
0.3425261974334717,
0.14321723580360413,
0.08253791928291321,
-0.26970812678337097,
0.06700582802295685,
0.059599582105875015,
0.09279624372720718,
0.3165631592273712,
-0.23206353187561035,
-0.2677364647388458,
0.477547824382782,
-0.259169340133667,
-0.034586772322654724,
0.13618196547031403,
-0.10529378056526184,
0.3692614734172821,
-0.15067313611507416,
-0.047735996544361115,
0.2083643525838852,
0.09224116057157516,
-0.15930676460266113,
0.19819431006908417,
0.003395048901438713,
0.2996211647987366,
0.020197562873363495,
-0.03168316185474396,
-0.2138718068599701,
-0.18478816747665405,
0.13998323678970337,
0.34871381521224976,
0.09344745427370071,
0.2376144677400589,
0.011363038793206215,
-0.6527875065803528,
0.5451339483261108,
0.2003680020570755,
0.10474294424057007,
0.02559085190296173,
-0.10376917570829391,
0.06882602721452713,
-0.1141260415315628,
0.05983167886734009,
0.11200281232595444,
0.06393596529960632,
-0.15246373414993286,
0.4134090840816498,
0.34614282846450806,
-0.051676344126462936,
-0.1652645319700241,
0.14130227267742157,
-0.41065627336502075,
-0.0305015929043293,
0.15082035958766937,
0.06086238846182823,
0.04844099283218384,
-0.020279351621866226,
0.35358259081840515,
0.1242537572979927,
-0.1363377869129181,
0.12396806478500366,
-0.07205213606357574,
0.32600316405296326,
-0.2398376166820526,
-0.235872283577919,
-0.1987166404724121,
-0.3337763845920563,
0.14438679814338684,
-0.17390863597393036,
0.2854412794113159,
0.07270609587430954,
-0.10582056641578674,
-0.18047115206718445,
-0.14427092671394348,
0.2879534363746643,
-0.3175033926963806,
-0.04728386551141739,
0.028109773993492126,
0.19462911784648895,
-0.04867284744977951,
0.1891382932662964,
-0.225809246301651,
-0.1626954823732376,
-0.32319724559783936,
-0.00860082358121872,
-0.14874081313610077,
-0.04038865864276886,
-0.03593713045120239,
0.3147674798965454,
-0.19581404328346252,
-0.2717558443546295,
0.12497857213020325,
-0.015452787280082703,
-0.29087695479393005,
-0.23864471912384033,
-0.2708974778652191,
0.06675612926483154,
-0.3513464033603668,
0.007052287459373474,
-0.0032193008810281754,
-0.04083096608519554,
0.43045884370803833,
0.14674006402492523,
0.430610716342926,
0.16215462982654572,
0.24974209070205688,
0.14205507934093475,
-0.1393045037984848,
0.092006616294384,
0.4196508526802063,
0.13453751802444458,
-0.22706307470798492,
0.03262791782617569,
-0.05073319375514984,
0.2912415564060211,
0.06416283547878265,
-0.09209974110126495,
0.11546963453292847,
-0.19161823391914368,
-0.10437506437301636,
-0.43696966767311096,
0.18507015705108643,
0.2909201383590698,
-0.13907253742218018,
-0.09829215705394745,
-0.5546112656593323,
0.5026653409004211,
-0.05736571550369263,
-0.1340869665145874,
-0.10586126148700714,
-0.16971832513809204,
-0.3697127103805542,
0.34072694182395935,
0.030152104794979095,
0.6115990877151489,
0.18311205506324768,
0.07653789222240448,
0.44700193405151367,
-0.2707521617412567,
0.1296689510345459,
-0.7494606375694275,
-0.06016213074326515,
-0.25707143545150757,
0.2156745046377182,
-0.15641649067401886,
0.08757655322551727,
-0.11791545152664185,
0.3387053608894348,
-0.1610487699508667,
0.253044456243515,
0.23001401126384735,
-0.23071983456611633,
-0.016455626115202904,
0.1258823424577713,
0.14632858335971832,
-0.47701531648635864,
-0.33299198746681213,
0.20376387238502502,
-0.02812458947300911,
-0.051773857325315475,
0.12807011604309082,
-0.060157086700201035,
-0.11790405213832855,
-0.3157678544521332,
-0.24662166833877563,
0.021975405514240265,
-0.018083486706018448,
-0.2330811768770218,
0.006721874698996544,
-0.21605542302131653,
0.12981930375099182,
0.1525840014219284,
-0.2598617672920227,
0.34112176299095154,
-0.4805780351161957,
0.15432128310203552,
0.08768048882484436,
0.12640811502933502,
-0.09376034885644913,
0.01198696717619896,
-0.09263522922992706,
0.03098498284816742,
-0.01026923954486847,
0.39726755023002625,
-0.05597972124814987,
-0.2209257185459137,
0.109641432762146,
-0.10847605764865875,
0.08884704113006592,
-0.11131104826927185,
-0.4517173171043396,
0.2794419229030609,
0.08208364248275757,
-0.1447935253381729,
0.17897272109985352,
0.3935125768184662,
-0.49750953912734985,
0.2964438796043396,
-0.06631411612033844,
-0.21118944883346558,
-0.022385936230421066,
0.03835618495941162,
0.11710499227046967,
-0.17204326391220093,
0.46637171506881714,
-0.012349657714366913,
0.11186915636062622,
-0.40945276618003845,
0.29648345708847046,
0.25642505288124084,
-0.031209059059619904,
-0.11142097413539886,
0.42968857288360596,
-0.16722118854522705,
-0.09860371053218842,
0.0839872658252716,
0.043967198580503464,
-0.05712190642952919,
-0.09338612109422684,
-0.5307203531265259,
-0.4021139442920685,
0.091545969247818,
0.22936095297336578,
0.32628679275512695,
-0.26296859979629517,
-0.02439989149570465,
-0.27128008008003235,
0.0742359608411789,
-0.402057945728302,
-0.025342529639601707,
0.18347123265266418,
-0.1052994579076767,
0.20613780617713928,
0.5022344589233398,
0.058814357966184616,
0.11267523467540741,
0.21390590071678162,
-0.05933317169547081,
-0.32351961731910706,
-0.2381599247455597,
-0.12083518505096436,
0.13649193942546844,
0.0521109476685524,
0.07500762492418289,
0.03217215836048126,
0.061397403478622437,
-0.29576313495635986,
-0.25289443135261536,
0.0021813586354255676,
-0.11841243505477905,
0.028022896498441696,
0.1504422277212143,
-0.07981327176094055,
-0.14581269025802612,
-0.17369171977043152,
0.07435839623212814,
0.08438245207071304,
0.07484643906354904,
0.27037513256073,
0.13073033094406128,
-0.14918948709964752,
-0.11018703132867813,
0.31037506461143494,
0.350075900554657,
0.16009850800037384,
-0.08669592440128326,
0.22119051218032837,
-0.05603066831827164,
0.12509511411190033,
0.19102048873901367,
0.3222620189189911,
0.47563257813453674,
-0.25230666995048523,
0.09990638494491577,
0.3864908218383789,
0.31168994307518005,
-0.14334148168563843,
0.14148388803005219,
0.06062106415629387,
-0.17224115133285522,
0.1818789541721344,
0.1739681214094162,
-0.12425992637872696,
-0.10343002527952194,
-0.3624982535839081,
-0.038029745221138,
0.1487065851688385,
-0.18539613485336304,
-0.1252015233039856,
0.24221062660217285,
-0.12279889732599258,
-0.16726234555244446,
-0.21446384489536285,
0.021159913390874863,
0.2113019824028015,
0.2708631753921509,
-0.2979031205177307,
0.15759576857089996,
0.06375773251056671,
-0.050971727818250656,
0.010926740244030952,
-0.4018685817718506,
-0.009968768805265427,
0.2817004323005676,
-0.04911917820572853,
0.1850631982088089,
0.15288710594177246,
0.2674699127674103,
-0.09955546259880066,
-0.08078715205192566,
-0.18032780289649963,
0.08661219477653503,
0.20350444316864014,
-0.3923357427120209,
-0.11499808728694916,
-0.22279596328735352,
-0.05471060425043106,
-0.028710193932056427,
-0.0006916073616594076,
-0.13358108699321747,
-0.21467708051204681,
-0.26210615038871765,
0.11035202443599701,
-0.11228398233652115,
0.20665141940116882,
-0.02897516079246998,
-0.2205844670534134,
-0.1823902428150177,
0.2438369244337082,
0.05327173322439194,
0.03311767429113388,
0.4368039071559906,
0.11476431787014008,
0.2617259919643402,
0.15666081011295319,
-0.32661089301109314,
0.1419266313314438,
-0.07258407771587372,
-0.059092842042446136,
0.07470270246267319,
0.2985951900482178,
-0.14157390594482422,
0.10840672254562378,
0.28941085934638977,
0.2608925700187683,
-0.13588955998420715,
0.08382430672645569,
0.17167481780052185,
-0.030938122421503067,
-0.17295123636722565,
0.09442460536956787,
0.18964989483356476,
-0.05103631317615509,
0.003892669454216957,
-0.06377802044153214,
-0.3798278868198395,
-0.22906796634197235,
0.21554480493068695,
0.26138076186180115,
0.14030523598194122,
0.22258365154266357,
0.1633605659008026,
-0.25354936718940735,
0.40662747621536255,
0.011654527857899666,
0.22192677855491638,
-0.13080376386642456,
-0.052389830350875854,
-0.41056734323501587,
-0.02382780611515045,
-0.0015743689145892859,
-0.20075595378875732,
-0.363259881734848,
0.03392340987920761,
0.5755020976066589,
0.4340142607688904,
-0.1519073247909546,
-0.017475634813308716,
-0.030791226774454117,
0.26645204424858093,
-0.14703083038330078,
-0.03221345320343971,
0.20227211713790894,
0.5466465950012207,
0.11089584976434708,
-0.36828020215034485,
-0.3397104740142822,
0.16163018345832825,
0.06108766049146652,
0.18651682138442993,
0.17794866859912872,
-0.10607106238603592,
-0.3083716034889221,
0.34972304105758667,
-0.14797887206077576,
0.4285055100917816,
-0.34512829780578613,
0.056330762803554535,
-0.15844649076461792,
0.119535893201828,
-0.16927248239517212,
-0.1563922017812729,
0.02755020186305046,
0.5028760433197021,
-0.11127123981714249,
0.10651183128356934,
-0.18195730447769165,
-0.1896498054265976,
0.08312131464481354,
-0.2165198028087616,
-0.401650071144104,
0.20576977729797363,
-0.2983720004558563,
0.051888465881347656,
-0.08007066696882248,
-0.10550341755151749,
-0.08492130786180496,
0.1245819702744484,
0.05093000829219818,
0.0649690330028534,
0.6319296956062317,
0.009269405156373978,
-0.04613548144698143,
0.1577686071395874,
0.4638563394546509,
-0.17955969274044037,
0.14043863117694855,
-0.3925161063671112,
0.322773277759552,
0.2682935893535614,
0.04474620521068573,
0.01982426643371582,
0.07085913419723511,
-0.1254262626171112,
-0.155136838555336,
-0.028950557112693787,
0.20285803079605103,
0.08566461503505707,
-0.041791800409555435,
-0.2312370091676712,
-0.4446926414966583
] |
https://github.com/huggingface/datasets/issues/2046 | I think faiss automatically sets the number of threads to use to build the index.
Can you check how many CPU cores are being used when you build the index in `use_own_knowleldge_dataset` as compared to this script ? Are there other programs running (maybe for rank>0) ? | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 47 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
I think faiss automatically sets the number of threads to use to build the index.
Can you check how many CPU cores are being used when you build the index in `use_own_knowleldge_dataset` as compared to this script ? Are there other programs running (maybe for rank>0) ? | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | Hi,
I am running the add_faiss_index during the training process of the RAG from the master process (rank 0). But at the exact moment, I do not run any other process since I do it in every 5000 training steps.
I think what you say is correct. It depends on the number of CPU cores. I did an experiment to compare the time taken to finish the add_faiss_index process on use_own_knowleldge_dataset.py vs the training loop thing. The training loop thing takes 40 mins more. It might be natural right?
at the moment it uses around 40 cores of a 96 core machine (I am fine-tuning the entire process). | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 108 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
Hi,
I am running the add_faiss_index during the training process of the RAG from the master process (rank 0). But at the exact moment, I do not run any other process since I do it in every 5000 training steps.
I think what you say is correct. It depends on the number of CPU cores. I did an experiment to compare the time taken to finish the add_faiss_index process on use_own_knowleldge_dataset.py vs the training loop thing. The training loop thing takes 40 mins more. It might be natural right?
at the moment it uses around 40 cores of a 96 core machine (I am fine-tuning the entire process). | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | Can you try to set the number of threads manually ?
If you set the same number of threads for both the `use_own_knowledge_dataset.py` and RAG training, it should take the same amount of time.
You can see how to set the number of thread in the faiss wiki: https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 49 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
Can you try to set the number of threads manually ?
If you set the same number of threads for both the `use_own_knowledge_dataset.py` and RAG training, it should take the same amount of time.
You can see how to set the number of thread in the faiss wiki: https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | Ok, I will report the details too soon. I am the first one on the list and currently add_index being computed for the 3rd time in the loop. Actually seems like the time is taken to complete each interaction is the same, but around 1 hour more compared to running it without the training loop. A the moment this takes 5hrs and 30 mins. If there is any way to faster the process, an end-to-end rag will be perfect. So I will also try out with different thread numbers too.
![image](https://user-images.githubusercontent.com/16892570/111453464-798c5f80-8778-11eb-86d0-19d212f58e38.png)
| add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 91 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
Ok, I will report the details too soon. I am the first one on the list and currently add_index being computed for the 3rd time in the loop. Actually seems like the time is taken to complete each interaction is the same, but around 1 hour more compared to running it without the training loop. A the moment this takes 5hrs and 30 mins. If there is any way to faster the process, an end-to-end rag will be perfect. So I will also try out with different thread numbers too.
![image](https://user-images.githubusercontent.com/16892570/111453464-798c5f80-8778-11eb-86d0-19d212f58e38.png)
| [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | @lhoestq on a different note, I read about using Faiss-GPU, but the documentation says we should use it when the dataset has the ability to fit into the GPU memory. Although this might work, in the long-term this is not that practical for me.
https://github.com/matsui528/faiss_tips | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 45 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
@lhoestq on a different note, I read about using Faiss-GPU, but the documentation says we should use it when the dataset has the ability to fit into the GPU memory. Although this might work, in the long-term this is not that practical for me.
https://github.com/matsui528/faiss_tips | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | @lhoestq
Hi, I executed the **use_own_dataset.py** script independently and ask a few of my friends to run their programs in the HPC machine at the same time.
Once there are so many other processes are running the add_index function gets slows down naturally. So basically the speed of the add_index depends entirely on the number of CPU processes. Then I set the number of threads as you have mentioned and got actually the same time for RAG training and independat running. So you are correct! :)
Then I added this [issue in Faiss repostiary](https://github.com/facebookresearch/faiss/issues/1767). I got an answer saying our current **IndexHNSWFlat** can get slow for 30 million vectors and it would be better to use alternatives. What do you think? | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 121 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
@lhoestq
Hi, I executed the **use_own_dataset.py** script independently and ask a few of my friends to run their programs in the HPC machine at the same time.
Once there are so many other processes are running the add_index function gets slows down naturally. So basically the speed of the add_index depends entirely on the number of CPU processes. Then I set the number of threads as you have mentioned and got actually the same time for RAG training and independat running. So you are correct! :)
Then I added this [issue in Faiss repostiary](https://github.com/facebookresearch/faiss/issues/1767). I got an answer saying our current **IndexHNSWFlat** can get slow for 30 million vectors and it would be better to use alternatives. What do you think? | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | It's a matter of tradeoffs.
HSNW is fast at query time but takes some time to build.
A flat index is flat to build but is "slow" at query time.
An IVF index is probably a good choice for you: fast building and fast queries (but still slower queries than HSNW).
Note that for an IVF index you would need to have an `nprobe` parameter (number of cells to visit for one query, there are `nlist` in total) that is not too small in order to have good retrieval accuracy, but not too big otherwise the queries will take too much time. From the faiss documentation:
> The nprobe parameter is always a way of adjusting the tradeoff between speed and accuracy of the result. Setting nprobe = nlist gives the same result as the brute-force search (but slower).
From my experience with indexes on DPR embeddings, setting nprobe around 1/4 of nlist gives really good retrieval accuracy and there's no need to have a value higher than that (or you would need to brute-force in order to see a difference). | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 181 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
It's a matter of tradeoffs.
HSNW is fast at query time but takes some time to build.
A flat index is flat to build but is "slow" at query time.
An IVF index is probably a good choice for you: fast building and fast queries (but still slower queries than HSNW).
Note that for an IVF index you would need to have an `nprobe` parameter (number of cells to visit for one query, there are `nlist` in total) that is not too small in order to have good retrieval accuracy, but not too big otherwise the queries will take too much time. From the faiss documentation:
> The nprobe parameter is always a way of adjusting the tradeoff between speed and accuracy of the result. Setting nprobe = nlist gives the same result as the brute-force search (but slower).
From my experience with indexes on DPR embeddings, setting nprobe around 1/4 of nlist gives really good retrieval accuracy and there's no need to have a value higher than that (or you would need to brute-force in order to see a difference). | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | @lhoestq
Thanks a lot for sharing all this prior knowledge.
Just asking what would be a good nlist of parameters for 30 million embeddings? | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 24 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
@lhoestq
Thanks a lot for sharing all this prior knowledge.
Just asking what would be a good nlist of parameters for 30 million embeddings? | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | When IVF is used alone, nlist should be between `4*sqrt(n)` and `16*sqrt(n)`.
For more details take a look at [this section of the Faiss wiki](https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index#how-big-is-the-dataset) | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 25 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
When IVF is used alone, nlist should be between `4*sqrt(n)` and `16*sqrt(n)`.
For more details take a look at [this section of the Faiss wiki](https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index#how-big-is-the-dataset) | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2046 | @lhoestq Thanks a lot for the help you have given to solve this issue. As per my experiments, IVF index suits well for my case and it is a lot faster. The use of this can make the entire RAG end-to-end trainable lot faster. So I will close this issue. Will do the final PR soon. | add_faisis_index gets very slow when doing it interatively | As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
| 56 | add_faisis_index gets very slow when doing it interatively
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster?
@lhoestq
```
def training_step(self, batch, batch_idx) -> Dict:
if (not batch_idx==0) and (batch_idx%5==0):
print("******************************************************")
ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder
model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU
model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff
list_of_gpus = ['cuda:2','cuda:3']
c_dir='/custom/cache/dir'
kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir)
print(kb_dataset)
n=len(list_of_gpus) #nunber of dedicated GPUs
kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)]
#kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir')
print(self.trainer.global_rank)
dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank])
output = [None for _ in list_of_gpus]
#self.trainer.accelerator_connector.accelerator.barrier("embedding_process")
dist.all_gather_object(output, dataset_shards)
#This creation and re-initlaization of the new index
if (self.trainer.global_rank==0): #saving will be done in the main process
combined_dataset = concatenate_datasets(output)
passages_path =self.config.passages_path
logger.info("saving the dataset with ")
#combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage')
combined_dataset.save_to_disk(passages_path)
logger.info("Add faiss index to the dataset that consist of embeddings")
embedding_dataset=combined_dataset
index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT)
embedding_dataset.add_faiss_index("embeddings", custom_index=index)
embedding_dataset.get_index("embeddings").save(self.config.index_path)
@lhoestq Thanks a lot for the help you have given to solve this issue. As per my experiments, IVF index suits well for my case and it is a lot faster. The use of this can make the entire RAG end-to-end trainable lot faster. So I will close this issue. Will do the final PR soon. | [
-0.49882426857948303,
-0.26827841997146606,
-0.024500548839569092,
0.12822841107845306,
0.05943967029452324,
0.20778411626815796,
0.12146280705928802,
0.4241299033164978,
0.2917422652244568,
0.29249656200408936,
-0.1188247799873352,
0.18831515312194824,
0.1372128129005432,
0.08582127094268799,
-0.13625626266002655,
0.17504249513149261,
0.23703260719776154,
0.08533420413732529,
0.26079773902893066,
-0.13441413640975952,
-0.32747912406921387,
-0.30906441807746887,
-0.15891233086585999,
-0.25786247849464417,
-0.40069201588630676,
-0.09581883251667023,
-0.24362188577651978,
-0.08205047994852066,
0.19824732840061188,
-0.47291672229766846,
-0.13753248751163483,
0.1398431658744812,
0.3402588665485382,
0.25829267501831055,
-0.00012204969971207902,
0.055676281452178955,
0.22800804674625397,
0.06546275317668915,
-0.22299757599830627,
0.641196072101593,
0.3400725722312927,
-0.06948842108249664,
-0.17511028051376343,
-0.3107709288597107,
-0.1455552875995636,
-0.1110418513417244,
0.08107934892177582,
-0.04693010449409485,
-0.16636529564857483,
0.1943015456199646,
0.026624023914337158,
-0.05828668549656868,
0.0522550493478775,
-0.015400180593132973,
0.4025115370750427,
-0.07559122890233994,
-0.06917734444141388,
0.3174711763858795,
0.16351261734962463,
-0.07223750650882721,
0.09974321722984314,
0.44810813665390015,
0.12064166367053986,
-0.22677697241306305,
0.10890424251556396,
0.2051612287759781,
0.7838160991668701,
0.022439800202846527,
0.06526777148246765,
0.15266945958137512,
0.015340408310294151,
-0.09055303037166595,
-0.4430086612701416,
-0.10290345549583435,
0.4257143437862396,
-0.6180596947669983,
-0.06740155816078186,
-0.0837421864271164,
-0.10147479176521301,
0.05386004596948624,
0.17458538711071014,
-0.03022991307079792,
0.036318033933639526,
0.047450803220272064,
0.17489930987358093,
0.16535726189613342,
0.387471079826355,
-0.059902504086494446,
0.5584336519241333,
0.04244742542505264,
-0.11685473471879959,
0.0448823980987072,
-0.09207753837108612,
0.012196429073810577,
-0.6050301194190979,
0.0880848616361618,
-0.030916016548871994,
-0.09933138638734818,
-0.09268687665462494,
0.017801757901906967,
-0.3694861829280853,
0.006165590137243271,
0.23656010627746582,
0.0033363597467541695,
-0.18306457996368408,
-0.09025780111551285,
-0.5061050057411194,
0.05588121712207794,
0.08390157669782639,
0.10628704726696014,
-0.3780878186225891,
0.09923431277275085,
-0.003338102251291275,
-0.0043099187314510345,
-0.3259802460670471,
-0.29813525080680847,
-0.22889024019241333,
0.2228071093559265,
-0.18114230036735535,
0.07718813419342041,
-0.40396833419799805,
-0.2522764503955841,
0.205072820186615,
0.41622164845466614,
-0.11774429678916931,
-0.07613638788461685,
0.010839655995368958,
-0.034615568816661835,
-0.23442798852920532,
0.1761687994003296,
-0.22201727330684662,
0.230660080909729,
-0.03196380287408829,
0.5045983195304871,
-0.02910608798265457,
-0.22139401733875275,
-0.08906896412372589,
-0.02173086628317833,
0.08396365493535995,
-0.00784245878458023,
-0.044163551181554794,
-0.2998931109905243,
0.24666766822338104,
0.07492309808731079,
-0.26321443915367126,
-0.06768470257520676,
-0.09395182132720947,
0.12111048400402069,
-0.22782328724861145,
0.22150792181491852,
-0.21739476919174194,
-0.36510246992111206,
0.02715797908604145,
0.019331250339746475,
0.30867746472358704,
-0.06309248507022858,
0.42082253098487854,
0.11439715325832367,
0.17301848530769348,
0.16133520007133484,
0.15917640924453735,
-0.1314440369606018,
-0.26802167296409607,
0.08318676054477692,
0.2267841398715973,
0.3627384603023529,
0.09372156858444214,
0.03477144241333008,
0.29801249504089355,
0.3901306092739105,
0.21240510046482086,
0.3999933898448944,
-0.11594884097576141,
0.6762602925300598,
-0.3200043737888336,
0.08429205417633057,
0.24512065947055817,
-0.25537851452827454,
-0.29242631793022156,
0.18690486252307892,
-0.1663639396429062,
-0.07732599973678589,
0.3296631872653961,
0.5182706117630005,
0.31202903389930725,
0.08701557666063309,
0.34109264612197876,
0.3062553107738495,
0.009026829153299332,
-0.031247109174728394,
-0.405068963766098,
-0.058271415531635284,
0.26391956210136414,
0.3804079294204712,
-0.3354526162147522,
0.10174058377742767,
-0.04018161818385124,
-0.32988065481185913,
0.6009741425514221,
-0.4761058986186981,
-0.12176188826560974,
0.06805838644504547,
0.36157411336898804,
0.3393867611885071,
0.23287013173103333,
0.27611032128334045,
0.14954186975955963,
0.16262607276439667,
0.0960145890712738,
0.09878884255886078,
0.17015521228313446,
-0.4183502495288849,
0.21562960743904114,
-0.025750022381544113,
-0.2181927114725113,
0.1078815683722496,
-0.06097797304391861,
0.15002495050430298,
-0.04567674547433853,
-0.19987322390079498,
-0.15688693523406982,
0.5427842140197754,
-0.6157976388931274,
0.027945850044488907,
-0.24889707565307617,
-0.15608365833759308,
0.0070148855447769165,
-0.21342574059963226,
-0.034243617206811905,
0.14295867085456848,
0.05249648913741112,
-0.3868664503097534,
-0.0538334846496582,
0.10286113619804382,
0.12662509083747864,
-0.1876762956380844,
0.5111069679260254,
-0.11369641125202179,
-0.03703667223453522,
0.29622209072113037,
0.0449531227350235,
-0.15126529335975647,
0.1090165451169014,
-0.19376140832901,
-0.001878870651125908,
0.48520392179489136,
0.34878402948379517,
0.2458336353302002,
-0.02149377018213272,
-0.23320834338665009,
0.04702908545732498,
-0.04065042361617088,
-0.07938705384731293,
0.22752580046653748,
0.07994377613067627,
0.13025318086147308,
0.4091726541519165,
-0.03333570063114166,
-0.3332442045211792,
0.23246407508850098,
0.1857772171497345,
-0.20312973856925964,
-0.43140795826911926,
0.2710415720939636,
0.3516991436481476,
-0.03689756616950035,
-0.34970855712890625,
-0.52200847864151,
0.23602673411369324,
0.3185988664627075,
0.1883932501077652,
-0.0716535821557045,
-0.027651231735944748,
-0.24728113412857056,
0.16910965740680695,
0.05655341595411301,
-0.04837192967534065,
0.10004798322916031,
0.17664197087287903,
-0.2145448476076126,
-0.20678988099098206,
-0.2552962899208069,
-0.1363968551158905,
0.42864614725112915,
-0.044338762760162354,
0.3094406723976135,
0.17776229977607727,
0.27718716859817505,
-0.12472497671842575,
-0.1249762624502182,
0.2887521982192993,
0.008840478956699371,
0.04161076247692108,
-0.10893550515174866,
-0.036238424479961395,
0.19310905039310455,
-0.04694923013448715,
0.3649187982082367,
0.19579431414604187,
-0.32509079575538635,
0.01984409987926483,
-0.09847095608711243,
-0.12149512022733688,
-0.07897862046957016,
0.1210053414106369,
-0.15055003762245178,
0.11740019172430038,
0.04394735395908356,
-0.052580494433641434,
-0.18513652682304382,
-0.08627142012119293,
-0.15758806467056274,
-0.07947707176208496,
-0.2974511384963989,
-0.16623470187187195,
-0.24606826901435852,
-0.1250380128622055,
-0.1196446418762207,
0.004330538213253021,
0.0005500614643096924,
-0.010687217116355896,
-0.04048750922083855,
-0.282674103975296,
-0.1588367223739624,
0.06079498678445816,
-0.2936335802078247,
-0.21670174598693848,
-0.17391899228096008,
0.22814111411571503,
-0.024399563670158386,
0.09305894374847412,
-0.11566916853189468,
0.06675171107053757,
0.12224078178405762,
-0.09570058435201645,
-0.15433043241500854,
-0.05346166715025902,
-0.2331429421901703,
0.291709840297699,
0.14917238056659698,
0.046831268817186356,
-0.07943668216466904,
-0.4122961461544037,
-0.014397245831787586,
0.4969037175178528,
-0.5218712091445923,
-0.0407993458211422,
-0.35839101672172546,
0.28595951199531555,
-0.3150942623615265,
0.45829910039901733,
0.05670677125453949,
-0.24624869227409363,
-0.13801360130310059,
0.3644826412200928,
0.17451004683971405,
0.38753047585487366,
-0.06171349808573723,
0.05497761070728302,
-0.08791780471801758,
0.2675449252128601,
-0.11497542262077332,
0.5162414312362671,
0.32723182439804077,
-0.21369855105876923,
-0.04781942069530487,
-0.26239636540412903,
0.11595156788825989,
0.052770063281059265,
-0.1398816853761673,
0.29652413725852966,
0.08347786962985992,
-0.31499528884887695,
0.16652777791023254,
-0.2887445092201233,
-0.41179436445236206,
0.032042741775512695,
-0.05275942385196686,
0.19824586808681488,
-0.24431061744689941,
0.31699231266975403,
0.04895033687353134,
0.49109935760498047,
-0.17805026471614838,
0.29109618067741394,
-0.23836036026477814,
-0.1767043173313141,
0.19751501083374023,
0.27275311946868896,
0.24490097165107727,
-0.1675574779510498,
0.02649649977684021,
-0.5409094095230103,
-0.42167794704437256,
0.2834410071372986,
0.16747954487800598,
0.23528368771076202,
0.2791197896003723,
-0.10083512216806412,
0.5258052945137024,
-0.1562117338180542,
0.7999858260154724,
0.02068324200809002,
-0.336337685585022,
0.384490966796875,
-0.16181981563568115,
0.052876316010951996,
-0.21779310703277588,
-0.1827092170715332,
-0.06598976999521255,
0.23377355933189392,
0.44074684381484985,
-0.09317760914564133,
-0.24796493351459503,
0.6446049213409424,
0.06708766520023346,
-0.14724841713905334,
-0.34415197372436523,
-0.18618209660053253,
-0.3543057143688202,
-0.041219037026166916,
0.7678551077842712,
-0.12169057130813599,
0.15568995475769043,
0.18221944570541382,
-0.051234740763902664,
-0.3818886876106262,
0.1598663032054901,
0.23867467045783997,
-0.00511990487575531,
0.050582997500896454,
0.4557843506336212,
0.4348103404045105,
0.07141724973917007,
0.0007317354902625084,
0.11927410215139389,
-0.03691158816218376,
-0.3043968081474304,
0.07315245270729065,
-0.18884600698947906,
-0.2556849718093872,
0.379942387342453,
0.7006734609603882,
0.18687677383422852,
0.2484075278043747,
-0.21023093163967133,
0.3775884807109833,
-0.1914457380771637,
0.024531256407499313,
0.438312828540802,
-0.0020623765885829926,
-0.17877252399921417,
-0.5383259654045105,
0.31127870082855225,
0.20342299342155457,
0.07330289483070374,
0.06086146458983421,
-0.07573063671588898,
-0.016380121931433678,
0.30217069387435913,
0.1249999925494194,
0.9838236570358276,
-0.02691977471113205,
0.1929832398891449,
0.5063084363937378,
0.004840627312660217,
-0.24390468001365662,
-0.6487340927124023,
0.36927706003189087,
-0.33292144536972046,
-0.22415263950824738,
0.19311657547950745,
-0.10114177316427231,
-0.08476832509040833,
0.07353439927101135,
-0.03934292867779732,
0.09914511442184448,
-0.04727530479431152,
-0.08625612407922745,
-0.2586017847061157,
0.38955384492874146,
0.31519389152526855,
-0.42783984541893005,
0.024883508682250977,
0.00135098397731781,
0.2714567184448242,
-0.09871584922075272,
0.12781581282615662,
-0.1633998155593872,
-0.11088632047176361,
0.01844121515750885,
0.12517376244068146,
-0.07911358028650284,
-0.12837842106819153,
0.013058211654424667,
-0.048773277550935745,
-0.08731183409690857,
-0.23292572796344757,
-0.32441794872283936,
0.4604192078113556,
-0.029945963993668556,
0.09953407198190689,
0.08158402144908905,
-0.09911046922206879,
0.07216361165046692,
-0.08676935732364655,
-0.49708324670791626,
0.2265414446592331,
0.08081231266260147,
-0.17367766797542572,
0.1493707150220871,
0.07872651517391205,
-0.3227708339691162,
-0.14609892666339874,
0.1744304746389389,
0.020577095448970795,
0.007548559457063675,
-0.03673733025789261,
0.3179990351200104,
-0.2626373767852783,
-0.23356540501117706,
0.02005976438522339,
0.09207725524902344,
-0.4317522644996643,
0.5605172514915466,
-0.30238187313079834,
-0.38006845116615295,
-0.05465523526072502,
0.016695795580744743,
0.30580824613571167,
0.05603800714015961,
0.2623710632324219,
-0.08911953121423721,
-0.3048812747001648,
-0.1546771228313446,
-0.3024289608001709,
0.061283133924007416,
0.038625091314315796,
0.09388807415962219,
0.30242088437080383,
-0.0061311423778533936,
0.025399360805749893,
-0.23266452550888062,
-0.32271790504455566,
-0.14176997542381287,
-0.3823907673358917,
0.11459986120462418,
-0.35764068365097046,
-0.1850685030221939,
0.25722816586494446,
0.38368505239486694,
0.03601781278848648,
0.23422366380691528,
-0.4448954463005066,
0.2590476870536804,
-0.21766982972621918,
-0.06533924490213394,
-0.031239211559295654,
0.26001933217048645,
-0.032708942890167236,
-0.25742754340171814,
0.17543986439704895,
0.21626995503902435,
0.11998896300792694,
0.14120365679264069,
0.03736531734466553,
-0.1117987334728241,
0.1029491275548935,
0.1834249198436737,
-0.11074702441692352,
0.16845044493675232,
0.08115581423044205,
-0.1483060121536255,
-0.3009882867336273,
-0.26529812812805176,
0.1343657374382019,
-0.11070328950881958,
-0.02585504949092865,
-0.13035911321640015,
-0.12170930206775665,
-0.11248783767223358,
0.3323768377304077,
0.2738247513771057,
0.2040051519870758,
0.2833089232444763,
-0.0734991729259491,
0.07670170813798904,
-0.2428330034017563,
-0.26539313793182373,
-0.051037631928920746,
0.19032448530197144,
0.06164418160915375,
0.08636798709630966,
-0.09186576306819916,
-0.1731877326965332,
-0.3799479901790619,
-0.038118019700050354,
0.03176918625831604,
0.449893593788147,
0.04249372333288193,
-0.28836652636528015,
0.18529640138149261,
0.037937309592962265,
-0.27972084283828735,
-0.19527646899223328,
0.36242732405662537,
-0.45070138573646545,
0.20022866129875183,
0.4017179310321808,
0.26457518339157104,
0.16572366654872894,
-0.4832744598388672,
0.09376340359449387,
-0.23451738059520721,
0.09630537033081055,
-0.43370747566223145,
-0.09045100957155228,
0.3514746427536011,
-0.19489994645118713,
0.20412516593933105,
0.3052141070365906,
0.23112009465694427,
0.6089180111885071,
0.031424012035131454,
0.2752896547317505,
0.1878768801689148,
0.21332725882530212,
-0.3217036724090576,
-0.17983663082122803,
0.29066893458366394,
0.23226863145828247,
-0.03177332505583763,
-0.20784471929073334,
0.009094933047890663,
0.23473432660102844,
0.24403563141822815,
-0.5169647336006165,
-0.26112842559814453,
0.16302114725112915,
-0.1220199391245842,
-0.12818112969398499,
0.4117494225502014,
0.056770697236061096,
-0.278082013130188,
0.22702687978744507,
0.07766412198543549,
0.19237354397773743,
-0.12724778056144714,
0.2008742392063141,
0.2934536039829254,
0.22120031714439392,
-0.023113518953323364,
0.09102434664964676,
0.4337710738182068,
-0.33674001693725586,
-0.20791475474834442,
-0.011150944977998734,
-0.0027168337255716324,
0.023589324206113815,
-0.1512228548526764,
0.280945360660553,
0.24482518434524536,
-0.05550277978181839,
0.26872149109840393,
-0.05044141411781311,
-0.008870985358953476,
0.04380442947149277,
-0.0344008170068264,
-0.10841291397809982,
-0.10039344429969788,
0.10061773657798767,
-0.09087672084569931,
-0.12853381037712097,
-0.12072327733039856,
-0.24263283610343933,
0.20261286199092865,
-0.1804249882698059,
0.023068856447935104,
0.34594258666038513,
-0.09753995388746262,
-0.39480555057525635,
0.09524165093898773,
-0.2833031415939331,
0.0691804438829422,
0.10627037286758423,
-0.3566010892391205,
-0.08913608640432358,
0.26030659675598145,
-0.0016339756548404694,
-0.42574888467788696,
0.5468897223472595,
0.1724047064781189,
0.1286819875240326,
-0.3299409747123718,
-0.001434221863746643,
-0.32078802585601807,
-0.0345098040997982,
-0.5890922546386719,
0.11263544857501984,
0.11768370866775513,
0.44035446643829346,
0.0739259421825409,
-0.07035467028617859,
0.40310853719711304,
-0.40797126293182373,
0.09923963993787766,
0.373549222946167,
-0.17344188690185547,
-0.030622385442256927,
-0.4397856593132019,
-0.07384784519672394,
0.042283713817596436,
-0.37432247400283813,
0.28479599952697754,
-0.12820680439472198,
-0.014769647270441055,
0.1923716813325882,
-0.02026950567960739,
0.12265098094940186,
0.06268222630023956,
0.5298789739608765,
-0.09794445335865021,
0.000054523348808288574,
-0.09645380079746246,
0.008635081350803375,
-0.23219041526317596,
0.12195903062820435,
-0.20707844197750092,
0.00857581477612257,
-0.02188824489712715,
0.17337553203105927,
-0.20737412571907043,
-0.39196035265922546,
-0.18153443932533264,
0.41765713691711426,
0.312630295753479,
-0.4186965227127075,
0.1980273574590683,
0.15265904366970062,
-0.15582802891731262,
0.4795941412448883,
0.15036289393901825,
0.22828423976898193,
0.14673303067684174,
-0.034050703048706055,
-0.3561273217201233,
-0.10541999340057373,
0.6236687898635864,
-0.18829429149627686,
-0.029361668974161148,
-0.3494386076927185,
0.2549012303352356,
0.4437924027442932,
0.5510438084602356,
-0.26457691192626953,
0.08623826503753662,
0.12194357812404633,
0.05357380583882332,
-0.21039409935474396,
0.5777599811553955,
0.1868617981672287,
0.014770962297916412,
-0.07378355413675308,
-0.2648072838783264,
-0.06308909505605698,
-0.00296686589717865,
-0.3532099425792694,
-0.2814309597015381
] |
https://github.com/huggingface/datasets/issues/2040 | Hi ! To help me understand the situation, can you print the values of `load_from_disk(PATH_DATA_CLS_A)['train']._indices_data_files` and `load_from_disk(PATH_DATA_CLS_B)['train']._indices_data_files` ?
They should both have a path to an arrow file
Also note that from #2025 concatenating datasets will no longer have such restrictions. | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
``` | 41 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
```
Hi ! To help me understand the situation, can you print the values of `load_from_disk(PATH_DATA_CLS_A)['train']._indices_data_files` and `load_from_disk(PATH_DATA_CLS_B)['train']._indices_data_files` ?
They should both have a path to an arrow file
Also note that from #2025 concatenating datasets will no longer have such restrictions. | [
-0.011298201978206635,
-0.025897875428199768,
-0.04495932161808014,
0.5074424147605896,
0.1715032160282135,
0.18271678686141968,
0.057955801486968994,
0.12864750623703003,
-0.06289076805114746,
0.13362297415733337,
0.07037336379289627,
0.295501172542572,
-0.08438029885292053,
-0.10250107944011688,
-0.32575660943984985,
-0.12389934062957764,
0.21246850490570068,
-0.041784487664699554,
-0.18741701543331146,
-0.11637784540653229,
-0.43389892578125,
0.3035928010940552,
-0.09412917494773865,
0.044132158160209656,
-0.37885022163391113,
-0.12164872139692307,
-0.31391391158103943,
0.3639660179615021,
-0.13143837451934814,
-0.14006400108337402,
0.384075403213501,
-0.043493662029504776,
0.14314335584640503,
0.4993310868740082,
-0.0001239130215253681,
-0.05184938758611679,
-0.02551575005054474,
-0.12648989260196686,
-0.3373904228210449,
-0.37951087951660156,
-0.29544058442115784,
-0.24935382604599,
0.11748259514570236,
-0.35154110193252563,
0.3774072527885437,
-0.19620199501514435,
-0.1029743179678917,
-0.7265006303787231,
0.28095635771751404,
0.22955021262168884,
0.0761975646018982,
0.19729381799697876,
0.13170687854290009,
-0.047894544899463654,
0.03191046416759491,
0.07358188927173615,
0.15371698141098022,
0.2029607892036438,
-0.05503983423113823,
0.023870274424552917,
0.1942695826292038,
-0.0005484558641910553,
-0.23284894227981567,
-0.11859464645385742,
0.13626307249069214,
0.4979308545589447,
0.055419016629457474,
-0.5291481018066406,
-0.06905682384967804,
0.08632100373506546,
0.4802345037460327,
-0.3763853907585144,
-0.378101110458374,
-0.17594526708126068,
0.007004540413618088,
-0.326871395111084,
0.10103011131286621,
0.3545840382575989,
0.00019478797912597656,
0.11180856078863144,
-0.06174996495246887,
-0.034238219261169434,
-0.294189989566803,
0.07259519398212433,
-0.08510170876979828,
0.03586041182279587,
-0.08588486164808273,
0.17814047634601593,
0.4493531584739685,
0.04795108363032341,
0.32163965702056885,
-0.48691657185554504,
0.06369593739509583,
0.19227145612239838,
-0.10969531536102295,
0.14521852135658264,
-0.16400232911109924,
-0.5908127427101135,
0.006675243377685547,
-0.010949586518108845,
0.1836390644311905,
-0.1348268836736679,
-0.17584185302257538,
0.30220091342926025,
0.25346922874450684,
0.30538979172706604,
-0.014131665229797363,
0.42882996797561646,
-0.010318199172616005,
-0.13304570317268372,
0.050137415528297424,
-0.025855276733636856,
-0.0293559767305851,
-0.4226583242416382,
0.07968983054161072,
-0.07181403785943985,
0.10622689127922058,
0.012951530516147614,
-0.3877180814743042,
0.18035563826560974,
-0.28400760889053345,
-0.15731196105480194,
0.09716247022151947,
-0.017804622650146484,
0.07770682126283646,
0.35300928354263306,
0.3876340687274933,
0.30537062883377075,
0.08206718415021896,
0.29787755012512207,
-0.1446356326341629,
0.1967320740222931,
0.07490630447864532,
0.08389803767204285,
0.10684557259082794,
0.0016406923532485962,
0.011990353465080261,
0.10677319765090942,
0.07972916960716248,
-0.1220690980553627,
0.027195073664188385,
-0.34169256687164307,
0.28219589591026306,
0.1566370278596878,
0.09816310554742813,
0.34808123111724854,
0.2592438757419586,
-0.2748635411262512,
-0.18705594539642334,
0.39951083064079285,
-0.35764816403388977,
-0.1869688630104065,
-0.13763228058815002,
0.04947361722588539,
-0.10457168519496918,
0.14100544154644012,
-0.4229939579963684,
-0.005997492000460625,
0.30188941955566406,
0.3051956295967102,
-0.12901605665683746,
-0.05683126673102379,
-0.12961360812187195,
-0.4591294229030609,
0.3412267565727234,
0.007385030388832092,
-0.45810186862945557,
0.009723857045173645,
0.29037922620773315,
0.10489006340503693,
0.19656161963939667,
0.4308505654335022,
-0.14415857195854187,
0.36368227005004883,
-0.3045045733451843,
0.010236456990242004,
0.4004562199115753,
-0.40942227840423584,
-0.1038566380739212,
0.17169703543186188,
-0.17961236834526062,
-0.041092097759246826,
0.3645087480545044,
0.027034461498260498,
0.006306745111942291,
0.2094055414199829,
0.7220622897148132,
0.24255913496017456,
0.07466568797826767,
-0.16574132442474365,
-0.09523811936378479,
-0.23260276019573212,
0.3555583953857422,
-0.2086946815252304,
-0.13397948443889618,
-0.02594735100865364,
-0.2588164508342743,
-0.5167703628540039,
0.42400747537612915,
-0.20520704984664917,
0.06406597048044205,
0.43642130494117737,
0.3568807542324066,
-0.12336684763431549,
-0.10384915769100189,
0.15376895666122437,
-0.19341768324375153,
0.1686592698097229,
-0.01483076810836792,
-0.22270920872688293,
-0.26475822925567627,
-0.022049222141504288,
-0.21069420874118805,
0.12695369124412537,
-0.07098038494586945,
0.08144505321979523,
-0.015374258160591125,
0.0325089655816555,
0.005666323006153107,
-0.10544765740633011,
-0.3481857180595398,
0.5563709735870361,
-0.16314518451690674,
0.02190180867910385,
-0.25417566299438477,
0.45693835616111755,
-0.15780501067638397,
-0.02639053203165531,
-0.04537130519747734,
0.03693336248397827,
0.27298688888549805,
0.16777914762496948,
0.02278154343366623,
0.4717351198196411,
-0.043007560074329376,
0.09504634141921997,
0.08933869004249573,
0.08084526658058167,
0.17162767052650452,
0.005739986896514893,
0.16276119649410248,
-0.057936400175094604,
0.15583448112010956,
-0.17280378937721252,
-0.0909186601638794,
0.48709267377853394,
-0.3344886004924774,
0.44858473539352417,
0.11464935541152954,
0.051275573670864105,
0.10623877495527267,
0.043970972299575806,
-0.0784749835729599,
-0.23693126440048218,
0.016922079026699066,
0.08496613800525665,
0.21922452747821808,
0.21704217791557312,
-0.35255199670791626,
0.07008366286754608,
0.18291276693344116,
0.07549898326396942,
-0.05896756052970886,
-0.010834108106791973,
-0.10806137323379517,
-0.01599748060107231,
-0.10950179398059845,
0.39029979705810547,
0.5840012431144714,
0.17195478081703186,
0.1649898886680603,
-0.11673034727573395,
-0.1371312141418457,
-0.1706053614616394,
0.34178343415260315,
0.13983659446239471,
0.23641468584537506,
0.17288193106651306,
-0.08572550117969513,
-0.07562028616666794,
-0.07173015922307968,
-0.017531253397464752,
-0.19189570844173431,
0.03288539499044418,
-0.5536920428276062,
-0.04589032381772995,
-0.2176486700773239,
-0.10989882797002792,
-0.44819188117980957,
-0.346038281917572,
-0.0974934995174408,
-0.5419758558273315,
-0.25921696424484253,
0.454741507768631,
-0.11694549024105072,
-0.05278356373310089,
-0.28449925780296326,
0.14566238224506378,
0.005228474736213684,
0.06786191463470459,
0.12347383797168732,
0.010436762124300003,
-0.07831630110740662,
-0.03185228630900383,
-0.13688115775585175,
0.018001984804868698,
-0.013650864362716675,
-0.07263266295194626,
0.256313294172287,
-0.2595606744289398,
0.06696473062038422,
-0.14675843715667725,
-0.15336118638515472,
0.08495974540710449,
0.032246772199869156,
0.31590625643730164,
-0.22814242541790009,
-0.626664936542511,
0.05803653970360756,
0.567474365234375,
-0.13896037638187408,
0.09005455672740936,
0.26202160120010376,
-0.18418583273887634,
0.0017384663224220276,
-0.2506844997406006,
-0.4523785412311554,
-0.25021126866340637,
0.029863372445106506,
-0.17470456659793854,
0.24913239479064941,
0.17127585411071777,
0.26967060565948486,
0.10908156633377075,
0.35773658752441406,
0.1941005289554596,
-0.11353811621665955,
-0.25573059916496277,
0.4422730505466461,
-0.05362989008426666,
-0.16427741944789886,
0.001775689423084259,
0.008876390755176544,
0.0754108801484108,
0.15045899152755737,
-0.36619144678115845,
0.018025822937488556,
-0.236149862408638,
0.1363367736339569,
-0.1147485077381134,
0.3011988699436188,
0.13400185108184814,
0.45958414673805237,
-0.04627873748540878,
-0.2586545944213867,
-0.2737220823764801,
0.26837849617004395,
0.1589275598526001,
0.3044026494026184,
-0.01230119913816452,
0.20902253687381744,
0.07317040860652924,
0.3439157009124756,
0.3640877306461334,
0.12173797190189362,
0.25498294830322266,
0.1836441457271576,
0.5346711277961731,
0.014441020786762238,
-0.44068944454193115,
-0.4077027142047882,
-0.0011524483561515808,
-0.2065868377685547,
-0.13948890566825867,
0.048393357545137405,
0.08723899722099304,
-0.09358677268028259,
0.21181190013885498,
-0.2357507050037384,
-0.3036773204803467,
0.09380260109901428,
-0.3211861252784729,
0.12500008940696716,
-0.21632564067840576,
-0.06795063614845276,
-0.28284886479377747,
0.3194230794906616,
-0.12861184775829315,
0.06002436950802803,
0.21889302134513855,
-0.1355675905942917,
-0.3572331964969635,
-0.339005708694458,
-0.3777071237564087,
0.30494487285614014,
0.05438956990838051,
0.38311299681663513,
0.053990691900253296,
-0.2907818853855133,
-0.2016691267490387,
0.04494862258434296,
0.7679039239883423,
0.2945113480091095,
-0.3783251941204071,
0.4131021201610565,
0.06765402853488922,
-0.5299777388572693,
-0.038080982863903046,
0.08377528935670853,
0.24248246848583221,
-0.26751071214675903,
0.4022997319698334,
-0.24028804898262024,
-0.1255396008491516,
-0.11067923903465271,
0.44394636154174805,
-0.14297980070114136,
0.0849764496088028,
-0.03131964057683945,
-0.13031169772148132,
-0.15268489718437195,
-0.32081565260887146,
0.05422166734933853,
0.3823358416557312,
-0.36988306045532227,
-0.06262580305337906,
-0.0008341986685991287,
-0.29157984256744385,
0.32425323128700256,
-0.35422271490097046,
0.6015850305557251,
-0.07030371576547623,
0.10906554013490677,
0.21684548258781433,
0.17306040227413177,
0.4914814233779907,
0.46707698702812195,
-0.24435196816921234,
-0.11752820760011673,
0.012657299637794495,
0.09110906720161438,
0.5109784007072449,
0.332325279712677,
-0.2225600928068161,
-0.03019469603896141,
0.01942075788974762,
-0.09913269430398941,
-0.2740882635116577,
-0.11630526185035706,
0.2955111563205719,
-0.010529395192861557,
-0.42405450344085693,
-0.39912211894989014,
0.290010005235672,
0.3583662509918213,
-0.1670624166727066,
0.4418196976184845,
0.00837767869234085,
-0.472983717918396,
0.3470166027545929,
-0.12129919230937958,
1.0756556987762451,
0.04043464735150337,
0.2828831076622009,
0.1625705510377884,
-0.29429468512535095,
0.0904015302658081,
0.2924496829509735,
-0.03187412768602371,
-0.1988103985786438,
-0.125288188457489,
-0.12034031003713608,
-0.34403711557388306,
0.0014602048322558403,
0.23216325044631958,
-0.3387199640274048,
0.17956143617630005,
-0.521016001701355,
-0.11619165539741516,
-0.20297129452228546,
0.047335557639598846,
-0.12718193233013153,
-0.22736172378063202,
-0.35341617465019226,
-0.02098645083606243,
0.2143520712852478,
-0.11604908108711243,
-0.018417377024888992,
-0.1729264259338379,
-0.525723934173584,
-0.19647090137004852,
-0.12852691113948822,
0.040109045803546906,
-0.3198244869709015,
0.6732958555221558,
-0.2941887676715851,
-0.4334103465080261,
-0.4329434037208557,
0.3981276750564575,
0.4085626006126404,
-0.03190760314464569,
0.02628234215080738,
-0.12878862023353577,
0.04758080840110779,
0.00844462588429451,
-0.0751565545797348,
-0.2583678960800171,
0.1939777135848999,
0.14767500758171082,
-0.07459133863449097,
0.11354942619800568,
-0.08174124360084534,
-0.36940670013427734,
-0.08468019217252731,
0.10089997947216034,
0.033948175609111786,
-0.2673567831516266,
-0.3413451313972473,
0.17357707023620605,
-0.06460696458816528,
-0.06452658772468567,
0.023926539346575737,
0.36777278780937195,
-0.06265520304441452,
0.20742890238761902,
-0.21265925467014313,
-0.33768430352211,
-0.056069280952215195,
0.4843718409538269,
0.3131256699562073,
-0.01780109852552414,
0.5047685503959656,
-0.03613360971212387,
-0.10059425234794617,
-0.029802922159433365,
0.36863821744918823,
0.2418307214975357,
0.10308800637722015,
0.34313303232192993,
0.0801178589463234,
0.001080334186553955,
-0.18080995976924896,
0.37652432918548584,
0.39690932631492615,
0.23149381577968597,
-0.09989786148071289,
-0.2665145695209503,
-0.5434696078300476,
0.40343722701072693,
0.03675584867596626,
0.4078209400177002,
-0.02847309038043022,
-0.4364435374736786,
-0.09233959019184113,
-0.09556332230567932,
-0.19851388037204742,
0.057278312742710114,
-0.10688701272010803,
0.02028518170118332,
0.2047136127948761,
0.019870614632964134,
0.17789921164512634,
-0.01356302946805954,
0.05801151692867279,
-0.19841964542865753,
-0.06346268206834793,
-0.07825124263763428,
0.0476517379283905,
0.1854497343301773,
0.11219960451126099,
-0.07733221352100372,
-0.1123952642083168,
-0.4440903663635254,
0.028665855526924133,
-0.20247097313404083,
-0.17070797085762024,
0.561383843421936,
0.06193756312131882,
0.11616730690002441,
0.000050309114158153534,
0.2100526988506317,
0.01617640256881714,
0.1269422173500061,
0.08198085427284241,
0.2238185703754425,
0.0458776131272316,
0.2438221275806427,
-0.320271372795105,
-0.21876809000968933,
-0.3172677755355835,
0.05083596706390381,
-0.13871949911117554,
-0.03353878855705261,
0.12695446610450745,
-0.14742133021354675,
-0.2226727306842804,
0.034095875918865204,
0.3946387469768524,
0.42783570289611816,
-0.11750701069831848,
0.1583576798439026,
-0.028310753405094147,
0.08342550694942474,
0.12162795662879944,
-0.21428725123405457,
-0.13801012933254242,
-0.19680674374103546,
-0.2094019502401352,
0.14979806542396545,
0.06268127262592316,
-0.08211760222911835,
-0.33961400389671326,
0.02567131817340851,
0.5485681891441345,
-0.1606157124042511,
0.4001903235912323,
0.09322933852672577,
0.15086261928081512,
0.007785659749060869,
-0.00894883181899786,
0.24211512506008148,
0.4247480630874634,
-0.058565035462379456,
-0.21446534991264343,
0.09036576747894287,
0.48160895705223083,
-0.16097083687782288,
0.21622808277606964,
-0.23085547983646393,
-0.054620400071144104,
0.14991992712020874,
-0.16888445615768433,
-0.011007798835635185,
0.06248081475496292,
0.36205968260765076,
-0.3919823169708252,
-0.22374549508094788,
0.0981600284576416,
0.3435719311237335,
-0.12425728887319565,
-0.1706211119890213,
0.008811593055725098,
-0.2805445194244385,
0.03625129163265228,
-0.18015767633914948,
0.1347273737192154,
-0.35979217290878296,
0.1951783448457718,
-0.02740870788693428,
0.02882189303636551,
-0.11451727896928787,
0.3473953902721405,
0.40744903683662415,
0.10724413394927979,
-0.2372734248638153,
-0.01077768299728632,
0.19622309505939484,
-0.047006525099277496,
0.14926037192344666,
0.18950235843658447,
0.5935685038566589,
0.5518578886985779,
-0.038535166531801224,
0.12282861769199371,
0.08626426011323929,
-0.26474881172180176,
0.0007321685552597046,
-0.02691699005663395,
-0.20133735239505768,
-0.38948825001716614,
0.4084109663963318,
0.18079189956188202,
0.009347200393676758,
0.06485670059919357,
0.24609768390655518,
0.5886133909225464,
-0.12202180922031403,
0.10538133978843689,
-0.16130602359771729,
-0.23825398087501526,
0.1525793969631195,
-0.0851619690656662,
-0.3969839811325073,
-0.26396194100379944,
0.44104698300361633,
-0.07169990986585617,
0.12762105464935303,
0.262928307056427,
0.03819730877876282,
0.046206921339035034,
0.2446826994419098,
0.2988671660423279,
0.12900185585021973,
-0.467964231967926,
-0.010986477136611938,
-0.32177504897117615,
-0.21288761496543884,
0.3092111647129059,
0.17481742799282074,
-0.19013135135173798,
0.3667968511581421,
0.16394612193107605,
-0.015823369845747948,
0.24887987971305847,
0.08145232498645782,
-0.16058921813964844,
0.10021522641181946,
-0.41522568464279175,
-0.13939428329467773,
0.3665907680988312,
0.03964351862668991,
-0.05832894146442413,
-0.20681080222129822,
0.19096778333187103,
0.12402372807264328,
0.012798674404621124,
0.029186025261878967,
0.08276104182004929,
0.12023767828941345,
0.43338409066200256,
0.28985175490379333,
0.1749396026134491,
0.26080965995788574,
-0.12206442654132843,
0.02282213419675827,
0.01822786033153534,
-0.3067568838596344,
-0.044616006314754486,
0.18265101313591003,
-0.08782914280891418,
0.4609193205833435,
-0.5516214370727539,
0.04279094189405441,
-0.1169721707701683,
0.029259994626045227,
-0.002602621912956238,
-0.4689415395259857,
-0.06160266697406769,
0.06648886203765869,
-0.007573261857032776,
-0.02527983859181404,
0.14318013191223145,
0.22226357460021973,
0.015916289761662483,
0.5831587910652161,
0.07047340273857117,
-0.4461383819580078,
0.4071057140827179,
0.020862281322479248,
-0.11254586279392242,
0.18593187630176544,
-0.008548058569431305,
0.3054600656032562,
0.42517584562301636,
-0.6048345565795898,
-0.18130818009376526,
0.42825645208358765,
-0.2483881264925003,
-0.2672114670276642,
0.009246710687875748,
-0.07833489775657654,
-0.02994167059659958,
0.015382513403892517,
0.49391061067581177,
-0.10249385237693787,
-0.35443851351737976,
-0.030217241495847702,
-0.27610209584236145
] |
https://github.com/huggingface/datasets/issues/2040 | Sure, thanks for the fast reply!
For dataset A: `[{'filename': 'drive/MyDrive/data_target_task/dataset_a/train/cache-4797266bf4db1eb7.arrow'}]`
For dataset B: `[]`
No clue why for B it returns nothing. `PATH_DATA_CLS_B` is exactly the same in `save_to_disk` and `load_from_disk`... Also I can verify that the folder physically exists under 'drive/MyDrive/data_target_task/dataset_b/' | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
``` | 43 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
```
Sure, thanks for the fast reply!
For dataset A: `[{'filename': 'drive/MyDrive/data_target_task/dataset_a/train/cache-4797266bf4db1eb7.arrow'}]`
For dataset B: `[]`
No clue why for B it returns nothing. `PATH_DATA_CLS_B` is exactly the same in `save_to_disk` and `load_from_disk`... Also I can verify that the folder physically exists under 'drive/MyDrive/data_target_task/dataset_b/' | [
-0.007757864892482758,
-0.007315725088119507,
-0.01882675290107727,
0.5390487313270569,
0.22807559370994568,
0.18429242074489594,
0.05310799181461334,
0.1309664398431778,
-0.05644046887755394,
0.1484985053539276,
0.06288636475801468,
0.2342551350593567,
-0.03250474855303764,
-0.16660599410533905,
-0.3268124759197235,
-0.05976659432053566,
0.23270897567272186,
0.007199667394161224,
-0.07890728116035461,
-0.11945878714323044,
-0.4220421612262726,
0.2971966862678528,
-0.1387290358543396,
-0.05857883766293526,
-0.3954504132270813,
-0.06675529479980469,
-0.4116055965423584,
0.4386831820011139,
-0.1577688753604889,
-0.10152687132358551,
0.5081789493560791,
-0.08628413826227188,
0.1224370151758194,
0.6370720267295837,
-0.00012261152733117342,
-0.030820265412330627,
-0.03247961774468422,
-0.2020161747932434,
-0.2702164351940155,
-0.45320039987564087,
-0.21123358607292175,
-0.2356749027967453,
-0.04479502514004707,
-0.3365784287452698,
0.2640663683414459,
-0.07353082299232483,
-0.11247364431619644,
-0.7267848253250122,
0.1495838761329651,
0.26157715916633606,
0.07585412263870239,
0.2023937702178955,
0.041254833340644836,
-0.011546384543180466,
-0.0034606512635946274,
0.14291787147521973,
0.14699818193912506,
0.16674232482910156,
-0.09447707235813141,
-0.06066575646400452,
0.20734630525112152,
-0.07519883662462234,
-0.3042544424533844,
0.013135310262441635,
0.1142960861325264,
0.47937247157096863,
-0.05994138494133949,
-0.4340187609195709,
-0.07815961539745331,
-0.02286132052540779,
0.4604329466819763,
-0.36957207322120667,
-0.37135350704193115,
-0.10616295039653778,
0.048391055315732956,
-0.2898160517215729,
0.13515226542949677,
0.38069188594818115,
-0.026637788861989975,
0.10822281241416931,
-0.21355855464935303,
0.009028960019350052,
-0.25283363461494446,
-0.04397406801581383,
-0.13084416091442108,
-0.051733359694480896,
-0.06891044974327087,
0.15275192260742188,
0.42635616660118103,
0.12468308210372925,
0.33698907494544983,
-0.5939989686012268,
0.02477242238819599,
0.21366700530052185,
-0.20357951521873474,
0.07589559257030487,
-0.023192550987005234,
-0.4214422106742859,
0.017854616045951843,
-0.049541860818862915,
0.21948334574699402,
-0.12944631278514862,
-0.1592089682817459,
0.2647928297519684,
0.1793380081653595,
0.470599502325058,
-0.030680373311042786,
0.481417715549469,
0.056116651743650436,
-0.12487110495567322,
-0.01648547500371933,
0.022042641416192055,
-0.01073405146598816,
-0.2809273600578308,
0.1725069284439087,
-0.03763463720679283,
0.05129338800907135,
0.017245762050151825,
-0.49026215076446533,
0.17227470874786377,
-0.262779176235199,
-0.1579498052597046,
0.137552410364151,
-0.03582198545336723,
0.024751361459493637,
0.39583611488342285,
0.35788679122924805,
0.3385950028896332,
0.07730753719806671,
0.33625876903533936,
-0.17574703693389893,
0.2379208207130432,
0.06145405024290085,
0.11290060728788376,
0.20487627387046814,
-0.02681727334856987,
-0.03242938593029976,
0.06690867990255356,
0.01968679204583168,
-0.06309278309345245,
0.007189340889453888,
-0.40556684136390686,
0.21164405345916748,
0.14684054255485535,
0.16558659076690674,
0.3385899066925049,
0.31349822878837585,
-0.34763288497924805,
-0.13638590276241302,
0.37201929092407227,
-0.39016881585121155,
-0.16249805688858032,
-0.06086614727973938,
0.06833643466234207,
-0.19907979667186737,
0.08224153518676758,
-0.4669093191623688,
0.005926413461565971,
0.2804732620716095,
0.31465452909469604,
-0.2105138599872589,
-0.031150415539741516,
-0.22716519236564636,
-0.4472230076789856,
0.3580997586250305,
0.04109595715999603,
-0.43936681747436523,
0.031809888780117035,
0.2659561336040497,
0.11682725697755814,
0.21341852843761444,
0.46578526496887207,
-0.018320728093385696,
0.4720541834831238,
-0.33763587474823,
-0.012589588761329651,
0.34187963604927063,
-0.45512914657592773,
-0.1726367175579071,
0.206851989030838,
-0.171176016330719,
-0.010898910462856293,
0.3100951015949249,
0.04501800984144211,
-0.01244858093559742,
0.2387019842863083,
0.7105069160461426,
0.31068623065948486,
-0.03681023046374321,
-0.05912060663104057,
-0.1282612383365631,
-0.17916691303253174,
0.36018601059913635,
-0.13051387667655945,
-0.07173941284418106,
0.12584656476974487,
-0.24187031388282776,
-0.43169718980789185,
0.35879868268966675,
-0.2525397837162018,
0.056376151740550995,
0.4634281098842621,
0.3992074131965637,
-0.15215237438678741,
-0.10933682322502136,
0.07024742662906647,
-0.17555977404117584,
0.2409663051366806,
0.03808087855577469,
-0.1411440074443817,
-0.2892434895038605,
0.0492359921336174,
-0.1995350867509842,
0.07208352535963058,
-0.10834196209907532,
0.030918844044208527,
0.011055048555135727,
0.19005002081394196,
0.020237460732460022,
-0.12869322299957275,
-0.24561406672000885,
0.641156792640686,
-0.08214347809553146,
-0.012617276981472969,
-0.1710728108882904,
0.5629539489746094,
-0.22423242032527924,
-0.0949677899479866,
-0.07745254784822464,
-0.00475698709487915,
0.2522276043891907,
0.1173366829752922,
0.019238103181123734,
0.45813003182411194,
-0.029352586716413498,
0.06521070003509521,
0.16460032761096954,
-0.0015373528003692627,
0.15870283544063568,
0.09264017641544342,
0.16910770535469055,
-0.03223701938986778,
0.25783321261405945,
-0.23279306292533875,
-0.11629244685173035,
0.37022864818573,
-0.3233274519443512,
0.40825188159942627,
0.1217193529009819,
-0.051772356033325195,
0.13635188341140747,
0.05886206030845642,
0.00297652930021286,
-0.15291114151477814,
0.09956159442663193,
0.15318496525287628,
0.2225986123085022,
0.21187321841716766,
-0.30467018485069275,
-0.012798521667718887,
0.2571276128292084,
0.03718791902065277,
0.005321419797837734,
0.01515177357941866,
-0.05272914841771126,
-0.13842515647411346,
-0.20079560577869415,
0.35415929555892944,
0.7381993532180786,
0.1167205274105072,
0.1836729347705841,
-0.06159043312072754,
-0.1565951108932495,
-0.11441399157047272,
0.2958693504333496,
0.13836610317230225,
0.18849030137062073,
0.28366896510124207,
0.005192965269088745,
-0.026854902505874634,
-0.13139083981513977,
0.005278795957565308,
-0.14500871300697327,
0.054979465901851654,
-0.5187075138092041,
-0.035422272980213165,
-0.19692251086235046,
-0.06886480748653412,
-0.3841022253036499,
-0.30002570152282715,
-0.09576592594385147,
-0.5155740976333618,
-0.29826220870018005,
0.48320460319519043,
0.034070245921611786,
-0.10171870142221451,
-0.2168409824371338,
0.1896803379058838,
0.04251254349946976,
-0.06580285727977753,
0.09002537280321121,
-0.0020250603556632996,
-0.11744610965251923,
-0.019323352724313736,
-0.18491211533546448,
-0.06448031961917877,
0.027212707325816154,
-0.175979346036911,
0.27592894434928894,
-0.3246735632419586,
0.07261528074741364,
-0.14266355335712433,
-0.2029583752155304,
0.17345453798770905,
0.07797803729772568,
0.28038644790649414,
-0.20353233814239502,
-0.5924381613731384,
0.14572343230247498,
0.5013508796691895,
-0.18691833317279816,
0.165806382894516,
0.29461026191711426,
-0.2110973447561264,
-0.07000259310007095,
-0.21698813140392303,
-0.38744422793388367,
-0.2615770101547241,
-0.07837525010108948,
-0.1965804547071457,
0.17516468465328217,
0.09260794520378113,
0.19319197535514832,
0.1270972341299057,
0.36306217312812805,
0.16439609229564667,
-0.15373766422271729,
-0.36763912439346313,
0.44455569982528687,
0.005461391061544418,
-0.18836908042430878,
-0.029849767684936523,
0.007579632103443146,
0.11898154765367508,
0.17033696174621582,
-0.3710668385028839,
-0.020949557423591614,
-0.2660007178783417,
0.13245752453804016,
-0.09867532551288605,
0.32050132751464844,
0.1483413428068161,
0.3702242970466614,
-0.027901090681552887,
-0.2777625322341919,
-0.3389347791671753,
0.18721145391464233,
0.2447299212217331,
0.3925764560699463,
-0.0807117372751236,
0.2742600440979004,
0.14448398351669312,
0.3211857080459595,
0.3186565041542053,
0.07069812715053558,
0.36181917786598206,
0.20494221150875092,
0.5604657530784607,
-0.04103381931781769,
-0.540770411491394,
-0.3021302819252014,
-0.05445047467947006,
-0.27458637952804565,
-0.045663461089134216,
0.03951680287718773,
0.025485467165708542,
-0.17167779803276062,
0.13947921991348267,
-0.2076471447944641,
-0.21673166751861572,
0.04676178842782974,
-0.2657446265220642,
0.1350402534008026,
-0.16394078731536865,
-0.04099409282207489,
-0.296751469373703,
0.29640382528305054,
-0.16156457364559174,
0.127874493598938,
0.21454960107803345,
-0.07782712578773499,
-0.3957499861717224,
-0.3447403311729431,
-0.4116416573524475,
0.32739630341529846,
0.11218146234750748,
0.3608623147010803,
0.05352693796157837,
-0.24764050543308258,
-0.2672666609287262,
0.00018969550728797913,
0.8296084403991699,
0.2859651446342468,
-0.35049062967300415,
0.42407840490341187,
-0.005201227962970734,
-0.48690953850746155,
-0.06993153691291809,
0.06518985331058502,
0.19532759487628937,
-0.31188634037971497,
0.4359983801841736,
-0.2213546633720398,
-0.021483056247234344,
-0.12375462055206299,
0.5002305507659912,
-0.13253214955329895,
0.029593221843242645,
-0.1533934473991394,
-0.21133357286453247,
-0.10274159908294678,
-0.2540702521800995,
-0.01371314749121666,
0.4512712061405182,
-0.32782959938049316,
-0.014840982854366302,
0.014013806357979774,
-0.2825433313846588,
0.35526755452156067,
-0.3786018192768097,
0.5898548364639282,
-0.08378304541110992,
0.14618510007858276,
0.08389091491699219,
0.1358463615179062,
0.39028340578079224,
0.4980376064777374,
-0.26789653301239014,
-0.08986350893974304,
0.05806721746921539,
0.0452437587082386,
0.4692690968513489,
0.2317846417427063,
-0.2059548944234848,
-0.13645850121974945,
-0.09805276244878769,
-0.08072981238365173,
-0.3447631001472473,
-0.04826909676194191,
0.3455117642879486,
0.04664584994316101,
-0.3898506462574005,
-0.3483808934688568,
0.23343908786773682,
0.3130781650543213,
-0.10071952641010284,
0.33568108081817627,
0.006424080580472946,
-0.4863874912261963,
0.3060374855995178,
-0.16928228735923767,
0.9695227742195129,
0.06907086074352264,
0.2858234643936157,
0.20723044872283936,
-0.21423184871673584,
0.06145847961306572,
0.25369882583618164,
0.08112733066082001,
-0.1540393829345703,
-0.2758869528770447,
-0.12875376641750336,
-0.3111577033996582,
0.039787184447050095,
0.2840386927127838,
-0.36297717690467834,
0.3248744010925293,
-0.40894222259521484,
-0.12133616209030151,
-0.11997893452644348,
0.05675338953733444,
-0.11757297813892365,
-0.16752402484416962,
-0.35345372557640076,
0.0193217471241951,
0.17323732376098633,
0.01138865016400814,
-0.009167797863483429,
-0.04199894517660141,
-0.4983077645301819,
-0.21196450293064117,
-0.12966318428516388,
0.12950482964515686,
-0.2722186744213104,
0.6612729430198669,
-0.360772043466568,
-0.40872129797935486,
-0.45964425802230835,
0.3534538745880127,
0.4468976557254791,
-0.04067680239677429,
0.02037935145199299,
-0.0941186249256134,
-0.004010258242487907,
0.1347251981496811,
0.014861069619655609,
-0.2953515946865082,
0.19343920052051544,
0.16358645260334015,
-0.058704525232315063,
-0.06354129314422607,
-0.07265709340572357,
-0.3442118167877197,
-0.09352771192789078,
0.059162113815546036,
-0.0022298218682408333,
-0.20736892521381378,
-0.36238157749176025,
0.17808446288108826,
0.029074668884277344,
-0.06666118651628494,
0.02570204623043537,
0.3393508195877075,
-0.05074454843997955,
0.31585201621055603,
-0.35418274998664856,
-0.3773804306983948,
-0.07397077977657318,
0.531265139579773,
0.2242581844329834,
-0.056274332106113434,
0.4126943349838257,
-0.07747523486614227,
-0.12033358216285706,
-0.002245984971523285,
0.3146802484989166,
0.15221582353115082,
0.21072831749916077,
0.38436558842658997,
-0.018637996166944504,
-0.003637462854385376,
-0.09690654277801514,
0.3600207567214966,
0.354828804731369,
0.18591567873954773,
-0.08421365916728973,
-0.27101418375968933,
-0.49225348234176636,
0.36821863055229187,
0.10366196185350418,
0.33790290355682373,
0.043843626976013184,
-0.3522380292415619,
0.050822533667087555,
-0.13911162316799164,
-0.1926676332950592,
0.012873567640781403,
-0.2097492516040802,
0.04218125715851784,
0.22381018102169037,
-0.016576383262872696,
0.18556897342205048,
0.044821176677942276,
0.0728660598397255,
-0.18601921200752258,
-0.005239415913820267,
-0.08832785487174988,
0.0931256040930748,
0.18739283084869385,
0.11108669638633728,
0.011903777718544006,
-0.005746114999055862,
-0.46616894006729126,
0.025892987847328186,
-0.24653160572052002,
-0.09445308148860931,
0.5793570280075073,
0.017572050914168358,
0.16908767819404602,
-0.019627507776021957,
0.21369634568691254,
0.06169905513525009,
0.07638902962207794,
-0.002538103610277176,
0.12159156799316406,
0.003670182079076767,
0.23053932189941406,
-0.23932209610939026,
-0.1587928831577301,
-0.3834437131881714,
-0.023367304354906082,
-0.11168208718299866,
0.00981622189283371,
0.22927339375019073,
-0.1504143476486206,
-0.1484251618385315,
-0.01247357577085495,
0.37284111976623535,
0.3538387715816498,
-0.1588052213191986,
0.1364239752292633,
-0.07169189304113388,
0.08650904148817062,
0.04926067590713501,
-0.29046037793159485,
-0.19478026032447815,
-0.22925983369350433,
-0.21078087389469147,
0.13813966512680054,
-0.008870221674442291,
-0.014932110905647278,
-0.4017888903617859,
-0.01009894534945488,
0.7563081979751587,
-0.14199338853359222,
0.2795635461807251,
0.046181172132492065,
0.09027775377035141,
0.05056983232498169,
0.03269398957490921,
0.14083558320999146,
0.3030179738998413,
0.06406259536743164,
-0.1083737462759018,
0.16765525937080383,
0.38233041763305664,
-0.12803024053573608,
0.26090559363365173,
-0.17992615699768066,
-0.008866109885275364,
0.11204944550991058,
-0.13184580206871033,
-0.027541015297174454,
0.051190078258514404,
0.17710277438163757,
-0.517402172088623,
-0.1464340090751648,
0.007995888590812683,
0.3008129596710205,
-0.1359507441520691,
-0.13517975807189941,
0.074986532330513,
-0.2732970714569092,
0.04895573854446411,
-0.14381827414035797,
0.11961954087018967,
-0.29698917269706726,
0.15138764679431915,
-0.054495587944984436,
-0.04239184409379959,
-0.04714818671345711,
0.26941120624542236,
0.38723745942115784,
0.059957355260849,
-0.25425997376441956,
0.00997341051697731,
0.2114083170890808,
-0.054467931389808655,
0.13912469148635864,
0.2713523209095001,
0.5723229646682739,
0.5754200220108032,
0.02243255078792572,
0.08439706265926361,
0.04272202029824257,
-0.28399622440338135,
-0.04375813156366348,
0.06508642435073853,
-0.3334129750728607,
-0.3743070960044861,
0.3329985439777374,
0.1922888457775116,
0.014276944100856781,
0.06683556735515594,
0.21608377993106842,
0.5071802735328674,
-0.22291500866413116,
0.23553530871868134,
-0.19778653979301453,
-0.20778121054172516,
0.10370630025863647,
0.013859519734978676,
-0.38239341974258423,
-0.20689694583415985,
0.3432179093360901,
-0.010047834366559982,
0.1653650999069214,
0.1960689127445221,
0.04516115039587021,
0.06180349364876747,
0.19468939304351807,
0.2713277339935303,
0.00857075396925211,
-0.48857009410858154,
-0.014843016862869263,
-0.41344431042671204,
-0.17253179848194122,
0.37903183698654175,
0.19482089579105377,
-0.2688862979412079,
0.40940797328948975,
0.13882207870483398,
-0.06945837289094925,
0.16298702359199524,
0.16212059557437897,
-0.1625232845544815,
0.05186667665839195,
-0.43638134002685547,
-0.190635085105896,
0.20932604372501373,
-0.03319789096713066,
-0.06536201387643814,
-0.31892651319503784,
0.18697163462638855,
0.16553691029548645,
0.04067830741405487,
-0.008566673845052719,
0.08489888906478882,
0.17786435782909393,
0.4394780993461609,
0.22910138964653015,
0.19874966144561768,
0.33515024185180664,
-0.12798024713993073,
-0.007993854582309723,
-0.018061650916934013,
-0.27850541472435,
-0.09732366353273392,
0.09447738528251648,
-0.12414760142564774,
0.4446905255317688,
-0.5122811794281006,
0.09188984334468842,
-0.1592814028263092,
0.015488095581531525,
0.07139810919761658,
-0.3703897297382355,
-0.1454002559185028,
0.03969472646713257,
-0.03676930069923401,
0.01275203749537468,
0.15862450003623962,
0.2262331247329712,
0.04521772265434265,
0.5562229752540588,
0.01727902889251709,
-0.4441855549812317,
0.36792656779289246,
0.11316168308258057,
-0.16324171423912048,
0.09266626834869385,
-0.05418309569358826,
0.17214836180210114,
0.38244590163230896,
-0.5713043808937073,
-0.18409840762615204,
0.4492424428462982,
-0.217942476272583,
-0.32804054021835327,
0.07558508217334747,
-0.10196250677108765,
0.04619920253753662,
-0.00796797126531601,
0.3582437038421631,
-0.1322503387928009,
-0.32583916187286377,
0.05536656081676483,
-0.18720683455467224
] |
https://github.com/huggingface/datasets/issues/2040 | In the next release you'll be able to concatenate any kinds of dataset (either from memory or from disk).
For now I'd suggest you to flatten the indices of the A and B datasets. This will remove the indices mapping and you will be able to concatenate them. You can flatten the indices with
```python
dataset = dataset.flatten_indices()
``` | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
``` | 59 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
```
In the next release you'll be able to concatenate any kinds of dataset (either from memory or from disk).
For now I'd suggest you to flatten the indices of the A and B datasets. This will remove the indices mapping and you will be able to concatenate them. You can flatten the indices with
```python
dataset = dataset.flatten_indices()
``` | [
-0.0903855487704277,
-0.08030962944030762,
-0.02171476185321808,
0.4296606779098511,
0.21229036152362823,
0.26673123240470886,
0.0407162569463253,
0.17951613664627075,
-0.0718931332230568,
0.17469540238380432,
-0.0009917765855789185,
0.19955860078334808,
-0.08817721158266068,
-0.03269223868846893,
-0.34390535950660706,
-0.055838197469711304,
0.19305193424224854,
0.018710847944021225,
-0.10415853559970856,
0.009861841797828674,
-0.4442353844642639,
0.2436518669128418,
-0.15522047877311707,
-0.03592943027615547,
-0.3114731013774872,
-0.06474193930625916,
-0.3580111861228943,
0.3418426215648651,
-0.11531158536672592,
-0.12061212956905365,
0.550838828086853,
-0.047753628343343735,
0.08698628097772598,
0.556516706943512,
-0.00011674216511892155,
-0.00587114691734314,
-0.03981167450547218,
-0.15968388319015503,
-0.24129819869995117,
-0.46986860036849976,
-0.29933249950408936,
-0.24015669524669647,
-0.021355915814638138,
-0.29686886072158813,
0.20866212248802185,
-0.18600822985172272,
-0.10971835255622864,
-0.718520998954773,
0.23581546545028687,
0.2194238156080246,
0.13161633908748627,
0.16060546040534973,
0.1590326726436615,
-0.053722988814115524,
0.006094703450798988,
0.06041406840085983,
0.17726102471351624,
0.17952048778533936,
-0.12992742657661438,
-0.03586321696639061,
0.26427552103996277,
-0.006864171475172043,
-0.3868626654148102,
-0.054220497608184814,
0.13373523950576782,
0.4457707107067108,
0.09421108663082123,
-0.4561153054237366,
-0.14772549271583557,
0.07523050904273987,
0.420015811920166,
-0.3262959122657776,
-0.32722294330596924,
-0.09136608988046646,
0.09714199602603912,
-0.3858569264411926,
0.11834479868412018,
0.36938023567199707,
0.06398233771324158,
0.12742291390895844,
-0.21282991766929626,
-0.08891377598047256,
-0.18957841396331787,
0.006588442251086235,
-0.11501171439886093,
0.02189040370285511,
-0.021095234900712967,
0.164656862616539,
0.5099679827690125,
-0.03251287341117859,
0.4155709445476532,
-0.5363280177116394,
0.04760302975773811,
0.18976706266403198,
-0.19912120699882507,
0.035990506410598755,
-0.08571173250675201,
-0.5460635423660278,
0.07068653404712677,
-0.18107397854328156,
0.11627485603094101,
-0.11603836715221405,
-0.1602855920791626,
0.32593339681625366,
0.18679895997047424,
0.42335397005081177,
0.045959025621414185,
0.5026443004608154,
0.03429460525512695,
-0.08021710813045502,
0.06442813575267792,
0.05240580812096596,
0.07192797213792801,
-0.3668624460697174,
0.0957353264093399,
0.015341583639383316,
0.11431601643562317,
0.0008163675665855408,
-0.4245220124721527,
0.12773507833480835,
-0.2855326235294342,
-0.08480794727802277,
0.056959643959999084,
-0.07957412302494049,
0.04663635790348053,
0.3995071351528168,
0.38964229822158813,
0.3132680654525757,
0.07838338613510132,
0.2504095435142517,
-0.17763857543468475,
0.1767178177833557,
0.14199981093406677,
0.12403152137994766,
0.1526341438293457,
-0.06398807466030121,
-0.08171690255403519,
0.19196808338165283,
-0.0037849918007850647,
0.014207527041435242,
0.022685222327709198,
-0.3594810366630554,
0.19063320755958557,
0.16511259973049164,
0.10700343549251556,
0.2670374810695648,
0.30681028962135315,
-0.3512369394302368,
-0.1848159283399582,
0.3993566930294037,
-0.401935875415802,
-0.16006791591644287,
-0.14834192395210266,
0.11776890605688095,
-0.11065353453159332,
0.09295162558555603,
-0.4305931329727173,
0.10366468131542206,
0.28925055265426636,
0.22144049406051636,
-0.2550334334373474,
-0.10515707731246948,
-0.2563720643520355,
-0.3879457414150238,
0.30739474296569824,
-0.0501088872551918,
-0.43175941705703735,
-0.008513718843460083,
0.267315536737442,
0.10990510880947113,
0.2351313829421997,
0.4662025272846222,
-0.07820967584848404,
0.33403387665748596,
-0.262785404920578,
-0.0979299545288086,
0.1698979288339615,
-0.3320310711860657,
-0.19882141053676605,
0.13421982526779175,
-0.15351353585720062,
0.035032398998737335,
0.19879385828971863,
0.04357600584626198,
0.02852003648877144,
0.24981564283370972,
0.7739897966384888,
0.31666111946105957,
-0.0380968376994133,
-0.11918739974498749,
-0.15316155552864075,
-0.26662203669548035,
0.4661266505718231,
-0.13150110840797424,
-0.14166423678398132,
0.09884943068027496,
-0.37251603603363037,
-0.3975747525691986,
0.3472750782966614,
-0.28328266739845276,
0.06362968683242798,
0.42132875323295593,
0.326369047164917,
-0.18171674013137817,
-0.10189073532819748,
0.02462361752986908,
-0.20542865991592407,
0.18950361013412476,
-0.03356683999300003,
-0.10182035714387894,
-0.22666218876838684,
-0.05870063975453377,
-0.1673019677400589,
0.018740281462669373,
-0.0538976788520813,
0.14129862189292908,
0.03920337185263634,
0.014168120920658112,
-0.07188291847705841,
-0.10226123034954071,
-0.26739513874053955,
0.5654741525650024,
-0.09033272415399551,
0.03830249235033989,
-0.2548472285270691,
0.4797315001487732,
-0.16872373223304749,
-0.042346108704805374,
-0.02578914910554886,
-0.007185392081737518,
0.24996641278266907,
0.09860989451408386,
-0.006040941923856735,
0.49193423986434937,
-0.0936737060546875,
0.011919926851987839,
0.07791689038276672,
0.015920184552669525,
0.22719258069992065,
0.017849981784820557,
0.07698506116867065,
0.0056218355894088745,
0.12916509807109833,
-0.18703404068946838,
-0.07958054542541504,
0.4245118498802185,
-0.36679765582084656,
0.3369200825691223,
0.03146333992481232,
0.08698952943086624,
0.21492204070091248,
-0.020044460892677307,
-0.032752178609371185,
-0.23530036211013794,
0.01801278069615364,
0.007793605327606201,
0.05984757840633392,
0.15973879396915436,
-0.32710492610931396,
-0.05025495961308479,
0.1370067596435547,
0.04359199106693268,
-0.00815957598388195,
0.04763489589095116,
-0.07929939031600952,
-0.07755910605192184,
-0.142245352268219,
0.262661874294281,
0.5957343578338623,
0.2051413357257843,
0.0933414101600647,
0.03013189695775509,
-0.156204953789711,
-0.04628516361117363,
0.31240659952163696,
0.12121666222810745,
0.1940273642539978,
0.21944200992584229,
-0.013891752809286118,
-0.022664859890937805,
-0.0724644809961319,
0.05752326548099518,
-0.11339601129293442,
0.11805287003517151,
-0.5014938116073608,
-0.09627236425876617,
-0.30157506465911865,
-0.10217345505952835,
-0.3828294277191162,
-0.3004683256149292,
-0.1973971724510193,
-0.4838760495185852,
-0.26154187321662903,
0.45866721868515015,
-0.05902381241321564,
0.038206763565540314,
-0.12701736390590668,
0.16831301152706146,
0.07200483977794647,
0.026538660749793053,
0.1558898389339447,
-0.021673163399100304,
-0.0583188533782959,
0.044499680399894714,
-0.07785753905773163,
-0.0622469037771225,
0.059110984206199646,
-0.1217503547668457,
0.2177446186542511,
-0.2410198301076889,
0.03858625888824463,
-0.15009544789791107,
-0.18275760114192963,
0.09934293478727341,
0.0969475507736206,
0.29070159792900085,
-0.26632511615753174,
-0.585574746131897,
0.12328477203845978,
0.5215250849723816,
-0.1266576200723648,
0.17300501465797424,
0.26260289549827576,
-0.182980477809906,
-0.07983216643333435,
-0.22379502654075623,
-0.36807748675346375,
-0.2371440976858139,
-0.07980841398239136,
-0.2592632472515106,
0.24727246165275574,
0.09903183579444885,
0.26495009660720825,
0.08202369511127472,
0.3654111921787262,
0.10077327489852905,
-0.14460501074790955,
-0.2878362536430359,
0.38860630989074707,
-0.00844142958521843,
-0.17906050384044647,
0.006531074643135071,
-0.005005337297916412,
0.0862753838300705,
0.16645541787147522,
-0.37018340826034546,
-0.00954308733344078,
-0.18042799830436707,
0.096353679895401,
-0.1326225996017456,
0.2878190875053406,
0.1116802841424942,
0.48468664288520813,
-0.05322650820016861,
-0.13801422715187073,
-0.31442171335220337,
0.1558961272239685,
0.19220593571662903,
0.38164830207824707,
-0.04301397502422333,
0.272298127412796,
0.0688319206237793,
0.25135481357574463,
0.34749048948287964,
0.10603167116641998,
0.22027045488357544,
0.268047958612442,
0.46714454889297485,
-0.06796799600124359,
-0.5600993633270264,
-0.39604952931404114,
-0.020785987377166748,
-0.20792646706104279,
-0.0920797735452652,
-0.03029877506196499,
0.00460568442940712,
-0.14374715089797974,
0.15224958956241608,
-0.105103999376297,
-0.23451294004917145,
0.08896104991436005,
-0.29795292019844055,
0.17423979938030243,
-0.14621149003505707,
-0.11231378465890884,
-0.3172489106655121,
0.23380354046821594,
-0.16210778057575226,
0.007230199873447418,
0.18262621760368347,
-0.1477535367012024,
-0.3948550224304199,
-0.30195510387420654,
-0.42318740487098694,
0.42840737104415894,
0.09401129186153412,
0.36003726720809937,
0.10299074649810791,
-0.21160301566123962,
-0.3140147030353546,
0.06446203589439392,
0.7793229818344116,
0.24288412928581238,
-0.479356586933136,
0.4762115478515625,
0.04866095632314682,
-0.5282109975814819,
-0.08921036124229431,
0.07767396420240402,
0.17030426859855652,
-0.2709619998931885,
0.5176336169242859,
-0.2395983338356018,
0.007817048579454422,
-0.0545135997235775,
0.5147520899772644,
-0.17008301615715027,
0.06288768351078033,
-0.0855599045753479,
-0.23723939061164856,
-0.13556164503097534,
-0.2421567738056183,
-0.007106445729732513,
0.523963987827301,
-0.2932552397251129,
-0.007220454514026642,
-0.04059994965791702,
-0.27009525895118713,
0.4007335901260376,
-0.38502997159957886,
0.5835525989532471,
-0.0071733854711055756,
0.15688639879226685,
0.17162060737609863,
0.15051725506782532,
0.3474329113960266,
0.4852839708328247,
-0.23800602555274963,
-0.1381065547466278,
-0.018534334376454353,
0.12233802676200867,
0.4762548804283142,
0.23246678709983826,
-0.12017537653446198,
-0.0048017799854278564,
-0.034246351569890976,
0.017817910760641098,
-0.3697008490562439,
-0.06575925648212433,
0.25075337290763855,
0.02801648899912834,
-0.46540939807891846,
-0.4313580393791199,
0.20426295697689056,
0.3102703094482422,
-0.12458236515522003,
0.35935601592063904,
-0.03234254568815231,
-0.4702593684196472,
0.3982974588871002,
-0.11627189815044403,
0.9791231155395508,
-0.06791605800390244,
0.19780927896499634,
0.12638196349143982,
-0.18898537755012512,
0.16857761144638062,
0.28588974475860596,
0.11369480192661285,
-0.2019079029560089,
-0.29073479771614075,
-0.12553560733795166,
-0.26937246322631836,
0.049175925552845,
0.2388659417629242,
-0.44256681203842163,
0.2669605612754822,
-0.4332689344882965,
-0.0990275889635086,
-0.17758707702159882,
0.06578829884529114,
-0.0341668464243412,
-0.21733364462852478,
-0.3752555251121521,
0.06146450340747833,
0.08799029886722565,
-0.11095857620239258,
0.008018333464860916,
-0.0633542388677597,
-0.38580772280693054,
-0.1335166096687317,
-0.11016885191202164,
0.09765827655792236,
-0.1991310864686966,
0.7657147645950317,
-0.38438257575035095,
-0.31012582778930664,
-0.3907933235168457,
0.2589002251625061,
0.43976014852523804,
0.0024198442697525024,
0.0508851557970047,
-0.13276107609272003,
0.01654023490846157,
0.04228389263153076,
-0.012544628232717514,
-0.24536365270614624,
0.18643318116664886,
0.18573155999183655,
-0.12046493589878082,
0.07219496369361877,
0.02460913360118866,
-0.34901779890060425,
-0.11420509219169617,
0.00291498564183712,
-0.00946873426437378,
-0.29979974031448364,
-0.3640497326850891,
0.17906853556632996,
0.14275044202804565,
-0.06081947684288025,
0.06683473289012909,
0.32940784096717834,
-0.05389200896024704,
0.27579042315483093,
-0.3172311782836914,
-0.34271240234375,
-0.0965486466884613,
0.5646896958351135,
0.36274150013923645,
-0.023670952767133713,
0.41359376907348633,
-0.039533235132694244,
-0.07016782462596893,
-0.01614326983690262,
0.3499985635280609,
0.1511652022600174,
0.20371092855930328,
0.4430519640445709,
0.010172169655561447,
-0.010911732912063599,
-0.18156829476356506,
0.36286500096321106,
0.37142860889434814,
0.22770340740680695,
-0.04208910092711449,
-0.16466392576694489,
-0.5605290532112122,
0.3672231137752533,
0.15998663008213043,
0.3651220500469208,
0.08181849867105484,
-0.3125768303871155,
-0.10212433338165283,
-0.08958588540554047,
-0.2543860077857971,
0.02886953204870224,
-0.17905046045780182,
0.03819321095943451,
0.19825617969036102,
-0.04077734425663948,
0.1313471645116806,
-0.052727218717336655,
0.1377762109041214,
-0.21347177028656006,
0.01244259625673294,
-0.15494295954704285,
0.06207692623138428,
0.13880735635757446,
0.0865527018904686,
-0.1200789213180542,
-0.02103915810585022,
-0.4546809196472168,
-0.023988721892237663,
-0.2092132717370987,
-0.09408455342054367,
0.6052910685539246,
0.03619857877492905,
0.14055079221725464,
-0.06117803975939751,
0.13955920934677124,
0.0812329351902008,
0.05955002084374428,
0.05765740945935249,
0.0565803162753582,
-0.06296643614768982,
0.2205437570810318,
-0.28351137042045593,
-0.1896282434463501,
-0.34572532773017883,
0.010538183152675629,
-0.1799466907978058,
-0.05842277780175209,
0.23938262462615967,
-0.13866424560546875,
-0.20370593667030334,
0.16895300149917603,
0.38118690252304077,
0.3318370580673218,
-0.19809843599796295,
0.17885658144950867,
-0.00797383300960064,
0.14123281836509705,
-0.0037088245153427124,
-0.2662274241447449,
-0.0902472510933876,
-0.12989774346351624,
-0.22663384675979614,
0.06935345381498337,
-0.02308497577905655,
0.02414374053478241,
-0.3969610333442688,
0.04251859337091446,
0.6044136881828308,
-0.17291855812072754,
0.37874260544776917,
0.094907745718956,
0.1064307913184166,
-0.0563943088054657,
0.03308159112930298,
0.11875571310520172,
0.4463939070701599,
-0.04736153781414032,
-0.11964979767799377,
0.09885083884000778,
0.3390354812145233,
-0.11449472606182098,
0.22008715569972992,
-0.23099766671657562,
0.021580923348665237,
0.20778587460517883,
-0.18555332720279694,
0.01403986755758524,
0.14075542986392975,
0.23516544699668884,
-0.5215610265731812,
-0.28589606285095215,
0.0506991446018219,
0.4173051416873932,
-0.17601296305656433,
-0.12801675498485565,
0.12239895761013031,
-0.17785212397575378,
0.04803493618965149,
-0.14718413352966309,
0.12405817955732346,
-0.3219694495201111,
0.19120605289936066,
-0.08579742163419724,
-0.028237871825695038,
-0.034460507333278656,
0.24461111426353455,
0.41525140404701233,
0.10872399061918259,
-0.21960654854774475,
-0.11939150094985962,
0.29779064655303955,
-0.07352467626333237,
0.10690128803253174,
0.315818190574646,
0.5540586709976196,
0.5522786974906921,
-0.0312055516988039,
0.13086678087711334,
0.06895728409290314,
-0.20486249029636383,
0.04297628998756409,
0.013464745134115219,
-0.21742260456085205,
-0.2798503041267395,
0.40767019987106323,
0.19716353714466095,
-0.030816100537776947,
0.053091127425432205,
0.17693392932415009,
0.5629743337631226,
-0.17615364491939545,
0.14202165603637695,
-0.0943724513053894,
-0.1839529275894165,
0.1142074316740036,
0.034950289875268936,
-0.31021440029144287,
-0.2542951703071594,
0.36670854687690735,
-0.011050190776586533,
0.1435457468032837,
0.24487335979938507,
0.08542335778474808,
0.0631786435842514,
0.19992578029632568,
0.33370599150657654,
-0.04188215360045433,
-0.5096418857574463,
-0.005424976348876953,
-0.424562931060791,
-0.18141597509384155,
0.28510624170303345,
0.24032378196716309,
-0.1437007635831833,
0.3626503050327301,
0.16792693734169006,
-0.03715766966342926,
0.06596267223358154,
0.047292910516262054,
-0.19093793630599976,
-0.05249876156449318,
-0.370511531829834,
-0.1487300544977188,
0.2106339931488037,
-0.06044687330722809,
-0.058744534850120544,
-0.285687655210495,
0.27194613218307495,
0.1523067057132721,
0.053592562675476074,
0.00916614755988121,
0.16405312716960907,
0.14707963168621063,
0.3854425251483917,
0.19482024013996124,
0.20950138568878174,
0.30704283714294434,
-0.11525100469589233,
0.03164582699537277,
0.019572142511606216,
-0.33043524622917175,
-0.14236381649971008,
0.13321453332901,
-0.08601431548595428,
0.5072710514068604,
-0.5292457938194275,
0.03531026840209961,
-0.12137271463871002,
0.11962443590164185,
0.015920162200927734,
-0.4145379960536957,
-0.22922033071517944,
0.10314632952213287,
-0.011365257203578949,
-0.0491565465927124,
0.07738682627677917,
0.2998970150947571,
0.015460197813808918,
0.5862024426460266,
0.09814637899398804,
-0.4228113889694214,
0.4048634171485901,
0.1132650077342987,
-0.14947877824306488,
0.08225436508655548,
-0.08725164830684662,
0.204319030046463,
0.3383573591709137,
-0.5801487565040588,
-0.21217405796051025,
0.4233349859714508,
-0.260257363319397,
-0.31117406487464905,
0.1098245233297348,
-0.10285812616348267,
0.002929598093032837,
0.012131959199905396,
0.40395933389663696,
-0.06418441236019135,
-0.40160155296325684,
0.023752346634864807,
-0.22129079699516296
] |
https://github.com/huggingface/datasets/issues/2040 | Indeed this works. Not the most elegant solution, but it does the trick. Thanks a lot! | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk | Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
``` | 16 | ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi there,
I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects):
```python
concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']])
```
Yielding the following error:
```python
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho...
`load_from_disk(PATH_DATA_CLS_A)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 785
})
```
`load_from_disk(PATH_DATA_CLS_B)['train']` yields:
```python
Dataset({
features: ['labels', 'text'],
num_rows: 3341
})
```
Indeed this works. Not the most elegant solution, but it does the trick. Thanks a lot! | [
-0.04838210716843605,
-0.07965591549873352,
-0.021617289632558823,
0.4603259265422821,
0.1872413158416748,
0.26541775465011597,
0.0407089963555336,
0.11934363842010498,
-0.047968097031116486,
0.14856736361980438,
0.0525876060128212,
0.17896027863025665,
-0.06306637078523636,
-0.07126638293266296,
-0.298770934343338,
-0.0633009821176529,
0.2559678554534912,
-0.014330491423606873,
-0.12438829243183136,
-0.03350269794464111,
-0.43655645847320557,
0.25305742025375366,
-0.12421198934316635,
-0.04466491565108299,
-0.30367791652679443,
-0.06688451766967773,
-0.4069907069206238,
0.35543298721313477,
-0.0752541795372963,
-0.12310098111629486,
0.5189290642738342,
-0.02012600749731064,
0.09416355937719345,
0.581660270690918,
-0.00012137419253122061,
-0.0043540894985198975,
-0.10395006835460663,
-0.1759781390428543,
-0.24222221970558167,
-0.4407142698764801,
-0.23660579323768616,
-0.25088223814964294,
-0.036446504294872284,
-0.293185293674469,
0.25390660762786865,
-0.13413752615451813,
-0.11759604513645172,
-0.7231461405754089,
0.2457880675792694,
0.1986134648323059,
0.0922245979309082,
0.1944192349910736,
0.0656495913863182,
-0.040940575301647186,
-0.04092967510223389,
0.1304788589477539,
0.1995796412229538,
0.19535645842552185,
-0.1021023839712143,
-0.02773829735815525,
0.2431662678718567,
-0.019254770129919052,
-0.35802364349365234,
-0.04786498472094536,
0.14823222160339355,
0.4531693756580353,
-0.005329065024852753,
-0.4363863468170166,
-0.13607476651668549,
0.007987827062606812,
0.4547099471092224,
-0.3950955271720886,
-0.3489310145378113,
-0.11716821044683456,
0.0837753638625145,
-0.36391934752464294,
0.11459663510322571,
0.34789419174194336,
0.00787866860628128,
0.12554208934307098,
-0.23527684807777405,
-0.10323096811771393,
-0.21609100699424744,
-0.03360896557569504,
-0.13038130104541779,
-0.0233340784907341,
-0.010051466524600983,
0.19401907920837402,
0.478202760219574,
0.031036190688610077,
0.33253341913223267,
-0.52167809009552,
0.05649998411536217,
0.20905309915542603,
-0.185271218419075,
0.03929229825735092,
-0.09247428178787231,
-0.5081061124801636,
0.03482280671596527,
-0.11931031942367554,
0.12423326075077057,
-0.14693070948123932,
-0.16552399098873138,
0.33564144372940063,
0.24342475831508636,
0.38929906487464905,
0.010718951933085918,
0.4672594666481018,
0.0521027110517025,
-0.16906768083572388,
0.019589684903621674,
0.028833016753196716,
0.04933815822005272,
-0.31856468319892883,
0.1396736204624176,
-0.06427165865898132,
0.039477989077568054,
0.0019534826278686523,
-0.45973533391952515,
0.23381078243255615,
-0.27469444274902344,
-0.1261482983827591,
0.11219367384910583,
-0.027626805007457733,
0.058116309344768524,
0.39883044362068176,
0.4030522108078003,
0.32176029682159424,
0.06582102179527283,
0.2085607945919037,
-0.16501039266586304,
0.24758484959602356,
0.12560179829597473,
0.140279620885849,
0.15362133085727692,
-0.028881093487143517,
-0.06356774270534515,
0.1218629702925682,
0.005378849804401398,
-0.07643485069274902,
-0.00922265276312828,
-0.3630712032318115,
0.13620415329933167,
0.14139863848686218,
0.16191187500953674,
0.32769495248794556,
0.2981005609035492,
-0.3494323492050171,
-0.1738562136888504,
0.42638880014419556,
-0.3527105748653412,
-0.15705566108226776,
-0.10833854228258133,
0.07666157186031342,
-0.163604736328125,
0.08016254007816315,
-0.42626509070396423,
0.09444163739681244,
0.35206422209739685,
0.25120747089385986,
-0.2572675049304962,
-0.05486736446619034,
-0.2776350677013397,
-0.4151388108730316,
0.3119908571243286,
0.001473754644393921,
-0.4745106101036072,
-0.03212336450815201,
0.2938992977142334,
0.09893353283405304,
0.17299598455429077,
0.4579009413719177,
-0.047346070408821106,
0.4347838759422302,
-0.2784128487110138,
-0.07601648569107056,
0.2648217976093292,
-0.3892308175563812,
-0.15946024656295776,
0.14998026192188263,
-0.1660078763961792,
0.008146651089191437,
0.25452494621276855,
0.06669631600379944,
-0.003188919275999069,
0.22726371884346008,
0.7549239993095398,
0.35037505626678467,
-0.04658278450369835,
-0.08909786492586136,
-0.1083979457616806,
-0.20297871530056,
0.43511271476745605,
-0.11516806483268738,
-0.07409273087978363,
0.07582202553749084,
-0.30715835094451904,
-0.40769630670547485,
0.35971546173095703,
-0.2330857664346695,
0.05111825466156006,
0.45099562406539917,
0.33429497480392456,
-0.14031803607940674,
-0.12227527797222137,
0.05583225190639496,
-0.16549484431743622,
0.17520880699157715,
0.042506612837314606,
-0.16813452541828156,
-0.2135871797800064,
-0.023174744099378586,
-0.23402215540409088,
0.09141414612531662,
-0.040402982383966446,
0.12610109150409698,
-0.00604160875082016,
0.09844087064266205,
-0.06758138537406921,
-0.09241992235183716,
-0.2483517974615097,
0.6367926001548767,
-0.11561310291290283,
0.05061805620789528,
-0.2480137199163437,
0.5165684819221497,
-0.18676221370697021,
-0.07498478889465332,
-0.07163085788488388,
-0.003489488735795021,
0.2698657810688019,
0.14319254457950592,
0.023276466876268387,
0.5011240243911743,
-0.08642590045928955,
0.0465388298034668,
0.10625866055488586,
-0.028329387307167053,
0.20866677165031433,
0.06415168941020966,
0.10966768860816956,
-0.04499952495098114,
0.18428879976272583,
-0.2220495343208313,
-0.12960492074489594,
0.4378695487976074,
-0.3333466947078705,
0.36409762501716614,
0.07910670340061188,
0.05754304677248001,
0.16317303478717804,
0.04471311718225479,
0.0018772929906845093,
-0.2020854651927948,
0.07373133301734924,
0.10140277445316315,
0.1597452014684677,
0.19031396508216858,
-0.34526780247688293,
-0.040562354028224945,
0.1253630369901657,
0.05273479223251343,
0.013652032241225243,
0.014211737550795078,
-0.06739707291126251,
-0.08986258506774902,
-0.13063880801200867,
0.3200005888938904,
0.6371326446533203,
0.13296549022197723,
0.0911492109298706,
-0.03539573401212692,
-0.20032770931720734,
-0.05301007255911827,
0.28572386503219604,
0.11538705229759216,
0.169890895485878,
0.1835746467113495,
-0.0004649832844734192,
-0.05531203746795654,
-0.06529352068901062,
0.029304489493370056,
-0.12158513069152832,
0.08842683583498001,
-0.5587565302848816,
-0.04088430106639862,
-0.25920167565345764,
-0.08919506520032883,
-0.432656466960907,
-0.3007505238056183,
-0.178582563996315,
-0.5216222405433655,
-0.2752324342727661,
0.5282119512557983,
-0.04446395859122276,
-0.03420059010386467,
-0.17159974575042725,
0.19942982494831085,
0.01603344827890396,
0.015832921490073204,
0.22337447106838226,
-0.016453899443149567,
-0.06836071610450745,
-0.002143576741218567,
-0.13743148744106293,
-0.07098947465419769,
0.08676795661449432,
-0.1476973593235016,
0.21063777804374695,
-0.23775234818458557,
0.0644206777215004,
-0.1513041853904724,
-0.18046972155570984,
0.12542849779129028,
0.06077481433749199,
0.28150269389152527,
-0.2824745178222656,
-0.6274941563606262,
0.1269659698009491,
0.5603993535041809,
-0.12143443524837494,
0.15522046387195587,
0.2652803659439087,
-0.20350223779678345,
-0.0397573821246624,
-0.1804063618183136,
-0.38379818201065063,
-0.21792255342006683,
-0.05793042853474617,
-0.23517589271068573,
0.22476589679718018,
0.11027176678180695,
0.2297355830669403,
0.07258467376232147,
0.39103779196739197,
0.14117386937141418,
-0.15055668354034424,
-0.31732213497161865,
0.4028310477733612,
-0.010666429996490479,
-0.13934765756130219,
0.011573545634746552,
0.024893812835216522,
0.07917052507400513,
0.1679452359676361,
-0.3714912533760071,
-0.0036194249987602234,
-0.19243501126766205,
0.12601907551288605,
-0.1266137808561325,
0.2927981913089752,
0.07609205693006516,
0.42904019355773926,
-0.007263708859682083,
-0.21534180641174316,
-0.36894387006759644,
0.19654807448387146,
0.1868612915277481,
0.39830347895622253,
-0.0778275728225708,
0.29564112424850464,
0.11763753741979599,
0.2697819173336029,
0.30122560262680054,
0.09387463331222534,
0.28486642241477966,
0.25225159525871277,
0.5076847076416016,
-0.003135107457637787,
-0.5560573935508728,
-0.3561556935310364,
-0.04555100202560425,
-0.26278501749038696,
-0.10991442948579788,
-0.0035714898258447647,
0.028240203857421875,
-0.1696554273366928,
0.15731549263000488,
-0.1575000286102295,
-0.21933487057685852,
0.012328153476119041,
-0.2399486005306244,
0.14582282304763794,
-0.1426560878753662,
-0.0676003023982048,
-0.3264601230621338,
0.2706412672996521,
-0.17859205603599548,
0.04453500360250473,
0.20918716490268707,
-0.11651192605495453,
-0.44530966877937317,
-0.3459744155406952,
-0.4078502953052521,
0.3821876645088196,
0.08032260835170746,
0.37291061878204346,
0.07602783292531967,
-0.21978022158145905,
-0.27447813749313354,
0.03573733568191528,
0.838823139667511,
0.2913859486579895,
-0.42636018991470337,
0.38841766119003296,
0.026392817497253418,
-0.5281164050102234,
-0.08506125211715698,
0.11995714902877808,
0.19184111058712006,
-0.2607574462890625,
0.3966218829154968,
-0.23300108313560486,
0.021718475967645645,
-0.049145642668008804,
0.5023083686828613,
-0.19876940548419952,
0.010222181677818298,
-0.08150384575128555,
-0.2123834788799286,
-0.13267211616039276,
-0.21986524760723114,
0.000704154372215271,
0.45716676115989685,
-0.30329346656799316,
0.0313698872923851,
0.02645752765238285,
-0.25838226079940796,
0.40943029522895813,
-0.3536217510700226,
0.6024323105812073,
-0.03851448744535446,
0.1886686384677887,
0.12868675589561462,
0.13003385066986084,
0.3836226463317871,
0.5007209777832031,
-0.2303154617547989,
-0.1833072155714035,
0.007825881242752075,
0.10632173717021942,
0.4872782826423645,
0.24226045608520508,
-0.15224304795265198,
-0.03831305727362633,
-0.052032385021448135,
-0.06738133728504181,
-0.34850144386291504,
-0.06870604306459427,
0.2765886187553406,
0.0112873874604702,
-0.45711013674736023,
-0.4127928912639618,
0.22284235060214996,
0.3240777552127838,
-0.11805370450019836,
0.3458714783191681,
-0.03905485197901726,
-0.4746816158294678,
0.37703439593315125,
-0.14907410740852356,
1.0115305185317993,
-0.03027937188744545,
0.2235887348651886,
0.13922521471977234,
-0.22247105836868286,
0.1609475314617157,
0.281836599111557,
0.05865706130862236,
-0.18981033563613892,
-0.25580543279647827,
-0.1155659630894661,
-0.2795868217945099,
0.04436304792761803,
0.25882166624069214,
-0.3928966522216797,
0.3099094033241272,
-0.4455200433731079,
-0.1018282026052475,
-0.16417425870895386,
0.04846116900444031,
-0.04640787094831467,
-0.22206774353981018,
-0.35213735699653625,
0.018545985221862793,
0.10502875596284866,
-0.060944847762584686,
-0.03746248036623001,
-0.020958423614501953,
-0.43718695640563965,
-0.1583186686038971,
-0.17351865768432617,
0.09850002080202103,
-0.1609058678150177,
0.7278360724449158,
-0.34503066539764404,
-0.3661651909351349,
-0.44559258222579956,
0.3316723108291626,
0.48197171092033386,
0.027244344353675842,
0.03982396423816681,
-0.10744038224220276,
-0.006005678325891495,
0.0863998532295227,
-0.028122421354055405,
-0.2376883178949356,
0.19291909039020538,
0.17849011719226837,
-0.09193792939186096,
0.01548769697546959,
0.0067065805196762085,
-0.3319259285926819,
-0.13303649425506592,
0.045170433819293976,
0.00002890918403863907,
-0.2735178470611572,
-0.3578088581562042,
0.1885158121585846,
0.10143215954303741,
-0.11840453743934631,
0.026528246700763702,
0.3572258949279785,
-0.06514833867549896,
0.2823159098625183,
-0.3681318461894989,
-0.3245561718940735,
-0.0924425721168518,
0.5428101420402527,
0.33739033341407776,
-0.07092390954494476,
0.39946499466896057,
-0.006944149732589722,
-0.11548920720815659,
0.011119499802589417,
0.333204984664917,
0.17299221456050873,
0.18512772023677826,
0.4267689287662506,
0.006929710507392883,
-0.007010549306869507,
-0.19567380845546722,
0.35402125120162964,
0.35039442777633667,
0.19561979174613953,
0.03137996047735214,
-0.21862569451332092,
-0.5530780553817749,
0.3396943211555481,
0.1706303209066391,
0.3276749849319458,
0.10496529191732407,
-0.30889618396759033,
-0.06846854090690613,
-0.023460648953914642,
-0.20582501590251923,
0.000022139400243759155,
-0.1870582550764084,
0.0434526689350605,
0.21844448149204254,
0.02877693809568882,
0.08326354622840881,
-0.010145418345928192,
0.09877471625804901,
-0.168989360332489,
0.023357640951871872,
-0.09752017259597778,
0.06285391747951508,
0.17825138568878174,
0.073801189661026,
-0.09040676057338715,
0.005142975598573685,
-0.45934438705444336,
0.014007624238729477,
-0.2294314205646515,
-0.1217438131570816,
0.6715191602706909,
0.051069799810647964,
0.12149594724178314,
0.01588582992553711,
0.2285829335451126,
0.0680389553308487,
0.0878007560968399,
0.04847508296370506,
0.096351258456707,
0.010016322135925293,
0.22225217521190643,
-0.27360403537750244,
-0.1764545887708664,
-0.38794782757759094,
-0.00896960124373436,
-0.12004300951957703,
-0.04710021987557411,
0.2031811773777008,
-0.1601867824792862,
-0.200519397854805,
0.11080402135848999,
0.41104215383529663,
0.3873531222343445,
-0.1979263424873352,
0.19008368253707886,
-0.030458007007837296,
0.08743445575237274,
0.01689082384109497,
-0.2827233374118805,
-0.09832033514976501,
-0.1849253624677658,
-0.2757777273654938,
0.12547799944877625,
0.007580935955047607,
0.035775795578956604,
-0.39072972536087036,
0.012760952115058899,
0.6847841739654541,
-0.13351738452911377,
0.3405168652534485,
0.06077440083026886,
0.11563712358474731,
-0.010597016662359238,
-0.02507150173187256,
0.16195058822631836,
0.4223307967185974,
-0.00918359961360693,
-0.1420733779668808,
0.09739282727241516,
0.37989434599876404,
-0.13793696463108063,
0.22997373342514038,
-0.24048589169979095,
0.04088230058550835,
0.1885398030281067,
-0.1650809496641159,
-0.0241938978433609,
0.07714684307575226,
0.1839594691991806,
-0.516055166721344,
-0.24802973866462708,
0.0020998120307922363,
0.4248029589653015,
-0.13857784867286682,
-0.13435515761375427,
0.09076371788978577,
-0.22465448081493378,
0.0027838945388793945,
-0.11045502871274948,
0.12897637486457825,
-0.3996534049510956,
0.17211134731769562,
-0.08197204023599625,
-0.009601067751646042,
-0.08845722675323486,
0.23555827140808105,
0.3815256655216217,
0.07217393815517426,
-0.2652970254421234,
-0.05073840916156769,
0.25516223907470703,
-0.06945261359214783,
0.19162870943546295,
0.22599491477012634,
0.5554203987121582,
0.5561280846595764,
0.02555079758167267,
0.14063826203346252,
0.0032013915479183197,
-0.2122265100479126,
-0.005352228879928589,
-0.002525702118873596,
-0.2935774028301239,
-0.3012852668762207,
0.40948572754859924,
0.17507824301719666,
0.002435874193906784,
0.06747670471668243,
0.2661319673061371,
0.5477370619773865,
-0.22978731989860535,
0.1564590036869049,
-0.1596250832080841,
-0.20058241486549377,
0.09172510355710983,
0.002465754747390747,
-0.3389190435409546,
-0.25370004773139954,
0.3616601526737213,
-0.018702100962400436,
0.13981761038303375,
0.2566126883029938,
0.05288763344287872,
0.05473405122756958,
0.1891520917415619,
0.2871239185333252,
-0.01307300291955471,
-0.5009992122650146,
-0.035670749843120575,
-0.41851508617401123,
-0.1472506821155548,
0.3142975866794586,
0.19106394052505493,
-0.1895873248577118,
0.37732642889022827,
0.14168506860733032,
-0.041085824370384216,
0.11771710216999054,
0.12736068665981293,
-0.17534658312797546,
0.02344796247780323,
-0.3930683732032776,
-0.18639180064201355,
0.21769531071186066,
-0.07624788582324982,
-0.06086378172039986,
-0.23663440346717834,
0.22871723771095276,
0.17134727537631989,
0.019656486809253693,
0.011934205889701843,
0.08364465832710266,
0.15882828831672668,
0.4142066240310669,
0.2572517693042755,
0.16910170018672943,
0.3638538420200348,
-0.10031716525554657,
0.004795737564563751,
0.043884873390197754,
-0.35052290558815,
-0.15830431878566742,
0.1300310492515564,
-0.1268359124660492,
0.500847339630127,
-0.5447794198989868,
0.08132706582546234,
-0.12667584419250488,
0.08496921509504318,
0.0344080775976181,
-0.4037497341632843,
-0.17586572468280792,
0.05506657063961029,
-0.013366371393203735,
0.018315576016902924,
0.13821318745613098,
0.23367956280708313,
0.025698095560073853,
0.6657636761665344,
0.06085486710071564,
-0.4091665744781494,
0.4009993374347687,
0.13773566484451294,
-0.15149936079978943,
0.04924605041742325,
-0.07796601951122284,
0.18269968032836914,
0.3516892194747925,
-0.6099096536636353,
-0.21573317050933838,
0.4358258545398712,
-0.21886442601680756,
-0.2990226447582245,
0.09337378293275833,
-0.09478104114532471,
-0.01068715751171112,
0.005380101501941681,
0.413613885641098,
-0.1291240155696869,
-0.39088767766952515,
0.0667111724615097,
-0.20827817916870117
] |
https://github.com/huggingface/datasets/issues/2038 | Hi ! Thanks for reporting.
To update the dataset_infos.json you can run:
```
datasets-cli test ./datasets/doc2dial --all_configs --save_infos --ignore_verifications
``` | outdated dataset_infos.json might fail verifications | The [doc2dial/dataset_infos.json](https://github.com/huggingface/datasets/blob/master/datasets/doc2dial/dataset_infos.json) is outdated. It would fail data_loader when verifying download checksum etc..
Could you please update this file or point me how to update this file?
Thank you. | 20 | outdated dataset_infos.json might fail verifications
The [doc2dial/dataset_infos.json](https://github.com/huggingface/datasets/blob/master/datasets/doc2dial/dataset_infos.json) is outdated. It would fail data_loader when verifying download checksum etc..
Could you please update this file or point me how to update this file?
Thank you.
Hi ! Thanks for reporting.
To update the dataset_infos.json you can run:
```
datasets-cli test ./datasets/doc2dial --all_configs --save_infos --ignore_verifications
``` | [
-0.12009239941835403,
0.1984143853187561,
-0.1118750348687172,
0.185001939535141,
0.11309680342674255,
0.21630403399467468,
0.1035633385181427,
0.4946835935115814,
0.20697259902954102,
-0.0703192949295044,
0.07293274253606796,
0.047220371663570404,
0.19815467298030853,
0.24174323678016663,
-0.0689253956079483,
-0.09112381935119629,
-0.02677096053957939,
0.2664071321487427,
0.06811559945344925,
0.08858613669872284,
-0.026623114943504333,
0.14072813093662262,
-0.19235752522945404,
-0.12822824716567993,
-0.21905967593193054,
-0.040658239275217056,
0.038716256618499756,
0.16559270024299622,
-0.5414221882820129,
-0.49925342202186584,
0.43046218156814575,
0.4793902635574341,
0.08197149634361267,
0.3855611979961395,
-0.00010813285189215094,
-0.0376770943403244,
0.5466259121894836,
-0.029058512300252914,
-0.4618392288684845,
-0.051954105496406555,
-0.3342086672782898,
-0.18551364541053772,
-0.14114674925804138,
-0.08354440331459045,
-0.015258416533470154,
-0.32550740242004395,
-0.12399937957525253,
0.07895871996879578,
0.21358028054237366,
0.1726308912038803,
0.24692127108573914,
0.4211302697658539,
0.5330947637557983,
-0.1848713904619217,
0.10944409668445587,
-0.04246234521269798,
0.18554259836673737,
0.44351738691329956,
0.32520750164985657,
0.03166346251964569,
0.2927802801132202,
0.34820666909217834,
-0.06688183546066284,
-0.10156340897083282,
0.19297415018081665,
-0.16652965545654297,
0.13151176273822784,
-0.10643698275089264,
0.16574625670909882,
0.17772220075130463,
0.6516274809837341,
-0.3433515727519989,
-0.37374699115753174,
-0.08353079855442047,
-0.1550709307193756,
-0.1994558572769165,
0.3918646574020386,
-0.2893849313259125,
0.2753103971481323,
0.21956217288970947,
-0.19723579287528992,
-0.35016709566116333,
-0.016772128641605377,
0.05527997389435768,
-0.08430241048336029,
-0.10059823095798492,
-0.18427594006061554,
-0.14552417397499084,
0.14575007557868958,
-0.1432100534439087,
-0.13179001212120056,
-0.004624165594577789,
-0.32077592611312866,
0.05975135788321495,
-0.07721475511789322,
-0.29979145526885986,
-0.20403410494327545,
0.10481728613376617,
0.37505072355270386,
0.2149081826210022,
0.09419314563274384,
0.049750786274671555,
-0.34128066897392273,
0.17152324318885803,
0.14951443672180176,
0.11823831498622894,
0.4304281771183014,
-0.020812220871448517,
0.37183648347854614,
0.6826691031455994,
0.11445967853069305,
-0.047987524420022964,
-0.004207827150821686,
-0.2481480836868286,
0.024340592324733734,
0.023825593292713165,
0.33935385942459106,
-0.4905768632888794,
-0.06515315920114517,
0.18656189739704132,
-0.01599353551864624,
-0.055738192051649094,
0.23562870919704437,
0.31876423954963684,
-0.36129331588745117,
0.16257305443286896,
0.16628046333789825,
-0.0296566653996706,
0.0446116104722023,
-0.312276154756546,
-0.07639192044734955,
0.02612638846039772,
-0.028405383229255676,
0.21530798077583313,
0.3751753568649292,
-0.3757908344268799,
0.47393086552619934,
0.03533690422773361,
-0.16021928191184998,
0.04394236207008362,
-0.07445051521062851,
-0.12079804390668869,
-0.2017625868320465,
0.23919464647769928,
-0.025451354682445526,
0.050477273762226105,
-0.09739428013563156,
-0.012774355709552765,
0.027316316962242126,
-0.1816864013671875,
-0.30455678701400757,
-0.3762090802192688,
-0.24055001139640808,
0.20195220410823822,
-0.023463107645511627,
-0.11182070523500443,
-0.2365114837884903,
-0.10285545140504837,
0.1793437898159027,
-0.499789297580719,
-0.045549601316452026,
-0.07300980389118195,
-0.1554112732410431,
-0.02203862927854061,
0.1926501989364624,
0.3321073055267334,
-0.07092096656560898,
0.09006835520267487,
0.06673458963632584,
-0.3115292489528656,
-0.2241198569536209,
0.20146356523036957,
-0.08829858154058456,
0.19404813647270203,
-0.2010299563407898,
0.06037355959415436,
-0.040451690554618835,
-0.6165741682052612,
-0.38593071699142456,
0.10603678226470947,
0.22307172417640686,
-0.09324368834495544,
-0.13470357656478882,
-0.23676516115665436,
0.23664145171642303,
-0.29522669315338135,
-0.10736187547445297,
0.04900002107024193,
0.10508795827627182,
-0.023957375437021255,
-0.32672441005706787,
-0.22936782240867615,
-0.03331165760755539,
0.10303663462400436,
-0.042991891503334045,
0.019500913098454475,
0.034442238509655,
0.4565275311470032,
0.14231328666210175,
-0.04094553366303444,
0.04695930331945419,
0.2812904715538025,
0.4166461229324341,
0.03359450027346611,
-0.04476703703403473,
-0.04089963808655739,
-0.5700745582580566,
0.20993572473526,
0.14074350893497467,
-0.12542235851287842,
-0.12508149445056915,
-0.16385313868522644,
-0.26093244552612305,
-0.05978754162788391,
-0.06570418179035187,
-0.017874866724014282,
0.1555882692337036,
0.15927986800670624,
0.33218133449554443,
0.10943710803985596,
-0.11914405226707458,
0.21301212906837463,
-0.5373797416687012,
0.17827869951725006,
-0.26224783062934875,
0.17793327569961548,
-0.03045770339667797,
0.12532062828540802,
0.32392919063568115,
-0.09931061416864395,
0.08796605467796326,
-0.12908858060836792,
-0.08314386755228043,
0.5027294754981995,
0.009387161582708359,
0.13579457998275757,
0.24719840288162231,
0.37285348773002625,
0.05439744144678116,
-0.08521736413240433,
0.08083643764257431,
-0.16526731848716736,
-0.04196552559733391,
0.034308284521102905,
-0.2673318386077881,
0.03268132731318474,
-0.08498723059892654,
-0.06738464534282684,
0.22488951683044434,
-0.07411912828683853,
0.3140821158885956,
-0.029768966138362885,
-0.03888334333896637,
-0.2751837372779846,
-0.17771199345588684,
-0.07517330348491669,
0.3607102930545807,
-0.143013596534729,
-0.0626579001545906,
0.1559808999300003,
0.4095158874988556,
-0.020628750324249268,
-0.09067512303590775,
0.19840559363365173,
0.08152562379837036,
-0.2291126698255539,
-0.0816604346036911,
0.2641121745109558,
0.23457449674606323,
0.22767962515354156,
-0.014012405648827553,
0.18948599696159363,
0.07117630541324615,
-0.05619229003787041,
0.16738656163215637,
-0.16918523609638214,
-0.009760115295648575,
0.40362265706062317,
0.12568363547325134,
0.010898564010858536,
-0.26503658294677734,
0.04543418437242508,
0.2030119001865387,
0.5164207816123962,
-0.30693984031677246,
-0.07801961898803711,
-0.2033132016658783,
-0.022364847362041473,
-0.002779673784971237,
-0.3437177836894989,
-0.3578513562679291,
-0.13497550785541534,
0.06799941509962082,
0.47268861532211304,
0.11569260060787201,
0.12486325949430466,
-0.053858354687690735,
0.22245365381240845,
0.09254054725170135,
-0.1651446670293808,
-0.1871400773525238,
0.06587543338537216,
-0.0979110598564148,
0.05567745119333267,
0.39260151982307434,
-0.06356755644083023,
0.35315489768981934,
-0.5244256854057312,
-0.17449945211410522,
-0.546266496181488,
-0.48361414670944214,
0.21966412663459778,
-0.20578104257583618,
0.25776103138923645,
0.27610206604003906,
0.31727948784828186,
0.126156285405159,
-0.00008195638656616211,
0.15535856783390045,
-0.27605926990509033,
-0.35460346937179565,
-0.2557946443557739,
-0.019166424870491028,
-0.1092163473367691,
-0.13519206643104553,
-0.3698328137397766,
0.10125367343425751,
-0.21008658409118652,
0.1020706444978714,
0.0008242577314376831,
0.026724254712462425,
0.2857048213481903,
0.08145145326852798,
0.18618570268154144,
-0.1705826371908188,
0.2064652293920517,
-0.29835641384124756,
-0.7436745166778564,
0.09506988525390625,
-0.19936169683933258,
-0.22882048785686493,
0.01119685173034668,
0.25187188386917114,
0.2966252565383911,
-0.06406428664922714,
-0.45125317573547363,
-0.3920632600784302,
-0.09038771688938141,
0.159372478723526,
0.016509583219885826,
-0.15543341636657715,
0.3954571783542633,
-0.09977660328149796,
-0.12252706289291382,
-0.19275134801864624,
-0.35375332832336426,
0.11857587099075317,
-0.07440805435180664,
0.35982516407966614,
-0.035328835248947144,
0.27839288115501404,
-0.006932541728019714,
0.5527369379997253,
0.06371548771858215,
-0.3731842637062073,
0.2554653286933899,
0.03617211431264877,
0.5047954320907593,
-0.12037789821624756,
-0.1876145303249359,
-0.08813343942165375,
-0.0018534287810325623,
0.13787969946861267,
0.16375291347503662,
0.08055271208286285,
0.1937585175037384,
-0.20146533846855164,
-0.36414796113967896,
-0.4616737961769104,
-0.18763917684555054,
-0.17250128090381622,
0.22243967652320862,
0.3064265847206116,
-0.03673447668552399,
0.03822354972362518,
-0.10443012416362762,
-0.03856465592980385,
0.23886966705322266,
0.6212206482887268,
0.05791016295552254,
0.11479782313108444,
-0.2876327633857727,
0.20324069261550903,
-0.11228825151920319,
0.40981388092041016,
-0.0514042004942894,
0.28838443756103516,
-0.058875083923339844,
0.08354400843381882,
-0.08757678419351578,
-0.290847510099411,
0.32744476199150085,
-0.1836216151714325,
0.32184332609176636,
0.04583308845758438,
-0.10384409129619598,
0.02351164072751999,
-0.1497754156589508,
-0.12958408892154694,
0.19560348987579346,
0.2656334638595581,
0.4955188035964966,
-0.4432010054588318,
-0.35981571674346924,
0.32118821144104004,
0.06737512350082397,
-0.0559842549264431,
-0.10246206820011139,
-0.1567424237728119,
-0.19226041436195374,
-0.27636101841926575,
-0.02301587164402008,
-0.22170390188694,
0.037686899304389954,
-0.15698844194412231,
0.04279634356498718,
0.1348341852426529,
-0.016849137842655182,
0.0792321264743805,
0.269902765750885,
0.2004430741071701,
0.15926501154899597,
0.2687503695487976,
0.21280378103256226,
0.27165940403938293,
0.6806362271308899,
0.3026635944843292,
-0.0993548035621643,
-0.12452629208564758,
-0.2011505514383316,
-0.08466331660747528,
0.06734037399291992,
0.16497597098350525,
-0.04754951223731041,
0.159661203622818,
0.33701005578041077,
-0.14893445372581482,
-0.016988489776849747,
0.08541986346244812,
0.4840286672115326,
0.021071143448352814,
-0.29482877254486084,
-0.275492399930954,
0.24348999559879303,
0.18088847398757935,
-0.06367294490337372,
0.12747009098529816,
0.1030133068561554,
-0.1275835931301117,
-0.23486436903476715,
0.15910841524600983,
0.7583661079406738,
0.08679656684398651,
-0.3215256631374359,
0.1678163707256317,
-0.20785149931907654,
0.3344700336456299,
-0.30768823623657227,
-0.09561596810817719,
-0.36123430728912354,
-0.06292467564344406,
0.01821593940258026,
0.05182480067014694,
0.2038843035697937,
-0.27137261629104614,
-0.4220634996891022,
0.21606002748012543,
-0.2913266718387604,
0.049042776226997375,
-0.12813007831573486,
0.4355083107948303,
-0.15188658237457275,
-0.05339817702770233,
-0.4187329411506653,
0.2262398898601532,
0.03778590261936188,
0.11341024935245514,
-0.26148635149002075,
-0.15081778168678284,
0.08850351721048355,
-0.4387352168560028,
-0.2300231009721756,
-0.008429720997810364,
0.08563557267189026,
-0.07680150121450424,
0.18556074798107147,
0.26838627457618713,
0.11971794813871384,
0.03166897967457771,
0.40120989084243774,
0.2393576204776764,
-0.3454665541648865,
0.08142415434122086,
-0.31299835443496704,
-0.17959123849868774,
-0.008828096091747284,
-0.07925683259963989,
0.35970592498779297,
-0.26417189836502075,
-0.3239216208457947,
-0.018862009048461914,
-0.09214004874229431,
-0.32789498567581177,
-0.01800312101840973,
-0.24675723910331726,
-0.2671566903591156,
-0.2533731460571289,
-0.04362659156322479,
0.06423502415418625,
-0.16753646731376648,
-0.2751356363296509,
0.21324029564857483,
-0.025732051581144333,
-0.008235391229391098,
0.010276326909661293,
0.21158361434936523,
-0.18408232927322388,
-0.06409864127635956,
0.5821514129638672,
-0.2382151186466217,
0.0018265321850776672,
0.4449838697910309,
0.04542941600084305,
-0.08735824376344681,
-0.3670883774757385,
-0.2623547911643982,
-0.02044457010924816,
-0.22357165813446045,
0.07129129767417908,
0.13810306787490845,
0.22343571484088898,
0.013209648430347443,
0.2815968990325928,
0.23633819818496704,
-0.0803339034318924,
0.20983244478702545,
-0.5782486200332642,
-0.3554054796695709,
0.24155031144618988,
-0.20800741016864777,
0.13504981994628906,
-0.14097672700881958,
0.14012038707733154,
-0.03753455728292465,
-0.023221924901008606,
-0.38877642154693604,
0.25206971168518066,
-0.1794510781764984,
0.1692463755607605,
0.3353225290775299,
0.058329712599515915,
0.2780822813510895,
-0.17337757349014282,
0.09139111638069153,
-0.101633720099926,
-0.36892804503440857,
-0.19692987203598022,
-0.17188185453414917,
0.12637245655059814,
0.035987719893455505,
0.061791956424713135,
0.13934800028800964,
-0.04022311046719551,
-0.28440040349960327,
0.047509029507637024,
-0.04738393798470497,
-0.04632646217942238,
0.13113227486610413,
0.1752663403749466,
0.019459784030914307,
0.26572540402412415,
0.05249452590942383,
-0.003203350119292736,
0.19485335052013397,
0.12502421438694,
-0.0769355446100235,
0.1401856243610382,
-0.29705893993377686,
-0.13727110624313354,
0.17316487431526184,
0.20293885469436646,
0.17746321856975555,
-0.16879504919052124,
0.19193142652511597,
-0.21132609248161316,
0.1138484925031662,
0.21488609910011292,
0.3608187437057495,
0.5215640068054199,
-0.17094786465168,
0.028967775404453278,
0.1324632316827774,
0.26877284049987793,
-0.16445624828338623,
0.036651208996772766,
0.2581135332584381,
-0.0537407211959362,
-0.1529434770345688,
0.0027490779757499695,
0.34825754165649414,
-0.21349823474884033,
0.20030352473258972,
0.27797645330429077,
0.32676202058792114,
-0.18415474891662598,
0.053250983357429504,
0.22372755408287048,
-0.27426058053970337,
-0.002942115068435669,
0.2484382539987564,
0.019426483660936356,
0.08840800821781158,
0.21865445375442505,
-0.15884146094322205,
0.08721262961626053,
-0.11641128361225128,
0.3795852065086365,
-0.058884065598249435,
-0.2583576440811157,
0.20924615859985352,
0.48760777711868286,
0.2635888159275055,
-0.07305340468883514,
0.0753365084528923,
0.47487759590148926,
0.082215815782547,
-0.04851388558745384,
-0.5303443670272827,
0.15423476696014404,
-0.11897224187850952,
-0.13072235882282257,
-0.288433313369751,
-0.34375226497650146,
0.012443110346794128,
0.009209401905536652,
-0.04305924475193024,
0.025643717497587204,
0.06882233172655106,
-0.0043088532984256744,
-0.3971516191959381,
-0.5800521969795227,
-0.1741504967212677,
0.2551026940345764,
0.10905956476926804,
-0.17220187187194824,
0.27958545088768005,
0.25704601407051086,
-0.1520543396472931,
0.3070887625217438,
0.7304962277412415,
0.42031750082969666,
0.2456788867712021,
0.23989278078079224,
-0.10113033652305603,
-0.34050968289375305,
0.0049238428473472595,
0.058803245425224304,
0.41223272681236267,
0.023098919540643692,
-0.3534126579761505,
0.2803240120410919,
0.1893058568239212,
-0.1752358227968216,
0.07892605662345886,
-0.21209479868412018,
0.05332140251994133,
-0.11633221060037613,
-0.04876350611448288,
0.1541927605867386,
0.14082297682762146,
-0.3030186593532562,
0.1664288341999054,
-0.3497421443462372,
-0.05815363675355911,
0.21891744434833527,
0.2301872819662094,
0.18889524042606354,
0.0403144545853138,
0.11504030227661133,
-0.035220637917518616,
0.5214560031890869,
0.3677414357662201,
-0.14610496163368225,
0.0032993368804454803,
-0.2817925810813904,
-0.6077659726142883,
-0.01287081092596054,
0.030386291444301605,
0.11562801897525787,
-0.07653126865625381,
-0.025792788714170456,
0.10600318759679794,
0.15668408572673798,
0.31022316217422485,
-0.22418831288814545,
-0.11529409885406494,
-0.3192282021045685,
-0.30176159739494324,
0.2308925986289978,
-0.10663346946239471,
-0.06299931555986404,
0.12454087287187576,
-0.17166957259178162,
0.09544027596712112,
-0.039895813912153244,
0.02470169961452484,
-0.0732378363609314,
0.327650785446167,
-0.26396530866622925,
0.0717819333076477,
0.5029469728469849,
0.2613283097743988,
0.47528016567230225,
-0.22933386266231537,
-0.21742428839206696,
-0.41616198420524597,
-0.06646359711885452,
-0.2767217457294464,
0.4328131377696991,
0.13065093755722046,
0.12947583198547363,
-0.027789518237113953,
-0.1076737493276596,
-0.24237698316574097,
0.5078529119491577,
0.03261156380176544,
-0.22686809301376343,
-0.41832906007766724,
-0.055471021682024,
0.06937054544687271,
-0.06511407345533371,
-0.06515543162822723,
0.028128977864980698,
0.002585621550679207,
0.06134694069623947,
-0.5129871368408203,
-0.08759243041276932,
0.5630138516426086,
-0.05815674737095833,
0.010821379721164703,
-0.07101805508136749,
0.27901601791381836,
0.1725580394268036,
-0.3536722660064697,
-0.6980355381965637,
0.2993614673614502,
0.27107277512550354,
0.016405176371335983,
-0.2873922288417816,
0.3345273733139038,
-0.08332328498363495,
0.2824680209159851,
-0.09709244221448898,
0.21477094292640686,
0.03052733838558197,
-0.27567073702812195,
-0.10908909887075424,
0.029915332794189453
] |
https://github.com/huggingface/datasets/issues/2035 | Dear @lhoestq for wikipedia dataset I also get the same error, I greatly appreciate if you could have a look into this dataset as well. Below please find the command to reproduce the error:
```
dataset = load_dataset("wikipedia", "20200501.bg")
print(dataset)
```
Your library is my only chance to be able training the models at scale and I am grateful for your help.
| wiki40b/wikipedia for almost all languages cannot be downloaded | Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 62 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Dear @lhoestq for wikipedia dataset I also get the same error, I greatly appreciate if you could have a look into this dataset as well. Below please find the command to reproduce the error:
```
dataset = load_dataset("wikipedia", "20200501.bg")
print(dataset)
```
Your library is my only chance to be able training the models at scale and I am grateful for your help.
| [
-0.25449812412261963,
-0.0779205784201622,
-0.153758242726326,
0.430866539478302,
0.39970260858535767,
0.35046160221099854,
0.13685046136379242,
0.5331583619117737,
0.1893271803855896,
0.023584403097629547,
-0.17730340361595154,
-0.09421733766794205,
0.094403937458992,
0.011183857917785645,
-0.029704701155424118,
-0.45917361974716187,
-0.06729051470756531,
0.029537351801991463,
-0.13527114689350128,
-0.11689350754022598,
-0.25196272134780884,
0.125614732503891,
-0.07917484641075134,
-0.04902883991599083,
-0.03874561935663223,
-0.18283991515636444,
-0.09583546221256256,
-0.20730571448802948,
-0.35074666142463684,
-0.24086444079875946,
0.35457825660705566,
0.019257348030805588,
0.310111939907074,
0.15299707651138306,
-0.00011143678420921788,
-0.05096481740474701,
0.31311672925949097,
-0.23579446971416473,
-0.293612003326416,
-0.28885769844055176,
-0.0720900148153305,
-0.32618603110313416,
-0.09043900668621063,
-0.4200316071510315,
0.12744629383087158,
0.0466824546456337,
0.08067118376493454,
-0.13180093467235565,
0.07575765252113342,
0.2992253601551056,
0.2468712329864502,
-0.1426033079624176,
0.31343454122543335,
-0.1457379013299942,
0.36519646644592285,
-0.3777083158493042,
-0.02803388610482216,
0.339586079120636,
0.2187206745147705,
0.0713428407907486,
0.21547940373420715,
0.22204311192035675,
-0.234140545129776,
0.013499349355697632,
0.048224832862615585,
-0.2912239730358124,
0.22220566868782043,
-0.6297016143798828,
0.5206418633460999,
0.5344284176826477,
0.8290327787399292,
-0.12835147976875305,
-0.08746697008609772,
0.07239207625389099,
-0.02605946734547615,
-0.03137427195906639,
-0.05574009567499161,
0.4819798767566681,
-0.1893264353275299,
0.09759804606437683,
0.12616509199142456,
-0.12543053925037384,
-0.15671896934509277,
0.42284679412841797,
-0.12413661181926727,
0.4435884654521942,
-0.05271989107131958,
0.21125967800617218,
-0.0216666366904974,
-0.10270200669765472,
-0.2636418044567108,
-0.06965938210487366,
-0.0961601510643959,
0.2933218479156494,
-0.27939820289611816,
0.019635699689388275,
-0.16150203347206116,
0.0556471087038517,
0.35113540291786194,
-0.15038344264030457,
-0.23462122678756714,
-0.04507812112569809,
0.09601074457168579,
0.1575748771429062,
0.180150106549263,
0.16378331184387207,
0.06204827502369881,
-0.2000068575143814,
0.2782810628414154,
0.3079041540622711,
-0.08421212434768677,
-0.0761709213256836,
-0.210043266415596,
-0.22305625677108765,
-0.2947568893432617,
0.09442958980798721,
0.08752942085266113,
-0.2031715214252472,
-0.17794671654701233,
0.00711306557059288,
-0.1443609893321991,
-0.019439000636339188,
-0.2023947834968567,
0.362821102142334,
-0.15014274418354034,
0.43123841285705566,
0.17790134251117706,
0.32882198691368103,
-0.10357258468866348,
-0.2613101601600647,
-0.01735217310488224,
0.30654844641685486,
-0.13931973278522491,
-0.10366036742925644,
0.21878284215927124,
-0.10991595685482025,
0.2648518681526184,
-0.08937225490808487,
-0.1031380146741867,
-0.17641204595565796,
-0.15369100868701935,
-0.36956772208213806,
-0.17910343408584595,
0.23040924966335297,
0.1619769036769867,
0.2839276194572449,
0.14761419594287872,
-0.2447476089000702,
-0.23058059811592102,
0.12074530869722366,
-0.35961470007896423,
-0.16815495491027832,
-0.2051546275615692,
0.1944684386253357,
0.06109839677810669,
-0.05465060845017433,
-0.3160070478916168,
0.28766393661499023,
0.30306413769721985,
-0.14239893853664398,
0.11807282269001007,
-0.007545807398855686,
-0.023254334926605225,
-0.22518980503082275,
0.1790114790201187,
0.49080026149749756,
-0.3999597728252411,
0.09189746528863907,
-0.023850753903388977,
-0.03371184319257736,
0.18978220224380493,
0.184297114610672,
-0.17795269191265106,
0.25654149055480957,
-0.09788393974304199,
0.03816020488739014,
0.21013107895851135,
-0.3214418888092041,
-0.5776354074478149,
0.18605387210845947,
0.11340989172458649,
-0.16700321435928345,
0.09947971999645233,
0.016000602394342422,
0.2750304341316223,
-0.049387622624635696,
0.05245431512594223,
0.3956748843193054,
0.13683798909187317,
-0.10564500838518143,
-0.32745057344436646,
-0.507823646068573,
0.3264818489551544,
0.16331778466701508,
0.45471444725990295,
-0.13226976990699768,
0.2759854197502136,
0.2917214632034302,
0.31917402148246765,
-0.19154787063598633,
0.12467893958091736,
0.23336051404476166,
-0.00894842203706503,
-0.04457569867372513,
-0.0025623179972171783,
-0.3310273587703705,
-0.3097582459449768,
0.1477600336074829,
0.10291290283203125,
0.1654646396636963,
-0.16095547378063202,
0.029683299362659454,
-0.3161894679069519,
-0.08880770206451416,
-0.19531162083148956,
0.10326889902353287,
0.19956368207931519,
-0.10527677834033966,
0.11959313601255417,
0.4854588508605957,
0.12651661038398743,
-0.09945908188819885,
-0.415690541267395,
-0.0948527455329895,
-0.1789347529411316,
0.0923319086432457,
-0.21742838621139526,
0.2044922113418579,
0.033680886030197144,
0.025808796286582947,
0.17968419194221497,
0.07305268943309784,
-0.16072377562522888,
-0.011061266995966434,
-0.07845205068588257,
-0.1035444438457489,
0.13546280562877655,
0.11696350574493408,
0.13312822580337524,
-0.4173751175403595,
0.19203008711338043,
0.10847973823547363,
0.3297465443611145,
-0.1357724666595459,
0.11781607568264008,
0.12223686277866364,
0.03997375816106796,
0.3655339777469635,
0.12343083322048187,
0.14983153343200684,
0.45559966564178467,
0.030526138842105865,
0.12635451555252075,
-0.004974894225597382,
0.32711929082870483,
0.15566036105155945,
0.012748755514621735,
-0.13295944035053253,
-0.029277727007865906,
-0.1135144904255867,
0.3166726231575012,
-0.08453378081321716,
0.2671486735343933,
0.29275962710380554,
-0.07651902735233307,
-0.0048598796129226685,
-0.0978270098567009,
0.15339860320091248,
0.052207764238119125,
0.06990513205528259,
0.10658888518810272,
-0.0998440682888031,
0.3596489727497101,
-0.1293928474187851,
0.2643095552921295,
0.17554201185703278,
0.1863330453634262,
0.2091357707977295,
0.13508044183254242,
-0.011175701394677162,
-0.18828275799751282,
-0.12967927753925323,
0.06999409198760986,
0.3717179000377655,
0.06918367743492126,
0.16594558954238892,
-0.04843458905816078,
-0.14185985922813416,
0.08419091999530792,
-0.052391890436410904,
-0.2509428560733795,
-0.21631720662117004,
-0.12563814222812653,
-0.08572851866483688,
0.09158347547054291,
-0.0001047961413860321,
-0.32666683197021484,
-0.07210220396518707,
0.06216610223054886,
-0.3203505277633667,
-0.16056837141513824,
-0.29812294244766235,
-0.3684498071670532,
0.07678737491369247,
0.3871298134326935,
0.1112900823354721,
0.2952096462249756,
-0.33262914419174194,
-0.19187892973423004,
-0.08994603902101517,
-0.26811110973358154,
-0.01431380957365036,
-0.15697050094604492,
0.2413950264453888,
-0.024117033928632736,
0.7152197957038879,
-0.1799960434436798,
-0.25142139196395874,
0.1846487671136856,
-0.0070200636982917786,
0.0658746138215065,
0.24977125227451324,
-0.15347883105278015,
-0.04292402043938637,
0.08453558385372162,
-0.4856534004211426,
-0.5155767202377319,
-0.26965653896331787,
0.012519185431301594,
0.04851792752742767,
0.08780613541603088,
0.16864126920700073,
0.19248437881469727,
0.06802666187286377,
0.12118801474571228,
0.18090671300888062,
-0.1900431215763092,
-0.15186944603919983,
0.44968941807746887,
-0.027413472533226013,
-0.42996251583099365,
0.18818658590316772,
0.010994024574756622,
0.3149319291114807,
0.00792727991938591,
-0.6572358012199402,
0.14411258697509766,
-0.2763589918613434,
0.24994319677352905,
-0.021993370726704597,
0.18347695469856262,
0.11434407532215118,
-0.21369734406471252,
0.04797235131263733,
0.04499554634094238,
0.10591001808643341,
-0.040621060878038406,
-0.20952510833740234,
0.25562214851379395,
0.02994575724005699,
0.29618555307388306,
0.16442078351974487,
0.6888410449028015,
0.054855674505233765,
0.16584089398384094,
0.43678173422813416,
0.23858246207237244,
0.23103128373622894,
-0.2314288318157196,
-0.36457139253616333,
0.06057438626885414,
-0.239491805434227,
-0.031003311276435852,
0.26701220870018005,
-0.16232000291347504,
-0.467417448759079,
-0.34771281480789185,
-0.24268457293510437,
-0.3674672245979309,
-0.2107711136341095,
0.15399791300296783,
-0.050181735306978226,
0.08294051885604858,
0.05759638547897339,
0.12039846926927567,
0.021573416888713837,
-0.2823500633239746,
0.21378952264785767,
0.5317094326019287,
-0.2486017346382141,
0.1685897409915924,
-0.27826690673828125,
-0.34212252497673035,
-0.41263440251350403,
0.2524552345275879,
0.07770693302154541,
0.4147610068321228,
-0.09380225092172623,
0.34991905093193054,
0.20117980241775513,
-0.08926902711391449,
0.2906230390071869,
-0.17024439573287964,
0.1230507418513298,
0.19724704325199127,
0.10499298572540283,
-0.21521732211112976,
-0.06244009733200073,
-0.29433301091194153,
-0.01668793335556984,
0.3054165840148926,
-0.04445553570985794,
-0.670965850353241,
0.084328792989254,
-0.04258590191602707,
0.5003300905227661,
-0.057177040725946426,
-0.017350096255540848,
-0.1618567407131195,
-0.5653647184371948,
-0.4854041635990143,
-0.027687352150678635,
0.18957558274269104,
0.4046095013618469,
-0.19720911979675293,
0.26289910078048706,
-0.10207857936620712,
0.22056260704994202,
0.02131662145256996,
0.007735509425401688,
0.2132565975189209,
0.23278602957725525,
0.09743291884660721,
-0.19678816199302673,
-0.1378471553325653,
0.15032653510570526,
0.3620433211326599,
-0.06353233754634857,
-0.2343127429485321,
-0.12124785780906677,
-0.04300360381603241,
0.04348320886492729,
0.14154620468616486,
-0.10129082202911377,
0.04770688712596893,
0.14866326749324799,
-0.13793520629405975,
0.16582091152668,
-0.012841582298278809,
0.25194674730300903,
-0.1063375174999237,
-0.4962347149848938,
-0.5676656365394592,
0.6620469689369202,
0.023382067680358887,
0.07014213502407074,
0.2541710436344147,
0.17540490627288818,
-0.1958610713481903,
0.3753732442855835,
0.1058032363653183,
1.1372193098068237,
-0.22813421487808228,
0.11042051017284393,
-0.10398470610380173,
0.109466552734375,
0.3614169955253601,
-0.35784000158309937,
0.20840711891651154,
-0.32264140248298645,
-0.10890693962574005,
-0.019519753754138947,
0.07367459684610367,
-0.04613875225186348,
0.0998932272195816,
-0.30722734332084656,
0.2564418911933899,
-0.366232693195343,
-0.08695429563522339,
0.10564948618412018,
0.23298583924770355,
-0.4058891236782074,
-0.06803684681653976,
-0.32137981057167053,
0.1196286603808403,
-0.2146601676940918,
0.25469300150871277,
-0.21100109815597534,
-0.12547850608825684,
-0.06142457202076912,
-0.26727020740509033,
-0.5050505995750427,
0.07064363360404968,
-0.28835028409957886,
0.3298688232898712,
-0.4893513321876526,
-0.18977470695972443,
0.3386206328868866,
0.44487127661705017,
0.041479721665382385,
0.40315449237823486,
-0.2879835069179535,
0.11165237426757812,
-0.2638612985610962,
-0.4236198961734772,
0.09449133276939392,
0.01120731607079506,
0.08713384717702866,
-0.18162883818149567,
-0.3709902763366699,
0.16697311401367188,
-0.05757248029112816,
0.052849166095256805,
-0.09598760306835175,
0.10437734425067902,
0.20165425539016724,
-0.04589737951755524,
-0.35655516386032104,
-0.0222831629216671,
-0.09438593685626984,
-0.08943305164575577,
0.12416663765907288,
0.08219679445028305,
-0.11190402507781982,
0.14091335237026215,
0.18529532849788666,
-0.3349807858467102,
0.02179165929555893,
0.34910598397254944,
0.18344922363758087,
0.023954302072525024,
0.6245269775390625,
0.3155457079410553,
-0.3965407609939575,
-0.18981507420539856,
0.04391395300626755,
-0.2713771462440491,
-0.45857417583465576,
-0.08960501849651337,
-0.0421898327767849,
0.3383435606956482,
-0.41492873430252075,
0.3502540588378906,
0.17490695416927338,
-0.23483160138130188,
0.20646433532238007,
-0.7065885663032532,
-0.12402179837226868,
0.21609389781951904,
-0.07890921831130981,
0.006574530620127916,
0.08407115936279297,
-0.30959945917129517,
0.12182830274105072,
0.23526351153850555,
-0.2610889673233032,
0.20923098921775818,
-0.3233412206172943,
0.10076358169317245,
0.09949427843093872,
0.06333212554454803,
0.022301435470581055,
0.19910243153572083,
0.06504800170660019,
0.06916151940822601,
-0.04966392368078232,
-0.25990983843803406,
-0.0702274814248085,
0.19481268525123596,
0.20511408150196075,
-0.05790060758590698,
0.22787506878376007,
-0.5071970224380493,
-0.16866998374462128,
0.08223892748355865,
-0.058475643396377563,
0.1155843436717987,
0.0038601309061050415,
0.18110065162181854,
0.20132538676261902,
0.2885710299015045,
-0.35008007287979126,
0.2458781599998474,
-0.08690476417541504,
0.2614985704421997,
0.1408279538154602,
0.07593588531017303,
0.45799216628074646,
0.02130076289176941,
-0.3352099359035492,
-0.03354087844491005,
-0.03007751703262329,
0.08663543313741684,
0.25588107109069824,
-0.23335865139961243,
0.3003472685813904,
0.1989206224679947,
-0.11749507486820221,
0.5623859763145447,
-0.14960461854934692,
0.20659637451171875,
0.41308310627937317,
0.18722319602966309,
-0.3698640465736389,
0.001645844429731369,
0.293201208114624,
-0.09663724899291992,
-0.07098237425088882,
0.07596118003129959,
0.25890928506851196,
-0.3223278522491455,
0.11372069269418716,
-0.06573918461799622,
0.1647823601961136,
-0.05655134096741676,
0.19225865602493286,
0.6700762510299683,
0.22707325220108032,
0.04992622882127762,
-0.06946471333503723,
0.1699933409690857,
0.09539489448070526,
0.3628067076206207,
-0.22345660626888275,
0.1927638202905655,
-0.05200383439660072,
0.02463488280773163,
-0.16216108202934265,
-0.3400561511516571,
0.2986115515232086,
0.16320163011550903,
-0.02477452903985977,
0.09867639094591141,
-0.17225784063339233,
0.2616478204727173,
0.15435950458049774,
0.03022303432226181,
-0.2611556351184845,
0.1914433240890503,
-0.12247796356678009,
-0.012982845306396484,
-0.04421038553118706,
-0.26800715923309326,
0.0015671700239181519,
0.15562617778778076,
-0.00466216029599309,
-0.35657334327697754,
0.25557368993759155,
0.3037433624267578,
-0.2440861165523529,
-0.44113945960998535,
0.1348094344139099,
0.21249298751354218,
0.03117084503173828,
-0.30022111535072327,
0.15776140987873077,
0.4137805104255676,
0.07809197902679443,
-0.12705524265766144,
0.20191608369350433,
0.4433459937572479,
0.420547217130661,
-0.3373264670372009,
0.042441513389348984,
0.07534076273441315,
-0.06568080931901932,
-0.023378174751996994,
0.22760993242263794,
0.46722498536109924,
0.2502681314945221,
0.39701011776924133,
0.11842593550682068,
-0.14159998297691345,
-0.03197535127401352,
0.23605027794837952,
-0.06391898542642593,
-0.05667079985141754,
-0.04518602788448334,
-0.05903534218668938,
0.14072081446647644,
-0.42055320739746094,
-0.01358465850353241,
-0.5078692436218262,
0.3400227129459381,
0.16105583310127258,
0.002587452530860901,
0.17752906680107117,
-0.09258118271827698,
0.04798574000597,
-0.15697602927684784,
0.39629313349723816,
0.31958553194999695,
0.19914118945598602,
-0.39083272218704224,
-0.008995488286018372,
-0.4645192325115204,
-0.018635809421539307,
-0.2982347905635834,
0.11210061609745026,
-0.0814325362443924,
0.12865589559078217,
0.07550831139087677,
0.21327181160449982,
0.036632515490055084,
0.045098356902599335,
0.06680259853601456,
0.4949163794517517,
-0.23153133690357208,
-0.24470356106758118,
-0.19481654465198517,
0.2191624492406845,
-0.15832370519638062,
-0.39093148708343506,
0.05759380757808685,
-0.1385609656572342,
0.0340731218457222,
-0.3200197219848633,
-0.06650064885616302,
0.09557262808084488,
0.00595981627702713,
0.3324287235736847,
0.15237773954868317,
0.5925300121307373,
-0.15409469604492188,
-0.20217695832252502,
-0.20867161452770233,
-0.011070042848587036,
-0.15993499755859375,
0.31167760491371155,
0.1967296451330185,
0.09890645742416382,
-0.16079378128051758,
-0.11197121441364288,
-0.02956400439143181,
0.29848766326904297,
-0.04481618478894234,
0.1949225664138794,
-0.3669617772102356,
-0.38635706901550293,
0.05791735649108887,
0.11385606974363327,
0.11902721971273422,
0.04692621901631355,
-0.13085630536079407,
-0.05331824719905853,
-0.3421497344970703,
-0.3086865544319153,
0.38665449619293213,
-0.37730345129966736,
-0.5697821974754333,
-0.09215505421161652,
0.007928524166345596,
0.047056399285793304,
0.19029787182807922,
-0.366088330745697,
0.27755486965179443,
0.38977304100990295,
0.05133353918790817,
-0.15096783638000488,
0.16642171144485474,
0.028648845851421356,
-0.01621542125940323,
-0.09404358267784119,
0.11607030779123306,
-0.008284391835331917,
-0.3563148081302643,
-0.22058457136154175,
-0.39125856757164
] |
https://github.com/huggingface/datasets/issues/2035 | Hi @dorost1234,
Try installing this library first, `pip install 'apache-beam[gcp]' --use-feature=2020-resolver` followed by loading dataset like this using beam runner.
`dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')`
I also read in error stack trace that:
> Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc.
Worked perfectly fine after this (Ignore these warnings)
![image](https://user-images.githubusercontent.com/19718818/110908410-c7e2ce00-8334-11eb-8d10-7354359e9ec3.png)
| wiki40b/wikipedia for almost all languages cannot be downloaded | Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
``` | 83 | wiki40b/wikipedia for almost all languages cannot be downloaded
Hi
I am trying to download the data as below:
```
from datasets import load_dataset
dataset = load_dataset("wiki40b", "cs")
print(dataset)
```
I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error.
I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources.
thank you very much.
```
(fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py
Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...
Traceback (most recent call last):
File "test_data.py", line 3, in <module>
dataset = load_dataset("wiki40b", "cs")
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset
use_auth_token=use_auth_token,
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare
import apache_beam as beam
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module>
from apache_beam import io
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module>
from apache_beam.io.avroio import *
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module>
import avro
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module>
File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource
NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt'
```
Hi @dorost1234,
Try installing this library first, `pip install 'apache-beam[gcp]' --use-feature=2020-resolver` followed by loading dataset like this using beam runner.
`dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')`
I also read in error stack trace that:
> Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc.
Worked perfectly fine after this (Ignore these warnings)
![image](https://user-images.githubusercontent.com/19718818/110908410-c7e2ce00-8334-11eb-8d10-7354359e9ec3.png)
| [
-0.25449812412261963,
-0.0779205784201622,
-0.153758242726326,
0.430866539478302,
0.39970260858535767,
0.35046160221099854,
0.13685046136379242,
0.5331583619117737,
0.1893271803855896,
0.023584403097629547,
-0.17730340361595154,
-0.09421733766794205,
0.094403937458992,
0.011183857917785645,
-0.029704701155424118,
-0.45917361974716187,
-0.06729051470756531,
0.029537351801991463,
-0.13527114689350128,
-0.11689350754022598,
-0.25196272134780884,
0.125614732503891,
-0.07917484641075134,
-0.04902883991599083,
-0.03874561935663223,
-0.18283991515636444,
-0.09583546221256256,
-0.20730571448802948,
-0.35074666142463684,
-0.24086444079875946,
0.35457825660705566,
0.019257348030805588,
0.310111939907074,
0.15299707651138306,
-0.00011143678420921788,
-0.05096481740474701,
0.31311672925949097,
-0.23579446971416473,
-0.293612003326416,
-0.28885769844055176,
-0.0720900148153305,
-0.32618603110313416,
-0.09043900668621063,
-0.4200316071510315,
0.12744629383087158,
0.0466824546456337,
0.08067118376493454,
-0.13180093467235565,
0.07575765252113342,
0.2992253601551056,
0.2468712329864502,
-0.1426033079624176,
0.31343454122543335,
-0.1457379013299942,
0.36519646644592285,
-0.3777083158493042,
-0.02803388610482216,
0.339586079120636,
0.2187206745147705,
0.0713428407907486,
0.21547940373420715,
0.22204311192035675,
-0.234140545129776,
0.013499349355697632,
0.048224832862615585,
-0.2912239730358124,
0.22220566868782043,
-0.6297016143798828,
0.5206418633460999,
0.5344284176826477,
0.8290327787399292,
-0.12835147976875305,
-0.08746697008609772,
0.07239207625389099,
-0.02605946734547615,
-0.03137427195906639,
-0.05574009567499161,
0.4819798767566681,
-0.1893264353275299,
0.09759804606437683,
0.12616509199142456,
-0.12543053925037384,
-0.15671896934509277,
0.42284679412841797,
-0.12413661181926727,
0.4435884654521942,
-0.05271989107131958,
0.21125967800617218,
-0.0216666366904974,
-0.10270200669765472,
-0.2636418044567108,
-0.06965938210487366,
-0.0961601510643959,
0.2933218479156494,
-0.27939820289611816,
0.019635699689388275,
-0.16150203347206116,
0.0556471087038517,
0.35113540291786194,
-0.15038344264030457,
-0.23462122678756714,
-0.04507812112569809,
0.09601074457168579,
0.1575748771429062,
0.180150106549263,
0.16378331184387207,
0.06204827502369881,
-0.2000068575143814,
0.2782810628414154,
0.3079041540622711,
-0.08421212434768677,
-0.0761709213256836,
-0.210043266415596,
-0.22305625677108765,
-0.2947568893432617,
0.09442958980798721,
0.08752942085266113,
-0.2031715214252472,
-0.17794671654701233,
0.00711306557059288,
-0.1443609893321991,
-0.019439000636339188,
-0.2023947834968567,
0.362821102142334,
-0.15014274418354034,
0.43123841285705566,
0.17790134251117706,
0.32882198691368103,
-0.10357258468866348,
-0.2613101601600647,
-0.01735217310488224,
0.30654844641685486,
-0.13931973278522491,
-0.10366036742925644,
0.21878284215927124,
-0.10991595685482025,
0.2648518681526184,
-0.08937225490808487,
-0.1031380146741867,
-0.17641204595565796,
-0.15369100868701935,
-0.36956772208213806,
-0.17910343408584595,
0.23040924966335297,
0.1619769036769867,
0.2839276194572449,
0.14761419594287872,
-0.2447476089000702,
-0.23058059811592102,
0.12074530869722366,
-0.35961470007896423,
-0.16815495491027832,
-0.2051546275615692,
0.1944684386253357,
0.06109839677810669,
-0.05465060845017433,
-0.3160070478916168,
0.28766393661499023,
0.30306413769721985,
-0.14239893853664398,
0.11807282269001007,
-0.007545807398855686,
-0.023254334926605225,
-0.22518980503082275,
0.1790114790201187,
0.49080026149749756,
-0.3999597728252411,
0.09189746528863907,
-0.023850753903388977,
-0.03371184319257736,
0.18978220224380493,
0.184297114610672,
-0.17795269191265106,
0.25654149055480957,
-0.09788393974304199,
0.03816020488739014,
0.21013107895851135,
-0.3214418888092041,
-0.5776354074478149,
0.18605387210845947,
0.11340989172458649,
-0.16700321435928345,
0.09947971999645233,
0.016000602394342422,
0.2750304341316223,
-0.049387622624635696,
0.05245431512594223,
0.3956748843193054,
0.13683798909187317,
-0.10564500838518143,
-0.32745057344436646,
-0.507823646068573,
0.3264818489551544,
0.16331778466701508,
0.45471444725990295,
-0.13226976990699768,
0.2759854197502136,
0.2917214632034302,
0.31917402148246765,
-0.19154787063598633,
0.12467893958091736,
0.23336051404476166,
-0.00894842203706503,
-0.04457569867372513,
-0.0025623179972171783,
-0.3310273587703705,
-0.3097582459449768,
0.1477600336074829,
0.10291290283203125,
0.1654646396636963,
-0.16095547378063202,
0.029683299362659454,
-0.3161894679069519,
-0.08880770206451416,
-0.19531162083148956,
0.10326889902353287,
0.19956368207931519,
-0.10527677834033966,
0.11959313601255417,
0.4854588508605957,
0.12651661038398743,
-0.09945908188819885,
-0.415690541267395,
-0.0948527455329895,
-0.1789347529411316,
0.0923319086432457,
-0.21742838621139526,
0.2044922113418579,
0.033680886030197144,
0.025808796286582947,
0.17968419194221497,
0.07305268943309784,
-0.16072377562522888,
-0.011061266995966434,
-0.07845205068588257,
-0.1035444438457489,
0.13546280562877655,
0.11696350574493408,
0.13312822580337524,
-0.4173751175403595,
0.19203008711338043,
0.10847973823547363,
0.3297465443611145,
-0.1357724666595459,
0.11781607568264008,
0.12223686277866364,
0.03997375816106796,
0.3655339777469635,
0.12343083322048187,
0.14983153343200684,
0.45559966564178467,
0.030526138842105865,
0.12635451555252075,
-0.004974894225597382,
0.32711929082870483,
0.15566036105155945,
0.012748755514621735,
-0.13295944035053253,
-0.029277727007865906,
-0.1135144904255867,
0.3166726231575012,
-0.08453378081321716,
0.2671486735343933,
0.29275962710380554,
-0.07651902735233307,
-0.0048598796129226685,
-0.0978270098567009,
0.15339860320091248,
0.052207764238119125,
0.06990513205528259,
0.10658888518810272,
-0.0998440682888031,
0.3596489727497101,
-0.1293928474187851,
0.2643095552921295,
0.17554201185703278,
0.1863330453634262,
0.2091357707977295,
0.13508044183254242,
-0.011175701394677162,
-0.18828275799751282,
-0.12967927753925323,
0.06999409198760986,
0.3717179000377655,
0.06918367743492126,
0.16594558954238892,
-0.04843458905816078,
-0.14185985922813416,
0.08419091999530792,
-0.052391890436410904,
-0.2509428560733795,
-0.21631720662117004,
-0.12563814222812653,
-0.08572851866483688,
0.09158347547054291,
-0.0001047961413860321,
-0.32666683197021484,
-0.07210220396518707,
0.06216610223054886,
-0.3203505277633667,
-0.16056837141513824,
-0.29812294244766235,
-0.3684498071670532,
0.07678737491369247,
0.3871298134326935,
0.1112900823354721,
0.2952096462249756,
-0.33262914419174194,
-0.19187892973423004,
-0.08994603902101517,
-0.26811110973358154,
-0.01431380957365036,
-0.15697050094604492,
0.2413950264453888,
-0.024117033928632736,
0.7152197957038879,
-0.1799960434436798,
-0.25142139196395874,
0.1846487671136856,
-0.0070200636982917786,
0.0658746138215065,
0.24977125227451324,
-0.15347883105278015,
-0.04292402043938637,
0.08453558385372162,
-0.4856534004211426,
-0.5155767202377319,
-0.26965653896331787,
0.012519185431301594,
0.04851792752742767,
0.08780613541603088,
0.16864126920700073,
0.19248437881469727,
0.06802666187286377,
0.12118801474571228,
0.18090671300888062,
-0.1900431215763092,
-0.15186944603919983,
0.44968941807746887,
-0.027413472533226013,
-0.42996251583099365,
0.18818658590316772,
0.010994024574756622,
0.3149319291114807,
0.00792727991938591,
-0.6572358012199402,
0.14411258697509766,
-0.2763589918613434,
0.24994319677352905,
-0.021993370726704597,
0.18347695469856262,
0.11434407532215118,
-0.21369734406471252,
0.04797235131263733,
0.04499554634094238,
0.10591001808643341,
-0.040621060878038406,
-0.20952510833740234,
0.25562214851379395,
0.02994575724005699,
0.29618555307388306,
0.16442078351974487,
0.6888410449028015,
0.054855674505233765,
0.16584089398384094,
0.43678173422813416,
0.23858246207237244,
0.23103128373622894,
-0.2314288318157196,
-0.36457139253616333,
0.06057438626885414,
-0.239491805434227,
-0.031003311276435852,
0.26701220870018005,
-0.16232000291347504,
-0.467417448759079,
-0.34771281480789185,
-0.24268457293510437,
-0.3674672245979309,
-0.2107711136341095,
0.15399791300296783,
-0.050181735306978226,
0.08294051885604858,
0.05759638547897339,
0.12039846926927567,
0.021573416888713837,
-0.2823500633239746,
0.21378952264785767,
0.5317094326019287,
-0.2486017346382141,
0.1685897409915924,
-0.27826690673828125,
-0.34212252497673035,
-0.41263440251350403,
0.2524552345275879,
0.07770693302154541,
0.4147610068321228,
-0.09380225092172623,
0.34991905093193054,
0.20117980241775513,
-0.08926902711391449,
0.2906230390071869,
-0.17024439573287964,
0.1230507418513298,
0.19724704325199127,
0.10499298572540283,
-0.21521732211112976,
-0.06244009733200073,
-0.29433301091194153,
-0.01668793335556984,
0.3054165840148926,
-0.04445553570985794,
-0.670965850353241,
0.084328792989254,
-0.04258590191602707,
0.5003300905227661,
-0.057177040725946426,
-0.017350096255540848,
-0.1618567407131195,
-0.5653647184371948,
-0.4854041635990143,
-0.027687352150678635,
0.18957558274269104,
0.4046095013618469,
-0.19720911979675293,
0.26289910078048706,
-0.10207857936620712,
0.22056260704994202,
0.02131662145256996,
0.007735509425401688,
0.2132565975189209,
0.23278602957725525,
0.09743291884660721,
-0.19678816199302673,
-0.1378471553325653,
0.15032653510570526,
0.3620433211326599,
-0.06353233754634857,
-0.2343127429485321,
-0.12124785780906677,
-0.04300360381603241,
0.04348320886492729,
0.14154620468616486,
-0.10129082202911377,
0.04770688712596893,
0.14866326749324799,
-0.13793520629405975,
0.16582091152668,
-0.012841582298278809,
0.25194674730300903,
-0.1063375174999237,
-0.4962347149848938,
-0.5676656365394592,
0.6620469689369202,
0.023382067680358887,
0.07014213502407074,
0.2541710436344147,
0.17540490627288818,
-0.1958610713481903,
0.3753732442855835,
0.1058032363653183,
1.1372193098068237,
-0.22813421487808228,
0.11042051017284393,
-0.10398470610380173,
0.109466552734375,
0.3614169955253601,
-0.35784000158309937,
0.20840711891651154,
-0.32264140248298645,
-0.10890693962574005,
-0.019519753754138947,
0.07367459684610367,
-0.04613875225186348,
0.0998932272195816,
-0.30722734332084656,
0.2564418911933899,
-0.366232693195343,
-0.08695429563522339,
0.10564948618412018,
0.23298583924770355,
-0.4058891236782074,
-0.06803684681653976,
-0.32137981057167053,
0.1196286603808403,
-0.2146601676940918,
0.25469300150871277,
-0.21100109815597534,
-0.12547850608825684,
-0.06142457202076912,
-0.26727020740509033,
-0.5050505995750427,
0.07064363360404968,
-0.28835028409957886,
0.3298688232898712,
-0.4893513321876526,
-0.18977470695972443,
0.3386206328868866,
0.44487127661705017,
0.041479721665382385,
0.40315449237823486,
-0.2879835069179535,
0.11165237426757812,
-0.2638612985610962,
-0.4236198961734772,
0.09449133276939392,
0.01120731607079506,
0.08713384717702866,
-0.18162883818149567,
-0.3709902763366699,
0.16697311401367188,
-0.05757248029112816,
0.052849166095256805,
-0.09598760306835175,
0.10437734425067902,
0.20165425539016724,
-0.04589737951755524,
-0.35655516386032104,
-0.0222831629216671,
-0.09438593685626984,
-0.08943305164575577,
0.12416663765907288,
0.08219679445028305,
-0.11190402507781982,
0.14091335237026215,
0.18529532849788666,
-0.3349807858467102,
0.02179165929555893,
0.34910598397254944,
0.18344922363758087,
0.023954302072525024,
0.6245269775390625,
0.3155457079410553,
-0.3965407609939575,
-0.18981507420539856,
0.04391395300626755,
-0.2713771462440491,
-0.45857417583465576,
-0.08960501849651337,
-0.0421898327767849,
0.3383435606956482,
-0.41492873430252075,
0.3502540588378906,
0.17490695416927338,
-0.23483160138130188,
0.20646433532238007,
-0.7065885663032532,
-0.12402179837226868,
0.21609389781951904,
-0.07890921831130981,
0.006574530620127916,
0.08407115936279297,
-0.30959945917129517,
0.12182830274105072,
0.23526351153850555,
-0.2610889673233032,
0.20923098921775818,
-0.3233412206172943,
0.10076358169317245,
0.09949427843093872,
0.06333212554454803,
0.022301435470581055,
0.19910243153572083,
0.06504800170660019,
0.06916151940822601,
-0.04966392368078232,
-0.25990983843803406,
-0.0702274814248085,
0.19481268525123596,
0.20511408150196075,
-0.05790060758590698,
0.22787506878376007,
-0.5071970224380493,
-0.16866998374462128,
0.08223892748355865,
-0.058475643396377563,
0.1155843436717987,
0.0038601309061050415,
0.18110065162181854,
0.20132538676261902,
0.2885710299015045,
-0.35008007287979126,
0.2458781599998474,
-0.08690476417541504,
0.2614985704421997,
0.1408279538154602,
0.07593588531017303,
0.45799216628074646,
0.02130076289176941,
-0.3352099359035492,
-0.03354087844491005,
-0.03007751703262329,
0.08663543313741684,
0.25588107109069824,
-0.23335865139961243,
0.3003472685813904,
0.1989206224679947,
-0.11749507486820221,
0.5623859763145447,
-0.14960461854934692,
0.20659637451171875,
0.41308310627937317,
0.18722319602966309,
-0.3698640465736389,
0.001645844429731369,
0.293201208114624,
-0.09663724899291992,
-0.07098237425088882,
0.07596118003129959,
0.25890928506851196,
-0.3223278522491455,
0.11372069269418716,
-0.06573918461799622,
0.1647823601961136,
-0.05655134096741676,
0.19225865602493286,
0.6700762510299683,
0.22707325220108032,
0.04992622882127762,
-0.06946471333503723,
0.1699933409690857,
0.09539489448070526,
0.3628067076206207,
-0.22345660626888275,
0.1927638202905655,
-0.05200383439660072,
0.02463488280773163,
-0.16216108202934265,
-0.3400561511516571,
0.2986115515232086,
0.16320163011550903,
-0.02477452903985977,
0.09867639094591141,
-0.17225784063339233,
0.2616478204727173,
0.15435950458049774,
0.03022303432226181,
-0.2611556351184845,
0.1914433240890503,
-0.12247796356678009,
-0.012982845306396484,
-0.04421038553118706,
-0.26800715923309326,
0.0015671700239181519,
0.15562617778778076,
-0.00466216029599309,
-0.35657334327697754,
0.25557368993759155,
0.3037433624267578,
-0.2440861165523529,
-0.44113945960998535,
0.1348094344139099,
0.21249298751354218,
0.03117084503173828,
-0.30022111535072327,
0.15776140987873077,
0.4137805104255676,
0.07809197902679443,
-0.12705524265766144,
0.20191608369350433,
0.4433459937572479,
0.420547217130661,
-0.3373264670372009,
0.042441513389348984,
0.07534076273441315,
-0.06568080931901932,
-0.023378174751996994,
0.22760993242263794,
0.46722498536109924,
0.2502681314945221,
0.39701011776924133,
0.11842593550682068,
-0.14159998297691345,
-0.03197535127401352,
0.23605027794837952,
-0.06391898542642593,
-0.05667079985141754,
-0.04518602788448334,
-0.05903534218668938,
0.14072081446647644,
-0.42055320739746094,
-0.01358465850353241,
-0.5078692436218262,
0.3400227129459381,
0.16105583310127258,
0.002587452530860901,
0.17752906680107117,
-0.09258118271827698,
0.04798574000597,
-0.15697602927684784,
0.39629313349723816,
0.31958553194999695,
0.19914118945598602,
-0.39083272218704224,
-0.008995488286018372,
-0.4645192325115204,
-0.018635809421539307,
-0.2982347905635834,
0.11210061609745026,
-0.0814325362443924,
0.12865589559078217,
0.07550831139087677,
0.21327181160449982,
0.036632515490055084,
0.045098356902599335,
0.06680259853601456,
0.4949163794517517,
-0.23153133690357208,
-0.24470356106758118,
-0.19481654465198517,
0.2191624492406845,
-0.15832370519638062,
-0.39093148708343506,
0.05759380757808685,
-0.1385609656572342,
0.0340731218457222,
-0.3200197219848633,
-0.06650064885616302,
0.09557262808084488,
0.00595981627702713,
0.3324287235736847,
0.15237773954868317,
0.5925300121307373,
-0.15409469604492188,
-0.20217695832252502,
-0.20867161452770233,
-0.011070042848587036,
-0.15993499755859375,
0.31167760491371155,
0.1967296451330185,
0.09890645742416382,
-0.16079378128051758,
-0.11197121441364288,
-0.02956400439143181,
0.29848766326904297,
-0.04481618478894234,
0.1949225664138794,
-0.3669617772102356,
-0.38635706901550293,
0.05791735649108887,
0.11385606974363327,
0.11902721971273422,
0.04692621901631355,
-0.13085630536079407,
-0.05331824719905853,
-0.3421497344970703,
-0.3086865544319153,
0.38665449619293213,
-0.37730345129966736,
-0.5697821974754333,
-0.09215505421161652,
0.007928524166345596,
0.047056399285793304,
0.19029787182807922,
-0.366088330745697,
0.27755486965179443,
0.38977304100990295,
0.05133353918790817,
-0.15096783638000488,
0.16642171144485474,
0.028648845851421356,
-0.01621542125940323,
-0.09404358267784119,
0.11607030779123306,
-0.008284391835331917,
-0.3563148081302643,
-0.22058457136154175,
-0.39125856757164
] |