html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/757 | CUDA out of memory | Since you're using a data collator you don't need to tokenizer the dataset using `map`. Could you try not to use `map` and only the data collator instead ? The data collator is supposed to pad to the longest sequence in each batch afaik, instead of padding to 512.
Also cc @sgugger | In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
| 52 | CUDA out of memory
In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
Since you're using a data collator you don't need to tokenizer the dataset using `map`. Could you try not to use `map` and only the data collator instead ? The data collator is supposed to pad to the longest sequence in each batch afaik, instead of padding to 512.
Also cc @sgugger | [
-0.3538850247859955,
-0.06870394200086594,
-0.14324304461479187,
0.3057076930999756,
0.5980898141860962,
-0.03018004447221756,
0.4453640580177307,
0.29573512077331543,
-0.062140610069036484,
0.4082167148590088,
0.21726582944393158,
0.05362294986844063,
-0.07481823116540909,
0.15077447891235352,
-0.13343001902103424,
-0.17759117484092712,
-0.05409181863069534,
0.036154016852378845,
-0.07170459628105164,
0.03248792141675949,
-0.034516841173172,
0.009063034318387508,
-0.2618723511695862,
-0.08725893497467041,
-0.4492591619491577,
-0.09582329541444778,
0.06325960159301758,
-0.047419287264347076,
0.013520793057978153,
-0.2511956989765167,
-0.0501873753964901,
-0.07683159410953522,
0.12266044318675995,
0.4445250630378723,
-0.00009502486500423402,
-0.00899767130613327,
0.048826832324266434,
-0.07937560975551605,
-0.15939630568027496,
0.003703072667121887,
0.0010659769177436829,
-0.19918598234653473,
0.06802316009998322,
-0.3073744475841522,
-0.3009662926197052,
0.2325592339038849,
-0.04831787943840027,
-0.17610064148902893,
0.4668055772781372,
0.3489149808883667,
0.405813068151474,
0.06421609967947006,
-0.04809194058179855,
-0.1667487919330597,
0.09341969341039658,
-0.10087332129478455,
-0.04370502009987831,
-0.07397907972335815,
0.2798735201358795,
-0.05103480815887451,
-0.16393762826919556,
0.2283996194601059,
0.09558367729187012,
-0.024831462651491165,
0.008826032280921936,
0.028643585741519928,
0.12506814301013947,
-0.18743178248405457,
0.1657487452030182,
-0.010783307254314423,
0.1392262876033783,
-0.10247767716646194,
0.08512722700834274,
0.015501566231250763,
-0.12462399154901505,
-0.4965883195400238,
0.1401781439781189,
0.0640605092048645,
-0.3090769052505493,
0.0835065022110939,
-0.16757625341415405,
0.10294107347726822,
-0.06508845090866089,
-0.03283044695854187,
-0.2521698772907257,
0.24958626925945282,
-0.11940625309944153,
-0.004327043890953064,
0.1522548496723175,
-0.14607881009578705,
0.15842925012111664,
0.08827995508909225,
-0.00022900104522705078,
0.0289948508143425,
-0.27785030007362366,
-0.049447640776634216,
-0.050668828189373016,
-0.2739793360233307,
0.1108095720410347,
-0.1995367705821991,
0.16923236846923828,
0.12958183884620667,
0.23288485407829285,
0.0386408306658268,
0.12230493128299713,
0.33360326290130615,
-0.1237148866057396,
0.013423449359834194,
0.06889422237873077,
0.1866416335105896,
-0.37881582975387573,
-0.19595816731452942,
-0.10814215987920761,
-0.3177535831928253,
-0.008256405591964722,
0.11225812137126923,
-0.14097365736961365,
-0.06932906806468964,
-0.06154683977365494,
0.2887707054615021,
-0.19367018342018127,
0.12014208734035492,
0.09231501817703247,
0.3297214210033417,
-0.046210404485464096,
0.06142114847898483,
0.012229394167661667,
-0.079433873295784,
-0.05813146382570267,
-0.15341328084468842,
-0.29284700751304626,
-0.0796785056591034,
-0.4233686625957489,
-0.01753869839012623,
0.17412668466567993,
0.10731084644794464,
0.2736077904701233,
-0.0849090963602066,
0.06044115871191025,
-0.3291585147380829,
0.06844885647296906,
-0.28563785552978516,
0.104587122797966,
0.0019268020987510681,
0.2612718343734741,
0.04983023554086685,
0.04548943415284157,
-0.1384895145893097,
0.21031281352043152,
0.2335585355758667,
-0.16263994574546814,
-0.19718380272388458,
-0.10500393807888031,
0.3500036597251892,
0.3678776025772095,
0.2698630094528198,
-0.04425669461488724,
0.0073640719056129456,
0.2607891261577606,
0.10840651392936707,
0.006452985107898712,
-0.10189984738826752,
-0.12605461478233337,
-0.1532549262046814,
0.29143625497817993,
0.20169007778167725,
-0.31545209884643555,
-0.02600482851266861,
0.19408033788204193,
0.0753096491098404,
0.2819876968860626,
0.4822385013103485,
-0.3072267472743988,
0.15553909540176392,
-0.19693414866924286,
0.16197490692138672,
0.20564745366573334,
-0.28386297821998596,
-0.22739337384700775,
0.15449552237987518,
-0.26356860995292664,
-0.07341206818819046,
-0.18394163250923157,
-0.10029205679893494,
0.5489270687103271,
0.08630669116973877,
0.3641425371170044,
0.1814378798007965,
-0.15000349283218384,
0.04597114026546478,
-0.3630645275115967,
-0.12241186201572418,
0.12806162238121033,
0.057373110204935074,
0.17944450676441193,
-0.08913338929414749,
-0.170042484998703,
-0.001527777872979641,
0.1990639567375183,
-0.13549944758415222,
0.17847053706645966,
0.21341612935066223,
0.3221103549003601,
0.0361039824783802,
-0.13976295292377472,
0.16991838812828064,
0.02453814446926117,
0.04554195702075958,
0.11076410114765167,
0.10845121741294861,
-0.1470891684293747,
-0.1655828058719635,
-0.025058725848793983,
-0.1039784625172615,
-0.017810869961977005,
-0.20414896309375763,
0.37349793314933777,
-0.058643683791160583,
-0.1204761415719986,
0.014503136277198792,
0.03871431574225426,
0.14953374862670898,
-0.4617999196052551,
0.1477302461862564,
0.13027718663215637,
0.08003739267587662,
-0.26172754168510437,
-0.12969933450222015,
0.03769374638795853,
0.2047874927520752,
0.19602912664413452,
-0.12153702974319458,
-0.10780255496501923,
0.29210400581359863,
0.10261388123035431,
-0.20141474902629852,
-0.08682199567556381,
-0.02303256094455719,
0.05664892494678497,
0.019474733620882034,
-0.1182483360171318,
-0.07965171337127686,
-0.0015652170404791832,
-0.08570548892021179,
0.012438096106052399,
0.1006004810333252,
0.26947900652885437,
0.09590180963277817,
0.04807642847299576,
0.010364487767219543,
0.3586982190608978,
-0.11405739188194275,
0.16401299834251404,
-0.148757666349411,
0.08513693511486053,
0.24059337377548218,
0.10013248026371002,
0.1569623351097107,
-0.2406003326177597,
0.01312333345413208,
0.3567015528678894,
0.14343315362930298,
0.01061180979013443,
0.23536071181297302,
-0.11754269152879715,
0.01156998798251152,
-0.024148808792233467,
-0.08060380816459656,
-0.10705184936523438,
0.24899442493915558,
0.1102844625711441,
0.06386827677488327,
0.03927478566765785,
-0.16608521342277527,
0.1283664107322693,
0.03255694359540939,
0.07145623117685318,
-0.1245189979672432,
0.12604522705078125,
-0.10988401621580124,
-0.24541696906089783,
-0.0022665634751319885,
0.14721834659576416,
0.4225436747074127,
-0.11274729669094086,
-0.09315156191587448,
-0.1891930252313614,
-0.11609029024839401,
-0.09774079918861389,
-0.08019208908081055,
0.019967738538980484,
-0.004927449859678745,
0.036493659019470215,
0.1595836579799652,
0.011006440967321396,
0.4099167287349701,
0.22898951172828674,
0.3758629262447357,
0.19020427763462067,
0.24418988823890686,
0.09897275269031525,
-0.2734333574771881,
-0.19979426264762878,
0.284385085105896,
0.38236233592033386,
-0.00006389990448951721,
0.1524185687303543,
0.059417858719825745,
0.08199234306812286,
-0.03157295286655426,
-0.11476187407970428,
-0.04792347550392151,
-0.06535308808088303,
0.14426784217357635,
-0.09403498470783234,
0.3292437791824341,
-0.23148146271705627,
-0.28636857867240906,
0.19599387049674988,
0.06212374567985535,
-0.1783341020345688,
-0.20709070563316345,
0.13295720517635345,
-0.2569445073604584,
-0.2753174901008606,
-0.10905485600233078,
-0.07582124322652817,
-0.38099005818367004,
-0.05409099906682968,
-0.04386620968580246,
0.09423701465129852,
-0.12249559909105301,
0.26649725437164307,
0.2440907210111618,
0.0497475303709507,
-0.10201258212327957,
-0.17414937913417816,
-0.2536873519420624,
0.0660756304860115,
-0.24273012578487396,
-0.22498251497745514,
-0.0060496702790260315,
0.08539628982543945,
0.5231485962867737,
0.044466592371463776,
-0.5343627333641052,
0.1466071903705597,
-0.058169037103652954,
0.03129396215081215,
0.015611546114087105,
-0.14629800617694855,
0.3653273284435272,
0.06787841022014618,
-0.2486971616744995,
0.0843081995844841,
-0.2163979709148407,
0.17631158232688904,
-0.22807815670967102,
0.10312869399785995,
-0.28191909193992615,
0.577317476272583,
0.17752718925476074,
0.6508575081825256,
-0.08621826767921448,
-0.22067423164844513,
0.2745225429534912,
-0.13540801405906677,
0.15696002542972565,
-0.2709428668022156,
-0.26675522327423096,
0.30508503317832947,
-0.14583173394203186,
-0.1728741079568863,
0.20632529258728027,
-0.171420156955719,
-0.2792167067527771,
-0.027797073125839233,
0.17296257615089417,
-0.2085360288619995,
-0.39227986335754395,
0.2551881968975067,
-0.02078721672296524,
0.2042921781539917,
-0.005891021341085434,
0.13152408599853516,
-0.14782483875751495,
-0.050006091594696045,
-0.004617391154170036,
-0.2329569309949875,
-0.0746498629450798,
-0.24747203290462494,
-0.2771754264831543,
0.028042564168572426,
-0.38838404417037964,
0.15052005648612976,
0.054647888988256454,
0.28615155816078186,
-0.15001438558101654,
-0.11183775216341019,
0.0644526556134224,
-0.09365818649530411,
0.7823350429534912,
0.20426112413406372,
-0.26112329959869385,
0.06293854117393494,
-0.1595556139945984,
-0.0211343951523304,
-0.005556266754865646,
-0.1316351741552353,
0.1276700496673584,
0.2425469160079956,
0.382650762796402,
-0.10229796916246414,
-0.13209684193134308,
0.002555636689066887,
-0.04796674847602844,
-0.1053621917963028,
0.03495519608259201,
-0.014324415475130081,
-0.018823880702257156,
-0.30017712712287903,
0.3913334310054779,
0.11448458582162857,
0.2752557694911957,
-0.03814837336540222,
-0.4090350270271301,
-0.11545628309249878,
-0.20688986778259277,
0.09796743839979172,
0.039875827729701996,
0.3180323541164398,
0.09023678302764893,
0.15383821725845337,
-0.15186691284179688,
0.24392133951187134,
0.15807434916496277,
-0.1134222149848938,
0.009657207876443863,
0.062203019857406616,
0.09888942539691925,
-0.20573312044143677,
0.3376142978668213,
0.2864978015422821,
0.06464525312185287,
0.15916568040847778,
-0.07008308172225952,
0.3968048691749573,
-0.09926953166723251,
0.39569711685180664,
0.3567793667316437,
0.21632398664951324,
-0.47497403621673584,
-0.1481386423110962,
0.00889018177986145,
0.08979043364524841,
0.11186356842517853,
0.41820624470710754,
-0.0859781801700592,
-0.3235790729522705,
0.21605683863162994,
0.20967933535575867,
0.8515176773071289,
-0.12825901806354523,
0.19340743124485016,
0.08577819913625717,
-0.0494304820895195,
0.11980419605970383,
-0.19085693359375,
0.1594129055738449,
-0.27092909812927246,
-0.2158920168876648,
-0.005350861698389053,
0.0670853704214096,
0.07348288595676422,
0.10074512660503387,
-0.2985437214374542,
-0.11484072357416153,
-0.24204185605049133,
0.2059369683265686,
-0.20079301297664642,
-0.06068113446235657,
0.23655655980110168,
-0.409228652715683,
-0.21590127050876617,
0.3366200625896454,
0.0250643752515316,
-0.2348307967185974,
-0.16646715998649597,
0.040650445967912674,
0.15408828854560852,
-0.08587963879108429,
-0.11351679265499115,
-0.06514015048742294,
-0.5472655296325684,
0.030574940145015717,
-0.1110365092754364,
-0.29654520750045776,
-0.04548477753996849,
0.002460841089487076,
0.3210059702396393,
0.35041123628616333,
-0.03746397793292999,
0.3197166621685028,
0.19687801599502563,
0.00889984518289566,
0.048072632402181625,
0.04199919104576111,
0.24445262551307678,
-0.06128935515880585,
-0.1383039653301239,
0.32671797275543213,
0.04126202315092087,
-0.22190982103347778,
-0.003959715366363525,
0.0022161826491355896,
0.11480708420276642,
-0.3608168959617615,
-0.3072974383831024,
0.13091950118541718,
-0.0943898856639862,
-0.23174215853214264,
0.32464486360549927,
-0.11805459856987,
-0.20704761147499084,
0.09231960773468018,
0.1686408668756485,
-0.14161328971385956,
-0.06774602830410004,
0.1560576856136322,
0.039085496217012405,
-0.02173841930925846,
0.49165940284729004,
0.28050485253334045,
-0.13196486234664917,
-0.35133373737335205,
-0.14132268726825714,
0.38318756222724915,
-0.10919034481048584,
0.09508965909481049,
0.025276390835642815,
-0.1052054762840271,
0.10530435293912888,
0.34920594096183777,
0.04304588586091995,
0.07273313403129578,
-0.005280189216136932,
-0.06282377988100052,
-0.688754141330719,
-0.1755339354276657,
-0.07440285384654999,
0.22486548125743866,
0.04870947450399399,
0.38435277342796326,
-0.05642818659543991,
0.07569964975118637,
-0.4959675371646881,
0.21936024725437164,
-0.5408852100372314,
0.31707772612571716,
-0.19813218712806702,
-0.15733683109283447,
0.0791444480419159,
0.0071352394297719,
0.255095511674881,
0.4369690418243408,
-0.10662152618169785,
-0.4734306037425995,
-0.04448946192860603,
-0.027803227305412292,
0.12588828802108765,
-0.10459321737289429,
0.03435777872800827,
-0.01243074145168066,
-0.18670986592769623,
-0.2628526985645294,
0.1092706173658371,
0.08538168668746948,
-0.0364036038517952,
-0.08333072066307068,
0.09572431445121765,
0.1358407586812973,
-0.0031874477863311768,
-0.14402297139167786,
0.09278328716754913,
0.204811692237854,
0.2161942720413208,
-0.10221657156944275,
0.06658993661403656,
0.0020528212189674377,
-0.1708850860595703,
0.16737377643585205,
0.11866354942321777,
0.12090453505516052,
0.03668246790766716,
-0.2211584895849228,
-0.27009397745132446,
0.2185981124639511,
0.14630647003650665,
0.06354467570781708,
-0.19777466356754303,
-0.10024120658636093,
0.4072955250740051,
0.47048938274383545,
-0.239029198884964,
0.10334370285272598,
0.03208492696285248,
-0.1943846195936203,
0.19423316419124603,
0.13960011303424835,
-0.09200666844844818,
-0.15263810753822327,
0.007553793489933014,
0.2622353136539459,
0.018619908019900322,
-0.3551526665687561,
0.1178143173456192,
0.03263913840055466,
-0.03498455509543419,
-0.039160314947366714,
0.050226807594299316,
0.11958524584770203,
0.21193711459636688,
0.5023725032806396,
-0.006072588264942169,
0.321526437997818,
0.06281018257141113,
0.025703150779008865,
-0.1420886218547821,
-0.23579293489456177,
-0.15666592121124268,
0.2672966420650482,
-0.10191458463668823,
0.03807780146598816,
-0.1926589012145996,
0.308066725730896,
-0.037276491522789,
-0.47032177448272705,
-0.2891821265220642,
0.15320700407028198,
-0.5186836123466492,
0.010396301746368408,
-0.10423994809389114,
-0.020907633006572723,
-0.05380549281835556,
0.11132869124412537,
0.15768420696258545,
0.004482965916395187,
0.14315402507781982,
0.003808632493019104,
-0.19305239617824554,
-0.018015393987298012,
-0.18178600072860718,
0.15591514110565186,
0.07655246555805206,
-0.18633142113685608,
0.33656492829322815,
-0.07105514407157898,
-0.14828160405158997,
0.0015258975327014923,
0.1111113429069519,
0.3467006981372833,
0.42038455605506897,
-0.057940032333135605,
0.03017372265458107,
-0.03277899697422981,
-0.021985264495015144,
-0.20577795803546906,
0.14916518330574036,
0.3884342610836029,
0.2333979457616806,
0.18356548249721527,
0.31349945068359375,
-0.33998167514801025,
0.1441178172826767,
0.2320033460855484,
0.06038076803088188,
-0.12044729292392731,
-0.09749492257833481,
0.09984058886766434,
-0.12272323668003082,
-0.35457223653793335,
-0.09716612845659256,
-0.3997305631637573,
0.1740502268075943,
0.10127486288547516,
-0.20287677645683289,
0.15885275602340698,
-0.10197366029024124,
0.18013069033622742,
-0.1071234792470932,
0.5011610388755798,
0.13886946439743042,
-0.025697670876979828,
-0.4887698292732239,
-0.4422720670700073,
-0.4006250500679016,
0.11412634700536728,
-0.2080053985118866,
0.2612006962299347,
-0.21096603572368622,
0.14963053166866302,
-0.0620725080370903,
-0.15851838886737823,
-0.03866799175739288,
-0.058304451406002045,
-0.13385313749313354,
-0.17424070835113525,
-0.5670874714851379,
0.07469098269939423,
-0.29656654596328735,
-0.03121296875178814,
0.1268422156572342,
-0.11035668849945068,
0.3521362245082855,
-0.17091302573680878,
0.274955689907074,
0.1290586143732071,
0.1577443927526474,
-0.09200775623321533,
0.0661807656288147,
0.3151903748512268,
-0.12203720211982727,
0.043880537152290344,
0.07894715666770935,
0.24352067708969116,
-0.08855399489402771,
-0.06383673846721649,
-0.10458122193813324,
-0.061507679522037506,
0.391467809677124,
0.2720620036125183,
-0.16569994390010834,
-0.012330543249845505,
-0.22345253825187683,
0.1061285138130188,
0.2691366672515869,
-0.06501596421003342,
0.07761064171791077,
0.1415105015039444,
0.17613735795021057,
-0.045009806752204895,
0.21419185400009155,
0.3716610074043274,
0.016596578061580658,
0.11162689328193665,
-0.3786832094192505,
-0.28093743324279785,
0.4669593870639801,
-0.33175450563430786,
-0.38540032505989075,
-0.07182540744543076,
0.02863449603319168,
0.16848206520080566,
-0.1871618777513504,
-0.5829005837440491,
-0.15165609121322632,
0.12214569002389908,
-0.08024168759584427,
-0.3954402208328247,
0.2426406443119049,
-0.1927640736103058,
0.09496510028839111,
-0.036626312881708145,
0.14531026780605316,
0.07667750120162964,
-0.10851269960403442,
0.052313048392534256,
-0.21845179796218872
] |
https://github.com/huggingface/datasets/issues/751 | Error loading ms_marco v2.1 using load_dataset() | There was a similar issue in #294
Clearing the cache and download again the dataset did the job. Could you try to clear your cache and download the dataset again ? | Code:
`dataset = load_dataset('ms_marco', 'v2.1')`
Error:
```
`---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-16-34378c057212> in <module>()
9
10 # Downloading and loading a dataset
---> 11 dataset = load_dataset('ms_marco', 'v2.1')
10 frames
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
353 """
354 try:
--> 355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
357 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 388988661 (char 388988660)
`
``` | 31 | Error loading ms_marco v2.1 using load_dataset()
Code:
`dataset = load_dataset('ms_marco', 'v2.1')`
Error:
```
`---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-16-34378c057212> in <module>()
9
10 # Downloading and loading a dataset
---> 11 dataset = load_dataset('ms_marco', 'v2.1')
10 frames
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
353 """
354 try:
--> 355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
357 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 388988661 (char 388988660)
`
```
There was a similar issue in #294
Clearing the cache and download again the dataset did the job. Could you try to clear your cache and download the dataset again ? | [
0.010368578135967255,
0.11118978261947632,
-0.10002531111240387,
0.3606889843940735,
0.4273393750190735,
0.051914773881435394,
0.2879602611064911,
0.5654805898666382,
0.012548446655273438,
0.32172828912734985,
-0.01228133961558342,
0.5649033784866333,
-0.022834379225969315,
0.24715618789196014,
-0.15241049230098724,
-0.3327511250972748,
-0.039344094693660736,
0.32406312227249146,
0.13065215945243835,
0.10894681513309479,
-0.08233104646205902,
0.2334579974412918,
-0.1433686763048172,
0.23496297001838684,
0.08872563391923904,
0.10996121913194656,
0.044412486255168915,
0.11864359676837921,
-0.37175530195236206,
-0.6237432360649109,
0.2395814210176468,
-0.014797903597354889,
0.3841395378112793,
0.4122723340988159,
-0.00010792646207846701,
0.20342908799648285,
0.4274072051048279,
-0.1497962921857834,
-0.3283524513244629,
-0.6941394805908203,
-0.5283316373825073,
-0.07338718324899673,
0.33026832342147827,
-0.07137493044137955,
-0.015722017735242844,
0.05183103308081627,
-0.20225533843040466,
-0.46834471821784973,
0.7235796451568604,
0.3449121117591858,
0.23320764303207397,
0.09840016067028046,
0.22722791135311127,
-0.05676918104290962,
0.19484958052635193,
0.15322279930114746,
0.06221321225166321,
0.24728849530220032,
-0.1464816778898239,
0.21547621488571167,
0.2918564975261688,
0.2464023232460022,
-0.11347102373838425,
0.32415854930877686,
0.1573537290096283,
0.12254156172275543,
0.3648793697357178,
-0.4494430720806122,
0.3054104447364807,
0.14383141696453094,
0.6902775168418884,
-0.1550350785255432,
-0.25516247749328613,
0.07674869149923325,
0.12948016822338104,
-0.4748288691043854,
0.3319576680660248,
0.06432048231363297,
-0.24326610565185547,
0.17527732253074646,
-0.08875834941864014,
0.013489946722984314,
-0.2744029760360718,
0.010089326649904251,
-0.19319818913936615,
0.008953526616096497,
-0.13906621932983398,
0.15273016691207886,
0.3419307768344879,
-0.2617519497871399,
0.08620838820934296,
0.04771847277879715,
-0.2760578989982605,
0.15737059712409973,
-0.1932177096605301,
-0.1091303825378418,
-0.15696200728416443,
-0.4858179986476898,
-0.05335593223571777,
0.09627602249383926,
0.2548747658729553,
0.06091645359992981,
0.3814302980899811,
0.03627905249595642,
0.6026729941368103,
0.02556779980659485,
-0.12119630724191666,
0.03457306697964668,
0.12222957611083984,
0.0011008637957274914,
0.0688750296831131,
-0.08030130714178085,
-0.273103803396225,
0.00200215307995677,
0.17485827207565308,
0.14479774236679077,
0.31121009588241577,
-0.28004971146583557,
-0.3382551372051239,
0.15140622854232788,
-0.5848357081413269,
-0.24223540723323822,
-0.22540554404258728,
0.3102693557739258,
0.020036324858665466,
0.2433730661869049,
0.06058095395565033,
0.2738599479198456,
0.01990857906639576,
-0.34598588943481445,
-0.04329006001353264,
-0.15164785087108612,
-0.034663714468479156,
-0.14557352662086487,
0.2728929817676544,
-0.08494362235069275,
0.13610905408859253,
0.0872812569141388,
0.18120315670967102,
-0.339352011680603,
0.3095948398113251,
-0.22543346881866455,
0.09953432530164719,
0.32207128405570984,
0.2754572033882141,
0.052513934671878815,
0.18164485692977905,
-0.167336568236351,
-0.05303218215703964,
0.31415855884552,
-0.2938111126422882,
-0.2666991353034973,
-0.27224111557006836,
0.20712050795555115,
0.001343507319688797,
-0.17116424441337585,
-0.25401049852371216,
0.0457335039973259,
-0.017801016569137573,
-0.06038645654916763,
-0.377808153629303,
-0.16670794785022736,
0.08802193403244019,
-0.17805621027946472,
0.3932455778121948,
0.21614044904708862,
-0.3279467523097992,
0.03940673917531967,
-0.09591567516326904,
-0.13180744647979736,
0.21543148159980774,
0.16438937187194824,
-0.3142089247703552,
0.5403984785079956,
-0.03889080137014389,
-0.16912367939949036,
0.09861412644386292,
-0.3066728711128235,
-0.29378098249435425,
0.3694317638874054,
0.004684090614318848,
0.15911300480365753,
0.0017893463373184204,
-0.25125357508659363,
0.3732081353664398,
0.1588674932718277,
0.19458700716495514,
0.06180886551737785,
-0.1427411437034607,
0.09139969944953918,
-0.0991632416844368,
-0.2575184404850006,
0.09063403308391571,
0.3011382520198822,
0.07758122682571411,
0.07969262450933456,
-0.0985771045088768,
0.2593407928943634,
0.15282434225082397,
-0.11529938876628876,
0.1257852464914322,
0.16348247230052948,
-0.10971936583518982,
0.1635197252035141,
0.051032595336437225,
0.14014467597007751,
-0.20657122135162354,
0.0699191763997078,
0.04158593714237213,
0.22810490429401398,
-0.39606183767318726,
0.03857893496751785,
-0.3178732097148895,
0.010432383045554161,
-0.36519747972488403,
0.10687485337257385,
0.24871152639389038,
0.12271132320165634,
0.05583084747195244,
0.1275046020746231,
-0.30137473344802856,
-0.0274712722748518,
0.39167821407318115,
0.16823908686637878,
-0.05191366747021675,
0.2938365638256073,
-0.19125892221927643,
-0.29416194558143616,
0.11205708980560303,
-0.04420825093984604,
0.037820056080818176,
-0.13301262259483337,
-0.3254247307777405,
0.23774072527885437,
0.18957778811454773,
0.20340391993522644,
-0.16676107048988342,
-0.14567841589450836,
0.13480566442012787,
-0.3300460875034332,
0.08380423486232758,
0.5397528409957886,
0.16800478100776672,
-0.022134151309728622,
-0.10266866534948349,
0.19811055064201355,
-0.08556754887104034,
0.11377210170030594,
-0.07827948033809662,
-0.03040306642651558,
0.3267214000225067,
0.08160798251628876,
-0.17597046494483948,
-0.207233265042305,
0.2624558210372925,
-0.008788548409938812,
0.095139279961586,
-0.18145623803138733,
-0.26008278131484985,
-0.21774551272392273,
0.24876652657985687,
-0.07828588038682938,
-0.05086417496204376,
0.13200083374977112,
-0.09498985856771469,
0.06305097788572311,
-0.20784400403499603,
0.024482067674398422,
0.20640608668327332,
0.030220262706279755,
-0.22658023238182068,
0.12646235525608063,
0.18520225584506989,
-0.012762999162077904,
0.2005792260169983,
0.18973994255065918,
0.31892159581184387,
0.27377554774284363,
-0.05815504491329193,
0.007566646207123995,
-0.2234511375427246,
-0.13907836377620697,
-0.11034975945949554,
0.450409859418869,
-0.2590263783931732,
0.10047371685504913,
-0.2818918526172638,
-0.07507563382387161,
-0.1346457600593567,
-0.4714365303516388,
-0.09311704337596893,
-0.09859690070152283,
-0.23318667709827423,
0.1405065357685089,
0.08313554525375366,
0.08122353255748749,
-0.1027526706457138,
0.0702488124370575,
0.18473932147026062,
0.033513911068439484,
-0.12122123688459396,
-0.30004259943962097,
-0.22225022315979004,
0.05014119669795036,
0.300895631313324,
-0.3179348111152649,
-0.02891613356769085,
-0.40225115418434143,
0.07929442822933197,
0.2344605028629303,
-0.24205660820007324,
0.28294143080711365,
-0.24332301318645477,
0.10714658349752426,
0.09766341745853424,
0.34631437063217163,
-0.0807698592543602,
-0.17871533334255219,
0.2980033755302429,
-0.03362749144434929,
-0.07012229412794113,
0.23519402742385864,
-0.024764524772763252,
0.004414152819663286,
-0.03455264866352081,
-0.6003320813179016,
-0.2259485125541687,
-0.1773616075515747,
0.08440498262643814,
0.0945686399936676,
0.07204406708478928,
0.2071622908115387,
0.25185590982437134,
0.13299113512039185,
0.14083155989646912,
0.2209935039281845,
-0.21398773789405823,
-0.469137966632843,
0.189075767993927,
-0.18561933934688568,
-0.28859227895736694,
0.33809927105903625,
0.13194112479686737,
0.3926621079444885,
-0.30394405126571655,
-0.387509822845459,
0.31193333864212036,
0.11380549520254135,
-0.10467219352722168,
-0.4057459831237793,
-0.32253989577293396,
0.12435843050479889,
0.18167026340961456,
0.01216413639485836,
-0.09812372177839279,
-0.2578531503677368,
0.23554983735084534,
-0.0515548437833786,
0.140061154961586,
-0.060826584696769714,
0.8555183410644531,
-0.07739849388599396,
0.32872089743614197,
0.21191337704658508,
0.15714453160762787,
0.28679025173187256,
-0.026002535596489906,
0.04745858907699585,
-0.09311673790216446,
-0.12631458044052124,
-0.03466540202498436,
-0.11320358514785767,
-0.1697462946176529,
0.1050453633069992,
-0.10657618939876556,
-0.24953718483448029,
-0.3681686818599701,
0.15788184106349945,
-0.187519371509552,
-0.1722090095281601,
0.11252422630786896,
-0.06836283206939697,
0.2198687493801117,
0.045524533838033676,
0.28723737597465515,
-0.1594829112291336,
-0.02219974435865879,
-0.06745535135269165,
0.09866394847631454,
0.2741687595844269,
0.08889859914779663,
-0.5317468643188477,
-0.23675291240215302,
-0.4396631121635437,
0.11233623325824738,
0.0749686062335968,
0.4724261164665222,
-0.13919074833393097,
-0.017386317253112793,
0.2341490536928177,
-0.208827406167984,
0.4418925642967224,
-0.05266164243221283,
0.011164002120494843,
0.18302805721759796,
0.0017395317554473877,
-0.23542700707912445,
-0.09466297924518585,
-0.33054834604263306,
0.30974337458610535,
0.13874289393424988,
0.2339220643043518,
-0.2818976938724518,
-0.16092948615550995,
0.3215728998184204,
0.005414916202425957,
-0.20389382541179657,
-0.1696619689464569,
-0.5031236410140991,
-0.32809367775917053,
-0.5201478600502014,
-0.15986043214797974,
-0.1911194920539856,
0.4015160799026489,
0.16862110793590546,
-0.031187381595373154,
0.1380337029695511,
-0.028576292097568512,
-0.0021819323301315308,
0.4222213625907898,
0.2703423500061035,
0.08373931795358658,
0.18650487065315247,
0.39583221077919006,
-0.13197828829288483,
0.4243676960468292,
0.5508010983467102,
0.11340445280075073,
-0.6399232149124146,
0.05121896415948868,
-0.2962985932826996,
0.09761372953653336,
0.001440882682800293,
-0.08165905624628067,
-0.04938080161809921,
-0.10008951276540756,
-0.020987339317798615,
-0.40862685441970825,
-0.004295553546398878,
0.530322253704071,
-0.2322351038455963,
-0.40987157821655273,
-0.4350344240665436,
0.13296079635620117,
-0.1702178716659546,
0.03530700504779816,
0.026935674250125885,
0.03349926695227623,
-0.21447114646434784,
0.3636549115180969,
0.18553566932678223,
0.7658944129943848,
-0.02351510524749756,
0.0016501471400260925,
0.30666059255599976,
-0.42828989028930664,
0.030504858121275902,
0.027730628848075867,
0.22285541892051697,
-0.2719280421733856,
0.0700470507144928,
-0.06944996118545532,
-0.01955430954694748,
0.22791999578475952,
0.035533905029296875,
-0.42614561319351196,
-0.04367254301905632,
-0.04458795487880707,
0.15337121486663818,
0.07188166677951813,
0.2442644238471985,
0.05877923220396042,
-0.1275700181722641,
-0.29954952001571655,
0.19983427226543427,
-0.40820974111557007,
0.19175973534584045,
-0.11998187750577927,
-0.26958245038986206,
-0.008630283176898956,
-0.22861440479755402,
-0.18360599875450134,
0.07418318092823029,
-0.10760271549224854,
0.14948101341724396,
-0.07486574351787567,
-0.2504877746105194,
-0.05082692578434944,
-0.11257244646549225,
0.07997888326644897,
-0.06272628903388977,
-0.1535196602344513,
0.19073793292045593,
-0.12534597516059875,
-0.07459596544504166,
-0.007702562026679516,
0.22739873826503754,
0.010806003585457802,
-0.06162966415286064,
-0.36744049191474915,
0.3495849668979645,
0.00627314206212759,
-0.3701888918876648,
-0.023579463362693787,
-0.09042882919311523,
0.0961807444691658,
-0.09333918988704681,
0.0004806574434041977,
-0.18614768981933594,
0.09080532193183899,
-0.06144808232784271,
0.18801884353160858,
0.03961455076932907,
-0.10779974609613419,
0.05977683141827583,
-0.08552902936935425,
-0.34172654151916504,
-0.022280365228652954,
0.49545231461524963,
0.07445105910301208,
0.04242841154336929,
0.6726424694061279,
0.10971349477767944,
0.023312222212553024,
-0.20289087295532227,
0.4121150076389313,
-0.19199615716934204,
-0.1603667140007019,
0.13698400557041168,
-0.1618550717830658,
0.2158024162054062,
-0.024612335488200188,
0.32830479741096497,
0.14977553486824036,
-0.1560218334197998,
0.18124699592590332,
-0.39833125472068787,
-0.35937705636024475,
0.08018670976161957,
0.09966560453176498,
0.08902983367443085,
0.2458854615688324,
0.19877830147743225,
0.01930134929716587,
-0.14609751105308533,
-0.3054214119911194,
0.10120982676744461,
-0.021104387938976288,
0.03893426060676575,
0.07355146110057831,
-0.15962213277816772,
0.14585290849208832,
-0.0804148018360138,
0.1671362966299057,
0.16946028172969818,
-0.15281984210014343,
-0.19935154914855957,
-0.059571824967861176,
0.08713877201080322,
-0.07033560425043106,
-0.30417200922966003,
-0.16470424830913544,
-0.12620994448661804,
-0.142515167593956,
-0.056540101766586304,
0.06190893426537514,
0.032270826399326324,
0.04874823987483978,
0.025114435702562332,
-0.08564452826976776,
0.08326602727174759,
-0.058548130095005035,
-0.06872111558914185,
0.10665146261453629,
0.41758567094802856,
0.20033933222293854,
0.29563307762145996,
0.015542949549853802,
-0.009834066033363342,
-0.1680740863084793,
0.10843641310930252,
0.13267673552036285,
-0.06012149155139923,
0.489921897649765,
-0.5844714045524597,
0.3093329668045044,
0.15259294211864471,
0.06416910141706467,
0.37378382682800293,
-0.34915414452552795,
0.1438473016023636,
-0.025781888514757156,
0.2500725984573364,
-0.007248701527714729,
-0.019777122884988785,
-0.018771003931760788,
-0.05895254760980606,
-0.2512376010417938,
0.1292738914489746,
0.036815088242292404,
0.06431110203266144,
0.06582348048686981,
0.18554678559303284,
0.5413069725036621,
0.02055477723479271,
0.17770040035247803,
0.4449893832206726,
-0.2651422321796417,
0.010317996144294739,
0.10708311200141907,
0.028887905180454254,
0.15085145831108093,
0.5691824555397034,
-0.2521657347679138,
0.36568570137023926,
0.06746594607830048,
0.18918459117412567,
-0.06894771009683609,
-0.2857244312763214,
-0.19115737080574036,
0.12837377190589905,
-0.10396258533000946,
0.20565298199653625,
0.16058135032653809,
-0.04114700108766556,
-0.27542978525161743,
-0.16456753015518188,
-0.4454324543476105,
-0.043372463434934616,
-0.15814754366874695,
-0.16519823670387268,
-0.3046613037586212,
-0.2379550039768219,
-0.20869876444339752,
0.16941526532173157,
-0.09644129872322083,
0.06897898763418198,
-0.1310560554265976,
0.3181930184364319,
-0.13374659419059753,
-0.48160606622695923,
-0.4851034879684448,
0.15319755673408508,
-0.0802619680762291,
-0.22740212082862854,
0.4024291932582855,
0.36227428913116455,
-0.14494842290878296,
0.17525888979434967,
0.2373051643371582,
0.4581500291824341,
0.43654772639274597,
-0.3334042429924011,
-0.0051349736750125885,
-0.14755430817604065,
-0.13882599771022797,
0.06812556087970734,
0.14698904752731323,
0.14748328924179077,
0.464626669883728,
0.19281134009361267,
0.2086624652147293,
-0.13993054628372192,
-0.09402939677238464,
0.273410439491272,
0.2114677131175995,
-0.24109797179698944,
0.1022983267903328,
-0.08334112167358398,
0.2694026529788971,
0.011460931971669197,
-0.11780976504087448,
-0.5373736023902893,
0.001691166777163744,
0.10486306250095367,
0.3085602819919586,
-0.03835973143577576,
-0.08355086296796799,
0.09415869414806366,
-0.024247877299785614,
0.36647140979766846,
-0.022420745342969894,
0.06438940018415451,
-0.3836486339569092,
-0.1501821130514145,
-0.43168139457702637,
0.10472583025693893,
-0.13953791558742523,
-0.07616093009710312,
0.0795031413435936,
0.0511157289147377,
0.10588344186544418,
0.35595130920410156,
0.13892915844917297,
-0.06802728027105331,
0.10707615315914154,
-0.03192461282014847,
-0.18354249000549316,
-0.1068296730518341,
0.2802382707595825,
0.056027643382549286,
-0.1562606543302536,
-0.1600482016801834,
0.32958123087882996,
0.0734453946352005,
0.08415498584508896,
-0.3527582287788391,
-0.22759932279586792,
-0.11162294447422028,
-0.006171088665723801,
0.5378031730651855,
0.13194996118545532,
0.40728867053985596,
-0.004438905045390129,
-0.2568790912628174,
-0.14358371496200562,
-0.1493096500635147,
-0.08912346512079239,
0.22127267718315125,
0.19800731539726257,
0.44513341784477234,
-0.2095821648836136,
0.19151008129119873,
-0.5001687407493591,
0.04653770104050636,
-0.17515720427036285,
-0.15086376667022705,
-0.5225539207458496,
-0.023557115346193314,
0.03135930746793747,
0.1359851062297821,
-0.13986489176750183,
0.2121206521987915,
0.16116811335086823,
0.28311967849731445,
-0.32130998373031616,
0.054939500987529755,
0.40705060958862305,
-0.41059547662734985,
-0.4109962582588196,
-0.08110692352056503,
-0.144598126411438,
-0.3138810992240906,
0.03728247061371803,
-0.6443096995353699,
0.268725723028183,
0.21799470484256744,
-0.14730265736579895,
-0.33695343136787415,
0.2057897299528122,
0.2618827521800995,
0.06539197266101837,
-0.0011064745485782623,
0.34641483426094055,
0.16908586025238037,
-0.1502874195575714,
0.05288756266236305,
-0.20608918368816376
] |
https://github.com/huggingface/datasets/issues/751 | Error loading ms_marco v2.1 using load_dataset() | I was able to load the dataset successfully, I'm pretty sure it's just a cache issue that you have.
Let me know if clearing your cache fixes the problem | Code:
`dataset = load_dataset('ms_marco', 'v2.1')`
Error:
```
`---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-16-34378c057212> in <module>()
9
10 # Downloading and loading a dataset
---> 11 dataset = load_dataset('ms_marco', 'v2.1')
10 frames
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
353 """
354 try:
--> 355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
357 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 388988661 (char 388988660)
`
``` | 29 | Error loading ms_marco v2.1 using load_dataset()
Code:
`dataset = load_dataset('ms_marco', 'v2.1')`
Error:
```
`---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-16-34378c057212> in <module>()
9
10 # Downloading and loading a dataset
---> 11 dataset = load_dataset('ms_marco', 'v2.1')
10 frames
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
353 """
354 try:
--> 355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
357 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 388988661 (char 388988660)
`
```
I was able to load the dataset successfully, I'm pretty sure it's just a cache issue that you have.
Let me know if clearing your cache fixes the problem | [
-0.012936439365148544,
0.10301141440868378,
-0.12283335626125336,
0.31225723028182983,
0.3983420729637146,
0.05211146920919418,
0.2968254089355469,
0.5685592889785767,
0.02055712789297104,
0.3210778832435608,
-0.04697874188423157,
0.5231748819351196,
0.06325164437294006,
0.19008681178092957,
-0.16551867127418518,
-0.25740399956703186,
-0.023632727563381195,
0.35079243779182434,
0.06922656297683716,
0.0745205283164978,
-0.09009388089179993,
0.19571638107299805,
-0.12446220219135284,
0.21412375569343567,
0.05912527069449425,
0.07409939169883728,
0.03893844038248062,
0.11520397663116455,
-0.3439752459526062,
-0.6365220546722412,
0.19197359681129456,
-0.007931917905807495,
0.3155696392059326,
0.40430691838264465,
-0.00010200643737334758,
0.17776475846767426,
0.4454355835914612,
-0.06898758560419083,
-0.3125954568386078,
-0.5820086598396301,
-0.5053097605705261,
-0.11710263788700104,
0.31653866171836853,
-0.12829114496707916,
-0.1209801733493805,
0.1134021058678627,
-0.18506835401058197,
-0.4382016062736511,
0.6948320865631104,
0.3881031274795532,
0.3028865158557892,
0.13516488671302795,
0.2301938384771347,
-0.10093880444765091,
0.25504493713378906,
0.12515337765216827,
0.013898586854338646,
0.2112891525030136,
-0.1272655576467514,
0.20333322882652283,
0.2619903087615967,
0.28764569759368896,
-0.08559847623109818,
0.3251771926879883,
0.13990622758865356,
0.1585075855255127,
0.33145105838775635,
-0.3463333249092102,
0.268195778131485,
0.10367420315742493,
0.6430301666259766,
-0.13071686029434204,
-0.27626320719718933,
0.08682426065206528,
0.0796731635928154,
-0.5477736592292786,
0.3189706802368164,
0.09293624758720398,
-0.2067410796880722,
0.1782434731721878,
-0.08957070112228394,
0.0375678613781929,
-0.18327264487743378,
0.0019576027989387512,
-0.2085380107164383,
0.08164473623037338,
-0.13361769914627075,
0.07820671051740646,
0.3002837598323822,
-0.2424611896276474,
0.07468385994434357,
0.08123098313808441,
-0.2699529528617859,
0.10978490114212036,
-0.1803836226463318,
-0.09480341523885727,
-0.043022751808166504,
-0.444694846868515,
-0.11994708329439163,
0.11453379690647125,
0.22364406287670135,
0.09879329055547714,
0.3771326541900635,
-0.0008457638323307037,
0.4639415740966797,
0.05013808235526085,
-0.15595075488090515,
0.07711487263441086,
0.18458278477191925,
0.04440336301922798,
-0.002985343337059021,
-0.10394183546304703,
-0.21111369132995605,
0.019259847700595856,
0.1602066159248352,
0.10958131402730942,
0.31386077404022217,
-0.22049900889396667,
-0.2839266061782837,
0.07835332304239273,
-0.4800008237361908,
-0.1939748376607895,
-0.19754528999328613,
0.32072991132736206,
-0.06329535692930222,
0.23047539591789246,
0.056735508143901825,
0.2245039939880371,
-0.06790109723806381,
-0.22569841146469116,
-0.12100901454687119,
-0.13123412430286407,
-0.08527445793151855,
-0.12016650289297104,
0.27471357583999634,
-0.08538700640201569,
0.14714258909225464,
0.07095039635896683,
0.15196077525615692,
-0.2827930748462677,
0.34106725454330444,
-0.23630200326442719,
0.11355878412723541,
0.3298211097717285,
0.27700892090797424,
0.07017321139574051,
0.18193623423576355,
-0.132531076669693,
-0.09611416608095169,
0.2491234838962555,
-0.25247225165367126,
-0.28024381399154663,
-0.18768392503261566,
0.28552740812301636,
0.011328253895044327,
-0.15125712752342224,
-0.21341723203659058,
-0.053378041833639145,
0.010004065930843353,
-0.08077267557382584,
-0.35933980345726013,
-0.17142529785633087,
0.06063096597790718,
-0.20192338526248932,
0.36210209131240845,
0.270525187253952,
-0.27233144640922546,
0.0733097642660141,
-0.13540257513523102,
-0.09226065874099731,
0.18774685263633728,
0.2017703652381897,
-0.30143973231315613,
0.4362959861755371,
-0.046441271901130676,
-0.15662209689617157,
0.14022280275821686,
-0.3202364146709442,
-0.32408806681632996,
0.30289655923843384,
-0.032979484647512436,
0.08782776445150375,
0.025868333876132965,
-0.1924055516719818,
0.3647075593471527,
0.15370644629001617,
0.19921572506427765,
0.054442327469587326,
-0.03568166494369507,
0.12353838235139847,
-0.12453284859657288,
-0.25867724418640137,
0.018174566328525543,
0.24633543193340302,
0.06445776671171188,
0.04423907771706581,
-0.10418068617582321,
0.20370075106620789,
0.14036448299884796,
-0.12451761960983276,
0.11371636390686035,
0.20856301486492157,
-0.13048537075519562,
0.1713307946920395,
0.0299084335565567,
0.1364281177520752,
-0.13996639847755432,
0.12146850675344467,
0.025929082185029984,
0.19003254175186157,
-0.27266234159469604,
0.006486028432846069,
-0.30145490169525146,
0.03161139786243439,
-0.3687094748020172,
0.1013641357421875,
0.3043012320995331,
0.19644668698310852,
0.12332938611507416,
0.13166368007659912,
-0.27492204308509827,
-0.011012464761734009,
0.4417964816093445,
0.10704882442951202,
-0.11803974211215973,
0.26190897822380066,
-0.2515698969364166,
-0.29155027866363525,
0.11085999011993408,
-0.03670988231897354,
0.05808895081281662,
-0.08016054332256317,
-0.3036941885948181,
0.18165746331214905,
0.20360766351222992,
0.24957379698753357,
-0.17953252792358398,
-0.13638542592525482,
0.0791236087679863,
-0.2600407302379608,
0.1992523968219757,
0.5228093266487122,
0.12022249400615692,
-0.024972934275865555,
-0.06767038255929947,
0.23877134919166565,
-0.022930745035409927,
0.11259589344263077,
-0.02465236373245716,
-0.054781630635261536,
0.3964393734931946,
0.02837299183011055,
-0.1547791212797165,
-0.26094233989715576,
0.2471834421157837,
0.05345465615391731,
0.1135941594839096,
-0.11512288451194763,
-0.31285911798477173,
-0.15588894486427307,
0.3872976005077362,
-0.03673291206359863,
0.015901703387498856,
0.13588204979896545,
-0.14282599091529846,
0.016694415360689163,
-0.21657927334308624,
-0.029925338923931122,
0.1951276957988739,
0.08886533230543137,
-0.16067171096801758,
0.08165489882230759,
0.1995745599269867,
-0.0875951424241066,
0.2196178138256073,
0.2029741406440735,
0.28041601181030273,
0.17260238528251648,
0.03553459420800209,
-0.030192550271749496,
-0.2262343168258667,
-0.023235684260725975,
-0.1176520511507988,
0.3725835382938385,
-0.23754428327083588,
0.08495242893695831,
-0.3510684669017792,
-0.05319201201200485,
-0.14616000652313232,
-0.5117492079734802,
-0.05386993661522865,
-0.10601512342691422,
-0.1435578167438507,
0.17567452788352966,
0.06390389800071716,
0.13288956880569458,
-0.09745378792285919,
0.02623501420021057,
0.17605577409267426,
-0.012864792719483376,
-0.1240895539522171,
-0.3575332462787628,
-0.2978411614894867,
0.11481639742851257,
0.2390880435705185,
-0.30491626262664795,
0.06965789943933487,
-0.4312528073787689,
0.04712705314159393,
0.18551379442214966,
-0.250683069229126,
0.25707322359085083,
-0.16567611694335938,
0.06761470437049866,
0.08437757194042206,
0.2562083899974823,
-0.03878788650035858,
-0.19737768173217773,
0.3516503870487213,
-0.12730541825294495,
-0.1333608329296112,
0.2202690988779068,
-0.023484837263822556,
0.008686352521181107,
-0.037071481347084045,
-0.6399907469749451,
-0.22370506823062897,
-0.26047277450561523,
0.10106578469276428,
0.15091297030448914,
0.035611748695373535,
0.19856716692447662,
0.1864262968301773,
0.13265863060951233,
0.0938301533460617,
0.2327873259782791,
-0.2737096846103668,
-0.43008744716644287,
0.23750053346157074,
-0.22972208261489868,
-0.32392218708992004,
0.30981430411338806,
0.04683888703584671,
0.3736920654773712,
-0.3118448853492737,
-0.4044915437698364,
0.2070854753255844,
0.02060520462691784,
-0.050972044467926025,
-0.3278873860836029,
-0.29403039813041687,
0.20290032029151917,
0.13987024128437042,
-0.069976307451725,
-0.06716471910476685,
-0.27015143632888794,
0.1653963029384613,
-0.08013070374727249,
0.1338673084974289,
-0.10194481164216995,
0.8502921462059021,
-0.12226812541484833,
0.4089120030403137,
0.18215011060237885,
0.12155000865459442,
0.2841959297657013,
-0.028671303763985634,
0.08926331251859665,
-0.17760688066482544,
-0.16072043776512146,
-0.040521904826164246,
-0.08866804838180542,
-0.14168311655521393,
0.11798331141471863,
-0.07669250667095184,
-0.3244694769382477,
-0.3877326548099518,
0.14736953377723694,
-0.1907787322998047,
-0.24916300177574158,
0.1173730194568634,
-0.06959690153598785,
0.24374240636825562,
0.1065368503332138,
0.3213147222995758,
-0.18343178927898407,
-0.07832063734531403,
-0.040955573320388794,
0.02466404438018799,
0.1784258782863617,
0.05437714606523514,
-0.5196168422698975,
-0.21844510734081268,
-0.39714956283569336,
0.0976877510547638,
0.094458669424057,
0.37900254130363464,
-0.118782177567482,
-0.13328292965888977,
0.28484219312667847,
-0.19965516030788422,
0.45485538244247437,
0.01569053716957569,
0.022590069100260735,
0.2308393120765686,
-0.040647123008966446,
-0.24775691330432892,
-0.10331706702709198,
-0.3119056820869446,
0.2619575262069702,
0.2248477041721344,
0.29127737879753113,
-0.2751757502555847,
-0.1617022007703781,
0.31899529695510864,
0.032533325254917145,
-0.19615046679973602,
-0.14257149398326874,
-0.5580506324768066,
-0.286257266998291,
-0.5117336511611938,
-0.15228939056396484,
-0.14448493719100952,
0.3319622576236725,
0.1333823949098587,
-0.05101361125707626,
0.11589987576007843,
-0.0506250262260437,
-0.07439817488193512,
0.43984395265579224,
0.3376658856868744,
0.05711153522133827,
0.21372628211975098,
0.3307419419288635,
-0.08979855477809906,
0.3472661077976227,
0.5509922504425049,
0.0874864012002945,
-0.5647022128105164,
0.025258012115955353,
-0.23082879185676575,
0.03761058300733566,
0.02953237295150757,
-0.04265416041016579,
-0.052369602024555206,
-0.07599294185638428,
0.01934703439474106,
-0.37028175592422485,
0.04448063671588898,
0.44987547397613525,
-0.23860757052898407,
-0.36282169818878174,
-0.4035473167896271,
0.1759883165359497,
-0.14884600043296814,
0.04618671536445618,
-0.026189833879470825,
-0.023648835718631744,
-0.16569940745830536,
0.3092259168624878,
0.20217365026474,
0.7795624136924744,
0.004168998450040817,
0.04235132783651352,
0.3334950804710388,
-0.4208035469055176,
0.05863777548074722,
0.056766822934150696,
0.271670937538147,
-0.30659621953964233,
0.1043095514178276,
-0.028318822383880615,
-0.04359634593129158,
0.1442023068666458,
0.02866191789507866,
-0.3659764528274536,
-0.02771442010998726,
0.007940083742141724,
0.20521599054336548,
0.06795550137758255,
0.23238179087638855,
0.009896962903439999,
-0.18059304356575012,
-0.3090299069881439,
0.26609089970588684,
-0.3243827819824219,
0.17890235781669617,
-0.07879678159952164,
-0.23882092535495758,
0.00937279686331749,
-0.21568988263607025,
-0.1426716297864914,
0.11126028746366501,
-0.09536508470773697,
0.21752379834651947,
-0.09901753067970276,
-0.3454360365867615,
-0.14832575619220734,
-0.14794978499412537,
0.06572316586971283,
0.012239599600434303,
-0.13503232598304749,
0.1931801736354828,
-0.09360671788454056,
-0.09684237092733383,
-0.01932901330292225,
0.22050176560878754,
0.027689198032021523,
-0.15076076984405518,
-0.38557642698287964,
0.2976350784301758,
-0.006585400551557541,
-0.3523638844490051,
-0.029163703322410583,
-0.018739357590675354,
0.12155672162771225,
-0.05033149570226669,
-0.006662389263510704,
-0.15162119269371033,
0.0931435227394104,
-0.08343233913183212,
0.24804644286632538,
-0.0020350664854049683,
-0.06528972089290619,
0.09281424432992935,
-0.12382835149765015,
-0.30779576301574707,
-0.049269940704107285,
0.49871575832366943,
0.1204650029540062,
0.10308757424354553,
0.6825524568557739,
0.12221367657184601,
-0.036699943244457245,
-0.2413407564163208,
0.3117479383945465,
-0.2639380991458893,
-0.09662067890167236,
0.1311970353126526,
-0.1354558914899826,
0.16410763561725616,
0.018841279670596123,
0.26609331369400024,
0.1431494504213333,
-0.18310078978538513,
0.12553420662879944,
-0.3727392852306366,
-0.34203341603279114,
0.08530691266059875,
0.08679698407649994,
0.036523327231407166,
0.3154531717300415,
0.22181779146194458,
0.02494092471897602,
-0.14454887807369232,
-0.3769083619117737,
0.09689565747976303,
-0.05460558086633682,
0.0498187392950058,
0.052991241216659546,
-0.23552894592285156,
0.13268814980983734,
-0.04850552976131439,
0.2245548963546753,
0.12565475702285767,
-0.18695113062858582,
-0.29629358649253845,
-0.025777874514460564,
0.05056576430797577,
-0.13791275024414062,
-0.26705077290534973,
-0.15540292859077454,
-0.13806447386741638,
-0.10701955854892731,
-0.09438103437423706,
0.03794100135564804,
0.04208241403102875,
0.054676756262779236,
-0.008676480501890182,
-0.11308792233467102,
0.06254430115222931,
0.015454564243555069,
-0.025899995118379593,
0.04150797799229622,
0.3601217269897461,
0.12321032583713531,
0.2862486243247986,
0.0048706065863370895,
-0.009066082537174225,
-0.13935883343219757,
0.052940450608730316,
0.10611525177955627,
-0.06252238154411316,
0.4956175982952118,
-0.5514342784881592,
0.22967523336410522,
0.20576491951942444,
0.05187426507472992,
0.34140488505363464,
-0.28466248512268066,
0.08754590153694153,
-0.03175589442253113,
0.3160978853702545,
-0.06975492835044861,
-0.054336097091436386,
-0.0581459142267704,
-0.11454824358224869,
-0.1619737297296524,
0.0740736573934555,
0.06599640846252441,
0.09694305062294006,
0.09742949903011322,
0.228981614112854,
0.5092586278915405,
-0.03845547139644623,
0.13268575072288513,
0.35099342465400696,
-0.22047673165798187,
-0.02566806599497795,
0.15506397187709808,
0.033702678978443146,
0.15244489908218384,
0.5504531860351562,
-0.17385026812553406,
0.36381736397743225,
0.04672754928469658,
0.23019464313983917,
-0.09089720994234085,
-0.272854745388031,
-0.17927709221839905,
0.054319560527801514,
-0.11454573273658752,
0.17957022786140442,
0.17267069220542908,
-0.013110242784023285,
-0.2915281057357788,
-0.1167619600892067,
-0.5116008520126343,
-0.02748645469546318,
-0.18986913561820984,
-0.1445574015378952,
-0.27326229214668274,
-0.18984466791152954,
-0.12521754205226898,
0.17071931064128876,
-0.058086056262254715,
0.09192505478858948,
-0.09692904353141785,
0.3143523335456848,
-0.12619689106941223,
-0.48202425241470337,
-0.39150145649909973,
0.08090771734714508,
-0.02929648756980896,
-0.2216845154762268,
0.43149498105049133,
0.3308708369731903,
-0.12287604808807373,
0.13272561132907867,
0.2395051270723343,
0.4572739899158478,
0.36875295639038086,
-0.2968001663684845,
-0.013178558088839054,
-0.14820197224617004,
-0.20297740399837494,
-0.04273165389895439,
0.14346171915531158,
0.2300138920545578,
0.4531635046005249,
0.13326647877693176,
0.2887100577354431,
-0.2089294046163559,
-0.016674600541591644,
0.1810162216424942,
0.2182878702878952,
-0.22154708206653595,
0.12985092401504517,
-0.04197835922241211,
0.16862797737121582,
-0.007469862699508667,
-0.08851533383131027,
-0.5434632301330566,
0.040147814899683,
0.15921254456043243,
0.28890854120254517,
-0.06236860528588295,
-0.15885716676712036,
0.13104182481765747,
-0.01899893209338188,
0.37591707706451416,
-0.009747747331857681,
0.036804892122745514,
-0.33659905195236206,
-0.12997791171073914,
-0.43620455265045166,
0.16828176379203796,
-0.19098924100399017,
-0.022006433457136154,
0.038022756576538086,
0.11999134719371796,
0.10201390832662582,
0.3278624415397644,
0.17888888716697693,
-0.1205594465136528,
0.028402108699083328,
-0.07292523980140686,
-0.22598253190517426,
-0.08257754147052765,
0.257251501083374,
-0.0021914709359407425,
-0.11611559242010117,
-0.21375393867492676,
0.31178587675094604,
0.0019226223230361938,
0.14524030685424805,
-0.35616904497146606,
-0.20298083126544952,
-0.06747035682201385,
0.028001587837934494,
0.537451982498169,
0.1623469442129135,
0.36189043521881104,
-0.02285214327275753,
-0.2558181881904602,
-0.15893806517124176,
-0.2314823716878891,
-0.10783656686544418,
0.1982891857624054,
0.16743671894073486,
0.417236328125,
-0.19991691410541534,
0.13034114241600037,
-0.46593549847602844,
0.08042224496603012,
-0.15637385845184326,
-0.15862295031547546,
-0.4202132225036621,
-0.06108550727367401,
0.05011527240276337,
0.10494853556156158,
-0.1206996738910675,
0.28677135705947876,
0.13744789361953735,
0.21914327144622803,
-0.32301121950149536,
-0.03613471984863281,
0.38461750745773315,
-0.3938950002193451,
-0.3895444869995117,
-0.04438428580760956,
-0.09174992144107819,
-0.29223933815956116,
0.04209336265921593,
-0.5770190358161926,
0.323665589094162,
0.22900952398777008,
-0.10836408287286758,
-0.3024742603302002,
0.24150390923023224,
0.22412355244159698,
0.1163615882396698,
-0.012449409812688828,
0.3833830654621124,
0.15073543787002563,
-0.14803501963615417,
0.021333914250135422,
-0.15928547084331512
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Small poll @thomwolf @yjernite @lhoestq @JetRunner @qiweizhen .
As stated in the XGLUE paper: https://arxiv.org/pdf/2004.01401.pdf , for each of the 11 down-stream tasks training data is only available in English, whereas development and test data is available in multiple different language *cf.* here:

So, I'd suggest to have exactly 11 "language-independent" configs: "ner", "pos", ... and give the sample in each dataset in the config a "language" label being one of "ar", "bg", .... => To me this makes more sense than making languaga specific config, *e.g.* "ner-de", ...especially because training data is only available in English. Do you guys agree? | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 105 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Small poll @thomwolf @yjernite @lhoestq @JetRunner @qiweizhen .
As stated in the XGLUE paper: https://arxiv.org/pdf/2004.01401.pdf , for each of the 11 down-stream tasks training data is only available in English, whereas development and test data is available in multiple different language *cf.* here:

So, I'd suggest to have exactly 11 "language-independent" configs: "ner", "pos", ... and give the sample in each dataset in the config a "language" label being one of "ar", "bg", .... => To me this makes more sense than making languaga specific config, *e.g.* "ner-de", ...especially because training data is only available in English. Do you guys agree? | [
-0.14286890625953674,
0.009927898645401001,
-0.049109846353530884,
0.16983136534690857,
-0.07714338600635529,
-0.2269946038722992,
0.3096126317977905,
-0.005992542952299118,
-0.11064082384109497,
0.02658906579017639,
-0.09334714710712433,
-0.10927967727184296,
0.06421408802270889,
0.3641544282436371,
0.2442413717508316,
0.005411658436059952,
-0.07019007951021194,
-0.21353444457054138,
0.19596892595291138,
-0.11019562184810638,
-0.19252437353134155,
0.20733080804347992,
0.009311482310295105,
0.03827764093875885,
-0.1812141388654709,
-0.383891761302948,
-0.14542017877101898,
-0.04012076556682587,
-0.2106129676103592,
-0.1362018883228302,
-0.09491150826215744,
0.29985907673835754,
-0.04505400359630585,
-0.1357191503047943,
-0.00011016716598533094,
-0.14550228416919708,
0.03376340866088867,
-0.289348840713501,
0.07777424156665802,
0.07664739340543747,
-0.5392190217971802,
-0.41892656683921814,
-0.21002592146396637,
0.021882236003875732,
-0.13222303986549377,
-0.07039500027894974,
0.03985726460814476,
-0.38766616582870483,
0.0150856152176857,
0.20098930597305298,
0.12435916066169739,
-0.13070425391197205,
-0.09169646352529526,
0.00227678706869483,
0.17241781949996948,
-0.059979066252708435,
-0.07121049612760544,
0.2573898136615753,
0.6603617668151855,
0.11802662909030914,
-0.1897401213645935,
0.4227794110774994,
0.1062077134847641,
-0.22744984924793243,
-0.25127363204956055,
-0.1123046800494194,
0.02757592499256134,
-0.5208718776702881,
-0.03079494833946228,
0.7121629118919373,
0.09441486746072769,
-0.21925553679466248,
-0.3764992952346802,
-0.5085296034812927,
0.23113742470741272,
-0.10601462423801422,
-0.0385444313287735,
0.33161666989326477,
0.13609109818935394,
0.12464284896850586,
0.28134045004844666,
-0.483306884765625,
-0.06451442837715149,
0.11442942917346954,
0.027215972542762756,
0.3500624895095825,
-0.05177473649382591,
0.15549331903457642,
0.05823097750544548,
0.22054216265678406,
0.09084715694189072,
-0.19148308038711548,
-0.20287935435771942,
-0.15877558290958405,
-0.27377164363861084,
0.023859746754169464,
0.10892137140035629,
0.19243359565734863,
0.2820926904678345,
0.010311730206012726,
0.05049685761332512,
0.26587358117103577,
0.03585968166589737,
0.009202763438224792,
0.09583459794521332,
0.16968496143817902,
0.31329333782196045,
-0.07100831717252731,
0.38933712244033813,
-0.28286319971084595,
0.017550073564052582,
0.07683466374874115,
0.1171843484044075,
-0.04729262366890907,
-0.5885553359985352,
0.19536229968070984,
0.055247798562049866,
-0.13501843810081482,
-0.16496996581554413,
0.018880559131503105,
-0.2845037281513214,
-0.2749779224395752,
0.12502633035182953,
0.04755926877260208,
0.236059308052063,
0.21341106295585632,
-0.2342139184474945,
0.4277418255805969,
-0.24161113798618317,
-0.7489889860153198,
-0.06786477565765381,
0.1831587702035904,
-0.29635369777679443,
0.06280975043773651,
-0.016167499125003815,
-0.01690581440925598,
-0.08269799500703812,
0.5410317182540894,
-0.10159823298454285,
-0.12300526350736618,
0.3408745229244232,
-0.2684750258922577,
0.07589948177337646,
-0.12129716575145721,
-0.14142140746116638,
0.0661509707570076,
0.05839284509420395,
-0.2884202003479004,
-0.37337416410446167,
-0.04772018641233444,
-0.08557633310556412,
-0.31515392661094666,
0.03272084891796112,
0.12355109304189682,
-0.11830287426710129,
-0.11220656335353851,
0.08219844102859497,
0.9992456436157227,
0.07278262078762054,
0.1342608779668808,
0.25050970911979675,
-0.20386235415935516,
0.01835288479924202,
-0.31035658717155457,
-0.10858289152383804,
0.40243077278137207,
-0.696232795715332,
-0.06115122139453888,
0.2866933345794678,
-0.18778380751609802,
0.27290892601013184,
0.03357093408703804,
-0.31442931294441223,
0.02043343335390091,
-0.142488032579422,
0.3152840733528137,
0.3137667775154114,
-0.11941269040107727,
-0.09933974593877792,
0.14153778553009033,
0.006368301808834076,
0.03583969175815582,
0.08384270966053009,
0.13235841691493988,
0.23328647017478943,
0.12014076113700867,
-0.23248258233070374,
0.5208760499954224,
-0.14176999032497406,
-0.16452762484550476,
-0.17182962596416473,
-0.10819496959447861,
0.19246815145015717,
0.2677874267101288,
-0.12914004921913147,
-0.27471694350242615,
0.10603626817464828,
-0.20617994666099548,
0.1472238451242447,
-0.28736501932144165,
0.10714804381132126,
0.19196921586990356,
0.044244036078453064,
-0.01785784214735031,
-0.13278141617774963,
0.3083820343017578,
-0.5418761372566223,
0.18606728315353394,
-0.10323256254196167,
0.586904764175415,
0.29909834265708923,
-0.02341087907552719,
0.42607831954956055,
-0.33298808336257935,
-0.3582533001899719,
-0.44282567501068115,
0.10093772411346436,
0.2809552550315857,
-0.029541006311774254,
0.1378968209028244,
-0.3276754915714264,
0.7076431512832642,
-0.3452913761138916,
0.002765787299722433,
-0.44797471165657043,
-0.09157580882310867,
0.09301533550024033,
0.022704290226101875,
0.005679495632648468,
0.07617520540952682,
-0.0997646227478981,
-0.33862537145614624,
-0.08590984344482422,
0.129483163356781,
0.2044927477836609,
0.22545158863067627,
0.1732316017150879,
0.21397031843662262,
0.33904072642326355,
0.1038617193698883,
0.29293420910835266,
-0.16644831001758575,
-0.11286283284425735,
-0.18335673213005066,
0.4820531904697418,
0.629845380783081,
0.26625823974609375,
0.21638929843902588,
-0.10456305742263794,
-0.040334466844797134,
0.2494567334651947,
0.01795371249318123,
-0.41914236545562744,
-0.07032892853021622,
0.3541179597377777,
-0.036446765065193176,
0.6003255248069763,
0.2047508955001831,
-0.6425073146820068,
0.30230605602264404,
0.4826705753803253,
0.05645677074790001,
0.050608616322278976,
-0.11819746345281601,
0.16674096882343292,
0.03303876146674156,
0.25562888383865356,
0.6512221097946167,
0.2741757333278656,
0.2426813840866089,
0.2308562844991684,
-0.09642644226551056,
-0.25409090518951416,
-0.27382153272628784,
0.07130351662635803,
-0.1925884634256363,
0.02946598082780838,
0.07070083916187286,
-0.28812602162361145,
-0.24931485950946808,
-0.37923479080200195,
0.015770260244607925,
0.04779824614524841,
-0.03972634673118591,
0.007628228515386581,
-0.056017838418483734,
-0.16284480690956116,
-0.45103585720062256,
-0.3454926311969757,
-0.1865973174571991,
-0.6983678936958313,
-0.1090422049164772,
0.2895424962043762,
-0.6256924867630005,
-0.17462444305419922,
0.3286413550376892,
-0.12450534105300903,
0.18499913811683655,
-0.670585036277771,
-0.3457692563533783,
0.20054414868354797,
-0.06563452631235123,
-0.4162077307701111,
0.05722564831376076,
0.31639742851257324,
0.10309632122516632,
0.2832965850830078,
-0.047639667987823486,
-0.19456523656845093,
0.01463349163532257,
-0.42404651641845703,
0.2005155086517334,
-0.19811014831066132,
0.11318082362413406,
-0.005404330790042877,
-0.2507762312889099,
-0.08085126429796219,
-0.1278039515018463,
0.1899138242006302,
-0.09780455380678177,
0.0012920945882797241,
-0.16772714257240295,
-0.09493876248598099,
0.1115405485033989,
-0.08653448522090912,
-0.7437154054641724,
-0.5412392616271973,
-0.3228504955768585,
0.11311140656471252,
-0.24102556705474854,
0.14187785983085632,
0.26279541850090027,
-0.057528115808963776,
0.02065146341919899,
-0.020281746983528137,
-0.03629378229379654,
-0.207678884267807,
-0.2961929738521576,
-0.03747593238949776,
-0.013556590303778648,
-0.18120263516902924,
-0.05144541710615158,
-0.05299585685133934,
0.33284103870391846,
0.3901851773262024,
-0.17268764972686768,
0.16595983505249023,
-0.05918050557374954,
-0.004712693393230438,
0.11480892449617386,
0.15603101253509521,
0.27304476499557495,
0.030968932434916496,
0.06315582990646362,
-0.012130405753850937,
-0.02938402257859707,
0.42565247416496277,
0.2989344894886017,
0.0689525455236435,
0.2517802119255066,
0.016833631321787834,
-0.06641055643558502,
0.24451322853565216,
0.3209446370601654,
0.34934765100479126,
0.37372106313705444,
0.08745314180850983,
0.3018293082714081,
-0.10758087784051895,
-0.2019772082567215,
0.4385579228401184,
0.10807117819786072,
-0.0664287656545639,
0.2356901615858078,
0.016150975599884987,
-0.36351242661476135,
-0.22561560571193695,
0.17214098572731018,
0.04235590994358063,
-0.27327385544776917,
0.36777228116989136,
0.0257310401648283,
0.18161557614803314,
-0.16259877383708954,
-0.2604581415653229,
0.08853697776794434,
0.20662128925323486,
0.05919134244322777,
-0.04047021269798279,
-0.1929951012134552,
0.29561224579811096,
-0.41449952125549316,
0.0610373355448246,
-0.39915263652801514,
0.23090121150016785,
0.03719314560294151,
0.26562103629112244,
-0.18303945660591125,
0.08459050953388214,
0.1323576122522354,
0.1686953604221344,
0.1794889271259308,
-0.7963296175003052,
-0.5081319808959961,
0.25807857513427734,
-0.041272491216659546,
-0.13909070193767548,
-0.08315218985080719,
-0.28833064436912537,
-0.14849704504013062,
0.43310415744781494,
0.04487042874097824,
-0.41768452525138855,
-0.22063995897769928,
-0.15830396115779877,
0.37393808364868164,
0.10109323263168335,
0.2104707956314087,
-0.19743873178958893,
-0.17829275131225586,
-0.11701849848031998,
0.2660341262817383,
0.11864814907312393,
-0.118128702044487,
0.30428674817085266,
0.07798197865486145,
0.04102017730474472,
0.13419854640960693,
0.14565612375736237,
0.17586550116539001,
-0.09067758172750473,
0.08898252248764038,
-0.17308510839939117,
0.004339005798101425,
0.07711975276470184,
0.11291386187076569,
0.3774048984050751,
-0.19738689064979553,
-0.18782228231430054,
0.04583144932985306,
-0.19843508303165436,
0.4541035592556,
0.30631566047668457,
0.30324307084083557,
0.06272274255752563,
-0.13676583766937256,
-0.18358059227466583,
-0.13741435110569,
0.19510720670223236,
0.046461693942546844,
0.3057446777820587,
-0.4203996956348419,
-0.4959656000137329,
0.006267726421356201,
0.21726778149604797,
-0.11606772243976593,
0.6183969378471375,
0.1820371150970459,
-0.36379632353782654,
0.023938769474625587,
0.12600718438625336,
0.9849283695220947,
0.04769081622362137,
-0.07397246360778809,
0.08279091119766235,
-0.33550071716308594,
0.23961764574050903,
-0.33811575174331665,
0.23968271911144257,
-0.31482934951782227,
-0.2635340988636017,
-0.051351845264434814,
-0.08749213814735413,
0.3884125053882599,
0.21455244719982147,
-0.14857575297355652,
0.17129994928836823,
0.20194722712039948,
0.004249807447195053,
-0.16190747916698456,
0.41231322288513184,
-0.2519996464252472,
-0.22260813415050507,
0.05431130900979042,
0.07945483177900314,
-0.0743556022644043,
-0.10059133172035217,
-0.021240221336483955,
-0.07438889145851135,
-0.08818140625953674,
0.08434221893548965,
-0.13923372328281403,
0.03770717233419418,
-0.5448741912841797,
0.003532806411385536,
-0.31470510363578796,
-0.41528940200805664,
0.1437131017446518,
0.17525334656238556,
0.0847182348370552,
-0.24907411634922028,
0.21430590748786926,
0.0554814375936985,
0.029829949140548706,
0.08606642484664917,
0.2507682144641876,
-0.3000151515007019,
0.3130243718624115,
-0.05054325610399246,
-0.33601444959640503,
-0.07651010900735855,
-0.10379686951637268,
-0.029136743396520615,
-0.46047157049179077,
-0.0021139010787010193,
-0.08900192379951477,
-0.06389638036489487,
0.04741130396723747,
0.5011910200119019,
0.21375922858715057,
-0.12292030453681946,
0.0853983461856842,
0.13098827004432678,
-0.009330573491752148,
0.26786813139915466,
-0.35058361291885376,
-0.1870655119419098,
-0.42410680651664734,
-0.3487685024738312,
0.13486139476299286,
0.22353100776672363,
-0.13191044330596924,
0.07991953194141388,
-0.08167000859975815,
-0.19656053185462952,
0.40118417143821716,
0.5465691089630127,
-0.08794739097356796,
-0.24514572322368622,
0.04010400176048279,
-0.34376758337020874,
-0.11856575310230255,
-0.046244170516729355,
0.0961432158946991,
0.2671124339103699,
0.2269536703824997,
-0.1093563586473465,
-0.12208512425422668,
0.20459942519664764,
0.05604173243045807,
0.15862156450748444,
-0.17168408632278442,
-0.23045174777507782,
0.2959853410720825,
0.2857677638530731,
-0.2842212915420532,
-0.10521167516708374,
-0.05744662135839462,
0.0814913809299469,
0.03227483108639717,
0.13590288162231445,
-0.009027606807649136,
0.2274610996246338,
0.039816662669181824,
-0.24990828335285187,
-0.2717948853969574,
-0.05147131532430649,
-0.08159954845905304,
0.10589942336082458,
0.1697380244731903,
0.17160572111606598,
0.3742363154888153,
-0.2249566912651062,
-0.08802276849746704,
-0.07709339261054993,
0.30859118700027466,
0.18799090385437012,
-0.02752528339624405,
0.1648973524570465,
-0.11117126047611237,
0.08139674365520477,
-0.06373931467533112,
0.21703319251537323,
0.1264251470565796,
-0.032755106687545776,
0.48395881056785583,
0.07602192461490631,
0.1110299825668335,
-0.15191638469696045,
0.03265421837568283,
0.23939764499664307,
-0.07143892347812653,
0.07023297250270844,
-0.49018654227256775,
0.10667908191680908,
0.2584301829338074,
0.31296518445014954,
0.2199157178401947,
0.3236783444881439,
-0.10631989687681198,
0.13657604157924652,
0.2814667224884033,
0.14942361414432526,
-0.21722616255283356,
0.008129170164465904,
0.4324057102203369,
-0.11418530344963074,
0.18931899964809418,
0.6332741975784302,
0.5160235166549683,
0.06385283172130585,
0.3735553026199341,
-0.3664915859699249,
0.019551146775484085,
-0.15801259875297546,
0.28765609860420227,
0.1989530622959137,
-0.3435719907283783,
-0.008346904069185257,
0.467380166053772,
0.26085779070854187,
0.013173200190067291,
-0.020451143383979797,
-0.3702906370162964,
0.16840028762817383,
0.47484031319618225,
0.20195381343364716,
0.09559960663318634,
-0.14172321557998657,
-0.04629386588931084,
0.4105336666107178,
-0.06888072192668915,
-0.12183215469121933,
-0.07682198286056519,
0.21285536885261536,
-0.1870405524969101,
-0.2848094701766968,
0.25313499569892883,
0.11095021665096283,
-0.2646322250366211,
0.11398422718048096,
-0.03290724754333496,
-0.08486960828304291,
-0.2566359341144562,
0.13822174072265625,
0.08820471167564392,
-0.30356037616729736,
0.3480520248413086,
0.2333991378545761,
0.10015466064214706,
-0.17070163786411285,
0.19401103258132935,
-0.2031846046447754,
0.02433868497610092,
-0.12414577603340149,
0.41890159249305725,
-0.1969907432794571,
0.020934294909238815,
0.024830669164657593,
0.3182595670223236,
0.053247563540935516,
-0.007085565477609634,
0.03054862841963768,
0.26667940616607666,
0.05928179994225502,
0.21320518851280212,
-0.023864617571234703,
0.262864351272583,
0.26464322209358215,
0.17756770551204681,
0.36848247051239014,
-0.019525043666362762,
-0.04373586177825928,
-0.227528378367424,
0.1963343471288681,
-0.2719419300556183,
-0.08887358009815216,
0.06412234157323837,
0.027378879487514496,
0.02748177945613861,
-0.19047632813453674,
0.1537702977657318,
-0.24457085132598877,
0.08256808668375015,
0.3190806210041046,
-0.13345195353031158,
-0.05755714327096939,
0.01446398813277483,
0.07648327201604843,
-0.053536880761384964,
0.03647864609956741,
-0.13694100081920624,
0.10688076913356781,
-0.2773878276348114,
-0.3973068594932556,
-0.5407937169075012,
0.04737970978021622,
-0.07312974333763123,
-0.14287510514259338,
-0.25328531861305237,
0.12215852737426758,
0.44804665446281433,
0.24218133091926575,
-0.02259950339794159,
0.30971837043762207,
0.24430492520332336,
0.0017372146248817444,
-0.36670148372650146,
0.20644891262054443,
0.09317529201507568,
0.3003847599029541,
-0.007113190367817879,
0.08219646662473679,
-0.012172456830739975,
0.2777656018733978,
-0.07543884217739105,
-0.017731137573719025,
-0.01723518595099449,
0.18831753730773926,
-0.008159950375556946,
0.3189551532268524,
0.16566325724124908,
0.27532893419265747,
-0.012037273496389389,
-0.033523350954055786,
-0.2090340256690979,
-0.0022415299899876118,
-0.43335625529289246,
0.4266466200351715,
-0.044064607471227646,
0.1827378123998642,
-0.21220140159130096,
-0.16234663128852844,
-0.2630763649940491,
0.16727963089942932,
0.0798291563987732,
0.2675003707408905,
-0.024420905858278275,
0.3098958432674408,
0.3590691089630127,
-0.012730976566672325,
0.06311329454183578,
0.33293771743774414,
0.20442906022071838,
-0.12867145240306854,
-0.142104834318161,
-0.19002027809619904,
-0.021414905786514282,
0.35130587220191956,
0.043310705572366714,
0.035018064081668854,
0.14875386655330658,
0.4033876955509186,
0.17239247262477875,
-0.5031598210334778,
0.018268965184688568,
0.19992592930793762,
-0.14168095588684082,
-0.09279001504182816,
0.2862269878387451,
0.14626507461071014,
-0.3139478266239166,
-0.05725805461406708,
-0.161741703748703,
0.08202582597732544,
-0.1910753846168518,
0.1697109192609787,
-0.12537142634391785
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | In this case we should have named splits, so config `ner` has splits `train`, `validation`, `test-en`, `test-ar`, `test-bg`, etc...
This is more in the spirit of the task afaiu, and will avoid making users do the filtering step themselves when testing different models or different configurations of the same model. | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 50 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
In this case we should have named splits, so config `ner` has splits `train`, `validation`, `test-en`, `test-ar`, `test-bg`, etc...
This is more in the spirit of the task afaiu, and will avoid making users do the filtering step themselves when testing different models or different configurations of the same model. | [
-0.4026004374027252,
-0.09584897756576538,
-0.10031981766223907,
-0.14071565866470337,
-0.14861799776554108,
-0.134750097990036,
0.2657963037490845,
0.31443333625793457,
0.013364069163799286,
0.18667291104793549,
-0.17175130546092987,
0.08897803723812103,
-0.0634426549077034,
0.3414170742034912,
0.3362114131450653,
-0.048912957310676575,
-0.07187242060899734,
0.10335122048854828,
0.21110069751739502,
-0.051676567643880844,
-0.06870269030332565,
0.26747927069664,
0.07626459002494812,
0.18084409832954407,
-0.17072010040283203,
-0.396427720785141,
-0.006960723549127579,
0.18195191025733948,
-0.08638262748718262,
-0.30379167199134827,
-0.06486930698156357,
0.23611627519130707,
-0.2647855877876282,
0.22272777557373047,
-0.00010219524847343564,
0.018640026450157166,
0.06209705397486687,
-0.12187813222408295,
0.09508566558361053,
-0.09297576546669006,
-0.23748791217803955,
-0.23173537850379944,
-0.0698726549744606,
-0.0005481094121932983,
-0.39071255922317505,
0.13908448815345764,
-0.008609151467680931,
-0.32989776134490967,
0.32661330699920654,
0.34454455971717834,
0.23716174066066742,
0.17902922630310059,
-0.14791743457317352,
-0.16079041361808777,
0.22580847144126892,
-0.05670475959777832,
-0.09425731003284454,
0.11173103749752045,
0.42716675996780396,
0.11568723618984222,
-0.23368147015571594,
0.4810345768928528,
0.37606027722358704,
-0.1239866316318512,
-0.19674667716026306,
-0.06983471661806107,
0.11622373759746552,
-0.23557445406913757,
-0.2229495644569397,
0.663497269153595,
-0.09002036601305008,
-0.1845545768737793,
-0.40454888343811035,
-0.1773204654455185,
-0.038808830082416534,
-0.29914578795433044,
0.10578453540802002,
0.25637930631637573,
-0.1572856307029724,
0.09808240830898285,
0.2095358818769455,
-0.5304239988327026,
-0.10126462578773499,
-0.006821520626544952,
-0.17445218563079834,
0.5518789291381836,
0.012646384537220001,
-0.033502496778964996,
0.16987818479537964,
0.06893804669380188,
-0.11116514354944229,
-0.03332431614398956,
-0.10568609833717346,
-0.12998314201831818,
-0.30201461911201477,
-0.15657469630241394,
-0.030632682144641876,
0.14551100134849548,
0.11339501291513443,
0.0860128402709961,
0.10054886341094971,
0.21820366382598877,
0.12894532084465027,
0.1670173853635788,
-0.1857685148715973,
0.055955346673727036,
0.21648502349853516,
0.019334852695465088,
0.2798151969909668,
-0.16694405674934387,
-0.18728861212730408,
0.04046787694096565,
0.16808094084262848,
-0.07446420937776566,
-0.43832993507385254,
-0.011864900588989258,
-0.17129310965538025,
-0.1781165599822998,
-0.3314334452152252,
0.02479737438261509,
-0.006887778639793396,
-0.1436263620853424,
0.20920635759830475,
0.27930060029029846,
0.02244989573955536,
-0.14788174629211426,
-0.19342005252838135,
0.16450533270835876,
-0.25259265303611755,
-0.34523266553878784,
-0.1880887746810913,
0.4269099831581116,
-0.2951262891292572,
-0.04946433752775192,
0.02863597497344017,
-0.08682449162006378,
0.12081194669008255,
0.04713626950979233,
-0.19098536670207977,
0.08831958472728729,
0.36279574036598206,
-0.025784961879253387,
0.061696238815784454,
0.184879869222641,
0.015541698783636093,
-0.10874152928590775,
0.03496666997671127,
-0.1832042634487152,
-0.3418172597885132,
-0.22025030851364136,
0.0020333901047706604,
-0.24989399313926697,
-0.20683252811431885,
0.2593635618686676,
-0.1927214115858078,
-0.10976956784725189,
0.5019010305404663,
0.7477037906646729,
-0.11386848241090775,
-0.30973172187805176,
0.010349400341510773,
0.07223030924797058,
-0.15513262152671814,
-0.17812877893447876,
0.14234045147895813,
0.23481985926628113,
-0.7939332127571106,
-0.4151144027709961,
-0.11498115211725235,
-0.37403833866119385,
0.23203983902931213,
0.030663123354315758,
-0.17460264265537262,
-0.17906910181045532,
-0.06764041632413864,
0.5377990007400513,
0.47893086075782776,
-0.03263936936855316,
-0.1506251096725464,
0.19688858091831207,
-0.3211743235588074,
-0.024689482524991035,
0.32033249735832214,
0.10187532007694244,
0.04025125876069069,
-0.0075319367460906506,
-0.1099250465631485,
0.5292524695396423,
-0.3676404654979706,
-0.33681944012641907,
-0.24373212456703186,
0.024928582832217216,
0.39886873960494995,
0.16694600880146027,
0.24975886940956116,
-0.34296903014183044,
0.18502596020698547,
0.007182269357144833,
0.07687730342149734,
-0.21352115273475647,
0.0529179573059082,
0.11746606975793839,
0.33166295289993286,
-0.1416356861591339,
-0.19055527448654175,
-0.17985713481903076,
-0.16156619787216187,
0.02338608354330063,
-0.4569211006164551,
0.33564138412475586,
0.2027997076511383,
-0.17934201657772064,
-0.07732363045215607,
-0.24384133517742157,
-0.22530369460582733,
-0.25633475184440613,
0.23260238766670227,
0.295212984085083,
0.12883150577545166,
0.1328582912683487,
-0.15173077583312988,
0.34881100058555603,
-0.23254990577697754,
0.12851393222808838,
-0.33628275990486145,
0.13964000344276428,
-0.11866817623376846,
-0.1851198822259903,
-0.14787034690380096,
0.13600075244903564,
-0.1948617696762085,
-0.2928481698036194,
0.015803806483745575,
0.4303458034992218,
0.12530821561813354,
-0.023200005292892456,
0.22714585065841675,
0.0917501226067543,
0.29115110635757446,
-0.03360103815793991,
0.11742682754993439,
-0.08365054428577423,
-0.08121073246002197,
0.07726674526929855,
-0.06432610005140305,
0.5886889696121216,
0.23943224549293518,
-0.19111564755439758,
0.18927739560604095,
0.02020311914384365,
0.35956379771232605,
-0.17961528897285461,
-0.1154729500412941,
-0.27851712703704834,
0.3284754455089569,
-0.06798242032527924,
0.16048669815063477,
0.11145148426294327,
-0.47906652092933655,
-0.009428799152374268,
0.48594507575035095,
0.059087131172418594,
0.36488091945648193,
-0.023730412125587463,
0.12976063787937164,
-0.10837353020906448,
0.06822134554386139,
0.43154793977737427,
0.10738351941108704,
0.2848716080188751,
0.2683020532131195,
-0.032888300716876984,
-0.37751561403274536,
-0.25269073247909546,
0.1884729266166687,
-0.164417564868927,
-0.021105922758579254,
0.23145845532417297,
-0.17869751155376434,
-0.43380481004714966,
-0.46702128648757935,
-0.1032852977514267,
0.27454113960266113,
-0.048777416348457336,
-0.1409633308649063,
-0.1502787321805954,
-0.1997583508491516,
-0.21322041749954224,
-0.3502654731273651,
-0.09713339060544968,
-0.3460000157356262,
-0.18677861988544464,
0.5182232856750488,
-0.29244619607925415,
-0.1760053187608719,
0.3785412311553955,
-0.15981289744377136,
0.3075079321861267,
-0.20443470776081085,
-0.04388701915740967,
0.004038084298372269,
-0.09859737753868103,
-0.3283260464668274,
0.2513149380683899,
0.19084535539150238,
0.22587907314300537,
0.36497896909713745,
-0.07438836991786957,
0.09864969551563263,
0.07160040736198425,
-0.7308650612831116,
0.16247868537902832,
-0.1577543169260025,
0.2988201975822449,
0.12679849565029144,
-0.11827939748764038,
0.11313223838806152,
-0.28687283396720886,
0.21035030484199524,
-0.24080555140972137,
-0.19706371426582336,
0.07926074415445328,
-0.04071628674864769,
0.039107076823711395,
-0.2071118950843811,
-0.8082510828971863,
-0.4853227138519287,
-0.35896819829940796,
-0.11585627496242523,
-0.15790675580501556,
0.11482755839824677,
0.1002139002084732,
0.07310677319765091,
0.11148460954427719,
-0.28059589862823486,
0.007613158784806728,
-0.1510389894247055,
-0.12340718507766724,
0.11636996269226074,
-0.20145933330059052,
-0.1243724375963211,
-0.07869429886341095,
-0.20791631937026978,
0.15819191932678223,
0.0877094566822052,
-0.12865889072418213,
-0.030688554048538208,
-0.03904516249895096,
0.12437048554420471,
0.41127467155456543,
-0.013958794996142387,
0.3051310181617737,
-0.02763047255575657,
-0.18607474863529205,
-0.20514628291130066,
-0.004455456510186195,
0.33565646409988403,
0.032270822674036026,
0.19742704927921295,
-0.12032502144575119,
0.33493492007255554,
0.13397786021232605,
0.3058945834636688,
-0.08274470269680023,
-0.03483913466334343,
0.37346407771110535,
0.006159085780382156,
0.1780785322189331,
-0.03714314103126526,
-0.1299077719449997,
0.22219222784042358,
0.04007462412118912,
0.13387431204319,
0.19586676359176636,
-0.0403217077255249,
-0.37948837876319885,
-0.06361671537160873,
0.050812918692827225,
0.014222756028175354,
-0.24567700922489166,
0.2767379581928253,
-0.06906644999980927,
0.23304128646850586,
-0.06479610502719879,
-0.2957937717437744,
0.04681393876671791,
0.07907883077859879,
0.08805644512176514,
0.02165549248456955,
-0.07713878899812698,
-0.06550385057926178,
-0.6089605093002319,
0.0905628576874733,
-0.06173550337553024,
0.3322024941444397,
0.21503432095050812,
0.23621657490730286,
-0.35454970598220825,
-0.21370622515678406,
0.006705455482006073,
-0.004526784177869558,
0.42455023527145386,
-0.6387302875518799,
-0.32579976320266724,
0.12511666119098663,
-0.17916123569011688,
-0.17541146278381348,
-0.003470052033662796,
-0.4442121684551239,
-0.22532059252262115,
0.4683685302734375,
0.14491671323776245,
-0.34361833333969116,
-0.276591032743454,
0.18270643055438995,
0.09707065671682358,
-0.20054468512535095,
0.2465618997812271,
-0.17003613710403442,
-0.0871613472700119,
-0.253956139087677,
0.42575803399086,
-0.16590069234371185,
0.062220681458711624,
0.2831776738166809,
-0.11509975790977478,
0.06467179954051971,
-0.039701588451862335,
0.31010007858276367,
0.40985527634620667,
-0.02499522641301155,
0.08887644112110138,
-0.17913606762886047,
-0.07129570841789246,
0.14177431166172028,
-0.12597694993019104,
0.20179101824760437,
-0.2762451171875,
-0.02617197483778,
0.10006048530340195,
-0.23199905455112457,
0.3551788032054901,
0.3125632703304291,
0.12800383567810059,
0.3205569088459015,
0.049450844526290894,
-0.052153632044792175,
-0.08422371745109558,
0.44970378279685974,
0.015880664810538292,
0.25809773802757263,
-0.3180544674396515,
-0.33378446102142334,
-0.06616554409265518,
0.22856499254703522,
-0.2107950747013092,
0.28006115555763245,
0.26762062311172485,
-0.23181460797786713,
0.18746958673000336,
0.10281966626644135,
0.9224631786346436,
0.05987027287483215,
-0.12005025148391724,
0.1358323097229004,
-0.19689033925533295,
0.11866895854473114,
-0.3971570134162903,
0.1130547970533371,
-0.24368542432785034,
-0.3141518533229828,
-0.13518460094928741,
0.0055969394743442535,
0.4562392234802246,
0.18787255883216858,
-0.29965686798095703,
0.21482717990875244,
0.135868638753891,
-0.003198053687810898,
-0.07462643086910248,
0.3480921685695648,
-0.11921382695436478,
-0.1294189989566803,
-0.03603006899356842,
0.1912573128938675,
0.004481896758079529,
-0.1313333809375763,
0.06670477986335754,
-0.1764066368341446,
0.03293633088469505,
-0.06990469247102737,
-0.10381996631622314,
0.04134807735681534,
-0.17753107845783234,
0.11770516633987427,
-0.053680647164583206,
-0.1844179481267929,
0.10922402143478394,
-0.06904073059558868,
0.13804680109024048,
0.15808364748954773,
0.12002548575401306,
0.2941993176937103,
-0.07625120133161545,
0.14710211753845215,
0.1365598887205124,
-0.14271177351474762,
0.6267645359039307,
-0.12895557284355164,
-0.3069668114185333,
0.20949086546897888,
0.056266121566295624,
-0.17527304589748383,
-0.1619955152273178,
-0.04754165560007095,
0.07620558142662048,
-0.24437052011489868,
-0.005642191041260958,
0.22925914824008942,
0.013497870415449142,
-0.4274730086326599,
0.20061494410037994,
0.06144024804234505,
-0.4205585718154907,
0.15200595557689667,
0.017350051552057266,
-0.16538682579994202,
-0.27789655327796936,
-0.25562700629234314,
0.12163253128528595,
0.31934502720832825,
0.04481002315878868,
0.0902814269065857,
-0.06826403737068176,
-0.3680659532546997,
0.0006735026836395264,
0.787630558013916,
-0.3748193681240082,
0.1325346678495407,
-0.06872924417257309,
-0.5916546583175659,
0.07739599794149399,
0.03151934593915939,
0.36490321159362793,
0.32133424282073975,
-0.05123566463589668,
-0.19565007090568542,
-0.03812076523900032,
0.07582181692123413,
0.07195727527141571,
0.40788620710372925,
-0.08050364255905151,
0.06829887628555298,
-0.027434000745415688,
0.45703014731407166,
-0.45966193079948425,
-0.1192254051566124,
-0.33721378445625305,
0.234547957777977,
-0.2614816725254059,
0.0434475913643837,
0.09876111149787903,
0.17377527058124542,
0.22004739940166473,
-0.09755273163318634,
-0.21033743023872375,
-0.23796698451042175,
-0.1600090116262436,
0.06578368693590164,
-0.12055902928113937,
0.20124325156211853,
0.20699994266033173,
0.18689610064029694,
0.08337752521038055,
0.013190697878599167,
0.3018628656864166,
-0.2768762409687042,
-0.020871125161647797,
0.17725273966789246,
0.08104805648326874,
-0.2472323775291443,
0.10711658000946045,
-0.04072180390357971,
-0.08928738534450531,
-0.0021476522088050842,
0.2132827341556549,
0.1496022641658783,
0.040396496653556824,
-0.1936972737312317,
-0.016337519511580467,
0.23183897137641907,
0.16793835163116455,
-0.03427191078662872,
-0.30174922943115234,
0.09242305159568787,
0.013381119817495346,
0.09276582300662994,
0.3654089868068695,
0.15594330430030823,
0.04386686906218529,
0.20866714417934418,
0.2636065185070038,
0.34189900755882263,
-0.33981141448020935,
-0.043731771409511566,
0.5402925610542297,
-0.16363964974880219,
0.47290849685668945,
0.31722062826156616,
0.3986678719520569,
0.4365917444229126,
0.3079840838909149,
-0.12626755237579346,
-0.06596239656209946,
-0.0754207968711853,
0.25860297679901123,
0.41095706820487976,
-0.08998985588550568,
0.03647032752633095,
0.4287824332714081,
-0.030845418572425842,
0.07108189165592194,
0.18863366544246674,
0.011956974864006042,
0.48455920815467834,
0.1763230562210083,
0.3700488805770874,
0.1930941641330719,
-0.14337730407714844,
0.03014354594051838,
0.10229630768299103,
-0.0258093923330307,
0.1754259467124939,
0.08620931953191757,
0.2275402843952179,
-0.11408690363168716,
-0.2702922523021698,
-0.08591706305742264,
0.2736179530620575,
-0.13587477803230286,
-0.1678970754146576,
-0.2852212190628052,
-0.2245146632194519,
-0.2584622800350189,
0.1192123144865036,
0.319563627243042,
-0.06345881521701813,
0.17012134194374084,
0.16031238436698914,
0.15906575322151184,
-0.07539794594049454,
0.2455551028251648,
-0.033656470477581024,
-0.02972300350666046,
-0.33055177330970764,
0.36963531374931335,
0.14340227842330933,
-0.08547604084014893,
0.0771523118019104,
0.07527360320091248,
0.12066535651683807,
-0.2689934968948364,
-0.07466180622577667,
0.1485329121351242,
-0.05471765622496605,
-0.05435555800795555,
-0.10389485955238342,
0.23987947404384613,
0.23677729070186615,
0.4322730302810669,
0.34601861238479614,
0.19751183688640594,
-0.22119925916194916,
0.08327332139015198,
0.11076231300830841,
-0.1613859385251999,
-0.14166665077209473,
0.243382066488266,
0.18831634521484375,
0.23905208706855774,
-0.47316572070121765,
0.03508465737104416,
-0.44958505034446716,
0.09037595242261887,
0.3246411085128784,
-0.2897537350654602,
-0.002756783738732338,
-0.08983121067285538,
0.11256259679794312,
0.1293250322341919,
0.31422141194343567,
-0.12940682470798492,
0.051674310117959976,
-0.15914364159107208,
-0.20199689269065857,
-0.4413149654865265,
0.05473112687468529,
-0.040384139865636826,
-0.18356281518936157,
-0.2636704742908478,
0.30459126830101013,
0.2783791720867157,
0.03689111769199371,
-0.1825137883424759,
0.13890066742897034,
0.034669049084186554,
0.021656688302755356,
-0.39719220995903015,
0.2674286961555481,
0.03831963241100311,
0.26218631863594055,
0.05112593621015549,
-0.04875953122973442,
-0.03009217604994774,
-0.021344754844903946,
0.062418133020401,
0.0825682282447815,
-0.2733345627784729,
0.39144137501716614,
-0.03974487632513046,
0.19814056158065796,
0.04420701414346695,
0.5657776594161987,
-0.14865654706954956,
0.08340500295162201,
-0.1370045244693756,
-0.06432504951953888,
-0.42022818326950073,
0.1341942846775055,
0.24242611229419708,
0.5128123760223389,
0.11956759542226791,
-0.17672784626483917,
-0.12908653914928436,
0.32370686531066895,
0.12421922385692596,
0.02614963799715042,
0.006924442946910858,
0.2358243763446808,
0.2107905149459839,
-0.16030460596084595,
0.3413083851337433,
0.5047714114189148,
0.14590078592300415,
-0.10166188329458237,
0.08467665314674377,
-0.391771525144577,
0.15129786729812622,
0.04467717930674553,
-0.09466926753520966,
-0.12555715441703796,
0.04339002072811127,
0.39629313349723816,
0.014886438846588135,
-0.467768132686615,
-0.13402540981769562,
0.1449146568775177,
-0.03995758295059204,
-0.027733953669667244,
0.2085357904434204,
0.43236103653907776,
-0.011717461049556732,
-0.05924537032842636,
-0.3107561767101288,
0.13720454275608063,
-0.22013449668884277,
-0.010233737528324127,
-0.27527737617492676
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | I see your point!
I think this would be quite feasible to do and makes sense to me as well! In the paper results are reported per language, so it seems more natural to do it this way.
Good for me @yjernite ! What do the others think? @lhoestq
| XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 49 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
I see your point!
I think this would be quite feasible to do and makes sense to me as well! In the paper results are reported per language, so it seems more natural to do it this way.
Good for me @yjernite ! What do the others think? @lhoestq
| [
-0.030935566872358322,
-0.01574518531560898,
-0.12588994204998016,
-0.1005203127861023,
-0.1579119861125946,
-0.17087551951408386,
0.5267760157585144,
0.005605854094028473,
0.023872986435890198,
0.09561340510845184,
-0.07178405672311783,
0.004015203565359116,
-0.029220227152109146,
0.2641967833042145,
0.46964001655578613,
-0.006495963782072067,
0.01792304217815399,
-0.09274271130561829,
0.1055237203836441,
-0.031187381595373154,
-0.2255670428276062,
0.040876567363739014,
0.19348861277103424,
0.1281033456325531,
-0.13080866634845734,
-0.22625216841697693,
-0.18155190348625183,
0.0034787990152835846,
-0.16710053384304047,
-0.1984766125679016,
-0.1351335495710373,
0.12721766531467438,
-0.21738684177398682,
0.04985402524471283,
-0.00010464780643815175,
-0.08203534036874771,
0.1216273084282875,
-0.041464678943157196,
0.34314659237861633,
0.09873832762241364,
-0.2769542634487152,
-0.5269678831100464,
-0.3578152656555176,
-0.2653224766254425,
-0.016458097845315933,
-0.1502900868654251,
-0.01983361877501011,
-0.540976345539093,
-0.22309346497058868,
-0.08313465863466263,
0.2834675908088684,
0.011547824367880821,
-0.013897564262151718,
-0.0006391917122527957,
0.38403329253196716,
-0.21630187332630157,
-0.10170382261276245,
0.3516215682029724,
0.6787542104721069,
0.19978222250938416,
-0.06225656718015671,
0.5023945569992065,
0.17198412120342255,
-0.36394038796424866,
-0.15549099445343018,
0.15484945476055145,
-0.015757285058498383,
-0.17778946459293365,
0.004457857459783554,
0.48878374695777893,
0.17322732508182526,
-0.21989038586616516,
-0.5166102051734924,
-0.15109002590179443,
-0.025663811713457108,
0.1456088125705719,
-0.1370285153388977,
0.3663787245750427,
0.31659722328186035,
0.060445625334978104,
0.30060023069381714,
-0.5922684073448181,
-0.04748835042119026,
0.02956506237387657,
-0.011481709778308868,
0.3938576877117157,
-0.01928941160440445,
0.2202582061290741,
-0.06965920329093933,
0.15654034912586212,
0.04422479495406151,
-0.04535936564207077,
-0.20478278398513794,
-0.14754410088062286,
-0.04272414371371269,
-0.0027040913701057434,
0.06096971035003662,
0.22283726930618286,
0.23478057980537415,
-0.21678966283798218,
0.16606786847114563,
0.11596909165382385,
-0.1366977095603943,
0.13650059700012207,
0.048407554626464844,
-0.06705808639526367,
0.11844373494386673,
-0.12177011370658875,
0.18721045553684235,
-0.4778735935688019,
0.1259695142507553,
-0.005606338381767273,
0.12649913132190704,
-0.016919568181037903,
-0.25243887305259705,
0.07580558955669403,
-0.11828692257404327,
-0.1687629222869873,
-0.14063021540641785,
0.015983259305357933,
-0.16706448793411255,
-0.2575622498989105,
-0.13451912999153137,
0.1522018015384674,
0.11741213500499725,
0.03145335987210274,
-0.027404511347413063,
0.3192722797393799,
-0.0030033374205231667,
-0.26013830304145813,
-0.018207494169473648,
0.45555660128593445,
-0.3091595470905304,
-0.027530422434210777,
-0.11484916508197784,
0.007409332320094109,
-0.22643262147903442,
0.18292765319347382,
0.12475485354661942,
-0.029665373265743256,
0.2931874692440033,
-0.09924088418483734,
0.19601944088935852,
-0.271939754486084,
0.07919111847877502,
0.14892061054706573,
-0.06739769876003265,
-0.19746141135692596,
-0.3425370156764984,
0.14980196952819824,
-0.06994617730379105,
-0.009268861263990402,
-0.4532344341278076,
0.19464042782783508,
-0.03170192241668701,
-0.36391568183898926,
0.23360762000083923,
0.6543383598327637,
0.02682516723871231,
-0.15717819333076477,
0.33935630321502686,
0.1094694510102272,
-0.1671152412891388,
-0.3618365526199341,
-0.11149962991476059,
0.15971049666404724,
-0.5814821124076843,
-0.20364037156105042,
0.15482720732688904,
-0.10975997149944305,
0.22207263112068176,
0.09835892915725708,
-0.3220050036907196,
0.024871814996004105,
-0.17048746347427368,
0.43392282724380493,
0.2253323495388031,
-0.30007657408714294,
-0.14073258638381958,
0.026658453047275543,
-0.3058370351791382,
-0.0017784461379051208,
0.32717424631118774,
0.28027695417404175,
0.03646748512983322,
-0.04360351711511612,
0.0005733519792556763,
0.2896568775177002,
-0.15173344314098358,
0.005579592660069466,
-0.28499364852905273,
-0.23720458149909973,
0.38214510679244995,
0.17928294837474823,
0.09551328420639038,
-0.22975048422813416,
0.4316015839576721,
-0.0239206925034523,
0.10886866599321365,
-0.4153650999069214,
0.14522303640842438,
0.007380140945315361,
0.38763847947120667,
-0.12589097023010254,
-0.2548121511936188,
-0.11639723181724548,
-0.18925753235816956,
0.14940810203552246,
-0.17399996519088745,
0.38788071274757385,
0.23928679525852203,
-0.35969841480255127,
0.10902108252048492,
-0.30479884147644043,
-0.09975849092006683,
-0.2800361216068268,
0.2225358486175537,
0.28469306230545044,
0.050599005073308945,
0.23572759330272675,
-0.17983666062355042,
0.5148314237594604,
-0.06500858813524246,
-0.2156122922897339,
-0.28449851274490356,
0.2719516456127167,
0.061556942760944366,
0.01664021611213684,
-0.30196893215179443,
0.35404300689697266,
-0.2673734426498413,
-0.17142917215824127,
0.22492080926895142,
0.2003876268863678,
-0.28065189719200134,
0.20078498125076294,
0.3705322742462158,
0.21343982219696045,
0.3387434780597687,
-0.03681936487555504,
0.4451637864112854,
-0.2990207076072693,
-0.006435462273657322,
-0.05074142664670944,
0.262906014919281,
0.5275499224662781,
0.3378444314002991,
-0.020177781581878662,
0.06356330215930939,
-0.08398858457803726,
0.1785041093826294,
-0.06659884005784988,
-0.2512599229812622,
-0.14786142110824585,
0.21859081089496613,
0.18338268995285034,
0.3503827154636383,
-0.014736523851752281,
-0.5163175463676453,
0.30149784684181213,
0.6254872679710388,
-0.029241912066936493,
0.3895091116428375,
-0.09209359437227249,
0.019296035170555115,
0.022983025759458542,
0.051235757768154144,
0.35028699040412903,
0.24379104375839233,
0.3249134421348572,
0.23954002559185028,
-0.12209729105234146,
-0.023048173636198044,
-0.08754061162471771,
-0.00931897759437561,
-0.22092826664447784,
-0.09160036593675613,
0.1658770740032196,
0.07606819272041321,
-0.15493746101856232,
-0.5849462747573853,
0.07984389364719391,
0.02613796480000019,
-0.3220531940460205,
0.04856676235795021,
-0.0801825150847435,
0.06100712716579437,
-0.3757743835449219,
-0.42899268865585327,
-0.2512621283531189,
-0.36701154708862305,
-0.10116299241781235,
0.24500638246536255,
-0.5446111559867859,
-0.1156204491853714,
0.08391721546649933,
0.13575857877731323,
0.2886964678764343,
-0.4931296706199646,
-0.08885776251554489,
0.07178376615047455,
0.052164044231176376,
-0.12083334475755692,
0.21504324674606323,
0.06494693458080292,
0.06134524568915367,
0.6506128311157227,
-0.02976060099899769,
0.21314528584480286,
-0.3529449701309204,
-0.5960315465927124,
0.09576606750488281,
-0.25900429487228394,
0.02481919154524803,
0.1024247333407402,
-0.4434506297111511,
0.04658200591802597,
-0.13951674103736877,
0.2609797716140747,
-0.20499545335769653,
-0.015106740407645702,
-0.23052996397018433,
-0.09535270184278488,
0.0693267285823822,
-0.18326148390769958,
-0.4359951913356781,
-0.6468154788017273,
-0.34349972009658813,
0.20101116597652435,
-0.08077612519264221,
0.07853545248508453,
-0.22436419129371643,
-0.19368867576122284,
0.20316380262374878,
-0.10496154427528381,
-0.15067055821418762,
-0.301816463470459,
-0.2455633133649826,
0.00021397694945335388,
-0.12817099690437317,
-0.2957012355327606,
-0.11564724147319794,
-0.09069844335317612,
0.18208295106887817,
0.11909171938896179,
-0.1470336616039276,
-0.08063066750764847,
-0.06694106757640839,
0.029389765113592148,
0.28193962574005127,
0.42899200320243835,
0.21101006865501404,
-0.03708992898464203,
-0.15182694792747498,
-0.1413823366165161,
-0.038781702518463135,
0.08773699402809143,
0.18654903769493103,
-0.07847759872674942,
0.11156757920980453,
0.1964413821697235,
0.2549843490123749,
0.09819796681404114,
-0.009435400366783142,
0.07131904363632202,
0.44709768891334534,
-0.031126467511057854,
0.3983822166919708,
-0.23279675841331482,
-0.33130720257759094,
0.22874926030635834,
-0.18431270122528076,
0.16174866259098053,
0.12895727157592773,
0.08061759918928146,
-0.4328382909297943,
-0.13196298480033875,
0.1240721344947815,
-0.21550297737121582,
-0.12298883497714996,
0.27153342962265015,
0.12188408523797989,
0.13680444657802582,
0.026894930750131607,
-0.5252271294593811,
-0.09804695844650269,
0.06577406823635101,
0.19271478056907654,
0.08766991645097733,
0.10083264112472534,
0.020432379096746445,
-0.4529145359992981,
0.10355783253908157,
-0.6617615818977356,
0.3235161304473877,
0.33329761028289795,
0.08459734171628952,
-0.1681656688451767,
-0.026971496641635895,
0.06997395306825638,
-0.08315625786781311,
0.16525349020957947,
-0.7830038666725159,
-0.40388673543930054,
0.2012944519519806,
-0.15015043318271637,
-0.09067489951848984,
0.09445762634277344,
-0.43246567249298096,
-0.012222450226545334,
0.42491504549980164,
0.14343199133872986,
-0.49034008383750916,
0.07585915178060532,
0.10319428890943527,
0.2933274507522583,
-0.03665413707494736,
0.15049147605895996,
-0.13157762587070465,
-0.24565339088439941,
-0.20364393293857574,
0.08410412073135376,
0.08980200439691544,
0.022534538060426712,
0.4347541332244873,
-0.249348983168602,
-0.04786652326583862,
-0.07384159415960312,
0.10020139813423157,
-0.037644222378730774,
-0.21054872870445251,
0.2348746657371521,
-0.10142366588115692,
-0.13691549003124237,
0.16775931417942047,
-0.28997036814689636,
0.4333431124687195,
-0.2037702351808548,
0.13323572278022766,
0.19087070226669312,
-0.4832283556461334,
0.49735698103904724,
0.2202969789505005,
0.2189731001853943,
0.2997465133666992,
-0.12331965565681458,
-0.13889242708683014,
-0.14289064705371857,
0.1032075434923172,
0.1299717128276825,
0.4290403723716736,
-0.4069591164588928,
-0.365621954202652,
0.2014390528202057,
0.23211748898029327,
-0.09979543089866638,
0.5052691698074341,
0.3039490878582001,
-0.4377228021621704,
-0.06912752985954285,
0.00890669971704483,
1.0040175914764404,
-0.25641512870788574,
0.1959460973739624,
0.057891443371772766,
-0.17964667081832886,
0.3725501298904419,
-0.30167466402053833,
-0.1616477221250534,
-0.2634377181529999,
-0.2750137150287628,
-0.1262904405593872,
-0.053395237773656845,
0.3447171449661255,
0.14117571711540222,
-0.2564907968044281,
0.02611578069627285,
0.19968535006046295,
-0.08217261731624603,
-0.059416256844997406,
0.5094428658485413,
-0.16303756833076477,
-0.24484318494796753,
-0.07127641886472702,
0.14284151792526245,
0.12110622972249985,
-0.19614413380622864,
-0.22748667001724243,
-0.027607373893260956,
-0.1567516326904297,
-0.09751167893409729,
-0.2363923192024231,
-0.03944922238588333,
-0.052648257464170456,
0.1502736210823059,
-0.2101895958185196,
-0.2341327667236328,
0.21220256388187408,
-0.22324702143669128,
0.19111278653144836,
0.03266003355383873,
0.16827915608882904,
-0.03870474174618721,
-0.008764505386352539,
0.1832389384508133,
0.4271743893623352,
-0.21751967072486877,
0.20662853121757507,
-0.06066855415701866,
-0.1605679839849472,
0.2272232472896576,
0.034340232610702515,
-0.5253434777259827,
-0.5132178068161011,
0.26699256896972656,
-0.07547445595264435,
-0.12640979886054993,
-0.06149924173951149,
0.6240113377571106,
-0.021132271736860275,
-0.217241108417511,
0.16066603362560272,
0.39217936992645264,
-0.06778492033481598,
0.11044920980930328,
-0.16018758714199066,
-0.20689117908477783,
-0.31682533025741577,
-0.12448883801698685,
0.2557016611099243,
0.09678943455219269,
-0.36705726385116577,
0.04625165835022926,
-0.1559275984764099,
-0.11893727630376816,
0.13997206091880798,
0.6067639589309692,
-0.37825945019721985,
-0.28837284445762634,
-0.0039127664640545845,
-0.30697816610336304,
-0.2110750824213028,
0.047942448407411575,
0.1665583997964859,
0.2156907021999359,
-0.08790139853954315,
-0.19163554906845093,
0.0870058685541153,
0.34775859117507935,
0.15525919198989868,
0.15035425126552582,
0.08805909007787704,
0.0033459942787885666,
-0.04015165567398071,
0.10605857521295547,
-0.4068501591682434,
-0.00019081425853073597,
0.11437562853097916,
0.1226806640625,
0.15803353488445282,
0.04642268270254135,
0.13418269157409668,
0.15890181064605713,
0.19714556634426117,
0.02104383334517479,
-0.051761358976364136,
-0.19544363021850586,
0.03834094852209091,
0.05938845872879028,
0.08307491987943649,
0.19366034865379333,
0.3436831533908844,
-0.1540670245885849,
0.05788952484726906,
0.07143757492303848,
0.32580411434173584,
0.029307350516319275,
-0.2294364720582962,
0.04169278219342232,
-0.17140772938728333,
-0.08344363421201706,
0.10626986622810364,
0.2818502187728882,
0.08513330668210983,
0.02943771332502365,
0.04121619462966919,
0.1196722611784935,
0.1314348429441452,
-0.07019471377134323,
0.2505354881286621,
0.23013582825660706,
0.12642250955104828,
0.31219565868377686,
-0.15501558780670166,
0.0587662011384964,
0.3654407262802124,
0.12734773755073547,
0.48274990916252136,
0.03360562026500702,
-0.1689763367176056,
0.08230855315923691,
0.0709676742553711,
0.3136574923992157,
-0.24169689416885376,
-0.29670190811157227,
0.20616120100021362,
-0.21947678923606873,
0.39020007848739624,
0.5765987634658813,
0.5690056085586548,
0.2632630169391632,
0.4004576802253723,
-0.4132809638977051,
0.11622445285320282,
-0.08594436943531036,
0.018297608941793442,
0.04565557464957237,
-0.21247318387031555,
0.06960438936948776,
0.28313595056533813,
0.18883873522281647,
-0.03157912939786911,
0.20121610164642334,
0.1611320525407791,
0.2795370817184448,
0.42831724882125854,
0.2462066113948822,
0.027194153517484665,
0.1925109326839447,
0.33819615840911865,
0.1764976978302002,
0.25955039262771606,
0.14812476933002472,
0.17293383181095123,
0.23182472586631775,
-0.11474933475255966,
-0.07946615666151047,
0.13112661242485046,
0.18382735550403595,
-0.04953325539827347,
0.014904290437698364,
0.21874496340751648,
-0.09037397056818008,
-0.24260294437408447,
0.0026589110493659973,
-0.17281916737556458,
-0.10718633234500885,
0.08303606510162354,
0.05751628428697586,
0.2873073220252991,
-0.01433400996029377,
0.15955284237861633,
-0.1490686535835266,
0.12363436818122864,
-0.23480087518692017,
0.22020500898361206,
-0.1538405567407608,
0.18855495750904083,
-0.08929252624511719,
0.45140859484672546,
0.020195383578538895,
-0.029359914362430573,
0.004857329651713371,
0.36981794238090515,
-0.21897326409816742,
0.15693362057209015,
-0.1249353364109993,
0.13385382294654846,
0.2747657597064972,
0.17485815286636353,
0.3241959512233734,
0.1354684829711914,
-0.23304599523544312,
0.012282289564609528,
0.1976192593574524,
-0.03973615914583206,
-0.30346837639808655,
0.0021589919924736023,
-0.22258663177490234,
0.012467972934246063,
-0.27576112747192383,
0.07584459334611893,
-0.5223270058631897,
-0.0902157723903656,
0.22359317541122437,
-0.3513809144496918,
-0.02570236474275589,
-0.11487367749214172,
0.10953409969806671,
0.03509228676557541,
0.19467172026634216,
0.0465831495821476,
0.4593777060508728,
-0.1099378913640976,
-0.37277311086654663,
-0.4824966490268707,
0.28732141852378845,
0.03623002767562866,
-0.08989597856998444,
-0.3536241352558136,
0.18182061612606049,
0.4511236846446991,
0.254710853099823,
0.012164562940597534,
0.2115442454814911,
-0.1300233006477356,
-0.15835535526275635,
-0.2679620683193207,
0.1299411654472351,
0.21453139185905457,
0.23907393217086792,
0.013987205922603607,
-0.047098901122808456,
-0.02201991155743599,
0.09410129487514496,
0.16145753860473633,
-0.21235230565071106,
-0.13920515775680542,
0.005838729441165924,
-0.09935969114303589,
0.48589926958084106,
0.06453217566013336,
0.40564534068107605,
-0.21374449133872986,
-0.15543192625045776,
-0.11624851822853088,
-0.24185311794281006,
-0.19598309695720673,
0.4852727949619293,
0.06534349918365479,
0.2561369836330414,
0.0638887882232666,
-0.252536803483963,
-0.06996338814496994,
0.1303887516260147,
0.11363436281681061,
0.3501698672771454,
-0.0011424468830227852,
0.31199249625205994,
0.12503692507743835,
-0.2902594804763794,
0.026478592306375504,
0.4481157958507538,
0.18194597959518433,
-0.07778047025203705,
-0.020653344690799713,
-0.26771968603134155,
-0.14718487858772278,
0.03985927999019623,
-0.06971277296543121,
0.059169963002204895,
0.2188391238451004,
0.15321755409240723,
-0.11393726617097855,
-0.42140352725982666,
-0.07569310814142227,
0.3150257170200348,
0.17757171392440796,
0.015505284070968628,
0.14210908114910126,
0.022991016507148743,
-0.38561883568763733,
-0.09034164249897003,
-0.08705942332744598,
-0.005237292498350143,
-0.12299715727567673,
0.12734976410865784,
-0.3738957643508911
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Okey actually not that easy to add things like `test-de` to `datasets` => this would be the first dataset to have this.
See: https://github.com/huggingface/datasets/pull/802 | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 24 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Okey actually not that easy to add things like `test-de` to `datasets` => this would be the first dataset to have this.
See: https://github.com/huggingface/datasets/pull/802 | [
-0.18463359773159027,
-0.2418595552444458,
-0.18476511538028717,
-0.13035108149051666,
-0.05181726813316345,
0.006996557116508484,
0.25056347250938416,
0.11135900020599365,
0.1802295297384262,
0.1449396312236786,
-0.1167488843202591,
0.10126715153455734,
0.04857286438345909,
0.39057719707489014,
0.6209652423858643,
-0.1782805621623993,
0.12671616673469543,
0.051175665110349655,
-0.014703914523124695,
-0.09345591068267822,
-0.10278782993555069,
0.21672891080379486,
0.10808025300502777,
-0.05271553993225098,
-0.1677287220954895,
-0.24353709816932678,
-0.28423982858657837,
0.14354518055915833,
-0.08871155232191086,
-0.3312167525291443,
-0.01316050998866558,
0.2882208228111267,
-0.1768379956483841,
0.1054641604423523,
-0.00010096021287608892,
-0.16966769099235535,
0.11007311195135117,
-0.08951608091592789,
-0.020410645753145218,
-0.024575114250183105,
-0.24451902508735657,
-0.4427773654460907,
-0.1438598930835724,
-0.06472250074148178,
-0.13660141825675964,
-0.08178985118865967,
0.15767435729503632,
-0.5114187598228455,
0.09482995420694351,
0.1543593853712082,
0.2733411490917206,
0.24562832713127136,
-0.028145525604486465,
-0.23578393459320068,
0.3271293044090271,
0.06563424319028854,
-0.12487827241420746,
0.217063307762146,
0.7011629343032837,
0.11040244251489639,
0.04269013926386833,
0.20034939050674438,
0.1661870777606964,
-0.0251007080078125,
-0.09420750290155411,
0.06877829879522324,
-0.11666174978017807,
-0.12908992171287537,
-0.02656736969947815,
0.6269082427024841,
0.19021329283714294,
-0.40497487783432007,
-0.4105318784713745,
-0.19998934864997864,
0.09869077056646347,
-0.052923332899808884,
0.08978169411420822,
0.07260202616453171,
0.12139727175235748,
0.031827785074710846,
0.1945580542087555,
-0.49661824107170105,
-0.05975063890218735,
0.12886106967926025,
0.0036637187004089355,
0.25332510471343994,
-0.1540231555700302,
-0.0024562105536460876,
0.1759861409664154,
0.04245602712035179,
-0.1609524041414261,
0.028761349618434906,
-0.20052364468574524,
0.10641162097454071,
-0.09686331450939178,
-0.0444808155298233,
0.02386239916086197,
0.19384819269180298,
0.41598689556121826,
0.036116015166044235,
0.044776592403650284,
0.223337322473526,
-0.2803298234939575,
0.1790996491909027,
-0.14630286395549774,
0.0760992169380188,
0.2867690324783325,
-0.41294580698013306,
0.3636012673377991,
-0.2374962717294693,
0.21256545186042786,
-0.006558962166309357,
-0.0568496435880661,
0.01415057573467493,
-0.3175002634525299,
-0.008248426020145416,
-0.026873577386140823,
-0.05028948560357094,
-0.14705221354961395,
0.0037651327438652515,
0.0486515536904335,
-0.10398820787668228,
-0.006170722655951977,
0.22252386808395386,
0.0996548980474472,
-0.12330389767885208,
-0.16211175918579102,
0.3138155937194824,
-0.001207171007990837,
-0.3761255741119385,
-0.0911937728524208,
0.34961962699890137,
-0.2690580487251282,
0.10137565433979034,
-0.0004970766603946686,
-0.19538311660289764,
0.10362250357866287,
0.18463526666164398,
0.0611572340130806,
0.09869180619716644,
0.2261885106563568,
0.07207334041595459,
0.1173693835735321,
-0.10740819573402405,
-0.07367134094238281,
0.04638019949197769,
0.009890079498291016,
-0.36292386054992676,
-0.3809712827205658,
-0.21053889393806458,
0.03786233067512512,
0.06823042035102844,
-0.5171688199043274,
0.22532044351100922,
-0.12163324654102325,
-0.33209240436553955,
0.061072733253240585,
0.7353153228759766,
-0.20607203245162964,
-0.18733344972133636,
0.3742211163043976,
0.184803768992424,
0.06063463166356087,
-0.18209050595760345,
0.12313183397054672,
0.3011285662651062,
-0.7084856033325195,
-0.3878897726535797,
0.0161898136138916,
-0.3116716146469116,
0.015024237334728241,
-0.007213186472654343,
-0.0522163026034832,
-0.14889764785766602,
-0.2193850725889206,
0.3566606044769287,
0.3074154853820801,
-0.26312872767448425,
-0.1048186719417572,
0.15271617472171783,
-0.13635438680648804,
0.03242158144712448,
0.1493159383535385,
0.24611783027648926,
0.007619400043040514,
0.0819622129201889,
-0.22844576835632324,
0.49287116527557373,
-0.13768598437309265,
-0.06932768225669861,
-0.017189573496580124,
-0.11789178103208542,
0.11639662086963654,
0.23418648540973663,
-0.01773635670542717,
-0.18476641178131104,
0.37487977743148804,
-0.04805466905236244,
0.014302488416433334,
-0.21784573793411255,
0.08231033384799957,
0.2338494211435318,
0.2585252821445465,
0.0419749915599823,
-0.15277060866355896,
-0.3222055733203888,
-0.3203330338001251,
0.11784050613641739,
-0.09658800065517426,
0.23034796118736267,
0.135208860039711,
-0.2790808081626892,
-0.019615406170487404,
-0.02129463478922844,
-0.20567144453525543,
-0.278305321931839,
0.1957816332578659,
0.32533568143844604,
0.15689781308174133,
0.3068617582321167,
-0.1636468470096588,
0.29129698872566223,
0.027069194242358208,
0.03934084624052048,
-0.3820657730102539,
0.16522471606731415,
0.10094224661588669,
-0.04877037554979324,
-0.24714209139347076,
0.2708752751350403,
-0.29480716586112976,
-0.34541717171669006,
0.047560255974531174,
0.40052786469459534,
-0.056277163326740265,
0.32102102041244507,
0.4340525269508362,
0.3132544159889221,
0.34985700249671936,
-0.05167071893811226,
0.2166532576084137,
-0.14774870872497559,
0.05930738151073456,
-0.017911691218614578,
0.033199962228536606,
0.38062477111816406,
0.28677451610565186,
-0.18064206838607788,
0.06458088010549545,
0.051514752209186554,
0.33254680037498474,
-0.05789663642644882,
-0.024754926562309265,
-0.2705191969871521,
0.3214474022388458,
-0.06820769608020782,
0.4620569944381714,
-0.0891147255897522,
-0.45192834734916687,
-0.004149220883846283,
0.5400703549385071,
-0.20699605345726013,
0.5007700324058533,
-0.038568250834941864,
-0.24863284826278687,
-0.109304279088974,
0.2232334315776825,
0.24472390115261078,
0.17897461354732513,
0.27821168303489685,
0.2959161102771759,
-0.009485380724072456,
-0.17591321468353271,
-0.20301130414009094,
0.12388403713703156,
-0.29361116886138916,
-0.20680396258831024,
0.060017965734004974,
0.0018416834063827991,
-0.23860709369182587,
-0.6312517523765564,
-0.14549124240875244,
0.06457304209470749,
-0.0627526342868805,
0.017226602882146835,
-0.11647076904773712,
-0.25091901421546936,
-0.3461493253707886,
-0.2239779382944107,
-0.21178394556045532,
-0.411989688873291,
-0.27139583230018616,
0.35823214054107666,
-0.38604941964149475,
-0.10140581429004669,
0.22871994972229004,
0.1626434028148651,
0.3069646656513214,
-0.3231985867023468,
-0.24304722249507904,
-0.3107088506221771,
-0.22738368809223175,
-0.13207697868347168,
0.20302574336528778,
0.06387361139059067,
0.08107355237007141,
0.5975709557533264,
-0.14937984943389893,
0.34341973066329956,
-0.3206495940685272,
-0.6411497592926025,
0.17122572660446167,
-0.23361103236675262,
0.3256000280380249,
0.2272585779428482,
-0.139753520488739,
0.13389375805854797,
-0.03646939620375633,
0.19304853677749634,
-0.3736991584300995,
-0.19942961633205414,
-0.134302020072937,
-0.16909874975681305,
0.013069149106740952,
-0.18246857821941376,
-0.40471938252449036,
-0.40135693550109863,
-0.3103555142879486,
0.34011733531951904,
-0.1355208158493042,
-0.10335630178451538,
0.062494903802871704,
-0.11445056647062302,
0.4457502067089081,
-0.16513237357139587,
0.03837916627526283,
-0.33904150128364563,
-0.31505101919174194,
0.042012713849544525,
-0.31303033232688904,
-0.20716995000839233,
-0.1308932900428772,
-0.0832279771566391,
0.193759486079216,
-0.10428369790315628,
-0.21623243391513824,
-0.29516032338142395,
-0.2080215960741043,
0.30435895919799805,
0.243663489818573,
0.2603606879711151,
0.26367390155792236,
-0.005683846306055784,
-0.15367256104946136,
-0.18161672353744507,
-0.10339567065238953,
0.11067018657922745,
0.18363916873931885,
-0.1427590548992157,
-0.04620783030986786,
0.25885632634162903,
0.03581187501549721,
0.31676244735717773,
-0.13139715790748596,
-0.06197701022028923,
0.46593204140663147,
-0.15487989783287048,
0.4611416459083557,
-0.2192608118057251,
-0.17566519975662231,
0.20251712203025818,
-0.04646909236907959,
0.3559703230857849,
0.1662423014640808,
0.05935820937156677,
-0.193975031375885,
-0.008126311004161835,
0.07994931936264038,
-0.06538678705692291,
-0.024502644315361977,
0.04980454593896866,
-0.23008254170417786,
-0.021022111177444458,
-0.16305986046791077,
-0.3697708249092102,
-0.10725538432598114,
0.0006033889949321747,
0.2522923946380615,
0.08146527409553528,
-0.17055171728134155,
-0.02078794501721859,
-0.5745232105255127,
0.031125767156481743,
-0.3425470292568207,
0.4614942669868469,
0.24034638702869415,
0.04982252046465874,
-0.3317692279815674,
-0.07880374789237976,
0.016760289669036865,
-0.014697374776005745,
0.340190052986145,
-0.7034706473350525,
-0.3920472264289856,
0.12457102537155151,
-0.1734481006860733,
-0.1693347692489624,
0.1326390504837036,
-0.47789815068244934,
0.01084434986114502,
0.28677451610565186,
0.18829676508903503,
-0.2953967750072479,
-0.0790122002363205,
0.1735621839761734,
0.24495263397693634,
0.007372640073299408,
0.14499437808990479,
-0.08718761056661606,
-0.27669066190719604,
-0.3222584128379822,
0.1501879245042801,
-0.11723075062036514,
0.03696581348776817,
0.5093622803688049,
-0.134950190782547,
-0.12909726798534393,
0.009132344275712967,
0.18531808257102966,
0.3124791383743286,
-0.2047712206840515,
0.23542293906211853,
-0.10298481583595276,
0.045819081366062164,
0.03437836468219757,
-0.10465900599956512,
0.2496347278356552,
-0.26024484634399414,
-0.1087370365858078,
0.047242581844329834,
-0.2257297784090042,
0.49989181756973267,
0.06350316852331161,
0.24344247579574585,
0.39602920413017273,
-0.1816023290157318,
-0.10337749123573303,
-0.4619450271129608,
0.4287550747394562,
0.20306800305843353,
0.5127568244934082,
-0.354393869638443,
-0.28243452310562134,
0.19898134469985962,
0.14943520724773407,
-0.14077769219875336,
0.5283776521682739,
0.22363802790641785,
-0.34524568915367126,
0.07497558742761612,
-0.01765734702348709,
0.8527344465255737,
-0.24292747676372528,
0.10530442744493484,
0.03472309559583664,
-0.19814111292362213,
0.3081974983215332,
-0.32403361797332764,
-0.07298829406499863,
-0.22270217537879944,
-0.32672229409217834,
-0.16453999280929565,
0.005865693092346191,
0.3721562922000885,
0.05017608404159546,
-0.3208470046520233,
0.060490284115076065,
0.21802829205989838,
0.10490219295024872,
-0.08448844403028488,
0.36197781562805176,
-0.20685170590877533,
-0.2756367623806,
-0.19696594774723053,
0.24790608882904053,
0.09912408888339996,
-0.07375109195709229,
-0.09984473884105682,
-0.028015654534101486,
0.09229040145874023,
-0.016117779538035393,
-0.30703097581863403,
-0.09460099786520004,
-0.24113890528678894,
0.07304927706718445,
0.05793478339910507,
-0.15694336593151093,
0.09940865635871887,
0.06791331619024277,
0.351399302482605,
0.19982030987739563,
0.005828786641359329,
0.19084280729293823,
-0.13997066020965576,
0.10017388314008713,
0.1871105134487152,
-0.08803502470254898,
0.3409433364868164,
-0.007342323660850525,
-0.2477319836616516,
0.2806870937347412,
0.05675988644361496,
-0.18379351496696472,
-0.29041892290115356,
0.07601040601730347,
-0.22161893546581268,
-0.04014047235250473,
-0.0003996714949607849,
0.22312697768211365,
0.1862415075302124,
-0.3849989175796509,
0.16870863735675812,
0.2530967593193054,
-0.2087426781654358,
-0.02682613581418991,
-0.06506246328353882,
-0.248686745762825,
-0.3631856441497803,
-0.029637418687343597,
-0.17576247453689575,
0.03556119650602341,
-0.035400234162807465,
0.14231300354003906,
-0.06277736276388168,
-0.3454821705818176,
0.2907411456108093,
0.6144681572914124,
-0.3988983631134033,
-0.02563880756497383,
-0.02186007983982563,
-0.5254498720169067,
-0.1252257227897644,
0.13111864030361176,
0.2892466187477112,
0.06518802046775818,
-0.0017298869788646698,
-0.16533035039901733,
-0.1337575763463974,
0.09641969203948975,
0.20265550911426544,
0.4214719831943512,
0.1294967532157898,
-0.11544758081436157,
0.09596259146928787,
0.33988654613494873,
-0.434087336063385,
-0.008588519878685474,
-0.16180790960788727,
0.018808754161000252,
0.18338462710380554,
0.08828243613243103,
0.33795884251594543,
0.09834329783916473,
0.21305011212825775,
-0.11758513748645782,
-0.12084223330020905,
-0.2233334481716156,
-0.2579258978366852,
0.07171120494604111,
-0.23701363801956177,
0.18916423618793488,
0.31067603826522827,
0.06773876398801804,
0.14086352288722992,
-0.242208331823349,
0.38416481018066406,
-0.07482442259788513,
-0.10348765552043915,
0.1999962031841278,
0.0842384546995163,
-0.12297216802835464,
0.20880621671676636,
0.03439677506685257,
0.08245547860860825,
0.09292922914028168,
0.12138324975967407,
0.04870453104376793,
0.014940118417143822,
-0.1842786967754364,
0.3117765188217163,
0.4180964529514313,
0.3014644384384155,
-0.16114738583564758,
-0.14283090829849243,
0.18355423212051392,
0.10571838915348053,
0.22185678780078888,
0.3776782155036926,
-0.0637551099061966,
-0.17478008568286896,
0.23755325376987457,
0.2852988541126251,
0.2506442964076996,
-0.2058853954076767,
-0.23434777557849884,
0.43674084544181824,
-0.07437651604413986,
0.4397975206375122,
0.39354994893074036,
0.40365755558013916,
0.34377944469451904,
0.4054284691810608,
-0.3494434654712677,
0.04475720599293709,
-0.047985903918743134,
0.21334034204483032,
0.11636346578598022,
-0.15038277208805084,
-0.035787757486104965,
0.25226762890815735,
0.2084740698337555,
0.0992717295885086,
0.2140415906906128,
-0.0287264883518219,
0.3963956832885742,
0.1795136034488678,
0.29586732387542725,
0.2443053126335144,
-0.05526254326105118,
0.19208256900310516,
0.017348438501358032,
0.09541940689086914,
0.27428701519966125,
0.1217973530292511,
0.5185919404029846,
-0.2648637294769287,
-0.07794206589460373,
-0.07245799899101257,
0.25389519333839417,
-0.058227427303791046,
-0.2553240954875946,
0.22800320386886597,
-0.08309353142976761,
-0.23532484471797943,
-0.013417614623904228,
0.13397552073001862,
-0.20056428015232086,
0.19567494094371796,
-0.031853631138801575,
0.33307552337646484,
-0.207123264670372,
0.2693575918674469,
-0.06906841695308685,
-0.0569591298699379,
-0.1648179292678833,
0.3427712619304657,
-0.008614353835582733,
-0.07571274042129517,
-0.011637941002845764,
0.3626711070537567,
0.12087765336036682,
-0.21376919746398926,
-0.06569971144199371,
0.43462350964546204,
-0.35579201579093933,
0.06749752163887024,
-0.01087498851120472,
0.2708670496940613,
0.0738668441772461,
0.32664233446121216,
0.3112011253833771,
0.1924106925725937,
-0.17105194926261902,
-0.07745276391506195,
0.060559023171663284,
-0.20260128378868103,
-0.242801696062088,
0.11214210093021393,
-0.1197669506072998,
0.09637216478586197,
-0.4614642560482025,
0.13292425870895386,
-0.45212745666503906,
-0.04326523840427399,
0.3228743374347687,
-0.2712721824645996,
-0.05900081247091293,
-0.009744910523295403,
0.13919708132743835,
0.08508908748626709,
0.36178016662597656,
0.2722502052783966,
0.3546931743621826,
0.10406313836574554,
-0.3671025037765503,
-0.5847017168998718,
0.08541956543922424,
0.13451313972473145,
-0.21981875598430634,
-0.22229363024234772,
0.00915016420185566,
0.4471953511238098,
0.008729511871933937,
0.06665143370628357,
0.13007844984531403,
0.11907412856817245,
-0.2491854727268219,
-0.3235988914966583,
0.17062312364578247,
0.040522366762161255,
0.10789192467927933,
0.11240600049495697,
0.05853798985481262,
-0.10961504280567169,
0.09415402263402939,
0.07359655946493149,
-0.25979602336883545,
0.05474420636892319,
-0.15114454925060272,
-0.2828807532787323,
0.4270503520965576,
-0.0038166791200637817,
0.4883865714073181,
-0.3071034848690033,
0.039246201515197754,
-0.1248999685049057,
-0.2984401285648346,
-0.2123710662126541,
0.316987007856369,
-0.008468352258205414,
0.16408677399158478,
-0.06825179606676102,
-0.3227052390575409,
-0.08105304092168808,
0.3033621907234192,
0.18099567294120789,
0.20694127678871155,
-0.15809008479118347,
0.18644025921821594,
-0.05982336774468422,
-0.22872817516326904,
0.19900867342948914,
0.3820847272872925,
0.03453337401151657,
0.02334989421069622,
0.21876271069049835,
-0.22976025938987732,
0.056014105677604675,
0.027090758085250854,
-0.09254805743694305,
0.03132782503962517,
0.009306706488132477,
0.2244930863380432,
-0.0694352462887764,
-0.49967941641807556,
0.07416994124650955,
0.3074287474155426,
0.19639864563941956,
-0.15263518691062927,
0.2977270781993866,
0.06196138262748718,
-0.10637408494949341,
-0.09952262043952942,
0.03011934831738472,
0.27391964197158813,
-0.0940961092710495,
0.19990786910057068,
-0.39413172006607056
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | IMO we should have one config per language. That's what we're doing for xnli, xtreme etc.
Having split names that depend on the language seems wrong. We should try to avoid split names that are not train/val/test.
Sorry for late response on this one | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 44 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
IMO we should have one config per language. That's what we're doing for xnli, xtreme etc.
Having split names that depend on the language seems wrong. We should try to avoid split names that are not train/val/test.
Sorry for late response on this one | [
-0.14622530341148376,
-0.17611265182495117,
-0.0905722826719284,
0.012351930141448975,
-0.024125974625349045,
-0.17038288712501526,
0.46442821621894836,
0.22930054366588593,
0.006415035575628281,
0.1897844523191452,
-0.07842179387807846,
-0.012321033515036106,
0.06371531635522842,
0.31735914945602417,
0.3393554389476776,
-0.14736498892307281,
0.06487405300140381,
-0.12076802551746368,
0.18579062819480896,
-0.14102330803871155,
-0.19708499312400818,
0.1646755337715149,
0.14167876541614532,
0.25637635588645935,
-0.3061515986919403,
-0.25101691484451294,
-0.12123867869377136,
0.12312643229961395,
-0.05332808941602707,
-0.26364371180534363,
-0.13277281820774078,
0.09949550032615662,
-0.14832152426242828,
0.1550782322883606,
-0.00009843286534305662,
-0.17630243301391602,
0.1570730209350586,
-0.16627942025661469,
0.32598525285720825,
0.036941587924957275,
-0.3540754020214081,
-0.4925280213356018,
-0.21665358543395996,
-0.2867809534072876,
-0.07261350750923157,
0.07496728003025055,
0.02031296119093895,
-0.43250107765197754,
0.02925260365009308,
0.05130467563867569,
0.2826530635356903,
-0.04859483987092972,
-0.14153563976287842,
-0.0816420391201973,
0.2933579385280609,
-0.2213200181722641,
-0.178457111120224,
0.0020788265392184258,
0.5535995960235596,
0.23624655604362488,
-0.10215017944574356,
0.3790183961391449,
0.0996619164943695,
-0.17412777245044708,
-0.08461654931306839,
0.04623744264245033,
-0.05096740275621414,
-0.34325090050697327,
-0.05549425631761551,
0.6024342775344849,
0.013622723519802094,
-0.26531314849853516,
-0.1561051607131958,
-0.20165815949440002,
0.094296894967556,
-0.21330879628658295,
0.3548097312450409,
0.1433286964893341,
0.19543975591659546,
-0.033373650163412094,
0.3138546645641327,
-0.48386335372924805,
0.04412567615509033,
0.06089567765593529,
0.030138663947582245,
0.6080749034881592,
-0.08156070113182068,
0.21011686325073242,
0.08181895315647125,
-0.004406258463859558,
0.05560772866010666,
0.018105080351233482,
-0.11668828129768372,
-0.18055212497711182,
-0.27819347381591797,
0.03484393656253815,
-0.1338140368461609,
0.03850209340453148,
0.15135225653648376,
-0.091509148478508,
-0.1049467995762825,
0.17730382084846497,
0.1033560186624527,
0.16401249170303345,
-0.07408124208450317,
0.07391010224819183,
0.355638325214386,
-0.14186233282089233,
0.3384208679199219,
-0.38935229182243347,
0.030843611806631088,
0.06827262043952942,
0.03021114319562912,
-0.12108978629112244,
-0.3905894458293915,
-0.048487335443496704,
-0.2725439667701721,
-0.013391736894845963,
-0.0945797860622406,
0.050021808594465256,
-0.08577987551689148,
-0.20248207449913025,
0.18057450652122498,
0.10182271897792816,
0.05453845486044884,
-0.0015527121722698212,
-0.2859130799770355,
0.25332963466644287,
-0.09773223102092743,
-0.3352462351322174,
-0.15527305006980896,
0.3696976900100708,
-0.4024467170238495,
0.08873546868562698,
-0.09241731464862823,
0.08223901689052582,
0.06409891694784164,
0.18785318732261658,
-0.010243244469165802,
-0.04252271354198456,
0.2050231695175171,
-0.05394415557384491,
-0.0014979168772697449,
-0.03435085341334343,
0.026942383497953415,
0.013101650401949883,
-0.0330025888979435,
-0.16503261029720306,
-0.42449912428855896,
-0.21599224209785461,
-0.2676056921482086,
-0.15156413614749908,
-0.19382673501968384,
0.25656166672706604,
-0.06618842482566833,
-0.12592639029026031,
0.3019108176231384,
0.6030246019363403,
0.06581571698188782,
-0.005551647394895554,
0.23082786798477173,
0.046186413615942,
0.035937193781137466,
-0.34384238719940186,
-0.026595525443553925,
0.1573953479528427,
-0.5607881546020508,
-0.2898288071155548,
0.0050520035438239574,
-0.217707097530365,
0.216628760099411,
0.10005800426006317,
-0.19180980324745178,
-0.24195408821105957,
-0.17315252125263214,
0.49725568294525146,
0.47367849946022034,
-0.24069516360759735,
0.0017586629837751389,
0.13953793048858643,
-0.22635941207408905,
-0.22334255278110504,
0.3514536917209625,
0.1564728170633316,
0.14046815037727356,
-0.006743450183421373,
-0.09910552203655243,
0.363770067691803,
-0.23892152309417725,
-0.1682414412498474,
-0.17995311319828033,
-0.3024236559867859,
0.0140934307128191,
0.22031749784946442,
-0.006639882922172546,
-0.4272892475128174,
0.19032776355743408,
-0.09316053241491318,
0.09256765246391296,
-0.14612668752670288,
0.13407528400421143,
0.15123559534549713,
0.2007119357585907,
0.07839982211589813,
-0.16712237894535065,
0.04912281036376953,
-0.2886483669281006,
0.08498299866914749,
-0.19022715091705322,
0.2473544329404831,
0.31466394662857056,
-0.12608051300048828,
0.12428463250398636,
-0.4120953381061554,
-0.30771055817604065,
-0.22517234086990356,
0.246768057346344,
0.3807688057422638,
-0.005876362323760986,
0.07025213539600372,
-0.3039514124393463,
0.42164841294288635,
-0.0748278945684433,
0.03738100454211235,
-0.32919490337371826,
-0.006822595372796059,
-0.0320979580283165,
-0.14389556646347046,
-0.10640840232372284,
0.23753949999809265,
-0.13568365573883057,
-0.3920334279537201,
0.05259453505277634,
0.4568067491054535,
0.08672011643648148,
0.05954833701252937,
0.2669985890388489,
0.1823759377002716,
0.3151247799396515,
0.030657906085252762,
0.41223540902137756,
-0.3238603174686432,
-0.19639809429645538,
-0.2101336121559143,
0.21655264496803284,
0.4376224875450134,
0.17357546091079712,
-0.00460372120141983,
-0.09773898124694824,
0.0390913262963295,
0.2721157670021057,
-0.18452095985412598,
-0.16717053949832916,
-0.26939961314201355,
0.1353587806224823,
0.033449191600084305,
0.4870149493217468,
0.11210131645202637,
-0.537476658821106,
0.03725184500217438,
0.7857866287231445,
-0.05923692137002945,
0.21844244003295898,
-0.07846850901842117,
0.12880051136016846,
0.042769499123096466,
0.10048678517341614,
0.49576523900032043,
0.10812901705503464,
0.28824788331985474,
0.02169060707092285,
-0.1542695164680481,
-0.23547673225402832,
-0.27992069721221924,
0.09787669032812119,
-0.1289459466934204,
0.007364502176642418,
-0.0057400986552238464,
-0.25456276535987854,
-0.25259578227996826,
-0.3949921429157257,
-0.19501681625843048,
0.1849539428949356,
-0.13111995160579681,
0.1120043694972992,
-0.13086849451065063,
-0.1418880820274353,
-0.3241768479347229,
-0.3846464157104492,
-0.21202518045902252,
-0.6176679134368896,
-0.2648647427558899,
0.25581955909729004,
-0.6583390831947327,
-0.12734878063201904,
0.37728583812713623,
0.03953992947936058,
0.07172664999961853,
-0.39067646861076355,
-0.3015212118625641,
-0.04375549405813217,
-0.07207909971475601,
-0.4109971523284912,
0.17101746797561646,
0.14052334427833557,
0.025037119165062904,
0.4922407269477844,
-0.07939133048057556,
0.18555165827274323,
-0.07450053840875626,
-0.5724856853485107,
0.27756670117378235,
-0.4036216139793396,
0.09774821996688843,
0.17087143659591675,
-0.3082922101020813,
0.08789099752902985,
-0.3493943512439728,
0.3390374779701233,
-0.11684919893741608,
0.1387786716222763,
-0.0910428985953331,
0.0008447930449619889,
-0.1255900114774704,
-0.0018691085278987885,
-0.6168103814125061,
-0.5302243828773499,
-0.35775044560432434,
0.06491746008396149,
-0.21526069939136505,
0.053056590259075165,
0.014056985266506672,
-0.20099662244319916,
0.2050771862268448,
-0.20218873023986816,
-0.07350396364927292,
-0.18778833746910095,
-0.3085240423679352,
0.03908606618642807,
-0.17999759316444397,
-0.11003418266773224,
0.020961817353963852,
0.035165172070264816,
0.43604618310928345,
-0.013443171977996826,
-0.1864355206489563,
0.09742744266986847,
-0.15788687765598297,
0.2900020182132721,
0.41850942373275757,
0.234280064702034,
0.18322956562042236,
0.1810416728258133,
-0.14448565244674683,
-0.08404746651649475,
-0.12661071121692657,
0.24061653017997742,
0.13798704743385315,
0.24613609910011292,
0.12858286499977112,
0.18835583329200745,
-0.02939242124557495,
0.2568419575691223,
-0.006872888654470444,
0.10524880886077881,
0.41777530312538147,
0.02175784669816494,
0.19730785489082336,
-0.22389233112335205,
-0.2783105969429016,
0.41828057169914246,
-0.02014438807964325,
0.1917504072189331,
0.24930411577224731,
0.03668665885925293,
-0.30294328927993774,
-0.20260941982269287,
0.17933061718940735,
0.05890800058841705,
-0.27739518880844116,
0.11015728116035461,
0.036484893411397934,
0.08893304318189621,
-0.12287254631519318,
-0.2811175286769867,
-0.04125005751848221,
0.008971404284238815,
0.21302369236946106,
0.1249706968665123,
-0.3043186664581299,
0.07586789131164551,
-0.5326246023178101,
0.07252173125743866,
-0.28751400113105774,
0.20765817165374756,
0.183105930685997,
0.162700816988945,
-0.1951339691877365,
-0.11843300610780716,
-0.02124182879924774,
0.14031197130680084,
0.2180919498205185,
-0.6130017042160034,
-0.47004586458206177,
0.29242539405822754,
0.022241488099098206,
0.03174564987421036,
0.0676584392786026,
-0.3907155692577362,
-0.1742919534444809,
0.6021924614906311,
0.142316073179245,
-0.3299189805984497,
-0.24012978374958038,
0.21976570785045624,
0.27767977118492126,
-0.009586706757545471,
0.08510453253984451,
-0.13988329470157623,
-0.10398425161838531,
-0.18549568951129913,
0.02123711258172989,
-0.16547812521457672,
-0.035362329334020615,
0.4166644811630249,
-0.10968689620494843,
0.02907208353281021,
-0.347470223903656,
0.24177758395671844,
0.24918578565120697,
-0.1018165796995163,
-0.001516364049166441,
-0.09988535940647125,
-0.03255951404571533,
0.14372147619724274,
-0.1647283434867859,
0.22119367122650146,
-0.37301814556121826,
-0.041309282183647156,
0.16067495942115784,
-0.4128876030445099,
0.43419742584228516,
0.21456845104694366,
0.1774013489484787,
0.2229922115802765,
-0.314059317111969,
0.09709879755973816,
-0.013331697322428226,
0.2715945243835449,
0.19354699552059174,
0.3252151906490326,
-0.452423632144928,
-0.46486514806747437,
0.23387810587882996,
0.27492573857307434,
-0.18792590498924255,
0.5551062822341919,
0.2615852355957031,
-0.30702561140060425,
0.018507393077015877,
0.08716142177581787,
1.0130932331085205,
-0.0665270984172821,
-0.03209982439875603,
0.12405698001384735,
-0.14686837792396545,
0.28703856468200684,
-0.34658145904541016,
0.004414848983287811,
-0.21217679977416992,
-0.11682957410812378,
-0.007645770907402039,
0.06370897591114044,
0.4263186752796173,
0.18288709223270416,
-0.29880374670028687,
0.24461497366428375,
0.18775807321071625,
-0.13895899057388306,
-0.343571275472641,
0.49029380083084106,
-0.21283453702926636,
-0.4288303852081299,
-0.055487923324108124,
0.19699662923812866,
0.04249975085258484,
-0.11958925426006317,
0.017215123400092125,
-0.060414403676986694,
-0.04239250347018242,
0.09516437351703644,
-0.11265525221824646,
-0.056894734501838684,
-0.19164715707302094,
0.1518830507993698,
-0.19913411140441895,
-0.2050963044166565,
0.10813041031360626,
-0.10303659737110138,
0.23129484057426453,
0.03779857978224754,
0.17686383426189423,
0.2509279251098633,
0.16628700494766235,
-0.029080117121338844,
0.14917603135108948,
-0.18868336081504822,
0.3108358681201935,
-0.074323371052742,
-0.26265546679496765,
0.1429653763771057,
0.015348280780017376,
-0.05754406750202179,
-0.47388505935668945,
0.09953893721103668,
0.015433818101882935,
-0.18692202866077423,
0.06468994915485382,
0.34709227085113525,
0.10429266095161438,
-0.20168857276439667,
0.22128073871135712,
0.1342335045337677,
-0.10666274279356003,
0.18015721440315247,
-0.20580531656742096,
-0.26731008291244507,
-0.440811425447464,
-0.2474433183670044,
0.1526275873184204,
0.07416467368602753,
-0.16966183483600616,
0.11266131699085236,
-0.04823337495326996,
-0.24797901511192322,
0.3831701874732971,
0.46100327372550964,
-0.2728407680988312,
-0.28088322281837463,
-0.026093164458870888,
-0.6038402915000916,
-0.012814024463295937,
0.03974283114075661,
0.3965603709220886,
0.26520514488220215,
0.13074958324432373,
-0.0010352060198783875,
-0.13207180798053741,
0.13473224639892578,
0.16676658391952515,
0.21311543881893158,
-0.08429060876369476,
0.0817783772945404,
0.14802800118923187,
0.19757530093193054,
-0.42719748616218567,
-0.12035913020372391,
-0.1311841756105423,
0.0853152722120285,
0.06152687221765518,
-0.005533087998628616,
0.23687978088855743,
0.27380257844924927,
0.2482171654701233,
-0.20099250972270966,
-0.19026120007038116,
-0.18159431219100952,
-0.21097803115844727,
0.03516818583011627,
-0.061202265322208405,
0.06912876665592194,
0.14743559062480927,
-0.12652231752872467,
0.06973955035209656,
-0.02033095806837082,
0.3101060688495636,
-0.040660373866558075,
-0.02126964181661606,
0.22123518586158752,
-0.036828916519880295,
-0.23692455887794495,
0.23706291615962982,
0.13902609050273895,
0.0758238285779953,
0.2203003168106079,
0.2095203995704651,
0.13473568856716156,
-0.0029807856772094965,
-0.21446694433689117,
0.11952017992734909,
0.36709126830101013,
0.03846502676606178,
0.06678007543087006,
-0.30340027809143066,
0.057651009410619736,
0.22817909717559814,
0.23727475106716156,
0.1905232071876526,
0.3459753394126892,
-0.08796540647745132,
-0.05742012709379196,
0.33255332708358765,
0.34278440475463867,
-0.15290075540542603,
-0.21571607887744904,
0.22662533819675446,
0.10651005059480667,
0.4202781319618225,
0.5838720798492432,
0.4350990653038025,
0.2854175269603729,
0.24715979397296906,
-0.2668679654598236,
0.19884100556373596,
-0.16362611949443817,
0.13491074740886688,
0.20166100561618805,
-0.2208584100008011,
0.06754078716039658,
0.5029200315475464,
0.15424811840057373,
0.08931253105401993,
0.30301976203918457,
0.04221809282898903,
0.353084921836853,
0.41881364583969116,
0.405521422624588,
0.1972193866968155,
0.03517543897032738,
0.04030268266797066,
0.15917013585567474,
-0.1290496587753296,
0.10925908386707306,
0.01813877373933792,
0.30109721422195435,
-0.20826546847820282,
-0.21384871006011963,
0.0754547268152237,
0.2279541939496994,
-0.1240234449505806,
-0.08427309989929199,
0.05443789064884186,
-0.10275652259588242,
-0.3516123294830322,
0.05168529227375984,
0.09911046922206879,
-0.03776608407497406,
0.24531245231628418,
0.21755562722682953,
0.16787999868392944,
-0.1135481745004654,
0.22048845887184143,
-0.06615406274795532,
0.08342164754867554,
-0.23376809060573578,
0.38546618819236755,
0.002304680645465851,
-0.08192278444766998,
-0.06654870510101318,
0.10087569802999496,
0.06612084805965424,
-0.058544084429740906,
0.025240693241357803,
0.18253520131111145,
0.032313983887434006,
0.024009352549910545,
-0.08235175162553787,
0.16254499554634094,
0.18549823760986328,
0.40284475684165955,
0.3717902898788452,
0.1848209649324417,
-0.23660151660442352,
-0.19637303054332733,
0.1103987842798233,
-0.13335512578487396,
-0.08767963945865631,
0.13876786828041077,
-0.06740813702344894,
-0.02674521878361702,
-0.37241488695144653,
0.023627683520317078,
-0.640874445438385,
0.09072285890579224,
0.3472355306148529,
-0.24989035725593567,
-0.036375537514686584,
-0.1081303209066391,
0.13914921879768372,
0.0205908864736557,
0.2904619574546814,
-0.20548619329929352,
0.16052642464637756,
-0.15134072303771973,
-0.3798655867576599,
-0.362966388463974,
0.06869077682495117,
-0.07411451637744904,
-0.23741894960403442,
-0.3008517622947693,
0.1499515175819397,
0.208690345287323,
-0.04309090971946716,
-0.021347403526306152,
0.1685633659362793,
0.11008890718221664,
-0.07553631067276001,
-0.3630596101284027,
0.18353870511054993,
0.09677198529243469,
0.31676939129829407,
0.18442252278327942,
-0.054871924221515656,
0.0051200613379478455,
0.1395043581724167,
0.058203160762786865,
-0.20791339874267578,
-0.15733399987220764,
0.3688466548919678,
-0.05468329042196274,
0.3100132644176483,
0.1430499404668808,
0.3413968086242676,
-0.19516527652740479,
-0.08239930123090744,
-0.2316163182258606,
-0.2218693196773529,
-0.3323301076889038,
0.27753791213035583,
0.12699909508228302,
0.1420236974954605,
-0.028028065338730812,
-0.07764013111591339,
-0.277282178401947,
0.41860321164131165,
0.09825961291790009,
0.37434759736061096,
-0.02654239535331726,
0.31070059537887573,
0.2739528715610504,
-0.095476895570755,
0.1657673418521881,
0.5336944460868835,
0.13446199893951416,
0.00019935891032218933,
0.03480714559555054,
-0.2444978803396225,
0.006615936756134033,
0.30340489745140076,
-0.06192408502101898,
0.03523355349898338,
0.12157216668128967,
0.30061280727386475,
0.1463196873664856,
-0.46256136894226074,
-0.08490289747714996,
0.24680480360984802,
0.0522882342338562,
-0.3042317032814026,
0.1125003844499588,
0.2204035073518753,
-0.33177444338798523,
0.007349558174610138,
-0.16988113522529602,
0.20856064558029175,
-0.31667399406433105,
0.28626787662506104,
-0.05989523231983185
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | @lhoestq agreed on having one config per language, but we also need to be able to have different split names and people are going to want to use hyphens, so we should at the very least warn them why it's failing :) E.g. for ANLI with different stages of data (currently using underscores) or https://www.tau-nlp.org/commonsenseqa with their train-sanity or dev-sanity splits | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 61 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
@lhoestq agreed on having one config per language, but we also need to be able to have different split names and people are going to want to use hyphens, so we should at the very least warn them why it's failing :) E.g. for ANLI with different stages of data (currently using underscores) or https://www.tau-nlp.org/commonsenseqa with their train-sanity or dev-sanity splits | [
-0.20009134709835052,
-0.15228064358234406,
-0.10690848529338837,
-0.11235316097736359,
-0.07928083091974258,
-0.20000174641609192,
0.5592647790908813,
0.16035184264183044,
0.12979504466056824,
0.19726751744747162,
-0.04726753383874893,
0.054989662021398544,
0.0048436010256409645,
0.3074241280555725,
0.30049946904182434,
-0.23597633838653564,
0.061793141067028046,
-0.03281275928020477,
0.10703999549150467,
-0.07688134908676147,
-0.1448189914226532,
0.11872502416372299,
0.15010395646095276,
0.06426788866519928,
-0.29142582416534424,
-0.31400296092033386,
-0.20871001482009888,
0.11646704375743866,
-0.04173610359430313,
-0.28663262724876404,
-0.18313977122306824,
0.21814724802970886,
-0.14813601970672607,
0.046078816056251526,
-0.00009948766091838479,
-0.16746118664741516,
0.11768504232168198,
-0.17547208070755005,
0.22680912911891937,
-0.05548320710659027,
-0.4276825487613678,
-0.5850602388381958,
-0.18778081238269806,
-0.1727513074874878,
-0.07649591565132141,
0.07475335150957108,
0.16152562201023102,
-0.3223181366920471,
0.16218596696853638,
-0.016851484775543213,
0.24862197041511536,
-0.035681065171957016,
0.0158524326980114,
-0.09339812397956848,
0.2921176850795746,
-0.12582534551620483,
-0.16259124875068665,
0.11113598942756653,
0.5344116687774658,
0.04216960072517395,
-0.11674151569604874,
0.2462141364812851,
0.07718010246753693,
-0.16175149381160736,
-0.26936081051826477,
-0.0677688792347908,
-0.06969349831342697,
-0.2593417465686798,
-0.09778880327939987,
0.6707046031951904,
0.0018181949853897095,
-0.25524911284446716,
-0.23410996794700623,
-0.25183019042015076,
0.14292415976524353,
-0.11987238377332687,
0.2260703444480896,
0.24380579590797424,
0.04401008412241936,
0.0016490034759044647,
0.3162359893321991,
-0.4904375374317169,
-0.003579765558242798,
0.25459739565849304,
0.14984235167503357,
0.44814324378967285,
0.008351799100637436,
0.09148415923118591,
0.18147653341293335,
-0.029199950397014618,
-0.1529131680727005,
0.1295476108789444,
-0.08141796290874481,
-0.1340005099773407,
-0.3194147050380707,
-0.019297577440738678,
-0.06644580513238907,
-0.04603724926710129,
0.19715669751167297,
-0.11932598054409027,
-0.0815122053027153,
0.2506907880306244,
-0.12151407450437546,
0.2826821804046631,
-0.035821571946144104,
0.02539438009262085,
0.24863755702972412,
-0.1062539741396904,
0.3533793091773987,
-0.2628125548362732,
0.04645496979355812,
0.08208441734313965,
-0.02146913856267929,
-0.11863043904304504,
-0.40982353687286377,
0.0041324421763420105,
-0.2621777653694153,
0.07907947897911072,
-0.1390136033296585,
-0.07212299853563309,
-0.10610443353652954,
-0.06944428384304047,
0.06073744595050812,
0.09991483390331268,
0.13493035733699799,
-0.038097403943538666,
-0.26985275745391846,
0.3025582432746887,
-0.10853796452283859,
-0.31797000765800476,
-0.08520472049713135,
0.34069254994392395,
-0.39046868681907654,
0.28257158398628235,
-0.0011108145117759705,
0.10715813934803009,
0.0306002888828516,
0.2661170959472656,
-0.26168298721313477,
-0.009220212697982788,
0.24319243431091309,
-0.02552536316215992,
0.1116449236869812,
-0.08606146275997162,
0.04451176896691322,
-0.08059100061655045,
-0.1204371452331543,
-0.31799328327178955,
-0.44740694761276245,
-0.133100688457489,
-0.13938021659851074,
-0.04743211716413498,
-0.536962628364563,
0.23197050392627716,
-0.13469722867012024,
-0.24243319034576416,
0.3213673532009125,
0.7025808095932007,
0.10547304898500443,
-0.1079336553812027,
0.30254116654396057,
0.0773233100771904,
0.08560855686664581,
-0.28318753838539124,
-0.08544611185789108,
0.2961883246898651,
-0.583909809589386,
-0.367129385471344,
-0.04230879992246628,
-0.14287149906158447,
0.1852104663848877,
0.22408808767795563,
-0.09399232268333435,
-0.2408590018749237,
-0.09050187468528748,
0.5788310170173645,
0.2949935793876648,
-0.08002537488937378,
-0.043766506016254425,
0.048372406512498856,
-0.21292662620544434,
-0.22951115667819977,
0.41025879979133606,
0.21934756636619568,
0.15228191018104553,
-0.10283855348825455,
-0.10263118147850037,
0.5329892635345459,
-0.19973385334014893,
-0.19203101098537445,
-0.2687574625015259,
-0.37140870094299316,
-0.06696011126041412,
0.2908559739589691,
-0.11080941557884216,
-0.44459980726242065,
0.24997663497924805,
-0.1283312290906906,
0.034237802028656006,
-0.2165667712688446,
0.19712035357952118,
0.18663814663887024,
0.17336152493953705,
0.11980291455984116,
-0.16494828462600708,
-0.16067203879356384,
-0.2717198431491852,
-0.04217664897441864,
-0.14583350718021393,
0.3109080195426941,
0.11031034588813782,
-0.21751722693443298,
0.09180820733308792,
-0.39542657136917114,
-0.2288377732038498,
-0.05561959370970726,
0.24425509572029114,
0.3357696831226349,
-0.04855175316333771,
0.2046450525522232,
-0.265751451253891,
0.3758607804775238,
0.06563320010900497,
0.0459027998149395,
-0.2742500901222229,
0.10877066850662231,
-0.023537935689091682,
-0.19345134496688843,
-0.04137129336595535,
0.416700154542923,
-0.11049645394086838,
-0.2737945318222046,
0.1936379373073578,
0.469465047121048,
-0.013342220336198807,
0.2094615399837494,
0.25454479455947876,
0.15694564580917358,
0.31647220253944397,
0.009772565215826035,
0.4155241847038269,
-0.34149253368377686,
-0.18775078654289246,
-0.18714143335819244,
0.16949224472045898,
0.3568231463432312,
0.2377644181251526,
-0.022244594991207123,
0.06058830767869949,
0.020041273906826973,
0.295911967754364,
-0.249752938747406,
-0.08914083242416382,
-0.34739798307418823,
0.21468843519687653,
-0.12907038629055023,
0.3781505823135376,
0.031007375568151474,
-0.5096861124038696,
0.13208502531051636,
0.7999995946884155,
-0.03927454724907875,
0.5096134543418884,
-0.07442912459373474,
-0.02209273725748062,
-0.02670189179480076,
0.09243403375148773,
0.38508763909339905,
0.08288763463497162,
0.352521151304245,
0.05375668406486511,
-0.23415499925613403,
-0.22678843140602112,
-0.36537572741508484,
0.15038272738456726,
-0.2305917590856552,
-0.09338589757680893,
0.11499368399381638,
-0.11724577099084854,
-0.25323405861854553,
-0.4707602858543396,
-0.19960275292396545,
0.07499796897172928,
-0.1893983781337738,
0.14602717757225037,
-0.1899924874305725,
-0.18765784800052643,
-0.4007489085197449,
-0.39892202615737915,
-0.36293163895606995,
-0.568510115146637,
-0.2600990831851959,
0.3544929027557373,
-0.5420054793357849,
-0.19890299439430237,
0.41337278485298157,
0.059199992567300797,
0.14929965138435364,
-0.438681960105896,
-0.27919796109199524,
-0.06756051629781723,
-0.2322137951850891,
-0.30189746618270874,
0.1828039139509201,
0.1581467241048813,
-0.04709482192993164,
0.40904319286346436,
0.033578746020793915,
0.07189343124628067,
-0.07333863526582718,
-0.5325052738189697,
0.2297295182943344,
-0.24168403446674347,
0.09312910586595535,
0.1921669840812683,
-0.2887468934059143,
0.1889665126800537,
-0.47068944573402405,
0.2868528664112091,
-0.01198427565395832,
0.09347141534090042,
-0.02220618911087513,
-0.06882984191179276,
-0.016225596889853477,
-0.10706759989261627,
-0.4447101652622223,
-0.49155259132385254,
-0.40105485916137695,
0.1596660315990448,
-0.32076501846313477,
-0.011916056275367737,
0.09153115749359131,
-0.06130528077483177,
0.17871160805225372,
-0.18092641234397888,
-0.039854392409324646,
-0.21074913442134857,
-0.17768312990665436,
0.029689908027648926,
-0.24675780534744263,
-0.09750762581825256,
-0.07436378300189972,
-0.003058331087231636,
0.25289246439933777,
0.027894293889403343,
-0.19531287252902985,
0.02665337547659874,
-0.2030617594718933,
0.17262886464595795,
0.33335036039352417,
0.23528026044368744,
0.2445560246706009,
0.18020932376384735,
-0.203949436545372,
-0.03230864554643631,
-0.16158294677734375,
0.1644463837146759,
0.08079980313777924,
0.22332914173603058,
0.01315837912261486,
0.1674283742904663,
0.2213267982006073,
0.2721553444862366,
-0.0015128273516893387,
0.0654093474149704,
0.4926968514919281,
0.0336892232298851,
0.28526267409324646,
-0.19937407970428467,
-0.15223965048789978,
0.35917243361473083,
-0.06461615860462189,
0.18020130693912506,
0.1841149777173996,
0.05391935259103775,
-0.49811723828315735,
-0.12737487256526947,
0.09453365206718445,
-0.15064534544944763,
-0.3248204290866852,
0.1541627049446106,
-0.04015769809484482,
0.12398375570774078,
-0.09516583383083344,
-0.3498983681201935,
0.04261994734406471,
-0.08969131112098694,
0.2541389763355255,
0.15581035614013672,
-0.2382899820804596,
-0.04086616635322571,
-0.5034109950065613,
-0.06545187532901764,
-0.2861919701099396,
0.3564997911453247,
0.20819351077079773,
0.26570451259613037,
-0.3406349718570709,
-0.18939551711082458,
-0.05951821804046631,
0.13417181372642517,
0.147578164935112,
-0.7052649259567261,
-0.31087589263916016,
0.24828243255615234,
0.25517162680625916,
-0.035136062651872635,
0.10812820494174957,
-0.33804842829704285,
-0.05790714919567108,
0.4620372951030731,
0.16511820256710052,
-0.365999698638916,
-0.13765276968479156,
0.2716054320335388,
0.18945197761058807,
0.09140081703662872,
0.05958861485123634,
-0.02732767164707184,
-0.17172402143478394,
-0.1447698175907135,
0.05631779879331589,
-0.22244033217430115,
-0.026378557085990906,
0.4388490319252014,
-0.16018803417682648,
-0.014355679973959923,
-0.303363561630249,
0.22346490621566772,
0.17606955766677856,
-0.1793835461139679,
0.04008932411670685,
-0.08725655823945999,
-0.031155385076999664,
-0.024403363466262817,
-0.04644789546728134,
0.22219565510749817,
-0.33243492245674133,
-0.044766947627067566,
0.11197777837514877,
-0.3413737118244171,
0.4918050169944763,
0.15274691581726074,
0.34425491094589233,
0.2925677001476288,
-0.16177746653556824,
0.058671824634075165,
-0.0644991546869278,
0.21314506232738495,
0.13820704817771912,
0.3538118004798889,
-0.5049092173576355,
-0.3253122568130493,
0.23260560631752014,
0.34774091839790344,
-0.10576102137565613,
0.456217497587204,
0.25305408239364624,
-0.36335527896881104,
0.2816962003707886,
0.0046307966113090515,
0.907377302646637,
-0.1592382937669754,
0.06631957739591599,
-0.013173442333936691,
-0.2073613554239273,
0.40772509574890137,
-0.3071683645248413,
0.012665094807744026,
-0.23162637650966644,
-0.05250690132379532,
-0.03149976581335068,
0.11623494327068329,
0.3724483847618103,
0.2617298662662506,
-0.40318942070007324,
0.1282770335674286,
0.10523159801959991,
-0.02973603829741478,
-0.24247299134731293,
0.4963003993034363,
-0.27350422739982605,
-0.4457586407661438,
-0.15574078261852264,
0.19230104982852936,
0.038730040192604065,
-0.2478266954421997,
0.003727290779352188,
-0.13160856068134308,
0.07878860831260681,
0.10533137619495392,
-0.3344314694404602,
-0.024585241451859474,
-0.1835358440876007,
0.08381672203540802,
-0.18339674174785614,
-0.18160435557365417,
0.22969424724578857,
-0.15304268896579742,
0.14999142289161682,
-0.0009482428431510925,
0.1856347620487213,
0.18463873863220215,
0.06559012830257416,
-0.07689141482114792,
0.15438197553157806,
-0.15988366305828094,
0.42457178235054016,
-0.07691629230976105,
-0.19446712732315063,
0.1506231725215912,
0.15320289134979248,
-0.073113813996315,
-0.5054070353507996,
0.10167690366506577,
0.014713115990161896,
-0.14132721722126007,
0.11821866035461426,
0.29226523637771606,
0.087307870388031,
-0.20459701120853424,
0.2007819563150406,
0.19909141957759857,
-0.002794920699670911,
0.12311816215515137,
-0.17291975021362305,
-0.22943270206451416,
-0.3548343777656555,
-0.2141837775707245,
0.0717000663280487,
0.06192241609096527,
-0.15185920894145966,
0.09993791580200195,
-0.06212839484214783,
-0.31102490425109863,
0.22430139780044556,
0.32489243149757385,
-0.3135170042514801,
-0.2035946547985077,
-0.014953884296119213,
-0.5611589550971985,
-0.03163863718509674,
0.048939429223537445,
0.2902246415615082,
0.22769108414649963,
0.07142460346221924,
-0.20660759508609772,
0.027933897450566292,
0.2727835774421692,
0.002274446189403534,
0.3183094561100006,
-0.04891464114189148,
0.07690511643886566,
0.09724653512239456,
0.29312512278556824,
-0.4255702495574951,
-0.09186256676912308,
-0.09940826147794724,
0.06395666301250458,
-0.031046364456415176,
-0.0595782995223999,
0.22522109746932983,
0.18361248075962067,
0.2673660218715668,
-0.12631841003894806,
-0.11264180392026901,
-0.20488685369491577,
-0.23271144926548004,
0.04492747783660889,
-0.04559851437807083,
0.24476389586925507,
0.1332670897245407,
-0.17323017120361328,
0.1027107983827591,
-0.09810987114906311,
0.23407518863677979,
-0.0067625492811203,
-0.1562597155570984,
0.34927454590797424,
0.06580764800310135,
-0.030431993305683136,
0.22294186055660248,
0.0730593353509903,
0.15385094285011292,
0.19394654035568237,
0.23207515478134155,
0.1487443596124649,
-0.007950721308588982,
-0.07115219533443451,
0.22369901835918427,
0.4041435718536377,
0.25198855996131897,
0.03719743341207504,
-0.2712741494178772,
0.0843023955821991,
-0.021531159058213234,
0.07442564517259598,
0.26113396883010864,
0.2805996835231781,
-0.07661672681570053,
-0.04500531405210495,
0.3252580463886261,
0.33346936106681824,
-0.12436889857053757,
-0.1631985306739807,
0.3182969391345978,
-0.013975637964904308,
0.42043009400367737,
0.4839690625667572,
0.4422832429409027,
0.1772608757019043,
0.26322224736213684,
-0.23644110560417175,
0.021929897367954254,
-0.11948077380657196,
0.1380641758441925,
0.09771773219108582,
-0.23486027121543884,
-0.05545014515519142,
0.39832445979118347,
0.10416111350059509,
0.15177872776985168,
0.12339529395103455,
0.19969335198402405,
0.22578023374080658,
0.4948219358921051,
0.3259190022945404,
0.2280329465866089,
0.05273013189435005,
0.03146113082766533,
0.12016326189041138,
0.012214869260787964,
0.16796448826789856,
0.055132582783699036,
0.5647079944610596,
-0.15059110522270203,
-0.1659448891878128,
0.1796603947877884,
0.237663134932518,
-0.01353539526462555,
-0.15443803369998932,
0.07370232045650482,
-0.020639680325984955,
-0.37147051095962524,
-0.08588609099388123,
0.09952010214328766,
-0.11062924563884735,
0.39704930782318115,
0.19652113318443298,
0.2857396602630615,
-0.14176732301712036,
0.18137973546981812,
0.11226452142000198,
0.24675139784812927,
-0.2470308095216751,
0.3504844009876251,
0.0195939838886261,
-0.11920370161533356,
-0.10851968824863434,
0.09912613034248352,
0.22373966872692108,
-0.11807234585285187,
-0.1607847362756729,
0.2019595056772232,
-0.25171035528182983,
-0.007994959130883217,
-0.04579583555459976,
0.2725593149662018,
0.28546634316444397,
0.28579089045524597,
0.33678868412971497,
0.18496383726596832,
-0.20130810141563416,
-0.10975627601146698,
0.21827492117881775,
-0.09864139556884766,
-0.11516208946704865,
0.17490209639072418,
-0.054174818098545074,
-0.14035886526107788,
-0.2893493175506592,
-0.0321444496512413,
-0.5881891846656799,
-0.17564727365970612,
0.36871710419654846,
-0.24871446192264557,
-0.028849180787801743,
-0.1787036955356598,
0.12499672174453735,
0.09505192935466766,
0.32847660779953003,
0.05348053574562073,
0.20663103461265564,
0.058749258518218994,
-0.37913697957992554,
-0.31513404846191406,
0.00044239312410354614,
-0.13133202493190765,
-0.22058282792568207,
-0.3215097486972809,
0.2591943144798279,
0.27776339650154114,
0.11954960972070694,
-0.010550782084465027,
0.35411694645881653,
0.12413270026445389,
0.013410508632659912,
-0.37218034267425537,
0.24822261929512024,
0.020926646888256073,
0.1585821807384491,
0.15023784339427948,
-0.14532066881656647,
-0.07848550379276276,
0.06029932573437691,
0.0443589985370636,
-0.20870639383792877,
-0.12151643633842468,
0.3126521706581116,
-0.03965131938457489,
0.44042667746543884,
0.18882252275943756,
0.3760472536087036,
-0.22459954023361206,
-0.17513598501682281,
-0.3231015205383301,
-0.23605285584926605,
-0.3889355957508087,
0.2374410629272461,
0.18504375219345093,
0.21815215051174164,
-0.11748664081096649,
-0.029377099126577377,
-0.11898437142372131,
0.3965698182582855,
0.022711269557476044,
0.2944965660572052,
-0.001513560302555561,
0.19624115526676178,
0.26749786734580994,
-0.1677461415529251,
0.0743265226483345,
0.5738524198532104,
0.05615333095192909,
0.0317840501666069,
0.08775801956653595,
-0.3447558283805847,
-0.016546428203582764,
0.20087726414203644,
-0.08907534182071686,
0.12100134044885635,
0.1768989861011505,
0.2702551484107971,
0.18543697893619537,
-0.4542296230792999,
-0.04644883796572685,
0.250499427318573,
0.2181609570980072,
-0.22881007194519043,
0.25795841217041016,
0.1778256744146347,
-0.24449241161346436,
0.019254673272371292,
0.02477375790476799,
0.2521754801273346,
-0.3240346312522888,
0.20672307908535004,
-0.2375117689371109
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Really cool dataset 👍 btw. does Transformers support all 11 tasks 🤔 would be awesome to have a xglue script (like the "normal" glue one) | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 25 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Really cool dataset 👍 btw. does Transformers support all 11 tasks 🤔 would be awesome to have a xglue script (like the "normal" glue one) | [
-0.360988587141037,
-0.24304813146591187,
-0.13333892822265625,
-0.10879018902778625,
-0.04881957918405533,
-0.15857115387916565,
0.40233317017555237,
0.10787023603916168,
0.1723627895116806,
0.04421283304691315,
-0.03236386179924011,
0.016761094331741333,
-0.13741041719913483,
0.331393301486969,
0.5176863074302673,
-0.23842284083366394,
0.1370011270046234,
-0.04148383438587189,
-0.2136697769165039,
-0.12390400469303131,
-0.2755308151245117,
0.14412811398506165,
-0.013041369616985321,
0.00206775963306427,
-0.3241947591304779,
-0.3382703363895416,
-0.2491801679134369,
0.020091108977794647,
0.08553700149059296,
-0.04900592565536499,
-0.10516127943992615,
0.23720897734165192,
-0.10009352117776871,
0.1456027328968048,
-0.00010290170030202717,
-0.2386936992406845,
0.15245530009269714,
-0.08552052825689316,
0.12337732315063477,
0.14651256799697876,
-0.43350619077682495,
-0.5227152109146118,
-0.2843218147754669,
-0.1264839470386505,
-0.053485117852687836,
0.12181107699871063,
0.2125728577375412,
-0.12923434376716614,
0.27360594272613525,
0.0016656490042805672,
0.28379637002944946,
0.2364496886730194,
0.042041320353746414,
-0.15838927030563354,
0.38808920979499817,
0.032544590532779694,
-0.08885008841753006,
-0.16771897673606873,
0.802485466003418,
0.024499015882611275,
-0.141556054353714,
0.17997990548610687,
-0.14849384129047394,
-0.316726952791214,
-0.11348473280668259,
-0.11712143570184708,
-0.15556052327156067,
-0.25859779119491577,
-0.08004753291606903,
0.5484516620635986,
0.18921397626399994,
-0.231271892786026,
-0.3534982204437256,
-0.19253715872764587,
-0.17063164710998535,
0.14138838648796082,
-0.11349635571241379,
0.28018343448638916,
0.11498571932315826,
-0.11051523685455322,
0.21312348544597626,
-0.41642752289772034,
-0.08007602393627167,
0.04799487441778183,
0.021342307329177856,
0.5528357028961182,
-0.1332031488418579,
0.08079814165830612,
0.21429619193077087,
0.04147940129041672,
0.03814901411533356,
-0.002829497680068016,
-0.08361171185970306,
0.11860861629247665,
-0.31189629435539246,
-0.1651514768600464,
0.08560653775930405,
0.05463770031929016,
0.16153112053871155,
0.10435774177312851,
0.17316310107707977,
0.3329557478427887,
-0.017584964632987976,
0.24729406833648682,
0.019155725836753845,
0.07905565202236176,
-0.023004695773124695,
-0.09287656843662262,
0.29408198595046997,
-0.46820303797721863,
0.11208406090736389,
0.005607042461633682,
-0.1300608515739441,
0.014156828634440899,
-0.30594682693481445,
0.14125461876392365,
-0.07820551097393036,
0.05452112480998039,
-0.05536244809627533,
-0.06135787069797516,
0.20528081059455872,
-0.06393294036388397,
-0.09961337596178055,
0.13236679136753082,
0.15290382504463196,
0.051107123494148254,
-0.1864059418439865,
0.2986695170402527,
0.04785248637199402,
-0.27547046542167664,
-0.050689324736595154,
0.3398028016090393,
-0.17619295418262482,
-0.08526013046503067,
0.032504092901945114,
0.24648161232471466,
-0.12374250590801239,
0.2510397434234619,
-0.1529008448123932,
0.09914867579936981,
0.4014102518558502,
-0.02385416440665722,
0.1298345923423767,
0.13622280955314636,
-0.10117527842521667,
0.05250825732946396,
-0.0508187972009182,
-0.16879937052726746,
-0.36687779426574707,
-0.01545359194278717,
0.07969313114881516,
-0.0815572440624237,
-0.37352901697158813,
0.22937005758285522,
-0.26969394087791443,
-0.3449990749359131,
0.08614026010036469,
0.6289960145950317,
-0.08803186565637589,
0.00497780367732048,
0.2904132604598999,
0.10500762611627579,
0.21247437596321106,
-0.3345426619052887,
-0.09299647808074951,
0.300129771232605,
-0.4730129837989807,
-0.3338138461112976,
-0.029049720615148544,
-0.23116129636764526,
-0.002157457172870636,
0.052013348788022995,
-0.04405135661363602,
-0.096174456179142,
-0.007373780012130737,
0.2651541829109192,
0.28897860646247864,
-0.2647593915462494,
-0.2074524462223053,
0.20986038446426392,
-0.19305744767189026,
-0.027348900213837624,
0.21758221089839935,
0.4717180132865906,
0.2743147611618042,
-0.12609215080738068,
-0.3171694278717041,
0.6667878031730652,
-0.1519974172115326,
0.03434792906045914,
-0.08015304803848267,
-0.24973361194133759,
0.10982522368431091,
0.3647829592227936,
0.2909836173057556,
-0.21672683954238892,
0.14394210278987885,
0.03966794162988663,
-0.04322338104248047,
-0.1433189958333969,
0.1415747106075287,
0.29058367013931274,
0.21364320814609528,
-0.07684259116649628,
-0.03560411185026169,
-0.3173747658729553,
-0.503420889377594,
-0.0827658474445343,
-0.13777971267700195,
0.2258930206298828,
0.08006706088781357,
-0.12185021489858627,
0.15996700525283813,
-0.09539958089590073,
-0.18084535002708435,
-0.286319375038147,
0.22057363390922546,
0.1641150414943695,
0.13974544405937195,
-0.025231704115867615,
-0.26860272884368896,
0.4233842194080353,
0.31953203678131104,
0.00750329066067934,
-0.3495748043060303,
-0.0012609902769327164,
0.0281367264688015,
-0.03372431918978691,
-0.09817823767662048,
0.13195505738258362,
-0.07955846935510635,
-0.40436771512031555,
0.1795046627521515,
0.2557617425918579,
-0.18804828822612762,
0.3382914066314697,
0.25615525245666504,
0.6219779849052429,
0.31335943937301636,
-0.019164390861988068,
0.3991295397281647,
0.06985020637512207,
0.009005575440824032,
-0.15015806257724762,
0.06758531183004379,
0.3907511234283447,
0.1409376710653305,
0.01828322559595108,
-0.08266577124595642,
0.2094753384590149,
0.25105229020118713,
-0.12551170587539673,
-0.1356682926416397,
0.06380358338356018,
0.30236318707466125,
0.05203650891780853,
0.3860325217247009,
-0.03373274207115173,
-0.17311766743659973,
0.12163173407316208,
0.6009008884429932,
-0.1979755014181137,
0.5357915759086609,
-0.07561573386192322,
-0.3768760859966278,
0.09951464086771011,
0.07518719136714935,
0.4574151337146759,
-0.03521646559238434,
0.318338006734848,
0.10941096395254135,
-0.09015975147485733,
-0.0832098126411438,
-0.11807744950056076,
0.12429814785718918,
-0.11582578718662262,
-0.10363048315048218,
0.08891141414642334,
-0.09437625110149384,
-0.20657524466514587,
-0.46623164415359497,
-0.20118361711502075,
0.06381015479564667,
-0.05390605330467224,
0.14870920777320862,
-0.0733555480837822,
0.1418779492378235,
-0.22426274418830872,
-0.3412419855594635,
-0.2206396758556366,
-0.377215713262558,
-0.22091813385486603,
0.23755520582199097,
-0.33349108695983887,
-0.26365408301353455,
0.2999638319015503,
0.09289070963859558,
0.33023059368133545,
-0.3172261416912079,
-0.2581762969493866,
-0.2700490653514862,
-0.2920686900615692,
-0.047799184918403625,
0.21569322049617767,
0.08474496752023697,
-0.08970589190721512,
0.3635438084602356,
0.03339599817991257,
0.38120537996292114,
-0.09194515645503998,
-0.568972110748291,
0.11916457861661911,
-0.12268146872520447,
0.06853852421045303,
0.1305505484342575,
-0.1295524686574936,
0.1467072069644928,
-0.24627646803855896,
0.11921165138483047,
-0.2974475920200348,
0.059424951672554016,
-0.02776292711496353,
-0.10274118930101395,
-0.135448157787323,
-0.11276032030582428,
-0.2742821276187897,
-0.4515143036842346,
-0.39902788400650024,
0.40147095918655396,
-0.13857895135879517,
0.08096279203891754,
0.07720237225294113,
-0.04109431058168411,
0.18766142427921295,
-0.010772714391350746,
-0.19632264971733093,
-0.18569840490818024,
-0.1812000721693039,
0.22953647375106812,
-0.16530457139015198,
-0.23285017907619476,
-0.383436918258667,
-0.3701707720756531,
0.14092907309532166,
0.17191918194293976,
-0.04343705251812935,
0.0923863872885704,
-0.40016788244247437,
-0.03429229557514191,
0.30726662278175354,
0.4078640341758728,
0.3317819833755493,
0.09750732779502869,
-0.11545060575008392,
-0.1843905746936798,
0.008715067058801651,
0.05107507482171059,
0.23511463403701782,
-0.11910257488489151,
0.011680280789732933,
0.11889462172985077,
0.0949406772851944,
0.31517428159713745,
-0.2041482925415039,
0.09759923070669174,
0.3520652651786804,
0.08416080474853516,
0.2209138423204422,
-0.07268539816141129,
-0.2704915404319763,
0.12742376327514648,
-0.16825810074806213,
0.16810666024684906,
-0.041746556758880615,
0.077224001288414,
-0.33644065260887146,
-0.049674030393362045,
-0.015291117131710052,
-0.202797532081604,
-0.10335162281990051,
0.3815239369869232,
-0.05140931159257889,
0.12082086503505707,
-0.006834598258137703,
-0.3145821988582611,
-0.20328237116336823,
-0.002461896277964115,
0.31778767704963684,
-0.12419570982456207,
-0.05327177792787552,
-0.07491298019886017,
-0.36060428619384766,
0.10256385058164597,
-0.4060274362564087,
0.4150729179382324,
0.05351326987147331,
0.038195766508579254,
-0.1957620531320572,
-0.10382847487926483,
-0.116411492228508,
-0.07207446545362473,
0.5585851669311523,
-0.766978919506073,
-0.24779726564884186,
0.2671754062175751,
-0.17530010640621185,
-0.2825009226799011,
0.0456872321665287,
-0.6122175455093384,
-0.1853535771369934,
0.3356098234653473,
0.26389163732528687,
-0.2619718313217163,
0.022221706807613373,
0.1353655457496643,
0.20766456425189972,
-0.03669664263725281,
0.11098161339759827,
-0.07391443848609924,
-0.20885980129241943,
-0.3884419798851013,
0.17257174849510193,
0.10431673377752304,
-0.12451563030481339,
0.4162594676017761,
-0.09967990964651108,
-0.1448269486427307,
-0.025769038125872612,
0.18149827420711517,
0.06212500110268593,
-0.25120460987091064,
0.03504381701350212,
-0.235183984041214,
-0.0061824023723602295,
-0.17704512178897858,
-0.36598625779151917,
0.18198053538799286,
0.04890469089150429,
-0.026166610419750214,
0.1500627100467682,
-0.3189904987812042,
0.5837529301643372,
0.06183609366416931,
0.4266433119773865,
0.19437605142593384,
-0.05781906098127365,
0.008254282176494598,
-0.43152686953544617,
0.122073695063591,
0.049535103142261505,
0.4362938702106476,
-0.5069682598114014,
-0.2749752998352051,
0.3288789391517639,
0.21967099606990814,
-0.2500654458999634,
0.32413485646247864,
0.06308764219284058,
-0.17477615177631378,
0.23111210763454437,
0.05909750610589981,
1.0470571517944336,
-0.28538691997528076,
0.0825854241847992,
-0.07689515501260757,
-0.3744666576385498,
0.36894193291664124,
-0.47116363048553467,
0.13207748532295227,
-0.41659241914749146,
-0.42933088541030884,
-0.1159038171172142,
-0.12748178839683533,
0.1884615421295166,
0.24917975068092346,
-0.45335713028907776,
0.11044389009475708,
0.033763714134693146,
0.2077464461326599,
-0.07785015553236008,
0.4188002943992615,
-0.23526808619499207,
-0.3907492160797119,
0.10439537465572357,
0.24565693736076355,
0.012592107057571411,
0.10328890383243561,
-0.20527935028076172,
-0.13384167850017548,
0.12230387330055237,
-0.03825599327683449,
-0.4704654812812805,
0.21535223722457886,
-0.06747952848672867,
0.2509663701057434,
-0.033118803054094315,
-0.12068190425634384,
0.07493507862091064,
-0.2031746208667755,
0.11265958845615387,
0.0963345617055893,
0.06401444226503372,
0.16829676926136017,
-0.09945284575223923,
0.045948900282382965,
0.2933206856250763,
-0.057347510010004044,
0.39248570799827576,
-0.030672118067741394,
-0.19838659465312958,
0.16369017958641052,
0.11910806596279144,
-0.17074313759803772,
-0.4024884104728699,
0.04869135841727257,
-0.0601891353726387,
0.020322224125266075,
0.0897638350725174,
0.39422303438186646,
-0.03168686851859093,
-0.27789413928985596,
0.1909075528383255,
0.13372546434402466,
-0.08440592139959335,
0.2934398055076599,
-0.11496731638908386,
-0.1069839745759964,
-0.27992668747901917,
-0.13669303059577942,
0.1460368037223816,
-0.09616616368293762,
-0.0794295147061348,
0.3056715428829193,
-0.13498513400554657,
-0.43385082483291626,
0.28407227993011475,
0.6293209791183472,
-0.48507821559906006,
0.003691899124532938,
-0.3216131329536438,
-0.6450652480125427,
-0.11302200704813004,
0.13392819464206696,
0.25034043192863464,
0.12126678973436356,
-0.1605263501405716,
-0.13936617970466614,
-0.2133231908082962,
0.25151824951171875,
0.24500226974487305,
0.27807387709617615,
-0.13371700048446655,
-0.13243916630744934,
0.25733229517936707,
0.4048440456390381,
-0.4375583529472351,
-0.08299173414707184,
-0.16185252368450165,
0.13447198271751404,
0.3316454589366913,
-0.1460801064968109,
0.1819198876619339,
0.15134064853191376,
0.16559529304504395,
-0.03869006782770157,
-0.1681571900844574,
-0.21878519654273987,
-0.2697503864765167,
0.0720074474811554,
-0.08650299161672592,
0.15661904215812683,
0.17917397618293762,
0.03786073625087738,
0.08185179531574249,
-0.1696387678384781,
0.29376307129859924,
-0.06193922832608223,
-0.10260950028896332,
0.2647131085395813,
-0.03278477117419243,
-0.05745277553796768,
0.14386224746704102,
0.009340068325400352,
0.04677315056324005,
-0.010986410081386566,
0.1935272365808487,
0.13486067950725555,
0.3256726562976837,
-0.15006880462169647,
0.053651921451091766,
0.39593520760536194,
0.49301981925964355,
-0.10050279647111893,
-0.014537811279296875,
0.10710140317678452,
0.050195369869470596,
0.203867107629776,
0.24013972282409668,
-0.12643922865390778,
-0.0027315658517181873,
0.10493141412734985,
0.1144297868013382,
0.3260229527950287,
-0.22551429271697998,
-0.2132740616798401,
0.2950293719768524,
-0.09166824817657471,
0.3021835684776306,
0.45596879720687866,
0.27274152636528015,
0.07486246526241302,
0.4452638626098633,
-0.21985453367233276,
0.43966853618621826,
-0.2672581076622009,
0.301018089056015,
0.15159092843532562,
-0.19967207312583923,
-0.1657266765832901,
0.3411111831665039,
0.13336092233657837,
0.05909213796257973,
0.21533535420894623,
0.07625288516283035,
0.08075007796287537,
0.4413015842437744,
0.21588122844696045,
0.3455505967140198,
0.04951366409659386,
0.058501649647951126,
0.11244422197341919,
0.22379249334335327,
0.32843896746635437,
0.12376612424850464,
0.19692528247833252,
-0.12858988344669342,
0.046652425080537796,
-0.07428974658250809,
0.32861244678497314,
-0.20253804326057434,
-0.04396901652216911,
0.4355286955833435,
-0.07044282555580139,
-0.29198604822158813,
0.08138036727905273,
0.13365310430526733,
-0.20376713573932648,
0.47640475630760193,
0.02738581970334053,
0.3670366406440735,
0.093661367893219,
0.38178589940071106,
0.044027917087078094,
0.012791149318218231,
-0.36429736018180847,
0.21067123115062714,
0.09456128627061844,
0.04581030458211899,
-0.1554965376853943,
0.36916497349739075,
0.2344435751438141,
-0.041345514357089996,
-0.31026023626327515,
0.5758242011070251,
-0.3054918944835663,
0.005496421828866005,
-0.08149518817663193,
0.2868717908859253,
0.1579234004020691,
0.4094846546649933,
0.19793659448623657,
0.15841706097126007,
-0.18920888006687164,
-0.24667410552501678,
0.01801324263215065,
-0.26327139139175415,
0.05461902916431427,
0.15112578868865967,
-0.10839566588401794,
-0.20246613025665283,
-0.33435699343681335,
0.14450262486934662,
-0.596122682094574,
-0.20819196105003357,
0.27076688408851624,
-0.30623289942741394,
0.0033912677317857742,
-0.025952965021133423,
0.11645744740962982,
0.04095405712723732,
0.3355068266391754,
0.15051914751529694,
0.44129040837287903,
-0.10460148751735687,
-0.24396011233329773,
-0.3743424713611603,
0.029732711613178253,
0.10279851406812668,
-0.1452234983444214,
-0.16904211044311523,
0.07202103734016418,
0.35308435559272766,
0.1691129058599472,
-0.09046924114227295,
0.2801837623119354,
-0.08964964002370834,
-0.12126190960407257,
-0.26209738850593567,
0.47051572799682617,
0.25034230947494507,
0.2977387011051178,
0.15264756977558136,
-0.0619148425757885,
-0.0834922194480896,
0.13309381902217865,
0.17209655046463013,
-0.308657169342041,
-0.13178402185440063,
-0.03111562877893448,
-0.2584132254123688,
0.3762414753437042,
0.057452768087387085,
0.40256521105766296,
-0.24087116122245789,
-0.07904629409313202,
-0.2328086495399475,
-0.2008938491344452,
-0.2569524049758911,
0.10513921082019806,
0.1329866498708725,
0.15058590471744537,
-0.028600916266441345,
-0.11165177822113037,
-0.18172763288021088,
-0.0419376939535141,
-0.0280581284314394,
0.5094858407974243,
-0.16846755146980286,
0.1310398429632187,
-0.06545106321573257,
-0.09676225483417511,
0.0321713462471962,
0.2447134554386139,
0.12301167845726013,
-0.045619331300258636,
0.01579609513282776,
-0.26177048683166504,
0.054660946130752563,
0.19933664798736572,
-0.414224237203598,
-0.13038061559200287,
0.05494827777147293,
0.056685879826545715,
0.20642505586147308,
-0.31331703066825867,
0.0007214471697807312,
0.14394181966781616,
0.09252224862575531,
-0.0868832916021347,
0.18796761333942413,
0.23192790150642395,
-0.3672061562538147,
-0.07413399964570999,
-0.13598062098026276,
0.11378651112318039,
-0.21011723577976227,
-0.05236628279089928,
-0.3238990902900696
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Just to make sure this is what we want here. If we add one config per language,
this means that this dataset ends up with well over 100 different configs most of which will have the same `train` split. The train split is always in English. Also, I'm not sure whether it's better for the user to be honest.
I think it could be quite confusing for the user to have
```python
train_dataset = load_dataset("xglue", "ner-de", split="train")
```
in English even though it's `ner-de`.
To be honest, I'd prefer:
```python
train_dataset = load_dataset("xglue", "ner", split="train")
test_dataset_de = load_dataset("xglue", "ner", split="test-de")
test_dataset_fr = load_dataset("xglue", "ner", split="test-fr")
```
here | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 107 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Just to make sure this is what we want here. If we add one config per language,
this means that this dataset ends up with well over 100 different configs most of which will have the same `train` split. The train split is always in English. Also, I'm not sure whether it's better for the user to be honest.
I think it could be quite confusing for the user to have
```python
train_dataset = load_dataset("xglue", "ner-de", split="train")
```
in English even though it's `ner-de`.
To be honest, I'd prefer:
```python
train_dataset = load_dataset("xglue", "ner", split="train")
test_dataset_de = load_dataset("xglue", "ner", split="test-de")
test_dataset_fr = load_dataset("xglue", "ner", split="test-fr")
```
here | [
-0.1910264790058136,
0.053199976682662964,
-0.07769244909286499,
0.010843414813280106,
0.03872804343700409,
-0.080675408244133,
0.5347978472709656,
0.037728287279605865,
-0.02048022486269474,
0.14164426922798157,
-0.11443264782428741,
0.06805206835269928,
-0.18432913720607758,
0.2480088621377945,
0.39434874057769775,
-0.13489533960819244,
0.020919039845466614,
-0.15787440538406372,
0.21387286484241486,
-0.12651637196540833,
-0.11703021824359894,
0.14626675844192505,
0.2255791574716568,
0.07062870264053345,
-0.3789374828338623,
-0.21154817938804626,
-0.17507512867450714,
0.015306107699871063,
0.0442245751619339,
-0.2807621657848358,
0.026356158778071404,
0.05781220272183418,
-0.04845831170678139,
0.16283991932868958,
-0.00010367197683081031,
0.14116759598255157,
-0.05408628284931183,
-0.07715047150850296,
0.13243189454078674,
-0.19617320597171783,
-0.27362293004989624,
-0.49074095487594604,
-0.07530033588409424,
-0.10899867117404938,
-0.13036566972732544,
-0.0766441747546196,
0.017850644886493683,
-0.4681304097175598,
0.1797655075788498,
0.18165436387062073,
0.2313515543937683,
-0.0988326370716095,
-0.471057653427124,
-0.054699789732694626,
0.15439064800739288,
-0.18097175657749176,
-0.010841403156518936,
0.24466270208358765,
0.20244643092155457,
0.16735750436782837,
-0.21047547459602356,
0.4398645758628845,
0.1683361530303955,
-0.23137320578098297,
-0.19687560200691223,
0.1649385690689087,
-0.1484719216823578,
-0.23617887496948242,
-0.1522667109966278,
0.5677235722541809,
0.08080606907606125,
-0.3228994905948639,
-0.3928545117378235,
-0.2704527974128723,
0.19991539418697357,
-0.2888876497745514,
0.051883064210414886,
0.21130363643169403,
0.21760374307632446,
0.17513149976730347,
0.23172953724861145,
-0.6836287975311279,
0.05401238054037094,
0.13562987744808197,
-0.09718294441699982,
0.5137049555778503,
-0.0015303706750273705,
0.24394896626472473,
0.08156809210777283,
0.14022770524024963,
0.020835071802139282,
-0.007843494415283203,
-0.08978620171546936,
-0.10025498270988464,
-0.2409183830022812,
0.10668104887008667,
-0.1642867922782898,
-0.015039414167404175,
0.09461326897144318,
-0.09356942772865295,
0.07274789363145828,
0.15369074046611786,
0.10897853970527649,
0.2050894796848297,
0.17767399549484253,
0.11803656816482544,
0.2366349697113037,
0.06276839971542358,
0.28873246908187866,
-0.47104570269584656,
-0.07780613750219345,
0.019507044926285744,
0.07468488067388535,
-0.191241055727005,
-0.17271415889263153,
-0.04594659060239792,
0.026984892785549164,
0.06635220348834991,
-0.09597714245319366,
0.10529407858848572,
-0.20619845390319824,
-0.2935824990272522,
0.0990043506026268,
0.14490127563476562,
0.12773117423057556,
0.14136043190956116,
-0.20307473838329315,
0.3725823760032654,
-0.2662520706653595,
-0.25717994570732117,
-0.22774559259414673,
0.34097081422805786,
-0.37485337257385254,
0.09210174530744553,
-0.20217569172382355,
-0.08082328736782074,
-0.04762335121631622,
0.32922497391700745,
-0.10714657604694366,
-0.15804989635944366,
0.09158724546432495,
-0.13378356397151947,
0.0519525408744812,
-0.12472878396511078,
0.012554816901683807,
0.15801884233951569,
0.05701855942606926,
-0.3566265106201172,
-0.46264639496803284,
-0.030036918818950653,
-0.2527827024459839,
-0.25492724776268005,
-0.28752636909484863,
0.20567211508750916,
-0.1694248467683792,
-0.23213869333267212,
0.2545633912086487,
0.7391149997711182,
0.127379909157753,
-0.11755965650081635,
0.2827656865119934,
-0.12431798875331879,
-0.1663300096988678,
-0.2764618694782257,
-0.0702713280916214,
0.23627829551696777,
-0.5743148326873779,
-0.4132932126522064,
0.22535660862922668,
-0.19761890172958374,
0.20691591501235962,
0.1966433972120285,
-0.3473394811153412,
0.010995037853717804,
-0.1177360862493515,
0.35342085361480713,
0.5970428586006165,
-0.292346715927124,
-0.13038693368434906,
0.2141423225402832,
-0.2635834217071533,
0.08893885463476181,
0.2357158064842224,
0.2031344622373581,
0.1027277484536171,
0.19822055101394653,
0.0678456649184227,
0.46302229166030884,
-0.005303395912051201,
-0.15738707780838013,
-0.14021921157836914,
-0.19028420746326447,
0.35425692796707153,
0.23231349885463715,
-0.038150954991579056,
-0.286372572183609,
0.19471707940101624,
0.08990858495235443,
0.23909282684326172,
-0.14268282055854797,
0.09645383805036545,
0.29860132932662964,
0.0468662865459919,
0.017902322113513947,
-0.1953505575656891,
-0.07084277272224426,
-0.33365461230278015,
0.14706334471702576,
0.036867402493953705,
0.3827439844608307,
0.29175132513046265,
-0.2662767171859741,
0.17797055840492249,
-0.3421454429626465,
-0.4258972108364105,
-0.34598973393440247,
0.16144925355911255,
0.2230122834444046,
-0.06804075837135315,
0.23298709094524384,
-0.2800189256668091,
0.5938704013824463,
0.039046213030815125,
0.11165785044431686,
-0.38179147243499756,
0.05302765965461731,
0.06863034516572952,
-0.18937186896800995,
-0.23764732480049133,
0.23937860131263733,
-0.17180964350700378,
-0.2405155599117279,
-0.039892975240945816,
0.4583500921726227,
0.2323983907699585,
0.048837270587682724,
-0.0718662217259407,
0.11908437311649323,
0.38366544246673584,
0.10945741832256317,
0.18133217096328735,
-0.22942350804805756,
-0.1822824478149414,
-0.12372517585754395,
0.08271974325180054,
0.5217261910438538,
0.3244665563106537,
0.10043186694383621,
-0.1075853705406189,
0.03577332943677902,
0.19101345539093018,
-0.04159858450293541,
-0.35691651701927185,
-0.2650184631347656,
0.055667802691459656,
0.055683400481939316,
0.43478015065193176,
0.15920808911323547,
-0.5791935324668884,
-0.07125268131494522,
0.7180762887001038,
0.009767595678567886,
0.16936375200748444,
-0.06936623156070709,
0.055839262902736664,
0.10119705647230148,
0.1895572692155838,
0.5201981067657471,
0.21229203045368195,
0.23894309997558594,
0.29824671149253845,
-0.016514530405402184,
-0.19407621026039124,
-0.18283142149448395,
-0.10593829303979874,
-0.23709969222545624,
0.07950122654438019,
-0.03629209101200104,
-0.20300735533237457,
-0.25750279426574707,
-0.4082722067832947,
-0.1509489119052887,
0.14719358086585999,
-0.029232269152998924,
-0.02942681312561035,
0.024503352120518684,
-0.3005197048187256,
-0.18015393614768982,
-0.5986664891242981,
-0.3013352155685425,
-0.611575722694397,
-0.1811361014842987,
0.24471361935138702,
-0.6047825217247009,
-0.04670106619596481,
0.42294245958328247,
-0.14253206551074982,
-0.04067160189151764,
-0.4698757529258728,
-0.5025679469108582,
0.2565767765045166,
-0.04210545867681503,
-0.40647780895233154,
0.09187836945056915,
0.15798063576221466,
-0.03272470831871033,
0.2512928247451782,
-0.14214354753494263,
-0.06450459361076355,
0.11132191121578217,
-0.40088191628456116,
0.18253979086875916,
-0.20621562004089355,
0.14822933077812195,
0.10054896026849747,
-0.33477920293807983,
-0.05729079991579056,
-0.3021548390388489,
0.3210502862930298,
0.015002468600869179,
0.1456759124994278,
-0.06467077136039734,
0.07678571343421936,
0.04754170775413513,
-0.0653710663318634,
-0.720400333404541,
-0.5405855774879456,
-0.19820339977741241,
0.010397184640169144,
-0.1640195995569229,
0.11040907353162766,
0.25345858931541443,
0.08905559778213501,
0.011973916552960873,
-0.1456252932548523,
-0.004496852867305279,
-0.22575709223747253,
-0.3820059597492218,
-0.029185298830270767,
-0.10998884588479996,
-0.15680643916130066,
-0.030467428267002106,
-0.0716736912727356,
0.2077922523021698,
0.17670109868049622,
-0.13786467909812927,
0.0166730135679245,
-0.19390542805194855,
0.2275470495223999,
0.035325806587934494,
0.42532891035079956,
0.1598968803882599,
0.1543308049440384,
-0.03260458633303642,
-0.043575771152973175,
-0.1585961878299713,
0.378044068813324,
0.20333042740821838,
0.012777581810951233,
-0.0691450834274292,
0.0634472444653511,
0.059462402015924454,
0.2326345294713974,
0.177354633808136,
0.06412969529628754,
0.27999943494796753,
-0.3380759656429291,
0.39777734875679016,
-0.1409880816936493,
-0.2067125290632248,
0.21829016506671906,
-0.032391563057899475,
0.01405976340174675,
0.1528438925743103,
0.027188442647457123,
-0.30398571491241455,
-0.08513565361499786,
0.07785610854625702,
-0.016670726239681244,
-0.3773217797279358,
0.3567855954170227,
-0.153914675116539,
0.032072458416223526,
-0.1507052183151245,
-0.15223979949951172,
0.10294798016548157,
0.18176797032356262,
0.029573507606983185,
0.0969722792506218,
-0.3498257100582123,
0.18323172628879547,
-0.5369266867637634,
-0.09914184361696243,
-0.29990845918655396,
0.10797072947025299,
0.1305074393749237,
0.27625638246536255,
-0.18664759397506714,
0.0029906779527664185,
0.017507068812847137,
0.015031537041068077,
0.3966665267944336,
-0.48084932565689087,
-0.4820995330810547,
0.2004491239786148,
0.02125684916973114,
-0.13059334456920624,
-0.08556772768497467,
-0.3278745114803314,
-0.018842123448848724,
0.34981822967529297,
0.05629592016339302,
-0.3079889118671417,
-0.1586359292268753,
0.067622110247612,
0.38207510113716125,
-0.20287074148654938,
0.06072769686579704,
-0.20347177982330322,
-0.17284676432609558,
-0.09921931475400925,
0.19701610505580902,
0.02097725309431553,
0.12047987431287766,
0.28898873925209045,
-0.12231886386871338,
0.03174359351396561,
-0.08469437062740326,
0.19886374473571777,
0.14647860825061798,
0.09171244502067566,
0.11640660464763641,
-0.1610090136528015,
0.050102464854717255,
0.06765881180763245,
-0.1485195904970169,
0.44026413559913635,
-0.30873075127601624,
-0.22864097356796265,
0.07877825200557709,
-0.0829526036977768,
0.4901840090751648,
0.26314324140548706,
0.1338197886943817,
0.09826814383268356,
0.017766661942005157,
-0.08510243892669678,
-0.029889419674873352,
0.30468109250068665,
0.21235285699367523,
0.3412999212741852,
-0.5329070091247559,
-0.7967942953109741,
0.2185470163822174,
0.3822431266307831,
-0.05367807671427727,
0.34107860922813416,
0.19012102484703064,
-0.4465325176715851,
0.20732344686985016,
-0.08302675932645798,
0.9011125564575195,
-0.1306346207857132,
0.2235770970582962,
0.14950446784496307,
-0.1318379044532776,
0.3479495346546173,
-0.3285906910896301,
0.0038766171783208847,
-0.24081255495548248,
-0.04374483600258827,
-0.03649849444627762,
0.05165465548634529,
0.4080277979373932,
0.17105670273303986,
-0.3253442943096161,
0.21908122301101685,
-0.06320464611053467,
-0.024665217846632004,
-0.26532790064811707,
0.5389804840087891,
-0.3405444324016571,
-0.3104388415813446,
0.011744359508156776,
0.12111234664916992,
0.016459424048662186,
-0.12401999533176422,
-0.03200490027666092,
-0.034630563110113144,
-0.10270906239748001,
-0.049944356083869934,
-0.22205184400081635,
-0.013993095606565475,
-0.33447685837745667,
0.2656892240047455,
-0.2952316403388977,
-0.35784703493118286,
0.045335981994867325,
0.20261551439762115,
-0.0023021697998046875,
-0.01059873029589653,
0.26554059982299805,
0.07410997152328491,
0.1182730495929718,
0.09958431869745255,
0.22594159841537476,
-0.22875835001468658,
0.40695658326148987,
0.04969888925552368,
-0.4066692590713501,
0.13848274946212769,
-0.003756139427423477,
-0.04183555021882057,
-0.28773027658462524,
0.16582071781158447,
-0.014004483819007874,
-0.3451160490512848,
-0.08676232397556305,
0.5174047946929932,
0.16955585777759552,
-0.1511254459619522,
0.1396109163761139,
0.22600498795509338,
-0.18922603130340576,
0.17032957077026367,
-0.1977107971906662,
-0.31337448954582214,
-0.3624939024448395,
-0.19348135590553284,
0.3652394115924835,
0.0774342268705368,
0.018369896337389946,
-0.037393197417259216,
-0.03925773501396179,
-0.15476094186306,
0.3754968047142029,
0.6007118225097656,
-0.2000179886817932,
-0.2600068747997284,
0.025549039244651794,
-0.19863855838775635,
-0.13102565705776215,
-0.09644180536270142,
0.09957675635814667,
0.28877511620521545,
-0.013568539172410965,
-0.13677363097667694,
-0.02939778007566929,
0.18599840998649597,
0.26471439003944397,
0.23566022515296936,
0.06035379320383072,
0.13106323778629303,
0.057103924453258514,
0.16264741122722626,
-0.34801244735717773,
-0.11275063455104828,
0.06216572970151901,
0.06325170397758484,
-0.07949172705411911,
0.15834152698516846,
0.12012417614459991,
0.0510212667286396,
0.21734263002872467,
-0.23186148703098297,
-0.08957360684871674,
-0.1527537703514099,
-0.29585689306259155,
0.07017840445041656,
0.03110569529235363,
0.2595134973526001,
0.2123279571533203,
-0.06696225702762604,
0.2546614110469818,
-0.06714330613613129,
0.4487276077270508,
0.3342234492301941,
-0.020339779555797577,
0.38259708881378174,
0.09657955169677734,
0.07753146439790726,
0.02160385623574257,
0.07774253189563751,
0.006276033818721771,
0.09198726713657379,
0.34651535749435425,
0.21320393681526184,
-0.009408144280314445,
-0.06846079975366592,
0.1386404186487198,
0.1333218812942505,
0.046771712601184845,
0.15333805978298187,
-0.5616035461425781,
-0.19832395017147064,
0.2329382300376892,
0.11034172773361206,
0.3073979914188385,
0.5193899273872375,
-0.2277439683675766,
0.04899913817644119,
0.2958119511604309,
0.2463621348142624,
-0.16524073481559753,
-0.13342685997486115,
0.32223325967788696,
-0.19744141399860382,
0.3228980302810669,
0.6079254746437073,
0.396999716758728,
0.3502959907054901,
0.17848674952983856,
-0.3887110948562622,
-0.0774659663438797,
-0.05738435685634613,
0.37645524740219116,
0.3210882246494293,
-0.27725866436958313,
-0.039072129875421524,
0.3862943649291992,
0.2131916880607605,
0.08365117013454437,
0.18984904885292053,
-0.2030174434185028,
0.2447146624326706,
0.44800567626953125,
0.25591275095939636,
-0.019644983112812042,
-0.18035277724266052,
0.11194652318954468,
0.12269742041826248,
-0.09230852127075195,
-0.024262316524982452,
-0.023091435432434082,
0.38338515162467957,
-0.155544251203537,
-0.13966377079486847,
0.29856085777282715,
0.2837643325328827,
-0.19401296973228455,
-0.15349982678890228,
0.19682209193706512,
0.05117378383874893,
-0.2921155095100403,
0.13232536613941193,
-0.08479216694831848,
-0.3820860981941223,
0.1012466549873352,
0.22829969227313995,
0.12561340630054474,
-0.01722112111747265,
0.1757410764694214,
-0.09206651896238327,
-0.05849283188581467,
-0.15086078643798828,
0.37557172775268555,
-0.0813727080821991,
-0.036599770188331604,
-0.03099888190627098,
0.06499883532524109,
0.1281387060880661,
-0.07762680947780609,
0.11417548358440399,
0.2989532947540283,
0.012391271069645882,
0.19528990983963013,
0.021553248167037964,
0.08135002106428146,
0.263641893863678,
0.27846816182136536,
0.38464805483818054,
0.14333967864513397,
-0.1800048053264618,
-0.10379651188850403,
0.19690337777137756,
-0.1185324639081955,
-0.2046385556459427,
0.4069385528564453,
0.016879571601748466,
0.14842945337295532,
-0.30071765184402466,
0.10544916242361069,
-0.5907670855522156,
-0.10816842317581177,
0.48242324590682983,
-0.13249266147613525,
-0.024305306375026703,
-0.11972296983003616,
0.10843805968761444,
0.17696231603622437,
0.13531945645809174,
-0.14255936443805695,
0.28588902950286865,
-0.1633039265871048,
-0.09713625907897949,
-0.5655859708786011,
0.016347087919712067,
-0.23571819067001343,
-0.22225849330425262,
-0.32702377438545227,
0.17912285029888153,
0.25471457839012146,
0.14690327644348145,
-0.025016412138938904,
0.30190223455429077,
0.04072617366909981,
-0.022203534841537476,
-0.21679988503456116,
0.21685124933719635,
0.03394967317581177,
0.375287801027298,
0.0588299036026001,
-0.04589816555380821,
-0.07105617225170135,
0.13669037818908691,
-0.03379179909825325,
-0.1267012506723404,
-0.055482231080532074,
0.18352428078651428,
-0.1502084732055664,
0.484589159488678,
0.07219304144382477,
0.3468744158744812,
-0.09686721861362457,
0.044964417815208435,
-0.32038214802742004,
-0.10270193964242935,
-0.4841051399707794,
0.35301700234413147,
0.07048100233078003,
0.17930762469768524,
-0.18415428698062897,
-0.10123378038406372,
-0.2685377597808838,
0.30255016684532166,
0.1291610300540924,
0.07572516053915024,
0.1334386020898819,
0.2273639738559723,
0.3005329966545105,
-0.11051490902900696,
0.07998434454202652,
0.6495316028594971,
0.10909971594810486,
0.026389123871922493,
-0.03702418878674507,
-0.2057637870311737,
0.012617304921150208,
0.1199866309762001,
-0.1545427292585373,
0.10377687960863113,
0.17776888608932495,
0.31715595722198486,
0.11343494057655334,
-0.5646631717681885,
0.07757765799760818,
0.32904577255249023,
-0.01244598999619484,
-0.16235323250293732,
0.1617172360420227,
0.19169320166110992,
-0.18852978944778442,
-0.0747932642698288,
-0.03791683912277222,
0.10365242511034012,
-0.26208949089050293,
0.11516895890235901,
-0.3432025909423828
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Oh yes right I didn't notice the train set was always in english sorry.
Moreover it seems that the way this dataset is used is to pick a pretrained multilingual model, fine-tune it on the english train set and then evaluate on each test set (one per language).
So to better fit the usual usage of this dataset, I agree that it's better to have one test split per language.
Something like your latest example patrick is fine imo :
```python
train_dataset = load_dataset("xglue", "ner", split="train")
test_dataset_de = load_dataset("xglue", "ner", split="test.de")
```
I just replace test-de with test.de since `-` is not allowed for split names (it has to follow the `\w+` regex), and usually we specify the language after a point. | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 122 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Oh yes right I didn't notice the train set was always in english sorry.
Moreover it seems that the way this dataset is used is to pick a pretrained multilingual model, fine-tune it on the english train set and then evaluate on each test set (one per language).
So to better fit the usual usage of this dataset, I agree that it's better to have one test split per language.
Something like your latest example patrick is fine imo :
```python
train_dataset = load_dataset("xglue", "ner", split="train")
test_dataset_de = load_dataset("xglue", "ner", split="test.de")
```
I just replace test-de with test.de since `-` is not allowed for split names (it has to follow the `\w+` regex), and usually we specify the language after a point. | [
-0.18502937257289886,
-0.01326674222946167,
-0.14869073033332825,
0.0019629821181297302,
0.0076411571353673935,
0.04465591907501221,
0.5710828304290771,
0.22784382104873657,
0.07958218455314636,
-0.006703287363052368,
-0.09681880474090576,
0.038820620626211166,
-0.1122409924864769,
0.26150864362716675,
0.31103503704071045,
-0.23841363191604614,
-0.06845919042825699,
-0.056533247232437134,
0.12409426271915436,
-0.13997909426689148,
-0.20463667809963226,
0.1350337713956833,
-0.04912976548075676,
0.12635445594787598,
-0.28880178928375244,
-0.2710746228694916,
-0.280975878238678,
0.1510724425315857,
0.09820910543203354,
-0.3324353098869324,
-0.014555994421243668,
0.08202078938484192,
-0.10009566694498062,
0.2394537329673767,
-0.00009845446038525552,
0.003583550453186035,
0.011647239327430725,
-0.1343543976545334,
0.09317660331726074,
-0.24684284627437592,
-0.16675344109535217,
-0.3409181535243988,
-0.08399222046136856,
-0.2314070165157318,
-0.1988067626953125,
-0.2100846767425537,
-0.007141100242733955,
-0.41295677423477173,
0.25744467973709106,
0.4221239686012268,
0.26587751507759094,
0.09259691834449768,
-0.44353237748146057,
-0.05774863064289093,
0.0836898609995842,
-0.24228985607624054,
-0.014265509322285652,
0.31787821650505066,
0.342406690120697,
0.09164955466985703,
-0.2131611704826355,
0.47224485874176025,
0.21478794515132904,
-0.21400979161262512,
-0.37498700618743896,
0.22260937094688416,
0.16219401359558105,
-0.25663062930107117,
-0.24461233615875244,
0.51900315284729,
0.08858835697174072,
-0.19968384504318237,
-0.4328460991382599,
-0.3251277804374695,
0.14379581809043884,
-0.26285520195961,
-0.06955518573522568,
0.13110244274139404,
0.16541007161140442,
0.19958116114139557,
0.2035408765077591,
-0.4648979902267456,
-0.00414787232875824,
-0.0275469571352005,
-0.05123325064778328,
0.44902682304382324,
0.08374835550785065,
0.2335713803768158,
0.06611549854278564,
0.14115199446678162,
0.07010145485401154,
-0.04587835818529129,
-0.0986158698797226,
0.05530326068401337,
-0.30709752440452576,
0.011703401803970337,
-0.1072816327214241,
0.047476910054683685,
0.049276091158390045,
-0.0513090118765831,
0.05775673687458038,
0.14989736676216125,
-0.042606063187122345,
0.083139568567276,
0.14481060206890106,
0.19860856235027313,
0.2610931098461151,
-0.002500226255506277,
0.2398752123117447,
-0.24846632778644562,
-0.15957111120224,
0.04470185935497284,
-0.06254171580076218,
-0.23788368701934814,
-0.09818191826343536,
0.14678418636322021,
0.0020363833755254745,
-0.019232116639614105,
-0.25919419527053833,
0.021880533546209335,
-0.2672099173069,
-0.25675728917121887,
0.1375150978565216,
0.3601800203323364,
0.10105178505182266,
0.17835578322410583,
-0.19496166706085205,
0.40005242824554443,
-0.2575910687446594,
-0.3261202871799469,
-0.23605196177959442,
0.41395866870880127,
-0.3500252068042755,
-0.11151311546564102,
-0.16631285846233368,
-0.003502288833260536,
0.05613213777542114,
0.223570317029953,
-0.06941817700862885,
-0.27113646268844604,
0.21843479573726654,
-0.19560320675373077,
0.043045103549957275,
-0.15666750073432922,
0.1363712102174759,
0.14809611439704895,
0.055105060338974,
-0.2610815763473511,
-0.2872409522533417,
0.12496154010295868,
-0.2613193094730377,
-0.21907085180282593,
-0.13097675144672394,
0.2636016011238098,
-0.05563914775848389,
-0.20259319245815277,
0.15377776324748993,
0.6856271028518677,
0.06794413924217224,
-0.08290423452854156,
0.1622471958398819,
-0.16989527642726898,
-0.2368927150964737,
-0.14989648759365082,
0.06041858345270157,
0.2283628284931183,
-0.4998067319393158,
-0.22306394577026367,
0.1563815027475357,
-0.1898706704378128,
0.23989591002464294,
0.17883536219596863,
-0.3093423545360565,
0.143164724111557,
-0.1819397360086441,
0.3296810984611511,
0.43373438715934753,
-0.1968708485364914,
0.0012613311409950256,
0.16488075256347656,
-0.27698689699172974,
0.14396019279956818,
0.09819147735834122,
0.09634776413440704,
-0.03980844095349312,
0.09146837890148163,
-0.11297816038131714,
0.42145460844039917,
-0.13137584924697876,
-0.08327266573905945,
-0.20459263026714325,
0.05185879021883011,
0.49031126499176025,
0.19384725391864777,
0.011559154838323593,
-0.28995731472969055,
0.02322237938642502,
0.20184120535850525,
0.416817843914032,
-0.2848474681377411,
-0.010251101106405258,
0.14889001846313477,
0.035693079233169556,
-0.19138853251934052,
-0.16317236423492432,
-0.050290487706661224,
-0.2708040773868561,
0.2367837131023407,
-0.05720837041735649,
0.358361154794693,
0.29258716106414795,
-0.16149507462978363,
-0.03408968448638916,
-0.2929209768772125,
-0.34299546480178833,
-0.32801029086112976,
0.19615167379379272,
0.12753218412399292,
-0.01836586371064186,
0.22330181300640106,
-0.11441109329462051,
0.4993126392364502,
-0.20440314710140228,
0.03794494643807411,
-0.22938738763332367,
0.06907776743173599,
0.0574302077293396,
-0.09245450794696808,
-0.18224772810935974,
0.26212918758392334,
-0.02772994339466095,
-0.26428326964378357,
-0.07300834357738495,
0.45964401960372925,
0.26179182529449463,
0.08889570832252502,
0.03125769644975662,
-0.0496140718460083,
0.2933152914047241,
0.003849271684885025,
0.08089572936296463,
-0.04927242919802666,
-0.05716916173696518,
-0.06658220291137695,
0.07503394782543182,
0.628496527671814,
0.25951874256134033,
0.03661942854523659,
0.045343026518821716,
0.021935680881142616,
0.17950224876403809,
-0.13267208635807037,
-0.1585242748260498,
-0.14596602320671082,
0.17796477675437927,
-0.04844477400183678,
0.37550726532936096,
0.04673715680837631,
-0.5525546073913574,
-0.0395340695977211,
0.6682411432266235,
-0.08613555133342743,
0.2210555076599121,
-0.1629423201084137,
0.0032062828540802,
0.012865487486124039,
0.08141051977872849,
0.4090774655342102,
0.19759704172611237,
0.19261305034160614,
0.3233124315738678,
0.036306723952293396,
-0.23480887711048126,
-0.1850532740354538,
-0.012133851647377014,
-0.18853487074375153,
-0.02202460542321205,
-0.007300175726413727,
-0.022728735581040382,
-0.3276413381099701,
-0.34388402104377747,
-0.06378784775733948,
0.24753782153129578,
0.03966554254293442,
-0.1704261302947998,
0.04976753890514374,
-0.16393636167049408,
-0.09249242395162582,
-0.5131728053092957,
-0.1697525531053543,
-0.29902100563049316,
-0.2755841314792633,
0.2779986560344696,
-0.4795271158218384,
-0.1530560553073883,
0.35167986154556274,
0.014261286705732346,
-0.0065275877714157104,
-0.28415635228157043,
-0.2699317932128906,
0.220805823802948,
-0.09407369792461395,
-0.3664022386074066,
0.20503391325473785,
0.2037619799375534,
0.08125253021717072,
0.3301102817058563,
-0.23441843688488007,
-0.16910380125045776,
0.05250833183526993,
-0.3607347011566162,
0.11202092468738556,
-0.30153602361679077,
0.21124914288520813,
-0.00385458767414093,
-0.23633860051631927,
-0.07722043991088867,
-0.09665002673864365,
0.29109814763069153,
-0.2559051513671875,
0.06683509796857834,
0.007289303466677666,
0.14012520015239716,
0.08154882490634918,
-0.12431035935878754,
-0.8642572164535522,
-0.4875790476799011,
-0.16431832313537598,
-0.025325104594230652,
-0.17268793284893036,
0.1272609829902649,
0.1203698143362999,
-0.023502623662352562,
0.08344262838363647,
-0.13056273758411407,
-0.13212738931179047,
-0.13288268446922302,
-0.3648805618286133,
0.054183196276426315,
-0.13304124772548676,
-0.23628751933574677,
-0.0005246438086032867,
-0.10739272087812424,
0.19187858700752258,
0.010263198986649513,
-0.02843319997191429,
-0.14823509752750397,
-0.026930520310997963,
0.16840609908103943,
0.07297898828983307,
0.21404989063739777,
0.1686772108078003,
0.03603405877947807,
-0.05998387187719345,
-0.13265515863895416,
0.1027211844921112,
0.35754331946372986,
0.20077258348464966,
0.017957784235477448,
-0.08596973121166229,
0.1646137535572052,
0.11443053185939789,
0.3161391615867615,
0.10503694415092468,
0.07517015933990479,
0.3473784327507019,
-0.2949371933937073,
0.08272392302751541,
-0.09966485947370529,
-0.22638900578022003,
0.15346252918243408,
-0.08250102400779724,
-0.0072273798286914825,
0.20779764652252197,
-0.07849223166704178,
-0.2769228219985962,
-0.03209776431322098,
0.10274387896060944,
-0.10941535979509354,
-0.3094550371170044,
0.36929038166999817,
-0.25202369689941406,
0.14520782232284546,
-0.09569428861141205,
-0.040084175765514374,
0.08711595833301544,
0.11848490685224533,
0.0704558938741684,
-0.11267012357711792,
-0.15331614017486572,
0.061547424644231796,
-0.5243782997131348,
0.06317849457263947,
-0.40589264035224915,
0.2378017008304596,
0.20783543586730957,
0.2764015793800354,
-0.0740615576505661,
-0.05483477562665939,
0.02776305377483368,
-0.0255986750125885,
0.41364943981170654,
-0.5377335548400879,
-0.30001336336135864,
0.13355863094329834,
-0.13956069946289062,
-0.1210922822356224,
-0.039672981947660446,
-0.49015486240386963,
0.05673300474882126,
0.32451537251472473,
0.026893511414527893,
-0.23649802803993225,
-0.23501908779144287,
0.09571804106235504,
0.4035213887691498,
-0.2324526160955429,
0.11440921574831009,
-0.21399353444576263,
-0.20139062404632568,
-0.07955554872751236,
0.3560835123062134,
0.12357381731271744,
0.1735672801733017,
0.06619764864444733,
-0.05263029411435127,
0.036209046840667725,
0.08017559349536896,
0.2874005436897278,
0.23674465715885162,
0.18051576614379883,
0.09609286487102509,
-0.015219546854496002,
0.0856456458568573,
0.1028415709733963,
-0.19499744474887848,
0.5514805912971497,
-0.2795736789703369,
-0.18004852533340454,
0.07516352832317352,
-0.2313215434551239,
0.4920181930065155,
0.3158755898475647,
0.06379111856222153,
0.05427636578679085,
-0.14702245593070984,
-0.02982407808303833,
-0.12731149792671204,
0.49524953961372375,
0.3691213130950928,
0.3038395941257477,
-0.5208014249801636,
-0.7163479328155518,
0.07636033743619919,
0.14336761832237244,
-0.0718170702457428,
0.33796578645706177,
0.08010271191596985,
-0.4435579478740692,
0.3029434084892273,
-0.13797906041145325,
0.8299781084060669,
-0.15473316609859467,
0.1495676189661026,
0.2511032521724701,
-0.010337859392166138,
0.11989708244800568,
-0.27703213691711426,
0.05043427273631096,
-0.3902566730976105,
-0.18167683482170105,
-0.018541790544986725,
0.026671815663576126,
0.3309813141822815,
0.254628986120224,
-0.17195896804332733,
0.31060662865638733,
0.06291234493255615,
-0.08238326013088226,
-0.16029825806617737,
0.5479097366333008,
-0.1836717575788498,
-0.17799167335033417,
-0.05547533184289932,
0.20737811923027039,
0.12095990031957626,
-0.2522974908351898,
-0.0005772700533270836,
0.04403003677725792,
-0.11678065359592438,
-0.12117911130189896,
-0.14902488887310028,
0.06811448186635971,
-0.31452324986457825,
0.1270880401134491,
-0.3392329514026642,
-0.4663172960281372,
0.15253759920597076,
0.230216383934021,
0.023842964321374893,
0.04148004949092865,
0.20044472813606262,
0.22333359718322754,
-0.03610759228467941,
0.22598466277122498,
0.2869744300842285,
-0.21619687974452972,
0.44435036182403564,
0.07697119563817978,
-0.41473907232284546,
0.1529236137866974,
-0.04292978346347809,
-0.15536147356033325,
-0.398705393075943,
0.1413905769586563,
-0.08790779113769531,
-0.3317219913005829,
-0.2798875570297241,
0.37102749943733215,
0.15660730004310608,
-0.3257330358028412,
0.1937776803970337,
0.174671933054924,
-0.3566441535949707,
0.10357894003391266,
-0.29399871826171875,
-0.34089773893356323,
-0.22792582213878632,
-0.14674592018127441,
0.25514596700668335,
0.1478310525417328,
0.185316801071167,
0.17716798186302185,
0.06317844986915588,
-0.25107067823410034,
0.29359421133995056,
0.7671794891357422,
-0.3604855537414551,
-0.09447644650936127,
-0.04309522733092308,
-0.0761963501572609,
-0.12753066420555115,
0.04662591218948364,
0.0012510381639003754,
0.2928348779678345,
-0.00602751225233078,
-0.14656051993370056,
0.026254402473568916,
0.10605332255363464,
0.3661712110042572,
0.21355639398097992,
0.10519567877054214,
0.21654506027698517,
-0.06577326357364655,
0.18734320998191833,
-0.4249195456504822,
-0.021887699142098427,
0.03350038081407547,
0.195253387093544,
-0.18771447241306305,
0.10150900483131409,
0.24624505639076233,
0.07947850227355957,
0.27168822288513184,
-0.09821012616157532,
-0.02275276556611061,
-0.2768942713737488,
-0.23269812762737274,
0.04209455847740173,
0.0030402522534132004,
0.14649008214473724,
0.19174525141716003,
-0.11053410172462463,
0.19631627202033997,
-0.19959935545921326,
0.34625956416130066,
0.09339305013418198,
-0.02894400805234909,
0.40509822964668274,
0.13372549414634705,
0.020006373524665833,
-0.022639041766524315,
-0.015491310507059097,
-0.07562051713466644,
0.05776717886328697,
0.2735755443572998,
0.2285783588886261,
0.16611546277999878,
-0.03385007008910179,
0.10377489030361176,
0.05150448903441429,
0.102488674223423,
0.18027198314666748,
-0.407077431678772,
-0.10746650397777557,
0.24173155426979065,
0.014652859419584274,
0.42098960280418396,
0.45508262515068054,
-0.22328907251358032,
0.12021788954734802,
0.1841106116771698,
0.32841983437538147,
-0.30320534110069275,
-0.10176695883274078,
0.3478952646255493,
-0.1835581511259079,
0.36838993430137634,
0.5443090200424194,
0.3609474003314972,
0.39159661531448364,
0.2173248678445816,
-0.33205753564834595,
-0.05905720219016075,
-0.037032462656497955,
0.2283540666103363,
0.3521629869937897,
-0.22525829076766968,
-0.013792734593153,
0.29479357600212097,
0.012206722050905228,
0.020493559539318085,
0.3185674548149109,
-0.13469082117080688,
0.5100477933883667,
0.27856963872909546,
0.26576706767082214,
-0.11024651676416397,
-0.03816445171833038,
-0.04294067993760109,
0.03595031052827835,
-0.042584940791130066,
0.0030518025159835815,
-0.013419628143310547,
0.357119619846344,
-0.21915382146835327,
-0.23076733946800232,
0.060033075511455536,
0.17218106985092163,
-0.1735139787197113,
-0.15810009837150574,
0.045671552419662476,
-0.07692281901836395,
-0.38533928990364075,
0.14289140701293945,
-0.09484127163887024,
-0.23335610330104828,
0.016434714198112488,
0.18705183267593384,
0.08851233869791031,
-0.18076194822788239,
0.0049234069883823395,
-0.026822440326213837,
0.0005692541599273682,
-0.26365604996681213,
0.2993965744972229,
0.14946666359901428,
0.01892342045903206,
-0.0019941702485084534,
0.00590880773961544,
0.09252049028873444,
-0.19386133551597595,
-0.15829992294311523,
0.19114980101585388,
-0.09993118047714233,
0.1267412304878235,
0.06450784206390381,
0.12449883669614792,
0.10796721279621124,
0.3817978799343109,
0.4639880061149597,
0.20025423169136047,
-0.2372896820306778,
0.03359789401292801,
0.36725062131881714,
-0.17820610105991364,
-0.34924837946891785,
0.3454867899417877,
0.034728262573480606,
0.14698728919029236,
-0.42406973242759705,
0.04713141545653343,
-0.4729422926902771,
0.05397137627005577,
0.36054596304893494,
-0.20088206231594086,
0.008877519518136978,
-0.044993989169597626,
0.1398204118013382,
0.030537454411387444,
0.18623849749565125,
0.016478318721055984,
0.40348225831985474,
-0.3780135214328766,
-0.22801794111728668,
-0.63960862159729,
0.10614561289548874,
-0.13063903152942657,
-0.13188089430332184,
-0.22886718809604645,
0.12731654942035675,
0.2996813654899597,
0.0760713666677475,
0.017817094922065735,
0.24719832837581635,
-0.06615323573350906,
0.03612588718533516,
-0.30356109142303467,
0.11156520247459412,
-0.17369738221168518,
0.2723176181316376,
0.03189153969287872,
-0.0913095474243164,
-0.09707847237586975,
0.10038843750953674,
0.011223573237657547,
-0.056918494403362274,
-0.14815069735050201,
0.23931670188903809,
-0.0982646644115448,
0.45767471194267273,
0.08185850083827972,
0.44755226373672485,
-0.13741952180862427,
0.16202759742736816,
-0.2884499132633209,
-0.1693180948495865,
-0.3598203659057617,
0.35311394929885864,
0.03275251388549805,
0.38726311922073364,
0.04102747142314911,
-0.13174279034137726,
-0.2183704823255539,
0.2081664353609085,
0.22043068706989288,
0.019157065078616142,
-0.04103383794426918,
0.22597524523735046,
0.20566624402999878,
-0.12050657719373703,
0.10883815586566925,
0.6713244318962097,
0.08204353600740433,
-0.04279916733503342,
0.019226618111133575,
-0.1867137849330902,
-0.043863117694854736,
-0.04476430267095566,
-0.21451784670352936,
0.06178532540798187,
0.1554209291934967,
0.24743330478668213,
0.024112526327371597,
-0.5554370880126953,
-0.011370889842510223,
0.2986544370651245,
0.07164246588945389,
-0.17365673184394836,
0.16478832066059113,
0.3442058563232422,
-0.051692619919776917,
-0.04476505517959595,
0.0026244670152664185,
0.11136463284492493,
-0.2034364491701126,
0.11115473508834839,
-0.39006906747817993
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | According to the table in https://huggingface.co/datasets/xglue, Urdu only exists for POS and XNLI in XGLUE - not for summarization | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 19 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
According to the table in https://huggingface.co/datasets/xglue, Urdu only exists for POS and XNLI in XGLUE - not for summarization | [
-0.20333586633205414,
-0.04770759493112564,
-0.12803979218006134,
0.01597890630364418,
-0.07033900171518326,
-0.006555661559104919,
0.17706628143787384,
0.049845851957798004,
-0.14813797175884247,
0.029338039457798004,
-0.14510439336299896,
-0.061940889805555344,
0.33779048919677734,
0.2888775169849396,
0.5129184126853943,
-0.3321329653263092,
0.0700628012418747,
-0.006419122219085693,
-0.06337389349937439,
-0.008486192673444748,
-0.10001756250858307,
0.47888150811195374,
-0.16967767477035522,
0.09979180991649628,
-0.17666573822498322,
-0.25005215406417847,
-0.46202516555786133,
-0.18239474296569824,
-0.1691887080669403,
-0.3323265016078949,
-0.20026586949825287,
0.13970546424388885,
-0.03991847112774849,
-0.0735178217291832,
-0.00010430519614601508,
-0.37140345573425293,
-0.018551073968410492,
-0.2793003022670746,
0.17554128170013428,
0.02843605726957321,
-0.22913438081741333,
-0.5652837157249451,
-0.26257240772247314,
-0.08547872304916382,
-0.09084171056747437,
-0.10089196264743805,
0.07071837782859802,
-0.30738475918769836,
0.1249920129776001,
0.17248712480068207,
0.21884196996688843,
0.03046771138906479,
0.2403392642736435,
-0.07107977569103241,
0.1660861223936081,
-0.23908944427967072,
-0.13483186066150665,
0.2958466708660126,
0.6190836429595947,
0.03917618840932846,
-0.20246940851211548,
0.2679573893547058,
0.13407784700393677,
-0.4265735149383545,
-0.3919611871242523,
0.0014625908806920052,
0.18215137720108032,
-0.23341071605682373,
0.31071144342422485,
0.41698646545410156,
0.10886016488075256,
-0.3359684646129608,
-0.3846956491470337,
-0.08992727100849152,
0.16355456411838531,
-0.041502535343170166,
0.11111259460449219,
0.2820172905921936,
0.10844066739082336,
0.2132427841424942,
0.5158331990242004,
-0.23582114279270172,
-0.08014970272779465,
0.2745198607444763,
-0.041927386075258255,
0.39500120282173157,
-0.13927234709262848,
0.04759569466114044,
0.09341937303543091,
-0.1068577915430069,
-0.04910890385508537,
0.015042966231703758,
-0.24112340807914734,
0.11752358078956604,
-0.3755868673324585,
0.03955944627523422,
0.1182568371295929,
0.0812976285815239,
0.1830211579799652,
-0.454227089881897,
0.12229039520025253,
0.383741170167923,
0.12050342559814453,
0.22510993480682373,
0.009154016152024269,
-0.051187291741371155,
0.2673206925392151,
-0.30195438861846924,
0.15651445090770721,
-0.20014651119709015,
0.276170551776886,
-0.020481303334236145,
0.17045946419239044,
0.22377634048461914,
-0.5785965919494629,
-0.10991007834672928,
-0.2579188942909241,
0.0865309089422226,
-0.26605263352394104,
0.21218781173229218,
-0.3279256820678711,
-0.268909215927124,
0.022474123165011406,
0.2939000725746155,
0.22532342374324799,
0.10844738036394119,
-0.15437822043895721,
0.18418052792549133,
-0.1767265945672989,
-0.6239897608757019,
-0.12461064755916595,
0.3897581398487091,
-0.2731308937072754,
0.27287328243255615,
-0.10440511256456375,
0.11223866045475006,
-0.019851312041282654,
0.1306975781917572,
-0.19833971560001373,
0.07844340801239014,
0.28798016905784607,
-0.29333850741386414,
0.05521183833479881,
-0.0536053441464901,
0.20602144300937653,
0.03518027812242508,
-0.15447357296943665,
0.04293963313102722,
-0.3261831998825073,
0.04213497042655945,
0.08444055914878845,
-0.015801768749952316,
-0.29280784726142883,
0.13615450263023376,
0.0048947446048259735,
-0.21504727005958557,
0.23459723591804504,
0.6535765528678894,
0.02306460589170456,
-0.07622562348842621,
0.25857412815093994,
0.18332786858081818,
0.06992298364639282,
-0.19033345580101013,
-0.11472567915916443,
0.10838717967271805,
-0.4386371672153473,
-0.18280988931655884,
-0.09213036298751831,
-0.2583603858947754,
0.08577826619148254,
0.15276019275188446,
0.037501830607652664,
-0.053056277334690094,
-0.40726983547210693,
0.4708564281463623,
0.4462849795818329,
-0.25584566593170166,
-0.3087588846683502,
0.17759966850280762,
0.13728709518909454,
0.026167189702391624,
0.2280225157737732,
0.3157409429550171,
0.144899383187294,
-0.0010398944141343236,
0.2629099488258362,
0.14005720615386963,
0.04573068767786026,
-0.022473668679594994,
-0.060479871928691864,
-0.1450946182012558,
0.1245027631521225,
0.10752435028553009,
-0.02125323936343193,
-0.2373386025428772,
0.3153247833251953,
-0.017146723344922066,
0.20657426118850708,
-0.24569621682167053,
0.2803952991962433,
0.3487473130226135,
0.24424132704734802,
-0.15452508628368378,
-0.01672445610165596,
-0.21994474530220032,
-0.07508216053247452,
-0.04008207470178604,
-0.33331045508384705,
0.3113529086112976,
0.13480475544929504,
-0.18705397844314575,
0.1022580936551094,
-0.1736939698457718,
-0.03781082108616829,
-0.1720731407403946,
0.24177196621894836,
0.2278852015733719,
0.21488012373447418,
0.19231198728084564,
-0.17766544222831726,
0.5118480920791626,
-0.10349990427494049,
-0.1735396534204483,
-0.2534092366695404,
0.050747767090797424,
-0.05939009040594101,
-0.30342695116996765,
0.1438140571117401,
0.5697720050811768,
-0.2273971140384674,
-0.06713126599788666,
0.1755276322364807,
0.2775978147983551,
-0.26252785325050354,
0.3308706283569336,
0.1973973512649536,
0.19295775890350342,
0.049134254455566406,
-0.197692409157753,
0.4040282070636749,
-0.3340109884738922,
0.01564697176218033,
-0.08223473280668259,
0.5119177103042603,
0.43651527166366577,
0.3383900225162506,
-0.3654190003871918,
0.23275281488895416,
0.03439762443304062,
0.5360563397407532,
0.017268795520067215,
-0.28419363498687744,
-0.5157763361930847,
0.14359217882156372,
0.04969143494963646,
0.646353006362915,
0.1853240579366684,
-0.4919227659702301,
0.14327016472816467,
0.6596490740776062,
0.08528211712837219,
0.6219146251678467,
0.029891060665249825,
-0.23182791471481323,
-0.28715646266937256,
0.1997777670621872,
0.27004459500312805,
0.1174645945429802,
0.2673923075199127,
0.19697846472263336,
-0.2512566149234772,
-0.03895310312509537,
-0.22164812684059143,
0.10868876427412033,
-0.1324516385793686,
-0.26504024863243103,
0.07649789750576019,
0.18058255314826965,
-0.1450551599264145,
-0.6757736802101135,
0.4471268355846405,
-0.024519843980669975,
-0.021881887689232826,
-0.003644440323114395,
-0.13013212382793427,
-0.045328013598918915,
-0.6365988254547119,
-0.0738089457154274,
-0.26466044783592224,
-0.4054371118545532,
-0.15476450324058533,
0.3232519030570984,
-0.47780895233154297,
-0.11089010536670685,
-0.004415654577314854,
0.03347428888082504,
0.19989274442195892,
-0.243123859167099,
-0.0608031302690506,
-0.21798110008239746,
-0.15377174317836761,
-0.34690675139427185,
0.20193515717983246,
-0.021676193922758102,
-0.13025632500648499,
0.519595742225647,
-0.1935960203409195,
0.08973337709903717,
-0.4386177659034729,
-0.5763657093048096,
0.18048755824565887,
-0.33369922637939453,
-0.16701650619506836,
0.048573337495326996,
-0.07117462158203125,
-0.08954518288373947,
0.17419259250164032,
0.29149743914604187,
0.06927542388439178,
-0.2093151956796646,
0.10192642360925674,
-0.21327100694179535,
-0.0072511727921664715,
-0.024573976173996925,
-0.28648191690444946,
-0.3221515119075775,
-0.4310109317302704,
0.11545461416244507,
-0.14363081753253937,
0.041518405079841614,
-0.39908236265182495,
-0.050126802176237106,
0.3085634112358093,
-0.2718300521373749,
-0.05217285454273224,
-0.38735058903694153,
-0.3158709704875946,
0.16755151748657227,
-0.03448526933789253,
-0.5213713049888611,
0.23022544384002686,
-0.19814929366111755,
0.4192808270454407,
-0.05797359347343445,
-0.0875711739063263,
-0.1488599330186844,
-0.02726544626057148,
0.2566841244697571,
0.3819544017314911,
0.22350873053073883,
0.3035547733306885,
-0.1225682720541954,
-0.08967921882867813,
-0.08985760807991028,
-0.3046282231807709,
0.17045438289642334,
0.3022601306438446,
0.17708498239517212,
0.05596720427274704,
0.2099515199661255,
0.3508894741535187,
0.018533919006586075,
0.024573251605033875,
0.1650024801492691,
0.5815767049789429,
-0.030698874965310097,
0.1770097315311432,
-0.4007710814476013,
-0.1518721580505371,
-0.03367044776678085,
0.010689198970794678,
0.4283655285835266,
0.1981239914894104,
0.04467140883207321,
-0.12523464858531952,
-0.08930540829896927,
0.0428510345518589,
-0.31377890706062317,
-0.09340108931064606,
0.2223445177078247,
-0.33003365993499756,
0.4413619041442871,
0.03533454239368439,
-0.3527470529079437,
-0.08989235758781433,
-0.06810248643159866,
0.18306487798690796,
-0.21400775015354156,
-0.08215198665857315,
0.0035663233138620853,
-0.2403869330883026,
0.05528350919485092,
-0.5422773361206055,
0.31154516339302063,
0.1927720457315445,
0.2523096799850464,
-0.41025403141975403,
-0.07220928370952606,
0.15842118859291077,
-0.0342639721930027,
0.18417273461818695,
-0.363266259431839,
-0.47947072982788086,
0.2695316970348358,
-0.33524182438850403,
-0.2451145201921463,
0.003669317811727524,
-0.41320469975471497,
-0.32122236490249634,
0.3409261107444763,
-0.07318130135536194,
-0.3490496575832367,
-0.07331869751214981,
0.18178777396678925,
0.07427850365638733,
0.05667674168944359,
0.09849812835454941,
-0.18104028701782227,
-0.18459492921829224,
-0.2802651822566986,
-0.07307711988687515,
-0.14486993849277496,
-0.01888275519013405,
0.6191027760505676,
-0.038776468485593796,
0.08823138475418091,
-0.3328816592693329,
0.11624948680400848,
0.10567022860050201,
-0.041668761521577835,
-0.019892457872629166,
-0.12369562685489655,
-0.13492438197135925,
-0.07968896627426147,
-0.04783961921930313,
0.26855236291885376,
0.018028058111667633,
-0.22201034426689148,
0.30305784940719604,
-0.5946638584136963,
0.3744733929634094,
0.050067245960235596,
0.16527487337589264,
0.3652898967266083,
-0.10868577659130096,
-0.333055317401886,
-0.36423203349113464,
-0.08480386435985565,
0.25462451577186584,
0.43328529596328735,
-0.19580718874931335,
-0.08833968639373779,
0.20209605991840363,
0.09139509499073029,
-0.09929389506578445,
-0.008216321468353271,
0.2551911473274231,
-0.31388214230537415,
0.25296902656555176,
0.04262936860322952,
1.0025241374969482,
-0.28181713819503784,
0.12309271097183228,
0.22978422045707703,
0.04890942573547363,
0.036087702959775925,
-0.00022011250257492065,
0.11554630845785141,
-0.2646107077598572,
0.24157658219337463,
-0.15257477760314941,
0.1376025229692459,
0.27106422185897827,
0.028209980577230453,
-0.34107595682144165,
-0.09649069607257843,
0.23811422288417816,
-0.08864569664001465,
0.07349174469709396,
0.1680639237165451,
-0.45246365666389465,
-0.23930633068084717,
-0.4456687867641449,
0.20260225236415863,
0.14365330338478088,
-0.06411740183830261,
-0.030899768695235252,
-0.07566983252763748,
-0.21038925647735596,
-0.08194391429424286,
-0.18306215107440948,
0.07304862886667252,
-0.08509592711925507,
0.13253653049468994,
-0.0035515092313289642,
-0.049301136285066605,
-0.008367280475795269,
0.034481532871723175,
0.16815964877605438,
-0.19529548287391663,
0.12894240021705627,
-0.11885522305965424,
-0.23201674222946167,
-0.28847697377204895,
0.12206801772117615,
-0.019351880997419357,
0.26334819197654724,
-0.19673150777816772,
0.02587055414915085,
0.4862799048423767,
0.19967611134052277,
0.0032942108809947968,
-0.4471985995769501,
0.21822522580623627,
0.09545987844467163,
0.07464326173067093,
-0.33467769622802734,
0.24656160175800323,
-0.029045144096016884,
-0.22620129585266113,
0.15411092340946198,
0.2947700619697571,
-0.14009468257427216,
-0.04300551861524582,
-0.27893543243408203,
0.10789136588573456,
-0.21596288681030273,
0.13324633240699768,
0.26052215695381165,
-0.10412827134132385,
0.03623150289058685,
0.25801146030426025,
-0.0805082619190216,
-0.2712227702140808,
-0.07944601774215698,
0.11338891834020615,
-0.21789541840553284,
-0.07661549746990204,
0.11202075332403183,
-0.4932388663291931,
-0.1738368719816208,
0.028538022190332413,
-0.08182848989963531,
0.06996424496173859,
-0.07537533342838287,
-0.08966100215911865,
-0.06244029104709625,
0.29169750213623047,
0.29627567529678345,
0.14734266698360443,
0.1029493436217308,
-0.04596472531557083,
0.03946492075920105,
0.44540974497795105,
-0.38305771350860596,
-0.1069093570113182,
-0.11949125677347183,
0.13084682822227478,
0.2751566767692566,
0.10072118043899536,
0.019441504031419754,
0.2554747462272644,
0.16238152980804443,
0.19041603803634644,
-0.16226714849472046,
-0.19107294082641602,
0.12198847532272339,
0.08685829490423203,
0.07511340826749802,
0.3423941135406494,
0.28168174624443054,
-0.039152927696704865,
0.015273813158273697,
-0.12578341364860535,
0.29270923137664795,
0.019096553325653076,
-0.2238069623708725,
0.2054845094680786,
-0.03495887294411659,
0.019974730908870697,
0.07284565269947052,
-0.013387501239776611,
-0.0857497900724411,
0.10654780268669128,
0.22130724787712097,
0.14050176739692688,
-0.0605897456407547,
-0.11072655767202377,
0.25227808952331543,
0.30242979526519775,
0.2283013015985489,
-0.24184763431549072,
-0.03765972703695297,
0.17810608446598053,
0.13611537218093872,
-0.09871424734592438,
0.14905069768428802,
-0.15655136108398438,
-0.14411427080631256,
-0.19831952452659607,
-0.005406692624092102,
0.2162400335073471,
-0.2702023684978485,
0.004728520289063454,
0.2029978632926941,
-0.1720736026763916,
0.4364010691642761,
0.3318149447441101,
0.4838006794452667,
0.21161416172981262,
0.26414626836776733,
-0.2528836727142334,
0.13210025429725647,
-0.009668704122304916,
0.12377993762493134,
0.07155679166316986,
-0.055738236755132675,
0.13758808374404907,
0.1737707257270813,
0.060855720192193985,
0.01603580266237259,
0.26253366470336914,
-0.26934969425201416,
0.22014324367046356,
0.4865897297859192,
0.4397289752960205,
0.006986692547798157,
-0.21372132003307343,
0.25122636556625366,
0.18251140415668488,
0.1284218430519104,
0.18272529542446136,
0.14333181083202362,
0.16313926875591278,
0.21971085667610168,
0.051686909049749374,
0.05986977368593216,
0.24955753982067108,
-0.22027051448822021,
0.011401724070310593,
0.022486187517642975,
-0.09936501085758209,
-0.20954319834709167,
-0.09497211873531342,
0.07977941632270813,
-0.08433492481708527,
0.33444130420684814,
-0.0512792244553566,
0.297027051448822,
-0.011346649378538132,
0.09522760659456253,
-0.17157518863677979,
-0.1253572702407837,
-0.1302771270275116,
0.4234205186367035,
-0.053113192319869995,
-0.07029978930950165,
-0.10066060721874237,
0.43550628423690796,
0.21875309944152832,
0.01129550114274025,
0.1955863982439041,
0.5154154896736145,
-0.23233886063098907,
0.02407812885940075,
-0.04775926470756531,
0.29335299134254456,
0.2864189147949219,
0.3762083351612091,
0.1330961287021637,
0.15859752893447876,
-0.18719185888767242,
-0.26634618639945984,
0.2126275599002838,
0.09236352145671844,
0.05502576380968094,
0.04951946437358856,
-0.37036991119384766,
-0.15042531490325928,
-0.2433871328830719,
0.16426926851272583,
-0.4871866703033447,
-0.2410363107919693,
0.25633031129837036,
-0.4097575545310974,
-0.039838843047618866,
-0.16456161439418793,
0.10568153858184814,
0.09111678600311279,
0.2663555443286896,
0.32990649342536926,
0.3468257784843445,
-0.05663079023361206,
-0.36832189559936523,
-0.4200163185596466,
0.1375066637992859,
-0.09440995752811432,
0.1122342050075531,
-0.4729713797569275,
0.2512695789337158,
0.5071854591369629,
0.2697513997554779,
0.13159674406051636,
0.263672798871994,
-0.08487376570701599,
-0.05656486004590988,
-0.29537487030029297,
0.1944703310728073,
0.10841662436723709,
0.23835402727127075,
-0.11762212961912155,
0.08433002978563309,
0.015476271510124207,
-0.12077097594738007,
0.130536288022995,
-0.0884459987282753,
-0.1348523199558258,
0.12485401332378387,
-0.17309722304344177,
0.27548444271087646,
0.2693708837032318,
0.22450774908065796,
-0.22920790314674377,
0.04250096529722214,
0.11627504229545593,
-0.10001963376998901,
0.13294081389904022,
0.25127220153808594,
0.2201680690050125,
0.0964563712477684,
-0.02740403823554516,
-0.18037372827529907,
0.11423107236623764,
0.41443443298339844,
-0.11911310255527496,
0.263581782579422,
0.018048083409667015,
0.43516334891319275,
0.12208888679742813,
-0.16894766688346863,
0.1000281274318695,
0.2227366864681244,
0.09840013086795807,
-0.11107804626226425,
-0.0017772987484931946,
-0.22683288156986237,
-0.4091224670410156,
-0.09042928367853165,
-0.02083456516265869,
-0.09638811647891998,
0.19118431210517883,
0.004820883274078369,
0.07613728195428848,
-0.4949984550476074,
-0.0006846487522125244,
0.26880818605422974,
0.2507571280002594,
0.008445139974355698,
0.25813156366348267,
0.026335744187235832,
-0.045294102281332016,
-0.12918785214424133,
-0.2811274230480194,
0.16841334104537964,
0.05739690363407135,
0.028664302080869675,
-0.3546946048736572
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Thank you !
Could you provide a csv file that reproduces the error ?
It doesn't have to be one of your dataset. As long as it reproduces the error
That would help a lot ! | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 36 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Thank you !
Could you provide a csv file that reproduces the error ?
It doesn't have to be one of your dataset. As long as it reproduces the error
That would help a lot ! | [
-0.05317020043730736,
0.07086680829524994,
-0.00346352718770504,
0.3629570007324219,
0.24475929141044617,
0.2201901376247406,
0.42531803250312805,
0.3036741614341736,
0.3109278380870819,
0.050986096262931824,
-0.06706379354000092,
0.2354821264743805,
-0.0957934781908989,
-0.02189633436501026,
-0.274692565202713,
-0.11021155118942261,
0.04934731125831604,
0.05344419926404953,
-0.3843255341053009,
0.03752525895833969,
-0.3989782929420471,
0.3356209695339203,
-0.34216833114624023,
-0.0064872875809669495,
-0.1416349560022354,
0.23979808390140533,
-0.05539405345916748,
0.33607247471809387,
-0.12909594178199768,
-0.37019646167755127,
0.49028247594833374,
-0.09491413831710815,
0.5313911437988281,
0.22420388460159302,
-0.00011882778198923916,
0.05618548393249512,
0.3267251253128052,
-0.09271536022424698,
-0.2536972761154175,
-0.5014420747756958,
-0.04957514628767967,
-0.47978097200393677,
0.3480936586856842,
-0.044014059007167816,
-0.06950514018535614,
0.06558601558208466,
-0.11303342878818512,
-0.36280572414398193,
0.3677663803100586,
0.5194328427314758,
0.18169629573822021,
-0.21614570915699005,
-0.073224738240242,
-0.08992727845907211,
0.5836961269378662,
0.07129483669996262,
-0.1410907804965973,
0.2741573750972748,
0.031133990734815598,
-0.2326374500989914,
-0.09600885957479477,
0.1110258549451828,
-0.07246747612953186,
0.25926148891448975,
0.25723981857299805,
0.21528558433055878,
-0.13852664828300476,
-0.1685495227575302,
0.08786645531654358,
0.11505041271448135,
0.7295112013816833,
-0.11148788779973984,
-0.15947453677654266,
-0.04534131661057472,
-0.040600329637527466,
-0.09444090723991394,
0.36287185549736023,
0.28746849298477173,
0.055621933192014694,
0.3495478630065918,
-0.03925018757581711,
0.031387809664011,
-0.28702282905578613,
0.11726124584674835,
0.07139068841934204,
-0.00966210663318634,
-0.16670800745487213,
0.3307064473628998,
0.10220344364643097,
-0.0038512013852596283,
0.26876264810562134,
-0.04112964868545532,
-0.10873205959796906,
0.2209751158952713,
-0.7359090447425842,
0.31059548258781433,
-0.1458624303340912,
-0.028948165476322174,
-0.024292413145303726,
0.19719544053077698,
0.24640986323356628,
-0.02329099550843239,
-0.0816035121679306,
0.36907529830932617,
0.25959810614585876,
0.03256794437766075,
0.015049424022436142,
0.24889640510082245,
0.2425164431333542,
-0.21277493238449097,
0.03449280187487602,
-0.18233418464660645,
-0.33407241106033325,
-0.5727437734603882,
-0.04503270238637924,
0.1722308099269867,
0.2509995102882385,
-0.2274133563041687,
-0.21345846354961395,
0.15096993744373322,
-0.26551198959350586,
0.0042610433883965015,
-0.13636057078838348,
0.258358359336853,
0.1820409893989563,
0.3217635154724121,
0.10223793983459473,
0.3233688473701477,
-0.0812658816576004,
-0.46093958616256714,
-0.029314253479242325,
0.14314348995685577,
-0.412525475025177,
-0.04699593782424927,
0.4920218884944916,
-0.17247812449932098,
0.12704750895500183,
0.24775062501430511,
-0.1354367583990097,
-0.34779733419418335,
-0.0136515311896801,
-0.2814343273639679,
0.004640713334083557,
0.3041784465312958,
0.07240115106105804,
0.22515951097011566,
0.34893298149108887,
-0.2020391970872879,
-0.07289032638072968,
0.3434774577617645,
-0.4518965482711792,
-0.20658181607723236,
-0.12809444963932037,
0.09788427501916885,
-0.22820106148719788,
0.07203645259141922,
-0.33926674723625183,
0.07151076197624207,
0.05571577325463295,
-0.1955104023218155,
-0.1711064875125885,
-0.31940150260925293,
-0.2678622007369995,
-0.23124194145202637,
0.02261507697403431,
0.45516741275787354,
-0.816823422908783,
0.2262134552001953,
-0.009861582890152931,
0.05009645223617554,
0.07995361089706421,
0.2039688378572464,
-0.2677918076515198,
0.03449880704283714,
-0.2549441456794739,
0.11573812365531921,
0.14027170836925507,
-0.21616339683532715,
-0.29372939467430115,
0.18425580859184265,
-0.05055507272481918,
-0.0749080702662468,
0.08451557904481888,
0.09225039184093475,
0.34414076805114746,
-0.017756054177880287,
-0.20499226450920105,
0.1499432623386383,
0.009418059140443802,
0.04405101388692856,
-0.23773285746574402,
-0.18225844204425812,
0.2446545660495758,
0.23181532323360443,
0.015940740704536438,
0.12413233518600464,
0.2280932366847992,
-0.6181373000144958,
0.31433647871017456,
-0.05601431801915169,
0.25229620933532715,
0.1251530945301056,
0.29198387265205383,
0.06803352385759354,
0.33148545026779175,
0.0560595840215683,
-0.5451500415802002,
0.19358780980110168,
0.45344725251197815,
-0.188410684466362,
-0.09070298075675964,
-0.016736282035708427,
-0.4643523693084717,
0.006846312433481216,
-0.1820608228445053,
-0.03296050801873207,
-0.0002795793116092682,
0.0497451089322567,
-0.08835625648498535,
-0.18197062611579895,
-0.1153891384601593,
0.4194994568824768,
-0.28078460693359375,
0.09297309070825577,
-0.3300333619117737,
0.28069594502449036,
0.13711243867874146,
-0.06222130358219147,
0.2043176293373108,
-0.07871859520673752,
0.3157004415988922,
-0.050518009811639786,
-0.1529255211353302,
0.2792817950248718,
0.35473957657814026,
-0.029462426900863647,
0.11989811807870865,
-0.19790829718112946,
0.01918868161737919,
-0.2967640161514282,
-0.00989619456231594,
0.21804402768611908,
0.3470372259616852,
-0.09319950640201569,
-0.4841010868549347,
0.3240230679512024,
-0.31898921728134155,
0.20890381932258606,
-0.22834259271621704,
0.18503452837467194,
0.25766196846961975,
-0.034926824271678925,
-0.08274339139461517,
0.028330497443675995,
0.056987911462783813,
0.02532859705388546,
0.22253434360027313,
0.09460821747779846,
-0.1744121015071869,
-0.14143657684326172,
0.06283627450466156,
0.18148989975452423,
-0.23883596062660217,
0.23012223839759827,
-0.11261492222547531,
-0.05766403302550316,
0.33642056584358215,
0.28397679328918457,
0.41594111919403076,
0.08493431657552719,
-0.26922306418418884,
-0.018004806712269783,
0.07079838961362839,
-0.1863807737827301,
0.09020687639713287,
0.008539393544197083,
0.0635172426700592,
0.19840744137763977,
0.20471522212028503,
0.09498868137598038,
-0.1371750831604004,
-0.1268925815820694,
0.18220505118370056,
0.2504079341888428,
-0.6004429459571838,
-0.017061950638890266,
-0.19775424897670746,
0.36907100677490234,
-0.23145292699337006,
-0.046976398676633835,
0.10547162592411041,
-0.28460240364074707,
-0.2780264616012573,
0.30583566427230835,
-0.13327115774154663,
0.053314752876758575,
-0.20499956607818604,
0.2518931031227112,
0.11348530650138855,
-0.12922203540802002,
0.03876057267189026,
-0.18570402264595032,
-0.25787851214408875,
0.005169577896595001,
0.09140323847532272,
-0.022789262235164642,
-0.1138937920331955,
0.10331118851900101,
0.0897010862827301,
-0.306343138217926,
-0.03272215649485588,
0.1250150501728058,
0.005455080419778824,
0.0982464998960495,
0.12735548615455627,
-0.08568370342254639,
-0.0653378963470459,
-0.15504449605941772,
0.20962007343769073,
0.09103594720363617,
0.038426801562309265,
0.4184431731700897,
0.24055783450603485,
-0.1648760586977005,
-0.12067373096942902,
-0.637505829334259,
-0.24014492332935333,
-0.22007305920124054,
0.0447857566177845,
-0.166953444480896,
-0.05432415008544922,
0.06538227945566177,
0.3040786385536194,
-0.05232485383749008,
0.23847469687461853,
-0.11685338616371155,
-0.10439807921648026,
-0.22886106371879578,
0.5683004260063171,
-0.24170692265033722,
-0.2770060896873474,
0.26399797201156616,
-0.034736793488264084,
0.047799695283174515,
0.350877046585083,
-0.39672350883483887,
0.20661966502666473,
-0.06422360986471176,
0.02572033926844597,
-0.08358892798423767,
0.03711435943841934,
0.06648728996515274,
-0.03237514570355415,
0.09345415234565735,
-0.05140957608819008,
-0.18079255521297455,
0.233005553483963,
-0.05447317659854889,
0.04972973093390465,
0.16828495264053345,
0.556370735168457,
-0.23563681542873383,
0.6716989874839783,
0.10878445208072662,
0.1012936383485794,
0.3297625184059143,
-0.0753614753484726,
0.2564427852630615,
0.17102748155593872,
-0.2240680605173111,
0.061077918857336044,
-0.12360158562660217,
-0.3338025212287903,
0.32122623920440674,
0.008411519229412079,
-0.10484986752271652,
-0.07349299639463425,
0.24587786197662354,
-0.2612116038799286,
-0.16832272708415985,
0.15603244304656982,
-0.07413775473833084,
0.05903240293264389,
-0.008479507640004158,
0.11527573317289352,
0.06362469494342804,
-0.21086499094963074,
-0.046719349920749664,
0.1300501525402069,
0.1895848959684372,
-0.07411834597587585,
0.12870372831821442,
-0.12534703314304352,
-0.2497011423110962,
0.23639392852783203,
-0.13286098837852478,
0.44050198793411255,
0.0873841941356659,
-0.07508158683776855,
0.029426485300064087,
0.18507014214992523,
0.7332038879394531,
-0.2643436789512634,
0.02621155045926571,
0.11990737915039062,
-0.05472705885767937,
-0.19267280399799347,
-0.3259960114955902,
-0.08253255486488342,
0.221994549036026,
-0.04127984866499901,
0.21509067714214325,
-0.013186067342758179,
0.05355066806077957,
0.38598185777664185,
0.07056502252817154,
-0.1538185477256775,
-0.4156409204006195,
-0.12488065659999847,
-0.05652225390076637,
-0.13333691656589508,
-0.2428256869316101,
0.1577136367559433,
0.056347791105508804,
-0.23711419105529785,
0.10614144802093506,
-0.21838605403900146,
-0.20587825775146484,
0.3085453510284424,
0.11261561512947083,
0.26352614164352417,
0.04047607257962227,
0.19600063562393188,
0.27193742990493774,
0.1261613816022873,
0.23060524463653564,
0.7737973928451538,
-0.17090466618537903,
-0.8922719359397888,
0.24509847164154053,
-0.5180834531784058,
0.3393911123275757,
-0.03420718014240265,
-0.3213845193386078,
-0.07621435075998306,
-0.25870606303215027,
-0.1450985223054886,
-0.10392368584871292,
-0.12167587876319885,
0.07475824654102325,
-0.010652964003384113,
-0.12973490357398987,
-0.45331528782844543,
0.5562050938606262,
-0.13298824429512024,
-0.16530120372772217,
0.1423027515411377,
-0.015259265899658203,
-0.3003290295600891,
0.4268861413002014,
-0.08819326013326645,
0.6560722589492798,
-0.1391480714082718,
-0.09893198311328888,
0.13298001885414124,
-0.23353226482868195,
0.33572670817375183,
-0.2730206251144409,
-0.055869072675704956,
-0.51207035779953,
-0.14696362614631653,
-0.1590159833431244,
-0.003742855042219162,
0.1034838855266571,
0.5652616024017334,
-0.2156030237674713,
0.3151758909225464,
-0.14411042630672455,
0.4138490855693817,
0.05452616512775421,
0.09071201086044312,
0.30589792132377625,
-0.16701549291610718,
-0.11410550773143768,
0.13254398107528687,
-0.13359209895133972,
-0.04139212891459465,
0.05168270319700241,
0.03162688389420509,
-0.2306944876909256,
-0.09532732516527176,
-0.3436087369918823,
0.31584832072257996,
-0.05883758142590523,
0.07509725540876389,
0.18617701530456543,
-0.4859147071838379,
0.5535692572593689,
0.46055877208709717,
0.19399940967559814,
-0.11144042015075684,
-0.22012323141098022,
0.10921911895275116,
0.046607039868831635,
0.050343796610832214,
-0.16320055723190308,
-0.024038944393396378,
-0.061548687517642975,
0.2152407467365265,
-0.20791232585906982,
0.2802383005619049,
-0.10532087832689285,
-0.08271675556898117,
0.22996607422828674,
0.2725984454154968,
0.21349504590034485,
-0.48617032170295715,
-0.3553222715854645,
-0.22515496611595154,
0.1214456707239151,
-0.11873984336853027,
0.05307484045624733,
-0.024750784039497375,
0.10665804892778397,
-0.04460315406322479,
0.06437286734580994,
-0.348031222820282,
0.1839970499277115,
0.22292622923851013,
-0.232832670211792,
0.05878356844186783,
0.4570634365081787,
0.49093741178512573,
-0.11834637075662613,
-0.15462101995944977,
0.03968092054128647,
0.17854970693588257,
-0.6025984883308411,
0.1056118756532669,
0.0670929029583931,
0.235478475689888,
0.17614836990833282,
0.19654345512390137,
0.2040315568447113,
-0.21132007241249084,
0.12166517972946167,
-0.5683940052986145,
-0.02078702300786972,
-0.06786443293094635,
-0.15007904171943665,
0.060893863439559937,
-0.06954356282949448,
-0.4517229497432709,
-0.0591820627450943,
-0.06511037796735764,
-0.19666597247123718,
0.0805668756365776,
0.06095024198293686,
0.05504044145345688,
0.16914260387420654,
0.30500528216362,
-0.2626047730445862,
-0.28422456979751587,
0.017431342974305153,
0.036020923405885696,
0.07896103709936142,
-0.10896120220422745,
-0.19105570018291473,
0.16843612492084503,
-0.003150245174765587,
0.1523514986038208,
-0.26868316531181335,
-0.19578957557678223,
-0.24909895658493042,
-0.1680261343717575,
0.08470682799816132,
0.3114747703075409,
-0.028091616928577423,
0.40063539147377014,
0.03389844670891762,
-0.1250312626361847,
-0.4943271279335022,
0.2662500739097595,
-0.20590603351593018,
0.17609137296676636,
0.08025448024272919,
0.17210625112056732,
0.15563800930976868,
0.08422181010246277,
-0.14658434689044952,
0.07102150470018387,
-0.1401134580373764,
-0.12721115350723267,
0.2502037286758423,
-0.3445926904678345,
0.18699747323989868,
0.23189100623130798,
0.3359312117099762,
0.3265928626060486,
-0.13601595163345337,
-0.07455649226903915,
0.1204318255186081,
0.14175111055374146,
-0.3591187000274658,
0.19693900644779205,
0.045927587896585464,
0.29836979508399963,
-0.12185224890708923,
0.2741486728191376,
-0.042309001088142395,
-0.1998053789138794,
0.08563727140426636,
0.1599941849708557,
0.6721033453941345,
-0.0011851247400045395,
0.05853411182761192,
0.2218623012304306,
-0.04327215999364853,
0.09696409851312637,
0.1767919808626175,
-0.04499361291527748,
0.09338898956775665,
0.4701833724975586,
-0.169819176197052,
-0.06401132792234421,
0.3982219099998474,
0.21369324624538422,
-0.18834617733955383,
-0.59013432264328,
0.2023794800043106,
0.34990400075912476,
-0.2514422833919525,
-0.16305115818977356,
0.187429279088974,
0.6417911648750305,
0.04729437828063965,
0.06778623908758163,
-0.3391377031803131,
-0.07058840990066528,
0.08642979711294174,
-0.059723153710365295,
-0.25062495470046997,
-0.19467271864414215,
-0.43491923809051514,
0.25547489523887634,
-0.20093005895614624,
0.02674582600593567,
0.50147545337677,
0.1956419050693512,
-0.04811534285545349,
-0.5706120133399963,
0.10038964450359344,
0.26350829005241394,
0.0335165299475193,
-0.3179531991481781,
0.09914114326238632,
0.0033046677708625793,
-0.035558007657527924,
0.3778114318847656,
-0.1384403556585312,
0.38845011591911316,
0.4504052698612213,
0.06711733341217041,
-0.3161943852901459,
-0.19216610491275787,
-0.07445669174194336,
-0.058758918195962906,
0.44700145721435547,
-0.0163557305932045,
0.28282904624938965,
0.2275446206331253,
0.11046765744686127,
0.003467322327196598,
0.3139466345310211,
0.06391527503728867,
0.18890166282653809,
-0.4063865840435028,
-0.11627308279275894,
0.01896759867668152,
-0.06517957895994186,
-0.09751717746257782,
-0.22110986709594727,
-0.09241636097431183,
-0.21578872203826904,
0.4446016252040863,
0.17996586859226227,
0.20712631940841675,
0.15740106999874115,
0.0032119788229465485,
-0.14975538849830627,
0.1894354373216629,
0.4540913701057434,
0.04652899503707886,
-0.5287823677062988,
-0.08834385126829147,
-0.8030946850776672,
-0.00998544692993164,
-0.24493923783302307,
-0.13088732957839966,
0.04743765667080879,
0.2087426781654358,
0.3072413206100464,
0.27486056089401245,
-0.029850497841835022,
0.12221397459506989,
-0.08196110278367996,
0.33195760846138,
-0.1741873174905777,
-0.1797351986169815,
-0.10868525505065918,
0.10047739744186401,
-0.0626903623342514,
-0.41606059670448303,
0.08698508143424988,
0.3398017883300781,
-0.11946975439786911,
-0.18368494510650635,
-0.10132460296154022,
0.059979844838380814,
-0.2456321120262146,
0.411470890045166,
-0.0058905743062496185,
0.4132961630821228,
0.03350229561328888,
0.2946874797344208,
-0.4566013216972351,
-0.2764180898666382,
-0.19113309681415558,
0.17522388696670532,
-0.13808412849903107,
0.45195361971855164,
-0.3454529643058777,
0.03477950394153595,
-0.18179214000701904,
-0.04874476045370102,
0.019597254693508148,
0.23848767578601837,
-0.4080232083797455,
0.2792758643627167,
-0.11067312955856323,
0.22920483350753784,
-0.17601215839385986,
-0.13461631536483765,
-0.12041996419429779,
0.25373032689094543,
-0.10357723385095596,
-0.27412450313568115,
0.30164027214050293,
-0.25177985429763794,
-0.2887696921825409,
0.04694781452417374,
0.22829534113407135,
0.1620083600282669,
0.10297936946153641,
-0.5200516581535339,
-0.036144424229860306,
0.3270949423313141,
-0.07725342363119125,
-0.11455115675926208,
0.10697145760059357,
0.11763234436511993,
0.05647551640868187,
-0.15196940302848816,
0.22317107021808624,
0.3093073070049286,
-0.18569141626358032,
-0.17305490374565125,
-0.3540087938308716
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | I think another good example is the following:
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sts-dev.csv"], delimiter="\t", column_names=["one", "two", "three", "four", "score", "sentence1", "sentence2"], script_version="master")`
`
Displayed error `CSV parse error: Expected 7 columns, got 6` even tough I put 7 columns. First four columns from the csv don't have a name, so I've named them by default. The csv file is the .dev file from STSb benchmark dataset.
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 72 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
I think another good example is the following:
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sts-dev.csv"], delimiter="\t", column_names=["one", "two", "three", "four", "score", "sentence1", "sentence2"], script_version="master")`
`
Displayed error `CSV parse error: Expected 7 columns, got 6` even tough I put 7 columns. First four columns from the csv don't have a name, so I've named them by default. The csv file is the .dev file from STSb benchmark dataset.
| [
-0.09010697901248932,
0.017113178968429565,
0.016796283423900604,
0.38810068368911743,
0.2925541400909424,
0.21158838272094727,
0.3847278356552124,
0.22975926101207733,
0.22242270410060883,
0.08985844254493713,
-0.10132811963558197,
0.2565504014492035,
-0.0943535715341568,
0.03823219984769821,
-0.25120967626571655,
-0.10368014872074127,
0.010446526110172272,
0.08899752795696259,
-0.29616737365722656,
0.09088452160358429,
-0.3902239203453064,
0.31680694222450256,
-0.38278013467788696,
-0.04615701735019684,
-0.17666050791740417,
0.25778359174728394,
0.00030906498432159424,
0.26593199372291565,
-0.09586872160434723,
-0.4407775402069092,
0.5010364651679993,
0.003506965935230255,
0.5712615251541138,
0.3400990664958954,
-0.00012030696962028742,
0.016734987497329712,
0.359345018863678,
-0.15783916413784027,
-0.25518256425857544,
-0.48667478561401367,
-0.06360109150409698,
-0.4186865985393524,
0.333773136138916,
-0.12731757760047913,
-0.13251373171806335,
0.056703485548496246,
-0.09027449041604996,
-0.5262618064880371,
0.33511656522750854,
0.48166874051094055,
0.16990000009536743,
-0.1670435220003128,
-0.19626004993915558,
0.012287873774766922,
0.6344583034515381,
0.03839452192187309,
-0.17035886645317078,
0.2307642102241516,
0.06002847105264664,
-0.04783216118812561,
-0.0772404596209526,
0.04145755618810654,
-0.09991292655467987,
0.2801172733306885,
0.24864980578422546,
0.21078112721443176,
-0.2227523922920227,
-0.13977102935314178,
0.10075933486223221,
0.18459537625312805,
0.7821586728096008,
-0.15757408738136292,
-0.1605605185031891,
-0.014565844088792801,
-0.02449360117316246,
-0.08837589621543884,
0.3267969489097595,
0.3057573437690735,
0.049721334129571915,
0.3230620324611664,
-0.11051013320684433,
0.12781362235546112,
-0.283508837223053,
0.06460278481245041,
0.07317982614040375,
-0.028563812375068665,
-0.23634056746959686,
0.32047122716903687,
0.04314552620053291,
-0.0127091184258461,
0.3014170825481415,
-0.12812115252017975,
-0.15164588391780853,
0.15677523612976074,
-0.7318524122238159,
0.29940909147262573,
-0.18909919261932373,
-0.08311735838651657,
-0.013911087065935135,
0.1470641940832138,
0.2610999345779419,
0.04091281443834305,
-0.049525801092386246,
0.3694852888584137,
0.18441936373710632,
0.06234247609972954,
0.07447723299264908,
0.21233607828617096,
0.26066645979881287,
-0.19231536984443665,
-0.02450975775718689,
-0.12138677388429642,
-0.29151174426078796,
-0.4715486764907837,
-0.103949636220932,
0.12353634834289551,
0.2158166915178299,
-0.23656044900417328,
-0.21366003155708313,
0.13572952151298523,
-0.2236698865890503,
0.01823967695236206,
-0.115350641310215,
0.2875611186027527,
0.09613095968961716,
0.237078458070755,
0.08447258919477463,
0.19460852444171906,
-0.05932193249464035,
-0.41938358545303345,
-0.032063864171504974,
0.08895856142044067,
-0.3964943289756775,
-0.008943414315581322,
0.4253872334957123,
-0.20591294765472412,
0.15510514378547668,
0.20905303955078125,
-0.18071433901786804,
-0.3763447105884552,
-0.10518070310354233,
-0.29985231161117554,
0.12270030379295349,
0.23508544266223907,
0.07228761911392212,
0.22527173161506653,
0.17585888504981995,
-0.209645614027977,
-0.09481697529554367,
0.37433111667633057,
-0.4765118956565857,
-0.20376209914684296,
-0.11296071112155914,
0.08704648911952972,
-0.3702276349067688,
0.04281236231327057,
-0.4717310965061188,
0.09120896458625793,
0.01147683709859848,
-0.1476512849330902,
-0.18466529250144958,
-0.3796914219856262,
-0.3459870517253876,
-0.20033599436283112,
0.056269221007823944,
0.4900044798851013,
-0.754970133304596,
0.2011178433895111,
0.06856812536716461,
0.08406853675842285,
0.1757274866104126,
0.13877002894878387,
-0.22322553396224976,
0.09981139749288559,
-0.29252636432647705,
0.07603053748607635,
0.11721271276473999,
-0.11240792274475098,
-0.3250764310359955,
0.18971066176891327,
-0.021065805107355118,
-0.03491043671965599,
0.1909703016281128,
0.07664480060338974,
0.4279770851135254,
-0.000017736805602908134,
-0.29783058166503906,
0.16105705499649048,
0.01828906685113907,
0.09787177294492722,
-0.26418375968933105,
-0.22436264157295227,
0.21959765255451202,
0.24297894537448883,
0.04289555922150612,
0.08706021308898926,
0.2906081974506378,
-0.47732555866241455,
0.29480698704719543,
-0.08372175693511963,
0.20050834119319916,
0.13040176033973694,
0.19385069608688354,
-0.003129735589027405,
0.30422982573509216,
-0.02095389924943447,
-0.5490704774856567,
0.20130178332328796,
0.5036684274673462,
-0.1273956298828125,
-0.054686665534973145,
-0.043355368077754974,
-0.4341196119785309,
-0.034621186554431915,
-0.1757204532623291,
0.04964888095855713,
-0.025637511163949966,
0.10515925288200378,
-0.0783727765083313,
-0.18353672325611115,
-0.07457879185676575,
0.36728939414024353,
-0.3182166516780853,
0.059287820011377335,
-0.3288673758506775,
0.3052721321582794,
0.13568811118602753,
-0.09795566648244858,
0.23347023129463196,
-0.034017227590084076,
0.26358646154403687,
-0.15654657781124115,
-0.1594044268131256,
0.28259605169296265,
0.39722317457199097,
-0.008915401995182037,
0.05685286223888397,
-0.1653582900762558,
0.04499515891075134,
-0.28869926929473877,
-0.039644308388233185,
0.20836563408374786,
0.3289198875427246,
-0.052529893815517426,
-0.3882875442504883,
0.3406111001968384,
-0.3962653577327728,
0.21226847171783447,
-0.18585047125816345,
0.06363187730312347,
0.2840827703475952,
-0.06279289722442627,
-0.06255311518907547,
0.03682170808315277,
0.06394463777542114,
0.05412180349230766,
0.2319161742925644,
0.11553600430488586,
-0.16056698560714722,
-0.08008969575166702,
0.23992355167865753,
0.19333899021148682,
-0.26461857557296753,
0.22493216395378113,
-0.13179317116737366,
-0.06547006964683533,
0.3131319582462311,
0.2746327817440033,
0.38219785690307617,
0.11154670268297195,
-0.28232938051223755,
-0.007709762081503868,
0.15241266787052155,
-0.2335684597492218,
0.13159960508346558,
0.10346174985170364,
0.03536948189139366,
0.21095389127731323,
0.19889597594738007,
0.10485004633665085,
-0.17259767651557922,
-0.18634143471717834,
0.17257572710514069,
0.21905642747879028,
-0.5805425047874451,
0.004896814003586769,
-0.22968827188014984,
0.32738548517227173,
-0.27824416756629944,
0.058542437851428986,
0.17336878180503845,
-0.2118971049785614,
-0.33726805448532104,
0.2768917977809906,
-0.1294860541820526,
0.04677079617977142,
-0.15422840416431427,
0.3068215250968933,
0.11765919625759125,
-0.24675579369068146,
0.04692453891038895,
-0.21377499401569366,
-0.31527966260910034,
-0.007144732400774956,
0.10425247997045517,
0.03409538418054581,
-0.10436171293258667,
-0.03734883666038513,
0.08766651898622513,
-0.2402615249156952,
-0.0827939361333847,
0.16397914290428162,
0.013760633766651154,
0.13850416243076324,
0.10756008327007294,
-0.12621256709098816,
-0.04869905859231949,
-0.15883426368236542,
0.14372491836547852,
0.01944212056696415,
0.014620909467339516,
0.3827899992465973,
0.2163422405719757,
-0.20956172049045563,
-0.10905671119689941,
-0.692631185054779,
-0.17958316206932068,
-0.2248690277338028,
0.025014091283082962,
-0.17326749861240387,
-0.042830780148506165,
0.047063108533620834,
0.3236682116985321,
-0.0238795168697834,
0.20333550870418549,
-0.05358220636844635,
-0.056227657943964005,
-0.352806955575943,
0.588190495967865,
-0.2043500393629074,
-0.33772432804107666,
0.2926168143749237,
-0.0908307358622551,
0.010333973914384842,
0.3109979033470154,
-0.48875319957733154,
0.2925723195075989,
-0.055077165365219116,
0.07202692329883575,
-0.003576863557100296,
0.02973034977912903,
0.022240422666072845,
-0.03561912104487419,
0.12017355859279633,
-0.0546187199652195,
-0.24497707188129425,
0.1972096711397171,
-0.07574194669723511,
0.11966956406831741,
0.2698404788970947,
0.4340095520019531,
-0.23184452950954437,
0.6490837335586548,
0.09439109265804291,
0.006586134433746338,
0.2863881587982178,
-0.036960504949092865,
0.3239895701408386,
0.11930695176124573,
-0.17680777609348297,
0.1326799839735031,
-0.09769627451896667,
-0.351312518119812,
0.4459332227706909,
0.012753861024975777,
-0.008859757333993912,
-0.07529641687870026,
0.26211830973625183,
-0.16636839509010315,
-0.17297962307929993,
0.17630033195018768,
-0.10562843084335327,
0.03492482006549835,
-0.01486953068524599,
0.11562871187925339,
0.10184712707996368,
-0.27591654658317566,
-0.04725060984492302,
0.18792396783828735,
0.19160765409469604,
-0.09054191410541534,
0.0025338977575302124,
-0.03839118406176567,
-0.25996318459510803,
0.22240015864372253,
-0.03282646834850311,
0.43201327323913574,
0.1223771721124649,
-0.0044631026685237885,
0.057492561638355255,
0.18654252588748932,
0.6240666508674622,
-0.26142558455467224,
0.0962497740983963,
0.12755294144153595,
-0.051543571054935455,
-0.23467518389225006,
-0.2981119155883789,
-0.13585762679576874,
0.13462023437023163,
0.03217656910419464,
0.18761643767356873,
-0.029028601944446564,
0.007155572064220905,
0.42685550451278687,
0.10153858363628387,
-0.16029280424118042,
-0.4608365595340729,
-0.12650038301944733,
-0.06462454795837402,
-0.08243410289287567,
-0.2703130543231964,
0.1493464708328247,
0.10941305756568909,
-0.29649221897125244,
0.002371702343225479,
-0.23985005915164948,
-0.235589861869812,
0.29561036825180054,
0.1571994572877884,
0.2442668378353119,
0.10966063290834427,
0.2460033893585205,
0.1996622234582901,
0.1105184257030487,
0.335063099861145,
0.7943232655525208,
-0.21340499818325043,
-0.8323944807052612,
0.25028538703918457,
-0.49994298815727234,
0.3353824317455292,
-0.030272990465164185,
-0.3484944999217987,
-0.008195839822292328,
-0.2992191016674042,
-0.15623919665813446,
-0.15140630304813385,
-0.012248904444277287,
0.03570251539349556,
0.047906238585710526,
-0.08279632031917572,
-0.4753679037094116,
0.5408316850662231,
-0.1637016385793686,
-0.13822834193706512,
0.049359485507011414,
-0.008982211351394653,
-0.3495825231075287,
0.4944770336151123,
-0.08111552149057388,
0.6880200505256653,
-0.1763129085302353,
-0.12905897200107574,
0.07146617770195007,
-0.2028656303882599,
0.3421259820461273,
-0.253944993019104,
-0.05826835334300995,
-0.4942835867404938,
-0.22011737525463104,
-0.142533540725708,
-0.04173895716667175,
0.16116905212402344,
0.5277664065361023,
-0.20606449246406555,
0.3125901520252228,
-0.018413402140140533,
0.5204401612281799,
0.11012217402458191,
0.17576944828033447,
0.38559824228286743,
-0.15652473270893097,
-0.17279267311096191,
0.09802417457103729,
-0.18341922760009766,
-0.108525350689888,
0.07404882460832596,
-0.0011512134224176407,
-0.2079232782125473,
-0.05599096417427063,
-0.32361745834350586,
0.29941046237945557,
-0.0577520877122879,
-0.07154988497495651,
0.11646349728107452,
-0.5181865096092224,
0.6153250336647034,
0.4792627692222595,
0.15953589975833893,
-0.005980454385280609,
-0.18632479012012482,
0.05378809943795204,
-0.030851207673549652,
0.01727968454360962,
-0.12233985215425491,
-0.00430360296741128,
-0.03222274035215378,
0.22114774584770203,
-0.22932842373847961,
0.2947227656841278,
-0.08063270896673203,
-0.11313522607088089,
0.3033473789691925,
0.22527731955051422,
0.2555878162384033,
-0.461458683013916,
-0.3070751428604126,
-0.22533106803894043,
0.10912758111953735,
-0.124164879322052,
0.042234670370817184,
-0.09583275020122528,
0.07112202048301697,
0.0882016196846962,
0.13381491601467133,
-0.38902872800827026,
0.12391555309295654,
0.2190840244293213,
-0.17845723032951355,
0.09677036106586456,
0.4302879571914673,
0.4298396706581116,
-0.13394668698310852,
-0.13511452078819275,
0.10604097694158554,
0.08507932722568512,
-0.49807143211364746,
0.1417180299758911,
0.006016904953867197,
0.22846238315105438,
0.14372338354587555,
0.23852448165416718,
0.1999005377292633,
-0.23164808750152588,
0.1122666597366333,
-0.5635551810264587,
-0.02190433442592621,
-0.1168760359287262,
-0.12122257053852081,
0.1035313755273819,
-0.005763627588748932,
-0.3888220489025116,
-0.17553269863128662,
-0.05255761742591858,
-0.18561768531799316,
0.08551213145256042,
0.047471530735492706,
0.10094626992940903,
0.2080979198217392,
0.3193138539791107,
-0.26979196071624756,
-0.32969629764556885,
-0.011308029294013977,
0.06083753705024719,
0.0761808380484581,
-0.12395284324884415,
-0.22314222157001495,
0.1914043426513672,
0.04447675496339798,
0.1103505939245224,
-0.34298112988471985,
-0.213345468044281,
-0.2508711814880371,
-0.21870321035385132,
0.13683561980724335,
0.32495996356010437,
-0.04595962166786194,
0.4594796597957611,
0.05266149342060089,
-0.11932920664548874,
-0.5032315850257874,
0.3188265562057495,
-0.22902590036392212,
0.3656280040740967,
0.0728345513343811,
0.22885461151599884,
0.14214976131916046,
0.10327790677547455,
-0.12164143472909927,
0.026914864778518677,
-0.09532381594181061,
-0.09337762743234634,
0.30474141240119934,
-0.38032281398773193,
0.15495307743549347,
0.2595811188220978,
0.30939197540283203,
0.3506711423397064,
-0.13019658625125885,
-0.21257516741752625,
0.09248403459787369,
0.09705691784620285,
-0.36416754126548767,
0.1188809797167778,
0.06672539561986923,
0.3423581123352051,
-0.06951713562011719,
0.3417377471923828,
0.03327811136841774,
-0.20040497183799744,
0.11326545476913452,
0.1477336883544922,
0.6941478252410889,
0.13964906334877014,
0.12384119629859924,
0.18393829464912415,
-0.015724483877420425,
0.1573638916015625,
0.22163817286491394,
-0.005368195474147797,
0.021260760724544525,
0.45863068103790283,
-0.11599888652563095,
0.03836162015795708,
0.4242616593837738,
0.29858505725860596,
-0.15761452913284302,
-0.512363851070404,
0.29239344596862793,
0.3320298194885254,
-0.19769933819770813,
-0.10586937516927719,
0.21243609488010406,
0.5360161066055298,
0.03463273122906685,
0.04186905920505524,
-0.308471143245697,
-0.18613091111183167,
0.0684136226773262,
-0.08897854387760162,
-0.17091421782970428,
-0.19573122262954712,
-0.3741854131221771,
0.27572810649871826,
-0.20030251145362854,
-0.01283523440361023,
0.474104106426239,
0.18806783854961395,
-0.05183298885822296,
-0.5019615888595581,
0.13635465502738953,
0.23277688026428223,
0.04868431016802788,
-0.3137759268283844,
0.18426719307899475,
-0.05012376606464386,
0.010446105152368546,
0.40372350811958313,
-0.04951421916484833,
0.32891082763671875,
0.4287267327308655,
0.0547248013317585,
-0.4291597604751587,
-0.1533871442079544,
-0.08468261361122131,
-0.06404267251491547,
0.4988795220851898,
-0.08622139692306519,
0.1686629205942154,
0.25313666462898254,
0.09042136371135712,
0.012170420028269291,
0.3275722563266754,
0.14073446393013,
0.1382680982351303,
-0.4157443940639496,
-0.10138266533613205,
0.0889669805765152,
-0.058613233268260956,
-0.09264393150806427,
-0.1818149983882904,
-0.03695546090602875,
-0.1980535387992859,
0.4690285623073578,
0.06864595413208008,
0.2260657548904419,
0.16461977362632751,
0.0022851284593343735,
-0.19563065469264984,
0.2916516661643982,
0.3827780485153198,
0.03306014463305473,
-0.5024468898773193,
-0.04788297414779663,
-0.7514445185661316,
0.034469589591026306,
-0.10558651387691498,
-0.14399388432502747,
0.028426673263311386,
0.18963566422462463,
0.24271667003631592,
0.3166953921318054,
-0.06706613302230835,
0.12631827592849731,
-0.06662847846746445,
0.3325899839401245,
-0.23327083885669708,
-0.21376310288906097,
-0.08282977342605591,
0.04977027326822281,
-0.11091134697198868,
-0.4989262819290161,
0.12409111857414246,
0.2586055397987366,
-0.16439670324325562,
-0.19730104506015778,
-0.08317358791828156,
0.08809603750705719,
-0.33226269483566284,
0.4126715362071991,
-0.037436097860336304,
0.48195892572402954,
-0.048899658024311066,
0.29204294085502625,
-0.3914603292942047,
-0.298388808965683,
-0.15491801500320435,
0.22188788652420044,
-0.06461276113986969,
0.43548160791397095,
-0.3110988140106201,
0.020878026261925697,
-0.21570555865764618,
-0.10985654592514038,
0.08013959228992462,
0.24708707630634308,
-0.42905357480049133,
0.20165598392486572,
-0.1904411017894745,
0.22226926684379578,
-0.1485283225774765,
-0.10519372671842575,
-0.13151225447654724,
0.2425086945295334,
-0.062155596911907196,
-0.22592656314373016,
0.2711740732192993,
-0.2285078912973404,
-0.26347967982292175,
0.047785501927137375,
0.20379936695098877,
0.16801539063453674,
0.08447401225566864,
-0.5076406598091125,
0.03725399821996689,
0.4007316529750824,
-0.1354268491268158,
-0.06882724165916443,
0.16573135554790497,
0.044344715774059296,
0.13959002494812012,
-0.15898030996322632,
0.17792753875255585,
0.2822125554084778,
-0.1992393136024475,
-0.2089347094297409,
-0.38708019256591797
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi, seems I also can't read csv file. I was trying with a dummy csv with only three rows.
```
text,label
I hate google,negative
I love Microsoft,positive
I don't like you,negative
```
I was using the HuggingFace image in Paperspace Gradient (datasets==1.1.3). The following code doesn't work:
```
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",")
```
It outputs the following:
```
Using custom data configuration default
Downloading and preparing dataset csv/default-3b6254ff4dd403e5 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/csv/default-3b6254ff4dd403e5/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/default-3b6254ff4dd403e5/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2. Subsequent calls will reuse this data.
```
But `len(dataset)` gives `1` and I can't access rows with indexing `dataset[0]` (it gives `KeyError: 0`).
However, loading from pandas dataframe is working.
```
from datasets import Dataset
import pandas as pd
df = pd.read_csv('test_data.csv')
dataset = Dataset.from_pandas(df)
```
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 141 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi, seems I also can't read csv file. I was trying with a dummy csv with only three rows.
```
text,label
I hate google,negative
I love Microsoft,positive
I don't like you,negative
```
I was using the HuggingFace image in Paperspace Gradient (datasets==1.1.3). The following code doesn't work:
```
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",")
```
It outputs the following:
```
Using custom data configuration default
Downloading and preparing dataset csv/default-3b6254ff4dd403e5 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/csv/default-3b6254ff4dd403e5/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/default-3b6254ff4dd403e5/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2. Subsequent calls will reuse this data.
```
But `len(dataset)` gives `1` and I can't access rows with indexing `dataset[0]` (it gives `KeyError: 0`).
However, loading from pandas dataframe is working.
```
from datasets import Dataset
import pandas as pd
df = pd.read_csv('test_data.csv')
dataset = Dataset.from_pandas(df)
```
| [
-0.011862795799970627,
0.08087868988513947,
-0.019371110945940018,
0.4624464511871338,
0.289131760597229,
0.1691018044948578,
0.3954823315143585,
0.2487926483154297,
0.2549249231815338,
0.12202344834804535,
-0.18819203972816467,
0.22736765444278717,
-0.13542701303958893,
-0.015302996151149273,
-0.24972277879714966,
-0.09352172911167145,
0.026097767055034637,
0.05990409851074219,
-0.37322232127189636,
-0.009029936045408249,
-0.3582961857318878,
0.34655094146728516,
-0.3180825114250183,
-0.07678228616714478,
-0.10043136030435562,
0.13664890825748444,
-0.07390426844358444,
0.3516082763671875,
-0.2565933167934418,
-0.28106898069381714,
0.46028587222099304,
0.02767208218574524,
0.5446305274963379,
0.32261544466018677,
-0.00011880283273058012,
0.11578914523124695,
0.2574641704559326,
-0.12577958405017853,
-0.17165280878543854,
-0.6218041777610779,
0.0017183832824230194,
-0.4847865104675293,
0.2545430362224579,
-0.12642988562583923,
-0.1261843889951706,
0.04418674483895302,
-0.09748703241348267,
-0.3808397948741913,
0.4975131154060364,
0.5468562841415405,
0.16082046926021576,
-0.2178964465856552,
-0.0026597827672958374,
0.05655599758028984,
0.6734200716018677,
0.04771444946527481,
-0.16922052204608917,
0.27078959345817566,
0.02605343610048294,
-0.086528480052948,
-0.08803962916135788,
0.13686534762382507,
-0.08833776414394379,
0.2905082404613495,
0.2541859447956085,
0.26600179076194763,
-0.16048479080200195,
-0.23151203989982605,
0.06648686528205872,
0.18385577201843262,
0.6319202780723572,
-0.07598285377025604,
-0.18483752012252808,
-0.04731230437755585,
0.0015071236994117498,
-0.21428969502449036,
0.384978711605072,
0.32181844115257263,
-0.05360603705048561,
0.3348771333694458,
-0.15933671593666077,
0.04912622272968292,
-0.40219369530677795,
0.15638741850852966,
0.05653940886259079,
0.016730569303035736,
-0.271109402179718,
0.24739748239517212,
0.1620323657989502,
0.04098191857337952,
0.30635958909988403,
0.012509752064943314,
-0.09588934481143951,
0.2550707757472992,
-0.6877483129501343,
0.3242427408695221,
-0.16100573539733887,
-0.047100916504859924,
-0.037341922521591187,
0.18415981531143188,
0.33487969636917114,
0.018604502081871033,
-0.10094004124403,
0.3323724567890167,
0.169648677110672,
0.07245075702667236,
-0.06948889046907425,
0.31014394760131836,
0.31112581491470337,
-0.14186054468154907,
0.0889902412891388,
-0.1957608163356781,
-0.3813560903072357,
-0.5510752201080322,
-0.13707204163074493,
0.1535208821296692,
0.2152673602104187,
-0.19137336313724518,
-0.1348074972629547,
0.08249715715646744,
-0.29584360122680664,
0.04120059311389923,
-0.10370498895645142,
0.2584903836250305,
0.11812672764062881,
0.19296693801879883,
0.11201825737953186,
0.21782821416854858,
-0.06696318089962006,
-0.3518299162387848,
-0.004881472326815128,
0.15075719356536865,
-0.41257843375205994,
-0.042058952152729034,
0.4580540359020233,
-0.19983139634132385,
0.14303110539913177,
0.16528494656085968,
-0.031720809638500214,
-0.3051396608352661,
-0.02750364877283573,
-0.3450383245944977,
0.10426494479179382,
0.31145602464675903,
0.09196680784225464,
0.17807698249816895,
0.2598016560077667,
-0.27428096532821655,
-0.06500347703695297,
0.2549704611301422,
-0.4401562213897705,
-0.11461712419986725,
-0.07221414893865585,
0.07122790068387985,
-0.26104193925857544,
0.16872720420360565,
-0.5450236797332764,
0.11310382187366486,
-0.01715237647294998,
-0.14905831217765808,
-0.19416075944900513,
-0.3184813857078552,
-0.2939888834953308,
-0.253307580947876,
0.08775892853736877,
0.4105600118637085,
-0.7388893961906433,
0.18636950850486755,
-0.007996685802936554,
0.008458806201815605,
0.14233753085136414,
0.2571275532245636,
-0.21667802333831787,
-0.007667072117328644,
-0.24000810086727142,
0.05251871049404144,
0.19947460293769836,
-0.22594892978668213,
-0.46376413106918335,
0.14561952650547028,
0.012508608400821686,
-0.04598936438560486,
0.10682158917188644,
0.02474469132721424,
0.41880229115486145,
0.09536608308553696,
-0.2324727177619934,
0.20210933685302734,
0.021800672635436058,
0.053707219660282135,
-0.27094200253486633,
-0.25557368993759155,
0.27276986837387085,
0.23129861056804657,
0.05673079937696457,
0.07272455096244812,
0.2554842531681061,
-0.5654006004333496,
0.3175983726978302,
-0.09550584852695465,
0.25375357270240784,
0.10378994047641754,
0.30582988262176514,
0.011923164129257202,
0.25852301716804504,
0.020924463868141174,
-0.5154768228530884,
0.17810621857643127,
0.3431999683380127,
-0.11955049633979797,
-0.12806852161884308,
-0.030528800562024117,
-0.4309690296649933,
-0.13885252177715302,
-0.24836276471614838,
-0.12303362786769867,
0.009785637259483337,
0.0791337788105011,
0.006720852106809616,
-0.17649926245212555,
-0.11148995161056519,
0.48633506894111633,
-0.3433072566986084,
0.1073693260550499,
-0.38112565875053406,
0.25622791051864624,
0.11002572625875473,
-0.025771912187337875,
0.24724024534225464,
-0.06204991787672043,
0.26985976099967957,
-0.1324794888496399,
-0.17804580926895142,
0.2074374556541443,
0.3486875593662262,
-0.060123175382614136,
0.05844077095389366,
-0.14654912054538727,
0.04861925542354584,
-0.27876803278923035,
-0.06392926722764969,
0.15577392280101776,
0.3600311279296875,
-0.046051476150751114,
-0.5185003280639648,
0.31445300579071045,
-0.31828030943870544,
0.1841374635696411,
-0.16503673791885376,
0.10023065656423569,
0.261604905128479,
0.011042464524507523,
-0.13402999937534332,
0.006500318646430969,
0.054611604660749435,
0.10288368165493011,
0.3047710359096527,
0.006156753748655319,
-0.09172673523426056,
-0.1693296730518341,
0.08667697757482529,
0.16972337663173676,
-0.25211700797080994,
0.20949190855026245,
-0.07890462130308151,
-0.05278414487838745,
0.3029038608074188,
0.30029940605163574,
0.369509220123291,
0.06684402376413345,
-0.25570207834243774,
0.0274061169475317,
0.09871465712785721,
-0.2053615003824234,
0.04388750344514847,
0.04508690536022186,
0.13057802617549896,
0.1671067178249359,
0.22083266079425812,
0.13972637057304382,
-0.14625594019889832,
-0.1437518298625946,
0.19359278678894043,
0.2692376673221588,
-0.5836187601089478,
0.004638968035578728,
-0.2520120441913605,
0.2815493643283844,
-0.17762866616249084,
0.0017938804812729359,
0.1016969382762909,
-0.21049568057060242,
-0.35040879249572754,
0.2913830578327179,
-0.03269904851913452,
0.016930650919675827,
-0.021211955696344376,
0.3473857045173645,
0.10489225387573242,
-0.0763038769364357,
-0.024084016680717468,
-0.17350538074970245,
-0.23512154817581177,
0.01993921399116516,
0.04435810446739197,
0.004138669464737177,
-0.07211610674858093,
0.03161653131246567,
0.019556540995836258,
-0.24864110350608826,
-0.12166456878185272,
0.1549573540687561,
-0.007237311452627182,
0.1807895302772522,
0.09412181377410889,
-0.07610629498958588,
-0.10425003618001938,
-0.03075406700372696,
0.17157620191574097,
0.10486766695976257,
-0.007071475498378277,
0.27810657024383545,
0.20357869565486908,
-0.180963397026062,
-0.08322636783123016,
-0.583900511264801,
-0.3633827269077301,
-0.22678785026073456,
0.06761165708303452,
-0.11464157700538635,
-0.005291104316711426,
0.09916914999485016,
0.2561676502227783,
0.027477089315652847,
0.2174450010061264,
-0.05610334873199463,
-0.13613110780715942,
-0.3465021550655365,
0.5890854001045227,
-0.2951637804508209,
-0.3459739089012146,
0.2518578767776489,
-0.058075036853551865,
0.06556268036365509,
0.45440810918807983,
-0.44825780391693115,
0.14989548921585083,
-0.031936243176460266,
0.07503847777843475,
0.02241726778447628,
0.026220226660370827,
0.03701804205775261,
-0.08963257819414139,
0.14116652309894562,
-0.041019879281520844,
-0.19470585882663727,
0.12355513125658035,
-0.0017066225409507751,
0.10289624333381653,
0.2487308382987976,
0.44182005524635315,
-0.1863636076450348,
0.7564932703971863,
0.16801093518733978,
0.07717318087816238,
0.30381500720977783,
-0.1413717269897461,
0.3919923007488251,
0.19626730680465698,
-0.2521836757659912,
0.1308353990316391,
-0.08939407765865326,
-0.2790391445159912,
0.29105186462402344,
-0.003091709688305855,
-0.12455073744058609,
-0.14321541786193848,
0.1890484094619751,
-0.3418028652667999,
-0.16458356380462646,
0.12098237127065659,
0.07233679294586182,
0.0835639163851738,
0.005170019343495369,
0.16734954714775085,
0.10780569911003113,
-0.2757095694541931,
-0.13253413140773773,
0.2759643793106079,
0.1677875518798828,
-0.03507363796234131,
0.16645127534866333,
-0.11711374670267105,
-0.39320874214172363,
0.2338520735502243,
-0.06991253048181534,
0.34058091044425964,
0.154721200466156,
0.026966102421283722,
0.04911419749259949,
0.1286090612411499,
0.729275643825531,
-0.28674280643463135,
-0.049921080470085144,
0.16833029687404633,
-0.11484618484973907,
-0.18534009158611298,
-0.26996299624443054,
-0.1347566395998001,
0.1397523432970047,
0.042279597371816635,
0.2738826870918274,
0.009045936167240143,
0.03845084831118584,
0.380913108587265,
0.03718053922057152,
-0.15058758854866028,
-0.34227702021598816,
-0.12472553551197052,
-0.10892210155725479,
-0.13652119040489197,
-0.21562811732292175,
0.10308248549699783,
0.1527044177055359,
-0.26317906379699707,
0.03382791951298714,
-0.21286480128765106,
-0.19472593069076538,
0.2898358702659607,
0.22484493255615234,
0.2315247356891632,
0.13698692619800568,
0.13357701897621155,
0.37251248955726624,
0.15324562788009644,
0.23074398934841156,
0.783141016960144,
-0.25038233399391174,
-0.8798403143882751,
0.25208085775375366,
-0.5395921468734741,
0.274608850479126,
0.0672602429986,
-0.3926187753677368,
-0.0692601427435875,
-0.19089747965335846,
-0.13588787615299225,
-0.13305141031742096,
0.03946205601096153,
0.07276004552841187,
0.029898464679718018,
-0.1287190318107605,
-0.5149634480476379,
0.5257353186607361,
-0.09980341792106628,
-0.18122908473014832,
0.02022816613316536,
0.014194212853908539,
-0.36942657828330994,
0.42481154203414917,
-0.055052749812603,
0.7185192108154297,
-0.15438441932201385,
-0.06646834313869476,
0.19479647278785706,
-0.15812167525291443,
0.4200710952281952,
-0.27767011523246765,
0.008203049190342426,
-0.38429149985313416,
-0.17450253665447235,
-0.19664639234542847,
0.013768050819635391,
0.17336085438728333,
0.5210572481155396,
-0.1451995074748993,
0.3163960576057434,
0.0016983672976493835,
0.36455491185188293,
0.02646012045443058,
0.0155002661049366,
0.37417730689048767,
-0.17928269505500793,
-0.19208544492721558,
0.11077503859996796,
-0.13847845792770386,
0.015447104349732399,
0.09687730669975281,
0.0570584237575531,
-0.303252637386322,
-0.05056890845298767,
-0.41316819190979004,
0.23847955465316772,
-0.1725194901227951,
0.044208675622940063,
0.11496765911579132,
-0.5480039715766907,
0.5427277684211731,
0.4506191313266754,
0.24101696908473969,
-0.0006869249045848846,
-0.23817512392997742,
0.05948355048894882,
0.008938610553741455,
-0.04554169997572899,
-0.17698879539966583,
-0.023202138021588326,
-0.07912664115428925,
0.17295190691947937,
-0.24297982454299927,
0.324445903301239,
-0.05826373025774956,
-0.08374178409576416,
0.22001349925994873,
0.2635120153427124,
0.2422814816236496,
-0.4329596757888794,
-0.27821996808052063,
-0.22407910227775574,
0.09294895827770233,
-0.10384798049926758,
0.04449822008609772,
-0.07980108261108398,
0.08798343688249588,
-0.0037033259868621826,
0.12560981512069702,
-0.3943377137184143,
0.14754951000213623,
0.22927439212799072,
-0.20912843942642212,
0.07421384751796722,
0.3961910903453827,
0.44188007712364197,
-0.15955226123332977,
-0.13382697105407715,
0.0772402361035347,
0.18883533775806427,
-0.48284319043159485,
0.11608730256557465,
0.1249999925494194,
0.24399445950984955,
0.10877939313650131,
0.20836256444454193,
0.21342408657073975,
-0.2776627242565155,
0.1464928686618805,
-0.6198527216911316,
-0.025482535362243652,
-0.10957060754299164,
-0.14039988815784454,
0.07561464607715607,
0.04970427602529526,
-0.44967320561408997,
-0.12913887202739716,
-0.011775793507695198,
-0.1885746568441391,
0.13997824490070343,
0.04078086465597153,
0.01804380677640438,
0.23112203180789948,
0.28579989075660706,
-0.2057444304227829,
-0.3224656879901886,
-0.03622184693813324,
0.12147529423236847,
0.06562364101409912,
-0.10713903605937958,
-0.2727227807044983,
0.1728658676147461,
-0.0013993047177791595,
0.05390329658985138,
-0.22844456136226654,
-0.18583959341049194,
-0.2576570212841034,
-0.1746506243944168,
0.25252753496170044,
0.2778945565223694,
0.04119262099266052,
0.4188424348831177,
-0.08361843228340149,
-0.08943668752908707,
-0.4818774461746216,
0.2702869176864624,
-0.1971147060394287,
0.2839878797531128,
0.15428604185581207,
0.2316165268421173,
0.15931576490402222,
0.10048648715019226,
-0.13383060693740845,
-0.024589724838733673,
-0.07084238529205322,
-0.18769845366477966,
0.3153250813484192,
-0.334791362285614,
0.21859091520309448,
0.17901340126991272,
0.3079962134361267,
0.3168785870075226,
-0.12150963395833969,
-0.10233034193515778,
0.17199194431304932,
0.09024043381214142,
-0.3366948068141937,
0.1967003047466278,
0.05947642773389816,
0.30610644817352295,
-0.022068893536925316,
0.32457634806632996,
-0.05370612442493439,
-0.07964341342449188,
0.023962687700986862,
0.11511882394552231,
0.7046645879745483,
-0.016492843627929688,
0.052481021732091904,
0.05482574552297592,
-0.04942924529314041,
0.11153727769851685,
0.22701267898082733,
0.038073375821113586,
0.0507207028567791,
0.5308743119239807,
-0.13902372121810913,
-0.015198180451989174,
0.24749216437339783,
0.3807494044303894,
-0.16278421878814697,
-0.6306780576705933,
0.23858419060707092,
0.3995528817176819,
-0.30722948908805847,
0.01906190812587738,
0.12123998254537582,
0.6014146208763123,
0.03496670722961426,
0.11638259887695312,
-0.2986670136451721,
-0.010739695280790329,
0.1315869390964508,
-0.10315746068954468,
-0.264788419008255,
-0.21506008505821228,
-0.43872901797294617,
0.2846027910709381,
-0.21690967679023743,
-0.08434569835662842,
0.3529357314109802,
0.1971825361251831,
-0.06693558394908905,
-0.5603030323982239,
0.1278914511203766,
0.21197375655174255,
0.11039895564317703,
-0.3089469075202942,
0.15593816339969635,
-0.04931418597698212,
0.019481513649225235,
0.2848854660987854,
-0.031338416039943695,
0.35409122705459595,
0.42841240763664246,
0.06925094127655029,
-0.34560626745224,
-0.17221508920192719,
-0.11749908328056335,
-0.10754458606243134,
0.44336998462677,
0.05573693662881851,
0.20209218561649323,
0.23299777507781982,
0.09308678656816483,
-0.008032871410250664,
0.32599806785583496,
0.07014928758144379,
0.23547795414924622,
-0.3867933750152588,
-0.1437152624130249,
-0.054856076836586,
0.0474512055516243,
-0.1470629721879959,
-0.28365540504455566,
-0.16986492276191711,
-0.07852955907583237,
0.41863396763801575,
0.12905089557170868,
0.28928282856941223,
0.16431185603141785,
0.0040267594158649445,
-0.11191257834434509,
0.2636411786079407,
0.46337103843688965,
0.10634298622608185,
-0.4908934235572815,
-0.04684668779373169,
-0.761283278465271,
-0.023025430738925934,
-0.20923402905464172,
-0.14635953307151794,
-0.010271161794662476,
0.2479960173368454,
0.24652498960494995,
0.3274957537651062,
-0.08135050535202026,
0.12139546126127243,
-0.03788961097598076,
0.2988811135292053,
-0.2078571915626526,
-0.1493215560913086,
-0.07539080083370209,
0.06106313318014145,
-0.03573303297162056,
-0.46500563621520996,
0.0714385136961937,
0.328413188457489,
-0.16042394936084747,
-0.15804719924926758,
0.009050026535987854,
0.018557164818048477,
-0.2787305414676666,
0.35433492064476013,
0.020047998055815697,
0.3844933807849884,
-0.016235407441854477,
0.28083717823028564,
-0.46963292360305786,
-0.2169647067785263,
-0.19403821229934692,
0.21340465545654297,
-0.05094427242875099,
0.46704426407814026,
-0.3124223053455353,
-0.10089495778083801,
-0.23788699507713318,
0.0001283606979995966,
0.08802366256713867,
0.13795404136180878,
-0.3464074432849884,
0.26506561040878296,
-0.10359933972358704,
0.20207072794437408,
-0.15309907495975494,
-0.10171086341142654,
-0.2005614936351776,
0.1393139511346817,
-0.07914701104164124,
-0.2614234387874603,
0.2789075970649719,
-0.3219946026802063,
-0.222023606300354,
0.035374920815229416,
0.12096938490867615,
0.1921246349811554,
0.12581974267959595,
-0.5225008726119995,
0.04238065332174301,
0.3424723148345947,
-0.13802137970924377,
-0.15901964902877808,
0.1584721952676773,
0.10982918739318848,
0.04639442637562752,
-0.21526244282722473,
0.19986552000045776,
0.3526126444339752,
-0.21599499881267548,
-0.21492016315460205,
-0.3720289468765259
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | This is because load_dataset without `split=` returns a dictionary of split names (train/validation/test) to dataset.
You can do
```python
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",")
print(dataset["train"][0])
```
Or if you want to directly get the train split:
```python
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",", split="train")
print(dataset[0])
```
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 55 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
This is because load_dataset without `split=` returns a dictionary of split names (train/validation/test) to dataset.
You can do
```python
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",")
print(dataset["train"][0])
```
Or if you want to directly get the train split:
```python
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",", split="train")
print(dataset[0])
```
| [
-0.09202475845813751,
0.05643486976623535,
0.003914400935173035,
0.37216055393218994,
0.24199052155017853,
0.2112511396408081,
0.5301392674446106,
0.39489901065826416,
0.2474181056022644,
0.06873513013124466,
-0.14504015445709229,
0.27287960052490234,
-0.17804279923439026,
0.08538153767585754,
-0.262155681848526,
-0.19454509019851685,
0.03221394121646881,
0.049730945378541946,
-0.3552699387073517,
0.003988180309534073,
-0.3571983277797699,
0.37880685925483704,
-0.35984283685684204,
-0.07909981906414032,
-0.22351807355880737,
0.16742300987243652,
-0.14664556086063385,
0.34189125895500183,
-0.06460434198379517,
-0.30697402358055115,
0.46422871947288513,
-0.10275048017501831,
0.41053199768066406,
0.33799755573272705,
-0.00012092653923900798,
0.0915975570678711,
0.24506066739559174,
-0.10918128490447998,
-0.2504523992538452,
-0.6010634303092957,
-0.025937501341104507,
-0.39213287830352783,
0.3510512709617615,
-0.141118124127388,
-0.12902982532978058,
0.0570397824048996,
-0.16927269101142883,
-0.3528500497341156,
0.4674946069717407,
0.5159783363342285,
0.15313293039798737,
-0.20590198040008545,
-0.19712568819522858,
-0.012446342967450619,
0.5450274348258972,
0.1082913801074028,
-0.14576683938503265,
0.2881385385990143,
-0.013943806290626526,
-0.2046416848897934,
-0.1118159368634224,
0.06374920904636383,
0.01064206101000309,
0.21902088820934296,
0.13160282373428345,
0.29656773805618286,
-0.26157134771347046,
-0.20171411335468292,
0.01666618511080742,
0.19496148824691772,
0.570548415184021,
-0.07317996770143509,
-0.17485648393630981,
-0.1613176167011261,
-0.05998619645833969,
-0.21300598978996277,
0.31247133016586304,
0.3574943542480469,
-0.016969170421361923,
0.3381769359111786,
-0.12065698206424713,
0.07099004089832306,
-0.2584073841571808,
0.09946129471063614,
-0.056213803589344025,
0.06547936797142029,
-0.14895427227020264,
0.28125327825546265,
0.20177003741264343,
0.1015310287475586,
0.25147750973701477,
-0.05799552798271179,
-0.06732450425624847,
0.1580311805009842,
-0.6834620833396912,
0.20368114113807678,
-0.21687740087509155,
-0.1526711881160736,
-0.054263629019260406,
0.24588605761528015,
0.17604388296604156,
-0.04768398404121399,
-0.07081064581871033,
0.3254225254058838,
0.36458632349967957,
0.007467025890946388,
-0.02589786797761917,
0.4044130742549896,
0.24075347185134888,
-0.13342350721359253,
-0.03887903317809105,
-0.18577757477760315,
-0.29342108964920044,
-0.5016214847564697,
-0.08630253374576569,
0.20128270983695984,
0.16110335290431976,
-0.1534704566001892,
-0.23444153368473053,
0.04946691915392876,
-0.32825320959091187,
-0.016003940254449844,
-0.10578794777393341,
0.30720382928848267,
0.07920518517494202,
0.3233473300933838,
0.0002637915313243866,
0.2762194871902466,
-0.1499175727367401,
-0.3500111997127533,
-0.038069695234298706,
0.15383952856063843,
-0.42942264676094055,
-0.06670958548784256,
0.4375000298023224,
-0.17408566176891327,
0.14336270093917847,
0.1928386092185974,
-0.05664399266242981,
-0.3830620050430298,
-0.07296618074178696,
-0.3045078217983246,
0.12774160504341125,
0.279257595539093,
0.10172317922115326,
0.17162835597991943,
0.29392486810684204,
-0.19961221516132355,
-0.08715985715389252,
0.2777005434036255,
-0.4890451431274414,
-0.25412243604660034,
-0.09134615212678909,
0.10751832276582718,
-0.2549368739128113,
0.14197438955307007,
-0.31311145424842834,
0.04680156707763672,
0.09502962231636047,
-0.10524190962314606,
-0.16757217049598694,
-0.3225545287132263,
-0.31907919049263,
-0.2440023273229599,
0.0466860830783844,
0.39621371030807495,
-0.7064719796180725,
0.16097892820835114,
-0.043627165257930756,
0.016649670898914337,
0.17652291059494019,
0.22869154810905457,
-0.260500431060791,
0.07816343754529953,
-0.2938953638076782,
0.12579545378684998,
0.2624046206474304,
-0.21647775173187256,
-0.3129371106624603,
0.27951714396476746,
-0.0455348938703537,
-0.019515901803970337,
0.13867877423763275,
0.00487781036645174,
0.4192967414855957,
0.032776180654764175,
-0.12228105962276459,
0.26952677965164185,
-0.06650160253047943,
0.05136282742023468,
-0.20434220135211945,
-0.22083152830600739,
0.23039591312408447,
0.2533373534679413,
0.09017326682806015,
0.0646318793296814,
0.2520323693752289,
-0.4523490071296692,
0.43114396929740906,
-0.01852164790034294,
0.20099568367004395,
0.06000450253486633,
0.20454955101013184,
0.06739594042301178,
0.29955998063087463,
-0.044875215739011765,
-0.5501889586448669,
0.17511045932769775,
0.423056960105896,
-0.18364527821540833,
-0.1712394803762436,
-0.08161155134439468,
-0.45690709352493286,
-0.052778393030166626,
-0.2632133662700653,
-0.03535931929945946,
-0.029591772705316544,
-0.04530954360961914,
-0.011051421985030174,
-0.18257473409175873,
-0.17911775410175323,
0.42177194356918335,
-0.2611873149871826,
0.17219677567481995,
-0.34255021810531616,
0.35864517092704773,
0.14261585474014282,
-0.05172388255596161,
0.1552654504776001,
0.056174714118242264,
0.23906227946281433,
-0.15277381241321564,
-0.1483725905418396,
0.33563655614852905,
0.47665920853614807,
-0.06188109517097473,
-0.03935858607292175,
-0.2567853331565857,
0.12003801017999649,
-0.2125389128923416,
-0.07651819288730621,
0.20148946344852448,
0.26608139276504517,
-0.08924540877342224,
-0.47911742329597473,
0.39830487966537476,
-0.38708004355430603,
0.31097477674484253,
-0.12544900178909302,
0.19986920058727264,
0.2418135702610016,
-0.10076446831226349,
-0.1040569543838501,
-0.0747823640704155,
0.022481152787804604,
-0.04486480727791786,
0.25910884141921997,
0.07628767192363739,
-0.16195520758628845,
-0.19723516702651978,
0.3197234272956848,
0.11518055200576782,
-0.2512788474559784,
0.11531374603509903,
-0.09707062691450119,
-0.052602000534534454,
0.2553263008594513,
0.38899552822113037,
0.4357035160064697,
0.0831027403473854,
-0.20039844512939453,
0.027241377159953117,
0.1205655038356781,
-0.24200692772865295,
0.16772693395614624,
0.07373525202274323,
0.08036249130964279,
0.228398859500885,
0.13717973232269287,
0.01855863444507122,
-0.12216285616159439,
-0.14204096794128418,
0.21807920932769775,
0.1531411111354828,
-0.558041512966156,
0.06724709272384644,
-0.24924448132514954,
0.3542288839817047,
-0.30547937750816345,
-0.08809306472539902,
0.11775338649749756,
-0.3376852869987488,
-0.267315149307251,
0.22581009566783905,
-0.15556974709033966,
0.08494014292955399,
-0.19685237109661102,
0.16889460384845734,
0.04604087024927139,
-0.22575153410434723,
0.12774859368801117,
-0.21521185338497162,
-0.26223042607307434,
0.026539571583271027,
0.054697275161743164,
0.004814444575458765,
-0.06049220263957977,
0.008946705609560013,
-0.01718606986105442,
-0.12334869056940079,
-0.018215812742710114,
0.18679840862751007,
-0.07027319818735123,
-0.0006801672279834747,
0.18533164262771606,
-0.1570405513048172,
-0.029388006776571274,
-0.20669230818748474,
0.16233687102794647,
0.07732389867305756,
0.05672439932823181,
0.3653014302253723,
0.2931174039840698,
-0.0645013377070427,
-0.1795729696750641,
-0.7377923130989075,
-0.2892296612262726,
-0.22019633650779724,
0.0692029595375061,
-0.167129248380661,
-0.0350540429353714,
0.09366759657859802,
0.2560248374938965,
-0.032181642949581146,
0.22912587225437164,
-0.17196230590343475,
-0.13852940499782562,
-0.1858992874622345,
0.5807958841323853,
-0.24695062637329102,
-0.2713826894760132,
0.21955478191375732,
-0.1315249800682068,
0.007083408534526825,
0.3676756024360657,
-0.42184609174728394,
0.22623983025550842,
-0.0697561576962471,
0.074983149766922,
-0.05207926779985428,
0.024303708225488663,
0.08300642669200897,
-0.0699177086353302,
0.09782843291759491,
-0.03876063972711563,
-0.10522565245628357,
0.250859797000885,
-0.04969341307878494,
0.10345328599214554,
0.14270682632923126,
0.5326665639877319,
-0.09933438152074814,
0.8147954344749451,
0.051359791308641434,
0.059384606778621674,
0.19293245673179626,
-0.1644669473171234,
0.25086861848831177,
0.11529406905174255,
-0.2596246004104614,
0.0838407501578331,
-0.16916674375534058,
-0.32208251953125,
0.3516041934490204,
-0.021484721451997757,
-0.15244057774543762,
-0.09982800483703613,
0.25905683636665344,
-0.20203101634979248,
-0.2619890868663788,
0.17522649466991425,
-0.11712129414081573,
0.029884733259677887,
-0.03127670660614967,
0.2175438106060028,
0.16294288635253906,
-0.2070382833480835,
-0.022765640169382095,
0.12135796248912811,
0.13132110238075256,
-0.17120105028152466,
0.07240517437458038,
-0.16775622963905334,
-0.265064537525177,
0.17002463340759277,
0.006587524898350239,
0.318621963262558,
0.12309066951274872,
-0.14270056784152985,
0.07816924899816513,
0.22316768765449524,
0.8126676678657532,
-0.1891089677810669,
-0.0012190118432044983,
0.14945504069328308,
-0.07519012689590454,
-0.1324191838502884,
-0.3159855604171753,
-0.1486232578754425,
0.22765128314495087,
0.08831667900085449,
0.25104600191116333,
-0.04963971674442291,
-0.01033038180321455,
0.4505237638950348,
0.08386430144309998,
-0.2074788212776184,
-0.3661194145679474,
-0.15624620020389557,
-0.012567069381475449,
-0.09316760301589966,
-0.13082420825958252,
0.19057656824588776,
0.1685333549976349,
-0.31855088472366333,
-0.0054587796330451965,
-0.16507922112941742,
-0.2574358284473419,
0.3499356508255005,
0.17091575264930725,
0.282319575548172,
0.027928413823246956,
0.20670674741268158,
0.22875794768333435,
0.15203259885311127,
0.1940155029296875,
0.7980726957321167,
-0.27264758944511414,
-0.875758171081543,
0.2597288489341736,
-0.5026088356971741,
0.40055418014526367,
0.025332219898700714,
-0.363864541053772,
-0.1037122830748558,
-0.1918032318353653,
-0.052636995911598206,
-0.12982963025569916,
0.016517512500286102,
0.08913160115480423,
-0.06780720502138138,
-0.24556976556777954,
-0.5857758522033691,
0.46488142013549805,
-0.08204923570156097,
-0.07248248159885406,
0.09972049295902252,
-0.07006826996803284,
-0.3810083568096161,
0.5269695520401001,
-0.1301177740097046,
0.6978644132614136,
-0.09405213594436646,
-0.019708756357431412,
0.15780898928642273,
-0.2015550285577774,
0.39616602659225464,
-0.3102934956550598,
-0.014510247856378555,
-0.45371997356414795,
-0.16001157462596893,
-0.1839676797389984,
0.006758362054824829,
0.07007137686014175,
0.5914731025695801,
-0.1710209846496582,
0.39707449078559875,
-0.11072482913732529,
0.4428044557571411,
0.004137839190661907,
0.13330161571502686,
0.2929835319519043,
-0.19068782031536102,
-0.13684862852096558,
0.07731740921735764,
-0.057903073728084564,
-0.06765609979629517,
0.15296435356140137,
-0.010308882221579552,
-0.22955480217933655,
-0.029812712222337723,
-0.2959821820259094,
0.33274608850479126,
-0.08510176092386246,
0.09755552560091019,
0.09620408713817596,
-0.5183792114257812,
0.5273531675338745,
0.44069990515708923,
0.14412033557891846,
-0.03398849442601204,
-0.12900666892528534,
0.13481807708740234,
0.00896802544593811,
0.07391174882650375,
-0.09051883965730667,
-0.014664646238088608,
0.07358047366142273,
0.28074848651885986,
-0.1852078139781952,
0.24515178799629211,
-0.09775576740503311,
-0.0829651951789856,
0.31111595034599304,
0.3133257329463959,
0.2825341820716858,
-0.5860956311225891,
-0.2721996307373047,
-0.20854458212852478,
0.15409111976623535,
-0.1515069454908371,
0.046968985348939896,
-0.11854821443557739,
0.0065017156302928925,
0.05101330950856209,
0.007897723466157913,
-0.3608901798725128,
0.12198442220687866,
0.19704855978488922,
-0.06576830893754959,
0.11263622343540192,
0.47794848680496216,
0.42110133171081543,
-0.08398518711328506,
-0.18901050090789795,
0.10112542659044266,
0.1984158605337143,
-0.6184691786766052,
0.1737719029188156,
0.056719474494457245,
0.24878253042697906,
0.09684553742408752,
0.13443292677402496,
0.11384470015764236,
-0.1693221628665924,
0.060224514454603195,
-0.5078527927398682,
-0.02510847896337509,
-0.04201771318912506,
-0.13695985078811646,
0.05974307656288147,
0.06742718070745468,
-0.2848607003688812,
-0.16184453666210175,
-0.07028212398290634,
-0.17839372158050537,
0.14016878604888916,
0.07606659829616547,
0.07137002050876617,
0.11395957320928574,
0.22295695543289185,
-0.11001435667276382,
-0.2800540030002594,
0.025135399773716927,
0.027651630342006683,
0.12828414142131805,
-0.12220810353755951,
-0.24929335713386536,
0.17296460270881653,
-0.020315825939178467,
0.18938355147838593,
-0.30061087012290955,
-0.12530946731567383,
-0.25621920824050903,
-0.18489933013916016,
0.20221924781799316,
0.27805930376052856,
0.027639880776405334,
0.4822479486465454,
0.11227475851774216,
-0.04525730758905411,
-0.5738323926925659,
0.2749345600605011,
-0.2892038822174072,
0.2634691298007965,
0.13057701289653778,
0.23885896801948547,
0.10354389250278473,
0.09801347553730011,
-0.16663412749767303,
-0.049936793744564056,
-0.11104276776313782,
-0.1527334749698639,
0.2965565323829651,
-0.3347998261451721,
0.16241250932216644,
0.1323401927947998,
0.400054395198822,
0.4437744617462158,
-0.10053947567939758,
-0.1168723851442337,
0.15313225984573364,
0.12465760856866837,
-0.272716224193573,
0.20149391889572144,
0.11380870640277863,
0.2503405809402466,
-0.06401369720697403,
0.31763336062431335,
-0.035944558680057526,
-0.09392136335372925,
-0.01712128520011902,
0.15454107522964478,
0.6070334315299988,
0.08047518134117126,
0.23608708381652832,
0.44675296545028687,
0.01146385446190834,
0.15987025201320648,
0.2003498375415802,
-0.14769183099269867,
0.08382059633731842,
0.5120169520378113,
-0.16486290097236633,
0.01283223181962967,
0.34074467420578003,
0.19740204513072968,
-0.0812954381108284,
-0.5081671476364136,
0.12115909159183502,
0.2955354154109955,
-0.36241650581359863,
-0.0714387521147728,
0.07451754808425903,
0.7061763405799866,
-0.08430471271276474,
0.04141280800104141,
-0.33719295263290405,
-0.06683443486690521,
0.07255779206752777,
-0.050917237997055054,
-0.187967449426651,
-0.1644282341003418,
-0.5028636455535889,
0.31128913164138794,
-0.15618766844272614,
-0.06903405487537384,
0.4760003089904785,
0.216722771525383,
-0.00869450718164444,
-0.43377113342285156,
0.03205080330371857,
0.16973772644996643,
0.11648087948560715,
-0.3514193594455719,
0.04586917906999588,
-0.06984342634677887,
0.04141578823328018,
0.36753174662590027,
-0.24984712898731232,
0.34257715940475464,
0.35275793075561523,
0.009211007505655289,
-0.3907546103000641,
-0.07556852698326111,
-0.050306059420108795,
-0.021436821669340134,
0.42975011467933655,
0.0017633438110351562,
0.31967565417289734,
0.2829746901988983,
0.09232434630393982,
-0.00927845761179924,
0.26419034600257874,
0.10177848488092422,
0.15557318925857544,
-0.4826746881008148,
0.08864086121320724,
0.07567758858203888,
-0.0795697420835495,
-0.15192097425460815,
-0.2095642387866974,
-0.16786015033721924,
-0.20770590007305145,
0.39915668964385986,
0.09871760755777359,
0.23741024732589722,
0.15707936882972717,
-0.012541957199573517,
-0.10161074995994568,
0.24186505377292633,
0.3471136689186096,
0.03018607757985592,
-0.47222447395324707,
-0.023412838578224182,
-0.6675114631652832,
-0.1041143611073494,
-0.17139679193496704,
-0.11487773060798645,
-0.019501186907291412,
0.2386511117219925,
0.20161393284797668,
0.2796037793159485,
-0.09302102029323578,
0.12851960957050323,
-0.017593014985322952,
0.35820069909095764,
-0.1670176237821579,
-0.17820888757705688,
-0.19632835686206818,
0.07738759368658066,
-0.05502881854772568,
-0.43303290009498596,
0.00008231773972511292,
0.2998562157154083,
-0.19082209467887878,
-0.06658165156841278,
-0.18081079423427582,
0.16339319944381714,
-0.21267247200012207,
0.2939324975013733,
0.021584542468190193,
0.41897305846214294,
0.03795936703681946,
0.30840638279914856,
-0.37478554248809814,
-0.27938613295555115,
-0.20772281289100647,
0.23507335782051086,
-0.0631018728017807,
0.43867743015289307,
-0.3243894577026367,
0.06587252020835876,
-0.20790836215019226,
0.03943806141614914,
0.0888456404209137,
0.16808517277240753,
-0.34438446164131165,
0.1940712183713913,
-0.07931321114301682,
0.2522795498371124,
0.0013851122930645943,
0.07679392397403717,
-0.20812386274337769,
0.15915444493293762,
-0.04637498781085014,
-0.30862918496131897,
0.265518456697464,
-0.32273754477500916,
-0.2894766926765442,
0.01984524354338646,
0.1921173632144928,
0.24263295531272888,
0.1170973852276802,
-0.5216587781906128,
-0.06678731739521027,
0.3476250469684601,
-0.1688331663608551,
-0.11390313506126404,
0.11491219699382782,
0.15702445805072784,
0.09789951145648956,
-0.1428448110818863,
0.20177361369132996,
0.33497700095176697,
-0.33642539381980896,
-0.06700986623764038,
-0.38401132822036743
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Good point
Design question for us, though: should `load_dataset` when no split is specified and only one split is present in the dataset (common use case with CSV/text/JSON datasets) return a `Dataset` instead of a `DatsetDict`? I feel like it's often what the user is expecting. I break a bit the paradigm of a unique return type but since this library is designed for widespread DS people more than CS people usage I would tend to think that UX should take precedence over CS reasons. What do you think? | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 89 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Good point
Design question for us, though: should `load_dataset` when no split is specified and only one split is present in the dataset (common use case with CSV/text/JSON datasets) return a `Dataset` instead of a `DatsetDict`? I feel like it's often what the user is expecting. I break a bit the paradigm of a unique return type but since this library is designed for widespread DS people more than CS people usage I would tend to think that UX should take precedence over CS reasons. What do you think? | [
-0.05377553403377533,
0.1033460944890976,
0.019004840403795242,
0.36122775077819824,
0.18078327178955078,
-0.00425131618976593,
0.5432189702987671,
0.22249911725521088,
0.33720913529396057,
-0.0036188438534736633,
-0.023761773481965065,
0.30691850185394287,
-0.031763963401317596,
0.11891808360815048,
-0.20251387357711792,
-0.07497160136699677,
-0.012214988470077515,
0.12070534378290176,
-0.3683386743068695,
-0.017430998384952545,
-0.43091699481010437,
0.29284995794296265,
-0.22139644622802734,
-0.058570146560668945,
-0.11517735570669174,
0.1571621596813202,
0.0017047207802534103,
0.36609315872192383,
-0.10848363488912582,
-0.2572759687900543,
0.6280567646026611,
0.023004157468676567,
0.4292280673980713,
0.2245846837759018,
-0.0001190716793644242,
0.03881179541349411,
0.31178539991378784,
-0.1329062581062317,
-0.28974130749702454,
-0.5877242088317871,
-0.027259347960352898,
-0.39561790227890015,
0.33775633573532104,
-0.10407460480928421,
-0.061671383678913116,
0.1727760136127472,
-0.16527795791625977,
-0.516501247882843,
0.3123299479484558,
0.37307000160217285,
0.14050845801830292,
-0.2834521234035492,
-0.23099754750728607,
0.003414758015424013,
0.5908175706863403,
0.20675238966941833,
-0.19713610410690308,
0.2810763716697693,
0.1669815331697464,
-0.10156898200511932,
-0.15980264544487,
0.08315511047840118,
-0.10432343930006027,
0.18943843245506287,
0.2901811897754669,
0.26230862736701965,
-0.28099164366722107,
-0.11748963594436646,
-0.01699964329600334,
0.18993711471557617,
0.8341625332832336,
-0.07357563823461533,
-0.21519622206687927,
-0.20799946784973145,
-0.009148184210062027,
-0.19425518810749054,
0.29593679308891296,
0.22416888177394867,
-0.025601377710700035,
0.2741405963897705,
-0.039894938468933105,
0.00027203955687582493,
-0.22958210110664368,
0.06437679380178452,
-0.11931067705154419,
0.010274164378643036,
-0.156963050365448,
0.37793272733688354,
0.04562550038099289,
0.15493151545524597,
0.3429836630821228,
-0.11165198683738708,
-0.11625996232032776,
0.08353038132190704,
-0.5670548677444458,
0.15756405889987946,
0.0551396906375885,
-0.15923911333084106,
0.017448022961616516,
0.3070758581161499,
0.36329495906829834,
0.06689570844173431,
-0.17210498452186584,
0.25122880935668945,
0.4344944953918457,
0.08179906010627747,
0.002074696123600006,
0.2576614022254944,
0.36488139629364014,
-0.27762922644615173,
0.013783343136310577,
-0.16478952765464783,
-0.17193345725536346,
-0.2707703411579132,
-0.05752148479223251,
0.1610938310623169,
0.16826678812503815,
-0.1684325486421585,
-0.22162561118602753,
0.07329140603542328,
-0.2644224166870117,
-0.05475952848792076,
-0.151944100856781,
0.2221851646900177,
0.15224124491214752,
0.5024953484535217,
0.015644297003746033,
0.17616763710975647,
-0.09877221286296844,
-0.30698081851005554,
0.0024104327894747257,
0.0743473619222641,
-0.43791934847831726,
-0.002264285460114479,
0.4775824248790741,
-0.12380918860435486,
0.02138320356607437,
0.19101445376873016,
-0.14671406149864197,
-0.2925010919570923,
-0.06910420954227448,
-0.3121487498283386,
0.1865881085395813,
0.22014464437961578,
0.013704374432563782,
0.21262013912200928,
0.2046937793493271,
-0.23284125328063965,
-0.23644298315048218,
0.35855263471603394,
-0.5362182259559631,
-0.30464568734169006,
-0.03983515501022339,
0.0985863208770752,
-0.27296900749206543,
0.22918801009655,
-0.33239537477493286,
0.1283835470676422,
0.0017088204622268677,
-0.10089148581027985,
-0.0892251506447792,
-0.3063386082649231,
-0.2946173846721649,
-0.33223193883895874,
-0.03859049826860428,
0.509097695350647,
-0.8320780396461487,
0.22648358345031738,
-0.08604419231414795,
0.12198923528194427,
0.09565237909555435,
0.34448668360710144,
-0.3025427460670471,
0.09664236754179001,
-0.3494294583797455,
0.04007124900817871,
0.32771021127700806,
-0.21197055280208588,
-0.3828728199005127,
0.23155289888381958,
-0.10520422458648682,
0.07847706228494644,
0.164194256067276,
0.16494224965572357,
0.44445475935935974,
-0.043529659509658813,
-0.08624649047851562,
0.2531385123729706,
-0.12446996569633484,
0.07950624823570251,
-0.24377255141735077,
-0.24830429255962372,
0.24990159273147583,
0.1700792908668518,
0.10381242632865906,
0.0540584996342659,
0.19445426762104034,
-0.47524285316467285,
0.3589850068092346,
-0.09315089881420135,
0.12578044831752777,
-0.13347554206848145,
0.30100712180137634,
0.026003312319517136,
0.29125505685806274,
-0.007892590016126633,
-0.6777340769767761,
0.17921042442321777,
0.40682312846183777,
-0.11154499650001526,
-0.03827671706676483,
-0.18205787241458893,
-0.34848716855049133,
-0.015558738261461258,
-0.16953040659427643,
0.027833644300699234,
-0.03589146211743355,
0.039156507700681686,
-0.10853493213653564,
-0.15493878722190857,
-0.2077758014202118,
0.4025169610977173,
-0.21284691989421844,
0.08484970778226852,
-0.38516566157341003,
0.3566334843635559,
0.27397310733795166,
0.009731438010931015,
0.14064691960811615,
0.13051629066467285,
0.22485634684562683,
-0.10977315902709961,
-0.058160990476608276,
0.2158617079257965,
0.35706284642219543,
-0.09468626976013184,
-0.011633940041065216,
-0.1943478137254715,
0.09666147083044052,
-0.12029421329498291,
-0.04759269207715988,
0.2353372573852539,
0.3100091814994812,
-0.16534176468849182,
-0.5367754697799683,
0.4306187629699707,
-0.43528005480766296,
0.24065396189689636,
-0.1465643048286438,
0.056336089968681335,
0.17643535137176514,
-0.011293243616819382,
-0.143752321600914,
-0.027479153126478195,
-0.14770525693893433,
0.033761873841285706,
0.2478104680776596,
0.1867634356021881,
-0.1355116367340088,
-0.053368084132671356,
0.3618721663951874,
0.13172566890716553,
-0.18451610207557678,
0.2107609212398529,
0.04885777086019516,
-0.23759591579437256,
0.3247871398925781,
0.3543027639389038,
0.6315698027610779,
0.09515970200300217,
-0.19536730647087097,
-0.10668615251779556,
0.08254523575305939,
-0.2646084427833557,
0.14124685525894165,
-0.009270451962947845,
0.02988041564822197,
0.2075578272342682,
0.18904902040958405,
0.039445433765649796,
-0.1802784502506256,
-0.19065651297569275,
0.0667325034737587,
0.09992491453886032,
-0.5104935169219971,
0.06828293204307556,
-0.12290886789560318,
0.26682424545288086,
-0.28637221455574036,
-0.02863387018442154,
0.07157210260629654,
-0.3165183365345001,
-0.24673394858837128,
0.1903040111064911,
-0.15233735740184784,
0.0006296206265687943,
-0.14284342527389526,
0.349892795085907,
-0.06879393756389618,
-0.259199857711792,
-0.01697707548737526,
-0.12455752491950989,
-0.27156901359558105,
0.017517469823360443,
0.029155150055885315,
0.048581309616565704,
0.06301066279411316,
0.03378932923078537,
0.06467145681381226,
-0.2758508324623108,
-0.11072832345962524,
0.20820142328739166,
0.027093149721622467,
0.05839911848306656,
0.3743038773536682,
-0.185559943318367,
0.06110764294862747,
-0.1489402949810028,
0.10788978636264801,
0.15604138374328613,
0.10857190191745758,
0.271651953458786,
0.18519827723503113,
0.0015303489053621888,
-0.2390160709619522,
-0.7112782597541809,
-0.1844310164451599,
-0.24108606576919556,
0.15082532167434692,
-0.12097513675689697,
0.0023744478821754456,
-0.016792070120573044,
0.16087886691093445,
-0.15650349855422974,
0.2552337944507599,
-0.061946138739585876,
-0.18921469151973724,
-0.23315973579883575,
0.4649214446544647,
-0.15697158873081207,
-0.26443302631378174,
0.12178356945514679,
-0.1825105845928192,
0.15140824019908905,
0.401886522769928,
-0.4829936623573303,
0.18284781277179718,
0.047107286751270294,
0.1323947310447693,
-0.05087564140558243,
0.14494134485721588,
0.08668244630098343,
0.010352111421525478,
0.11328160762786865,
-0.013333749026060104,
-0.19510698318481445,
0.2277117371559143,
-0.08928406238555908,
0.024239540100097656,
0.25361454486846924,
0.39698129892349243,
-0.1388944387435913,
0.7059304714202881,
0.003607446327805519,
0.015542514622211456,
0.20211303234100342,
0.048598602414131165,
0.42447391152381897,
0.012723922729492188,
-0.1967828869819641,
0.09631899744272232,
-0.18310260772705078,
-0.3161439895629883,
0.3190331757068634,
0.08384990692138672,
-0.16259238123893738,
-0.15324515104293823,
0.20835955440998077,
-0.18352079391479492,
-0.31611722707748413,
0.2805405855178833,
-0.10119028389453888,
-0.11717987805604935,
-0.00027150101959705353,
0.24910733103752136,
0.10461342334747314,
-0.14902454614639282,
-0.0405970960855484,
0.21443495154380798,
0.2860654294490814,
-0.10619402676820755,
0.0506761409342289,
-0.214329794049263,
-0.31206655502319336,
0.1515553593635559,
-0.05135144665837288,
0.3003499507904053,
0.2327190786600113,
-0.1304377019405365,
-0.004103951156139374,
0.16508963704109192,
0.6726487874984741,
-0.20292308926582336,
-0.036173418164253235,
0.1090751588344574,
-0.03604140132665634,
0.05321572721004486,
-0.17023004591464996,
-0.014645617455244064,
0.2302333116531372,
-0.057661015540361404,
0.21793551743030548,
-0.12288011610507965,
0.007664979435503483,
0.30967509746551514,
0.0963699221611023,
-0.22211217880249023,
-0.4531788229942322,
-0.1049959734082222,
-0.05496121942996979,
-0.05794927477836609,
-0.17393818497657776,
0.0660611167550087,
0.02787151373922825,
-0.3355500102043152,
-0.12277989089488983,
-0.21961842477321625,
-0.26455411314964294,
0.3511793911457062,
0.13597926497459412,
0.18447032570838928,
-0.02949262037873268,
0.15642502903938293,
0.14629904925823212,
0.18831630051136017,
0.23189178109169006,
0.7988595962524414,
-0.29990875720977783,
-0.7502197027206421,
0.2594365179538727,
-0.47036105394363403,
0.3502211272716522,
0.16685225069522858,
-0.3451269567012787,
-0.06720145791769028,
-0.3084927201271057,
-0.14681971073150635,
-0.19646869599819183,
-0.15155544877052307,
0.017983071506023407,
-0.06957148760557175,
-0.3025732934474945,
-0.6600197553634644,
0.5407514572143555,
-0.22473856806755066,
-0.16526302695274353,
0.17195414006710052,
0.08438434451818466,
-0.4312983751296997,
0.4897022843360901,
0.040917325764894485,
0.800549328327179,
-0.1704283356666565,
0.07200241088867188,
0.10854552686214447,
-0.20476828515529633,
0.6008742451667786,
-0.27642470598220825,
-0.12956306338310242,
-0.5226104855537415,
-0.0656086653470993,
-0.20523157715797424,
-0.05176297575235367,
0.09519541263580322,
0.5655966997146606,
-0.17547550797462463,
0.40817853808403015,
0.13449016213417053,
0.4029870331287384,
0.12130777537822723,
0.26730260252952576,
0.23545588552951813,
-0.2553955018520355,
-0.21334294974803925,
0.029682405292987823,
-0.11836335062980652,
-0.08449670672416687,
0.04014277085661888,
0.05122855678200722,
-0.17841240763664246,
-0.13731855154037476,
-0.26955312490463257,
0.12620729207992554,
-0.05772767961025238,
0.015085970982909203,
0.04993245750665665,
-0.6408013105392456,
0.5324745178222656,
0.3608642518520355,
0.09215282648801804,
-0.020201895385980606,
-0.15268434584140778,
0.034064438194036484,
0.09205380082130432,
0.21615523099899292,
0.019028812646865845,
-0.09499089419841766,
0.08259546011686325,
0.2941957414150238,
-0.16079533100128174,
0.21539896726608276,
-0.1410721391439438,
-0.005088374018669128,
0.19637945294380188,
0.3348124027252197,
0.33939188718795776,
-0.5301562547683716,
-0.28205522894859314,
-0.12274190783500671,
0.2097257822751999,
-0.09282110631465912,
0.012344135902822018,
0.12005029618740082,
0.21538329124450684,
0.01240934431552887,
-0.028713326901197433,
-0.335475355386734,
0.00025892071425914764,
0.03582059592008591,
-0.005780965089797974,
0.028914794325828552,
0.15699389576911926,
0.2840820848941803,
-0.16879531741142273,
-0.10519576817750931,
0.13724523782730103,
0.15197879076004028,
-0.693436324596405,
0.18554289638996124,
0.1447974145412445,
0.0985499918460846,
0.07431385666131973,
0.22562479972839355,
0.140883207321167,
-0.17479431629180908,
0.0635981559753418,
-0.39463284611701965,
0.074754998087883,
0.0736222192645073,
-0.060017962008714676,
0.09225612878799438,
0.07901835441589355,
-0.42092058062553406,
-0.13075070083141327,
-0.12689398229122162,
-0.19065731763839722,
-0.008196122944355011,
0.1432705670595169,
0.08914671838283539,
0.017628684639930725,
0.30977752804756165,
-0.27940982580184937,
-0.22500191628932953,
0.0017570089548826218,
0.008761417120695114,
0.004790583625435829,
-0.089495450258255,
-0.19149161875247955,
0.21073752641677856,
0.0226566344499588,
0.22843217849731445,
-0.19689702987670898,
-0.21005795896053314,
-0.10157707333564758,
-0.23198825120925903,
0.2390560507774353,
0.34047913551330566,
-0.07758753001689911,
0.3745771646499634,
0.06583455204963684,
-0.010958150029182434,
-0.6506855487823486,
0.44180288910865784,
-0.30841583013534546,
0.3093321621417999,
0.0754537284374237,
0.3467370271682739,
-0.00015148776583373547,
0.10989739000797272,
-0.08240421116352081,
0.056592147797346115,
-0.03777515888214111,
0.047477513551712036,
0.31236615777015686,
-0.25706857442855835,
0.2241758406162262,
0.17158986628055573,
0.3068366050720215,
0.36812731623649597,
-0.10318523645401001,
-0.17753666639328003,
0.08904735743999481,
0.1088251993060112,
-0.22637465596199036,
0.20148736238479614,
-0.08879859745502472,
0.21830399334430695,
0.007370367646217346,
0.4874253571033478,
-0.04589567333459854,
-0.1511247158050537,
0.07549180835485458,
0.04718334972858429,
0.777494490146637,
0.05821218714118004,
0.1438119113445282,
0.3218054473400116,
-0.11715998500585556,
0.2135416865348816,
0.20739425718784332,
-0.06321188807487488,
0.039813004434108734,
0.5263141393661499,
-0.12594076991081238,
0.010729357600212097,
0.37731456756591797,
0.26633378863334656,
-0.082881860435009,
-0.45534035563468933,
0.2748793661594391,
0.3771364092826843,
-0.2825218737125397,
-0.08461133390665054,
0.25956183671951294,
0.5131550431251526,
-0.159177765250206,
0.13025958836078644,
-0.1870138943195343,
-0.2644056975841522,
0.01633509248495102,
-0.05977986007928848,
-0.19307900965213776,
-0.23507797718048096,
-0.35095053911209106,
0.2641788721084595,
-0.3510676324367523,
-0.05163034796714783,
0.36344659328460693,
0.18752190470695496,
0.08282360434532166,
-0.47888025641441345,
0.12637466192245483,
-0.050087541341781616,
0.09214721620082855,
-0.288185179233551,
0.10989353060722351,
-0.013469628989696503,
0.07826817035675049,
0.3593218922615051,
-0.2522946000099182,
0.28343716263771057,
0.4704683721065521,
0.1390378177165985,
-0.39180153608322144,
-0.10363908112049103,
-0.02715439349412918,
-0.2167517989873886,
0.4326716959476471,
-0.028532028198242188,
0.22855447232723236,
0.20734193921089172,
0.12191365659236908,
0.0160052552819252,
0.33660268783569336,
0.1267329603433609,
0.02411876805126667,
-0.5890340805053711,
0.037214625626802444,
0.00353938527405262,
-0.12340108305215836,
-0.02598727121949196,
-0.05572200566530228,
0.008738420903682709,
-0.2356424182653427,
0.375324547290802,
0.17570100724697113,
0.17252647876739502,
0.06327571719884872,
0.015185020864009857,
-0.016914784908294678,
0.09556020051240921,
0.27170589566230774,
0.18327254056930542,
-0.44923892617225647,
0.07074424624443054,
-0.7308105230331421,
0.022807642817497253,
-0.0885443240404129,
-0.05671858787536621,
-0.023438889533281326,
0.26509889960289,
0.3051562011241913,
0.2791956663131714,
-0.1910189539194107,
0.2561028301715851,
0.0036745211109519005,
0.28639522194862366,
-0.0526520274579525,
-0.31290140748023987,
-0.24511979520320892,
-0.045775093138217926,
-0.14849475026130676,
-0.5657703876495361,
0.025071773678064346,
0.41329681873321533,
-0.18823805451393127,
-0.20940707623958588,
-0.015629500150680542,
0.31243252754211426,
-0.1002551019191742,
0.35129860043525696,
0.07308048754930496,
0.32382896542549133,
-0.0007768459618091583,
0.13845513761043549,
-0.3173956274986267,
-0.23189684748649597,
-0.21146726608276367,
0.26850569248199463,
-0.08959890902042389,
0.40959498286247253,
-0.28969675302505493,
0.12137576937675476,
-0.23432087898254395,
0.0011418524663895369,
0.08554516732692719,
0.24491113424301147,
-0.5026378631591797,
0.24091410636901855,
-0.2224506139755249,
0.12605543434619904,
-0.15786325931549072,
0.057848043739795685,
-0.12349432706832886,
0.07548807561397552,
-0.03712771460413933,
-0.19401538372039795,
0.2651408016681671,
-0.19937191903591156,
-0.2050960808992386,
0.02854185178875923,
0.24369476735591888,
0.16918286681175232,
0.0668131411075592,
-0.6058083772659302,
-0.16502365469932556,
0.3767966032028198,
-0.16610276699066162,
-0.14238284528255463,
-0.007551981136202812,
0.025616679340600967,
-0.04759182780981064,
-0.22503770887851715,
0.22519028186798096,
0.2840963304042816,
-0.24302567541599274,
0.04865749552845955,
-0.44965195655822754
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications.
I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas.
For the other datasets ton the other hand the user doesn't know in advance the splits so I would keep the dictionary by default. What do you think ? | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 73 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications.
I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas.
For the other datasets ton the other hand the user doesn't know in advance the splits so I would keep the dictionary by default. What do you think ? | [
-0.04469136893749237,
0.024346962571144104,
-0.004884656518697739,
0.4194362759590149,
0.14631280303001404,
0.14585036039352417,
0.4632933437824249,
0.2901494801044464,
0.3439598083496094,
0.05064517259597778,
-0.135013148188591,
0.22953149676322937,
-0.11264533549547195,
0.07431847602128983,
-0.36044326424598694,
-0.0890149474143982,
-0.00519503653049469,
0.13512304425239563,
-0.36745691299438477,
-0.03212972730398178,
-0.3761758506298065,
0.320669949054718,
-0.28526341915130615,
-0.08217163383960724,
-0.16973140835762024,
0.18155629932880402,
-0.06944464147090912,
0.2880134880542755,
-0.11865197867155075,
-0.33700165152549744,
0.5611515641212463,
-0.01906469091773033,
0.4348042607307434,
0.17471975088119507,
-0.00011954327783314511,
0.06517539918422699,
0.22654198110103607,
-0.1385783553123474,
-0.25912439823150635,
-0.5547069311141968,
-0.08654922246932983,
-0.49564430117607117,
0.357634574174881,
-0.11130461096763611,
-0.14946329593658447,
0.030412476509809494,
-0.09243866801261902,
-0.4187638461589813,
0.36679166555404663,
0.44562676548957825,
0.1584687978029251,
-0.25297290086746216,
-0.18817491829395294,
0.0030294377356767654,
0.5168046951293945,
0.12371260672807693,
-0.12400053441524506,
0.2595597505569458,
0.07364833354949951,
-0.15480534732341766,
-0.12590903043746948,
0.07289072871208191,
-0.054855331778526306,
0.29174548387527466,
0.18381831049919128,
0.2202950119972229,
-0.20794448256492615,
-0.2291029691696167,
-0.004088468849658966,
0.2079266607761383,
0.7277755737304688,
-0.03474435955286026,
-0.2305929809808731,
-0.17443427443504333,
-0.023107126355171204,
-0.1313575804233551,
0.2728370726108551,
0.3152931034564972,
-0.0410873219370842,
0.30060604214668274,
-0.08267839252948761,
-0.00834537111222744,
-0.28719958662986755,
0.12527142465114594,
-0.02352439984679222,
0.07938921451568604,
-0.16536344587802887,
0.35537946224212646,
0.06189669668674469,
0.04584858939051628,
0.2907169759273529,
-0.11855633556842804,
-0.08493886888027191,
0.14339226484298706,
-0.6625826358795166,
0.1903320550918579,
-0.0949978157877922,
-0.0448506698012352,
-0.022189512848854065,
0.13422594964504242,
0.22667282819747925,
0.017777923494577408,
-0.12089462578296661,
0.24459713697433472,
0.40316566824913025,
-0.008647690527141094,
0.04694303870201111,
0.29234591126441956,
0.27681395411491394,
-0.19333282113075256,
0.04471108689904213,
-0.10590783506631851,
-0.22714944183826447,
-0.4162050187587738,
-0.12003859877586365,
0.15449070930480957,
0.2859625816345215,
-0.2022923231124878,
-0.25499242544174194,
0.07593380659818649,
-0.28417304158210754,
0.012848751619458199,
-0.17959628999233246,
0.24375668168067932,
0.0655154287815094,
0.3408357799053192,
0.04926460236310959,
0.28596818447113037,
-0.11495139449834824,
-0.4505903422832489,
-0.0125415725633502,
0.14165206253528595,
-0.35540053248405457,
-0.012497607618570328,
0.48094066977500916,
-0.1329941600561142,
0.10604920238256454,
0.23142939805984497,
-0.11025597155094147,
-0.3242431879043579,
-0.03251788765192032,
-0.313776433467865,
0.086546890437603,
0.24560903012752533,
0.14206314086914062,
0.23504041135311127,
0.32224953174591064,
-0.29177117347717285,
-0.16872364282608032,
0.3128439486026764,
-0.4632062315940857,
-0.24035166203975677,
-0.03989247977733612,
0.09295860677957535,
-0.3021015524864197,
0.19725199043750763,
-0.32141926884651184,
0.18389464914798737,
-0.0014772489666938782,
-0.10854563117027283,
-0.2330002784729004,
-0.33345651626586914,
-0.3624802231788635,
-0.28175467252731323,
-0.05658808350563049,
0.5261701345443726,
-0.8061847686767578,
0.22326070070266724,
-0.01829991675913334,
0.025672808289527893,
0.02777140587568283,
0.24351488053798676,
-0.2859252095222473,
0.07883360236883163,
-0.3219585418701172,
0.05213291943073273,
0.17718909680843353,
-0.22370034456253052,
-0.3795718848705292,
0.2096041440963745,
-0.013221640139818192,
0.08994869142770767,
0.2062481939792633,
0.07607953995466232,
0.48373016715049744,
-0.008639623410999775,
-0.1743774712085724,
0.16786260902881622,
-0.06598726660013199,
0.044666290283203125,
-0.20993110537528992,
-0.24367262423038483,
0.26140740513801575,
0.17771972715854645,
0.11830446124076843,
0.118399478495121,
0.19235935807228088,
-0.5197709202766418,
0.35249239206314087,
-0.0497061125934124,
0.23287057876586914,
0.05975780636072159,
0.20395830273628235,
0.04109407961368561,
0.28084859251976013,
0.014937635511159897,
-0.6455546617507935,
0.23988428711891174,
0.442305326461792,
-0.12055821716785431,
-0.08166509866714478,
-0.16945478320121765,
-0.39944639801979065,
-0.05980158597230911,
-0.21568892896175385,
-0.04913376644253731,
-0.002058468759059906,
0.048398807644844055,
-0.032679323107004166,
-0.18847475945949554,
-0.10399869084358215,
0.4660898447036743,
-0.219975084066391,
0.09290749579668045,
-0.35435256361961365,
0.3410103917121887,
0.18083609640598297,
0.023298043757677078,
0.23125189542770386,
-0.05639398843050003,
0.262902170419693,
-0.118422731757164,
-0.07717669010162354,
0.19645297527313232,
0.39991459250450134,
-0.08581794798374176,
0.042949896305799484,
-0.1645279973745346,
0.0793241560459137,
-0.2305038720369339,
-0.00833260826766491,
0.20459778606891632,
0.37151405215263367,
-0.1554056704044342,
-0.5231380462646484,
0.4438101649284363,
-0.31335747241973877,
0.23767554759979248,
-0.1666315793991089,
0.1455671489238739,
0.27037808299064636,
-0.026600362733006477,
-0.11320910602807999,
-0.02898920699954033,
-0.10739435255527496,
-0.007946960628032684,
0.2660501301288605,
0.149736687541008,
-0.21086660027503967,
-0.14199715852737427,
0.27496662735939026,
0.2318960726261139,
-0.2266092598438263,
0.17189455032348633,
-0.06511040776968002,
-0.11089767515659332,
0.2969529926776886,
0.3253515660762787,
0.49230462312698364,
0.12089277803897858,
-0.2582107484340668,
-0.07129331678152084,
0.11832761764526367,
-0.20210260152816772,
0.08702994138002396,
-0.02957981824874878,
0.1463167369365692,
0.21049165725708008,
0.124629907310009,
0.042247407138347626,
-0.0960942953824997,
-0.17430873215198517,
0.1943688541650772,
0.1912710964679718,
-0.5371578335762024,
-0.03543439507484436,
-0.2490173578262329,
0.2459051012992859,
-0.26508110761642456,
-0.05414453521370888,
0.07940224558115005,
-0.2963486313819885,
-0.28625404834747314,
0.24338741600513458,
-0.12533113360404968,
0.0655798465013504,
-0.10745032131671906,
0.23190811276435852,
-0.006118660792708397,
-0.1723758429288864,
0.12069699168205261,
-0.14661574363708496,
-0.25099825859069824,
0.013388730585575104,
0.03521108627319336,
-0.036419469863176346,
-0.0454990491271019,
0.05500371754169464,
-0.06010640785098076,
-0.29146841168403625,
0.0006241798400878906,
0.18939758837223053,
-0.01123959943652153,
0.06954550743103027,
0.23905029892921448,
-0.06599010527133942,
0.04322228580713272,
-0.13684959709644318,
0.14527197182178497,
0.21913307905197144,
0.05988550931215286,
0.2933094799518585,
0.241359680891037,
-0.0689224824309349,
-0.12282928824424744,
-0.6996185183525085,
-0.26791250705718994,
-0.18160146474838257,
0.07281440496444702,
-0.10406531393527985,
-0.015129365026950836,
-0.007891484536230564,
0.28565046191215515,
-0.11306200921535492,
0.2407526969909668,
-0.11503252387046814,
-0.12437831610441208,
-0.19904102385044098,
0.5246900320053101,
-0.19940540194511414,
-0.32369306683540344,
0.21250614523887634,
-0.11981663852930069,
0.08176988363265991,
0.35671430826187134,
-0.4152070879936218,
0.20895837247371674,
-0.032912544906139374,
0.08670701086521149,
-0.06531037390232086,
-0.014603154733777046,
0.10499678552150726,
-0.025805318728089333,
0.12221615016460419,
-0.0642421692609787,
-0.19471152126789093,
0.26938650012016296,
-0.09432769566774368,
0.02819870412349701,
0.19037365913391113,
0.4873289465904236,
-0.14350773394107819,
0.795107364654541,
0.09284420311450958,
0.047214388847351074,
0.2011025995016098,
-0.035509586334228516,
0.33305472135543823,
0.175145223736763,
-0.226403146982193,
-0.006144204176962376,
-0.12447232007980347,
-0.31895190477371216,
0.3500699996948242,
-0.02689630538225174,
-0.11735586076974869,
-0.14242464303970337,
0.1945769041776657,
-0.23543930053710938,
-0.2284531444311142,
0.1594710499048233,
-0.12514710426330566,
-0.024574026465415955,
0.04979119822382927,
0.19377776980400085,
0.10172344744205475,
-0.14574912190437317,
-0.13446316123008728,
0.18961463868618011,
0.19193042814731598,
-0.044725965708494186,
0.10494013130664825,
-0.150396466255188,
-0.27510756254196167,
0.21312826871871948,
-0.06947840750217438,
0.37453269958496094,
0.16893325746059418,
-0.04449457675218582,
0.011811040341854095,
0.19575704634189606,
0.7295376062393188,
-0.22877393662929535,
0.0030459612607955933,
0.12439180910587311,
-0.08554759621620178,
-0.13379010558128357,
-0.31587958335876465,
-0.08605358004570007,
0.2985483407974243,
0.001284375786781311,
0.2565810978412628,
-0.0799904316663742,
-0.0319196954369545,
0.3263700604438782,
0.1161976233124733,
-0.23386214673519135,
-0.3317709267139435,
-0.12659132480621338,
0.004445500671863556,
-0.1254686415195465,
-0.19317489862442017,
0.1252732127904892,
0.05211349204182625,
-0.30806636810302734,
-0.014128448441624641,
-0.21454478800296783,
-0.22917082905769348,
0.3313294053077698,
0.1550189107656479,
0.23980030417442322,
0.04145914688706398,
0.24012500047683716,
0.15987083315849304,
0.1619763821363449,
0.2585996687412262,
0.8187350034713745,
-0.22551217675209045,
-0.9100390076637268,
0.2532355487346649,
-0.481231689453125,
0.3621433973312378,
0.051825523376464844,
-0.3327265679836273,
-0.06823860853910446,
-0.2888253629207611,
-0.12233684957027435,
-0.0978192463517189,
-0.09210194647312164,
0.10609329491853714,
-0.06524808704853058,
-0.2792620360851288,
-0.5379048585891724,
0.5231565237045288,
-0.18393616378307343,
-0.16884391009807587,
0.1658744513988495,
0.06351350992918015,
-0.4008098244667053,
0.4619472026824951,
-0.0779624655842781,
0.6648091673851013,
-0.14356108009815216,
-0.02632703259587288,
0.1368160843849182,
-0.19350257515907288,
0.5352104902267456,
-0.2681342363357544,
-0.05822758376598358,
-0.4784960448741913,
-0.15565340220928192,
-0.18823379278182983,
0.02333230897784233,
0.1336214691400528,
0.6201774477958679,
-0.21378782391548157,
0.41375377774238586,
-0.030556943267583847,
0.36970236897468567,
0.027727898210287094,
0.2698030173778534,
0.28191056847572327,
-0.19701646268367767,
-0.11462263762950897,
0.07929777354001999,
-0.12195441126823425,
-0.013685911893844604,
0.04050854593515396,
0.025666166096925735,
-0.27844977378845215,
-0.1080828607082367,
-0.32730042934417725,
0.2571624219417572,
-0.030928511172533035,
0.08447244018316269,
0.04567757248878479,
-0.472981333732605,
0.5333230495452881,
0.4806915819644928,
0.09643455594778061,
-0.05797317251563072,
-0.21227049827575684,
0.04197951406240463,
-0.007508911192417145,
0.07098103314638138,
-0.11567416042089462,
-0.034313589334487915,
0.039200879633426666,
0.2451464831829071,
-0.19310623407363892,
0.2969653308391571,
-0.1279442459344864,
0.029141448438167572,
0.2356511354446411,
0.3048042058944702,
0.2445828914642334,
-0.5582447052001953,
-0.34759172797203064,
-0.17828434705734253,
0.18385104835033417,
-0.09231653809547424,
0.02864431031048298,
-0.011205881834030151,
0.10789993405342102,
0.018412768840789795,
0.06350091099739075,
-0.3889579772949219,
0.07073599100112915,
0.16212067008018494,
-0.04644431918859482,
0.10696840286254883,
0.4289334714412689,
0.36480987071990967,
-0.12556186318397522,
-0.1633300483226776,
0.10970696061849594,
0.08893770724534988,
-0.5510395169258118,
0.14831383526325226,
0.07680574059486389,
0.2905542850494385,
0.08776961266994476,
0.1595231145620346,
0.15592250227928162,
-0.23925840854644775,
0.12046997249126434,
-0.5238209962844849,
0.08976944535970688,
-0.03403880447149277,
-0.11519666016101837,
0.07115181535482407,
-0.040878526866436005,
-0.39047640562057495,
-0.08133283257484436,
-0.019544148817658424,
-0.18339984118938446,
0.056025587022304535,
0.0836380198597908,
0.08044937998056412,
0.1844596266746521,
0.4139983654022217,
-0.2509412467479706,
-0.2532230317592621,
-0.0012745782732963562,
-0.010272189974784851,
0.08143769949674606,
-0.09610602259635925,
-0.2050715982913971,
0.1875600665807724,
0.03447115421295166,
0.21735531091690063,
-0.24604429304599762,
-0.2080378234386444,
-0.19474226236343384,
-0.15069696307182312,
0.1540333479642868,
0.39421001076698303,
-0.0514226034283638,
0.4527195990085602,
0.11146874725818634,
-0.025517001748085022,
-0.5381060838699341,
0.32807761430740356,
-0.26125964522361755,
0.25694480538368225,
0.10331320017576218,
0.2795569896697998,
0.12508095800876617,
0.09447857737541199,
-0.08980096131563187,
-0.012204065918922424,
-0.15151776373386383,
-0.11828645318746567,
0.25668200850486755,
-0.2914987802505493,
0.29176294803619385,
0.1998850703239441,
0.31456902623176575,
0.372384250164032,
-0.11778264492750168,
-0.09883159399032593,
0.1091851070523262,
0.10900197178125381,
-0.3487352430820465,
0.18223683536052704,
0.10901693999767303,
0.24190475046634674,
-0.05848517641425133,
0.41469892859458923,
-0.04436950013041496,
-0.09581957012414932,
0.1168789267539978,
0.13175898790359497,
0.6230408549308777,
0.10438213497400284,
0.19875194132328033,
0.25642839074134827,
-0.029646333307027817,
0.111635722219944,
0.22501777112483978,
-0.08354003727436066,
0.08903880417346954,
0.47291284799575806,
-0.21651014685630798,
0.0019181277602910995,
0.27442675828933716,
0.18169593811035156,
-0.041216813027858734,
-0.6070030927658081,
0.27137327194213867,
0.30796030163764954,
-0.31803855299949646,
-0.11848311871290207,
0.18826960027217865,
0.5466792583465576,
-0.07835540175437927,
0.09870323538780212,
-0.321431040763855,
-0.10591703653335571,
0.06857907772064209,
-0.05572278052568436,
-0.12590466439723969,
-0.24858242273330688,
-0.3915133476257324,
0.30093714594841003,
-0.20118534564971924,
-0.12577983736991882,
0.4019697904586792,
0.16756725311279297,
-0.03328745812177658,
-0.4865245223045349,
0.17729806900024414,
0.1307818591594696,
0.0838174894452095,
-0.3009274899959564,
0.055815212428569794,
-0.04142889380455017,
0.024173878133296967,
0.39115646481513977,
-0.1515442430973053,
0.2833002805709839,
0.4373913109302521,
0.06342178583145142,
-0.35708609223365784,
-0.10432751476764679,
-0.08039551228284836,
-0.11075787991285324,
0.4107109606266022,
-0.07911431789398193,
0.2689143717288971,
0.31731051206588745,
0.09755977243185043,
0.004551584832370281,
0.2404070645570755,
0.1903001219034195,
0.058935485780239105,
-0.5318907499313354,
-0.06526432186365128,
0.04049140587449074,
-0.0581803023815155,
-0.018587645143270493,
-0.12081248313188553,
-0.099651038646698,
-0.2963517904281616,
0.39698976278305054,
0.17386950552463531,
0.25899890065193176,
0.11416607350111008,
0.0020138565450906754,
-0.10820043087005615,
0.17766064405441284,
0.27511313557624817,
0.1055840402841568,
-0.49673181772232056,
-0.011357985436916351,
-0.763550341129303,
-0.0627656951546669,
-0.26677653193473816,
-0.20446807146072388,
-0.026949945837259293,
0.2673868238925934,
0.2948274314403534,
0.2880781292915344,
-0.11170655488967896,
0.2403889298439026,
0.013698152266442776,
0.3622198700904846,
-0.19964644312858582,
-0.2887047827243805,
-0.22703160345554352,
0.03186270222067833,
-0.06901237368583679,
-0.4857378900051117,
0.05646274611353874,
0.3484516739845276,
-0.14891734719276428,
-0.17667199671268463,
-0.04911050200462341,
0.1913101226091385,
-0.258965402841568,
0.37015366554260254,
0.06597799062728882,
0.4796220362186432,
0.02227059006690979,
0.2993641197681427,
-0.3624298870563507,
-0.17135612666606903,
-0.2586037814617157,
0.26030221581459045,
-0.09732881188392639,
0.4215645492076874,
-0.37403562664985657,
0.07633423805236816,
-0.18944822251796722,
0.0059450604021549225,
0.06982294470071793,
0.2765713334083557,
-0.38617292046546936,
0.29620927572250366,
-0.1280640959739685,
0.23704423010349274,
-0.10185782611370087,
-0.03657180815935135,
-0.1631517857313156,
0.16262370347976685,
-0.10108277201652527,
-0.18783794343471527,
0.2851313054561615,
-0.22375327348709106,
-0.23585818707942963,
-0.02280217781662941,
0.2156580090522766,
0.175096333026886,
0.052241384983062744,
-0.5023124814033508,
-0.0722331553697586,
0.43461909890174866,
-0.1690046489238739,
-0.07930643856525421,
0.047020796686410904,
0.10123220086097717,
0.015267934650182724,
-0.1957578957080841,
0.23286135494709015,
0.30376240611076355,
-0.26959922909736633,
-0.10594730079174042,
-0.39232999086380005
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Thanks for your quick response! I'm fine with specifying the split as @lhoestq suggested. My only concern is when I'm loading from python dict or pandas, the library returns a dataset instead of a dictionary of datasets when no split is specified. I know that they use a different function `Dataset.from_dict` or `Dataset.from_pandas` but the text/csv files use `load_dataset()`. However, to the user, they do the same task and we probably expect them to have the same behavior. | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 78 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Thanks for your quick response! I'm fine with specifying the split as @lhoestq suggested. My only concern is when I'm loading from python dict or pandas, the library returns a dataset instead of a dictionary of datasets when no split is specified. I know that they use a different function `Dataset.from_dict` or `Dataset.from_pandas` but the text/csv files use `load_dataset()`. However, to the user, they do the same task and we probably expect them to have the same behavior. | [
-0.07806084305047989,
0.05840359628200531,
0.023300252854824066,
0.41484856605529785,
0.13612830638885498,
0.1216801181435585,
0.5085967779159546,
0.2503664791584015,
0.3603423833847046,
-0.034915730357170105,
-0.13859696686267853,
0.32225480675697327,
-0.07130829244852066,
0.1254664659500122,
-0.3528847098350525,
-0.06221327185630798,
0.03829922527074814,
0.13238796591758728,
-0.33767664432525635,
-0.041437119245529175,
-0.3806918263435364,
0.3519901931285858,
-0.29038092494010925,
-0.10166250169277191,
-0.1629704236984253,
0.0910414308309555,
-0.08467122912406921,
0.38725408911705017,
-0.08020522445440292,
-0.3159048855304718,
0.5106099247932434,
-0.06878529489040375,
0.37224626541137695,
0.26866698265075684,
-0.00012079048610758036,
0.042391784489154816,
0.2599440813064575,
-0.13258320093154907,
-0.2995002269744873,
-0.5992072224617004,
-0.08856803178787231,
-0.37594538927078247,
0.46672940254211426,
-0.11011749505996704,
-0.07928456366062164,
0.06841292977333069,
-0.15599356591701508,
-0.4584493339061737,
0.4170621633529663,
0.46063143014907837,
0.15602409839630127,
-0.22493994235992432,
-0.1643287092447281,
0.00964156910777092,
0.49413371086120605,
0.15963983535766602,
-0.14233697950839996,
0.26970258355140686,
0.08664336800575256,
-0.18216991424560547,
-0.23138642311096191,
0.02028513513505459,
-0.15448357164859772,
0.3192254900932312,
0.22532135248184204,
0.2923903465270996,
-0.30810117721557617,
-0.2810397744178772,
0.026140272617340088,
0.22125619649887085,
0.7244583964347839,
-0.0942639634013176,
-0.20480668544769287,
-0.21729987859725952,
-0.04807792603969574,
-0.09171741455793381,
0.3131275773048401,
0.32177889347076416,
-0.07330077886581421,
0.2957073152065277,
-0.041461192071437836,
0.022966042160987854,
-0.22137348353862762,
0.12056659162044525,
-0.11480996012687683,
-0.0006342008709907532,
-0.17681345343589783,
0.2903596758842468,
0.12180665135383606,
0.09481918811798096,
0.23433047533035278,
-0.16214342415332794,
-0.0009301193058490753,
0.12886421382427216,
-0.583977460861206,
0.2475135326385498,
-0.09866385906934738,
-0.0668167993426323,
-0.11030378937721252,
0.25399285554885864,
0.15015959739685059,
0.009018423035740852,
-0.17368587851524353,
0.2963424324989319,
0.4208086431026459,
-0.007167531177401543,
0.05590958893299103,
0.321042537689209,
0.30606764554977417,
-0.16650652885437012,
-0.005196847021579742,
-0.11151670664548874,
-0.1817285418510437,
-0.34274235367774963,
-0.1860245168209076,
0.10372840613126755,
0.20948748290538788,
-0.20044347643852234,
-0.27846190333366394,
0.01416599191725254,
-0.18271809816360474,
0.04194410517811775,
-0.11357734352350235,
0.2982386648654938,
0.014619176276028156,
0.39284881949424744,
0.014572903513908386,
0.261086642742157,
-0.1982985883951187,
-0.2762894332408905,
-0.0069853682070970535,
0.12864069640636444,
-0.35382509231567383,
-0.03969229757785797,
0.48892465233802795,
-0.16608501970767975,
0.13367709517478943,
0.2067694216966629,
-0.053700558841228485,
-0.29365718364715576,
-0.10075756907463074,
-0.35080522298812866,
0.15122130513191223,
0.27548331022262573,
0.18133509159088135,
0.2705022990703583,
0.3625771105289459,
-0.28183069825172424,
-0.13209612667560577,
0.28090041875839233,
-0.45528554916381836,
-0.16792455315589905,
-0.09741975367069244,
0.09098260849714279,
-0.2902531027793884,
0.1167384460568428,
-0.31802916526794434,
0.16678495705127716,
0.018654704093933105,
-0.1930307298898697,
-0.17417708039283752,
-0.2862383723258972,
-0.31742042303085327,
-0.34605202078819275,
-0.03224017098546028,
0.5567400455474854,
-0.8378716707229614,
0.13864253461360931,
-0.06700737774372101,
-0.0069623105227947235,
0.12023059278726578,
0.2839857339859009,
-0.2087622880935669,
0.01522771269083023,
-0.2989394962787628,
0.13127568364143372,
0.17326289415359497,
-0.2611998915672302,
-0.38632407784461975,
0.24860739707946777,
-0.0008819997310638428,
0.09016968309879303,
0.1690712422132492,
0.07554176449775696,
0.4963609576225281,
-0.01609625108540058,
-0.08895443379878998,
0.30207955837249756,
-0.049113862216472626,
0.08098598569631577,
-0.18484628200531006,
-0.28496643900871277,
0.31722575426101685,
0.19950978457927704,
0.0977134257555008,
0.08486054837703705,
0.23033475875854492,
-0.49876099824905396,
0.3067663311958313,
-0.06299889087677002,
0.22095714509487152,
0.05253630131483078,
0.18891072273254395,
0.09941273927688599,
0.2802126705646515,
-0.031657226383686066,
-0.5756883025169373,
0.1889432668685913,
0.4474724531173706,
-0.112179696559906,
-0.17677466571331024,
-0.10579177737236023,
-0.42516109347343445,
-0.07120223343372345,
-0.27186283469200134,
-0.030778322368860245,
-0.02081015147268772,
0.043117448687553406,
-0.07570907473564148,
-0.09271275997161865,
-0.14734022319316864,
0.4585488736629486,
-0.23812822997570038,
0.218170166015625,
-0.3602612018585205,
0.314499169588089,
0.19412408769130707,
-0.05314785614609718,
0.13143979012966156,
0.040829118341207504,
0.17058396339416504,
-0.06984738260507584,
-0.10439515858888626,
0.2648106515407562,
0.4699585437774658,
-0.05065540969371796,
-0.021837159991264343,
-0.23116610944271088,
0.14966446161270142,
-0.16106148064136505,
0.017479170113801956,
0.18801604211330414,
0.32945507764816284,
-0.14439968764781952,
-0.47457727789878845,
0.3915101885795593,
-0.3383180797100067,
0.31789296865463257,
-0.12599793076515198,
0.1517551988363266,
0.2254447042942047,
0.01974165067076683,
-0.09367164224386215,
-0.11947564780712128,
-0.1482660174369812,
-0.032560091465711594,
0.3659871220588684,
0.11296672374010086,
-0.15030047297477722,
-0.11293952912092209,
0.2878531813621521,
0.16905464231967926,
-0.11960361152887344,
0.1870761215686798,
-0.1231054738163948,
-0.1474553644657135,
0.2803918123245239,
0.36710530519485474,
0.49556124210357666,
0.07714736461639404,
-0.23485302925109863,
-0.05805852264165878,
0.05734536796808243,
-0.2526850700378418,
0.13501368463039398,
0.04401848092675209,
0.08652172982692719,
0.19991350173950195,
0.09430085867643356,
-0.0033025266602635384,
-0.15713414549827576,
-0.10806721448898315,
0.11807356029748917,
0.15049268305301666,
-0.5525856614112854,
0.07308092713356018,
-0.2852838635444641,
0.17347773909568787,
-0.2393052875995636,
-0.11328364163637161,
0.05258914455771446,
-0.3208293616771698,
-0.26962393522262573,
0.2311982661485672,
-0.111629918217659,
0.02104206010699272,
-0.11596989631652832,
0.19407017529010773,
-0.025967050343751907,
-0.2768670916557312,
0.13536548614501953,
-0.16601897776126862,
-0.2796299457550049,
0.02613077685236931,
0.0899905413389206,
0.04053230583667755,
-0.03149014711380005,
0.010532550513744354,
-0.005415848456323147,
-0.1679026186466217,
-0.029412511736154556,
0.19065400958061218,
-0.025891631841659546,
0.048165641725063324,
0.25019600987434387,
-0.11075226962566376,
0.028653942048549652,
-0.1713656336069107,
0.12703441083431244,
0.10980091989040375,
0.08114179968833923,
0.2782087028026581,
0.23571771383285522,
-0.006710349582135677,
-0.13125672936439514,
-0.7236308455467224,
-0.31366345286369324,
-0.24590836465358734,
0.07549168169498444,
-0.0628427118062973,
-0.07963505387306213,
0.03267284855246544,
0.3050910234451294,
-0.08465038985013962,
0.2568504214286804,
-0.0246793981641531,
-0.1409159004688263,
-0.11209620535373688,
0.5172936320304871,
-0.20122572779655457,
-0.28817018866539,
0.23453554511070251,
-0.12068212032318115,
0.046555496752262115,
0.39018380641937256,
-0.40935325622558594,
0.16912999749183655,
-0.049704864621162415,
0.07151304185390472,
0.06377122551202774,
0.08031899482011795,
0.10510603338479996,
-0.009001385420560837,
0.11070409417152405,
-0.05898400396108627,
-0.18681596219539642,
0.21015410125255585,
-0.0723891481757164,
0.016438134014606476,
0.1945226788520813,
0.4666738212108612,
-0.18058958649635315,
0.7081639170646667,
0.05287677422165871,
0.05868443846702576,
0.1935269683599472,
-0.09139101952314377,
0.36753812432289124,
0.03275072202086449,
-0.20142410695552826,
-0.008577139116823673,
-0.13618507981300354,
-0.30729472637176514,
0.4365993142127991,
0.04401127249002457,
-0.14721626043319702,
-0.16719502210617065,
0.21170619130134583,
-0.2908908426761627,
-0.26115354895591736,
0.1816856861114502,
-0.1667778193950653,
-0.08160120993852615,
0.015372619032859802,
0.27615728974342346,
0.09794969856739044,
-0.18389710783958435,
-0.1667267382144928,
0.1501665562391281,
0.17271584272384644,
-0.09773226827383041,
0.15668019652366638,
-0.1063404530286789,
-0.3628372550010681,
0.20038917660713196,
-0.02338290400803089,
0.3507729172706604,
0.1390688270330429,
-0.17858099937438965,
0.06897000968456268,
0.23348963260650635,
0.6763691306114197,
-0.2118423730134964,
-0.10887694358825684,
0.13620421290397644,
-0.16703617572784424,
-0.2020246833562851,
-0.22693370282649994,
-0.0895027369260788,
0.32180356979370117,
-0.013583891093730927,
0.16874712705612183,
-0.09819019585847855,
-0.04408520832657814,
0.28923654556274414,
0.16727645695209503,
-0.18674221634864807,
-0.28678274154663086,
-0.11763349175453186,
-0.046321384608745575,
-0.18263454735279083,
-0.24111831188201904,
0.10629557818174362,
0.07289925962686539,
-0.29289841651916504,
-0.004177805036306381,
-0.19732515513896942,
-0.2476392388343811,
0.34369248151779175,
0.13302837312221527,
0.2578413188457489,
-0.03135153278708458,
0.13943029940128326,
0.2009287327528,
0.17623969912528992,
0.23312421143054962,
0.767467200756073,
-0.32003194093704224,
-0.8968955278396606,
0.219089537858963,
-0.47677046060562134,
0.2948758602142334,
0.06998174637556076,
-0.31031477451324463,
-0.020484402775764465,
-0.24470779299736023,
-0.11144603788852692,
-0.12086091190576553,
-0.13850590586662292,
0.11313357204198837,
-0.07704797387123108,
-0.2178080826997757,
-0.6420863270759583,
0.4519009292125702,
-0.08049330115318298,
-0.13871537148952484,
0.1971895694732666,
-0.00598076730966568,
-0.3941088914871216,
0.5317507982254028,
-0.10250639170408249,
0.6488482356071472,
-0.14430810511112213,
0.06635521352291107,
0.1926669180393219,
-0.1060858964920044,
0.5815527439117432,
-0.2526153326034546,
-0.0314490981400013,
-0.4836895167827606,
-0.09939244389533997,
-0.2113436609506607,
0.016152385622262955,
0.0745459720492363,
0.5343913435935974,
-0.1654260754585266,
0.4403233528137207,
-0.13460688292980194,
0.42698240280151367,
0.07495595514774323,
0.1848095953464508,
0.21630413830280304,
-0.2788418233394623,
-0.19009092450141907,
0.06593470275402069,
-0.0644841343164444,
-0.02352934330701828,
0.095450758934021,
0.07067768275737762,
-0.23941361904144287,
-0.038349781185388565,
-0.3074458837509155,
0.2404230833053589,
0.013457776978611946,
0.14971588551998138,
0.05673793703317642,
-0.511269211769104,
0.5276225209236145,
0.4659334719181061,
0.12882916629314423,
-0.07718168199062347,
-0.17155638337135315,
0.06474074721336365,
-0.07690156251192093,
0.10655046999454498,
-0.04764586314558983,
-0.06523348391056061,
0.11839770525693893,
0.30975696444511414,
-0.18498525023460388,
0.1965092122554779,
-0.13292644917964935,
-0.06003698334097862,
0.28790712356567383,
0.3575037717819214,
0.2925894260406494,
-0.5540479421615601,
-0.31868094205856323,
-0.20824554562568665,
0.175091952085495,
-0.09219762682914734,
0.02872573398053646,
-0.06401240825653076,
0.17392608523368835,
0.1248161792755127,
-0.02149638906121254,
-0.3738909959793091,
0.045145243406295776,
0.16637636721134186,
-0.02906639873981476,
0.057242847979068756,
0.418603777885437,
0.3911682367324829,
-0.1691598892211914,
-0.17077460885047913,
0.04066740721464157,
0.05745244026184082,
-0.5586925148963928,
0.2726942300796509,
0.09452648460865021,
0.1553148776292801,
0.09379485249519348,
0.1295141577720642,
0.07507118582725525,
-0.1472870111465454,
-0.027417264878749847,
-0.5871500968933105,
0.03917108476161957,
0.051866136491298676,
-0.10455213487148285,
0.04679899662733078,
0.09843885153532028,
-0.4158437252044678,
-0.053122371435165405,
-0.1460791528224945,
-0.16623787581920624,
0.12270651757717133,
0.09529607743024826,
0.02825837954878807,
0.20558281242847443,
0.30315718054771423,
-0.1256093680858612,
-0.2308122217655182,
-0.015837281942367554,
0.03656315803527832,
0.13341854512691498,
-0.09224248677492142,
-0.17674045264720917,
0.2006402164697647,
-0.03742611035704613,
0.135547935962677,
-0.23352709412574768,
-0.21750056743621826,
-0.22057756781578064,
-0.24377790093421936,
0.25943297147750854,
0.38540440797805786,
-0.062437355518341064,
0.34236180782318115,
-0.007410470396280289,
-0.021821148693561554,
-0.5484729409217834,
0.3721243739128113,
-0.33374547958374023,
0.26485419273376465,
0.11671596765518188,
0.24496255815029144,
0.07131443172693253,
0.1001942902803421,
-0.07352983951568604,
0.040367305278778076,
-0.09355910122394562,
-0.10601391643285751,
0.3031858205795288,
-0.33082568645477295,
0.25215786695480347,
0.1782938838005066,
0.36163783073425293,
0.43591585755348206,
-0.041228193789720535,
-0.12747547030448914,
0.11861231923103333,
0.10579432547092438,
-0.2864648103713989,
0.1520415097475052,
0.11588302254676819,
0.19542761147022247,
0.009332560002803802,
0.4370470345020294,
-0.004452202469110489,
-0.1398126482963562,
0.029628552496433258,
0.08494243770837784,
0.6649835705757141,
0.10726799815893173,
0.25286343693733215,
0.3818797469139099,
-0.04355253279209137,
0.17846927046775818,
0.16057924926280975,
-0.10217402875423431,
0.12071026116609573,
0.5896921753883362,
-0.13464125990867615,
0.030911803245544434,
0.2568347156047821,
0.19648806750774384,
-0.07862111181020737,
-0.6072865724563599,
0.33354803919792175,
0.295357882976532,
-0.29680052399635315,
-0.0950203612446785,
0.17487554252147675,
0.6289699673652649,
-0.18537646532058716,
0.13863390684127808,
-0.30356523394584656,
-0.07269833981990814,
0.06576506793498993,
-0.09956701099872589,
-0.1449110209941864,
-0.2396792769432068,
-0.3253217935562134,
0.2576448321342468,
-0.2221737802028656,
-0.14469726383686066,
0.3557286858558655,
0.14538727700710297,
0.021224722266197205,
-0.5101609230041504,
0.17693936824798584,
0.06113164871931076,
0.06762368232011795,
-0.2418275624513626,
0.04526400566101074,
-0.05999591946601868,
0.10750053822994232,
0.41109582781791687,
-0.18622881174087524,
0.3582163155078888,
0.4266977310180664,
-0.010240525007247925,
-0.4081249237060547,
-0.07334746420383453,
-0.06974926590919495,
-0.09912985563278198,
0.4141913056373596,
-0.04588599503040314,
0.3552894592285156,
0.30069655179977417,
0.10727863013744354,
-0.02289007604122162,
0.14937451481819153,
0.19046397507190704,
0.059569161385297775,
-0.46074098348617554,
0.026029877364635468,
0.03156237676739693,
-0.055463191121816635,
-0.08093515038490295,
-0.1332417130470276,
-0.12065868079662323,
-0.2544761002063751,
0.41935229301452637,
0.09711915999650955,
0.23523086309432983,
0.15722817182540894,
0.001058138906955719,
-0.04901668801903725,
0.1945968121290207,
0.3154040277004242,
0.1179356798529625,
-0.38884085416793823,
0.014833994209766388,
-0.7008814811706543,
-0.05773473531007767,
-0.16030758619308472,
-0.22273245453834534,
-0.06579011678695679,
0.2667684257030487,
0.3000713586807251,
0.2722354233264923,
-0.10756422579288483,
0.2855185270309448,
0.04073597118258476,
0.24881142377853394,
-0.10101211071014404,
-0.28746262192726135,
-0.2420123666524887,
-0.0227797981351614,
-0.12143592536449432,
-0.5083059072494507,
-0.01040220633149147,
0.33729299902915955,
-0.15674085915088654,
-0.15240448713302612,
-0.0398765504360199,
0.17268456518650055,
-0.3162718713283539,
0.28244587779045105,
0.048567287623882294,
0.46256163716316223,
0.0350709930062294,
0.2286793291568756,
-0.3366466164588928,
-0.24337132275104523,
-0.2299165278673172,
0.3020690679550171,
-0.0797187089920044,
0.46050265431404114,
-0.36777573823928833,
0.07349853962659836,
-0.2131592333316803,
0.06996410340070724,
0.14907363057136536,
0.2884458601474762,
-0.4138552248477936,
0.2748320996761322,
-0.15999779105186462,
0.20014895498752594,
-0.022491581737995148,
0.08124977350234985,
-0.21077734231948853,
0.15453752875328064,
-0.008340016007423401,
-0.2705019414424896,
0.1735009402036667,
-0.2811925411224365,
-0.27911925315856934,
-0.039765406399965286,
0.1720833033323288,
0.17271053791046143,
0.09391477704048157,
-0.44747981429100037,
-0.04408379644155502,
0.34224891662597656,
-0.17150864005088806,
-0.14932696521282196,
0.03453235328197479,
0.014645863324403763,
0.04413812980055809,
-0.20101192593574524,
0.1968460977077484,
0.31591007113456726,
-0.26899364590644836,
-0.06722307950258255,
-0.38398468494415283
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | ```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split=['train', 'test'])
```
I was running the above line, but got this error.
```ValueError: Unknown split "test". Should be one of ['train'].```
The data is amazon product data. I load the Video_Games_5.json.gz data into pandas and save it as csv file. and then load the csv file using the above code. I thought, ```split=['train', 'test']``` would split the data into train and test. did I misunderstood?
Thank you!
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 78 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split=['train', 'test'])
```
I was running the above line, but got this error.
```ValueError: Unknown split "test". Should be one of ['train'].```
The data is amazon product data. I load the Video_Games_5.json.gz data into pandas and save it as csv file. and then load the csv file using the above code. I thought, ```split=['train', 'test']``` would split the data into train and test. did I misunderstood?
Thank you!
| [
0.0013096518814563751,
0.051712602376937866,
-0.019382333382964134,
0.40136444568634033,
0.2351076751947403,
0.22222983837127686,
0.5522069931030273,
0.321109801530838,
0.23970013856887817,
-0.036393582820892334,
-0.14609751105308533,
0.22432377934455872,
-0.02505701780319214,
0.10222934931516647,
-0.3207230567932129,
-0.1825464516878128,
0.04530766233801842,
0.06728827953338623,
-0.23408696055412292,
0.061787232756614685,
-0.3590756356716156,
0.34226492047309875,
-0.2727225720882416,
-0.014488615095615387,
-0.20788335800170898,
0.012481428682804108,
-0.10534936189651489,
0.2969684898853302,
-0.1483757346868515,
-0.2648252546787262,
0.4790063500404358,
-0.17164523899555206,
0.5383774042129517,
0.3396252393722534,
-0.00011821791849797592,
0.04706969112157822,
0.2971406579017639,
-0.12464813888072968,
-0.20830830931663513,
-0.5637425184249878,
-0.056119851768016815,
-0.3337763547897339,
0.30931609869003296,
-0.13840389251708984,
-0.030609041452407837,
0.002625861670821905,
-0.1647101789712906,
-0.37167128920555115,
0.5169056057929993,
0.5258504748344421,
0.1700555384159088,
-0.2575104236602783,
-0.1054590716958046,
0.010397199541330338,
0.5956735610961914,
0.07962818443775177,
-0.1261376291513443,
0.2239544540643692,
0.011149294674396515,
-0.12829071283340454,
-0.1261240541934967,
0.04658859595656395,
-0.04093749076128006,
0.35014307498931885,
0.13060472905635834,
0.28086429834365845,
-0.2174006700515747,
-0.2594375014305115,
0.03576435521245003,
0.16460704803466797,
0.6517998576164246,
-0.09075472503900528,
-0.25573351979255676,
-0.08936453610658646,
-0.04586706683039665,
-0.19060172140598297,
0.23563316464424133,
0.402523934841156,
-0.014394431374967098,
0.2629038095474243,
-0.030220821499824524,
0.06212550029158592,
-0.23079484701156616,
0.1439073383808136,
-0.029152337461709976,
0.09889691323041916,
-0.24199430644512177,
0.31047865748405457,
0.07489301264286041,
0.037632446736097336,
0.2845780551433563,
-0.08039286732673645,
-0.085378497838974,
0.10971271991729736,
-0.7357714176177979,
0.19722460210323334,
-0.26063016057014465,
-0.13936778903007507,
-0.18183326721191406,
0.23014123737812042,
0.19867321848869324,
-0.048055827617645264,
-0.0711122453212738,
0.32671210169792175,
0.3619978129863739,
0.11962535977363586,
-0.04932522028684616,
0.3038944602012634,
0.21541735529899597,
-0.11920151114463806,
-0.08237335085868835,
-0.18989670276641846,
-0.29647451639175415,
-0.5364334583282471,
-0.06903986632823944,
0.16940337419509888,
0.27787870168685913,
-0.20566706359386444,
-0.31037598848342896,
0.04156235605478287,
-0.36610057950019836,
-0.05935421958565712,
-0.06500344723463058,
0.3313743770122528,
0.04849362000823021,
0.18003827333450317,
-0.019931582733988762,
0.3329242467880249,
-0.10167882591485977,
-0.2537933886051178,
-0.009935040958225727,
0.21294203400611877,
-0.33221811056137085,
-0.04757659137248993,
0.4394688606262207,
-0.13993757963180542,
0.16989128291606903,
0.14387120306491852,
-0.10166105628013611,
-0.358941912651062,
-0.04391096904873848,
-0.32011374831199646,
0.059808697551488876,
0.29110321402549744,
0.09772050380706787,
0.22637952864170074,
0.2708277404308319,
-0.20049601793289185,
-0.11346830427646637,
0.3200463056564331,
-0.4528759717941284,
-0.19494226574897766,
-0.12361440062522888,
0.06388699263334274,
-0.2958914041519165,
0.05161189287900925,
-0.3975142538547516,
0.0070916227996349335,
0.137207493185997,
-0.16904595494270325,
-0.11074299365282059,
-0.25980526208877563,
-0.22344979643821716,
-0.23294267058372498,
-0.029773525893688202,
0.3591509759426117,
-0.7292494773864746,
0.20991551876068115,
-0.1305401474237442,
0.13978876173496246,
0.20426329970359802,
0.27834779024124146,
-0.2136736959218979,
0.08381852507591248,
-0.19575853645801544,
0.13984403014183044,
0.19227932393550873,
-0.19488126039505005,
-0.2584930658340454,
0.3368588387966156,
-0.05480220913887024,
0.0118796918541193,
0.14804311096668243,
0.007960227318108082,
0.2661393880844116,
0.011809157207608223,
-0.2148739993572235,
0.277940034866333,
-0.11071328818798065,
0.05320585519075394,
-0.21784155070781708,
-0.2958855926990509,
0.3931155800819397,
0.22330665588378906,
0.08091136813163757,
0.0637841522693634,
0.21934950351715088,
-0.4887850284576416,
0.2911219298839569,
-0.0074691809713840485,
0.21309931576251984,
0.12665048241615295,
0.23995758593082428,
-0.011825315654277802,
0.30641886591911316,
-0.046806007623672485,
-0.5506252646446228,
0.12114491313695908,
0.2973085045814514,
-0.08053328096866608,
-0.2491196244955063,
-0.029333245009183884,
-0.4990498721599579,
-0.1263437271118164,
-0.19318194687366486,
-0.14718832075595856,
-0.011376753449440002,
0.0028396695852279663,
-0.06954336911439896,
-0.18110521137714386,
-0.123171865940094,
0.4104182720184326,
-0.19682034850120544,
0.15748007595539093,
-0.4205072820186615,
0.3484315872192383,
0.06852011382579803,
-0.046661749482154846,
0.23225897550582886,
-0.0470522865653038,
0.3172304332256317,
-0.17371989786624908,
-0.17260980606079102,
0.29924196004867554,
0.3452042043209076,
0.05145545303821564,
0.0920722633600235,
-0.26894712448120117,
0.08438999950885773,
-0.13458703458309174,
-0.07657922804355621,
0.19757254421710968,
0.3707107901573181,
-0.0902065858244896,
-0.49671879410743713,
0.3981713652610779,
-0.37305158376693726,
0.3407868444919586,
-0.15483421087265015,
0.1214027926325798,
0.25453174114227295,
-0.03427984565496445,
-0.057321883738040924,
0.015430435538291931,
-0.06749774515628815,
-0.04145277664065361,
0.1813628226518631,
0.12049151957035065,
-0.14124658703804016,
-0.09476060420274734,
0.29325199127197266,
0.12428905069828033,
-0.2171436846256256,
0.14963552355766296,
-0.021258994936943054,
-0.09072182327508926,
0.32342207431793213,
0.4788167178630829,
0.4989162087440491,
0.09349716454744339,
-0.2257992923259735,
-0.05020807683467865,
0.09059476107358932,
-0.21292829513549805,
0.14957669377326965,
0.13147568702697754,
0.156845822930336,
0.14971888065338135,
0.1046726331114769,
0.030983317643404007,
-0.056408993899822235,
-0.15312226116657257,
0.257571816444397,
0.2865164279937744,
-0.5545145869255066,
0.08325713872909546,
-0.2742897868156433,
0.2512344717979431,
-0.294832319021225,
-0.12454120069742203,
0.11243720352649689,
-0.33027973771095276,
-0.2978978157043457,
0.24249790608882904,
-0.1188889592885971,
0.07664704322814941,
-0.1887725293636322,
0.18582512438297272,
0.09451289474964142,
-0.1874367594718933,
0.04601086676120758,
-0.22972887754440308,
-0.18531501293182373,
0.04402048513293266,
0.16080816090106964,
0.11476346850395203,
-0.15937615931034088,
0.09248408675193787,
0.11202080547809601,
-0.11316268891096115,
-0.07348962128162384,
0.12055770307779312,
-0.06929454207420349,
0.10661625117063522,
0.061100780963897705,
-0.09710127115249634,
-0.11532452702522278,
-0.3006359040737152,
0.09560352563858032,
0.0619499534368515,
0.05240669846534729,
0.33588624000549316,
0.30104494094848633,
-0.13436731696128845,
-0.06371676921844482,
-0.7712948322296143,
-0.29286402463912964,
-0.22548234462738037,
0.136415034532547,
-0.06039842963218689,
-0.08004535734653473,
-0.009466665796935558,
0.27299705147743225,
-0.046675946563482285,
0.3181813955307007,
-0.08198699355125427,
-0.15243440866470337,
-0.35595279932022095,
0.628211259841919,
-0.33587536215782166,
-0.2506924867630005,
0.21234926581382751,
-0.08919006586074829,
0.013499189168214798,
0.3305259943008423,
-0.37970513105392456,
0.24959109723567963,
-0.07879819720983505,
-0.050224822014570236,
-0.0006276555359363556,
0.023859240114688873,
0.03809649869799614,
-0.007167298812419176,
0.08192097395658493,
-0.01032644510269165,
-0.1273985207080841,
0.21485549211502075,
0.048319537192583084,
0.12612387537956238,
0.10469744354486465,
0.4444694519042969,
-0.1454235315322876,
0.832663893699646,
0.009213555604219437,
0.020837677642703056,
0.21854457259178162,
-0.11460158973932266,
0.27671530842781067,
0.1338878720998764,
-0.2511599063873291,
0.012634853832423687,
-0.19218993186950684,
-0.24791723489761353,
0.31812506914138794,
-0.06223426014184952,
-0.1635572910308838,
-0.06711291521787643,
0.22532984614372253,
-0.3498934209346771,
-0.261616051197052,
0.21975679695606232,
-0.09928666055202484,
-0.05689729005098343,
0.0018100123852491379,
0.1972859799861908,
0.11129099130630493,
-0.24537885189056396,
-0.1210479885339737,
0.09736043214797974,
0.1619681566953659,
-0.08682477474212646,
0.0986911952495575,
-0.16754023730754852,
-0.2355765402317047,
0.23416876792907715,
-0.025750763714313507,
0.46501296758651733,
0.11910408735275269,
-0.09243161231279373,
0.04277021810412407,
0.19011463224887848,
0.7903687953948975,
-0.27729353308677673,
-0.06697142869234085,
0.08950966596603394,
-0.08430814743041992,
-0.13866256177425385,
-0.24876593053340912,
-0.14393506944179535,
0.34558698534965515,
-0.06328503787517548,
0.24619676172733307,
-0.016196228563785553,
0.009898530319333076,
0.41048458218574524,
0.07643486559391022,
-0.18930965662002563,
-0.3667449355125427,
-0.12031684815883636,
-0.00035323575139045715,
-0.17939437925815582,
-0.18403851985931396,
0.2391405552625656,
0.19342070817947388,
-0.3377687335014343,
0.058526162058115005,
-0.22459134459495544,
-0.19832012057304382,
0.40038812160491943,
0.1000649631023407,
0.22248700261116028,
0.053736355155706406,
0.15032373368740082,
0.16583064198493958,
0.0966288149356842,
0.20355068147182465,
0.7843946218490601,
-0.2009366750717163,
-0.8349446058273315,
0.23184776306152344,
-0.5099241733551025,
0.3329103887081146,
0.069640152156353,
-0.3419288098812103,
-0.07500454038381577,
-0.1523553729057312,
-0.059325456619262695,
-0.06418450176715851,
-0.06523653864860535,
0.11926812678575516,
-0.03152577206492424,
-0.17016379535198212,
-0.49615952372550964,
0.5014416575431824,
-0.17254774272441864,
-0.09937931597232819,
0.16508960723876953,
0.0060843899846076965,
-0.3151538074016571,
0.50691157579422,
-0.12649312615394592,
0.7633355855941772,
-0.08098453283309937,
-0.03845543786883354,
0.12387281656265259,
-0.2518376410007477,
0.48880547285079956,
-0.3862515687942505,
0.017193159088492393,
-0.44490084052085876,
-0.18770578503608704,
-0.17974570393562317,
-0.00941547006368637,
0.13938486576080322,
0.515873372554779,
-0.15865911543369293,
0.3798230290412903,
-0.06426677107810974,
0.3847053050994873,
0.010051180608570576,
0.1798696666955948,
0.2399885356426239,
-0.2542886734008789,
-0.15915818512439728,
0.06179673224687576,
-0.11367926001548767,
0.04028194397687912,
0.1215544119477272,
-0.06850096583366394,
-0.3014988601207733,
-0.022290270775556564,
-0.258772075176239,
0.2786271870136261,
0.006409504916518927,
0.16969671845436096,
0.06705415993928909,
-0.5253942012786865,
0.4796040952205658,
0.41570785641670227,
0.15022802352905273,
-0.15487933158874512,
-0.17651838064193726,
0.14544260501861572,
-0.002778291702270508,
0.03454317897558212,
-0.11732743680477142,
-0.02342206984758377,
0.12261824309825897,
0.22463327646255493,
-0.21673764288425446,
0.21416175365447998,
-0.11055410653352737,
-0.057368919253349304,
0.2784084379673004,
0.2830652594566345,
0.11584033071994781,
-0.5786654949188232,
-0.4050551950931549,
-0.19941195845603943,
0.03557811304926872,
-0.13584738969802856,
0.04278448969125748,
-0.09590183198451996,
-0.007377064786851406,
0.07901648432016373,
-0.010954499244689941,
-0.37999504804611206,
0.01638219505548477,
0.2304478883743286,
-0.10416851192712784,
0.16770462691783905,
0.489442378282547,
0.39914920926094055,
-0.12030580639839172,
-0.15656697750091553,
0.12399407476186752,
0.194325789809227,
-0.6159325242042542,
0.14854957163333893,
-0.016078507527709007,
0.2707141637802124,
0.11735384166240692,
0.09353109449148178,
0.14814966917037964,
-0.11310655623674393,
0.1228976845741272,
-0.6571763157844543,
-0.0065177325159311295,
-0.016392387449741364,
-0.025536898523569107,
0.06612256169319153,
-0.005358409136533737,
-0.34719669818878174,
-0.00633099302649498,
-0.0185470562428236,
-0.17745846509933472,
0.2192811518907547,
-0.01601680926978588,
0.07737281918525696,
0.08759299665689468,
0.22374698519706726,
-0.1134927049279213,
-0.31604912877082825,
0.005933476611971855,
0.08079831302165985,
0.12899097800254822,
-0.11853407323360443,
-0.23444421589374542,
0.18074341118335724,
0.051306627690792084,
0.11726341396570206,
-0.29162874817848206,
-0.1712028533220291,
-0.2519420385360718,
-0.11570935696363449,
0.12226158380508423,
0.309783011674881,
0.07638730853796005,
0.42019152641296387,
0.0632057636976242,
-0.13469970226287842,
-0.5766657590866089,
0.24318958818912506,
-0.2517923414707184,
0.25633466243743896,
0.20043504238128662,
0.2189348191022873,
0.15264296531677246,
0.13263030350208282,
-0.10451319068670273,
-0.11998143047094345,
-0.1409798413515091,
-0.12321349233388901,
0.3064599335193634,
-0.35436856746673584,
0.16589711606502533,
0.13189664483070374,
0.3639473021030426,
0.4501644968986511,
-0.0877353698015213,
-0.029606688767671585,
0.1945364773273468,
0.10601621121168137,
-0.31099388003349304,
0.2500671148300171,
0.10154964029788971,
0.2192719429731369,
-0.06665053963661194,
0.36540183424949646,
-0.05868885666131973,
-0.005923330783843994,
0.04186568036675453,
0.15719956159591675,
0.6517181396484375,
0.003728136420249939,
0.25344398617744446,
0.2700837552547455,
-0.10337935388088226,
0.1718180626630783,
0.2659030556678772,
-0.03999526426196098,
0.05038332939147949,
0.4718826413154602,
-0.17457133531570435,
0.05588134378194809,
0.3098165988922119,
0.2301667332649231,
-0.09588905423879623,
-0.5000250935554504,
0.20135639607906342,
0.3368728756904602,
-0.2262832224369049,
-0.061237744987010956,
0.20303399860858917,
0.7519761919975281,
-0.07415585964918137,
0.09443797171115875,
-0.283704549074173,
-0.05297590419650078,
0.06889667361974716,
-0.050685930997133255,
-0.16672277450561523,
-0.19430747628211975,
-0.4568818211555481,
0.2175014317035675,
-0.15786631405353546,
-0.1699223816394806,
0.35055941343307495,
0.22557000815868378,
-0.020549848675727844,
-0.4643116891384125,
0.10084033757448196,
0.0950995683670044,
0.10842739790678024,
-0.2965499758720398,
0.024968737736344337,
0.013612829148769379,
-0.037111811339855194,
0.35682573914527893,
-0.23038502037525177,
0.39436838030815125,
0.35896289348602295,
-0.08248773217201233,
-0.2996542155742645,
-0.00019103288650512695,
-0.1467815637588501,
0.08111007511615753,
0.4575307071208954,
0.018879547715187073,
0.29796212911605835,
0.2910824716091156,
0.12235595285892487,
-0.037656694650650024,
0.3405002951622009,
0.1959134191274643,
0.16823777556419373,
-0.42093756794929504,
0.09736441820859909,
0.019436974078416824,
-0.07722201198339462,
-0.13422584533691406,
-0.24946889281272888,
-0.22478178143501282,
-0.16445976495742798,
0.2870919108390808,
-0.013904395513236523,
0.22841331362724304,
0.14832894504070282,
0.005425151437520981,
-0.06346826255321503,
0.25668594241142273,
0.2689572870731354,
0.08354142308235168,
-0.509636640548706,
0.09217283129692078,
-0.7402234077453613,
-0.11851326376199722,
-0.13974981009960175,
-0.13500121235847473,
0.03367287665605545,
0.24566783010959625,
0.22583416104316711,
0.32755225896835327,
-0.09692774713039398,
0.14261455833911896,
-0.05326846241950989,
0.3893439769744873,
-0.18275991082191467,
-0.14950159192085266,
-0.20004941523075104,
0.10637154430150986,
-0.06529871374368668,
-0.4260184168815613,
0.05704394355416298,
0.28596583008766174,
-0.18111753463745117,
-0.12031671404838562,
-0.21477800607681274,
0.12112213671207428,
-0.23257511854171753,
0.319612056016922,
-0.03305376321077347,
0.43930596113204956,
0.03053266555070877,
0.3137935698032379,
-0.41460666060447693,
-0.31625762581825256,
-0.16206343472003937,
0.3063240349292755,
-0.004763532429933548,
0.4763435423374176,
-0.3523977994918823,
0.043399542570114136,
-0.3214065134525299,
-0.03286641463637352,
-0.026316208764910698,
0.21407413482666016,
-0.3108556866645813,
0.22417211532592773,
-0.15988656878471375,
0.24047842621803284,
0.02550530806183815,
-0.001070607453584671,
-0.2014997899532318,
0.19450514018535614,
-0.0734490305185318,
-0.2631213665008545,
0.2682916522026062,
-0.251566082239151,
-0.3278559446334839,
0.12138006836175919,
0.1324690282344818,
0.341254323720932,
0.07908432185649872,
-0.49938178062438965,
0.045982398092746735,
0.3171977996826172,
-0.16845020651817322,
-0.022621188312768936,
0.04599033296108246,
0.1045871376991272,
0.10176943242549896,
-0.16237622499465942,
0.09891848266124725,
0.31073451042175293,
-0.25705793499946594,
-0.12675297260284424,
-0.3608280420303345
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi ! the `split` argument in `load_dataset` is used to select the splits you want among the available splits.
However when loading a csv with a single file as you did, only a `train` split is available by default.
Indeed since `data_files='./amazon_data/Video_Games_5.csv'` is equivalent to `data_files={"train": './amazon_data/Video_Games_5.csv'}`, you can get a dataset with
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split="train")
```
And then to get both a train and test split you can do
```python
dataset = dataset.train_test_split()
print(dataset.keys())
# ['train', 'test']
```
Also note that a csv dataset may have several available splits if it is defined this way:
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files={
"train": './amazon_data/Video_Games_5_train.csv',
"test": './amazon_data/Video_Games_5_test.csv'
})
print(dataset.keys())
# ['train', 'test']
```
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 123 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi ! the `split` argument in `load_dataset` is used to select the splits you want among the available splits.
However when loading a csv with a single file as you did, only a `train` split is available by default.
Indeed since `data_files='./amazon_data/Video_Games_5.csv'` is equivalent to `data_files={"train": './amazon_data/Video_Games_5.csv'}`, you can get a dataset with
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split="train")
```
And then to get both a train and test split you can do
```python
dataset = dataset.train_test_split()
print(dataset.keys())
# ['train', 'test']
```
Also note that a csv dataset may have several available splits if it is defined this way:
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files={
"train": './amazon_data/Video_Games_5_train.csv',
"test": './amazon_data/Video_Games_5_test.csv'
})
print(dataset.keys())
# ['train', 'test']
```
| [
-0.12369906902313232,
0.05452743172645569,
0.004668474197387695,
0.3440145254135132,
0.22386324405670166,
0.2072243094444275,
0.555758535861969,
0.3320879340171814,
0.22926655411720276,
0.0723566859960556,
-0.12198485434055328,
0.18936602771282196,
-0.09884051978588104,
0.05809963494539261,
-0.3150722086429596,
-0.19499388337135315,
0.025649800896644592,
0.06312108039855957,
-0.2891601026058197,
0.024731561541557312,
-0.2967124283313751,
0.3495417535305023,
-0.2854316234588623,
-0.10416913032531738,
-0.24745170772075653,
0.12474626302719116,
-0.12849098443984985,
0.2887857258319855,
-0.10671287029981613,
-0.28289127349853516,
0.5074791312217712,
-0.07992936670780182,
0.4618831276893616,
0.34436458349227905,
-0.00012035014515276998,
0.09699983894824982,
0.27998536825180054,
-0.09146525710821152,
-0.2787307798862457,
-0.579963743686676,
-0.007104393094778061,
-0.37530046701431274,
0.3846255838871002,
-0.12357894331216812,
-0.1427273452281952,
0.06286052614450455,
-0.0909828171133995,
-0.3723735213279724,
0.49260610342025757,
0.5027614831924438,
0.1562836915254593,
-0.22778797149658203,
-0.20411229133605957,
-0.051319170743227005,
0.6431521773338318,
0.10482485592365265,
-0.15375211834907532,
0.2703807055950165,
0.0426359623670578,
-0.180007666349411,
-0.15403255820274353,
0.03842497989535332,
0.018786849454045296,
0.27211326360702515,
0.15039145946502686,
0.32100942730903625,
-0.19260945916175842,
-0.2060052901506424,
0.023496530950069427,
0.17838072776794434,
0.5856808423995972,
-0.06175538897514343,
-0.19988882541656494,
-0.10869207233190536,
-0.0031238640658557415,
-0.21123699843883514,
0.2918921411037445,
0.39449235796928406,
-0.014092429541051388,
0.2673092484474182,
-0.08407419919967651,
0.056287914514541626,
-0.27157163619995117,
0.19672080874443054,
-0.041110970079898834,
0.0441889613866806,
-0.16069690883159637,
0.3093576431274414,
0.18285685777664185,
0.13525119423866272,
0.26164475083351135,
-0.06724535673856735,
-0.046827416867017746,
0.18082551658153534,
-0.7518922686576843,
0.23227152228355408,
-0.2511090636253357,
-0.15478110313415527,
-0.09369872510433197,
0.2901220917701721,
0.22213520109653473,
-0.032810136675834656,
-0.07041584700345993,
0.31431132555007935,
0.3604486882686615,
0.05805685743689537,
-0.06490880995988846,
0.3738550543785095,
0.2827085852622986,
-0.09662429988384247,
-0.04958808422088623,
-0.1580697000026703,
-0.28294071555137634,
-0.5059506297111511,
-0.08120585232973099,
0.18436920642852783,
0.21146725118160248,
-0.1583939790725708,
-0.23429743945598602,
0.005078388378024101,
-0.3175962567329407,
-0.03917846083641052,
-0.09825346618890762,
0.3246217668056488,
0.1229010820388794,
0.25827860832214355,
0.018213242292404175,
0.35554981231689453,
-0.16806474328041077,
-0.32515403628349304,
-0.039020564407110214,
0.1630631536245346,
-0.3775838315486908,
-0.018738603219389915,
0.5270972847938538,
-0.20265036821365356,
0.14977097511291504,
0.23780401051044464,
-0.0695296972990036,
-0.364753395318985,
-0.01837211847305298,
-0.33579257130622864,
0.06003396213054657,
0.2679000794887543,
0.14781294763088226,
0.2357052117586136,
0.29014986753463745,
-0.13141074776649475,
-0.09913955628871918,
0.3206923007965088,
-0.45030856132507324,
-0.22986361384391785,
-0.0609406903386116,
0.07926224172115326,
-0.25661736726760864,
0.12857870757579803,
-0.319781094789505,
0.12159393727779388,
0.12335348129272461,
-0.1894131451845169,
-0.19740667939186096,
-0.2858694791793823,
-0.3190155625343323,
-0.2252110093832016,
0.02875196747481823,
0.4265126585960388,
-0.7253034114837646,
0.16006876528263092,
-0.07357776165008545,
0.08181147277355194,
0.1762101650238037,
0.21925415098667145,
-0.30114439129829407,
0.02853374183177948,
-0.2588869035243988,
0.12981803715229034,
0.21283471584320068,
-0.14526046812534332,
-0.30539408326148987,
0.3130151927471161,
-0.0814771056175232,
-0.015027683228254318,
0.1646915078163147,
0.07351259142160416,
0.38086944818496704,
0.03462614864110947,
-0.1928316354751587,
0.2732810378074646,
-0.05998217314481735,
0.06480375677347183,
-0.2179352194070816,
-0.26267117261886597,
0.2681048512458801,
0.23989515006542206,
0.12198954820632935,
0.0886862650513649,
0.20001950860023499,
-0.42221882939338684,
0.36841583251953125,
0.001866944134235382,
0.24214473366737366,
0.09444184601306915,
0.21728301048278809,
0.006955891847610474,
0.2594900131225586,
-0.04689566045999527,
-0.5880163311958313,
0.1750815510749817,
0.3549015522003174,
-0.14562813937664032,
-0.1272689551115036,
-0.08278319239616394,
-0.4457898736000061,
-0.10922812670469284,
-0.21932022273540497,
-0.05316388979554176,
-0.030173983424901962,
0.054600827395915985,
-0.09056782722473145,
-0.2170436829328537,
-0.15049250423908234,
0.35895267128944397,
-0.22538359463214874,
0.13455696403980255,
-0.34700900316238403,
0.3731134533882141,
0.12038491666316986,
-0.07422315329313278,
0.1797977089881897,
-0.03647889196872711,
0.3094663619995117,
-0.1655762791633606,
-0.155094712972641,
0.33689120411872864,
0.4324691891670227,
-0.017773360013961792,
-0.00705169141292572,
-0.23372770845890045,
0.1350262314081192,
-0.15091416239738464,
-0.09886433929204941,
0.26330018043518066,
0.29954761266708374,
-0.13295459747314453,
-0.6124708652496338,
0.3689529001712799,
-0.3481309711933136,
0.3461932837963104,
-0.10828497260808945,
0.13986138999462128,
0.2544139623641968,
-0.06944965571165085,
-0.09203576296567917,
-0.05028250813484192,
-0.024685334414243698,
-0.05072743073105812,
0.21929432451725006,
0.0786125436425209,
-0.18207070231437683,
-0.14136606454849243,
0.190468430519104,
0.14547260105609894,
-0.2642041742801666,
0.1631588637828827,
-0.05749892443418503,
-0.09099043905735016,
0.2860412001609802,
0.3959854543209076,
0.4706318974494934,
0.07969526201486588,
-0.15679748356342316,
-0.0353185310959816,
0.07408130168914795,
-0.24157872796058655,
0.11596529185771942,
0.07016906887292862,
0.06405819207429886,
0.2292761504650116,
0.20911209285259247,
0.06436996161937714,
-0.08720079809427261,
-0.14157536625862122,
0.24276405572891235,
0.18572908639907837,
-0.5693572759628296,
0.041461557149887085,
-0.2665552794933319,
0.31800413131713867,
-0.3426656424999237,
-0.05627872422337532,
0.13171258568763733,
-0.3142738342285156,
-0.23927105963230133,
0.2791629135608673,
-0.15286000072956085,
0.08958780020475388,
-0.16208268702030182,
0.241129070520401,
0.04109210520982742,
-0.18987950682640076,
0.1409054696559906,
-0.19606462121009827,
-0.27384352684020996,
0.02826511859893799,
0.15394704043865204,
0.058599989861249924,
-0.12779904901981354,
0.10290487855672836,
-0.055078450590372086,
-0.1706884205341339,
-0.008625417947769165,
0.16197028756141663,
-0.003584742546081543,
0.09082014858722687,
0.13823872804641724,
-0.10532987117767334,
-0.06460584700107574,
-0.26939624547958374,
0.15041622519493103,
0.07712150365114212,
0.0710020512342453,
0.31437572836875916,
0.26915088295936584,
-0.08287139981985092,
-0.179314523935318,
-0.780608057975769,
-0.2570379376411438,
-0.22826477885246277,
0.06827689707279205,
-0.0943245142698288,
-0.06803950667381287,
-0.007950364612042904,
0.2537839710712433,
-0.08822233229875565,
0.31373241543769836,
-0.10787597298622131,
-0.11325184255838394,
-0.22406582534313202,
0.5512237548828125,
-0.24454468488693237,
-0.3344499468803406,
0.20844784379005432,
-0.11006106436252594,
-0.02901463583111763,
0.3913623094558716,
-0.43202823400497437,
0.20694781839847565,
-0.056290753185749054,
-0.027683541178703308,
-0.06925942748785019,
0.05549786612391472,
0.06669813394546509,
-0.060516927391290665,
0.0955885499715805,
-0.022642815485596657,
-0.12511391937732697,
0.25176703929901123,
-0.020024333149194717,
0.1037028580904007,
0.069099560379982,
0.45512324571609497,
-0.1279478520154953,
0.8405364751815796,
0.09346069395542145,
0.03828003257513046,
0.2161407768726349,
-0.12790429592132568,
0.26278772950172424,
0.1161440759897232,
-0.20523667335510254,
0.04913578927516937,
-0.21876555681228638,
-0.2989218235015869,
0.3436029553413391,
0.006289650686085224,
-0.1588173508644104,
-0.08460725098848343,
0.3055965006351471,
-0.21649274230003357,
-0.2865195572376251,
0.21090303361415863,
-0.14447017014026642,
0.021243494004011154,
-0.0498867928981781,
0.17685288190841675,
0.14069001376628876,
-0.19868871569633484,
-0.09434162080287933,
0.11056455224752426,
0.10687603056430817,
-0.12617263197898865,
0.10687163472175598,
-0.12469983845949173,
-0.25847193598747253,
0.15724894404411316,
-0.04499972239136696,
0.3818114697933197,
0.1139998733997345,
-0.1269673854112625,
0.07013645768165588,
0.20510081946849823,
0.8161818981170654,
-0.1706877201795578,
-0.026279307901859283,
0.13650323450565338,
-0.09434430301189423,
-0.1557798683643341,
-0.3316735625267029,
-0.13158755004405975,
0.25896260142326355,
0.028992800042033195,
0.2791784703731537,
-0.09397007524967194,
0.006133750081062317,
0.41229334473609924,
0.12375135719776154,
-0.19915735721588135,
-0.37092798948287964,
-0.11767178773880005,
0.024307042360305786,
-0.10856122523546219,
-0.14391186833381653,
0.17009058594703674,
0.12371838837862015,
-0.3360506594181061,
0.034457024186849594,
-0.20560245215892792,
-0.2580389976501465,
0.321089506149292,
0.10198752582073212,
0.28671494126319885,
0.06701305508613586,
0.2236175239086151,
0.23094145953655243,
0.08655225485563278,
0.1521286964416504,
0.8312817811965942,
-0.24763697385787964,
-0.8462262153625488,
0.30436229705810547,
-0.5130510926246643,
0.3058376908302307,
0.10061416774988174,
-0.3390435576438904,
-0.07400450855493546,
-0.20738139748573303,
-0.09081381559371948,
-0.06435368210077286,
0.038515038788318634,
0.10529960691928864,
-0.10005736351013184,
-0.17680364847183228,
-0.5368046164512634,
0.5061168670654297,
-0.11586059629917145,
-0.12192316353321075,
0.11638034880161285,
-0.06408646702766418,
-0.2929754853248596,
0.5268892049789429,
-0.1695968508720398,
0.6717298030853271,
-0.11613762378692627,
0.00862477719783783,
0.16610953211784363,
-0.17383919656276703,
0.3820892870426178,
-0.3971763849258423,
0.019286559894680977,
-0.4172919988632202,
-0.18710008263587952,
-0.1575160175561905,
0.02883652225136757,
0.04503621906042099,
0.576889157295227,
-0.18671190738677979,
0.38532865047454834,
-0.10720746219158173,
0.4090869426727295,
0.01159259956330061,
0.13107037544250488,
0.27759650349617004,
-0.20574422180652618,
-0.09362340718507767,
0.07302097231149673,
-0.04812599718570709,
-0.030572157353162766,
0.125738263130188,
0.022563843056559563,
-0.22999444603919983,
-0.08618674427270889,
-0.3585098385810852,
0.30153897404670715,
-0.05802111327648163,
0.14969202876091003,
0.055017270147800446,
-0.5366526246070862,
0.4740401804447174,
0.42406174540519714,
0.09323059767484665,
-0.11589711904525757,
-0.15769363939762115,
0.11588791012763977,
0.024920012801885605,
0.07124790549278259,
-0.15679776668548584,
-0.04907354339957237,
0.062435708940029144,
0.24361565709114075,
-0.1971801519393921,
0.2300538718700409,
-0.12383440881967545,
-0.030562637373805046,
0.30557316541671753,
0.3118976950645447,
0.2201455682516098,
-0.5418585538864136,
-0.3424954116344452,
-0.1763361394405365,
0.11462423205375671,
-0.1732378453016281,
0.03705775365233421,
-0.08837537467479706,
0.002250729827210307,
0.007083594799041748,
0.03663923591375351,
-0.3459066152572632,
0.09612768888473511,
0.2780531048774719,
-0.07913266867399216,
0.06925860047340393,
0.4756681025028229,
0.3913167119026184,
-0.07222935557365417,
-0.17214566469192505,
0.09245403856039047,
0.19394154846668243,
-0.6047870516777039,
0.19335801899433136,
-0.040142226964235306,
0.23949603736400604,
0.18699173629283905,
0.1891753226518631,
0.15498879551887512,
-0.12686380743980408,
0.06810186803340912,
-0.5866594910621643,
0.03944653272628784,
-0.04644128680229187,
-0.07752270996570587,
0.1153251975774765,
0.02302643284201622,
-0.3197154104709625,
-0.09976398944854736,
0.0018916595727205276,
-0.16862323880195618,
0.17392835021018982,
0.07416587322950363,
0.10877068340778351,
0.10040638595819473,
0.2541716992855072,
-0.14940431714057922,
-0.2636880874633789,
0.008884014561772346,
0.013284265995025635,
0.12623322010040283,
-0.10435585677623749,
-0.2518173158168793,
0.1814359724521637,
-0.017695538699626923,
0.2021210491657257,
-0.28423288464546204,
-0.12611418962478638,
-0.1908905804157257,
-0.13103586435317993,
0.19569344818592072,
0.2580343186855316,
-0.011283628642559052,
0.43346863985061646,
0.11497931182384491,
-0.06326363235712051,
-0.5831514000892639,
0.25439953804016113,
-0.2832886874675751,
0.17872127890586853,
0.21027040481567383,
0.23358124494552612,
0.130525603890419,
0.1091153472661972,
-0.16993479430675507,
-0.09220597892999649,
-0.08637052774429321,
-0.08789439499378204,
0.25726571679115295,
-0.2967860698699951,
0.18091198801994324,
0.10534651577472687,
0.36114630103111267,
0.43785929679870605,
-0.08383607864379883,
-0.04778966307640076,
0.11389561742544174,
0.1188235953450203,
-0.32252079248428345,
0.20637385547161102,
0.09352438151836395,
0.23126353323459625,
-0.04270221292972565,
0.33176153898239136,
0.0004146061837673187,
-0.06434370577335358,
0.014007270336151123,
0.16942203044891357,
0.5861901044845581,
0.025117425248026848,
0.2621173560619354,
0.3344127833843231,
-0.05884956941008568,
0.12117090821266174,
0.15604740381240845,
-0.15733157098293304,
0.07283055782318115,
0.4479799270629883,
-0.21744033694267273,
0.09320058673620224,
0.31417205929756165,
0.1881575584411621,
-0.10475213080644608,
-0.5688256621360779,
0.18917712569236755,
0.2869033217430115,
-0.28631436824798584,
-0.10887225717306137,
0.1301439255475998,
0.7349352240562439,
-0.10732828825712204,
0.02950405701994896,
-0.32493653893470764,
-0.08673083782196045,
0.09725326299667358,
-0.09655050933361053,
-0.15835854411125183,
-0.2195175290107727,
-0.4849552512168884,
0.2818061113357544,
-0.18497924506664276,
-0.0466713085770607,
0.436139851808548,
0.2232355922460556,
-0.027703016996383667,
-0.4806589186191559,
0.09662517160177231,
0.15655073523521423,
0.08461709320545197,
-0.3090490698814392,
0.0834892988204956,
-0.02126191556453705,
-0.003815390169620514,
0.3777875602245331,
-0.24204541742801666,
0.33543407917022705,
0.36845776438713074,
0.007371477782726288,
-0.3682178258895874,
-0.061943572014570236,
-0.06302919238805771,
-0.007812677882611752,
0.37695595622062683,
0.0059909820556640625,
0.3021043539047241,
0.29833993315696716,
0.090074323117733,
-0.026135332882404327,
0.37975630164146423,
0.1009402871131897,
0.1272028684616089,
-0.520671546459198,
0.047071341425180435,
0.06125877797603607,
-0.10900790989398956,
-0.09821262955665588,
-0.23072892427444458,
-0.16103975474834442,
-0.18646842241287231,
0.3231506049633026,
0.05334801971912384,
0.22725337743759155,
0.16132961213588715,
-0.005935844965279102,
-0.06978733837604523,
0.27675187587738037,
0.3064691126346588,
0.035842426121234894,
-0.5206974744796753,
-0.016322538256645203,
-0.7225843071937561,
-0.09097015112638474,
-0.20591649413108826,
-0.14883676171302795,
-0.0006343405693769455,
0.28831496834754944,
0.2138850837945938,
0.3061714768409729,
-0.08222490549087524,
0.10767288506031036,
-0.03760407865047455,
0.3772448003292084,
-0.20530931651592255,
-0.16636401414871216,
-0.1563258320093155,
0.09864593297243118,
-0.05784156918525696,
-0.4393818974494934,
-0.025554616004228592,
0.2985115647315979,
-0.18393540382385254,
-0.059136807918548584,
-0.23759706318378448,
0.1494278460741043,
-0.24580910801887512,
0.3341522216796875,
-0.03453502804040909,
0.4197685718536377,
0.02575334906578064,
0.3332746624946594,
-0.4953845739364624,
-0.2681279182434082,
-0.21893365681171417,
0.20066794753074646,
-0.05079261586070061,
0.49449917674064636,
-0.36490291357040405,
0.05947938188910484,
-0.2512986958026886,
0.007737170904874802,
0.04681745916604996,
0.174448624253273,
-0.2876695394515991,
0.21983632445335388,
-0.148781880736351,
0.2688423991203308,
-0.012419093400239944,
0.04976024478673935,
-0.20282050967216492,
0.13408377766609192,
-0.05023236200213432,
-0.2751540541648865,
0.23194995522499084,
-0.2538371980190277,
-0.2683005928993225,
-0.017031848430633545,
0.15449568629264832,
0.22294333577156067,
0.190201073884964,
-0.5178755521774292,
-0.028196297585964203,
0.32566723227500916,
-0.17138755321502686,
-0.1206703782081604,
0.10295811295509338,
0.15810547769069672,
0.03846300020813942,
-0.15091723203659058,
0.22866542637348175,
0.3510141372680664,
-0.27457815408706665,
-0.15159307420253754,
-0.43643730878829956
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | > In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications.
> I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas.
>
> For the other datasets ton the other hand the user doesn't know in advance the splits so I would keep the dictionary by default. What do you think ?
Yes maybe this would be good. I think having to select 'train' from the resulting object why the user gave no split information is a confusing and not intuitive behavior. | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 107 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
> In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications.
> I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas.
>
> For the other datasets ton the other hand the user doesn't know in advance the splits so I would keep the dictionary by default. What do you think ?
Yes maybe this would be good. I think having to select 'train' from the resulting object why the user gave no split information is a confusing and not intuitive behavior. | [
-0.06853368133306503,
0.019808262586593628,
0.012349866330623627,
0.416345477104187,
0.15476343035697937,
0.1310771405696869,
0.5161144137382507,
0.33483368158340454,
0.32836660742759705,
0.07457056641578674,
-0.11742229014635086,
0.2238827645778656,
-0.13035759329795837,
0.07728097587823868,
-0.3574967086315155,
-0.14098097383975983,
-0.016141138970851898,
0.16677898168563843,
-0.3396333158016205,
-0.05412955954670906,
-0.37205976247787476,
0.30228808522224426,
-0.3071185350418091,
-0.10388454794883728,
-0.23331467807292938,
0.1547120064496994,
-0.1243327185511589,
0.2636174261569977,
-0.13068322837352753,
-0.311313271522522,
0.5264430046081543,
-0.03480275347828865,
0.4296828508377075,
0.17962539196014404,
-0.00012024362513329834,
0.06832389533519745,
0.2098928540945053,
-0.1570204496383667,
-0.28325629234313965,
-0.5928284525871277,
-0.0948919877409935,
-0.5000766515731812,
0.3716960549354553,
-0.18241310119628906,
-0.1818094551563263,
0.05876326933503151,
-0.055730514228343964,
-0.36925169825553894,
0.4264981150627136,
0.44044503569602966,
0.14177288115024567,
-0.23754315078258514,
-0.22233672440052032,
0.005309535656124353,
0.5322128534317017,
0.12710916996002197,
-0.15938520431518555,
0.26285579800605774,
0.08414581418037415,
-0.17083847522735596,
-0.14678165316581726,
0.07270130515098572,
-0.03782692179083824,
0.25050604343414307,
0.15275102853775024,
0.2516297996044159,
-0.21497809886932373,
-0.2802559435367584,
-0.04730944335460663,
0.22744733095169067,
0.6906313300132751,
-0.0038558654487133026,
-0.20169970393180847,
-0.2366117537021637,
-0.00830210093408823,
-0.15863241255283356,
0.235256165266037,
0.31785452365875244,
-0.0731077492237091,
0.30241286754608154,
-0.12140978127717972,
0.011999152600765228,
-0.27975136041641235,
0.13328346610069275,
-0.011735223233699799,
0.11401690542697906,
-0.1597454696893692,
0.3371415436267853,
0.09140674769878387,
0.11300654709339142,
0.27365994453430176,
-0.1419515609741211,
-0.05094309523701668,
0.14697055518627167,
-0.6654459834098816,
0.14631971716880798,
-0.09045102447271347,
-0.06977570801973343,
-0.08073185384273529,
0.13996535539627075,
0.20958903431892395,
0.022202569991350174,
-0.09406287223100662,
0.24171054363250732,
0.4280000329017639,
0.015215408056974411,
0.008943445980548859,
0.2975205183029175,
0.2508081793785095,
-0.16382212936878204,
-0.002723105251789093,
-0.09821226447820663,
-0.2451072633266449,
-0.3989141881465912,
-0.1590600311756134,
0.19138839840888977,
0.26669639348983765,
-0.16631999611854553,
-0.24468982219696045,
0.03935301676392555,
-0.3511970639228821,
0.01083018071949482,
-0.1631435602903366,
0.2812625765800476,
-0.0030978957656770945,
0.30634596943855286,
0.055603086948394775,
0.27007055282592773,
-0.1631048619747162,
-0.447964072227478,
-0.005200122948735952,
0.15098285675048828,
-0.3910146653652191,
-0.015298807993531227,
0.4608514606952667,
-0.07835935056209564,
0.0757174864411354,
0.19670239090919495,
-0.09856536984443665,
-0.31724151968955994,
-0.027844075113534927,
-0.3539453446865082,
0.1186477318406105,
0.24647897481918335,
0.13596011698246002,
0.24087373912334442,
0.3258976638317108,
-0.29795634746551514,
-0.176097571849823,
0.33703669905662537,
-0.5105863213539124,
-0.2835353910923004,
-0.021407270804047585,
0.0790359303355217,
-0.3109276294708252,
0.21604956686496735,
-0.27053818106651306,
0.23188945651054382,
0.0025536268949508667,
-0.08110342919826508,
-0.23969370126724243,
-0.3311723470687866,
-0.37820714712142944,
-0.3062495291233063,
-0.018465599045157433,
0.5380915999412537,
-0.7937145829200745,
0.2113923728466034,
-0.04397932067513466,
0.03044491820037365,
0.06453371047973633,
0.23736371099948883,
-0.3146848976612091,
0.14554044604301453,
-0.30041494965553284,
0.04512596130371094,
0.2184084802865982,
-0.15727975964546204,
-0.3521278500556946,
0.22494752705097198,
-0.0438508577644825,
0.14307449758052826,
0.194625586271286,
0.11602671444416046,
0.47476431727409363,
0.005496175494045019,
-0.14967401325702667,
0.173815056681633,
-0.10376030206680298,
0.03634573519229889,
-0.21120238304138184,
-0.28093770146369934,
0.24933291971683502,
0.19496995210647583,
0.16289395093917847,
0.14729823172092438,
0.18637892603874207,
-0.4255874454975128,
0.39470553398132324,
-0.03184650465846062,
0.2179584950208664,
0.05516766384243965,
0.24089795351028442,
0.020124021917581558,
0.2374696135520935,
0.001313086599111557,
-0.6431275010108948,
0.2445383071899414,
0.4549829661846161,
-0.05896622687578201,
-0.07157886028289795,
-0.18609492480754852,
-0.3736642301082611,
-0.08583047986030579,
-0.23124735057353973,
-0.06665590405464172,
-0.017678676173090935,
0.0032557249069213867,
-0.04785294458270073,
-0.17578212916851044,
-0.12723495066165924,
0.4778866469860077,
-0.24507007002830505,
0.11831731349229813,
-0.3356821537017822,
0.3488135039806366,
0.1532379537820816,
0.022626180201768875,
0.18737074732780457,
-0.058468542993068695,
0.24242496490478516,
-0.14303545653820038,
-0.05150983855128288,
0.20481139421463013,
0.3868688642978668,
-0.14221660792827606,
-0.012456230819225311,
-0.1445668786764145,
0.07290982455015182,
-0.20809809863567352,
-0.04535830765962601,
0.1602114886045456,
0.3658779263496399,
-0.15805774927139282,
-0.5012964010238647,
0.4670167565345764,
-0.29430732131004333,
0.26384326815605164,
-0.15892952680587769,
0.1330958902835846,
0.23315343260765076,
-0.061094027012586594,
-0.10297107696533203,
-0.0019975677132606506,
-0.1220468282699585,
-0.00663883239030838,
0.25332632660865784,
0.1580813080072403,
-0.24747081100940704,
-0.12646549940109253,
0.3704720139503479,
0.24740666151046753,
-0.23487815260887146,
0.14838740229606628,
-0.033000364899635315,
-0.09384456276893616,
0.2924909293651581,
0.34283947944641113,
0.4789251685142517,
0.12171881645917892,
-0.2401445508003235,
-0.054651737213134766,
0.11574443429708481,
-0.19574564695358276,
0.06618241220712662,
-0.015107393264770508,
0.17941808700561523,
0.20449522137641907,
0.08417137712240219,
0.05735943466424942,
-0.07460949569940567,
-0.1888592392206192,
0.22039923071861267,
0.1704452484846115,
-0.5285296440124512,
-0.006785033270716667,
-0.23586222529411316,
0.2502961754798889,
-0.3065749704837799,
-0.048177123069763184,
0.06679210066795349,
-0.28487464785575867,
-0.2406478375196457,
0.22470352053642273,
-0.12949919700622559,
0.08325417339801788,
-0.104254812002182,
0.24689316749572754,
-0.031073402613401413,
-0.19139665365219116,
0.13933169841766357,
-0.12902280688285828,
-0.2795022428035736,
0.014254216104745865,
0.044311851263046265,
-0.03558042272925377,
-0.07806932926177979,
0.0344357043504715,
-0.06949437409639359,
-0.22106418013572693,
-0.005524404346942902,
0.21168434619903564,
-0.04534246027469635,
0.07987210899591446,
0.19300566613674164,
-0.04382406175136566,
0.024609915912151337,
-0.16265736520290375,
0.12711070477962494,
0.22562536597251892,
0.04646233469247818,
0.22047699987888336,
0.27066361904144287,
-0.05058665946125984,
-0.17750786244869232,
-0.7641389966011047,
-0.2559477388858795,
-0.18180130422115326,
0.08705085515975952,
-0.11464326083660126,
-0.00855371356010437,
-0.0022580139338970184,
0.3254052698612213,
-0.09127727895975113,
0.251667320728302,
-0.13562175631523132,
-0.09449224174022675,
-0.2183259278535843,
0.5146270394325256,
-0.1794225126504898,
-0.30701693892478943,
0.212927907705307,
-0.16017621755599976,
0.030210338532924652,
0.35548096895217896,
-0.43251752853393555,
0.22592805325984955,
-0.02413889579474926,
0.08175317943096161,
-0.07068977504968643,
-0.04143556207418442,
0.13003666698932648,
-0.03490583226084709,
0.13923384249210358,
-0.0643521323800087,
-0.19017083942890167,
0.31005606055259705,
-0.09890087693929672,
0.0988740622997284,
0.1584567129611969,
0.49075284600257874,
-0.11986683309078217,
0.8878320455551147,
0.04150011017918587,
0.03027225472033024,
0.17540550231933594,
-0.05029328912496567,
0.34681764245033264,
0.12354803085327148,
-0.22705933451652527,
0.0012116774450987577,
-0.12443163990974426,
-0.34439563751220703,
0.3532142639160156,
-0.03565587103366852,
-0.1530625969171524,
-0.16828115284442902,
0.20799481868743896,
-0.24232301115989685,
-0.26232704520225525,
0.22395935654640198,
-0.1331666111946106,
-0.02970101684331894,
0.04865550622344017,
0.21545085310935974,
0.12331634759902954,
-0.11590134352445602,
-0.17193318903446198,
0.22451657056808472,
0.20536205172538757,
-0.05830741673707962,
0.09137889742851257,
-0.1581427901983261,
-0.26926979422569275,
0.19328565895557404,
-0.03912928327918053,
0.3117920160293579,
0.1488635241985321,
-0.06571398675441742,
0.04320219159126282,
0.2029719054698944,
0.765322208404541,
-0.22807365655899048,
-0.024464048445224762,
0.13498711585998535,
-0.1019810140132904,
-0.04619855433702469,
-0.30122512578964233,
-0.09848927706480026,
0.28428584337234497,
0.026463419198989868,
0.2631984353065491,
-0.11546140164136887,
-0.06272982060909271,
0.3587513267993927,
0.1263291984796524,
-0.25802773237228394,
-0.32870998978614807,
-0.12997405230998993,
0.06239920109510422,
-0.1074775755405426,
-0.1632821261882782,
0.16071273386478424,
0.07248090952634811,
-0.33962059020996094,
-0.029611755162477493,
-0.20273324847221375,
-0.19980290532112122,
0.35764527320861816,
0.1423179805278778,
0.21830523014068604,
0.04539550095796585,
0.2475810945034027,
0.13548482954502106,
0.1880694031715393,
0.2552327513694763,
0.8236982226371765,
-0.22309306263923645,
-0.8741762638092041,
0.2771153450012207,
-0.44765788316726685,
0.3850247263908386,
0.13487771153450012,
-0.30434584617614746,
-0.047881074249744415,
-0.2633567452430725,
-0.10172182321548462,
-0.07089494168758392,
-0.038050319999456406,
0.13526885211467743,
-0.08609329164028168,
-0.3213092088699341,
-0.5509394407272339,
0.49838685989379883,
-0.21601895987987518,
-0.15267787873744965,
0.12885430455207825,
0.05018659681081772,
-0.3783162832260132,
0.4786056876182556,
-0.09169622510671616,
0.7594625353813171,
-0.15346410870552063,
-0.009558036923408508,
0.12011013180017471,
-0.18982839584350586,
0.5620493292808533,
-0.33163315057754517,
-0.02034919708967209,
-0.4737030863761902,
-0.14791788160800934,
-0.199981227517128,
0.032611262053251266,
0.1313997060060501,
0.6535788774490356,
-0.2025286704301834,
0.40697023272514343,
-0.02167818695306778,
0.3880770206451416,
0.02783019468188286,
0.2338407337665558,
0.30218806862831116,
-0.19645904004573822,
-0.11497743427753448,
0.05628068000078201,
-0.06537576764822006,
0.005588363856077194,
0.043499041348695755,
-0.02286902442574501,
-0.2929771840572357,
-0.09812983870506287,
-0.2989468574523926,
0.2829633057117462,
-0.04616347327828407,
0.07562501728534698,
0.03631303831934929,
-0.466428279876709,
0.5202760696411133,
0.47342976927757263,
0.0500105582177639,
-0.03654240444302559,
-0.20118924975395203,
0.0731036439538002,
-0.022300221025943756,
0.05274973809719086,
-0.10054279863834381,
-0.04624147713184357,
0.12617334723472595,
0.2554224133491516,
-0.21631264686584473,
0.29503417015075684,
-0.1905876249074936,
0.0038558878004550934,
0.25296324491500854,
0.3160941004753113,
0.2802586257457733,
-0.5410069823265076,
-0.3653707206249237,
-0.12732627987861633,
0.18059141933918,
-0.09409027546644211,
0.02801409363746643,
-0.0596979558467865,
0.12221387773752213,
0.042545661330223083,
0.051162414252758026,
-0.39728057384490967,
0.05283048003911972,
0.16066165268421173,
-0.01697547361254692,
0.14481069147586823,
0.45664557814598083,
0.3148110806941986,
-0.11134591698646545,
-0.16866934299468994,
0.11236830800771713,
0.119443878531456,
-0.5705482959747314,
0.1371757537126541,
0.08574505895376205,
0.290977418422699,
0.10267112404108047,
0.14847677946090698,
0.15218248963356018,
-0.24430334568023682,
0.08302128314971924,
-0.48052865266799927,
0.08640865236520767,
-0.017475418746471405,
-0.11697931587696075,
0.07712651044130325,
-0.04166267067193985,
-0.2976435422897339,
-0.04533148556947708,
-0.028765378519892693,
-0.18239009380340576,
0.05981554836034775,
0.034987807273864746,
0.08923611044883728,
0.15885819494724274,
0.40675362944602966,
-0.22380226850509644,
-0.26279786229133606,
-0.022901153191924095,
-0.0026909969747066498,
0.08223148435354233,
-0.08435628563165665,
-0.21258226037025452,
0.19746695458889008,
0.03791005164384842,
0.25623053312301636,
-0.24460670351982117,
-0.19989436864852905,
-0.2053588330745697,
-0.14850743114948273,
0.14219707250595093,
0.3760245144367218,
-0.047277309000492096,
0.44162672758102417,
0.13797825574874878,
0.05412819981575012,
-0.5553631782531738,
0.3322673439979553,
-0.2706057131290436,
0.26410654187202454,
0.12303820252418518,
0.23636597394943237,
0.07926446944475174,
0.12048608064651489,
-0.08289163559675217,
-0.06383449584245682,
-0.1384110301733017,
-0.12154228240251541,
0.27171388268470764,
-0.2314949780702591,
0.3026963770389557,
0.1328430324792862,
0.307119220495224,
0.36155593395233154,
-0.07196152955293655,
-0.0967964380979538,
0.14690452814102173,
0.09214059263467789,
-0.33826443552970886,
0.24352115392684937,
0.12690551578998566,
0.21628320217132568,
-0.045145999640226364,
0.43225568532943726,
-0.06179862469434738,
-0.019985370337963104,
0.12371790409088135,
0.12307059019804001,
0.5733164548873901,
0.13062505424022675,
0.24343504011631012,
0.2835696339607239,
-0.0492272675037384,
0.150529682636261,
0.23479995131492615,
-0.12634815275669098,
0.08904807269573212,
0.4723780155181885,
-0.24399185180664062,
0.016135146841406822,
0.27196499705314636,
0.18435558676719666,
-0.024369530379772186,
-0.5952980518341064,
0.22274665534496307,
0.2796723246574402,
-0.30826330184936523,
-0.11413047462701797,
0.12211586534976959,
0.5427792072296143,
-0.12075626105070114,
0.07918117940425873,
-0.3032689690589905,
-0.08845219016075134,
0.05081670358777046,
-0.033920131623744965,
-0.1227206438779831,
-0.2430638074874878,
-0.4158157706260681,
0.28706470131874084,
-0.18072086572647095,
-0.14235271513462067,
0.39566999673843384,
0.14321772754192352,
-0.004016026854515076,
-0.42168715596199036,
0.15653172135353088,
0.12277864664793015,
0.12329478561878204,
-0.29926514625549316,
0.029511811211705208,
-0.10052838921546936,
0.05028301104903221,
0.3894432783126831,
-0.167859748005867,
0.24467399716377258,
0.4575294256210327,
0.06005552038550377,
-0.37886330485343933,
-0.048014890402555466,
-0.06913460046052933,
-0.09390652179718018,
0.39362233877182007,
-0.05027405917644501,
0.26470962166786194,
0.32441073656082153,
0.07582967728376389,
-0.019891051575541496,
0.29248058795928955,
0.1600426584482193,
0.07250231504440308,
-0.5550234317779541,
-0.042975910007953644,
0.06142522394657135,
-0.05876344442367554,
-0.03435622900724411,
-0.14921054244041443,
-0.10957911610603333,
-0.29294466972351074,
0.37056294083595276,
0.13260860741138458,
0.25467631220817566,
0.08928792923688889,
-0.0064054224640131,
-0.09466966986656189,
0.19241781532764435,
0.24129386246204376,
0.09981797635555267,
-0.5010783672332764,
0.008691474795341492,
-0.7816183567047119,
-0.09866093844175339,
-0.25418558716773987,
-0.19500306248664856,
-0.057068876922130585,
0.27555257081985474,
0.27925246953964233,
0.2758784890174866,
-0.14931465685367584,
0.20547376573085785,
0.05266974866390228,
0.3565358519554138,
-0.24022014439105988,
-0.2829422056674957,
-0.26154518127441406,
0.0218829195946455,
-0.06113582104444504,
-0.47716301679611206,
0.03345738351345062,
0.36629974842071533,
-0.183349609375,
-0.1305166780948639,
-0.07361915707588196,
0.21364229917526245,
-0.18717500567436218,
0.3538755178451538,
0.036460064351558685,
0.5024868249893188,
0.03445342183113098,
0.3173486888408661,
-0.34407925605773926,
-0.18590562045574188,
-0.26055097579956055,
0.2560063302516937,
-0.05599642172455788,
0.41947877407073975,
-0.36875149607658386,
0.12825711071491241,
-0.19309678673744202,
-0.008633013814687729,
0.0988132506608963,
0.2830578088760376,
-0.37227267026901245,
0.2633211314678192,
-0.1280459463596344,
0.2847014367580414,
-0.05948660522699356,
0.007520817220211029,
-0.17139311134815216,
0.13351236283779144,
-0.1347591131925583,
-0.1800507754087448,
0.2812541723251343,
-0.20795376598834991,
-0.23707488179206848,
-0.024469930678606033,
0.18726682662963867,
0.21236929297447205,
0.05686959624290466,
-0.510642945766449,
-0.12063998728990555,
0.4468553364276886,
-0.18624266982078552,
-0.06636783480644226,
0.05517604947090149,
0.08012944459915161,
0.03146542236208916,
-0.1960245668888092,
0.2442515790462494,
0.28783464431762695,
-0.2607945501804352,
-0.09115290641784668,
-0.41310620307922363
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | > Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
>
> `from datasets import load_dataset`
> `dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")`
>
> Displayed error:
> `... ArrowInvalid: CSV parse error: Expected 2 columns, got 1`
I'm also facing the same issue when trying to load from a csv file locally:
```python
from nlp import load_dataset
dataset = load_dataset('csv', data_files='sample_data.csv')
```
Error when executed from Google Colab:
```python
ArrowInvalid Traceback (most recent call last)
<ipython-input-34-79a8d4f65ed6> in <module>()
1 from nlp import load_dataset
----> 2 dataset = load_dataset('csv', data_files='sample_data.csv')
9 frames
/usr/local/lib/python3.7/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
547 # Download and prepare data
548 builder_instance.download_and_prepare(
--> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
550 )
551
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
461 if not downloaded_from_gcs:
462 self._download_and_prepare(
--> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
464 )
465 # Sync info
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
535 try:
536 # Prepare split will record examples associated to the split
--> 537 self._prepare_split(split_generator, **prepare_split_kwargs)
538 except OSError:
539 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in _prepare_split(self, split_generator)
863
864 generator = self._generate_tables(**split_generator.gen_kwargs)
--> 865 for key, table in utils.tqdm(generator, unit=" tables", leave=False):
866 writer.write_table(table)
867 num_examples, num_bytes = writer.finalize()
/usr/local/lib/python3.7/dist-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
213 def __iter__(self, *args, **kwargs):
214 try:
--> 215 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
216 # return super(tqdm...) will not catch exception
217 yield obj
/usr/local/lib/python3.7/dist-packages/tqdm/std.py in __iter__(self)
1102 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1103
-> 1104 for obj in iterable:
1105 yield obj
1106 # Update and possibly print the progressbar.
/usr/local/lib/python3.7/dist-packages/nlp/datasets/csv/ede98314803c971fef04bcee45d660c62f3332e8a74491e0b876106f3d99bd9b/csv.py in _generate_tables(self, files)
78 read_options=self.config.pa_read_options,
79 parse_options=self.config.pa_parse_options,
---> 80 convert_options=self.config.convert_options,
81 )
82 yield i, pa_table
/usr/local/lib/python3.7/dist-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: CSV parse error: Expected 1 columns, got 8
```
Version:
```
nlp==0.4.0
``` | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 319 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
> Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
>
> `from datasets import load_dataset`
> `dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")`
>
> Displayed error:
> `... ArrowInvalid: CSV parse error: Expected 2 columns, got 1`
I'm also facing the same issue when trying to load from a csv file locally:
```python
from nlp import load_dataset
dataset = load_dataset('csv', data_files='sample_data.csv')
```
Error when executed from Google Colab:
```python
ArrowInvalid Traceback (most recent call last)
<ipython-input-34-79a8d4f65ed6> in <module>()
1 from nlp import load_dataset
----> 2 dataset = load_dataset('csv', data_files='sample_data.csv')
9 frames
/usr/local/lib/python3.7/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
547 # Download and prepare data
548 builder_instance.download_and_prepare(
--> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
550 )
551
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
461 if not downloaded_from_gcs:
462 self._download_and_prepare(
--> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
464 )
465 # Sync info
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
535 try:
536 # Prepare split will record examples associated to the split
--> 537 self._prepare_split(split_generator, **prepare_split_kwargs)
538 except OSError:
539 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in _prepare_split(self, split_generator)
863
864 generator = self._generate_tables(**split_generator.gen_kwargs)
--> 865 for key, table in utils.tqdm(generator, unit=" tables", leave=False):
866 writer.write_table(table)
867 num_examples, num_bytes = writer.finalize()
/usr/local/lib/python3.7/dist-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
213 def __iter__(self, *args, **kwargs):
214 try:
--> 215 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
216 # return super(tqdm...) will not catch exception
217 yield obj
/usr/local/lib/python3.7/dist-packages/tqdm/std.py in __iter__(self)
1102 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1103
-> 1104 for obj in iterable:
1105 yield obj
1106 # Update and possibly print the progressbar.
/usr/local/lib/python3.7/dist-packages/nlp/datasets/csv/ede98314803c971fef04bcee45d660c62f3332e8a74491e0b876106f3d99bd9b/csv.py in _generate_tables(self, files)
78 read_options=self.config.pa_read_options,
79 parse_options=self.config.pa_parse_options,
---> 80 convert_options=self.config.convert_options,
81 )
82 yield i, pa_table
/usr/local/lib/python3.7/dist-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: CSV parse error: Expected 1 columns, got 8
```
Version:
```
nlp==0.4.0
``` | [
-0.030013779178261757,
0.16949120163917542,
0.02353612706065178,
0.27145469188690186,
0.2753947079181671,
0.17931675910949707,
0.404525488615036,
0.27959492802619934,
0.2873069941997528,
0.015039555728435516,
-0.04852303862571716,
0.34998244047164917,
-0.12127359956502914,
-0.06812375038862228,
-0.15201470255851746,
-0.15365639328956604,
-0.012230195105075836,
0.11965413391590118,
-0.4033185839653015,
-0.023968826979398727,
-0.35537487268447876,
0.33099883794784546,
-0.29756397008895874,
0.0998900830745697,
-0.07143989205360413,
0.198258638381958,
-0.0852634608745575,
0.37228116393089294,
-0.08679230511188507,
-0.3423321843147278,
0.5356944799423218,
-0.09469714760780334,
0.5112506151199341,
0.23747557401657104,
-0.00011798502964666113,
0.04065646976232529,
0.33066731691360474,
-0.11055580526590347,
-0.29953768849372864,
-0.6809143424034119,
0.02571607381105423,
-0.5392323136329651,
0.4017808437347412,
-0.14665496349334717,
-0.05278710275888443,
0.045710302889347076,
-0.033915407955646515,
-0.4215276539325714,
0.3402785360813141,
0.47663789987564087,
0.18219739198684692,
-0.0922984927892685,
-0.1318368762731552,
0.01574593409895897,
0.4828666150569916,
0.07375272363424301,
-0.1259506791830063,
0.3762858808040619,
0.020776331424713135,
-0.23927047848701477,
-0.15184926986694336,
0.007380320690572262,
-0.07874002307653427,
0.2552814185619354,
0.24917203187942505,
0.21387003362178802,
-0.24037867784500122,
-0.11536870896816254,
0.014031665399670601,
0.11309797316789627,
0.6585768461227417,
-0.17827871441841125,
-0.1866248995065689,
-0.09335979074239731,
0.027439214289188385,
-0.2190634161233902,
0.38255882263183594,
0.41126248240470886,
0.00991697609424591,
0.3105875849723816,
-0.1560349464416504,
0.0569581463932991,
-0.27170175313949585,
0.23798085749149323,
0.1065414696931839,
-0.004014246165752411,
-0.1554984152317047,
0.3119683265686035,
0.058688413351774216,
0.02258889377117157,
0.26619261503219604,
-0.14023979008197784,
-0.013808634132146835,
0.27101972699165344,
-0.6992923021316528,
0.32203778624534607,
-0.05800185352563858,
-0.007076933979988098,
-0.07017585635185242,
0.14338654279708862,
0.33512312173843384,
-0.04863108694553375,
-0.09252713620662689,
0.3708166480064392,
0.282100111246109,
0.11384637653827667,
-0.03876703232526779,
0.2824319899082184,
0.2630429267883301,
-0.20303629338741302,
0.029050257056951523,
-0.11952682584524155,
-0.2782037556171417,
-0.5090212225914001,
-0.12482556700706482,
0.22475001215934753,
0.251986563205719,
-0.25725454092025757,
-0.11204120516777039,
0.0733337476849556,
-0.22603288292884827,
0.014789870008826256,
-0.07448909431695938,
0.24702796339988708,
0.06017034873366356,
0.3175559937953949,
0.02030080556869507,
0.27006372809410095,
-0.1704094558954239,
-0.3315722942352295,
-0.017188971862196922,
0.12620267271995544,
-0.38910743594169617,
-0.0880582258105278,
0.5497085452079773,
-0.12397374212741852,
0.16717301309108734,
0.17200936377048492,
-0.12294578552246094,
-0.2391265630722046,
-0.06860379874706268,
-0.27523618936538696,
0.04806147515773773,
0.2800690829753876,
0.11434479057788849,
0.19008246064186096,
0.3180614709854126,
-0.19380269944667816,
-0.13557979464530945,
0.25221067667007446,
-0.3859456777572632,
-0.23240701854228973,
-0.1954537034034729,
0.09037865698337555,
-0.32136034965515137,
0.06263149529695511,
-0.3915349543094635,
0.015699299052357674,
0.045771192759275436,
-0.21208976209163666,
-0.18083205819129944,
-0.3092978000640869,
-0.30173271894454956,
-0.24161800742149353,
0.015050211921334267,
0.4399946928024292,
-0.687629759311676,
0.2028166949748993,
-0.10041670501232147,
0.060422517359256744,
0.1709199845790863,
0.2772904634475708,
-0.2981637120246887,
0.10156532377004623,
-0.28448933362960815,
0.07900620996952057,
0.23858030140399933,
-0.26470649242401123,
-0.33504560589790344,
0.3595811724662781,
-0.07177253812551498,
-0.08799967914819717,
0.0850764811038971,
0.04552270099520683,
0.3238093852996826,
0.0071837808936834335,
-0.14625534415245056,
0.3527287244796753,
-0.00470707006752491,
0.11352651566267014,
-0.23844055831432343,
-0.19017393887043,
0.2679091989994049,
0.25764018297195435,
-0.06188225373625755,
0.11297863721847534,
0.2957236170768738,
-0.47870194911956787,
0.33473914861679077,
-0.10288707911968231,
0.22260020673274994,
0.13314326107501984,
0.15726777911186218,
0.009999312460422516,
0.21815690398216248,
0.054247789084911346,
-0.6148232221603394,
0.15211915969848633,
0.23156419396400452,
-0.07915213704109192,
-0.2202429622411728,
-0.0017673894762992859,
-0.3930809795856476,
-0.030565664172172546,
-0.229591503739357,
0.022767141461372375,
-0.019513782113790512,
0.08060797303915024,
0.06079200282692909,
-0.125691220164299,
-0.04733709245920181,
0.38608232140541077,
-0.2677578330039978,
0.017337588593363762,
-0.40945979952812195,
0.3063095211982727,
0.09020646661520004,
-0.03824777156114578,
0.2489786446094513,
0.08637374639511108,
0.24965891242027283,
-0.14421798288822174,
-0.21049872040748596,
0.2916674315929413,
0.28535565733909607,
0.04716027155518532,
0.06955283880233765,
-0.2708466053009033,
0.0942477285861969,
-0.21336659789085388,
0.03224686160683632,
0.22618430852890015,
0.3391345143318176,
-0.03131629526615143,
-0.5053219199180603,
0.3971853256225586,
-0.3178347945213318,
0.24370133876800537,
-0.11350583285093307,
0.12336090952157974,
0.345356822013855,
-0.08925558626651764,
-0.08024493604898453,
-0.003689892590045929,
0.11090549826622009,
0.1402176469564438,
0.2556704580783844,
0.11419620364904404,
-0.24726103246212006,
-0.1746397614479065,
0.18617524206638336,
0.14005056023597717,
-0.1960376501083374,
0.21338137984275818,
0.015402477234601974,
-0.10661137849092484,
0.3125397264957428,
0.2956346273422241,
0.4571998715400696,
0.08773334324359894,
-0.259573370218277,
0.005609516054391861,
-0.02133224532008171,
-0.26130175590515137,
0.08915697038173676,
-0.007395394146442413,
0.06129774823784828,
0.2624715268611908,
0.28427812457084656,
0.0976947695016861,
-0.17619800567626953,
-0.143956258893013,
0.18582668900489807,
0.2496436983346939,
-0.5318590998649597,
0.04522673040628433,
-0.3609483540058136,
0.17624950408935547,
-0.2729724943637848,
0.010298676788806915,
0.04269106313586235,
-0.2635091543197632,
-0.3743283748626709,
0.2503642737865448,
-0.13243576884269714,
0.08167125284671783,
-0.13430768251419067,
0.20722094178199768,
0.04671798646450043,
-0.22974620759487152,
0.15254651010036469,
-0.2799640893936157,
-0.35819560289382935,
0.0062144435942173,
0.1478462666273117,
0.06759437918663025,
-0.060093045234680176,
0.06563255190849304,
-0.021606866270303726,
-0.21027882397174835,
-0.06016625836491585,
0.12729857861995697,
0.047848984599113464,
0.10656646639108658,
0.10829336196184158,
-0.1527346968650818,
-0.10618174821138382,
-0.194944366812706,
0.212802454829216,
0.04814013093709946,
-0.03276638686656952,
0.3588486313819885,
0.20197956264019012,
-0.1589805632829666,
-0.2023463100194931,
-0.6301297545433044,
-0.4012896418571472,
-0.29431697726249695,
0.11711915582418442,
-0.1430853009223938,
0.029728533700108528,
0.14408187568187714,
0.2027336061000824,
0.01926502212882042,
0.21478502452373505,
-0.08374523371458054,
-0.04464656114578247,
-0.20412315428256989,
0.5625197291374207,
-0.3179403841495514,
-0.42710694670677185,
0.13902030885219574,
-0.08060518652200699,
0.08827991038560867,
0.35255903005599976,
-0.49513089656829834,
0.18780389428138733,
-0.13956581056118011,
0.05355706438422203,
0.04825448989868164,
0.052081022411584854,
0.01558396965265274,
-0.08644811064004898,
0.08811326324939728,
-0.003708627074956894,
-0.1890091896057129,
0.19556215405464172,
0.03587738797068596,
0.0729665607213974,
0.24295732378959656,
0.4747934341430664,
-0.24802237749099731,
0.5842321515083313,
0.009764015674591064,
0.03393319249153137,
0.3762378990650177,
-0.1005922481417656,
0.33219245076179504,
0.11031289398670197,
-0.25103795528411865,
0.11598176509141922,
-0.0786156952381134,
-0.2959710955619812,
0.3519630432128906,
-0.0678921714425087,
-0.15857438743114471,
-0.14520572125911713,
0.21504893898963928,
-0.29017239809036255,
-0.20356927812099457,
0.21120452880859375,
-0.08546783030033112,
0.1272023320198059,
0.05957810953259468,
0.054494284093379974,
0.01788494735956192,
-0.35371658205986023,
-0.1255517452955246,
0.11143791675567627,
0.17168571054935455,
-0.05535909906029701,
0.06296972930431366,
-0.1966584175825119,
-0.30978676676750183,
0.2110656499862671,
-0.02790597267448902,
0.524881899356842,
0.025606472045183182,
-0.01790270209312439,
0.041318073868751526,
0.14298588037490845,
0.5542983412742615,
-0.1822308450937271,
0.10750298202037811,
0.16931869089603424,
-0.04393787682056427,
-0.265045166015625,
-0.2759803533554077,
-0.0867692306637764,
0.28657037019729614,
0.006858021020889282,
0.2773999869823456,
-0.0021760165691375732,
-0.0606578104197979,
0.34534361958503723,
0.15944141149520874,
-0.22052699327468872,
-0.43356698751449585,
-0.13999605178833008,
-0.027331780642271042,
-0.14274081587791443,
-0.289756715297699,
0.006612610071897507,
0.20676834881305695,
-0.26757749915122986,
0.1027107834815979,
-0.19629013538360596,
-0.1330084502696991,
0.24514588713645935,
0.11476987600326538,
0.23439395427703857,
0.1104072630405426,
0.16112235188484192,
0.11835946887731552,
0.22570163011550903,
0.09265969693660736,
0.7872276902198792,
-0.1599138081073761,
-0.7599287629127502,
0.2973039746284485,
-0.4518716335296631,
0.36190566420555115,
-0.0013823658227920532,
-0.2888437509536743,
-0.06698731333017349,
-0.21236787736415863,
-0.13933713734149933,
-0.15125758945941925,
-0.10442858934402466,
0.025481536984443665,
-0.007114938925951719,
-0.06714733690023422,
-0.4919826090335846,
0.5569459199905396,
-0.1400376707315445,
-0.09847820550203323,
0.046917181462049484,
-0.1453378051519394,
-0.31267064809799194,
0.5209845304489136,
-0.12842649221420288,
0.5789874792098999,
-0.15190573036670685,
-0.0054509639739990234,
0.20003286004066467,
-0.13952556252479553,
0.48390477895736694,
-0.207264706492424,
-0.012484082952141762,
-0.4585462510585785,
-0.03150143474340439,
-0.15262342989444733,
-0.03458123281598091,
0.1453835517168045,
0.6091602444648743,
-0.15397873520851135,
0.3765083849430084,
-0.013852305710315704,
0.3222677707672119,
0.0654192715883255,
0.26209843158721924,
0.3155656158924103,
-0.2835988700389862,
-0.3397402763366699,
0.0922289490699768,
-0.1965547353029251,
0.004989761859178543,
0.10007653385400772,
-0.07064379751682281,
-0.24134235084056854,
-0.05352625250816345,
-0.29767102003097534,
0.38316965103149414,
0.029288381338119507,
0.15490885078907013,
0.11623378098011017,
-0.5188090205192566,
0.5603209137916565,
0.4401639401912689,
0.16868923604488373,
-0.025227177888154984,
-0.18607106804847717,
0.046344298869371414,
-0.04809392988681793,
0.027810556814074516,
-0.1102217584848404,
0.09821298718452454,
-0.023759400472044945,
0.158579021692276,
-0.16911792755126953,
0.1771288812160492,
-0.1403254121541977,
-0.11487224698066711,
0.3304218351840973,
0.27385154366493225,
0.1867149919271469,
-0.3853923976421356,
-0.3837366998195648,
-0.2151714265346527,
0.11291514337062836,
-0.0398344025015831,
0.05041229724884033,
-0.029667392373085022,
0.11274965852499008,
-0.030191607773303986,
0.14326851069927216,
-0.3665797710418701,
0.14471320807933807,
0.2785315215587616,
-0.19779717922210693,
0.0565505251288414,
0.49272292852401733,
0.47394174337387085,
-0.07418714463710785,
-0.15002182126045227,
-0.028086986392736435,
0.06929708272218704,
-0.5587103366851807,
0.07505775988101959,
0.1246410608291626,
0.2721291780471802,
0.057442665100097656,
0.16891945898532867,
0.15497946739196777,
-0.16220659017562866,
0.09989401698112488,
-0.710355818271637,
-0.09169045835733414,
-0.061634838581085205,
-0.1580156832933426,
-0.01119217649102211,
0.11620516330003738,
-0.31196555495262146,
-0.0165693461894989,
-0.050460509955883026,
-0.18510527908802032,
0.04790747910737991,
-0.0239854846149683,
0.08720443397760391,
0.2771906852722168,
0.22180324792861938,
-0.2269229143857956,
-0.29908454418182373,
0.018352830782532692,
0.0005219504237174988,
0.05550630763173103,
-0.13081452250480652,
-0.1846291869878769,
0.19107452034950256,
0.009025434032082558,
0.05846283584833145,
-0.3238874673843384,
-0.27426981925964355,
-0.16182228922843933,
-0.14653392136096954,
0.07603338360786438,
0.2272852659225464,
-0.06379228830337524,
0.48463597893714905,
-0.08365747332572937,
-0.041697241365909576,
-0.421972393989563,
0.28521689772605896,
-0.25850656628608704,
0.2118566483259201,
0.07288959622383118,
0.24973037838935852,
0.14914456009864807,
0.09336881339550018,
-0.26186251640319824,
-0.04941584914922714,
-0.2759155035018921,
-0.06458865106105804,
0.2769884765148163,
-0.3756108283996582,
0.21401190757751465,
0.1697145253419876,
0.35236856341362,
0.307298481464386,
-0.12142077088356018,
-0.1546284705400467,
0.19085592031478882,
0.09321145713329315,
-0.3811015784740448,
0.15892523527145386,
0.09288614988327026,
0.34187161922454834,
-0.0889321118593216,
0.19982443749904633,
0.10193611681461334,
-0.26312652230262756,
-0.05588141083717346,
0.1367948055267334,
0.634898841381073,
0.03209500387310982,
0.06737828254699707,
0.324494332075119,
0.010559696704149246,
0.1128847748041153,
0.11044683307409286,
0.020756827667355537,
0.09667987376451492,
0.4950857162475586,
-0.11855591088533401,
-0.1133052408695221,
0.31282249093055725,
0.32235535979270935,
-0.1348772644996643,
-0.6856023669242859,
0.2883698642253876,
0.33937132358551025,
-0.1629759669303894,
-0.022608168423175812,
0.18497765064239502,
0.6478063464164734,
-0.04297906532883644,
0.05827741697430611,
-0.26279324293136597,
0.04049121215939522,
0.12007124722003937,
-0.08294273912906647,
-0.2660667300224304,
-0.12769228219985962,
-0.3850885033607483,
0.3157813251018524,
-0.20508792996406555,
0.03435959666967392,
0.4355415105819702,
0.25264590978622437,
-0.057806819677352905,
-0.5292374491691589,
0.2077120840549469,
0.22963052988052368,
0.002483382821083069,
-0.27342328429222107,
0.15712741017341614,
-0.025715768337249756,
0.013247344642877579,
0.2618348002433777,
-0.10363579541444778,
0.3829798102378845,
0.5243799686431885,
-0.00997934304177761,
-0.2622888386249542,
-0.15456388890743256,
-0.07804465293884277,
-0.10297498852014542,
0.46793583035469055,
0.034628670662641525,
0.29284796118736267,
0.3257478177547455,
0.1019153743982315,
0.0164211206138134,
0.30970433354377747,
0.18449273705482483,
0.11994406580924988,
-0.2552143931388855,
0.02837313711643219,
0.13635006546974182,
-0.03230464458465576,
-0.12545619904994965,
-0.1230398491024971,
-0.19665300846099854,
-0.1693420708179474,
0.4745277464389801,
0.21436232328414917,
0.27234065532684326,
0.04608459398150444,
0.002491489052772522,
-0.15789201855659485,
0.3675532639026642,
0.47694483399391174,
0.12467969954013824,
-0.46415871381759644,
-0.08050225675106049,
-0.8023316264152527,
-0.03819935768842697,
-0.1752462238073349,
-0.13339154422283173,
0.07959610968828201,
0.23593731224536896,
0.20381763577461243,
0.2918548583984375,
-0.2377464920282364,
0.1682194024324417,
-0.11486353725194931,
0.20356300473213196,
-0.20204190909862518,
-0.1842305064201355,
-0.16824834048748016,
0.09812171757221222,
-0.10451077669858932,
-0.46578237414360046,
0.0697082057595253,
0.2155238389968872,
-0.11859495937824249,
-0.19406411051750183,
-0.05902385711669922,
0.004515990614891052,
-0.16093415021896362,
0.28941357135772705,
0.05641402304172516,
0.4611915946006775,
0.020122352987527847,
0.20576423406600952,
-0.4807581305503845,
-0.2439056783914566,
-0.15270593762397766,
0.2866169810295105,
-0.09249190986156464,
0.40687981247901917,
-0.3040652275085449,
0.11966706812381744,
-0.271893709897995,
0.07069309800863266,
-0.006575401872396469,
0.1731264889240265,
-0.22512361407279968,
0.1730988770723343,
-0.1398608386516571,
0.14544110000133514,
-0.15900245308876038,
-0.035448648035526276,
-0.15135833621025085,
0.25482961535453796,
-0.10246657580137253,
-0.2797608971595764,
0.23722371459007263,
-0.3887583315372467,
-0.2771698832511902,
0.1228235736489296,
0.19837254285812378,
0.048045795410871506,
0.08207756280899048,
-0.49145010113716125,
0.0580233559012413,
0.35901451110839844,
-0.15768834948539734,
-0.05866951495409012,
0.0771084874868393,
0.013606476597487926,
0.044737737625837326,
-0.13282261788845062,
0.18173865973949432,
0.2837618887424469,
-0.2722814083099365,
-0.17856648564338684,
-0.36958402395248413
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi @kauvinlucas
You can use the latest versions of `datasets` to do this.
To do so, just `pip install datasets` instead of `nlp` (the library was renamed) and then
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='sample_data.csv') | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 38 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi @kauvinlucas
You can use the latest versions of `datasets` to do this.
To do so, just `pip install datasets` instead of `nlp` (the library was renamed) and then
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='sample_data.csv') | [
-0.03190924972295761,
0.09989118576049805,
0.0016063451766967773,
0.3416559100151062,
0.2253115475177765,
0.18575218319892883,
0.3781753182411194,
0.284349650144577,
0.30763310194015503,
-0.004604443907737732,
-0.07362975925207138,
0.33380237221717834,
-0.12021180242300034,
-0.036175377666950226,
-0.2130928933620453,
-0.05871254950761795,
0.036081016063690186,
0.07716226577758789,
-0.3771967589855194,
0.008842691779136658,
-0.36494767665863037,
0.30575329065322876,
-0.3254077434539795,
-0.0012915655970573425,
-0.08240250498056412,
0.21794354915618896,
-0.07449213415384293,
0.3262186348438263,
-0.1025666743516922,
-0.3898985683917999,
0.4821476936340332,
-0.08005876839160919,
0.4992659389972687,
0.22018513083457947,
-0.00011798576451838017,
0.012348666787147522,
0.33262765407562256,
-0.07379703968763351,
-0.283677875995636,
-0.5951533317565918,
0.01396864652633667,
-0.569907009601593,
0.3534559905529022,
-0.11556845903396606,
-0.03875885531306267,
0.06179865449666977,
-0.07087414711713791,
-0.3653354048728943,
0.3587922751903534,
0.5203019380569458,
0.19959188997745514,
-0.2032061368227005,
-0.08116871863603592,
-0.011846017092466354,
0.5204195976257324,
0.0610235258936882,
-0.12595829367637634,
0.27084460854530334,
0.04289747029542923,
-0.2233496904373169,
-0.09642014652490616,
0.09515640139579773,
-0.11263199150562286,
0.2678714990615845,
0.24688848853111267,
0.23863980174064636,
-0.15173494815826416,
-0.14565247297286987,
0.05187657102942467,
0.11531511694192886,
0.6635106801986694,
-0.1355140209197998,
-0.1767299324274063,
-0.10625573992729187,
-0.007009771652519703,
-0.15682654082775116,
0.3422958552837372,
0.3546641767024994,
-0.010201112367212772,
0.324220210313797,
-0.025032466277480125,
0.030125275254249573,
-0.2691827416419983,
0.18868908286094666,
0.11490844190120697,
0.02799251675605774,
-0.15706665813922882,
0.3057209253311157,
0.11489245295524597,
0.008692758157849312,
0.27003243565559387,
-0.08699378371238708,
-0.05800772085785866,
0.21134211122989655,
-0.6860405206680298,
0.3148464262485504,
-0.10570374876260757,
-0.013141386210918427,
-0.035592660307884216,
0.2131418138742447,
0.28882917761802673,
-0.01680302619934082,
-0.08778578788042068,
0.37010759115219116,
0.2730763256549835,
0.01193397119641304,
-0.013130150735378265,
0.2724970281124115,
0.25261190533638,
-0.20419538021087646,
0.06076965853571892,
-0.1565535068511963,
-0.2978443503379822,
-0.5129747986793518,
-0.07289649546146393,
0.14862573146820068,
0.24865467846393585,
-0.19944030046463013,
-0.1814742386341095,
0.12422297149896622,
-0.2517416179180145,
-0.017006224021315575,
-0.11777514964342117,
0.2602041959762573,
0.060921285301446915,
0.30257633328437805,
0.06452546268701553,
0.28384220600128174,
-0.11958354711532593,
-0.3835790753364563,
-0.024995626881718636,
0.10812938213348389,
-0.38422420620918274,
-0.07252109795808792,
0.5409680008888245,
-0.17913895845413208,
0.15886053442955017,
0.23512132465839386,
-0.13585901260375977,
-0.305810809135437,
-0.03467687964439392,
-0.28707242012023926,
0.049508582800626755,
0.261404812335968,
0.07528012990951538,
0.2058998942375183,
0.3096887171268463,
-0.21997922658920288,
-0.09281785041093826,
0.3182604908943176,
-0.42904213070869446,
-0.14968977868556976,
-0.1494021713733673,
0.11226876825094223,
-0.2766392230987549,
0.019795743748545647,
-0.3394760489463806,
0.0994090810418129,
0.03993389755487442,
-0.27384111285209656,
-0.18359392881393433,
-0.2900151014328003,
-0.27943092584609985,
-0.25762665271759033,
0.010821478441357613,
0.4110124111175537,
-0.7598646283149719,
0.201414555311203,
-0.03856130689382553,
0.06350613385438919,
0.13213881850242615,
0.20126692950725555,
-0.23806948959827423,
-0.008503012359142303,
-0.24705202877521515,
0.11706168949604034,
0.20014184713363647,
-0.22517822682857513,
-0.3695257902145386,
0.2039722204208374,
-0.027751952409744263,
-0.062138743698596954,
0.12563273310661316,
0.07675644010305405,
0.3356221914291382,
-0.03837084770202637,
-0.1593494713306427,
0.22007295489311218,
0.02073667384684086,
0.040535978972911835,
-0.25156453251838684,
-0.20807048678398132,
0.28074705600738525,
0.21861159801483154,
-0.017314288765192032,
0.09224196523427963,
0.2300778329372406,
-0.5964017510414124,
0.3289185166358948,
-0.043194789439439774,
0.2586238384246826,
0.07819211483001709,
0.2754147946834564,
0.06685806065797806,
0.2769869565963745,
0.03771059215068817,
-0.5350416898727417,
0.161991685628891,
0.4143815338611603,
-0.18038904666900635,
-0.15393583476543427,
-0.04273431375622749,
-0.39675387740135193,
-0.0268208310008049,
-0.1542128473520279,
-0.03629286214709282,
0.02122475951910019,
0.07247161865234375,
-0.02122175320982933,
-0.16581593453884125,
-0.10910847783088684,
0.39559340476989746,
-0.302071213722229,
0.06719184666872025,
-0.3681291341781616,
0.28369250893592834,
0.11721937358379364,
-0.04296049848198891,
0.2385156750679016,
0.0490528866648674,
0.29824209213256836,
-0.05326547473669052,
-0.14859727025032043,
0.21837648749351501,
0.29614874720573425,
-0.023737773299217224,
0.08416226506233215,
-0.24468950927257538,
0.053806379437446594,
-0.23915238678455353,
-0.002259349450469017,
0.28392747044563293,
0.3712148070335388,
-0.0852704867720604,
-0.530379056930542,
0.3305388391017914,
-0.2939954996109009,
0.23439928889274597,
-0.1652853786945343,
0.15702830255031586,
0.3054007887840271,
-0.0682467371225357,
-0.11165229976177216,
0.007436007261276245,
0.10652153193950653,
0.015338243916630745,
0.25190430879592896,
0.11618159711360931,
-0.2326776087284088,
-0.1420397162437439,
0.1057816594839096,
0.16799035668373108,
-0.20436802506446838,
0.2531196177005768,
-0.07566671818494797,
-0.11570831388235092,
0.3229525685310364,
0.29244089126586914,
0.4490131735801697,
0.13271421194076538,
-0.22604313492774963,
-0.00740315206348896,
0.0159654188901186,
-0.23071573674678802,
0.09595094621181488,
-0.0015275701880455017,
0.010451526381075382,
0.21426185965538025,
0.24928511679172516,
0.10785367339849472,
-0.1244596466422081,
-0.09465420246124268,
0.17808586359024048,
0.2668474316596985,
-0.5732171535491943,
0.027430584654211998,
-0.26530176401138306,
0.2753986120223999,
-0.21492592990398407,
-0.030228640884160995,
0.13303185999393463,
-0.278658002614975,
-0.31229519844055176,
0.30668631196022034,
-0.09250044822692871,
0.0600426122546196,
-0.1841714084148407,
0.22455939650535583,
0.04317469149827957,
-0.17017491161823273,
0.035923637449741364,
-0.23328588902950287,
-0.32391679286956787,
0.023443009704351425,
0.11936305463314056,
0.021177155897021294,
-0.009589413180947304,
0.12991535663604736,
0.024502314627170563,
-0.2708144187927246,
-0.06167575344443321,
0.08173973858356476,
0.017640678212046623,
0.10041792690753937,
0.1105278953909874,
-0.1548157036304474,
-0.08871080726385117,
-0.1159631535410881,
0.20299597084522247,
0.04291975498199463,
0.045604340732097626,
0.3967781662940979,
0.20874765515327454,
-0.14951995015144348,
-0.14101488888263702,
-0.6391364336013794,
-0.35710516571998596,
-0.265028178691864,
0.08002663403749466,
-0.10713081061840057,
-0.0271579772233963,
0.11395181715488434,
0.2778877317905426,
-0.029941421002149582,
0.19760024547576904,
-0.07529715448617935,
-0.13884373009204865,
-0.20923097431659698,
0.5889602899551392,
-0.2381601631641388,
-0.344022274017334,
0.20797279477119446,
-0.07785938680171967,
0.05026823282241821,
0.353405237197876,
-0.45124101638793945,
0.1194554790854454,
-0.0669650137424469,
0.05153942480683327,
-0.028497740626335144,
0.0880325511097908,
0.02037026733160019,
-0.056109752506017685,
0.07695364207029343,
-0.058726876974105835,
-0.18709005415439606,
0.18896222114562988,
-0.03959939628839493,
0.04704761132597923,
0.21589532494544983,
0.48718926310539246,
-0.17796668410301208,
0.5998910069465637,
0.14830340445041656,
0.05945094674825668,
0.3233928382396698,
-0.09910846501588821,
0.3191341161727905,
0.18644531071186066,
-0.26641643047332764,
0.09956549853086472,
-0.10268402099609375,
-0.256193071603775,
0.30762356519699097,
-0.002167852595448494,
-0.13401243090629578,
-0.0833597332239151,
0.288146048784256,
-0.31943053007125854,
-0.1619987040758133,
0.17129038274288177,
-0.06113860756158829,
0.049943335354328156,
0.05612194910645485,
0.094966821372509,
0.01946398615837097,
-0.29953521490097046,
-0.11098316311836243,
0.09191575646400452,
0.16197267174720764,
-0.07992279529571533,
0.08964918553829193,
-0.17468230426311493,
-0.33340707421302795,
0.23114332556724548,
-0.10662253946065903,
0.4669581949710846,
0.07669684290885925,
-0.03148592635989189,
0.0639585480093956,
0.17969636619091034,
0.6740598678588867,
-0.2698613107204437,
0.013665985316038132,
0.1487315595149994,
0.006290148943662643,
-0.26701289415359497,
-0.23154671490192413,
-0.08079199492931366,
0.2888070046901703,
0.017144182696938515,
0.23550808429718018,
-0.05774783343076706,
0.018979882821440697,
0.3866979777812958,
0.133091539144516,
-0.16930712759494781,
-0.4248484969139099,
-0.1115754246711731,
-0.09224538505077362,
-0.13780756294727325,
-0.2785549759864807,
0.0787896141409874,
0.09517527371644974,
-0.23793131113052368,
0.09147252142429352,
-0.21595247089862823,
-0.15524306893348694,
0.3093269169330597,
0.10340100526809692,
0.2509734332561493,
0.06630931049585342,
0.1835235059261322,
0.2088622897863388,
0.1656484305858612,
0.1542242020368576,
0.7836304306983948,
-0.20608100295066833,
-0.8606131672859192,
0.18667757511138916,
-0.48653924465179443,
0.3520001769065857,
-0.0379057377576828,
-0.323655366897583,
-0.03845059126615524,
-0.2536815404891968,
-0.13812322914600372,
-0.14362408220767975,
-0.11357731372117996,
0.06695075333118439,
0.02021680772304535,
-0.15113896131515503,
-0.5407763719558716,
0.5842849612236023,
-0.0988447368144989,
-0.14325594902038574,
0.10494577139616013,
-0.08336204290390015,
-0.3322688937187195,
0.4414898753166199,
-0.13709008693695068,
0.6065695285797119,
-0.09181714057922363,
-0.01831808313727379,
0.19568219780921936,
-0.1937956064939499,
0.4673048257827759,
-0.2404603213071823,
-0.048380546271800995,
-0.48103955388069153,
-0.07664664834737778,
-0.13387992978096008,
0.018135014921426773,
0.11375533044338226,
0.5482632517814636,
-0.2174837589263916,
0.37185919284820557,
-0.052297499030828476,
0.3556435704231262,
0.11375802755355835,
0.17656347155570984,
0.28925013542175293,
-0.2167292684316635,
-0.21155133843421936,
0.1327032446861267,
-0.17622235417366028,
-0.049677733331918716,
0.091872438788414,
0.04147270321846008,
-0.24310389161109924,
-0.058654770255088806,
-0.34831905364990234,
0.28332242369651794,
-0.039646606892347336,
0.08942520618438721,
0.16152232885360718,
-0.5426157116889954,
0.532210648059845,
0.4186403155326843,
0.16038547456264496,
-0.06920063495635986,
-0.19933335483074188,
0.0857054591178894,
-0.014980718493461609,
0.039660532027482986,
-0.11634978652000427,
0.006451931782066822,
-0.07936417311429977,
0.21091791987419128,
-0.2009471207857132,
0.2634614109992981,
-0.07819189876317978,
-0.08901980519294739,
0.2962188124656677,
0.29874521493911743,
0.20946301519870758,
-0.439155250787735,
-0.4187193810939789,
-0.22948578000068665,
0.11302889883518219,
-0.10193803906440735,
0.06604353338479996,
0.01445729285478592,
0.08063653856515884,
0.015248749405145645,
0.08450360596179962,
-0.3320159316062927,
0.16600002348423004,
0.22396138310432434,
-0.22008445858955383,
0.0675334483385086,
0.47052693367004395,
0.4601637125015259,
-0.11512573808431625,
-0.16585463285446167,
0.011858247220516205,
0.06889510899782181,
-0.5620560050010681,
0.08820454031229019,
0.14426644146442413,
0.2655462622642517,
0.11648880690336227,
0.1526084840297699,
0.1590537279844284,
-0.21411976218223572,
0.09945815801620483,
-0.6414238214492798,
-0.028289129957556725,
-0.06874814629554749,
-0.11283436417579651,
0.019199036061763763,
0.04541420936584473,
-0.44014641642570496,
-0.06793452054262161,
-0.042791999876499176,
-0.20415493845939636,
0.1093607097864151,
0.08375043421983719,
0.06770411878824234,
0.23189185559749603,
0.28308048844337463,
-0.27032920718193054,
-0.30738765001296997,
0.02743706665933132,
0.033502914011478424,
0.07874980568885803,
-0.15344592928886414,
-0.20207658410072327,
0.16729788482189178,
0.007880538702011108,
0.10117283463478088,
-0.28690803050994873,
-0.22970923781394958,
-0.21804988384246826,
-0.15983042120933533,
0.05655552074313164,
0.2896662950515747,
-0.02890494465827942,
0.47069039940834045,
-0.041292596608400345,
-0.11173214763402939,
-0.4392000436782837,
0.29424065351486206,
-0.24835693836212158,
0.1980830729007721,
0.0932520255446434,
0.2220347821712494,
0.1999330073595047,
0.12841477990150452,
-0.18480993807315826,
0.020167239010334015,
-0.1850951761007309,
-0.12822648882865906,
0.29763010144233704,
-0.38516372442245483,
0.22801697254180908,
0.2646116614341736,
0.32287901639938354,
0.3634852468967438,
-0.12321889400482178,
-0.07282082736492157,
0.16450801491737366,
0.1382201462984085,
-0.40423908829689026,
0.17504216730594635,
0.10528162121772766,
0.341006875038147,
-0.06519077718257904,
0.23658666014671326,
-0.0005588904023170471,
-0.22729359567165375,
0.01379626989364624,
0.14432194828987122,
0.6307869553565979,
-0.01797030121088028,
0.0716782659292221,
0.25164926052093506,
0.03174913302063942,
0.08588443696498871,
0.15558892488479614,
-0.02699572965502739,
0.0680793821811676,
0.48352664709091187,
-0.12092842906713486,
-0.049444735050201416,
0.39660894870758057,
0.2534797489643097,
-0.21152320504188538,
-0.6216851472854614,
0.2509859502315521,
0.3503722548484802,
-0.24134540557861328,
-0.09649219363927841,
0.1905127465724945,
0.7036418914794922,
-0.0018420470878481865,
0.08931749314069748,
-0.28068429231643677,
-0.07700218260288239,
0.118914894759655,
-0.1277201920747757,
-0.2567804455757141,
-0.14589253067970276,
-0.38347750902175903,
0.26250094175338745,
-0.21129408478736877,
-0.02720138430595398,
0.4355696737766266,
0.2089943140745163,
-0.07397998869419098,
-0.6115416884422302,
0.12319061905145645,
0.2633066475391388,
0.02916707843542099,
-0.2828444838523865,
0.10365896672010422,
-0.03196494281291962,
0.0002863779664039612,
0.31492167711257935,
-0.10493936389684677,
0.4309360384941101,
0.42550164461135864,
0.044236861169338226,
-0.28112849593162537,
-0.20401816070079803,
-0.07563471049070358,
-0.12835271656513214,
0.49427691102027893,
0.05122039467096329,
0.28057268261909485,
0.2355049103498459,
0.11054417490959167,
-0.01715509220957756,
0.32592225074768066,
0.1368454545736313,
0.12841138243675232,
-0.40426599979400635,
-0.03277670592069626,
0.06839869916439056,
-0.09034600853919983,
-0.1030426025390625,
-0.20668905973434448,
-0.14456337690353394,
-0.198406383395195,
0.48906874656677246,
0.2041657567024231,
0.2407858669757843,
0.10666216909885406,
0.017576701939105988,
-0.1467793881893158,
0.2029804140329361,
0.435909241437912,
0.07238970696926117,
-0.4763016104698181,
-0.0362265519797802,
-0.8368653655052185,
-0.03885730355978012,
-0.24050256609916687,
-0.1494383066892624,
0.030413653701543808,
0.21020565927028656,
0.265137255191803,
0.30322331190109253,
-0.13056431710720062,
0.16356849670410156,
-0.029582533985376358,
0.2831856310367584,
-0.1725388467311859,
-0.19708019495010376,
-0.12472231686115265,
0.11234010010957718,
-0.07597846537828445,
-0.4329158663749695,
0.03309312462806702,
0.24757370352745056,
-0.1090589165687561,
-0.19600270688533783,
-0.05958307906985283,
0.060254890471696854,
-0.21960517764091492,
0.3812233805656433,
0.03399422764778137,
0.4314742386341095,
0.01737780123949051,
0.2955246865749359,
-0.49496299028396606,
-0.22241105139255524,
-0.19638459384441376,
0.21988356113433838,
-0.13564656674861908,
0.43012917041778564,
-0.3860017657279968,
0.05600876361131668,
-0.17077822983264923,
0.003431124845519662,
0.003743380308151245,
0.18537725508213043,
-0.30795684456825256,
0.2642033100128174,
-0.10825929045677185,
0.21796263754367828,
-0.18414953351020813,
-0.0677725076675415,
-0.16159769892692566,
0.22488920390605927,
-0.07292839884757996,
-0.2904006540775299,
0.2474667876958847,
-0.3145463466644287,
-0.262949138879776,
0.06165286898612976,
0.23806428909301758,
0.12330099940299988,
0.1169600561261177,
-0.5120444893836975,
-0.028058521449565887,
0.3570629060268402,
-0.13960030674934387,
-0.09152649343013763,
0.1276019960641861,
0.04241711646318436,
0.06257320940494537,
-0.1565251350402832,
0.21580061316490173,
0.3222092390060425,
-0.23831713199615479,
-0.13074782490730286,
-0.38035303354263306
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi
I'm having a different problem with loading local csv.
```Python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='sample.csv')
```
gives `ValueError: Specified named and prefix; you can only specify one.` error
versions:
- datasets: 1.1.3
- python: 3.9.6
- pyarrow: 2.0.0 | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 42 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi
I'm having a different problem with loading local csv.
```Python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='sample.csv')
```
gives `ValueError: Specified named and prefix; you can only specify one.` error
versions:
- datasets: 1.1.3
- python: 3.9.6
- pyarrow: 2.0.0 | [
-0.05010125786066055,
0.078890860080719,
-0.02207377552986145,
0.34020841121673584,
0.22076629102230072,
0.1807747185230255,
0.45851796865463257,
0.2670554220676422,
0.2990829050540924,
0.10055480897426605,
-0.15667478740215302,
0.28780168294906616,
-0.06055677682161331,
-0.045883938670158386,
-0.23730552196502686,
-0.13097870349884033,
0.024251379072666168,
0.10261095315217972,
-0.330966591835022,
-0.006243575364351273,
-0.3678455054759979,
0.309358149766922,
-0.2815256714820862,
0.05309887230396271,
-0.05455280840396881,
0.28149065375328064,
-0.10776906460523605,
0.3274839520454407,
-0.062035948038101196,
-0.3914216160774231,
0.5134362578392029,
-0.06086784973740578,
0.5080312490463257,
0.3084243834018707,
-0.00011912232730537653,
0.06507110595703125,
0.3402865529060364,
-0.10587634146213531,
-0.2548360228538513,
-0.6348001956939697,
-0.03159425035119057,
-0.47767895460128784,
0.40742844343185425,
-0.11942242830991745,
-0.08513836562633514,
-0.0584869422018528,
-0.11203165352344513,
-0.37185803055763245,
0.3140222430229187,
0.5228910446166992,
0.17722497880458832,
-0.11554192751646042,
-0.11150649935007095,
0.016978120431303978,
0.5616161823272705,
0.057507406920194626,
-0.15251679718494415,
0.45099422335624695,
0.13942797482013702,
-0.2184305042028427,
-0.067759670317173,
-0.02093619480729103,
-0.09595948457717896,
0.3456401526927948,
0.21889570355415344,
0.27135926485061646,
-0.16112977266311646,
-0.1651812642812729,
0.06276758015155792,
0.1464381217956543,
0.6752828359603882,
-0.15112829208374023,
-0.2087823450565338,
-0.051012322306632996,
-0.03820592537522316,
-0.17322473227977753,
0.36680975556373596,
0.368252694606781,
-0.03691940754652023,
0.3713665008544922,
-0.09501517564058304,
0.10261346399784088,
-0.30967026948928833,
0.18996798992156982,
0.09275723993778229,
-0.010379262268543243,
-0.1794600486755371,
0.32944828271865845,
0.05136992037296295,
0.008640090003609657,
0.3520626723766327,
-0.17391282320022583,
0.030433712527155876,
0.24467626214027405,
-0.6652463674545288,
0.33531609177589417,
-0.15786612033843994,
0.00010623037815093994,
-0.0663316398859024,
0.1045311912894249,
0.25527575612068176,
-0.00458284467458725,
-0.0678224042057991,
0.38705387711524963,
0.25082364678382874,
0.05043349042534828,
0.029066894203424454,
0.2726482152938843,
0.28016209602355957,
-0.1642536222934723,
0.0055885836482048035,
-0.1359943449497223,
-0.37935376167297363,
-0.49048206210136414,
-0.05140524357557297,
0.19279947876930237,
0.22723139822483063,
-0.27142956852912903,
-0.16852156817913055,
0.11407032608985901,
-0.25110939145088196,
-0.027103863656520844,
-0.12708152830600739,
0.2699306011199951,
0.02800612524151802,
0.28998181223869324,
-0.04527105763554573,
0.21994999051094055,
-0.09047394245862961,
-0.27338850498199463,
-0.020960979163646698,
0.12612994015216827,
-0.32072874903678894,
-0.060075610876083374,
0.4831060469150543,
-0.26766911149024963,
0.1819712370634079,
0.16816070675849915,
-0.07943828403949738,
-0.24761095643043518,
-0.0827697217464447,
-0.267468124628067,
0.024396322667598724,
0.3265564739704132,
0.0672447681427002,
0.2302679866552353,
0.30574873089790344,
-0.2579580545425415,
-0.11019948124885559,
0.33981654047966003,
-0.43237197399139404,
-0.28353485465049744,
-0.1473100185394287,
0.09907428920269012,
-0.24383310973644257,
0.10044384747743607,
-0.2957792282104492,
-0.000055752694606781006,
0.0635555237531662,
-0.1275317519903183,
-0.1993078887462616,
-0.30816829204559326,
-0.2920992374420166,
-0.24203000962734222,
0.04905083775520325,
0.4407746195793152,
-0.8225072026252747,
0.1986003816127777,
0.02503681741654873,
0.02738850750029087,
0.11535598337650299,
0.24244149029254913,
-0.3161163330078125,
0.004800163209438324,
-0.2935258746147156,
0.05522774159908295,
0.13166680932044983,
-0.2720194160938263,
-0.3150511085987091,
0.2806832194328308,
-0.02704494073987007,
-0.06349925696849823,
0.14170238375663757,
-0.013866188935935497,
0.2569591999053955,
0.002997647039592266,
-0.1404380053281784,
0.217654749751091,
-0.0065032709389925,
0.07617159932851791,
-0.2597017288208008,
-0.21135257184505463,
0.20760348439216614,
0.27571648359298706,
-0.006185803562402725,
0.10821464657783508,
0.27528825402259827,
-0.6618196368217468,
0.32553642988204956,
-0.07917384803295135,
0.23644517362117767,
0.14124271273612976,
0.316790908575058,
0.042446915060281754,
0.3131127655506134,
0.06308191269636154,
-0.5907900333404541,
0.1977386176586151,
0.29249194264411926,
-0.1200515627861023,
-0.24756984412670135,
-0.07724428176879883,
-0.44602712988853455,
0.010409647598862648,
-0.23911817371845245,
0.037067923694849014,
-0.005987381562590599,
0.05923956632614136,
0.04211379960179329,
-0.15889999270439148,
-0.12591497600078583,
0.3727191388607025,
-0.2769038677215576,
0.07069724798202515,
-0.3248631954193115,
0.2909722328186035,
0.0696873813867569,
-0.05260583385825157,
0.18985112011432648,
-0.03921668231487274,
0.3254530727863312,
-0.1290651559829712,
-0.19196617603302002,
0.26378902792930603,
0.31601467728614807,
-0.033608391880989075,
0.059086643159389496,
-0.22304435074329376,
0.07767079025506973,
-0.19861702620983124,
-0.0506003275513649,
0.220977783203125,
0.37604597210884094,
-0.041905276477336884,
-0.5225034952163696,
0.3844503164291382,
-0.3002510666847229,
0.24476730823516846,
-0.15169133245944977,
0.0497826486825943,
0.2744935154914856,
-0.07788601517677307,
-0.08417783677577972,
0.002226606011390686,
0.0433272086083889,
0.07101041078567505,
0.30407819151878357,
0.1670399010181427,
-0.22749999165534973,
-0.2372961938381195,
0.0692998543381691,
0.12405502796173096,
-0.27220648527145386,
0.22210320830345154,
-0.09330948442220688,
-0.02964448556303978,
0.3234230577945709,
0.22252996265888214,
0.4506095051765442,
0.06279532611370087,
-0.2948077619075775,
-0.03118154965341091,
0.10552522540092468,
-0.26988911628723145,
0.08939669281244278,
0.015247277915477753,
0.008846069686114788,
0.2963631749153137,
0.23963995277881622,
0.0683368518948555,
-0.13142997026443481,
-0.12089239060878754,
0.202877938747406,
0.2157008796930313,
-0.5725856423377991,
-0.0012656748294830322,
-0.26375851035118103,
0.3105992078781128,
-0.27668002247810364,
-0.08021300286054611,
0.12460695207118988,
-0.22344639897346497,
-0.34645217657089233,
0.33406928181648254,
-0.13147130608558655,
0.08062024414539337,
-0.1163332462310791,
0.18133430182933807,
0.05504576861858368,
-0.28256097435951233,
0.03458748757839203,
-0.1984507441520691,
-0.3249220848083496,
0.00905849039554596,
0.08521896600723267,
-0.01814236491918564,
-0.07758777588605881,
0.02920527197420597,
-0.028032071888446808,
-0.24009299278259277,
-0.01595989614725113,
0.12613323330879211,
0.0647607147693634,
0.1917003095149994,
0.08445554971694946,
-0.06888556480407715,
-0.12278378754854202,
-0.19827136397361755,
0.2833006680011749,
0.08064205199480057,
0.0428977906703949,
0.29755058884620667,
0.18958689272403717,
-0.1723707616329193,
-0.1275826394557953,
-0.6349034309387207,
-0.42949333786964417,
-0.23925946652889252,
0.1076045110821724,
-0.11867031455039978,
-0.001945342868566513,
0.05665750429034233,
0.2694091796875,
-0.06297106295824051,
0.23773227632045746,
-0.11185874789953232,
-0.06653642654418945,
-0.272556334733963,
0.5867137908935547,
-0.27609285712242126,
-0.3623426854610443,
0.14514648914337158,
-0.10227926820516586,
0.03777804225683212,
0.2768314480781555,
-0.3733101487159729,
0.11320843547582626,
-0.06614349037408829,
0.1471007764339447,
0.061094626784324646,
0.06873565912246704,
0.02736898511648178,
-0.0744936540722847,
0.09183982759714127,
-0.027173185721039772,
-0.20526820421218872,
0.16101640462875366,
0.02984767034649849,
-0.012604311108589172,
0.31496888399124146,
0.41168177127838135,
-0.26836416125297546,
0.7119850516319275,
0.0053101591765880585,
0.0461544394493103,
0.3699711859226227,
-0.1068793460726738,
0.26141178607940674,
0.12995827198028564,
-0.2914157211780548,
0.059841256588697433,
-0.13901758193969727,
-0.3615033030509949,
0.32202649116516113,
-0.01774447411298752,
-0.11711598187685013,
-0.15752652287483215,
0.18376174569129944,
-0.3016546666622162,
-0.12334086000919342,
0.14809361100196838,
0.04861275106668472,
0.06789788603782654,
0.031270235776901245,
0.023134537041187286,
0.0952632874250412,
-0.26268377900123596,
-0.026971494778990746,
0.18450263142585754,
0.11511313170194626,
-0.08256769925355911,
0.05791938677430153,
-0.14542290568351746,
-0.2668079435825348,
0.2060002088546753,
-0.030478863045573235,
0.4638223648071289,
0.12041917443275452,
-0.038091305643320084,
0.0751824676990509,
0.1391245573759079,
0.6658435463905334,
-0.18725338578224182,
0.040241193026304245,
0.1610814481973648,
-0.07281456887722015,
-0.22942803800106049,
-0.3184126019477844,
-0.0606936439871788,
0.2017461657524109,
-0.07009987533092499,
0.3571450114250183,
0.02168203890323639,
-0.015634937211871147,
0.3535161316394806,
0.1525820940732956,
-0.19549362361431122,
-0.5041841864585876,
-0.14894317090511322,
-0.029512960463762283,
-0.17004531621932983,
-0.26631852984428406,
-0.0026113875210285187,
0.1693091094493866,
-0.24289335310459137,
0.05881114676594734,
-0.1647520363330841,
-0.10626517981290817,
0.28551721572875977,
0.12037786841392517,
0.19443044066429138,
0.03431285545229912,
0.22723251581192017,
0.17039623856544495,
0.21082575619220734,
0.21852974593639374,
0.7849230766296387,
-0.2690061628818512,
-0.8792743682861328,
0.23178356885910034,
-0.44296032190322876,
0.3828546404838562,
-0.05653141438961029,
-0.3647814989089966,
-0.09734105318784714,
-0.16912610828876495,
-0.13178229331970215,
-0.10594502836465836,
-0.04309104010462761,
0.02040204405784607,
-0.04679455980658531,
-0.08065664023160934,
-0.4824163317680359,
0.5758626461029053,
-0.10966536402702332,
-0.16443581879138947,
0.10318124294281006,
-0.09949064254760742,
-0.24972163140773773,
0.46416175365448,
-0.15046808123588562,
0.5777958035469055,
-0.18252700567245483,
-0.05282483622431755,
0.1386001706123352,
-0.218847393989563,
0.2997285723686218,
-0.180532768368721,
-0.059146247804164886,
-0.5199486017227173,
-0.13741688430309296,
-0.14236432313919067,
0.01871596649289131,
0.182249516248703,
0.5470428466796875,
-0.11068625748157501,
0.3982140123844147,
-0.09042245149612427,
0.4845089912414551,
0.054646000266075134,
0.15856775641441345,
0.3644183278083801,
-0.18093352019786835,
-0.19313660264015198,
0.10238485038280487,
-0.11365517973899841,
0.07719460874795914,
0.11257091909646988,
0.03355289623141289,
-0.2811999022960663,
-0.04723018407821655,
-0.24570566415786743,
0.2756599485874176,
-0.08485943078994751,
0.0824686735868454,
0.16377103328704834,
-0.5518717765808105,
0.4269959330558777,
0.42010122537612915,
0.1565534770488739,
-0.061682190746068954,
-0.20275697112083435,
0.04662987217307091,
0.02016950398683548,
0.05265725776553154,
-0.17700237035751343,
0.0165129192173481,
-0.07363013923168182,
0.21720147132873535,
-0.1906294822692871,
0.2250487506389618,
-0.14243637025356293,
-0.07260631024837494,
0.29982537031173706,
0.2638697624206543,
0.3123707175254822,
-0.4656919538974762,
-0.3996198773384094,
-0.3334161639213562,
0.1910334825515747,
-0.07966417074203491,
0.054559461772441864,
-0.06697481870651245,
0.08643043041229248,
-0.03837102651596069,
0.03691069036722183,
-0.3518146872520447,
0.10333353281021118,
0.2805391550064087,
-0.13400253653526306,
0.06814990192651749,
0.4437645673751831,
0.41148731112480164,
-0.09241907298564911,
-0.14175403118133545,
0.012345798313617706,
0.18053288757801056,
-0.5031493902206421,
0.0629163458943367,
0.16463975608348846,
0.22618065774440765,
0.07088341563940048,
0.22184772789478302,
0.20938141644001007,
-0.19263213872909546,
0.12312756478786469,
-0.5760722756385803,
-0.10136394947767258,
-0.10480649769306183,
-0.04836651310324669,
0.04923652485013008,
0.07409776002168655,
-0.3924597501754761,
-0.029316043481230736,
-0.05288149416446686,
-0.1870633363723755,
0.11701930314302444,
0.06939151138067245,
0.07277640700340271,
0.22162537276744843,
0.31390708684921265,
-0.16982924938201904,
-0.2607463002204895,
0.04979585111141205,
0.024652058258652687,
0.09384165704250336,
-0.14915341138839722,
-0.17487262189388275,
0.1690513640642166,
0.038607653230428696,
0.07815871387720108,
-0.3387267291545868,
-0.24550870060920715,
-0.1488035023212433,
-0.15506763756275177,
0.12018683552742004,
0.3304131031036377,
-0.01068074256181717,
0.4284215271472931,
0.025876831263303757,
-0.10093379765748978,
-0.46917790174484253,
0.3606738746166229,
-0.2741923928260803,
0.24139776825904846,
0.11078288406133652,
0.17284640669822693,
0.14725278317928314,
0.0840282291173935,
-0.1314839869737625,
-0.09080357104539871,
-0.16367335617542267,
-0.09130681306123734,
0.23506689071655273,
-0.39601725339889526,
0.1661299467086792,
0.2181178331375122,
0.36379697918891907,
0.32143744826316833,
-0.15751266479492188,
-0.07881681621074677,
0.19818037748336792,
0.12249896675348282,
-0.3466893434524536,
0.11061861366033554,
0.06567636132240295,
0.27383869886398315,
-0.048914697021245956,
0.23281705379486084,
0.1088709831237793,
-0.22855262458324432,
0.0511200949549675,
0.11011791974306107,
0.6970288753509521,
0.10444937646389008,
-0.016417987644672394,
0.2942008078098297,
0.035347748547792435,
0.15533332526683807,
0.18165655434131622,
0.01145707257091999,
0.05060707405209541,
0.49851495027542114,
-0.16619610786437988,
-0.13594388961791992,
0.3617098331451416,
0.30119314789772034,
-0.11362267285585403,
-0.5898250937461853,
0.3065498471260071,
0.2861318290233612,
-0.2570914030075073,
-0.13840964436531067,
0.20386946201324463,
0.6618596911430359,
0.02339109033346176,
0.10248369723558426,
-0.23274412751197815,
-0.07652324438095093,
0.12933573126792908,
-0.1519840657711029,
-0.25260651111602783,
-0.17176006734371185,
-0.31433236598968506,
0.2734127342700958,
-0.185474693775177,
-0.05794719606637955,
0.5163359045982361,
0.18139396607875824,
-0.05740147829055786,
-0.5273652076721191,
0.10547345131635666,
0.27697938680648804,
0.0459994338452816,
-0.2584884464740753,
0.1292852759361267,
-0.0076516494154930115,
-0.0329294428229332,
0.25044527649879456,
-0.1367979496717453,
0.4047156870365143,
0.4960862100124359,
0.031121499836444855,
-0.3256341218948364,
-0.2005135864019394,
-0.06164415925741196,
-0.08881445229053497,
0.4282938241958618,
-0.07732467353343964,
0.28973957896232605,
0.2834818959236145,
0.11977013945579529,
-0.019107209518551826,
0.34882014989852905,
0.10703042894601822,
0.10976143181324005,
-0.389310359954834,
-0.09222490340471268,
0.08067747950553894,
-0.0843072459101677,
-0.0558478906750679,
-0.19664382934570312,
-0.11759453266859055,
-0.16867215931415558,
0.5300332903862,
0.18415233492851257,
0.30178505182266235,
0.15997453033924103,
0.0007537472993135452,
-0.16381381452083588,
0.2719569504261017,
0.43490928411483765,
0.10356726497411728,
-0.49290913343429565,
-0.029148876667022705,
-0.763189971446991,
0.04153473675251007,
-0.1710263341665268,
-0.0912177711725235,
0.05205044522881508,
0.17290325462818146,
0.22111454606056213,
0.3072667121887207,
-0.21446339786052704,
0.18303732573986053,
-0.051186736673116684,
0.32760652899742126,
-0.19335529208183289,
-0.17758502066135406,
-0.20316500961780548,
0.11174806952476501,
-0.041238926351070404,
-0.4847296178340912,
0.11847493052482605,
0.1818845570087433,
-0.1158413365483284,
-0.22616474330425262,
-0.09439001232385635,
0.16276705265045166,
-0.2500813901424408,
0.416321337223053,
-0.034171320497989655,
0.4087321162223816,
0.008655387908220291,
0.32870617508888245,
-0.3305091857910156,
-0.19075904786586761,
-0.16954678297042847,
0.21700617671012878,
-0.13005635142326355,
0.3343854248523712,
-0.3007813096046448,
0.027695197612047195,
-0.20883241295814514,
0.02004099264740944,
0.020317256450653076,
0.20794229209423065,
-0.17296013236045837,
0.13537153601646423,
-0.07055861502885818,
0.12258550524711609,
-0.1733814924955368,
-0.08801322430372238,
-0.1297493427991867,
0.20345263183116913,
-0.08371272683143616,
-0.2797810137271881,
0.3309127688407898,
-0.34895914793014526,
-0.24432849884033203,
-0.009681148454546928,
0.1662706732749939,
0.09509731829166412,
0.11562119424343109,
-0.43291062116622925,
0.024394989013671875,
0.4081396460533142,
-0.16342955827713013,
-0.1169574111700058,
0.08993862569332123,
0.0687267929315567,
0.09803387522697449,
-0.17166228592395782,
0.17616260051727295,
0.3099903166294098,
-0.21362003684043884,
-0.22785842418670654,
-0.3829802870750427
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Oh.. I figured it out. According to issue #[42387](https://github.com/pandas-dev/pandas/issues/42387) from pandas, this new version does not accept None for both parameters (which was being done by the repo I'm testing). Dowgrading Pandas==1.0.4 and Python==3.8 worked | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 35 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Oh.. I figured it out. According to issue #[42387](https://github.com/pandas-dev/pandas/issues/42387) from pandas, this new version does not accept None for both parameters (which was being done by the repo I'm testing). Dowgrading Pandas==1.0.4 and Python==3.8 worked | [
0.024177130311727524,
0.12562057375907898,
0.030674844980239868,
0.31969934701919556,
0.2818751633167267,
0.13472792506217957,
0.4705212414264679,
0.34931454062461853,
0.272031307220459,
-0.01025901734828949,
-0.1092105358839035,
0.29390451312065125,
-0.04485129192471504,
-0.026567742228507996,
-0.30080416798591614,
-0.11475327610969543,
0.00911642611026764,
0.07203033566474915,
-0.4082449972629547,
0.040713027119636536,
-0.42872899770736694,
0.284796804189682,
-0.31107380986213684,
-0.05560988187789917,
-0.1527554988861084,
0.14611394703388214,
-0.1490890383720398,
0.28778472542762756,
-0.12128940969705582,
-0.39977458119392395,
0.47107160091400146,
-0.06757642328739166,
0.45769020915031433,
0.2826906442642212,
-0.00011902071128133684,
0.047055818140506744,
0.39229291677474976,
-0.10017749667167664,
-0.2630167305469513,
-0.5131828784942627,
-0.05918292701244354,
-0.4227258265018463,
0.37332767248153687,
-0.08522246032953262,
-0.04668803513050079,
0.0004196949303150177,
-0.11626152694225311,
-0.2997400164604187,
0.3223539888858795,
0.5077928304672241,
0.19791805744171143,
-0.1602942794561386,
-0.06207750737667084,
-0.050225045531988144,
0.4172463119029999,
0.10509093850851059,
-0.13975447416305542,
0.275655061006546,
0.03375628963112831,
-0.1532251387834549,
-0.18097811937332153,
0.027283934876322746,
-0.10148266702890396,
0.2782543897628784,
0.17983950674533844,
0.2050619125366211,
-0.061302684247493744,
-0.21062888205051422,
0.1289483606815338,
0.20368307828903198,
0.6754377484321594,
-0.07877903431653976,
-0.2856329083442688,
-0.10397912561893463,
-0.024378739297389984,
-0.13932108879089355,
0.35642555356025696,
0.2502124607563019,
0.001634908840060234,
0.35094693303108215,
0.02321617491543293,
0.02966822311282158,
-0.2598001956939697,
0.15405230224132538,
0.037388838827610016,
0.015851832926273346,
-0.19353170692920685,
0.2507588565349579,
0.034046776592731476,
-0.08238916844129562,
0.3526718020439148,
-0.17881765961647034,
-0.06239401176571846,
0.1976149082183838,
-0.6042402982711792,
0.28108933568000793,
-0.08361106365919113,
-0.02346538007259369,
-0.12945401668548584,
0.2142697274684906,
0.24888825416564941,
-0.0499458834528923,
-0.14015381038188934,
0.2775978744029999,
0.25237661600112915,
0.05321817472577095,
-0.02783094346523285,
0.22085025906562805,
0.31179022789001465,
-0.14497210085391998,
0.11078435182571411,
-0.10519885271787643,
-0.2220376580953598,
-0.5018787980079651,
-0.0677431970834732,
0.09685734659433365,
0.3531314730644226,
-0.17220425605773926,
-0.22108857333660126,
0.10064154118299484,
-0.2622007727622986,
0.022039903327822685,
-0.1620694100856781,
0.2267710566520691,
0.050232596695423126,
0.454551100730896,
0.07016641646623611,
0.21150197088718414,
-0.0344943143427372,
-0.30893224477767944,
-0.07693392038345337,
0.20316609740257263,
-0.3034771978855133,
-0.06849106401205063,
0.4976690113544464,
-0.22539106011390686,
0.15493297576904297,
0.3578965961933136,
-0.11394672095775604,
-0.24434056878089905,
-0.1136397272348404,
-0.33654481172561646,
0.09022992104291916,
0.3289269506931305,
0.0469030998647213,
0.2032092660665512,
0.2896733582019806,
-0.25097036361694336,
0.0028570592403411865,
0.3258141279220581,
-0.4054669439792633,
-0.15691404044628143,
-0.09990149736404419,
0.1198122650384903,
-0.2537452280521393,
0.057482585310935974,
-0.3325139284133911,
0.12305144965648651,
-0.007840760052204132,
-0.1515975147485733,
-0.12276836484670639,
-0.29704391956329346,
-0.2000424563884735,
-0.27997079491615295,
0.02122890017926693,
0.5202500224113464,
-0.7918004393577576,
0.22995904088020325,
0.029276147484779358,
0.10336285829544067,
0.08961409330368042,
0.18751703202724457,
-0.2415774017572403,
-0.10626085847616196,
-0.24051859974861145,
0.06254151463508606,
0.11657337844371796,
-0.23768681287765503,
-0.34217315912246704,
0.2998889982700348,
0.045334555208683014,
-0.010889802128076553,
0.19834083318710327,
-0.0019314151722937822,
0.284563273191452,
-0.04353881627321243,
-0.12881261110305786,
0.12677893042564392,
-0.016080254688858986,
0.022463535889983177,
-0.2836357057094574,
-0.2488526552915573,
0.24015463888645172,
0.15197695791721344,
0.13053743541240692,
0.09435286372900009,
0.14282770454883575,
-0.6783122420310974,
0.3488557040691376,
-0.0634344220161438,
0.2517105042934418,
0.1308165043592453,
0.33892640471458435,
0.022833053022623062,
0.2688421607017517,
0.05059376358985901,
-0.5418134331703186,
0.16987746953964233,
0.5113584995269775,
-0.1673700213432312,
-0.1205928772687912,
-0.06290239840745926,
-0.3830544352531433,
-0.03923111408948898,
-0.09948091208934784,
-0.05187423899769783,
0.017235703766345978,
0.03235630691051483,
-0.07815942168235779,
-0.11980800330638885,
-0.13567455112934113,
0.48589402437210083,
-0.29238882660865784,
0.08857006579637527,
-0.2583496570587158,
0.25665029883384705,
0.15341591835021973,
-0.10277268290519714,
0.27565234899520874,
-0.06539677828550339,
0.3416045606136322,
-0.04449787363409996,
-0.16515600681304932,
0.24885046482086182,
0.28025227785110474,
-0.036577820777893066,
0.0584946945309639,
-0.2135777324438095,
0.08955884724855423,
-0.12998992204666138,
-0.051295727491378784,
0.2908009886741638,
0.39927491545677185,
-0.0659133568406105,
-0.4376946985721588,
0.4224686026573181,
-0.3204883933067322,
0.22754663228988647,
-0.08411528170108795,
0.14034830033779144,
0.34457528591156006,
-0.08015498518943787,
-0.15266172587871552,
0.018264904618263245,
-0.03195891156792641,
0.038862213492393494,
0.3248752951622009,
0.1877734214067459,
-0.31843265891075134,
-0.15370434522628784,
0.07808557152748108,
0.13752517104148865,
-0.21647587418556213,
0.20417284965515137,
-0.05945799499750137,
-0.10622219741344452,
0.3829266428947449,
0.3608201742172241,
0.4717501401901245,
0.14985521137714386,
-0.25294867157936096,
-0.055789001286029816,
-0.010063919238746166,
-0.22691556811332703,
0.19549134373664856,
-0.031039588153362274,
0.0481213815510273,
0.190881609916687,
0.18684415519237518,
0.09774292260408401,
-0.16961669921875,
-0.0430326983332634,
0.23520785570144653,
0.24862439930438995,
-0.6367043256759644,
-0.029491279274225235,
-0.26270782947540283,
0.3036533296108246,
-0.11648513376712799,
-0.0980641320347786,
0.11438527703285217,
-0.31414729356765747,
-0.34368860721588135,
0.30974844098091125,
-0.1371874362230301,
0.0977562963962555,
-0.3261147141456604,
0.21586701273918152,
0.06911047548055649,
-0.10335501283407211,
-0.026837071403861046,
-0.1415639966726303,
-0.2339591681957245,
0.03656764701008797,
0.09740380197763443,
-0.033090464770793915,
-0.0662379115819931,
0.11174050718545914,
0.03172533959150314,
-0.2880461812019348,
-0.06588633358478546,
0.08800512552261353,
-0.0089438296854496,
0.1357586681842804,
0.16093021631240845,
-0.09798084199428558,
-0.1344274878501892,
-0.10080692172050476,
0.14990168809890747,
0.008399536833167076,
0.07239961624145508,
0.27143800258636475,
0.18623311817646027,
-0.15338192880153656,
-0.17349553108215332,
-0.6161037087440491,
-0.24893127381801605,
-0.2709670662879944,
0.061967890709638596,
-0.12477308511734009,
-0.058524973690509796,
0.13504691421985626,
0.36591702699661255,
0.02116064354777336,
0.30912014842033386,
-0.06359928846359253,
-0.15743601322174072,
-0.29681769013404846,
0.6772482991218567,
-0.1667860597372055,
-0.3600409924983978,
0.26590824127197266,
-0.09876763075590134,
0.08517139405012131,
0.3439120054244995,
-0.32360178232192993,
0.05581926181912422,
-0.11751876771450043,
0.09738215804100037,
0.003348931670188904,
0.10363855212926865,
0.08256921917200089,
-0.011040864512324333,
0.033440910279750824,
-0.08142182230949402,
-0.18239115178585052,
0.1710588037967682,
-0.0009191334247589111,
-0.032353006303310394,
0.2558738887310028,
0.5632572174072266,
-0.1767580807209015,
0.6726997494697571,
0.04564427211880684,
0.09220843017101288,
0.3408696949481964,
-0.05847528576850891,
0.4342023432254791,
0.20905476808547974,
-0.2655889689922333,
-0.006774105131626129,
-0.07117854058742523,
-0.181089386343956,
0.2537305951118469,
-0.05171046406030655,
-0.07809825241565704,
-0.13052323460578918,
0.2020474076271057,
-0.30980995297431946,
-0.1612521857023239,
0.14122101664543152,
-0.0876438319683075,
0.025649912655353546,
0.05072515830397606,
0.18570226430892944,
0.017452027648687363,
-0.1868579089641571,
-0.08180275559425354,
0.12752386927604675,
0.26159512996673584,
-0.12611019611358643,
0.19834962487220764,
-0.024058934301137924,
-0.33718159794807434,
0.23361030220985413,
-0.06988944113254547,
0.5109393000602722,
0.16073894500732422,
-0.11341547966003418,
0.05736018344759941,
0.12830178439617157,
0.7509252429008484,
-0.25016510486602783,
-0.04415211081504822,
0.18701662123203278,
-0.16030564904212952,
-0.31925660371780396,
-0.21508316695690155,
-0.07816734164953232,
0.2765807509422302,
-0.0009714402258396149,
0.20785737037658691,
-0.016818344593048096,
-0.08026588708162308,
0.37387293577194214,
0.042471371591091156,
-0.13558609783649445,
-0.37712961435317993,
-0.13345956802368164,
-0.11772990226745605,
-0.07322736084461212,
-0.274385005235672,
0.18398723006248474,
0.04834400489926338,
-0.2974911034107208,
0.11165820062160492,
-0.3248670995235443,
-0.2815505564212799,
0.378383994102478,
0.08409146964550018,
0.2123313546180725,
0.10834825783967972,
0.18124809861183167,
0.1921924203634262,
0.12030299007892609,
0.28902745246887207,
0.7029070258140564,
-0.27057352662086487,
-0.8506485223770142,
0.19134420156478882,
-0.5073081851005554,
0.3283645510673523,
0.08726653456687927,
-0.36355751752853394,
-0.07221213728189468,
-0.27846163511276245,
-0.15007388591766357,
-0.10707522183656693,
-0.12962765991687775,
0.10558206588029861,
-0.04387374594807625,
-0.17219027876853943,
-0.49354520440101624,
0.4711263179779053,
-0.06566847860813141,
-0.18559864163398743,
0.14172273874282837,
0.05178402364253998,
-0.327921986579895,
0.3642805218696594,
-0.12679171562194824,
0.5505492687225342,
-0.01722550392150879,
-0.00042948126792907715,
0.21557098627090454,
-0.2124699354171753,
0.3772597312927246,
-0.012718461453914642,
0.01682552695274353,
-0.4445341229438782,
-0.18483974039554596,
-0.12344665825366974,
0.03128213807940483,
0.22252196073532104,
0.4833865761756897,
-0.19048970937728882,
0.32468345761299133,
-0.11991000175476074,
0.4244747459888458,
0.16692376136779785,
0.1593373417854309,
0.172135591506958,
-0.14845356345176697,
-0.3074180483818054,
0.12487360835075378,
-0.09983228147029877,
-0.16808706521987915,
0.1148492619395256,
-0.011300789192318916,
-0.25711867213249207,
-0.07781550288200378,
-0.27177658677101135,
0.23731473088264465,
-0.06369630992412567,
0.09617282450199127,
0.17719802260398865,
-0.49589765071868896,
0.4706730544567108,
0.411484956741333,
0.20120620727539062,
-0.11712174117565155,
-0.20640674233436584,
0.10937593877315521,
0.015281688421964645,
0.07645843178033829,
-0.20286421477794647,
-0.03432822227478027,
0.0464252308011055,
0.2529504597187042,
-0.17381353676319122,
0.3091200292110443,
-0.15782035887241364,
-0.0804695338010788,
0.25285378098487854,
0.2375117987394333,
0.13095605373382568,
-0.49372488260269165,
-0.41207876801490784,
-0.32137203216552734,
0.18612666428089142,
-0.14945891499519348,
0.07680822908878326,
-0.05767145752906799,
0.16122020781040192,
-0.004729717969894409,
0.021100804209709167,
-0.31723296642303467,
0.10477332770824432,
0.34275883436203003,
-0.16700392961502075,
0.18070635199546814,
0.49324464797973633,
0.38812056183815,
-0.15073344111442566,
-0.14033587276935577,
0.055511750280857086,
0.16454358398914337,
-0.5076982378959656,
0.2135137915611267,
0.14130769670009613,
0.2084483951330185,
0.13761374354362488,
0.16129490733146667,
0.1666216254234314,
-0.1460343599319458,
0.09104673564434052,
-0.5139105319976807,
-0.07725641876459122,
-0.06548282504081726,
-0.12678267061710358,
0.04362794756889343,
-0.01413477212190628,
-0.45893019437789917,
0.0014190785586833954,
-0.1196267157793045,
-0.2196674942970276,
0.1575872302055359,
0.12237810343503952,
0.013110769912600517,
0.22238069772720337,
0.25802740454673767,
-0.15824101865291595,
-0.30682840943336487,
0.05204247683286667,
-0.0006023384630680084,
0.09878749400377274,
-0.13446402549743652,
-0.24712447822093964,
0.16420090198516846,
0.03223133832216263,
0.06240592896938324,
-0.2403770238161087,
-0.23711827397346497,
-0.280154287815094,
-0.13468584418296814,
0.06472215056419373,
0.4185422956943512,
-0.03978218883275986,
0.41316935420036316,
0.003538660705089569,
-0.1441861093044281,
-0.4067816138267517,
0.25329917669296265,
-0.26913103461265564,
0.210089772939682,
0.1308116912841797,
0.19864799082279205,
0.20702172815799713,
0.1136949211359024,
-0.08413106203079224,
0.02577005699276924,
-0.335329532623291,
-0.14867308735847473,
0.2564750909805298,
-0.3860015869140625,
0.1391390562057495,
0.2921794056892395,
0.2507372200489044,
0.38625356554985046,
-0.14122110605239868,
-0.047428347170352936,
0.0925099328160286,
0.13789817690849304,
-0.38008174300193787,
0.18790149688720703,
0.07736703753471375,
0.28324371576309204,
-0.009632226079702377,
0.2677394151687622,
-0.020547829568386078,
-0.29517680406570435,
0.09835842251777649,
0.1745266616344452,
0.6494081616401672,
-0.039068229496479034,
0.12729015946388245,
0.33467817306518555,
0.03468016907572746,
0.09820091724395752,
0.2503218352794647,
-0.05153096094727516,
0.05014323815703392,
0.4086127281188965,
-0.14006900787353516,
-0.06180812418460846,
0.27935439348220825,
0.25578996539115906,
-0.22221872210502625,
-0.597309410572052,
0.30440372228622437,
0.2913835346698761,
-0.3806106448173523,
-0.15114998817443848,
0.2046426683664322,
0.6978529691696167,
-0.014146544970571995,
0.10912727564573288,
-0.2954772412776947,
-0.08409915864467621,
0.03142569586634636,
-0.16307269036769867,
-0.25954923033714294,
-0.2324002981185913,
-0.3630487322807312,
0.2766634225845337,
-0.17445108294487,
-0.011866375803947449,
0.48519858717918396,
0.17586538195610046,
-0.09408405423164368,
-0.5722901225090027,
0.14028632640838623,
0.1994098722934723,
0.07950636744499207,
-0.2412603348493576,
0.03886323422193527,
-0.025779277086257935,
-0.08723403513431549,
0.31519293785095215,
-0.07330909371376038,
0.4634869396686554,
0.42647743225097656,
0.08314290642738342,
-0.3347368836402893,
-0.06770569086074829,
-0.15419849753379822,
-0.05751600116491318,
0.4183605909347534,
0.053432147949934006,
0.3305986225605011,
0.18601039052009583,
0.14430654048919678,
-0.012256923131644726,
0.3317755460739136,
0.08065390586853027,
0.1279873549938202,
-0.489330530166626,
0.041360724717378616,
0.10825779289007187,
-0.0676126778125763,
-0.025609228760004044,
-0.17738425731658936,
-0.10963743925094604,
-0.2583313286304474,
0.4641066789627075,
0.10546345263719559,
0.20559310913085938,
0.0880957767367363,
0.017281264066696167,
-0.13676230609416962,
0.15606583654880524,
0.39461323618888855,
-0.07017052918672562,
-0.42676234245300293,
0.05981267988681793,
-0.8037465810775757,
-0.11258158832788467,
-0.14317798614501953,
-0.07940611243247986,
-0.016454044729471207,
0.20919102430343628,
0.23410648107528687,
0.17632509768009186,
-0.07455909252166748,
0.12776197493076324,
0.04292302951216698,
0.20663656294345856,
-0.21728283166885376,
-0.13127350807189941,
-0.1636931449174881,
0.04225945100188255,
-0.08426114916801453,
-0.42471843957901,
0.047063518315553665,
0.23541489243507385,
-0.08742183446884155,
-0.17026571929454803,
-0.12047838419675827,
0.07100474834442139,
-0.1706647127866745,
0.37371826171875,
0.036857664585113525,
0.3752526044845581,
0.0016464628279209137,
0.22927352786064148,
-0.4571589231491089,
-0.16475220024585724,
-0.20085833966732025,
0.25131717324256897,
-0.10263162851333618,
0.45415884256362915,
-0.3759487271308899,
-0.05179367586970329,
-0.16079123318195343,
0.049948111176490784,
-0.045147575438022614,
0.20263898372650146,
-0.3483146131038666,
0.32505810260772705,
-0.17046087980270386,
0.15646332502365112,
-0.17078830301761627,
-0.09885971993207932,
-0.21299439668655396,
0.25105971097946167,
-0.08806432038545609,
-0.32086846232414246,
0.2898322641849518,
-0.399258553981781,
-0.2384379506111145,
-0.07259127497673035,
0.20068064332008362,
0.15234199166297913,
0.11475342512130737,
-0.45945751667022705,
-0.05466034635901451,
0.3439134657382965,
-0.09735795110464096,
-0.192215234041214,
0.09972065687179565,
-0.016141904518008232,
0.1078803539276123,
-0.1731545776128769,
0.1773279309272766,
0.33913907408714294,
-0.25542715191841125,
-0.18968604505062103,
-0.3545408844947815
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi,
I got an `OSError: Cannot find data file. ` when I tried to use load_dataset with tsv files. I have checked the paths, and they are correct.
versions
- python: 3.7.9
- datasets: 1.1.3
- pyarrow: 2.0.0
- transformers: 4.2.2
~~~
data_files = {"train": "train.tsv", "test",: "test.tsv"}
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
~~~
The entire Error message is on below:
```08/14/2021 16:55:44 - INFO - __main__ - load a local file for train: /project/media-framing/transformer4/data/0/val/label1.tsv
08/14/2021 16:55:44 - INFO - __main__ - load a local file for test: /project/media-framing/transformer4/data/unlabel/test.tsv
Using custom data configuration default
Downloading and preparing dataset csv/default-00a4200ae8507533 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /usr4/cs542sp/hey1/.cache/huggingface/datasets/csv/default-00a4200ae8507533/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Traceback (most recent call last):
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 592, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 944, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/arrow_writer.py", line 307, in finalize
self.stream.close()
File "pyarrow/io.pxi", line 132, in pyarrow.lib.NativeFile.close
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: error closing file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_glue.py", line 484, in <module>
main()
File "run_glue.py", line 243, in main
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/load.py", line 610, in load_dataset
ignore_verifications=ignore_verifications,
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 515, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 594, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file. ``` | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 229 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi,
I got an `OSError: Cannot find data file. ` when I tried to use load_dataset with tsv files. I have checked the paths, and they are correct.
versions
- python: 3.7.9
- datasets: 1.1.3
- pyarrow: 2.0.0
- transformers: 4.2.2
~~~
data_files = {"train": "train.tsv", "test",: "test.tsv"}
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
~~~
The entire Error message is on below:
```08/14/2021 16:55:44 - INFO - __main__ - load a local file for train: /project/media-framing/transformer4/data/0/val/label1.tsv
08/14/2021 16:55:44 - INFO - __main__ - load a local file for test: /project/media-framing/transformer4/data/unlabel/test.tsv
Using custom data configuration default
Downloading and preparing dataset csv/default-00a4200ae8507533 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /usr4/cs542sp/hey1/.cache/huggingface/datasets/csv/default-00a4200ae8507533/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Traceback (most recent call last):
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 592, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 944, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/arrow_writer.py", line 307, in finalize
self.stream.close()
File "pyarrow/io.pxi", line 132, in pyarrow.lib.NativeFile.close
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: error closing file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_glue.py", line 484, in <module>
main()
File "run_glue.py", line 243, in main
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/load.py", line 610, in load_dataset
ignore_verifications=ignore_verifications,
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 515, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 594, in _download_and_prepare
raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
OSError: Cannot find data file. ``` | [
-0.12203827500343323,
0.13535374402999878,
-0.004957998171448708,
0.40937280654907227,
0.3437596559524536,
0.15759095549583435,
0.49117106199264526,
0.3018617033958435,
0.24092987179756165,
0.07781319320201874,
-0.12081131339073181,
0.31133249402046204,
-0.22293387353420258,
0.01617296226322651,
-0.26663053035736084,
-0.1388491690158844,
-0.012198902666568756,
0.14868956804275513,
-0.3797128200531006,
0.08427639305591583,
-0.29682499170303345,
0.3350246548652649,
-0.234773650765419,
-0.02357374131679535,
-0.20684517920017242,
0.301503449678421,
0.019573496654629707,
0.268365740776062,
-0.06784198433160782,
-0.28825774788856506,
0.48375582695007324,
-0.11661699414253235,
0.5780785083770752,
0.5965264439582825,
-0.00011985875607933849,
0.19804005324840546,
0.25854772329330444,
-0.1649317443370819,
-0.28701362013816833,
-0.6305495500564575,
0.043491050601005554,
-0.43759796023368835,
0.2616707980632782,
-0.1079067513346672,
-0.13696132600307465,
0.002965926192700863,
-0.05632443726062775,
-0.3104810118675232,
0.33181697130203247,
0.5805423855781555,
0.15499846637248993,
-0.028310183435678482,
-0.05828142911195755,
-0.0010096599580720067,
0.6244785785675049,
0.09463169425725937,
-0.1630178838968277,
0.30805355310440063,
0.0226266011595726,
-0.19557763636112213,
-0.09850030392408371,
0.06502892076969147,
0.00582616962492466,
0.19743677973747253,
0.21763592958450317,
0.2914285361766815,
-0.17374607920646667,
-0.2069217711687088,
-0.0035461746156215668,
0.14518548548221588,
0.7800492644309998,
-0.1723984181880951,
-0.252583384513855,
-0.0038268305361270905,
-0.12813222408294678,
-0.10579732805490494,
0.38233041763305664,
0.2369374930858612,
-0.04891321063041687,
0.292395681142807,
-0.19133992493152618,
0.049663420766592026,
-0.3450913727283478,
0.22366224229335785,
-0.02142094448208809,
-0.01975417137145996,
-0.15825119614601135,
0.25844764709472656,
0.13756434619426727,
0.07103332877159119,
0.3356912136077881,
-0.039672017097473145,
0.05431094020605087,
0.2524380087852478,
-0.7086185216903687,
0.1900537759065628,
-0.11336009949445724,
-0.15704584121704102,
-0.15349850058555603,
0.1158125102519989,
0.23880614340305328,
-0.09145288914442062,
-0.1756831705570221,
0.38155317306518555,
0.23721785843372345,
0.14866900444030762,
-0.12911346554756165,
0.2593868374824524,
0.26100021600723267,
-0.12251819670200348,
-0.055348411202430725,
-0.18894550204277039,
-0.37133559584617615,
-0.5662069320678711,
-0.03355502337217331,
0.1246439516544342,
0.24537231028079987,
-0.1781112551689148,
-0.17119920253753662,
0.0048958659172058105,
-0.2986387014389038,
-0.0057115270756185055,
-0.05542286857962608,
0.2902829349040985,
0.1472158133983612,
0.3855615556240082,
0.1423826664686203,
0.19076015055179596,
-0.13894835114479065,
-0.28043055534362793,
-0.04162448272109032,
0.20232562720775604,
-0.33057844638824463,
-0.005645222961902618,
0.49418482184410095,
-0.13043278455734253,
0.1737862378358841,
0.082842156291008,
-0.09186942875385284,
-0.2563660144805908,
-0.012354819104075432,
-0.2786599099636078,
-0.05525039881467819,
0.3757534325122833,
0.005569759756326675,
0.18563123047351837,
0.29116564989089966,
-0.24911852180957794,
-0.06169695407152176,
0.37905144691467285,
-0.4626743793487549,
-0.2957407236099243,
-0.028045879676938057,
0.08524511754512787,
-0.30145734548568726,
0.1072891503572464,
-0.3230448365211487,
-0.0427243672311306,
0.1460915505886078,
-0.22555440664291382,
-0.12035346776247025,
-0.3606700897216797,
-0.2351199984550476,
-0.2219359576702118,
0.006559913977980614,
0.4152832627296448,
-0.7811161279678345,
0.12812170386314392,
-0.00420183502137661,
0.03255937993526459,
0.09633251279592514,
0.28809699416160583,
-0.3107192814350128,
0.157435342669487,
-0.28163227438926697,
-0.016738295555114746,
0.19910725951194763,
-0.26728469133377075,
-0.3795185089111328,
0.19483622908592224,
-0.16194170713424683,
-0.0049849022179841995,
0.1852814257144928,
0.10210464894771576,
0.2606716454029083,
-0.07830080389976501,
-0.2450924515724182,
0.15442383289337158,
-0.03334967792034149,
0.06588339805603027,
-0.21527287364006042,
-0.22108903527259827,
0.27186310291290283,
0.3141383230686188,
0.0862167552113533,
0.030011478811502457,
0.1951022744178772,
-0.36450228095054626,
0.302718847990036,
-0.09525007009506226,
0.1820618361234665,
0.15598459541797638,
0.3703449070453644,
0.026914436370134354,
0.3065314292907715,
0.047304682433605194,
-0.48751479387283325,
0.14686799049377441,
0.4081065356731415,
-0.12112957239151001,
-0.16603286564350128,
0.010265480726957321,
-0.3846556544303894,
-0.04914242774248123,
-0.2423175722360611,
-0.09064139425754547,
-0.014548327773809433,
0.05308562517166138,
-0.041434142738580704,
-0.16518163681030273,
-0.10479266196489334,
0.38457027077674866,
-0.2736661732196808,
0.06647004932165146,
-0.39205434918403625,
0.4043228030204773,
0.08240760117769241,
-0.0559355691075325,
0.08550551533699036,
-0.034431569278240204,
0.16923394799232483,
-0.16720756888389587,
-0.17997419834136963,
0.25504356622695923,
0.4084516763687134,
-0.03302524983882904,
0.026957226917147636,
-0.03297942876815796,
0.0791252851486206,
-0.2583155632019043,
-0.12610262632369995,
0.3344680964946747,
0.30878785252571106,
-0.0029711946845054626,
-0.47630634903907776,
0.25048089027404785,
-0.3923822045326233,
0.18196016550064087,
-0.10120026767253876,
0.09327509999275208,
0.25188663601875305,
-0.11960363388061523,
-0.10630705952644348,
0.10315902531147003,
0.05597211420536041,
0.022889239713549614,
0.25723525881767273,
0.19390518963336945,
-0.06330543011426926,
-0.15623095631599426,
0.18960390985012054,
0.1293913871049881,
-0.2885698676109314,
0.2658119201660156,
-0.1528625190258026,
0.00793706625699997,
0.20424333214759827,
0.3819604218006134,
0.5386132597923279,
0.08838225901126862,
-0.2935798466205597,
-0.06686277687549591,
0.16445282101631165,
-0.23443473875522614,
0.08078848570585251,
0.0785166397690773,
0.19078920781612396,
0.32581189274787903,
0.19971029460430145,
0.1552238017320633,
-0.0841260552406311,
-0.3111201226711273,
0.16694213449954987,
0.28507697582244873,
-0.5293880701065063,
0.03875307738780975,
-0.18662557005882263,
0.33803945779800415,
-0.33291271328926086,
-0.037759929895401,
0.07039530575275421,
-0.20285429060459137,
-0.30538880825042725,
0.2585046589374542,
-0.13600634038448334,
0.05956316739320755,
-0.1811579167842865,
0.1324453055858612,
0.17426466941833496,
-0.22695697844028473,
0.08950828015804291,
-0.19518022239208221,
-0.22085154056549072,
-0.016460252925753593,
0.09738320857286453,
-0.15758657455444336,
-0.16522392630577087,
-0.016005253419280052,
0.06657586991786957,
-0.26091912388801575,
-0.11832505464553833,
0.16288186609745026,
0.06101027876138687,
0.09132003039121628,
0.10208594799041748,
0.029782146215438843,
-0.04702461138367653,
-0.2525390386581421,
0.2062443345785141,
-0.0025437939912080765,
-0.016046803444623947,
0.33125102519989014,
0.19997194409370422,
-0.08648300170898438,
-0.15318696200847626,
-0.7353494167327881,
-0.3709747791290283,
-0.30642130970954895,
0.08163074404001236,
-0.14609363675117493,
-0.03061838448047638,
0.2606903910636902,
0.32357320189476013,
-0.004563279915601015,
0.2491168975830078,
-0.0899321436882019,
-0.02238352969288826,
-0.28042393922805786,
0.657479465007782,
-0.21374636888504028,
-0.28470465540885925,
0.19956597685813904,
-0.11706162244081497,
0.025777464732527733,
0.3571564555168152,
-0.4444887042045593,
0.13304731249809265,
-0.07136096060276031,
0.03357131406664848,
-0.06130209565162659,
0.05126754194498062,
0.11037617921829224,
-0.015036551281809807,
0.10811734199523926,
-0.03455081209540367,
-0.09606444835662842,
0.17691832780838013,
0.05806931108236313,
0.18038034439086914,
0.2061358094215393,
0.5240596532821655,
-0.1935347020626068,
0.7526001930236816,
-0.0069446079432964325,
-0.006167590618133545,
0.2724444270133972,
-0.08539238572120667,
0.3250017464160919,
0.17405961453914642,
-0.25033843517303467,
0.07616150379180908,
-0.1681617796421051,
-0.3343830108642578,
0.3666772246360779,
0.027258438989520073,
-0.12002479285001755,
-0.12391112744808197,
0.1599292904138565,
-0.23712939023971558,
-0.16949889063835144,
0.2616627514362335,
0.03172963112592697,
0.12481194734573364,
-0.054783694446086884,
0.09386510401964188,
0.05527796968817711,
-0.285664826631546,
-0.011462192982435226,
0.2788127660751343,
0.24570339918136597,
-0.06858277320861816,
0.14142483472824097,
-0.09234321117401123,
-0.2467009425163269,
0.10201099514961243,
-0.06518649309873581,
0.42009449005126953,
0.11939036846160889,
-0.10873476415872574,
-0.04356183111667633,
0.17646707594394684,
0.7794319987297058,
-0.1432047039270401,
0.02122950740158558,
0.08696834743022919,
-0.16052435338497162,
-0.2050446718931198,
-0.3354281187057495,
-0.13349241018295288,
0.1190551295876503,
-0.03392311558127403,
0.3815133571624756,
0.061393074691295624,
0.030261121690273285,
0.3845030963420868,
0.16098260879516602,
-0.25699102878570557,
-0.48333436250686646,
-0.08209999650716782,
-0.05075714364647865,
-0.17990706861019135,
-0.3221035599708557,
0.066579170525074,
0.1676478087902069,
-0.2869708836078644,
0.118698850274086,
-0.10452527552843094,
-0.2345326542854309,
0.32537466287612915,
0.08651803433895111,
0.2651090919971466,
0.03908493369817734,
0.19106388092041016,
0.29295018315315247,
0.09363256394863129,
0.32156625390052795,
0.7372083067893982,
-0.16286803781986237,
-0.9020165801048279,
0.2740161418914795,
-0.4344469904899597,
0.3657586872577667,
-0.030529171228408813,
-0.3615437150001526,
-0.10978015512228012,
-0.2838806211948395,
-0.092116579413414,
-0.03881702572107315,
0.03458001837134361,
0.030549045652151108,
-0.011514510959386826,
-0.0776134505867958,
-0.4349420368671417,
0.4664115011692047,
-0.12348072230815887,
-0.02142270654439926,
0.037409644573926926,
-0.12663660943508148,
-0.3070181608200073,
0.5303566455841064,
-0.16944283246994019,
0.6691306829452515,
-0.12617875635623932,
0.05827534198760986,
0.16551753878593445,
-0.0813235342502594,
0.33520886301994324,
-0.505578875541687,
0.048768915235996246,
-0.43334445357322693,
-0.32796069979667664,
-0.19367341697216034,
-0.07760025560855865,
0.10671039670705795,
0.6288594007492065,
-0.20265495777130127,
0.3232637643814087,
-0.058398693799972534,
0.4683564305305481,
0.10171615332365036,
0.0682222843170166,
0.42656031250953674,
-0.1912727653980255,
-0.1417883336544037,
0.07639521360397339,
-0.09882281720638275,
0.11478938162326813,
0.09595493972301483,
-0.05190375819802284,
-0.34559351205825806,
-0.013846345245838165,
-0.24236635863780975,
0.261068731546402,
-0.1793634295463562,
0.17258411645889282,
0.22884924709796906,
-0.49072498083114624,
0.4911370575428009,
0.5247829556465149,
0.07275565713644028,
-0.07766978442668915,
-0.2039031833410263,
0.08557946979999542,
0.043525826185941696,
0.03730042651295662,
-0.0899275615811348,
-0.022766007110476494,
0.016417231410741806,
0.21929135918617249,
-0.18261733651161194,
0.27485644817352295,
-0.11091270297765732,
-0.18449336290359497,
0.3382415473461151,
0.1942048966884613,
0.09000459313392639,
-0.4632532298564911,
-0.3599359095096588,
-0.25273221731185913,
-0.019925732165575027,
-0.05192546546459198,
0.051641836762428284,
-0.022176221013069153,
0.0007842746563255787,
-0.03336474299430847,
0.08660507202148438,
-0.39987441897392273,
0.11975587904453278,
0.2619691491127014,
-0.17873278260231018,
0.07603797316551208,
0.48301324248313904,
0.4360225796699524,
-0.1482410728931427,
-0.12476039677858353,
0.08658955246210098,
0.1495395004749298,
-0.6645998954772949,
0.08318155258893967,
0.10393673926591873,
0.27973508834838867,
0.15434901416301727,
0.14337030053138733,
0.28148114681243896,
-0.24959400296211243,
-0.020175492390990257,
-0.634380578994751,
-0.15046769380569458,
-0.024167783558368683,
-0.018266137689352036,
0.08288954198360443,
-0.114701047539711,
-0.30871617794036865,
-0.049292534589767456,
-0.044108472764492035,
-0.18386024236679077,
0.07945060729980469,
0.015673043206334114,
0.07886075973510742,
0.2726912498474121,
0.21592620015144348,
-0.1990480124950409,
-0.31609004735946655,
0.012444732710719109,
-0.036662958562374115,
0.06327597051858902,
-0.09813398122787476,
-0.18090900778770447,
0.17835883796215057,
0.02853727899491787,
0.08928310871124268,
-0.2773478031158447,
-0.12774789333343506,
-0.15966516733169556,
-0.15915776789188385,
0.09036204218864441,
0.2512243688106537,
-0.039217762649059296,
0.4274788200855255,
0.05923446640372276,
-0.15862423181533813,
-0.5465250015258789,
0.29151469469070435,
-0.18827852606773376,
0.32862064242362976,
0.22613286972045898,
0.2161954939365387,
0.14015531539916992,
0.11898165941238403,
-0.20039409399032593,
-0.03958036005496979,
-0.12734384834766388,
-0.057989053428173065,
0.2570374011993408,
-0.38163626194000244,
0.18697144091129303,
0.17797547578811646,
0.3278339207172394,
0.2979975938796997,
-0.2113126814365387,
-0.06583765894174576,
0.14839208126068115,
0.11055950075387955,
-0.35018566250801086,
0.14277788996696472,
0.1776919960975647,
0.29748213291168213,
-0.06383631378412247,
0.27812638878822327,
-0.0291178859770298,
-0.1317163109779358,
0.15752220153808594,
0.24476870894432068,
0.5773416757583618,
0.10984445363283157,
0.14764229953289032,
0.35006701946258545,
-0.08823797106742859,
0.17365910112857819,
0.1366865634918213,
-0.05806603655219078,
0.08774866908788681,
0.4587203860282898,
-0.2164088487625122,
-0.07203032821416855,
0.1937764286994934,
0.1926274299621582,
-0.14034870266914368,
-0.5329045057296753,
0.045397087931632996,
0.1736009418964386,
-0.25265297293663025,
-0.15064767003059387,
0.12423285096883774,
0.5423733592033386,
0.06865792721509933,
0.14940926432609558,
-0.25508350133895874,
-0.06066776439547539,
0.05269831046462059,
-0.05300936847925186,
-0.06984217464923859,
-0.260241836309433,
-0.43377813696861267,
0.2687380313873291,
-0.15381672978401184,
-0.008317805826663971,
0.3635637164115906,
0.261711061000824,
-0.11664871871471405,
-0.3991001844406128,
0.1071273535490036,
0.25060778856277466,
-0.02939756214618683,
-0.24090096354484558,
0.12035160511732101,
-0.00611172616481781,
0.03152869641780853,
0.2301201969385147,
-0.12535835802555084,
0.3768225610256195,
0.45761311054229736,
0.024307703599333763,
-0.27821722626686096,
-0.17797715961933136,
-0.05808635801076889,
-0.0733146071434021,
0.42184925079345703,
-0.07902871072292328,
0.1666325479745865,
0.2153228223323822,
0.09501290321350098,
-0.012566487304866314,
0.3037092387676239,
0.025308936834335327,
0.05468904227018356,
-0.3918222188949585,
-0.035855673253536224,
0.11255381256341934,
-0.06107416749000549,
-0.08712384849786758,
-0.1870797872543335,
-0.13389185070991516,
-0.15203161537647247,
0.5085309743881226,
0.17540857195854187,
0.2575397491455078,
0.18477848172187805,
-0.003702828660607338,
-0.12103766202926636,
0.22516949474811554,
0.4045381546020508,
0.12683826684951782,
-0.5164462327957153,
-0.047070395201444626,
-0.8025568723678589,
0.03331504017114639,
-0.16744522750377655,
-0.08511181175708771,
-0.013005372136831284,
0.1274862289428711,
0.28515809774398804,
0.2845374047756195,
0.043628573417663574,
0.07388550043106079,
-0.011881588026881218,
0.29308176040649414,
-0.18202567100524902,
-0.21654777228832245,
-0.11339396238327026,
0.15808740258216858,
-0.06526806950569153,
-0.4554160535335541,
-0.015587519854307175,
0.23734205961227417,
-0.0940125361084938,
-0.23343516886234283,
-0.07427506893873215,
0.10100898146629333,
-0.1628885716199875,
0.3524155914783478,
-0.1388455033302307,
0.41685718297958374,
-0.03417129069566727,
0.2826650142669678,
-0.30494752526283264,
-0.2810993790626526,
-0.15056796371936798,
0.16502222418785095,
-0.06025758758187294,
0.4468722939491272,
-0.3955821692943573,
-0.034218188375234604,
-0.29202428460121155,
-0.06235196441411972,
0.06517592817544937,
0.1752176731824875,
-0.24410711228847504,
0.188214510679245,
-0.14351731538772583,
0.14998574554920197,
-0.029464658349752426,
-0.11049919575452805,
-0.17139381170272827,
0.18154115974903107,
-0.11918199807405472,
-0.2850664556026459,
0.3244495391845703,
-0.3510091304779053,
-0.23086652159690857,
0.014549263752996922,
0.045377880334854126,
0.007040947675704956,
0.22573789954185486,
-0.4288410246372223,
0.0607377365231514,
0.3522357940673828,
-0.09315924346446991,
-0.1766715943813324,
0.07532111555337906,
0.08862264454364777,
0.1043148785829544,
-0.14565043151378632,
0.3996922969818115,
0.2324020266532898,
-0.16658732295036316,
-0.26688244938850403,
-0.2740073800086975
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi ! It looks like the error stacktrace doesn't match with your code snippet.
What error do you get when running this ?
```
data_files = {"train": "train.tsv", "test",: "test.tsv"}
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
```
can you check that both tsv files are in the same folder as the current working directory of your shell ? | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 57 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi ! It looks like the error stacktrace doesn't match with your code snippet.
What error do you get when running this ?
```
data_files = {"train": "train.tsv", "test",: "test.tsv"}
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
```
can you check that both tsv files are in the same folder as the current working directory of your shell ? | [
-0.1632082462310791,
0.1201280802488327,
-0.020389921963214874,
0.37119436264038086,
0.29089295864105225,
0.19067391753196716,
0.3376259505748749,
0.30880627036094666,
0.25583553314208984,
0.10500704497098923,
-0.1869196742773056,
0.20546771585941315,
-0.15934325754642487,
0.06117948889732361,
-0.19565217196941376,
-0.062475621700286865,
0.026812784373760223,
0.0686475932598114,
-0.4645629823207855,
0.017721988260746002,
-0.3333189785480499,
0.34706538915634155,
-0.27802377939224243,
-0.05429491400718689,
-0.0767819732427597,
0.23612380027770996,
-0.0599403902888298,
0.33674904704093933,
-0.08165692538022995,
-0.35596057772636414,
0.5194856524467468,
-0.06353156268596649,
0.5607160329818726,
0.5292676091194153,
-0.00011379037459846586,
0.1294449418783188,
0.2825888991355896,
-0.14677512645721436,
-0.1785617619752884,
-0.6393187046051025,
0.061310313642024994,
-0.43598440289497375,
0.26458755135536194,
-0.11042270809412003,
-0.12845519185066223,
0.07126335799694061,
-0.07089849561452866,
-0.4720509946346283,
0.45043331384658813,
0.527927815914154,
0.21483685076236725,
-0.08640684932470322,
-0.011819802224636078,
-0.022192299365997314,
0.7886176109313965,
0.05944092944264412,
-0.13940760493278503,
0.2724428176879883,
0.01253720372915268,
-0.08109713345766068,
-0.030276745557785034,
0.04580311104655266,
-0.03596016764640808,
0.17793124914169312,
0.18142211437225342,
0.2966151535511017,
-0.10238250344991684,
-0.1386377066373825,
-0.07358674705028534,
0.21005526185035706,
0.7554211616516113,
-0.1943681240081787,
-0.12982617318630219,
0.06543592363595963,
-0.1378992795944214,
-0.15677548944950104,
0.40634727478027344,
0.2865525782108307,
0.006411941722035408,
0.32940730452537537,
-0.11848365515470505,
0.1312604695558548,
-0.2561880946159363,
0.09508506208658218,
0.09834730625152588,
-0.04932685196399689,
-0.17863339185714722,
0.2593526542186737,
0.18060055375099182,
0.00341859832406044,
0.3713911473751068,
-0.05178528279066086,
-0.0589628629386425,
0.22354260087013245,
-0.7684729695320129,
0.3118455708026886,
-0.045559391379356384,
-0.14718398451805115,
0.014965061098337173,
0.17917722463607788,
0.213928684592247,
-0.03930676728487015,
-0.1528496891260147,
0.33458560705184937,
0.2363777458667755,
0.10519668459892273,
-0.1414201259613037,
0.21547041833400726,
0.21903036534786224,
-0.1684969663619995,
-0.10242120176553726,
-0.18763434886932373,
-0.2559283673763275,
-0.5735873579978943,
-0.0645407885313034,
0.20736873149871826,
0.3200315833091736,
-0.31143176555633545,
-0.17331209778785706,
0.07346351444721222,
-0.27229300141334534,
-0.060948003083467484,
-0.109194815158844,
0.2909165918827057,
0.23145535588264465,
0.2941369414329529,
0.18582123517990112,
0.1946028172969818,
-0.10587530583143234,
-0.27499428391456604,
-0.08322643488645554,
0.13121654093265533,
-0.4036239981651306,
-0.1082925945520401,
0.4074251353740692,
-0.1435653418302536,
0.049925871193408966,
0.20915332436561584,
-0.04429398477077484,
-0.26855555176734924,
-0.035612285137176514,
-0.31952986121177673,
0.04502059891819954,
0.2549910247325897,
0.13529516756534576,
0.1181488111615181,
0.32894712686538696,
-0.17466691136360168,
-0.1117878407239914,
0.37446215748786926,
-0.4798728823661804,
-0.17931196093559265,
-0.04598366469144821,
0.1310594081878662,
-0.23707982897758484,
0.05731753259897232,
-0.28908199071884155,
0.05899437516927719,
0.0009390339255332947,
-0.18202760815620422,
-0.25094401836395264,
-0.35993725061416626,
-0.29201585054397583,
-0.2913582921028137,
0.12189430743455887,
0.4260995388031006,
-0.8851076364517212,
0.26796698570251465,
-0.04196261987090111,
-0.020159419625997543,
0.1030401960015297,
0.25258928537368774,
-0.28656840324401855,
0.19346609711647034,
-0.2951544225215912,
0.06593473255634308,
0.1927284598350525,
-0.3063812255859375,
-0.2260775864124298,
0.12311900407075882,
-0.11888892948627472,
-0.030884506180882454,
0.08159932494163513,
-0.01598002202808857,
0.292225182056427,
0.022968322038650513,
-0.24505499005317688,
0.18866702914237976,
-0.024883383885025978,
0.07277029752731323,
-0.23469799757003784,
-0.1997046172618866,
0.274066686630249,
0.21478921175003052,
-0.015913862735033035,
0.07928205281496048,
0.2235260307788849,
-0.5767693519592285,
0.38817062973976135,
-0.1135370284318924,
0.20373056828975677,
0.17814360558986664,
0.3660389184951782,
0.10630577802658081,
0.21675370633602142,
0.013343624770641327,
-0.4905887842178345,
0.15917879343032837,
0.36095207929611206,
-0.11550590395927429,
-0.0092601478099823,
-0.007538175210356712,
-0.45013749599456787,
-0.040864497423172,
-0.18636345863342285,
0.00302264466881752,
0.08470077067613602,
0.08257630467414856,
0.011441048234701157,
-0.10348959267139435,
-0.08247528970241547,
0.30190160870552063,
-0.1349656581878662,
0.04573875293135643,
-0.2683044373989105,
0.37711048126220703,
0.031008392572402954,
-0.14679212868213654,
0.21748051047325134,
-0.08603934198617935,
0.3234867751598358,
-0.18372198939323425,
-0.18661350011825562,
0.3333311080932617,
0.3146055042743683,
-0.08727364242076874,
0.08542490750551224,
-0.15965647995471954,
-0.04965750873088837,
-0.22917594015598297,
-0.01670805551111698,
0.24881722033023834,
0.31468722224235535,
-0.1180461198091507,
-0.4590248763561249,
0.26134932041168213,
-0.40941789746284485,
0.20613324642181396,
-0.14351031184196472,
0.08477265387773514,
0.21013717353343964,
-0.1418159455060959,
0.021002022549510002,
0.08744224905967712,
0.11915026605129242,
0.06047283858060837,
0.19886958599090576,
0.005549164488911629,
-0.09116027504205704,
-0.10565934330224991,
0.11975571513175964,
0.16895176470279694,
-0.2727978229522705,
0.178989976644516,
-0.11378344148397446,
-0.01624205708503723,
0.24219775199890137,
0.35716506838798523,
0.47638654708862305,
0.15234670042991638,
-0.17426832020282745,
0.04557057470083237,
0.10983499139547348,
-0.15044759213924408,
0.09360064566135406,
-0.01945851743221283,
0.13713841140270233,
0.2552470564842224,
0.1668248325586319,
0.08399032801389694,
-0.1430703103542328,
-0.23694640398025513,
0.04554450511932373,
0.2538728415966034,
-0.5752359628677368,
0.008332271128892899,
-0.24972987174987793,
0.3108229339122772,
-0.3310994803905487,
-0.0051644062623381615,
0.1356988549232483,
-0.23371131718158722,
-0.3300175070762634,
0.24852268397808075,
-0.14455831050872803,
0.07568223029375076,
-0.17676568031311035,
0.18350347876548767,
0.10144920647144318,
-0.16297399997711182,
0.050937406718730927,
-0.17308880388736725,
-0.3325939476490021,
0.06286948919296265,
0.12892162799835205,
-0.02838495559990406,
-0.061428897082805634,
0.04728119075298309,
0.11337244510650635,
-0.2062106430530548,
-0.06997788697481155,
0.1670144498348236,
-0.07632455229759216,
0.08806305378675461,
0.11792119592428207,
-0.003094412386417389,
-0.04995943605899811,
-0.19787970185279846,
0.24686889350414276,
-0.05306457728147507,
-0.0031853709369897842,
0.30398836731910706,
0.293669730424881,
-0.1829453408718109,
-0.14779119193553925,
-0.7467254996299744,
-0.3022550046443939,
-0.29750168323516846,
0.06284381449222565,
-0.06570594012737274,
0.01765400543808937,
0.13622695207595825,
0.31056728959083557,
0.05938594415783882,
0.14332303404808044,
-0.09188126027584076,
-0.04677541181445122,
-0.3576165735721588,
0.5338159203529358,
-0.29075461626052856,
-0.2972557246685028,
0.29833099246025085,
-0.035157203674316406,
0.013384051620960236,
0.3558810353279114,
-0.4415940046310425,
0.13643302023410797,
-0.055688224732875824,
-0.008028056472539902,
-0.06351150572299957,
0.15255656838417053,
0.053366564214229584,
0.01934083364903927,
0.049319058656692505,
-0.0812959298491478,
-0.2418561577796936,
0.23464959859848022,
-0.07422655075788498,
0.14670108258724213,
0.14426285028457642,
0.5319951772689819,
-0.2617815434932709,
0.696877658367157,
0.08993363380432129,
0.06905850023031235,
0.3502431809902191,
-0.11331350356340408,
0.3590993285179138,
0.12775713205337524,
-0.2564527690410614,
0.09188790619373322,
-0.09790290892124176,
-0.37634700536727905,
0.3155025243759155,
0.006017674691975117,
-0.07469595223665237,
-0.08845049887895584,
0.262358158826828,
-0.2288103699684143,
-0.24089519679546356,
0.19665035605430603,
0.037815481424331665,
0.11860063672065735,
-0.10371783375740051,
0.029041744768619537,
0.05804659053683281,
-0.2552061975002289,
-0.09500132501125336,
0.12860107421875,
0.08793666958808899,
-0.0659375935792923,
-0.019691383466124535,
0.013082413002848625,
-0.19959482550621033,
0.274160236120224,
-0.1319943517446518,
0.33530908823013306,
0.029107455164194107,
-0.09476630389690399,
-0.00974980741739273,
0.19625264406204224,
0.7513359785079956,
-0.19634917378425598,
0.038177382200956345,
0.1308370679616928,
-0.025455517694354057,
-0.20281670987606049,
-0.35584142804145813,
-0.13703858852386475,
0.12309221178293228,
0.033248137682676315,
0.15561272203922272,
0.018299728631973267,
0.0646013468503952,
0.36339256167411804,
0.12864407896995544,
-0.14752072095870972,
-0.4154251217842102,
-0.11743812263011932,
-0.10330149531364441,
-0.11406848579645157,
-0.2285345196723938,
0.10151288658380508,
0.13518567383289337,
-0.28753799200057983,
0.057280752807855606,
-0.1101410984992981,
-0.1874687373638153,
0.278474360704422,
0.05988219752907753,
0.363029420375824,
0.044553790241479874,
0.22845736145973206,
0.21161353588104248,
0.08184082806110382,
0.26699212193489075,
0.8654196262359619,
-0.22755083441734314,
-0.8078792095184326,
0.1678779125213623,
-0.4653365910053253,
0.2808266580104828,
0.009971633553504944,
-0.3242844343185425,
-0.0899665430188179,
-0.28352585434913635,
-0.12837371230125427,
-0.016238465905189514,
0.0010451138950884342,
0.013393457978963852,
0.03813914209604263,
-0.09966699033975601,
-0.40744006633758545,
0.46861815452575684,
-0.10680519044399261,
-0.10388584434986115,
-0.031427085399627686,
-0.04863084852695465,
-0.36108532547950745,
0.5382453799247742,
-0.18638524413108826,
0.7635288238525391,
-0.1556740701198578,
-0.07169272005558014,
0.1424182951450348,
-0.22983451187610626,
0.3213382363319397,
-0.37479209899902344,
-0.07746847718954086,
-0.5023736357688904,
-0.21043448150157928,
-0.18045158684253693,
-0.09686841070652008,
0.06976044178009033,
0.5970757603645325,
-0.33145466446876526,
0.3451715409755707,
-0.11611023545265198,
0.3273302912712097,
-0.013700466603040695,
0.13856084644794464,
0.4446404278278351,
-0.11524906754493713,
-0.08149537444114685,
0.18517892062664032,
-0.09058614075183868,
-0.013726804405450821,
0.07297038286924362,
-0.06747878342866898,
-0.2689509689807892,
-0.0614795982837677,
-0.3538159132003784,
0.34569990634918213,
-0.2019072324037552,
0.06558765470981598,
0.16894926130771637,
-0.5422199368476868,
0.46033748984336853,
0.4039848744869232,
0.1948411762714386,
-0.0011996664106845856,
-0.19299863278865814,
0.09270498901605606,
0.08072347939014435,
0.05063273385167122,
-0.12272829562425613,
-0.0151685681194067,
-0.029488855972886086,
0.1688004732131958,
-0.2706635892391205,
0.28516867756843567,
-0.056124113500118256,
-0.14201435446739197,
0.26208069920539856,
0.24461117386817932,
0.15437117218971252,
-0.5034888386726379,
-0.2880254089832306,
-0.15743416547775269,
0.11342477798461914,
-0.07496291399002075,
0.09802937507629395,
0.0046117231249809265,
0.055312685668468475,
0.029699362814426422,
0.14113447070121765,
-0.28684234619140625,
0.1739552915096283,
0.176340252161026,
-0.2092246115207672,
0.14729081094264984,
0.4387861490249634,
0.5524030327796936,
-0.08838380873203278,
-0.12311742454767227,
0.11291209608316422,
0.12126142531633377,
-0.5274672508239746,
0.15654896199703217,
0.025863563641905785,
0.3393363356590271,
0.1452890783548355,
0.23619180917739868,
0.2931863069534302,
-0.18029668927192688,
0.06695470213890076,
-0.4703953266143799,
-0.033022936433553696,
-0.09389668703079224,
-0.1051439642906189,
0.18694047629833221,
-0.05653247982263565,
-0.2851335108280182,
-0.03880448266863823,
-0.06097514182329178,
-0.26260536909103394,
0.06768035143613815,
0.006329206749796867,
0.06914567947387695,
0.23683041334152222,
0.16661116480827332,
-0.15746743977069855,
-0.28660014271736145,
0.055691465735435486,
-0.06222161650657654,
0.012174650095403194,
-0.16141676902770996,
-0.16757458448410034,
0.1348131150007248,
-0.004221795126795769,
0.09619404375553131,
-0.261415034532547,
-0.16577793657779694,
-0.14524057507514954,
-0.17336100339889526,
0.0625734031200409,
0.19970694184303284,
-0.03980068117380142,
0.37250813841819763,
-0.025243837386369705,
-0.17268994450569153,
-0.46116650104522705,
0.2609955072402954,
-0.2078046202659607,
0.1719648540019989,
0.13073109090328217,
0.2049126923084259,
0.11233791708946228,
0.009272687137126923,
-0.22280198335647583,
0.03546285629272461,
-0.0008790343999862671,
-0.03715618699789047,
0.21531179547309875,
-0.3011072278022766,
0.042950186878442764,
0.22435881197452545,
0.383717805147171,
0.29652929306030273,
-0.17466019093990326,
-0.03787649795413017,
0.12275321781635284,
0.15798570215702057,
-0.33907949924468994,
0.23753224313259125,
0.13671523332595825,
0.2987367510795593,
-0.08518539369106293,
0.2680234909057617,
-0.11036856472492218,
-0.07998494803905487,
0.0974893644452095,
0.19939589500427246,
0.6316302418708801,
0.056196942925453186,
0.12298141419887543,
0.10483084619045258,
-0.1335858702659607,
0.13935105502605438,
0.15075810253620148,
-0.08449280261993408,
0.08125942945480347,
0.4595388174057007,
-0.19267675280570984,
-0.11967997252941132,
0.24159708619117737,
0.06396026164293289,
-0.1346389353275299,
-0.5399413108825684,
0.1558782160282135,
0.25179681181907654,
-0.17030316591262817,
-0.152207612991333,
0.1404368281364441,
0.5916341543197632,
0.016572289168834686,
0.014728564769029617,
-0.31519997119903564,
-0.029884863644838333,
0.09000382572412491,
-0.08413422107696533,
-0.035176705569028854,
-0.14597222208976746,
-0.41343966126441956,
0.17644934356212616,
-0.07175935804843903,
0.009933710098266602,
0.3621034622192383,
0.21450090408325195,
-0.03192247450351715,
-0.44271349906921387,
0.08577890694141388,
0.23183941841125488,
-0.022812440991401672,
-0.23368604481220245,
0.12103716284036636,
0.023139789700508118,
0.035883449018001556,
0.2976682782173157,
-0.015728557482361794,
0.3811991214752197,
0.4854709506034851,
0.06202605366706848,
-0.339470773935318,
-0.13518159091472626,
-0.05480165779590607,
-0.05536432936787605,
0.3558160066604614,
-0.11788524687290192,
0.2731032073497772,
0.29576200246810913,
0.17657914757728577,
-0.04035824164748192,
0.27604126930236816,
0.037088021636009216,
0.10979655385017395,
-0.430722177028656,
-0.08955047279596329,
0.08606216311454773,
0.007810063660144806,
-0.16414594650268555,
-0.21827659010887146,
-0.19170647859573364,
-0.15582329034805298,
0.4550691843032837,
0.12048356235027313,
0.21628433465957642,
0.1460718959569931,
0.03736467659473419,
-0.11932902038097382,
0.24683719873428345,
0.43824759125709534,
0.14169259369373322,
-0.5743093490600586,
-0.02754586935043335,
-0.8004926443099976,
0.0029474571347236633,
-0.2535035014152527,
-0.17724163830280304,
-0.082579605281353,
0.25306856632232666,
0.28950071334838867,
0.33186060190200806,
0.11065370589494705,
-0.030068282037973404,
-0.19293521344661713,
0.2943170964717865,
-0.24720224738121033,
-0.16074275970458984,
-0.15061454474925995,
-0.00592915341258049,
-0.009896012023091316,
-0.41339415311813354,
0.03945112228393555,
0.3084835410118103,
-0.05889415368437767,
-0.1396913230419159,
-0.10650023818016052,
0.085068479180336,
-0.3280162215232849,
0.44234544038772583,
-0.06528078764677048,
0.4719921946525574,
-0.008908459916710854,
0.23301440477371216,
-0.4741688370704651,
-0.3503289222717285,
-0.20957429707050323,
0.18343980610370636,
-0.1208377331495285,
0.4187626242637634,
-0.35768505930900574,
-0.019606560468673706,
-0.25246161222457886,
-0.04422426596283913,
0.0910940021276474,
0.17571105062961578,
-0.2568308115005493,
0.19501003623008728,
-0.03216017037630081,
0.15950115025043488,
-0.07650378346443176,
-0.1335105299949646,
-0.09364970028400421,
0.3417084813117981,
-0.1618133932352066,
-0.31932124495506287,
0.3301818370819092,
-0.1463795304298401,
-0.24157781898975372,
0.0700482577085495,
0.15119077265262604,
0.05024917051196098,
0.09392663091421127,
-0.5559325814247131,
0.027993783354759216,
0.3319459855556488,
-0.06820368766784668,
-0.16879509389400482,
0.14729160070419312,
0.037971921265125275,
0.07075592875480652,
-0.11592963337898254,
0.21543018519878387,
0.2917870581150055,
-0.18812955915927887,
-0.2043752372264862,
-0.26569294929504395
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi @lhoestq, Below is the entire error message after I move both tsv files to the same directory. It's the same with I got before.
```
/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0
08/29/2021 22:56:43 - WARNING - __main__ - Process rank: -1, device: cpu, n_gpu: 0distributed training: False, 16-bits training: False
08/29/2021 22:56:43 - INFO - __main__ - Training/evaluation parameters TrainingArguments(output_dir=/projectnb/media-framing/pred_result/label1/, overwrite_output_dir=True, do_train=True, do_eval=False, do_predict=True, evaluation_strategy=EvaluationStrategy.NO, prediction_loss_only=False, per_device_train_batch_size=8, per_device_eval_batch_size=8, gradient_accumulation_steps=1, eval_accumulation_steps=None, learning_rate=5e-05, weight_decay=0.0, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=8.0, max_steps=-1, lr_scheduler_type=SchedulerType.LINEAR, warmup_steps=0, logging_dir=runs/Aug29_22-56-43_scc1, logging_first_step=False, logging_steps=500, save_steps=3000, save_total_limit=None, no_cuda=False, seed=42, fp16=False, fp16_opt_level=O1, fp16_backend=auto, local_rank=-1, tpu_num_cores=None, tpu_metrics_debug=False, debug=False, dataloader_drop_last=False, eval_steps=500, dataloader_num_workers=0, past_index=-1, run_name=/projectnb/media-framing/pred_result/label1/, disable_tqdm=False, remove_unused_columns=True, label_names=None, load_best_model_at_end=False, metric_for_best_model=None, greater_is_better=None, ignore_data_skip=False, sharded_ddp=False, deepspeed=None, label_smoothing_factor=0.0, adafactor=False, _n_gpu=0)
08/29/2021 22:56:43 - INFO - __main__ - load a local file for train: /project/media-framing/transformer4/temp_train.tsv
08/29/2021 22:56:43 - INFO - __main__ - load a local file for test: /project/media-framing/transformer4/temp_test.tsv
08/29/2021 22:56:43 - WARNING - datasets.builder - Using custom data configuration default-df627c23ac0e98ec
Downloading and preparing dataset csv/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /usr4/cs542sp/hey1/.cache/huggingface/datasets/csv/default-df627c23ac0e98ec/0.0.0/9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff...
Traceback (most recent call last):
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 1166, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/arrow_writer.py", line 428, in finalize
self.stream.close()
File "pyarrow/io.pxi", line 132, in pyarrow.lib.NativeFile.close
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: error closing file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_glue.py", line 487, in <module>
main()
File "run_glue.py", line 244, in main
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/load.py", line 852, in load_dataset
use_auth_token=use_auth_token,
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 616, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 699, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
error closing file
``` | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 311 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi @lhoestq, Below is the entire error message after I move both tsv files to the same directory. It's the same with I got before.
```
/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0
08/29/2021 22:56:43 - WARNING - __main__ - Process rank: -1, device: cpu, n_gpu: 0distributed training: False, 16-bits training: False
08/29/2021 22:56:43 - INFO - __main__ - Training/evaluation parameters TrainingArguments(output_dir=/projectnb/media-framing/pred_result/label1/, overwrite_output_dir=True, do_train=True, do_eval=False, do_predict=True, evaluation_strategy=EvaluationStrategy.NO, prediction_loss_only=False, per_device_train_batch_size=8, per_device_eval_batch_size=8, gradient_accumulation_steps=1, eval_accumulation_steps=None, learning_rate=5e-05, weight_decay=0.0, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=8.0, max_steps=-1, lr_scheduler_type=SchedulerType.LINEAR, warmup_steps=0, logging_dir=runs/Aug29_22-56-43_scc1, logging_first_step=False, logging_steps=500, save_steps=3000, save_total_limit=None, no_cuda=False, seed=42, fp16=False, fp16_opt_level=O1, fp16_backend=auto, local_rank=-1, tpu_num_cores=None, tpu_metrics_debug=False, debug=False, dataloader_drop_last=False, eval_steps=500, dataloader_num_workers=0, past_index=-1, run_name=/projectnb/media-framing/pred_result/label1/, disable_tqdm=False, remove_unused_columns=True, label_names=None, load_best_model_at_end=False, metric_for_best_model=None, greater_is_better=None, ignore_data_skip=False, sharded_ddp=False, deepspeed=None, label_smoothing_factor=0.0, adafactor=False, _n_gpu=0)
08/29/2021 22:56:43 - INFO - __main__ - load a local file for train: /project/media-framing/transformer4/temp_train.tsv
08/29/2021 22:56:43 - INFO - __main__ - load a local file for test: /project/media-framing/transformer4/temp_test.tsv
08/29/2021 22:56:43 - WARNING - datasets.builder - Using custom data configuration default-df627c23ac0e98ec
Downloading and preparing dataset csv/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /usr4/cs542sp/hey1/.cache/huggingface/datasets/csv/default-df627c23ac0e98ec/0.0.0/9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff...
Traceback (most recent call last):
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 1166, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/arrow_writer.py", line 428, in finalize
self.stream.close()
File "pyarrow/io.pxi", line 132, in pyarrow.lib.NativeFile.close
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: error closing file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_glue.py", line 487, in <module>
main()
File "run_glue.py", line 244, in main
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/load.py", line 852, in load_dataset
use_auth_token=use_auth_token,
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 616, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 699, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
error closing file
``` | [
-0.071382537484169,
0.036321982741355896,
-0.02468651533126831,
0.5199026465415955,
0.3269374370574951,
0.19283992052078247,
0.44621872901916504,
0.3241173326969147,
0.2243308424949646,
0.04281388968229294,
-0.019541950896382332,
0.26659682393074036,
-0.03721670061349869,
0.039765164256095886,
-0.2458033263683319,
-0.1460844725370407,
0.05053512752056122,
0.028024636209011078,
-0.31177768111228943,
0.06647767126560211,
-0.26090481877326965,
0.32041847705841064,
-0.15583667159080505,
-0.03616922348737717,
-0.25309884548187256,
0.11981911212205887,
0.0454961434006691,
0.2727535665035248,
0.03263816982507706,
-0.34021589159965515,
0.48518699407577515,
-0.149962916970253,
0.5330103635787964,
0.4523151218891144,
-0.00011913309572264552,
0.11876767873764038,
0.2267008274793625,
-0.11203162372112274,
-0.22273549437522888,
-0.6003682613372803,
0.06910846382379532,
-0.47211697697639465,
0.3808329701423645,
-0.12784624099731445,
-0.16973194479942322,
0.06862518936395645,
-0.14622361958026886,
-0.483600378036499,
0.3415563106536865,
0.469494104385376,
0.16773991286754608,
-0.2340404987335205,
-0.0738898515701294,
0.004453593399375677,
0.44538190960884094,
0.13101555407047272,
-0.18767519295215607,
0.2258009910583496,
0.009724929928779602,
-0.13594995439052582,
-0.04038123041391373,
0.11085042357444763,
-0.13070692121982574,
0.29228106141090393,
0.2499799132347107,
0.29746055603027344,
-0.2419431507587433,
-0.27369317412376404,
0.022531036287546158,
0.12139046937227249,
0.6164866089820862,
-0.15008431673049927,
-0.1400373876094818,
-0.03269875422120094,
-0.08289772272109985,
-0.18967127799987793,
0.3366044759750366,
0.35590803623199463,
-0.13023947179317474,
0.2394927442073822,
-0.11367282271385193,
0.13088387250900269,
-0.2241671234369278,
0.07156695425510406,
0.04932662099599838,
-0.00018591433763504028,
-0.1302855908870697,
0.34174349904060364,
0.09157942980527878,
0.09015049040317535,
0.391283243894577,
-0.004260411486029625,
0.0023903436958789825,
0.10331548750400543,
-0.7571659684181213,
0.33976179361343384,
-0.089724101126194,
-0.17062908411026,
-0.16238942742347717,
0.1441667526960373,
0.315657377243042,
-0.09001974016427994,
-0.08643680065870285,
0.3288351893424988,
0.08216763287782669,
0.04841483384370804,
-0.04428355395793915,
0.22792832553386688,
0.2494889199733734,
-0.13263057172298431,
0.08594569563865662,
-0.18830761313438416,
-0.3141404986381531,
-0.6196154952049255,
-0.15005899965763092,
0.22705602645874023,
0.30164456367492676,
-0.19680294394493103,
-0.2878166437149048,
0.06559727340936661,
-0.280681312084198,
0.06666970252990723,
-0.12284364551305771,
0.2648937404155731,
0.08830361813306808,
0.3031730651855469,
0.17208120226860046,
0.21694986522197723,
-0.04045431315898895,
-0.2523913085460663,
-0.027414126321673393,
0.10943649709224701,
-0.3116879165172577,
-0.003287471830844879,
0.5225704312324524,
-0.25124359130859375,
0.15048600733280182,
0.22063326835632324,
-0.07730378210544586,
-0.32314401865005493,
0.01814085803925991,
-0.3295077383518219,
0.13020944595336914,
0.2901154160499573,
0.13803230226039886,
0.3126872479915619,
0.329917848110199,
-0.17440995573997498,
-0.07077561318874359,
0.39492031931877136,
-0.4245898425579071,
-0.17924411594867706,
-0.2038639783859253,
0.07753223925828934,
-0.08858835697174072,
0.10097348690032959,
-0.28711968660354614,
0.06949777901172638,
0.14454904198646545,
-0.23126892745494843,
-0.07902126759290695,
-0.3212268352508545,
-0.34051960706710815,
-0.3129274547100067,
0.11173098534345627,
0.40269970893859863,
-0.881835401058197,
0.2132675051689148,
0.19832001626491547,
0.05569376051425934,
0.021494872868061066,
0.3038445711135864,
-0.2842593491077423,
-0.03521129488945007,
-0.2930731475353241,
-0.0345342643558979,
0.059071026742458344,
-0.2884025275707245,
-0.24936971068382263,
0.15520773828029633,
-0.08905235677957535,
-0.02285301685333252,
0.24299439787864685,
0.1101587787270546,
0.35566502809524536,
-0.023717105388641357,
-0.09289461374282837,
0.1914542317390442,
-0.059122323989868164,
0.013187786564230919,
-0.2130649834871292,
-0.1901593953371048,
0.3738618493080139,
0.17160481214523315,
-0.008113712072372437,
0.011837892234325409,
0.169246643781662,
-0.6463863849639893,
0.33195656538009644,
-0.10691304504871368,
0.1779622733592987,
0.09053400903940201,
0.3250351846218109,
0.017367031425237656,
0.2009604126214981,
0.1837182641029358,
-0.6111765503883362,
0.1801488697528839,
0.4992317855358124,
-0.18962372839450836,
-0.24798212945461273,
-0.10436392575502396,
-0.33950355648994446,
-0.05651240795850754,
-0.10281705856323242,
-0.11033786833286285,
-0.011008014902472496,
0.18396598100662231,
-0.10096155107021332,
-0.07517412304878235,
-0.04086063429713249,
0.4944823086261749,
-0.4295214116573334,
0.07048791646957397,
-0.3189310133457184,
0.3528832495212555,
0.09929079562425613,
-0.10220593959093094,
0.14108678698539734,
-0.07120241969823837,
0.2762881815433502,
-0.15781235694885254,
-0.1376790702342987,
0.21360260248184204,
0.3686513900756836,
-0.023041188716888428,
-0.03863721340894699,
-0.22152812778949738,
0.1488555669784546,
-0.17209002375602722,
-0.03236038237810135,
0.2876802980899811,
0.35814592242240906,
-0.07490966469049454,
-0.41604411602020264,
0.32699546217918396,
-0.4082435071468353,
0.1859026551246643,
-0.18694165349006653,
0.09789343178272247,
0.3414915204048157,
0.00861535593867302,
0.04488430172204971,
0.060609057545661926,
-0.005595177412033081,
0.1934434175491333,
0.15977446734905243,
0.13723832368850708,
-0.27499306201934814,
-0.06907645612955093,
0.11373661458492279,
0.23583897948265076,
-0.29242566227912903,
0.16574928164482117,
-0.10187994688749313,
-0.016821395605802536,
0.43986451625823975,
0.2854732871055603,
0.45597773790359497,
0.042145371437072754,
-0.2504726052284241,
-0.008084738627076149,
0.09314701706171036,
-0.2148769199848175,
0.09242157638072968,
-0.0473630428314209,
0.0956740453839302,
0.25289008021354675,
0.1965092271566391,
0.15601688623428345,
-0.07591961324214935,
-0.19876693189144135,
0.21106158196926117,
0.26831716299057007,
-0.6494818329811096,
0.027420131489634514,
-0.21444927155971527,
0.2339811623096466,
-0.26038771867752075,
-0.10450969636440277,
0.1035977452993393,
-0.1728934645652771,
-0.34343117475509644,
0.34415286779403687,
-0.04211733490228653,
0.15793241560459137,
-0.09931814670562744,
0.1854150891304016,
0.07304248958826065,
-0.16898125410079956,
0.03340909630060196,
-0.21045850217342377,
-0.22210752964019775,
-0.008325193077325821,
0.17569483816623688,
0.025554068386554718,
-0.05174095928668976,
0.031244391575455666,
0.07509788870811462,
-0.24191832542419434,
-0.06532324105501175,
0.05223120003938675,
-0.03774752467870712,
0.13855688273906708,
0.03507416322827339,
-0.025947898626327515,
-0.02334345318377018,
-0.31751251220703125,
0.16836626827716827,
0.07253219932317734,
-0.002466963604092598,
0.22565117478370667,
0.20330800116062164,
-0.22211630642414093,
-0.15778756141662598,
-0.6343610286712646,
-0.3415052890777588,
-0.2504071891307831,
-0.017514921724796295,
-0.04389774054288864,
-0.03460761159658432,
-0.09595607966184616,
0.3808247447013855,
-0.011676792055368423,
0.24457362294197083,
-0.04655822366476059,
-0.04349652677774429,
-0.2414991408586502,
0.5401972532272339,
-0.17618411779403687,
-0.30559441447257996,
0.28816506266593933,
0.005794841796159744,
0.08121570944786072,
0.40175163745880127,
-0.4659740924835205,
0.1516275405883789,
0.01257325429469347,
0.13100242614746094,
-0.09813311696052551,
0.0019648540765047073,
0.13701671361923218,
0.025965532287955284,
0.08561816066503525,
0.013788588345050812,
-0.2664070129394531,
0.12537620961666107,
-0.07366384565830231,
0.10626620054244995,
0.12986525893211365,
0.6638558506965637,
-0.17331862449645996,
0.6843753457069397,
0.1312825232744217,
-0.15602998435497284,
0.2848721146583557,
-0.15241478383541107,
0.36404949426651,
0.16640202701091766,
-0.3182912766933441,
0.12697114050388336,
-0.2186775803565979,
-0.3227931261062622,
0.20497415959835052,
-0.13817796111106873,
-0.06867557764053345,
-0.15399107336997986,
0.18167471885681152,
-0.322124719619751,
-0.15054520964622498,
0.210945263504982,
-0.100391685962677,
0.06781403720378876,
-0.030539240688085556,
0.1973719298839569,
0.02372930571436882,
-0.1864508092403412,
-0.04679403081536293,
0.21853218972682953,
0.16801029443740845,
-0.08043750375509262,
0.14705868065357208,
0.031991828233003616,
-0.22798550128936768,
0.29454874992370605,
0.022481903433799744,
0.41118472814559937,
0.0595986433327198,
-0.08836153149604797,
0.00891285389661789,
0.16257573664188385,
0.742617130279541,
-0.12560652196407318,
-0.07316727191209793,
0.08536030352115631,
-0.23339055478572845,
-0.1674274206161499,
-0.28849947452545166,
-0.08999078720808029,
0.18682938814163208,
-0.0027641914784908295,
0.19873496890068054,
0.02963849902153015,
-0.04725256562232971,
0.32818081974983215,
0.1264510452747345,
-0.18741929531097412,
-0.24985764920711517,
-0.11881528794765472,
-0.009369935840368271,
-0.2244078814983368,
-0.20999744534492493,
0.10629645735025406,
0.07637447863817215,
-0.3267103433609009,
-0.019183386117219925,
-0.27143579721450806,
-0.21401700377464294,
0.28010258078575134,
0.1397760808467865,
0.31127890944480896,
0.07635294646024704,
0.26534503698349,
0.1252957284450531,
0.21063487231731415,
0.29839977622032166,
0.6239319443702698,
-0.12434069812297821,
-0.7515362501144409,
0.16911134123802185,
-0.4580964744091034,
0.2946285009384155,
0.027376972138881683,
-0.3869457244873047,
-0.06400571018457413,
-0.33853214979171753,
-0.10962513089179993,
-0.07030773162841797,
-0.07265303283929825,
0.13654503226280212,
0.05856505036354065,
-0.18465127050876617,
-0.4386245608329773,
0.4338480532169342,
-0.05189050734043121,
-0.10561931878328323,
0.28258997201919556,
-0.06926536560058594,
-0.3331138789653778,
0.3501768112182617,
-0.027787819504737854,
0.6251301765441895,
-0.09912978112697601,
0.010229863226413727,
0.1925516128540039,
-0.24281197786331177,
0.4717305302619934,
-0.220442995429039,
0.025823164731264114,
-0.45982393622398376,
-0.24515916407108307,
-0.19222232699394226,
0.03224881365895271,
0.09667490422725677,
0.44800519943237305,
-0.20106232166290283,
0.28901800513267517,
-0.1025589108467102,
0.3831978440284729,
0.007843012921512127,
0.02202685922384262,
0.38031017780303955,
-0.16651096940040588,
-0.1624480038881302,
0.09536916762590408,
-0.15262481570243835,
-0.02458195388317108,
0.05639073997735977,
0.01971810683608055,
-0.297627717256546,
0.012580420821905136,
-0.2996995449066162,
0.2973290681838989,
-0.20800980925559998,
0.22161394357681274,
0.08061860501766205,
-0.7200574278831482,
0.48171356320381165,
0.39345598220825195,
0.26463091373443604,
-0.12157510221004486,
-0.17506277561187744,
0.056140437722206116,
0.01330580934882164,
0.011478908360004425,
-0.14938221871852875,
-0.08520598709583282,
0.004701524972915649,
0.19396740198135376,
-0.19689154624938965,
0.31110063195228577,
-0.034401021897792816,
-0.06464726477861404,
0.3603191375732422,
0.26368212699890137,
0.09224118292331696,
-0.4585043787956238,
-0.4622545540332794,
-0.1424630582332611,
0.13995002210140228,
-0.08673829585313797,
0.05054223909974098,
-0.09106604754924774,
0.05932414531707764,
-0.09132032841444016,
0.09697924554347992,
-0.429460734128952,
0.09092386066913605,
0.2542864680290222,
-0.19236087799072266,
0.030295483767986298,
0.4609154760837555,
0.4661319851875305,
-0.15701669454574585,
-0.11272434145212173,
-0.0519314743578434,
0.12424439191818237,
-0.664046585559845,
0.1180860623717308,
0.08742792159318924,
0.271310031414032,
0.11066675186157227,
0.22456508874893188,
0.24484822154045105,
-0.12995252013206482,
0.11595116555690765,
-0.5455237030982971,
-0.06974701583385468,
-0.0773647129535675,
-0.2316935509443283,
0.0858306884765625,
-0.046564534306526184,
-0.3287047743797302,
-0.029968902468681335,
-0.04606633633375168,
-0.18222743272781372,
0.14796507358551025,
0.08297882974147797,
0.09126681089401245,
0.23287907242774963,
0.3219474256038666,
-0.2838844060897827,
-0.2637482285499573,
0.02921571396291256,
0.05072244256734848,
0.12166956067085266,
-0.11270275712013245,
-0.19227519631385803,
0.15941138565540314,
0.02831438183784485,
0.11068405210971832,
-0.2598893642425537,
-0.2662131190299988,
-0.268695205450058,
-0.17958524823188782,
0.13537904620170593,
0.3537658452987671,
-0.00812586396932602,
0.4036303460597992,
-0.043126750737428665,
-0.10336954146623611,
-0.5479773879051208,
0.2926706373691559,
-0.24158623814582825,
0.22377625107765198,
0.19903792440891266,
0.1964118778705597,
0.13095909357070923,
0.20350170135498047,
-0.19965901970863342,
0.0008342340588569641,
-0.13609270751476288,
-0.04939733445644379,
0.16392961144447327,
-0.32546836137771606,
0.1608218103647232,
0.11598116159439087,
0.27963292598724365,
0.3563480079174042,
-0.14520488679409027,
-0.11587423831224442,
0.11494104564189911,
0.11075276136398315,
-0.3894900977611542,
0.24990110099315643,
0.07108865678310394,
0.26261061429977417,
-0.12185296416282654,
0.318899542093277,
0.08030107617378235,
-0.15592099726200104,
0.13305678963661194,
0.21220314502716064,
0.5601610541343689,
-0.13040250539779663,
0.16799277067184448,
0.13828814029693604,
0.015329103916883469,
0.10114037990570068,
0.1315079778432846,
-0.024882204830646515,
0.08741969615221024,
0.4638621211051941,
-0.1963234543800354,
0.025922011584043503,
0.33780014514923096,
0.22432319819927216,
-0.17775508761405945,
-0.5586881637573242,
0.15424612164497375,
0.144156351685524,
-0.34094738960266113,
-0.24323874711990356,
0.21542374789714813,
0.4956798553466797,
0.011311772279441357,
0.007661955431103706,
-0.3150694966316223,
-0.0030329227447509766,
0.003870440647006035,
-0.04592449590563774,
-0.16757884621620178,
-0.1899212896823883,
-0.3356913924217224,
0.3205702006816864,
-0.13494406640529633,
0.02054974064230919,
0.48142555356025696,
0.23248909413814545,
-0.2511172890663147,
-0.5126866102218628,
0.15088868141174316,
0.2508910596370697,
0.027404777705669403,
-0.17134693264961243,
0.08523526042699814,
0.049550727009773254,
-0.05405235290527344,
0.16985301673412323,
-0.019238552078604698,
0.48597630858421326,
0.4486762583255768,
0.02739887312054634,
-0.3042319118976593,
-0.040158964693546295,
0.015979105606675148,
-0.04404063522815704,
0.4091784358024597,
0.01311320811510086,
0.33083468675613403,
0.18331898748874664,
0.13579708337783813,
-0.006079974118620157,
0.29831114411354065,
0.11404772847890854,
0.07049218565225601,
-0.41069743037223816,
-0.05407252162694931,
-0.04097719490528107,
-0.07143595814704895,
-0.15862689912319183,
-0.149156391620636,
-0.08716335892677307,
-0.14856013655662537,
0.5196438431739807,
0.12151209264993668,
0.18861982226371765,
0.1503845900297165,
0.007390940561890602,
-0.13679508864879608,
0.2055475413799286,
0.35618242621421814,
0.08191781491041183,
-0.5459756851196289,
-0.0732729434967041,
-0.8299983739852905,
0.07749812304973602,
-0.12818528711795807,
-0.09729306399822235,
-0.08785849064588547,
0.24189694225788116,
0.2936001420021057,
0.23210418224334717,
-0.04368990659713745,
0.17983649671077728,
0.04899992048740387,
0.26185882091522217,
-0.25539860129356384,
-0.15629029273986816,
-0.31287282705307007,
-0.021439457312226295,
-0.07128991186618805,
-0.37519562244415283,
0.031786322593688965,
0.1568145751953125,
-0.08993945270776749,
-0.1936054825782776,
-0.07881838828325272,
0.07431849837303162,
-0.11197586357593536,
0.47286465764045715,
-0.05718591809272766,
0.4539397954940796,
0.07066880911588669,
0.3540860712528229,
-0.40804070234298706,
-0.2868049740791321,
-0.17248719930648804,
0.40946340560913086,
0.005450736731290817,
0.3774997889995575,
-0.3005763292312622,
-0.01914258301258087,
-0.2216660976409912,
0.13385789096355438,
0.060283660888671875,
0.19353419542312622,
-0.2525571286678314,
0.2503119111061096,
-0.11849963665008545,
0.17640885710716248,
0.019354023039340973,
-0.035827986896038055,
-0.10187847912311554,
0.27175408601760864,
-0.16488584876060486,
-0.2978324890136719,
0.2681592106819153,
-0.206534281373024,
-0.2151191681623459,
-0.023916129022836685,
0.09728703647851944,
0.15721115469932556,
0.17485195398330688,
-0.5737085938453674,
-0.011729329824447632,
0.3259619176387787,
-0.18270879983901978,
-0.13043850660324097,
0.13007278740406036,
0.00029016099870204926,
0.059657324105501175,
-0.18490178883075714,
0.22643229365348816,
0.25642842054367065,
-0.18771806359291077,
-0.20467844605445862,
-0.32825374603271484
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi !
Can you try running this into a python shell directly ?
```python
import os
from datasets import load_dataset
data_files = {"train": "train.tsv", "test": "test.tsv"}
assert all(os.path.isfile(data_file) for data_file in data_files.values()), "Couln't find files"
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
print("success !")
```
This way all the code from `run_glue.py` doesn't interfere with our tests :) | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 56 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi !
Can you try running this into a python shell directly ?
```python
import os
from datasets import load_dataset
data_files = {"train": "train.tsv", "test": "test.tsv"}
assert all(os.path.isfile(data_file) for data_file in data_files.values()), "Couln't find files"
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
print("success !")
```
This way all the code from `run_glue.py` doesn't interfere with our tests :) | [
-0.006285965442657471,
0.06183341145515442,
0.00043598003685474396,
0.34390467405319214,
0.25248807668685913,
0.17513391375541687,
0.5055188536643982,
0.3278368413448334,
0.383930504322052,
0.00752035528421402,
-0.09473074972629547,
0.2648680806159973,
-0.09982787072658539,
-0.009366573765873909,
-0.22457754611968994,
-0.039557263255119324,
0.05098636448383331,
0.029724441468715668,
-0.3710772395133972,
0.07255144417285919,
-0.3521108627319336,
0.2782053053379059,
-0.30210554599761963,
-0.04406553506851196,
-0.1426059752702713,
0.18257038295269012,
-0.11160878837108612,
0.33345264196395874,
-0.09980130195617676,
-0.4000121057033539,
0.4402318596839905,
-0.03914586827158928,
0.47214776277542114,
0.3309655487537384,
-0.00012067730131093413,
0.08934532105922699,
0.35739195346832275,
-0.07028508186340332,
-0.22254236042499542,
-0.5089857578277588,
-0.03381688892841339,
-0.46867766976356506,
0.29672950506210327,
-0.1405782699584961,
-0.10998786240816116,
0.12478552013635635,
-0.14716900885105133,
-0.4223872423171997,
0.33623892068862915,
0.49165353178977966,
0.16663388907909393,
-0.04982719197869301,
-0.07769866287708282,
-0.04879375919699669,
0.6013208031654358,
0.0008951425552368164,
-0.10738558322191238,
0.34732291102409363,
0.09766969829797745,
-0.25494661927223206,
-0.07491617649793625,
0.07842077314853668,
-0.07964250445365906,
0.2506425380706787,
0.15518182516098022,
0.24110370874404907,
-0.1426447629928589,
-0.1929207295179367,
0.00802934356033802,
0.1800803542137146,
0.538320779800415,
-0.17239269614219666,
-0.20854541659355164,
-0.06550290435552597,
-0.07187196612358093,
-0.04089491441845894,
0.3501514196395874,
0.3825584948062897,
0.02931201085448265,
0.37886181473731995,
0.013486105017364025,
0.05418221652507782,
-0.1889534741640091,
0.12644919753074646,
0.08083771169185638,
-0.0003966093063354492,
-0.14691585302352905,
0.29849183559417725,
0.15975293517112732,
0.026227105408906937,
0.16890837252140045,
-0.11507409811019897,
-0.062205720692873,
0.14778488874435425,
-0.7149012684822083,
0.32519835233688354,
-0.1247541680932045,
-0.02063685655593872,
0.018707863986492157,
0.2130945324897766,
0.24784518778324127,
-0.042283184826374054,
-0.05256836861371994,
0.361003577709198,
0.24180811643600464,
0.08964626491069794,
-0.042715735733509064,
0.2770178020000458,
0.24270612001419067,
-0.1332806497812271,
-0.02873002365231514,
-0.11926247924566269,
-0.30030304193496704,
-0.5950942635536194,
-0.05168444663286209,
0.14796343445777893,
0.3075259327888489,
-0.16551773250102997,
-0.2107231169939041,
0.07642409950494766,
-0.3221823573112488,
0.0662977397441864,
-0.14819978177547455,
0.22947904467582703,
0.14250366389751434,
0.23348969221115112,
0.07626893371343613,
0.31077104806900024,
-0.13205325603485107,
-0.30831024050712585,
-0.041916415095329285,
0.23960910737514496,
-0.3795768618583679,
-0.05011438578367233,
0.4993753135204315,
-0.20409132540225983,
0.11537802964448929,
0.19191524386405945,
-0.14582596719264984,
-0.3528425395488739,
0.01529134251177311,
-0.2772710919380188,
0.09874976426362991,
0.30707189440727234,
0.03103199228644371,
0.18298538029193878,
0.3100917935371399,
-0.3143516778945923,
-0.06521237641572952,
0.2924494445323944,
-0.38398420810699463,
-0.19583579897880554,
-0.07347872108221054,
0.09473308175802231,
-0.3603919744491577,
0.07961294054985046,
-0.3193357288837433,
0.02569250389933586,
-0.008764609694480896,
-0.17690229415893555,
-0.12821993231773376,
-0.3565782904624939,
-0.2364250272512436,
-0.2965959310531616,
0.11109220236539841,
0.4650503993034363,
-0.7945945262908936,
0.23832958936691284,
-0.009650953114032745,
0.0674595832824707,
0.04696113243699074,
0.20299315452575684,
-0.1751927137374878,
0.0009627342224121094,
-0.32694530487060547,
0.1846570521593094,
0.13123302161693573,
-0.3535791039466858,
-0.36298659443855286,
0.21355068683624268,
-0.11016122996807098,
-0.014027811586856842,
0.17430317401885986,
0.008710336871445179,
0.2934427857398987,
-0.04219586402177811,
-0.17572668194770813,
0.15227319300174713,
0.008166661486029625,
0.02315540798008442,
-0.321260929107666,
-0.2146085649728775,
0.28249824047088623,
0.17919257283210754,
0.0050031766295433044,
0.018118634819984436,
0.2591668665409088,
-0.7052285671234131,
0.3372288644313812,
-0.025721658021211624,
0.23242340981960297,
0.09880702942609787,
0.3722817897796631,
0.011370882391929626,
0.30142033100128174,
-0.003751760348677635,
-0.53783118724823,
0.238497793674469,
0.47750619053840637,
-0.13310930132865906,
-0.1889236718416214,
-0.06813418865203857,
-0.42037421464920044,
0.010743239894509315,
-0.21686922013759613,
-0.10972142219543457,
0.010244496166706085,
0.03572924807667732,
-0.00011680833995342255,
-0.10826951265335083,
-0.055072322487831116,
0.43374693393707275,
-0.23980306088924408,
0.1292283684015274,
-0.3495221734046936,
0.3247341811656952,
0.11209718883037567,
-0.059616923332214355,
0.16629751026630402,
0.037718795239925385,
0.2580133080482483,
-0.1628747135400772,
-0.1263892650604248,
0.3396657705307007,
0.3961007595062256,
-0.05197100341320038,
0.16090834140777588,
-0.169075146317482,
0.06900192052125931,
-0.24594616889953613,
-0.05592481046915054,
0.24507524073123932,
0.33976683020591736,
-0.07775585353374481,
-0.4732547700405121,
0.29241132736206055,
-0.32880887389183044,
0.31454747915267944,
-0.13218411803245544,
0.1685902625322342,
0.22304877638816833,
-0.06968030333518982,
-0.19756685197353363,
0.06411521136760712,
0.04271376505494118,
0.015442227944731712,
0.32712477445602417,
0.1262814998626709,
-0.12611061334609985,
-0.1338539719581604,
0.1003459021449089,
0.11347818374633789,
-0.19793251156806946,
0.14492246508598328,
-0.13652688264846802,
-0.02663361467421055,
0.3255557715892792,
0.43481090664863586,
0.4938299059867859,
0.11529430747032166,
-0.1612459421157837,
-0.02800622396171093,
0.07579274475574493,
-0.18659758567810059,
0.14062084257602692,
0.04649607464671135,
0.027577916160225868,
0.19593092799186707,
0.24765443801879883,
0.044458888471126556,
-0.09109148383140564,
-0.12319812178611755,
0.12776359915733337,
0.18534569442272186,
-0.6318140625953674,
-0.03640560060739517,
-0.2342250794172287,
0.3816651701927185,
-0.20503319799900055,
-0.04714592546224594,
0.1352359652519226,
-0.28193342685699463,
-0.31574082374572754,
0.20355874300003052,
-0.14041092991828918,
0.09730903059244156,
-0.20604637265205383,
0.21798884868621826,
0.12977872788906097,
-0.22058652341365814,
0.002476003021001816,
-0.17149774730205536,
-0.2777160406112671,
-0.017611896619200706,
0.09865659475326538,
0.03895433619618416,
0.004579110071063042,
0.12169202417135239,
0.04422624036669731,
-0.2933129668235779,
-0.13598188757896423,
0.11836346238851547,
-0.02739817649126053,
0.1899537891149521,
0.21419711410999298,
-0.1362733095884323,
-0.0025947801768779755,
-0.17410100996494293,
0.21848614513874054,
0.03303780406713486,
0.04185646027326584,
0.40063831210136414,
0.2771766781806946,
-0.10219959914684296,
-0.14225079119205475,
-0.6783524751663208,
-0.3884109556674957,
-0.27952200174331665,
0.14295551180839539,
-0.17249344289302826,
-0.11114487051963806,
0.12169891595840454,
0.30005085468292236,
0.037391506135463715,
0.12720446288585663,
-0.10773632675409317,
-0.1172490045428276,
-0.24217459559440613,
0.5630999207496643,
-0.20890086889266968,
-0.3398689925670624,
0.18510957062244415,
-0.17224888503551483,
0.004118055105209351,
0.35096490383148193,
-0.3908098340034485,
0.018076427280902863,
-0.09999991953372955,
0.06934551894664764,
-0.027868136763572693,
0.15421901643276215,
0.023892469704151154,
-0.047691088169813156,
0.10445275902748108,
-0.07208724319934845,
-0.16171780228614807,
0.2585965096950531,
-0.031614676117897034,
-0.012934423983097076,
0.2223130762577057,
0.47580698132514954,
-0.1225692629814148,
0.580425500869751,
0.06196415051817894,
0.05045413225889206,
0.28057703375816345,
-0.16698065400123596,
0.39394259452819824,
0.1707344651222229,
-0.2829436659812927,
0.0277963075786829,
-0.13353371620178223,
-0.3184965252876282,
0.25857535004615784,
0.0010109534487128258,
-0.0635259672999382,
-0.049960602074861526,
0.30573973059654236,
-0.2884359657764435,
-0.21980251371860504,
0.13597434759140015,
-0.06763843446969986,
0.03282816335558891,
0.02859843149781227,
0.09050800651311874,
0.07520078122615814,
-0.22219419479370117,
0.025945529341697693,
0.1324169635772705,
0.20704692602157593,
-0.08717811852693558,
0.11516734957695007,
-0.1608940213918686,
-0.2878500521183014,
0.20113922655582428,
-0.0998939648270607,
0.4879913330078125,
0.09227581322193146,
-0.12467765063047409,
0.028981372714042664,
0.1562560647726059,
0.7973384857177734,
-0.3307301104068756,
0.06074797362089157,
0.20857679843902588,
-0.05799121409654617,
-0.27058082818984985,
-0.32270368933677673,
-0.19742771983146667,
0.14499740302562714,
0.04051697626709938,
0.33296146988868713,
-0.029681891202926636,
0.0314079113304615,
0.401572585105896,
0.11987507343292236,
-0.09220628440380096,
-0.3959643840789795,
-0.15090829133987427,
-0.05236843228340149,
-0.1299738734960556,
-0.20180773735046387,
0.16424567997455597,
0.06384864449501038,
-0.26263418793678284,
0.048417504876852036,
-0.2081124186515808,
-0.2489890158176422,
0.3064344525337219,
0.09980055689811707,
0.3315269947052002,
0.0016844766214489937,
0.23516559600830078,
0.24442967772483826,
0.10302868485450745,
0.12862472236156464,
0.7356913685798645,
-0.23166286945343018,
-0.749552309513092,
0.15350326895713806,
-0.49991554021835327,
0.41556230187416077,
-0.022335141897201538,
-0.3868148922920227,
-0.09336631745100021,
-0.3285093903541565,
-0.07509380578994751,
-0.14874543249607086,
0.022109249606728554,
0.13003845512866974,
0.023547373712062836,
-0.12249197065830231,
-0.3920351266860962,
0.5094702839851379,
-0.05291692540049553,
-0.1391727328300476,
0.1484798789024353,
0.05043163523077965,
-0.34354546666145325,
0.5170086622238159,
-0.22647783160209656,
0.6625573635101318,
-0.1139022707939148,
-0.042921606451272964,
0.2207421064376831,
-0.23470363020896912,
0.4015941619873047,
-0.2745753526687622,
-0.07258343696594238,
-0.4662558138370514,
-0.28597599267959595,
-0.11236812174320221,
-0.057946376502513885,
0.08954838663339615,
0.5569061636924744,
-0.23003791272640228,
0.33196553587913513,
-0.11285266280174255,
0.3904387950897217,
0.06533494591712952,
0.18537244200706482,
0.30279260873794556,
-0.13885237276554108,
-0.13994042575359344,
0.10913260281085968,
-0.03708728402853012,
-0.04530629143118858,
0.09280417859554291,
0.03252951055765152,
-0.2246847003698349,
-0.08321443200111389,
-0.31118884682655334,
0.2645089030265808,
-0.22138221561908722,
0.10781250894069672,
0.1895972490310669,
-0.4579070210456848,
0.4743632674217224,
0.35680127143859863,
0.11463662981987,
-0.002902120351791382,
-0.18525861203670502,
0.10150085389614105,
0.12176428735256195,
0.04067520797252655,
0.006859916262328625,
-0.018650583922863007,
-0.007311785593628883,
0.22698843479156494,
-0.21339631080627441,
0.20654428005218506,
-0.13370101153850555,
-0.09988081455230713,
0.28327542543411255,
0.26628854870796204,
0.1629762053489685,
-0.4632597863674164,
-0.4328163266181946,
-0.22198739647865295,
0.07563574612140656,
-0.08253015577793121,
0.052900586277246475,
-0.028985433280467987,
-0.02613864094018936,
0.05181930214166641,
0.09386618435382843,
-0.40682560205459595,
0.1623445600271225,
0.21686884760856628,
-0.31584930419921875,
0.1522032469511032,
0.43229082226753235,
0.4757806658744812,
-0.0787293016910553,
-0.16612505912780762,
0.020774364471435547,
0.17921392619609833,
-0.5332828164100647,
0.16876113414764404,
0.07790888845920563,
0.18872155249118805,
0.09659440815448761,
0.11229504644870758,
0.2716132402420044,
-0.21941718459129333,
0.05631539598107338,
-0.599729061126709,
-0.01786240190267563,
-0.02901877462863922,
-0.0808219164609909,
0.12140905857086182,
-0.04375292733311653,
-0.41807863116264343,
-0.07691691815853119,
-0.04927496612071991,
-0.1964782178401947,
0.14147353172302246,
0.0534512922167778,
0.03806541487574577,
0.30487751960754395,
0.26140066981315613,
-0.1836986541748047,
-0.2774612009525299,
0.04809136688709259,
0.03337307646870613,
0.07879723608493805,
-0.13181987404823303,
-0.19841979444026947,
0.16454093158245087,
-0.07244600355625153,
0.21789392828941345,
-0.18941402435302734,
-0.19728603959083557,
-0.19896022975444794,
-0.18300648033618927,
0.124534472823143,
0.2621740698814392,
-0.02829291671514511,
0.36483821272850037,
-0.007606718689203262,
-0.18506497144699097,
-0.44638317823410034,
0.308759868144989,
-0.24915862083435059,
0.11771397292613983,
0.12128810584545135,
0.21079225838184357,
0.1490396112203598,
0.12652602791786194,
-0.08764509111642838,
0.0389842726290226,
-0.1910281628370285,
-0.06348542869091034,
0.26769667863845825,
-0.34269410371780396,
0.11562272906303406,
0.17549706995487213,
0.42359164357185364,
0.3090229034423828,
-0.13569237291812897,
-0.060691699385643005,
0.07624323666095734,
0.1580805480480194,
-0.3811095058917999,
0.2064095288515091,
0.16731639206409454,
0.2456318885087967,
0.020137127488851547,
0.2834112048149109,
-0.03828434646129608,
-0.10489236563444138,
0.023770365864038467,
0.19075897336006165,
0.673342227935791,
0.03771013021469116,
0.034213319420814514,
0.2278379499912262,
-0.07860013842582703,
0.09149439632892609,
0.14616043865680695,
-0.16824419796466827,
0.07730789482593536,
0.37105536460876465,
-0.08275914937257767,
0.0036635156720876694,
0.3795470595359802,
0.18755900859832764,
-0.13093066215515137,
-0.5275372862815857,
0.24052268266677856,
0.3179282546043396,
-0.23212134838104248,
-0.13876870274543762,
0.1503390371799469,
0.827631413936615,
-0.07423309981822968,
0.04681563749909401,
-0.2539834976196289,
-0.12518085539340973,
0.12334965914487839,
-0.09457419812679291,
-0.10506483912467957,
-0.13398143649101257,
-0.4750001132488251,
0.22036129236221313,
-0.10884691774845123,
-0.02792821079492569,
0.49344602227211,
0.2190086841583252,
0.0072316974401474,
-0.4880756139755249,
0.019679680466651917,
0.21673351526260376,
0.0583825446665287,
-0.322528213262558,
0.10155229270458221,
-0.061308398842811584,
0.004888623952865601,
0.2801898419857025,
-0.10020241886377335,
0.47255435585975647,
0.38397279381752014,
-0.0325988307595253,
-0.34483417868614197,
-0.19783101975917816,
-0.06832868605852127,
-0.07550731301307678,
0.4705098271369934,
-0.05508960783481598,
0.2542237937450409,
0.2449970692396164,
0.11671525239944458,
-0.018292797729372978,
0.21339422464370728,
0.07770385593175888,
0.04935836419463158,
-0.47349056601524353,
0.016253575682640076,
0.03886255621910095,
-0.12411879003047943,
-0.1102304607629776,
-0.23458310961723328,
-0.20536363124847412,
-0.19268156588077545,
0.5107020139694214,
0.11634784936904907,
0.22565066814422607,
0.16957080364227295,
0.014369554817676544,
-0.159737229347229,
0.18768678605556488,
0.42516958713531494,
0.08983352780342102,
-0.5339034199714661,
-0.008608318865299225,
-0.8671329617500305,
-0.02641727775335312,
-0.1721193641424179,
-0.21944883465766907,
-0.0038315607234835625,
0.22229155898094177,
0.31623005867004395,
0.26486241817474365,
-0.0011594370007514954,
0.2110915333032608,
-0.0564788319170475,
0.24172914028167725,
-0.2078544944524765,
-0.15456126630306244,
-0.21328912675380707,
0.05498240143060684,
-0.0199388787150383,
-0.4609718918800354,
0.03797284513711929,
0.22962571680545807,
-0.11717567592859268,
-0.07720476388931274,
-0.10855896770954132,
0.12849825620651245,
-0.28561872243881226,
0.4325982928276062,
-0.05866750329732895,
0.4626668691635132,
0.04142652451992035,
0.3189248740673065,
-0.49403560161590576,
-0.2361554503440857,
-0.1467922180891037,
0.20075812935829163,
-0.20024758577346802,
0.374176025390625,
-0.28076598048210144,
-0.003488447517156601,
-0.20289045572280884,
-0.05594833567738533,
0.08429107069969177,
0.1892363280057907,
-0.31154608726501465,
0.23945799469947815,
-0.10832049697637558,
0.2191472202539444,
-0.08472641557455063,
-0.11017092317342758,
-0.20253393054008484,
0.2691790461540222,
-0.05433087795972824,
-0.36677372455596924,
0.3107219338417053,
-0.30825722217559814,
-0.2810046672821045,
0.0863788053393364,
0.26691490411758423,
0.14903274178504944,
0.12822477519512177,
-0.4939647316932678,
-0.06897367537021637,
0.346580445766449,
-0.11818081885576248,
-0.1696474552154541,
0.15385551750659943,
0.09022438526153564,
0.1440921425819397,
-0.10823790729045868,
0.13992078602313995,
0.27951857447624207,
-0.20764751732349396,
-0.17173488438129425,
-0.3059181571006775
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi @lhoestq,
Below is what I got from terminal after I copied and run your code. I think the files themselves are good since there is no assertion error.
```
Using custom data configuration default-df627c23ac0e98ec
Downloading and preparing dataset csv/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /usr4/cs542sp/hey1/.cache/huggingface/datasets/csv/default-df627c23ac0e98ec/0.0.0/9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff...
Traceback (most recent call last):
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 1166, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/arrow_writer.py", line 428, in finalize
self.stream.close()
File "pyarrow/io.pxi", line 132, in pyarrow.lib.NativeFile.close
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: error closing file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 7, in <module>
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/load.py", line 852, in load_dataset
use_auth_token=use_auth_token,
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 616, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 699, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
error closing file
``` | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 160 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi @lhoestq,
Below is what I got from terminal after I copied and run your code. I think the files themselves are good since there is no assertion error.
```
Using custom data configuration default-df627c23ac0e98ec
Downloading and preparing dataset csv/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /usr4/cs542sp/hey1/.cache/huggingface/datasets/csv/default-df627c23ac0e98ec/0.0.0/9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff...
Traceback (most recent call last):
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 1166, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/arrow_writer.py", line 428, in finalize
self.stream.close()
File "pyarrow/io.pxi", line 132, in pyarrow.lib.NativeFile.close
File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
OSError: error closing file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 7, in <module>
datasets = load_dataset("csv", data_files=data_files, delimiter="\t")
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/load.py", line 852, in load_dataset
use_auth_token=use_auth_token,
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 616, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/projectnb2/media-framing/env-trans4/lib/python3.7/site-packages/datasets/builder.py", line 699, in _download_and_prepare
+ str(e)
OSError: Cannot find data file.
Original error:
error closing file
``` | [
-0.07662072777748108,
0.09206579625606537,
-0.0017136894166469574,
0.4262591600418091,
0.2603352665901184,
0.17576563358306885,
0.38547465205192566,
0.28411194682121277,
0.26407116651535034,
0.03102608025074005,
-0.1189909353852272,
0.2788830101490021,
-0.055752672255039215,
0.043607085943222046,
-0.30209994316101074,
-0.03125518560409546,
0.0004868730902671814,
0.05665035918354988,
-0.388547420501709,
0.041014090180397034,
-0.3662187159061432,
0.3667452335357666,
-0.3187190294265747,
-0.060999795794487,
-0.19143976271152496,
0.22636868059635162,
-0.03683140501379967,
0.33826595544815063,
-0.1301845908164978,
-0.3756915032863617,
0.5021187663078308,
-0.05211811140179634,
0.5287909507751465,
0.3145392835140228,
-0.00011664363410091028,
0.044226087629795074,
0.3172168731689453,
-0.0800383985042572,
-0.24723485112190247,
-0.48120224475860596,
-0.07326217740774155,
-0.4360751211643219,
0.27857139706611633,
-0.09326253086328506,
-0.0746382549405098,
0.08312629163265228,
-0.18386723101139069,
-0.4044435918331146,
0.3599591851234436,
0.49056002497673035,
0.20419396460056305,
-0.2266177386045456,
-0.053396619856357574,
-0.03750888630747795,
0.46728572249412537,
0.13518278300762177,
-0.164674311876297,
0.2667813301086426,
0.03342768922448158,
-0.14993414282798767,
-0.05879508703947067,
0.07668109238147736,
-0.06800626218318939,
0.28340944647789,
0.214371919631958,
0.21970617771148682,
-0.16690850257873535,
-0.17992836236953735,
0.11942626535892487,
0.14649620652198792,
0.72980797290802,
-0.1525372862815857,
-0.1637503057718277,
-0.03468206524848938,
-0.022376660257577896,
-0.057842470705509186,
0.38836413621902466,
0.31478700041770935,
0.01429254375398159,
0.37227946519851685,
-0.08270666748285294,
0.03160161152482033,
-0.26397478580474854,
0.0726015642285347,
0.07814671099185944,
-0.013820759952068329,
-0.2187386006116867,
0.30787625908851624,
0.0906551405787468,
0.006922129541635513,
0.2971341013908386,
-0.14022807776927948,
-0.09778158366680145,
0.18263517320156097,
-0.6836594343185425,
0.2746155560016632,
-0.1902485191822052,
-0.008679471909999847,
-0.035068631172180176,
0.19521263241767883,
0.25960177183151245,
-0.043297410011291504,
-0.11497276276350021,
0.2992672324180603,
0.1880345195531845,
0.041490402072668076,
0.0026779770851135254,
0.27207833528518677,
0.2288469821214676,
-0.1444374918937683,
0.04123133793473244,
-0.13185667991638184,
-0.31977707147598267,
-0.5077927708625793,
-0.09049536287784576,
0.1599707305431366,
0.2539125084877014,
-0.24375377595424652,
-0.227645143866539,
0.12016145139932632,
-0.23138591647148132,
-0.00674025621265173,
-0.1025090366601944,
0.2435491979122162,
0.11269392818212509,
0.2905176877975464,
0.06769300252199173,
0.2179533988237381,
-0.09069474786520004,
-0.43133944272994995,
-0.04515362158417702,
0.11835294961929321,
-0.37206029891967773,
-0.04640170931816101,
0.5200385451316833,
-0.24107962846755981,
0.14232102036476135,
0.26605555415153503,
-0.1297726184129715,
-0.3421303927898407,
-0.03222644329071045,
-0.3169586658477783,
0.023952364921569824,
0.23624850809574127,
0.03897435590624809,
0.24052487313747406,
0.28662994503974915,
-0.1781046986579895,
-0.03251449391245842,
0.3158908486366272,
-0.443251371383667,
-0.15923431515693665,
-0.1350477635860443,
0.1337425261735916,
-0.27512603998184204,
0.05435788631439209,
-0.40439388155937195,
0.11536766588687897,
0.041119348257780075,
-0.19123463332653046,
-0.17122411727905273,
-0.2814701199531555,
-0.3073675036430359,
-0.258914053440094,
0.048022836446762085,
0.4904469847679138,
-0.8519436717033386,
0.22612133622169495,
0.018328117206692696,
0.0025323275476694107,
0.08369433134794235,
0.1709737479686737,
-0.24859081208705902,
0.01573599874973297,
-0.2890161871910095,
0.14831577241420746,
0.049595512449741364,
-0.18578200042247772,
-0.3911416828632355,
0.22979053854942322,
-0.032821763306856155,
-0.04209229350090027,
0.11362221091985703,
0.04963724687695503,
0.3692511320114136,
-0.07149817049503326,
-0.22154247760772705,
0.17601412534713745,
0.002932945266366005,
0.040385060012340546,
-0.2676357626914978,
-0.18435585498809814,
0.18962129950523376,
0.17528878152370453,
0.007474444806575775,
0.11498799920082092,
0.2790454626083374,
-0.6014902591705322,
0.3060944080352783,
-0.0593443401157856,
0.2580801248550415,
0.14587710797786713,
0.2768699526786804,
0.004832074046134949,
0.3109205663204193,
0.06841098517179489,
-0.5979945063591003,
0.23345279693603516,
0.43853235244750977,
-0.20339712500572205,
-0.10506799817085266,
-0.043017320334911346,
-0.47230589389801025,
-0.024961421266198158,
-0.20173589885234833,
-0.06516608595848083,
0.025429535657167435,
0.11143948137760162,
-0.03862771764397621,
-0.16821643710136414,
-0.1144261360168457,
0.4684046506881714,
-0.3507117033004761,
0.06186338886618614,
-0.3040831983089447,
0.33899545669555664,
0.16050106287002563,
-0.03581022843718529,
0.22334447503089905,
-0.07757890969514847,
0.3259297311306,
-0.10291646420955658,
-0.18393561244010925,
0.2597769796848297,
0.32495683431625366,
0.007566578686237335,
0.14122924208641052,
-0.2065000683069229,
0.030501533299684525,
-0.28215596079826355,
-0.007793856784701347,
0.20031020045280457,
0.36784854531288147,
-0.11247409880161285,
-0.4397169053554535,
0.2634720206260681,
-0.308040052652359,
0.21484650671482086,
-0.18410727381706238,
0.08943963050842285,
0.26276180148124695,
-0.05515946075320244,
-0.034127362072467804,
-0.010882291942834854,
0.02967161312699318,
0.06681212037801743,
0.2504251301288605,
0.1660023033618927,
-0.15031111240386963,
-0.11549850553274155,
0.13145895302295685,
0.17372913658618927,
-0.2715708017349243,
0.2519948482513428,
-0.09397067874670029,
-0.07742461562156677,
0.32945021986961365,
0.334438294172287,
0.4893704652786255,
0.10434342175722122,
-0.25051793456077576,
0.0342535562813282,
0.11670542508363724,
-0.17676253616809845,
0.09521424770355225,
-0.014762647449970245,
0.07345975935459137,
0.22746777534484863,
0.1784394532442093,
0.12464720010757446,
-0.11518347263336182,
-0.15554089844226837,
0.21225424110889435,
0.2461775690317154,
-0.5974345207214355,
-0.029121335595846176,
-0.24002346396446228,
0.3107038140296936,
-0.21308229863643646,
-0.01690772920846939,
0.11563494801521301,
-0.23954473435878754,
-0.3577503561973572,
0.2877122163772583,
-0.07532019168138504,
0.05397552251815796,
-0.17764149606227875,
0.24522563815116882,
0.07014559954404831,
-0.18507279455661774,
-0.024196084588766098,
-0.12465521693229675,
-0.29091426730155945,
0.029051460325717926,
0.14943768084049225,
0.019947240129113197,
-0.07025511562824249,
0.06260218471288681,
0.03629663214087486,
-0.3233756422996521,
-0.04760921746492386,
0.14492395520210266,
0.02971247211098671,
0.10764116793870926,
0.12036728113889694,
-0.119322270154953,
-0.04605380818247795,
-0.10170489549636841,
0.1734132319688797,
0.06962516903877258,
0.019620994105935097,
0.34656083583831787,
0.22774459421634674,
-0.170258030295372,
-0.10754965245723724,
-0.6430518627166748,
-0.28730303049087524,
-0.2208731770515442,
0.06941308081150055,
-0.13597768545150757,
-0.06414725631475449,
0.03600764274597168,
0.29755374789237976,
-0.03572610393166542,
0.2472856193780899,
-0.11445435881614685,
-0.17071259021759033,
-0.2853313088417053,
0.556788444519043,
-0.2298513501882553,
-0.29877880215644836,
0.2550552189350128,
-0.06999853253364563,
0.09331671893596649,
0.362368643283844,
-0.4278600811958313,
0.17573949694633484,
-0.08566552400588989,
0.04144240543246269,
-0.09489879012107849,
0.047286875545978546,
0.021336175501346588,
-0.06965970247983932,
0.09431485086679459,
-0.05969737470149994,
-0.20656079053878784,
0.21073323488235474,
-0.050378791987895966,
0.06441621482372284,
0.19912764430046082,
0.4822392165660858,
-0.19260716438293457,
0.5956169962882996,
0.13819368183612823,
0.024441571906208992,
0.31144219636917114,
-0.07276733964681625,
0.3431053161621094,
0.16819551587104797,
-0.24201776087284088,
0.12644483149051666,
-0.09269039332866669,
-0.2797214388847351,
0.30011361837387085,
-0.01758650317788124,
-0.04446469992399216,
-0.08091475069522858,
0.2538175582885742,
-0.26299622654914856,
-0.13290612399578094,
0.1441650241613388,
-0.002171706408262253,
0.08580873906612396,
0.010468926280736923,
0.10786967724561691,
0.0803341418504715,
-0.21458843350410461,
-0.03150302916765213,
0.11629849672317505,
0.14956319332122803,
-0.06656836718320847,
0.14726081490516663,
-0.0682256743311882,
-0.28530922532081604,
0.2672547996044159,
-0.0902937650680542,
0.384255588054657,
0.06164415553212166,
0.012876436114311218,
0.02384084463119507,
0.212443545460701,
0.6938645243644714,
-0.2765265703201294,
-0.00014188140630722046,
0.1259998232126236,
-0.07772127538919449,
-0.17750367522239685,
-0.28614377975463867,
-0.07975559681653976,
0.202236145734787,
0.02409781888127327,
0.3000524938106537,
-0.0484633669257164,
0.029504697769880295,
0.3985029458999634,
0.11147226393222809,
-0.15468773245811462,
-0.4441295862197876,
-0.07889585942029953,
-0.08399301767349243,
-0.13264276087284088,
-0.2752339839935303,
0.1259172409772873,
0.08350502699613571,
-0.2511601746082306,
0.04885656014084816,
-0.23110078275203705,
-0.2213762104511261,
0.2830352783203125,
0.1369822472333908,
0.2412114143371582,
0.07323111593723297,
0.2369685173034668,
0.25241219997406006,
0.10750845074653625,
0.2686491310596466,
0.7835137844085693,
-0.20610742270946503,
-0.8399780988693237,
0.20300057530403137,
-0.5181748270988464,
0.2781229019165039,
-0.02802462875843048,
-0.37635594606399536,
-0.0876166895031929,
-0.2681034803390503,
-0.1287168562412262,
-0.1402122676372528,
-0.0398666150867939,
0.06137949228286743,
0.00890785176306963,
-0.15840578079223633,
-0.49334093928337097,
0.5363296866416931,
-0.16770794987678528,
-0.14830559492111206,
0.1495646834373474,
-0.007160522043704987,
-0.314522922039032,
0.34444648027420044,
-0.1033034399151802,
0.5854893326759338,
-0.11154626309871674,
-0.15644586086273193,
0.16133973002433777,
-0.20826852321624756,
0.37502750754356384,
-0.22773532569408417,
-0.09614632278680801,
-0.4784929156303406,
-0.14913269877433777,
-0.1390073299407959,
0.015358004719018936,
0.11411748826503754,
0.5559027791023254,
-0.20156976580619812,
0.34058254957199097,
-0.0971137285232544,
0.38169801235198975,
0.12468729168176651,
0.16030432283878326,
0.31746190786361694,
-0.19336360692977905,
-0.13562527298927307,
0.15091411769390106,
-0.16494324803352356,
-0.03520762547850609,
0.06915371865034103,
0.026795148849487305,
-0.22952592372894287,
-0.06997871398925781,
-0.33197468519210815,
0.3233259618282318,
-0.16639991104602814,
0.086715467274189,
0.17801031470298767,
-0.48804980516433716,
0.5669566988945007,
0.40216323733329773,
0.21922005712985992,
-0.05315795913338661,
-0.17797160148620605,
0.09281007200479507,
0.017557747662067413,
0.08707931637763977,
-0.11464332789182663,
-0.03850695863366127,
-0.04872763901948929,
0.20403841137886047,
-0.20529910922050476,
0.2556636333465576,
-0.07967036217451096,
-0.06004021316766739,
0.29508402943611145,
0.21642501652240753,
0.23239409923553467,
-0.48811402916908264,
-0.34820058941841125,
-0.23585227131843567,
0.09163251519203186,
-0.08621618151664734,
0.0711607038974762,
-0.04595104604959488,
0.07375261932611465,
0.004429847002029419,
0.09094167500734329,
-0.3700617551803589,
0.13044080138206482,
0.23940378427505493,
-0.2664080560207367,
0.018980778753757477,
0.454816609621048,
0.42770013213157654,
-0.11506350338459015,
-0.15184244513511658,
0.02798934280872345,
0.13625627756118774,
-0.5780554413795471,
0.09698685258626938,
0.09273490309715271,
0.2737707495689392,
0.16119423508644104,
0.18264393508434296,
0.20501863956451416,
-0.16953879594802856,
0.12995602190494537,
-0.5699576139450073,
-0.03154332563281059,
-0.1393490731716156,
-0.16539771854877472,
0.06142221391201019,
-0.020213913172483444,
-0.39264485239982605,
-0.08373894542455673,
-0.069660484790802,
-0.21363943815231323,
0.1337765008211136,
0.05121752619743347,
0.01325063407421112,
0.24524535238742828,
0.29317525029182434,
-0.2296188473701477,
-0.2767745554447174,
0.044263459742069244,
0.10657777637243271,
0.06341567635536194,
-0.145424947142601,
-0.21361882984638214,
0.15019991993904114,
-0.01024065911769867,
0.10678738355636597,
-0.2959845960140228,
-0.1934596598148346,
-0.2556287348270416,
-0.1705661416053772,
0.11963008344173431,
0.3315410614013672,
-0.01725757122039795,
0.371680349111557,
-0.06078832224011421,
-0.16115668416023254,
-0.5020970702171326,
0.27885064482688904,
-0.18829068541526794,
0.2069951295852661,
0.09591124206781387,
0.2364962249994278,
0.1481494903564453,
0.09961855411529541,
-0.14122724533081055,
0.03404078632593155,
-0.15633925795555115,
-0.10729341953992844,
0.26486384868621826,
-0.39027905464172363,
0.20146946609020233,
0.25456252694129944,
0.3285292685031891,
0.30115020275115967,
-0.1477268934249878,
-0.1272478550672531,
0.12068518996238708,
0.1623675376176834,
-0.3560802638530731,
0.18009315431118011,
0.10941003262996674,
0.32918983697891235,
-0.09798990935087204,
0.30374854803085327,
0.01153695210814476,
-0.2040807604789734,
0.046166568994522095,
0.16826477646827698,
0.6667781472206116,
0.03482748940587044,
0.06763200461864471,
0.2113012969493866,
-0.009668339043855667,
0.14433559775352478,
0.21221953630447388,
-0.01679016277194023,
0.057329703122377396,
0.510815441608429,
-0.17016100883483887,
-0.0370444729924202,
0.30469974875450134,
0.26048028469085693,
-0.16062840819358826,
-0.6539069414138794,
0.25009533762931824,
0.32085204124450684,
-0.26361727714538574,
-0.11376621574163437,
0.18249846994876862,
0.5810170769691467,
0.0035529937595129013,
0.06825239956378937,
-0.3186703622341156,
-0.09730112552642822,
0.09513033926486969,
-0.013260972686111927,
-0.21371275186538696,
-0.20443353056907654,
-0.349835067987442,
0.26417896151542664,
-0.17331498861312866,
-0.005674675107002258,
0.4497130513191223,
0.18493761122226715,
-0.12454497814178467,
-0.5479855537414551,
0.08828891813755035,
0.2583620846271515,
0.04285503551363945,
-0.3176083564758301,
0.12232706695795059,
-0.02796122431755066,
-0.007681079208850861,
0.3330889940261841,
-0.0986671969294548,
0.38930150866508484,
0.4318365752696991,
0.12053903937339783,
-0.33309656381607056,
-0.12335112690925598,
-0.0530247688293457,
-0.0745151937007904,
0.4672669470310211,
-0.03685464709997177,
0.2521446943283081,
0.24231784045696259,
0.13117004930973053,
-0.022485479712486267,
0.22879472374916077,
0.08189872652292252,
0.2228802889585495,
-0.4266520142555237,
-0.12459404021501541,
0.032003290951251984,
-0.03913360834121704,
-0.10387146472930908,
-0.18022289872169495,
-0.10293592512607574,
-0.19346009194850922,
0.48472368717193604,
0.14382310211658478,
0.22729694843292236,
0.17817220091819763,
0.02322886511683464,
-0.19329892098903656,
0.18682780861854553,
0.4103270471096039,
-0.015969932079315186,
-0.5346617102622986,
-0.08200027793645859,
-0.8077809810638428,
-0.0004988536238670349,
-0.15608088672161102,
-0.1756913661956787,
0.02737225778400898,
0.20694154500961304,
0.26823511719703674,
0.25910794734954834,
-0.020710036158561707,
0.13430435955524445,
-0.03646845370531082,
0.3154425621032715,
-0.19660735130310059,
-0.20667850971221924,
-0.17105504870414734,
0.0741356909275055,
-0.042134933173656464,
-0.42938151955604553,
0.07237935066223145,
0.3088015615940094,
-0.10392725467681885,
-0.18869125843048096,
-0.06474830210208893,
0.06179128959774971,
-0.295447438955307,
0.3805265426635742,
0.0014712363481521606,
0.43098652362823486,
-0.0023986101150512695,
0.32943013310432434,
-0.4426388740539551,
-0.20629695057868958,
-0.16471731662750244,
0.2472611367702484,
-0.14065998792648315,
0.4589706063270569,
-0.3075938820838928,
0.04919615760445595,
-0.25867965817451477,
-0.01779906451702118,
0.06598500162363052,
0.24375781416893005,
-0.3742659091949463,
0.27804845571517944,
-0.13551607728004456,
0.22854937613010406,
-0.12519080936908722,
-0.0648874044418335,
-0.13310380280017853,
0.2377365082502365,
-0.0869753286242485,
-0.2760629951953888,
0.30235087871551514,
-0.2629053592681885,
-0.28140464425086975,
0.06747353076934814,
0.22340860962867737,
0.16261249780654907,
0.0625678077340126,
-0.4981214106082916,
0.010868430137634277,
0.38234764337539673,
-0.1610228419303894,
-0.11903411149978638,
0.12284578382968903,
0.005054565612226725,
0.10804787278175354,
-0.13129104673862457,
0.15497945249080658,
0.31638264656066895,
-0.19776903092861176,
-0.13611219823360443,
-0.34021681547164917
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi, could this be a permission error ? I think it fails to close the arrow file that contains the data from your CSVs in the cache.
By default datasets are cached in `~/.cache/huggingface/datasets`, could you check that you have the right permissions ?
You can also try to change the cache directory by passing `cache_dir="path/to/my/cache/dir"` to `load_dataset`. | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 58 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi, could this be a permission error ? I think it fails to close the arrow file that contains the data from your CSVs in the cache.
By default datasets are cached in `~/.cache/huggingface/datasets`, could you check that you have the right permissions ?
You can also try to change the cache directory by passing `cache_dir="path/to/my/cache/dir"` to `load_dataset`. | [
-0.08710876107215881,
0.10206978023052216,
0.0059990473091602325,
0.43149203062057495,
0.21857941150665283,
0.2184785008430481,
0.42929020524024963,
0.2389688640832901,
0.3231711983680725,
0.024806827306747437,
-0.1687798947095871,
0.23847609758377075,
-0.110129214823246,
-0.09334153681993484,
-0.23723751306533813,
-0.07569047808647156,
0.02617548406124115,
0.04100441932678223,
-0.38118067383766174,
-0.006290562450885773,
-0.4014435410499573,
0.30933693051338196,
-0.3083969056606293,
-0.018219023942947388,
-0.1635810136795044,
0.14862139523029327,
-0.018828947097063065,
0.36293119192123413,
-0.08887084573507309,
-0.34894004464149475,
0.49000459909439087,
-0.05435151234269142,
0.5426034927368164,
0.2987746298313141,
-0.0001183373315143399,
0.022684432566165924,
0.31769490242004395,
-0.08515815436840057,
-0.22758115828037262,
-0.4275219440460205,
-0.025614162907004356,
-0.49858781695365906,
0.3423486351966858,
-0.0670720636844635,
-0.07310198247432709,
0.09082924574613571,
-0.08779292553663254,
-0.4491150677204132,
0.44080883264541626,
0.5118376016616821,
0.2004704475402832,
-0.1390615701675415,
-0.00949593260884285,
0.010143688879907131,
0.615485668182373,
-0.0018616393208503723,
-0.170319601893425,
0.2800341248512268,
0.03695019334554672,
-0.15882883965969086,
-0.08837360888719559,
0.14607375860214233,
-0.06226809322834015,
0.2507011592388153,
0.3114193081855774,
0.1999145895242691,
-0.232463538646698,
-0.24193912744522095,
0.10657791048288345,
0.09235843271017075,
0.8474336862564087,
-0.14986109733581543,
-0.2260134369134903,
-0.047305766493082047,
-0.055201757699251175,
-0.13418565690517426,
0.37485745549201965,
0.35466086864471436,
0.06642124056816101,
0.33692270517349243,
-0.06290945410728455,
-0.04074760526418686,
-0.2813118100166321,
0.14303836226463318,
0.14303945004940033,
-0.04498976469039917,
-0.18941128253936768,
0.28001463413238525,
0.10557436943054199,
-0.03421971946954727,
0.3509490489959717,
-0.08480682224035263,
-0.116101935505867,
0.2580316960811615,
-0.7147848606109619,
0.32449156045913696,
-0.15187013149261475,
0.08878013491630554,
-0.03453190624713898,
0.2629765570163727,
0.2805003821849823,
0.022332176566123962,
-0.13020160794258118,
0.34428685903549194,
0.22566664218902588,
0.16728775203227997,
-0.03590666502714157,
0.28050723671913147,
0.30978715419769287,
-0.227715402841568,
-0.052879635244607925,
-0.19502738118171692,
-0.29162323474884033,
-0.5650454163551331,
-0.009935816749930382,
0.15248125791549683,
0.2901366949081421,
-0.2326604276895523,
-0.13637103140354156,
0.12429073452949524,
-0.22143757343292236,
0.010281475260853767,
-0.09034743160009384,
0.3146437108516693,
0.09047944098711014,
0.31606030464172363,
0.1083633154630661,
0.24095121026039124,
-0.10571016371250153,
-0.36248117685317993,
-0.06992281973361969,
0.07208973169326782,
-0.38079527020454407,
0.03826211020350456,
0.47030171751976013,
-0.19826191663742065,
0.1263878494501114,
0.1747371405363083,
-0.03935343772172928,
-0.2941906750202179,
0.04937255382537842,
-0.29126399755477905,
0.0694965049624443,
0.3317597210407257,
0.030791204422712326,
0.20641089975833893,
0.3324391543865204,
-0.17488306760787964,
-0.08831825852394104,
0.2969931960105896,
-0.459753155708313,
-0.23549358546733856,
-0.06579507142305374,
0.08064154535531998,
-0.2515917420387268,
0.13290271162986755,
-0.3708425760269165,
-0.010275553911924362,
0.10593800246715546,
-0.1918371021747589,
-0.12559634447097778,
-0.26303547620773315,
-0.281692236661911,
-0.3016434907913208,
0.019075265154242516,
0.5431540608406067,
-0.7934694886207581,
0.22187134623527527,
-0.06410674750804901,
0.10176894068717957,
0.004005931317806244,
0.2952950894832611,
-0.25674816966056824,
0.029437128454446793,
-0.29672062397003174,
0.03685421496629715,
0.16288277506828308,
-0.22944732010364532,
-0.44362854957580566,
0.18121337890625,
-0.025247476994991302,
-0.014793739654123783,
0.08661560714244843,
0.09153153002262115,
0.362510621547699,
-0.04622987285256386,
-0.2393854856491089,
0.1892644762992859,
-0.017559392377734184,
0.0613047257065773,
-0.25995707511901855,
-0.2040601223707199,
0.2248155176639557,
0.17098687589168549,
0.043502986431121826,
0.15206113457679749,
0.2611731290817261,
-0.6375332474708557,
0.2761255204677582,
-0.05410955473780632,
0.24603061378002167,
0.18026548624038696,
0.24842917919158936,
0.06117391213774681,
0.3364657759666443,
0.03583239018917084,
-0.5967613458633423,
0.25101977586746216,
0.3427165746688843,
-0.2168765366077423,
-0.12120789289474487,
-0.045729976147413254,
-0.40000399947166443,
0.0011727288365364075,
-0.2293894737958908,
-0.06219690665602684,
0.009029179811477661,
0.088961161673069,
-0.015336328186094761,
-0.14421606063842773,
-0.09357035905122757,
0.5005302429199219,
-0.2158488631248474,
0.08188004046678543,
-0.398973673582077,
0.3008792996406555,
0.13142938911914825,
-0.0771670863032341,
0.16124287247657776,
-0.04636120796203613,
0.31397005915641785,
-0.09048391878604889,
-0.20686739683151245,
0.254321813583374,
0.3026154935359955,
-0.03886699676513672,
0.12338637560606003,
-0.15831004083156586,
0.03687938675284386,
-0.3185791075229645,
0.04332740977406502,
0.18331485986709595,
0.32884088158607483,
-0.1012389063835144,
-0.454003244638443,
0.2778140604496002,
-0.3211688697338104,
0.23376569151878357,
-0.21802076697349548,
0.15601889789104462,
0.21187451481819153,
-0.004589267075061798,
-0.08882015943527222,
0.023034565150737762,
0.0618804395198822,
0.045203112065792084,
0.3459663987159729,
0.08478797227144241,
-0.11544127017259598,
-0.11027178913354874,
0.137496218085289,
0.19635529816150665,
-0.1975063979625702,
0.21291080117225647,
-0.13498854637145996,
-0.04539245367050171,
0.35323047637939453,
0.25737977027893066,
0.4387527108192444,
0.08982402086257935,
-0.22525277733802795,
-0.023830881342291832,
0.15090954303741455,
-0.15230442583560944,
0.01653081178665161,
-0.013587608933448792,
0.1102258712053299,
0.16401569545269012,
0.17704026401042938,
0.12460021674633026,
-0.1302485316991806,
-0.08833897113800049,
0.16370615363121033,
0.24918118119239807,
-0.49255773425102234,
0.051196664571762085,
-0.18000853061676025,
0.3748142719268799,
-0.17934952676296234,
-0.08503490686416626,
0.010829899460077286,
-0.21728263795375824,
-0.3129458427429199,
0.3145366907119751,
-0.0917653739452362,
0.11112605035305023,
-0.18904052674770355,
0.2836257517337799,
0.13101109862327576,
-0.15422676503658295,
-0.015020597726106644,
-0.1804298311471939,
-0.25381091237068176,
-0.021765626966953278,
0.1527906060218811,
-0.059026844799518585,
-0.08669503033161163,
0.07971464097499847,
0.131453737616539,
-0.3408515751361847,
-0.0016874298453330994,
0.0904463678598404,
0.03032037615776062,
0.11800321936607361,
0.052520520985126495,
-0.017097629606723785,
-0.04929907247424126,
-0.135984405875206,
0.18959291279315948,
0.017304079607129097,
0.027538573369383812,
0.3591516613960266,
0.26663023233413696,
-0.14543506503105164,
-0.09845692664384842,
-0.6051180362701416,
-0.2989300787448883,
-0.3046967387199402,
0.10614202916622162,
-0.10252460837364197,
-0.0014811307191848755,
0.11602278053760529,
0.28762003779411316,
-0.06652263551950455,
0.24347402155399323,
-0.0484234020113945,
-0.12171325087547302,
-0.2950880229473114,
0.5952747464179993,
-0.2911512851715088,
-0.32868492603302,
0.26826342940330505,
-0.03849233314394951,
0.09196332097053528,
0.3597339987754822,
-0.40903520584106445,
0.16940128803253174,
-0.08243017643690109,
0.05617300793528557,
-0.05616874247789383,
0.06857072561979294,
0.08113301545381546,
-0.055432915687561035,
0.13930381834506989,
-0.02957734651863575,
-0.19689396023750305,
0.1694543957710266,
-0.09108896553516388,
0.04901399463415146,
0.20715805888175964,
0.4857749044895172,
-0.2566996216773987,
0.7927248477935791,
0.06758414208889008,
0.1144970953464508,
0.3349137604236603,
0.0031342152506113052,
0.37010619044303894,
0.1599612534046173,
-0.2955479323863983,
0.08456550538539886,
-0.15912461280822754,
-0.319802463054657,
0.33849912881851196,
0.05843561515212059,
-0.15290381014347076,
-0.0706505998969078,
0.2594617009162903,
-0.27281612157821655,
-0.21924370527267456,
0.17713303864002228,
-0.1566099375486374,
0.08035814762115479,
0.00803777202963829,
0.11468075960874557,
-0.020073171705007553,
-0.24149870872497559,
-0.02698037214577198,
0.18848374485969543,
0.18650281429290771,
-0.05518477037549019,
0.15281052887439728,
-0.12289430946111679,
-0.2886929512023926,
0.2886112332344055,
-0.15446026623249054,
0.407856285572052,
0.03289799019694328,
-0.03632640838623047,
0.03973788022994995,
0.19548949599266052,
0.7762324213981628,
-0.27338019013404846,
0.01869773305952549,
0.11828833818435669,
-0.014311905950307846,
-0.15080179274082184,
-0.3008759617805481,
-0.0011337921023368835,
0.21574178338050842,
-0.07585646212100983,
0.18940235674381256,
-0.03922111913561821,
0.0064111994579434395,
0.252095103263855,
0.1005205288529396,
-0.2171373814344406,
-0.40655457973480225,
-0.18090736865997314,
-0.011154919862747192,
-0.17752327024936676,
-0.23597216606140137,
0.08870917558670044,
0.0679389238357544,
-0.24901854991912842,
0.11650045216083527,
-0.2494223266839981,
-0.2153303623199463,
0.23022890090942383,
0.0987844318151474,
0.31960535049438477,
0.08939609676599503,
0.17719969153404236,
0.2629769742488861,
0.13597184419631958,
0.22865048050880432,
0.82124924659729,
-0.25558435916900635,
-0.8745869994163513,
0.2248190939426422,
-0.43759405612945557,
0.2542506456375122,
-0.01377059519290924,
-0.3433292806148529,
-0.04830481857061386,
-0.21977004408836365,
-0.13649983704090118,
-0.08116500824689865,
-0.05623627081513405,
0.010300025343894958,
0.00523100420832634,
-0.08737001568078995,
-0.5048300623893738,
0.5631707310676575,
-0.08336132019758224,
-0.14849454164505005,
0.14370712637901306,
-0.02253023535013199,
-0.3080233931541443,
0.44101929664611816,
-0.11345265060663223,
0.7396517395973206,
-0.18976779282093048,
-0.05135193094611168,
0.0989360436797142,
-0.20080971717834473,
0.39251255989074707,
-0.3037562370300293,
-0.029808908700942993,
-0.499321311712265,
-0.1921994686126709,
-0.15624529123306274,
-0.03805229440331459,
0.09107939153909683,
0.5432759523391724,
-0.1915138065814972,
0.3158293664455414,
-0.12409987300634384,
0.3808957040309906,
0.04403039813041687,
0.09234295785427094,
0.2995012104511261,
-0.2266680896282196,
-0.11827920377254486,
0.13879001140594482,
-0.1794547140598297,
0.02047014981508255,
0.037814054638147354,
-0.01126602478325367,
-0.22841887176036835,
-0.045654717832803726,
-0.35257381200790405,
0.3131828010082245,
-0.14340795576572418,
0.09719250351190567,
0.17127960920333862,
-0.6031704545021057,
0.5004423260688782,
0.4744846522808075,
0.24923929572105408,
-0.09553171694278717,
-0.20557337999343872,
0.08345351368188858,
0.07433183491230011,
-0.004597043618559837,
-0.242696613073349,
0.005934274755418301,
0.007234781980514526,
0.190750390291214,
-0.16374775767326355,
0.32806840538978577,
-0.1499563604593277,
-0.14625075459480286,
0.28586289286613464,
0.3220999240875244,
0.24117524921894073,
-0.465110719203949,
-0.36017194390296936,
-0.24026909470558167,
0.051211971789598465,
-0.07182565331459045,
0.05632762610912323,
0.0646345317363739,
0.07969944924116135,
-0.002334699034690857,
0.06409472972154617,
-0.3267739415168762,
0.16886508464813232,
0.2198808789253235,
-0.20829296112060547,
0.07520473748445511,
0.47205275297164917,
0.46088552474975586,
-0.12366921454668045,
-0.11890890449285507,
0.001836344599723816,
0.12729832530021667,
-0.6390785574913025,
0.12943722307682037,
0.11667130142450333,
0.24174664914608002,
0.13177981972694397,
0.12453830242156982,
0.22300732135772705,
-0.19423112273216248,
0.07351431250572205,
-0.5760642886161804,
-0.1028079092502594,
-0.0645834356546402,
-0.1964433193206787,
0.07864702492952347,
-0.05700492113828659,
-0.5029882192611694,
-0.05769950896501541,
-0.017358263954520226,
-0.20171521604061127,
0.050964489579200745,
-0.03634095937013626,
-0.012666501104831696,
0.18170200288295746,
0.24214276671409607,
-0.23823530972003937,
-0.29217299818992615,
-0.028190331533551216,
0.032355036586523056,
0.005247198045253754,
-0.1087043508887291,
-0.16502341628074646,
0.17570851743221283,
-0.007199995219707489,
0.10403482615947723,
-0.3075008988380432,
-0.21775409579277039,
-0.16690438985824585,
-0.20702800154685974,
0.13963256776332855,
0.2555306851863861,
-0.007616542279720306,
0.33235400915145874,
0.027190376073122025,
-0.10708960145711899,
-0.5441234707832336,
0.2826120853424072,
-0.21145382523536682,
0.18724247813224792,
0.10039451718330383,
0.16792169213294983,
0.11928196996450424,
0.05780467391014099,
-0.15486687421798706,
0.019902311265468597,
-0.0952332466840744,
-0.15393763780593872,
0.3234477639198303,
-0.3792797327041626,
0.1397075653076172,
0.2306097447872162,
0.29308781027793884,
0.2602372169494629,
-0.10949685424566269,
-0.07480631023645401,
0.14512097835540771,
0.11738479882478714,
-0.32299166917800903,
0.11204727739095688,
0.021196722984313965,
0.2629726827144623,
-0.08408618718385696,
0.24029189348220825,
-0.025009972974658012,
-0.17331308126449585,
0.10083094239234924,
0.20543727278709412,
0.6525259017944336,
0.006621833890676498,
0.08223791420459747,
0.1425478607416153,
-0.01721649244427681,
0.14892253279685974,
0.2972522974014282,
0.05816349759697914,
0.04773351922631264,
0.4398690462112427,
-0.16836965084075928,
-0.04183213412761688,
0.34622323513031006,
0.19063487648963928,
-0.11417979747056961,
-0.6883134245872498,
0.1853642612695694,
0.2729814052581787,
-0.19372886419296265,
-0.10519380122423172,
0.10184626281261444,
0.5970719456672668,
0.02547368034720421,
-0.026897044852375984,
-0.2631659507751465,
-0.048579033464193344,
0.06142862141132355,
-0.035703882575035095,
-0.1355416178703308,
-0.1496824324131012,
-0.30930978059768677,
0.21673715114593506,
-0.19984441995620728,
-0.08188925683498383,
0.44079723954200745,
0.1543574035167694,
-0.10034054517745972,
-0.482820987701416,
0.1358696073293686,
0.26647213101387024,
0.02161002904176712,
-0.2636723518371582,
0.1589762270450592,
-0.07350529730319977,
-0.014815762639045715,
0.24348770081996918,
-0.10035737603902817,
0.34007182717323303,
0.4579683840274811,
0.03865387663245201,
-0.21363171935081482,
-0.09770521521568298,
-0.0766635313630104,
-0.09862276166677475,
0.4576210379600525,
-0.05045577883720398,
0.2011352926492691,
0.1784658133983612,
0.10700879991054535,
-0.02075839787721634,
0.30698227882385254,
-0.0026889778673648834,
0.21050330996513367,
-0.3866463899612427,
-0.1481708586215973,
-0.011945091187953949,
-0.09297578036785126,
-0.14268076419830322,
-0.17520996928215027,
-0.11455973982810974,
-0.10868234932422638,
0.46431344747543335,
0.1401854306459427,
0.19375106692314148,
0.06549585610628128,
0.003394225612282753,
-0.11184008419513702,
0.28682199120521545,
0.5028713941574097,
0.17310987412929535,
-0.5306533575057983,
-0.05620834603905678,
-0.8355727791786194,
0.06318257749080658,
-0.23155435919761658,
-0.09488599747419357,
0.02968536876142025,
0.21486252546310425,
0.259304016828537,
0.2721312642097473,
-0.027313217520713806,
0.13776996731758118,
-0.015832191333174706,
0.2853051722049713,
-0.23624049127101898,
-0.16030505299568176,
-0.10350474715232849,
0.09831324964761734,
-0.04792134463787079,
-0.47995391488075256,
0.0935250073671341,
0.30680587887763977,
-0.10779278725385666,
-0.10201796144247055,
-0.12232279777526855,
0.07481734454631805,
-0.1577811986207962,
0.4501151740550995,
-0.01651468686759472,
0.37059128284454346,
0.08170313388109207,
0.28563740849494934,
-0.5112701654434204,
-0.2877732217311859,
-0.16334940493106842,
0.07692472636699677,
-0.11152498424053192,
0.40988466143608093,
-0.3690059781074524,
0.00696646049618721,
-0.28018680214881897,
0.03965121507644653,
0.07690127193927765,
0.24732643365859985,
-0.27416905760765076,
0.22636426985263824,
-0.11246882379055023,
0.2035575956106186,
-0.08608539402484894,
-0.12260625511407852,
-0.16279180347919464,
0.1960608810186386,
-0.14980512857437134,
-0.24315373599529266,
0.3379563093185425,
-0.2973978519439697,
-0.28974542021751404,
0.09428379684686661,
0.2492740899324417,
0.1518341451883316,
-0.006710629910230637,
-0.49737322330474854,
0.029382318258285522,
0.3351518511772156,
-0.12693116068840027,
-0.1486632376909256,
0.04596124589443207,
0.058827441185712814,
0.10219892859458923,
-0.16405615210533142,
0.30408334732055664,
0.3110783100128174,
-0.1586262434720993,
-0.16081561148166656,
-0.3319256901741028
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Thank you!! @lhoestq
For some reason, I don't have the default path for datasets to cache, maybe because I work from a remote system. The issue solved after I pass the `cache_dir` argument to the function. Thank you very much!! | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 40 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Thank you!! @lhoestq
For some reason, I don't have the default path for datasets to cache, maybe because I work from a remote system. The issue solved after I pass the `cache_dir` argument to the function. Thank you very much!! | [
-0.08596587181091309,
0.09212014079093933,
0.005469232797622681,
0.39305925369262695,
0.27935895323753357,
0.19947373867034912,
0.4239513874053955,
0.25634220242500305,
0.312151163816452,
0.009807854890823364,
-0.10004007816314697,
0.28330424427986145,
-0.09020110964775085,
-0.06926240026950836,
-0.24163615703582764,
-0.053454235196113586,
0.04874267056584358,
0.03393091261386871,
-0.4194594621658325,
0.02175792306661606,
-0.39800146222114563,
0.34474340081214905,
-0.3417995572090149,
-0.06701318919658661,
-0.1728120744228363,
0.23127570748329163,
-0.027407675981521606,
0.31735143065452576,
-0.07742197811603546,
-0.3483400344848633,
0.4977201819419861,
-0.1169508695602417,
0.5002793073654175,
0.31592845916748047,
-0.00011898839875357226,
0.03357023000717163,
0.32311010360717773,
-0.12176989018917084,
-0.2798945903778076,
-0.5001264810562134,
-0.08602146804332733,
-0.45230862498283386,
0.3036139905452728,
-0.07888931035995483,
-0.0746762752532959,
0.10038204491138458,
-0.08713118731975555,
-0.4603990614414215,
0.3343281149864197,
0.5259559750556946,
0.18740372359752655,
-0.23627713322639465,
-0.11491137742996216,
0.02034877799451351,
0.5270501971244812,
0.08219649642705917,
-0.1715659201145172,
0.2562563419342041,
-0.011970534920692444,
-0.18193767964839935,
-0.06502155214548111,
0.14784882962703705,
-0.0790291503071785,
0.27788591384887695,
0.28193697333335876,
0.21200577914714813,
-0.20909857749938965,
-0.19247275590896606,
0.11505793035030365,
0.05161844938993454,
0.7780842185020447,
-0.17516565322875977,
-0.2040850669145584,
-0.07039855420589447,
-0.07105344533920288,
-0.09050733596086502,
0.36084985733032227,
0.27963125705718994,
0.047104448080062866,
0.352641224861145,
-0.07395622134208679,
0.019842248409986496,
-0.2478519231081009,
0.10968457907438278,
0.14723145961761475,
-0.03707495331764221,
-0.18457497656345367,
0.31119340658187866,
0.08198358118534088,
0.02781633473932743,
0.3614426851272583,
-0.12265729904174805,
-0.06120849773287773,
0.22328853607177734,
-0.6913049817085266,
0.35987818241119385,
-0.11178142577409744,
0.0476229190826416,
-0.04888319596648216,
0.2159276157617569,
0.2532270550727844,
-0.01783890277147293,
-0.09829852730035782,
0.34495922923088074,
0.20848765969276428,
0.09428881108760834,
0.03507642075419426,
0.2495904117822647,
0.24581249058246613,
-0.24004660546779633,
-0.02420872077345848,
-0.17352795600891113,
-0.3206409811973572,
-0.4924863874912262,
0.05138862505555153,
0.1816558837890625,
0.21178655326366425,
-0.20264160633087158,
-0.1311563402414322,
0.11148487776517868,
-0.17370641231536865,
-0.009456665255129337,
-0.0949871763586998,
0.31920456886291504,
0.0954769104719162,
0.3276444673538208,
0.0360647514462471,
0.2327311635017395,
-0.11635859310626984,
-0.38474366068840027,
-0.05113191902637482,
0.13063929975032806,
-0.3966400921344757,
-0.00780111737549305,
0.49974367022514343,
-0.2116755098104477,
0.16114819049835205,
0.2013806700706482,
-0.10221202671527863,
-0.32091036438941956,
0.009824011474847794,
-0.3409103453159332,
0.11788786202669144,
0.28106948733329773,
0.05965276435017586,
0.2322186380624771,
0.31083670258522034,
-0.17352783679962158,
-0.07928931713104248,
0.32026147842407227,
-0.4694957137107849,
-0.22545160353183746,
-0.0537242516875267,
0.08567328006029129,
-0.27014821767807007,
0.11365403980016708,
-0.36453044414520264,
0.05922415852546692,
0.09309117496013641,
-0.22617308795452118,
-0.14801281690597534,
-0.2921351194381714,
-0.3328598141670227,
-0.2874191403388977,
0.022710753604769707,
0.5272851586341858,
-0.7632336020469666,
0.20658209919929504,
0.006927771959453821,
0.05963979288935661,
0.07754676043987274,
0.20135986804962158,
-0.23207028210163116,
-0.013158708810806274,
-0.30081698298454285,
0.08470839262008667,
0.15118847787380219,
-0.24140901863574982,
-0.4044986665248871,
0.19484920799732208,
-0.00917932391166687,
-0.036727387458086014,
0.1076720654964447,
0.07296311110258102,
0.3510638475418091,
-0.044478174299001694,
-0.15652264654636383,
0.20636528730392456,
0.012795131653547287,
0.07922177761793137,
-0.2519007623195648,
-0.18414732813835144,
0.2559945583343506,
0.16684618592262268,
0.02656008116900921,
0.1279062032699585,
0.2115989625453949,
-0.6256985068321228,
0.2878682613372803,
-0.026080157607793808,
0.24566377699375153,
0.13362419605255127,
0.24056939780712128,
0.0204315222799778,
0.3675479292869568,
0.057921864092350006,
-0.5920141935348511,
0.21768105030059814,
0.4573207497596741,
-0.23673498630523682,
-0.12829579412937164,
-0.042620278894901276,
-0.40064337849617004,
0.004944007843732834,
-0.18023043870925903,
-0.05101550742983818,
0.005333706736564636,
0.14315299689769745,
0.0037186183035373688,
-0.16648660600185394,
-0.1181764304637909,
0.5300244092941284,
-0.2569981813430786,
0.04642830789089203,
-0.32797232270240784,
0.26694682240486145,
0.16077126562595367,
-0.0713462308049202,
0.15335242450237274,
-0.07947509735822678,
0.3291768729686737,
-0.08210103958845139,
-0.2026355266571045,
0.2568967342376709,
0.3679184019565582,
-0.022702127695083618,
0.08510872721672058,
-0.19172106683254242,
-0.007067658007144928,
-0.23580211400985718,
-0.013255001977086067,
0.2161182314157486,
0.3630661368370056,
-0.077162005007267,
-0.4703351557254791,
0.2823968529701233,
-0.3296935558319092,
0.22064447402954102,
-0.18623720109462738,
0.12227878719568253,
0.2683039903640747,
-0.006756674498319626,
-0.07628622651100159,
0.030681893229484558,
0.043037138879299164,
-0.016078472137451172,
0.32783907651901245,
0.1356024146080017,
-0.15439856052398682,
-0.06865715235471725,
0.10408398509025574,
0.2219553291797638,
-0.19629159569740295,
0.2119079828262329,
-0.11359397321939468,
-0.13728147745132446,
0.3695862591266632,
0.29246366024017334,
0.4771190285682678,
0.10177034139633179,
-0.21516326069831848,
-0.03321561962366104,
0.12609124183654785,
-0.14811073243618011,
0.08600500971078873,
-0.03151644021272659,
0.05965328961610794,
0.19262683391571045,
0.21228863298892975,
0.09304599463939667,
-0.1251712441444397,
-0.11558079719543457,
0.17658551037311554,
0.2235136330127716,
-0.5865737199783325,
0.03598571568727493,
-0.22175028920173645,
0.3033287227153778,
-0.19154447317123413,
-0.028408490121364594,
0.12472249567508698,
-0.23560941219329834,
-0.3277727961540222,
0.3035752475261688,
-0.06884182244539261,
0.08894353359937668,
-0.1954195499420166,
0.27376729249954224,
0.08842955529689789,
-0.24495829641819,
-0.029812335968017578,
-0.14321742951869965,
-0.27109333872795105,
-0.019036348909139633,
0.09479410201311111,
0.0005640466697514057,
-0.11031052470207214,
0.057555168867111206,
0.10498363524675369,
-0.3393682837486267,
0.011282101273536682,
0.1388591080904007,
0.04702558368444443,
0.10426667332649231,
0.10566359013319016,
-0.12293291091918945,
-0.05856285244226456,
-0.10068602114915848,
0.15995943546295166,
0.025264399126172066,
0.07727684825658798,
0.3538441061973572,
0.2296505868434906,
-0.14312055706977844,
-0.1136704832315445,
-0.6079522967338562,
-0.3110756576061249,
-0.23472031950950623,
0.04221495985984802,
-0.13469354808330536,
-0.026599764823913574,
0.05429362505674362,
0.28135839104652405,
-0.0934910699725151,
0.22767193615436554,
-0.08846531808376312,
-0.16982685029506683,
-0.30802327394485474,
0.6029757857322693,
-0.2578558325767517,
-0.28665101528167725,
0.2364547848701477,
-0.0638769194483757,
0.0657694861292839,
0.39489006996154785,
-0.40632927417755127,
0.14081458747386932,
-0.039177440106868744,
0.035706762224435806,
-0.05257279425859451,
0.06577186286449432,
0.06351085007190704,
-0.06656626611948013,
0.1175326406955719,
-0.0782245397567749,
-0.2430461049079895,
0.20158898830413818,
-0.0742935836315155,
0.07630889117717743,
0.23497307300567627,
0.4599754810333252,
-0.19633512198925018,
0.6576646566390991,
0.10886317491531372,
0.08702787756919861,
0.3282865881919861,
-0.09265439957380295,
0.3686031103134155,
0.16826452314853668,
-0.26780667901039124,
0.08958444744348526,
-0.09321703016757965,
-0.3670555353164673,
0.26951372623443604,
0.04677584767341614,
-0.12386313825845718,
-0.09195749461650848,
0.234820157289505,
-0.2747569978237152,
-0.15224076807498932,
0.1995551586151123,
-0.0784691795706749,
0.05196693539619446,
0.03990941122174263,
0.14361697435379028,
-0.02072516828775406,
-0.21491149067878723,
-0.028275836259126663,
0.1274815797805786,
0.20449399948120117,
-0.04820134490728378,
0.16758576035499573,
-0.10450930893421173,
-0.3080207407474518,
0.22131192684173584,
-0.08172626793384552,
0.43763676285743713,
0.07145461440086365,
-0.05549337714910507,
-0.0034884437918663025,
0.19476114213466644,
0.7499454617500305,
-0.33646348118782043,
0.029895439743995667,
0.13036325573921204,
-0.06460976600646973,
-0.2020518183708191,
-0.255967378616333,
0.010177820920944214,
0.25739723443984985,
-0.04460207000374794,
0.21140770614147186,
0.00815737247467041,
0.03922063112258911,
0.3173398971557617,
0.12470778822898865,
-0.17314480245113373,
-0.430240273475647,
-0.12870272994041443,
-0.04409123212099075,
-0.13433609902858734,
-0.26025891304016113,
0.09566561877727509,
-0.0007538693025708199,
-0.18506747484207153,
0.08824874460697174,
-0.25122278928756714,
-0.1873825192451477,
0.24981726706027985,
0.11249314248561859,
0.28626835346221924,
0.04752769321203232,
0.19700878858566284,
0.2487417459487915,
0.08070620149374008,
0.20812579989433289,
0.7596245408058167,
-0.2756139039993286,
-0.8639799952507019,
0.23198392987251282,
-0.47055551409721375,
0.28065359592437744,
-0.03358837962150574,
-0.39920929074287415,
-0.11554985493421555,
-0.26854684948921204,
-0.15041078627109528,
-0.08940868824720383,
-0.10649649053812027,
0.007820053957402706,
0.015466573648154736,
-0.12653474509716034,
-0.5553480982780457,
0.5315495133399963,
-0.09847548604011536,
-0.17184531688690186,
0.1925380975008011,
-0.11003980040550232,
-0.31136465072631836,
0.4189884066581726,
-0.11448007076978683,
0.6271882057189941,
-0.12416395545005798,
-0.10329632461071014,
0.14554047584533691,
-0.15287980437278748,
0.3744077980518341,
-0.27219751477241516,
-0.041674114763736725,
-0.4573802649974823,
-0.18098664283752441,
-0.15557818114757538,
-0.023972317576408386,
0.0471607968211174,
0.5235297679901123,
-0.20722204446792603,
0.38437074422836304,
-0.10092076659202576,
0.42712628841400146,
0.07814096659421921,
0.09501738846302032,
0.29181793332099915,
-0.21900978684425354,
-0.16307659447193146,
0.13912974298000336,
-0.1176220029592514,
-0.008752945810556412,
0.07140305638313293,
0.06356290727853775,
-0.2258557826280594,
-0.07362639158964157,
-0.3024660050868988,
0.30997440218925476,
-0.09963596612215042,
0.09251895546913147,
0.14669440686702728,
-0.5126727223396301,
0.45818012952804565,
0.4478137195110321,
0.19737708568572998,
-0.10210315883159637,
-0.1980636864900589,
0.0802135169506073,
0.07692409306764603,
0.09827190637588501,
-0.2025686800479889,
-0.04962475225329399,
-0.04350528120994568,
0.21360531449317932,
-0.1751907765865326,
0.24203455448150635,
-0.12710270285606384,
-0.11093585193157196,
0.3289182782173157,
0.2879225015640259,
0.24252957105636597,
-0.43072620034217834,
-0.3879324197769165,
-0.17845076322555542,
0.11434546113014221,
-0.08911401778459549,
0.05228123441338539,
-0.004336528480052948,
0.10338921844959259,
0.03062521666288376,
0.031222619116306305,
-0.35788238048553467,
0.15490524470806122,
0.222438246011734,
-0.21106722950935364,
0.042411111295223236,
0.4137516915798187,
0.4314632713794708,
-0.13729792833328247,
-0.14474573731422424,
-0.01017080619931221,
0.13254940509796143,
-0.5681899189949036,
0.13765257596969604,
0.0400584414601326,
0.268027126789093,
0.1360531598329544,
0.10172306001186371,
0.18199799954891205,
-0.18294432759284973,
0.06334266066551208,
-0.5674284100532532,
-0.048464901745319366,
-0.09371951222419739,
-0.13494634628295898,
0.03837410733103752,
0.007852040231227875,
-0.5268155336380005,
-0.039184123277664185,
-0.09207393229007721,
-0.19546477496623993,
0.08263584971427917,
0.05436434596776962,
0.016128195449709892,
0.19054223597049713,
0.3258012533187866,
-0.21467982232570648,
-0.28551074862480164,
0.000011434778571128845,
0.059925105422735214,
0.049894846975803375,
-0.11710470914840698,
-0.18254858255386353,
0.1764264553785324,
-0.012112583965063095,
0.14970771968364716,
-0.3138531446456909,
-0.2057686597108841,
-0.2322506308555603,
-0.20726560056209564,
0.10746873915195465,
0.3564964830875397,
-0.06962177157402039,
0.3649551570415497,
-0.006172787398099899,
-0.17377111315727234,
-0.49676084518432617,
0.2905719578266144,
-0.22424960136413574,
0.19796225428581238,
0.09266713261604309,
0.20641405880451202,
0.1576426774263382,
0.1024194210767746,
-0.14756907522678375,
0.01594582572579384,
-0.1610231250524521,
-0.097536601126194,
0.27840298414230347,
-0.3515319228172302,
0.19709797203540802,
0.2572285830974579,
0.29274648427963257,
0.2969411611557007,
-0.14356568455696106,
-0.08570683747529984,
0.1398874819278717,
0.12101947516202927,
-0.3374231457710266,
0.13041402399539948,
0.053494252264499664,
0.31566667556762695,
-0.09102228283882141,
0.2972836196422577,
0.0034363940358161926,
-0.20997503399848938,
0.11341165006160736,
0.15742722153663635,
0.7327907085418701,
-0.02327786758542061,
0.03938334807753563,
0.1834816038608551,
0.002063348889350891,
0.1581074446439743,
0.20125746726989746,
0.026113638654351234,
0.06778021156787872,
0.49858611822128296,
-0.1393866240978241,
-0.03146475553512573,
0.3940756320953369,
0.22236010432243347,
-0.23214378952980042,
-0.6349565982818604,
0.24844281375408173,
0.3177173137664795,
-0.276500403881073,
-0.1067679151892662,
0.17355284094810486,
0.575045645236969,
0.001848624087870121,
0.06082802638411522,
-0.2844553291797638,
-0.0516807995736599,
0.10506442934274673,
-0.06058904901146889,
-0.14030638337135315,
-0.18455380201339722,
-0.34709152579307556,
0.26146063208580017,
-0.1911303997039795,
-0.017736822366714478,
0.498243510723114,
0.1881556212902069,
-0.04765245318412781,
-0.5127804279327393,
0.11518935114145279,
0.2723288834095001,
0.03554878756403923,
-0.29465511441230774,
0.1264912635087967,
-0.06876738369464874,
-0.009953498840332031,
0.2945651113986969,
-0.12879812717437744,
0.4101407825946808,
0.4447219669818878,
0.11253878474235535,
-0.3156532347202301,
-0.1382458508014679,
-0.06269097328186035,
-0.14323639869689941,
0.4691237509250641,
-0.03542136400938034,
0.2465352863073349,
0.2225375771522522,
0.11331738531589508,
-0.0038163894787430763,
0.3163534998893738,
0.07658250629901886,
0.1817941665649414,
-0.37539881467819214,
-0.1211303249001503,
0.04000148922204971,
-0.02247796207666397,
-0.12088966369628906,
-0.1392846405506134,
-0.10743232071399689,
-0.16665160655975342,
0.506146252155304,
0.1402081400156021,
0.22720485925674438,
0.151178240776062,
0.006709598004817963,
-0.1303757131099701,
0.22351090610027313,
0.4077503979206085,
0.10127826035022736,
-0.5023837685585022,
-0.05183466151356697,
-0.8332256078720093,
0.0035139545798301697,
-0.22739651799201965,
-0.09523315727710724,
0.005615429952740669,
0.21809428930282593,
0.26352861523628235,
0.27519309520721436,
-0.031958162784576416,
0.17158670723438263,
-0.016886429861187935,
0.3326144218444824,
-0.22611260414123535,
-0.17571604251861572,
-0.14332778751850128,
0.12564906477928162,
-0.031101439148187637,
-0.47235167026519775,
0.06347206234931946,
0.3111626207828522,
-0.10952243208885193,
-0.16544990241527557,
-0.12514978647232056,
0.05206477269530296,
-0.2469215989112854,
0.46913135051727295,
-0.014145998284220695,
0.378591388463974,
0.023749593645334244,
0.33029595017433167,
-0.4599422216415405,
-0.23676474392414093,
-0.14237630367279053,
0.13487249612808228,
-0.14128169417381287,
0.393749475479126,
-0.40404629707336426,
0.012019462883472443,
-0.24206893146038055,
-0.037776678800582886,
0.06981106102466583,
0.2664783298969269,
-0.34448108077049255,
0.2908083200454712,
-0.1341439038515091,
0.26009032130241394,
-0.18467576801776886,
-0.10405566543340683,
-0.16623659431934357,
0.24639101326465607,
-0.08089498430490494,
-0.21352097392082214,
0.30607521533966064,
-0.25608769059181213,
-0.28655654191970825,
-0.0037385651376098394,
0.2286490947008133,
0.15159863233566284,
0.0433497428894043,
-0.4878186285495758,
-0.017304114997386932,
0.34934574365615845,
-0.10204020887613297,
-0.13881489634513855,
0.10155916213989258,
0.01895584911108017,
0.13013657927513123,
-0.15635782480239868,
0.23666591942310333,
0.29661083221435547,
-0.19459567964076996,
-0.15092021226882935,
-0.3429086208343506
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | > Hi, could this be a permission error ? I think it fails to close the arrow file that contains the data from your CSVs in the cache.
>
> By default datasets are cached in `~/.cache/huggingface/datasets`, could you check that you have the right permissions ? You can also try to change the cache directory by passing `cache_dir="path/to/my/cache/dir"` to `load_dataset`.
This is the exact solution I have been finding for the whole afternoon. Thanks a lot!
I tried to do a training on a cluster computing system. The user's home directory is shared between nodes.
It always gets **stuck** at dataset loading...
The reason might be, the node (with GPU) can't read/write data in the default cache folder (in my home directory).
After using an intermediate cache folder, this issue is resolved for me. | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 135 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
> Hi, could this be a permission error ? I think it fails to close the arrow file that contains the data from your CSVs in the cache.
>
> By default datasets are cached in `~/.cache/huggingface/datasets`, could you check that you have the right permissions ? You can also try to change the cache directory by passing `cache_dir="path/to/my/cache/dir"` to `load_dataset`.
This is the exact solution I have been finding for the whole afternoon. Thanks a lot!
I tried to do a training on a cluster computing system. The user's home directory is shared between nodes.
It always gets **stuck** at dataset loading...
The reason might be, the node (with GPU) can't read/write data in the default cache folder (in my home directory).
After using an intermediate cache folder, this issue is resolved for me. | [
-0.14044484496116638,
0.08314011991024017,
-0.02031908556818962,
0.40277332067489624,
0.19893652200698853,
0.18822187185287476,
0.45552143454551697,
0.2276151329278946,
0.36947762966156006,
0.10430470108985901,
-0.08280753344297409,
0.25976642966270447,
-0.07921983301639557,
-0.14901956915855408,
-0.32578855752944946,
-0.03432364761829376,
0.012146957218647003,
0.00004515796899795532,
-0.32961365580558777,
-0.039993464946746826,
-0.32802626490592957,
0.22282205522060394,
-0.15906980633735657,
-0.007811605930328369,
-0.2745228111743927,
-0.013190558180212975,
0.02145603857934475,
0.3557026982307434,
0.014880368486046791,
-0.3662506937980652,
0.47185441851615906,
-0.013524968177080154,
0.4827331006526947,
0.46557968854904175,
-0.00011821469524875283,
0.06750807166099548,
0.28763678669929504,
0.0019574537873268127,
-0.36746418476104736,
-0.4271228313446045,
0.000047303736209869385,
-0.4050215482711792,
0.3116818368434906,
-0.12477051466703415,
-0.11852104961872101,
0.17244085669517517,
-0.013235179707407951,
-0.6170169711112976,
0.41335487365722656,
0.3368673026561737,
0.18067163228988647,
-0.23964923620224,
-0.15179908275604248,
0.027856405824422836,
0.4070990979671478,
0.043745823204517365,
-0.16979286074638367,
0.3822360634803772,
0.12129440158605576,
-0.20749551057815552,
-0.14460191130638123,
0.09312155842781067,
-0.06168348342180252,
0.2705959379673004,
0.37804555892944336,
0.19354663789272308,
-0.17136913537979126,
-0.2535572946071625,
0.11846156418323517,
0.07824024558067322,
0.8320119380950928,
-0.06533536314964294,
-0.2221103310585022,
-0.15015676617622375,
-0.0022525102831423283,
-0.1523759812116623,
0.41559478640556335,
0.37726426124572754,
-0.05587145686149597,
0.38022708892822266,
-0.08845935761928558,
-0.05996866151690483,
-0.30691036581993103,
0.13495737314224243,
0.19182884693145752,
-0.03594514727592468,
-0.15825510025024414,
0.2478715181350708,
0.09943781793117523,
0.030352968722581863,
0.38473567366600037,
-0.11684107780456543,
0.02035066857933998,
0.20343700051307678,
-0.6785139441490173,
0.3669133484363556,
-0.08625281602144241,
0.13935022056102753,
-0.1833115518093109,
0.2791396379470825,
0.3541334569454193,
0.02025168016552925,
-0.03487293794751167,
0.3558637797832489,
0.14263418316841125,
0.16284090280532837,
0.007771879434585571,
0.30972227454185486,
0.3991244435310364,
-0.20321664214134216,
-0.09014046937227249,
-0.06839225441217422,
-0.3569295108318329,
-0.599807858467102,
-0.049773260951042175,
0.19390133023262024,
0.23543284833431244,
-0.09719910472631454,
-0.08331996202468872,
0.20644885301589966,
-0.1056712195277214,
0.15695340931415558,
-0.06856827437877655,
0.3479417562484741,
0.10739219933748245,
0.2544158101081848,
0.11001121997833252,
0.15929599106311798,
-0.06691956520080566,
-0.29489865899086,
-0.009872649796307087,
-0.008192354813218117,
-0.3783194124698639,
0.07356217503547668,
0.4994814097881317,
-0.26867958903312683,
0.10590237379074097,
0.10293222218751907,
0.024652212858200073,
-0.3227163553237915,
0.10588385909795761,
-0.25457364320755005,
0.09127584844827652,
0.3603065013885498,
0.04390951618552208,
0.3032575249671936,
0.30577144026756287,
-0.19765923917293549,
-0.06993149220943451,
0.23440366983413696,
-0.47109246253967285,
-0.24023576080799103,
0.015085408464074135,
0.068642258644104,
-0.18385817110538483,
0.19131967425346375,
-0.4403451383113861,
-0.12507189810276031,
0.14220306277275085,
-0.16801290214061737,
-0.07188021391630173,
-0.22630493342876434,
-0.32911747694015503,
-0.34428149461746216,
0.010529233142733574,
0.5820600986480713,
-0.7688377499580383,
0.273667573928833,
-0.10526621341705322,
0.15021191537380219,
-0.05729358643293381,
0.3860180974006653,
-0.1713114082813263,
0.09391693770885468,
-0.26803284883499146,
0.11624383926391602,
0.10656130313873291,
-0.2541787922382355,
-0.5424319505691528,
0.3220546841621399,
-0.2129933089017868,
-0.02157675102353096,
0.14711247384548187,
0.11758384853601456,
0.2673999071121216,
-0.0162421315908432,
-0.12888403236865997,
0.247991681098938,
-0.04997576028108597,
0.06458725780248642,
-0.2531205415725708,
-0.2196081578731537,
0.2828684449195862,
0.15338076651096344,
0.044582635164260864,
0.03387276455760002,
0.2871682047843933,
-0.6441690325737,
0.2786240875720978,
-0.15565301477909088,
0.3005947470664978,
0.27762746810913086,
0.2344503104686737,
-0.0024581179022789,
0.21846643090248108,
0.09927841275930405,
-0.5966571569442749,
0.3001948297023773,
0.3394607901573181,
-0.3175581395626068,
-0.2889402508735657,
-0.08057692646980286,
-0.38280487060546875,
-0.04013381153345108,
-0.2400374859571457,
0.06122485175728798,
-0.006720865145325661,
0.09837304800748825,
-0.05864236503839493,
-0.1786659061908722,
-0.0021061785519123077,
0.558738648891449,
-0.32195377349853516,
0.054683372378349304,
-0.2611706554889679,
0.31572961807250977,
0.08306358009576797,
-0.06587295979261398,
0.09641796350479126,
-0.07823533564805984,
0.28831836581230164,
-0.2225242555141449,
-0.22162583470344543,
0.3325258791446686,
0.20072013139724731,
0.1381203979253769,
0.059116460382938385,
-0.18067003786563873,
0.11676810681819916,
-0.187676802277565,
0.039339493960142136,
0.10279341042041779,
0.2759134769439697,
-0.10235053300857544,
-0.4427490532398224,
0.2852771580219269,
-0.3625269830226898,
0.22403332591056824,
-0.22752046585083008,
0.10261085629463196,
0.15848639607429504,
0.012769956141710281,
-0.03462158888578415,
0.06652645766735077,
0.18722905218601227,
0.052889641374349594,
0.42678993940353394,
0.12188465893268585,
-0.13722583651542664,
-0.04847943037748337,
0.0857795849442482,
0.1241178810596466,
-0.07210832089185715,
0.1458476334810257,
-0.030357837677001953,
-0.010803239420056343,
0.35739243030548096,
0.2649257779121399,
0.4192003011703491,
0.07371924072504044,
-0.11790980398654938,
-0.0571746751666069,
0.14499680697917938,
-0.2259400635957718,
0.003363870084285736,
-0.08954755961894989,
0.22123979032039642,
0.2705526351928711,
0.13643822073936462,
0.1332167536020279,
-0.08683070540428162,
-0.10009334981441498,
0.271293580532074,
0.2143559455871582,
-0.45905163884162903,
0.10445008426904678,
-0.18711481988430023,
0.3028489351272583,
-0.04759475961327553,
-0.011141668073832989,
0.12953037023544312,
-0.18142837285995483,
-0.28884875774383545,
0.3610316216945648,
-0.12527385354042053,
0.1166834607720375,
-0.1801399141550064,
0.3756476640701294,
0.10574184358119965,
-0.1772320717573166,
-0.08418784290552139,
-0.24812935292720795,
-0.27862173318862915,
-0.06207471713423729,
0.2593258321285248,
-0.08091041445732117,
-0.14695361256599426,
0.15087610483169556,
0.07381179183721542,
-0.34828251600265503,
0.07074975222349167,
0.01998016983270645,
0.07273850589990616,
0.130437433719635,
-0.07619552314281464,
0.14629563689231873,
-0.05066243186593056,
-0.24658475816249847,
0.12266872078180313,
-0.029561113566160202,
-0.023588474839925766,
0.2854922115802765,
0.3159443140029907,
-0.180044025182724,
-0.16323328018188477,
-0.5898768901824951,
-0.39051610231399536,
-0.3510875701904297,
0.15081563591957092,
-0.12770552933216095,
0.000909760594367981,
0.06477835029363632,
0.29894018173217773,
-0.08391112089157104,
0.24043676257133484,
-0.06075063347816467,
-0.0929085835814476,
-0.393999844789505,
0.5493360161781311,
-0.30897295475006104,
-0.38779011368751526,
0.12925870716571808,
-0.0014577917754650116,
0.16898289322853088,
0.37878578901290894,
-0.39417529106140137,
0.18720389902591705,
-0.041124127805233,
0.1598314493894577,
-0.1409640610218048,
-0.004465917125344276,
0.06777560710906982,
-0.03519977256655693,
0.11841778457164764,
-0.010775342583656311,
-0.019922388717532158,
0.17320343852043152,
-0.06789086759090424,
-0.055806733667850494,
0.1373359113931656,
0.40063977241516113,
-0.11452600359916687,
0.8946936130523682,
0.08173786103725433,
0.09008373320102692,
0.276534765958786,
0.06391320377588272,
0.4135315418243408,
0.1707306206226349,
-0.2506794035434723,
0.1450011283159256,
-0.22678059339523315,
-0.4247368574142456,
0.2587669789791107,
0.04319906234741211,
-0.22425994277000427,
-0.023036519065499306,
0.15091051161289215,
-0.32451340556144714,
-0.28944697976112366,
0.1598583161830902,
-0.2959389388561249,
0.08701681345701218,
0.001728864386677742,
0.12676456570625305,
-0.12338237464427948,
-0.2330683469772339,
0.017498604953289032,
0.23101156949996948,
0.15839269757270813,
-0.028314130380749702,
0.05020976439118385,
-0.13182798027992249,
-0.29639101028442383,
0.2669420838356018,
-0.05944450572133064,
0.41668298840522766,
-0.11078578978776932,
0.04025282710790634,
0.04449690133333206,
0.2239731252193451,
0.7294912934303284,
-0.33090662956237793,
0.1747797727584839,
0.10138781368732452,
0.059258244931697845,
-0.15998730063438416,
-0.2848687767982483,
0.07666130363941193,
0.23857992887496948,
-0.08707103133201599,
0.23890045285224915,
0.03798290342092514,
-0.055629417300224304,
0.021984588354825974,
0.03288134187459946,
-0.19334568083286285,
-0.3476870357990265,
-0.10327677428722382,
0.003442414104938507,
-0.18303145468235016,
-0.12266000360250473,
0.14295001327991486,
0.027586979791522026,
-0.24830225110054016,
0.07185953855514526,
-0.23553715646266937,
-0.06785277277231216,
0.2073732316493988,
0.08205349743366241,
0.27909350395202637,
0.10612132400274277,
0.12412679195404053,
0.2983476519584656,
0.22908589243888855,
0.29935750365257263,
0.6728888750076294,
-0.2362825870513916,
-0.5670185685157776,
0.29442843794822693,
-0.47440749406814575,
0.25379931926727295,
0.20251360535621643,
-0.35128599405288696,
-0.03483770042657852,
-0.15337421000003815,
-0.11741465330123901,
-0.1687880903482437,
-0.018454918637871742,
-0.08391544222831726,
0.1371675431728363,
-0.08749034255743027,
-0.4414091110229492,
0.5570297837257385,
-0.05743442848324776,
-0.2513818144798279,
0.21826592087745667,
0.013194233179092407,
-0.31311938166618347,
0.42345309257507324,
-0.12270762771368027,
0.7179524898529053,
-0.16140729188919067,
0.05283837392926216,
0.08588776737451553,
-0.17124322056770325,
0.4402572214603424,
-0.4607691764831543,
0.05710165202617645,
-0.3670775890350342,
-0.3188275694847107,
-0.17277409136295319,
-0.07979866862297058,
0.06839941442012787,
0.5474438667297363,
-0.10266318917274475,
0.26985445618629456,
-0.21270379424095154,
0.2630370855331421,
0.01279214397072792,
0.16514119505882263,
0.2167612910270691,
-0.22901619970798492,
-0.13925965130329132,
0.10571131110191345,
-0.120240718126297,
0.08577106893062592,
-0.02759390138089657,
0.01778758503496647,
-0.3006616532802582,
0.035478778183460236,
-0.25987476110458374,
0.3394680619239807,
-0.1909302920103073,
0.24697093665599823,
0.02628054842352867,
-0.5980321764945984,
0.45372289419174194,
0.46640151739120483,
0.2637757658958435,
-0.058246005326509476,
-0.17624758183956146,
0.036632828414440155,
0.03478599339723587,
0.04590233787894249,
-0.2359248399734497,
-0.02796696498990059,
0.09636472910642624,
0.2234480381011963,
-0.09156358242034912,
0.24657875299453735,
-0.2510988116264343,
-0.12186507880687714,
0.32391172647476196,
0.26095449924468994,
0.17392399907112122,
-0.4277139902114868,
-0.3182324469089508,
-0.2613596022129059,
-0.04354359209537506,
-0.004756499081850052,
0.031358975917100906,
-0.004666723310947418,
0.12691432237625122,
0.013348817825317383,
0.1200699657201767,
-0.4180193543434143,
0.18682852387428284,
0.31104931235313416,
-0.21542403101921082,
0.03296718746423721,
0.57561194896698,
0.34860000014305115,
-0.16242007911205292,
-0.12990953028202057,
0.01728363335132599,
0.12894591689109802,
-0.5070227980613708,
0.09579398483037949,
0.023790432140231133,
0.16422109305858612,
0.16529563069343567,
-0.01321813091635704,
0.33268678188323975,
-0.1758507788181305,
-0.0088714100420475,
-0.5446475148200989,
-0.17913579940795898,
-0.06688348948955536,
-0.23488293588161469,
0.054259635508060455,
-0.012722508981823921,
-0.4608018100261688,
0.004061093553900719,
0.01075869519263506,
-0.19306530058383942,
0.03442884236574173,
-0.18589568138122559,
-0.030345041304826736,
0.3163404166698456,
0.22915461659431458,
-0.23462305963039398,
-0.3684816062450409,
-0.042719148099422455,
0.0024343393743038177,
0.011666257865726948,
-0.09196820855140686,
-0.1569606363773346,
0.18240603804588318,
0.008946186862885952,
0.13245008885860443,
-0.16904626786708832,
-0.3921775817871094,
-0.09542898833751678,
-0.2059776932001114,
0.1147218644618988,
0.22530394792556763,
-0.019349612295627594,
0.19333387911319733,
-0.016570571810007095,
0.0006806701421737671,
-0.5333537459373474,
0.3325955271720886,
-0.2479938566684723,
0.09407499432563782,
-0.02705276943743229,
0.12162301689386368,
0.16544955968856812,
0.10705016553401947,
-0.1801697313785553,
-0.013975344598293304,
-0.0169358029961586,
-0.16003578901290894,
0.3075771927833557,
-0.3885447382926941,
0.09864367544651031,
0.15183454751968384,
0.2750326693058014,
0.18793267011642456,
-0.09945048391819,
-0.13120800256729126,
0.1855199933052063,
0.11004845052957535,
-0.24919892847537994,
0.032644689083099365,
0.08920170366764069,
0.22803519666194916,
-0.00988306850194931,
0.21382257342338562,
0.09222762286663055,
-0.2182324230670929,
-0.032347626984119415,
0.2707176208496094,
0.6395134925842285,
-0.13648711144924164,
0.139799103140831,
0.13522128760814667,
0.06335711479187012,
0.13920775055885315,
0.32198187708854675,
0.0795949250459671,
0.04960273206233978,
0.47535765171051025,
-0.14975154399871826,
0.02395724691450596,
0.3599695563316345,
0.21899430453777313,
-0.09252657741308212,
-0.6508238315582275,
0.13239392638206482,
0.2008843719959259,
-0.2634190022945404,
-0.07695794850587845,
0.07392455637454987,
0.5030562877655029,
-0.10735607147216797,
-0.11461413651704788,
-0.15278413891792297,
-0.015150990337133408,
-0.04413813352584839,
-0.07617799937725067,
-0.17411941289901733,
-0.2008221447467804,
-0.2576134204864502,
0.16747702658176422,
-0.21280664205551147,
-0.09410379827022552,
0.4579729437828064,
0.21673940122127533,
-0.036026135087013245,
-0.4054030179977417,
0.18970996141433716,
0.2887360751628876,
0.07226509600877762,
-0.31583914160728455,
0.16058941185474396,
-0.1269688606262207,
-0.09721104800701141,
0.17463666200637817,
-0.0592661127448082,
0.3580147325992584,
0.4849873185157776,
-0.06116234138607979,
-0.1432066261768341,
0.03155525401234627,
-0.08762535452842712,
-0.11086585372686386,
0.39653024077415466,
0.023956891149282455,
0.13739946484565735,
0.19517119228839874,
0.12863312661647797,
-0.00969376415014267,
0.3752737045288086,
0.050820037722587585,
0.22352226078510284,
-0.3473748564720154,
-0.1775437593460083,
-0.04772049933671951,
-0.16007275879383087,
-0.06179659068584442,
-0.1716429889202118,
-0.11676062643527985,
0.010911691002547741,
0.5576161742210388,
0.14917048811912537,
0.20966815948486328,
0.024104278534650803,
-0.0009773429483175278,
-0.056527066975831985,
0.3757082521915436,
0.49562379717826843,
0.07694973796606064,
-0.5890388488769531,
-0.03985201567411423,
-0.8539823293685913,
0.09547164291143417,
-0.23986494541168213,
-0.06329924613237381,
-0.0009717019274830818,
0.2116798460483551,
0.3001742959022522,
0.22048814594745636,
-0.006709188222885132,
0.2164326310157776,
-0.08238770067691803,
0.3384048342704773,
-0.28744927048683167,
-0.11309067904949188,
-0.1441631019115448,
0.06186121702194214,
-0.08925823867321014,
-0.5409151315689087,
0.10128337889909744,
0.2342904657125473,
-0.09469883143901825,
-0.0006953440606594086,
-0.11971685290336609,
0.09492962062358856,
-0.0797157734632492,
0.4353004992008209,
-0.06744366884231567,
0.36455342173576355,
0.09955116361379623,
0.27284055948257446,
-0.5532186031341553,
-0.2802708148956299,
-0.1764010339975357,
0.1176866888999939,
-0.012498140335083008,
0.37865543365478516,
-0.47870072722435,
-0.0005204379558563232,
-0.3348592221736908,
-0.06957317143678665,
0.08602797985076904,
0.33002495765686035,
-0.19618122279644012,
0.14990921318531036,
-0.202815443277359,
0.29826799035072327,
0.022873975336551666,
-0.10699795931577682,
-0.15199212729930878,
0.15633006393909454,
-0.22357173264026642,
-0.2611178755760193,
0.32433634996414185,
-0.38084807991981506,
-0.3170458674430847,
0.03538824990391731,
0.30539119243621826,
0.22130733728408813,
0.05989137291908264,
-0.25246864557266235,
-0.0010303854942321777,
0.3080156445503235,
-0.20488587021827698,
-0.18290190398693085,
-0.050802987068891525,
-0.0601407028734684,
0.11844100058078766,
-0.20099538564682007,
0.26849502325057983,
0.24639856815338135,
-0.20374570786952972,
-0.19627609848976135,
-0.3673514723777771
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | Thanks for reporting.
In theory since the dataset script is just made to yield examples to write them into an arrow file, it's not supposed to create memory issues.
Could you please try to run this exact same loop in a separate script to see if it's not an issue with `PIL` ?
You can just copy paste what's inside `_generate_examples` and remove all the code for `datasets` (remove yield).
If the RAM usage stays low after 600 examples it means that it comes from some sort of memory leak in the library, or with pyarrow. | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 96 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

Thanks for reporting.
In theory since the dataset script is just made to yield examples to write them into an arrow file, it's not supposed to create memory issues.
Could you please try to run this exact same loop in a separate script to see if it's not an issue with `PIL` ?
You can just copy paste what's inside `_generate_examples` and remove all the code for `datasets` (remove yield).
If the RAM usage stays low after 600 examples it means that it comes from some sort of memory leak in the library, or with pyarrow. | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | Here's an equivalent loading code:
```python
images_path = "PHOENIX-2014-T-release-v3/PHOENIX-2014-T/features/fullFrame-210x260px/train"
for dir_path in tqdm(os.listdir(images_path)):
frames_path = os.path.join(images_path, dir_path)
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
```
The process takes 0.3% of memory, even after 1000 examples on the small machine with 120GB RAM.
I guess something in the datasets library doesn't release the reference to the objects I'm yielding, but no idea how to test for this | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 75 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

Here's an equivalent loading code:
```python
images_path = "PHOENIX-2014-T-release-v3/PHOENIX-2014-T/features/fullFrame-210x260px/train"
for dir_path in tqdm(os.listdir(images_path)):
frames_path = os.path.join(images_path, dir_path)
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
```
The process takes 0.3% of memory, even after 1000 examples on the small machine with 120GB RAM.
I guess something in the datasets library doesn't release the reference to the objects I'm yielding, but no idea how to test for this | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | I've had similar issues with Arrow once. I'll investigate...
For now maybe we can simply use the images paths in the dataset you want to add. I don't expect to fix this memory issue until 1-2 weeks unfortunately. Then we can just update the dataset with the images. What do you think ? | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 53 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

I've had similar issues with Arrow once. I'll investigate...
For now maybe we can simply use the images paths in the dataset you want to add. I don't expect to fix this memory issue until 1-2 weeks unfortunately. Then we can just update the dataset with the images. What do you think ? | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | If it's just 1-2 weeks, I think it's best if we wait. I don't think it is very urgent to add it, and it will be much more useful with the images loaded rather than not (the images are low resolution, and thus papers using this dataset actually fit the entire video into memory anyway)
I'll keep working on other datasets in the meanwhile :) | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 65 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

If it's just 1-2 weeks, I think it's best if we wait. I don't think it is very urgent to add it, and it will be much more useful with the images loaded rather than not (the images are low resolution, and thus papers using this dataset actually fit the entire video into memory anyway)
I'll keep working on other datasets in the meanwhile :) | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | Ok found the issue. This is because the batch size used by the writer is set to 10 000 elements by default so it would load your full dataset in memory (the writer has a buffer that flushes only after each batch). Moreover to write in Apache Arrow we have to use python objects so what's stored inside the ArrowWriter's buffer is actually python integers (32 bits).
Lowering the batch size to 10 should do the job.
I will add a flag to the DatasetBuilder class of dataset scripts, so that we can customize the batch size. | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 97 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

Ok found the issue. This is because the batch size used by the writer is set to 10 000 elements by default so it would load your full dataset in memory (the writer has a buffer that flushes only after each batch). Moreover to write in Apache Arrow we have to use python objects so what's stored inside the ArrowWriter's buffer is actually python integers (32 bits).
Lowering the batch size to 10 should do the job.
I will add a flag to the DatasetBuilder class of dataset scripts, so that we can customize the batch size. | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | Thanks, that's awesome you managed to find the problem.
About the 32 bits - really? there isn't a way to serialize the numpy array somehow? 32 bits would take 4 times the memory / disk space needed to store these videos.
Please let me know when the batch size is customizable and I'll try again! | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 55 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

Thanks, that's awesome you managed to find the problem.
About the 32 bits - really? there isn't a way to serialize the numpy array somehow? 32 bits would take 4 times the memory / disk space needed to store these videos.
Please let me know when the batch size is customizable and I'll try again! | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | The 32 bit integrers are only used in the writer's buffer because Arrow doesn't take numpy arrays correctly as input. On disk it's stored as uint8 in arrow format ;) | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 30 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

The 32 bit integrers are only used in the writer's buffer because Arrow doesn't take numpy arrays correctly as input. On disk it's stored as uint8 in arrow format ;) | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | > I don't expect to fix this memory issue until 1-2 weeks unfortunately.
Hi @lhoestq
not to rush of course, but I was wondering if you have a new timeline so I know how to plan my work around this :) | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 41 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

> I don't expect to fix this memory issue until 1-2 weeks unfortunately.
Hi @lhoestq
not to rush of course, but I was wondering if you have a new timeline so I know how to plan my work around this :) | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | Alright it should be good now.
You just have to specify `_writer_batch_size = 10` for example as a class attribute of the dataset builder class. | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 25 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

Alright it should be good now.
You just have to specify `_writer_batch_size = 10` for example as a class attribute of the dataset builder class. | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | I added it, but still it consumes as much memory
https://github.com/huggingface/datasets/pull/722/files#diff-2e0d865dd4a60dedd1861d6f8c5ed281ded71508467908e1e0b1dbe7d2d420b1R66
Did I not do it correctly? | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 17 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

I added it, but still it consumes as much memory
https://github.com/huggingface/datasets/pull/722/files#diff-2e0d865dd4a60dedd1861d6f8c5ed281ded71508467908e1e0b1dbe7d2d420b1R66
Did I not do it correctly? | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | Yes you did it right.
Did you rebase to include the changes of #828 ?
EDIT: looks like you merged from master in the PR. Not sure why you still have an issue then, I will investigate | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 37 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

Yes you did it right.
Did you rebase to include the changes of #828 ?
EDIT: looks like you merged from master in the PR. Not sure why you still have an issue then, I will investigate | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | Sorry for the delay, I was busy with the dataset sprint and the incredible amount of contributions to the library ^^'
What you can try to do to find what's wrong is check at which frequency the arrow writer writes all the examples from its in-memory buffer on disk. This happens [here](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L257-L258) in the code.
The idea is that `write_on_file` writes the examples every `writer_batch_size` examples and clear the buffer `self. current_rows`. As soon as `writer_batch_size` is small enough you shouldn't have memory issues in theory.
Let me know if you have questions or if I can help.
Since the dataset sprint is over and I will also be done with all the PRs soon I will be able to go back at it and take a look. | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 128 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

Sorry for the delay, I was busy with the dataset sprint and the incredible amount of contributions to the library ^^'
What you can try to do to find what's wrong is check at which frequency the arrow writer writes all the examples from its in-memory buffer on disk. This happens [here](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L257-L258) in the code.
The idea is that `write_on_file` writes the examples every `writer_batch_size` examples and clear the buffer `self. current_rows`. As soon as `writer_batch_size` is small enough you shouldn't have memory issues in theory.
Let me know if you have questions or if I can help.
Since the dataset sprint is over and I will also be done with all the PRs soon I will be able to go back at it and take a look. | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | I had the same issue. It works for me by setting `DEFAULT_WRITER_BATCH_SIZE = 10` of my dataset builder class. (And not `_writer_batch_size` as previously mentioned). I guess this is because `_writer_batch_size` is overwritten in `__init__` (see [here](https://github.com/huggingface/datasets/blob/0e2563e5d5c2fc193ea27d7c24607bb35607f2d5/src/datasets/builder.py#L934)) | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 37 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

I had the same issue. It works for me by setting `DEFAULT_WRITER_BATCH_SIZE = 10` of my dataset builder class. (And not `_writer_batch_size` as previously mentioned). I guess this is because `_writer_batch_size` is overwritten in `__init__` (see [here](https://github.com/huggingface/datasets/blob/0e2563e5d5c2fc193ea27d7c24607bb35607f2d5/src/datasets/builder.py#L934)) | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/741 | Creating dataset consumes too much memory | Yes the class attribute you can change is `DEFAULT_WRITER_BATCH_SIZE`.
Otherwise in `load_dataset` you can specify `writer_batch_size=` | Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

| 16 | Creating dataset consumes too much memory
Moving this issue from https://github.com/huggingface/datasets/pull/722 here, because it seems like a general issue.
Given the following dataset example, where each example saves a sequence of 260x210x3 images (max length 400):
```python
def _generate_examples(self, base_path, split):
""" Yields examples. """
filepath = os.path.join(base_path, "annotations", "manual", "PHOENIX-2014-T." + split + ".corpus.csv")
images_path = os.path.join(base_path, "features", "fullFrame-210x260px", split)
with open(filepath, "r", encoding="utf-8") as f:
data = csv.DictReader(f, delimiter="|", quoting=csv.QUOTE_NONE)
for row in data:
frames_path = os.path.join(images_path, row["video"])[:-7]
np_frames = []
for frame_name in os.listdir(frames_path):
frame_path = os.path.join(frames_path, frame_name)
im = Image.open(frame_path)
np_frames.append(np.asarray(im))
im.close()
yield row["name"], {"video": np_frames}
```
The dataset creation process goes out of memory on a machine with 500GB RAM.
I was under the impression that the "generator" here is exactly for that, to avoid memory constraints.
However, even if you want the entire dataset in memory, it would be in the worst case
`260x210x3 x 400 max length x 7000 samples` in bytes (uint8) = 458.64 gigabytes
So I'm not sure why it's taking more than 500GB.
And the dataset creation fails after 170 examples on a machine with 120gb RAM, and after 672 examples on a machine with 500GB RAM.
---
## Info that might help:
Iterating over examples is extremely slow.

If I perform this iteration in my own, custom loop (Without saving to file), it runs at 8-9 examples/sec
And you can see at this state it is using 94% of the memory:

And it is only using one CPU core, which is probably why it's so slow:

Yes the class attribute you can change is `DEFAULT_WRITER_BATCH_SIZE`.
Otherwise in `load_dataset` you can specify `writer_batch_size=` | [
-0.2472246289253235,
-0.048452310264110565,
-0.0161761324852705,
0.2615474462509155,
0.18142792582511902,
0.20232373476028442,
0.14100605249404907,
0.28364327549934387,
-0.09369175136089325,
0.2016248106956482,
0.4972400367259979,
0.14902545511722565,
-0.2346247434616089,
0.006733531132340431,
-0.015806976705789566,
-0.303344190120697,
0.08664411306381226,
0.05524582043290138,
-0.14935095608234406,
-0.025151018053293228,
-0.40157458186149597,
-0.03640883415937424,
0.09794139862060547,
-0.2667103409767151,
-0.5073341131210327,
-0.20184901356697083,
-0.07314980775117874,
0.07872004806995392,
-0.12706048786640167,
-0.23159436881542206,
-0.127470925450325,
-0.04000462219119072,
0.11776022613048553,
0.34808462858200073,
-0.00011071874178014696,
-0.014207549393177032,
0.25283896923065186,
0.05605828016996384,
-0.2610015571117401,
0.25513550639152527,
0.002483643591403961,
-0.27798715233802795,
-0.17271476984024048,
-0.048848025500774384,
0.25727441906929016,
-0.3003963530063629,
0.16597391664981842,
-0.35873645544052124,
0.2852359414100647,
0.31032899022102356,
0.19067974388599396,
0.23339763283729553,
0.022587615996599197,
-0.06453664600849152,
0.02835448458790779,
0.1364508867263794,
-0.2712324857711792,
-0.004395224153995514,
-0.032247863709926605,
-0.1391173154115677,
-0.12493375688791275,
0.32138609886169434,
0.12513430416584015,
0.05559108406305313,
0.3767859935760498,
-0.025899548083543777,
-0.3605363070964813,
-0.48266634345054626,
0.12986233830451965,
0.21055001020431519,
0.47983983159065247,
-0.21308520436286926,
-0.19074420630931854,
-0.3127380907535553,
-0.060871705412864685,
-0.28090783953666687,
-0.03869083523750305,
0.5055587887763977,
-0.47972372174263,
-0.1568404585123062,
-0.4373592436313629,
0.011241363361477852,
-0.07393205910921097,
-0.07895536720752716,
0.27258923649787903,
-0.42670413851737976,
-0.03617062792181969,
0.21129131317138672,
0.44114476442337036,
0.006941437721252441,
0.1683402806520462,
-0.17354784905910492,
0.04056429862976074,
-0.09080131351947784,
-0.2532211244106293,
-0.052364423871040344,
0.28762295842170715,
-0.14536240696907043,
0.3291011154651642,
-0.041268035769462585,
0.02451430633664131,
-0.27151310443878174,
0.15300698578357697,
-0.0058943890035152435,
0.09670059382915497,
0.22016695141792297,
-0.48589372634887695,
-0.176741823554039,
0.22785858809947968,
0.044484566897153854,
0.0899152010679245,
-0.15908408164978027,
-0.02742239087820053,
-0.15316398441791534,
0.22108937799930573,
-0.33359643816947937,
0.19020013511180878,
0.2805507779121399,
-0.2625470757484436,
0.20271749794483185,
-0.2653442323207855,
0.10291900485754013,
-0.1461302787065506,
0.1159537136554718,
0.06553206592798233,
0.11412222683429718,
-0.11045161634683609,
0.15202611684799194,
-0.23462937772274017,
-0.20640084147453308,
-0.2843567430973053,
0.021900752559304237,
-0.25185564160346985,
0.20189523696899414,
0.13392989337444305,
0.24312061071395874,
0.21706299483776093,
0.00802257563918829,
0.05361941084265709,
-0.007948823273181915,
0.40562403202056885,
-0.2521452009677887,
-0.006455369293689728,
0.28251662850379944,
0.10688188672065735,
0.1090518906712532,
-0.029089901596307755,
0.13940851390361786,
-0.08989225327968597,
0.23826953768730164,
0.04904142767190933,
-0.41224437952041626,
0.09992042183876038,
0.1508389413356781,
0.09517023712396622,
0.22973290085792542,
-0.4434712827205658,
0.22928689420223236,
0.19471362233161926,
0.388874351978302,
-0.054538361728191376,
-0.0666552186012268,
-0.3439251184463501,
-0.2636185586452484,
0.1964845210313797,
0.7139773368835449,
-0.3620709478855133,
0.291979044675827,
-0.18182988464832306,
0.11988323926925659,
0.14420412480831146,
0.44146084785461426,
-0.05283120274543762,
0.4882633090019226,
-0.22437618672847748,
-0.27109605073928833,
-0.0880402997136116,
-0.09411752223968506,
-0.21326389908790588,
0.2518537640571594,
-0.10755114257335663,
0.157263845205307,
0.37295758724212646,
0.2033800184726715,
-0.03349468111991882,
-0.08820527046918869,
0.04977291822433472,
0.23085159063339233,
-0.35862794518470764,
0.12496521323919296,
-0.10979288816452026,
-0.3897540271282196,
-0.05064462870359421,
-0.0010801944881677628,
0.14698943495750427,
0.043449901044368744,
-0.15919244289398193,
0.0015710508450865746,
0.11172321438789368,
-0.3314083516597748,
0.18027463555335999,
0.28260162472724915,
0.14330320060253143,
-0.1382259875535965,
-0.09292230755090714,
0.09180757403373718,
-0.2511998116970062,
0.2500659227371216,
0.2217898666858673,
0.1579180657863617,
-0.03720477223396301,
-0.1576397866010666,
0.13840749859809875,
0.0796201154589653,
-0.040574830025434494,
-0.17417791485786438,
0.09874752163887024,
0.04085158556699753,
0.24248012900352478,
-0.19909095764160156,
0.04077937826514244,
0.45707136392593384,
-0.28443601727485657,
0.03640550374984741,
-0.6800731420516968,
-0.0023435186594724655,
-0.0597890168428421,
-0.13116993010044098,
-0.020495811477303505,
0.02929113060235977,
-0.07556682080030441,
-0.043313924223184586,
-0.011597361415624619,
0.29881545901298523,
0.27843746542930603,
0.022237204015254974,
-0.06059040129184723,
0.1867603212594986,
0.14870299398899078,
-0.16127070784568787,
0.31685227155685425,
0.058519549667835236,
0.1633770763874054,
-0.07190922647714615,
-0.2061854600906372,
0.06682226061820984,
-0.09582233428955078,
0.3077232837677002,
0.22667472064495087,
0.012298913672566414,
0.009969858452677727,
0.22150394320487976,
0.1509665548801422,
-0.05081280320882797,
0.08964474499225616,
0.29204991459846497,
0.17995303869247437,
0.18776310980319977,
-0.3006308674812317,
0.08277779072523117,
0.12547001242637634,
-0.07491979002952576,
-0.10556063801050186,
0.29942888021469116,
-0.1035911962389946,
-0.24166753888130188,
0.08103219419717789,
0.22667206823825836,
0.5017879605293274,
0.15583965182304382,
-0.14443331956863403,
0.04781631752848625,
0.05747610703110695,
-0.2169301062822342,
0.15860670804977417,
0.1800118386745453,
0.32892921566963196,
-0.13854902982711792,
0.09019328653812408,
-0.06198189780116081,
-0.444047749042511,
-0.09127986431121826,
0.18484553694725037,
0.2858140170574188,
-0.18652349710464478,
0.25044554471969604,
0.06155245006084442,
-0.07888130843639374,
-0.03091798722743988,
0.424684077501297,
-0.04967067018151283,
-0.2127269208431244,
-0.17064736783504486,
0.2725587487220764,
-0.01895756646990776,
-0.028349941596388817,
0.006653353571891785,
0.26105639338493347,
0.2244722694158554,
-0.023295091465115547,
0.09416963160037994,
-0.007930951192975044,
-0.08171451836824417,
0.12987995147705078,
0.17771495878696442,
-0.21238869428634644,
0.4530031085014343,
-0.17078962922096252,
-0.08711188286542892,
-0.20848414301872253,
-0.0723169818520546,
0.11362326890230179,
-0.22808147966861725,
0.5252375602722168,
0.10358056426048279,
0.25227639079093933,
-0.11732499301433563,
-0.11609644442796707,
0.0819554477930069,
-0.06636910140514374,
-0.16130802035331726,
0.010234428569674492,
-0.02596930041909218,
-0.1146579161286354,
-0.010168097913265228,
-0.15536049008369446,
0.07958242297172546,
-0.34369906783103943,
0.3560943603515625,
0.10224974155426025,
0.1887512356042862,
0.5033755302429199,
0.4098787009716034,
-0.046641457825899124,
0.1624167263507843,
0.15235553681850433,
-0.1796499341726303,
-0.34094172716140747,
0.10215892642736435,
-0.3160606324672699,
-0.3371720612049103,
0.04666384682059288,
-0.22746658325195312,
0.2909379005432129,
0.441927433013916,
-0.5405669212341309,
-0.2555704712867737,
-0.5127837657928467,
0.1783432513475418,
-0.015166927129030228,
0.2652287185192108,
0.09033247083425522,
-0.0019470658153295517,
-0.10026199370622635,
0.006597559899091721,
-0.15573345124721527,
-0.004692099988460541,
0.04451233521103859,
0.12875232100486755,
0.21512535214424133,
0.5913013815879822,
0.060698654502630234,
0.7865704298019409,
0.41500911116600037,
0.14204564690589905,
0.3436697721481323,
-0.06142382323741913,
0.4706932604312897,
-0.29320842027664185,
-0.1800682097673416,
0.23192133009433746,
-0.17871707677841187,
-0.2574405074119568,
-0.08316095173358917,
0.10466864705085754,
0.014266072772443295,
0.12738129496574402,
0.058672454208135605,
0.04600930213928223,
-0.1819886714220047,
0.26680299639701843,
-0.027469031512737274,
0.34610632061958313,
0.046739112585783005,
0.03660807013511658,
-0.1479361206293106,
-0.016332050785422325,
-0.10370282828807831,
-0.11095011234283447,
0.48529595136642456,
-0.04417506605386734,
-0.4239209294319153,
0.10985513031482697,
-0.6938716173171997,
-0.13324083387851715,
-0.09656955301761627,
0.2234213501214981,
-0.04908411204814911,
0.06601954996585846,
0.047589339315891266,
0.04534430801868439,
0.9892039895057678,
0.0007063448429107666,
-0.29667365550994873,
-0.25485193729400635,
-0.32072046399116516,
-0.4081350266933441,
0.1653791069984436,
0.07222884893417358,
0.11999628692865372,
-0.16447384655475616,
0.1693553924560547,
-0.15269052982330322,
-0.2036917358636856,
0.25884002447128296,
0.4127710461616516,
-0.14306499063968658,
0.04042118415236473,
-0.28010839223861694,
-0.5489317774772644,
-0.29648590087890625,
-0.16321706771850586,
-0.005541181191802025,
0.0484778992831707,
0.2352023422718048,
0.025542210787534714,
-0.04879675805568695,
-0.15579628944396973,
0.21117821335792542,
0.10842348635196686,
0.2446291446685791,
-0.0259843822568655,
0.4257113039493561,
0.19116824865341187,
-0.3292509615421295,
0.21832796931266785,
0.32449865341186523,
-0.06563453376293182,
-0.10884733498096466,
-0.02897562086582184,
0.10228905081748962,
0.24753594398498535,
0.4917115569114685,
-0.22848036885261536,
-0.32927027344703674,
-0.12823337316513062,
0.24699512124061584,
-0.563715934753418,
0.19344620406627655,
0.48158103227615356,
-0.20826834440231323,
-0.19238415360450745,
-0.7430678606033325,
0.3641570806503296,
0.3175494372844696,
0.12784400582313538,
0.3630663752555847,
0.08875203877687454,
-0.1641533076763153,
0.39550960063934326,
0.26830047369003296,
0.6815112829208374,
-0.17180374264717102,
0.48811447620391846,
0.3426571488380432,
0.24323271214962006,
0.37425491213798523,
-0.08301538228988647,
0.42128515243530273,
-0.059021349996328354,
-0.41384217143058777,
0.07004524767398834,
-0.1448521763086319,
0.18907195329666138,
0.11002220213413239,
0.24383768439292908,
0.3425055146217346,
0.07816940546035767,
0.01532815583050251,
-0.15967653691768646,
0.27529817819595337,
-0.3474653661251068,
-0.4178960919380188,
-0.06881868839263916,
0.1925274282693863,
0.04873853921890259,
-0.18602947890758514,
-0.09406570345163345,
0.13728536665439606,
-0.05407816916704178,
-0.10733646154403687,
-0.2376544177532196,
-0.12352631241083145,
-0.27739912271499634,
0.26458489894866943,
-0.028883110731840134,
-0.16806480288505554,
-0.13112150132656097,
0.07415427267551422,
0.040064506232738495,
0.1833522617816925,
0.08753181993961334,
0.12298241257667542,
0.02565610408782959,
-0.06085280328989029,
0.08615720272064209,
-0.20961344242095947,
0.3166005313396454,
-0.06105053424835205,
0.02720225602388382,
0.023116223514080048,
-0.04505472630262375,
0.016637079417705536,
-0.26839447021484375,
-0.04051008075475693,
-0.02246062457561493,
-0.09480991214513779,
-0.33356866240501404,
-0.10301795601844788,
-0.27907729148864746,
-0.18003122508525848,
0.10731227695941925,
0.16764681041240692,
-0.0732504278421402,
0.39333799481391907,
-0.3213770091533661,
-0.18254005908966064,
-0.1805839091539383,
-0.08059702068567276,
0.28675174713134766,
0.22473707795143127,
0.34437423944473267,
0.18677036464214325,
-0.041323982179164886,
-0.11833038926124573,
0.23985308408737183,
0.2784741222858429,
-0.39606034755706787,
0.399488627910614,
-0.0061353836208581924,
-0.08350784331560135,
-0.17411862313747406,
0.02221236377954483,
-0.0347578302025795,
-0.1690722405910492,
-0.0011353902518749237,
0.025139614939689636,
-0.4378546476364136,
-0.011488623917102814,
-0.03591803088784218,
0.30965864658355713,
-0.0809229165315628,
-0.23840071260929108,
0.05692724138498306,
0.062304772436618805,
-0.2509616017341614,
-0.1806098073720932,
-0.05452799052000046,
0.13009777665138245,
0.14454837143421173,
-0.06499797850847244,
0.2266216278076172,
-0.06396536529064178,
0.059243328869342804,
0.07697531580924988,
-0.233714759349823,
-0.19371360540390015,
-0.20927225053310394,
0.10475577414035797,
0.1538061797618866,
-0.5640976428985596,
0.3158082664012909,
-0.253637433052063,
-0.28781312704086304,
-0.3615010976791382,
0.2732219696044922,
0.15878063440322876,
-0.09760250151157379,
-0.2814572751522064,
0.031527500599622726,
-0.23841631412506104,
0.17545022070407867,
0.1772964745759964,
-0.09864470362663269,
0.4965091943740845,
0.2690386176109314,
0.267672061920166,
0.21772639453411102,
-0.1677125096321106,
-0.3551415503025055,
0.232310950756073,
-0.17572487890720367,
-0.23707950115203857,
0.1685316562652588,
-0.1453193724155426,
-0.18038539588451385,
0.1270936280488968,
0.19007515907287598,
0.33666107058525085,
-0.11907893419265747,
0.05661124736070633,
0.040658868849277496,
0.15787900984287262,
-0.044255614280700684,
-0.12916859984397888,
-0.15786975622177124,
-0.06576276570558548,
0.178304985165596,
0.4919784963130951,
0.18586216866970062,
0.018937237560749054,
-0.49083876609802246,
0.016593869775533676,
0.2409808337688446,
-0.08485519140958786,
0.16509592533111572,
0.21157975494861603,
0.11258400976657867,
0.007178906351327896,
0.19977031648159027,
0.27667075395584106,
0.29836562275886536,
0.45967721939086914,
0.033559489995241165,
0.33755239844322205,
0.15337079763412476,
-0.043730054050683975,
-0.012827634811401367,
-0.33500221371650696,
0.03592744097113609,
0.23395800590515137,
-0.18102329969406128,
0.25918805599212646,
-0.06431658565998077,
-0.182662695646286,
-0.07557925581932068,
-0.2131422758102417,
-0.27347424626350403,
0.1559334695339203,
-0.10045478492975235,
-0.09162651002407074,
0.17780834436416626,
-0.059228308498859406,
-0.08378832787275314,
0.4182519316673279,
0.05637674778699875,
-0.6564087867736816,
0.18581032752990723,
-0.027902401983737946,
-0.21833907067775726,
-0.004036368802189827,
0.2878210246562958,
0.000288352370262146,
0.12681478261947632,
-0.1856124848127365,
-0.05689737945795059,
0.10197422653436661,
-0.1687733680009842,
-0.2335277795791626,
0.43163612484931946,
0.5210509300231934,
0.2962179183959961,
-0.015567190945148468,
0.2253415584564209,
0.12859012186527252,
-0.05806101858615875,
-0.24339255690574646,
0.20782946050167084,
-0.09385071694850922,
0.3470299243927002,
0.029851973056793213,
0.056428514420986176,
-0.1199410930275917,
-0.23138780891895294,
0.46673765778541565,
-0.03223250061273575,
-0.5099732875823975,
0.07137017697095871,
-0.2709573805332184,
-0.08318991214036942,
-0.001489255577325821,
0.15567177534103394,
-0.37431201338768005,
0.014201603829860687,
0.6617762446403503,
-0.33589068055152893,
0.05297425389289856,
-0.15495586395263672,
0.0486677885055542,
-0.4334239065647125,
0.5622742772102356,
0.24796290695667267,
0.024590738117694855,
-0.5293912291526794,
-0.057893939316272736,
-0.4145037829875946,
-0.2513062357902527,
-0.5728731751441956,
0.12084652483463287,
0.21571668982505798,
0.26785242557525635,
-0.0817706510424614,
0.1097257137298584,
-0.09914359450340271,
0.12200909852981567,
-0.23855194449424744,
0.28674185276031494,
-0.025569500401616096,
-0.20527076721191406,
-0.0512690395116806,
0.060506097972393036,
-0.13287070393562317,
-0.4785497486591339,
0.21714554727077484,
-0.3334965109825134,
0.03215939551591873,
-0.18026548624038696,
0.09156990051269531,
0.0828929990530014,
0.109151691198349,
0.36657047271728516,
0.30011186003685,
0.030413545668125153,
-0.08994369208812714,
-0.42167413234710693,
-0.45409804582595825,
-0.019189435988664627,
-0.23677228391170502,
0.1167338490486145,
0.12834927439689636,
0.31488531827926636,
-0.2542373538017273,
0.17394907772541046,
-0.29949042201042175,
0.3420857787132263,
0.24905739724636078,
-0.20706354081630707,
-0.09782237559556961,
0.26759371161460876,
-0.3416648209095001,
0.15883570909500122,
0.4218655526638031,
0.2471739649772644,
-0.21609655022621155,
0.03140462934970856,
-0.26230448484420776,
-0.3741121292114258,
0.23443612456321716,
-0.3907599449157715,
-0.3366750478744507,
-0.11163266003131866,
0.07492087781429291,
-0.013385668396949768,
-0.19451694190502167,
-0.19022372364997864,
0.121638722717762,
0.10562806576490402,
-0.10631633549928665,
-0.25671401619911194,
0.2248547077178955,
-0.032844964414834976,
-0.2498072385787964,
0.06140749529004097,
0.30202966928482056,
-0.205799400806427,
-0.39604517817497253,
0.4934435784816742,
-0.10765736550092697
] |
https://github.com/huggingface/datasets/issues/737 | Trec Dataset Connection Error | Thanks for reporting.
That's because the download url has changed. The old url now redirects to the new one but we don't support redirection for downloads.
I'm opening a PR to update the url | **Datasets Version:**
1.1.2
**Python Version:**
3.6/3.7
**Code:**
```python
from datasets import load_dataset
load_dataset("trec")
```
**Expected behavior:**
Download Trec dataset and load Dataset object
**Current Behavior:**
Get a connection error saying it couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label (but the link doesn't seem broken)
<details>
<summary>Error Logs</summary>
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /root/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-8-66bf1242096e> in <module>()
----> 1 load_dataset("trec")
10 frames
/usr/local/lib/python3.6/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)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
</details> | 34 | Trec Dataset Connection Error
**Datasets Version:**
1.1.2
**Python Version:**
3.6/3.7
**Code:**
```python
from datasets import load_dataset
load_dataset("trec")
```
**Expected behavior:**
Download Trec dataset and load Dataset object
**Current Behavior:**
Get a connection error saying it couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label (but the link doesn't seem broken)
<details>
<summary>Error Logs</summary>
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /root/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-8-66bf1242096e> in <module>()
----> 1 load_dataset("trec")
10 frames
/usr/local/lib/python3.6/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)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
</details>
Thanks for reporting.
That's because the download url has changed. The old url now redirects to the new one but we don't support redirection for downloads.
I'm opening a PR to update the url | [
-0.24363957345485687,
0.10745978355407715,
-0.014968900009989738,
0.15051591396331787,
0.38006794452667236,
-0.1288014054298401,
0.27454155683517456,
0.3322344422340393,
-0.20466133952140808,
0.1162949949502945,
-0.19129391014575958,
0.25811171531677246,
0.07228124886751175,
-0.16582342982292175,
-0.10217154026031494,
0.04979303106665611,
-0.17175105214118958,
0.006203308701515198,
-0.28321781754493713,
0.08775299787521362,
-0.04422260448336601,
0.26028603315353394,
-0.005520425736904144,
0.24279417097568512,
-0.5984308123588562,
-0.18845242261886597,
0.18043141067028046,
0.45155662298202515,
-0.25060030817985535,
-0.5709514617919922,
0.38885846734046936,
0.07279641181230545,
0.12875288724899292,
0.5148999691009521,
-0.0001109370932681486,
0.05660417675971985,
0.24225789308547974,
-0.05575881898403168,
-0.5349966883659363,
-0.4334148168563843,
-0.5455426573753357,
-0.02730838768184185,
0.14036937057971954,
-0.13666501641273499,
-0.2754545211791992,
0.47652971744537354,
0.06095171719789505,
-0.48097026348114014,
0.2310199737548828,
0.6710780262947083,
0.22493743896484375,
0.29406246542930603,
0.06804835796356201,
-0.265093058347702,
0.2843117415904999,
-0.1481318175792694,
-0.1591586172580719,
0.46635571122169495,
0.1364140808582306,
-0.058335885405540466,
-0.021400809288024902,
0.1513235867023468,
0.062463268637657166,
0.1721278727054596,
0.17452922463417053,
0.05656849965453148,
0.1772674024105072,
-0.3218347132205963,
0.2633390426635742,
0.27602913975715637,
0.4948779344558716,
-0.3989420533180237,
-0.20136338472366333,
0.09977009147405624,
-0.014368175528943539,
-0.6580311059951782,
0.209626704454422,
-0.06797876209020615,
-0.1465304046869278,
0.25438979268074036,
-0.35092711448669434,
0.08486715704202652,
-0.34912505745887756,
0.15587592124938965,
-0.2747199535369873,
-0.10515002906322479,
-0.20084834098815918,
-0.006878018379211426,
-0.11333909630775452,
-0.02783581241965294,
0.1749700903892517,
0.020029444247484207,
-0.23849639296531677,
0.065030537545681,
-0.5116370320320129,
0.05603241175413132,
0.08038361370563507,
-0.14788183569908142,
-0.028151709586381912,
0.3335971236228943,
0.042714353650808334,
0.038103096187114716,
-0.16366730630397797,
0.25065603852272034,
0.0588730163872242,
0.21973493695259094,
-0.17691004276275635,
0.3202084004878998,
0.2743512988090515,
0.23327939212322235,
-0.17487606406211853,
-0.17596307396888733,
-0.18337960541248322,
-0.04630083590745926,
0.15913395583629608,
0.16377192735671997,
0.3319270610809326,
-0.16556261479854584,
-0.5211202502250671,
0.2541392147541046,
-0.10252568870782852,
0.1115972027182579,
0.0097517604008317,
0.42476537823677063,
-0.1067635715007782,
0.09086427092552185,
-0.1643858104944229,
0.053106099367141724,
-0.20545469224452972,
-0.058853570371866226,
-0.186449334025383,
0.019790753722190857,
-0.238414466381073,
0.04711606353521347,
0.3205462098121643,
0.027004815638065338,
0.1940554827451706,
-0.09456243366003036,
0.08469966799020767,
-0.183298721909523,
0.16426731646060944,
-0.3243230879306793,
0.026553787291049957,
0.3521921932697296,
-0.08643657714128494,
0.16591870784759521,
0.2515585422515869,
-0.2422625720500946,
-0.054677870124578476,
-0.028122536838054657,
-0.4812558889389038,
-0.4549756944179535,
-0.0710662230849266,
0.20840822160243988,
0.15486547350883484,
-0.01798434928059578,
0.13494744896888733,
-0.20250867307186127,
0.06132214516401291,
-0.20189495384693146,
-0.023101292550563812,
-0.23842640221118927,
-0.17472122609615326,
-0.22048690915107727,
0.3749777674674988,
0.31682783365249634,
-0.5557845830917358,
0.07694506645202637,
-0.07610469311475754,
0.11069940030574799,
0.1391874998807907,
0.203517884016037,
-0.1795075386762619,
0.14958280324935913,
-0.25870588421821594,
-0.029724467545747757,
0.3721456229686737,
-0.43088653683662415,
-0.511809229850769,
0.07364697754383087,
-0.14491721987724304,
0.10104348510503769,
-0.18644127249717712,
0.16342619061470032,
0.24619720876216888,
0.0745621770620346,
0.3918348550796509,
0.050154298543930054,
-0.26753705739974976,
-0.11722123622894287,
-0.2557187080383301,
-0.12035967409610748,
-0.22739414870738983,
-0.005859361961483955,
0.09685623645782471,
0.0362858921289444,
0.22123324871063232,
-0.15346680581569672,
0.2883463501930237,
0.1403520107269287,
0.05448880046606064,
0.21142305433750153,
0.5641496181488037,
-0.07629132270812988,
-0.21491041779518127,
-0.04400531202554703,
-0.25728893280029297,
0.2746303379535675,
0.04343126714229584,
0.16995519399642944,
-0.38415539264678955,
-0.07311736047267914,
-0.5478704571723938,
0.011643996462225914,
-0.19693346321582794,
-0.24498704075813293,
0.1305416226387024,
0.24960832297801971,
0.1088530570268631,
0.14628516137599945,
-0.1167912632226944,
0.4556649625301361,
0.0960787683725357,
0.10424280166625977,
0.018209373578429222,
0.24947501718997955,
-0.09830295294523239,
-0.02715884894132614,
-0.11545298993587494,
0.20119452476501465,
0.17973636090755463,
-0.10832294821739197,
-0.20020455121994019,
0.47687262296676636,
0.2418259233236313,
-0.047401055693626404,
-0.09443802386522293,
0.1279827356338501,
0.24215012788772583,
-0.1477312445640564,
0.0017796959728002548,
-0.09350015223026276,
0.15460339188575745,
0.02538398653268814,
-0.04305867850780487,
0.309150755405426,
-0.013164184987545013,
0.1504994034767151,
0.19268938899040222,
-0.09526678174734116,
0.24121743440628052,
0.04167300835251808,
-0.022572020068764687,
0.06576769053936005,
0.018250826746225357,
0.20734582841396332,
0.15490056574344635,
-0.11555123329162598,
-0.2918311357498169,
0.12448014318943024,
0.3424331247806549,
0.06978632509708405,
-0.08127505332231522,
0.02321583405137062,
-0.21458956599235535,
0.07292961329221725,
0.17106282711029053,
0.29376086592674255,
0.40957748889923096,
0.15439683198928833,
0.0596783272922039,
0.12398198246955872,
-0.23178306221961975,
-0.1342633068561554,
-0.06683353334665298,
0.0030504241585731506,
0.2552393078804016,
0.33792462944984436,
0.24960516393184662,
0.039156120270490646,
-0.07407777011394501,
-0.3382085859775543,
-0.07823721319437027,
0.20213332772254944,
-0.311646044254303,
0.2916002869606018,
-0.28049200773239136,
-0.22361451387405396,
-0.049967192113399506,
-0.4288075566291809,
-0.07890832424163818,
-0.3910885155200958,
-0.10487541556358337,
0.45620012283325195,
0.06638245284557343,
0.19782070815563202,
-0.49257150292396545,
0.07610619068145752,
0.18924689292907715,
-0.46929025650024414,
0.0011928044259548187,
-0.1383705586194992,
-0.31439146399497986,
0.12677812576293945,
0.08299095928668976,
-0.173995241522789,
0.2517479956150055,
-0.220429927110672,
0.010424183681607246,
-0.2139100730419159,
-0.25337037444114685,
0.08772370219230652,
0.14922991394996643,
0.1897948682308197,
0.006627805531024933,
0.08443029224872589,
-0.12215415388345718,
-0.0734417662024498,
0.3308885395526886,
0.08030572533607483,
0.13459882140159607,
0.02504628896713257,
-0.08448995649814606,
-0.04035690799355507,
-0.02884242869913578,
-0.5540795922279358,
-0.434709370136261,
-0.4233095943927765,
0.026590462774038315,
0.02788950875401497,
0.21453064680099487,
0.3089236617088318,
-0.013701403513550758,
0.13613413274288177,
-0.10699404776096344,
-0.05398610234260559,
-0.13827481865882874,
-0.4636726975440979,
0.25035515427589417,
-0.32186463475227356,
-0.3025493323802948,
0.16557566821575165,
-0.06955216825008392,
0.5321608781814575,
0.008648940362036228,
-0.4650232791900635,
-0.26768648624420166,
-0.09821070730686188,
0.6345693469047546,
0.09151828289031982,
-0.235342875123024,
0.2610231637954712,
-0.06465334445238113,
-0.1607626974582672,
0.024790816009044647,
-0.1128009706735611,
-0.005972154438495636,
0.08341258019208908,
0.3514323830604553,
-0.05413534492254257,
0.44972869753837585,
-0.04311938211321831,
0.5627844929695129,
0.1353463977575302,
-0.10651582479476929,
0.42534512281417847,
-0.3066241145133972,
0.5101927518844604,
-0.2793852984905243,
-0.2797888517379761,
-0.1413615643978119,
-0.2360910177230835,
-0.26326102018356323,
0.015398070216178894,
0.2132202386856079,
0.038281384855508804,
-0.31375110149383545,
0.3839370608329773,
-0.03504207730293274,
-0.3948906362056732,
-0.042029835283756256,
-0.041291601955890656,
0.2510327994823456,
0.19051514565944672,
0.108317531645298,
-0.019235482439398766,
-0.17269104719161987,
-0.24396589398384094,
0.3814210295677185,
-0.09490581601858139,
0.030857190489768982,
-0.06078731268644333,
0.20492707192897797,
-0.6307370066642761,
0.13427159190177917,
0.11631817370653152,
0.43979695439338684,
-0.29416802525520325,
-0.1318410038948059,
-0.08494153618812561,
0.0801967903971672,
0.20744463801383972,
-0.09950999170541763,
0.08415952324867249,
0.4266170263290405,
0.08360603451728821,
-0.11356320977210999,
-0.15092159807682037,
0.003323134034872055,
0.08180403709411621,
0.6349380016326904,
0.43480488657951355,
0.07431527227163315,
0.0479370653629303,
0.23200495541095734,
0.053267285227775574,
0.0615118034183979,
0.07810458540916443,
-0.2655318081378937,
-0.21718645095825195,
-0.15332642197608948,
-0.06319374591112137,
-0.023288602009415627,
0.3115462362766266,
-0.043720535933971405,
-0.17545302212238312,
0.04725048318505287,
-0.14324072003364563,
0.10132775455713272,
0.13717705011367798,
0.02463054656982422,
-0.024640146642923355,
0.30240094661712646,
0.08898226916790009,
0.23913957178592682,
0.2632666230201721,
0.6313424110412598,
-0.1889277696609497,
-0.2625212073326111,
0.1411161571741104,
0.0982738509774208,
0.021922655403614044,
0.2090880274772644,
-0.044043008238077164,
-0.07137628644704819,
-0.10433217883110046,
0.17063626646995544,
0.007620377000421286,
0.41233721375465393,
0.1464785784482956,
0.09787432849407196,
-0.6797948479652405,
-0.1825641542673111,
0.08090057969093323,
-0.17930831015110016,
-0.07379789650440216,
0.03182709962129593,
-0.027316823601722717,
-0.11009708791971207,
-0.10133174061775208,
-0.34077250957489014,
0.7502117156982422,
0.10515421628952026,
0.1461164951324463,
0.21287932991981506,
-0.10002373158931732,
0.37032005190849304,
-0.6265903115272522,
0.29921144247055054,
-0.3391890227794647,
-0.17796353995800018,
-0.17156437039375305,
-0.06445766240358353,
0.04270215332508087,
-0.08720347285270691,
-0.05878904089331627,
0.39251837134361267,
-0.02326725795865059,
0.16528432071208954,
0.06950636208057404,
-0.04820454865694046,
-0.05682767927646637,
0.11058677732944489,
-0.06910397857427597,
0.2089674174785614,
0.07414855808019638,
0.369820773601532,
-0.04562287777662277,
-0.0529731884598732,
-0.17828863859176636,
-0.17977836728096008,
-0.20084434747695923,
0.13546663522720337,
-0.604945957660675,
0.14283308386802673,
-0.026966948062181473,
-0.27855193614959717,
-0.08089073747396469,
-0.1312803477048874,
-0.014492221176624298,
0.1817367970943451,
-0.1985466331243515,
0.27536681294441223,
-0.002811647951602936,
0.013336160220205784,
0.16276825964450836,
-0.025293633341789246,
0.07660927623510361,
-0.004715565592050552,
-0.17288446426391602,
0.44103631377220154,
-0.021282196044921875,
-0.1607271134853363,
0.26504939794540405,
0.003253430128097534,
0.4391770362854004,
-0.29146522283554077,
-0.030947456136345863,
-0.13988156616687775,
-0.02982286736369133,
-0.1710260510444641,
0.1774250566959381,
-0.13399925827980042,
0.15509331226348877,
0.08156245946884155,
0.028625285252928734,
-0.35945266485214233,
-0.03213660046458244,
0.4235403835773468,
-0.3132711350917816,
0.0055290088057518005,
0.3005787134170532,
0.2023659497499466,
-0.14402201771736145,
-0.19735518097877502,
0.1408713161945343,
0.18625792860984802,
-0.5022173523902893,
-0.05848262831568718,
0.13940289616584778,
0.19221781194210052,
0.03794330358505249,
0.2046673744916916,
0.25475013256073,
-0.028474070131778717,
0.07608386874198914,
-0.3847140669822693,
-0.38249626755714417,
-0.048114269971847534,
0.02245885692536831,
0.25854161381721497,
0.024349555373191833,
0.03370198607444763,
-0.05176933854818344,
-0.06307543069124222,
-0.33462023735046387,
-0.027329104021191597,
-0.26223817467689514,
0.012638887390494347,
0.32088685035705566,
-0.0575917512178421,
0.5082916021347046,
-0.033190369606018066,
0.18270714581012726,
-0.03897235542535782,
-0.367453932762146,
-0.24216750264167786,
-0.06718724966049194,
0.13985686004161835,
0.11279617995023727,
-0.5299232006072998,
0.015839379280805588,
-0.047514915466308594,
0.008208421990275383,
-0.027021270245313644,
0.12698858976364136,
0.10694541782140732,
-0.19015862047672272,
-0.004102320410311222,
-0.4619939625263214,
0.12045339494943619,
-0.06262742727994919,
0.17473843693733215,
0.23538196086883545,
0.45553380250930786,
0.008137691766023636,
0.21634666621685028,
-0.16881021857261658,
-0.0649159699678421,
-0.28590530157089233,
0.031063776463270187,
-0.0958557277917862,
-0.20075789093971252,
0.36297911405563354,
-0.2602885961532593,
0.02818765863776207,
-0.061069898307323456,
0.2967255413532257,
0.004466738551855087,
-0.15407054126262665,
-0.10348012298345566,
0.0677492767572403,
0.31938794255256653,
-0.11931590735912323,
-0.04576759785413742,
-0.06233151629567146,
0.07544229924678802,
0.21380391716957092,
-0.0005395114421844482,
0.07878027856349945,
0.036965370178222656,
0.05245554447174072,
0.19246643781661987,
0.4129532277584076,
-0.259753942489624,
0.15402266383171082,
0.2356332391500473,
0.03742722049355507,
0.10415424406528473,
0.3256738781929016,
-0.07715073227882385,
0.005367301404476166,
0.4985237717628479,
-0.3577447235584259,
0.10617443174123764,
0.12487157434225082,
0.0072760432958602905,
-0.03314724564552307,
-0.3750705122947693,
0.05208204314112663,
-0.03973908722400665,
-0.3141106069087982,
-0.10034099966287613,
-0.07107888162136078,
0.2068195641040802,
-0.1854574978351593,
0.13880161941051483,
-0.25109946727752686,
0.007970467209815979,
-0.10958079248666763,
-0.044936440885066986,
0.16835954785346985,
-0.4044201672077179,
-0.10954088717699051,
-0.08320131152868271,
-0.10206246376037598,
0.07845114171504974,
0.07952388375997543,
0.14838457107543945,
-0.008909977972507477,
-0.4815816879272461,
0.022716674953699112,
0.16507214307785034,
0.05168759450316429,
-0.11690562963485718,
0.4407917559146881,
0.27341437339782715,
-0.03313305974006653,
0.09021646529436111,
0.1800568550825119,
0.5992757081985474,
0.32767561078071594,
0.23360249400138855,
0.1383291482925415,
-0.0980864018201828,
-0.11205420643091202,
0.10275989770889282,
0.05455086752772331,
0.13443675637245178,
-0.22652758657932281,
0.1893152892589569,
0.23222927749156952,
-0.1436278223991394,
0.23350495100021362,
-0.09631030261516571,
0.09109404683113098,
-0.152334526181221,
0.41995614767074585,
-0.026007600128650665,
-0.1321963220834732,
-0.18432985246181488,
0.15351463854312897,
-0.23545420169830322,
0.2184884250164032,
0.5031726360321045,
0.014018841087818146,
0.29126349091529846,
-0.08054200559854507,
0.09619881957769394,
-0.20215818285942078,
0.28151825070381165,
0.21935638785362244,
0.16792690753936768,
-0.4231606721878052,
-0.08062230795621872,
-0.3168092966079712,
0.15081454813480377,
-0.05006862059235573,
-0.2932550311088562,
-0.10341400653123856,
0.10499384999275208,
-0.2948222756385803,
0.24152930080890656,
0.20132595300674438,
0.03167473152279854,
0.12922370433807373,
0.16230355203151703,
-0.21669641137123108,
-0.09078267216682434,
-0.23035438358783722,
-0.0631653442978859,
-0.02731451764702797,
-0.5374889373779297,
0.002525661140680313,
-0.13260790705680847,
0.061203762888908386,
-0.15152676403522491,
-0.01500069722533226,
0.16950735449790955,
0.08400924503803253,
0.3490769565105438,
0.15437665581703186,
0.6344003677368164,
0.13952699303627014,
-0.049356311559677124,
-0.16079264879226685,
-0.3679971396923065,
-0.07955117523670197,
-0.018755808472633362,
0.24875777959823608,
0.318390429019928,
0.14912576973438263,
-0.4152112305164337,
-0.3780491352081299,
0.5051013827323914,
0.08499573171138763,
0.054836858063936234,
0.11527069658041,
0.036017514765262604,
-0.10200110077857971,
0.16713356971740723,
-0.04824301227927208,
0.07840072363615036,
0.17126992344856262,
0.3160136938095093,
-0.11105408519506454,
-0.4060390591621399,
0.451436847448349,
-0.3892621695995331,
-0.056160882115364075,
-0.289673775434494,
0.4707395136356354,
0.19723132252693176,
-0.10558827966451645,
-0.3734656274318695,
0.15893125534057617,
0.480570524930954,
-0.12579071521759033,
-0.341994047164917,
0.31009891629219055,
-0.15945543348789215,
0.1204138994216919,
0.014789439737796783,
0.6515820026397705,
-0.08981949836015701,
-0.27556291222572327,
-0.15676243603229523,
-0.17165005207061768
] |
https://github.com/huggingface/datasets/issues/730 | Possible caching bug | Thanks for reporting. That's a bug indeed.
Apparently only the `data_files` parameter is taken into account right now in `DatasetBuilder._create_builder_config` but it should also be the case for `config_kwargs` (or at least the instantiated `builder_config`) | The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5 | 35 | Possible caching bug
The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5
Thanks for reporting. That's a bug indeed.
Apparently only the `data_files` parameter is taken into account right now in `DatasetBuilder._create_builder_config` but it should also be the case for `config_kwargs` (or at least the instantiated `builder_config`) | [
0.06326085329055786,
-0.1689581423997879,
-0.1356962025165558,
0.3066900372505188,
0.3663589358329773,
-0.08226624876260757,
0.21097038686275482,
0.19322779774665833,
-0.08093328773975372,
0.14596495032310486,
-0.052267737686634064,
0.061048440635204315,
0.17751987278461456,
-0.055985093116760254,
0.13165880739688873,
0.21844516694545746,
0.08731990307569504,
0.06633303314447403,
-0.12631642818450928,
-0.2109900414943695,
-0.01026993989944458,
0.20624759793281555,
0.01733996719121933,
-0.14517362415790558,
-0.437119722366333,
0.12282812595367432,
-0.08546273410320282,
0.08264251053333282,
0.04330998286604881,
-0.23124541342258453,
0.07539195567369461,
0.15575723350048065,
-0.14271333813667297,
0.3933540880680084,
-0.00010795117123052478,
-0.04638276621699333,
0.004921756684780121,
-0.07512636482715607,
-0.4451858401298523,
-0.0241023451089859,
0.06683854758739471,
0.11590619385242462,
-0.05377595126628876,
-0.17924395203590393,
-0.06388544291257858,
0.08906017988920212,
0.08052213490009308,
-0.6234307885169983,
0.42119544744491577,
0.3092532753944397,
0.2928190231323242,
0.01811002567410469,
-0.3509517014026642,
0.10258731245994568,
0.2549998462200165,
0.2605430483818054,
-0.06014743074774742,
0.016257716342806816,
0.20089450478553772,
0.18448759615421295,
-0.17973071336746216,
0.490560382604599,
0.022463561967015266,
-0.09290909767150879,
0.01269255205988884,
0.3502126634120941,
-0.19734758138656616,
0.10783475637435913,
0.4177003800868988,
0.2047118842601776,
0.41029730439186096,
-0.4855339825153351,
-0.2600766122341156,
-0.3530350625514984,
-0.13911107182502747,
-0.3968031704425812,
0.3521829843521118,
-0.010458316653966904,
-0.038104694336652756,
0.25152045488357544,
-0.2373824566602707,
-0.04990103840827942,
0.043375179171562195,
-0.037861645221710205,
-0.14718157052993774,
0.06398958712816238,
-0.2387993186712265,
-0.10491480678319931,
-0.05651314929127693,
-0.09361359477043152,
0.01066530216485262,
-0.24658134579658508,
-0.051943425089120865,
0.13077031075954437,
-0.08175201714038849,
0.14962869882583618,
-0.03545305132865906,
0.014113612473011017,
0.08695472031831741,
0.0944402664899826,
0.22001618146896362,
0.1656225323677063,
-0.07724320143461227,
-0.11788482218980789,
-0.0753498524427414,
0.40892285108566284,
0.12654419243335724,
-0.1236863061785698,
0.19965341687202454,
0.10211139917373657,
-0.28637415170669556,
-0.15594109892845154,
0.08231571316719055,
-0.06637415289878845,
0.34975412487983704,
-0.21174785494804382,
0.17540700733661652,
-0.12271453440189362,
-0.17327281832695007,
0.12006121128797531,
-0.01375407725572586,
-0.01664045825600624,
-0.004566832445561886,
0.2791537940502167,
-0.21760672330856323,
0.08045020699501038,
-0.10962335020303726,
0.0016871578991413116,
-0.20302148163318634,
-0.2661352753639221,
-0.4274788498878479,
-0.13175837695598602,
-0.18239396810531616,
0.13117066025733948,
0.18084751069545746,
-0.052429478615522385,
0.1408105045557022,
0.19674810767173767,
0.1277531385421753,
-0.3219611644744873,
-0.11366432160139084,
-0.22998574376106262,
0.23694413900375366,
-0.006479885429143906,
-0.277132123708725,
0.2032751739025116,
0.11692163348197937,
-0.2279534637928009,
-0.09552854299545288,
0.028431203216314316,
-0.24024656414985657,
-0.1247914731502533,
0.05693170055747032,
0.29198575019836426,
-0.23667988181114197,
-0.12620148062705994,
0.057255372405052185,
0.05429580807685852,
0.5505171418190002,
0.0660657286643982,
0.19005531072616577,
0.01395595446228981,
-0.4436226785182953,
-0.19738812744617462,
0.0649242103099823,
0.3066070079803467,
-0.26534518599510193,
-0.21867342293262482,
0.08412644267082214,
0.0026900004595518112,
0.22165162861347198,
0.38935232162475586,
-0.10109475255012512,
0.10290996730327606,
-0.3480852246284485,
0.3724368214607239,
0.18623189628124237,
-0.3808501362800598,
-0.5444988012313843,
0.2635793089866638,
-0.03667783737182617,
0.33073198795318604,
0.2198258638381958,
0.019725052639842033,
0.19797301292419434,
0.00974967796355486,
0.27466845512390137,
0.11099133640527725,
0.35991159081459045,
-0.053945302963256836,
-0.26299363374710083,
-0.15015466511249542,
-0.09110578894615173,
-0.0414850227534771,
-0.13818411529064178,
0.06723254919052124,
0.08857209980487823,
-0.11389632523059845,
0.34388163685798645,
-0.1182793378829956,
0.24818071722984314,
0.12988564372062683,
0.2086011916399002,
0.1743336021900177,
0.10991127043962479,
-0.04035108909010887,
-0.3164936900138855,
0.1880825161933899,
-0.08529751747846603,
-0.029529273509979248,
-0.3783097267150879,
-0.3485528826713562,
-0.19457197189331055,
-0.058388181030750275,
-0.24090875685214996,
-0.17171186208724976,
0.23857355117797852,
0.43725070357322693,
0.18113546073436737,
0.25416478514671326,
-0.0017993301153182983,
0.4922892153263092,
-0.22595985233783722,
0.04309751093387604,
-0.41079533100128174,
-0.06393329054117203,
0.20762066543102264,
-0.10660137236118317,
-0.3256846070289612,
0.22946786880493164,
-0.037920862436294556,
-0.05066432058811188,
-0.024566292762756348,
0.3689854145050049,
-0.009035250172019005,
0.545143723487854,
-0.13962668180465698,
0.090988390147686,
0.06362013518810272,
0.056044917553663254,
0.060716718435287476,
0.14906974136829376,
0.22537465393543243,
-0.21232551336288452,
-0.20071515440940857,
0.42906737327575684,
0.1339482218027115,
0.0944107323884964,
0.10082289576530457,
-0.3489760160446167,
0.1937703788280487,
-0.14657318592071533,
-0.021469008177518845,
-0.4593222141265869,
0.32289785146713257,
-0.18639318645000458,
0.35571032762527466,
0.3392949402332306,
-0.4177325367927551,
0.15469235181808472,
0.6486344933509827,
-0.022116903215646744,
0.09703666716814041,
0.16187629103660583,
-0.08949462324380875,
-0.1046929731965065,
-0.2154049128293991,
0.31169673800468445,
0.4378969073295593,
0.19797834753990173,
0.3201465904712677,
0.2175663560628891,
0.19703525304794312,
-0.47834083437919617,
0.2719819247722626,
-0.26136207580566406,
-0.04973497986793518,
0.3116177022457123,
0.23377060890197754,
-0.10560187697410583,
-0.5463245511054993,
0.17844349145889282,
-0.0284870658069849,
0.033531662076711655,
-0.25305336713790894,
0.1925889104604721,
-0.48399871587753296,
-0.3050440847873688,
-0.45337894558906555,
-0.000482841394841671,
-0.1906900554895401,
-0.25454017519950867,
0.0010066982358694077,
0.051265839487314224,
0.05562013015151024,
0.010270586237311363,
-0.18246732652187347,
0.1323818564414978,
-0.12379191815853119,
-0.37619316577911377,
-0.2686219811439514,
-0.04810473695397377,
-0.35460805892944336,
0.13466256856918335,
-0.00719135208055377,
-0.16431285440921783,
0.21147195994853973,
-0.2651865780353546,
-0.08010965585708618,
-0.1270551234483719,
-0.24465465545654297,
0.1423727571964264,
-0.006899978965520859,
0.015822986140847206,
0.020663239061832428,
-0.1169910877943039,
-0.07317449152469635,
0.04594142362475395,
0.207035094499588,
-0.14671288430690765,
-0.24573513865470886,
-0.19749444723129272,
0.029874656349420547,
0.08418405801057816,
-0.3097217082977295,
-0.36855265498161316,
-0.10845331102609634,
-0.11231309175491333,
0.30890989303588867,
-0.09261636435985565,
0.12834179401397705,
0.3613404631614685,
-0.1768619567155838,
0.2316177636384964,
-0.06658805161714554,
0.24967443943023682,
-0.5686769485473633,
-0.44571518898010254,
0.32161271572113037,
-0.08380663394927979,
-0.25449034571647644,
-0.08163584768772125,
0.04150588810443878,
0.265744686126709,
0.20595885813236237,
-0.785647451877594,
-0.12501578032970428,
-0.32934632897377014,
0.06652963161468506,
-0.0561567097902298,
-0.051406942307949066,
0.1831352710723877,
-0.18853360414505005,
-0.15430711209774017,
-0.1911274492740631,
-0.02942066825926304,
0.11264362931251526,
-0.05497752130031586,
0.1539236307144165,
-0.06940482556819916,
0.2732540965080261,
0.33871862292289734,
0.5176923274993896,
0.24325838685035706,
0.019802633672952652,
0.29938989877700806,
-0.15928387641906738,
0.3542062044143677,
-0.31633615493774414,
-0.06585189700126648,
0.09558747708797455,
-0.26931634545326233,
-0.03863021731376648,
0.3650593161582947,
0.11985379457473755,
0.18199682235717773,
0.020800665020942688,
0.04228600487112999,
-0.18873924016952515,
-0.3113325238227844,
0.23519980907440186,
-0.24451807141304016,
0.14435403048992157,
0.17576418817043304,
0.12816020846366882,
-0.033273398876190186,
-0.19155025482177734,
-0.1471121609210968,
0.0002003982663154602,
0.04246868938207626,
-0.005808116402477026,
-0.3604525625705719,
0.14921057224273682,
-0.5625631213188171,
0.22266913950443268,
0.19854772090911865,
0.1745433509349823,
-0.17171750962734222,
-0.09939193725585938,
0.20575875043869019,
-0.0968838557600975,
0.7381254434585571,
0.06319765746593475,
0.05379290506243706,
0.04061542823910713,
-0.17171438038349152,
-0.3108307719230652,
0.12341538071632385,
-0.09361866116523743,
0.02833007276058197,
0.19062161445617676,
0.44892072677612305,
-0.15669307112693787,
-0.08017231523990631,
-0.1717059165239334,
0.11073578149080276,
-0.06568127125501633,
-0.08613206446170807,
-0.24301540851593018,
-0.339382529258728,
-0.1723988950252533,
0.011269629001617432,
0.0917002484202385,
0.1303759217262268,
-0.1485615223646164,
0.2206908017396927,
-0.008700506761670113,
0.019253667443990707,
0.2384980171918869,
-0.08674082159996033,
0.39905819296836853,
-0.1014833152294159,
0.029570259153842926,
0.18869632482528687,
0.14976418018341064,
-0.029397988691926003,
0.5788062214851379,
-0.016010306775569916,
-0.2766881287097931,
-0.22093376517295837,
-0.21956776082515717,
0.007874958217144012,
0.5253741145133972,
-0.11711389571428299,
0.19441846013069153,
0.25027942657470703,
-0.02130233496427536,
-0.2537553906440735,
0.09223214536905289,
0.2513118386268616,
0.1302412897348404,
-0.24002861976623535,
-0.39409366250038147,
0.38450852036476135,
0.09315557777881622,
-0.12804587185382843,
0.08526057004928589,
0.03361934423446655,
-0.5783620476722717,
0.012125751003623009,
-0.18709811568260193,
1.0526421070098877,
0.06972295045852661,
0.5438430309295654,
0.16445881128311157,
-0.2343125194311142,
0.20798084139823914,
0.02991393953561783,
0.07760418951511383,
-0.13728559017181396,
-0.12318478524684906,
-0.03921661153435707,
0.049347687512636185,
0.12520451843738556,
0.0445110909640789,
-0.16283005475997925,
0.10482899844646454,
-0.13248269259929657,
0.46261999011039734,
0.02551930770277977,
0.055491022765636444,
-0.35345908999443054,
-0.23680579662322998,
-0.1421910673379898,
0.17928923666477203,
-0.004025109112262726,
0.17951282858848572,
-0.0311279334127903,
0.028481896966695786,
-0.12997795641422272,
-0.15940633416175842,
-0.0400603786110878,
0.05522681772708893,
-0.2622325122356415,
0.05184169486165047,
0.13091294467449188,
-0.25501856207847595,
-0.18526741862297058,
0.3582654595375061,
0.4886322617530823,
0.058994926512241364,
-0.02268180437386036,
0.18103019893169403,
0.17695054411888123,
0.36905205249786377,
0.1631840318441391,
-0.07118590176105499,
0.14028501510620117,
0.034778282046318054,
-0.22697338461875916,
-0.08685534447431564,
0.041617825627326965,
-0.2070046067237854,
-0.17736080288887024,
0.1021571084856987,
-0.2035159319639206,
-0.3819689154624939,
-0.10244110226631165,
-0.07080869376659393,
0.04902931675314903,
-0.15436230599880219,
0.21640770137310028,
0.01824348047375679,
-0.14718538522720337,
0.1232389286160469,
-0.23012448847293854,
-0.3487479090690613,
-0.2812536358833313,
0.6182482838630676,
0.3330360949039459,
-0.15362542867660522,
0.6093748807907104,
0.029863256961107254,
-0.21352185308933258,
-0.23312413692474365,
-0.06153690069913864,
-0.03911052271723747,
-0.37489965558052063,
0.1753540337085724,
-0.16590175032615662,
-0.03905747830867767,
-0.13582979142665863,
0.0943606048822403,
-0.0543193444609642,
-0.0048593878746032715,
-0.029586108401417732,
-0.2917802035808563,
-0.20424574613571167,
-0.012018591165542603,
0.2862655222415924,
0.2789078652858734,
0.21290308237075806,
0.1974247395992279,
-0.07145439088344574,
0.014029564335942268,
-0.419711172580719,
0.2962636351585388,
0.1460198014974594,
0.17266185581684113,
0.08890508115291595,
-0.1397821605205536,
0.36460456252098083,
-0.0083562470972538,
0.20125296711921692,
0.20866109430789948,
-0.270542174577713,
-0.35911688208580017,
-0.25368160009384155,
0.06150980293750763,
-0.14236578345298767,
-0.07996921241283417,
0.0010465490631759167,
0.047073252499103546,
0.07174476236104965,
-0.35897013545036316,
0.3513581454753876,
0.41662973165512085,
0.0382954403758049,
0.14374446868896484,
-0.05346003547310829,
0.3532389998435974,
0.17023207247257233,
-0.1074288934469223,
-0.05967080593109131,
0.1759943664073944,
0.07715306431055069,
0.14615772664546967,
-0.34338611364364624,
0.02482583373785019,
0.12109963595867157,
-0.022187545895576477,
0.2799769639968872,
0.007143579423427582,
0.08586697280406952,
-0.4575459361076355,
-0.1887640357017517,
0.13241660594940186,
0.4153512418270111,
0.3262941539287567,
-0.32568058371543884,
-0.3639090359210968,
0.028752490878105164,
0.25795629620552063,
-0.09274571388959885,
-0.21303139626979828,
0.28427016735076904,
0.09091835469007492,
0.04387455806136131,
0.3295016884803772,
0.3479596972465515,
-0.0955454483628273,
0.07706944644451141,
-0.0678812563419342,
0.5021142363548279,
-0.5044659972190857,
0.14154966175556183,
0.14536944031715393,
-0.015058811753988266,
0.10460042953491211,
0.21855200827121735,
0.4027283489704132,
0.08825811743736267,
0.7428874969482422,
0.0694250762462616,
0.2655404806137085,
0.03446311503648758,
0.3497873842716217,
-0.30618879199028015,
-0.2714807987213135,
0.008783265948295593,
0.33926570415496826,
-0.5183727741241455,
0.359489768743515,
0.03990458324551582,
0.2947766184806824,
0.10233111679553986,
0.014661770313978195,
-0.11429867148399353,
0.06103791296482086,
-0.19273915886878967,
-0.4710095226764679,
0.15433724224567413,
-0.1860477328300476,
-0.09823450446128845,
0.05350099876523018,
-0.042349930852651596,
0.02103736251592636,
0.12670855224132538,
-0.06574933230876923,
-0.014456257224082947,
-0.35960477590560913,
-0.06516990810632706,
-0.2634505033493042,
0.28922224044799805,
-0.273643434047699,
0.36183419823646545,
0.25162380933761597,
-0.024430088698863983,
0.26640990376472473,
0.184328094124794,
0.4133998453617096,
0.09648743271827698,
0.1391858458518982,
0.23439078032970428,
-0.344128280878067,
0.017397096380591393,
-0.27229753136634827,
0.35776230692863464,
0.30370083451271057,
-0.0722728967666626,
0.18324029445648193,
0.22782276570796967,
-0.18412010371685028,
0.19685547053813934,
0.24590514600276947,
0.24918438494205475,
-0.4332534968852997,
0.13037921488285065,
-0.2235022783279419,
-0.02217700332403183,
-0.2555288076400757,
0.06844604760408401,
-0.4019797444343567,
0.04938945174217224,
0.4003739655017853,
-0.012616005726158619,
0.3317834138870239,
-0.032313160598278046,
0.11929905414581299,
0.09707874059677124,
0.3910091817378998,
0.24670813977718353,
0.020242605358362198,
0.08527253568172455,
-0.1726856827735901,
-0.5865501761436462,
0.22215870022773743,
-0.029689107090234756,
0.1344587653875351,
-0.14345470070838928,
0.20454078912734985,
-0.03414434194564819,
-0.05421639233827591,
-0.09140144288539886,
-0.17938464879989624,
-0.26991182565689087,
-0.21812018752098083,
-0.2253098338842392,
-0.30984893441200256,
-0.05709899961948395,
0.01765880361199379,
0.1262982040643692,
-0.2951640188694,
0.19959379732608795,
-0.1299218386411667,
0.17109552025794983,
-0.07349114865064621,
0.11910457909107208,
-0.10123711824417114,
-0.08171550929546356,
0.3345755636692047,
0.21344642341136932,
0.06214592605829239,
-0.10521119832992554,
-0.069944366812706,
-0.2133234143257141,
-0.06329680234193802,
-0.1850118190050125,
0.39756283164024353,
0.13830216228961945,
0.24097827076911926,
-0.23870615661144257,
-0.10007010400295258,
-0.015463300049304962,
0.35325637459754944,
0.30009251832962036,
-0.2251817137002945,
0.0405854806303978,
0.0742223784327507,
0.03159645199775696,
0.0677160695195198,
-0.042455364018678665,
0.71193528175354,
-0.16096554696559906,
0.19566850364208221,
-0.12262391299009323,
-0.43576252460479736,
0.4972653090953827,
-0.4109678864479065,
-0.36350885033607483,
0.09996013343334198,
0.19962312281131744,
0.19740083813667297,
-0.22459840774536133,
-0.6479586362838745,
0.24028989672660828,
0.32446300983428955,
-0.1465076506137848,
-0.2898397147655487,
0.25782427191734314,
-0.06593689322471619,
-0.05601568520069122,
-0.13718625903129578,
0.4104950428009033,
0.26252323389053345,
-0.17199580371379852,
0.1602531522512436,
-0.42736130952835083
] |
https://github.com/huggingface/datasets/issues/730 | Possible caching bug | Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command
`!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/`
change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html
`dataset = datasets.load_dataset('json', data_files=args.dataset)`
Errors:
`Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264...
` | The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5 | 63 | Possible caching bug
The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5
Hi, does this bug be fixed? when I load JSON files, I get the same errors by the command
`!python3 run.py --do_train --task qa --dataset squad-retrain-data/train-v2.0.json --output_dir ./re_trained_model/`
change the dateset to load json by refering to https://huggingface.co/docs/datasets/loading.html
`dataset = datasets.load_dataset('json', data_files=args.dataset)`
Errors:
`Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/json/default-c1e124ad488911b8/0.0.0/45636811569ec4a6630521c18235dfbbab83b7ab572e3393c5ba68ccabe98264...
` | [
0.06326085329055786,
-0.1689581423997879,
-0.1356962025165558,
0.3066900372505188,
0.3663589358329773,
-0.08226624876260757,
0.21097038686275482,
0.19322779774665833,
-0.08093328773975372,
0.14596495032310486,
-0.052267737686634064,
0.061048440635204315,
0.17751987278461456,
-0.055985093116760254,
0.13165880739688873,
0.21844516694545746,
0.08731990307569504,
0.06633303314447403,
-0.12631642818450928,
-0.2109900414943695,
-0.01026993989944458,
0.20624759793281555,
0.01733996719121933,
-0.14517362415790558,
-0.437119722366333,
0.12282812595367432,
-0.08546273410320282,
0.08264251053333282,
0.04330998286604881,
-0.23124541342258453,
0.07539195567369461,
0.15575723350048065,
-0.14271333813667297,
0.3933540880680084,
-0.00010795117123052478,
-0.04638276621699333,
0.004921756684780121,
-0.07512636482715607,
-0.4451858401298523,
-0.0241023451089859,
0.06683854758739471,
0.11590619385242462,
-0.05377595126628876,
-0.17924395203590393,
-0.06388544291257858,
0.08906017988920212,
0.08052213490009308,
-0.6234307885169983,
0.42119544744491577,
0.3092532753944397,
0.2928190231323242,
0.01811002567410469,
-0.3509517014026642,
0.10258731245994568,
0.2549998462200165,
0.2605430483818054,
-0.06014743074774742,
0.016257716342806816,
0.20089450478553772,
0.18448759615421295,
-0.17973071336746216,
0.490560382604599,
0.022463561967015266,
-0.09290909767150879,
0.01269255205988884,
0.3502126634120941,
-0.19734758138656616,
0.10783475637435913,
0.4177003800868988,
0.2047118842601776,
0.41029730439186096,
-0.4855339825153351,
-0.2600766122341156,
-0.3530350625514984,
-0.13911107182502747,
-0.3968031704425812,
0.3521829843521118,
-0.010458316653966904,
-0.038104694336652756,
0.25152045488357544,
-0.2373824566602707,
-0.04990103840827942,
0.043375179171562195,
-0.037861645221710205,
-0.14718157052993774,
0.06398958712816238,
-0.2387993186712265,
-0.10491480678319931,
-0.05651314929127693,
-0.09361359477043152,
0.01066530216485262,
-0.24658134579658508,
-0.051943425089120865,
0.13077031075954437,
-0.08175201714038849,
0.14962869882583618,
-0.03545305132865906,
0.014113612473011017,
0.08695472031831741,
0.0944402664899826,
0.22001618146896362,
0.1656225323677063,
-0.07724320143461227,
-0.11788482218980789,
-0.0753498524427414,
0.40892285108566284,
0.12654419243335724,
-0.1236863061785698,
0.19965341687202454,
0.10211139917373657,
-0.28637415170669556,
-0.15594109892845154,
0.08231571316719055,
-0.06637415289878845,
0.34975412487983704,
-0.21174785494804382,
0.17540700733661652,
-0.12271453440189362,
-0.17327281832695007,
0.12006121128797531,
-0.01375407725572586,
-0.01664045825600624,
-0.004566832445561886,
0.2791537940502167,
-0.21760672330856323,
0.08045020699501038,
-0.10962335020303726,
0.0016871578991413116,
-0.20302148163318634,
-0.2661352753639221,
-0.4274788498878479,
-0.13175837695598602,
-0.18239396810531616,
0.13117066025733948,
0.18084751069545746,
-0.052429478615522385,
0.1408105045557022,
0.19674810767173767,
0.1277531385421753,
-0.3219611644744873,
-0.11366432160139084,
-0.22998574376106262,
0.23694413900375366,
-0.006479885429143906,
-0.277132123708725,
0.2032751739025116,
0.11692163348197937,
-0.2279534637928009,
-0.09552854299545288,
0.028431203216314316,
-0.24024656414985657,
-0.1247914731502533,
0.05693170055747032,
0.29198575019836426,
-0.23667988181114197,
-0.12620148062705994,
0.057255372405052185,
0.05429580807685852,
0.5505171418190002,
0.0660657286643982,
0.19005531072616577,
0.01395595446228981,
-0.4436226785182953,
-0.19738812744617462,
0.0649242103099823,
0.3066070079803467,
-0.26534518599510193,
-0.21867342293262482,
0.08412644267082214,
0.0026900004595518112,
0.22165162861347198,
0.38935232162475586,
-0.10109475255012512,
0.10290996730327606,
-0.3480852246284485,
0.3724368214607239,
0.18623189628124237,
-0.3808501362800598,
-0.5444988012313843,
0.2635793089866638,
-0.03667783737182617,
0.33073198795318604,
0.2198258638381958,
0.019725052639842033,
0.19797301292419434,
0.00974967796355486,
0.27466845512390137,
0.11099133640527725,
0.35991159081459045,
-0.053945302963256836,
-0.26299363374710083,
-0.15015466511249542,
-0.09110578894615173,
-0.0414850227534771,
-0.13818411529064178,
0.06723254919052124,
0.08857209980487823,
-0.11389632523059845,
0.34388163685798645,
-0.1182793378829956,
0.24818071722984314,
0.12988564372062683,
0.2086011916399002,
0.1743336021900177,
0.10991127043962479,
-0.04035108909010887,
-0.3164936900138855,
0.1880825161933899,
-0.08529751747846603,
-0.029529273509979248,
-0.3783097267150879,
-0.3485528826713562,
-0.19457197189331055,
-0.058388181030750275,
-0.24090875685214996,
-0.17171186208724976,
0.23857355117797852,
0.43725070357322693,
0.18113546073436737,
0.25416478514671326,
-0.0017993301153182983,
0.4922892153263092,
-0.22595985233783722,
0.04309751093387604,
-0.41079533100128174,
-0.06393329054117203,
0.20762066543102264,
-0.10660137236118317,
-0.3256846070289612,
0.22946786880493164,
-0.037920862436294556,
-0.05066432058811188,
-0.024566292762756348,
0.3689854145050049,
-0.009035250172019005,
0.545143723487854,
-0.13962668180465698,
0.090988390147686,
0.06362013518810272,
0.056044917553663254,
0.060716718435287476,
0.14906974136829376,
0.22537465393543243,
-0.21232551336288452,
-0.20071515440940857,
0.42906737327575684,
0.1339482218027115,
0.0944107323884964,
0.10082289576530457,
-0.3489760160446167,
0.1937703788280487,
-0.14657318592071533,
-0.021469008177518845,
-0.4593222141265869,
0.32289785146713257,
-0.18639318645000458,
0.35571032762527466,
0.3392949402332306,
-0.4177325367927551,
0.15469235181808472,
0.6486344933509827,
-0.022116903215646744,
0.09703666716814041,
0.16187629103660583,
-0.08949462324380875,
-0.1046929731965065,
-0.2154049128293991,
0.31169673800468445,
0.4378969073295593,
0.19797834753990173,
0.3201465904712677,
0.2175663560628891,
0.19703525304794312,
-0.47834083437919617,
0.2719819247722626,
-0.26136207580566406,
-0.04973497986793518,
0.3116177022457123,
0.23377060890197754,
-0.10560187697410583,
-0.5463245511054993,
0.17844349145889282,
-0.0284870658069849,
0.033531662076711655,
-0.25305336713790894,
0.1925889104604721,
-0.48399871587753296,
-0.3050440847873688,
-0.45337894558906555,
-0.000482841394841671,
-0.1906900554895401,
-0.25454017519950867,
0.0010066982358694077,
0.051265839487314224,
0.05562013015151024,
0.010270586237311363,
-0.18246732652187347,
0.1323818564414978,
-0.12379191815853119,
-0.37619316577911377,
-0.2686219811439514,
-0.04810473695397377,
-0.35460805892944336,
0.13466256856918335,
-0.00719135208055377,
-0.16431285440921783,
0.21147195994853973,
-0.2651865780353546,
-0.08010965585708618,
-0.1270551234483719,
-0.24465465545654297,
0.1423727571964264,
-0.006899978965520859,
0.015822986140847206,
0.020663239061832428,
-0.1169910877943039,
-0.07317449152469635,
0.04594142362475395,
0.207035094499588,
-0.14671288430690765,
-0.24573513865470886,
-0.19749444723129272,
0.029874656349420547,
0.08418405801057816,
-0.3097217082977295,
-0.36855265498161316,
-0.10845331102609634,
-0.11231309175491333,
0.30890989303588867,
-0.09261636435985565,
0.12834179401397705,
0.3613404631614685,
-0.1768619567155838,
0.2316177636384964,
-0.06658805161714554,
0.24967443943023682,
-0.5686769485473633,
-0.44571518898010254,
0.32161271572113037,
-0.08380663394927979,
-0.25449034571647644,
-0.08163584768772125,
0.04150588810443878,
0.265744686126709,
0.20595885813236237,
-0.785647451877594,
-0.12501578032970428,
-0.32934632897377014,
0.06652963161468506,
-0.0561567097902298,
-0.051406942307949066,
0.1831352710723877,
-0.18853360414505005,
-0.15430711209774017,
-0.1911274492740631,
-0.02942066825926304,
0.11264362931251526,
-0.05497752130031586,
0.1539236307144165,
-0.06940482556819916,
0.2732540965080261,
0.33871862292289734,
0.5176923274993896,
0.24325838685035706,
0.019802633672952652,
0.29938989877700806,
-0.15928387641906738,
0.3542062044143677,
-0.31633615493774414,
-0.06585189700126648,
0.09558747708797455,
-0.26931634545326233,
-0.03863021731376648,
0.3650593161582947,
0.11985379457473755,
0.18199682235717773,
0.020800665020942688,
0.04228600487112999,
-0.18873924016952515,
-0.3113325238227844,
0.23519980907440186,
-0.24451807141304016,
0.14435403048992157,
0.17576418817043304,
0.12816020846366882,
-0.033273398876190186,
-0.19155025482177734,
-0.1471121609210968,
0.0002003982663154602,
0.04246868938207626,
-0.005808116402477026,
-0.3604525625705719,
0.14921057224273682,
-0.5625631213188171,
0.22266913950443268,
0.19854772090911865,
0.1745433509349823,
-0.17171750962734222,
-0.09939193725585938,
0.20575875043869019,
-0.0968838557600975,
0.7381254434585571,
0.06319765746593475,
0.05379290506243706,
0.04061542823910713,
-0.17171438038349152,
-0.3108307719230652,
0.12341538071632385,
-0.09361866116523743,
0.02833007276058197,
0.19062161445617676,
0.44892072677612305,
-0.15669307112693787,
-0.08017231523990631,
-0.1717059165239334,
0.11073578149080276,
-0.06568127125501633,
-0.08613206446170807,
-0.24301540851593018,
-0.339382529258728,
-0.1723988950252533,
0.011269629001617432,
0.0917002484202385,
0.1303759217262268,
-0.1485615223646164,
0.2206908017396927,
-0.008700506761670113,
0.019253667443990707,
0.2384980171918869,
-0.08674082159996033,
0.39905819296836853,
-0.1014833152294159,
0.029570259153842926,
0.18869632482528687,
0.14976418018341064,
-0.029397988691926003,
0.5788062214851379,
-0.016010306775569916,
-0.2766881287097931,
-0.22093376517295837,
-0.21956776082515717,
0.007874958217144012,
0.5253741145133972,
-0.11711389571428299,
0.19441846013069153,
0.25027942657470703,
-0.02130233496427536,
-0.2537553906440735,
0.09223214536905289,
0.2513118386268616,
0.1302412897348404,
-0.24002861976623535,
-0.39409366250038147,
0.38450852036476135,
0.09315557777881622,
-0.12804587185382843,
0.08526057004928589,
0.03361934423446655,
-0.5783620476722717,
0.012125751003623009,
-0.18709811568260193,
1.0526421070098877,
0.06972295045852661,
0.5438430309295654,
0.16445881128311157,
-0.2343125194311142,
0.20798084139823914,
0.02991393953561783,
0.07760418951511383,
-0.13728559017181396,
-0.12318478524684906,
-0.03921661153435707,
0.049347687512636185,
0.12520451843738556,
0.0445110909640789,
-0.16283005475997925,
0.10482899844646454,
-0.13248269259929657,
0.46261999011039734,
0.02551930770277977,
0.055491022765636444,
-0.35345908999443054,
-0.23680579662322998,
-0.1421910673379898,
0.17928923666477203,
-0.004025109112262726,
0.17951282858848572,
-0.0311279334127903,
0.028481896966695786,
-0.12997795641422272,
-0.15940633416175842,
-0.0400603786110878,
0.05522681772708893,
-0.2622325122356415,
0.05184169486165047,
0.13091294467449188,
-0.25501856207847595,
-0.18526741862297058,
0.3582654595375061,
0.4886322617530823,
0.058994926512241364,
-0.02268180437386036,
0.18103019893169403,
0.17695054411888123,
0.36905205249786377,
0.1631840318441391,
-0.07118590176105499,
0.14028501510620117,
0.034778282046318054,
-0.22697338461875916,
-0.08685534447431564,
0.041617825627326965,
-0.2070046067237854,
-0.17736080288887024,
0.1021571084856987,
-0.2035159319639206,
-0.3819689154624939,
-0.10244110226631165,
-0.07080869376659393,
0.04902931675314903,
-0.15436230599880219,
0.21640770137310028,
0.01824348047375679,
-0.14718538522720337,
0.1232389286160469,
-0.23012448847293854,
-0.3487479090690613,
-0.2812536358833313,
0.6182482838630676,
0.3330360949039459,
-0.15362542867660522,
0.6093748807907104,
0.029863256961107254,
-0.21352185308933258,
-0.23312413692474365,
-0.06153690069913864,
-0.03911052271723747,
-0.37489965558052063,
0.1753540337085724,
-0.16590175032615662,
-0.03905747830867767,
-0.13582979142665863,
0.0943606048822403,
-0.0543193444609642,
-0.0048593878746032715,
-0.029586108401417732,
-0.2917802035808563,
-0.20424574613571167,
-0.012018591165542603,
0.2862655222415924,
0.2789078652858734,
0.21290308237075806,
0.1974247395992279,
-0.07145439088344574,
0.014029564335942268,
-0.419711172580719,
0.2962636351585388,
0.1460198014974594,
0.17266185581684113,
0.08890508115291595,
-0.1397821605205536,
0.36460456252098083,
-0.0083562470972538,
0.20125296711921692,
0.20866109430789948,
-0.270542174577713,
-0.35911688208580017,
-0.25368160009384155,
0.06150980293750763,
-0.14236578345298767,
-0.07996921241283417,
0.0010465490631759167,
0.047073252499103546,
0.07174476236104965,
-0.35897013545036316,
0.3513581454753876,
0.41662973165512085,
0.0382954403758049,
0.14374446868896484,
-0.05346003547310829,
0.3532389998435974,
0.17023207247257233,
-0.1074288934469223,
-0.05967080593109131,
0.1759943664073944,
0.07715306431055069,
0.14615772664546967,
-0.34338611364364624,
0.02482583373785019,
0.12109963595867157,
-0.022187545895576477,
0.2799769639968872,
0.007143579423427582,
0.08586697280406952,
-0.4575459361076355,
-0.1887640357017517,
0.13241660594940186,
0.4153512418270111,
0.3262941539287567,
-0.32568058371543884,
-0.3639090359210968,
0.028752490878105164,
0.25795629620552063,
-0.09274571388959885,
-0.21303139626979828,
0.28427016735076904,
0.09091835469007492,
0.04387455806136131,
0.3295016884803772,
0.3479596972465515,
-0.0955454483628273,
0.07706944644451141,
-0.0678812563419342,
0.5021142363548279,
-0.5044659972190857,
0.14154966175556183,
0.14536944031715393,
-0.015058811753988266,
0.10460042953491211,
0.21855200827121735,
0.4027283489704132,
0.08825811743736267,
0.7428874969482422,
0.0694250762462616,
0.2655404806137085,
0.03446311503648758,
0.3497873842716217,
-0.30618879199028015,
-0.2714807987213135,
0.008783265948295593,
0.33926570415496826,
-0.5183727741241455,
0.359489768743515,
0.03990458324551582,
0.2947766184806824,
0.10233111679553986,
0.014661770313978195,
-0.11429867148399353,
0.06103791296482086,
-0.19273915886878967,
-0.4710095226764679,
0.15433724224567413,
-0.1860477328300476,
-0.09823450446128845,
0.05350099876523018,
-0.042349930852651596,
0.02103736251592636,
0.12670855224132538,
-0.06574933230876923,
-0.014456257224082947,
-0.35960477590560913,
-0.06516990810632706,
-0.2634505033493042,
0.28922224044799805,
-0.273643434047699,
0.36183419823646545,
0.25162380933761597,
-0.024430088698863983,
0.26640990376472473,
0.184328094124794,
0.4133998453617096,
0.09648743271827698,
0.1391858458518982,
0.23439078032970428,
-0.344128280878067,
0.017397096380591393,
-0.27229753136634827,
0.35776230692863464,
0.30370083451271057,
-0.0722728967666626,
0.18324029445648193,
0.22782276570796967,
-0.18412010371685028,
0.19685547053813934,
0.24590514600276947,
0.24918438494205475,
-0.4332534968852997,
0.13037921488285065,
-0.2235022783279419,
-0.02217700332403183,
-0.2555288076400757,
0.06844604760408401,
-0.4019797444343567,
0.04938945174217224,
0.4003739655017853,
-0.012616005726158619,
0.3317834138870239,
-0.032313160598278046,
0.11929905414581299,
0.09707874059677124,
0.3910091817378998,
0.24670813977718353,
0.020242605358362198,
0.08527253568172455,
-0.1726856827735901,
-0.5865501761436462,
0.22215870022773743,
-0.029689107090234756,
0.1344587653875351,
-0.14345470070838928,
0.20454078912734985,
-0.03414434194564819,
-0.05421639233827591,
-0.09140144288539886,
-0.17938464879989624,
-0.26991182565689087,
-0.21812018752098083,
-0.2253098338842392,
-0.30984893441200256,
-0.05709899961948395,
0.01765880361199379,
0.1262982040643692,
-0.2951640188694,
0.19959379732608795,
-0.1299218386411667,
0.17109552025794983,
-0.07349114865064621,
0.11910457909107208,
-0.10123711824417114,
-0.08171550929546356,
0.3345755636692047,
0.21344642341136932,
0.06214592605829239,
-0.10521119832992554,
-0.069944366812706,
-0.2133234143257141,
-0.06329680234193802,
-0.1850118190050125,
0.39756283164024353,
0.13830216228961945,
0.24097827076911926,
-0.23870615661144257,
-0.10007010400295258,
-0.015463300049304962,
0.35325637459754944,
0.30009251832962036,
-0.2251817137002945,
0.0405854806303978,
0.0742223784327507,
0.03159645199775696,
0.0677160695195198,
-0.042455364018678665,
0.71193528175354,
-0.16096554696559906,
0.19566850364208221,
-0.12262391299009323,
-0.43576252460479736,
0.4972653090953827,
-0.4109678864479065,
-0.36350885033607483,
0.09996013343334198,
0.19962312281131744,
0.19740083813667297,
-0.22459840774536133,
-0.6479586362838745,
0.24028989672660828,
0.32446300983428955,
-0.1465076506137848,
-0.2898397147655487,
0.25782427191734314,
-0.06593689322471619,
-0.05601568520069122,
-0.13718625903129578,
0.4104950428009033,
0.26252323389053345,
-0.17199580371379852,
0.1602531522512436,
-0.42736130952835083
] |
https://github.com/huggingface/datasets/issues/730 | Possible caching bug | ```ds = load_dataset("csv", data_files={'train': 'train.csv', 'test': 'test.csv'})```
Gives the output
```Using custom data configuration default-5c8ae7c208631aca```
and the code hangs there. | The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5 | 20 | Possible caching bug
The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5
```ds = load_dataset("csv", data_files={'train': 'train.csv', 'test': 'test.csv'})```
Gives the output
```Using custom data configuration default-5c8ae7c208631aca```
and the code hangs there. | [
0.06326085329055786,
-0.1689581423997879,
-0.1356962025165558,
0.3066900372505188,
0.3663589358329773,
-0.08226624876260757,
0.21097038686275482,
0.19322779774665833,
-0.08093328773975372,
0.14596495032310486,
-0.052267737686634064,
0.061048440635204315,
0.17751987278461456,
-0.055985093116760254,
0.13165880739688873,
0.21844516694545746,
0.08731990307569504,
0.06633303314447403,
-0.12631642818450928,
-0.2109900414943695,
-0.01026993989944458,
0.20624759793281555,
0.01733996719121933,
-0.14517362415790558,
-0.437119722366333,
0.12282812595367432,
-0.08546273410320282,
0.08264251053333282,
0.04330998286604881,
-0.23124541342258453,
0.07539195567369461,
0.15575723350048065,
-0.14271333813667297,
0.3933540880680084,
-0.00010795117123052478,
-0.04638276621699333,
0.004921756684780121,
-0.07512636482715607,
-0.4451858401298523,
-0.0241023451089859,
0.06683854758739471,
0.11590619385242462,
-0.05377595126628876,
-0.17924395203590393,
-0.06388544291257858,
0.08906017988920212,
0.08052213490009308,
-0.6234307885169983,
0.42119544744491577,
0.3092532753944397,
0.2928190231323242,
0.01811002567410469,
-0.3509517014026642,
0.10258731245994568,
0.2549998462200165,
0.2605430483818054,
-0.06014743074774742,
0.016257716342806816,
0.20089450478553772,
0.18448759615421295,
-0.17973071336746216,
0.490560382604599,
0.022463561967015266,
-0.09290909767150879,
0.01269255205988884,
0.3502126634120941,
-0.19734758138656616,
0.10783475637435913,
0.4177003800868988,
0.2047118842601776,
0.41029730439186096,
-0.4855339825153351,
-0.2600766122341156,
-0.3530350625514984,
-0.13911107182502747,
-0.3968031704425812,
0.3521829843521118,
-0.010458316653966904,
-0.038104694336652756,
0.25152045488357544,
-0.2373824566602707,
-0.04990103840827942,
0.043375179171562195,
-0.037861645221710205,
-0.14718157052993774,
0.06398958712816238,
-0.2387993186712265,
-0.10491480678319931,
-0.05651314929127693,
-0.09361359477043152,
0.01066530216485262,
-0.24658134579658508,
-0.051943425089120865,
0.13077031075954437,
-0.08175201714038849,
0.14962869882583618,
-0.03545305132865906,
0.014113612473011017,
0.08695472031831741,
0.0944402664899826,
0.22001618146896362,
0.1656225323677063,
-0.07724320143461227,
-0.11788482218980789,
-0.0753498524427414,
0.40892285108566284,
0.12654419243335724,
-0.1236863061785698,
0.19965341687202454,
0.10211139917373657,
-0.28637415170669556,
-0.15594109892845154,
0.08231571316719055,
-0.06637415289878845,
0.34975412487983704,
-0.21174785494804382,
0.17540700733661652,
-0.12271453440189362,
-0.17327281832695007,
0.12006121128797531,
-0.01375407725572586,
-0.01664045825600624,
-0.004566832445561886,
0.2791537940502167,
-0.21760672330856323,
0.08045020699501038,
-0.10962335020303726,
0.0016871578991413116,
-0.20302148163318634,
-0.2661352753639221,
-0.4274788498878479,
-0.13175837695598602,
-0.18239396810531616,
0.13117066025733948,
0.18084751069545746,
-0.052429478615522385,
0.1408105045557022,
0.19674810767173767,
0.1277531385421753,
-0.3219611644744873,
-0.11366432160139084,
-0.22998574376106262,
0.23694413900375366,
-0.006479885429143906,
-0.277132123708725,
0.2032751739025116,
0.11692163348197937,
-0.2279534637928009,
-0.09552854299545288,
0.028431203216314316,
-0.24024656414985657,
-0.1247914731502533,
0.05693170055747032,
0.29198575019836426,
-0.23667988181114197,
-0.12620148062705994,
0.057255372405052185,
0.05429580807685852,
0.5505171418190002,
0.0660657286643982,
0.19005531072616577,
0.01395595446228981,
-0.4436226785182953,
-0.19738812744617462,
0.0649242103099823,
0.3066070079803467,
-0.26534518599510193,
-0.21867342293262482,
0.08412644267082214,
0.0026900004595518112,
0.22165162861347198,
0.38935232162475586,
-0.10109475255012512,
0.10290996730327606,
-0.3480852246284485,
0.3724368214607239,
0.18623189628124237,
-0.3808501362800598,
-0.5444988012313843,
0.2635793089866638,
-0.03667783737182617,
0.33073198795318604,
0.2198258638381958,
0.019725052639842033,
0.19797301292419434,
0.00974967796355486,
0.27466845512390137,
0.11099133640527725,
0.35991159081459045,
-0.053945302963256836,
-0.26299363374710083,
-0.15015466511249542,
-0.09110578894615173,
-0.0414850227534771,
-0.13818411529064178,
0.06723254919052124,
0.08857209980487823,
-0.11389632523059845,
0.34388163685798645,
-0.1182793378829956,
0.24818071722984314,
0.12988564372062683,
0.2086011916399002,
0.1743336021900177,
0.10991127043962479,
-0.04035108909010887,
-0.3164936900138855,
0.1880825161933899,
-0.08529751747846603,
-0.029529273509979248,
-0.3783097267150879,
-0.3485528826713562,
-0.19457197189331055,
-0.058388181030750275,
-0.24090875685214996,
-0.17171186208724976,
0.23857355117797852,
0.43725070357322693,
0.18113546073436737,
0.25416478514671326,
-0.0017993301153182983,
0.4922892153263092,
-0.22595985233783722,
0.04309751093387604,
-0.41079533100128174,
-0.06393329054117203,
0.20762066543102264,
-0.10660137236118317,
-0.3256846070289612,
0.22946786880493164,
-0.037920862436294556,
-0.05066432058811188,
-0.024566292762756348,
0.3689854145050049,
-0.009035250172019005,
0.545143723487854,
-0.13962668180465698,
0.090988390147686,
0.06362013518810272,
0.056044917553663254,
0.060716718435287476,
0.14906974136829376,
0.22537465393543243,
-0.21232551336288452,
-0.20071515440940857,
0.42906737327575684,
0.1339482218027115,
0.0944107323884964,
0.10082289576530457,
-0.3489760160446167,
0.1937703788280487,
-0.14657318592071533,
-0.021469008177518845,
-0.4593222141265869,
0.32289785146713257,
-0.18639318645000458,
0.35571032762527466,
0.3392949402332306,
-0.4177325367927551,
0.15469235181808472,
0.6486344933509827,
-0.022116903215646744,
0.09703666716814041,
0.16187629103660583,
-0.08949462324380875,
-0.1046929731965065,
-0.2154049128293991,
0.31169673800468445,
0.4378969073295593,
0.19797834753990173,
0.3201465904712677,
0.2175663560628891,
0.19703525304794312,
-0.47834083437919617,
0.2719819247722626,
-0.26136207580566406,
-0.04973497986793518,
0.3116177022457123,
0.23377060890197754,
-0.10560187697410583,
-0.5463245511054993,
0.17844349145889282,
-0.0284870658069849,
0.033531662076711655,
-0.25305336713790894,
0.1925889104604721,
-0.48399871587753296,
-0.3050440847873688,
-0.45337894558906555,
-0.000482841394841671,
-0.1906900554895401,
-0.25454017519950867,
0.0010066982358694077,
0.051265839487314224,
0.05562013015151024,
0.010270586237311363,
-0.18246732652187347,
0.1323818564414978,
-0.12379191815853119,
-0.37619316577911377,
-0.2686219811439514,
-0.04810473695397377,
-0.35460805892944336,
0.13466256856918335,
-0.00719135208055377,
-0.16431285440921783,
0.21147195994853973,
-0.2651865780353546,
-0.08010965585708618,
-0.1270551234483719,
-0.24465465545654297,
0.1423727571964264,
-0.006899978965520859,
0.015822986140847206,
0.020663239061832428,
-0.1169910877943039,
-0.07317449152469635,
0.04594142362475395,
0.207035094499588,
-0.14671288430690765,
-0.24573513865470886,
-0.19749444723129272,
0.029874656349420547,
0.08418405801057816,
-0.3097217082977295,
-0.36855265498161316,
-0.10845331102609634,
-0.11231309175491333,
0.30890989303588867,
-0.09261636435985565,
0.12834179401397705,
0.3613404631614685,
-0.1768619567155838,
0.2316177636384964,
-0.06658805161714554,
0.24967443943023682,
-0.5686769485473633,
-0.44571518898010254,
0.32161271572113037,
-0.08380663394927979,
-0.25449034571647644,
-0.08163584768772125,
0.04150588810443878,
0.265744686126709,
0.20595885813236237,
-0.785647451877594,
-0.12501578032970428,
-0.32934632897377014,
0.06652963161468506,
-0.0561567097902298,
-0.051406942307949066,
0.1831352710723877,
-0.18853360414505005,
-0.15430711209774017,
-0.1911274492740631,
-0.02942066825926304,
0.11264362931251526,
-0.05497752130031586,
0.1539236307144165,
-0.06940482556819916,
0.2732540965080261,
0.33871862292289734,
0.5176923274993896,
0.24325838685035706,
0.019802633672952652,
0.29938989877700806,
-0.15928387641906738,
0.3542062044143677,
-0.31633615493774414,
-0.06585189700126648,
0.09558747708797455,
-0.26931634545326233,
-0.03863021731376648,
0.3650593161582947,
0.11985379457473755,
0.18199682235717773,
0.020800665020942688,
0.04228600487112999,
-0.18873924016952515,
-0.3113325238227844,
0.23519980907440186,
-0.24451807141304016,
0.14435403048992157,
0.17576418817043304,
0.12816020846366882,
-0.033273398876190186,
-0.19155025482177734,
-0.1471121609210968,
0.0002003982663154602,
0.04246868938207626,
-0.005808116402477026,
-0.3604525625705719,
0.14921057224273682,
-0.5625631213188171,
0.22266913950443268,
0.19854772090911865,
0.1745433509349823,
-0.17171750962734222,
-0.09939193725585938,
0.20575875043869019,
-0.0968838557600975,
0.7381254434585571,
0.06319765746593475,
0.05379290506243706,
0.04061542823910713,
-0.17171438038349152,
-0.3108307719230652,
0.12341538071632385,
-0.09361866116523743,
0.02833007276058197,
0.19062161445617676,
0.44892072677612305,
-0.15669307112693787,
-0.08017231523990631,
-0.1717059165239334,
0.11073578149080276,
-0.06568127125501633,
-0.08613206446170807,
-0.24301540851593018,
-0.339382529258728,
-0.1723988950252533,
0.011269629001617432,
0.0917002484202385,
0.1303759217262268,
-0.1485615223646164,
0.2206908017396927,
-0.008700506761670113,
0.019253667443990707,
0.2384980171918869,
-0.08674082159996033,
0.39905819296836853,
-0.1014833152294159,
0.029570259153842926,
0.18869632482528687,
0.14976418018341064,
-0.029397988691926003,
0.5788062214851379,
-0.016010306775569916,
-0.2766881287097931,
-0.22093376517295837,
-0.21956776082515717,
0.007874958217144012,
0.5253741145133972,
-0.11711389571428299,
0.19441846013069153,
0.25027942657470703,
-0.02130233496427536,
-0.2537553906440735,
0.09223214536905289,
0.2513118386268616,
0.1302412897348404,
-0.24002861976623535,
-0.39409366250038147,
0.38450852036476135,
0.09315557777881622,
-0.12804587185382843,
0.08526057004928589,
0.03361934423446655,
-0.5783620476722717,
0.012125751003623009,
-0.18709811568260193,
1.0526421070098877,
0.06972295045852661,
0.5438430309295654,
0.16445881128311157,
-0.2343125194311142,
0.20798084139823914,
0.02991393953561783,
0.07760418951511383,
-0.13728559017181396,
-0.12318478524684906,
-0.03921661153435707,
0.049347687512636185,
0.12520451843738556,
0.0445110909640789,
-0.16283005475997925,
0.10482899844646454,
-0.13248269259929657,
0.46261999011039734,
0.02551930770277977,
0.055491022765636444,
-0.35345908999443054,
-0.23680579662322998,
-0.1421910673379898,
0.17928923666477203,
-0.004025109112262726,
0.17951282858848572,
-0.0311279334127903,
0.028481896966695786,
-0.12997795641422272,
-0.15940633416175842,
-0.0400603786110878,
0.05522681772708893,
-0.2622325122356415,
0.05184169486165047,
0.13091294467449188,
-0.25501856207847595,
-0.18526741862297058,
0.3582654595375061,
0.4886322617530823,
0.058994926512241364,
-0.02268180437386036,
0.18103019893169403,
0.17695054411888123,
0.36905205249786377,
0.1631840318441391,
-0.07118590176105499,
0.14028501510620117,
0.034778282046318054,
-0.22697338461875916,
-0.08685534447431564,
0.041617825627326965,
-0.2070046067237854,
-0.17736080288887024,
0.1021571084856987,
-0.2035159319639206,
-0.3819689154624939,
-0.10244110226631165,
-0.07080869376659393,
0.04902931675314903,
-0.15436230599880219,
0.21640770137310028,
0.01824348047375679,
-0.14718538522720337,
0.1232389286160469,
-0.23012448847293854,
-0.3487479090690613,
-0.2812536358833313,
0.6182482838630676,
0.3330360949039459,
-0.15362542867660522,
0.6093748807907104,
0.029863256961107254,
-0.21352185308933258,
-0.23312413692474365,
-0.06153690069913864,
-0.03911052271723747,
-0.37489965558052063,
0.1753540337085724,
-0.16590175032615662,
-0.03905747830867767,
-0.13582979142665863,
0.0943606048822403,
-0.0543193444609642,
-0.0048593878746032715,
-0.029586108401417732,
-0.2917802035808563,
-0.20424574613571167,
-0.012018591165542603,
0.2862655222415924,
0.2789078652858734,
0.21290308237075806,
0.1974247395992279,
-0.07145439088344574,
0.014029564335942268,
-0.419711172580719,
0.2962636351585388,
0.1460198014974594,
0.17266185581684113,
0.08890508115291595,
-0.1397821605205536,
0.36460456252098083,
-0.0083562470972538,
0.20125296711921692,
0.20866109430789948,
-0.270542174577713,
-0.35911688208580017,
-0.25368160009384155,
0.06150980293750763,
-0.14236578345298767,
-0.07996921241283417,
0.0010465490631759167,
0.047073252499103546,
0.07174476236104965,
-0.35897013545036316,
0.3513581454753876,
0.41662973165512085,
0.0382954403758049,
0.14374446868896484,
-0.05346003547310829,
0.3532389998435974,
0.17023207247257233,
-0.1074288934469223,
-0.05967080593109131,
0.1759943664073944,
0.07715306431055069,
0.14615772664546967,
-0.34338611364364624,
0.02482583373785019,
0.12109963595867157,
-0.022187545895576477,
0.2799769639968872,
0.007143579423427582,
0.08586697280406952,
-0.4575459361076355,
-0.1887640357017517,
0.13241660594940186,
0.4153512418270111,
0.3262941539287567,
-0.32568058371543884,
-0.3639090359210968,
0.028752490878105164,
0.25795629620552063,
-0.09274571388959885,
-0.21303139626979828,
0.28427016735076904,
0.09091835469007492,
0.04387455806136131,
0.3295016884803772,
0.3479596972465515,
-0.0955454483628273,
0.07706944644451141,
-0.0678812563419342,
0.5021142363548279,
-0.5044659972190857,
0.14154966175556183,
0.14536944031715393,
-0.015058811753988266,
0.10460042953491211,
0.21855200827121735,
0.4027283489704132,
0.08825811743736267,
0.7428874969482422,
0.0694250762462616,
0.2655404806137085,
0.03446311503648758,
0.3497873842716217,
-0.30618879199028015,
-0.2714807987213135,
0.008783265948295593,
0.33926570415496826,
-0.5183727741241455,
0.359489768743515,
0.03990458324551582,
0.2947766184806824,
0.10233111679553986,
0.014661770313978195,
-0.11429867148399353,
0.06103791296482086,
-0.19273915886878967,
-0.4710095226764679,
0.15433724224567413,
-0.1860477328300476,
-0.09823450446128845,
0.05350099876523018,
-0.042349930852651596,
0.02103736251592636,
0.12670855224132538,
-0.06574933230876923,
-0.014456257224082947,
-0.35960477590560913,
-0.06516990810632706,
-0.2634505033493042,
0.28922224044799805,
-0.273643434047699,
0.36183419823646545,
0.25162380933761597,
-0.024430088698863983,
0.26640990376472473,
0.184328094124794,
0.4133998453617096,
0.09648743271827698,
0.1391858458518982,
0.23439078032970428,
-0.344128280878067,
0.017397096380591393,
-0.27229753136634827,
0.35776230692863464,
0.30370083451271057,
-0.0722728967666626,
0.18324029445648193,
0.22782276570796967,
-0.18412010371685028,
0.19685547053813934,
0.24590514600276947,
0.24918438494205475,
-0.4332534968852997,
0.13037921488285065,
-0.2235022783279419,
-0.02217700332403183,
-0.2555288076400757,
0.06844604760408401,
-0.4019797444343567,
0.04938945174217224,
0.4003739655017853,
-0.012616005726158619,
0.3317834138870239,
-0.032313160598278046,
0.11929905414581299,
0.09707874059677124,
0.3910091817378998,
0.24670813977718353,
0.020242605358362198,
0.08527253568172455,
-0.1726856827735901,
-0.5865501761436462,
0.22215870022773743,
-0.029689107090234756,
0.1344587653875351,
-0.14345470070838928,
0.20454078912734985,
-0.03414434194564819,
-0.05421639233827591,
-0.09140144288539886,
-0.17938464879989624,
-0.26991182565689087,
-0.21812018752098083,
-0.2253098338842392,
-0.30984893441200256,
-0.05709899961948395,
0.01765880361199379,
0.1262982040643692,
-0.2951640188694,
0.19959379732608795,
-0.1299218386411667,
0.17109552025794983,
-0.07349114865064621,
0.11910457909107208,
-0.10123711824417114,
-0.08171550929546356,
0.3345755636692047,
0.21344642341136932,
0.06214592605829239,
-0.10521119832992554,
-0.069944366812706,
-0.2133234143257141,
-0.06329680234193802,
-0.1850118190050125,
0.39756283164024353,
0.13830216228961945,
0.24097827076911926,
-0.23870615661144257,
-0.10007010400295258,
-0.015463300049304962,
0.35325637459754944,
0.30009251832962036,
-0.2251817137002945,
0.0405854806303978,
0.0742223784327507,
0.03159645199775696,
0.0677160695195198,
-0.042455364018678665,
0.71193528175354,
-0.16096554696559906,
0.19566850364208221,
-0.12262391299009323,
-0.43576252460479736,
0.4972653090953827,
-0.4109678864479065,
-0.36350885033607483,
0.09996013343334198,
0.19962312281131744,
0.19740083813667297,
-0.22459840774536133,
-0.6479586362838745,
0.24028989672660828,
0.32446300983428955,
-0.1465076506137848,
-0.2898397147655487,
0.25782427191734314,
-0.06593689322471619,
-0.05601568520069122,
-0.13718625903129578,
0.4104950428009033,
0.26252323389053345,
-0.17199580371379852,
0.1602531522512436,
-0.42736130952835083
] |
https://github.com/huggingface/datasets/issues/730 | Possible caching bug | > `ds = load_dataset("csv", data_files={'train': 'train.csv', 'test': 'test.csv'})`
>
> Gives the output `Using custom data configuration default-5c8ae7c208631aca`
>
> and the code hangs there.
Have you solved it? I met this problem too! | The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5 | 34 | Possible caching bug
The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5
> `ds = load_dataset("csv", data_files={'train': 'train.csv', 'test': 'test.csv'})`
>
> Gives the output `Using custom data configuration default-5c8ae7c208631aca`
>
> and the code hangs there.
Have you solved it? I met this problem too! | [
0.06326085329055786,
-0.1689581423997879,
-0.1356962025165558,
0.3066900372505188,
0.3663589358329773,
-0.08226624876260757,
0.21097038686275482,
0.19322779774665833,
-0.08093328773975372,
0.14596495032310486,
-0.052267737686634064,
0.061048440635204315,
0.17751987278461456,
-0.055985093116760254,
0.13165880739688873,
0.21844516694545746,
0.08731990307569504,
0.06633303314447403,
-0.12631642818450928,
-0.2109900414943695,
-0.01026993989944458,
0.20624759793281555,
0.01733996719121933,
-0.14517362415790558,
-0.437119722366333,
0.12282812595367432,
-0.08546273410320282,
0.08264251053333282,
0.04330998286604881,
-0.23124541342258453,
0.07539195567369461,
0.15575723350048065,
-0.14271333813667297,
0.3933540880680084,
-0.00010795117123052478,
-0.04638276621699333,
0.004921756684780121,
-0.07512636482715607,
-0.4451858401298523,
-0.0241023451089859,
0.06683854758739471,
0.11590619385242462,
-0.05377595126628876,
-0.17924395203590393,
-0.06388544291257858,
0.08906017988920212,
0.08052213490009308,
-0.6234307885169983,
0.42119544744491577,
0.3092532753944397,
0.2928190231323242,
0.01811002567410469,
-0.3509517014026642,
0.10258731245994568,
0.2549998462200165,
0.2605430483818054,
-0.06014743074774742,
0.016257716342806816,
0.20089450478553772,
0.18448759615421295,
-0.17973071336746216,
0.490560382604599,
0.022463561967015266,
-0.09290909767150879,
0.01269255205988884,
0.3502126634120941,
-0.19734758138656616,
0.10783475637435913,
0.4177003800868988,
0.2047118842601776,
0.41029730439186096,
-0.4855339825153351,
-0.2600766122341156,
-0.3530350625514984,
-0.13911107182502747,
-0.3968031704425812,
0.3521829843521118,
-0.010458316653966904,
-0.038104694336652756,
0.25152045488357544,
-0.2373824566602707,
-0.04990103840827942,
0.043375179171562195,
-0.037861645221710205,
-0.14718157052993774,
0.06398958712816238,
-0.2387993186712265,
-0.10491480678319931,
-0.05651314929127693,
-0.09361359477043152,
0.01066530216485262,
-0.24658134579658508,
-0.051943425089120865,
0.13077031075954437,
-0.08175201714038849,
0.14962869882583618,
-0.03545305132865906,
0.014113612473011017,
0.08695472031831741,
0.0944402664899826,
0.22001618146896362,
0.1656225323677063,
-0.07724320143461227,
-0.11788482218980789,
-0.0753498524427414,
0.40892285108566284,
0.12654419243335724,
-0.1236863061785698,
0.19965341687202454,
0.10211139917373657,
-0.28637415170669556,
-0.15594109892845154,
0.08231571316719055,
-0.06637415289878845,
0.34975412487983704,
-0.21174785494804382,
0.17540700733661652,
-0.12271453440189362,
-0.17327281832695007,
0.12006121128797531,
-0.01375407725572586,
-0.01664045825600624,
-0.004566832445561886,
0.2791537940502167,
-0.21760672330856323,
0.08045020699501038,
-0.10962335020303726,
0.0016871578991413116,
-0.20302148163318634,
-0.2661352753639221,
-0.4274788498878479,
-0.13175837695598602,
-0.18239396810531616,
0.13117066025733948,
0.18084751069545746,
-0.052429478615522385,
0.1408105045557022,
0.19674810767173767,
0.1277531385421753,
-0.3219611644744873,
-0.11366432160139084,
-0.22998574376106262,
0.23694413900375366,
-0.006479885429143906,
-0.277132123708725,
0.2032751739025116,
0.11692163348197937,
-0.2279534637928009,
-0.09552854299545288,
0.028431203216314316,
-0.24024656414985657,
-0.1247914731502533,
0.05693170055747032,
0.29198575019836426,
-0.23667988181114197,
-0.12620148062705994,
0.057255372405052185,
0.05429580807685852,
0.5505171418190002,
0.0660657286643982,
0.19005531072616577,
0.01395595446228981,
-0.4436226785182953,
-0.19738812744617462,
0.0649242103099823,
0.3066070079803467,
-0.26534518599510193,
-0.21867342293262482,
0.08412644267082214,
0.0026900004595518112,
0.22165162861347198,
0.38935232162475586,
-0.10109475255012512,
0.10290996730327606,
-0.3480852246284485,
0.3724368214607239,
0.18623189628124237,
-0.3808501362800598,
-0.5444988012313843,
0.2635793089866638,
-0.03667783737182617,
0.33073198795318604,
0.2198258638381958,
0.019725052639842033,
0.19797301292419434,
0.00974967796355486,
0.27466845512390137,
0.11099133640527725,
0.35991159081459045,
-0.053945302963256836,
-0.26299363374710083,
-0.15015466511249542,
-0.09110578894615173,
-0.0414850227534771,
-0.13818411529064178,
0.06723254919052124,
0.08857209980487823,
-0.11389632523059845,
0.34388163685798645,
-0.1182793378829956,
0.24818071722984314,
0.12988564372062683,
0.2086011916399002,
0.1743336021900177,
0.10991127043962479,
-0.04035108909010887,
-0.3164936900138855,
0.1880825161933899,
-0.08529751747846603,
-0.029529273509979248,
-0.3783097267150879,
-0.3485528826713562,
-0.19457197189331055,
-0.058388181030750275,
-0.24090875685214996,
-0.17171186208724976,
0.23857355117797852,
0.43725070357322693,
0.18113546073436737,
0.25416478514671326,
-0.0017993301153182983,
0.4922892153263092,
-0.22595985233783722,
0.04309751093387604,
-0.41079533100128174,
-0.06393329054117203,
0.20762066543102264,
-0.10660137236118317,
-0.3256846070289612,
0.22946786880493164,
-0.037920862436294556,
-0.05066432058811188,
-0.024566292762756348,
0.3689854145050049,
-0.009035250172019005,
0.545143723487854,
-0.13962668180465698,
0.090988390147686,
0.06362013518810272,
0.056044917553663254,
0.060716718435287476,
0.14906974136829376,
0.22537465393543243,
-0.21232551336288452,
-0.20071515440940857,
0.42906737327575684,
0.1339482218027115,
0.0944107323884964,
0.10082289576530457,
-0.3489760160446167,
0.1937703788280487,
-0.14657318592071533,
-0.021469008177518845,
-0.4593222141265869,
0.32289785146713257,
-0.18639318645000458,
0.35571032762527466,
0.3392949402332306,
-0.4177325367927551,
0.15469235181808472,
0.6486344933509827,
-0.022116903215646744,
0.09703666716814041,
0.16187629103660583,
-0.08949462324380875,
-0.1046929731965065,
-0.2154049128293991,
0.31169673800468445,
0.4378969073295593,
0.19797834753990173,
0.3201465904712677,
0.2175663560628891,
0.19703525304794312,
-0.47834083437919617,
0.2719819247722626,
-0.26136207580566406,
-0.04973497986793518,
0.3116177022457123,
0.23377060890197754,
-0.10560187697410583,
-0.5463245511054993,
0.17844349145889282,
-0.0284870658069849,
0.033531662076711655,
-0.25305336713790894,
0.1925889104604721,
-0.48399871587753296,
-0.3050440847873688,
-0.45337894558906555,
-0.000482841394841671,
-0.1906900554895401,
-0.25454017519950867,
0.0010066982358694077,
0.051265839487314224,
0.05562013015151024,
0.010270586237311363,
-0.18246732652187347,
0.1323818564414978,
-0.12379191815853119,
-0.37619316577911377,
-0.2686219811439514,
-0.04810473695397377,
-0.35460805892944336,
0.13466256856918335,
-0.00719135208055377,
-0.16431285440921783,
0.21147195994853973,
-0.2651865780353546,
-0.08010965585708618,
-0.1270551234483719,
-0.24465465545654297,
0.1423727571964264,
-0.006899978965520859,
0.015822986140847206,
0.020663239061832428,
-0.1169910877943039,
-0.07317449152469635,
0.04594142362475395,
0.207035094499588,
-0.14671288430690765,
-0.24573513865470886,
-0.19749444723129272,
0.029874656349420547,
0.08418405801057816,
-0.3097217082977295,
-0.36855265498161316,
-0.10845331102609634,
-0.11231309175491333,
0.30890989303588867,
-0.09261636435985565,
0.12834179401397705,
0.3613404631614685,
-0.1768619567155838,
0.2316177636384964,
-0.06658805161714554,
0.24967443943023682,
-0.5686769485473633,
-0.44571518898010254,
0.32161271572113037,
-0.08380663394927979,
-0.25449034571647644,
-0.08163584768772125,
0.04150588810443878,
0.265744686126709,
0.20595885813236237,
-0.785647451877594,
-0.12501578032970428,
-0.32934632897377014,
0.06652963161468506,
-0.0561567097902298,
-0.051406942307949066,
0.1831352710723877,
-0.18853360414505005,
-0.15430711209774017,
-0.1911274492740631,
-0.02942066825926304,
0.11264362931251526,
-0.05497752130031586,
0.1539236307144165,
-0.06940482556819916,
0.2732540965080261,
0.33871862292289734,
0.5176923274993896,
0.24325838685035706,
0.019802633672952652,
0.29938989877700806,
-0.15928387641906738,
0.3542062044143677,
-0.31633615493774414,
-0.06585189700126648,
0.09558747708797455,
-0.26931634545326233,
-0.03863021731376648,
0.3650593161582947,
0.11985379457473755,
0.18199682235717773,
0.020800665020942688,
0.04228600487112999,
-0.18873924016952515,
-0.3113325238227844,
0.23519980907440186,
-0.24451807141304016,
0.14435403048992157,
0.17576418817043304,
0.12816020846366882,
-0.033273398876190186,
-0.19155025482177734,
-0.1471121609210968,
0.0002003982663154602,
0.04246868938207626,
-0.005808116402477026,
-0.3604525625705719,
0.14921057224273682,
-0.5625631213188171,
0.22266913950443268,
0.19854772090911865,
0.1745433509349823,
-0.17171750962734222,
-0.09939193725585938,
0.20575875043869019,
-0.0968838557600975,
0.7381254434585571,
0.06319765746593475,
0.05379290506243706,
0.04061542823910713,
-0.17171438038349152,
-0.3108307719230652,
0.12341538071632385,
-0.09361866116523743,
0.02833007276058197,
0.19062161445617676,
0.44892072677612305,
-0.15669307112693787,
-0.08017231523990631,
-0.1717059165239334,
0.11073578149080276,
-0.06568127125501633,
-0.08613206446170807,
-0.24301540851593018,
-0.339382529258728,
-0.1723988950252533,
0.011269629001617432,
0.0917002484202385,
0.1303759217262268,
-0.1485615223646164,
0.2206908017396927,
-0.008700506761670113,
0.019253667443990707,
0.2384980171918869,
-0.08674082159996033,
0.39905819296836853,
-0.1014833152294159,
0.029570259153842926,
0.18869632482528687,
0.14976418018341064,
-0.029397988691926003,
0.5788062214851379,
-0.016010306775569916,
-0.2766881287097931,
-0.22093376517295837,
-0.21956776082515717,
0.007874958217144012,
0.5253741145133972,
-0.11711389571428299,
0.19441846013069153,
0.25027942657470703,
-0.02130233496427536,
-0.2537553906440735,
0.09223214536905289,
0.2513118386268616,
0.1302412897348404,
-0.24002861976623535,
-0.39409366250038147,
0.38450852036476135,
0.09315557777881622,
-0.12804587185382843,
0.08526057004928589,
0.03361934423446655,
-0.5783620476722717,
0.012125751003623009,
-0.18709811568260193,
1.0526421070098877,
0.06972295045852661,
0.5438430309295654,
0.16445881128311157,
-0.2343125194311142,
0.20798084139823914,
0.02991393953561783,
0.07760418951511383,
-0.13728559017181396,
-0.12318478524684906,
-0.03921661153435707,
0.049347687512636185,
0.12520451843738556,
0.0445110909640789,
-0.16283005475997925,
0.10482899844646454,
-0.13248269259929657,
0.46261999011039734,
0.02551930770277977,
0.055491022765636444,
-0.35345908999443054,
-0.23680579662322998,
-0.1421910673379898,
0.17928923666477203,
-0.004025109112262726,
0.17951282858848572,
-0.0311279334127903,
0.028481896966695786,
-0.12997795641422272,
-0.15940633416175842,
-0.0400603786110878,
0.05522681772708893,
-0.2622325122356415,
0.05184169486165047,
0.13091294467449188,
-0.25501856207847595,
-0.18526741862297058,
0.3582654595375061,
0.4886322617530823,
0.058994926512241364,
-0.02268180437386036,
0.18103019893169403,
0.17695054411888123,
0.36905205249786377,
0.1631840318441391,
-0.07118590176105499,
0.14028501510620117,
0.034778282046318054,
-0.22697338461875916,
-0.08685534447431564,
0.041617825627326965,
-0.2070046067237854,
-0.17736080288887024,
0.1021571084856987,
-0.2035159319639206,
-0.3819689154624939,
-0.10244110226631165,
-0.07080869376659393,
0.04902931675314903,
-0.15436230599880219,
0.21640770137310028,
0.01824348047375679,
-0.14718538522720337,
0.1232389286160469,
-0.23012448847293854,
-0.3487479090690613,
-0.2812536358833313,
0.6182482838630676,
0.3330360949039459,
-0.15362542867660522,
0.6093748807907104,
0.029863256961107254,
-0.21352185308933258,
-0.23312413692474365,
-0.06153690069913864,
-0.03911052271723747,
-0.37489965558052063,
0.1753540337085724,
-0.16590175032615662,
-0.03905747830867767,
-0.13582979142665863,
0.0943606048822403,
-0.0543193444609642,
-0.0048593878746032715,
-0.029586108401417732,
-0.2917802035808563,
-0.20424574613571167,
-0.012018591165542603,
0.2862655222415924,
0.2789078652858734,
0.21290308237075806,
0.1974247395992279,
-0.07145439088344574,
0.014029564335942268,
-0.419711172580719,
0.2962636351585388,
0.1460198014974594,
0.17266185581684113,
0.08890508115291595,
-0.1397821605205536,
0.36460456252098083,
-0.0083562470972538,
0.20125296711921692,
0.20866109430789948,
-0.270542174577713,
-0.35911688208580017,
-0.25368160009384155,
0.06150980293750763,
-0.14236578345298767,
-0.07996921241283417,
0.0010465490631759167,
0.047073252499103546,
0.07174476236104965,
-0.35897013545036316,
0.3513581454753876,
0.41662973165512085,
0.0382954403758049,
0.14374446868896484,
-0.05346003547310829,
0.3532389998435974,
0.17023207247257233,
-0.1074288934469223,
-0.05967080593109131,
0.1759943664073944,
0.07715306431055069,
0.14615772664546967,
-0.34338611364364624,
0.02482583373785019,
0.12109963595867157,
-0.022187545895576477,
0.2799769639968872,
0.007143579423427582,
0.08586697280406952,
-0.4575459361076355,
-0.1887640357017517,
0.13241660594940186,
0.4153512418270111,
0.3262941539287567,
-0.32568058371543884,
-0.3639090359210968,
0.028752490878105164,
0.25795629620552063,
-0.09274571388959885,
-0.21303139626979828,
0.28427016735076904,
0.09091835469007492,
0.04387455806136131,
0.3295016884803772,
0.3479596972465515,
-0.0955454483628273,
0.07706944644451141,
-0.0678812563419342,
0.5021142363548279,
-0.5044659972190857,
0.14154966175556183,
0.14536944031715393,
-0.015058811753988266,
0.10460042953491211,
0.21855200827121735,
0.4027283489704132,
0.08825811743736267,
0.7428874969482422,
0.0694250762462616,
0.2655404806137085,
0.03446311503648758,
0.3497873842716217,
-0.30618879199028015,
-0.2714807987213135,
0.008783265948295593,
0.33926570415496826,
-0.5183727741241455,
0.359489768743515,
0.03990458324551582,
0.2947766184806824,
0.10233111679553986,
0.014661770313978195,
-0.11429867148399353,
0.06103791296482086,
-0.19273915886878967,
-0.4710095226764679,
0.15433724224567413,
-0.1860477328300476,
-0.09823450446128845,
0.05350099876523018,
-0.042349930852651596,
0.02103736251592636,
0.12670855224132538,
-0.06574933230876923,
-0.014456257224082947,
-0.35960477590560913,
-0.06516990810632706,
-0.2634505033493042,
0.28922224044799805,
-0.273643434047699,
0.36183419823646545,
0.25162380933761597,
-0.024430088698863983,
0.26640990376472473,
0.184328094124794,
0.4133998453617096,
0.09648743271827698,
0.1391858458518982,
0.23439078032970428,
-0.344128280878067,
0.017397096380591393,
-0.27229753136634827,
0.35776230692863464,
0.30370083451271057,
-0.0722728967666626,
0.18324029445648193,
0.22782276570796967,
-0.18412010371685028,
0.19685547053813934,
0.24590514600276947,
0.24918438494205475,
-0.4332534968852997,
0.13037921488285065,
-0.2235022783279419,
-0.02217700332403183,
-0.2555288076400757,
0.06844604760408401,
-0.4019797444343567,
0.04938945174217224,
0.4003739655017853,
-0.012616005726158619,
0.3317834138870239,
-0.032313160598278046,
0.11929905414581299,
0.09707874059677124,
0.3910091817378998,
0.24670813977718353,
0.020242605358362198,
0.08527253568172455,
-0.1726856827735901,
-0.5865501761436462,
0.22215870022773743,
-0.029689107090234756,
0.1344587653875351,
-0.14345470070838928,
0.20454078912734985,
-0.03414434194564819,
-0.05421639233827591,
-0.09140144288539886,
-0.17938464879989624,
-0.26991182565689087,
-0.21812018752098083,
-0.2253098338842392,
-0.30984893441200256,
-0.05709899961948395,
0.01765880361199379,
0.1262982040643692,
-0.2951640188694,
0.19959379732608795,
-0.1299218386411667,
0.17109552025794983,
-0.07349114865064621,
0.11910457909107208,
-0.10123711824417114,
-0.08171550929546356,
0.3345755636692047,
0.21344642341136932,
0.06214592605829239,
-0.10521119832992554,
-0.069944366812706,
-0.2133234143257141,
-0.06329680234193802,
-0.1850118190050125,
0.39756283164024353,
0.13830216228961945,
0.24097827076911926,
-0.23870615661144257,
-0.10007010400295258,
-0.015463300049304962,
0.35325637459754944,
0.30009251832962036,
-0.2251817137002945,
0.0405854806303978,
0.0742223784327507,
0.03159645199775696,
0.0677160695195198,
-0.042455364018678665,
0.71193528175354,
-0.16096554696559906,
0.19566850364208221,
-0.12262391299009323,
-0.43576252460479736,
0.4972653090953827,
-0.4109678864479065,
-0.36350885033607483,
0.09996013343334198,
0.19962312281131744,
0.19740083813667297,
-0.22459840774536133,
-0.6479586362838745,
0.24028989672660828,
0.32446300983428955,
-0.1465076506137848,
-0.2898397147655487,
0.25782427191734314,
-0.06593689322471619,
-0.05601568520069122,
-0.13718625903129578,
0.4104950428009033,
0.26252323389053345,
-0.17199580371379852,
0.1602531522512436,
-0.42736130952835083
] |
https://github.com/huggingface/datasets/issues/730 | Possible caching bug | Can you Ctrl+C to kill the process and share the stacktrace here ? It should show at which location in the code it was hanging | The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5 | 25 | Possible caching bug
The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5
Can you Ctrl+C to kill the process and share the stacktrace here ? It should show at which location in the code it was hanging | [
0.06326085329055786,
-0.1689581423997879,
-0.1356962025165558,
0.3066900372505188,
0.3663589358329773,
-0.08226624876260757,
0.21097038686275482,
0.19322779774665833,
-0.08093328773975372,
0.14596495032310486,
-0.052267737686634064,
0.061048440635204315,
0.17751987278461456,
-0.055985093116760254,
0.13165880739688873,
0.21844516694545746,
0.08731990307569504,
0.06633303314447403,
-0.12631642818450928,
-0.2109900414943695,
-0.01026993989944458,
0.20624759793281555,
0.01733996719121933,
-0.14517362415790558,
-0.437119722366333,
0.12282812595367432,
-0.08546273410320282,
0.08264251053333282,
0.04330998286604881,
-0.23124541342258453,
0.07539195567369461,
0.15575723350048065,
-0.14271333813667297,
0.3933540880680084,
-0.00010795117123052478,
-0.04638276621699333,
0.004921756684780121,
-0.07512636482715607,
-0.4451858401298523,
-0.0241023451089859,
0.06683854758739471,
0.11590619385242462,
-0.05377595126628876,
-0.17924395203590393,
-0.06388544291257858,
0.08906017988920212,
0.08052213490009308,
-0.6234307885169983,
0.42119544744491577,
0.3092532753944397,
0.2928190231323242,
0.01811002567410469,
-0.3509517014026642,
0.10258731245994568,
0.2549998462200165,
0.2605430483818054,
-0.06014743074774742,
0.016257716342806816,
0.20089450478553772,
0.18448759615421295,
-0.17973071336746216,
0.490560382604599,
0.022463561967015266,
-0.09290909767150879,
0.01269255205988884,
0.3502126634120941,
-0.19734758138656616,
0.10783475637435913,
0.4177003800868988,
0.2047118842601776,
0.41029730439186096,
-0.4855339825153351,
-0.2600766122341156,
-0.3530350625514984,
-0.13911107182502747,
-0.3968031704425812,
0.3521829843521118,
-0.010458316653966904,
-0.038104694336652756,
0.25152045488357544,
-0.2373824566602707,
-0.04990103840827942,
0.043375179171562195,
-0.037861645221710205,
-0.14718157052993774,
0.06398958712816238,
-0.2387993186712265,
-0.10491480678319931,
-0.05651314929127693,
-0.09361359477043152,
0.01066530216485262,
-0.24658134579658508,
-0.051943425089120865,
0.13077031075954437,
-0.08175201714038849,
0.14962869882583618,
-0.03545305132865906,
0.014113612473011017,
0.08695472031831741,
0.0944402664899826,
0.22001618146896362,
0.1656225323677063,
-0.07724320143461227,
-0.11788482218980789,
-0.0753498524427414,
0.40892285108566284,
0.12654419243335724,
-0.1236863061785698,
0.19965341687202454,
0.10211139917373657,
-0.28637415170669556,
-0.15594109892845154,
0.08231571316719055,
-0.06637415289878845,
0.34975412487983704,
-0.21174785494804382,
0.17540700733661652,
-0.12271453440189362,
-0.17327281832695007,
0.12006121128797531,
-0.01375407725572586,
-0.01664045825600624,
-0.004566832445561886,
0.2791537940502167,
-0.21760672330856323,
0.08045020699501038,
-0.10962335020303726,
0.0016871578991413116,
-0.20302148163318634,
-0.2661352753639221,
-0.4274788498878479,
-0.13175837695598602,
-0.18239396810531616,
0.13117066025733948,
0.18084751069545746,
-0.052429478615522385,
0.1408105045557022,
0.19674810767173767,
0.1277531385421753,
-0.3219611644744873,
-0.11366432160139084,
-0.22998574376106262,
0.23694413900375366,
-0.006479885429143906,
-0.277132123708725,
0.2032751739025116,
0.11692163348197937,
-0.2279534637928009,
-0.09552854299545288,
0.028431203216314316,
-0.24024656414985657,
-0.1247914731502533,
0.05693170055747032,
0.29198575019836426,
-0.23667988181114197,
-0.12620148062705994,
0.057255372405052185,
0.05429580807685852,
0.5505171418190002,
0.0660657286643982,
0.19005531072616577,
0.01395595446228981,
-0.4436226785182953,
-0.19738812744617462,
0.0649242103099823,
0.3066070079803467,
-0.26534518599510193,
-0.21867342293262482,
0.08412644267082214,
0.0026900004595518112,
0.22165162861347198,
0.38935232162475586,
-0.10109475255012512,
0.10290996730327606,
-0.3480852246284485,
0.3724368214607239,
0.18623189628124237,
-0.3808501362800598,
-0.5444988012313843,
0.2635793089866638,
-0.03667783737182617,
0.33073198795318604,
0.2198258638381958,
0.019725052639842033,
0.19797301292419434,
0.00974967796355486,
0.27466845512390137,
0.11099133640527725,
0.35991159081459045,
-0.053945302963256836,
-0.26299363374710083,
-0.15015466511249542,
-0.09110578894615173,
-0.0414850227534771,
-0.13818411529064178,
0.06723254919052124,
0.08857209980487823,
-0.11389632523059845,
0.34388163685798645,
-0.1182793378829956,
0.24818071722984314,
0.12988564372062683,
0.2086011916399002,
0.1743336021900177,
0.10991127043962479,
-0.04035108909010887,
-0.3164936900138855,
0.1880825161933899,
-0.08529751747846603,
-0.029529273509979248,
-0.3783097267150879,
-0.3485528826713562,
-0.19457197189331055,
-0.058388181030750275,
-0.24090875685214996,
-0.17171186208724976,
0.23857355117797852,
0.43725070357322693,
0.18113546073436737,
0.25416478514671326,
-0.0017993301153182983,
0.4922892153263092,
-0.22595985233783722,
0.04309751093387604,
-0.41079533100128174,
-0.06393329054117203,
0.20762066543102264,
-0.10660137236118317,
-0.3256846070289612,
0.22946786880493164,
-0.037920862436294556,
-0.05066432058811188,
-0.024566292762756348,
0.3689854145050049,
-0.009035250172019005,
0.545143723487854,
-0.13962668180465698,
0.090988390147686,
0.06362013518810272,
0.056044917553663254,
0.060716718435287476,
0.14906974136829376,
0.22537465393543243,
-0.21232551336288452,
-0.20071515440940857,
0.42906737327575684,
0.1339482218027115,
0.0944107323884964,
0.10082289576530457,
-0.3489760160446167,
0.1937703788280487,
-0.14657318592071533,
-0.021469008177518845,
-0.4593222141265869,
0.32289785146713257,
-0.18639318645000458,
0.35571032762527466,
0.3392949402332306,
-0.4177325367927551,
0.15469235181808472,
0.6486344933509827,
-0.022116903215646744,
0.09703666716814041,
0.16187629103660583,
-0.08949462324380875,
-0.1046929731965065,
-0.2154049128293991,
0.31169673800468445,
0.4378969073295593,
0.19797834753990173,
0.3201465904712677,
0.2175663560628891,
0.19703525304794312,
-0.47834083437919617,
0.2719819247722626,
-0.26136207580566406,
-0.04973497986793518,
0.3116177022457123,
0.23377060890197754,
-0.10560187697410583,
-0.5463245511054993,
0.17844349145889282,
-0.0284870658069849,
0.033531662076711655,
-0.25305336713790894,
0.1925889104604721,
-0.48399871587753296,
-0.3050440847873688,
-0.45337894558906555,
-0.000482841394841671,
-0.1906900554895401,
-0.25454017519950867,
0.0010066982358694077,
0.051265839487314224,
0.05562013015151024,
0.010270586237311363,
-0.18246732652187347,
0.1323818564414978,
-0.12379191815853119,
-0.37619316577911377,
-0.2686219811439514,
-0.04810473695397377,
-0.35460805892944336,
0.13466256856918335,
-0.00719135208055377,
-0.16431285440921783,
0.21147195994853973,
-0.2651865780353546,
-0.08010965585708618,
-0.1270551234483719,
-0.24465465545654297,
0.1423727571964264,
-0.006899978965520859,
0.015822986140847206,
0.020663239061832428,
-0.1169910877943039,
-0.07317449152469635,
0.04594142362475395,
0.207035094499588,
-0.14671288430690765,
-0.24573513865470886,
-0.19749444723129272,
0.029874656349420547,
0.08418405801057816,
-0.3097217082977295,
-0.36855265498161316,
-0.10845331102609634,
-0.11231309175491333,
0.30890989303588867,
-0.09261636435985565,
0.12834179401397705,
0.3613404631614685,
-0.1768619567155838,
0.2316177636384964,
-0.06658805161714554,
0.24967443943023682,
-0.5686769485473633,
-0.44571518898010254,
0.32161271572113037,
-0.08380663394927979,
-0.25449034571647644,
-0.08163584768772125,
0.04150588810443878,
0.265744686126709,
0.20595885813236237,
-0.785647451877594,
-0.12501578032970428,
-0.32934632897377014,
0.06652963161468506,
-0.0561567097902298,
-0.051406942307949066,
0.1831352710723877,
-0.18853360414505005,
-0.15430711209774017,
-0.1911274492740631,
-0.02942066825926304,
0.11264362931251526,
-0.05497752130031586,
0.1539236307144165,
-0.06940482556819916,
0.2732540965080261,
0.33871862292289734,
0.5176923274993896,
0.24325838685035706,
0.019802633672952652,
0.29938989877700806,
-0.15928387641906738,
0.3542062044143677,
-0.31633615493774414,
-0.06585189700126648,
0.09558747708797455,
-0.26931634545326233,
-0.03863021731376648,
0.3650593161582947,
0.11985379457473755,
0.18199682235717773,
0.020800665020942688,
0.04228600487112999,
-0.18873924016952515,
-0.3113325238227844,
0.23519980907440186,
-0.24451807141304016,
0.14435403048992157,
0.17576418817043304,
0.12816020846366882,
-0.033273398876190186,
-0.19155025482177734,
-0.1471121609210968,
0.0002003982663154602,
0.04246868938207626,
-0.005808116402477026,
-0.3604525625705719,
0.14921057224273682,
-0.5625631213188171,
0.22266913950443268,
0.19854772090911865,
0.1745433509349823,
-0.17171750962734222,
-0.09939193725585938,
0.20575875043869019,
-0.0968838557600975,
0.7381254434585571,
0.06319765746593475,
0.05379290506243706,
0.04061542823910713,
-0.17171438038349152,
-0.3108307719230652,
0.12341538071632385,
-0.09361866116523743,
0.02833007276058197,
0.19062161445617676,
0.44892072677612305,
-0.15669307112693787,
-0.08017231523990631,
-0.1717059165239334,
0.11073578149080276,
-0.06568127125501633,
-0.08613206446170807,
-0.24301540851593018,
-0.339382529258728,
-0.1723988950252533,
0.011269629001617432,
0.0917002484202385,
0.1303759217262268,
-0.1485615223646164,
0.2206908017396927,
-0.008700506761670113,
0.019253667443990707,
0.2384980171918869,
-0.08674082159996033,
0.39905819296836853,
-0.1014833152294159,
0.029570259153842926,
0.18869632482528687,
0.14976418018341064,
-0.029397988691926003,
0.5788062214851379,
-0.016010306775569916,
-0.2766881287097931,
-0.22093376517295837,
-0.21956776082515717,
0.007874958217144012,
0.5253741145133972,
-0.11711389571428299,
0.19441846013069153,
0.25027942657470703,
-0.02130233496427536,
-0.2537553906440735,
0.09223214536905289,
0.2513118386268616,
0.1302412897348404,
-0.24002861976623535,
-0.39409366250038147,
0.38450852036476135,
0.09315557777881622,
-0.12804587185382843,
0.08526057004928589,
0.03361934423446655,
-0.5783620476722717,
0.012125751003623009,
-0.18709811568260193,
1.0526421070098877,
0.06972295045852661,
0.5438430309295654,
0.16445881128311157,
-0.2343125194311142,
0.20798084139823914,
0.02991393953561783,
0.07760418951511383,
-0.13728559017181396,
-0.12318478524684906,
-0.03921661153435707,
0.049347687512636185,
0.12520451843738556,
0.0445110909640789,
-0.16283005475997925,
0.10482899844646454,
-0.13248269259929657,
0.46261999011039734,
0.02551930770277977,
0.055491022765636444,
-0.35345908999443054,
-0.23680579662322998,
-0.1421910673379898,
0.17928923666477203,
-0.004025109112262726,
0.17951282858848572,
-0.0311279334127903,
0.028481896966695786,
-0.12997795641422272,
-0.15940633416175842,
-0.0400603786110878,
0.05522681772708893,
-0.2622325122356415,
0.05184169486165047,
0.13091294467449188,
-0.25501856207847595,
-0.18526741862297058,
0.3582654595375061,
0.4886322617530823,
0.058994926512241364,
-0.02268180437386036,
0.18103019893169403,
0.17695054411888123,
0.36905205249786377,
0.1631840318441391,
-0.07118590176105499,
0.14028501510620117,
0.034778282046318054,
-0.22697338461875916,
-0.08685534447431564,
0.041617825627326965,
-0.2070046067237854,
-0.17736080288887024,
0.1021571084856987,
-0.2035159319639206,
-0.3819689154624939,
-0.10244110226631165,
-0.07080869376659393,
0.04902931675314903,
-0.15436230599880219,
0.21640770137310028,
0.01824348047375679,
-0.14718538522720337,
0.1232389286160469,
-0.23012448847293854,
-0.3487479090690613,
-0.2812536358833313,
0.6182482838630676,
0.3330360949039459,
-0.15362542867660522,
0.6093748807907104,
0.029863256961107254,
-0.21352185308933258,
-0.23312413692474365,
-0.06153690069913864,
-0.03911052271723747,
-0.37489965558052063,
0.1753540337085724,
-0.16590175032615662,
-0.03905747830867767,
-0.13582979142665863,
0.0943606048822403,
-0.0543193444609642,
-0.0048593878746032715,
-0.029586108401417732,
-0.2917802035808563,
-0.20424574613571167,
-0.012018591165542603,
0.2862655222415924,
0.2789078652858734,
0.21290308237075806,
0.1974247395992279,
-0.07145439088344574,
0.014029564335942268,
-0.419711172580719,
0.2962636351585388,
0.1460198014974594,
0.17266185581684113,
0.08890508115291595,
-0.1397821605205536,
0.36460456252098083,
-0.0083562470972538,
0.20125296711921692,
0.20866109430789948,
-0.270542174577713,
-0.35911688208580017,
-0.25368160009384155,
0.06150980293750763,
-0.14236578345298767,
-0.07996921241283417,
0.0010465490631759167,
0.047073252499103546,
0.07174476236104965,
-0.35897013545036316,
0.3513581454753876,
0.41662973165512085,
0.0382954403758049,
0.14374446868896484,
-0.05346003547310829,
0.3532389998435974,
0.17023207247257233,
-0.1074288934469223,
-0.05967080593109131,
0.1759943664073944,
0.07715306431055069,
0.14615772664546967,
-0.34338611364364624,
0.02482583373785019,
0.12109963595867157,
-0.022187545895576477,
0.2799769639968872,
0.007143579423427582,
0.08586697280406952,
-0.4575459361076355,
-0.1887640357017517,
0.13241660594940186,
0.4153512418270111,
0.3262941539287567,
-0.32568058371543884,
-0.3639090359210968,
0.028752490878105164,
0.25795629620552063,
-0.09274571388959885,
-0.21303139626979828,
0.28427016735076904,
0.09091835469007492,
0.04387455806136131,
0.3295016884803772,
0.3479596972465515,
-0.0955454483628273,
0.07706944644451141,
-0.0678812563419342,
0.5021142363548279,
-0.5044659972190857,
0.14154966175556183,
0.14536944031715393,
-0.015058811753988266,
0.10460042953491211,
0.21855200827121735,
0.4027283489704132,
0.08825811743736267,
0.7428874969482422,
0.0694250762462616,
0.2655404806137085,
0.03446311503648758,
0.3497873842716217,
-0.30618879199028015,
-0.2714807987213135,
0.008783265948295593,
0.33926570415496826,
-0.5183727741241455,
0.359489768743515,
0.03990458324551582,
0.2947766184806824,
0.10233111679553986,
0.014661770313978195,
-0.11429867148399353,
0.06103791296482086,
-0.19273915886878967,
-0.4710095226764679,
0.15433724224567413,
-0.1860477328300476,
-0.09823450446128845,
0.05350099876523018,
-0.042349930852651596,
0.02103736251592636,
0.12670855224132538,
-0.06574933230876923,
-0.014456257224082947,
-0.35960477590560913,
-0.06516990810632706,
-0.2634505033493042,
0.28922224044799805,
-0.273643434047699,
0.36183419823646545,
0.25162380933761597,
-0.024430088698863983,
0.26640990376472473,
0.184328094124794,
0.4133998453617096,
0.09648743271827698,
0.1391858458518982,
0.23439078032970428,
-0.344128280878067,
0.017397096380591393,
-0.27229753136634827,
0.35776230692863464,
0.30370083451271057,
-0.0722728967666626,
0.18324029445648193,
0.22782276570796967,
-0.18412010371685028,
0.19685547053813934,
0.24590514600276947,
0.24918438494205475,
-0.4332534968852997,
0.13037921488285065,
-0.2235022783279419,
-0.02217700332403183,
-0.2555288076400757,
0.06844604760408401,
-0.4019797444343567,
0.04938945174217224,
0.4003739655017853,
-0.012616005726158619,
0.3317834138870239,
-0.032313160598278046,
0.11929905414581299,
0.09707874059677124,
0.3910091817378998,
0.24670813977718353,
0.020242605358362198,
0.08527253568172455,
-0.1726856827735901,
-0.5865501761436462,
0.22215870022773743,
-0.029689107090234756,
0.1344587653875351,
-0.14345470070838928,
0.20454078912734985,
-0.03414434194564819,
-0.05421639233827591,
-0.09140144288539886,
-0.17938464879989624,
-0.26991182565689087,
-0.21812018752098083,
-0.2253098338842392,
-0.30984893441200256,
-0.05709899961948395,
0.01765880361199379,
0.1262982040643692,
-0.2951640188694,
0.19959379732608795,
-0.1299218386411667,
0.17109552025794983,
-0.07349114865064621,
0.11910457909107208,
-0.10123711824417114,
-0.08171550929546356,
0.3345755636692047,
0.21344642341136932,
0.06214592605829239,
-0.10521119832992554,
-0.069944366812706,
-0.2133234143257141,
-0.06329680234193802,
-0.1850118190050125,
0.39756283164024353,
0.13830216228961945,
0.24097827076911926,
-0.23870615661144257,
-0.10007010400295258,
-0.015463300049304962,
0.35325637459754944,
0.30009251832962036,
-0.2251817137002945,
0.0405854806303978,
0.0742223784327507,
0.03159645199775696,
0.0677160695195198,
-0.042455364018678665,
0.71193528175354,
-0.16096554696559906,
0.19566850364208221,
-0.12262391299009323,
-0.43576252460479736,
0.4972653090953827,
-0.4109678864479065,
-0.36350885033607483,
0.09996013343334198,
0.19962312281131744,
0.19740083813667297,
-0.22459840774536133,
-0.6479586362838745,
0.24028989672660828,
0.32446300983428955,
-0.1465076506137848,
-0.2898397147655487,
0.25782427191734314,
-0.06593689322471619,
-0.05601568520069122,
-0.13718625903129578,
0.4104950428009033,
0.26252323389053345,
-0.17199580371379852,
0.1602531522512436,
-0.42736130952835083
] |
https://github.com/huggingface/datasets/issues/730 | Possible caching bug | I had the same issue and solved it by downgrading the datasets version from 2.7.0 -> 2.6.1
pip install -q datasets==2.6.1 | The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5 | 21 | Possible caching bug
The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5
I had the same issue and solved it by downgrading the datasets version from 2.7.0 -> 2.6.1
pip install -q datasets==2.6.1 | [
0.06326085329055786,
-0.1689581423997879,
-0.1356962025165558,
0.3066900372505188,
0.3663589358329773,
-0.08226624876260757,
0.21097038686275482,
0.19322779774665833,
-0.08093328773975372,
0.14596495032310486,
-0.052267737686634064,
0.061048440635204315,
0.17751987278461456,
-0.055985093116760254,
0.13165880739688873,
0.21844516694545746,
0.08731990307569504,
0.06633303314447403,
-0.12631642818450928,
-0.2109900414943695,
-0.01026993989944458,
0.20624759793281555,
0.01733996719121933,
-0.14517362415790558,
-0.437119722366333,
0.12282812595367432,
-0.08546273410320282,
0.08264251053333282,
0.04330998286604881,
-0.23124541342258453,
0.07539195567369461,
0.15575723350048065,
-0.14271333813667297,
0.3933540880680084,
-0.00010795117123052478,
-0.04638276621699333,
0.004921756684780121,
-0.07512636482715607,
-0.4451858401298523,
-0.0241023451089859,
0.06683854758739471,
0.11590619385242462,
-0.05377595126628876,
-0.17924395203590393,
-0.06388544291257858,
0.08906017988920212,
0.08052213490009308,
-0.6234307885169983,
0.42119544744491577,
0.3092532753944397,
0.2928190231323242,
0.01811002567410469,
-0.3509517014026642,
0.10258731245994568,
0.2549998462200165,
0.2605430483818054,
-0.06014743074774742,
0.016257716342806816,
0.20089450478553772,
0.18448759615421295,
-0.17973071336746216,
0.490560382604599,
0.022463561967015266,
-0.09290909767150879,
0.01269255205988884,
0.3502126634120941,
-0.19734758138656616,
0.10783475637435913,
0.4177003800868988,
0.2047118842601776,
0.41029730439186096,
-0.4855339825153351,
-0.2600766122341156,
-0.3530350625514984,
-0.13911107182502747,
-0.3968031704425812,
0.3521829843521118,
-0.010458316653966904,
-0.038104694336652756,
0.25152045488357544,
-0.2373824566602707,
-0.04990103840827942,
0.043375179171562195,
-0.037861645221710205,
-0.14718157052993774,
0.06398958712816238,
-0.2387993186712265,
-0.10491480678319931,
-0.05651314929127693,
-0.09361359477043152,
0.01066530216485262,
-0.24658134579658508,
-0.051943425089120865,
0.13077031075954437,
-0.08175201714038849,
0.14962869882583618,
-0.03545305132865906,
0.014113612473011017,
0.08695472031831741,
0.0944402664899826,
0.22001618146896362,
0.1656225323677063,
-0.07724320143461227,
-0.11788482218980789,
-0.0753498524427414,
0.40892285108566284,
0.12654419243335724,
-0.1236863061785698,
0.19965341687202454,
0.10211139917373657,
-0.28637415170669556,
-0.15594109892845154,
0.08231571316719055,
-0.06637415289878845,
0.34975412487983704,
-0.21174785494804382,
0.17540700733661652,
-0.12271453440189362,
-0.17327281832695007,
0.12006121128797531,
-0.01375407725572586,
-0.01664045825600624,
-0.004566832445561886,
0.2791537940502167,
-0.21760672330856323,
0.08045020699501038,
-0.10962335020303726,
0.0016871578991413116,
-0.20302148163318634,
-0.2661352753639221,
-0.4274788498878479,
-0.13175837695598602,
-0.18239396810531616,
0.13117066025733948,
0.18084751069545746,
-0.052429478615522385,
0.1408105045557022,
0.19674810767173767,
0.1277531385421753,
-0.3219611644744873,
-0.11366432160139084,
-0.22998574376106262,
0.23694413900375366,
-0.006479885429143906,
-0.277132123708725,
0.2032751739025116,
0.11692163348197937,
-0.2279534637928009,
-0.09552854299545288,
0.028431203216314316,
-0.24024656414985657,
-0.1247914731502533,
0.05693170055747032,
0.29198575019836426,
-0.23667988181114197,
-0.12620148062705994,
0.057255372405052185,
0.05429580807685852,
0.5505171418190002,
0.0660657286643982,
0.19005531072616577,
0.01395595446228981,
-0.4436226785182953,
-0.19738812744617462,
0.0649242103099823,
0.3066070079803467,
-0.26534518599510193,
-0.21867342293262482,
0.08412644267082214,
0.0026900004595518112,
0.22165162861347198,
0.38935232162475586,
-0.10109475255012512,
0.10290996730327606,
-0.3480852246284485,
0.3724368214607239,
0.18623189628124237,
-0.3808501362800598,
-0.5444988012313843,
0.2635793089866638,
-0.03667783737182617,
0.33073198795318604,
0.2198258638381958,
0.019725052639842033,
0.19797301292419434,
0.00974967796355486,
0.27466845512390137,
0.11099133640527725,
0.35991159081459045,
-0.053945302963256836,
-0.26299363374710083,
-0.15015466511249542,
-0.09110578894615173,
-0.0414850227534771,
-0.13818411529064178,
0.06723254919052124,
0.08857209980487823,
-0.11389632523059845,
0.34388163685798645,
-0.1182793378829956,
0.24818071722984314,
0.12988564372062683,
0.2086011916399002,
0.1743336021900177,
0.10991127043962479,
-0.04035108909010887,
-0.3164936900138855,
0.1880825161933899,
-0.08529751747846603,
-0.029529273509979248,
-0.3783097267150879,
-0.3485528826713562,
-0.19457197189331055,
-0.058388181030750275,
-0.24090875685214996,
-0.17171186208724976,
0.23857355117797852,
0.43725070357322693,
0.18113546073436737,
0.25416478514671326,
-0.0017993301153182983,
0.4922892153263092,
-0.22595985233783722,
0.04309751093387604,
-0.41079533100128174,
-0.06393329054117203,
0.20762066543102264,
-0.10660137236118317,
-0.3256846070289612,
0.22946786880493164,
-0.037920862436294556,
-0.05066432058811188,
-0.024566292762756348,
0.3689854145050049,
-0.009035250172019005,
0.545143723487854,
-0.13962668180465698,
0.090988390147686,
0.06362013518810272,
0.056044917553663254,
0.060716718435287476,
0.14906974136829376,
0.22537465393543243,
-0.21232551336288452,
-0.20071515440940857,
0.42906737327575684,
0.1339482218027115,
0.0944107323884964,
0.10082289576530457,
-0.3489760160446167,
0.1937703788280487,
-0.14657318592071533,
-0.021469008177518845,
-0.4593222141265869,
0.32289785146713257,
-0.18639318645000458,
0.35571032762527466,
0.3392949402332306,
-0.4177325367927551,
0.15469235181808472,
0.6486344933509827,
-0.022116903215646744,
0.09703666716814041,
0.16187629103660583,
-0.08949462324380875,
-0.1046929731965065,
-0.2154049128293991,
0.31169673800468445,
0.4378969073295593,
0.19797834753990173,
0.3201465904712677,
0.2175663560628891,
0.19703525304794312,
-0.47834083437919617,
0.2719819247722626,
-0.26136207580566406,
-0.04973497986793518,
0.3116177022457123,
0.23377060890197754,
-0.10560187697410583,
-0.5463245511054993,
0.17844349145889282,
-0.0284870658069849,
0.033531662076711655,
-0.25305336713790894,
0.1925889104604721,
-0.48399871587753296,
-0.3050440847873688,
-0.45337894558906555,
-0.000482841394841671,
-0.1906900554895401,
-0.25454017519950867,
0.0010066982358694077,
0.051265839487314224,
0.05562013015151024,
0.010270586237311363,
-0.18246732652187347,
0.1323818564414978,
-0.12379191815853119,
-0.37619316577911377,
-0.2686219811439514,
-0.04810473695397377,
-0.35460805892944336,
0.13466256856918335,
-0.00719135208055377,
-0.16431285440921783,
0.21147195994853973,
-0.2651865780353546,
-0.08010965585708618,
-0.1270551234483719,
-0.24465465545654297,
0.1423727571964264,
-0.006899978965520859,
0.015822986140847206,
0.020663239061832428,
-0.1169910877943039,
-0.07317449152469635,
0.04594142362475395,
0.207035094499588,
-0.14671288430690765,
-0.24573513865470886,
-0.19749444723129272,
0.029874656349420547,
0.08418405801057816,
-0.3097217082977295,
-0.36855265498161316,
-0.10845331102609634,
-0.11231309175491333,
0.30890989303588867,
-0.09261636435985565,
0.12834179401397705,
0.3613404631614685,
-0.1768619567155838,
0.2316177636384964,
-0.06658805161714554,
0.24967443943023682,
-0.5686769485473633,
-0.44571518898010254,
0.32161271572113037,
-0.08380663394927979,
-0.25449034571647644,
-0.08163584768772125,
0.04150588810443878,
0.265744686126709,
0.20595885813236237,
-0.785647451877594,
-0.12501578032970428,
-0.32934632897377014,
0.06652963161468506,
-0.0561567097902298,
-0.051406942307949066,
0.1831352710723877,
-0.18853360414505005,
-0.15430711209774017,
-0.1911274492740631,
-0.02942066825926304,
0.11264362931251526,
-0.05497752130031586,
0.1539236307144165,
-0.06940482556819916,
0.2732540965080261,
0.33871862292289734,
0.5176923274993896,
0.24325838685035706,
0.019802633672952652,
0.29938989877700806,
-0.15928387641906738,
0.3542062044143677,
-0.31633615493774414,
-0.06585189700126648,
0.09558747708797455,
-0.26931634545326233,
-0.03863021731376648,
0.3650593161582947,
0.11985379457473755,
0.18199682235717773,
0.020800665020942688,
0.04228600487112999,
-0.18873924016952515,
-0.3113325238227844,
0.23519980907440186,
-0.24451807141304016,
0.14435403048992157,
0.17576418817043304,
0.12816020846366882,
-0.033273398876190186,
-0.19155025482177734,
-0.1471121609210968,
0.0002003982663154602,
0.04246868938207626,
-0.005808116402477026,
-0.3604525625705719,
0.14921057224273682,
-0.5625631213188171,
0.22266913950443268,
0.19854772090911865,
0.1745433509349823,
-0.17171750962734222,
-0.09939193725585938,
0.20575875043869019,
-0.0968838557600975,
0.7381254434585571,
0.06319765746593475,
0.05379290506243706,
0.04061542823910713,
-0.17171438038349152,
-0.3108307719230652,
0.12341538071632385,
-0.09361866116523743,
0.02833007276058197,
0.19062161445617676,
0.44892072677612305,
-0.15669307112693787,
-0.08017231523990631,
-0.1717059165239334,
0.11073578149080276,
-0.06568127125501633,
-0.08613206446170807,
-0.24301540851593018,
-0.339382529258728,
-0.1723988950252533,
0.011269629001617432,
0.0917002484202385,
0.1303759217262268,
-0.1485615223646164,
0.2206908017396927,
-0.008700506761670113,
0.019253667443990707,
0.2384980171918869,
-0.08674082159996033,
0.39905819296836853,
-0.1014833152294159,
0.029570259153842926,
0.18869632482528687,
0.14976418018341064,
-0.029397988691926003,
0.5788062214851379,
-0.016010306775569916,
-0.2766881287097931,
-0.22093376517295837,
-0.21956776082515717,
0.007874958217144012,
0.5253741145133972,
-0.11711389571428299,
0.19441846013069153,
0.25027942657470703,
-0.02130233496427536,
-0.2537553906440735,
0.09223214536905289,
0.2513118386268616,
0.1302412897348404,
-0.24002861976623535,
-0.39409366250038147,
0.38450852036476135,
0.09315557777881622,
-0.12804587185382843,
0.08526057004928589,
0.03361934423446655,
-0.5783620476722717,
0.012125751003623009,
-0.18709811568260193,
1.0526421070098877,
0.06972295045852661,
0.5438430309295654,
0.16445881128311157,
-0.2343125194311142,
0.20798084139823914,
0.02991393953561783,
0.07760418951511383,
-0.13728559017181396,
-0.12318478524684906,
-0.03921661153435707,
0.049347687512636185,
0.12520451843738556,
0.0445110909640789,
-0.16283005475997925,
0.10482899844646454,
-0.13248269259929657,
0.46261999011039734,
0.02551930770277977,
0.055491022765636444,
-0.35345908999443054,
-0.23680579662322998,
-0.1421910673379898,
0.17928923666477203,
-0.004025109112262726,
0.17951282858848572,
-0.0311279334127903,
0.028481896966695786,
-0.12997795641422272,
-0.15940633416175842,
-0.0400603786110878,
0.05522681772708893,
-0.2622325122356415,
0.05184169486165047,
0.13091294467449188,
-0.25501856207847595,
-0.18526741862297058,
0.3582654595375061,
0.4886322617530823,
0.058994926512241364,
-0.02268180437386036,
0.18103019893169403,
0.17695054411888123,
0.36905205249786377,
0.1631840318441391,
-0.07118590176105499,
0.14028501510620117,
0.034778282046318054,
-0.22697338461875916,
-0.08685534447431564,
0.041617825627326965,
-0.2070046067237854,
-0.17736080288887024,
0.1021571084856987,
-0.2035159319639206,
-0.3819689154624939,
-0.10244110226631165,
-0.07080869376659393,
0.04902931675314903,
-0.15436230599880219,
0.21640770137310028,
0.01824348047375679,
-0.14718538522720337,
0.1232389286160469,
-0.23012448847293854,
-0.3487479090690613,
-0.2812536358833313,
0.6182482838630676,
0.3330360949039459,
-0.15362542867660522,
0.6093748807907104,
0.029863256961107254,
-0.21352185308933258,
-0.23312413692474365,
-0.06153690069913864,
-0.03911052271723747,
-0.37489965558052063,
0.1753540337085724,
-0.16590175032615662,
-0.03905747830867767,
-0.13582979142665863,
0.0943606048822403,
-0.0543193444609642,
-0.0048593878746032715,
-0.029586108401417732,
-0.2917802035808563,
-0.20424574613571167,
-0.012018591165542603,
0.2862655222415924,
0.2789078652858734,
0.21290308237075806,
0.1974247395992279,
-0.07145439088344574,
0.014029564335942268,
-0.419711172580719,
0.2962636351585388,
0.1460198014974594,
0.17266185581684113,
0.08890508115291595,
-0.1397821605205536,
0.36460456252098083,
-0.0083562470972538,
0.20125296711921692,
0.20866109430789948,
-0.270542174577713,
-0.35911688208580017,
-0.25368160009384155,
0.06150980293750763,
-0.14236578345298767,
-0.07996921241283417,
0.0010465490631759167,
0.047073252499103546,
0.07174476236104965,
-0.35897013545036316,
0.3513581454753876,
0.41662973165512085,
0.0382954403758049,
0.14374446868896484,
-0.05346003547310829,
0.3532389998435974,
0.17023207247257233,
-0.1074288934469223,
-0.05967080593109131,
0.1759943664073944,
0.07715306431055069,
0.14615772664546967,
-0.34338611364364624,
0.02482583373785019,
0.12109963595867157,
-0.022187545895576477,
0.2799769639968872,
0.007143579423427582,
0.08586697280406952,
-0.4575459361076355,
-0.1887640357017517,
0.13241660594940186,
0.4153512418270111,
0.3262941539287567,
-0.32568058371543884,
-0.3639090359210968,
0.028752490878105164,
0.25795629620552063,
-0.09274571388959885,
-0.21303139626979828,
0.28427016735076904,
0.09091835469007492,
0.04387455806136131,
0.3295016884803772,
0.3479596972465515,
-0.0955454483628273,
0.07706944644451141,
-0.0678812563419342,
0.5021142363548279,
-0.5044659972190857,
0.14154966175556183,
0.14536944031715393,
-0.015058811753988266,
0.10460042953491211,
0.21855200827121735,
0.4027283489704132,
0.08825811743736267,
0.7428874969482422,
0.0694250762462616,
0.2655404806137085,
0.03446311503648758,
0.3497873842716217,
-0.30618879199028015,
-0.2714807987213135,
0.008783265948295593,
0.33926570415496826,
-0.5183727741241455,
0.359489768743515,
0.03990458324551582,
0.2947766184806824,
0.10233111679553986,
0.014661770313978195,
-0.11429867148399353,
0.06103791296482086,
-0.19273915886878967,
-0.4710095226764679,
0.15433724224567413,
-0.1860477328300476,
-0.09823450446128845,
0.05350099876523018,
-0.042349930852651596,
0.02103736251592636,
0.12670855224132538,
-0.06574933230876923,
-0.014456257224082947,
-0.35960477590560913,
-0.06516990810632706,
-0.2634505033493042,
0.28922224044799805,
-0.273643434047699,
0.36183419823646545,
0.25162380933761597,
-0.024430088698863983,
0.26640990376472473,
0.184328094124794,
0.4133998453617096,
0.09648743271827698,
0.1391858458518982,
0.23439078032970428,
-0.344128280878067,
0.017397096380591393,
-0.27229753136634827,
0.35776230692863464,
0.30370083451271057,
-0.0722728967666626,
0.18324029445648193,
0.22782276570796967,
-0.18412010371685028,
0.19685547053813934,
0.24590514600276947,
0.24918438494205475,
-0.4332534968852997,
0.13037921488285065,
-0.2235022783279419,
-0.02217700332403183,
-0.2555288076400757,
0.06844604760408401,
-0.4019797444343567,
0.04938945174217224,
0.4003739655017853,
-0.012616005726158619,
0.3317834138870239,
-0.032313160598278046,
0.11929905414581299,
0.09707874059677124,
0.3910091817378998,
0.24670813977718353,
0.020242605358362198,
0.08527253568172455,
-0.1726856827735901,
-0.5865501761436462,
0.22215870022773743,
-0.029689107090234756,
0.1344587653875351,
-0.14345470070838928,
0.20454078912734985,
-0.03414434194564819,
-0.05421639233827591,
-0.09140144288539886,
-0.17938464879989624,
-0.26991182565689087,
-0.21812018752098083,
-0.2253098338842392,
-0.30984893441200256,
-0.05709899961948395,
0.01765880361199379,
0.1262982040643692,
-0.2951640188694,
0.19959379732608795,
-0.1299218386411667,
0.17109552025794983,
-0.07349114865064621,
0.11910457909107208,
-0.10123711824417114,
-0.08171550929546356,
0.3345755636692047,
0.21344642341136932,
0.06214592605829239,
-0.10521119832992554,
-0.069944366812706,
-0.2133234143257141,
-0.06329680234193802,
-0.1850118190050125,
0.39756283164024353,
0.13830216228961945,
0.24097827076911926,
-0.23870615661144257,
-0.10007010400295258,
-0.015463300049304962,
0.35325637459754944,
0.30009251832962036,
-0.2251817137002945,
0.0405854806303978,
0.0742223784327507,
0.03159645199775696,
0.0677160695195198,
-0.042455364018678665,
0.71193528175354,
-0.16096554696559906,
0.19566850364208221,
-0.12262391299009323,
-0.43576252460479736,
0.4972653090953827,
-0.4109678864479065,
-0.36350885033607483,
0.09996013343334198,
0.19962312281131744,
0.19740083813667297,
-0.22459840774536133,
-0.6479586362838745,
0.24028989672660828,
0.32446300983428955,
-0.1465076506137848,
-0.2898397147655487,
0.25782427191734314,
-0.06593689322471619,
-0.05601568520069122,
-0.13718625903129578,
0.4104950428009033,
0.26252323389053345,
-0.17199580371379852,
0.1602531522512436,
-0.42736130952835083
] |
https://github.com/huggingface/datasets/issues/730 | Possible caching bug | > I had the same issue and solved it by downgrading the datasets version from 2.7.0 -> 2.6.1 pip install -q datasets==2.6.1
Thanks, it works for me | The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5 | 27 | Possible caching bug
The following code with `test1.txt` containing just "🤗🤗🤗":
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
```
produces this output:
```
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': 'ð\x9f¤\x97ð\x9f¤\x97ð\x9f¤\x97'}
```
Just changing the order (and deleting the temp files):
```
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="utf-8")
print(dataset[0])
dataset = datasets.load_dataset('text', data_files=['test1.txt'], split="train", encoding="latin_1")
print(dataset[0])
```
produces this:
```
Using custom data configuration default
Downloading and preparing dataset text/default-15600e4d83254059 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155...
Dataset text downloaded and prepared to /home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155. Subsequent calls will reuse this data.
{'text': '🤗🤗🤗'}
Using custom data configuration default
Reusing dataset text (/home/arne/.cache/huggingface/datasets/text/default-15600e4d83254059/0.0.0/52cefbb2b82b015d4253f1aeb1e6ee5591124a6491e834acfe1751f765925155)
{'text': '🤗🤗🤗'}
```
Is it intended that the cache path does not depend on the config entries?
tested with datasets==1.1.2 and python==3.8.5
> I had the same issue and solved it by downgrading the datasets version from 2.7.0 -> 2.6.1 pip install -q datasets==2.6.1
Thanks, it works for me | [
0.06326085329055786,
-0.1689581423997879,
-0.1356962025165558,
0.3066900372505188,
0.3663589358329773,
-0.08226624876260757,
0.21097038686275482,
0.19322779774665833,
-0.08093328773975372,
0.14596495032310486,
-0.052267737686634064,
0.061048440635204315,
0.17751987278461456,
-0.055985093116760254,
0.13165880739688873,
0.21844516694545746,
0.08731990307569504,
0.06633303314447403,
-0.12631642818450928,
-0.2109900414943695,
-0.01026993989944458,
0.20624759793281555,
0.01733996719121933,
-0.14517362415790558,
-0.437119722366333,
0.12282812595367432,
-0.08546273410320282,
0.08264251053333282,
0.04330998286604881,
-0.23124541342258453,
0.07539195567369461,
0.15575723350048065,
-0.14271333813667297,
0.3933540880680084,
-0.00010795117123052478,
-0.04638276621699333,
0.004921756684780121,
-0.07512636482715607,
-0.4451858401298523,
-0.0241023451089859,
0.06683854758739471,
0.11590619385242462,
-0.05377595126628876,
-0.17924395203590393,
-0.06388544291257858,
0.08906017988920212,
0.08052213490009308,
-0.6234307885169983,
0.42119544744491577,
0.3092532753944397,
0.2928190231323242,
0.01811002567410469,
-0.3509517014026642,
0.10258731245994568,
0.2549998462200165,
0.2605430483818054,
-0.06014743074774742,
0.016257716342806816,
0.20089450478553772,
0.18448759615421295,
-0.17973071336746216,
0.490560382604599,
0.022463561967015266,
-0.09290909767150879,
0.01269255205988884,
0.3502126634120941,
-0.19734758138656616,
0.10783475637435913,
0.4177003800868988,
0.2047118842601776,
0.41029730439186096,
-0.4855339825153351,
-0.2600766122341156,
-0.3530350625514984,
-0.13911107182502747,
-0.3968031704425812,
0.3521829843521118,
-0.010458316653966904,
-0.038104694336652756,
0.25152045488357544,
-0.2373824566602707,
-0.04990103840827942,
0.043375179171562195,
-0.037861645221710205,
-0.14718157052993774,
0.06398958712816238,
-0.2387993186712265,
-0.10491480678319931,
-0.05651314929127693,
-0.09361359477043152,
0.01066530216485262,
-0.24658134579658508,
-0.051943425089120865,
0.13077031075954437,
-0.08175201714038849,
0.14962869882583618,
-0.03545305132865906,
0.014113612473011017,
0.08695472031831741,
0.0944402664899826,
0.22001618146896362,
0.1656225323677063,
-0.07724320143461227,
-0.11788482218980789,
-0.0753498524427414,
0.40892285108566284,
0.12654419243335724,
-0.1236863061785698,
0.19965341687202454,
0.10211139917373657,
-0.28637415170669556,
-0.15594109892845154,
0.08231571316719055,
-0.06637415289878845,
0.34975412487983704,
-0.21174785494804382,
0.17540700733661652,
-0.12271453440189362,
-0.17327281832695007,
0.12006121128797531,
-0.01375407725572586,
-0.01664045825600624,
-0.004566832445561886,
0.2791537940502167,
-0.21760672330856323,
0.08045020699501038,
-0.10962335020303726,
0.0016871578991413116,
-0.20302148163318634,
-0.2661352753639221,
-0.4274788498878479,
-0.13175837695598602,
-0.18239396810531616,
0.13117066025733948,
0.18084751069545746,
-0.052429478615522385,
0.1408105045557022,
0.19674810767173767,
0.1277531385421753,
-0.3219611644744873,
-0.11366432160139084,
-0.22998574376106262,
0.23694413900375366,
-0.006479885429143906,
-0.277132123708725,
0.2032751739025116,
0.11692163348197937,
-0.2279534637928009,
-0.09552854299545288,
0.028431203216314316,
-0.24024656414985657,
-0.1247914731502533,
0.05693170055747032,
0.29198575019836426,
-0.23667988181114197,
-0.12620148062705994,
0.057255372405052185,
0.05429580807685852,
0.5505171418190002,
0.0660657286643982,
0.19005531072616577,
0.01395595446228981,
-0.4436226785182953,
-0.19738812744617462,
0.0649242103099823,
0.3066070079803467,
-0.26534518599510193,
-0.21867342293262482,
0.08412644267082214,
0.0026900004595518112,
0.22165162861347198,
0.38935232162475586,
-0.10109475255012512,
0.10290996730327606,
-0.3480852246284485,
0.3724368214607239,
0.18623189628124237,
-0.3808501362800598,
-0.5444988012313843,
0.2635793089866638,
-0.03667783737182617,
0.33073198795318604,
0.2198258638381958,
0.019725052639842033,
0.19797301292419434,
0.00974967796355486,
0.27466845512390137,
0.11099133640527725,
0.35991159081459045,
-0.053945302963256836,
-0.26299363374710083,
-0.15015466511249542,
-0.09110578894615173,
-0.0414850227534771,
-0.13818411529064178,
0.06723254919052124,
0.08857209980487823,
-0.11389632523059845,
0.34388163685798645,
-0.1182793378829956,
0.24818071722984314,
0.12988564372062683,
0.2086011916399002,
0.1743336021900177,
0.10991127043962479,
-0.04035108909010887,
-0.3164936900138855,
0.1880825161933899,
-0.08529751747846603,
-0.029529273509979248,
-0.3783097267150879,
-0.3485528826713562,
-0.19457197189331055,
-0.058388181030750275,
-0.24090875685214996,
-0.17171186208724976,
0.23857355117797852,
0.43725070357322693,
0.18113546073436737,
0.25416478514671326,
-0.0017993301153182983,
0.4922892153263092,
-0.22595985233783722,
0.04309751093387604,
-0.41079533100128174,
-0.06393329054117203,
0.20762066543102264,
-0.10660137236118317,
-0.3256846070289612,
0.22946786880493164,
-0.037920862436294556,
-0.05066432058811188,
-0.024566292762756348,
0.3689854145050049,
-0.009035250172019005,
0.545143723487854,
-0.13962668180465698,
0.090988390147686,
0.06362013518810272,
0.056044917553663254,
0.060716718435287476,
0.14906974136829376,
0.22537465393543243,
-0.21232551336288452,
-0.20071515440940857,
0.42906737327575684,
0.1339482218027115,
0.0944107323884964,
0.10082289576530457,
-0.3489760160446167,
0.1937703788280487,
-0.14657318592071533,
-0.021469008177518845,
-0.4593222141265869,
0.32289785146713257,
-0.18639318645000458,
0.35571032762527466,
0.3392949402332306,
-0.4177325367927551,
0.15469235181808472,
0.6486344933509827,
-0.022116903215646744,
0.09703666716814041,
0.16187629103660583,
-0.08949462324380875,
-0.1046929731965065,
-0.2154049128293991,
0.31169673800468445,
0.4378969073295593,
0.19797834753990173,
0.3201465904712677,
0.2175663560628891,
0.19703525304794312,
-0.47834083437919617,
0.2719819247722626,
-0.26136207580566406,
-0.04973497986793518,
0.3116177022457123,
0.23377060890197754,
-0.10560187697410583,
-0.5463245511054993,
0.17844349145889282,
-0.0284870658069849,
0.033531662076711655,
-0.25305336713790894,
0.1925889104604721,
-0.48399871587753296,
-0.3050440847873688,
-0.45337894558906555,
-0.000482841394841671,
-0.1906900554895401,
-0.25454017519950867,
0.0010066982358694077,
0.051265839487314224,
0.05562013015151024,
0.010270586237311363,
-0.18246732652187347,
0.1323818564414978,
-0.12379191815853119,
-0.37619316577911377,
-0.2686219811439514,
-0.04810473695397377,
-0.35460805892944336,
0.13466256856918335,
-0.00719135208055377,
-0.16431285440921783,
0.21147195994853973,
-0.2651865780353546,
-0.08010965585708618,
-0.1270551234483719,
-0.24465465545654297,
0.1423727571964264,
-0.006899978965520859,
0.015822986140847206,
0.020663239061832428,
-0.1169910877943039,
-0.07317449152469635,
0.04594142362475395,
0.207035094499588,
-0.14671288430690765,
-0.24573513865470886,
-0.19749444723129272,
0.029874656349420547,
0.08418405801057816,
-0.3097217082977295,
-0.36855265498161316,
-0.10845331102609634,
-0.11231309175491333,
0.30890989303588867,
-0.09261636435985565,
0.12834179401397705,
0.3613404631614685,
-0.1768619567155838,
0.2316177636384964,
-0.06658805161714554,
0.24967443943023682,
-0.5686769485473633,
-0.44571518898010254,
0.32161271572113037,
-0.08380663394927979,
-0.25449034571647644,
-0.08163584768772125,
0.04150588810443878,
0.265744686126709,
0.20595885813236237,
-0.785647451877594,
-0.12501578032970428,
-0.32934632897377014,
0.06652963161468506,
-0.0561567097902298,
-0.051406942307949066,
0.1831352710723877,
-0.18853360414505005,
-0.15430711209774017,
-0.1911274492740631,
-0.02942066825926304,
0.11264362931251526,
-0.05497752130031586,
0.1539236307144165,
-0.06940482556819916,
0.2732540965080261,
0.33871862292289734,
0.5176923274993896,
0.24325838685035706,
0.019802633672952652,
0.29938989877700806,
-0.15928387641906738,
0.3542062044143677,
-0.31633615493774414,
-0.06585189700126648,
0.09558747708797455,
-0.26931634545326233,
-0.03863021731376648,
0.3650593161582947,
0.11985379457473755,
0.18199682235717773,
0.020800665020942688,
0.04228600487112999,
-0.18873924016952515,
-0.3113325238227844,
0.23519980907440186,
-0.24451807141304016,
0.14435403048992157,
0.17576418817043304,
0.12816020846366882,
-0.033273398876190186,
-0.19155025482177734,
-0.1471121609210968,
0.0002003982663154602,
0.04246868938207626,
-0.005808116402477026,
-0.3604525625705719,
0.14921057224273682,
-0.5625631213188171,
0.22266913950443268,
0.19854772090911865,
0.1745433509349823,
-0.17171750962734222,
-0.09939193725585938,
0.20575875043869019,
-0.0968838557600975,
0.7381254434585571,
0.06319765746593475,
0.05379290506243706,
0.04061542823910713,
-0.17171438038349152,
-0.3108307719230652,
0.12341538071632385,
-0.09361866116523743,
0.02833007276058197,
0.19062161445617676,
0.44892072677612305,
-0.15669307112693787,
-0.08017231523990631,
-0.1717059165239334,
0.11073578149080276,
-0.06568127125501633,
-0.08613206446170807,
-0.24301540851593018,
-0.339382529258728,
-0.1723988950252533,
0.011269629001617432,
0.0917002484202385,
0.1303759217262268,
-0.1485615223646164,
0.2206908017396927,
-0.008700506761670113,
0.019253667443990707,
0.2384980171918869,
-0.08674082159996033,
0.39905819296836853,
-0.1014833152294159,
0.029570259153842926,
0.18869632482528687,
0.14976418018341064,
-0.029397988691926003,
0.5788062214851379,
-0.016010306775569916,
-0.2766881287097931,
-0.22093376517295837,
-0.21956776082515717,
0.007874958217144012,
0.5253741145133972,
-0.11711389571428299,
0.19441846013069153,
0.25027942657470703,
-0.02130233496427536,
-0.2537553906440735,
0.09223214536905289,
0.2513118386268616,
0.1302412897348404,
-0.24002861976623535,
-0.39409366250038147,
0.38450852036476135,
0.09315557777881622,
-0.12804587185382843,
0.08526057004928589,
0.03361934423446655,
-0.5783620476722717,
0.012125751003623009,
-0.18709811568260193,
1.0526421070098877,
0.06972295045852661,
0.5438430309295654,
0.16445881128311157,
-0.2343125194311142,
0.20798084139823914,
0.02991393953561783,
0.07760418951511383,
-0.13728559017181396,
-0.12318478524684906,
-0.03921661153435707,
0.049347687512636185,
0.12520451843738556,
0.0445110909640789,
-0.16283005475997925,
0.10482899844646454,
-0.13248269259929657,
0.46261999011039734,
0.02551930770277977,
0.055491022765636444,
-0.35345908999443054,
-0.23680579662322998,
-0.1421910673379898,
0.17928923666477203,
-0.004025109112262726,
0.17951282858848572,
-0.0311279334127903,
0.028481896966695786,
-0.12997795641422272,
-0.15940633416175842,
-0.0400603786110878,
0.05522681772708893,
-0.2622325122356415,
0.05184169486165047,
0.13091294467449188,
-0.25501856207847595,
-0.18526741862297058,
0.3582654595375061,
0.4886322617530823,
0.058994926512241364,
-0.02268180437386036,
0.18103019893169403,
0.17695054411888123,
0.36905205249786377,
0.1631840318441391,
-0.07118590176105499,
0.14028501510620117,
0.034778282046318054,
-0.22697338461875916,
-0.08685534447431564,
0.041617825627326965,
-0.2070046067237854,
-0.17736080288887024,
0.1021571084856987,
-0.2035159319639206,
-0.3819689154624939,
-0.10244110226631165,
-0.07080869376659393,
0.04902931675314903,
-0.15436230599880219,
0.21640770137310028,
0.01824348047375679,
-0.14718538522720337,
0.1232389286160469,
-0.23012448847293854,
-0.3487479090690613,
-0.2812536358833313,
0.6182482838630676,
0.3330360949039459,
-0.15362542867660522,
0.6093748807907104,
0.029863256961107254,
-0.21352185308933258,
-0.23312413692474365,
-0.06153690069913864,
-0.03911052271723747,
-0.37489965558052063,
0.1753540337085724,
-0.16590175032615662,
-0.03905747830867767,
-0.13582979142665863,
0.0943606048822403,
-0.0543193444609642,
-0.0048593878746032715,
-0.029586108401417732,
-0.2917802035808563,
-0.20424574613571167,
-0.012018591165542603,
0.2862655222415924,
0.2789078652858734,
0.21290308237075806,
0.1974247395992279,
-0.07145439088344574,
0.014029564335942268,
-0.419711172580719,
0.2962636351585388,
0.1460198014974594,
0.17266185581684113,
0.08890508115291595,
-0.1397821605205536,
0.36460456252098083,
-0.0083562470972538,
0.20125296711921692,
0.20866109430789948,
-0.270542174577713,
-0.35911688208580017,
-0.25368160009384155,
0.06150980293750763,
-0.14236578345298767,
-0.07996921241283417,
0.0010465490631759167,
0.047073252499103546,
0.07174476236104965,
-0.35897013545036316,
0.3513581454753876,
0.41662973165512085,
0.0382954403758049,
0.14374446868896484,
-0.05346003547310829,
0.3532389998435974,
0.17023207247257233,
-0.1074288934469223,
-0.05967080593109131,
0.1759943664073944,
0.07715306431055069,
0.14615772664546967,
-0.34338611364364624,
0.02482583373785019,
0.12109963595867157,
-0.022187545895576477,
0.2799769639968872,
0.007143579423427582,
0.08586697280406952,
-0.4575459361076355,
-0.1887640357017517,
0.13241660594940186,
0.4153512418270111,
0.3262941539287567,
-0.32568058371543884,
-0.3639090359210968,
0.028752490878105164,
0.25795629620552063,
-0.09274571388959885,
-0.21303139626979828,
0.28427016735076904,
0.09091835469007492,
0.04387455806136131,
0.3295016884803772,
0.3479596972465515,
-0.0955454483628273,
0.07706944644451141,
-0.0678812563419342,
0.5021142363548279,
-0.5044659972190857,
0.14154966175556183,
0.14536944031715393,
-0.015058811753988266,
0.10460042953491211,
0.21855200827121735,
0.4027283489704132,
0.08825811743736267,
0.7428874969482422,
0.0694250762462616,
0.2655404806137085,
0.03446311503648758,
0.3497873842716217,
-0.30618879199028015,
-0.2714807987213135,
0.008783265948295593,
0.33926570415496826,
-0.5183727741241455,
0.359489768743515,
0.03990458324551582,
0.2947766184806824,
0.10233111679553986,
0.014661770313978195,
-0.11429867148399353,
0.06103791296482086,
-0.19273915886878967,
-0.4710095226764679,
0.15433724224567413,
-0.1860477328300476,
-0.09823450446128845,
0.05350099876523018,
-0.042349930852651596,
0.02103736251592636,
0.12670855224132538,
-0.06574933230876923,
-0.014456257224082947,
-0.35960477590560913,
-0.06516990810632706,
-0.2634505033493042,
0.28922224044799805,
-0.273643434047699,
0.36183419823646545,
0.25162380933761597,
-0.024430088698863983,
0.26640990376472473,
0.184328094124794,
0.4133998453617096,
0.09648743271827698,
0.1391858458518982,
0.23439078032970428,
-0.344128280878067,
0.017397096380591393,
-0.27229753136634827,
0.35776230692863464,
0.30370083451271057,
-0.0722728967666626,
0.18324029445648193,
0.22782276570796967,
-0.18412010371685028,
0.19685547053813934,
0.24590514600276947,
0.24918438494205475,
-0.4332534968852997,
0.13037921488285065,
-0.2235022783279419,
-0.02217700332403183,
-0.2555288076400757,
0.06844604760408401,
-0.4019797444343567,
0.04938945174217224,
0.4003739655017853,
-0.012616005726158619,
0.3317834138870239,
-0.032313160598278046,
0.11929905414581299,
0.09707874059677124,
0.3910091817378998,
0.24670813977718353,
0.020242605358362198,
0.08527253568172455,
-0.1726856827735901,
-0.5865501761436462,
0.22215870022773743,
-0.029689107090234756,
0.1344587653875351,
-0.14345470070838928,
0.20454078912734985,
-0.03414434194564819,
-0.05421639233827591,
-0.09140144288539886,
-0.17938464879989624,
-0.26991182565689087,
-0.21812018752098083,
-0.2253098338842392,
-0.30984893441200256,
-0.05709899961948395,
0.01765880361199379,
0.1262982040643692,
-0.2951640188694,
0.19959379732608795,
-0.1299218386411667,
0.17109552025794983,
-0.07349114865064621,
0.11910457909107208,
-0.10123711824417114,
-0.08171550929546356,
0.3345755636692047,
0.21344642341136932,
0.06214592605829239,
-0.10521119832992554,
-0.069944366812706,
-0.2133234143257141,
-0.06329680234193802,
-0.1850118190050125,
0.39756283164024353,
0.13830216228961945,
0.24097827076911926,
-0.23870615661144257,
-0.10007010400295258,
-0.015463300049304962,
0.35325637459754944,
0.30009251832962036,
-0.2251817137002945,
0.0405854806303978,
0.0742223784327507,
0.03159645199775696,
0.0677160695195198,
-0.042455364018678665,
0.71193528175354,
-0.16096554696559906,
0.19566850364208221,
-0.12262391299009323,
-0.43576252460479736,
0.4972653090953827,
-0.4109678864479065,
-0.36350885033607483,
0.09996013343334198,
0.19962312281131744,
0.19740083813667297,
-0.22459840774536133,
-0.6479586362838745,
0.24028989672660828,
0.32446300983428955,
-0.1465076506137848,
-0.2898397147655487,
0.25782427191734314,
-0.06593689322471619,
-0.05601568520069122,
-0.13718625903129578,
0.4104950428009033,
0.26252323389053345,
-0.17199580371379852,
0.1602531522512436,
-0.42736130952835083
] |
https://github.com/huggingface/datasets/issues/726 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset | Hi try, to provide more information please.
Example code in a colab to reproduce the error, details on what you are trying to do and what you were expected and details on your environment (OS, PyPi packages version). | Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake. | 38 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake.
Hi try, to provide more information please.
Example code in a colab to reproduce the error, details on what you are trying to do and what you were expected and details on your environment (OS, PyPi packages version). | [
-0.4920600950717926,
0.03898797929286957,
-0.059488266706466675,
0.3662634491920471,
0.2443767637014389,
-0.03378767520189285,
0.13654375076293945,
0.5504936575889587,
-0.00061076320707798,
-0.06028178334236145,
-0.06665407121181488,
-0.03101109154522419,
0.023808903992176056,
0.3648075759410858,
-0.22990204393863678,
0.2352992743253708,
-0.105557881295681,
0.08339998126029968,
-0.39954155683517456,
-0.04019908979535103,
-0.2967326045036316,
0.11881919205188751,
-0.10129640996456146,
-0.1545276790857315,
0.045931603759527206,
0.06636454164981842,
0.2705114781856537,
0.14031577110290527,
-0.2775343060493469,
-0.21453364193439484,
0.14243711531162262,
-0.12168540060520172,
-0.1503286510705948,
0.3247877359390259,
-0.00011020527745131403,
0.25825977325439453,
0.36561453342437744,
-0.22358693182468414,
-0.27151718735694885,
-0.15602420270442963,
-0.4222054183483124,
-0.13409902155399323,
-0.18755733966827393,
-0.15281133353710175,
0.07393258810043335,
-0.2589229941368103,
-0.12428319454193115,
-0.4580080211162567,
0.0629989355802536,
0.25495895743370056,
0.2594358026981354,
0.5298959016799927,
0.42893970012664795,
0.10286320745944977,
0.2806044816970825,
-0.0724722146987915,
0.05729196220636368,
0.11741863191127777,
0.12824894487857819,
0.1596287488937378,
0.016191527247428894,
-0.08162619173526764,
-0.15226583182811737,
0.1627645492553711,
0.16232159733772278,
-0.36177071928977966,
0.009003065526485443,
-0.13751870393753052,
0.19708126783370972,
0.3654465973377228,
0.7156851291656494,
-0.18153446912765503,
-0.37900543212890625,
-0.09363417327404022,
-0.19864830374717712,
0.09847640991210938,
0.3893738090991974,
0.37785208225250244,
-0.030930859968066216,
0.0653214156627655,
-0.5064878463745117,
0.13392630219459534,
0.10919763147830963,
0.051266148686409,
0.04045294225215912,
0.07591196894645691,
0.02933717519044876,
0.008689265698194504,
-0.10229815542697906,
-0.11599856615066528,
0.3256932199001312,
-0.2656746804714203,
-0.39639899134635925,
0.1373600959777832,
-0.3631495237350464,
0.05081113427877426,
-0.14399856328964233,
0.05000566691160202,
0.3663639426231384,
0.6212912201881409,
0.24623414874076843,
0.04201086238026619,
-0.30807721614837646,
0.07781089097261429,
0.08994261920452118,
0.361391544342041,
-0.005469612777233124,
0.1346787065267563,
0.19483472406864166,
0.10071875154972076,
0.08523011207580566,
0.05211758241057396,
0.0023273020051419735,
-0.5429376363754272,
0.14480440318584442,
0.09510622918605804,
0.3429884910583496,
-0.3038516640663147,
-0.4549228549003601,
0.04721751809120178,
0.13783752918243408,
-0.1998879313468933,
0.14379490911960602,
-0.007650166749954224,
-0.08684422820806503,
0.08028359711170197,
0.3436453342437744,
0.08801232278347015,
-0.1021176353096962,
-0.20389944314956665,
-0.23109403252601624,
-0.20347502827644348,
-0.09486301988363266,
-0.06298018991947174,
0.19002941250801086,
-0.20039252936840057,
0.6136526465415955,
-0.09170522540807724,
0.0911763608455658,
-0.11073572188615799,
0.01294107548892498,
0.04645407944917679,
0.04094696789979935,
0.32191142439842224,
-0.1849278211593628,
0.013551542535424232,
0.11998845636844635,
0.15284641087055206,
-0.09410341084003448,
0.25843462347984314,
-0.23438915610313416,
-0.3227926790714264,
-0.18615323305130005,
0.21907822787761688,
-0.3183867335319519,
0.047287195920944214,
-0.16845208406448364,
-0.3878966271877289,
0.31566402316093445,
-0.26227712631225586,
-0.06020914763212204,
-0.2444445639848709,
-0.17596077919006348,
-0.1386687457561493,
0.3337227404117584,
0.222080796957016,
-0.19107306003570557,
0.12604908645153046,
0.16829708218574524,
-0.14563460648059845,
0.04637477546930313,
0.23194727301597595,
-0.13132357597351074,
0.09054911136627197,
-0.24812781810760498,
-0.024245914071798325,
0.0881311297416687,
-0.5387324690818787,
-0.4547848403453827,
-0.0014984257286414504,
0.20151068270206451,
0.0489920973777771,
0.1314413845539093,
-0.16128872334957123,
-0.07246535271406174,
-0.27142447233200073,
-0.2563686966896057,
0.2582874298095703,
-0.034631580114364624,
0.38931387662887573,
-0.24383564293384552,
-0.29655537009239197,
0.06668023020029068,
0.11800223588943481,
-0.049260083585977554,
-0.0816771611571312,
0.16936366260051727,
-0.009562707506120205,
0.2051241099834442,
0.05321679636836052,
0.03258513659238815,
0.10854162275791168,
0.12497523427009583,
-0.17385870218276978,
-0.042623862624168396,
-0.024978619068861008,
-0.196618914604187,
0.25510144233703613,
-0.07079771161079407,
0.13201028108596802,
0.06275178492069244,
0.17827892303466797,
-0.44891905784606934,
-0.17985151708126068,
-0.20493479073047638,
0.08680815994739532,
0.15477420389652252,
0.12019876390695572,
-0.1345563679933548,
0.031544867902994156,
0.09744247794151306,
0.16824932396411896,
-0.16912133991718292,
0.055603329092264175,
-0.22891774773597717,
0.2009185403585434,
-0.024428097531199455,
-0.1356211006641388,
0.42638689279556274,
0.04833299666643143,
-0.09074660390615463,
0.06490910798311234,
-0.41731229424476624,
0.48934367299079895,
-0.06213909015059471,
0.034702807664871216,
0.09463440626859665,
0.45190727710723877,
0.007932707667350769,
-0.35282111167907715,
0.0029318146407604218,
0.02977422997355461,
0.1392335146665573,
-0.1301710605621338,
0.27138057351112366,
-0.0893518328666687,
0.036214474588632584,
-0.1035483106970787,
-0.15821312367916107,
-0.1385202258825302,
0.025493232533335686,
-0.08584560453891754,
-0.0036497507244348526,
-0.15472173690795898,
0.036335255950689316,
0.2815307676792145,
0.20902597904205322,
0.18244166672229767,
0.3501012325286865,
-0.24961420893669128,
0.391729474067688,
0.052399519830942154,
0.0041366927325725555,
0.13145245611667633,
-0.03018658608198166,
-0.054748617112636566,
-0.12313078343868256,
0.2424139827489853,
0.4796057939529419,
0.08813653141260147,
0.07107079029083252,
0.10279148072004318,
0.08280709385871887,
-0.06660342216491699,
0.24181175231933594,
0.19843724370002747,
0.35641244053840637,
0.4244212508201599,
-0.17830121517181396,
-0.11445809155702591,
-0.2286888062953949,
0.15820780396461487,
0.12662135064601898,
0.2964770197868347,
-0.5625896453857422,
-0.23324191570281982,
-0.3110377788543701,
0.12629064917564392,
-0.055384181439876556,
0.03164543956518173,
-0.31437790393829346,
-0.18024323880672455,
-0.16896308958530426,
0.10818588733673096,
-0.047539569437503815,
0.19516979157924652,
-0.14588402211666107,
0.047733232378959656,
0.310332328081131,
0.04439816623926163,
0.15167437493801117,
-0.0028466731309890747,
-0.1123989149928093,
0.08653534948825836,
0.674687385559082,
-0.11400836706161499,
0.3397878110408783,
-0.4775013327598572,
0.1271572709083557,
-0.38007888197898865,
0.04265888035297394,
-0.086310014128685,
-0.08931714296340942,
0.2315172553062439,
0.22026538848876953,
0.27558082342147827,
0.07884002476930618,
-0.20324701070785522,
0.03590206429362297,
0.0523618683218956,
-0.41629552841186523,
0.030953817069530487,
-0.06365399807691574,
-0.13200360536575317,
0.10256451368331909,
-0.04233226925134659,
0.04323453828692436,
-0.38937634229660034,
-0.07244215905666351,
-0.03456903249025345,
0.10052396357059479,
0.09629376977682114,
0.08171897381544113,
-0.05085405707359314,
0.09960468858480453,
0.2866056561470032,
-0.1770675778388977,
-0.8880888819694519,
0.3540099561214447,
-0.16702909767627716,
-0.3587040901184082,
-0.021413806825876236,
0.14227993786334991,
0.23747436702251434,
0.02888987585902214,
-0.4529920220375061,
-0.18521025776863098,
-0.21916915476322174,
-0.02743353322148323,
0.06383850425481796,
0.1969691812992096,
0.11625440418720245,
0.0691952258348465,
-0.08237412571907043,
-0.3447432219982147,
-0.22738361358642578,
0.10996827483177185,
-0.2630300223827362,
0.5279319286346436,
-0.010122593492269516,
0.06297384202480316,
0.009014125913381577,
0.1534837782382965,
0.41101861000061035,
-0.17774131894111633,
0.42435479164123535,
0.24266448616981506,
0.32681795954704285,
-0.21497154235839844,
-0.11420904099941254,
0.016531972214579582,
-0.1049811840057373,
0.3337227702140808,
0.20431363582611084,
0.06277448683977127,
0.25876086950302124,
-0.16101625561714172,
-0.02751176990568638,
-0.5019212365150452,
-0.31192559003829956,
-0.12613658607006073,
-0.47713983058929443,
0.15790951251983643,
0.0015204455703496933,
-0.04577898606657982,
-0.1766190081834793,
-0.2818221151828766,
0.12433812022209167,
0.05946262925863266,
-0.011807672679424286,
0.0062620374374091625,
-0.1055888682603836,
0.11246959120035172,
-0.04350493103265762,
0.3818662762641907,
0.15931950509548187,
0.44641467928886414,
0.03258613124489784,
-0.03944725915789604,
-0.11863845586776733,
0.20158155262470245,
0.17719735205173492,
-0.1391030251979828,
0.32494133710861206,
0.0442027784883976,
0.13096900284290314,
-0.19883987307548523,
-0.20676203072071075,
0.2606893479824066,
-0.023609815165400505,
0.3816582262516022,
-0.11965909600257874,
-0.42885443568229675,
0.029806483536958694,
0.22819571197032928,
0.4090625047683716,
-0.15623721480369568,
-0.13942083716392517,
-0.2068852037191391,
-0.3080565929412842,
-0.340219646692276,
-0.36947381496429443,
0.13380266726016998,
0.28980812430381775,
-0.153035968542099,
-0.032877884805202484,
-0.1857862025499344,
-0.2667185068130493,
0.3404832184314728,
-0.1804639995098114,
0.4067647159099579,
0.010700454004108906,
0.32089751958847046,
0.021331574767827988,
0.23193374276161194,
0.44217684864997864,
0.7271000146865845,
-0.1791527420282364,
-0.21855980157852173,
-0.053612805902957916,
-0.15412704646587372,
-0.20871058106422424,
0.007136359810829163,
0.03063097596168518,
-0.25574997067451477,
0.0924115777015686,
-0.05743002891540527,
0.04436574876308441,
0.06087427958846092,
0.1258152425289154,
0.06997566670179367,
-0.4000614583492279,
-0.2998197376728058,
0.2181069254875183,
-0.15618963539600372,
0.0378430038690567,
0.5064828395843506,
0.06762370467185974,
-0.0924675390124321,
0.06693091988563538,
0.13194262981414795,
0.6712409853935242,
-0.14443956315517426,
-0.13369452953338623,
0.04413933306932449,
-0.174080491065979,
-0.23784050345420837,
0.03186293691396713,
-0.21227677166461945,
-0.3817216753959656,
-0.5945903658866882,
0.09307155758142471,
-0.2704686224460602,
0.03290072828531265,
0.22460147738456726,
0.06613779067993164,
0.05677247792482376,
-0.016789615154266357,
-0.0726986974477768,
0.06999337673187256,
0.31502941250801086,
-0.31023693084716797,
0.00562396552413702,
0.06747044622898102,
0.15057812631130219,
-0.2651734948158264,
0.2959449589252472,
-0.06670694798231125,
-0.1344788670539856,
-0.05335448682308197,
-0.22417116165161133,
-0.6046838164329529,
0.06335709244012833,
-0.28824344277381897,
0.2968218922615051,
0.25084537267684937,
0.04943118989467621,
0.15745608508586884,
0.40118521451950073,
0.44368869066238403,
0.269525945186615,
-0.2344842255115509,
0.17275945842266083,
0.36235281825065613,
-0.014581729657948017,
-0.006413680501282215,
0.21171441674232483,
0.4534875452518463,
-0.1813887059688568,
-0.23891758918762207,
0.0377388671040535,
-0.09762895852327347,
-0.42824453115463257,
0.1780988872051239,
-0.28902387619018555,
0.1226876750588417,
-0.4741532504558563,
-0.044815778732299805,
-0.16104631125926971,
0.049567487090826035,
-0.11707718670368195,
0.1266118586063385,
0.30155688524246216,
-0.025820566341280937,
0.39387351274490356,
0.28724971413612366,
-0.4737056791782379,
0.08181129395961761,
0.43545347452163696,
-0.2639753520488739,
-0.06568954885005951,
0.7143595218658447,
-0.022422034293413162,
-0.11567935347557068,
-0.08455532044172287,
0.33561959862709045,
0.18993665277957916,
-0.4613093435764313,
0.1759454905986786,
-0.1370144635438919,
0.16763974726200104,
-0.02397819049656391,
0.5160509943962097,
0.45670634508132935,
0.3805167078971863,
0.32907718420028687,
-0.5187921524047852,
-0.12003687769174576,
0.03440110385417938,
-0.10448326170444489,
0.39243048429489136,
-0.16335466504096985,
0.0690324604511261,
0.03794819116592407,
0.010570266284048557,
-0.2830747365951538,
0.15002267062664032,
-0.3312317132949829,
0.051783885806798935,
0.13761520385742188,
0.057762518525123596,
0.09154108166694641,
-0.09882020950317383,
0.15344767272472382,
-0.15289421379566193,
-0.3658684492111206,
-0.21940049529075623,
-0.09376294910907745,
0.11551947146654129,
0.06070972979068756,
-0.378583163022995,
0.19934721291065216,
-0.3264404535293579,
-0.1617555320262909,
-0.1271056830883026,
0.006526516750454903,
0.03308994323015213,
-0.036198556423187256,
0.02743496745824814,
0.22514428198337555,
-0.024194948375225067,
0.0211055688560009,
0.056758977472782135,
-0.36257728934288025,
0.04970067739486694,
0.016909515485167503,
0.11009577661752701,
0.05229761078953743,
-0.10360279679298401,
0.0623391754925251,
0.08431071043014526,
-0.02418500930070877,
0.15176323056221008,
0.3195522129535675,
-0.20273791253566742,
0.06480380892753601,
0.4826674163341522,
0.30693888664245605,
0.02040582150220871,
-0.2247437685728073,
-0.12361110746860504,
0.1812742054462433,
0.19586366415023804,
-0.38937681913375854,
-0.04561525583267212,
0.018976395949721336,
0.22286567091941833,
-0.006358746439218521,
-0.11063457280397415,
0.2290058732032776,
-0.26771295070648193,
-0.06888025999069214,
0.00971912033855915,
0.20575954020023346,
0.24829764664173126,
0.29309210181236267,
0.5799326300621033,
-0.17591352760791779,
-0.10938259959220886,
-0.05683748424053192,
-0.17466098070144653,
0.09777426719665527,
0.013567399233579636,
-0.1359003484249115,
0.49298080801963806,
-0.3232513666152954,
0.2292829155921936,
-0.22666582465171814,
-0.708422839641571,
0.39198535680770874,
-0.14210090041160583,
0.07540445029735565,
0.004791572690010071,
0.2124481350183487,
0.24480357766151428,
-0.04973185807466507,
0.15012763440608978,
-0.3210781216621399,
0.419126957654953,
0.09328991174697876,
-0.02968008629977703,
-0.20519590377807617,
-0.26702889800071716,
0.10966961085796356,
0.006323367357254028,
-0.10578858852386475,
0.12217569351196289,
-0.0712563544511795,
0.16273218393325806,
-0.3029366731643677,
-0.12165044248104095,
0.05329861864447594,
-0.1697726845741272,
-0.03555866330862045,
-0.21466830372810364,
0.2357458919286728,
0.2564382553100586,
-0.17720206081867218,
0.3424808382987976,
0.7380921840667725,
0.371566504240036,
0.4830288589000702,
0.1371569037437439,
-0.1722055822610855,
0.1276463121175766,
0.12740738689899445,
-0.039328306913375854,
0.23277054727077484,
0.06349615752696991,
-0.0034287236630916595,
0.3761824369430542,
0.14738303422927856,
-0.03419603034853935,
-0.30397114157676697,
-0.2243894785642624,
-0.24511182308197021,
0.03944730386137962,
0.28845322132110596,
0.0391378253698349,
0.026352085173130035,
-0.24627915024757385,
0.19714830815792084,
-0.02846323698759079,
-0.03424510359764099,
0.20459027588367462,
-0.008646531961858273,
0.14362969994544983,
-0.016788531094789505,
0.0952034592628479,
-0.1158066838979721,
0.4963769018650055,
0.3752220571041107,
-0.1486889123916626,
-0.1958691030740738,
-0.37051457166671753,
-0.5975675582885742,
0.2106410562992096,
0.14323802292346954,
-0.10414475947618484,
0.17825715243816376,
-0.037259552627801895,
0.06176599860191345,
-0.10676498711109161,
0.4922026991844177,
0.013106048107147217,
-0.1966298222541809,
0.06174563616514206,
-0.24416479468345642,
-0.21797509491443634,
-0.22817446291446686,
-0.20181745290756226,
-0.043128494173288345,
-0.36144405603408813,
0.19158965349197388,
0.06508417427539825,
0.15798547863960266,
-0.19301962852478027,
0.0880778431892395,
0.048071663826704025,
0.08480077981948853,
0.14679032564163208,
-0.0055308472365140915,
0.4740922749042511,
0.05359021574258804,
-0.06333020329475403,
-0.09726227819919586,
-0.19116514921188354,
-0.16080020368099213,
0.5104886889457703,
-0.03388775512576103,
0.20856992900371552,
-0.01882626861333847,
-0.06992784142494202,
-0.2319626361131668,
0.37705108523368835,
-0.16403210163116455,
-0.13329415023326874,
-0.4568926990032196,
-0.20699352025985718,
-0.022743552923202515,
-0.2393718957901001,
0.3742823600769043,
-0.10857859998941422,
-0.2206009328365326,
0.3657267391681671,
0.011338822543621063,
-0.38287103176116943,
0.45739561319351196,
0.06344752013683319,
0.03669533506035805,
-0.14755746722221375,
0.056918706744909286,
-0.13455790281295776,
-0.04795151948928833,
-0.5954980254173279,
0.26969897747039795,
0.47910964488983154,
0.005198772996664047,
-0.03468996286392212,
0.23990431427955627,
-0.10953167080879211,
0.21110780537128448,
0.04919685795903206,
0.1587296426296234,
-0.030801761895418167,
-0.237563356757164,
-0.27001503109931946,
-0.038995955139398575
] |
https://github.com/huggingface/datasets/issues/726 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset | > Hi try, to provide more information please.
>
> Example code in a colab to reproduce the error, details on what you are trying to do and what you were expected and details on your environment (OS, PyPi packages version).
I have update the description, sorry for the incomplete issue by mistake. | Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake. | 53 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake.
> Hi try, to provide more information please.
>
> Example code in a colab to reproduce the error, details on what you are trying to do and what you were expected and details on your environment (OS, PyPi packages version).
I have update the description, sorry for the incomplete issue by mistake. | [
-0.4920600950717926,
0.03898797929286957,
-0.059488266706466675,
0.3662634491920471,
0.2443767637014389,
-0.03378767520189285,
0.13654375076293945,
0.5504936575889587,
-0.00061076320707798,
-0.06028178334236145,
-0.06665407121181488,
-0.03101109154522419,
0.023808903992176056,
0.3648075759410858,
-0.22990204393863678,
0.2352992743253708,
-0.105557881295681,
0.08339998126029968,
-0.39954155683517456,
-0.04019908979535103,
-0.2967326045036316,
0.11881919205188751,
-0.10129640996456146,
-0.1545276790857315,
0.045931603759527206,
0.06636454164981842,
0.2705114781856537,
0.14031577110290527,
-0.2775343060493469,
-0.21453364193439484,
0.14243711531162262,
-0.12168540060520172,
-0.1503286510705948,
0.3247877359390259,
-0.00011020527745131403,
0.25825977325439453,
0.36561453342437744,
-0.22358693182468414,
-0.27151718735694885,
-0.15602420270442963,
-0.4222054183483124,
-0.13409902155399323,
-0.18755733966827393,
-0.15281133353710175,
0.07393258810043335,
-0.2589229941368103,
-0.12428319454193115,
-0.4580080211162567,
0.0629989355802536,
0.25495895743370056,
0.2594358026981354,
0.5298959016799927,
0.42893970012664795,
0.10286320745944977,
0.2806044816970825,
-0.0724722146987915,
0.05729196220636368,
0.11741863191127777,
0.12824894487857819,
0.1596287488937378,
0.016191527247428894,
-0.08162619173526764,
-0.15226583182811737,
0.1627645492553711,
0.16232159733772278,
-0.36177071928977966,
0.009003065526485443,
-0.13751870393753052,
0.19708126783370972,
0.3654465973377228,
0.7156851291656494,
-0.18153446912765503,
-0.37900543212890625,
-0.09363417327404022,
-0.19864830374717712,
0.09847640991210938,
0.3893738090991974,
0.37785208225250244,
-0.030930859968066216,
0.0653214156627655,
-0.5064878463745117,
0.13392630219459534,
0.10919763147830963,
0.051266148686409,
0.04045294225215912,
0.07591196894645691,
0.02933717519044876,
0.008689265698194504,
-0.10229815542697906,
-0.11599856615066528,
0.3256932199001312,
-0.2656746804714203,
-0.39639899134635925,
0.1373600959777832,
-0.3631495237350464,
0.05081113427877426,
-0.14399856328964233,
0.05000566691160202,
0.3663639426231384,
0.6212912201881409,
0.24623414874076843,
0.04201086238026619,
-0.30807721614837646,
0.07781089097261429,
0.08994261920452118,
0.361391544342041,
-0.005469612777233124,
0.1346787065267563,
0.19483472406864166,
0.10071875154972076,
0.08523011207580566,
0.05211758241057396,
0.0023273020051419735,
-0.5429376363754272,
0.14480440318584442,
0.09510622918605804,
0.3429884910583496,
-0.3038516640663147,
-0.4549228549003601,
0.04721751809120178,
0.13783752918243408,
-0.1998879313468933,
0.14379490911960602,
-0.007650166749954224,
-0.08684422820806503,
0.08028359711170197,
0.3436453342437744,
0.08801232278347015,
-0.1021176353096962,
-0.20389944314956665,
-0.23109403252601624,
-0.20347502827644348,
-0.09486301988363266,
-0.06298018991947174,
0.19002941250801086,
-0.20039252936840057,
0.6136526465415955,
-0.09170522540807724,
0.0911763608455658,
-0.11073572188615799,
0.01294107548892498,
0.04645407944917679,
0.04094696789979935,
0.32191142439842224,
-0.1849278211593628,
0.013551542535424232,
0.11998845636844635,
0.15284641087055206,
-0.09410341084003448,
0.25843462347984314,
-0.23438915610313416,
-0.3227926790714264,
-0.18615323305130005,
0.21907822787761688,
-0.3183867335319519,
0.047287195920944214,
-0.16845208406448364,
-0.3878966271877289,
0.31566402316093445,
-0.26227712631225586,
-0.06020914763212204,
-0.2444445639848709,
-0.17596077919006348,
-0.1386687457561493,
0.3337227404117584,
0.222080796957016,
-0.19107306003570557,
0.12604908645153046,
0.16829708218574524,
-0.14563460648059845,
0.04637477546930313,
0.23194727301597595,
-0.13132357597351074,
0.09054911136627197,
-0.24812781810760498,
-0.024245914071798325,
0.0881311297416687,
-0.5387324690818787,
-0.4547848403453827,
-0.0014984257286414504,
0.20151068270206451,
0.0489920973777771,
0.1314413845539093,
-0.16128872334957123,
-0.07246535271406174,
-0.27142447233200073,
-0.2563686966896057,
0.2582874298095703,
-0.034631580114364624,
0.38931387662887573,
-0.24383564293384552,
-0.29655537009239197,
0.06668023020029068,
0.11800223588943481,
-0.049260083585977554,
-0.0816771611571312,
0.16936366260051727,
-0.009562707506120205,
0.2051241099834442,
0.05321679636836052,
0.03258513659238815,
0.10854162275791168,
0.12497523427009583,
-0.17385870218276978,
-0.042623862624168396,
-0.024978619068861008,
-0.196618914604187,
0.25510144233703613,
-0.07079771161079407,
0.13201028108596802,
0.06275178492069244,
0.17827892303466797,
-0.44891905784606934,
-0.17985151708126068,
-0.20493479073047638,
0.08680815994739532,
0.15477420389652252,
0.12019876390695572,
-0.1345563679933548,
0.031544867902994156,
0.09744247794151306,
0.16824932396411896,
-0.16912133991718292,
0.055603329092264175,
-0.22891774773597717,
0.2009185403585434,
-0.024428097531199455,
-0.1356211006641388,
0.42638689279556274,
0.04833299666643143,
-0.09074660390615463,
0.06490910798311234,
-0.41731229424476624,
0.48934367299079895,
-0.06213909015059471,
0.034702807664871216,
0.09463440626859665,
0.45190727710723877,
0.007932707667350769,
-0.35282111167907715,
0.0029318146407604218,
0.02977422997355461,
0.1392335146665573,
-0.1301710605621338,
0.27138057351112366,
-0.0893518328666687,
0.036214474588632584,
-0.1035483106970787,
-0.15821312367916107,
-0.1385202258825302,
0.025493232533335686,
-0.08584560453891754,
-0.0036497507244348526,
-0.15472173690795898,
0.036335255950689316,
0.2815307676792145,
0.20902597904205322,
0.18244166672229767,
0.3501012325286865,
-0.24961420893669128,
0.391729474067688,
0.052399519830942154,
0.0041366927325725555,
0.13145245611667633,
-0.03018658608198166,
-0.054748617112636566,
-0.12313078343868256,
0.2424139827489853,
0.4796057939529419,
0.08813653141260147,
0.07107079029083252,
0.10279148072004318,
0.08280709385871887,
-0.06660342216491699,
0.24181175231933594,
0.19843724370002747,
0.35641244053840637,
0.4244212508201599,
-0.17830121517181396,
-0.11445809155702591,
-0.2286888062953949,
0.15820780396461487,
0.12662135064601898,
0.2964770197868347,
-0.5625896453857422,
-0.23324191570281982,
-0.3110377788543701,
0.12629064917564392,
-0.055384181439876556,
0.03164543956518173,
-0.31437790393829346,
-0.18024323880672455,
-0.16896308958530426,
0.10818588733673096,
-0.047539569437503815,
0.19516979157924652,
-0.14588402211666107,
0.047733232378959656,
0.310332328081131,
0.04439816623926163,
0.15167437493801117,
-0.0028466731309890747,
-0.1123989149928093,
0.08653534948825836,
0.674687385559082,
-0.11400836706161499,
0.3397878110408783,
-0.4775013327598572,
0.1271572709083557,
-0.38007888197898865,
0.04265888035297394,
-0.086310014128685,
-0.08931714296340942,
0.2315172553062439,
0.22026538848876953,
0.27558082342147827,
0.07884002476930618,
-0.20324701070785522,
0.03590206429362297,
0.0523618683218956,
-0.41629552841186523,
0.030953817069530487,
-0.06365399807691574,
-0.13200360536575317,
0.10256451368331909,
-0.04233226925134659,
0.04323453828692436,
-0.38937634229660034,
-0.07244215905666351,
-0.03456903249025345,
0.10052396357059479,
0.09629376977682114,
0.08171897381544113,
-0.05085405707359314,
0.09960468858480453,
0.2866056561470032,
-0.1770675778388977,
-0.8880888819694519,
0.3540099561214447,
-0.16702909767627716,
-0.3587040901184082,
-0.021413806825876236,
0.14227993786334991,
0.23747436702251434,
0.02888987585902214,
-0.4529920220375061,
-0.18521025776863098,
-0.21916915476322174,
-0.02743353322148323,
0.06383850425481796,
0.1969691812992096,
0.11625440418720245,
0.0691952258348465,
-0.08237412571907043,
-0.3447432219982147,
-0.22738361358642578,
0.10996827483177185,
-0.2630300223827362,
0.5279319286346436,
-0.010122593492269516,
0.06297384202480316,
0.009014125913381577,
0.1534837782382965,
0.41101861000061035,
-0.17774131894111633,
0.42435479164123535,
0.24266448616981506,
0.32681795954704285,
-0.21497154235839844,
-0.11420904099941254,
0.016531972214579582,
-0.1049811840057373,
0.3337227702140808,
0.20431363582611084,
0.06277448683977127,
0.25876086950302124,
-0.16101625561714172,
-0.02751176990568638,
-0.5019212365150452,
-0.31192559003829956,
-0.12613658607006073,
-0.47713983058929443,
0.15790951251983643,
0.0015204455703496933,
-0.04577898606657982,
-0.1766190081834793,
-0.2818221151828766,
0.12433812022209167,
0.05946262925863266,
-0.011807672679424286,
0.0062620374374091625,
-0.1055888682603836,
0.11246959120035172,
-0.04350493103265762,
0.3818662762641907,
0.15931950509548187,
0.44641467928886414,
0.03258613124489784,
-0.03944725915789604,
-0.11863845586776733,
0.20158155262470245,
0.17719735205173492,
-0.1391030251979828,
0.32494133710861206,
0.0442027784883976,
0.13096900284290314,
-0.19883987307548523,
-0.20676203072071075,
0.2606893479824066,
-0.023609815165400505,
0.3816582262516022,
-0.11965909600257874,
-0.42885443568229675,
0.029806483536958694,
0.22819571197032928,
0.4090625047683716,
-0.15623721480369568,
-0.13942083716392517,
-0.2068852037191391,
-0.3080565929412842,
-0.340219646692276,
-0.36947381496429443,
0.13380266726016998,
0.28980812430381775,
-0.153035968542099,
-0.032877884805202484,
-0.1857862025499344,
-0.2667185068130493,
0.3404832184314728,
-0.1804639995098114,
0.4067647159099579,
0.010700454004108906,
0.32089751958847046,
0.021331574767827988,
0.23193374276161194,
0.44217684864997864,
0.7271000146865845,
-0.1791527420282364,
-0.21855980157852173,
-0.053612805902957916,
-0.15412704646587372,
-0.20871058106422424,
0.007136359810829163,
0.03063097596168518,
-0.25574997067451477,
0.0924115777015686,
-0.05743002891540527,
0.04436574876308441,
0.06087427958846092,
0.1258152425289154,
0.06997566670179367,
-0.4000614583492279,
-0.2998197376728058,
0.2181069254875183,
-0.15618963539600372,
0.0378430038690567,
0.5064828395843506,
0.06762370467185974,
-0.0924675390124321,
0.06693091988563538,
0.13194262981414795,
0.6712409853935242,
-0.14443956315517426,
-0.13369452953338623,
0.04413933306932449,
-0.174080491065979,
-0.23784050345420837,
0.03186293691396713,
-0.21227677166461945,
-0.3817216753959656,
-0.5945903658866882,
0.09307155758142471,
-0.2704686224460602,
0.03290072828531265,
0.22460147738456726,
0.06613779067993164,
0.05677247792482376,
-0.016789615154266357,
-0.0726986974477768,
0.06999337673187256,
0.31502941250801086,
-0.31023693084716797,
0.00562396552413702,
0.06747044622898102,
0.15057812631130219,
-0.2651734948158264,
0.2959449589252472,
-0.06670694798231125,
-0.1344788670539856,
-0.05335448682308197,
-0.22417116165161133,
-0.6046838164329529,
0.06335709244012833,
-0.28824344277381897,
0.2968218922615051,
0.25084537267684937,
0.04943118989467621,
0.15745608508586884,
0.40118521451950073,
0.44368869066238403,
0.269525945186615,
-0.2344842255115509,
0.17275945842266083,
0.36235281825065613,
-0.014581729657948017,
-0.006413680501282215,
0.21171441674232483,
0.4534875452518463,
-0.1813887059688568,
-0.23891758918762207,
0.0377388671040535,
-0.09762895852327347,
-0.42824453115463257,
0.1780988872051239,
-0.28902387619018555,
0.1226876750588417,
-0.4741532504558563,
-0.044815778732299805,
-0.16104631125926971,
0.049567487090826035,
-0.11707718670368195,
0.1266118586063385,
0.30155688524246216,
-0.025820566341280937,
0.39387351274490356,
0.28724971413612366,
-0.4737056791782379,
0.08181129395961761,
0.43545347452163696,
-0.2639753520488739,
-0.06568954885005951,
0.7143595218658447,
-0.022422034293413162,
-0.11567935347557068,
-0.08455532044172287,
0.33561959862709045,
0.18993665277957916,
-0.4613093435764313,
0.1759454905986786,
-0.1370144635438919,
0.16763974726200104,
-0.02397819049656391,
0.5160509943962097,
0.45670634508132935,
0.3805167078971863,
0.32907718420028687,
-0.5187921524047852,
-0.12003687769174576,
0.03440110385417938,
-0.10448326170444489,
0.39243048429489136,
-0.16335466504096985,
0.0690324604511261,
0.03794819116592407,
0.010570266284048557,
-0.2830747365951538,
0.15002267062664032,
-0.3312317132949829,
0.051783885806798935,
0.13761520385742188,
0.057762518525123596,
0.09154108166694641,
-0.09882020950317383,
0.15344767272472382,
-0.15289421379566193,
-0.3658684492111206,
-0.21940049529075623,
-0.09376294910907745,
0.11551947146654129,
0.06070972979068756,
-0.378583163022995,
0.19934721291065216,
-0.3264404535293579,
-0.1617555320262909,
-0.1271056830883026,
0.006526516750454903,
0.03308994323015213,
-0.036198556423187256,
0.02743496745824814,
0.22514428198337555,
-0.024194948375225067,
0.0211055688560009,
0.056758977472782135,
-0.36257728934288025,
0.04970067739486694,
0.016909515485167503,
0.11009577661752701,
0.05229761078953743,
-0.10360279679298401,
0.0623391754925251,
0.08431071043014526,
-0.02418500930070877,
0.15176323056221008,
0.3195522129535675,
-0.20273791253566742,
0.06480380892753601,
0.4826674163341522,
0.30693888664245605,
0.02040582150220871,
-0.2247437685728073,
-0.12361110746860504,
0.1812742054462433,
0.19586366415023804,
-0.38937681913375854,
-0.04561525583267212,
0.018976395949721336,
0.22286567091941833,
-0.006358746439218521,
-0.11063457280397415,
0.2290058732032776,
-0.26771295070648193,
-0.06888025999069214,
0.00971912033855915,
0.20575954020023346,
0.24829764664173126,
0.29309210181236267,
0.5799326300621033,
-0.17591352760791779,
-0.10938259959220886,
-0.05683748424053192,
-0.17466098070144653,
0.09777426719665527,
0.013567399233579636,
-0.1359003484249115,
0.49298080801963806,
-0.3232513666152954,
0.2292829155921936,
-0.22666582465171814,
-0.708422839641571,
0.39198535680770874,
-0.14210090041160583,
0.07540445029735565,
0.004791572690010071,
0.2124481350183487,
0.24480357766151428,
-0.04973185807466507,
0.15012763440608978,
-0.3210781216621399,
0.419126957654953,
0.09328991174697876,
-0.02968008629977703,
-0.20519590377807617,
-0.26702889800071716,
0.10966961085796356,
0.006323367357254028,
-0.10578858852386475,
0.12217569351196289,
-0.0712563544511795,
0.16273218393325806,
-0.3029366731643677,
-0.12165044248104095,
0.05329861864447594,
-0.1697726845741272,
-0.03555866330862045,
-0.21466830372810364,
0.2357458919286728,
0.2564382553100586,
-0.17720206081867218,
0.3424808382987976,
0.7380921840667725,
0.371566504240036,
0.4830288589000702,
0.1371569037437439,
-0.1722055822610855,
0.1276463121175766,
0.12740738689899445,
-0.039328306913375854,
0.23277054727077484,
0.06349615752696991,
-0.0034287236630916595,
0.3761824369430542,
0.14738303422927856,
-0.03419603034853935,
-0.30397114157676697,
-0.2243894785642624,
-0.24511182308197021,
0.03944730386137962,
0.28845322132110596,
0.0391378253698349,
0.026352085173130035,
-0.24627915024757385,
0.19714830815792084,
-0.02846323698759079,
-0.03424510359764099,
0.20459027588367462,
-0.008646531961858273,
0.14362969994544983,
-0.016788531094789505,
0.0952034592628479,
-0.1158066838979721,
0.4963769018650055,
0.3752220571041107,
-0.1486889123916626,
-0.1958691030740738,
-0.37051457166671753,
-0.5975675582885742,
0.2106410562992096,
0.14323802292346954,
-0.10414475947618484,
0.17825715243816376,
-0.037259552627801895,
0.06176599860191345,
-0.10676498711109161,
0.4922026991844177,
0.013106048107147217,
-0.1966298222541809,
0.06174563616514206,
-0.24416479468345642,
-0.21797509491443634,
-0.22817446291446686,
-0.20181745290756226,
-0.043128494173288345,
-0.36144405603408813,
0.19158965349197388,
0.06508417427539825,
0.15798547863960266,
-0.19301962852478027,
0.0880778431892395,
0.048071663826704025,
0.08480077981948853,
0.14679032564163208,
-0.0055308472365140915,
0.4740922749042511,
0.05359021574258804,
-0.06333020329475403,
-0.09726227819919586,
-0.19116514921188354,
-0.16080020368099213,
0.5104886889457703,
-0.03388775512576103,
0.20856992900371552,
-0.01882626861333847,
-0.06992784142494202,
-0.2319626361131668,
0.37705108523368835,
-0.16403210163116455,
-0.13329415023326874,
-0.4568926990032196,
-0.20699352025985718,
-0.022743552923202515,
-0.2393718957901001,
0.3742823600769043,
-0.10857859998941422,
-0.2206009328365326,
0.3657267391681671,
0.011338822543621063,
-0.38287103176116943,
0.45739561319351196,
0.06344752013683319,
0.03669533506035805,
-0.14755746722221375,
0.056918706744909286,
-0.13455790281295776,
-0.04795151948928833,
-0.5954980254173279,
0.26969897747039795,
0.47910964488983154,
0.005198772996664047,
-0.03468996286392212,
0.23990431427955627,
-0.10953167080879211,
0.21110780537128448,
0.04919685795903206,
0.1587296426296234,
-0.030801761895418167,
-0.237563356757164,
-0.27001503109931946,
-0.038995955139398575
] |
https://github.com/huggingface/datasets/issues/726 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset | Hi, I have manually downloaded the compressed dataset `openwebtext.tar.xz' and use the following command to preprocess the examples:
```
>>> dataset = load_dataset('/home/admin/workspace/datasets/datasets-master/datasets-master/datasets/openwebtext', data_dir='/home/admin/workspace/datasets')
Using custom data configuration default
Downloading and preparing dataset openwebtext/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/admin/.cache/huggingface/datasets/openwebtext/default/0.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Dataset openwebtext downloaded and prepared to /home/admin/.cache/huggingface/datasets/openwebtext/default/0.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02. Subsequent calls will reuse this data.
>>> len(dataset['train'])
74571
>>>
```
The size of the pre-processed example file is only 354MB, however the processed bookcorpus dataset is 4.6g. Are there any problems? | Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake. | 87 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake.
Hi, I have manually downloaded the compressed dataset `openwebtext.tar.xz' and use the following command to preprocess the examples:
```
>>> dataset = load_dataset('/home/admin/workspace/datasets/datasets-master/datasets-master/datasets/openwebtext', data_dir='/home/admin/workspace/datasets')
Using custom data configuration default
Downloading and preparing dataset openwebtext/default (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/admin/.cache/huggingface/datasets/openwebtext/default/0.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Dataset openwebtext downloaded and prepared to /home/admin/.cache/huggingface/datasets/openwebtext/default/0.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02. Subsequent calls will reuse this data.
>>> len(dataset['train'])
74571
>>>
```
The size of the pre-processed example file is only 354MB, however the processed bookcorpus dataset is 4.6g. Are there any problems? | [
-0.4920600950717926,
0.03898797929286957,
-0.059488266706466675,
0.3662634491920471,
0.2443767637014389,
-0.03378767520189285,
0.13654375076293945,
0.5504936575889587,
-0.00061076320707798,
-0.06028178334236145,
-0.06665407121181488,
-0.03101109154522419,
0.023808903992176056,
0.3648075759410858,
-0.22990204393863678,
0.2352992743253708,
-0.105557881295681,
0.08339998126029968,
-0.39954155683517456,
-0.04019908979535103,
-0.2967326045036316,
0.11881919205188751,
-0.10129640996456146,
-0.1545276790857315,
0.045931603759527206,
0.06636454164981842,
0.2705114781856537,
0.14031577110290527,
-0.2775343060493469,
-0.21453364193439484,
0.14243711531162262,
-0.12168540060520172,
-0.1503286510705948,
0.3247877359390259,
-0.00011020527745131403,
0.25825977325439453,
0.36561453342437744,
-0.22358693182468414,
-0.27151718735694885,
-0.15602420270442963,
-0.4222054183483124,
-0.13409902155399323,
-0.18755733966827393,
-0.15281133353710175,
0.07393258810043335,
-0.2589229941368103,
-0.12428319454193115,
-0.4580080211162567,
0.0629989355802536,
0.25495895743370056,
0.2594358026981354,
0.5298959016799927,
0.42893970012664795,
0.10286320745944977,
0.2806044816970825,
-0.0724722146987915,
0.05729196220636368,
0.11741863191127777,
0.12824894487857819,
0.1596287488937378,
0.016191527247428894,
-0.08162619173526764,
-0.15226583182811737,
0.1627645492553711,
0.16232159733772278,
-0.36177071928977966,
0.009003065526485443,
-0.13751870393753052,
0.19708126783370972,
0.3654465973377228,
0.7156851291656494,
-0.18153446912765503,
-0.37900543212890625,
-0.09363417327404022,
-0.19864830374717712,
0.09847640991210938,
0.3893738090991974,
0.37785208225250244,
-0.030930859968066216,
0.0653214156627655,
-0.5064878463745117,
0.13392630219459534,
0.10919763147830963,
0.051266148686409,
0.04045294225215912,
0.07591196894645691,
0.02933717519044876,
0.008689265698194504,
-0.10229815542697906,
-0.11599856615066528,
0.3256932199001312,
-0.2656746804714203,
-0.39639899134635925,
0.1373600959777832,
-0.3631495237350464,
0.05081113427877426,
-0.14399856328964233,
0.05000566691160202,
0.3663639426231384,
0.6212912201881409,
0.24623414874076843,
0.04201086238026619,
-0.30807721614837646,
0.07781089097261429,
0.08994261920452118,
0.361391544342041,
-0.005469612777233124,
0.1346787065267563,
0.19483472406864166,
0.10071875154972076,
0.08523011207580566,
0.05211758241057396,
0.0023273020051419735,
-0.5429376363754272,
0.14480440318584442,
0.09510622918605804,
0.3429884910583496,
-0.3038516640663147,
-0.4549228549003601,
0.04721751809120178,
0.13783752918243408,
-0.1998879313468933,
0.14379490911960602,
-0.007650166749954224,
-0.08684422820806503,
0.08028359711170197,
0.3436453342437744,
0.08801232278347015,
-0.1021176353096962,
-0.20389944314956665,
-0.23109403252601624,
-0.20347502827644348,
-0.09486301988363266,
-0.06298018991947174,
0.19002941250801086,
-0.20039252936840057,
0.6136526465415955,
-0.09170522540807724,
0.0911763608455658,
-0.11073572188615799,
0.01294107548892498,
0.04645407944917679,
0.04094696789979935,
0.32191142439842224,
-0.1849278211593628,
0.013551542535424232,
0.11998845636844635,
0.15284641087055206,
-0.09410341084003448,
0.25843462347984314,
-0.23438915610313416,
-0.3227926790714264,
-0.18615323305130005,
0.21907822787761688,
-0.3183867335319519,
0.047287195920944214,
-0.16845208406448364,
-0.3878966271877289,
0.31566402316093445,
-0.26227712631225586,
-0.06020914763212204,
-0.2444445639848709,
-0.17596077919006348,
-0.1386687457561493,
0.3337227404117584,
0.222080796957016,
-0.19107306003570557,
0.12604908645153046,
0.16829708218574524,
-0.14563460648059845,
0.04637477546930313,
0.23194727301597595,
-0.13132357597351074,
0.09054911136627197,
-0.24812781810760498,
-0.024245914071798325,
0.0881311297416687,
-0.5387324690818787,
-0.4547848403453827,
-0.0014984257286414504,
0.20151068270206451,
0.0489920973777771,
0.1314413845539093,
-0.16128872334957123,
-0.07246535271406174,
-0.27142447233200073,
-0.2563686966896057,
0.2582874298095703,
-0.034631580114364624,
0.38931387662887573,
-0.24383564293384552,
-0.29655537009239197,
0.06668023020029068,
0.11800223588943481,
-0.049260083585977554,
-0.0816771611571312,
0.16936366260051727,
-0.009562707506120205,
0.2051241099834442,
0.05321679636836052,
0.03258513659238815,
0.10854162275791168,
0.12497523427009583,
-0.17385870218276978,
-0.042623862624168396,
-0.024978619068861008,
-0.196618914604187,
0.25510144233703613,
-0.07079771161079407,
0.13201028108596802,
0.06275178492069244,
0.17827892303466797,
-0.44891905784606934,
-0.17985151708126068,
-0.20493479073047638,
0.08680815994739532,
0.15477420389652252,
0.12019876390695572,
-0.1345563679933548,
0.031544867902994156,
0.09744247794151306,
0.16824932396411896,
-0.16912133991718292,
0.055603329092264175,
-0.22891774773597717,
0.2009185403585434,
-0.024428097531199455,
-0.1356211006641388,
0.42638689279556274,
0.04833299666643143,
-0.09074660390615463,
0.06490910798311234,
-0.41731229424476624,
0.48934367299079895,
-0.06213909015059471,
0.034702807664871216,
0.09463440626859665,
0.45190727710723877,
0.007932707667350769,
-0.35282111167907715,
0.0029318146407604218,
0.02977422997355461,
0.1392335146665573,
-0.1301710605621338,
0.27138057351112366,
-0.0893518328666687,
0.036214474588632584,
-0.1035483106970787,
-0.15821312367916107,
-0.1385202258825302,
0.025493232533335686,
-0.08584560453891754,
-0.0036497507244348526,
-0.15472173690795898,
0.036335255950689316,
0.2815307676792145,
0.20902597904205322,
0.18244166672229767,
0.3501012325286865,
-0.24961420893669128,
0.391729474067688,
0.052399519830942154,
0.0041366927325725555,
0.13145245611667633,
-0.03018658608198166,
-0.054748617112636566,
-0.12313078343868256,
0.2424139827489853,
0.4796057939529419,
0.08813653141260147,
0.07107079029083252,
0.10279148072004318,
0.08280709385871887,
-0.06660342216491699,
0.24181175231933594,
0.19843724370002747,
0.35641244053840637,
0.4244212508201599,
-0.17830121517181396,
-0.11445809155702591,
-0.2286888062953949,
0.15820780396461487,
0.12662135064601898,
0.2964770197868347,
-0.5625896453857422,
-0.23324191570281982,
-0.3110377788543701,
0.12629064917564392,
-0.055384181439876556,
0.03164543956518173,
-0.31437790393829346,
-0.18024323880672455,
-0.16896308958530426,
0.10818588733673096,
-0.047539569437503815,
0.19516979157924652,
-0.14588402211666107,
0.047733232378959656,
0.310332328081131,
0.04439816623926163,
0.15167437493801117,
-0.0028466731309890747,
-0.1123989149928093,
0.08653534948825836,
0.674687385559082,
-0.11400836706161499,
0.3397878110408783,
-0.4775013327598572,
0.1271572709083557,
-0.38007888197898865,
0.04265888035297394,
-0.086310014128685,
-0.08931714296340942,
0.2315172553062439,
0.22026538848876953,
0.27558082342147827,
0.07884002476930618,
-0.20324701070785522,
0.03590206429362297,
0.0523618683218956,
-0.41629552841186523,
0.030953817069530487,
-0.06365399807691574,
-0.13200360536575317,
0.10256451368331909,
-0.04233226925134659,
0.04323453828692436,
-0.38937634229660034,
-0.07244215905666351,
-0.03456903249025345,
0.10052396357059479,
0.09629376977682114,
0.08171897381544113,
-0.05085405707359314,
0.09960468858480453,
0.2866056561470032,
-0.1770675778388977,
-0.8880888819694519,
0.3540099561214447,
-0.16702909767627716,
-0.3587040901184082,
-0.021413806825876236,
0.14227993786334991,
0.23747436702251434,
0.02888987585902214,
-0.4529920220375061,
-0.18521025776863098,
-0.21916915476322174,
-0.02743353322148323,
0.06383850425481796,
0.1969691812992096,
0.11625440418720245,
0.0691952258348465,
-0.08237412571907043,
-0.3447432219982147,
-0.22738361358642578,
0.10996827483177185,
-0.2630300223827362,
0.5279319286346436,
-0.010122593492269516,
0.06297384202480316,
0.009014125913381577,
0.1534837782382965,
0.41101861000061035,
-0.17774131894111633,
0.42435479164123535,
0.24266448616981506,
0.32681795954704285,
-0.21497154235839844,
-0.11420904099941254,
0.016531972214579582,
-0.1049811840057373,
0.3337227702140808,
0.20431363582611084,
0.06277448683977127,
0.25876086950302124,
-0.16101625561714172,
-0.02751176990568638,
-0.5019212365150452,
-0.31192559003829956,
-0.12613658607006073,
-0.47713983058929443,
0.15790951251983643,
0.0015204455703496933,
-0.04577898606657982,
-0.1766190081834793,
-0.2818221151828766,
0.12433812022209167,
0.05946262925863266,
-0.011807672679424286,
0.0062620374374091625,
-0.1055888682603836,
0.11246959120035172,
-0.04350493103265762,
0.3818662762641907,
0.15931950509548187,
0.44641467928886414,
0.03258613124489784,
-0.03944725915789604,
-0.11863845586776733,
0.20158155262470245,
0.17719735205173492,
-0.1391030251979828,
0.32494133710861206,
0.0442027784883976,
0.13096900284290314,
-0.19883987307548523,
-0.20676203072071075,
0.2606893479824066,
-0.023609815165400505,
0.3816582262516022,
-0.11965909600257874,
-0.42885443568229675,
0.029806483536958694,
0.22819571197032928,
0.4090625047683716,
-0.15623721480369568,
-0.13942083716392517,
-0.2068852037191391,
-0.3080565929412842,
-0.340219646692276,
-0.36947381496429443,
0.13380266726016998,
0.28980812430381775,
-0.153035968542099,
-0.032877884805202484,
-0.1857862025499344,
-0.2667185068130493,
0.3404832184314728,
-0.1804639995098114,
0.4067647159099579,
0.010700454004108906,
0.32089751958847046,
0.021331574767827988,
0.23193374276161194,
0.44217684864997864,
0.7271000146865845,
-0.1791527420282364,
-0.21855980157852173,
-0.053612805902957916,
-0.15412704646587372,
-0.20871058106422424,
0.007136359810829163,
0.03063097596168518,
-0.25574997067451477,
0.0924115777015686,
-0.05743002891540527,
0.04436574876308441,
0.06087427958846092,
0.1258152425289154,
0.06997566670179367,
-0.4000614583492279,
-0.2998197376728058,
0.2181069254875183,
-0.15618963539600372,
0.0378430038690567,
0.5064828395843506,
0.06762370467185974,
-0.0924675390124321,
0.06693091988563538,
0.13194262981414795,
0.6712409853935242,
-0.14443956315517426,
-0.13369452953338623,
0.04413933306932449,
-0.174080491065979,
-0.23784050345420837,
0.03186293691396713,
-0.21227677166461945,
-0.3817216753959656,
-0.5945903658866882,
0.09307155758142471,
-0.2704686224460602,
0.03290072828531265,
0.22460147738456726,
0.06613779067993164,
0.05677247792482376,
-0.016789615154266357,
-0.0726986974477768,
0.06999337673187256,
0.31502941250801086,
-0.31023693084716797,
0.00562396552413702,
0.06747044622898102,
0.15057812631130219,
-0.2651734948158264,
0.2959449589252472,
-0.06670694798231125,
-0.1344788670539856,
-0.05335448682308197,
-0.22417116165161133,
-0.6046838164329529,
0.06335709244012833,
-0.28824344277381897,
0.2968218922615051,
0.25084537267684937,
0.04943118989467621,
0.15745608508586884,
0.40118521451950073,
0.44368869066238403,
0.269525945186615,
-0.2344842255115509,
0.17275945842266083,
0.36235281825065613,
-0.014581729657948017,
-0.006413680501282215,
0.21171441674232483,
0.4534875452518463,
-0.1813887059688568,
-0.23891758918762207,
0.0377388671040535,
-0.09762895852327347,
-0.42824453115463257,
0.1780988872051239,
-0.28902387619018555,
0.1226876750588417,
-0.4741532504558563,
-0.044815778732299805,
-0.16104631125926971,
0.049567487090826035,
-0.11707718670368195,
0.1266118586063385,
0.30155688524246216,
-0.025820566341280937,
0.39387351274490356,
0.28724971413612366,
-0.4737056791782379,
0.08181129395961761,
0.43545347452163696,
-0.2639753520488739,
-0.06568954885005951,
0.7143595218658447,
-0.022422034293413162,
-0.11567935347557068,
-0.08455532044172287,
0.33561959862709045,
0.18993665277957916,
-0.4613093435764313,
0.1759454905986786,
-0.1370144635438919,
0.16763974726200104,
-0.02397819049656391,
0.5160509943962097,
0.45670634508132935,
0.3805167078971863,
0.32907718420028687,
-0.5187921524047852,
-0.12003687769174576,
0.03440110385417938,
-0.10448326170444489,
0.39243048429489136,
-0.16335466504096985,
0.0690324604511261,
0.03794819116592407,
0.010570266284048557,
-0.2830747365951538,
0.15002267062664032,
-0.3312317132949829,
0.051783885806798935,
0.13761520385742188,
0.057762518525123596,
0.09154108166694641,
-0.09882020950317383,
0.15344767272472382,
-0.15289421379566193,
-0.3658684492111206,
-0.21940049529075623,
-0.09376294910907745,
0.11551947146654129,
0.06070972979068756,
-0.378583163022995,
0.19934721291065216,
-0.3264404535293579,
-0.1617555320262909,
-0.1271056830883026,
0.006526516750454903,
0.03308994323015213,
-0.036198556423187256,
0.02743496745824814,
0.22514428198337555,
-0.024194948375225067,
0.0211055688560009,
0.056758977472782135,
-0.36257728934288025,
0.04970067739486694,
0.016909515485167503,
0.11009577661752701,
0.05229761078953743,
-0.10360279679298401,
0.0623391754925251,
0.08431071043014526,
-0.02418500930070877,
0.15176323056221008,
0.3195522129535675,
-0.20273791253566742,
0.06480380892753601,
0.4826674163341522,
0.30693888664245605,
0.02040582150220871,
-0.2247437685728073,
-0.12361110746860504,
0.1812742054462433,
0.19586366415023804,
-0.38937681913375854,
-0.04561525583267212,
0.018976395949721336,
0.22286567091941833,
-0.006358746439218521,
-0.11063457280397415,
0.2290058732032776,
-0.26771295070648193,
-0.06888025999069214,
0.00971912033855915,
0.20575954020023346,
0.24829764664173126,
0.29309210181236267,
0.5799326300621033,
-0.17591352760791779,
-0.10938259959220886,
-0.05683748424053192,
-0.17466098070144653,
0.09777426719665527,
0.013567399233579636,
-0.1359003484249115,
0.49298080801963806,
-0.3232513666152954,
0.2292829155921936,
-0.22666582465171814,
-0.708422839641571,
0.39198535680770874,
-0.14210090041160583,
0.07540445029735565,
0.004791572690010071,
0.2124481350183487,
0.24480357766151428,
-0.04973185807466507,
0.15012763440608978,
-0.3210781216621399,
0.419126957654953,
0.09328991174697876,
-0.02968008629977703,
-0.20519590377807617,
-0.26702889800071716,
0.10966961085796356,
0.006323367357254028,
-0.10578858852386475,
0.12217569351196289,
-0.0712563544511795,
0.16273218393325806,
-0.3029366731643677,
-0.12165044248104095,
0.05329861864447594,
-0.1697726845741272,
-0.03555866330862045,
-0.21466830372810364,
0.2357458919286728,
0.2564382553100586,
-0.17720206081867218,
0.3424808382987976,
0.7380921840667725,
0.371566504240036,
0.4830288589000702,
0.1371569037437439,
-0.1722055822610855,
0.1276463121175766,
0.12740738689899445,
-0.039328306913375854,
0.23277054727077484,
0.06349615752696991,
-0.0034287236630916595,
0.3761824369430542,
0.14738303422927856,
-0.03419603034853935,
-0.30397114157676697,
-0.2243894785642624,
-0.24511182308197021,
0.03944730386137962,
0.28845322132110596,
0.0391378253698349,
0.026352085173130035,
-0.24627915024757385,
0.19714830815792084,
-0.02846323698759079,
-0.03424510359764099,
0.20459027588367462,
-0.008646531961858273,
0.14362969994544983,
-0.016788531094789505,
0.0952034592628479,
-0.1158066838979721,
0.4963769018650055,
0.3752220571041107,
-0.1486889123916626,
-0.1958691030740738,
-0.37051457166671753,
-0.5975675582885742,
0.2106410562992096,
0.14323802292346954,
-0.10414475947618484,
0.17825715243816376,
-0.037259552627801895,
0.06176599860191345,
-0.10676498711109161,
0.4922026991844177,
0.013106048107147217,
-0.1966298222541809,
0.06174563616514206,
-0.24416479468345642,
-0.21797509491443634,
-0.22817446291446686,
-0.20181745290756226,
-0.043128494173288345,
-0.36144405603408813,
0.19158965349197388,
0.06508417427539825,
0.15798547863960266,
-0.19301962852478027,
0.0880778431892395,
0.048071663826704025,
0.08480077981948853,
0.14679032564163208,
-0.0055308472365140915,
0.4740922749042511,
0.05359021574258804,
-0.06333020329475403,
-0.09726227819919586,
-0.19116514921188354,
-0.16080020368099213,
0.5104886889457703,
-0.03388775512576103,
0.20856992900371552,
-0.01882626861333847,
-0.06992784142494202,
-0.2319626361131668,
0.37705108523368835,
-0.16403210163116455,
-0.13329415023326874,
-0.4568926990032196,
-0.20699352025985718,
-0.022743552923202515,
-0.2393718957901001,
0.3742823600769043,
-0.10857859998941422,
-0.2206009328365326,
0.3657267391681671,
0.011338822543621063,
-0.38287103176116943,
0.45739561319351196,
0.06344752013683319,
0.03669533506035805,
-0.14755746722221375,
0.056918706744909286,
-0.13455790281295776,
-0.04795151948928833,
-0.5954980254173279,
0.26969897747039795,
0.47910964488983154,
0.005198772996664047,
-0.03468996286392212,
0.23990431427955627,
-0.10953167080879211,
0.21110780537128448,
0.04919685795903206,
0.1587296426296234,
-0.030801761895418167,
-0.237563356757164,
-0.27001503109931946,
-0.038995955139398575
] |
https://github.com/huggingface/datasets/issues/726 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset | NonMatchingChecksumError: Checksums didn't match for dataset source files:
i got this issue when i try to work on my own datasets kindly tell me, from where i can get checksums of train and dev file in my github repo | Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake. | 39 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake.
NonMatchingChecksumError: Checksums didn't match for dataset source files:
i got this issue when i try to work on my own datasets kindly tell me, from where i can get checksums of train and dev file in my github repo | [
-0.4920600950717926,
0.03898797929286957,
-0.059488266706466675,
0.3662634491920471,
0.2443767637014389,
-0.03378767520189285,
0.13654375076293945,
0.5504936575889587,
-0.00061076320707798,
-0.06028178334236145,
-0.06665407121181488,
-0.03101109154522419,
0.023808903992176056,
0.3648075759410858,
-0.22990204393863678,
0.2352992743253708,
-0.105557881295681,
0.08339998126029968,
-0.39954155683517456,
-0.04019908979535103,
-0.2967326045036316,
0.11881919205188751,
-0.10129640996456146,
-0.1545276790857315,
0.045931603759527206,
0.06636454164981842,
0.2705114781856537,
0.14031577110290527,
-0.2775343060493469,
-0.21453364193439484,
0.14243711531162262,
-0.12168540060520172,
-0.1503286510705948,
0.3247877359390259,
-0.00011020527745131403,
0.25825977325439453,
0.36561453342437744,
-0.22358693182468414,
-0.27151718735694885,
-0.15602420270442963,
-0.4222054183483124,
-0.13409902155399323,
-0.18755733966827393,
-0.15281133353710175,
0.07393258810043335,
-0.2589229941368103,
-0.12428319454193115,
-0.4580080211162567,
0.0629989355802536,
0.25495895743370056,
0.2594358026981354,
0.5298959016799927,
0.42893970012664795,
0.10286320745944977,
0.2806044816970825,
-0.0724722146987915,
0.05729196220636368,
0.11741863191127777,
0.12824894487857819,
0.1596287488937378,
0.016191527247428894,
-0.08162619173526764,
-0.15226583182811737,
0.1627645492553711,
0.16232159733772278,
-0.36177071928977966,
0.009003065526485443,
-0.13751870393753052,
0.19708126783370972,
0.3654465973377228,
0.7156851291656494,
-0.18153446912765503,
-0.37900543212890625,
-0.09363417327404022,
-0.19864830374717712,
0.09847640991210938,
0.3893738090991974,
0.37785208225250244,
-0.030930859968066216,
0.0653214156627655,
-0.5064878463745117,
0.13392630219459534,
0.10919763147830963,
0.051266148686409,
0.04045294225215912,
0.07591196894645691,
0.02933717519044876,
0.008689265698194504,
-0.10229815542697906,
-0.11599856615066528,
0.3256932199001312,
-0.2656746804714203,
-0.39639899134635925,
0.1373600959777832,
-0.3631495237350464,
0.05081113427877426,
-0.14399856328964233,
0.05000566691160202,
0.3663639426231384,
0.6212912201881409,
0.24623414874076843,
0.04201086238026619,
-0.30807721614837646,
0.07781089097261429,
0.08994261920452118,
0.361391544342041,
-0.005469612777233124,
0.1346787065267563,
0.19483472406864166,
0.10071875154972076,
0.08523011207580566,
0.05211758241057396,
0.0023273020051419735,
-0.5429376363754272,
0.14480440318584442,
0.09510622918605804,
0.3429884910583496,
-0.3038516640663147,
-0.4549228549003601,
0.04721751809120178,
0.13783752918243408,
-0.1998879313468933,
0.14379490911960602,
-0.007650166749954224,
-0.08684422820806503,
0.08028359711170197,
0.3436453342437744,
0.08801232278347015,
-0.1021176353096962,
-0.20389944314956665,
-0.23109403252601624,
-0.20347502827644348,
-0.09486301988363266,
-0.06298018991947174,
0.19002941250801086,
-0.20039252936840057,
0.6136526465415955,
-0.09170522540807724,
0.0911763608455658,
-0.11073572188615799,
0.01294107548892498,
0.04645407944917679,
0.04094696789979935,
0.32191142439842224,
-0.1849278211593628,
0.013551542535424232,
0.11998845636844635,
0.15284641087055206,
-0.09410341084003448,
0.25843462347984314,
-0.23438915610313416,
-0.3227926790714264,
-0.18615323305130005,
0.21907822787761688,
-0.3183867335319519,
0.047287195920944214,
-0.16845208406448364,
-0.3878966271877289,
0.31566402316093445,
-0.26227712631225586,
-0.06020914763212204,
-0.2444445639848709,
-0.17596077919006348,
-0.1386687457561493,
0.3337227404117584,
0.222080796957016,
-0.19107306003570557,
0.12604908645153046,
0.16829708218574524,
-0.14563460648059845,
0.04637477546930313,
0.23194727301597595,
-0.13132357597351074,
0.09054911136627197,
-0.24812781810760498,
-0.024245914071798325,
0.0881311297416687,
-0.5387324690818787,
-0.4547848403453827,
-0.0014984257286414504,
0.20151068270206451,
0.0489920973777771,
0.1314413845539093,
-0.16128872334957123,
-0.07246535271406174,
-0.27142447233200073,
-0.2563686966896057,
0.2582874298095703,
-0.034631580114364624,
0.38931387662887573,
-0.24383564293384552,
-0.29655537009239197,
0.06668023020029068,
0.11800223588943481,
-0.049260083585977554,
-0.0816771611571312,
0.16936366260051727,
-0.009562707506120205,
0.2051241099834442,
0.05321679636836052,
0.03258513659238815,
0.10854162275791168,
0.12497523427009583,
-0.17385870218276978,
-0.042623862624168396,
-0.024978619068861008,
-0.196618914604187,
0.25510144233703613,
-0.07079771161079407,
0.13201028108596802,
0.06275178492069244,
0.17827892303466797,
-0.44891905784606934,
-0.17985151708126068,
-0.20493479073047638,
0.08680815994739532,
0.15477420389652252,
0.12019876390695572,
-0.1345563679933548,
0.031544867902994156,
0.09744247794151306,
0.16824932396411896,
-0.16912133991718292,
0.055603329092264175,
-0.22891774773597717,
0.2009185403585434,
-0.024428097531199455,
-0.1356211006641388,
0.42638689279556274,
0.04833299666643143,
-0.09074660390615463,
0.06490910798311234,
-0.41731229424476624,
0.48934367299079895,
-0.06213909015059471,
0.034702807664871216,
0.09463440626859665,
0.45190727710723877,
0.007932707667350769,
-0.35282111167907715,
0.0029318146407604218,
0.02977422997355461,
0.1392335146665573,
-0.1301710605621338,
0.27138057351112366,
-0.0893518328666687,
0.036214474588632584,
-0.1035483106970787,
-0.15821312367916107,
-0.1385202258825302,
0.025493232533335686,
-0.08584560453891754,
-0.0036497507244348526,
-0.15472173690795898,
0.036335255950689316,
0.2815307676792145,
0.20902597904205322,
0.18244166672229767,
0.3501012325286865,
-0.24961420893669128,
0.391729474067688,
0.052399519830942154,
0.0041366927325725555,
0.13145245611667633,
-0.03018658608198166,
-0.054748617112636566,
-0.12313078343868256,
0.2424139827489853,
0.4796057939529419,
0.08813653141260147,
0.07107079029083252,
0.10279148072004318,
0.08280709385871887,
-0.06660342216491699,
0.24181175231933594,
0.19843724370002747,
0.35641244053840637,
0.4244212508201599,
-0.17830121517181396,
-0.11445809155702591,
-0.2286888062953949,
0.15820780396461487,
0.12662135064601898,
0.2964770197868347,
-0.5625896453857422,
-0.23324191570281982,
-0.3110377788543701,
0.12629064917564392,
-0.055384181439876556,
0.03164543956518173,
-0.31437790393829346,
-0.18024323880672455,
-0.16896308958530426,
0.10818588733673096,
-0.047539569437503815,
0.19516979157924652,
-0.14588402211666107,
0.047733232378959656,
0.310332328081131,
0.04439816623926163,
0.15167437493801117,
-0.0028466731309890747,
-0.1123989149928093,
0.08653534948825836,
0.674687385559082,
-0.11400836706161499,
0.3397878110408783,
-0.4775013327598572,
0.1271572709083557,
-0.38007888197898865,
0.04265888035297394,
-0.086310014128685,
-0.08931714296340942,
0.2315172553062439,
0.22026538848876953,
0.27558082342147827,
0.07884002476930618,
-0.20324701070785522,
0.03590206429362297,
0.0523618683218956,
-0.41629552841186523,
0.030953817069530487,
-0.06365399807691574,
-0.13200360536575317,
0.10256451368331909,
-0.04233226925134659,
0.04323453828692436,
-0.38937634229660034,
-0.07244215905666351,
-0.03456903249025345,
0.10052396357059479,
0.09629376977682114,
0.08171897381544113,
-0.05085405707359314,
0.09960468858480453,
0.2866056561470032,
-0.1770675778388977,
-0.8880888819694519,
0.3540099561214447,
-0.16702909767627716,
-0.3587040901184082,
-0.021413806825876236,
0.14227993786334991,
0.23747436702251434,
0.02888987585902214,
-0.4529920220375061,
-0.18521025776863098,
-0.21916915476322174,
-0.02743353322148323,
0.06383850425481796,
0.1969691812992096,
0.11625440418720245,
0.0691952258348465,
-0.08237412571907043,
-0.3447432219982147,
-0.22738361358642578,
0.10996827483177185,
-0.2630300223827362,
0.5279319286346436,
-0.010122593492269516,
0.06297384202480316,
0.009014125913381577,
0.1534837782382965,
0.41101861000061035,
-0.17774131894111633,
0.42435479164123535,
0.24266448616981506,
0.32681795954704285,
-0.21497154235839844,
-0.11420904099941254,
0.016531972214579582,
-0.1049811840057373,
0.3337227702140808,
0.20431363582611084,
0.06277448683977127,
0.25876086950302124,
-0.16101625561714172,
-0.02751176990568638,
-0.5019212365150452,
-0.31192559003829956,
-0.12613658607006073,
-0.47713983058929443,
0.15790951251983643,
0.0015204455703496933,
-0.04577898606657982,
-0.1766190081834793,
-0.2818221151828766,
0.12433812022209167,
0.05946262925863266,
-0.011807672679424286,
0.0062620374374091625,
-0.1055888682603836,
0.11246959120035172,
-0.04350493103265762,
0.3818662762641907,
0.15931950509548187,
0.44641467928886414,
0.03258613124489784,
-0.03944725915789604,
-0.11863845586776733,
0.20158155262470245,
0.17719735205173492,
-0.1391030251979828,
0.32494133710861206,
0.0442027784883976,
0.13096900284290314,
-0.19883987307548523,
-0.20676203072071075,
0.2606893479824066,
-0.023609815165400505,
0.3816582262516022,
-0.11965909600257874,
-0.42885443568229675,
0.029806483536958694,
0.22819571197032928,
0.4090625047683716,
-0.15623721480369568,
-0.13942083716392517,
-0.2068852037191391,
-0.3080565929412842,
-0.340219646692276,
-0.36947381496429443,
0.13380266726016998,
0.28980812430381775,
-0.153035968542099,
-0.032877884805202484,
-0.1857862025499344,
-0.2667185068130493,
0.3404832184314728,
-0.1804639995098114,
0.4067647159099579,
0.010700454004108906,
0.32089751958847046,
0.021331574767827988,
0.23193374276161194,
0.44217684864997864,
0.7271000146865845,
-0.1791527420282364,
-0.21855980157852173,
-0.053612805902957916,
-0.15412704646587372,
-0.20871058106422424,
0.007136359810829163,
0.03063097596168518,
-0.25574997067451477,
0.0924115777015686,
-0.05743002891540527,
0.04436574876308441,
0.06087427958846092,
0.1258152425289154,
0.06997566670179367,
-0.4000614583492279,
-0.2998197376728058,
0.2181069254875183,
-0.15618963539600372,
0.0378430038690567,
0.5064828395843506,
0.06762370467185974,
-0.0924675390124321,
0.06693091988563538,
0.13194262981414795,
0.6712409853935242,
-0.14443956315517426,
-0.13369452953338623,
0.04413933306932449,
-0.174080491065979,
-0.23784050345420837,
0.03186293691396713,
-0.21227677166461945,
-0.3817216753959656,
-0.5945903658866882,
0.09307155758142471,
-0.2704686224460602,
0.03290072828531265,
0.22460147738456726,
0.06613779067993164,
0.05677247792482376,
-0.016789615154266357,
-0.0726986974477768,
0.06999337673187256,
0.31502941250801086,
-0.31023693084716797,
0.00562396552413702,
0.06747044622898102,
0.15057812631130219,
-0.2651734948158264,
0.2959449589252472,
-0.06670694798231125,
-0.1344788670539856,
-0.05335448682308197,
-0.22417116165161133,
-0.6046838164329529,
0.06335709244012833,
-0.28824344277381897,
0.2968218922615051,
0.25084537267684937,
0.04943118989467621,
0.15745608508586884,
0.40118521451950073,
0.44368869066238403,
0.269525945186615,
-0.2344842255115509,
0.17275945842266083,
0.36235281825065613,
-0.014581729657948017,
-0.006413680501282215,
0.21171441674232483,
0.4534875452518463,
-0.1813887059688568,
-0.23891758918762207,
0.0377388671040535,
-0.09762895852327347,
-0.42824453115463257,
0.1780988872051239,
-0.28902387619018555,
0.1226876750588417,
-0.4741532504558563,
-0.044815778732299805,
-0.16104631125926971,
0.049567487090826035,
-0.11707718670368195,
0.1266118586063385,
0.30155688524246216,
-0.025820566341280937,
0.39387351274490356,
0.28724971413612366,
-0.4737056791782379,
0.08181129395961761,
0.43545347452163696,
-0.2639753520488739,
-0.06568954885005951,
0.7143595218658447,
-0.022422034293413162,
-0.11567935347557068,
-0.08455532044172287,
0.33561959862709045,
0.18993665277957916,
-0.4613093435764313,
0.1759454905986786,
-0.1370144635438919,
0.16763974726200104,
-0.02397819049656391,
0.5160509943962097,
0.45670634508132935,
0.3805167078971863,
0.32907718420028687,
-0.5187921524047852,
-0.12003687769174576,
0.03440110385417938,
-0.10448326170444489,
0.39243048429489136,
-0.16335466504096985,
0.0690324604511261,
0.03794819116592407,
0.010570266284048557,
-0.2830747365951538,
0.15002267062664032,
-0.3312317132949829,
0.051783885806798935,
0.13761520385742188,
0.057762518525123596,
0.09154108166694641,
-0.09882020950317383,
0.15344767272472382,
-0.15289421379566193,
-0.3658684492111206,
-0.21940049529075623,
-0.09376294910907745,
0.11551947146654129,
0.06070972979068756,
-0.378583163022995,
0.19934721291065216,
-0.3264404535293579,
-0.1617555320262909,
-0.1271056830883026,
0.006526516750454903,
0.03308994323015213,
-0.036198556423187256,
0.02743496745824814,
0.22514428198337555,
-0.024194948375225067,
0.0211055688560009,
0.056758977472782135,
-0.36257728934288025,
0.04970067739486694,
0.016909515485167503,
0.11009577661752701,
0.05229761078953743,
-0.10360279679298401,
0.0623391754925251,
0.08431071043014526,
-0.02418500930070877,
0.15176323056221008,
0.3195522129535675,
-0.20273791253566742,
0.06480380892753601,
0.4826674163341522,
0.30693888664245605,
0.02040582150220871,
-0.2247437685728073,
-0.12361110746860504,
0.1812742054462433,
0.19586366415023804,
-0.38937681913375854,
-0.04561525583267212,
0.018976395949721336,
0.22286567091941833,
-0.006358746439218521,
-0.11063457280397415,
0.2290058732032776,
-0.26771295070648193,
-0.06888025999069214,
0.00971912033855915,
0.20575954020023346,
0.24829764664173126,
0.29309210181236267,
0.5799326300621033,
-0.17591352760791779,
-0.10938259959220886,
-0.05683748424053192,
-0.17466098070144653,
0.09777426719665527,
0.013567399233579636,
-0.1359003484249115,
0.49298080801963806,
-0.3232513666152954,
0.2292829155921936,
-0.22666582465171814,
-0.708422839641571,
0.39198535680770874,
-0.14210090041160583,
0.07540445029735565,
0.004791572690010071,
0.2124481350183487,
0.24480357766151428,
-0.04973185807466507,
0.15012763440608978,
-0.3210781216621399,
0.419126957654953,
0.09328991174697876,
-0.02968008629977703,
-0.20519590377807617,
-0.26702889800071716,
0.10966961085796356,
0.006323367357254028,
-0.10578858852386475,
0.12217569351196289,
-0.0712563544511795,
0.16273218393325806,
-0.3029366731643677,
-0.12165044248104095,
0.05329861864447594,
-0.1697726845741272,
-0.03555866330862045,
-0.21466830372810364,
0.2357458919286728,
0.2564382553100586,
-0.17720206081867218,
0.3424808382987976,
0.7380921840667725,
0.371566504240036,
0.4830288589000702,
0.1371569037437439,
-0.1722055822610855,
0.1276463121175766,
0.12740738689899445,
-0.039328306913375854,
0.23277054727077484,
0.06349615752696991,
-0.0034287236630916595,
0.3761824369430542,
0.14738303422927856,
-0.03419603034853935,
-0.30397114157676697,
-0.2243894785642624,
-0.24511182308197021,
0.03944730386137962,
0.28845322132110596,
0.0391378253698349,
0.026352085173130035,
-0.24627915024757385,
0.19714830815792084,
-0.02846323698759079,
-0.03424510359764099,
0.20459027588367462,
-0.008646531961858273,
0.14362969994544983,
-0.016788531094789505,
0.0952034592628479,
-0.1158066838979721,
0.4963769018650055,
0.3752220571041107,
-0.1486889123916626,
-0.1958691030740738,
-0.37051457166671753,
-0.5975675582885742,
0.2106410562992096,
0.14323802292346954,
-0.10414475947618484,
0.17825715243816376,
-0.037259552627801895,
0.06176599860191345,
-0.10676498711109161,
0.4922026991844177,
0.013106048107147217,
-0.1966298222541809,
0.06174563616514206,
-0.24416479468345642,
-0.21797509491443634,
-0.22817446291446686,
-0.20181745290756226,
-0.043128494173288345,
-0.36144405603408813,
0.19158965349197388,
0.06508417427539825,
0.15798547863960266,
-0.19301962852478027,
0.0880778431892395,
0.048071663826704025,
0.08480077981948853,
0.14679032564163208,
-0.0055308472365140915,
0.4740922749042511,
0.05359021574258804,
-0.06333020329475403,
-0.09726227819919586,
-0.19116514921188354,
-0.16080020368099213,
0.5104886889457703,
-0.03388775512576103,
0.20856992900371552,
-0.01882626861333847,
-0.06992784142494202,
-0.2319626361131668,
0.37705108523368835,
-0.16403210163116455,
-0.13329415023326874,
-0.4568926990032196,
-0.20699352025985718,
-0.022743552923202515,
-0.2393718957901001,
0.3742823600769043,
-0.10857859998941422,
-0.2206009328365326,
0.3657267391681671,
0.011338822543621063,
-0.38287103176116943,
0.45739561319351196,
0.06344752013683319,
0.03669533506035805,
-0.14755746722221375,
0.056918706744909286,
-0.13455790281295776,
-0.04795151948928833,
-0.5954980254173279,
0.26969897747039795,
0.47910964488983154,
0.005198772996664047,
-0.03468996286392212,
0.23990431427955627,
-0.10953167080879211,
0.21110780537128448,
0.04919685795903206,
0.1587296426296234,
-0.030801761895418167,
-0.237563356757164,
-0.27001503109931946,
-0.038995955139398575
] |
https://github.com/huggingface/datasets/issues/726 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset | Hi, I got the similar issue for xnli dataset while working on colab with python3.7.
`nlp.load_dataset(path = 'xnli')`
The above command resulted in following issue :
```
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']
```
Any idea how to fix this ? | Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake. | 44 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake.
Hi, I got the similar issue for xnli dataset while working on colab with python3.7.
`nlp.load_dataset(path = 'xnli')`
The above command resulted in following issue :
```
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']
```
Any idea how to fix this ? | [
-0.4920600950717926,
0.03898797929286957,
-0.059488266706466675,
0.3662634491920471,
0.2443767637014389,
-0.03378767520189285,
0.13654375076293945,
0.5504936575889587,
-0.00061076320707798,
-0.06028178334236145,
-0.06665407121181488,
-0.03101109154522419,
0.023808903992176056,
0.3648075759410858,
-0.22990204393863678,
0.2352992743253708,
-0.105557881295681,
0.08339998126029968,
-0.39954155683517456,
-0.04019908979535103,
-0.2967326045036316,
0.11881919205188751,
-0.10129640996456146,
-0.1545276790857315,
0.045931603759527206,
0.06636454164981842,
0.2705114781856537,
0.14031577110290527,
-0.2775343060493469,
-0.21453364193439484,
0.14243711531162262,
-0.12168540060520172,
-0.1503286510705948,
0.3247877359390259,
-0.00011020527745131403,
0.25825977325439453,
0.36561453342437744,
-0.22358693182468414,
-0.27151718735694885,
-0.15602420270442963,
-0.4222054183483124,
-0.13409902155399323,
-0.18755733966827393,
-0.15281133353710175,
0.07393258810043335,
-0.2589229941368103,
-0.12428319454193115,
-0.4580080211162567,
0.0629989355802536,
0.25495895743370056,
0.2594358026981354,
0.5298959016799927,
0.42893970012664795,
0.10286320745944977,
0.2806044816970825,
-0.0724722146987915,
0.05729196220636368,
0.11741863191127777,
0.12824894487857819,
0.1596287488937378,
0.016191527247428894,
-0.08162619173526764,
-0.15226583182811737,
0.1627645492553711,
0.16232159733772278,
-0.36177071928977966,
0.009003065526485443,
-0.13751870393753052,
0.19708126783370972,
0.3654465973377228,
0.7156851291656494,
-0.18153446912765503,
-0.37900543212890625,
-0.09363417327404022,
-0.19864830374717712,
0.09847640991210938,
0.3893738090991974,
0.37785208225250244,
-0.030930859968066216,
0.0653214156627655,
-0.5064878463745117,
0.13392630219459534,
0.10919763147830963,
0.051266148686409,
0.04045294225215912,
0.07591196894645691,
0.02933717519044876,
0.008689265698194504,
-0.10229815542697906,
-0.11599856615066528,
0.3256932199001312,
-0.2656746804714203,
-0.39639899134635925,
0.1373600959777832,
-0.3631495237350464,
0.05081113427877426,
-0.14399856328964233,
0.05000566691160202,
0.3663639426231384,
0.6212912201881409,
0.24623414874076843,
0.04201086238026619,
-0.30807721614837646,
0.07781089097261429,
0.08994261920452118,
0.361391544342041,
-0.005469612777233124,
0.1346787065267563,
0.19483472406864166,
0.10071875154972076,
0.08523011207580566,
0.05211758241057396,
0.0023273020051419735,
-0.5429376363754272,
0.14480440318584442,
0.09510622918605804,
0.3429884910583496,
-0.3038516640663147,
-0.4549228549003601,
0.04721751809120178,
0.13783752918243408,
-0.1998879313468933,
0.14379490911960602,
-0.007650166749954224,
-0.08684422820806503,
0.08028359711170197,
0.3436453342437744,
0.08801232278347015,
-0.1021176353096962,
-0.20389944314956665,
-0.23109403252601624,
-0.20347502827644348,
-0.09486301988363266,
-0.06298018991947174,
0.19002941250801086,
-0.20039252936840057,
0.6136526465415955,
-0.09170522540807724,
0.0911763608455658,
-0.11073572188615799,
0.01294107548892498,
0.04645407944917679,
0.04094696789979935,
0.32191142439842224,
-0.1849278211593628,
0.013551542535424232,
0.11998845636844635,
0.15284641087055206,
-0.09410341084003448,
0.25843462347984314,
-0.23438915610313416,
-0.3227926790714264,
-0.18615323305130005,
0.21907822787761688,
-0.3183867335319519,
0.047287195920944214,
-0.16845208406448364,
-0.3878966271877289,
0.31566402316093445,
-0.26227712631225586,
-0.06020914763212204,
-0.2444445639848709,
-0.17596077919006348,
-0.1386687457561493,
0.3337227404117584,
0.222080796957016,
-0.19107306003570557,
0.12604908645153046,
0.16829708218574524,
-0.14563460648059845,
0.04637477546930313,
0.23194727301597595,
-0.13132357597351074,
0.09054911136627197,
-0.24812781810760498,
-0.024245914071798325,
0.0881311297416687,
-0.5387324690818787,
-0.4547848403453827,
-0.0014984257286414504,
0.20151068270206451,
0.0489920973777771,
0.1314413845539093,
-0.16128872334957123,
-0.07246535271406174,
-0.27142447233200073,
-0.2563686966896057,
0.2582874298095703,
-0.034631580114364624,
0.38931387662887573,
-0.24383564293384552,
-0.29655537009239197,
0.06668023020029068,
0.11800223588943481,
-0.049260083585977554,
-0.0816771611571312,
0.16936366260051727,
-0.009562707506120205,
0.2051241099834442,
0.05321679636836052,
0.03258513659238815,
0.10854162275791168,
0.12497523427009583,
-0.17385870218276978,
-0.042623862624168396,
-0.024978619068861008,
-0.196618914604187,
0.25510144233703613,
-0.07079771161079407,
0.13201028108596802,
0.06275178492069244,
0.17827892303466797,
-0.44891905784606934,
-0.17985151708126068,
-0.20493479073047638,
0.08680815994739532,
0.15477420389652252,
0.12019876390695572,
-0.1345563679933548,
0.031544867902994156,
0.09744247794151306,
0.16824932396411896,
-0.16912133991718292,
0.055603329092264175,
-0.22891774773597717,
0.2009185403585434,
-0.024428097531199455,
-0.1356211006641388,
0.42638689279556274,
0.04833299666643143,
-0.09074660390615463,
0.06490910798311234,
-0.41731229424476624,
0.48934367299079895,
-0.06213909015059471,
0.034702807664871216,
0.09463440626859665,
0.45190727710723877,
0.007932707667350769,
-0.35282111167907715,
0.0029318146407604218,
0.02977422997355461,
0.1392335146665573,
-0.1301710605621338,
0.27138057351112366,
-0.0893518328666687,
0.036214474588632584,
-0.1035483106970787,
-0.15821312367916107,
-0.1385202258825302,
0.025493232533335686,
-0.08584560453891754,
-0.0036497507244348526,
-0.15472173690795898,
0.036335255950689316,
0.2815307676792145,
0.20902597904205322,
0.18244166672229767,
0.3501012325286865,
-0.24961420893669128,
0.391729474067688,
0.052399519830942154,
0.0041366927325725555,
0.13145245611667633,
-0.03018658608198166,
-0.054748617112636566,
-0.12313078343868256,
0.2424139827489853,
0.4796057939529419,
0.08813653141260147,
0.07107079029083252,
0.10279148072004318,
0.08280709385871887,
-0.06660342216491699,
0.24181175231933594,
0.19843724370002747,
0.35641244053840637,
0.4244212508201599,
-0.17830121517181396,
-0.11445809155702591,
-0.2286888062953949,
0.15820780396461487,
0.12662135064601898,
0.2964770197868347,
-0.5625896453857422,
-0.23324191570281982,
-0.3110377788543701,
0.12629064917564392,
-0.055384181439876556,
0.03164543956518173,
-0.31437790393829346,
-0.18024323880672455,
-0.16896308958530426,
0.10818588733673096,
-0.047539569437503815,
0.19516979157924652,
-0.14588402211666107,
0.047733232378959656,
0.310332328081131,
0.04439816623926163,
0.15167437493801117,
-0.0028466731309890747,
-0.1123989149928093,
0.08653534948825836,
0.674687385559082,
-0.11400836706161499,
0.3397878110408783,
-0.4775013327598572,
0.1271572709083557,
-0.38007888197898865,
0.04265888035297394,
-0.086310014128685,
-0.08931714296340942,
0.2315172553062439,
0.22026538848876953,
0.27558082342147827,
0.07884002476930618,
-0.20324701070785522,
0.03590206429362297,
0.0523618683218956,
-0.41629552841186523,
0.030953817069530487,
-0.06365399807691574,
-0.13200360536575317,
0.10256451368331909,
-0.04233226925134659,
0.04323453828692436,
-0.38937634229660034,
-0.07244215905666351,
-0.03456903249025345,
0.10052396357059479,
0.09629376977682114,
0.08171897381544113,
-0.05085405707359314,
0.09960468858480453,
0.2866056561470032,
-0.1770675778388977,
-0.8880888819694519,
0.3540099561214447,
-0.16702909767627716,
-0.3587040901184082,
-0.021413806825876236,
0.14227993786334991,
0.23747436702251434,
0.02888987585902214,
-0.4529920220375061,
-0.18521025776863098,
-0.21916915476322174,
-0.02743353322148323,
0.06383850425481796,
0.1969691812992096,
0.11625440418720245,
0.0691952258348465,
-0.08237412571907043,
-0.3447432219982147,
-0.22738361358642578,
0.10996827483177185,
-0.2630300223827362,
0.5279319286346436,
-0.010122593492269516,
0.06297384202480316,
0.009014125913381577,
0.1534837782382965,
0.41101861000061035,
-0.17774131894111633,
0.42435479164123535,
0.24266448616981506,
0.32681795954704285,
-0.21497154235839844,
-0.11420904099941254,
0.016531972214579582,
-0.1049811840057373,
0.3337227702140808,
0.20431363582611084,
0.06277448683977127,
0.25876086950302124,
-0.16101625561714172,
-0.02751176990568638,
-0.5019212365150452,
-0.31192559003829956,
-0.12613658607006073,
-0.47713983058929443,
0.15790951251983643,
0.0015204455703496933,
-0.04577898606657982,
-0.1766190081834793,
-0.2818221151828766,
0.12433812022209167,
0.05946262925863266,
-0.011807672679424286,
0.0062620374374091625,
-0.1055888682603836,
0.11246959120035172,
-0.04350493103265762,
0.3818662762641907,
0.15931950509548187,
0.44641467928886414,
0.03258613124489784,
-0.03944725915789604,
-0.11863845586776733,
0.20158155262470245,
0.17719735205173492,
-0.1391030251979828,
0.32494133710861206,
0.0442027784883976,
0.13096900284290314,
-0.19883987307548523,
-0.20676203072071075,
0.2606893479824066,
-0.023609815165400505,
0.3816582262516022,
-0.11965909600257874,
-0.42885443568229675,
0.029806483536958694,
0.22819571197032928,
0.4090625047683716,
-0.15623721480369568,
-0.13942083716392517,
-0.2068852037191391,
-0.3080565929412842,
-0.340219646692276,
-0.36947381496429443,
0.13380266726016998,
0.28980812430381775,
-0.153035968542099,
-0.032877884805202484,
-0.1857862025499344,
-0.2667185068130493,
0.3404832184314728,
-0.1804639995098114,
0.4067647159099579,
0.010700454004108906,
0.32089751958847046,
0.021331574767827988,
0.23193374276161194,
0.44217684864997864,
0.7271000146865845,
-0.1791527420282364,
-0.21855980157852173,
-0.053612805902957916,
-0.15412704646587372,
-0.20871058106422424,
0.007136359810829163,
0.03063097596168518,
-0.25574997067451477,
0.0924115777015686,
-0.05743002891540527,
0.04436574876308441,
0.06087427958846092,
0.1258152425289154,
0.06997566670179367,
-0.4000614583492279,
-0.2998197376728058,
0.2181069254875183,
-0.15618963539600372,
0.0378430038690567,
0.5064828395843506,
0.06762370467185974,
-0.0924675390124321,
0.06693091988563538,
0.13194262981414795,
0.6712409853935242,
-0.14443956315517426,
-0.13369452953338623,
0.04413933306932449,
-0.174080491065979,
-0.23784050345420837,
0.03186293691396713,
-0.21227677166461945,
-0.3817216753959656,
-0.5945903658866882,
0.09307155758142471,
-0.2704686224460602,
0.03290072828531265,
0.22460147738456726,
0.06613779067993164,
0.05677247792482376,
-0.016789615154266357,
-0.0726986974477768,
0.06999337673187256,
0.31502941250801086,
-0.31023693084716797,
0.00562396552413702,
0.06747044622898102,
0.15057812631130219,
-0.2651734948158264,
0.2959449589252472,
-0.06670694798231125,
-0.1344788670539856,
-0.05335448682308197,
-0.22417116165161133,
-0.6046838164329529,
0.06335709244012833,
-0.28824344277381897,
0.2968218922615051,
0.25084537267684937,
0.04943118989467621,
0.15745608508586884,
0.40118521451950073,
0.44368869066238403,
0.269525945186615,
-0.2344842255115509,
0.17275945842266083,
0.36235281825065613,
-0.014581729657948017,
-0.006413680501282215,
0.21171441674232483,
0.4534875452518463,
-0.1813887059688568,
-0.23891758918762207,
0.0377388671040535,
-0.09762895852327347,
-0.42824453115463257,
0.1780988872051239,
-0.28902387619018555,
0.1226876750588417,
-0.4741532504558563,
-0.044815778732299805,
-0.16104631125926971,
0.049567487090826035,
-0.11707718670368195,
0.1266118586063385,
0.30155688524246216,
-0.025820566341280937,
0.39387351274490356,
0.28724971413612366,
-0.4737056791782379,
0.08181129395961761,
0.43545347452163696,
-0.2639753520488739,
-0.06568954885005951,
0.7143595218658447,
-0.022422034293413162,
-0.11567935347557068,
-0.08455532044172287,
0.33561959862709045,
0.18993665277957916,
-0.4613093435764313,
0.1759454905986786,
-0.1370144635438919,
0.16763974726200104,
-0.02397819049656391,
0.5160509943962097,
0.45670634508132935,
0.3805167078971863,
0.32907718420028687,
-0.5187921524047852,
-0.12003687769174576,
0.03440110385417938,
-0.10448326170444489,
0.39243048429489136,
-0.16335466504096985,
0.0690324604511261,
0.03794819116592407,
0.010570266284048557,
-0.2830747365951538,
0.15002267062664032,
-0.3312317132949829,
0.051783885806798935,
0.13761520385742188,
0.057762518525123596,
0.09154108166694641,
-0.09882020950317383,
0.15344767272472382,
-0.15289421379566193,
-0.3658684492111206,
-0.21940049529075623,
-0.09376294910907745,
0.11551947146654129,
0.06070972979068756,
-0.378583163022995,
0.19934721291065216,
-0.3264404535293579,
-0.1617555320262909,
-0.1271056830883026,
0.006526516750454903,
0.03308994323015213,
-0.036198556423187256,
0.02743496745824814,
0.22514428198337555,
-0.024194948375225067,
0.0211055688560009,
0.056758977472782135,
-0.36257728934288025,
0.04970067739486694,
0.016909515485167503,
0.11009577661752701,
0.05229761078953743,
-0.10360279679298401,
0.0623391754925251,
0.08431071043014526,
-0.02418500930070877,
0.15176323056221008,
0.3195522129535675,
-0.20273791253566742,
0.06480380892753601,
0.4826674163341522,
0.30693888664245605,
0.02040582150220871,
-0.2247437685728073,
-0.12361110746860504,
0.1812742054462433,
0.19586366415023804,
-0.38937681913375854,
-0.04561525583267212,
0.018976395949721336,
0.22286567091941833,
-0.006358746439218521,
-0.11063457280397415,
0.2290058732032776,
-0.26771295070648193,
-0.06888025999069214,
0.00971912033855915,
0.20575954020023346,
0.24829764664173126,
0.29309210181236267,
0.5799326300621033,
-0.17591352760791779,
-0.10938259959220886,
-0.05683748424053192,
-0.17466098070144653,
0.09777426719665527,
0.013567399233579636,
-0.1359003484249115,
0.49298080801963806,
-0.3232513666152954,
0.2292829155921936,
-0.22666582465171814,
-0.708422839641571,
0.39198535680770874,
-0.14210090041160583,
0.07540445029735565,
0.004791572690010071,
0.2124481350183487,
0.24480357766151428,
-0.04973185807466507,
0.15012763440608978,
-0.3210781216621399,
0.419126957654953,
0.09328991174697876,
-0.02968008629977703,
-0.20519590377807617,
-0.26702889800071716,
0.10966961085796356,
0.006323367357254028,
-0.10578858852386475,
0.12217569351196289,
-0.0712563544511795,
0.16273218393325806,
-0.3029366731643677,
-0.12165044248104095,
0.05329861864447594,
-0.1697726845741272,
-0.03555866330862045,
-0.21466830372810364,
0.2357458919286728,
0.2564382553100586,
-0.17720206081867218,
0.3424808382987976,
0.7380921840667725,
0.371566504240036,
0.4830288589000702,
0.1371569037437439,
-0.1722055822610855,
0.1276463121175766,
0.12740738689899445,
-0.039328306913375854,
0.23277054727077484,
0.06349615752696991,
-0.0034287236630916595,
0.3761824369430542,
0.14738303422927856,
-0.03419603034853935,
-0.30397114157676697,
-0.2243894785642624,
-0.24511182308197021,
0.03944730386137962,
0.28845322132110596,
0.0391378253698349,
0.026352085173130035,
-0.24627915024757385,
0.19714830815792084,
-0.02846323698759079,
-0.03424510359764099,
0.20459027588367462,
-0.008646531961858273,
0.14362969994544983,
-0.016788531094789505,
0.0952034592628479,
-0.1158066838979721,
0.4963769018650055,
0.3752220571041107,
-0.1486889123916626,
-0.1958691030740738,
-0.37051457166671753,
-0.5975675582885742,
0.2106410562992096,
0.14323802292346954,
-0.10414475947618484,
0.17825715243816376,
-0.037259552627801895,
0.06176599860191345,
-0.10676498711109161,
0.4922026991844177,
0.013106048107147217,
-0.1966298222541809,
0.06174563616514206,
-0.24416479468345642,
-0.21797509491443634,
-0.22817446291446686,
-0.20181745290756226,
-0.043128494173288345,
-0.36144405603408813,
0.19158965349197388,
0.06508417427539825,
0.15798547863960266,
-0.19301962852478027,
0.0880778431892395,
0.048071663826704025,
0.08480077981948853,
0.14679032564163208,
-0.0055308472365140915,
0.4740922749042511,
0.05359021574258804,
-0.06333020329475403,
-0.09726227819919586,
-0.19116514921188354,
-0.16080020368099213,
0.5104886889457703,
-0.03388775512576103,
0.20856992900371552,
-0.01882626861333847,
-0.06992784142494202,
-0.2319626361131668,
0.37705108523368835,
-0.16403210163116455,
-0.13329415023326874,
-0.4568926990032196,
-0.20699352025985718,
-0.022743552923202515,
-0.2393718957901001,
0.3742823600769043,
-0.10857859998941422,
-0.2206009328365326,
0.3657267391681671,
0.011338822543621063,
-0.38287103176116943,
0.45739561319351196,
0.06344752013683319,
0.03669533506035805,
-0.14755746722221375,
0.056918706744909286,
-0.13455790281295776,
-0.04795151948928833,
-0.5954980254173279,
0.26969897747039795,
0.47910964488983154,
0.005198772996664047,
-0.03468996286392212,
0.23990431427955627,
-0.10953167080879211,
0.21110780537128448,
0.04919685795903206,
0.1587296426296234,
-0.030801761895418167,
-0.237563356757164,
-0.27001503109931946,
-0.038995955139398575
] |
https://github.com/huggingface/datasets/issues/726 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset | Says fixed but I'm still getting it.
command:
dataset = load_dataset("ted_talks_iwslt", language_pair=("en", "es"), year="2014",download_mode="force_redownload")
got:
Using custom data configuration en_es_2014-35a2d3350a0f9823
Downloading and preparing dataset ted_talks_iwslt/en_es_2014 (download: 2.15 KiB, generated: Unknown size, post-processed: Unknown size, total: 2.15 KiB) to /home/ken/.cache/huggingface/datasets/ted_talks_iwslt/en_es_2014-35a2d3350a0f9823/1.1.0/43935b3fe470c753a023642e1f54b068c590847f9928bd3f2ec99f15702ad6a6...
Downloading:
2.21k/? [00:00<00:00, 141kB/s]
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download'] | Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake. | 52 | "Checksums didn't match for dataset source files" error while loading openwebtext dataset
Hi,
I have encountered this problem during loading the openwebtext dataset:
```
>>> dataset = load_dataset('openwebtext')
Downloading and preparing dataset openwebtext/plain_text (download: 12.00 GiB, generated: 37.04 GiB, post-processed: Unknown size, total: 49.03 GiB) to /home/admin/.cache/huggingface/datasets/openwebtext/plain_text/1.0.0/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/builder.py", line 536, in _download_and_prepare
self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files"
File "/home/admin/workspace/anaconda3/envs/torch1.6-py3.7/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 39, in verify_checksums
raise NonMatchingChecksumError(error_msg + str(bad_urls))
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://zenodo.org/record/3834942/files/openwebtext.tar.xz']
```
I think this problem is caused because the released dataset has changed. Or I should download the dataset manually?
Sorry for release the unfinised issue by mistake.
Says fixed but I'm still getting it.
command:
dataset = load_dataset("ted_talks_iwslt", language_pair=("en", "es"), year="2014",download_mode="force_redownload")
got:
Using custom data configuration en_es_2014-35a2d3350a0f9823
Downloading and preparing dataset ted_talks_iwslt/en_es_2014 (download: 2.15 KiB, generated: Unknown size, post-processed: Unknown size, total: 2.15 KiB) to /home/ken/.cache/huggingface/datasets/ted_talks_iwslt/en_es_2014-35a2d3350a0f9823/1.1.0/43935b3fe470c753a023642e1f54b068c590847f9928bd3f2ec99f15702ad6a6...
Downloading:
2.21k/? [00:00<00:00, 141kB/s]
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download'] | [
-0.4920600950717926,
0.03898797929286957,
-0.059488266706466675,
0.3662634491920471,
0.2443767637014389,
-0.03378767520189285,
0.13654375076293945,
0.5504936575889587,
-0.00061076320707798,
-0.06028178334236145,
-0.06665407121181488,
-0.03101109154522419,
0.023808903992176056,
0.3648075759410858,
-0.22990204393863678,
0.2352992743253708,
-0.105557881295681,
0.08339998126029968,
-0.39954155683517456,
-0.04019908979535103,
-0.2967326045036316,
0.11881919205188751,
-0.10129640996456146,
-0.1545276790857315,
0.045931603759527206,
0.06636454164981842,
0.2705114781856537,
0.14031577110290527,
-0.2775343060493469,
-0.21453364193439484,
0.14243711531162262,
-0.12168540060520172,
-0.1503286510705948,
0.3247877359390259,
-0.00011020527745131403,
0.25825977325439453,
0.36561453342437744,
-0.22358693182468414,
-0.27151718735694885,
-0.15602420270442963,
-0.4222054183483124,
-0.13409902155399323,
-0.18755733966827393,
-0.15281133353710175,
0.07393258810043335,
-0.2589229941368103,
-0.12428319454193115,
-0.4580080211162567,
0.0629989355802536,
0.25495895743370056,
0.2594358026981354,
0.5298959016799927,
0.42893970012664795,
0.10286320745944977,
0.2806044816970825,
-0.0724722146987915,
0.05729196220636368,
0.11741863191127777,
0.12824894487857819,
0.1596287488937378,
0.016191527247428894,
-0.08162619173526764,
-0.15226583182811737,
0.1627645492553711,
0.16232159733772278,
-0.36177071928977966,
0.009003065526485443,
-0.13751870393753052,
0.19708126783370972,
0.3654465973377228,
0.7156851291656494,
-0.18153446912765503,
-0.37900543212890625,
-0.09363417327404022,
-0.19864830374717712,
0.09847640991210938,
0.3893738090991974,
0.37785208225250244,
-0.030930859968066216,
0.0653214156627655,
-0.5064878463745117,
0.13392630219459534,
0.10919763147830963,
0.051266148686409,
0.04045294225215912,
0.07591196894645691,
0.02933717519044876,
0.008689265698194504,
-0.10229815542697906,
-0.11599856615066528,
0.3256932199001312,
-0.2656746804714203,
-0.39639899134635925,
0.1373600959777832,
-0.3631495237350464,
0.05081113427877426,
-0.14399856328964233,
0.05000566691160202,
0.3663639426231384,
0.6212912201881409,
0.24623414874076843,
0.04201086238026619,
-0.30807721614837646,
0.07781089097261429,
0.08994261920452118,
0.361391544342041,
-0.005469612777233124,
0.1346787065267563,
0.19483472406864166,
0.10071875154972076,
0.08523011207580566,
0.05211758241057396,
0.0023273020051419735,
-0.5429376363754272,
0.14480440318584442,
0.09510622918605804,
0.3429884910583496,
-0.3038516640663147,
-0.4549228549003601,
0.04721751809120178,
0.13783752918243408,
-0.1998879313468933,
0.14379490911960602,
-0.007650166749954224,
-0.08684422820806503,
0.08028359711170197,
0.3436453342437744,
0.08801232278347015,
-0.1021176353096962,
-0.20389944314956665,
-0.23109403252601624,
-0.20347502827644348,
-0.09486301988363266,
-0.06298018991947174,
0.19002941250801086,
-0.20039252936840057,
0.6136526465415955,
-0.09170522540807724,
0.0911763608455658,
-0.11073572188615799,
0.01294107548892498,
0.04645407944917679,
0.04094696789979935,
0.32191142439842224,
-0.1849278211593628,
0.013551542535424232,
0.11998845636844635,
0.15284641087055206,
-0.09410341084003448,
0.25843462347984314,
-0.23438915610313416,
-0.3227926790714264,
-0.18615323305130005,
0.21907822787761688,
-0.3183867335319519,
0.047287195920944214,
-0.16845208406448364,
-0.3878966271877289,
0.31566402316093445,
-0.26227712631225586,
-0.06020914763212204,
-0.2444445639848709,
-0.17596077919006348,
-0.1386687457561493,
0.3337227404117584,
0.222080796957016,
-0.19107306003570557,
0.12604908645153046,
0.16829708218574524,
-0.14563460648059845,
0.04637477546930313,
0.23194727301597595,
-0.13132357597351074,
0.09054911136627197,
-0.24812781810760498,
-0.024245914071798325,
0.0881311297416687,
-0.5387324690818787,
-0.4547848403453827,
-0.0014984257286414504,
0.20151068270206451,
0.0489920973777771,
0.1314413845539093,
-0.16128872334957123,
-0.07246535271406174,
-0.27142447233200073,
-0.2563686966896057,
0.2582874298095703,
-0.034631580114364624,
0.38931387662887573,
-0.24383564293384552,
-0.29655537009239197,
0.06668023020029068,
0.11800223588943481,
-0.049260083585977554,
-0.0816771611571312,
0.16936366260051727,
-0.009562707506120205,
0.2051241099834442,
0.05321679636836052,
0.03258513659238815,
0.10854162275791168,
0.12497523427009583,
-0.17385870218276978,
-0.042623862624168396,
-0.024978619068861008,
-0.196618914604187,
0.25510144233703613,
-0.07079771161079407,
0.13201028108596802,
0.06275178492069244,
0.17827892303466797,
-0.44891905784606934,
-0.17985151708126068,
-0.20493479073047638,
0.08680815994739532,
0.15477420389652252,
0.12019876390695572,
-0.1345563679933548,
0.031544867902994156,
0.09744247794151306,
0.16824932396411896,
-0.16912133991718292,
0.055603329092264175,
-0.22891774773597717,
0.2009185403585434,
-0.024428097531199455,
-0.1356211006641388,
0.42638689279556274,
0.04833299666643143,
-0.09074660390615463,
0.06490910798311234,
-0.41731229424476624,
0.48934367299079895,
-0.06213909015059471,
0.034702807664871216,
0.09463440626859665,
0.45190727710723877,
0.007932707667350769,
-0.35282111167907715,
0.0029318146407604218,
0.02977422997355461,
0.1392335146665573,
-0.1301710605621338,
0.27138057351112366,
-0.0893518328666687,
0.036214474588632584,
-0.1035483106970787,
-0.15821312367916107,
-0.1385202258825302,
0.025493232533335686,
-0.08584560453891754,
-0.0036497507244348526,
-0.15472173690795898,
0.036335255950689316,
0.2815307676792145,
0.20902597904205322,
0.18244166672229767,
0.3501012325286865,
-0.24961420893669128,
0.391729474067688,
0.052399519830942154,
0.0041366927325725555,
0.13145245611667633,
-0.03018658608198166,
-0.054748617112636566,
-0.12313078343868256,
0.2424139827489853,
0.4796057939529419,
0.08813653141260147,
0.07107079029083252,
0.10279148072004318,
0.08280709385871887,
-0.06660342216491699,
0.24181175231933594,
0.19843724370002747,
0.35641244053840637,
0.4244212508201599,
-0.17830121517181396,
-0.11445809155702591,
-0.2286888062953949,
0.15820780396461487,
0.12662135064601898,
0.2964770197868347,
-0.5625896453857422,
-0.23324191570281982,
-0.3110377788543701,
0.12629064917564392,
-0.055384181439876556,
0.03164543956518173,
-0.31437790393829346,
-0.18024323880672455,
-0.16896308958530426,
0.10818588733673096,
-0.047539569437503815,
0.19516979157924652,
-0.14588402211666107,
0.047733232378959656,
0.310332328081131,
0.04439816623926163,
0.15167437493801117,
-0.0028466731309890747,
-0.1123989149928093,
0.08653534948825836,
0.674687385559082,
-0.11400836706161499,
0.3397878110408783,
-0.4775013327598572,
0.1271572709083557,
-0.38007888197898865,
0.04265888035297394,
-0.086310014128685,
-0.08931714296340942,
0.2315172553062439,
0.22026538848876953,
0.27558082342147827,
0.07884002476930618,
-0.20324701070785522,
0.03590206429362297,
0.0523618683218956,
-0.41629552841186523,
0.030953817069530487,
-0.06365399807691574,
-0.13200360536575317,
0.10256451368331909,
-0.04233226925134659,
0.04323453828692436,
-0.38937634229660034,
-0.07244215905666351,
-0.03456903249025345,
0.10052396357059479,
0.09629376977682114,
0.08171897381544113,
-0.05085405707359314,
0.09960468858480453,
0.2866056561470032,
-0.1770675778388977,
-0.8880888819694519,
0.3540099561214447,
-0.16702909767627716,
-0.3587040901184082,
-0.021413806825876236,
0.14227993786334991,
0.23747436702251434,
0.02888987585902214,
-0.4529920220375061,
-0.18521025776863098,
-0.21916915476322174,
-0.02743353322148323,
0.06383850425481796,
0.1969691812992096,
0.11625440418720245,
0.0691952258348465,
-0.08237412571907043,
-0.3447432219982147,
-0.22738361358642578,
0.10996827483177185,
-0.2630300223827362,
0.5279319286346436,
-0.010122593492269516,
0.06297384202480316,
0.009014125913381577,
0.1534837782382965,
0.41101861000061035,
-0.17774131894111633,
0.42435479164123535,
0.24266448616981506,
0.32681795954704285,
-0.21497154235839844,
-0.11420904099941254,
0.016531972214579582,
-0.1049811840057373,
0.3337227702140808,
0.20431363582611084,
0.06277448683977127,
0.25876086950302124,
-0.16101625561714172,
-0.02751176990568638,
-0.5019212365150452,
-0.31192559003829956,
-0.12613658607006073,
-0.47713983058929443,
0.15790951251983643,
0.0015204455703496933,
-0.04577898606657982,
-0.1766190081834793,
-0.2818221151828766,
0.12433812022209167,
0.05946262925863266,
-0.011807672679424286,
0.0062620374374091625,
-0.1055888682603836,
0.11246959120035172,
-0.04350493103265762,
0.3818662762641907,
0.15931950509548187,
0.44641467928886414,
0.03258613124489784,
-0.03944725915789604,
-0.11863845586776733,
0.20158155262470245,
0.17719735205173492,
-0.1391030251979828,
0.32494133710861206,
0.0442027784883976,
0.13096900284290314,
-0.19883987307548523,
-0.20676203072071075,
0.2606893479824066,
-0.023609815165400505,
0.3816582262516022,
-0.11965909600257874,
-0.42885443568229675,
0.029806483536958694,
0.22819571197032928,
0.4090625047683716,
-0.15623721480369568,
-0.13942083716392517,
-0.2068852037191391,
-0.3080565929412842,
-0.340219646692276,
-0.36947381496429443,
0.13380266726016998,
0.28980812430381775,
-0.153035968542099,
-0.032877884805202484,
-0.1857862025499344,
-0.2667185068130493,
0.3404832184314728,
-0.1804639995098114,
0.4067647159099579,
0.010700454004108906,
0.32089751958847046,
0.021331574767827988,
0.23193374276161194,
0.44217684864997864,
0.7271000146865845,
-0.1791527420282364,
-0.21855980157852173,
-0.053612805902957916,
-0.15412704646587372,
-0.20871058106422424,
0.007136359810829163,
0.03063097596168518,
-0.25574997067451477,
0.0924115777015686,
-0.05743002891540527,
0.04436574876308441,
0.06087427958846092,
0.1258152425289154,
0.06997566670179367,
-0.4000614583492279,
-0.2998197376728058,
0.2181069254875183,
-0.15618963539600372,
0.0378430038690567,
0.5064828395843506,
0.06762370467185974,
-0.0924675390124321,
0.06693091988563538,
0.13194262981414795,
0.6712409853935242,
-0.14443956315517426,
-0.13369452953338623,
0.04413933306932449,
-0.174080491065979,
-0.23784050345420837,
0.03186293691396713,
-0.21227677166461945,
-0.3817216753959656,
-0.5945903658866882,
0.09307155758142471,
-0.2704686224460602,
0.03290072828531265,
0.22460147738456726,
0.06613779067993164,
0.05677247792482376,
-0.016789615154266357,
-0.0726986974477768,
0.06999337673187256,
0.31502941250801086,
-0.31023693084716797,
0.00562396552413702,
0.06747044622898102,
0.15057812631130219,
-0.2651734948158264,
0.2959449589252472,
-0.06670694798231125,
-0.1344788670539856,
-0.05335448682308197,
-0.22417116165161133,
-0.6046838164329529,
0.06335709244012833,
-0.28824344277381897,
0.2968218922615051,
0.25084537267684937,
0.04943118989467621,
0.15745608508586884,
0.40118521451950073,
0.44368869066238403,
0.269525945186615,
-0.2344842255115509,
0.17275945842266083,
0.36235281825065613,
-0.014581729657948017,
-0.006413680501282215,
0.21171441674232483,
0.4534875452518463,
-0.1813887059688568,
-0.23891758918762207,
0.0377388671040535,
-0.09762895852327347,
-0.42824453115463257,
0.1780988872051239,
-0.28902387619018555,
0.1226876750588417,
-0.4741532504558563,
-0.044815778732299805,
-0.16104631125926971,
0.049567487090826035,
-0.11707718670368195,
0.1266118586063385,
0.30155688524246216,
-0.025820566341280937,
0.39387351274490356,
0.28724971413612366,
-0.4737056791782379,
0.08181129395961761,
0.43545347452163696,
-0.2639753520488739,
-0.06568954885005951,
0.7143595218658447,
-0.022422034293413162,
-0.11567935347557068,
-0.08455532044172287,
0.33561959862709045,
0.18993665277957916,
-0.4613093435764313,
0.1759454905986786,
-0.1370144635438919,
0.16763974726200104,
-0.02397819049656391,
0.5160509943962097,
0.45670634508132935,
0.3805167078971863,
0.32907718420028687,
-0.5187921524047852,
-0.12003687769174576,
0.03440110385417938,
-0.10448326170444489,
0.39243048429489136,
-0.16335466504096985,
0.0690324604511261,
0.03794819116592407,
0.010570266284048557,
-0.2830747365951538,
0.15002267062664032,
-0.3312317132949829,
0.051783885806798935,
0.13761520385742188,
0.057762518525123596,
0.09154108166694641,
-0.09882020950317383,
0.15344767272472382,
-0.15289421379566193,
-0.3658684492111206,
-0.21940049529075623,
-0.09376294910907745,
0.11551947146654129,
0.06070972979068756,
-0.378583163022995,
0.19934721291065216,
-0.3264404535293579,
-0.1617555320262909,
-0.1271056830883026,
0.006526516750454903,
0.03308994323015213,
-0.036198556423187256,
0.02743496745824814,
0.22514428198337555,
-0.024194948375225067,
0.0211055688560009,
0.056758977472782135,
-0.36257728934288025,
0.04970067739486694,
0.016909515485167503,
0.11009577661752701,
0.05229761078953743,
-0.10360279679298401,
0.0623391754925251,
0.08431071043014526,
-0.02418500930070877,
0.15176323056221008,
0.3195522129535675,
-0.20273791253566742,
0.06480380892753601,
0.4826674163341522,
0.30693888664245605,
0.02040582150220871,
-0.2247437685728073,
-0.12361110746860504,
0.1812742054462433,
0.19586366415023804,
-0.38937681913375854,
-0.04561525583267212,
0.018976395949721336,
0.22286567091941833,
-0.006358746439218521,
-0.11063457280397415,
0.2290058732032776,
-0.26771295070648193,
-0.06888025999069214,
0.00971912033855915,
0.20575954020023346,
0.24829764664173126,
0.29309210181236267,
0.5799326300621033,
-0.17591352760791779,
-0.10938259959220886,
-0.05683748424053192,
-0.17466098070144653,
0.09777426719665527,
0.013567399233579636,
-0.1359003484249115,
0.49298080801963806,
-0.3232513666152954,
0.2292829155921936,
-0.22666582465171814,
-0.708422839641571,
0.39198535680770874,
-0.14210090041160583,
0.07540445029735565,
0.004791572690010071,
0.2124481350183487,
0.24480357766151428,
-0.04973185807466507,
0.15012763440608978,
-0.3210781216621399,
0.419126957654953,
0.09328991174697876,
-0.02968008629977703,
-0.20519590377807617,
-0.26702889800071716,
0.10966961085796356,
0.006323367357254028,
-0.10578858852386475,
0.12217569351196289,
-0.0712563544511795,
0.16273218393325806,
-0.3029366731643677,
-0.12165044248104095,
0.05329861864447594,
-0.1697726845741272,
-0.03555866330862045,
-0.21466830372810364,
0.2357458919286728,
0.2564382553100586,
-0.17720206081867218,
0.3424808382987976,
0.7380921840667725,
0.371566504240036,
0.4830288589000702,
0.1371569037437439,
-0.1722055822610855,
0.1276463121175766,
0.12740738689899445,
-0.039328306913375854,
0.23277054727077484,
0.06349615752696991,
-0.0034287236630916595,
0.3761824369430542,
0.14738303422927856,
-0.03419603034853935,
-0.30397114157676697,
-0.2243894785642624,
-0.24511182308197021,
0.03944730386137962,
0.28845322132110596,
0.0391378253698349,
0.026352085173130035,
-0.24627915024757385,
0.19714830815792084,
-0.02846323698759079,
-0.03424510359764099,
0.20459027588367462,
-0.008646531961858273,
0.14362969994544983,
-0.016788531094789505,
0.0952034592628479,
-0.1158066838979721,
0.4963769018650055,
0.3752220571041107,
-0.1486889123916626,
-0.1958691030740738,
-0.37051457166671753,
-0.5975675582885742,
0.2106410562992096,
0.14323802292346954,
-0.10414475947618484,
0.17825715243816376,
-0.037259552627801895,
0.06176599860191345,
-0.10676498711109161,
0.4922026991844177,
0.013106048107147217,
-0.1966298222541809,
0.06174563616514206,
-0.24416479468345642,
-0.21797509491443634,
-0.22817446291446686,
-0.20181745290756226,
-0.043128494173288345,
-0.36144405603408813,
0.19158965349197388,
0.06508417427539825,
0.15798547863960266,
-0.19301962852478027,
0.0880778431892395,
0.048071663826704025,
0.08480077981948853,
0.14679032564163208,
-0.0055308472365140915,
0.4740922749042511,
0.05359021574258804,
-0.06333020329475403,
-0.09726227819919586,
-0.19116514921188354,
-0.16080020368099213,
0.5104886889457703,
-0.03388775512576103,
0.20856992900371552,
-0.01882626861333847,
-0.06992784142494202,
-0.2319626361131668,
0.37705108523368835,
-0.16403210163116455,
-0.13329415023326874,
-0.4568926990032196,
-0.20699352025985718,
-0.022743552923202515,
-0.2393718957901001,
0.3742823600769043,
-0.10857859998941422,
-0.2206009328365326,
0.3657267391681671,
0.011338822543621063,
-0.38287103176116943,
0.45739561319351196,
0.06344752013683319,
0.03669533506035805,
-0.14755746722221375,
0.056918706744909286,
-0.13455790281295776,
-0.04795151948928833,
-0.5954980254173279,
0.26969897747039795,
0.47910964488983154,
0.005198772996664047,
-0.03468996286392212,
0.23990431427955627,
-0.10953167080879211,
0.21110780537128448,
0.04919685795903206,
0.1587296426296234,
-0.030801761895418167,
-0.237563356757164,
-0.27001503109931946,
-0.038995955139398575
] |
https://github.com/huggingface/datasets/issues/724 | need to redirect /nlp to /datasets and remove outdated info | Should be fixed now:

Not sure I understand what you mean by the second part?
| It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all
should probably redirect to: https://huggingface.co/datasets/wikihow
also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had the links marked up, the new one is just a jumble of text in one chunk and no markup for links (i.e. not clickable). | 16 | need to redirect /nlp to /datasets and remove outdated info
It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all
should probably redirect to: https://huggingface.co/datasets/wikihow
also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had the links marked up, the new one is just a jumble of text in one chunk and no markup for links (i.e. not clickable).
Should be fixed now:

Not sure I understand what you mean by the second part?
| [
0.2948439121246338,
0.11055658757686615,
-0.06337518990039825,
0.10946282744407654,
-0.07132752984762192,
0.035395585000514984,
-0.26029959321022034,
0.6290496587753296,
-0.2917526364326477,
-0.4541856050491333,
-0.1458728164434433,
0.21951068937778473,
0.29476043581962585,
0.08501214534044266,
0.14242587983608246,
-0.31717196106910706,
0.013365060091018677,
0.06064160540699959,
-0.007777683436870575,
-0.1089683324098587,
-0.1860750913619995,
0.08062253892421722,
-0.40319550037384033,
0.1164989173412323,
-0.049544669687747955,
0.041898272931575775,
-0.21736693382263184,
0.32267799973487854,
-0.08742992579936981,
-0.427148699760437,
0.12243694067001343,
0.015316268429160118,
-0.020940303802490234,
0.1970619112253189,
-0.00010609383025439456,
-0.3152424097061157,
0.3930564522743225,
0.1965436339378357,
-0.37181732058525085,
-0.03979779779911041,
-0.26570451259613037,
-0.5014023184776306,
-0.08381633460521698,
-0.1341037154197693,
0.07583055645227432,
-0.13199834525585175,
0.06860151886940002,
0.3240991234779358,
0.4053316116333008,
0.4329930543899536,
0.268554151058197,
-0.27238157391548157,
-0.156765416264534,
0.13521099090576172,
0.0452876091003418,
0.3373912572860718,
0.17362765967845917,
-0.13080604374408722,
0.10291261225938797,
-0.043501563370227814,
-0.13778838515281677,
0.6198434233665466,
-0.14459630846977234,
-0.2727702856063843,
0.08244837075471878,
-0.08140616118907928,
0.038675375282764435,
-0.10812832415103912,
-0.029700912535190582,
0.1601061075925827,
0.5080626010894775,
-0.11428777128458023,
-0.03725070506334305,
-0.19967719912528992,
0.0020607407204806805,
-0.22074805200099945,
0.220660001039505,
0.14264589548110962,
-0.15531565248966217,
0.1439512073993683,
-0.2525389492511749,
-0.6442890167236328,
-0.2582041621208191,
0.34721386432647705,
0.06508950889110565,
0.535750687122345,
0.039328280836343765,
-0.050986602902412415,
0.023703251034021378,
-0.021287668496370316,
0.22738797962665558,
0.0018418915569782257,
-0.15102823078632355,
0.20544683933258057,
0.27615904808044434,
-0.17887263000011444,
-0.01239166408777237,
0.4630790054798126,
0.03186142444610596,
-0.005033969879150391,
-0.0059897275641560555,
0.15220299363136292,
-0.25599923729896545,
-0.06085522472858429,
0.14961394667625427,
0.08872668445110321,
0.1551511287689209,
-0.009997024200856686,
0.14123886823654175,
0.2226875126361847,
0.12278251349925995,
0.11272497475147247,
0.21705566346645355,
-0.022042877972126007,
-0.41409656405448914,
0.05992680788040161,
0.3093496561050415,
-0.3077695071697235,
-0.03514484316110611,
0.010313263162970543,
-0.03114021010696888,
-0.15609097480773926,
0.04602846875786781,
0.07817259430885315,
-0.24047301709651947,
0.2759421765804291,
0.2424456924200058,
0.0025035683065652847,
-0.2576318681240082,
-0.19792540371418,
0.03920162096619606,
0.1484769582748413,
-0.5195072889328003,
-0.0037094857543706894,
0.17930322885513306,
0.30318814516067505,
0.19633078575134277,
0.20888374745845795,
-0.49146389961242676,
-0.010320223867893219,
-0.13241292536258698,
0.08798810839653015,
0.34866976737976074,
-0.0020263753831386566,
-0.13990408182144165,
0.17517374455928802,
-0.06485557556152344,
-0.17585474252700806,
-0.16010291874408722,
0.15169835090637207,
-0.3903273642063141,
-0.1063864603638649,
-0.10175347328186035,
0.2205362468957901,
0.0132218636572361,
-0.06956598907709122,
0.10467372834682465,
0.5226598978042603,
-0.015245236456394196,
-0.2866700291633606,
0.06813988089561462,
0.2493867129087448,
-0.052592016756534576,
-0.16061519086360931,
0.09809283912181854,
0.4052124619483948,
0.07942533493041992,
-0.06461271643638611,
-0.07684120535850525,
-0.030198104679584503,
-0.006601259112358093,
0.17821986973285675,
-0.1378757655620575,
0.053047940135002136,
-0.14633414149284363,
-0.22177153825759888,
0.6264216303825378,
-0.3208303153514862,
-0.028923718258738518,
0.2638677954673767,
-0.05415736138820648,
0.10317141562700272,
-0.22767609357833862,
0.010935336351394653,
-0.1501188576221466,
-0.2054259032011032,
-0.07729673385620117,
0.28692108392715454,
0.1903686821460724,
-0.07081137597560883,
-0.5612447261810303,
-0.12198667228221893,
0.0364454984664917,
-0.1459210366010666,
-0.11867445707321167,
0.24815583229064941,
-0.1282702386379242,
0.14271916449069977,
0.5751603245735168,
0.10897496342658997,
0.23627078533172607,
0.04615726321935654,
-0.0069276317954063416,
0.21621069312095642,
-0.02326863259077072,
0.19555816054344177,
-0.3031812608242035,
-0.2531626522541046,
-0.22060933709144592,
0.22186264395713806,
0.3798182010650635,
-0.22038860619068146,
-0.2938581109046936,
-0.3824450373649597,
-0.10477463901042938,
-0.4056070148944855,
0.26080194115638733,
0.04121864587068558,
0.037069547921419144,
0.13449716567993164,
-0.21195553243160248,
0.10604152828454971,
0.02137230522930622,
0.15961505472660065,
-0.2815706431865692,
0.22193558514118195,
-0.21161077916622162,
0.11301958560943604,
0.08179133385419846,
0.3167989253997803,
0.30626949667930603,
0.03177209571003914,
0.07380575686693192,
0.30218255519866943,
-0.241365447640419,
0.21402853727340698,
0.35574743151664734,
0.003224313259124756,
0.3906036615371704,
-0.37584543228149414,
0.13474786281585693,
0.23792387545108795,
-0.25603729486465454,
0.12307851761579514,
-0.32589536905288696,
0.01458149403333664,
0.139680415391922,
0.33526724576950073,
0.06112458556890488,
0.27519717812538147,
0.09694212675094604,
-0.4506773054599762,
0.01992846466600895,
0.03520554304122925,
0.035097215324640274,
0.18070389330387115,
-0.17058829963207245,
0.0479942224919796,
-0.22745583951473236,
0.5184099078178406,
-0.13274717330932617,
-0.09023591130971909,
-0.16306129097938538,
0.44214117527008057,
-0.1375369429588318,
-0.43954411149024963,
0.1946420520544052,
0.1848457157611847,
-0.23798443377017975,
0.24287961423397064,
0.13443857431411743,
0.20760701596736908,
0.013111562468111515,
-0.1935090720653534,
0.36325886845588684,
0.13673540949821472,
0.013725655153393745,
-0.13696059584617615,
0.09383690357208252,
0.22380706667900085,
-0.1558361053466797,
-0.18748129904270172,
-0.13778983056545258,
0.3766481280326843,
-0.2000192254781723,
-0.02178690768778324,
-0.23448628187179565,
-0.844961404800415,
-0.2666619122028351,
-0.0810861885547638,
-0.49774396419525146,
-0.45891666412353516,
-0.009436577558517456,
-0.01909923180937767,
-0.208568274974823,
0.10833967477083206,
0.09199725091457367,
0.23549695312976837,
-0.2721154987812042,
0.3169383108615875,
-0.5359975099563599,
-0.3892779052257538,
-0.18887758255004883,
0.1811915785074234,
0.18175186216831207,
0.382754921913147,
0.16271422803401947,
-0.04758107662200928,
0.019403621554374695,
-0.20129400491714478,
-0.6216059923171997,
-0.01748860627412796,
0.1355213224887848,
-0.01726914756000042,
0.0692637711763382,
0.34525173902511597,
-0.13154560327529907,
-0.0921543762087822,
0.1151110902428627,
-0.06908489018678665,
0.022081730887293816,
-0.25426965951919556,
0.04542219266295433,
0.28097522258758545,
-0.05252408608794212,
-0.2910259962081909,
-0.23593442142009735,
-0.310924232006073,
0.021790537983179092,
0.11826863884925842,
0.36055153608322144,
0.4227542281150818,
0.07194087654352188,
-0.23292729258537292,
-0.13648919761180878,
0.17042306065559387,
-0.3226848244667053,
-0.2482667714357376,
0.04141026735305786,
-0.15809378027915955,
-0.19720110297203064,
-0.025227610021829605,
0.06465645134449005,
0.07759362459182739,
-0.04998646676540375,
-0.6025814414024353,
-0.12694692611694336,
-0.13139627873897552,
-0.12867504358291626,
0.0709889754652977,
0.10484258830547333,
0.28392189741134644,
0.2563125193119049,
-0.32286536693573,
0.10378239303827286,
-0.18251420557498932,
-0.1681530773639679,
0.007123248651623726,
0.4162355661392212,
-0.005643166601657867,
-0.07130640745162964,
0.20427605509757996,
0.297085165977478,
0.13277824223041534,
0.24554786086082458,
0.1495492160320282,
0.24902714788913727,
0.3893798589706421,
0.10034897923469543,
-0.2246985137462616,
0.13891632854938507,
-0.03004591166973114,
0.1968899965286255,
0.2607528567314148,
0.29536983370780945,
-0.07109095901250839,
-0.3592981994152069,
-0.2804763615131378,
-0.5068992972373962,
-0.3678108751773834,
0.2198280394077301,
-0.003930423408746719,
0.1960819661617279,
0.43655475974082947,
-0.058610979467630386,
-0.06075114384293556,
-0.362148255109787,
0.06131237372756004,
0.3835928440093994,
0.0864197239279747,
-0.0400690883398056,
-0.5179491639137268,
-0.2183753401041031,
-0.3404262065887451,
0.10403174161911011,
-0.016234245151281357,
-0.07009734213352203,
-0.12190514802932739,
-0.08539784699678421,
-0.041790202260017395,
0.0335986353456974,
0.05605839565396309,
-0.26367008686065674,
-0.1103125661611557,
-0.0688563734292984,
0.37814566493034363,
-0.21338219940662384,
0.37724822759628296,
0.005436517298221588,
0.21639004349708557,
0.4170417785644531,
0.25482863187789917,
-0.08869528770446777,
-0.29469090700149536,
0.47329601645469666,
-0.04840186610817909,
-0.15885397791862488,
0.17522799968719482,
-0.013316795229911804,
-0.2834281325340271,
-0.2460772842168808,
0.007094904780387878,
-0.16682784259319305,
-0.13999609649181366,
-0.14375683665275574,
0.16507911682128906,
0.37782254815101624,
0.06473351269960403,
0.10961199551820755,
0.008641229942440987,
0.10397402197122574,
0.2948506772518158,
-0.37887275218963623,
0.08812206238508224,
0.2247513085603714,
0.10099004954099655,
0.3582814037799835,
-0.18544325232505798,
0.08832036703824997,
-0.4033203125,
0.1375190168619156,
0.5038177371025085,
0.5648972988128662,
0.4843829870223999,
0.10573095828294754,
-0.038165949285030365,
0.04342805594205856,
-0.27254459261894226,
0.12195798754692078,
-0.036309920251369476,
-0.06687900424003601,
-0.42125341296195984,
-0.2740127742290497,
0.4274556338787079,
-0.2244536280632019,
-0.33459192514419556,
0.183926522731781,
0.3845708966255188,
-0.3714582026004791,
0.09863103181123734,
-0.05411652475595474,
1.3036731481552124,
0.11775641143321991,
0.2643565237522125,
0.28513675928115845,
-0.3264492154121399,
0.6118416786193848,
0.13519200682640076,
0.18032322824001312,
-0.3115258812904358,
0.29392489790916443,
0.07588497549295425,
0.10332454741001129,
0.035561494529247284,
-0.016903437674045563,
-0.2762356400489807,
0.1469133049249649,
-0.009463205933570862,
-0.1048600822687149,
0.31480351090431213,
0.5139610767364502,
0.08885888010263443,
-0.010127397254109383,
-0.49546319246292114,
0.21048755943775177,
-0.3010268807411194,
0.15790793299674988,
-0.13874411582946777,
-0.21650469303131104,
-0.14142253994941711,
-0.007996179163455963,
0.15919847786426544,
0.15935784578323364,
0.12336302548646927,
-0.010232396423816681,
-0.1897461861371994,
-0.4062088131904602,
-0.09057722985744476,
0.1806747317314148,
0.1331237107515335,
0.22410723567008972,
-0.2983705997467041,
0.27567821741104126,
-0.13528963923454285,
-0.008419637568295002,
0.15122094750404358,
0.08757305890321732,
0.019918663427233696,
-0.04252821207046509,
-0.26993200182914734,
-0.005320928990840912,
0.03870932385325432,
-0.030447039753198624,
-0.40817996859550476,
-0.2474006563425064,
0.20239105820655823,
-0.1728232353925705,
0.17585738003253937,
0.3450039327144623,
-0.3697670102119446,
-0.22667083144187927,
0.1665833741426468,
0.19981564581394196,
-0.0727846771478653,
-0.1729567050933838,
0.4413703382015228,
-0.0301591157913208,
-0.050958599895238876,
0.1921454668045044,
0.12123259902000427,
-0.32296988368034363,
0.3000794053077698,
0.11502689123153687,
-0.07654538005590439,
-0.3487906754016876,
0.11234576255083084,
-0.01910516992211342,
-0.24206945300102234,
-0.049796365201473236,
-0.22208958864212036,
-0.044644832611083984,
-0.04330647736787796,
0.1412593126296997,
-0.13105307519435883,
0.11303555220365524,
0.04112548753619194,
-0.22626584768295288,
-0.28567540645599365,
0.34850937128067017,
-0.12303397059440613,
-0.02453496679663658,
-0.1657322347164154,
0.17055246233940125,
0.2855711281299591,
0.11658560484647751,
-0.3988352417945862,
0.21321573853492737,
0.15583264827728271,
0.384337842464447,
0.07381007075309753,
-0.16936516761779785,
-0.03311116620898247,
-0.1091754287481308,
0.015205053612589836,
-0.3327125310897827,
-0.01919131726026535,
-0.3111661374568939,
-0.15702545642852783,
0.09580772370100021,
0.13155734539031982,
-0.42060789465904236,
-0.19382578134536743,
0.004829008132219315,
0.34106525778770447,
-0.02826741710305214,
-0.3932343125343323,
-0.05280834436416626,
0.10413894057273865,
0.3544599711894989,
-0.03494648262858391,
-0.13485801219940186,
0.20512497425079346,
0.10460926592350006,
-0.005475863814353943,
0.31327956914901733,
0.09777707606554031,
0.09857852011919022,
-0.18849116563796997,
-0.11681064963340759,
-0.02804829180240631,
0.20468109846115112,
0.09454675018787384,
0.3071025311946869,
0.18232488632202148,
-0.01726960390806198,
0.0843006819486618,
0.19883286952972412,
0.24876639246940613,
0.3345128893852234,
-0.1385532021522522,
-0.10200270265340805,
0.29875126481056213,
0.25162771344184875,
-0.152503103017807,
0.30645352602005005,
0.41093501448631287,
-0.2264777272939682,
-0.140646830201149,
0.04764699935913086,
0.053516317158937454,
-0.19124028086662292,
-0.0045948997139930725,
0.16637220978736877,
0.3280128240585327,
-0.372498095035553,
0.17658212780952454,
-0.02270716056227684,
-0.15440358221530914,
-0.18689823150634766,
0.06496942043304443,
-0.002525079995393753,
-0.013982035219669342,
0.051051944494247437,
0.16124922037124634,
0.07209908217191696,
0.24489828944206238,
0.15898899734020233,
-0.030577190220355988,
0.13224175572395325,
-0.10214148461818695,
0.24600756168365479,
0.04740401729941368,
0.28535449504852295,
0.13209988176822662,
0.32344281673431396,
0.1637508124113083,
-0.5597473978996277,
0.18611231446266174,
0.2872389853000641,
-0.0840739756822586,
-0.0687481015920639,
-0.23937618732452393,
-0.09504405409097672,
0.02503468096256256,
-0.14068372547626495,
-0.004786621779203415,
-0.3113841414451599,
0.29023799300193787,
0.005597405135631561,
-0.2713834047317505,
-0.6167179346084595,
0.054041214287281036,
0.23059147596359253,
0.3701769709587097,
0.13060720264911652,
-0.01615309901535511,
0.0870966762304306,
0.1048499345779419,
0.1810632199048996,
0.3856884241104126,
0.20373253524303436,
0.0893043577671051,
-0.2723143398761749,
0.1367497444152832,
-0.04689563438296318,
-0.10206349939107895,
-0.06292527914047241,
0.10479456186294556,
0.4423390328884125,
-0.10140430927276611,
0.08564117550849915,
0.1887866109609604,
-0.1606447994709015,
0.0905621200799942,
0.24363622069358826,
-0.07578408718109131,
0.14766764640808105,
0.18565955758094788,
0.22982260584831238,
-0.3325280249118805,
-0.11751551926136017,
-0.26001450419425964,
-0.37333452701568604,
-0.11174965649843216,
0.2153913676738739,
-0.11596979945898056,
0.14281076192855835,
-0.046260662376880646,
0.10985177755355835,
0.2666892111301422,
0.33524152636528015,
0.43744879961013794,
0.09773074835538864,
-0.278922975063324,
-0.4578016400337219,
-0.5455573797225952,
-0.10647252947092056,
0.023102156817913055,
-0.21414536237716675,
-0.06228020787239075,
0.08307542651891708,
-0.3161223530769348,
0.15278300642967224,
-0.10497581958770752,
-0.19181978702545166,
0.1794046014547348,
-0.24795719981193542,
-0.3061392903327942,
0.35065749287605286,
0.1376369446516037,
0.4061351716518402,
-0.013825124129652977,
-0.08664298057556152,
0.27083009481430054,
-0.10542593896389008,
0.09049422293901443,
0.1379040777683258,
0.10306870937347412,
0.026621177792549133,
0.2724766433238983,
0.02272966504096985,
0.3079681396484375,
0.05807606503367424,
-0.12094426155090332,
-0.44219598174095154,
-0.4232121706008911,
-0.24317984282970428,
-0.07300329953432083,
0.312966912984848,
0.1411992758512497,
0.37247130274772644,
-0.12171142548322678,
-0.014142628759145737,
-0.059538211673498154,
0.27345287799835205,
0.1081349104642868,
0.2610916495323181,
-0.27062180638313293,
0.1001242846250534,
0.30216220021247864,
0.252270370721817,
-0.08205974847078323,
0.20434442162513733,
-0.037010714411735535,
0.10822941362857819,
-0.43401527404785156,
-0.3835901618003845,
0.43557894229888916,
-0.2187875211238861,
-0.17245829105377197,
0.03308618813753128,
0.3791278898715973,
-0.06448999792337418,
0.28662997484207153,
-0.6331456303596497,
-0.2555648684501648,
0.25072750449180603,
0.05253692716360092,
-0.25291508436203003,
0.2137627899646759,
-0.3686191141605377,
-0.3414424657821655,
0.052519310265779495,
0.038479626178741455,
0.227308988571167,
-0.446492999792099,
0.15767814218997955,
-0.14973261952400208
] |
https://github.com/huggingface/datasets/issues/724 | need to redirect /nlp to /datasets and remove outdated info | Thank you!
> Not sure I understand what you mean by the second part?
Compare the 2:
* https://huggingface.co/datasets/wikihow
* https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all
Can you see the difference? 2nd has formatting, 1st doesn't.
| It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all
should probably redirect to: https://huggingface.co/datasets/wikihow
also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had the links marked up, the new one is just a jumble of text in one chunk and no markup for links (i.e. not clickable). | 31 | need to redirect /nlp to /datasets and remove outdated info
It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all
should probably redirect to: https://huggingface.co/datasets/wikihow
also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had the links marked up, the new one is just a jumble of text in one chunk and no markup for links (i.e. not clickable).
Thank you!
> Not sure I understand what you mean by the second part?
Compare the 2:
* https://huggingface.co/datasets/wikihow
* https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all
Can you see the difference? 2nd has formatting, 1st doesn't.
| [
0.33476942777633667,
-0.03131116181612015,
-0.02454305626451969,
0.12239257991313934,
-0.11466503143310547,
0.045322418212890625,
-0.3248897194862366,
0.6779080629348755,
-0.43325114250183105,
-0.5133861303329468,
-0.15811605751514435,
0.030890051275491714,
0.2777538299560547,
0.037030622363090515,
0.0912267342209816,
-0.3001837730407715,
0.08389976620674133,
0.06830699741840363,
0.1088951975107193,
-0.08652465790510178,
-0.18525704741477966,
0.0762515738606453,
-0.4062895178794861,
0.11215001344680786,
-0.01148044504225254,
0.1722000539302826,
-0.25185447931289673,
0.29789844155311584,
-0.05226615071296692,
-0.4027543067932129,
0.22215838730335236,
-0.007939275354146957,
-0.005046194419264793,
0.3382582366466522,
-0.00011578635894693434,
-0.41165274381637573,
0.4116842746734619,
0.18799975514411926,
-0.4584497809410095,
-0.030553549528121948,
-0.421091765165329,
-0.46285372972488403,
-0.09591829031705856,
-0.07234853506088257,
0.07694686204195023,
-0.07446996867656708,
-0.07120388746261597,
0.31257402896881104,
0.34487706422805786,
0.46433964371681213,
0.17841869592666626,
-0.29037049412727356,
-0.24163781106472015,
0.1717669814825058,
0.018994010984897614,
0.4204220771789551,
0.29076921939849854,
-0.10337963700294495,
0.1266767382621765,
0.02247116155922413,
0.01777050644159317,
0.6001995801925659,
-0.2633237838745117,
-0.2864016890525818,
0.0878257304430008,
-0.17379488050937653,
0.01004069298505783,
0.018770623952150345,
0.009945377707481384,
0.17834872007369995,
0.5071709752082825,
-0.15861615538597107,
-0.034593142569065094,
-0.1617974042892456,
-0.07239848375320435,
-0.3024502992630005,
0.1925821602344513,
0.0792359784245491,
-0.1341697871685028,
0.191006600856781,
-0.2741974890232086,
-0.6634988188743591,
-0.25678345561027527,
0.37193000316619873,
0.07374949753284454,
0.5255470871925354,
0.0017782347276806831,
-0.048595450818538666,
-0.025333229452371597,
0.05246993899345398,
0.32991790771484375,
-0.13220277428627014,
-0.14989100396633148,
0.10764861851930618,
0.3520328402519226,
-0.22753778100013733,
-0.1650882065296173,
0.38880184292793274,
-0.07394963502883911,
0.08602596819400787,
-0.04503519460558891,
0.1166936606168747,
-0.21309170126914978,
-0.06960784643888474,
0.07307489216327667,
0.09223970770835876,
0.24081513285636902,
0.038711197674274445,
0.016371604055166245,
0.2204914689064026,
0.07337093353271484,
0.056351955980062485,
0.2624737322330475,
0.033074647188186646,
-0.39047887921333313,
0.14518281817436218,
0.3424992561340332,
-0.3545633852481842,
-0.1334959864616394,
-0.010732400231063366,
-0.13091211020946503,
-0.20283831655979156,
0.10301523655653,
0.02337034046649933,
-0.21825025975704193,
0.23973464965820312,
0.2594830393791199,
0.07843746989965439,
-0.232798233628273,
-0.24404801428318024,
0.11514674872159958,
0.1520034223794937,
-0.45993685722351074,
-0.08481771498918533,
0.14311109483242035,
0.2702643573284149,
0.15019260346889496,
0.24295859038829803,
-0.588312029838562,
-0.08735020458698273,
-0.16722838580608368,
0.03087032586336136,
0.4714205861091614,
-0.021943408995866776,
-0.21332742273807526,
0.2547944486141205,
0.005145080387592316,
-0.09932782500982285,
-0.22552910447120667,
0.21194365620613098,
-0.3909611999988556,
-0.18340755999088287,
-0.07277708500623703,
0.15278537571430206,
0.050520159304142,
-0.07922050356864929,
0.05943038687109947,
0.5098868608474731,
0.02437853068113327,
-0.33967965841293335,
0.13603012263774872,
0.24571368098258972,
-0.057863641530275345,
-0.18100498616695404,
0.11578022688627243,
0.5219933390617371,
0.06781736016273499,
-0.053228020668029785,
-0.14573056995868683,
0.04650173336267471,
0.12421722710132599,
0.19562019407749176,
-0.09219365566968918,
0.09918329864740372,
-0.08820869028568268,
-0.37095844745635986,
0.6637301445007324,
-0.3511180579662323,
-0.022715216502547264,
0.33515480160713196,
-0.008137930184602737,
0.16043227910995483,
-0.24533259868621826,
-0.04919983446598053,
-0.18750299513339996,
-0.2134549617767334,
-0.07447344064712524,
0.2241971641778946,
0.3232368528842926,
-0.15796370804309845,
-0.5133374929428101,
-0.1274109184741974,
0.035328153520822525,
-0.2628820836544037,
-0.19635313749313354,
0.23795196413993835,
-0.1808657944202423,
0.06268327683210373,
0.6130368709564209,
0.20458652079105377,
0.32685500383377075,
0.03669722378253937,
-0.07646940648555756,
0.27837610244750977,
-0.06551942974328995,
0.16432219743728638,
-0.2536486089229584,
-0.30687201023101807,
-0.21873322129249573,
0.07827730476856232,
0.3773011565208435,
-0.17645882070064545,
-0.31946098804473877,
-0.45416998863220215,
-0.1285850554704666,
-0.3704747259616852,
0.16094684600830078,
0.036783769726753235,
0.06690138578414917,
0.09186246991157532,
-0.21610099077224731,
0.11950190365314484,
0.12218926846981049,
0.162661612033844,
-0.15566512942314148,
0.23436333239078522,
-0.10732199996709824,
0.11856796592473984,
0.06807538121938705,
0.3675706684589386,
0.39039772748947144,
0.03110015206038952,
0.033188190311193466,
0.36234673857688904,
-0.23157308995723724,
0.10506852716207504,
0.3430273234844208,
-0.0005018413066864014,
0.27012622356414795,
-0.3319275975227356,
0.11482919752597809,
0.3078567683696747,
-0.29953110218048096,
0.11576776951551437,
-0.29412785172462463,
-0.097084641456604,
0.10801711678504944,
0.43771934509277344,
0.048613883554935455,
0.23804396390914917,
-0.042746834456920624,
-0.478486567735672,
0.013478290289640427,
0.012924738228321075,
0.09271278977394104,
0.14759671688079834,
-0.18524238467216492,
0.14967603981494904,
-0.17003792524337769,
0.48903024196624756,
-0.24321725964546204,
-0.2002648115158081,
-0.14696630835533142,
0.4490041434764862,
-0.24491122364997864,
-0.5029028058052063,
0.1238066777586937,
0.146093487739563,
-0.16999183595180511,
0.17700019478797913,
0.17781507968902588,
0.15860578417778015,
0.1773630827665329,
-0.1300581395626068,
0.3911327123641968,
0.19213025271892548,
-0.10777575522661209,
-0.18211397528648376,
0.06112808734178543,
0.28053271770477295,
0.011604402214288712,
-0.21504056453704834,
-0.12162205576896667,
0.32425349950790405,
-0.1866370588541031,
0.0014892350882291794,
-0.3264099359512329,
-0.8657704591751099,
-0.3520624041557312,
-0.20042990148067474,
-0.517225980758667,
-0.41042301058769226,
-0.09499005973339081,
-0.1143297404050827,
-0.13427674770355225,
0.045077480375766754,
0.1265207678079605,
0.23795992136001587,
-0.2683820128440857,
0.16452285647392273,
-0.5306436419487,
-0.2966868281364441,
-0.23250335454940796,
0.08226370811462402,
0.1692265421152115,
0.43109485507011414,
0.10234307497739792,
-0.013577977195382118,
0.131717711687088,
-0.238417387008667,
-0.5461176633834839,
-0.07724903523921967,
0.15112292766571045,
-0.11044740676879883,
0.04995834827423096,
0.3271472454071045,
-0.05154077708721161,
-0.038979824632406235,
0.10587761551141739,
0.09225456416606903,
0.047980062663555145,
-0.1891593188047409,
0.1006743460893631,
0.3573780655860901,
0.05063750967383385,
-0.19920465350151062,
-0.23204736411571503,
-0.23168733716011047,
-0.10653571784496307,
0.0011559128761291504,
0.3030376434326172,
0.32750117778778076,
0.042416367679834366,
-0.2985089123249054,
-0.15337343513965607,
0.19802230596542358,
-0.2720222771167755,
-0.2821148931980133,
-0.0865134745836258,
-0.05206475034356117,
-0.048083651810884476,
-0.04065253585577011,
0.16387659311294556,
-0.03995821252465248,
0.006331153213977814,
-0.5437180995941162,
0.01727849245071411,
-0.17213524878025055,
-0.22624216973781586,
0.07438869774341583,
0.05490866303443909,
0.32787853479385376,
0.29253512620925903,
-0.2564876675605774,
0.13805800676345825,
-0.2214040607213974,
-0.20198187232017517,
-0.003289107233285904,
0.4702102243900299,
0.03556395322084427,
-0.0804416611790657,
0.27079272270202637,
0.22457683086395264,
0.12598326802253723,
0.2435901015996933,
0.07094649225473404,
0.30617454648017883,
0.36961862444877625,
0.06878969818353653,
-0.21601812541484833,
0.11239516735076904,
-0.035227641463279724,
0.28036320209503174,
0.26624795794487,
0.33523786067962646,
0.03720571845769882,
-0.3397895395755768,
-0.3865874707698822,
-0.5043462514877319,
-0.32305625081062317,
0.20279288291931152,
-0.10362251102924347,
0.24990174174308777,
0.46114474534988403,
-0.09469307959079742,
-0.003217676654458046,
-0.3765963613986969,
0.07480517029762268,
0.4609953761100769,
0.10671877861022949,
0.009326392784714699,
-0.5229618549346924,
-0.23094318807125092,
-0.25635215640068054,
0.20965871214866638,
-0.01105296891182661,
-0.07892806828022003,
-0.06818784773349762,
-0.1151454746723175,
-0.056489571928977966,
0.1711409091949463,
0.005674920976161957,
-0.2897025942802429,
-0.13651150465011597,
-0.138512521982193,
0.40897923707962036,
-0.2733708322048187,
0.3602394163608551,
0.06295545399188995,
0.2372463047504425,
0.4312344491481781,
0.22340275347232819,
-0.11977657675743103,
-0.3254251182079315,
0.5697222948074341,
0.06453200429677963,
-0.061405107378959656,
0.09644046425819397,
-0.052477724850177765,
-0.2221927046775818,
-0.15602970123291016,
0.08559762686491013,
-0.19689396023750305,
-0.08816678076982498,
-0.12697772681713104,
0.23837830126285553,
0.36127588152885437,
0.0822327733039856,
0.18762274086475372,
-0.13193652033805847,
0.0705619752407074,
0.19954372942447662,
-0.458871454000473,
0.13546353578567505,
0.2541295886039734,
0.23007577657699585,
0.23529060184955597,
-0.2479998767375946,
0.029663696885108948,
-0.43503043055534363,
0.16642329096794128,
0.5890616178512573,
0.5690335631370544,
0.5141721367835999,
0.18990552425384521,
-0.008794257417321205,
-0.05518224835395813,
-0.23204374313354492,
0.05571715161204338,
-0.1033250093460083,
0.02826925367116928,
-0.6692450046539307,
-0.2759590744972229,
0.34346479177474976,
-0.20142196118831635,
-0.29963746666908264,
0.13271358609199524,
0.36801379919052124,
-0.32564178109169006,
0.13589321076869965,
-0.13866040110588074,
1.4525067806243896,
0.016154814511537552,
0.30749353766441345,
0.26226624846458435,
-0.36946749687194824,
0.5940526127815247,
0.12383854389190674,
0.20531433820724487,
-0.28391024470329285,
0.2496679127216339,
0.003674020990729332,
0.061879631131887436,
0.12283995002508163,
0.062334537506103516,
-0.2701878845691681,
0.2022421807050705,
-0.20049166679382324,
0.029986755922436714,
0.39939287304878235,
0.4282919466495514,
0.1693122237920761,
0.1005338579416275,
-0.5160796046257019,
0.11239601671695709,
-0.28109610080718994,
0.18089371919631958,
-0.12397713214159012,
-0.14404337108135223,
-0.22264893352985382,
0.031379371881484985,
0.18771658837795258,
0.08392835408449173,
0.14212122559547424,
-0.01836293190717697,
-0.2806871831417084,
-0.5062957406044006,
-0.11810179054737091,
0.15951421856880188,
0.16787089407444,
0.30431634187698364,
-0.20999690890312195,
0.2386777251958847,
-0.0549514964222908,
0.035658374428749084,
0.21626783907413483,
-0.053534992039203644,
-0.05589975416660309,
0.05562061071395874,
-0.23284275829792023,
0.03768359497189522,
0.031207460910081863,
-0.10295367240905762,
-0.3474047780036926,
-0.19760309159755707,
0.21854084730148315,
-0.2566682994365692,
0.05842200294137001,
0.3964417576789856,
-0.362354576587677,
-0.21254098415374756,
0.0836694985628128,
0.18097978830337524,
0.0384855717420578,
-0.18312150239944458,
0.34297749400138855,
-0.09227579832077026,
-0.05829755589365959,
0.18650461733341217,
0.15810677409172058,
-0.3483943045139313,
0.3420061469078064,
0.031388167291879654,
-0.07076235115528107,
-0.29124927520751953,
0.1405382752418518,
-0.0006708849687129259,
-0.19671320915222168,
0.02807718515396118,
-0.28343334794044495,
0.04843410849571228,
0.03639460355043411,
0.058109112083911896,
-0.20701758563518524,
0.15258771181106567,
0.03040136769413948,
-0.18029123544692993,
-0.22435730695724487,
0.2958812117576599,
-0.027894306927919388,
-0.05600109323859215,
-0.18102186918258667,
0.22586345672607422,
0.2381574809551239,
0.04134837165474892,
-0.29125502705574036,
0.34463992714881897,
0.29326483607292175,
0.4035775661468506,
0.013833576813340187,
-0.1386963129043579,
0.08366741985082626,
-0.13472320139408112,
-0.07228491455316544,
-0.4095422625541687,
0.09110624343156815,
-0.23181894421577454,
-0.13550405204296112,
0.12140252441167831,
0.08327493071556091,
-0.4337320625782013,
-0.2626565396785736,
-0.019955098628997803,
0.4507328271865845,
-0.05714406818151474,
-0.43372029066085815,
0.07906840741634369,
0.1367819905281067,
0.3330495357513428,
-0.010382618755102158,
-0.22219648957252502,
0.0730653628706932,
0.20711159706115723,
-0.034444697201251984,
0.24456243216991425,
0.05743700638413429,
0.14641030132770538,
-0.13660502433776855,
-0.08824839442968369,
-0.06301221996545792,
0.24192509055137634,
0.2073027491569519,
0.24858954548835754,
0.16363874077796936,
0.00788649171590805,
0.09670519828796387,
0.18743358552455902,
0.23492443561553955,
0.37426090240478516,
-0.16723252832889557,
-0.1907370239496231,
0.20223811268806458,
0.15708182752132416,
-0.06339901685714722,
0.3117010295391083,
0.3845292329788208,
-0.20913530886173248,
-0.19572612643241882,
-0.01791868358850479,
0.0369766466319561,
-0.1840924322605133,
-0.010348193347454071,
0.12971389293670654,
0.3523138463497162,
-0.31512367725372314,
0.13509568572044373,
0.0284249447286129,
0.05555630102753639,
-0.1573745161294937,
0.15700198709964752,
-0.02068960666656494,
-0.060465164482593536,
-0.10800594091415405,
0.2944137156009674,
-0.006999170407652855,
0.4499300420284271,
0.07546450197696686,
-0.11831865459680557,
0.06675985455513,
-0.19273735582828522,
0.2933219075202942,
0.040367491543293,
0.2244834005832672,
0.10309251397848129,
0.28422433137893677,
0.19653096795082092,
-0.5416132211685181,
0.3025433123111725,
0.20998689532279968,
-0.04102545231580734,
-0.09648272395133972,
-0.14457079768180847,
-0.03142751008272171,
0.05162608623504639,
-0.22592103481292725,
-0.04534473642706871,
-0.36148327589035034,
0.37044912576675415,
-0.004991360008716583,
-0.25213146209716797,
-0.5928735136985779,
0.053366389125585556,
0.2811320126056671,
0.3872300982475281,
0.10611940920352936,
-0.14772747457027435,
0.15048517286777496,
0.11307670176029205,
0.2815260887145996,
0.28999075293540955,
0.2494257241487503,
0.07437262684106827,
-0.262092649936676,
0.17132435739040375,
-0.08734722435474396,
-0.11287253350019455,
-0.019450834020972252,
0.16506721079349518,
0.47529053688049316,
-0.10735051333904266,
0.009632304310798645,
0.13373428583145142,
-0.05452658236026764,
0.10672013461589813,
0.31855738162994385,
0.021774044260382652,
0.07776401937007904,
0.18554876744747162,
0.19875863194465637,
-0.3515220284461975,
-0.13988865911960602,
-0.15422168374061584,
-0.34810537099838257,
-0.09487117826938629,
0.26650625467300415,
-0.08807814866304398,
0.07360721379518509,
0.0979902520775795,
0.05514334887266159,
0.3159169852733612,
0.2274731546640396,
0.5344841480255127,
0.0322413295507431,
-0.3407537639141083,
-0.48453933000564575,
-0.37065958976745605,
-0.2312297821044922,
0.04987858980894089,
-0.1062837615609169,
-0.11742542684078217,
0.04731772094964981,
-0.3516746461391449,
0.06694026291370392,
-0.12974829971790314,
-0.21984393894672394,
0.14226756989955902,
-0.2810116708278656,
-0.21784256398677826,
0.34594130516052246,
0.17543837428092957,
0.4400460124015808,
-0.05391295254230499,
-0.13313451409339905,
0.2523137331008911,
-0.04992713779211044,
0.009854219853878021,
0.12442043423652649,
0.10420180857181549,
0.13025212287902832,
0.28404000401496887,
-0.05737936496734619,
0.29449746012687683,
0.135045126080513,
-0.0791727602481842,
-0.49580395221710205,
-0.36766543984413147,
-0.1456315815448761,
0.007478254847228527,
0.43667909502983093,
0.0757361352443695,
0.28368934988975525,
-0.17624889314174652,
0.018086932599544525,
0.013163766823709011,
0.3886204957962036,
0.06562752276659012,
0.2432444989681244,
-0.35222136974334717,
0.007846221327781677,
0.2614367604255676,
0.255418986082077,
-0.064134381711483,
0.2637675106525421,
-0.043751589953899384,
0.23392100632190704,
-0.5088477730751038,
-0.24350698292255402,
0.41262784600257874,
-0.10944967716932297,
-0.13966012001037598,
-0.01693258434534073,
0.43144136667251587,
0.014138288795948029,
0.41375285387039185,
-0.6328083276748657,
-0.3446972966194153,
0.34292072057724,
0.10716485232114792,
-0.21540100872516632,
0.26766520738601685,
-0.47821366786956787,
-0.23451025784015656,
0.15658046305179596,
0.09311026334762573,
0.2110961377620697,
-0.4316197335720062,
0.17940671741962433,
-0.11448436230421066
] |
https://github.com/huggingface/datasets/issues/724 | need to redirect /nlp to /datasets and remove outdated info | For context, those are two different pages (not an old vs new one), one is from the dataset viewer (you can browse data inside the datasets) while the other is just a basic reference page displayed some metadata about the dataset.
For the second one, we'll move to markdown parsing soon, so it'll be formatted better. | It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all
should probably redirect to: https://huggingface.co/datasets/wikihow
also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had the links marked up, the new one is just a jumble of text in one chunk and no markup for links (i.e. not clickable). | 56 | need to redirect /nlp to /datasets and remove outdated info
It looks like the website still has all the `nlp` data, e.g.: https://huggingface.co/nlp/viewer/?dataset=wikihow&config=all
should probably redirect to: https://huggingface.co/datasets/wikihow
also for some reason the new information is slightly borked. If you look at the old one it was nicely formatted and had the links marked up, the new one is just a jumble of text in one chunk and no markup for links (i.e. not clickable).
For context, those are two different pages (not an old vs new one), one is from the dataset viewer (you can browse data inside the datasets) while the other is just a basic reference page displayed some metadata about the dataset.
For the second one, we'll move to markdown parsing soon, so it'll be formatted better. | [
0.1384783685207367,
0.023690417408943176,
-0.09799982607364655,
0.028966564685106277,
-0.05199545621871948,
0.04589784890413284,
-0.13160447776317596,
0.49615195393562317,
-0.13756324350833893,
-0.20727436244487762,
-0.14076820015907288,
0.34675824642181396,
0.2411792278289795,
0.07146143168210983,
0.14618442952632904,
-0.15219873189926147,
-0.02145153284072876,
0.11329680681228638,
-0.051390811800956726,
-0.13512840867042542,
-0.19310766458511353,
0.05662696063518524,
-0.3132694363594055,
0.17166757583618164,
-0.06212450936436653,
0.01759616658091545,
-0.14034976065158844,
0.280562162399292,
-0.1343231499195099,
-0.42496711015701294,
0.10202836990356445,
0.008771847933530807,
-0.022436005994677544,
0.17158669233322144,
-0.00009757927182363346,
-0.155067577958107,
0.4177809953689575,
0.22991591691970825,
-0.4386448860168457,
0.04746566712856293,
-0.15927079319953918,
-0.4129199683666229,
0.057061322033405304,
-0.2196609526872635,
-0.03089885041117668,
-0.22142377495765686,
0.13759252429008484,
0.2655305862426758,
0.24724596738815308,
0.36723360419273376,
0.366107702255249,
-0.019929444417357445,
-0.2039598524570465,
0.04624899476766586,
0.06756123900413513,
0.20296649634838104,
0.04723028838634491,
-0.1386793851852417,
0.1671680510044098,
-0.11348650604486465,
-0.2322292923927307,
0.5095508694648743,
-0.07230015099048615,
-0.26183098554611206,
0.05625840276479721,
-0.0017119767144322395,
-0.0014859884977340698,
-0.07029303163290024,
0.046875473111867905,
0.17069807648658752,
0.43691036105155945,
-0.05474238097667694,
-0.04926745593547821,
-0.22715458273887634,
-0.0232388935983181,
-0.10289564728736877,
0.2928943932056427,
0.142280712723732,
-0.1384127289056778,
0.09051414579153061,
-0.14953048527240753,
-0.4678623080253601,
-0.17137950658798218,
0.30498015880584717,
-0.022014927119016647,
0.5642759203910828,
0.008076292462646961,
-0.10405892878770828,
0.07423916459083557,
-0.07374627888202667,
0.10598339885473251,
0.09951058775186539,
-0.07524722814559937,
0.09707492589950562,
0.19289106130599976,
-0.07655413448810577,
0.24353772401809692,
0.42524081468582153,
0.08151090145111084,
-0.06955084204673767,
0.016183527186512947,
0.1859910786151886,
-0.1986389011144638,
-0.045190244913101196,
0.11657276749610901,
0.0689191222190857,
0.0976124182343483,
-0.10400621592998505,
0.27825671434402466,
0.3188299834728241,
0.07749035954475403,
0.10039547830820084,
0.20276449620723724,
-0.07845917344093323,
-0.2845477759838104,
-0.13334015011787415,
0.19685712456703186,
-0.22087708115577698,
-0.06640860438346863,
-0.012830459512770176,
0.021256044507026672,
-0.1261848658323288,
0.04312170296907425,
0.23404660820960999,
-0.1883866786956787,
0.17299142479896545,
0.09167009592056274,
0.004330534487962723,
-0.3476366400718689,
-0.20043803751468658,
-0.10417872667312622,
0.06239623203873634,
-0.5295291543006897,
0.036176666617393494,
0.21823258697986603,
0.24837149679660797,
0.22290454804897308,
0.23496761918067932,
-0.49260085821151733,
0.0033515915274620056,
-0.12594152987003326,
0.21267801523208618,
0.2112228274345398,
0.01285959780216217,
0.00143534317612648,
0.22913087904453278,
-0.07132913172245026,
-0.2442644089460373,
-0.039935480803251266,
0.025428514927625656,
-0.31153368949890137,
-0.17529766261577606,
-0.16472721099853516,
0.32622164487838745,
0.056442856788635254,
-0.06851574033498764,
0.18339337408542633,
0.3974270820617676,
-0.03699568659067154,
-0.2568758726119995,
-0.013453982770442963,
0.3018789291381836,
-0.17011861503124237,
-0.13960784673690796,
0.0991518422961235,
0.382862389087677,
0.09524127840995789,
-0.15440934896469116,
-0.0409393273293972,
-0.0012378375977277756,
0.02938215434551239,
0.17314045131206512,
-0.21212907135486603,
0.09507980942726135,
-0.21893535554409027,
-0.10234616696834564,
0.5547263026237488,
-0.22790935635566711,
-0.10789558291435242,
0.23695968091487885,
-0.12323891371488571,
0.05243354290723801,
-0.14027303457260132,
-0.02202184870839119,
-0.15914520621299744,
-0.09853703528642654,
0.003677673637866974,
0.17846086621284485,
0.2680036425590515,
0.07719394564628601,
-0.6268884539604187,
-0.11406832933425903,
0.07018712162971497,
-0.05788024142384529,
-0.11094440519809723,
0.17483104765415192,
-0.05668541043996811,
0.12096617370843887,
0.5310484766960144,
-0.009356420487165451,
0.14406301081180573,
0.13656505942344666,
0.034369342029094696,
0.09896908700466156,
-0.05230413377285004,
0.0686730220913887,
-0.28100547194480896,
-0.14751996099948883,
-0.2399803251028061,
0.3287535011768341,
0.32687777280807495,
-0.2241634875535965,
-0.4039585292339325,
-0.25274839997291565,
-0.14703284204006195,
-0.41054823994636536,
0.364532470703125,
0.18581099808216095,
0.04036412760615349,
0.24351416528224945,
-0.15463440120220184,
0.10949960350990295,
-0.0035773776471614838,
0.09484241902828217,
-0.3514448404312134,
0.18818895518779755,
-0.2791689336299896,
0.07633253931999207,
0.11518177390098572,
0.23856297135353088,
0.26984840631484985,
0.08771441876888275,
0.07828835397958755,
0.24789470434188843,
-0.2400454878807068,
0.25383323431015015,
0.3343014419078827,
0.05379432439804077,
0.3653835654258728,
-0.3246809244155884,
0.05209000036120415,
0.2069707214832306,
-0.17646944522857666,
0.17936348915100098,
-0.33034440875053406,
0.13320933282375336,
0.1781618744134903,
0.24744483828544617,
0.14180885255336761,
0.2600362002849579,
0.20226608216762543,
-0.4204212725162506,
0.06641895323991776,
-0.07628548890352249,
0.08199329674243927,
0.1620309054851532,
-0.05527620017528534,
0.028512312099337578,
-0.28536564111709595,
0.5206701755523682,
0.028651941567659378,
0.00976891815662384,
-0.023930296301841736,
0.37774384021759033,
-0.16553384065628052,
-0.392307311296463,
0.1549367755651474,
0.22520993649959564,
-0.195020392537117,
0.2894265055656433,
0.23769347369670868,
0.2057403028011322,
-0.18259605765342712,
-0.2519817650318146,
0.3104601502418518,
0.05244726687669754,
0.017194343730807304,
-0.08138418942689896,
0.16774941980838776,
0.10883867740631104,
-0.38621360063552856,
-0.06404278427362442,
-0.1907244324684143,
0.3152855932712555,
-0.2420075237751007,
-0.009519222192466259,
-0.24211722612380981,
-0.6865230798721313,
-0.19897675514221191,
-0.04866021126508713,
-0.376157283782959,
-0.5674774646759033,
0.10005779564380646,
0.08908608555793762,
-0.2643338441848755,
0.09629521518945694,
0.02206633985042572,
0.21230703592300415,
-0.26298987865448,
0.40322956442832947,
-0.43638184666633606,
-0.31895411014556885,
-0.24487456679344177,
0.24020910263061523,
0.1480139195919037,
0.429766982793808,
0.17773054540157318,
-0.06648924201726913,
0.011641725897789001,
-0.2758163809776306,
-0.5960994362831116,
0.06889371573925018,
0.15983736515045166,
0.06527343392372131,
0.08978496491909027,
0.2754552662372589,
-0.17549659311771393,
-0.15613020956516266,
0.19223211705684662,
-0.10718219727277756,
0.02509417198598385,
-0.15920624136924744,
-0.048917196691036224,
0.1280827522277832,
-0.07212380319833755,
-0.4142027199268341,
-0.13051243126392365,
-0.35298818349838257,
0.01516738161444664,
0.05771521106362343,
0.34926992654800415,
0.39056575298309326,
-0.00925719179213047,
-0.12791764736175537,
-0.12789027392864227,
0.2130809873342514,
-0.35616475343704224,
-0.17760220170021057,
0.17179198563098907,
-0.25244978070259094,
-0.34472012519836426,
-0.0921413004398346,
0.02654125913977623,
0.14292047917842865,
-0.16652190685272217,
-0.5557923316955566,
-0.10728535801172256,
-0.22509190440177917,
-0.04928464815020561,
0.09593081474304199,
0.06701619178056717,
0.29112836718559265,
0.21240286529064178,
-0.38280054926872253,
0.07616341859102249,
-0.20077094435691833,
-0.18521812558174133,
-0.09263456612825394,
0.32970741391181946,
-0.1473432183265686,
-0.025968037545681,
0.14649051427841187,
0.2578774094581604,
0.134919211268425,
0.19531267881393433,
0.22043047845363617,
0.08543069660663605,
0.4196575880050659,
0.01100834459066391,
-0.29003196954727173,
0.0634930357336998,
0.00906631350517273,
0.11953602731227875,
0.3961508870124817,
0.2554287910461426,
-0.13390231132507324,
-0.3042541444301605,
-0.21712665259838104,
-0.47907477617263794,
-0.41042226552963257,
0.1557457149028778,
0.09328246116638184,
0.1844756305217743,
0.4510629177093506,
0.04932365566492081,
-0.11342515051364899,
-0.3020302951335907,
0.10695171356201172,
0.37187522649765015,
-0.0175996795296669,
-0.05178338289260864,
-0.46268677711486816,
-0.11691797524690628,
-0.4204598069190979,
0.00860670953989029,
0.012529071420431137,
0.0068328543566167355,
-0.14531747996807098,
-0.17973726987838745,
0.0675041452050209,
-0.06537140905857086,
0.14538073539733887,
-0.2783142328262329,
0.03559251129627228,
0.048270080238580704,
0.32035309076309204,
-0.25056034326553345,
0.34391137957572937,
-0.08251368999481201,
0.20271311700344086,
0.4124554693698883,
0.1730881780385971,
-0.11252104490995407,
-0.23320098221302032,
0.28360870480537415,
-0.08886083960533142,
-0.17134054005146027,
0.175453320145607,
-0.11223463714122772,
-0.24080950021743774,
-0.17044095695018768,
-0.0391075536608696,
-0.2217513918876648,
-0.15246649086475372,
-0.14585202932357788,
0.03076176717877388,
0.31623396277427673,
0.02879662811756134,
0.06360457837581635,
0.2657087743282318,
0.12186568975448608,
0.27868592739105225,
-0.3115953207015991,
0.09278371930122375,
0.3133793771266937,
-0.06656035035848618,
0.4313216209411621,
-0.07128392159938812,
0.12041132897138596,
-0.2262967824935913,
0.02827708050608635,
0.36920469999313354,
0.4006425738334656,
0.38537222146987915,
0.027287431061267853,
0.04999084025621414,
0.04836881905794144,
-0.2750871777534485,
0.061783406883478165,
0.11188798397779465,
-0.04300643131136894,
-0.3030901551246643,
-0.16511516273021698,
0.4166707396507263,
-0.15934345126152039,
-0.3416792154312134,
0.1539681851863861,
0.3954318165779114,
-0.2817869782447815,
0.12585951387882233,
-0.11994817107915878,
1.0915571451187134,
0.05529896169900894,
0.22530744969844818,
0.3524339199066162,
-0.2674306035041809,
0.49360135197639465,
0.10129879415035248,
0.18012063205242157,
-0.2920379042625427,
0.17515864968299866,
0.12709158658981323,
0.14576321840286255,
-0.05576731264591217,
-0.005892131477594376,
-0.2550284266471863,
0.10942427814006805,
0.1402427852153778,
-0.07853586971759796,
0.21058350801467896,
0.48861682415008545,
0.08439693599939346,
-0.06412626802921295,
-0.5037643909454346,
0.2985769212245941,
-0.2262151688337326,
0.19966614246368408,
-0.127756267786026,
-0.1631537228822708,
-0.06014218181371689,
-0.032170817255973816,
0.11652882397174835,
0.17928269505500793,
0.18639668822288513,
-0.017904862761497498,
-0.037800733000040054,
-0.26722270250320435,
-0.03734028711915016,
0.15752701461315155,
0.10924868285655975,
0.2163614183664322,
-0.37343671917915344,
0.23021873831748962,
-0.195914626121521,
-0.06942347437143326,
0.04874834045767784,
0.14984402060508728,
0.03361114114522934,
-0.08397135138511658,
-0.2885696291923523,
-0.028513431549072266,
0.03612636402249336,
-0.0350857675075531,
-0.3423160910606384,
-0.07803499698638916,
0.07234325259923935,
-0.2086380422115326,
0.16029542684555054,
0.26699233055114746,
-0.29902735352516174,
-0.3812169134616852,
0.2623145580291748,
0.044382765889167786,
0.029635854065418243,
-0.19783154129981995,
0.5369784235954285,
-0.046244941651821136,
-0.13854727149009705,
0.25117868185043335,
0.08265573531389236,
-0.19802699983119965,
0.3518412411212921,
0.16400814056396484,
-0.13589875400066376,
-0.4078320562839508,
0.03908573091030121,
0.0016321493312716484,
-0.16263878345489502,
-0.11200777441263199,
-0.12617991864681244,
-0.09723180532455444,
0.02678888849914074,
0.17381717264652252,
-0.10561420023441315,
0.05434892326593399,
-0.012370813637971878,
-0.16860315203666687,
-0.20820963382720947,
0.34463226795196533,
-0.05614585801959038,
-0.06127341464161873,
-0.04521413519978523,
0.12946753203868866,
0.24447542428970337,
0.0769978016614914,
-0.49372225999832153,
0.08114498853683472,
0.01887926273047924,
0.20406781136989594,
0.07364487648010254,
-0.22586452960968018,
0.01623769849538803,
-0.10375747084617615,
0.15858151018619537,
-0.31164640188217163,
-0.05323014408349991,
-0.39426741003990173,
-0.13451270759105682,
0.06679166853427887,
0.11544310301542282,
-0.2621733546257019,
-0.1713462769985199,
0.04792127013206482,
0.1974189281463623,
-0.05033567175269127,
-0.2641850709915161,
-0.07133430242538452,
0.07005754858255386,
0.22398538887500763,
-0.08444391191005707,
-0.05751562863588333,
0.14286984503269196,
-0.057046182453632355,
-0.050844043493270874,
0.20871911942958832,
0.016704076901078224,
-0.003887217491865158,
-0.19563619792461395,
-0.16655895113945007,
0.015688542276620865,
0.1917097121477127,
0.04383259639143944,
0.3789801001548767,
0.1804860234260559,
-0.10432347655296326,
0.029419507831335068,
0.23936235904693604,
0.18781006336212158,
0.24778339266777039,
-0.02908736653625965,
-0.12356175482273102,
0.2525253891944885,
0.36053961515426636,
-0.22803331911563873,
0.1633864790201187,
0.31589603424072266,
-0.22282898426055908,
0.08712272346019745,
0.07982532680034637,
0.063850998878479,
-0.15164297819137573,
0.06347697973251343,
0.12425800412893295,
0.23613853752613068,
-0.40749263763427734,
0.08339047431945801,
-0.0008191950619220734,
-0.1425863355398178,
-0.1591533124446869,
0.1008661687374115,
-0.015424925833940506,
-0.02593391388654709,
0.1727670580148697,
0.16725406050682068,
0.18753866851329803,
0.19909200072288513,
0.19838134944438934,
-0.031623803079128265,
0.10329653322696686,
-0.027288105338811874,
0.15605488419532776,
0.11498387902975082,
0.21883559226989746,
0.16066956520080566,
0.39579322934150696,
0.03392745181918144,
-0.38023534417152405,
-0.04799170419573784,
0.23776346445083618,
-0.17535847425460815,
-0.11341641843318939,
-0.29924464225769043,
-0.15220370888710022,
-0.002874024212360382,
-0.03277499973773956,
-0.026336733251810074,
-0.1942237764596939,
0.1382887065410614,
-0.10513623058795929,
-0.21774743497371674,
-0.5958796739578247,
0.041644129902124405,
0.12482701987028122,
0.37026458978652954,
0.1492661088705063,
0.10237029194831848,
-0.03527161478996277,
0.046077534556388855,
0.04580434411764145,
0.4355769753456116,
0.1798757165670395,
0.16161756217479706,
-0.2159404456615448,
0.05235089734196663,
-0.12976665794849396,
-0.13444876670837402,
-0.16800330579280853,
0.10295074433088303,
0.3525754511356354,
-0.0743376612663269,
0.20703603327274323,
0.2491970658302307,
-0.28992000222206116,
0.06846057623624802,
0.14422385394573212,
-0.0367557667195797,
0.21847520768642426,
0.0735745057463646,
0.08943045139312744,
-0.2402598261833191,
-0.1313079595565796,
-0.24307215213775635,
-0.39832019805908203,
0.027714360505342484,
0.1920783519744873,
-0.1561356484889984,
0.17982473969459534,
-0.25163188576698303,
0.15401099622249603,
0.30983471870422363,
0.5025590658187866,
0.36813315749168396,
0.11698400229215622,
-0.03179899603128433,
-0.4122181534767151,
-0.6755204796791077,
0.03692317008972168,
-0.06049360707402229,
-0.22784997522830963,
-0.08894830197095871,
0.08630985766649246,
-0.2890084683895111,
0.09632417559623718,
-0.06445859372615814,
-0.028050364926457405,
0.04775500297546387,
-0.2629895806312561,
-0.3645363450050354,
0.2613121271133423,
0.10044898092746735,
0.2882195711135864,
-0.03598929941654205,
-0.1095353215932846,
0.33060407638549805,
-0.11036476492881775,
0.2111804187297821,
0.18413378298282623,
0.14080116152763367,
-0.11837796866893768,
0.23904605209827423,
0.08264381438493729,
0.26625844836235046,
0.08531656116247177,
-0.20805507898330688,
-0.4103213846683502,
-0.41200292110443115,
-0.22763220965862274,
-0.020300842821598053,
0.31567898392677307,
0.1692177802324295,
0.37637653946876526,
0.034446701407432556,
-0.05595136806368828,
-0.03700421378016472,
0.24478240311145782,
0.254207968711853,
0.27378571033477783,
-0.20289264619350433,
0.21346338093280792,
0.3107578456401825,
0.15234293043613434,
-0.03116387501358986,
0.23689982295036316,
-0.012987658381462097,
0.00387638621032238,
-0.3176868259906769,
-0.5182989239692688,
0.35847342014312744,
-0.293413370847702,
-0.16507966816425323,
0.044616710394620895,
0.3463250994682312,
0.019922513514757156,
0.14218690991401672,
-0.5205221176147461,
-0.1700238287448883,
0.1570400893688202,
0.03375239297747612,
-0.24124397337436676,
0.14532187581062317,
-0.3328871428966522,
-0.3634592890739441,
0.007216218858957291,
0.19131435453891754,
0.3161478340625763,
-0.4577803313732147,
0.183612659573555,
-0.09482032805681229
] |
https://github.com/huggingface/datasets/issues/723 | Adding pseudo-labels to datasets | Nice ! :)
It's indeed the first time we have such contributions so we'll have to figure out the appropriate way to integrate them.
Could you add details on what they could be used for ?
| I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
| 36 | Adding pseudo-labels to datasets
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
Nice ! :)
It's indeed the first time we have such contributions so we'll have to figure out the appropriate way to integrate them.
Could you add details on what they could be used for ?
| [
0.35087189078330994,
-0.13396556675434113,
0.06405717134475708,
0.014674365520477295,
0.11721920222043991,
0.04259362071752548,
0.24841487407684326,
-0.05569251999258995,
-0.14547522366046906,
-0.04287610948085785,
-0.22757695615291595,
0.0762307345867157,
-0.1649908721446991,
0.5450239777565002,
0.49806666374206543,
-0.14805516600608826,
0.3547060191631317,
-0.1910562813282013,
0.18903794884681702,
-0.16430997848510742,
-0.3369723856449127,
-0.2637389302253723,
0.1954764872789383,
-0.17740516364574432,
-0.33356738090515137,
-0.15208716690540314,
-0.1881619393825531,
0.00170087069272995,
0.08169431984424591,
-0.543054461479187,
0.008128227666020393,
0.3411814570426941,
0.2522219121456146,
0.6251303553581238,
-0.00012491056986618787,
-0.1294020265340805,
-0.09203657507896423,
-0.1204194501042366,
-0.11055508255958557,
0.1907607764005661,
-0.020449968054890633,
-0.2631741762161255,
-0.21470856666564941,
0.19694474339485168,
-0.09029337763786316,
-0.40643876791000366,
-0.13350652158260345,
0.01025349646806717,
0.17728787660598755,
-0.007226284593343735,
0.016361184418201447,
0.13667060434818268,
0.27232253551483154,
0.12994256615638733,
0.5037117004394531,
0.3426886796951294,
-0.201446995139122,
0.3047896921634674,
0.33865153789520264,
0.38084089756011963,
0.4996562600135803,
0.48139312863349915,
-0.026089593768119812,
-0.1911637783050537,
0.5817206501960754,
0.03612710162997246,
-0.028009139001369476,
-0.20367510616779327,
-0.38078609108924866,
0.15673057734966278,
0.48565828800201416,
-0.25594377517700195,
-0.6600385308265686,
-0.4705185890197754,
0.09945720434188843,
-0.2843776047229767,
-0.18845346570014954,
-0.19617779552936554,
0.40408381819725037,
-0.06190839037299156,
-0.0100464578717947,
-0.23372288048267365,
-0.08508908748626709,
0.20302598178386688,
0.1202186793088913,
0.547203540802002,
-0.2007034420967102,
0.21390238404273987,
0.061833757907152176,
-0.1964239776134491,
-0.05014444887638092,
-0.2513432204723358,
0.19829589128494263,
0.14627206325531006,
0.1533987671136856,
-0.14642421901226044,
-0.05543077737092972,
0.035822466015815735,
0.27695778012275696,
0.3060528039932251,
-0.08045521378517151,
-0.10825935751199722,
-0.2618292570114136,
-0.09189420193433762,
-0.08319222927093506,
0.14690351486206055,
0.019789427518844604,
0.24581532180309296,
0.26226335763931274,
0.003212581155821681,
0.3767150640487671,
-0.08315163850784302,
-0.48295456171035767,
0.540018618106842,
-0.07984346151351929,
-0.18447035551071167,
0.016660362482070923,
-0.11860847473144531,
-0.021639585494995117,
-0.00996439065784216,
0.12424790114164352,
-0.1875855177640915,
0.07897244393825531,
-0.11367731541395187,
0.004564776550978422,
0.0730932354927063,
-0.09619352221488953,
0.38047707080841064,
0.2330143004655838,
-0.00413659168407321,
-0.03113177791237831,
-0.10389389097690582,
-0.07610709965229034,
0.3563046157360077,
0.01145845651626587,
-0.3125945031642914,
0.24684789776802063,
-0.24889327585697174,
0.1981736123561859,
-0.21020472049713135,
0.03478396683931351,
0.17074131965637207,
-0.04794999212026596,
0.23359394073486328,
-0.1842191517353058,
0.05268695950508118,
0.04686625674366951,
0.051081009209156036,
-0.22961261868476868,
-0.0847221091389656,
-0.055317461490631104,
-0.12741327285766602,
-0.30761390924453735,
-0.0074042631313204765,
-0.38456428050994873,
-0.323485791683197,
-0.3623291254043579,
0.3362719416618347,
0.1467137485742569,
-0.014857064932584763,
0.08958371728658676,
0.161240354180336,
-0.12041057646274567,
-0.11942854523658752,
0.33418023586273193,
0.1501198261976242,
-0.36463916301727295,
-0.2879039943218231,
0.1363934427499771,
0.027432361617684364,
0.13041555881500244,
0.21034996211528778,
0.03959573805332184,
0.16385671496391296,
0.2064768224954605,
-0.06993525475263596,
-0.11873243004083633,
-0.41398829221725464,
-0.18517102301120758,
-0.08241206407546997,
-0.038395728915929794,
-0.06726833432912827,
-0.023543022572994232,
0.44719699025154114,
-0.02907724678516388,
-0.26833203434944153,
-0.08344782888889313,
0.02392701432108879,
-0.002764979377388954,
-0.09373355656862259,
-0.05174558237195015,
0.009491151198744774,
-0.10639621317386627,
0.5546260476112366,
-0.07905539870262146,
0.03176151216030121,
-0.046054475009441376,
-0.1878688484430313,
-0.12350421398878098,
-0.0379970408976078,
0.11244641244411469,
-0.02440434694290161,
0.43087631464004517,
0.4505261778831482,
-0.08411580324172974,
-0.3351357877254486,
-0.4225293695926666,
0.06430770456790924,
0.31319600343704224,
0.15186834335327148,
0.21396997570991516,
-0.35437268018722534,
-0.2606372535228729,
-0.1056089699268341,
-0.11888095736503601,
-0.003225184977054596,
-0.11721241474151611,
0.16676035523414612,
0.2104853391647339,
0.03926162049174309,
-0.3519265949726105,
-0.19493955373764038,
0.03440161794424057,
0.2529701292514801,
-0.01702631637454033,
0.1207968145608902,
0.1968994438648224,
0.07007081061601639,
-0.21804559230804443,
0.5762590765953064,
0.012270234525203705,
-0.07740292698144913,
0.22915220260620117,
0.23828467726707458,
-0.024794887751340866,
-0.08271518349647522,
0.10579413175582886,
0.30931371450424194,
0.4576769173145294,
-0.14370685815811157,
0.12799455225467682,
-0.3059832453727722,
0.011449533514678478,
-0.17785657942295074,
-0.13412657380104065,
0.05333864688873291,
0.12226025760173798,
0.14607155323028564,
-0.3488898277282715,
-0.12206319719552994,
-0.06477262824773788,
0.18161053955554962,
-0.1966080218553543,
0.03490392863750458,
-0.06653358042240143,
0.15098100900650024,
0.41985413432121277,
0.048527345061302185,
-0.1534423828125,
0.32505157589912415,
-0.017039913684129715,
-0.37315165996551514,
0.13078266382217407,
0.17206689715385437,
-0.4888533353805542,
0.213239848613739,
-0.0017562378197908401,
0.3827136754989624,
-0.019384965300559998,
0.06386115401983261,
0.28435856103897095,
0.011236000806093216,
-0.060026779770851135,
0.06003393977880478,
-0.12009971588850021,
0.3133031129837036,
0.061003703624010086,
0.04730057716369629,
0.04828399419784546,
0.14642101526260376,
0.15693476796150208,
0.019478168338537216,
-0.009828479960560799,
-0.056070633232593536,
-0.25502222776412964,
-0.070810467004776,
0.24560141563415527,
-0.09451980888843536,
-0.204502135515213,
-0.6011890172958374,
-0.4497779309749603,
-0.24548473954200745,
0.04871101677417755,
-0.13441984355449677,
-0.14531883597373962,
0.19095797836780548,
0.12266106903553009,
0.48988354206085205,
-0.35125821828842163,
-0.2254016250371933,
0.14135870337486267,
-0.16900363564491272,
0.16288542747497559,
-0.10735788941383362,
0.15423327684402466,
-0.12148622423410416,
0.41591984033584595,
-0.13881857693195343,
0.15172213315963745,
-0.18764962255954742,
-0.5756067633628845,
0.06364668905735016,
-0.4807729721069336,
0.1864723116159439,
0.2330862432718277,
-0.22725559771060944,
0.30008643865585327,
-0.2512018084526062,
0.05967959389090538,
0.1218448132276535,
0.10869583487510681,
-0.278235524892807,
-0.17430946230888367,
0.02849285863339901,
-0.38395974040031433,
0.13032886385917664,
-0.4349292814731598,
-0.1555609107017517,
0.38669002056121826,
0.13003180921077728,
0.021993976086378098,
0.2576771676540375,
-0.27346035838127136,
0.13788601756095886,
-0.05866635963320732,
0.008496113121509552,
-0.035148896276950836,
-0.5451735258102417,
0.44540154933929443,
-0.022816317155957222,
0.033039022237062454,
0.171870619058609,
-0.11005181074142456,
-0.07599669694900513,
-0.09239464998245239,
-0.13326963782310486,
-0.36924657225608826,
0.04261273890733719,
-0.005061540752649307,
0.3581799268722534,
0.36337557435035706,
0.049886833876371384,
0.06783761084079742,
0.17275701463222504,
-0.15073497593402863,
-0.34821808338165283,
0.10963515937328339,
-0.015554964542388916,
0.26495835185050964,
-0.11493989080190659,
0.1408979594707489,
-0.2226191908121109,
0.6270328760147095,
0.17696674168109894,
-0.23456881940364838,
0.12630003690719604,
0.29799148440361023,
0.20401394367218018,
0.26844871044158936,
0.03682345151901245,
0.13793842494487762,
0.008384063839912415,
0.18789799511432648,
0.12120255082845688,
0.257075697183609,
0.32626333832740784,
0.04051811248064041,
0.13683964312076569,
0.02017415314912796,
0.05716982111334801,
-0.08726288378238678,
0.14363186061382294,
0.2712722420692444,
-0.22601431608200073,
-0.3325640857219696,
-0.44714832305908203,
0.06989357620477676,
-0.10965250432491302,
0.1832590401172638,
0.294257253408432,
0.2618868350982666,
-0.6611449718475342,
-0.052703630179166794,
-0.3960132300853729,
0.17487162351608276,
0.244798943400383,
-0.3084755539894104,
0.0568712018430233,
-0.15712866187095642,
0.054697345942258835,
0.02434087172150612,
0.26871833205223083,
-0.3838992416858673,
-0.36370354890823364,
-0.06889509409666061,
0.07739352434873581,
-0.03735782206058502,
0.07510349154472351,
-0.010649953037500381,
-0.36497971415519714,
0.18301929533481598,
0.36419427394866943,
-0.5304686427116394,
0.045203156769275665,
0.3095273971557617,
0.05914853513240814,
-0.09889499843120575,
-0.16866864264011383,
-0.23649588227272034,
-0.4657750427722931,
-0.24333038926124573,
-0.05072558671236038,
0.14411196112632751,
-0.05805942788720131,
0.11636258661746979,
-0.012494770810008049,
0.0377097986638546,
0.09511268138885498,
0.317709743976593,
0.18287202715873718,
-0.1146073192358017,
0.5422514081001282,
0.20855563879013062,
0.4471336007118225,
-0.05099005252122879,
0.5076371431350708,
0.5242842435836792,
-0.37714511156082153,
-0.4337596297264099,
-0.2176913321018219,
-0.2883627414703369,
0.5144400596618652,
-0.03135599195957184,
0.3144398033618927,
0.15305227041244507,
0.0846593976020813,
0.104933001101017,
-0.5463400483131409,
0.3300386369228363,
0.08611496537923813,
0.15238018333911896,
-0.3281349241733551,
-0.43549299240112305,
0.6497978568077087,
0.13581614196300507,
-0.13396760821342468,
-0.0957171618938446,
0.5035572052001953,
-0.19577951729297638,
-0.054291680455207825,
0.31262412667274475,
0.9838213324546814,
-0.2847188711166382,
0.33614495396614075,
0.04218953847885132,
0.13615964353084564,
1.0483943223953247,
-0.06257792562246323,
-0.26093989610671997,
0.011876951903104782,
-0.11340048909187317,
-0.11257436871528625,
-0.08193793892860413,
-0.07478941231966019,
-0.04062303900718689,
-0.12206828594207764,
0.18194438517093658,
-0.1291688233613968,
-0.006770826876163483,
-0.05329245328903198,
-0.11555939167737961,
0.28311887383461,
-0.3984208405017853,
-0.0422259196639061,
0.006497688591480255,
-0.23031704127788544,
0.013491570949554443,
-0.20432808995246887,
-0.1657581925392151,
-0.1504695564508438,
0.27229541540145874,
-0.0898275226354599,
-0.163423091173172,
0.03838105872273445,
-0.42140620946884155,
0.05126672983169556,
-0.048246171325445175,
0.21850518882274628,
-0.12629571557044983,
0.7867923378944397,
-0.027304861694574356,
-0.035066038370132446,
0.08091405034065247,
-0.2605222165584564,
0.09554565697908401,
-0.18660378456115723,
-0.22299329936504364,
0.13296914100646973,
0.10364993661642075,
-0.3126797676086426,
0.02496592327952385,
0.2777661383152008,
-0.24562622606754303,
-0.3948040008544922,
-0.27217018604278564,
0.14187003672122955,
-0.1429707109928131,
0.25798457860946655,
0.5297659039497375,
0.2009957730770111,
-0.15350341796875,
-0.00712238997220993,
0.22835439443588257,
-0.1628364771604538,
-0.0830906555056572,
-0.3562004566192627,
0.11101754009723663,
-0.24881426990032196,
-0.18221771717071533,
-0.09376274794340134,
-0.09233421087265015,
-0.09182077646255493,
0.19868610799312592,
-0.051779795438051224,
0.06279829889535904,
-0.135075181722641,
0.08675147593021393,
-0.30958572030067444,
-0.19890885055065155,
0.2536412179470062,
-0.506438136100769,
-0.3839587867259979,
0.3182435631752014,
0.43448466062545776,
-0.3665507435798645,
0.18410776555538177,
0.09955790638923645,
-0.5240015387535095,
0.15943212807178497,
-0.05665884539484978,
0.20995181798934937,
-0.05593717098236084,
0.344265341758728,
-0.10181759297847748,
0.30428093671798706,
-0.15201593935489655,
-0.10785645246505737,
-0.09111344069242477,
-0.03497426211833954,
0.21856997907161713,
0.006631411612033844,
0.15378695726394653,
-0.09976290166378021,
-0.14745403826236725,
0.051632512360811234,
-0.051503874361515045,
0.050035879015922546,
-0.3707665205001831,
0.23461854457855225,
0.305238276720047,
-0.4240819215774536,
0.1333969235420227,
0.09209669381380081,
0.08707839250564575,
-0.1338677853345871,
0.3114674389362335,
-0.1317245066165924,
0.08552450686693192,
0.3123396635055542,
-0.13514737784862518,
0.3421088457107544,
-0.018453331664204597,
0.24109411239624023,
0.3581302762031555,
0.24748632311820984,
0.2924286723136902,
-0.03334670513868332,
0.009108074940741062,
-0.10737989842891693,
-0.11623410135507584,
0.2303803265094757,
0.2635425627231598,
-0.1329408884048462,
0.29613742232322693,
0.017696011811494827,
0.09269604086875916,
0.31348568201065063,
0.2257472574710846,
0.10836052894592285,
-0.1284773349761963,
0.13173441588878632,
0.20812872052192688,
0.07501489669084549,
-0.024470433592796326,
-0.18849438428878784,
0.005349650979042053,
0.06486044824123383,
0.15362045168876648,
0.3775359094142914,
0.23667654395103455,
0.46874868869781494,
-0.007441878318786621,
-0.044251613318920135,
0.2752284109592438,
0.1589069962501526,
0.08780442178249359,
0.04050562158226967,
-0.03639502823352814,
0.15386012196540833,
0.463596910238266,
0.4276760220527649,
0.04303698241710663,
-0.03152003139257431,
0.14208614826202393,
0.5564654469490051,
-0.01676442101597786,
-0.05140458419919014,
0.14983345568180084,
0.03084075078368187,
0.24473786354064941,
0.2975250482559204,
0.20782256126403809,
0.06661377847194672,
0.010824032127857208,
0.08541196584701538,
-0.34064269065856934,
-0.22261786460876465,
-0.04711664095520973,
0.423878937959671,
0.19942259788513184,
-0.31277042627334595,
-0.2827531397342682,
0.06377939134836197,
-0.01321161538362503,
-0.1547594964504242,
0.058931201696395874,
-0.7018324732780457,
0.3001566529273987,
-0.04479646682739258,
0.1599150449037552,
-0.4526425302028656,
-0.5470297932624817,
0.3091583847999573,
0.33650898933410645,
0.07061190903186798,
0.13284622132778168,
0.4084150791168213,
-0.14895504713058472,
0.1680801808834076,
0.2040940374135971,
0.12324969470500946,
-0.23614352941513062,
-0.04114529490470886,
0.43527868390083313,
-0.35903531312942505,
0.12813173234462738,
0.08611764758825302,
0.06970824301242828,
-0.1634102165699005,
0.08286553621292114,
0.17947770655155182,
0.007413240149617195,
0.009549626149237156,
-0.1601138561964035,
-0.3326464593410492,
0.05018299072980881,
-0.24155205488204956,
0.479754239320755,
-0.34847623109817505,
-0.19954925775527954,
-0.13948959112167358,
0.3175760507583618,
-0.314847856760025,
0.4054408669471741,
0.40909242630004883,
-0.052253127098083496,
-0.07895223796367645,
-0.136701762676239,
-0.03907639533281326,
-0.027005698531866074,
0.29260727763175964,
0.35951727628707886,
0.3388391137123108,
-0.1954762041568756,
0.01770046353340149,
-0.360880047082901,
0.07049140334129333,
0.011509150266647339,
-0.5107104182243347,
-0.05682602524757385,
-0.29808884859085083,
0.400233656167984,
-0.12141823768615723,
-0.13592608273029327,
-0.20432867109775543,
0.004795973189175129,
-0.32483014464378357,
-0.14426042139530182,
0.07661635428667068,
-0.3093496561050415,
0.20423732697963715,
0.11537107825279236,
0.152499258518219,
-0.1460666060447693,
0.3247849941253662,
-0.1544344276189804,
-0.08426687866449356,
0.26096028089523315,
-0.2007669061422348,
-0.025276027619838715,
0.12964561581611633,
-0.019154438748955727,
0.486382395029068,
0.10827923566102982,
-0.24532389640808105,
0.016107656061649323,
-0.08902911841869354,
-0.3318749964237213,
-0.012688368558883667,
-0.41346099972724915,
0.2549859583377838,
-0.27195096015930176,
-0.031353894621133804,
-0.252720445394516,
0.10634554177522659,
0.11504818499088287,
0.030802903696894646,
-0.33540794253349304,
0.43046897649765015,
-0.24553725123405457,
-0.25429967045783997,
0.5712050199508667,
0.2878658175468445,
0.13742589950561523,
0.09280313551425934,
-0.08133004605770111,
-0.059538334608078,
0.341732382774353,
-0.051412176340818405,
-0.09647180140018463,
0.020632807165384293,
0.13947400450706482,
0.3758436441421509,
-0.11848235875368118,
-0.8774787187576294,
0.18910640478134155,
0.28840330243110657,
0.06532639265060425,
-0.5017674565315247,
0.2753761410713196,
-0.03267785906791687,
-0.4225318431854248,
-0.0748913437128067,
0.2685987055301666,
-0.27498841285705566,
-0.015777889639139175,
0.02726813033223152,
-0.1747647225856781
] |
https://github.com/huggingface/datasets/issues/723 | Adding pseudo-labels to datasets | A new configuration for those datasets should do the job then.
Note that until now datasets like xsum only had one configuration. It means that users didn't have to specify the configuration name when loading the dataset. If we add new configs, users that update the lib will have to update their code to specify the default/standard configuration name (not the one with pseudo labels). | I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
| 65 | Adding pseudo-labels to datasets
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
A new configuration for those datasets should do the job then.
Note that until now datasets like xsum only had one configuration. It means that users didn't have to specify the configuration name when loading the dataset. If we add new configs, users that update the lib will have to update their code to specify the default/standard configuration name (not the one with pseudo labels). | [
0.29980844259262085,
-0.13442707061767578,
0.10647694766521454,
-0.04210367798805237,
0.1416296362876892,
0.03859053552150726,
0.33537033200263977,
-0.06112482026219368,
-0.1213265061378479,
0.012237444519996643,
-0.23087550699710846,
0.10576275736093521,
-0.1279502660036087,
0.5004865527153015,
0.43188774585723877,
-0.0726461261510849,
0.32918399572372437,
-0.15549707412719727,
0.20267479121685028,
-0.15469351410865784,
-0.35757189989089966,
-0.2737485468387604,
0.26983243227005005,
-0.1786535531282425,
-0.32031187415122986,
-0.15306217968463898,
-0.14990907907485962,
-0.02442602813243866,
0.11042376607656479,
-0.5956423282623291,
0.037846460938453674,
0.4156609773635864,
0.2552716135978699,
0.5836076736450195,
-0.0001237341930391267,
-0.08987734466791153,
-0.10956758260726929,
-0.14922471344470978,
-0.1526646912097931,
0.18621641397476196,
-0.01677168346941471,
-0.27057331800460815,
-0.10308026522397995,
0.12222469598054886,
-0.1497652530670166,
-0.36862078309059143,
-0.07678568363189697,
-0.031083812937140465,
0.1511061191558838,
-0.09251893311738968,
0.03033011220395565,
0.14510582387447357,
0.16265155375003815,
0.1272766888141632,
0.3680982291698456,
0.28100427985191345,
-0.23828822374343872,
0.33931511640548706,
0.28105807304382324,
0.4066387116909027,
0.45967838168144226,
0.4956064224243164,
-0.02312377467751503,
-0.06861704587936401,
0.5873851180076599,
0.07513418793678284,
0.000566437840461731,
-0.17297868430614471,
-0.3276822566986084,
0.23969018459320068,
0.4566648006439209,
-0.31643277406692505,
-0.683727502822876,
-0.5047793388366699,
0.1867571324110031,
-0.3624064326286316,
-0.0957859680056572,
-0.2155633419752121,
0.3606548309326172,
-0.034691695123910904,
0.031415581703186035,
-0.26501795649528503,
-0.018241848796606064,
0.18950849771499634,
0.05945468693971634,
0.5780059099197388,
-0.1692255139350891,
0.23202019929885864,
0.010104041546583176,
-0.2667592167854309,
-0.09189543128013611,
-0.26608437299728394,
0.18487334251403809,
0.08110018074512482,
0.10975395143032074,
-0.13872644305229187,
-0.11348491162061691,
-0.04573974758386612,
0.24384570121765137,
0.29505467414855957,
-0.04375804215669632,
-0.06201515346765518,
-0.20868872106075287,
-0.10970757156610489,
-0.10357166826725006,
0.12095381319522858,
0.08749163150787354,
0.2561558485031128,
0.2847912609577179,
0.04403449967503548,
0.3656740188598633,
-0.07799019664525986,
-0.4416406750679016,
0.5037556290626526,
-0.10215096175670624,
-0.13185882568359375,
0.07797860354185104,
-0.06522062420845032,
0.04153849929571152,
-0.024334348738193512,
0.16966703534126282,
-0.2140185534954071,
0.0382407084107399,
-0.0785939171910286,
0.015372061170637608,
0.08082795143127441,
-0.04939781129360199,
0.33457452058792114,
0.1719157099723816,
0.023497775197029114,
-0.0198370348662138,
-0.16129906475543976,
-0.09881900250911713,
0.3643389940261841,
0.037123482674360275,
-0.35283777117729187,
0.2718876898288727,
-0.228915736079216,
0.19660906493663788,
-0.21337778866291046,
0.01062961108982563,
0.21609941124916077,
-0.061300553381443024,
0.22638288140296936,
-0.21786203980445862,
0.10440509766340256,
0.00364583358168602,
-0.02388811856508255,
-0.25664618611335754,
-0.12061465531587601,
-0.09532996267080307,
-0.08894483745098114,
-0.32417523860931396,
0.01474840473383665,
-0.40724462270736694,
-0.3032713532447815,
-0.3384978473186493,
0.3656526505947113,
0.11317837238311768,
-0.05258733779191971,
0.07307831943035126,
0.1723833680152893,
-0.03283943980932236,
-0.13490673899650574,
0.28408485651016235,
0.20050734281539917,
-0.33559054136276245,
-0.3381420075893402,
0.1224144771695137,
0.05664661526679993,
0.07898558676242828,
0.16052821278572083,
0.03214298188686371,
0.09788461774587631,
0.22065506875514984,
-0.08897332847118378,
-0.06752458959817886,
-0.3826146423816681,
-0.1448277086019516,
-0.06753785163164139,
-0.08962215483188629,
-0.02371693029999733,
0.0551164485514164,
0.4480420649051666,
-0.04728555679321289,
-0.2814720571041107,
-0.142338827252388,
-0.07170508801937103,
0.037427399307489395,
-0.07877013832330704,
-0.03320704773068428,
-0.06728716194629669,
-0.14418375492095947,
0.4287659823894501,
-0.08941183984279633,
0.05410134047269821,
-0.07724431902170181,
-0.11348796635866165,
-0.07476101070642471,
-0.06450299918651581,
0.10174781829118729,
-0.011481035500764847,
0.4220197796821594,
0.45579230785369873,
-0.09164736419916153,
-0.2570297420024872,
-0.4810335040092468,
0.11877121776342392,
0.34596484899520874,
0.1877482384443283,
0.25879794359207153,
-0.37259441614151,
-0.21784040331840515,
-0.1814526617527008,
-0.15560603141784668,
-0.06937429308891296,
-0.11334105581045151,
0.2501717507839203,
0.17054568231105804,
-0.053052064031362534,
-0.3825318217277527,
-0.19648383557796478,
0.04271805286407471,
0.2877756357192993,
-0.1020270586013794,
0.0700211450457573,
0.1953108012676239,
0.03706599026918411,
-0.2225668877363205,
0.4910914897918701,
0.0013806596398353577,
-0.10186291486024857,
0.1985340714454651,
0.3084600567817688,
-0.0033229454420506954,
-0.07130099833011627,
0.03953750804066658,
0.3227549195289612,
0.4791213572025299,
-0.03982318192720413,
0.15326210856437683,
-0.2845875918865204,
-0.01837982051074505,
-0.0789746418595314,
-0.1487843096256256,
0.046214163303375244,
0.2128414660692215,
0.17026354372501373,
-0.30613142251968384,
-0.127301886677742,
-0.02007029950618744,
0.16231994330883026,
-0.21936918795108795,
-0.05185941606760025,
-0.0748729258775711,
0.18181338906288147,
0.40832212567329407,
0.08161325752735138,
-0.22335124015808105,
0.2831477224826813,
0.043127384036779404,
-0.3308490216732025,
0.09592460095882416,
0.13681171834468842,
-0.4195857048034668,
0.2700437903404236,
0.019665854051709175,
0.43700504302978516,
-0.017632678151130676,
0.0807090699672699,
0.2086809128522873,
0.010629380121827126,
-0.10435108840465546,
0.01082514226436615,
-0.12657538056373596,
0.2933959662914276,
0.10047391057014465,
0.03007233887910843,
0.011152321472764015,
0.14135031402111053,
0.16069811582565308,
-0.07735906541347504,
0.057636260986328125,
-0.10087903589010239,
-0.25132855772972107,
-0.10205863416194916,
0.17944008111953735,
-0.09136788547039032,
-0.3065830171108246,
-0.5622993111610413,
-0.5115973353385925,
-0.21927034854888916,
0.0635913759469986,
-0.15124790370464325,
-0.21401654183864594,
0.32262784242630005,
0.05424213781952858,
0.3781421184539795,
-0.35083115100860596,
-0.2711747884750366,
0.1680886298418045,
-0.11817797273397446,
0.1399005800485611,
-0.12366855144500732,
0.06091909855604172,
-0.2141323685646057,
0.4188081622123718,
-0.18501640856266022,
0.12748494744300842,
-0.20751920342445374,
-0.5780903100967407,
0.10393694043159485,
-0.4823782444000244,
0.22040332853794098,
0.2675936222076416,
-0.18335814774036407,
0.3257482647895813,
-0.2888326644897461,
0.1066211462020874,
0.1330198496580124,
0.1489219069480896,
-0.30891498923301697,
-0.1425168812274933,
0.08860330283641815,
-0.32054364681243896,
0.019556865096092224,
-0.3618173897266388,
-0.14631536602973938,
0.30724960565567017,
0.12514525651931763,
0.08402910828590393,
0.3436690866947174,
-0.24739448726177216,
0.0715097039937973,
-0.08731940388679504,
0.06651468575000763,
-0.032489266246557236,
-0.5351746082305908,
0.3863254487514496,
-0.04469076916575432,
0.10663469135761261,
0.1578732281923294,
-0.12208396941423416,
-0.03491118922829628,
-0.01491609774529934,
-0.09346619248390198,
-0.41656726598739624,
0.05504864081740379,
0.06683400273323059,
0.3598323166370392,
0.3506224453449249,
0.08572357147932053,
0.13843399286270142,
0.12195262312889099,
-0.13054782152175903,
-0.41140592098236084,
0.13817960023880005,
-0.007375095039606094,
0.23478972911834717,
-0.07670006155967712,
0.1047658696770668,
-0.23476830124855042,
0.6055536866188049,
0.1378825604915619,
-0.2848440110683441,
0.12336719036102295,
0.21393343806266785,
0.2773593068122864,
0.2527822256088257,
0.08023387938737869,
0.123147152364254,
0.09794041514396667,
0.17682333290576935,
0.13267581164836884,
0.22469273209571838,
0.3301958739757538,
0.022320382297039032,
0.202040895819664,
0.03682508319616318,
-0.045136239379644394,
-0.06123126298189163,
0.08915465325117111,
0.26402294635772705,
-0.18691006302833557,
-0.1962648332118988,
-0.45154017210006714,
0.09634844213724136,
-0.13500337302684784,
0.24450629949569702,
0.1784924566745758,
0.2270117551088333,
-0.6722140312194824,
-0.05812186747789383,
-0.3733322322368622,
0.18965928256511688,
0.2063453197479248,
-0.20741507411003113,
0.07565052807331085,
-0.17587745189666748,
0.01840633898973465,
0.03838295862078667,
0.25056201219558716,
-0.3790580928325653,
-0.37508273124694824,
-0.060416366904973984,
0.11727656424045563,
-0.06749822199344635,
0.047480519860982895,
0.020508844405412674,
-0.3828161060810089,
0.20527906715869904,
0.37413090467453003,
-0.5892174243927002,
-0.06594386696815491,
0.3306909203529358,
0.09278988838195801,
-0.13134384155273438,
-0.22165696322917938,
-0.2396981418132782,
-0.45241180062294006,
-0.2524765133857727,
-0.1162351444363594,
0.02589271403849125,
-0.07649771124124527,
0.12030009925365448,
0.01989264413714409,
0.024708811193704605,
0.06443467736244202,
0.3508709669113159,
0.24378244578838348,
-0.08788204938173294,
0.5968905091285706,
0.1840088963508606,
0.42705562710762024,
0.0044478848576545715,
0.5245034098625183,
0.5270326733589172,
-0.44929763674736023,
-0.4075218737125397,
-0.22391054034233093,
-0.22100353240966797,
0.4601720869541168,
0.057640813291072845,
0.31740134954452515,
0.1746518313884735,
0.13011130690574646,
0.11938142776489258,
-0.5778487920761108,
0.376532644033432,
0.07620321959257126,
0.13175725936889648,
-0.3012308180332184,
-0.5492858290672302,
0.6775782704353333,
0.14722387492656708,
-0.1553729772567749,
-0.06448125839233398,
0.5425697565078735,
-0.2256024032831192,
-0.04721496254205704,
0.3019183874130249,
0.9438119530677795,
-0.32854950428009033,
0.29739534854888916,
0.05659956485033035,
0.12901756167411804,
1.066878080368042,
-0.04266088083386421,
-0.22357472777366638,
0.01696782186627388,
-0.060675524175167084,
-0.06454633921384811,
-0.06100558489561081,
0.010009802877902985,
-0.03997904807329178,
-0.08665643632411957,
0.26263171434402466,
-0.13197541236877441,
-0.004860881716012955,
-0.05240949988365173,
-0.007408350706100464,
0.11564400047063828,
-0.4434281885623932,
-0.06206987798213959,
-0.02007432095706463,
-0.3278390169143677,
0.046078577637672424,
-0.1779174506664276,
-0.10647577792406082,
-0.1384466588497162,
0.18085622787475586,
-0.07827845215797424,
-0.20057037472724915,
0.009006902575492859,
-0.4644099473953247,
0.04591406136751175,
-0.053813640028238297,
0.10840460658073425,
-0.15144993364810944,
0.7425775527954102,
0.03605456277728081,
-0.007896458730101585,
0.06014750897884369,
-0.2602529227733612,
0.09515049308538437,
-0.20320846140384674,
-0.21631836891174316,
0.1532931625843048,
0.14918410778045654,
-0.30357295274734497,
-0.02104508876800537,
0.24737241864204407,
-0.16292685270309448,
-0.32913827896118164,
-0.3351070284843445,
0.1814856231212616,
-0.19056271016597748,
0.32356059551239014,
0.48671507835388184,
0.2079119235277176,
-0.17682404816150665,
-0.002330932766199112,
0.17270123958587646,
-0.16734355688095093,
-0.057897619903087616,
-0.31859585642814636,
0.07660804688930511,
-0.2999001145362854,
-0.1802302598953247,
-0.10482754558324814,
-0.07452001422643661,
-0.05441629886627197,
0.1132207065820694,
-0.01078031212091446,
0.06770308315753937,
-0.11367028951644897,
0.05438445135951042,
-0.3007856607437134,
-0.21214622259140015,
0.28326597809791565,
-0.5372549891471863,
-0.3484555780887604,
0.3236202001571655,
0.43222397565841675,
-0.3114260137081146,
0.1920563131570816,
0.16863945126533508,
-0.4940822422504425,
0.17788808047771454,
-0.036694612354040146,
0.25916439294815063,
-0.009671205654740334,
0.4078366756439209,
-0.12302560359239578,
0.27616745233535767,
-0.17470237612724304,
-0.1363595426082611,
-0.06958728283643723,
0.03637329861521721,
0.1963931769132614,
0.08612622320652008,
0.1853112429380417,
-0.07821230590343475,
-0.10136667639017105,
-0.025417186319828033,
-0.09598015248775482,
0.05367174744606018,
-0.40871310234069824,
0.22548966109752655,
0.2022177278995514,
-0.3918567895889282,
0.09875356405973434,
0.07500883936882019,
0.09462082386016846,
-0.19088424742221832,
0.31084534525871277,
-0.03247661888599396,
0.035328809171915054,
0.37593215703964233,
-0.16771112382411957,
0.28332042694091797,
0.021812964230775833,
0.21130788326263428,
0.3199460506439209,
0.2520158886909485,
0.2788861095905304,
-0.0036711692810058594,
-0.08800259977579117,
-0.09036371856927872,
-0.06970542669296265,
0.20321783423423767,
0.19665655493736267,
-0.07896901667118073,
0.1939896047115326,
0.019747529178857803,
0.06503361463546753,
0.33519601821899414,
0.24635139107704163,
0.183452308177948,
-0.13845312595367432,
0.05470716953277588,
0.2898482084274292,
0.08937334269285202,
-0.01775524392724037,
-0.1585976928472519,
0.0265489611774683,
0.0859428197145462,
0.22741851210594177,
0.4988335371017456,
0.26850607991218567,
0.3956277370452881,
-0.012998685240745544,
-0.06774462759494781,
0.28404128551483154,
0.07169237732887268,
0.17015528678894043,
0.08375359326601028,
-0.0594901405274868,
0.1950874924659729,
0.5000240802764893,
0.4496956169605255,
0.03864452987909317,
-0.03882613778114319,
0.10414302349090576,
0.5346738696098328,
-0.005603048950433731,
-0.06207786872982979,
0.12635517120361328,
-0.0043647028505802155,
0.2718459665775299,
0.2628071904182434,
0.17225688695907593,
0.12151689827442169,
0.026430189609527588,
0.07768458873033524,
-0.3849411904811859,
-0.18510206043720245,
-0.009524544700980186,
0.33508580923080444,
0.1930452287197113,
-0.3616011440753937,
-0.28827205300331116,
0.08967242389917374,
0.027163319289684296,
-0.15776225924491882,
0.04818028211593628,
-0.7170671820640564,
0.3460787534713745,
-0.051769718527793884,
0.2031663954257965,
-0.5002548694610596,
-0.4858000874519348,
0.23362940549850464,
0.34979021549224854,
0.02591906115412712,
0.196886345744133,
0.40870821475982666,
-0.19842833280563354,
0.2039637714624405,
0.23980529606342316,
0.10725852102041245,
-0.2287326455116272,
0.06537668406963348,
0.41853001713752747,
-0.27565428614616394,
0.14850306510925293,
0.05493418872356415,
-0.002405419945716858,
-0.15557381510734558,
0.09317061305046082,
0.20853346586227417,
0.01014440506696701,
-0.006374645978212357,
-0.18627828359603882,
-0.32865190505981445,
0.027499426156282425,
-0.26520249247550964,
0.47854936122894287,
-0.29387038946151733,
-0.15829336643218994,
-0.056515686213970184,
0.33905601501464844,
-0.3580414652824402,
0.4116494655609131,
0.443757027387619,
-0.03250851854681969,
-0.10127054899930954,
-0.17583712935447693,
-0.025127796456217766,
0.0027256831526756287,
0.2918699085712433,
0.27555960416793823,
0.27220481634140015,
-0.23351189494132996,
0.08603648841381073,
-0.3426699936389923,
0.036558762192726135,
-0.026714075356721878,
-0.5635897517204285,
-0.10610229521989822,
-0.30140212178230286,
0.3944289982318878,
-0.1160801500082016,
-0.12119124829769135,
-0.22540616989135742,
0.06929181516170502,
-0.22479137778282166,
-0.17237965762615204,
-0.02118370309472084,
-0.2945214509963989,
0.2290794402360916,
0.17494052648544312,
0.1203293427824974,
-0.14893420040607452,
0.29335424304008484,
-0.16967572271823883,
-0.05764961242675781,
0.2612990438938141,
-0.056152552366256714,
-0.03163807839155197,
0.1851319521665573,
0.0004081893712282181,
0.4343342185020447,
0.040111295878887177,
-0.3034464120864868,
-0.07487060129642487,
-0.08295149356126785,
-0.3774096965789795,
-0.01441153883934021,
-0.35621553659439087,
0.2779448926448822,
-0.2749113440513611,
0.01902886852622032,
-0.3525392711162567,
0.09709972888231277,
0.08868415653705597,
0.08650518953800201,
-0.29036983847618103,
0.4144814610481262,
-0.19726383686065674,
-0.28237974643707275,
0.5451183319091797,
0.340121865272522,
0.15855994820594788,
0.1627669483423233,
-0.09330998361110687,
-0.12370353192090988,
0.4480281472206116,
-0.030844055116176605,
-0.08466112613677979,
0.006206324324011803,
0.16974413394927979,
0.40193304419517517,
-0.05904746055603027,
-0.8440296649932861,
0.2708301246166229,
0.33582451939582825,
0.05836918205022812,
-0.5356231331825256,
0.23749077320098877,
-0.10279721021652222,
-0.45292797684669495,
-0.06016957759857178,
0.3132772445678711,
-0.24703103303909302,
-0.07352454215288162,
-0.05631888657808304,
-0.18969014286994934
] |
https://github.com/huggingface/datasets/issues/723 | Adding pseudo-labels to datasets | Oh yes why not. I'm more in favor of this actually since pseudo labels are things that users (not dataset authors in general) can compute by themselves and share with the community | I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
| 32 | Adding pseudo-labels to datasets
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
Oh yes why not. I'm more in favor of this actually since pseudo labels are things that users (not dataset authors in general) can compute by themselves and share with the community | [
0.2814163565635681,
-0.0320717915892601,
0.0793316662311554,
-0.008558839559555054,
0.08331117033958435,
0.030321389436721802,
0.3540933430194855,
-0.11276215314865112,
-0.18462742865085602,
0.025800861418247223,
-0.22456905245780945,
0.061626579612493515,
-0.11643076688051224,
0.5070897340774536,
0.45906445384025574,
-0.05784633755683899,
0.2990212142467499,
-0.17647749185562134,
0.23836354911327362,
-0.1696522831916809,
-0.3217105567455292,
-0.30618804693222046,
0.25908517837524414,
-0.12656687200069427,
-0.30130526423454285,
-0.17251333594322205,
-0.1364629566669464,
-0.055580198764801025,
0.07227083295583725,
-0.5509164929389954,
0.0033327676355838776,
0.3938508927822113,
0.21349473297595978,
0.6353238821029663,
-0.00012441397120710462,
-0.11015573143959045,
-0.1351703554391861,
-0.09131578356027603,
-0.13287103176116943,
0.19524557888507843,
-0.02419433556497097,
-0.23777306079864502,
-0.20856265723705292,
0.1316623091697693,
-0.11624119430780411,
-0.3956458270549774,
-0.13214357197284698,
-0.0004315786063671112,
0.11738681048154831,
-0.012341270223259926,
0.02673775516450405,
0.13438349962234497,
0.2572762668132782,
0.13170865178108215,
0.43737486004829407,
0.3451998233795166,
-0.24096950888633728,
0.3131239116191864,
0.2690955102443695,
0.4111146032810211,
0.4979710280895233,
0.45554545521736145,
0.004359165206551552,
-0.16501277685165405,
0.5459336042404175,
0.05606011301279068,
-0.024443693459033966,
-0.1503380537033081,
-0.32454782724380493,
0.1916167438030243,
0.5204408764839172,
-0.2745699882507324,
-0.7477306127548218,
-0.47860661149024963,
0.13394077122211456,
-0.2930116057395935,
-0.16817116737365723,
-0.15663914382457733,
0.3763655722141266,
-0.055719297379255295,
0.032707858830690384,
-0.2535891532897949,
-0.01729583367705345,
0.1539382040500641,
0.09452120959758759,
0.523064374923706,
-0.17510515451431274,
0.24211376905441284,
0.0016061477363109589,
-0.23491837084293365,
-0.05951882526278496,
-0.288963258266449,
0.13656631112098694,
0.08852322399616241,
0.1371406614780426,
-0.16483739018440247,
-0.07905422896146774,
-0.02506374567747116,
0.28344234824180603,
0.28052446246147156,
-0.0019307276234030724,
-0.16251006722450256,
-0.2505151629447937,
-0.10461299866437912,
-0.020500387996435165,
0.09949484467506409,
0.0174180306494236,
0.31074705719947815,
0.28682181239128113,
-0.03111504204571247,
0.35093504190444946,
-0.1240791603922844,
-0.48750773072242737,
0.517302930355072,
-0.041770581156015396,
-0.16519606113433838,
0.02970726788043976,
-0.12522490322589874,
-0.036914046853780746,
-0.004921081475913525,
0.10605119913816452,
-0.16976499557495117,
0.06143730878829956,
-0.07271773368120193,
0.04556341841816902,
0.010079219937324524,
-0.10989322513341904,
0.34684133529663086,
0.22647351026535034,
-0.009969454258680344,
-0.04466967284679413,
-0.1268305778503418,
-0.08499224483966827,
0.37027961015701294,
-0.020864374935626984,
-0.31912750005722046,
0.23676545917987823,
-0.26776134967803955,
0.2227563112974167,
-0.2555195093154907,
0.03973697870969772,
0.16645129024982452,
-0.07879439741373062,
0.20729215443134308,
-0.17107777297496796,
0.1300288289785385,
-0.006415452808141708,
-0.016511835157871246,
-0.2232581079006195,
-0.0755658969283104,
-0.07729945331811905,
-0.08856116235256195,
-0.3378322422504425,
0.016343049705028534,
-0.369438111782074,
-0.31780490279197693,
-0.4057452976703644,
0.2678420841693878,
0.16259971261024475,
-0.04450574517250061,
0.13147799670696259,
0.17782796919345856,
-0.09251530468463898,
-0.1411685198545456,
0.30717283487319946,
0.17578011751174927,
-0.31513166427612305,
-0.2468121498823166,
0.0979708731174469,
0.07085328549146652,
0.10622124373912811,
0.2732607126235962,
0.027360307052731514,
0.1782812923192978,
0.19103896617889404,
-0.035251516848802567,
-0.027000881731510162,
-0.3939897119998932,
-0.17565269768238068,
-0.030218668282032013,
-0.08725234121084213,
-0.10304650664329529,
0.015057660639286041,
0.4775819480419159,
-0.0071331653743982315,
-0.3312186300754547,
-0.09482192993164062,
-0.03114364668726921,
0.007807228714227676,
-0.060501694679260254,
-0.041595108807086945,
0.01016865111887455,
-0.09829853475093842,
0.4570451080799103,
-0.1014261245727539,
0.046385593712329865,
-0.0321483314037323,
-0.1647462546825409,
-0.07588737457990646,
-0.05009264871478081,
0.05032322555780411,
-0.0062797777354717255,
0.48707374930381775,
0.4675251841545105,
-0.13883064687252045,
-0.32499271631240845,
-0.39002400636672974,
0.0731934905052185,
0.3471095860004425,
0.15823982656002045,
0.2516157925128937,
-0.4307459592819214,
-0.24316346645355225,
-0.1022995114326477,
-0.10214468836784363,
-0.05366909131407738,
-0.1130785197019577,
0.18692737817764282,
0.20212748646736145,
0.030172426253557205,
-0.32947906851768494,
-0.17595253884792328,
0.01992684416472912,
0.2592221200466156,
0.005264108069241047,
0.07799059897661209,
0.18586291372776031,
0.06339524686336517,
-0.14515820145606995,
0.5716481804847717,
0.0037003010511398315,
-0.04922294616699219,
0.21157371997833252,
0.25145775079727173,
-0.03413017466664314,
-0.12685459852218628,
0.07790589332580566,
0.28990983963012695,
0.44920650124549866,
-0.10234442353248596,
0.12023410201072693,
-0.30160725116729736,
-0.006287044379860163,
-0.12107787281274796,
-0.16074690222740173,
0.03259127587080002,
0.1353401243686676,
0.10791391134262085,
-0.31793224811553955,
-0.11427086591720581,
-0.03623080626130104,
0.21486178040504456,
-0.20259200036525726,
0.01594749093055725,
-0.04707003012299538,
0.1973648965358734,
0.42838987708091736,
0.06912846118211746,
-0.12703603506088257,
0.3050815761089325,
0.014811895787715912,
-0.33628302812576294,
0.14483627676963806,
0.11548593640327454,
-0.4773351550102234,
0.26460549235343933,
0.024677934125065804,
0.3967920243740082,
-0.03820423781871796,
0.06651649624109268,
0.28585219383239746,
-0.05057419836521149,
-0.07697957754135132,
0.05058245360851288,
-0.17858314514160156,
0.26396042108535767,
0.04447992146015167,
0.017352111637592316,
0.08468132466077805,
0.11152074486017227,
0.1685483157634735,
0.021570570766925812,
0.005087053403258324,
-0.06950756907463074,
-0.2577661871910095,
-0.09024211764335632,
0.3064963221549988,
-0.11135928332805634,
-0.22883351147174835,
-0.5478329062461853,
-0.47707033157348633,
-0.24351926147937775,
0.045739684253931046,
-0.1163431704044342,
-0.15151923894882202,
0.20374411344528198,
0.08286640048027039,
0.3769286274909973,
-0.36812856793403625,
-0.23411662876605988,
0.20603182911872864,
-0.15794067084789276,
0.17518866062164307,
-0.10882262885570526,
0.10131419450044632,
-0.17393743991851807,
0.459507018327713,
-0.0909394696354866,
0.15759991109371185,
-0.23958542943000793,
-0.5610396862030029,
0.053214095532894135,
-0.4868709444999695,
0.1262970268726349,
0.22727786004543304,
-0.2064218670129776,
0.30109256505966187,
-0.23191235959529877,
0.1144014373421669,
0.09767977148294449,
0.10711386799812317,
-0.3073492646217346,
-0.09914255142211914,
0.028276942670345306,
-0.3704603910446167,
0.1602453887462616,
-0.38325589895248413,
-0.1707056313753128,
0.3619331121444702,
0.13852480053901672,
0.014523446559906006,
0.26542896032333374,
-0.26449936628341675,
0.07206067442893982,
-0.0012261434458196163,
0.005685474723577499,
-0.045701175928115845,
-0.5406396985054016,
0.409723162651062,
-0.0630016103386879,
0.04500339925289154,
0.18320737779140472,
-0.0863225907087326,
-0.07873062789440155,
-0.036643631756305695,
-0.09802335500717163,
-0.37023332715034485,
0.03729551285505295,
0.060162391513586044,
0.329608678817749,
0.36501115560531616,
0.07841183245182037,
0.08016249537467957,
0.15411078929901123,
-0.11204708367586136,
-0.37770533561706543,
0.1402950882911682,
-0.006077390164136887,
0.2007026970386505,
-0.1400781273841858,
0.12376490980386734,
-0.20937828719615936,
0.6475238800048828,
0.18353986740112305,
-0.27418649196624756,
0.09097537398338318,
0.21860258281230927,
0.27895066142082214,
0.21840092539787292,
0.06290337443351746,
0.12450187653303146,
0.0851547047495842,
0.11877717077732086,
0.09220068901777267,
0.2761639356613159,
0.3328824043273926,
0.03630474954843521,
0.16677111387252808,
-0.0027103982865810394,
0.0036795958876609802,
-0.07427434623241425,
0.12839077413082123,
0.30421382188796997,
-0.22792592644691467,
-0.23934409022331238,
-0.47070741653442383,
0.023321017622947693,
-0.11964486539363861,
0.20166629552841187,
0.28553903102874756,
0.21835960447788239,
-0.6506955623626709,
-0.033794671297073364,
-0.4541131854057312,
0.16469568014144897,
0.2548806369304657,
-0.25150564312934875,
0.008029233664274216,
-0.09857338666915894,
0.04161497950553894,
0.0023292084224522114,
0.24712315201759338,
-0.435941606760025,
-0.3356824517250061,
-0.11770619451999664,
0.12855054438114166,
-0.04749061167240143,
0.08736434578895569,
0.03262973204255104,
-0.3131893575191498,
0.13837459683418274,
0.31049197912216187,
-0.5903471112251282,
0.08223768323659897,
0.3321760296821594,
0.03209739923477173,
-0.1716783046722412,
-0.20030449330806732,
-0.24022695422172546,
-0.4535842537879944,
-0.20544317364692688,
-0.13588544726371765,
0.14919157326221466,
-0.09745676815509796,
0.1312786191701889,
0.02205732837319374,
-0.009361553937196732,
0.11755450814962387,
0.33911412954330444,
0.18826095759868622,
-0.10851730406284332,
0.5585428476333618,
0.22935059666633606,
0.3981236517429352,
-0.0017460286617279053,
0.4851601719856262,
0.5506289601325989,
-0.3786624073982239,
-0.4305569529533386,
-0.2744675874710083,
-0.29778361320495605,
0.49872642755508423,
-0.02396450936794281,
0.3015178143978119,
0.1344216763973236,
0.1156233623623848,
0.03131258487701416,
-0.5718579292297363,
0.33172371983528137,
0.11326798796653748,
0.12214133888483047,
-0.3394652009010315,
-0.5148451328277588,
0.6434897184371948,
0.17093048989772797,
-0.13280394673347473,
-0.07697419822216034,
0.5751502513885498,
-0.18313641846179962,
-0.07817305624485016,
0.31061631441116333,
0.9312652945518494,
-0.3546268939971924,
0.3402827978134155,
0.009671900421380997,
0.12061266601085663,
1.105461597442627,
-0.08262060582637787,
-0.26932066679000854,
-0.02251426875591278,
-0.11108691245317459,
-0.09889175742864609,
-0.10211469233036041,
-0.08997227996587753,
-0.019081301987171173,
-0.016962602734565735,
0.2067680060863495,
-0.11127917468547821,
0.042242828756570816,
-0.031411297619342804,
-0.02886243350803852,
0.2507326006889343,
-0.3882370889186859,
-0.025484539568424225,
0.008885759860277176,
-0.26182830333709717,
0.002444077283143997,
-0.20294618606567383,
-0.13660451769828796,
-0.16418501734733582,
0.252175509929657,
-0.1696009635925293,
-0.16549032926559448,
0.045934565365314484,
-0.423836350440979,
0.0301596000790596,
-0.06612775474786758,
0.1879517138004303,
-0.13205429911613464,
0.8199991583824158,
0.026934010908007622,
-0.01026025228202343,
0.03696111589670181,
-0.30383920669555664,
0.10928355157375336,
-0.20306295156478882,
-0.15655140578746796,
0.07817862927913666,
0.12176986783742905,
-0.24332785606384277,
0.045617297291755676,
0.2912822961807251,
-0.24662558734416962,
-0.3772773742675781,
-0.30108755826950073,
0.12300752103328705,
-0.21924658119678497,
0.3524189293384552,
0.5262490510940552,
0.1640695184469223,
-0.13860231637954712,
-0.005637539550662041,
0.25238990783691406,
-0.16449545323848724,
-0.1531696915626526,
-0.33916938304901123,
0.1415352076292038,
-0.2554900050163269,
-0.16790810227394104,
-0.10208752006292343,
-0.04408952221274376,
-0.12319912016391754,
0.11240096390247345,
-0.03856680914759636,
0.060238681733608246,
-0.13768061995506287,
0.056233685463666916,
-0.30032652616500854,
-0.20974010229110718,
0.24343463778495789,
-0.5009251832962036,
-0.4061090052127838,
0.3031409978866577,
0.4211235046386719,
-0.3773593604564667,
0.18926894664764404,
0.17266424000263214,
-0.4455309510231018,
0.10848528146743774,
-0.043404821306467056,
0.22882190346717834,
-0.03896825760602951,
0.3678353428840637,
-0.12211518734693527,
0.2558903694152832,
-0.16405069828033447,
-0.15984505414962769,
-0.09526757895946503,
-0.021896686404943466,
0.2124335765838623,
0.0834645926952362,
0.17980635166168213,
-0.14121639728546143,
-0.1252385973930359,
0.040880970656871796,
-0.027507618069648743,
0.04827284812927246,
-0.3353329300880432,
0.23036135733127594,
0.2928527891635895,
-0.39143845438957214,
0.11514690518379211,
0.06271518021821976,
0.07597924023866653,
-0.1434514969587326,
0.30501389503479004,
-0.06761108338832855,
0.06722365319728851,
0.29635387659072876,
-0.18806783854961395,
0.3651653528213501,
-0.03934653475880623,
0.2685128450393677,
0.32439500093460083,
0.30870121717453003,
0.30296358466148376,
-0.012571513652801514,
0.03827762231230736,
-0.07753702998161316,
-0.09440276771783829,
0.20289334654808044,
0.21262268722057343,
-0.09654951840639114,
0.24341148138046265,
-0.03273016959428787,
0.0925733745098114,
0.3101593852043152,
0.26365840435028076,
0.12407062202692032,
-0.13845209777355194,
0.14631609618663788,
0.23418515920639038,
0.09295915812253952,
0.024917565286159515,
-0.15226896107196808,
0.021342776715755463,
0.04590693116188049,
0.22696122527122498,
0.4519791305065155,
0.22673234343528748,
0.4235093593597412,
-0.0457368940114975,
-0.07221540808677673,
0.27000635862350464,
0.12882071733474731,
0.09320130944252014,
0.0590197928249836,
-0.03356003016233444,
0.19870628416538239,
0.46782052516937256,
0.4600564241409302,
0.014807231724262238,
0.0027081742882728577,
0.1728651225566864,
0.5681412220001221,
0.04981068894267082,
-0.12485915422439575,
0.19934657216072083,
0.07481501996517181,
0.26821938157081604,
0.22980129718780518,
0.28238236904144287,
0.06149270758032799,
0.026211664080619812,
-0.004047267138957977,
-0.4006952941417694,
-0.15344251692295074,
-0.0729164406657219,
0.30582672357559204,
0.1598052680492401,
-0.27444788813591003,
-0.3160999119281769,
0.11620312184095383,
0.03452108055353165,
-0.17046087980270386,
0.024140723049640656,
-0.7365187406539917,
0.27278825640678406,
-0.08463896811008453,
0.22486604750156403,
-0.4340876340866089,
-0.49311280250549316,
0.27392861247062683,
0.3674139380455017,
0.06384237110614777,
0.14784318208694458,
0.3270259499549866,
-0.1447971761226654,
0.1678352952003479,
0.24069805443286896,
0.11158651113510132,
-0.26908180117607117,
0.03775891661643982,
0.432394802570343,
-0.3454436957836151,
0.14508645236492157,
0.05288703739643097,
0.05224933475255966,
-0.2151186466217041,
0.08791476488113403,
0.22738899290561676,
0.008138284087181091,
0.022100228816270828,
-0.13683338463306427,
-0.3013673722743988,
0.05186910927295685,
-0.2918010354042053,
0.47366994619369507,
-0.3938245177268982,
-0.21428629755973816,
-0.0800405815243721,
0.3053120970726013,
-0.23832938075065613,
0.4440697133541107,
0.43779802322387695,
-0.03144824132323265,
-0.10123614221811295,
-0.1655847430229187,
-0.030671026557683945,
-0.005888128653168678,
0.26130712032318115,
0.3529655337333679,
0.32761749625205994,
-0.199443057179451,
0.07360014319419861,
-0.3824087977409363,
0.06465905904769897,
-0.0807909220457077,
-0.5424756407737732,
-0.12028257548809052,
-0.27375486493110657,
0.3947318196296692,
-0.04424823075532913,
-0.10001742839813232,
-0.19357658922672272,
0.012028961442410946,
-0.2517721951007843,
-0.1323550045490265,
-0.06381294131278992,
-0.312006413936615,
0.1835525631904602,
0.13654637336730957,
0.14236703515052795,
-0.15295395255088806,
0.29937711358070374,
-0.12736016511917114,
-0.0680193081498146,
0.26453930139541626,
-0.1696014106273651,
-0.025061994791030884,
0.14526644349098206,
-0.024001585319638252,
0.42775464057922363,
0.13418525457382202,
-0.2914249002933502,
0.02802208811044693,
-0.07035141438245773,
-0.31891849637031555,
0.011061940342187881,
-0.39082759618759155,
0.22931471467018127,
-0.2439146786928177,
-0.014169752597808838,
-0.3038213551044464,
0.04213967174291611,
0.10754166543483734,
0.06437227129936218,
-0.2987961173057556,
0.434704065322876,
-0.18047325313091278,
-0.2937624156475067,
0.5569198131561279,
0.2664342522621155,
0.12366996705532074,
0.053293682634830475,
-0.05409547686576843,
-0.08492787927389145,
0.33280304074287415,
-0.10011349618434906,
-0.07308949530124664,
0.027833499014377594,
0.19797968864440918,
0.382681667804718,
-0.10514173656702042,
-0.8385416269302368,
0.2493816316127777,
0.3333536982536316,
0.04426835477352142,
-0.4850102365016937,
0.22138705849647522,
-0.07394327223300934,
-0.4330568313598633,
-0.03986379876732826,
0.2943260669708252,
-0.30458393692970276,
-0.023238305002450943,
0.05077257379889488,
-0.15187136828899384
] |
https://github.com/huggingface/datasets/issues/723 | Adding pseudo-labels to datasets | 
I assume I should (for example) rename the xsum dir, change the URL, and put the modified dir somewhere in S3? | I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
| 22 | Adding pseudo-labels to datasets
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?

I assume I should (for example) rename the xsum dir, change the URL, and put the modified dir somewhere in S3? | [
0.38241830468177795,
-0.05905160307884216,
0.057578425854444504,
0.0074141062796115875,
0.13427871465682983,
0.013138100504875183,
0.2963201105594635,
-0.1217542290687561,
-0.21988365054130554,
-0.043527841567993164,
-0.27877530455589294,
0.08048360049724579,
-0.08394201099872589,
0.5122794508934021,
0.47079500555992126,
-0.02676796168088913,
0.3672170639038086,
-0.16115206480026245,
0.1646212488412857,
-0.1702684909105301,
-0.3577936589717865,
-0.2848300337791443,
0.2717744708061218,
-0.2073097676038742,
-0.3152380585670471,
-0.12031079083681107,
-0.22454242408275604,
0.07212226092815399,
0.05896899104118347,
-0.5473183989524841,
-0.02663944661617279,
0.4308968484401703,
0.2439987063407898,
0.6618467569351196,
-0.0001245916064362973,
-0.11420880258083344,
-0.1561800092458725,
-0.15020926296710968,
-0.18239326775074005,
0.21755757927894592,
-0.031519483774900436,
-0.19621641933918,
-0.20616614818572998,
0.16320571303367615,
-0.11146797239780426,
-0.32488104701042175,
-0.09852126240730286,
0.07339465618133545,
0.19522474706172943,
0.032619185745716095,
0.020402323454618454,
0.11397905647754669,
0.22996704280376434,
0.13454072177410126,
0.47939249873161316,
0.3306821584701538,
-0.1912674754858017,
0.3493454158306122,
0.21044906973838806,
0.39901790022850037,
0.4943247139453888,
0.4715927541255951,
-0.01914088800549507,
-0.11357396841049194,
0.6187546253204346,
0.042759645730257034,
-0.03382328152656555,
-0.16955532133579254,
-0.3249826431274414,
0.12182333320379257,
0.5115077495574951,
-0.28191259503364563,
-0.7312897443771362,
-0.463739812374115,
0.12534092366695404,
-0.320324182510376,
-0.11342906206846237,
-0.2277139574289322,
0.4337179958820343,
-0.05084269866347313,
-0.04394333064556122,
-0.30358678102493286,
-0.05646054446697235,
0.216128870844841,
0.04298301786184311,
0.5357021689414978,
-0.191315159201622,
0.19109609723091125,
-0.005826655775308609,
-0.23527832329273224,
-0.06672701239585876,
-0.2758331298828125,
0.16334673762321472,
0.1244041696190834,
0.16289426386356354,
-0.12065096944570541,
-0.061925388872623444,
-0.005070231854915619,
0.2346726953983307,
0.32529908418655396,
0.01758628338575363,
-0.13016876578330994,
-0.2440437376499176,
-0.11200394481420517,
-0.0779496282339096,
0.11552439630031586,
-0.051865942776203156,
0.28977063298225403,
0.2308943122625351,
0.05324655398726463,
0.33822110295295715,
-0.12401380389928818,
-0.4614146053791046,
0.45573070645332336,
-0.11779730021953583,
-0.12186772376298904,
0.07338633388280869,
-0.06364159286022186,
0.025840407237410545,
-0.051675647497177124,
0.10717245191335678,
-0.15975704789161682,
0.029577599838376045,
-0.05489201098680496,
-0.006770878564566374,
0.03930053859949112,
-0.08142723143100739,
0.3715892434120178,
0.17745943367481232,
0.08560717850923538,
-0.031412553042173386,
-0.13273274898529053,
-0.09191861003637314,
0.3518417775630951,
-0.015453450381755829,
-0.2775565981864929,
0.25956079363822937,
-0.24893490970134735,
0.1895790994167328,
-0.23812706768512726,
0.01197819598019123,
0.20155450701713562,
-0.009398482739925385,
0.22883819043636322,
-0.13368196785449982,
0.13089922070503235,
-0.053430769592523575,
-0.005862817168235779,
-0.22722283005714417,
-0.13467174768447876,
-0.07740608602762222,
-0.11088000237941742,
-0.33108821511268616,
0.005131838843226433,
-0.4340773820877075,
-0.3205752372741699,
-0.36982595920562744,
0.2506904602050781,
0.12827624380588531,
-0.06456271559000015,
0.10957875847816467,
0.18709386885166168,
-0.09300720691680908,
-0.14870493113994598,
0.3043157160282135,
0.17341074347496033,
-0.32902634143829346,
-0.2644236087799072,
0.11263374984264374,
0.07589162141084671,
0.0661478042602539,
0.23499512672424316,
0.06471280008554459,
0.11300832033157349,
0.16569866240024567,
-0.03720633685588837,
-0.0541798397898674,
-0.4142208695411682,
-0.20151647925376892,
-0.060294654220342636,
-0.12066979706287384,
-0.0934126153588295,
0.02437673509120941,
0.4403904676437378,
-0.029045242816209793,
-0.3247791528701782,
-0.1446690410375595,
0.01622897945344448,
0.05281621217727661,
-0.05375436693429947,
-0.0320783406496048,
0.0505712553858757,
-0.1820051074028015,
0.43116968870162964,
-0.11659428477287292,
0.05831974744796753,
-0.044458918273448944,
-0.144014373421669,
-0.11134269088506699,
-0.09155735373497009,
0.10409631580114365,
0.07368817925453186,
0.5007159113883972,
0.5515339374542236,
-0.11310034990310669,
-0.24751976132392883,
-0.45338767766952515,
0.05324719101190567,
0.3159930408000946,
0.17338666319847107,
0.2216349095106125,
-0.3751896023750305,
-0.2680237591266632,
-0.14741814136505127,
-0.1475025862455368,
-0.05357955023646355,
-0.09529031813144684,
0.2475847601890564,
0.23610520362854004,
-0.019332613795995712,
-0.29989171028137207,
-0.21608459949493408,
0.12830953299999237,
0.2848450243473053,
-0.053939323872327805,
0.12053285539150238,
0.14927883446216583,
0.020002536475658417,
-0.14915768802165985,
0.5127787590026855,
0.010466381907463074,
-0.10403970628976822,
0.20298665761947632,
0.30393731594085693,
-0.0074416459538042545,
-0.027630358934402466,
0.10167786478996277,
0.3263527750968933,
0.4377630949020386,
-0.09900999069213867,
0.13826386630535126,
-0.252966046333313,
-0.013211922720074654,
-0.07910652458667755,
-0.17939096689224243,
0.02297273278236389,
0.10957954823970795,
0.13348081707954407,
-0.29860785603523254,
-0.15211345255374908,
0.037258222699165344,
0.13932247459888458,
-0.1947154402732849,
0.00790364295244217,
-0.11083130538463593,
0.23303541541099548,
0.3945528566837311,
0.10877995193004608,
-0.0956890732049942,
0.32151859998703003,
-0.004888404160737991,
-0.3789289593696594,
0.1060979813337326,
0.10680237412452698,
-0.49113696813583374,
0.19633248448371887,
0.030152039602398872,
0.4219142496585846,
-0.03476253151893616,
0.06190357357263565,
0.3403469920158386,
0.012511721812188625,
-0.04759439826011658,
0.02531973272562027,
-0.12760120630264282,
0.3111085295677185,
0.09077107161283493,
0.08294680714607239,
0.12145025283098221,
0.10070552676916122,
0.17345783114433289,
-0.022976182401180267,
0.02541005052626133,
-0.06250228732824326,
-0.29443806409835815,
-0.06361577659845352,
0.2560417950153351,
-0.11958647519350052,
-0.19837193191051483,
-0.582017719745636,
-0.49390357732772827,
-0.20034828782081604,
0.09695511311292648,
-0.09548965096473694,
-0.21128809452056885,
0.2024482786655426,
0.12775929272174835,
0.3231774568557739,
-0.3230869472026825,
-0.24511103332042694,
0.1739901751279831,
-0.13171255588531494,
0.18231210112571716,
-0.12306296825408936,
0.13065992295742035,
-0.16974803805351257,
0.39528220891952515,
-0.17922402918338776,
0.14201229810714722,
-0.26153701543807983,
-0.5440927743911743,
0.07003463804721832,
-0.4652979373931885,
0.18719984591007233,
0.30113789439201355,
-0.16505564749240875,
0.28467708826065063,
-0.20405656099319458,
0.10871757566928864,
0.15246723592281342,
0.10834366083145142,
-0.26702505350112915,
-0.15889595448970795,
0.06747552752494812,
-0.36678698658943176,
0.1237906888127327,
-0.28992700576782227,
-0.1475369930267334,
0.35696423053741455,
0.15269000828266144,
0.02710096910595894,
0.2999838590621948,
-0.1780369132757187,
0.0791994109749794,
-0.03348575159907341,
0.02388090454041958,
-0.05373575910925865,
-0.5200932621955872,
0.41233372688293457,
-0.04386916384100914,
0.1034153550863266,
0.21094483137130737,
-0.1105608269572258,
-0.0498708076775074,
-0.047694165259599686,
-0.08835718035697937,
-0.4446309208869934,
0.07032690197229385,
0.024468783289194107,
0.3464214503765106,
0.39129212498664856,
0.14744822680950165,
0.058012355118989944,
0.12385302782058716,
-0.14444640278816223,
-0.3642100691795349,
0.08967141062021255,
0.031148429960012436,
0.2948600947856903,
-0.15098661184310913,
0.16526243090629578,
-0.2183777093887329,
0.6097127199172974,
0.1429278403520584,
-0.26537543535232544,
0.15222537517547607,
0.20224130153656006,
0.25688520073890686,
0.2612135112285614,
0.1293947994709015,
0.1242537721991539,
0.0688544288277626,
0.07942678034305573,
0.13123776018619537,
0.23612597584724426,
0.35466769337654114,
0.0890386551618576,
0.1559654176235199,
-0.022221051156520844,
-0.011028531938791275,
-0.056861475110054016,
0.11608653515577316,
0.27570420503616333,
-0.22658760845661163,
-0.314339816570282,
-0.44399791955947876,
0.07657992839813232,
-0.11034639179706573,
0.20836693048477173,
0.29907113313674927,
0.2141653597354889,
-0.6747989058494568,
-0.07844497263431549,
-0.394044429063797,
0.1974581480026245,
0.23654237389564514,
-0.2909456491470337,
0.07615251839160919,
-0.13621839880943298,
0.014246523380279541,
-0.04570826143026352,
0.32473474740982056,
-0.4556795060634613,
-0.3164594769477844,
-0.08289536833763123,
0.07730291038751602,
-0.08749352395534515,
0.060992490500211716,
-0.043827302753925323,
-0.341593474149704,
0.19145295023918152,
0.358316034078598,
-0.5709723234176636,
0.0013945659156888723,
0.2717254161834717,
0.04764213413000107,
-0.12936556339263916,
-0.145188570022583,
-0.2763875424861908,
-0.5452921390533447,
-0.2844862937927246,
-0.14236626029014587,
0.1368621587753296,
-0.12357795238494873,
0.1678204983472824,
-0.009243469685316086,
0.045721083879470825,
0.06746254116296768,
0.30876314640045166,
0.1833772212266922,
-0.07326587289571762,
0.6347836852073669,
0.17271609604358673,
0.40020105242729187,
-0.057184912264347076,
0.5128045678138733,
0.5562189221382141,
-0.385448694229126,
-0.4082212448120117,
-0.25890326499938965,
-0.18335233628749847,
0.4894201159477234,
0.015521928668022156,
0.3424210250377655,
0.11984485387802124,
0.08732526749372482,
0.11353644728660583,
-0.5821654796600342,
0.3661460280418396,
0.12927931547164917,
0.09311811625957489,
-0.2194296419620514,
-0.49391382932662964,
0.6453342437744141,
0.13128262758255005,
-0.19174373149871826,
-0.1537509560585022,
0.524000883102417,
-0.2538594603538513,
-0.04621969908475876,
0.38150840997695923,
0.9618309736251831,
-0.2958472967147827,
0.3563615083694458,
0.09457369148731232,
0.10510772466659546,
1.0278156995773315,
-0.03887554258108139,
-0.24151311814785004,
-0.016421552747488022,
-0.04414134845137596,
-0.07769946753978729,
-0.10242515802383423,
-0.08438897877931595,
-0.027903780341148376,
-0.05090254545211792,
0.21720430254936218,
-0.1412743777036667,
0.012261994183063507,
-0.10104760527610779,
-0.033538512885570526,
0.1910451054573059,
-0.3727121353149414,
-0.07458189874887466,
0.012622468173503876,
-0.22522850334644318,
0.003348473459482193,
-0.18280360102653503,
-0.12664279341697693,
-0.19353367388248444,
0.2440081685781479,
-0.0582861565053463,
-0.17844974994659424,
-0.005192968994379044,
-0.516286313533783,
-0.00614987313747406,
-0.07451025396585464,
0.11019439995288849,
-0.10652273893356323,
0.767162024974823,
0.0037602968513965607,
0.008229119703173637,
0.0739077627658844,
-0.26696810126304626,
0.09357479959726334,
-0.2059943974018097,
-0.22516773641109467,
0.085320845246315,
0.11576453596353531,
-0.2600771486759186,
-0.005451470613479614,
0.29369667172431946,
-0.20098114013671875,
-0.3357982039451599,
-0.3550329804420471,
0.07801330089569092,
-0.21764302253723145,
0.2874298095703125,
0.4839893579483032,
0.13823795318603516,
-0.14606355130672455,
-0.0037413891404867172,
0.20063044130802155,
-0.16077500581741333,
-0.11673752218484879,
-0.36573636531829834,
0.11844678223133087,
-0.2654047906398773,
-0.12302293628454208,
-0.17801937460899353,
-0.05287858471274376,
-0.0653269961476326,
0.15660396218299866,
-0.03737468644976616,
0.055224061012268066,
-0.14818096160888672,
0.012309766374528408,
-0.26919567584991455,
-0.13623729348182678,
0.2364189475774765,
-0.544387698173523,
-0.38634634017944336,
0.30062490701675415,
0.4367993474006653,
-0.3253638744354248,
0.15712352097034454,
0.1752297729253769,
-0.4280354380607605,
0.1592925786972046,
0.011279512196779251,
0.2756151854991913,
-0.08029556274414062,
0.33532148599624634,
-0.0866626426577568,
0.23240570724010468,
-0.17031288146972656,
-0.10760226845741272,
-0.11095485836267471,
0.02987917698919773,
0.1536899209022522,
0.0183863528072834,
0.16714872419834137,
-0.15113240480422974,
-0.1201808825135231,
0.005534611642360687,
-0.03242620453238487,
0.039770081639289856,
-0.3695158064365387,
0.2196667492389679,
0.28203481435775757,
-0.42521142959594727,
0.13785508275032043,
0.08313271403312683,
0.1048721969127655,
-0.17399050295352936,
0.31920692324638367,
-0.09555336087942123,
0.06532072275876999,
0.3136174976825714,
-0.18276618421077728,
0.273914635181427,
0.002346087247133255,
0.16883805394172668,
0.2984243631362915,
0.29226750135421753,
0.2921118438243866,
0.007313057780265808,
-0.022377442568540573,
-0.10772891342639923,
-0.10747754573822021,
0.24646997451782227,
0.23518887162208557,
-0.07501628994941711,
0.24354657530784607,
-0.010490983724594116,
0.09151527285575867,
0.32555893063545227,
0.2787168323993683,
0.15053188800811768,
-0.15609166026115417,
0.11454339325428009,
0.24180307984352112,
0.0898408442735672,
0.019620820879936218,
-0.1615661084651947,
-0.03056260198354721,
-0.014794065617024899,
0.20581504702568054,
0.43951544165611267,
0.19854798913002014,
0.4025261402130127,
-0.06163938343524933,
-0.0391608402132988,
0.30550846457481384,
0.21936851739883423,
0.08313556015491486,
0.06581966578960419,
-0.12807214260101318,
0.1707727164030075,
0.5006362795829773,
0.4155249297618866,
0.026886500418186188,
0.01781032606959343,
0.17013250291347504,
0.5361147522926331,
-0.018236976116895676,
-0.028944063931703568,
0.18480181694030762,
0.06042511388659477,
0.19478720426559448,
0.2642327845096588,
0.27152329683303833,
0.10487589240074158,
0.003664456307888031,
0.017601631581783295,
-0.37186434864997864,
-0.2035440057516098,
-0.03925131633877754,
0.439782053232193,
0.213320791721344,
-0.32373228669166565,
-0.3560730814933777,
0.08587949723005295,
0.026256263256072998,
-0.11135461926460266,
0.013047251850366592,
-0.7505536079406738,
0.31446969509124756,
-0.055699631571769714,
0.22903060913085938,
-0.42885541915893555,
-0.47922515869140625,
0.22628459334373474,
0.28917211294174194,
0.05308912321925163,
0.17819303274154663,
0.4162330627441406,
-0.1435064971446991,
0.1604759395122528,
0.18053798377513885,
0.16687200963497162,
-0.2905871272087097,
0.0015826448798179626,
0.4147278666496277,
-0.2863200604915619,
0.1159629374742508,
0.06975328177213669,
0.007796276360750198,
-0.2317916452884674,
0.07846183329820633,
0.16092549264431,
0.018740857020020485,
-0.016194947063922882,
-0.1664542406797409,
-0.3410789370536804,
0.03634324669837952,
-0.18564702570438385,
0.49328339099884033,
-0.3427180051803589,
-0.2011362910270691,
-0.09164036810398102,
0.32858744263648987,
-0.3409660756587982,
0.416331946849823,
0.419424444437027,
-0.09138334542512894,
-0.0692446380853653,
-0.1162860170006752,
-0.02725967764854431,
-0.00036437995731830597,
0.30939099192619324,
0.3522861897945404,
0.33896970748901367,
-0.21078668534755707,
0.03076743334531784,
-0.36501169204711914,
0.0416252464056015,
-0.058466557413339615,
-0.56504225730896,
-0.11282224953174591,
-0.21990329027175903,
0.35937318205833435,
-0.11828136444091797,
-0.09381426870822906,
-0.19213354587554932,
-0.00208444707095623,
-0.1872655302286148,
-0.12803050875663757,
0.015794070437550545,
-0.3481070399284363,
0.2568414807319641,
0.16597209870815277,
0.09153833240270615,
-0.15724043548107147,
0.32333239912986755,
-0.1375705748796463,
-0.03743847832083702,
0.28892651200294495,
-0.1651366800069809,
-0.06918083131313324,
0.15499559044837952,
-0.009236650541424751,
0.4199463129043579,
0.03896921128034592,
-0.3318719267845154,
-0.03667997196316719,
-0.07944604754447937,
-0.3724074959754944,
-0.008079029619693756,
-0.4380820691585541,
0.28690972924232483,
-0.25110775232315063,
0.06646967679262161,
-0.3012431263923645,
0.07287213206291199,
0.1339552253484726,
0.061319995671510696,
-0.30082985758781433,
0.47628355026245117,
-0.24570780992507935,
-0.248826801776886,
0.5414466857910156,
0.2740882635116577,
0.12161758542060852,
0.09519696980714798,
-0.11074337363243103,
-0.13050687313079834,
0.4118339419364929,
-0.0960555449128151,
-0.10098688304424286,
0.05119731277227402,
0.19624166190624237,
0.37035253643989563,
-0.10340318083763123,
-0.8380080461502075,
0.28655314445495605,
0.30247262120246887,
0.12574376165866852,
-0.548289954662323,
0.262813001871109,
-0.04576718434691429,
-0.4233820140361786,
-0.05255252495408058,
0.29957643151283264,
-0.24679264426231384,
-0.06607121229171753,
-0.045202530920505524,
-0.17708361148834229
] |
https://github.com/huggingface/datasets/issues/723 | Adding pseudo-labels to datasets | You can use the `datasets-cli` to upload the folder with your version of xsum with the pseudo labels.
```
datasets-cli upload_dataset path/to/xsum
``` | I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
| 23 | Adding pseudo-labels to datasets
I recently [uploaded pseudo-labels](https://github.com/huggingface/transformers/blob/master/examples/seq2seq/precomputed_pseudo_labels.md) for CNN/DM, XSUM and WMT16-en-ro to s3, and thom mentioned I should add them to this repo.
Since pseudo-labels are just a large model's generations on an existing dataset, what is the right way to structure this contribution.
I read https://huggingface.co/docs/datasets/add_dataset.html, but it doesn't really cover this type of contribution.
I could, for example, make a new directory, `xsum_bart_pseudolabels` for each set of pseudolabels or add some sort of parametrization to `xsum.py`: https://github.com/huggingface/datasets/blob/5f4c6e830f603830117877b8990a0e65a2386aa6/datasets/xsum/xsum.py
What do you think @lhoestq ?
You can use the `datasets-cli` to upload the folder with your version of xsum with the pseudo labels.
```
datasets-cli upload_dataset path/to/xsum
``` | [
0.3005569577217102,
-0.08655238151550293,
0.07898759841918945,
0.012747697532176971,
0.13790151476860046,
0.04259231686592102,
0.2965247631072998,
-0.0892709493637085,
-0.1311771273612976,
0.0045274123549461365,
-0.2615562379360199,
0.1170213520526886,
-0.1018751785159111,
0.5030103325843811,
0.4647361636161804,
-0.050174809992313385,
0.3400838375091553,
-0.16120320558547974,
0.12093842029571533,
-0.18793056905269623,
-0.3377024531364441,
-0.26749101281166077,
0.24343223869800568,
-0.1668703705072403,
-0.3428442180156708,
-0.14639876782894135,
-0.1756637692451477,
0.044133588671684265,
0.0913100317120552,
-0.5311964750289917,
0.03528536111116409,
0.41091808676719666,
0.2603912055492401,
0.6441872715950012,
-0.00012490515655372292,
-0.09600141644477844,
-0.11643201112747192,
-0.1558602750301361,
-0.1917865127325058,
0.18728122115135193,
-0.04066108167171478,
-0.19847407937049866,
-0.1967242807149887,
0.15303975343704224,
-0.10722232609987259,
-0.3743225932121277,
-0.08869829773902893,
-0.004833638668060303,
0.18892306089401245,
-0.005573153495788574,
0.016215335577726364,
0.21269752085208893,
0.26194635033607483,
0.11458159238100052,
0.39663007855415344,
0.3124055564403534,
-0.2199384868144989,
0.329833984375,
0.2574901282787323,
0.4000381529331207,
0.4975062608718872,
0.46542075276374817,
0.0034594442695379257,
-0.1363222301006317,
0.5766839981079102,
0.06857501715421677,
0.021365195512771606,
-0.1638680100440979,
-0.3478550910949707,
0.18829399347305298,
0.5000043511390686,
-0.29476359486579895,
-0.7588797807693481,
-0.4253389239311218,
0.1248202696442604,
-0.28345173597335815,
-0.1056063249707222,
-0.20038136839866638,
0.39726847410202026,
-0.05338938906788826,
-0.006578389555215836,
-0.2543708086013794,
-0.08438361436128616,
0.18364083766937256,
0.06372169405221939,
0.5415853261947632,
-0.1714509278535843,
0.20190563797950745,
0.06274358183145523,
-0.26268255710601807,
-0.04533456638455391,
-0.2511153519153595,
0.15674817562103271,
0.14386500418186188,
0.13748034834861755,
-0.16277113556861877,
-0.11114288121461868,
0.012416418641805649,
0.2875880002975464,
0.25540822744369507,
-0.014728819020092487,
-0.12713798880577087,
-0.2798386514186859,
-0.09070707112550735,
-0.04951273277401924,
0.1478041410446167,
0.02051711082458496,
0.25643062591552734,
0.2562671899795532,
0.013742122799158096,
0.341987282037735,
-0.13232901692390442,
-0.5306587219238281,
0.5164093971252441,
-0.08743710815906525,
-0.16153743863105774,
0.008434709161520004,
-0.1053059846162796,
-0.015433434396982193,
-0.022404581308364868,
0.1680034101009369,
-0.18247096240520477,
0.06206122040748596,
-0.0694897249341011,
0.0375252328813076,
0.07176093757152557,
-0.09216253459453583,
0.3676929473876953,
0.1835537552833557,
-0.009249954484403133,
-0.05262788385152817,
-0.09453020989894867,
-0.08711187541484833,
0.35373011231422424,
-0.0076326243579387665,
-0.33537814021110535,
0.2623463273048401,
-0.256954163312912,
0.22947180271148682,
-0.1936964988708496,
0.012320175766944885,
0.19917359948158264,
-0.07306656986474991,
0.23155534267425537,
-0.14150665700435638,
0.15087103843688965,
-0.012240774929523468,
-0.009590066969394684,
-0.22979533672332764,
-0.12945833802223206,
-0.08316700905561447,
-0.07627271115779877,
-0.3556431531906128,
0.011350162327289581,
-0.42537933588027954,
-0.33295512199401855,
-0.4054361879825592,
0.23013783991336823,
0.14852724969387054,
-0.009658794850111008,
0.06670169532299042,
0.15407119691371918,
-0.10531778633594513,
-0.11278843134641647,
0.31497952342033386,
0.16909998655319214,
-0.4170018434524536,
-0.271828293800354,
0.11065250635147095,
0.038229554891586304,
0.05044475570321083,
0.2552042305469513,
0.06660756468772888,
0.13420750200748444,
0.17005914449691772,
-0.0500863641500473,
-0.09970859438180923,
-0.4665152430534363,
-0.2023462951183319,
-0.05613462254405022,
-0.0590185821056366,
-0.08858850598335266,
0.02275143563747406,
0.45710113644599915,
-0.015280738472938538,
-0.3111625909805298,
-0.13169395923614502,
-0.029484953731298447,
0.05684671923518181,
-0.0687907487154007,
-0.055325739085674286,
-0.0011322107166051865,
-0.12732820212841034,
0.45342856645584106,
-0.14708484709262848,
0.018557310104370117,
-0.07332917302846909,
-0.10689664632081985,
-0.0800817683339119,
-0.07405821979045868,
0.0727352425456047,
-0.0007409974932670593,
0.444389283657074,
0.4343411326408386,
-0.11966110020875931,
-0.3397579491138458,
-0.4548965096473694,
0.10868603736162186,
0.2950422167778015,
0.16774874925613403,
0.24021406471729279,
-0.3612695336341858,
-0.26601147651672363,
-0.13272331655025482,
-0.12809185683727264,
-0.03076336160302162,
-0.11443831026554108,
0.18075720965862274,
0.20444832742214203,
-0.008376140147447586,
-0.34245964884757996,
-0.15213580429553986,
0.037233784794807434,
0.24487657845020294,
-0.040991634130477905,
0.12395946681499481,
0.18266059458255768,
0.04408688843250275,
-0.18474183976650238,
0.5197099447250366,
0.019185122102499008,
-0.11098071932792664,
0.1982564926147461,
0.3092305362224579,
-0.015900854021310806,
-0.06339572370052338,
0.12131114304065704,
0.29988476634025574,
0.48536232113838196,
-0.08974992483854294,
0.10925240069627762,
-0.27700671553611755,
-0.025710299611091614,
-0.0954570397734642,
-0.19178098440170288,
0.02361997961997986,
0.186128631234169,
0.11553734540939331,
-0.2611899673938751,
-0.11964065581560135,
0.022084040567278862,
0.20112863183021545,
-0.1726161539554596,
-0.03607189282774925,
-0.07110048830509186,
0.24653856456279755,
0.411880761384964,
0.06728096306324005,
-0.10399577021598816,
0.3385368585586548,
0.03798151761293411,
-0.3380328416824341,
0.10615910589694977,
0.1020343005657196,
-0.514087975025177,
0.2836023271083832,
-0.006967118009924889,
0.4016207158565521,
-0.01325272023677826,
0.06526698172092438,
0.2741592526435852,
-0.02827032096683979,
-0.08771660178899765,
0.05644889920949936,
-0.13356292247772217,
0.27078932523727417,
0.06273240596055984,
0.04391421377658844,
0.03814183920621872,
0.11986089497804642,
0.143442302942276,
0.016062762588262558,
0.023930685594677925,
-0.04582923650741577,
-0.28454792499542236,
-0.10334198921918869,
0.21235880255699158,
-0.1288752257823944,
-0.2173858880996704,
-0.5689045190811157,
-0.47727417945861816,
-0.2290361523628235,
0.05981045961380005,
-0.09016276895999908,
-0.1786348968744278,
0.21626172959804535,
0.06455469131469727,
0.39082759618759155,
-0.2997991144657135,
-0.23198683559894562,
0.18352892994880676,
-0.13455316424369812,
0.15503838658332825,
-0.11985483765602112,
0.1175876259803772,
-0.14755724370479584,
0.39827629923820496,
-0.12886719405651093,
0.1292862594127655,
-0.2389439344406128,
-0.5371052026748657,
0.0983879566192627,
-0.45177704095840454,
0.19089607894420624,
0.25766706466674805,
-0.15020973980426788,
0.31114327907562256,
-0.2268034815788269,
0.11209874600172043,
0.1109326183795929,
0.06715936958789825,
-0.29972344636917114,
-0.1118493527173996,
0.036701127886772156,
-0.3677361011505127,
0.0979168713092804,
-0.3780786097049713,
-0.15535786747932434,
0.32918673753738403,
0.14685052633285522,
0.041379958391189575,
0.3024628460407257,
-0.2576718032360077,
0.07374601811170578,
-0.011480804532766342,
-0.00005026068538427353,
-0.053008243441581726,
-0.5784041881561279,
0.458269864320755,
-0.05256760120391846,
0.025583550333976746,
0.19267410039901733,
-0.10103306919336319,
-0.05182978883385658,
-0.04188602417707443,
-0.08084967732429504,
-0.42025160789489746,
0.04692155867815018,
0.020552780479192734,
0.39033928513526917,
0.3359692692756653,
0.11724302172660828,
0.03683776408433914,
0.1378154158592224,
-0.15178701281547546,
-0.35587278008461,
0.1650109589099884,
0.021025754511356354,
0.2545068860054016,
-0.1433812379837036,
0.1291760504245758,
-0.23918479681015015,
0.5956511497497559,
0.20058923959732056,
-0.29299744963645935,
0.12093432247638702,
0.24846313893795013,
0.250430703163147,
0.23337677121162415,
0.07730002701282501,
0.11277202516794205,
0.09802437573671341,
0.15412388741970062,
0.1273019164800644,
0.2796022593975067,
0.37402135133743286,
0.07685629278421402,
0.1701912134885788,
0.0721966102719307,
0.018461275845766068,
-0.09980836510658264,
0.14759384095668793,
0.2638201117515564,
-0.23367145657539368,
-0.2543121576309204,
-0.43654078245162964,
0.06653933972120285,
-0.10360419750213623,
0.20301926136016846,
0.2736344635486603,
0.2449997067451477,
-0.6622620224952698,
-0.03446832671761513,
-0.4082282483577728,
0.15907692909240723,
0.2376982569694519,
-0.2505781948566437,
0.038849059492349625,
-0.11294690519571304,
0.009255141019821167,
-0.005698822904378176,
0.293549120426178,
-0.4202447831630707,
-0.3173518180847168,
-0.07157166302204132,
0.09306895732879639,
-0.1117161214351654,
0.07099191844463348,
0.009169023483991623,
-0.360517293214798,
0.23940880596637726,
0.3792356252670288,
-0.5476182699203491,
0.010341412387788296,
0.2760303020477295,
0.06576041877269745,
-0.1663583219051361,
-0.21203793585300446,
-0.25183919072151184,
-0.44347554445266724,
-0.21461549401283264,
-0.11898723989725113,
0.12500931322574615,
-0.08635412901639938,
0.12713667750358582,
0.007124956697225571,
0.021521633490920067,
0.03151810169219971,
0.31754982471466064,
0.18921303749084473,
-0.031418658792972565,
0.5588921308517456,
0.2225305140018463,
0.4542623460292816,
0.0002593696117401123,
0.4915839433670044,
0.5206645131111145,
-0.38721558451652527,
-0.4062045216560364,
-0.24546682834625244,
-0.29102009534835815,
0.45262858271598816,
-0.03655292093753815,
0.30537381768226624,
0.09812439233064651,
0.13469254970550537,
0.030501745641231537,
-0.5840026140213013,
0.37807267904281616,
0.10971633344888687,
0.10457265377044678,
-0.2726254463195801,
-0.4577993154525757,
0.6577792167663574,
0.15906934440135956,
-0.1287039816379547,
-0.09586124122142792,
0.5477831959724426,
-0.22541813552379608,
-0.11270095407962799,
0.3520126938819885,
0.9328476190567017,
-0.3369615077972412,
0.3329704999923706,
0.039605189114809036,
0.16366024315357208,
1.0672818422317505,
-0.05869549512863159,
-0.29480206966400146,
-0.004751995205879211,
-0.1631884127855301,
-0.10152598470449448,
-0.08415868878364563,
-0.10891629010438919,
-0.02170373499393463,
-0.0522611029446125,
0.23869608342647552,
-0.17111021280288696,
-0.012416217476129532,
-0.0560389906167984,
-0.004627708345651627,
0.2183501124382019,
-0.3940483629703522,
-0.015615399926900864,
0.00401831790804863,
-0.2048398107290268,
0.004700891673564911,
-0.1885083019733429,
-0.1357962042093277,
-0.13536740839481354,
0.2488987296819687,
-0.14082223176956177,
-0.13610555231571198,
0.0379498153924942,
-0.4584200978279114,
0.011207496747374535,
-0.03354625031352043,
0.1570051908493042,
-0.11232668161392212,
0.826219916343689,
0.00039753690361976624,
-0.03350185602903366,
0.07157061249017715,
-0.3101944923400879,
0.09361772984266281,
-0.1765088140964508,
-0.18857690691947937,
0.12254532426595688,
0.10455166548490524,
-0.2536046802997589,
-0.005494043231010437,
0.27259209752082825,
-0.2227247804403305,
-0.358573317527771,
-0.3212805986404419,
0.1308986097574234,
-0.18874232470989227,
0.294866681098938,
0.4917619228363037,
0.14913013577461243,
-0.13575100898742676,
-0.004758801311254501,
0.2458881139755249,
-0.17230595648288727,
-0.12698587775230408,
-0.35955843329429626,
0.11884243786334991,
-0.28463834524154663,
-0.10149606317281723,
-0.14057454466819763,
-0.08049092441797256,
-0.057929180562496185,
0.13597962260246277,
-0.04351018741726875,
0.05165816843509674,
-0.18618786334991455,
0.0736512690782547,
-0.2694043815135956,
-0.17476829886436462,
0.26899224519729614,
-0.5190672874450684,
-0.400407075881958,
0.3233264982700348,
0.42027682065963745,
-0.3643454909324646,
0.15727071464061737,
0.11661569774150848,
-0.505347728729248,
0.1381153017282486,
-0.03810436651110649,
0.25238996744155884,
-0.05779995396733284,
0.3598189651966095,
-0.09195662289857864,
0.24552913010120392,
-0.16347742080688477,
-0.14315615594387054,
-0.07219215482473373,
-0.03010401874780655,
0.22069929540157318,
0.05804559588432312,
0.21573510766029358,
-0.12997716665267944,
-0.12381818145513535,
0.011189620941877365,
-0.04681010544300079,
0.05071807652711868,
-0.4097668528556824,
0.22299149632453918,
0.30417490005493164,
-0.4157530665397644,
0.16928409039974213,
0.04944946616888046,
0.09942664206027985,
-0.15156973898410797,
0.27936479449272156,
-0.07604845613241196,
0.05898856371641159,
0.33521926403045654,
-0.14188449084758759,
0.33817732334136963,
-0.03129115328192711,
0.24997490644454956,
0.3630746304988861,
0.28934699296951294,
0.295531302690506,
-0.01610109955072403,
-0.03338371962308884,
-0.1171477660536766,
-0.14406000077724457,
0.20449259877204895,
0.23528003692626953,
-0.09276209026575089,
0.22598972916603088,
-0.014682568609714508,
0.06246493384242058,
0.3354090452194214,
0.28517234325408936,
0.12158587574958801,
-0.1429925560951233,
0.08992128074169159,
0.2511618137359619,
0.0925043448805809,
0.0040505677461624146,
-0.20709216594696045,
-0.00636933371424675,
0.048639532178640366,
0.1939464956521988,
0.42549610137939453,
0.21371713280677795,
0.3945174515247345,
0.033170148730278015,
-0.059163209050893784,
0.26722925901412964,
0.13203519582748413,
0.11062481999397278,
0.054366759955883026,
-0.05696781352162361,
0.1894160509109497,
0.45791828632354736,
0.4162216782569885,
0.01691698282957077,
0.028957584872841835,
0.11810135841369629,
0.5321840047836304,
0.03212626278400421,
-0.07325170934200287,
0.17087070643901825,
0.05148717388510704,
0.1962752789258957,
0.2941993474960327,
0.24534784257411957,
0.10550018399953842,
0.006978139281272888,
0.09405060112476349,
-0.3743759095668793,
-0.19302590191364288,
-0.08295755833387375,
0.3710644841194153,
0.19645673036575317,
-0.33202335238456726,
-0.32837727665901184,
0.09033837169408798,
0.04679061472415924,
-0.13403427600860596,
0.03571359068155289,
-0.7238033413887024,
0.299156129360199,
-0.0731353908777237,
0.2032059133052826,
-0.46463051438331604,
-0.5324655175209045,
0.27313897013664246,
0.30427202582359314,
0.06627883017063141,
0.20492994785308838,
0.43835049867630005,
-0.14783619344234467,
0.17832280695438385,
0.20215684175491333,
0.12018468976020813,
-0.22249352931976318,
0.04035676270723343,
0.43744704127311707,
-0.30011051893234253,
0.14112770557403564,
0.054957278072834015,
0.016052808612585068,
-0.23832103610038757,
0.0554359033703804,
0.20087413489818573,
0.015481214970350266,
0.004168353043496609,
-0.18839894235134125,
-0.31389784812927246,
0.08327455818653107,
-0.2254645824432373,
0.47694411873817444,
-0.33059102296829224,
-0.15978917479515076,
-0.08898540586233139,
0.31598684191703796,
-0.31122884154319763,
0.4488585889339447,
0.3846326470375061,
-0.021662872284650803,
-0.07562215626239777,
-0.12486211955547333,
-0.026431916281580925,
-0.044376980513334274,
0.2965543568134308,
0.35790228843688965,
0.3324429988861084,
-0.24247705936431885,
0.026712417602539062,
-0.3693449795246124,
0.054141443222761154,
-0.054358888417482376,
-0.5596659183502197,
-0.11143331229686737,
-0.2042160928249359,
0.3585691452026367,
-0.12406769394874573,
-0.04004621505737305,
-0.22234906256198883,
-0.0023260917514562607,
-0.26036694645881653,
-0.16781093180179596,
0.012216411530971527,
-0.3369865417480469,
0.2500517666339874,
0.1526576727628708,
0.13169023394584656,
-0.15198688209056854,
0.34554675221443176,
-0.14870628714561462,
-0.018266018480062485,
0.29302868247032166,
-0.1870584785938263,
-0.027934879064559937,
0.1037207692861557,
-0.032894767820835114,
0.47645479440689087,
0.08200599253177643,
-0.2617826461791992,
-0.016556400805711746,
-0.03364070877432823,
-0.39327359199523926,
-0.06214527040719986,
-0.37209320068359375,
0.24552446603775024,
-0.27710720896720886,
0.02737969532608986,
-0.2961142063140869,
0.10161983221769333,
0.10161431133747101,
0.0018554541748017073,
-0.34152355790138245,
0.4706750214099884,
-0.2211703658103943,
-0.27264222502708435,
0.5616233944892883,
0.28817132115364075,
0.10162241756916046,
0.08802972733974457,
-0.07395265996456146,
-0.08888870477676392,
0.3690785765647888,
-0.10024739801883698,
-0.06979066133499146,
0.046250469982624054,
0.18827933073043823,
0.3721483647823334,
-0.09268438816070557,
-0.8369203209877014,
0.2698467969894409,
0.30960699915885925,
0.07609660923480988,
-0.5116295218467712,
0.25012844800949097,
-0.05001113936305046,
-0.38553422689437866,
-0.05976489931344986,
0.3162655830383301,
-0.22294670343399048,
-0.042321838438510895,
0.02615157887339592,
-0.1755763441324234
] |
https://github.com/huggingface/datasets/issues/721 | feat(dl_manager): add support for ftp downloads | We only support http by default for downloading.
If you really need to use ftp, then feel free to use a library that allows to download through ftp in your dataset script (I see that you've started working on #722 , that's awesome !). The users will get a message to install the extra library when they load the dataset.
To make the download_manager work with a custom downloader, you can call `download_manager.download_custom` instead of `download_manager.download_and_extract`. The expected arguments are the following:
```
url_or_urls: url or `list`/`dict` of urls to download and extract. Each
url is a `str`.
custom_download: Callable with signature (src_url: str, dst_path: str) -> Any
as for example `tf.io.gfile.copy`, that lets you download from google storage
```
| I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
| 120 | feat(dl_manager): add support for ftp downloads
I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
We only support http by default for downloading.
If you really need to use ftp, then feel free to use a library that allows to download through ftp in your dataset script (I see that you've started working on #722 , that's awesome !). The users will get a message to install the extra library when they load the dataset.
To make the download_manager work with a custom downloader, you can call `download_manager.download_custom` instead of `download_manager.download_and_extract`. The expected arguments are the following:
```
url_or_urls: url or `list`/`dict` of urls to download and extract. Each
url is a `str`.
custom_download: Callable with signature (src_url: str, dst_path: str) -> Any
as for example `tf.io.gfile.copy`, that lets you download from google storage
```
| [
-0.27778035402297974,
0.0965271145105362,
-0.02943287417292595,
0.28272587060928345,
-0.04885689169168472,
0.06269551068544388,
-0.21937058866024017,
0.4863719046115875,
0.2671806216239929,
0.004616722464561462,
-0.06453939527273178,
0.1767718642950058,
-0.1338641196489334,
0.027690650895237923,
0.18338122963905334,
-0.30530601739883423,
-0.25517943501472473,
0.11107954382896423,
0.083218514919281,
0.1619187742471695,
-0.3100487291812897,
0.2241031974554062,
0.12741394340991974,
0.024796921759843826,
0.10581401735544205,
-0.001697484403848648,
-0.03351081907749176,
0.20098423957824707,
-0.3600773513317108,
-0.5725449919700623,
0.15960393846035004,
0.1998821496963501,
0.5002799034118652,
0.3012336492538452,
-0.00011552820797078311,
-0.02733122929930687,
0.27715596556663513,
-0.0509038120508194,
-0.1939810812473297,
-0.4507174491882324,
-0.5581096410751343,
-0.390163391828537,
0.17609582841396332,
-0.08189809322357178,
0.14344072341918945,
-0.3247944414615631,
-0.06569471955299377,
0.15042540431022644,
0.1654934585094452,
0.49374786019325256,
0.21380609273910522,
0.2187069058418274,
0.09424799680709839,
-0.19922485947608948,
0.38226693868637085,
0.025825899094343185,
-0.019018135964870453,
0.21360252797603607,
0.2988851070404053,
-0.07952231168746948,
-0.012783043086528778,
-0.29192376136779785,
-0.16559061408042908,
0.2839195430278778,
0.365336537361145,
0.16972759366035461,
0.10200128704309464,
-0.47257086634635925,
-0.34831416606903076,
0.22499999403953552,
0.6980261206626892,
-0.04268765449523926,
-0.1774829626083374,
-0.09822650253772736,
-0.10842011868953705,
-0.048581406474113464,
0.16376549005508423,
0.025220058858394623,
-0.3847963213920593,
0.19302447140216827,
0.13494473695755005,
-0.22617019712924957,
-0.26534146070480347,
0.3329017162322998,
-0.15448801219463348,
0.48165449500083923,
0.008816257119178772,
-0.12438452988862991,
0.34093666076660156,
0.2407480776309967,
-0.17314741015434265,
-0.17589180171489716,
0.09565205872058868,
0.027654316276311874,
0.2391529232263565,
-0.08969777077436447,
0.12198077887296677,
-0.3390657305717468,
-0.04564289003610611,
0.3806220293045044,
0.0886814072728157,
-0.06349475681781769,
-0.12677542865276337,
0.2225988805294037,
0.0764586329460144,
0.2798479497432709,
-0.12933701276779175,
0.013224220834672451,
0.4056568741798401,
0.3186863362789154,
0.24505871534347534,
0.02592172846198082,
-0.12333643436431885,
-0.10672556608915329,
-0.3545544445514679,
0.07774467766284943,
0.2355567067861557,
-0.12321153283119202,
-0.12069748342037201,
-0.050187066197395325,
-0.12139462679624557,
-0.21511605381965637,
-0.06603898108005524,
0.1542128622531891,
-0.14931492507457733,
0.1724776327610016,
0.028638020157814026,
0.17300066351890564,
0.16123434901237488,
-0.3008626103401184,
0.011984791606664658,
0.008458617143332958,
-0.04744032397866249,
-0.1504228264093399,
0.21764172613620758,
0.13903430104255676,
-0.08041104674339294,
-0.18650735914707184,
0.02794869989156723,
0.17992578446865082,
-0.003373434767127037,
0.004338162951171398,
0.12901073694229126,
0.32573023438453674,
0.030878085643053055,
0.21701183915138245,
0.021064061671495438,
-0.2257750779390335,
-0.2357032299041748,
0.2544206976890564,
-0.03455822914838791,
-0.3946988880634308,
-0.3626575171947479,
0.15627197921276093,
-0.2903933525085449,
-0.4475146234035492,
-0.32034116983413696,
0.17469274997711182,
-0.33128294348716736,
-0.21360130608081818,
-0.12303108721971512,
0.08428364992141724,
-0.23286445438861847,
-0.1956680566072464,
0.14409568905830383,
0.45525920391082764,
-0.4922562539577484,
0.06059417128562927,
-0.3768831491470337,
-0.3115021586418152,
0.4496420621871948,
0.05029433220624924,
-0.12409261614084244,
0.3914756774902344,
-0.3554270267486572,
0.4173653721809387,
0.8397287726402283,
-0.4267207086086273,
-0.3148740231990814,
0.6333289742469788,
-0.2937241792678833,
0.11367896944284439,
0.22457167506217957,
-0.05148906260728836,
0.41697007417678833,
-0.28575196862220764,
-0.6332722902297974,
0.5020348429679871,
-0.0726742222905159,
0.009058786556124687,
-0.2345494031906128,
-0.19966240227222443,
0.2574516534805298,
0.05359518900513649,
0.2425491064786911,
0.3365592360496521,
0.3952038884162903,
-0.04293307289481163,
0.33536651730537415,
0.3670588731765747,
0.24715499579906464,
0.06266911327838898,
0.2879795432090759,
0.2796066403388977,
-0.13491591811180115,
-0.24561277031898499,
-0.26292428374290466,
0.16510698199272156,
0.08620232343673706,
0.16970105469226837,
-0.18562068045139313,
0.15979810059070587,
-0.2809394299983978,
-0.060489825904369354,
-0.2156410664319992,
-0.01576504111289978,
0.00510595366358757,
0.1655585765838623,
0.22907009720802307,
0.023607246577739716,
-0.10314047336578369,
0.11362113803625107,
0.28757721185684204,
0.3073851466178894,
0.11150768399238586,
0.1563326120376587,
-0.17248626053333282,
0.03954680636525154,
0.020486369729042053,
-0.045760445296764374,
0.26298218965530396,
-0.34869638085365295,
-0.15859761834144592,
0.133584126830101,
-0.12390361726284027,
0.04646173119544983,
0.3054710626602173,
0.19617655873298645,
0.26010164618492126,
0.12003079056739807,
0.0739791989326477,
0.4652782678604126,
0.22843405604362488,
-0.07918752729892731,
-0.006110183894634247,
-0.04671575129032135,
0.32042431831359863,
0.2881265878677368,
0.033657506108284,
0.19741667807102203,
0.221295565366745,
-0.10614793002605438,
0.09183578193187714,
-0.17736802995204926,
0.0986495390534401,
-0.09850485622882843,
-0.17904168367385864,
-0.221284419298172,
-0.09278786182403564,
0.14023663103580475,
-0.04921336844563484,
-0.05030733346939087,
0.12862060964107513,
0.3818587064743042,
0.11583875119686127,
-0.005042450502514839,
0.08360607922077179,
0.8543782830238342,
0.37568220496177673,
0.18359346687793732,
0.3064015805721283,
0.10882975161075592,
0.10277283191680908,
-0.2426903247833252,
0.2653561532497406,
0.11984068155288696,
-0.39555487036705017,
0.36788874864578247,
-0.02572767250239849,
0.16172152757644653,
0.032003045082092285,
-0.22433242201805115,
0.1551390290260315,
0.3608129322528839,
-0.22795246541500092,
-0.026659583672881126,
-0.6431183218955994,
-0.5907305479049683,
-0.13130046427249908,
-0.19268502295017242,
-0.12723983824253082,
-0.4519248604774475,
-0.11678639054298401,
0.3211921751499176,
-0.10446223616600037,
0.0826621949672699,
-0.2848479449748993,
-0.0026742517948150635,
-0.2534918785095215,
-0.39953356981277466,
-0.2082609087228775,
0.17071814835071564,
-0.19236859679222107,
0.0894375592470169,
0.32110869884490967,
-0.06626398861408234,
0.38923507928848267,
-0.005579259246587753,
0.12555339932441711,
-0.5770405530929565,
0.015335388481616974,
0.23871789872646332,
-0.10648058354854584,
-0.06641720235347748,
0.21901676058769226,
0.026539355516433716,
0.3372538685798645,
-0.04938916116952896,
0.20743554830551147,
-0.10615126043558121,
-0.12363383919000626,
-0.17369499802589417,
0.14226002991199493,
-0.00821202527731657,
-0.17903798818588257,
-0.22496932744979858,
-0.3690970242023468,
-0.6310892105102539,
0.11115250736474991,
0.16601531207561493,
0.16257506608963013,
-0.01754392310976982,
-0.20384109020233154,
0.2674897313117981,
-0.20530055463314056,
-0.11855100095272064,
0.0029460913501679897,
-0.16171154379844666,
0.46829694509506226,
-0.31756478548049927,
-0.37876084446907043,
0.22519758343696594,
0.045515790581703186,
-0.13627122342586517,
0.12560689449310303,
-0.35362333059310913,
-0.2745188772678375,
-0.07916015386581421,
0.307217001914978,
-0.12621329724788666,
0.2914074957370758,
0.24168723821640015,
-0.028819622471928596,
-0.04624231532216072,
0.06062322109937668,
-0.0025998950004577637,
-0.0029891356825828552,
0.47937262058258057,
0.33094003796577454,
0.23386257886886597,
0.3097509741783142,
-0.03181065246462822,
0.6106976270675659,
-0.0915335863828659,
0.21768468618392944,
0.5523760318756104,
-0.09162083268165588,
0.16540390253067017,
0.18038108944892883,
-0.2383645623922348,
0.07473286241292953,
-0.11047378182411194,
0.09822125732898712,
0.26610705256462097,
-0.07202824205160141,
-0.042802028357982635,
-0.36150360107421875,
-0.027491774410009384,
-0.11119016259908676,
-0.2581683397293091,
0.02292517013847828,
0.038550473749637604,
0.006744958460330963,
0.04586319252848625,
-0.004321347922086716,
-0.00096881203353405,
-0.17121490836143494,
0.19320590794086456,
0.541593074798584,
0.02810787409543991,
0.13654725253582,
0.34917765855789185,
0.37138769030570984,
-0.5879130363464355,
0.2287246584892273,
0.2666149139404297,
0.09692443907260895,
0.011494744569063187,
-0.08242686837911606,
0.11887083947658539,
0.05484256520867348,
0.6556656360626221,
-0.13533054292201996,
0.09865187853574753,
0.06662426888942719,
-0.2603302001953125,
0.08212535828351974,
-0.14524738490581512,
-0.16618160903453827,
-0.07885631918907166,
-0.15447324514389038,
-0.21952924132347107,
-0.10112883150577545,
-0.328396737575531,
0.18701839447021484,
0.06213624030351639,
-0.09387458860874176,
-0.24542388319969177,
0.033694762736558914,
-0.2624850869178772,
-0.4092605412006378,
-0.28157609701156616,
-0.010414643213152885,
0.05590469017624855,
0.27748337388038635,
0.11037178337574005,
0.13339650630950928,
0.0068075992166996,
0.13351856172084808,
-0.1390010118484497,
-0.0577399879693985,
-0.008512533269822598,
0.014114052057266235,
0.08224624395370483,
-0.012830682098865509,
0.12266150116920471,
0.3396206498146057,
-0.18215321004390717,
-0.348829060792923,
-0.03303302079439163,
-0.0441381074488163,
0.3317432403564453,
0.2396525740623474,
-0.13921217620372772,
-0.09718739241361618,
-0.24282896518707275,
0.2821041941642761,
-0.29545649886131287,
0.11419142037630081,
0.44726064801216125,
-0.34218353033065796,
-0.12526345252990723,
-0.37337782979011536,
0.4161621332168579,
-0.11712081730365753,
-0.06475546956062317,
0.17925281822681427,
0.10773897171020508,
-0.13468146324157715,
-0.13543331623077393,
-0.23189523816108704,
0.8524116277694702,
0.07523827254772186,
0.205820232629776,
0.32937437295913696,
-0.29379692673683167,
0.4327651858329773,
-0.3588067889213562,
0.11332704871892929,
-0.1409437656402588,
0.17738713324069977,
-0.2753988206386566,
0.009664606302976608,
-0.0011532530188560486,
0.138869509100914,
-0.18965420126914978,
0.37988558411598206,
0.031332045793533325,
0.07575695961713791,
0.23024922609329224,
0.4625847339630127,
0.05131460726261139,
-0.28040632605552673,
-0.004331175237894058,
0.18915364146232605,
-0.2375764101743698,
0.40090012550354004,
-0.15361598134040833,
-0.3216964602470398,
-0.05609770119190216,
-0.16542375087738037,
-0.3222966492176056,
0.12487740069627762,
-0.3765675127506256,
0.1581711322069168,
-0.09717857837677002,
-0.2147281914949417,
0.1250220537185669,
-0.09151951968669891,
-0.44606471061706543,
-0.2091536670923233,
-0.19025887548923492,
-0.17786036431789398,
-0.22559919953346252,
-0.06319547444581985,
-0.03311172500252724,
0.11583763360977173,
0.21468223631381989,
-0.22994273900985718,
0.02336842566728592,
-0.10447623580694199,
-0.020735710859298706,
-0.3708561062812805,
0.3247356116771698,
0.19279465079307556,
0.07210039347410202,
0.016015062108635902,
-0.22426770627498627,
-0.08097052574157715,
-0.15101569890975952,
-0.17252694070339203,
0.10216259956359863,
0.020858317613601685,
-0.30765050649642944,
0.07507873326539993,
-0.10990495979785919,
-0.11600267142057419,
-0.10936446487903595,
0.316215842962265,
-0.3857372999191284,
-0.03821451961994171,
0.19016939401626587,
0.1664547473192215,
-0.2660350799560547,
-0.17146319150924683,
0.07817801088094711,
-0.30980613827705383,
-0.2643668055534363,
0.24153214693069458,
-0.07494226098060608,
-0.08004715293645859,
0.064437635242939,
0.5078141093254089,
0.2872806191444397,
-0.1613527536392212,
-0.17035579681396484,
-0.41315630078315735,
-0.0904969573020935,
-0.20931343734264374,
-0.13045473396778107,
-0.008873950690031052,
-0.3474535644054413,
0.14259228110313416,
0.27958717942237854,
-0.2597789168357849,
-0.2710267901420593,
0.1126306876540184,
0.08469586819410324,
-0.11833490431308746,
0.6158231496810913,
0.19409283995628357,
0.3525826930999756,
0.10517030954360962,
-0.018004029989242554,
0.08927488327026367,
-0.3229302763938904,
-0.08694429695606232,
-0.2921779155731201,
0.18670159578323364,
0.1633133888244629,
-0.21848107874393463,
0.13127906620502472,
-0.17734825611114502,
-0.2802204191684723,
0.15316592156887054,
-0.09026724100112915,
0.10982390493154526,
-0.05826294422149658,
0.10608258843421936,
0.2737480700016022,
-0.22359827160835266,
-0.12542977929115295,
0.3725328743457794,
0.1564980447292328,
0.6829891800880432,
-0.11201204359531403,
0.0962001234292984,
-0.1482328176498413,
0.014458522200584412,
0.07130037248134613,
-0.03297466039657593,
0.07315443456172943,
-0.13839805126190186,
0.5538969039916992,
-0.004899144172668457,
0.09727714955806732,
0.45847123861312866,
0.4045279026031494,
0.3837922513484955,
0.20669737458229065,
-0.0172288715839386,
0.41550689935684204,
0.07795101404190063,
-0.2180010825395584,
-0.199503555893898,
0.21274282038211823,
0.23976372182369232,
0.031616177409887314,
0.28691431879997253,
0.039141420274972916,
-0.06660233438014984,
-0.07692161202430725,
-0.09467452019453049,
0.41009464859962463,
0.18496793508529663,
-0.024568168446421623,
0.32541584968566895,
-0.08838807791471481,
0.26181408762931824,
0.17319807410240173,
0.33118459582328796,
0.23102477192878723,
0.12463594228029251,
-0.2521331310272217,
0.09381476044654846,
0.08034096658229828,
-0.004157256335020065,
0.09591634571552277,
-0.46353885531425476,
0.14096389710903168,
-0.05776245892047882,
0.13502489030361176,
0.04036550968885422,
0.14228913187980652,
0.3913535177707672,
-0.32919788360595703,
-0.028201065957546234,
-0.18395060300827026,
0.3366113007068634,
0.12613895535469055,
0.2924504280090332,
0.1812869757413864,
-0.027679290622472763,
-0.5020226240158081,
0.024705342948436737,
0.03703230246901512,
-0.20990486443042755,
-0.017528779804706573,
0.17423149943351746,
0.1238444447517395,
-0.15360036492347717,
-0.24064913392066956,
-0.3937409818172455,
0.00873904675245285,
-0.38749366998672485,
-0.12055880576372147,
-0.028266265988349915,
-0.2779153287410736,
0.036562904715538025,
0.1705743670463562,
0.347554475069046,
0.237667053937912,
-0.07244192063808441,
-0.18631136417388916,
-0.353512167930603,
0.10919433832168579,
-0.14767979085445404,
0.29193314909935,
0.16346809267997742,
0.19494783878326416,
0.30430471897125244,
-0.007509716786444187,
-0.120673269033432,
0.002449583262205124,
0.047320734709501266,
-0.2435740828514099,
-0.06343147158622742,
0.8210980892181396,
0.2703956365585327,
0.08823180943727493,
-0.172493115067482,
-0.14397722482681274,
-0.3292524814605713,
0.23245863616466522,
0.21502991020679474,
-0.14794284105300903,
0.11050204187631607,
-0.15740050375461578,
0.045166388154029846,
0.05277354270219803,
0.34056156873703003,
0.46227049827575684,
-0.07016921788454056,
-0.15500593185424805,
-0.02004673331975937,
-0.9037473201751709,
0.10821190476417542,
0.05434354394674301,
-0.16709747910499573,
-0.08086409419775009,
0.03785143792629242,
0.11001631617546082,
0.42623013257980347,
0.1255442500114441,
0.2361949235200882,
0.17140904068946838,
-0.1668516844511032,
-0.06302037835121155,
-0.1099746823310852,
-0.09548431634902954,
0.1355503350496292,
-0.07117276638746262,
-0.10571449995040894,
0.07408783584833145,
-0.41912466287612915,
-0.01960110291838646,
-0.23059506714344025,
-0.2496817409992218,
-0.13248230516910553,
-0.15116512775421143,
0.5930137634277344,
0.06557268649339676,
0.22802165150642395,
-0.0595613569021225,
-0.08243938535451889,
-0.15982331335544586,
0.3103453516960144,
-0.3625291585922241,
0.06815621256828308,
-0.19764216244220734,
0.047532834112644196,
-0.2573741674423218,
0.4077557921409607,
-0.7308893799781799,
0.08160331100225449,
-0.12959140539169312,
0.39093145728111267,
-0.40428316593170166,
-0.08660273253917694,
-0.33707886934280396,
-0.09900292009115219,
0.4670020341873169,
0.10770324617624283,
-0.09466119110584259,
0.1264561414718628,
-0.46655768156051636,
-0.2809145450592041,
0.3255300521850586,
-0.021746095269918442,
-0.19138005375862122,
-0.10353778302669525,
0.09171917289495468,
-0.09336931258440018,
-0.03503242880105972,
-0.26979994773864746,
-0.1936207413673401,
0.1508774310350418,
-0.09020399302244186,
-0.05727387219667435,
-0.0011447863653302193,
-0.2958567142486572,
-0.17923448979854584,
-0.02862638048827648,
0.26026758551597595,
0.08961528539657593,
-0.1344241052865982,
-0.05270266905426979,
0.05098331719636917
] |
https://github.com/huggingface/datasets/issues/721 | feat(dl_manager): add support for ftp downloads | Also maybe it coud be interesting to have a direct support of ftp inside the `datasets` library. Do you know any good libraries that we might consider adding as a (optional ?) dependency ? | I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
| 34 | feat(dl_manager): add support for ftp downloads
I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
Also maybe it coud be interesting to have a direct support of ftp inside the `datasets` library. Do you know any good libraries that we might consider adding as a (optional ?) dependency ? | [
-0.3274756669998169,
0.05987010896205902,
-0.016492934897542,
0.2534114420413971,
-0.08063249289989471,
0.09111251682043076,
-0.38278359174728394,
0.47498199343681335,
0.2600124180316925,
-0.012885406613349915,
0.06837397813796997,
0.09324309974908829,
-0.12189710885286331,
0.06117212772369385,
0.2366616576910019,
-0.27072736620903015,
-0.12496436387300491,
0.16768521070480347,
0.0703384280204773,
0.1570511907339096,
-0.3043116331100464,
0.20582818984985352,
0.11088486015796661,
0.0007481202483177185,
0.013470850884914398,
-0.0703270360827446,
-0.07226783782243729,
0.18349474668502808,
-0.28073379397392273,
-0.4544094502925873,
0.13554026186466217,
0.141567662358284,
0.4248405396938324,
0.2577070891857147,
-0.00012196379975648597,
-0.07643132656812668,
0.2710132598876953,
-0.06494512408971786,
-0.14511483907699585,
-0.42681604623794556,
-0.5726470947265625,
-0.468180388212204,
0.22243815660476685,
-0.0011481791734695435,
0.1972094178199768,
-0.3350037932395935,
-0.07326265424489975,
0.0971461683511734,
0.04421567916870117,
0.45948880910873413,
0.1673590987920761,
0.299213707447052,
0.00935426726937294,
-0.17781537771224976,
0.4375675320625305,
0.023184094578027725,
-0.050449930131435394,
0.15306609869003296,
0.3597560226917267,
-0.14224497973918915,
0.05554431304335594,
-0.3372546434402466,
-0.13556726276874542,
0.17609885334968567,
0.3862239122390747,
0.11030162125825882,
0.08839860558509827,
-0.43886327743530273,
-0.3785875737667084,
0.1965651512145996,
0.8066229224205017,
-0.011375568807125092,
-0.26158303022384644,
-0.11131890118122101,
-0.08730621635913849,
0.01434684731066227,
0.1853111982345581,
0.020266227424144745,
-0.3324306905269623,
0.18311099708080292,
0.11435051262378693,
-0.3629407584667206,
-0.25219452381134033,
0.40063387155532837,
-0.12771031260490417,
0.5490375757217407,
0.11069148033857346,
-0.18256422877311707,
0.2825981378555298,
0.20468483865261078,
-0.16842497885227203,
-0.15670111775398254,
0.0916958749294281,
-0.0014253510162234306,
0.2913456857204437,
-0.1304875612258911,
0.10808704793453217,
-0.26348206400871277,
-0.017448708415031433,
0.33015668392181396,
0.02431635931134224,
-0.023824278265237808,
-0.21866679191589355,
0.22811603546142578,
0.046055831015110016,
0.22991794347763062,
-0.1359342336654663,
-0.004733729176223278,
0.5143214464187622,
0.1797381192445755,
0.3002931475639343,
0.0320504792034626,
-0.13946564495563507,
-0.06096220389008522,
-0.4214182198047638,
0.017348550260066986,
0.14759089052677155,
-0.19143041968345642,
-0.11647236347198486,
0.01968511939048767,
-0.1824110746383667,
-0.08918862044811249,
-0.008367461152374744,
0.13190022110939026,
-0.16500145196914673,
0.2644902765750885,
0.03641551733016968,
0.19384093582630157,
0.1065610945224762,
-0.3565620183944702,
0.013021126389503479,
0.020476240664720535,
-0.07043250650167465,
-0.12687894701957703,
0.1904786378145218,
0.1413714736700058,
-0.03394865244626999,
-0.13712449371814728,
0.07033456861972809,
0.21753272414207458,
0.01646721549332142,
0.0222989059984684,
0.07157732546329498,
0.4026205539703369,
-0.05909790098667145,
0.17966188490390778,
-0.00696152076125145,
-0.12256458401679993,
-0.209503635764122,
0.23280364274978638,
-0.01614530384540558,
-0.39327770471572876,
-0.42679327726364136,
0.08023332804441452,
-0.330588161945343,
-0.46700313687324524,
-0.27580201625823975,
0.19198501110076904,
-0.4273515045642853,
-0.3020411729812622,
-0.1257278025150299,
0.10295397788286209,
-0.19072292745113373,
-0.20693834125995636,
0.10161469876766205,
0.38025885820388794,
-0.4875883460044861,
-0.0005753114819526672,
-0.37361598014831543,
-0.28959140181541443,
0.41322198510169983,
0.11408048868179321,
-0.11120253801345825,
0.33590665459632874,
-0.30941706895828247,
0.35465550422668457,
0.8370082974433899,
-0.40167978405952454,
-0.2758084833621979,
0.6220945715904236,
-0.2426195591688156,
0.026704678311944008,
0.1759946644306183,
0.03004620410501957,
0.29868456721305847,
-0.22432810068130493,
-0.6506483554840088,
0.5972318649291992,
-0.06639569997787476,
0.044140055775642395,
-0.16127781569957733,
-0.22667761147022247,
0.3191094398498535,
0.1394778937101364,
0.33169808983802795,
0.2728155851364136,
0.4186464548110962,
-0.023584309965372086,
0.2792360782623291,
0.3195462226867676,
0.19831040501594543,
0.14586462080478668,
0.2886612117290497,
0.3233475089073181,
-0.11754299700260162,
-0.3403543531894684,
-0.2940300405025482,
0.08076362311840057,
0.12186326086521149,
0.14561651647090912,
-0.17838095128536224,
0.1935075968503952,
-0.12254230678081512,
-0.03362255543470383,
-0.06973940134048462,
0.0909016877412796,
-0.07227657735347748,
0.18128132820129395,
0.194288969039917,
0.04148527607321739,
-0.10867373645305634,
0.12853722274303436,
0.29020175337791443,
0.31887611746788025,
0.16509290039539337,
0.24659650027751923,
-0.15223543345928192,
0.0011205822229385376,
0.11219212412834167,
0.061428770422935486,
0.22033867239952087,
-0.3315289318561554,
-0.13517019152641296,
0.09246977418661118,
-0.11073276400566101,
0.09368076175451279,
0.40484699606895447,
0.2875030040740967,
0.3451218008995056,
0.13751456141471863,
0.08385668694972992,
0.42507389187812805,
0.17541441321372986,
-0.09933487325906754,
0.03769790008664131,
-0.014303907752037048,
0.2977043092250824,
0.21790924668312073,
0.05525229126214981,
0.24026480317115784,
0.16474075615406036,
-0.04113292321562767,
0.07233961671590805,
-0.11363986134529114,
0.24512730538845062,
-0.09866142272949219,
-0.15700744092464447,
-0.1735033392906189,
-0.17770817875862122,
0.02586645632982254,
-0.1199384480714798,
-0.07819202542304993,
0.19500160217285156,
0.39214658737182617,
0.1654786467552185,
-0.02447654865682125,
0.20062972605228424,
0.7358019948005676,
0.3375619351863861,
0.22282476723194122,
0.25970062613487244,
-0.004251193255186081,
0.03362201526761055,
-0.24563534557819366,
0.18665194511413574,
0.11492157727479935,
-0.43598130345344543,
0.41353335976600647,
-0.020687656477093697,
0.1957436203956604,
-0.018439853563904762,
-0.15280424058437347,
0.1500847339630127,
0.351928174495697,
-0.11178594827651978,
-0.06419888883829117,
-0.6870812177658081,
-0.6479424238204956,
-0.09838371723890305,
-0.15771043300628662,
-0.28212112188339233,
-0.4398793876171112,
-0.1192174106836319,
0.2665981352329254,
-0.024201227352023125,
0.12084949761629105,
-0.2807171940803528,
0.09263303875923157,
-0.38007187843322754,
-0.44777557253837585,
-0.26743948459625244,
0.18947584927082062,
-0.1792532503604889,
0.03281299024820328,
0.344219833612442,
-0.027735574170947075,
0.42503342032432556,
0.0987619012594223,
0.19177347421646118,
-0.642084002494812,
-0.05506620556116104,
0.18516121804714203,
-0.022698018699884415,
-0.09052269905805588,
0.17841997742652893,
-0.012582480907440186,
0.38206344842910767,
-0.09538806229829788,
0.1900232434272766,
-0.12931221723556519,
-0.11783750355243683,
-0.18796037137508392,
0.08741714805364609,
-0.12124265730381012,
-0.11983315646648407,
-0.09941259771585464,
-0.42182809114456177,
-0.6161509156227112,
0.0773661732673645,
0.12896373867988586,
0.08384677767753601,
0.04945055767893791,
-0.22871644794940948,
0.235248863697052,
-0.19286300241947174,
-0.022456159815192223,
0.09702366590499878,
-0.06979331374168396,
0.4639666974544525,
-0.23835913836956024,
-0.4221671521663666,
0.20200014114379883,
0.0862179696559906,
-0.17414672672748566,
0.20550498366355896,
-0.3952106833457947,
-0.30995744466781616,
-0.1374032199382782,
0.35294273495674133,
-0.1657404750585556,
0.2932450771331787,
0.2597910761833191,
0.00030007120221853256,
0.014257213100790977,
0.015475578606128693,
-0.08740014582872391,
-0.030970625579357147,
0.4773544669151306,
0.3319086730480194,
0.19260179996490479,
0.22893774509429932,
-0.061990223824977875,
0.5613712668418884,
-0.030752582475543022,
0.18980847299098969,
0.5820299386978149,
-0.028863681480288506,
0.17071349918842316,
0.20094789564609528,
-0.2395557314157486,
0.0938970297574997,
-0.05214276909828186,
0.10955657064914703,
0.2972458004951477,
-0.0014328844845294952,
-0.06155893951654434,
-0.4131019413471222,
-0.01584284007549286,
-0.09985111653804779,
-0.14632105827331543,
-0.010816501453518867,
-0.02158764749765396,
0.11617667973041534,
0.008365344256162643,
-0.07094769179821014,
-0.03342405706644058,
-0.1968567967414856,
0.2670751214027405,
0.5796687602996826,
0.009849503636360168,
0.17815248668193817,
0.42226776480674744,
0.2526376247406006,
-0.5315037369728088,
0.19572597742080688,
0.3185513913631439,
0.22803014516830444,
-0.1253429800271988,
-0.0067170895636081696,
0.08334590494632721,
0.09661426395177841,
0.6473724246025085,
-0.20576514303684235,
0.012950550764799118,
-0.023214193060994148,
-0.23330621421337128,
0.13158786296844482,
-0.06925902515649796,
-0.18221193552017212,
-0.07570537179708481,
-0.1233205795288086,
-0.142202228307724,
-0.02063228189945221,
-0.3912431001663208,
0.18177659809589386,
0.000734145229216665,
-0.005239788442850113,
-0.21444794535636902,
0.0324900858104229,
-0.17833822965621948,
-0.300263375043869,
-0.24895384907722473,
-0.05332856625318527,
-0.04237937182188034,
0.3873756527900696,
0.06932447850704193,
0.1101592481136322,
0.004799839109182358,
0.1454617977142334,
-0.13332350552082062,
-0.13177162408828735,
-0.021303335204720497,
-0.024857208132743835,
0.06879124045372009,
0.02372949942946434,
0.16627389192581177,
0.3021893799304962,
-0.20500291883945465,
-0.33805081248283386,
-0.04490112513303757,
0.05231164023280144,
0.4842708706855774,
0.29970890283584595,
-0.09660395979881287,
-0.056652940809726715,
-0.3616671562194824,
0.21375824511051178,
-0.32075193524360657,
0.08232758939266205,
0.48792776465415955,
-0.24299107491970062,
-0.1529640257358551,
-0.2608978748321533,
0.42385366559028625,
-0.013433728367090225,
-0.06326360255479813,
0.2081470489501953,
0.13535919785499573,
-0.11221220344305038,
-0.14049109816551208,
-0.174872487783432,
0.8917750120162964,
0.06033049896359444,
0.23553715646266937,
0.3040161728858948,
-0.27151358127593994,
0.4350164532661438,
-0.34441494941711426,
0.1655256152153015,
-0.1084212064743042,
0.08089899271726608,
-0.3537231683731079,
-0.049186255782842636,
-0.006624601781368256,
0.06309722363948822,
-0.22471915185451508,
0.41551777720451355,
0.1061224639415741,
0.029122373089194298,
0.22510352730751038,
0.5095056295394897,
0.07067359983921051,
-0.24198317527770996,
-0.05230187624692917,
0.12873776257038116,
-0.2999567985534668,
0.42433783411979675,
-0.2171366810798645,
-0.27677422761917114,
-0.06057126820087433,
-0.1455175280570984,
-0.399713933467865,
0.07741722464561462,
-0.357898473739624,
0.1576012820005417,
-0.08019903302192688,
-0.1929139494895935,
0.18942295014858246,
-0.0851844996213913,
-0.4242156744003296,
-0.14465031027793884,
-0.20777836441993713,
-0.17009027302265167,
-0.3140528202056885,
-0.09974196553230286,
-0.02342986688017845,
0.18245342373847961,
0.21663209795951843,
-0.18759989738464355,
0.08057773858308792,
-0.15568813681602478,
-0.04876341670751572,
-0.34963977336883545,
0.3244369626045227,
0.14332160353660583,
0.09865154325962067,
0.0827324166893959,
-0.20163963735103607,
-0.016431652009487152,
-0.12326262891292572,
-0.15910589694976807,
0.05678362026810646,
0.051870789378881454,
-0.13361042737960815,
0.0316610150039196,
-0.0367133803665638,
-0.10218268632888794,
-0.14988255500793457,
0.3496856689453125,
-0.43347927927970886,
-0.026999127119779587,
0.12035290151834488,
0.20295019447803497,
-0.33444643020629883,
-0.1306481808423996,
0.18989568948745728,
-0.3276113271713257,
-0.19845619797706604,
0.21189318597316742,
-0.09692946076393127,
-0.1923661082983017,
-0.031795743852853775,
0.5712576508522034,
0.36826246976852417,
-0.2154656946659088,
-0.2258194386959076,
-0.4168661832809448,
-0.0864836722612381,
-0.06045950949192047,
-0.12164910137653351,
0.04319429770112038,
-0.3707622289657593,
0.0794195830821991,
0.30851054191589355,
-0.25339701771736145,
-0.19132466614246368,
0.08087223023176193,
0.05394545942544937,
-0.10116316378116608,
0.5919692516326904,
0.205412358045578,
0.3187370002269745,
0.09197784960269928,
-0.09245161712169647,
-0.05203801393508911,
-0.3047579228878021,
0.0018519405275583267,
-0.23804126679897308,
0.21103672683238983,
0.20476779341697693,
-0.1962420642375946,
0.18184062838554382,
-0.2734622657299042,
-0.255522221326828,
0.15788201987743378,
-0.13296088576316833,
0.08362478017807007,
-0.07579392194747925,
0.14058369398117065,
0.37001341581344604,
-0.24677255749702454,
-0.08675290644168854,
0.4178486168384552,
0.2024153769016266,
0.6275689005851746,
-0.1459682732820511,
0.07960301637649536,
-0.044005922973155975,
-0.014597214758396149,
0.06051662191748619,
0.02584252506494522,
0.08598724752664566,
-0.20366710424423218,
0.5231630802154541,
0.035040199756622314,
0.0709356963634491,
0.5666952133178711,
0.4435298442840576,
0.37412509322166443,
0.23970992863178253,
0.07410593330860138,
0.46807247400283813,
0.023628292605280876,
-0.2743925154209137,
-0.36098307371139526,
0.1873311847448349,
0.26585444808006287,
-0.012258950620889664,
0.23777525126934052,
0.04191134497523308,
-0.04607555270195007,
0.011087857186794281,
-0.10384172201156616,
0.2900448739528656,
0.19108463823795319,
-0.01349709928035736,
0.28488150238990784,
-0.017285984009504318,
0.1840374916791916,
0.08298441767692566,
0.36645621061325073,
0.18890482187271118,
0.0957408994436264,
-0.1757904589176178,
0.049731433391571045,
0.09195392578840256,
-0.003333795815706253,
0.11162351816892624,
-0.4135982096195221,
0.11317434906959534,
-0.052007704973220825,
0.2789863348007202,
-0.007718190550804138,
0.14296914637088776,
0.487472265958786,
-0.38830095529556274,
-0.11040361225605011,
-0.20310308039188385,
0.2942110598087311,
0.06376111507415771,
0.3726566731929779,
0.26444438099861145,
0.0005417987704277039,
-0.5395000576972961,
0.03171307221055031,
0.009717930108308792,
-0.19334451854228973,
-0.01804482191801071,
0.2489156872034073,
0.24465329945087433,
-0.19770783185958862,
-0.1926325559616089,
-0.3577363193035126,
-0.017684832215309143,
-0.38257157802581787,
-0.06307116150856018,
-0.17179061472415924,
-0.2582589387893677,
0.03500489518046379,
0.2416263371706009,
0.32214540243148804,
0.19534704089164734,
-0.06029626354575157,
-0.2482370138168335,
-0.3852999210357666,
0.13032561540603638,
-0.07474593818187714,
0.3600234091281891,
0.2693943977355957,
0.2696220278739929,
0.2516014575958252,
-0.09166494756937027,
-0.03946346417069435,
0.06597340852022171,
-0.024045448750257492,
-0.3908686637878418,
-0.12670691311359406,
0.8620141744613647,
0.2531178295612335,
0.015693299472332,
-0.2131468951702118,
-0.1203511580824852,
-0.25330036878585815,
0.22964803874492645,
0.17638108134269714,
-0.1708407998085022,
0.02272762730717659,
-0.13612766563892365,
0.002207435667514801,
0.02501715160906315,
0.3607388436794281,
0.5824880599975586,
-0.0028287507593631744,
-0.16608719527721405,
-0.10793561488389969,
-0.802097737789154,
0.13260796666145325,
0.04811931401491165,
-0.12151174247264862,
0.004892317578196526,
-0.10436149686574936,
0.04889954999089241,
0.3867868185043335,
0.10923001170158386,
0.2687336504459381,
0.17519955337047577,
-0.26652100682258606,
-0.1097712367773056,
-0.09436719119548798,
-0.06362339854240417,
0.04007381945848465,
-0.11918865144252777,
-0.02137637510895729,
0.10352714359760284,
-0.39482495188713074,
-0.08992385864257812,
-0.2828960418701172,
-0.2706705331802368,
-0.23468424379825592,
-0.09914031624794006,
0.5682692527770996,
0.0655268058180809,
0.30260908603668213,
-0.030727777630090714,
-0.138757586479187,
-0.11066551506519318,
0.17148621380329132,
-0.3984922468662262,
0.05773099511861801,
-0.24914968013763428,
-0.01793520525097847,
-0.3361109495162964,
0.4585198163986206,
-0.6438982486724854,
0.013450861908495426,
-0.1773311346769333,
0.4412669241428375,
-0.4494837522506714,
-0.10798196494579315,
-0.4080909490585327,
-0.07421419024467468,
0.4904831349849701,
0.15675212442874908,
-0.12055885791778564,
0.07703083753585815,
-0.4493556618690491,
-0.19225941598415375,
0.2789192795753479,
-0.004678402561694384,
-0.07116225361824036,
-0.11124130338430405,
0.08803415298461914,
-0.09422608464956284,
-0.10110677033662796,
-0.25891098380088806,
-0.29886022210121155,
0.1036853939294815,
-0.009999159723520279,
-0.08297836780548096,
0.013897858560085297,
-0.23367401957511902,
-0.20742791891098022,
-0.017991026863455772,
0.32225629687309265,
0.08701105415821075,
-0.14658744633197784,
0.0722435712814331,
0.04001789540052414
] |
https://github.com/huggingface/datasets/issues/721 | feat(dl_manager): add support for ftp downloads | Downloading an `ftp` file is as simple as:
```python
import urllib
urllib.urlretrieve('ftp://server/path/to/file', 'file')
```
I believe this should be supported by the library, as its not using any dependency and is trivial amount of code. | I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
| 35 | feat(dl_manager): add support for ftp downloads
I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
Downloading an `ftp` file is as simple as:
```python
import urllib
urllib.urlretrieve('ftp://server/path/to/file', 'file')
```
I believe this should be supported by the library, as its not using any dependency and is trivial amount of code. | [
-0.2455560714006424,
-0.005682460963726044,
0.011401008814573288,
0.268014520406723,
-0.08103978633880615,
0.05635697394609451,
-0.34725886583328247,
0.4960227310657501,
0.21058440208435059,
0.055927690118551254,
0.005422070622444153,
0.1040768250823021,
-0.1624983847141266,
-0.0003006625920534134,
0.2173730581998825,
-0.3047143816947937,
-0.1787899136543274,
0.16107453405857086,
0.11817609518766403,
0.15649035573005676,
-0.32817795872688293,
0.24679772555828094,
0.09301646053791046,
0.04331976920366287,
0.03688657656311989,
-0.010259309783577919,
-0.018172655254602432,
0.23121127486228943,
-0.3351472318172455,
-0.42142924666404724,
0.11008091270923615,
0.06317117810249329,
0.4437263309955597,
0.1806791126728058,
-0.00012043559399899095,
-0.03273892030119896,
0.26804131269454956,
-0.10026863217353821,
-0.1045106053352356,
-0.47274249792099,
-0.4627041816711426,
-0.42311739921569824,
0.2234623283147812,
-0.07146051526069641,
0.15946650505065918,
-0.24328874051570892,
-0.014007220044732094,
0.20617178082466125,
0.06639184057712555,
0.4829702079296112,
0.17027325928211212,
0.30503422021865845,
0.0770798772573471,
-0.12578393518924713,
0.4577256143093109,
-0.04015011340379715,
-0.05127052590250969,
0.24862352013587952,
0.2742139399051666,
-0.08842403441667557,
0.05822758376598358,
-0.3440453112125397,
-0.14276005327701569,
0.2520890533924103,
0.3116759955883026,
0.16525091230869293,
0.12361571192741394,
-0.40261325240135193,
-0.3681642711162567,
0.19977658987045288,
0.6307548880577087,
-0.00836140662431717,
-0.20142777264118195,
-0.026741385459899902,
-0.10267162322998047,
-0.014560260809957981,
0.1862134337425232,
0.025422649458050728,
-0.3613949716091156,
0.17874038219451904,
0.18567657470703125,
-0.3242504596710205,
-0.25544461607933044,
0.37190157175064087,
-0.1366196870803833,
0.5931146144866943,
0.06586139649152756,
-0.10044192522764206,
0.22259582579135895,
0.23317113518714905,
-0.2562006115913391,
-0.07639215141534805,
0.15337595343589783,
0.05740206316113472,
0.34233802556991577,
-0.08061753213405609,
0.06263171136379242,
-0.3203018307685852,
0.01289457082748413,
0.30635327100753784,
0.10558973252773285,
-0.04805400222539902,
-0.19008862972259521,
0.29835158586502075,
0.05360580235719681,
0.30810004472732544,
-0.17290058732032776,
-0.01869513839483261,
0.5094934701919556,
0.28210484981536865,
0.2624131441116333,
0.05603290721774101,
-0.11785459518432617,
-0.11949967592954636,
-0.4622589945793152,
0.05477901175618172,
0.20144681632518768,
-0.1590370088815689,
-0.12832944095134735,
-0.014557474292814732,
-0.24636754393577576,
-0.09725090861320496,
0.023909900337457657,
0.13936972618103027,
-0.20655733346939087,
0.19068673253059387,
0.12326830625534058,
0.13595613837242126,
0.050521351397037506,
-0.2750123143196106,
0.042015932500362396,
0.0029447823762893677,
-0.001013476401567459,
-0.15532803535461426,
0.1617365926504135,
0.11524559557437897,
-0.006644421257078648,
-0.16657112538814545,
0.06276271492242813,
0.15093819797039032,
0.008692944422364235,
-0.005608897190541029,
0.15146511793136597,
0.3983241021633148,
0.014167588204145432,
0.17282497882843018,
0.012145446613430977,
-0.15984904766082764,
-0.24377015233039856,
0.29627835750579834,
-0.10525912791490555,
-0.38108986616134644,
-0.4174823462963104,
0.08264046162366867,
-0.2794830799102783,
-0.4609338939189911,
-0.232896625995636,
0.17629516124725342,
-0.3809169828891754,
-0.34199923276901245,
-0.10224815458059311,
0.07537683844566345,
-0.23199960589408875,
-0.21292147040367126,
0.16304275393486023,
0.38329917192459106,
-0.35710567235946655,
0.007798373699188232,
-0.2994357943534851,
-0.29835039377212524,
0.507329523563385,
0.11470663547515869,
-0.12107112258672714,
0.3324905037879944,
-0.36708155274391174,
0.4251609444618225,
0.8384565114974976,
-0.362983763217926,
-0.24173089861869812,
0.628835916519165,
-0.287982314825058,
0.05915163457393646,
0.15318529307842255,
-0.014956055209040642,
0.2839210629463196,
-0.23438286781311035,
-0.5873808860778809,
0.5538027882575989,
-0.024218296632170677,
0.07454932481050491,
-0.24597959220409393,
-0.18503178656101227,
0.3185228109359741,
0.05302663519978523,
0.26753294467926025,
0.30872178077697754,
0.42142245173454285,
0.09385012090206146,
0.37574005126953125,
0.3142935335636139,
0.23402979969978333,
0.10250476747751236,
0.3178468346595764,
0.29570022225379944,
-0.09545932710170746,
-0.31329846382141113,
-0.20042982697486877,
0.06923241168260574,
0.026466012001037598,
0.19479775428771973,
-0.15363161265850067,
0.12661434710025787,
-0.16572913527488708,
-0.05946698039770126,
-0.18598459661006927,
0.04332586005330086,
-0.05089633911848068,
0.16628175973892212,
0.179915651679039,
0.10086646676063538,
-0.06856939941644669,
0.0021912474185228348,
0.24498648941516876,
0.3067437410354614,
0.11609721183776855,
0.1882430762052536,
-0.1808425784111023,
0.06400404125452042,
0.0556332990527153,
0.054028842598199844,
0.24095255136489868,
-0.37285515666007996,
-0.11528892070055008,
0.10836447775363922,
-0.07116804271936417,
0.053515393286943436,
0.32899758219718933,
0.2119722068309784,
0.3346289098262787,
0.1550186574459076,
0.02657589688897133,
0.5274911522865295,
0.24974724650382996,
-0.0545666441321373,
0.09589189291000366,
0.0023231133818626404,
0.3467339277267456,
0.244571715593338,
0.08712932467460632,
0.2104831337928772,
0.1962822675704956,
-0.04323795437812805,
0.057976529002189636,
-0.12307804822921753,
0.19696657359600067,
-0.06602290272712708,
-0.236427441239357,
-0.22812296450138092,
-0.19465166330337524,
-0.0071616023778915405,
-0.09654422104358673,
-0.0657774955034256,
0.21632495522499084,
0.41394099593162537,
0.2313462793827057,
-0.012405402027070522,
0.15435239672660828,
0.6730166077613831,
0.2891685962677002,
0.1565619260072708,
0.30788716673851013,
0.1071750670671463,
0.03163217008113861,
-0.25398916006088257,
0.20107868313789368,
0.12313959002494812,
-0.38995790481567383,
0.4704408049583435,
0.02611168473958969,
0.16989123821258545,
-0.03466886654496193,
-0.13930000364780426,
0.14038801193237305,
0.34993427991867065,
-0.14920516312122345,
-0.014742236584424973,
-0.6423721313476562,
-0.6558085680007935,
-0.17479810118675232,
-0.19382260739803314,
-0.24564462900161743,
-0.41198796033859253,
-0.11225447058677673,
0.2524811625480652,
-0.07474322617053986,
0.06463059782981873,
-0.19880416989326477,
-0.0023353248834609985,
-0.28583985567092896,
-0.4750633239746094,
-0.18385916948318481,
0.24376973509788513,
-0.2298300862312317,
0.023696646094322205,
0.3109211027622223,
-0.017771316692233086,
0.3862733542919159,
0.026421217247843742,
0.12829917669296265,
-0.6088419556617737,
-0.1003478392958641,
0.21143312752246857,
-0.06976069509983063,
-0.10352997481822968,
0.1966160535812378,
-0.004156649112701416,
0.35453706979751587,
-0.028951290994882584,
0.24594713747501373,
-0.13864241540431976,
-0.1292087286710739,
-0.17950782179832458,
0.13640587031841278,
-0.036218442022800446,
-0.21451570093631744,
-0.18193218111991882,
-0.403096467256546,
-0.6090560555458069,
0.10088515281677246,
0.1400817632675171,
0.16514703631401062,
0.023395955562591553,
-0.2871914505958557,
0.2522778809070587,
-0.12955665588378906,
-0.04993954300880432,
0.06009481102228165,
-0.006799381226301193,
0.4296649098396301,
-0.32972097396850586,
-0.45472031831741333,
0.2211279273033142,
0.0919661596417427,
-0.15867918729782104,
0.14154614508152008,
-0.3535096049308777,
-0.3210868835449219,
-0.07454568892717361,
0.26270538568496704,
-0.1328366994857788,
0.34817829728126526,
0.2570136487483978,
-0.0688445195555687,
0.027119411155581474,
0.04753953963518143,
-0.08655962347984314,
0.00006545335054397583,
0.5149264931678772,
0.3293811082839966,
0.2759387493133545,
0.28128430247306824,
-0.02237800322473049,
0.5285961031913757,
-0.010355544276535511,
0.2793338894844055,
0.654647946357727,
-0.12722894549369812,
0.14618586003780365,
0.10919258743524551,
-0.14548508822917938,
0.10412729531526566,
-0.10102805495262146,
0.001033073291182518,
0.30671554803848267,
0.001313881017267704,
-0.03670089691877365,
-0.43800851702690125,
-0.07231064140796661,
-0.1485421359539032,
-0.1934870183467865,
-0.0064144134521484375,
0.0628313422203064,
0.0955515056848526,
0.062380317598581314,
-0.08142060041427612,
0.007530650123953819,
-0.19890105724334717,
0.25008517503738403,
0.6497593522071838,
0.040784433484077454,
0.19618599116802216,
0.48385757207870483,
0.21683408319950104,
-0.5869780778884888,
0.22416958212852478,
0.36143213510513306,
0.22932133078575134,
-0.08438491076231003,
-0.07294179499149323,
0.15976020693778992,
0.019655877724289894,
0.5835815072059631,
-0.13550785183906555,
0.08000471442937851,
-0.04791835695505142,
-0.28089213371276855,
0.11806675046682358,
-0.0848710834980011,
-0.14614920318126678,
-0.06910832971334457,
-0.07311174273490906,
-0.16587364673614502,
-0.0676342248916626,
-0.3434213399887085,
0.17166489362716675,
0.0335463248193264,
-0.0832161158323288,
-0.1453421264886856,
-0.0816604271531105,
-0.28731411695480347,
-0.36667874455451965,
-0.3185657560825348,
-0.038261495530605316,
0.05566752329468727,
0.4373842179775238,
0.08629664778709412,
0.11225774884223938,
-0.0060761552304029465,
0.08733708411455154,
-0.12873874604701996,
-0.06765658408403397,
-0.019992895424365997,
-0.09334465861320496,
0.0826147198677063,
0.06000076234340668,
0.05290307104587555,
0.3506920337677002,
-0.21236006915569305,
-0.2946432828903198,
0.011319168843328953,
0.03675812855362892,
0.40464237332344055,
0.27687203884124756,
-0.13026650249958038,
-0.08206155151128769,
-0.2634207606315613,
0.23087403178215027,
-0.32314732670783997,
0.05565532296895981,
0.4918871223926544,
-0.2641444802284241,
-0.10555873811244965,
-0.26066383719444275,
0.4776840806007385,
-0.05602199211716652,
-0.04903658479452133,
0.1593180000782013,
0.12892815470695496,
-0.12479285895824432,
-0.10602373629808426,
-0.20197844505310059,
0.8354325294494629,
0.06498531997203827,
0.260916531085968,
0.3359479308128357,
-0.28690606355667114,
0.36552998423576355,
-0.3152894973754883,
0.18935053050518036,
-0.10615263879299164,
0.21696296334266663,
-0.31543222069740295,
-0.008263815194368362,
-0.02138155698776245,
-0.01814088225364685,
-0.2020680457353592,
0.3630116581916809,
0.026150301098823547,
0.02352241426706314,
0.19126713275909424,
0.5003849864006042,
0.03901711478829384,
-0.18955880403518677,
-0.08443143963813782,
0.1286359280347824,
-0.2541573643684387,
0.47410598397254944,
-0.18474462628364563,
-0.32700610160827637,
-0.09583151340484619,
-0.1978805661201477,
-0.3076325058937073,
0.0921463593840599,
-0.3734370768070221,
0.15512815117835999,
-0.08933870494365692,
-0.1881130337715149,
0.05385715141892433,
-0.11387008428573608,
-0.4920063614845276,
-0.21249042451381683,
-0.19423165917396545,
-0.20159459114074707,
-0.33818042278289795,
-0.10313424468040466,
-0.04851331189274788,
0.22050604224205017,
0.2001669853925705,
-0.2613874077796936,
0.10946998745203018,
-0.14645445346832275,
-0.06424576789140701,
-0.403082013130188,
0.3618188500404358,
0.20634616911411285,
0.09491483867168427,
0.1159401461482048,
-0.20676466822624207,
-0.04175424575805664,
-0.16457834839820862,
-0.15354013442993164,
0.05405372008681297,
0.011224653571844101,
-0.2702169120311737,
-0.029682233929634094,
-0.02472091093659401,
-0.10645332932472229,
-0.11035607755184174,
0.3347572684288025,
-0.3714746832847595,
0.016931116580963135,
0.11620665341615677,
0.16376131772994995,
-0.29363536834716797,
-0.08669392764568329,
0.1692093312740326,
-0.3307696282863617,
-0.20597636699676514,
0.2427510917186737,
-0.07610605657100677,
-0.11943148076534271,
0.006362565793097019,
0.702466607093811,
0.3082851767539978,
-0.15774384140968323,
-0.3027271330356598,
-0.4830198585987091,
-0.07366373389959335,
-0.1577163189649582,
-0.1569100171327591,
-0.00997166708111763,
-0.30556803941726685,
0.1837373971939087,
0.3220190405845642,
-0.33467257022857666,
-0.18917760252952576,
0.07896698266267776,
0.026630310341715813,
-0.12284387648105621,
0.5291399955749512,
0.19359755516052246,
0.3772795498371124,
0.14792685210704803,
-0.08495926111936569,
0.08583183586597443,
-0.25768956542015076,
0.004225648939609528,
-0.2729087769985199,
0.20029129087924957,
0.2139134407043457,
-0.17128832638263702,
0.08270876854658127,
-0.2489265501499176,
-0.3137807250022888,
0.19572564959526062,
-0.08815458416938782,
0.09015195816755295,
-0.07840557396411896,
0.1302749067544937,
0.2613142728805542,
-0.2927398979663849,
-0.06223646551370621,
0.3811449110507965,
0.1899445801973343,
0.6598363518714905,
-0.13063417375087738,
0.05647478997707367,
-0.15977931022644043,
0.027912825345993042,
0.08131702989339828,
-0.028592482209205627,
0.0531027726829052,
-0.24341335892677307,
0.4898528754711151,
0.003794632852077484,
0.09483140707015991,
0.4420146048069,
0.4499051570892334,
0.37532103061676025,
0.2510329484939575,
0.06836085021495819,
0.4525556266307831,
0.007600262761116028,
-0.2783551812171936,
-0.2523455023765564,
0.14192713797092438,
0.2004343718290329,
-0.019696395844221115,
0.22681501507759094,
0.03704864904284477,
-0.015426039695739746,
-0.048989564180374146,
-0.0836617723107338,
0.25087541341781616,
0.16251114010810852,
-0.10406644642353058,
0.2833547592163086,
-0.07761381566524506,
0.2967444956302643,
0.0831737369298935,
0.31558579206466675,
0.26822468638420105,
0.057690080255270004,
-0.1999991536140442,
0.058184705674648285,
0.0687827318906784,
0.021381817758083344,
0.12776726484298706,
-0.37880203127861023,
0.06679970771074295,
-0.08724358677864075,
0.231129989027977,
0.03797369450330734,
0.1320907473564148,
0.5408691763877869,
-0.3658207356929779,
-0.08063685894012451,
-0.2153702825307846,
0.3437010645866394,
0.07075819373130798,
0.34602001309394836,
0.24000436067581177,
0.01894211769104004,
-0.5277714729309082,
0.012439582496881485,
0.04084159433841705,
-0.18401704728603363,
-0.08118395507335663,
0.23074394464492798,
0.19913148880004883,
-0.14300648868083954,
-0.2762209475040436,
-0.38146692514419556,
-0.0030756890773773193,
-0.3562512993812561,
-0.08000113070011139,
-0.13039685785770416,
-0.25212788581848145,
-0.01518717035651207,
0.17991478741168976,
0.31482741236686707,
0.24185994267463684,
-0.09010449051856995,
-0.20864984393119812,
-0.4039202034473419,
0.15920621156692505,
-0.11044850200414658,
0.33548831939697266,
0.31827080249786377,
0.2607206702232361,
0.3081433176994324,
-0.09470320492982864,
-0.04633212462067604,
0.07437874376773834,
-0.03180714324116707,
-0.2770717740058899,
-0.018623987212777138,
0.898235559463501,
0.17295031249523163,
0.12874731421470642,
-0.22753047943115234,
-0.15109583735466003,
-0.3705109655857086,
0.2907260060310364,
0.1069381982088089,
-0.17941932380199432,
0.06055226922035217,
-0.11412952095270157,
0.002937115728855133,
-0.010716438293457031,
0.29825347661972046,
0.53377366065979,
-0.0062851980328559875,
-0.08115668594837189,
-0.08550142496824265,
-0.8763771653175354,
0.15580366551876068,
0.11676640808582306,
-0.1692448854446411,
-0.0115706417709589,
-0.08143942803144455,
0.005458205938339233,
0.3687030076980591,
0.044869303703308105,
0.19644677639007568,
0.22887955605983734,
-0.2801898419857025,
0.000545550137758255,
-0.10794141888618469,
-0.11009354889392853,
0.03657037764787674,
-0.10585284978151321,
-0.0856233537197113,
0.0952271968126297,
-0.4726802408695221,
-0.06808211654424667,
-0.30042803287506104,
-0.27963972091674805,
-0.27029329538345337,
-0.08193561434745789,
0.5554603338241577,
0.11817360669374466,
0.24263989925384521,
-0.056371308863162994,
-0.09537290781736374,
-0.10599333047866821,
0.25503504276275635,
-0.3881649374961853,
0.0448978953063488,
-0.27647048234939575,
-0.0022370237857103348,
-0.2648378908634186,
0.47395196557044983,
-0.7042844295501709,
0.07734782248735428,
-0.12304272502660751,
0.33127492666244507,
-0.36872801184654236,
-0.11336472630500793,
-0.39331158995628357,
-0.12109392136335373,
0.47760021686553955,
0.2249876856803894,
-0.10435599088668823,
0.04149606078863144,
-0.4784233570098877,
-0.19343778491020203,
0.2941087484359741,
-0.07058246433734894,
-0.09074916690587997,
-0.05793944001197815,
0.11319435387849808,
-0.0954374298453331,
-0.12947741150856018,
-0.33287736773490906,
-0.2636534571647644,
0.10538065433502197,
-0.030767668038606644,
-0.1391650140285492,
0.002056398428976536,
-0.2911558449268341,
-0.22574353218078613,
-0.034377776086330414,
0.21675801277160645,
0.12436244636774063,
-0.1454564779996872,
0.05693845823407173,
0.0046370550990104675
] |
https://github.com/huggingface/datasets/issues/721 | feat(dl_manager): add support for ftp downloads | I know its unorthodox, but I added `ftp` download support to `file_utils` in the same PR https://github.com/huggingface/datasets/pull/722
So its possible to understand the interaction of the download component with the ftp download ability | I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
| 33 | feat(dl_manager): add support for ftp downloads
I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
I know its unorthodox, but I added `ftp` download support to `file_utils` in the same PR https://github.com/huggingface/datasets/pull/722
So its possible to understand the interaction of the download component with the ftp download ability | [
-0.20793147385120392,
-0.09989284723997116,
-0.020252997055649757,
0.3010156452655792,
0.004464121535420418,
0.03847813606262207,
-0.35531243681907654,
0.3622781038284302,
0.19003504514694214,
-0.0035544931888580322,
-0.03681350499391556,
0.021745072677731514,
0.015500792302191257,
-0.003892628476023674,
0.2229108214378357,
-0.3022279441356659,
-0.15827327966690063,
0.08473449945449829,
0.0404503233730793,
0.14360032975673676,
-0.3097784221172333,
0.23194710910320282,
0.10253800451755524,
0.03326830640435219,
-0.05045739561319351,
-0.0144199188798666,
0.01262323372066021,
0.21646717190742493,
-0.3532264530658722,
-0.45177045464515686,
0.1148507297039032,
0.06179118528962135,
0.342750608921051,
0.18937845528125763,
-0.00012063897884218022,
0.01971009373664856,
0.3356401324272156,
-0.09734947234392166,
-0.222955122590065,
-0.468334436416626,
-0.5454897880554199,
-0.4111310839653015,
0.19932100176811218,
0.0049574971199035645,
0.18736234307289124,
-0.24220795929431915,
-0.03176775574684143,
0.20300376415252686,
0.08605028688907623,
0.467244952917099,
0.17893415689468384,
0.36903849244117737,
0.031819652765989304,
-0.1910262405872345,
0.3959607481956482,
0.05685718357563019,
-0.04089278727769852,
0.21494999527931213,
0.3350115120410919,
-0.03498180955648422,
0.044646281749010086,
-0.3629600703716278,
-0.06328829377889633,
0.2762862741947174,
0.3633667528629303,
0.228907510638237,
0.18414908647537231,
-0.43709564208984375,
-0.29812711477279663,
0.15907689929008484,
0.6993598937988281,
0.07771289348602295,
-0.273234099149704,
-0.11672842502593994,
-0.08689504861831665,
0.0861625224351883,
0.2511809468269348,
-0.0796385183930397,
-0.3449171781539917,
0.14912189543247223,
0.1730012148618698,
-0.2589466869831085,
-0.17039743065834045,
0.3341839909553528,
-0.1979994922876358,
0.5212565660476685,
0.006105318665504456,
-0.12657368183135986,
0.2468763142824173,
0.26291021704673767,
-0.2788717746734619,
-0.13746295869350433,
0.1785530149936676,
0.05040746182203293,
0.3377341628074646,
-0.021378133445978165,
0.13975554704666138,
-0.27610909938812256,
-0.008340442553162575,
0.31887364387512207,
0.10867542773485184,
-0.11166011542081833,
-0.22712922096252441,
0.2703459858894348,
0.06468908488750458,
0.35999685525894165,
-0.17439070343971252,
-0.04696885496377945,
0.3693579435348511,
0.31749969720840454,
0.2482459545135498,
0.006687834858894348,
-0.007204887922853231,
-0.11230045557022095,
-0.4965159296989441,
-0.02179151028394699,
0.298859179019928,
-0.15903794765472412,
-0.24385933578014374,
-0.012056454084813595,
-0.16465428471565247,
-0.13585424423217773,
-0.05480064079165459,
0.1574220508337021,
-0.15146926045417786,
0.1966952085494995,
-0.026903733611106873,
0.20702792704105377,
0.08289766311645508,
-0.2286735624074936,
-0.01904825121164322,
-0.041550736874341965,
-0.03123871423304081,
-0.21488769352436066,
0.16103920340538025,
0.12140953540802002,
0.006442412734031677,
-0.12725213170051575,
0.09711213409900665,
0.08476650714874268,
-0.04120524600148201,
0.013457152992486954,
0.12498878687620163,
0.43349942564964294,
-0.012779908254742622,
0.24515874683856964,
0.0644339770078659,
-0.22860649228096008,
-0.20670294761657715,
0.24122044444084167,
-0.10368939489126205,
-0.4144614636898041,
-0.30344510078430176,
0.10170057415962219,
-0.363273561000824,
-0.3726770579814911,
-0.15950489044189453,
0.11366479098796844,
-0.3486050069332123,
-0.31535640358924866,
-0.08683233708143234,
0.11650337278842926,
-0.15312537550926208,
-0.21909946203231812,
0.16674911975860596,
0.3835812211036682,
-0.4564206600189209,
-0.04729679971933365,
-0.2854035496711731,
-0.3417430818080902,
0.5062984228134155,
0.17725366353988647,
-0.14603498578071594,
0.34344422817230225,
-0.3533620238304138,
0.43065834045410156,
0.8133015036582947,
-0.38297414779663086,
-0.371663361787796,
0.7050055265426636,
-0.423827588558197,
0.22118055820465088,
0.22331732511520386,
-0.09651562571525574,
0.26330694556236267,
-0.24930575489997864,
-0.5300368070602417,
0.4649731516838074,
-0.002922777086496353,
-0.001516636461019516,
-0.2496088445186615,
-0.13504792749881744,
0.28416842222213745,
-0.04089707136154175,
0.23223218321800232,
0.33789849281311035,
0.39649274945259094,
0.05194506049156189,
0.32049983739852905,
0.3770962357521057,
0.30320078134536743,
0.07666009664535522,
0.23938323557376862,
0.25463104248046875,
-0.09408324956893921,
-0.2554592192173004,
-0.2583703100681305,
0.1295383870601654,
-0.03813090920448303,
0.16627880930900574,
-0.19169531762599945,
0.11139243841171265,
-0.27658510208129883,
-0.013032306917011738,
-0.1457212120294571,
-0.052632030099630356,
-0.03069612756371498,
0.21669775247573853,
0.18799959123134613,
0.0291852205991745,
-0.0721333771944046,
0.05954580754041672,
0.2788745164871216,
0.29852426052093506,
0.15590156614780426,
0.11724767088890076,
-0.22465966641902924,
0.027378547936677933,
-0.0366574265062809,
0.002445794641971588,
0.2337847650051117,
-0.4035806357860565,
-0.12475845962762833,
0.14278697967529297,
-0.1231003999710083,
0.1376376748085022,
0.294722318649292,
0.1800481677055359,
0.31895002722740173,
0.24105477333068848,
-0.04315873235464096,
0.47412925958633423,
0.28412866592407227,
-0.08880258351564407,
0.07318686693906784,
-0.03951899707317352,
0.24657203257083893,
0.3004808723926544,
0.08934122323989868,
0.17860621213912964,
0.20166116952896118,
-0.06895918399095535,
0.06515216827392578,
-0.15902259945869446,
0.23485226929187775,
-0.11800776422023773,
-0.07828773558139801,
-0.14559905230998993,
-0.1292724907398224,
0.07023945450782776,
-0.13783526420593262,
-0.06825108826160431,
0.10089443624019623,
0.3550209105014801,
0.12463909387588501,
-0.05630919337272644,
0.10419486463069916,
0.7412889003753662,
0.38766735792160034,
0.16054484248161316,
0.406266987323761,
0.07333029061555862,
0.026803914457559586,
-0.2988278567790985,
0.2523026764392853,
0.16106846928596497,
-0.496706485748291,
0.538286566734314,
0.04969487339258194,
0.20618881285190582,
0.03340139240026474,
-0.05752575770020485,
0.20969611406326294,
0.3144168257713318,
-0.22217945754528046,
-0.02780059352517128,
-0.637495219707489,
-0.600946307182312,
-0.18109576404094696,
-0.1889699399471283,
-0.26416587829589844,
-0.45262598991394043,
-0.14071673154830933,
0.22600401937961578,
-0.10811492800712585,
0.08739884942770004,
-0.2180073857307434,
0.016696497797966003,
-0.38559669256210327,
-0.34327393770217896,
-0.22494439780712128,
0.2820160388946533,
-0.14799728989601135,
0.02758234739303589,
0.2968626618385315,
0.002649289555847645,
0.3359053134918213,
0.0013950522989034653,
0.08835098147392273,
-0.5908953547477722,
-0.037385307252407074,
0.25852108001708984,
-0.07195097208023071,
-0.02913186140358448,
0.1516278088092804,
-0.041506633162498474,
0.35737597942352295,
-0.08877075463533401,
0.26838213205337524,
-0.09472914040088654,
-0.15105171501636505,
-0.1963442862033844,
0.11350510269403458,
-0.0697750523686409,
-0.16978006064891815,
-0.13210931420326233,
-0.35597822070121765,
-0.5992093682289124,
0.20746733248233795,
0.08850498497486115,
0.13270440697669983,
-0.006296555511653423,
-0.3061017692089081,
0.2599482834339142,
-0.1653512567281723,
-0.036308594048023224,
-0.03319338709115982,
-0.08681119978427887,
0.3976348638534546,
-0.3162902891635895,
-0.4053554832935333,
0.14227928221225739,
0.10794936120510101,
-0.12212435901165009,
0.21393083035945892,
-0.3075752854347229,
-0.292231023311615,
-0.10434073209762573,
0.26372820138931274,
-0.1654440015554428,
0.34048181772232056,
0.3213357925415039,
-0.10513781011104584,
-0.03441309183835983,
-0.014490127563476562,
0.004276510328054428,
0.021888136863708496,
0.5916689038276672,
0.3955236077308655,
0.14498445391654968,
0.20342254638671875,
-0.013806121423840523,
0.6329031586647034,
-0.012857192195951939,
0.3049512803554535,
0.6129631996154785,
-0.08576235175132751,
0.1866583228111267,
0.11402691155672073,
-0.15015485882759094,
0.12271270900964737,
-0.17314517498016357,
-0.0008510611951351166,
0.3054535686969757,
-0.02678252011537552,
0.04701932519674301,
-0.35641616582870483,
0.012445390224456787,
-0.16167618334293365,
-0.17523066699504852,
0.07914631813764572,
0.04127718508243561,
0.08387181907892227,
0.12250290811061859,
-0.053043827414512634,
-0.004605087451636791,
-0.10462895780801773,
0.22067047655582428,
0.5886508822441101,
0.1143936961889267,
0.1677810549736023,
0.5067598819732666,
0.2036757618188858,
-0.55343097448349,
0.18381935358047485,
0.37272852659225464,
0.18655478954315186,
-0.09810644388198853,
-0.11766895651817322,
0.24237625300884247,
0.039303261786699295,
0.7532057166099548,
-0.13719885051250458,
0.09516888856887817,
-0.02270491048693657,
-0.27736371755599976,
0.09825734049081802,
-0.08464843034744263,
-0.21405825018882751,
-0.1250433474779129,
0.020722221583127975,
-0.17708617448806763,
-0.0846203863620758,
-0.3458728790283203,
0.085567906498909,
0.012172914110124111,
-0.034485407173633575,
-0.17085491120815277,
-0.03904080018401146,
-0.19193905591964722,
-0.37019649147987366,
-0.2853294610977173,
-0.026041580364108086,
0.006398975383490324,
0.41996949911117554,
0.14430324733257294,
0.07272373139858246,
0.050515905022621155,
0.10167984664440155,
-0.15057368576526642,
-0.0936838760972023,
-0.06486276537179947,
-0.06343819946050644,
0.13250982761383057,
0.07975754141807556,
0.10747537761926651,
0.39269277453422546,
-0.1583862006664276,
-0.27907323837280273,
0.010463444516062737,
0.018177632242441177,
0.34726986289024353,
0.39871659874916077,
-0.06760662794113159,
-0.07522585242986679,
-0.34337684512138367,
0.25556331872940063,
-0.3039536774158478,
0.14522698521614075,
0.4953188896179199,
-0.2727421820163727,
-0.07216701656579971,
-0.2200796902179718,
0.4214271008968353,
-0.13673138618469238,
-0.1279633343219757,
0.049063801765441895,
0.2962496876716614,
-0.09455016255378723,
-0.13875433802604675,
-0.23880794644355774,
0.9049046039581299,
0.16102764010429382,
0.258571594953537,
0.2879820168018341,
-0.2937958240509033,
0.427852600812912,
-0.3093652129173279,
0.14906364679336548,
-0.030595997348427773,
0.07276484370231628,
-0.33193132281303406,
-0.044294897466897964,
-0.02980794757604599,
0.031409852206707,
-0.17245472967624664,
0.3442900478839874,
0.049785345792770386,
0.11408291757106781,
0.2147444635629654,
0.43921035528182983,
0.04588897526264191,
-0.20119041204452515,
0.03743813931941986,
0.12568329274654388,
-0.2235937863588333,
0.5764861702919006,
-0.1773506999015808,
-0.25681984424591064,
-0.17917732894420624,
-0.13483485579490662,
-0.3404061198234558,
0.09574075043201447,
-0.361701637506485,
0.14187860488891602,
-0.027375798672437668,
-0.3045833110809326,
0.07679226994514465,
-0.13328984379768372,
-0.47450900077819824,
-0.30548742413520813,
-0.21309496462345123,
-0.13182489573955536,
-0.2448127567768097,
-0.07245169579982758,
-0.0509193018078804,
0.13277648389339447,
0.25521084666252136,
-0.24299263954162598,
0.0630500540137291,
-0.1543956995010376,
-0.1461339294910431,
-0.28807371854782104,
0.3319581151008606,
0.18276996910572052,
-0.011175140738487244,
0.039075832813978195,
-0.28391140699386597,
-0.040436647832393646,
-0.11503612995147705,
-0.1783135086297989,
0.0523863323032856,
-0.06198175251483917,
-0.2798435688018799,
-0.03017260879278183,
-0.006163246929645538,
-0.17522341012954712,
-0.1325215846300125,
0.4075357913970947,
-0.4034810960292816,
-0.035572752356529236,
0.14069132506847382,
0.02377552166581154,
-0.29623180627822876,
-0.08959747105836868,
0.09378362447023392,
-0.3314379155635834,
-0.2941505014896393,
0.17253103852272034,
-0.07927659898996353,
-0.15366455912590027,
-0.06146404147148132,
0.6250388026237488,
0.4542083144187927,
-0.04864282160997391,
-0.37355923652648926,
-0.3518785834312439,
-0.07595791667699814,
-0.19555388391017914,
-0.03232103958725929,
-0.054392147809267044,
-0.4404832422733307,
0.2066718488931656,
0.368795782327652,
-0.19511860609054565,
-0.2043241560459137,
0.06819988042116165,
0.028280945494771004,
-0.07356289774179459,
0.584471583366394,
0.14145144820213318,
0.3461654484272003,
0.0799480527639389,
-0.06981732696294785,
0.07133463025093079,
-0.3271222412586212,
-0.01908080279827118,
-0.2705706059932709,
0.20299093425273895,
0.2286141812801361,
-0.20626738667488098,
0.10125669091939926,
-0.142826110124588,
-0.17202633619308472,
0.14766760170459747,
-0.060483116656541824,
0.05951064079999924,
-0.051113374531269073,
0.023531217128038406,
0.3245326578617096,
-0.167286217212677,
-0.11560618877410889,
0.42729637026786804,
0.20046892762184143,
0.6626452803611755,
-0.13619476556777954,
-0.005637217313051224,
-0.18524476885795593,
0.06735201179981232,
0.04139009863138199,
-0.004975058138370514,
0.06351389735937119,
-0.1287764012813568,
0.4958365261554718,
-0.007900558412075043,
0.13079309463500977,
0.39991652965545654,
0.4293605387210846,
0.3676393926143646,
0.2517673075199127,
-0.020989129319787025,
0.451889306306839,
0.006791364401578903,
-0.18720939755439758,
-0.2510674297809601,
0.11278991401195526,
0.26923999190330505,
0.0050618015229702,
0.23729300498962402,
0.12383589148521423,
-0.027675028890371323,
0.0061595141887664795,
-0.08741737902164459,
0.33913862705230713,
0.1967250108718872,
-0.14612647891044617,
0.3032360374927521,
-0.02121148630976677,
0.3283677399158478,
0.10425639152526855,
0.287217915058136,
0.2324737310409546,
0.024445250630378723,
-0.24587467312812805,
0.030697470530867577,
-0.0026337802410125732,
0.11678925901651382,
0.13131466507911682,
-0.39604535698890686,
0.1197962760925293,
-0.04477454721927643,
0.1062578558921814,
0.03397992253303528,
0.17757409811019897,
0.42605531215667725,
-0.4361594319343567,
-0.06075238808989525,
-0.19349120557308197,
0.3412929177284241,
0.05212545394897461,
0.2550959289073944,
0.2244354784488678,
-0.046119071543216705,
-0.5083352327346802,
0.03522166237235069,
0.0010544173419475555,
-0.1477964222431183,
0.008243553340435028,
0.15262851119041443,
0.1336371749639511,
-0.14955948293209076,
-0.286179780960083,
-0.41180190443992615,
0.02265087515115738,
-0.39242154359817505,
-0.029110154137015343,
-0.1426418274641037,
-0.22099393606185913,
0.07001423835754395,
0.17628459632396698,
0.35755178332328796,
0.2120589315891266,
-0.0406743586063385,
-0.21119777858257294,
-0.3224901854991913,
0.13455970585346222,
-0.15153507888317108,
0.3563966453075409,
0.2794632911682129,
0.1905571073293686,
0.320372611284256,
-0.08043748885393143,
-0.10687010735273361,
0.016068730503320694,
-0.00571020320057869,
-0.32747378945350647,
-0.09862147271633148,
0.882544219493866,
0.10857090353965759,
0.05741196870803833,
-0.16077028214931488,
-0.11855713278055191,
-0.38883405923843384,
0.357413113117218,
0.024334318935871124,
-0.2475164532661438,
0.09833064675331116,
-0.049208592623472214,
0.01908232644200325,
-0.0445246659219265,
0.39446303248405457,
0.4977112412452698,
-0.08826600760221481,
-0.10126128047704697,
-0.07300572097301483,
-0.9552733898162842,
0.2226017713546753,
0.11224985122680664,
-0.13439372181892395,
-0.011049678549170494,
-0.0381552055478096,
0.0013500601053237915,
0.3666803240776062,
0.08495618402957916,
0.2992459833621979,
0.13834761083126068,
-0.2450377643108368,
-0.002479247748851776,
-0.1338805854320526,
-0.15083278715610504,
0.015650827437639236,
-0.14627251029014587,
0.0034538768231868744,
0.15388961136341095,
-0.43185943365097046,
-0.07109571248292923,
-0.18860040605068207,
-0.2279030829668045,
-0.26275500655174255,
-0.11070583760738373,
0.5203106999397278,
0.14482557773590088,
0.23297707736492157,
-0.09683016687631607,
-0.13546976447105408,
-0.13026201725006104,
0.22307084500789642,
-0.3745638132095337,
0.10557596385478973,
-0.3027055859565735,
0.01502731442451477,
-0.2752320170402527,
0.42360955476760864,
-0.6369168162345886,
0.1009455993771553,
-0.08924517035484314,
0.40448370575904846,
-0.4081544578075409,
-0.09055598825216293,
-0.43389907479286194,
-0.1059970036149025,
0.5274695158004761,
0.23212957382202148,
-0.06081414967775345,
0.023316485807299614,
-0.46250051259994507,
-0.2424897700548172,
0.3503897190093994,
0.03464515507221222,
-0.10242827236652374,
-0.036154743283987045,
0.12690706551074982,
-0.08960504084825516,
-0.16846947371959686,
-0.3031352758407593,
-0.34797364473342896,
0.12813451886177063,
-0.08344893157482147,
-0.1291952282190323,
-0.028384294360876083,
-0.3198004961013794,
-0.2465522140264511,
-0.022416405379772186,
0.3546430170536041,
0.1518900990486145,
-0.14145518839359283,
0.10386388003826141,
-0.009832460433244705
] |
https://github.com/huggingface/datasets/issues/721 | feat(dl_manager): add support for ftp downloads | @hoanganhpham1006 yes.
See pull request https://github.com/huggingface/datasets/pull/722 , it has a loader for this dataset, mostly ready.
There's one issue that delays it being merged - https://github.com/huggingface/datasets/issues/741 - regarding memory consumption. | I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
| 30 | feat(dl_manager): add support for ftp downloads
I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
@hoanganhpham1006 yes.
See pull request https://github.com/huggingface/datasets/pull/722 , it has a loader for this dataset, mostly ready.
There's one issue that delays it being merged - https://github.com/huggingface/datasets/issues/741 - regarding memory consumption. | [
-0.2078174203634262,
-0.1362145096063614,
0.022339701652526855,
0.3684147596359253,
-0.04260282218456268,
0.0941680446267128,
-0.4160579442977905,
0.4587388038635254,
0.24659869074821472,
-0.021978706121444702,
-0.10486697405576706,
0.05492999777197838,
-0.17395712435245514,
0.04061713069677353,
0.22389300167560577,
-0.28535914421081543,
-0.10958284884691238,
0.047097060829401016,
0.07641193270683289,
0.14869321882724762,
-0.36717110872268677,
0.3155606687068939,
0.12662412226200104,
-0.05205821990966797,
-0.06086964160203934,
0.06825072318315506,
-0.11443941295146942,
0.25258180499076843,
-0.342428058385849,
-0.48326167464256287,
0.11446069180965424,
0.14680065214633942,
0.39983469247817993,
0.28159642219543457,
-0.00012275185144972056,
-0.016962680965662003,
0.3013390898704529,
-0.08546214550733566,
-0.20560277998447418,
-0.4361375570297241,
-0.48790785670280457,
-0.4381597638130188,
0.2045803815126419,
0.015504024922847748,
0.1532445251941681,
-0.2656700611114502,
-0.06922338902950287,
0.1311791092157364,
0.15149535238742828,
0.41677457094192505,
0.14807067811489105,
0.3967958092689514,
0.02612711861729622,
-0.21715953946113586,
0.38062307238578796,
0.0019360855221748352,
-0.010392732918262482,
0.33929163217544556,
0.24382759630680084,
-0.125405415892601,
0.05677971616387367,
-0.29613935947418213,
-0.05697837844491005,
0.2207808494567871,
0.3716028332710266,
0.13339421153068542,
0.09373672306537628,
-0.40132269263267517,
-0.3160228729248047,
0.16441000998020172,
0.5963605642318726,
-0.019431643187999725,
-0.24105891585350037,
-0.11153954267501831,
-0.14199571311473846,
-0.006044501438736916,
0.22349047660827637,
-0.0008247056975960732,
-0.41546905040740967,
0.15323574841022491,
0.10616596043109894,
-0.37351399660110474,
-0.2633183002471924,
0.33365291357040405,
-0.13879358768463135,
0.5295555591583252,
0.031459368765354156,
-0.16471633315086365,
0.32492077350616455,
0.2675721347332001,
-0.3027860224246979,
-0.11419621109962463,
0.11844611167907715,
0.07478886097669601,
0.21750567853450775,
-0.10660578310489655,
0.043907009065151215,
-0.3347758650779724,
0.051893167197704315,
0.3083164095878601,
0.12055017799139023,
-0.09016191959381104,
-0.1433762162923813,
0.21166759729385376,
0.11834052205085754,
0.34911900758743286,
-0.17746469378471375,
-0.10860192030668259,
0.3848991394042969,
0.24912355840206146,
0.31488001346588135,
0.008058439940214157,
-0.16384010016918182,
-0.08600490540266037,
-0.5304247140884399,
-0.07549097388982773,
0.17519845068454742,
-0.1595049500465393,
-0.17157524824142456,
0.03805609792470932,
-0.1565726399421692,
-0.14592961966991425,
-0.011384340934455395,
0.2451411783695221,
-0.155943363904953,
0.22496429085731506,
0.09386485815048218,
0.16846863925457,
0.0178122166544199,
-0.27562856674194336,
-0.0035257129929959774,
-0.014627572149038315,
-0.08043408393859863,
-0.12107265740633011,
0.17082442343235016,
0.1132587343454361,
0.009682143107056618,
-0.20575983822345734,
0.11165405809879303,
0.11570228636264801,
-0.08578912913799286,
0.02107788249850273,
0.17083367705345154,
0.40540796518325806,
-0.0006325133144855499,
0.1629958301782608,
0.08584032952785492,
-0.13816559314727783,
-0.17296764254570007,
0.2869308590888977,
-0.017980434000492096,
-0.43257153034210205,
-0.37964150309562683,
0.06437714397907257,
-0.35446518659591675,
-0.4458072781562805,
-0.282867431640625,
0.21901927888393402,
-0.31172195076942444,
-0.26068317890167236,
-0.17469310760498047,
0.18340235948562622,
-0.26859498023986816,
-0.19404706358909607,
0.14241670072078705,
0.4873999357223511,
-0.3776036202907562,
-0.09315390884876251,
-0.2818636894226074,
-0.29588383436203003,
0.46280694007873535,
0.24312373995780945,
-0.1338120698928833,
0.30074599385261536,
-0.38822218775749207,
0.3272665739059448,
0.7000999450683594,
-0.34700894355773926,
-0.24774393439292908,
0.6614426970481873,
-0.3661957383155823,
0.124025858938694,
0.22730609774589539,
-0.037096623331308365,
0.21691857278347015,
-0.2122606337070465,
-0.4664946496486664,
0.4712204337120056,
-0.02625938691198826,
0.046897053718566895,
-0.2975868880748749,
-0.21592356264591217,
0.3030470013618469,
0.029214974492788315,
0.29693958163261414,
0.29303112626075745,
0.3287853002548218,
0.03401770815253258,
0.3883123993873596,
0.3318312466144562,
0.20620882511138916,
0.10130312293767929,
0.31244006752967834,
0.24613401293754578,
-0.11730185151100159,
-0.24107947945594788,
-0.30730363726615906,
0.15163978934288025,
-0.04852449893951416,
0.211369127035141,
-0.11677645146846771,
0.13031606376171112,
-0.23624050617218018,
-0.04873353987932205,
-0.13444632291793823,
-0.02979877218604088,
-0.09405839443206787,
0.15064679086208344,
0.23032057285308838,
0.058866728097200394,
-0.1300012618303299,
0.10755155235528946,
0.19420777261257172,
0.3531339466571808,
0.05798898637294769,
0.2031671553850174,
-0.16659601032733917,
0.0836380124092102,
0.04492729902267456,
0.011737324297428131,
0.19847139716148376,
-0.3616105616092682,
-0.10486848652362823,
0.18055060505867004,
-0.14003220200538635,
0.10490575432777405,
0.3677372932434082,
0.1984397917985916,
0.3461496829986572,
0.17141366004943848,
0.03513726964592934,
0.4303008019924164,
0.22323277592658997,
-0.11324716359376907,
0.00828133150935173,
0.03758857399225235,
0.260692834854126,
0.30464866757392883,
0.14433631300926208,
0.19582928717136383,
0.18388816714286804,
-0.05709107220172882,
0.06165364384651184,
-0.13894549012184143,
0.2580168545246124,
-0.07354743778705597,
-0.15065544843673706,
-0.1546858549118042,
-0.1694372147321701,
0.02794935554265976,
-0.1301022469997406,
-0.015737872570753098,
0.06818392127752304,
0.4152187407016754,
0.0894242376089096,
-0.02544158697128296,
0.12820154428482056,
0.7226040363311768,
0.37753891944885254,
0.23672042787075043,
0.2860605716705322,
0.1250474452972412,
0.06946460157632828,
-0.2483471930027008,
0.23563241958618164,
0.1740339994430542,
-0.4175149202346802,
0.4896562695503235,
0.008877831511199474,
0.1388654112815857,
-0.06300196796655655,
-0.021073976531624794,
0.21184077858924866,
0.3253065049648285,
-0.22962218523025513,
-0.1021394431591034,
-0.5599486231803894,
-0.6452046632766724,
-0.23609939217567444,
-0.13111454248428345,
-0.3341290354728699,
-0.5082858800888062,
-0.11801068484783173,
0.29170042276382446,
-0.05886115878820419,
0.08501565456390381,
-0.2439475953578949,
0.10255230218172073,
-0.3336436152458191,
-0.40534594655036926,
-0.2126256376504898,
0.18548613786697388,
-0.11292640119791031,
0.005755655467510223,
0.38472220301628113,
-0.09166450798511505,
0.4335963726043701,
-0.02264934405684471,
0.15369391441345215,
-0.5495792627334595,
-0.1093696877360344,
0.24706478416919708,
-0.09603211283683777,
-0.1344262957572937,
0.08764182031154633,
0.08629089593887329,
0.3288472890853882,
-0.07664967328310013,
0.2860807776451111,
-0.17170587182044983,
-0.16375592350959778,
-0.1800728440284729,
0.1500084549188614,
-0.048847366124391556,
-0.15474364161491394,
-0.21015533804893494,
-0.3709224760532379,
-0.6213085055351257,
0.1715506911277771,
0.13127915561199188,
0.10696572065353394,
0.13415108621120453,
-0.21622443199157715,
0.2566543519496918,
-0.19296373426914215,
-0.17203284800052643,
-0.02043675072491169,
-0.16225062310695648,
0.3975335359573364,
-0.29297569394111633,
-0.43537554144859314,
0.1951982080936432,
0.11128272116184235,
-0.07047131657600403,
0.11633291095495224,
-0.3959721326828003,
-0.24234957993030548,
-0.07229297608137131,
0.21936535835266113,
-0.10333386063575745,
0.3142010271549225,
0.32552334666252136,
-0.07363952696323395,
-0.028729667887091637,
0.07354950159788132,
-0.04825933277606964,
0.005885161459445953,
0.46126464009284973,
0.39781323075294495,
0.2045583426952362,
0.34642475843429565,
0.03657413646578789,
0.7163602709770203,
0.047579992562532425,
0.3232117295265198,
0.6261861324310303,
-0.11240626126527786,
0.2358405888080597,
0.1207483634352684,
-0.23552711308002472,
0.07119926810264587,
-0.17087343335151672,
0.06223731487989426,
0.3565024733543396,
0.08277859538793564,
0.008288132026791573,
-0.4065496325492859,
-0.0926927924156189,
-0.10462254285812378,
-0.19860215485095978,
0.10338407009840012,
0.03291813284158707,
0.05691899359226227,
0.09911321103572845,
-0.10804003477096558,
-0.08723171055316925,
-0.2185586392879486,
0.28130999207496643,
0.5460274815559387,
0.059510454535484314,
0.13769513368606567,
0.3997960686683655,
0.3199518024921417,
-0.695445716381073,
0.18865364789962769,
0.26486119627952576,
0.18732552230358124,
-0.07475228607654572,
-0.1366337090730667,
0.1631585657596588,
0.052581459283828735,
0.7220874428749084,
0.006471904926002026,
-0.0054473429918289185,
-0.04922395944595337,
-0.35262465476989746,
0.03180430084466934,
-0.02413986437022686,
-0.1140727698802948,
-0.03882157802581787,
0.011556018143892288,
-0.057937681674957275,
-0.15266697108745575,
-0.33615273237228394,
0.1889985352754593,
0.01351086888462305,
-0.128135085105896,
-0.24383726716041565,
-0.08052923530340195,
-0.16245466470718384,
-0.43241387605667114,
-0.2699873745441437,
-0.0022198017686605453,
0.05093485862016678,
0.35248440504074097,
0.16538387537002563,
0.15855179727077484,
-0.05288461595773697,
0.18389712274074554,
-0.1535261869430542,
-0.03943212330341339,
0.05890025943517685,
-0.002191781997680664,
0.22278541326522827,
0.01504882425069809,
0.13013577461242676,
0.5010687112808228,
-0.17541733384132385,
-0.32785770297050476,
-0.015374977141618729,
0.06427071988582611,
0.4730227291584015,
0.3958752155303955,
-0.06551211327314377,
-0.14018204808235168,
-0.2006431221961975,
0.2754948139190674,
-0.3726550042629242,
0.1158776730298996,
0.4451700448989868,
-0.2512337267398834,
-0.18216827511787415,
-0.2667694091796875,
0.49423378705978394,
-0.06494107842445374,
-0.03351454436779022,
0.16433565318584442,
0.24883060157299042,
-0.11141650378704071,
-0.09144598245620728,
-0.24424898624420166,
1.018176555633545,
-0.03169102221727371,
0.32755985856056213,
0.34833234548568726,
-0.26742810010910034,
0.375591903924942,
-0.3395923972129822,
0.17447629570960999,
-0.15448038280010223,
0.16596706211566925,
-0.25272780656814575,
-0.04722491651773453,
-0.0009156763553619385,
0.024348149076104164,
-0.11454514414072037,
0.2757885754108429,
0.02588493376970291,
0.1319822072982788,
0.18857821822166443,
0.542791485786438,
0.04519330710172653,
-0.2683274745941162,
-0.06989601254463196,
0.11259180307388306,
-0.19172480702400208,
0.4287313222885132,
-0.20528185367584229,
-0.30159878730773926,
-0.15155932307243347,
-0.15103763341903687,
-0.30719196796417236,
0.06409148126840591,
-0.3433292508125305,
0.15223908424377441,
-0.09547252953052521,
-0.28295227885246277,
0.07411296665668488,
-0.07236598432064056,
-0.4508013129234314,
-0.23486874997615814,
-0.2485983967781067,
-0.16618064045906067,
-0.3236631453037262,
-0.10332715511322021,
-0.011867224238812923,
0.1541038304567337,
0.16387106478214264,
-0.23669302463531494,
0.0903785303235054,
-0.1399109661579132,
-0.06867919862270355,
-0.4286664128303528,
0.2736343443393707,
0.18491321802139282,
0.0192771777510643,
-0.005036617629230022,
-0.23800094425678253,
-0.006238460540771484,
-0.13508151471614838,
-0.19400352239608765,
0.03245024383068085,
0.023918524384498596,
-0.29465562105178833,
-0.08102910965681076,
0.02962237410247326,
-0.10890138149261475,
-0.1592523604631424,
0.4461519718170166,
-0.34080830216407776,
-0.054402731359004974,
0.20346011221408844,
0.2049851268529892,
-0.28754156827926636,
-0.06150185316801071,
0.15650326013565063,
-0.21977181732654572,
-0.30238205194473267,
0.24612586200237274,
-0.05459653213620186,
-0.14756524562835693,
-0.05912664532661438,
0.6080920696258545,
0.4208748936653137,
-0.1575506031513214,
-0.1964900642633438,
-0.4159405827522278,
-0.1934881955385208,
-0.1089414656162262,
-0.14657005667686462,
0.060800597071647644,
-0.3427310287952423,
0.18789540231227875,
0.29391661286354065,
-0.15605443716049194,
-0.19555971026420593,
0.08034065365791321,
0.07000914961099625,
-0.1715664565563202,
0.5449556112289429,
0.14156846702098846,
0.41800007224082947,
0.05028168112039566,
-0.09128192067146301,
0.06848843395709991,
-0.2794996500015259,
0.00456063449382782,
-0.27921342849731445,
0.22809161245822906,
0.17959067225456238,
-0.22277644276618958,
0.12541615962982178,
-0.15932434797286987,
-0.22947946190834045,
0.15739862620830536,
-0.06510279327630997,
0.1375335156917572,
-0.10632683336734772,
0.033073846250772476,
0.3706352412700653,
-0.2928018867969513,
-0.04647713899612427,
0.4460180997848511,
0.29148927330970764,
0.7225216031074524,
-0.11395590007305145,
0.019273903220891953,
-0.17558208107948303,
0.034723080694675446,
0.10677724331617355,
0.023056119680404663,
0.14573442935943604,
-0.20592772960662842,
0.510458767414093,
-0.06932361423969269,
0.04860783740878105,
0.41996070742607117,
0.4353286623954773,
0.4048268496990204,
0.2504303455352783,
0.09796351194381714,
0.41096779704093933,
-0.012672724202275276,
-0.2710822820663452,
-0.23411287367343903,
0.21459876000881195,
0.1695530116558075,
-0.04666062444448471,
0.27400505542755127,
0.05034898594021797,
-0.0358981192111969,
0.01695861667394638,
-0.04156024754047394,
0.35572686791419983,
0.2153111845254898,
-0.04401572421193123,
0.1700402796268463,
-0.009972095489501953,
0.22086893022060394,
0.1354672610759735,
0.37214767932891846,
0.2672181725502014,
0.01269230991601944,
-0.20784872770309448,
0.016080554574728012,
-0.02149474248290062,
0.10137832909822464,
0.12290897965431213,
-0.4758787453174591,
0.013336427509784698,
-0.012972787022590637,
0.13176265358924866,
0.09266038239002228,
0.09990487992763519,
0.6003860235214233,
-0.3106776177883148,
-0.10906179249286652,
-0.25315403938293457,
0.37213578820228577,
0.0499456413090229,
0.3044598400592804,
0.2552293837070465,
-0.05976417660713196,
-0.4850011169910431,
0.09030690789222717,
0.06663993000984192,
-0.3369699716567993,
0.01567220687866211,
0.1888316571712494,
0.16272029280662537,
-0.14066879451274872,
-0.2628443241119385,
-0.2626003324985504,
-0.005483657121658325,
-0.4511941373348236,
-0.03408120572566986,
-0.08000165224075317,
-0.2324446141719818,
0.08598946034908295,
0.23786748945713043,
0.3981637954711914,
0.18510179221630096,
-0.01010945439338684,
-0.16072167456150055,
-0.35263749957084656,
0.1537133753299713,
-0.1102503165602684,
0.34529373049736023,
0.278593510389328,
0.21999703347682953,
0.2887616753578186,
-0.09984219819307327,
-0.07636606693267822,
-0.004091430455446243,
-0.001519959419965744,
-0.27527210116386414,
-0.10563158988952637,
0.815187931060791,
0.1196412518620491,
0.029963545501232147,
-0.17366868257522583,
-0.1735023558139801,
-0.3805888891220093,
0.3163437247276306,
0.07099714875221252,
-0.22523285448551178,
0.08132226020097733,
-0.07179310917854309,
0.0010998789221048355,
0.022562557831406593,
0.41855403780937195,
0.5415891408920288,
-0.05393248796463013,
-0.1978934407234192,
-0.13440480828285217,
-0.8942684531211853,
0.1354990005493164,
0.07629933953285217,
-0.05123264342546463,
-0.053502846509218216,
-0.04507405310869217,
0.049169979989528656,
0.4020189642906189,
0.041728995740413666,
0.20324474573135376,
0.1618689000606537,
-0.24087348580360413,
-0.07496452331542969,
-0.030226174741983414,
-0.10678555071353912,
0.07411899417638779,
-0.04514482617378235,
0.006316915154457092,
0.15360277891159058,
-0.40961962938308716,
-0.12877731025218964,
-0.2356543093919754,
-0.17080077528953552,
-0.2563423216342926,
-0.14359258115291595,
0.5043104887008667,
0.09020514786243439,
0.2981431186199188,
0.017185721546411514,
-0.17718406021595,
-0.14290136098861694,
0.18607404828071594,
-0.37838345766067505,
0.07862601429224014,
-0.20748375356197357,
0.05683860927820206,
-0.34849682450294495,
0.2905076742172241,
-0.6230995655059814,
0.036378830671310425,
-0.15401414036750793,
0.3330836296081543,
-0.41194018721580505,
-0.08783520758152008,
-0.4065057933330536,
-0.0347217358648777,
0.4750182330608368,
0.3073503375053406,
-0.09404599666595459,
0.07296160608530045,
-0.47957491874694824,
-0.19528432190418243,
0.35775846242904663,
-0.11592841893434525,
-0.09161609411239624,
-0.03221534192562103,
0.10630211234092712,
-0.11415063589811325,
-0.16647057235240936,
-0.3694661855697632,
-0.23171496391296387,
0.10742413997650146,
-0.005991745740175247,
-0.06562422215938568,
0.009937182068824768,
-0.29361119866371155,
-0.2170831710100174,
-0.03653459623456001,
0.2938862144947052,
0.08737672865390778,
-0.18764826655387878,
0.049407798796892166,
0.0033312998712062836
] |
https://github.com/huggingface/datasets/issues/721 | feat(dl_manager): add support for ftp downloads | The problem which I have now is that this dataset seems does not allow to download? Can you share it with me pls | I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
| 23 | feat(dl_manager): add support for ftp downloads
I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
The problem which I have now is that this dataset seems does not allow to download? Can you share it with me pls | [
-0.21959105134010315,
-0.11206912994384766,
-0.024619316682219505,
0.38348954916000366,
-0.05260268598794937,
0.11773990839719772,
-0.3828476071357727,
0.41394472122192383,
0.23226287961006165,
0.022305600345134735,
-0.014095796272158623,
0.0171897504478693,
-0.1022190973162651,
0.031909048557281494,
0.21015357971191406,
-0.27657994627952576,
-0.20731347799301147,
0.07046569883823395,
0.12466955929994583,
0.09445013105869293,
-0.34484919905662537,
0.21555405855178833,
0.053863659501075745,
-0.015034213662147522,
-0.0022445572540163994,
-0.08361539244651794,
-0.012381471693515778,
0.14660994708538055,
-0.42193087935447693,
-0.4405502676963806,
0.09889537841081619,
0.0674537941813469,
0.4428102374076843,
0.2283712923526764,
-0.00012013831292279065,
-0.06785306334495544,
0.22626903653144836,
-0.12441977113485336,
-0.11191633343696594,
-0.4976864457130432,
-0.6040613651275635,
-0.4267124831676483,
0.1677461713552475,
-0.06552310287952423,
0.10085300356149673,
-0.22545494139194489,
-0.0777876004576683,
0.18280696868896484,
0.1271832138299942,
0.5547142624855042,
0.19096797704696655,
0.28401392698287964,
0.014884691685438156,
-0.1946384608745575,
0.3984508216381073,
-0.03456483781337738,
-0.02552945539355278,
0.2603332996368408,
0.21910513937473297,
-0.03973347321152687,
0.18489891290664673,
-0.3369782865047455,
-0.07326853275299072,
0.25868338346481323,
0.27939578890800476,
0.13392776250839233,
0.18693506717681885,
-0.550076961517334,
-0.2737671434879303,
0.1698974072933197,
0.7219539284706116,
0.05848750099539757,
-0.23209643363952637,
0.03993413597345352,
-0.04571053758263588,
-0.028510231524705887,
0.1964205801486969,
0.08869540691375732,
-0.41116252541542053,
0.2304248958826065,
0.18125930428504944,
-0.2941674292087555,
-0.23985451459884644,
0.32232969999313354,
-0.2248307317495346,
0.5259866714477539,
-0.01053337100893259,
-0.15347033739089966,
0.1897885799407959,
0.28822219371795654,
-0.18581153452396393,
-0.14483284950256348,
0.11833074688911438,
0.10237115621566772,
0.3044009208679199,
-0.06788366287946701,
0.06287440657615662,
-0.2980283200740814,
-0.02054019644856453,
0.3111587166786194,
0.11262518167495728,
-0.13492920994758606,
-0.1364930123090744,
0.22710227966308594,
0.03497890755534172,
0.23477065563201904,
-0.16734319925308228,
-0.02299453690648079,
0.4096493124961853,
0.2589093744754791,
0.25548961758613586,
-0.00433707982301712,
-0.18480165302753448,
-0.09661030769348145,
-0.4551790952682495,
0.025951428338885307,
0.235613152384758,
-0.16969461739063263,
-0.19050884246826172,
0.07926330715417862,
-0.2015100121498108,
-0.1778978854417801,
-0.0338972769677639,
0.20745453238487244,
-0.14668330550193787,
0.1321311891078949,
0.06293577700853348,
0.21535752713680267,
0.1690017282962799,
-0.32859668135643005,
-0.007787939161062241,
0.010157774202525616,
-0.03847510367631912,
-0.17483539879322052,
0.15458807349205017,
0.20507758855819702,
-0.01656734198331833,
-0.12997673451900482,
0.029946666210889816,
0.09745931625366211,
0.02143971435725689,
-0.0664839968085289,
0.22481325268745422,
0.4637009799480438,
0.07013368606567383,
0.2412339597940445,
0.0547637864947319,
-0.15566019713878632,
-0.1665833443403244,
0.3274116814136505,
-0.077616848051548,
-0.3467560410499573,
-0.3879062831401825,
0.10586252808570862,
-0.36417150497436523,
-0.4292058050632477,
-0.21811306476593018,
0.14451047778129578,
-0.3195294141769409,
-0.2302255630493164,
-0.06550054997205734,
0.16924527287483215,
-0.17963771522045135,
-0.2509206235408783,
0.17366060614585876,
0.3953447937965393,
-0.4349627196788788,
0.02900070697069168,
-0.32006141543388367,
-0.3286040723323822,
0.5275194644927979,
0.18984338641166687,
-0.12244308739900589,
0.31762078404426575,
-0.3467458486557007,
0.41023677587509155,
0.8917117118835449,
-0.3346194624900818,
-0.3704233467578888,
0.6246049404144287,
-0.30088406801223755,
0.014596233144402504,
0.23373013734817505,
-0.052406854927539825,
0.31784510612487793,
-0.21854521334171295,
-0.5774486064910889,
0.539021372795105,
-0.002643343061208725,
-0.0013854410499334335,
-0.2533586323261261,
-0.15905220806598663,
0.3335998058319092,
-0.012270113453269005,
0.31830474734306335,
0.36778056621551514,
0.375635027885437,
0.02178642526268959,
0.38284826278686523,
0.3941226899623871,
0.22842377424240112,
0.14121013879776,
0.3604916036128998,
0.24120895564556122,
-0.09308667480945587,
-0.26925161480903625,
-0.19371294975280762,
0.0958235040307045,
-0.030067112296819687,
0.20684126019477844,
-0.11627115309238434,
0.15393614768981934,
-0.2672058939933777,
-0.036883577704429626,
-0.20078431069850922,
-0.036682579666376114,
-0.022318266332149506,
0.1322452872991562,
0.15917924046516418,
0.06497617065906525,
-0.11099930107593536,
0.02509356290102005,
0.2445521503686905,
0.25431394577026367,
0.1832394003868103,
0.24682782590389252,
-0.2352999895811081,
0.037069495767354965,
-0.00020301342010498047,
-0.034554265439510345,
0.29764416813850403,
-0.3468151092529297,
-0.14605170488357544,
0.03444259613752365,
-0.11467953771352768,
0.02263040840625763,
0.3501186668872833,
0.2540034353733063,
0.28289464116096497,
0.06557223200798035,
0.010271333158016205,
0.44301652908325195,
0.2658160328865051,
-0.05490431562066078,
0.04878097027540207,
-0.030239686369895935,
0.29864346981048584,
0.21857205033302307,
0.050732120871543884,
0.2505040466785431,
0.234432190656662,
-0.08828070759773254,
0.08756161481142044,
-0.12971317768096924,
0.20246730744838715,
-0.05494887754321098,
-0.1953204721212387,
-0.19992893934249878,
-0.17331254482269287,
0.03140678256750107,
-0.12192952632904053,
-0.04360269755125046,
0.20096755027770996,
0.34355658292770386,
0.1428685486316681,
-0.036714106798172,
0.10769102722406387,
0.7519910335540771,
0.28067076206207275,
0.16399909555912018,
0.30338725447654724,
0.06945399194955826,
0.0829765722155571,
-0.25072991847991943,
0.202080637216568,
0.10299758613109589,
-0.32496434450149536,
0.5216410160064697,
0.02561219409108162,
0.19251412153244019,
0.014127358794212341,
-0.09352622181177139,
0.2667739689350128,
0.37673598527908325,
-0.17616301774978638,
-0.09003406763076782,
-0.5962126851081848,
-0.6407168507575989,
-0.1288955956697464,
-0.13278509676456451,
-0.3110177218914032,
-0.4138792157173157,
-0.1716988980770111,
0.26397082209587097,
0.04019508883357048,
0.029496634379029274,
-0.2321714460849762,
0.023782670497894287,
-0.29666367173194885,
-0.3578517735004425,
-0.2559230923652649,
0.1931169182062149,
-0.11503037065267563,
0.04335146024823189,
0.32022586464881897,
0.006002893205732107,
0.38278084993362427,
-0.027158435434103012,
0.11095426976680756,
-0.636513888835907,
0.009394682943820953,
0.2352176010608673,
-0.02553004026412964,
-0.023349100723862648,
0.1280387043952942,
0.14646801352500916,
0.3535768985748291,
0.02056315913796425,
0.2245684117078781,
-0.0904153510928154,
-0.13829836249351501,
-0.22590796649456024,
0.05509354919195175,
-0.05350646749138832,
-0.11886052787303925,
-0.18059226870536804,
-0.4567275047302246,
-0.5308473706245422,
0.08754505962133408,
0.17221544682979584,
0.14411112666130066,
0.010432245209813118,
-0.26228514313697815,
0.2387208789587021,
-0.1256551593542099,
-0.12292224168777466,
-0.029725687578320503,
-0.11187365651130676,
0.4354458153247833,
-0.3324557840824127,
-0.5053563714027405,
0.2403375506401062,
0.10199229419231415,
-0.10387018322944641,
0.06844159215688705,
-0.3555796146392822,
-0.2570863366127014,
-0.12440137565135956,
0.3066698908805847,
-0.14096567034721375,
0.2711116671562195,
0.31919893622398376,
-0.16671985387802124,
0.005195869132876396,
-0.0055938661098480225,
-0.06939263641834259,
0.003714732825756073,
0.5728480815887451,
0.4226834177970886,
0.1594146490097046,
0.3275999128818512,
0.0024071335792541504,
0.6448267102241516,
-0.009567507542669773,
0.28222137689590454,
0.6291104555130005,
-0.1618082970380783,
0.12195474654436111,
0.11706715077161789,
-0.24063989520072937,
0.08766794204711914,
-0.07544839382171631,
0.0392875075340271,
0.25699037313461304,
-0.03165533021092415,
-0.004586867988109589,
-0.3665602505207062,
-0.10463066399097443,
-0.2244952917098999,
-0.15806598961353302,
-0.02123657427728176,
0.06894010305404663,
0.11236988008022308,
0.07938101887702942,
-0.12036769837141037,
-0.01765771582722664,
-0.20996561646461487,
0.19761614501476288,
0.6311361789703369,
0.07240830361843109,
0.1644384264945984,
0.42671698331832886,
0.23703356087207794,
-0.5568386912345886,
0.1474599689245224,
0.2749116122722626,
0.2561472952365875,
-0.13570266962051392,
-0.0030324384570121765,
0.24880211055278778,
0.04043402150273323,
0.7217108011245728,
-0.22333581745624542,
0.12605974078178406,
0.010675869882106781,
-0.22987739741802216,
0.1163211390376091,
-0.10706043988466263,
-0.1702565997838974,
-0.03904624283313751,
-0.03720886632800102,
-0.19609174132347107,
-0.03007657825946808,
-0.3179141879081726,
0.17912493646144867,
0.021120617166161537,
-0.1266050785779953,
-0.2111358940601349,
-0.08824831247329712,
-0.22414132952690125,
-0.3866353929042816,
-0.2749641537666321,
0.02034052647650242,
0.0635192021727562,
0.36866429448127747,
0.17042569816112518,
0.10554563254117966,
0.0657217800617218,
0.10887935012578964,
-0.10176454484462738,
-0.1081663966178894,
0.050609100610017776,
-0.09233999997377396,
0.08700066804885864,
0.0051074400544166565,
0.09400717169046402,
0.432365745306015,
-0.12011696398258209,
-0.2625788450241089,
0.07162289321422577,
-0.007045552134513855,
0.4004999101161957,
0.3010061979293823,
-0.11694888025522232,
-0.1035781279206276,
-0.24222126603126526,
0.1936790496110916,
-0.2980014681816101,
0.038714710623025894,
0.5218784809112549,
-0.29222962260246277,
-0.1588192731142044,
-0.21696317195892334,
0.45702794194221497,
-0.08375152200460434,
-0.07354048639535904,
0.10267676413059235,
0.18854954838752747,
-0.05621921271085739,
-0.13397641479969025,
-0.184402197599411,
0.9474810361862183,
0.0006263516843318939,
0.22728417813777924,
0.2905670404434204,
-0.2102322280406952,
0.3450113832950592,
-0.3195679783821106,
0.181458979845047,
-0.14744612574577332,
0.1320079267024994,
-0.3124767541885376,
-0.07642503082752228,
0.016385860741138458,
0.03755147010087967,
-0.14464689791202545,
0.3108084797859192,
-0.025656532496213913,
0.08774223923683167,
0.21163956820964813,
0.4602811932563782,
0.10355130583047867,
-0.10530036687850952,
-0.024123389273881912,
0.14786159992218018,
-0.175270214676857,
0.5175884366035461,
-0.17657259106636047,
-0.3218095302581787,
-0.13660883903503418,
-0.16973993182182312,
-0.37185198068618774,
0.07585403323173523,
-0.3833492398262024,
0.08241648226976395,
-0.10638183355331421,
-0.3292469382286072,
0.12299340963363647,
-0.07232901453971863,
-0.42427945137023926,
-0.24120838940143585,
-0.254848450422287,
-0.17429137229919434,
-0.29517990350723267,
-0.1632641702890396,
-0.061075061559677124,
0.22467312216758728,
0.1811346560716629,
-0.2808566987514496,
-0.013047076761722565,
-0.07245103269815445,
-0.02464718371629715,
-0.3059977889060974,
0.33012717962265015,
0.20875361561775208,
0.045778788626194,
0.03931426256895065,
-0.2539334297180176,
-0.03122629225254059,
-0.11956629157066345,
-0.1648339033126831,
0.07899165898561478,
0.030456751585006714,
-0.2807345688343048,
-0.09416573494672775,
0.011865481734275818,
-0.10392100363969803,
-0.10886447131633759,
0.41570043563842773,
-0.34466713666915894,
0.006845854222774506,
0.1697714775800705,
0.1644347757101059,
-0.24809537827968597,
-0.16565613448619843,
0.24736425280570984,
-0.2960805296897888,
-0.26611950993537903,
0.19130127131938934,
-0.10051239281892776,
-0.09426738321781158,
-0.05053646117448807,
0.6551603674888611,
0.4011157751083374,
-0.12813913822174072,
-0.2591778337955475,
-0.4842570722103119,
-0.06431109458208084,
-0.2011122852563858,
-0.2008964866399765,
-0.06648357212543488,
-0.44696328043937683,
0.17067508399486542,
0.4031457006931305,
-0.25081390142440796,
-0.22102604806423187,
0.12316957861185074,
-0.07197348028421402,
-0.12792465090751648,
0.5456646680831909,
0.15783458948135376,
0.3221294581890106,
0.07881782948970795,
-0.06060321629047394,
-0.01219308003783226,
-0.285648375749588,
-0.02991865947842598,
-0.23067794740200043,
0.2108377367258072,
0.21614891290664673,
-0.16580730676651,
0.12583909928798676,
-0.23797275125980377,
-0.3372805714607239,
0.27759137749671936,
-0.16969172656536102,
0.07001076638698578,
0.011996839195489883,
0.1533852219581604,
0.2888012230396271,
-0.28978216648101807,
-0.18607082962989807,
0.3590415418148041,
0.1816692054271698,
0.6558065414428711,
-0.14969922602176666,
0.0859207808971405,
-0.0532657615840435,
0.06039518117904663,
-0.020698538050055504,
-0.07714919000864029,
0.006219051778316498,
-0.20311522483825684,
0.5135409235954285,
-0.053860075771808624,
0.1767507642507553,
0.4479878544807434,
0.3833983242511749,
0.31800755858421326,
0.2119264304637909,
0.1303652822971344,
0.42605042457580566,
0.046212948858737946,
-0.33847516775131226,
-0.2188008725643158,
0.19324688613414764,
0.20059405267238617,
-0.025260156020522118,
0.22888031601905823,
0.08272270858287811,
-0.03422923386096954,
-0.04375569522380829,
-0.07204267382621765,
0.31874600052833557,
0.18032580614089966,
-0.053669389337301254,
0.26913654804229736,
-0.0442194864153862,
0.26052388548851013,
0.1503637731075287,
0.3784710466861725,
0.1672924906015396,
0.04112391173839569,
-0.20378956198692322,
-0.04127983748912811,
0.06445010751485825,
0.005270678550004959,
0.16375380754470825,
-0.4510174095630646,
0.07034151256084442,
-0.1305045187473297,
0.17434825003147125,
-0.032742083072662354,
0.07069078087806702,
0.41588094830513,
-0.31377166509628296,
-0.03692668303847313,
-0.2504670321941376,
0.33883944153785706,
0.04198334738612175,
0.36529675126075745,
0.16480383276939392,
-0.06354053318500519,
-0.46715980768203735,
-0.02566632814705372,
0.03549423813819885,
-0.2077416032552719,
-0.00603746622800827,
0.22092755138874054,
0.16048884391784668,
-0.10419540852308273,
-0.2530538737773895,
-0.3030155301094055,
-0.037219829857349396,
-0.43895938992500305,
-0.05742514133453369,
-0.1826450675725937,
-0.23764288425445557,
0.02711508981883526,
0.26444077491760254,
0.33025118708610535,
0.22793081402778625,
-0.037719983607530594,
-0.1494462639093399,
-0.3516339957714081,
0.06966597586870193,
-0.12071135640144348,
0.3769831657409668,
0.3315570652484894,
0.22899335622787476,
0.310768723487854,
-0.06156979501247406,
-0.051290955394506454,
0.09130413830280304,
0.015280630439519882,
-0.27574241161346436,
-0.04642246291041374,
0.8493896722793579,
0.12109965085983276,
0.04985411465167999,
-0.1883586347103119,
-0.14591112732887268,
-0.32663580775260925,
0.27838966250419617,
0.11926701664924622,
-0.21391171216964722,
0.12609469890594482,
-0.11555220186710358,
0.018072277307510376,
-0.06888236105442047,
0.3841584026813507,
0.523017406463623,
0.04760380834341049,
-0.16059041023254395,
-0.06819930672645569,
-0.8967124223709106,
0.13468393683433533,
0.0837278962135315,
-0.17976972460746765,
0.00020714383572340012,
0.02018089033663273,
-0.01399325579404831,
0.43840867280960083,
0.10662363469600677,
0.28034716844558716,
0.13674144446849823,
-0.13464638590812683,
-0.07517319917678833,
-0.13756364583969116,
-0.10808698832988739,
0.1513873189687729,
-0.13662949204444885,
0.00822187215089798,
0.19519315659999847,
-0.4555896818637848,
-0.05401771143078804,
-0.2818756103515625,
-0.27337032556533813,
-0.26014626026153564,
-0.040161773562431335,
0.5165081024169922,
0.10688836127519608,
0.27017921209335327,
-0.028475282713770866,
-0.04654332995414734,
-0.11679860949516296,
0.2739855647087097,
-0.34698131680488586,
0.09591034054756165,
-0.15649394690990448,
-0.020271725952625275,
-0.2311905324459076,
0.3776462972164154,
-0.6342609524726868,
-0.03796326369047165,
-0.1673162281513214,
0.3864784836769104,
-0.40037161111831665,
-0.13726748526096344,
-0.3108040988445282,
-0.08620450645685196,
0.48234713077545166,
0.1522890329360962,
-0.12663611769676208,
0.006546935066580772,
-0.4691944122314453,
-0.1850828230381012,
0.32314661145210266,
-0.10221775621175766,
-0.08732727915048599,
-0.06310320645570755,
0.2039916068315506,
-0.11149007827043533,
-0.14190447330474854,
-0.2607579529285431,
-0.26644936203956604,
0.19003717601299286,
-0.06054726988077164,
-0.1300034523010254,
0.014106886461377144,
-0.2847539782524109,
-0.17562024295330048,
-0.004369884729385376,
0.27460622787475586,
0.05751299113035202,
-0.1825053095817566,
-0.025479331612586975,
0.00803881511092186
] |
https://github.com/huggingface/datasets/issues/721 | feat(dl_manager): add support for ftp downloads | The dataset loader is not yet ready, because of that issue.
If you want to just download the dataset the old-fashioned way, just go to: https://www-i6.informatik.rwth-aachen.de/ftp/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz (the ftp link is now broken, and its available over https) | I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
| 37 | feat(dl_manager): add support for ftp downloads
I am working on a new dataset (#302) and encounter a problem downloading it.
```python
# This is the official download link from https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/
_URL = "ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz"
dl_manager.download_and_extract(_URL)
```
I get an error:
> ValueError: unable to parse ftp://wasserstoff.informatik.rwth-aachen.de/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz as a URL or as a local path
I checked, and indeed you don't consider `ftp` as a remote file.
https://github.com/huggingface/datasets/blob/4c2af707a6955cf4b45f83ac67990395327c5725/src/datasets/utils/file_utils.py#L188
Adding `ftp` to that list does not immediately solve the issue, so there probably needs to be some extra work.
The dataset loader is not yet ready, because of that issue.
If you want to just download the dataset the old-fashioned way, just go to: https://www-i6.informatik.rwth-aachen.de/ftp/pub/rwth-phoenix/2016/phoenix-2014-T.v3.tar.gz (the ftp link is now broken, and its available over https) | [
-0.28215113282203674,
-0.021540746092796326,
-0.008781099691987038,
0.2353300005197525,
-0.07501132041215897,
0.0881376639008522,
-0.2813766896724701,
0.460962176322937,
0.23764503002166748,
0.021310284733772278,
0.019712865352630615,
0.07932388037443161,
-0.11204049736261368,
0.028805213049054146,
0.20748364925384521,
-0.2595871090888977,
-0.1745922565460205,
0.05007825791835785,
0.08607348799705505,
0.1392570585012436,
-0.3367645740509033,
0.2255442887544632,
0.09330245852470398,
0.0308639295399189,
0.025062812492251396,
-0.02685069479048252,
-0.047163330018520355,
0.21056410670280457,
-0.3284511864185333,
-0.45841121673583984,
0.1427452117204666,
0.07750964164733887,
0.4306088387966156,
0.24096596240997314,
-0.0001195454242406413,
0.019430480897426605,
0.3105315566062927,
-0.059762224555015564,
-0.19214679300785065,
-0.4733147621154785,
-0.5679837465286255,
-0.4453575015068054,
0.19625121355056763,
-0.022595740854740143,
0.14276385307312012,
-0.3135256767272949,
-0.05875333398580551,
0.1872796267271042,
0.1010841652750969,
0.5034632682800293,
0.1821434199810028,
0.27581527829170227,
0.09172642230987549,
-0.19381485879421234,
0.3306165933609009,
-0.05641189217567444,
-0.05309053510427475,
0.26481738686561584,
0.2582600712776184,
-0.10796882212162018,
0.09602151066064835,
-0.3503322899341583,
-0.09964403510093689,
0.2647416889667511,
0.29082417488098145,
0.14888721704483032,
0.15821364521980286,
-0.4356733560562134,
-0.324685275554657,
0.2026762068271637,
0.7000163197517395,
0.062067437916994095,
-0.27140113711357117,
-0.044345855712890625,
-0.08640681952238083,
-0.025466566905379295,
0.19955754280090332,
0.032734282314777374,
-0.36219021677970886,
0.19356659054756165,
0.16488295793533325,
-0.3147103786468506,
-0.2591263949871063,
0.36368995904922485,
-0.19132527709007263,
0.5927683115005493,
0.03555014356970787,
-0.13138025999069214,
0.2586606442928314,
0.24218270182609558,
-0.13672290742397308,
-0.1332246959209442,
0.10571160167455673,
0.07022695988416672,
0.2541283965110779,
-0.06787474453449249,
0.035364773124456406,
-0.35704293847084045,
-0.04152405634522438,
0.32229703664779663,
0.13605614006519318,
-0.0897943452000618,
-0.17428280413150787,
0.2492261528968811,
0.07410931587219238,
0.300993949174881,
-0.17960599064826965,
-0.04777474328875542,
0.4765815734863281,
0.267205148935318,
0.3262309432029724,
0.05760137364268303,
-0.13510896265506744,
-0.15354545414447784,
-0.4611133933067322,
0.07149391621351242,
0.2145242840051651,
-0.1443416029214859,
-0.18934249877929688,
0.03240587189793587,
-0.15435510873794556,
-0.18040309846401215,
-0.07669946551322937,
0.16690069437026978,
-0.18122383952140808,
0.22348690032958984,
0.04028815031051636,
0.19876250624656677,
0.0476837083697319,
-0.3713333308696747,
0.009126774966716766,
-0.04195437207818031,
-0.012116711586713791,
-0.17977485060691833,
0.16049525141716003,
0.18979910016059875,
-0.02757430635392666,
-0.15267080068588257,
-0.006594501435756683,
0.12848521769046783,
-0.027258094400167465,
-0.014349181205034256,
0.12196430563926697,
0.4336201548576355,
0.05771951004862785,
0.20977121591567993,
0.06330325454473495,
-0.181621253490448,
-0.14941544830799103,
0.3578703999519348,
-0.11707135289907455,
-0.4218946099281311,
-0.4223872423171997,
0.09207573533058167,
-0.34404462575912476,
-0.4904933273792267,
-0.31250888109207153,
0.16327029466629028,
-0.3456207513809204,
-0.22327905893325806,
-0.15606439113616943,
0.11607355624437332,
-0.22579291462898254,
-0.1811290681362152,
0.13524450361728668,
0.3909868001937866,
-0.49291279911994934,
0.024676315486431122,
-0.3338528573513031,
-0.290528267621994,
0.47263309359550476,
0.12504933774471283,
-0.15094809234142303,
0.3816465437412262,
-0.37542805075645447,
0.3525732159614563,
0.8150748610496521,
-0.3507857024669647,
-0.3017650246620178,
0.6629592776298523,
-0.336570143699646,
0.06779584288597107,
0.1644967794418335,
-0.05182448774576187,
0.3105319142341614,
-0.24125996232032776,
-0.5735131502151489,
0.5583115816116333,
-0.02126934565603733,
0.027622180059552193,
-0.2257876992225647,
-0.18390175700187683,
0.33852100372314453,
0.022870585322380066,
0.28724372386932373,
0.35356995463371277,
0.38177594542503357,
-0.01453996729105711,
0.3758557438850403,
0.35022109746932983,
0.19771192967891693,
0.15113583207130432,
0.27376312017440796,
0.27918151021003723,
-0.12164930999279022,
-0.19101253151893616,
-0.31829556822776794,
0.12194236367940903,
0.01168140396475792,
0.1984686255455017,
-0.18354593217372894,
0.20578056573867798,
-0.2299390435218811,
-0.029384445399045944,
-0.19185788929462433,
-0.005502570420503616,
-0.052343547344207764,
0.13046494126319885,
0.1405314803123474,
0.06754378974437714,
-0.0822002962231636,
0.04804103076457977,
0.3051607012748718,
0.3396255075931549,
0.11684863269329071,
0.20106638967990875,
-0.21543985605239868,
0.05726374313235283,
0.025471754372119904,
-0.04201757162809372,
0.2511589527130127,
-0.3942451775074005,
-0.15903425216674805,
0.12207509577274323,
-0.0913943350315094,
0.0655207559466362,
0.33801978826522827,
0.22910894453525543,
0.31881535053253174,
0.12124207615852356,
0.0016416572034358978,
0.49017176032066345,
0.1867329478263855,
-0.06287114322185516,
0.048834238201379776,
0.04867676645517349,
0.29361584782600403,
0.2926320731639862,
0.047746896743774414,
0.23959863185882568,
0.2429673969745636,
-0.09540504217147827,
0.09717421233654022,
-0.08274370431900024,
0.19092656672000885,
-0.06490948796272278,
-0.22712714970111847,
-0.21531477570533752,
-0.1315477192401886,
0.03219339996576309,
-0.19213031232357025,
-0.08646823465824127,
0.1772974133491516,
0.3546398878097534,
0.1660158336162567,
-0.011303670704364777,
0.13588200509548187,
0.7480930089950562,
0.30153656005859375,
0.1720658391714096,
0.2561054229736328,
0.06266677379608154,
0.04202442243695259,
-0.2632792890071869,
0.23989513516426086,
0.13175112009048462,
-0.3243546485900879,
0.4762621521949768,
-0.0019006687216460705,
0.15876664221286774,
-0.011127889156341553,
-0.08581849187612534,
0.2294825166463852,
0.36786022782325745,
-0.22462968528270721,
-0.03515256196260452,
-0.6205757856369019,
-0.5866050124168396,
-0.1442279815673828,
-0.13571135699748993,
-0.27361008524894714,
-0.5019881129264832,
-0.13047988712787628,
0.2951658070087433,
-0.07871317118406296,
0.06502699851989746,
-0.3146885633468628,
0.023854345083236694,
-0.25746986269950867,
-0.3764316737651825,
-0.19143693149089813,
0.22123736143112183,
-0.17213380336761475,
0.04123920574784279,
0.33395206928253174,
-0.08311355113983154,
0.33081090450286865,
0.03500664234161377,
0.15132147073745728,
-0.6007012128829956,
-0.028529170900583267,
0.23323869705200195,
-0.06305404752492905,
-0.06240873038768768,
0.102235347032547,
0.11706715822219849,
0.3741825819015503,
-0.06912205368280411,
0.273933470249176,
-0.11586232483386993,
-0.13501855731010437,
-0.14398977160453796,
0.09233115613460541,
-0.026178356260061264,
-0.13693982362747192,
-0.2131214141845703,
-0.4117681086063385,
-0.5828332901000977,
0.027478355914354324,
0.14142656326293945,
0.14130696654319763,
0.08854881674051285,
-0.19581586122512817,
0.16160115599632263,
-0.08866177499294281,
-0.1554051786661148,
0.007740627974271774,
-0.10803920775651932,
0.4505590498447418,
-0.3225882351398468,
-0.4660051763057709,
0.21237334609031677,
0.09727954864501953,
-0.16512149572372437,
0.07072120904922485,
-0.40194815397262573,
-0.31966251134872437,
-0.08208660781383514,
0.29331034421920776,
-0.13560451567173004,
0.2699170410633087,
0.26861631870269775,
-0.10095183551311493,
-0.01885639876127243,
0.07678224891424179,
-0.00017496012151241302,
-0.02755632996559143,
0.48209962248802185,
0.42349371314048767,
0.20950141549110413,
0.3233124017715454,
0.03683387115597725,
0.6444624662399292,
-0.07712920010089874,
0.249420166015625,
0.6027048826217651,
-0.1445821076631546,
0.1560007780790329,
0.15354716777801514,
-0.1989413946866989,
0.0645652562379837,
-0.1352653205394745,
0.10365431010723114,
0.27386346459388733,
-0.029384218156337738,
-0.005009498447179794,
-0.37527427077293396,
-0.008960125967860222,
-0.15813344717025757,
-0.20189803838729858,
0.04223690927028656,
-0.03178713470697403,
0.05607841908931732,
0.1093129813671112,
-0.06331155449151993,
-0.017611462622880936,
-0.21392565965652466,
0.2782015800476074,
0.519491970539093,
0.07084137946367264,
0.14760325849056244,
0.44036367535591125,
0.3020995557308197,
-0.6013340950012207,
0.215566486120224,
0.2751152813434601,
0.3023552894592285,
-0.051928527653217316,
-0.0765482634305954,
0.1519104540348053,
0.04416259378194809,
0.7506869435310364,
-0.12400058656930923,
0.12072072923183441,
-0.02853105589747429,
-0.25303009152412415,
0.0801575556397438,
-0.15670113265514374,
-0.12892507016658783,
-0.04782210662961006,
-0.06672561168670654,
-0.15516038239002228,
-0.050171200186014175,
-0.2962909936904907,
0.18104366958141327,
0.014410863630473614,
-0.17907008528709412,
-0.18307600915431976,
-0.0868663489818573,
-0.2324104905128479,
-0.371751070022583,
-0.2859157919883728,
-0.05251985415816307,
0.06262539327144623,
0.3296980857849121,
0.13403573632240295,
0.12563735246658325,
-0.02143286168575287,
0.09175101667642593,
-0.13595707714557648,
-0.11420727521181107,
0.043966468423604965,
-0.07127080112695694,
0.208993062376976,
0.023188050836324692,
0.03336659073829651,
0.44578033685684204,
-0.14239729940891266,
-0.34273770451545715,
0.038887448608875275,
0.014811555854976177,
0.40801990032196045,
0.2724872827529907,
-0.09875527024269104,
-0.17311537265777588,
-0.21644166111946106,
0.2574450373649597,
-0.33120372891426086,
0.061360519379377365,
0.4953375458717346,
-0.2673085033893585,
-0.1414249688386917,
-0.2788740396499634,
0.43831491470336914,
-0.1001901924610138,
-0.05604981258511543,
0.12507089972496033,
0.13847243785858154,
-0.0760490745306015,
-0.06144452095031738,
-0.23249322175979614,
0.8629671335220337,
0.01442226767539978,
0.23701703548431396,
0.30386000871658325,
-0.175624817609787,
0.3585059642791748,
-0.35000038146972656,
0.16298623383045197,
-0.1360679566860199,
0.0968443900346756,
-0.2991202771663666,
-0.0423143096268177,
0.01236184686422348,
0.08927693963050842,
-0.09158121049404144,
0.37809327244758606,
0.0022055432200431824,
0.06854423135519028,
0.24075479805469513,
0.46328169107437134,
0.11742908507585526,
-0.18823574483394623,
0.004581601358950138,
0.1454017460346222,
-0.24476389586925507,
0.4712463915348053,
-0.20081186294555664,
-0.2791591286659241,
-0.11713780462741852,
-0.2049705535173416,
-0.3058805465698242,
0.1529555320739746,
-0.3597407937049866,
0.18352073431015015,
-0.04284692928195,
-0.25635677576065063,
0.04385509714484215,
-0.07043857872486115,
-0.4570160508155823,
-0.21506579220294952,
-0.2023923695087433,
-0.1428186297416687,
-0.2738179862499237,
-0.07934357970952988,
-0.06131254881620407,
0.192710280418396,
0.1764436811208725,
-0.2176540195941925,
0.041353486478328705,
-0.11097895354032516,
-0.05078615993261337,
-0.4298630952835083,
0.3740626573562622,
0.18342174589633942,
0.03046153299510479,
0.051299721002578735,
-0.1973140835762024,
-0.06991273164749146,
-0.09369392693042755,
-0.19036906957626343,
0.05982835590839386,
0.0476391464471817,
-0.27721330523490906,
-0.04200486093759537,
0.0035590194165706635,
-0.13114628195762634,
-0.08799386024475098,
0.4120776653289795,
-0.394235759973526,
-0.00919785350561142,
0.21968458592891693,
0.1942666471004486,
-0.27737993001937866,
-0.10440576821565628,
0.17719537019729614,
-0.28042295575141907,
-0.2604637145996094,
0.22474423050880432,
-0.12934136390686035,
-0.12740273773670197,
0.014879216440021992,
0.6381235718727112,
0.3654683232307434,
-0.11889585107564926,
-0.2743762135505676,
-0.5013250112533569,
-0.029517922550439835,
-0.17774243652820587,
-0.13806816935539246,
-0.028397928923368454,
-0.33482685685157776,
0.1493629664182663,
0.33050668239593506,
-0.27707892656326294,
-0.20315486192703247,
0.0706724300980568,
0.03925992548465729,
-0.1099809855222702,
0.5276732444763184,
0.1723446249961853,
0.3745482265949249,
0.08890095353126526,
-0.05623805522918701,
-0.0257880799472332,
-0.24586555361747742,
-0.02968662790954113,
-0.27841460704803467,
0.20100849866867065,
0.22453853487968445,
-0.21317195892333984,
0.08543553203344345,
-0.22430507838726044,
-0.2534429728984833,
0.250028133392334,
-0.13315147161483765,
0.08953835815191269,
-0.06411007046699524,
0.08052875846624374,
0.3064456284046173,
-0.2585805654525757,
-0.08823610842227936,
0.38851019740104675,
0.20413713157176971,
0.7370731830596924,
-0.10202474147081375,
0.08508218824863434,
-0.10894882678985596,
0.06464308500289917,
0.021140053868293762,
-0.03225859999656677,
0.05394235625863075,
-0.2059774100780487,
0.5440863370895386,
-0.11166305840015411,
0.16113393008708954,
0.4218922257423401,
0.42942431569099426,
0.3363712430000305,
0.1875033676624298,
0.06615201383829117,
0.42252522706985474,
0.03261774778366089,
-0.2813044786453247,
-0.2828020453453064,
0.14328108727931976,
0.23988747596740723,
-0.05105440691113472,
0.21636980772018433,
0.07336914539337158,
-0.04662877321243286,
-0.05012542009353638,
-0.09491997212171555,
0.33923768997192383,
0.20385466516017914,
-0.05155109986662865,
0.2960549294948578,
-0.09680821001529694,
0.23589424788951874,
0.16674229502677917,
0.2681962251663208,
0.18889756500720978,
0.09043574333190918,
-0.14930382370948792,
-0.018735570833086967,
0.12482822686433792,
0.054237548261880875,
0.07990594208240509,
-0.49314257502555847,
0.12970399856567383,
-0.1220380961894989,
0.1883012354373932,
0.0023201070725917816,
0.1750241070985794,
0.43266385793685913,
-0.3352257311344147,
-0.07598607242107391,
-0.24354535341262817,
0.34193259477615356,
0.06442413479089737,
0.3038136065006256,
0.17192545533180237,
-0.009582996368408203,
-0.4720118045806885,
0.0489579401910305,
0.052340589463710785,
-0.28551381826400757,
-0.06279462575912476,
0.2283143252134323,
0.13874994218349457,
-0.16094046831130981,
-0.2634182572364807,
-0.3478032946586609,
-0.055828757584095,
-0.38855084776878357,
-0.03383711725473404,
-0.11741718649864197,
-0.24949774146080017,
0.03828226029872894,
0.2297581434249878,
0.3301562964916229,
0.21603359282016754,
-0.059186194092035294,
-0.14350995421409607,
-0.35599902272224426,
0.12700553238391876,
-0.1315835416316986,
0.350456565618515,
0.2799953520298004,
0.2201453447341919,
0.33284705877304077,
-0.06127725541591644,
-0.06793022155761719,
0.0908694788813591,
0.050615109503269196,
-0.24127620458602905,
0.017053302377462387,
0.8381713628768921,
0.19835008680820465,
0.06317127496004105,
-0.21760320663452148,
-0.11210193485021591,
-0.3152913749217987,
0.2876058518886566,
0.14849218726158142,
-0.26483702659606934,
0.09577682614326477,
-0.12585271894931793,
0.01860436424612999,
-0.014504402875900269,
0.38020655512809753,
0.5779771208763123,
0.002276882529258728,
-0.1475173383951187,
-0.031914930790662766,
-0.8814556002616882,
0.17089305818080902,
0.018744196742773056,
-0.09223808348178864,
-0.015341322869062424,
-0.021130777895450592,
0.05782993882894516,
0.4521677494049072,
0.09349517524242401,
0.2524433732032776,
0.1607099175453186,
-0.15447898209095,
-0.0674721747636795,
-0.11285252869129181,
-0.09110420942306519,
0.17653100192546844,
-0.15614278614521027,
-0.08533380180597305,
0.15650171041488647,
-0.41840893030166626,
-0.06968219578266144,
-0.23247499763965607,
-0.2883925437927246,
-0.25315654277801514,
-0.10121916234493256,
0.5299971103668213,
0.10749412328004837,
0.2558777630329132,
0.03117135912179947,
-0.07503236830234528,
-0.183996319770813,
0.21731805801391602,
-0.37208032608032227,
0.10146482288837433,
-0.19892965257167816,
-0.035730257630348206,
-0.2310819774866104,
0.41019904613494873,
-0.6611531972885132,
0.019822625443339348,
-0.17629468441009521,
0.3600582778453827,
-0.4730420410633087,
-0.08848454058170319,
-0.392757773399353,
-0.12018860131502151,
0.4417954683303833,
0.14231786131858826,
-0.08315698802471161,
0.02821112982928753,
-0.43815088272094727,
-0.18118903040885925,
0.2574198246002197,
-0.1110696867108345,
-0.09026134014129639,
-0.07280629128217697,
0.13081973791122437,
-0.1639689803123474,
-0.08211328834295273,
-0.20271849632263184,
-0.2316455841064453,
0.12642645835876465,
-0.0672130435705185,
-0.08799661695957184,
-0.031900860369205475,
-0.2705276906490326,
-0.19203625619411469,
-0.022018756717443466,
0.2878773510456085,
0.09036064147949219,
-0.1675289124250412,
-0.039388690143823624,
0.025584328919649124
] |
https://github.com/huggingface/datasets/issues/720 | OSError: Cannot find data file when not using the dummy dataset in RAG | Same issue here. I will be digging further, but it looks like the [script](https://github.com/huggingface/datasets/blob/master/datasets/wiki_dpr/wiki_dpr.py#L132) is attempting to open a file that is not downloaded yet.
```
99dcbca09109e58502e6b9271d4d3f3791b43f61f3161a76b25d2775ab1a4498.lock
```
```
---------------------------------------------------------------------------
UnpicklingError Traceback (most recent call last)
~/anaconda3/envs/eqa/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
446 try:
--> 447 return pickle.load(fid, **pickle_kwargs)
448 except Exception:
UnpicklingError: pickle data was truncated
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
~/src/datasets/src/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
559
--> 560 if verify_infos:
561 verify_splits(self.info.splits, split_dict)
~/src/datasets/src/datasets/builder.py in _prepare_split(self, split_generator)
847 writer.write(example)
--> 848 finally:
849 num_examples, num_bytes = writer.finalize()
~/anaconda3/envs/eqa/lib/python3.7/site-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
227 try:
--> 228 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
229 # return super(tqdm...) will not catch exception
~/anaconda3/envs/eqa/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1132 try:
-> 1133 for obj in iterable:
1134 yield obj
/hdd/rag/cache/huggingface/modules/datasets_modules/datasets/wiki_dpr/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2/wiki_dpr.py in _generate_examples(self, data_file, vectors_files)
131 break
--> 132 vecs = np.load(open(vectors_files.pop(0), "rb"), allow_pickle=True)
133 vec_idx = 0
~/anaconda3/envs/eqa/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
449 raise IOError(
--> 450 "Failed to interpret file %s as a pickle" % repr(file))
451
OSError: Failed to interpret file <_io.BufferedReader name='/hdd/rag/downloads/99dcbca09109e58502e6b9271d4d3f3791b43f61f3161a76b25d2775ab1a4498'> as a pickle
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-8-24351ff8ce44> in <module>
4 retriever = RagRetriever.from_pretrained("facebook/rag-sequence-nq",
5 index_name="exact",
----> 6 use_dummy_dataset=False)
~/src/transformers/src/transformers/retrieval_rag.py in from_pretrained(cls, retriever_name_or_path, **kwargs)
321 generator_tokenizer = rag_tokenizer.generator
322 return cls(
--> 323 config, question_encoder_tokenizer=question_encoder_tokenizer, generator_tokenizer=generator_tokenizer
324 )
325
~/src/transformers/src/transformers/retrieval_rag.py in __init__(self, config, question_encoder_tokenizer, generator_tokenizer)
310 self.config = config
311 if self._init_retrieval:
--> 312 self.init_retrieval()
313
314 @classmethod
~/src/transformers/src/transformers/retrieval_rag.py in init_retrieval(self)
338
339 logger.info("initializing retrieval")
--> 340 self.index.init_index()
341
342 def postprocess_docs(self, docs, input_strings, prefix, n_docs, return_tensors=None):
~/src/transformers/src/transformers/retrieval_rag.py in init_index(self)
248 split=self.dataset_split,
249 index_name=self.index_name,
--> 250 dummy=self.use_dummy_dataset,
251 )
252 self.dataset.set_format("numpy", columns=["embeddings"], output_all_columns=True)
~/src/datasets/src/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
615 builder_instance.download_and_prepare(
616 download_config=download_config,
--> 617 download_mode=download_mode,
618 ignore_verifications=ignore_verifications,
619 )
~/src/datasets/src/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
481 # Sync info
482 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
--> 483 self.info.download_checksums = dl_manager.get_recorded_sizes_checksums()
484 self.info.size_in_bytes = self.info.dataset_size + self.info.download_size
485 # Save info
~/src/datasets/src/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
560 if verify_infos:
561 verify_splits(self.info.splits, split_dict)
--> 562
563 # Update the info object with the splits.
564 self.info.splits = split_dict
OSError: Cannot find data file.
```
Thank you. | ## Environment info
transformers version: 3.3.1
Platform: Linux-4.19
Python version: 3.7.7
PyTorch version (GPU?): 1.6.0
Tensorflow version (GPU?): No
Using GPU in script?: Yes
Using distributed or parallel set-up in script?: No
## To reproduce
Steps to reproduce the behaviour:
```
import os
os.environ['HF_DATASETS_CACHE'] = '/workspace/notebooks/POCs/cache'
from transformers import RagTokenizer, RagRetriever, RagTokenForGeneration
tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=False)
```
Plese note that I'm using the whole dataset: **use_dummy_dataset=False**
After around 4 hours (downloading and some other things) this is returned:
```
Downloading and preparing dataset wiki_dpr/psgs_w100.nq.exact (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /workspace/notebooks/POCs/cache/wiki_dpr/psgs_w100.nq.exact/0.0.0/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2...
---------------------------------------------------------------------------
UnpicklingError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
459 try:
--> 460 return pickle.load(fid, **pickle_kwargs)
461 except Exception:
UnpicklingError: pickle data was truncated
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
552 # Prepare split will record examples associated to the split
--> 553 self._prepare_split(split_generator, **prepare_split_kwargs)
554 except OSError:
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _prepare_split(self, split_generator)
840 for key, record in utils.tqdm(
--> 841 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
842 ):
/opt/conda/lib/python3.7/site-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
217 try:
--> 218 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
219 # return super(tqdm...) will not catch exception
/opt/conda/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
~/.cache/huggingface/modules/datasets_modules/datasets/wiki_dpr/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2/wiki_dpr.py in _generate_examples(self, data_file, vectors_files)
131 break
--> 132 vecs = np.load(open(vectors_files.pop(0), "rb"), allow_pickle=True)
133 vec_idx = 0
/opt/conda/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
462 raise IOError(
--> 463 "Failed to interpret file %s as a pickle" % repr(file))
464 finally:
OSError: Failed to interpret file <_io.BufferedReader name='/workspace/notebooks/POCs/cache/downloads/f34d5f091294259b4ca90e813631e69a6ded660d71b6cbedf89ddba50df94448'> as a pickle
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-10-f28df370ac47> in <module>
1 # ln -s /workspace/notebooks/POCs/cache /root/.cache/huggingface/datasets
----> 2 retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=False)
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in from_pretrained(cls, retriever_name_or_path, **kwargs)
307 generator_tokenizer = rag_tokenizer.generator
308 return cls(
--> 309 config, question_encoder_tokenizer=question_encoder_tokenizer, generator_tokenizer=generator_tokenizer
310 )
311
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in __init__(self, config, question_encoder_tokenizer, generator_tokenizer)
298 self.config = config
299 if self._init_retrieval:
--> 300 self.init_retrieval()
301
302 @classmethod
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in init_retrieval(self)
324
325 logger.info("initializing retrieval")
--> 326 self.index.init_index()
327
328 def postprocess_docs(self, docs, input_strings, prefix, n_docs, return_tensors=None):
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in init_index(self)
238 split=self.dataset_split,
239 index_name=self.index_name,
--> 240 dummy=self.use_dummy_dataset,
241 )
242 self.dataset.set_format("numpy", columns=["embeddings"], output_all_columns=True)
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
474 if not downloaded_from_gcs:
475 self._download_and_prepare(
--> 476 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
477 )
478 # Sync info
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
553 self._prepare_split(split_generator, **prepare_split_kwargs)
554 except OSError:
--> 555 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
556
557 if verify_infos:
OSError: Cannot find data file.
```
Thanks
| 387 | OSError: Cannot find data file when not using the dummy dataset in RAG
## Environment info
transformers version: 3.3.1
Platform: Linux-4.19
Python version: 3.7.7
PyTorch version (GPU?): 1.6.0
Tensorflow version (GPU?): No
Using GPU in script?: Yes
Using distributed or parallel set-up in script?: No
## To reproduce
Steps to reproduce the behaviour:
```
import os
os.environ['HF_DATASETS_CACHE'] = '/workspace/notebooks/POCs/cache'
from transformers import RagTokenizer, RagRetriever, RagTokenForGeneration
tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=False)
```
Plese note that I'm using the whole dataset: **use_dummy_dataset=False**
After around 4 hours (downloading and some other things) this is returned:
```
Downloading and preparing dataset wiki_dpr/psgs_w100.nq.exact (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /workspace/notebooks/POCs/cache/wiki_dpr/psgs_w100.nq.exact/0.0.0/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2...
---------------------------------------------------------------------------
UnpicklingError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
459 try:
--> 460 return pickle.load(fid, **pickle_kwargs)
461 except Exception:
UnpicklingError: pickle data was truncated
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
552 # Prepare split will record examples associated to the split
--> 553 self._prepare_split(split_generator, **prepare_split_kwargs)
554 except OSError:
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _prepare_split(self, split_generator)
840 for key, record in utils.tqdm(
--> 841 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
842 ):
/opt/conda/lib/python3.7/site-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
217 try:
--> 218 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
219 # return super(tqdm...) will not catch exception
/opt/conda/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
~/.cache/huggingface/modules/datasets_modules/datasets/wiki_dpr/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2/wiki_dpr.py in _generate_examples(self, data_file, vectors_files)
131 break
--> 132 vecs = np.load(open(vectors_files.pop(0), "rb"), allow_pickle=True)
133 vec_idx = 0
/opt/conda/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
462 raise IOError(
--> 463 "Failed to interpret file %s as a pickle" % repr(file))
464 finally:
OSError: Failed to interpret file <_io.BufferedReader name='/workspace/notebooks/POCs/cache/downloads/f34d5f091294259b4ca90e813631e69a6ded660d71b6cbedf89ddba50df94448'> as a pickle
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-10-f28df370ac47> in <module>
1 # ln -s /workspace/notebooks/POCs/cache /root/.cache/huggingface/datasets
----> 2 retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=False)
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in from_pretrained(cls, retriever_name_or_path, **kwargs)
307 generator_tokenizer = rag_tokenizer.generator
308 return cls(
--> 309 config, question_encoder_tokenizer=question_encoder_tokenizer, generator_tokenizer=generator_tokenizer
310 )
311
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in __init__(self, config, question_encoder_tokenizer, generator_tokenizer)
298 self.config = config
299 if self._init_retrieval:
--> 300 self.init_retrieval()
301
302 @classmethod
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in init_retrieval(self)
324
325 logger.info("initializing retrieval")
--> 326 self.index.init_index()
327
328 def postprocess_docs(self, docs, input_strings, prefix, n_docs, return_tensors=None):
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in init_index(self)
238 split=self.dataset_split,
239 index_name=self.index_name,
--> 240 dummy=self.use_dummy_dataset,
241 )
242 self.dataset.set_format("numpy", columns=["embeddings"], output_all_columns=True)
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
474 if not downloaded_from_gcs:
475 self._download_and_prepare(
--> 476 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
477 )
478 # Sync info
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
553 self._prepare_split(split_generator, **prepare_split_kwargs)
554 except OSError:
--> 555 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
556
557 if verify_infos:
OSError: Cannot find data file.
```
Thanks
Same issue here. I will be digging further, but it looks like the [script](https://github.com/huggingface/datasets/blob/master/datasets/wiki_dpr/wiki_dpr.py#L132) is attempting to open a file that is not downloaded yet.
```
99dcbca09109e58502e6b9271d4d3f3791b43f61f3161a76b25d2775ab1a4498.lock
```
```
---------------------------------------------------------------------------
UnpicklingError Traceback (most recent call last)
~/anaconda3/envs/eqa/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
446 try:
--> 447 return pickle.load(fid, **pickle_kwargs)
448 except Exception:
UnpicklingError: pickle data was truncated
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
~/src/datasets/src/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
559
--> 560 if verify_infos:
561 verify_splits(self.info.splits, split_dict)
~/src/datasets/src/datasets/builder.py in _prepare_split(self, split_generator)
847 writer.write(example)
--> 848 finally:
849 num_examples, num_bytes = writer.finalize()
~/anaconda3/envs/eqa/lib/python3.7/site-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
227 try:
--> 228 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
229 # return super(tqdm...) will not catch exception
~/anaconda3/envs/eqa/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1132 try:
-> 1133 for obj in iterable:
1134 yield obj
/hdd/rag/cache/huggingface/modules/datasets_modules/datasets/wiki_dpr/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2/wiki_dpr.py in _generate_examples(self, data_file, vectors_files)
131 break
--> 132 vecs = np.load(open(vectors_files.pop(0), "rb"), allow_pickle=True)
133 vec_idx = 0
~/anaconda3/envs/eqa/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
449 raise IOError(
--> 450 "Failed to interpret file %s as a pickle" % repr(file))
451
OSError: Failed to interpret file <_io.BufferedReader name='/hdd/rag/downloads/99dcbca09109e58502e6b9271d4d3f3791b43f61f3161a76b25d2775ab1a4498'> as a pickle
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-8-24351ff8ce44> in <module>
4 retriever = RagRetriever.from_pretrained("facebook/rag-sequence-nq",
5 index_name="exact",
----> 6 use_dummy_dataset=False)
~/src/transformers/src/transformers/retrieval_rag.py in from_pretrained(cls, retriever_name_or_path, **kwargs)
321 generator_tokenizer = rag_tokenizer.generator
322 return cls(
--> 323 config, question_encoder_tokenizer=question_encoder_tokenizer, generator_tokenizer=generator_tokenizer
324 )
325
~/src/transformers/src/transformers/retrieval_rag.py in __init__(self, config, question_encoder_tokenizer, generator_tokenizer)
310 self.config = config
311 if self._init_retrieval:
--> 312 self.init_retrieval()
313
314 @classmethod
~/src/transformers/src/transformers/retrieval_rag.py in init_retrieval(self)
338
339 logger.info("initializing retrieval")
--> 340 self.index.init_index()
341
342 def postprocess_docs(self, docs, input_strings, prefix, n_docs, return_tensors=None):
~/src/transformers/src/transformers/retrieval_rag.py in init_index(self)
248 split=self.dataset_split,
249 index_name=self.index_name,
--> 250 dummy=self.use_dummy_dataset,
251 )
252 self.dataset.set_format("numpy", columns=["embeddings"], output_all_columns=True)
~/src/datasets/src/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
615 builder_instance.download_and_prepare(
616 download_config=download_config,
--> 617 download_mode=download_mode,
618 ignore_verifications=ignore_verifications,
619 )
~/src/datasets/src/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
481 # Sync info
482 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
--> 483 self.info.download_checksums = dl_manager.get_recorded_sizes_checksums()
484 self.info.size_in_bytes = self.info.dataset_size + self.info.download_size
485 # Save info
~/src/datasets/src/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
560 if verify_infos:
561 verify_splits(self.info.splits, split_dict)
--> 562
563 # Update the info object with the splits.
564 self.info.splits = split_dict
OSError: Cannot find data file.
```
Thank you. | [
-0.225868821144104,
-0.048717595636844635,
0.012397438287734985,
0.10525498539209366,
0.37066686153411865,
-0.06985393166542053,
0.33231642842292786,
0.26923006772994995,
0.01551273837685585,
0.3250916004180908,
-0.1394265741109848,
0.21765241026878357,
-0.06373469531536102,
-0.3219817578792572,
-0.015681501477956772,
0.03875124454498291,
0.008864954113960266,
0.17694461345672607,
-0.20713064074516296,
-0.22746945917606354,
-0.2748768925666809,
0.07126554101705551,
-0.2206946313381195,
-0.024129226803779602,
-0.6810175180435181,
0.1146390363574028,
-0.0578160434961319,
0.3083195090293884,
-0.19542372226715088,
-0.25163039565086365,
0.2026071697473526,
-0.3225422203540802,
0.22631892561912537,
0.7035831809043884,
-0.00012254234752617776,
0.2990081310272217,
0.14293289184570312,
-0.27356597781181335,
-0.2608668804168701,
-0.27868878841400146,
0.4701991379261017,
-0.0021998966112732887,
-0.13363666832447052,
-0.2349148988723755,
-0.38790401816368103,
-0.01792183145880699,
0.1504860669374466,
-0.26080411672592163,
0.11464738845825195,
0.44538864493370056,
0.12014009058475494,
0.5135033130645752,
-0.07892656326293945,
-0.16660620272159576,
0.44164058566093445,
-0.13211199641227722,
-0.24562861025333405,
0.28807082772254944,
0.13557490706443787,
-0.3839831054210663,
-0.22443601489067078,
0.3043578267097473,
0.03579477220773697,
0.2144894003868103,
0.0499642938375473,
0.1509963423013687,
-0.3310997486114502,
-0.1621895581483841,
0.20348906517028809,
0.15927842259407043,
0.4668172597885132,
-0.10246030241250992,
-0.41012629866600037,
0.10785316675901413,
-0.1492985337972641,
-0.011892573907971382,
0.30808281898498535,
0.2507411241531372,
-0.23079325258731842,
0.3093445301055908,
-0.1880168616771698,
0.14112110435962677,
-0.18381139636039734,
0.3203997015953064,
-0.10916827619075775,
0.5142391920089722,
-0.05978578329086304,
0.13334472477436066,
0.05150071159005165,
0.26698315143585205,
-0.12754839658737183,
-0.05327160656452179,
0.25685641169548035,
0.11072622984647751,
-0.4334580898284912,
-0.08514755219221115,
-0.14175808429718018,
-0.22814571857452393,
0.009054932743310928,
0.2838829755783081,
0.11903995275497437,
-0.08728029578924179,
-0.05061730742454529,
0.05590163543820381,
-0.07479265332221985,
0.0031034136191010475,
-0.4398024082183838,
0.3263705372810364,
0.1369171291589737,
0.06339619308710098,
-0.061738766729831696,
-0.2556207776069641,
0.012468492612242699,
-0.07520478218793869,
-0.13775800168514252,
-0.08306737244129181,
0.2952480912208557,
-0.14191477000713348,
-0.37926703691482544,
-0.13765153288841248,
-0.27183055877685547,
0.04491576924920082,
-0.06491921842098236,
0.5335163474082947,
-0.17624489963054657,
0.09424358606338501,
0.22335125505924225,
0.2114507555961609,
-0.3598036468029022,
-0.21351607143878937,
-0.18942034244537354,
0.19140265882015228,
-0.25897178053855896,
-0.06955824047327042,
0.3361578583717346,
0.15156054496765137,
0.5469791889190674,
-0.042223572731018066,
-0.03957919031381607,
0.07573790103197098,
0.5255907773971558,
-0.3452496826648712,
0.18525102734565735,
0.36714115738868713,
-0.09573718905448914,
0.10221454501152039,
0.31972354650497437,
0.010770745575428009,
-0.004844188690185547,
0.16021373867988586,
-0.13479432463645935,
-0.44028300046920776,
-0.01593135856091976,
0.12305926531553268,
-0.09644843637943268,
-0.0022723302245140076,
0.5216626524925232,
-0.3452540636062622,
0.015045180916786194,
-0.01869892328977585,
0.11257878690958023,
-0.0878421738743782,
-0.35880589485168457,
-0.1775871366262436,
0.16570541262626648,
0.36995482444763184,
-0.4192667007446289,
-0.060725137591362,
0.09742967784404755,
0.13548260927200317,
0.27266958355903625,
0.4072973132133484,
-0.2612978219985962,
0.5780158042907715,
-0.36730438470840454,
-0.09791290760040283,
0.25460779666900635,
-0.30397385358810425,
-0.483153373003006,
-0.02942374348640442,
-0.21767032146453857,
0.31695443391799927,
0.3235015869140625,
0.11969546228647232,
0.09529461711645126,
0.11861232668161392,
0.060386404395103455,
0.20233501493930817,
-0.011288372799754143,
-0.18985512852668762,
-0.34361186623573303,
-0.36027297377586365,
0.3072981834411621,
0.36181190609931946,
0.33648136258125305,
0.039493393152952194,
-0.04663266986608505,
0.25230005383491516,
0.25542503595352173,
-0.17657212913036346,
0.013517032377421856,
0.39770805835723877,
0.26586365699768066,
0.06522879749536514,
0.12952427566051483,
-0.2036169171333313,
-0.09274596720933914,
0.21445181965827942,
0.010094329714775085,
0.15947484970092773,
0.07802233099937439,
-0.27868223190307617,
-0.26952627301216125,
-0.15882554650306702,
-0.24662719666957855,
-0.4860774576663971,
0.012551192194223404,
0.3241276741027832,
0.25205373764038086,
-0.09285532683134079,
-0.2521231174468994,
0.43779632449150085,
-0.1952868103981018,
0.2539069652557373,
-0.36266961693763733,
0.3693116307258606,
-0.13947676122188568,
-0.19552738964557648,
-0.10412116348743439,
0.06954997032880783,
0.041225455701351166,
-0.17097027599811554,
0.0008807657286524773,
0.34220704436302185,
0.25739777088165283,
-0.3763900399208069,
0.2662564218044281,
0.05785500258207321,
0.0825238972902298,
-0.11922886222600937,
-0.010350910946726799,
0.43166807293891907,
0.22863173484802246,
0.03115878999233246,
-0.19921964406967163,
0.23427855968475342,
-0.08375310897827148,
-0.015044845640659332,
-0.0632188469171524,
-0.03802986443042755,
0.20545074343681335,
-0.24558362364768982,
0.05433104932308197,
0.054095007479190826,
0.2960952818393707,
0.06238182261586189,
0.5005351305007935,
-0.0863633006811142,
-0.15328413248062134,
-0.04715626686811447,
0.40126070380210876,
-0.04392397776246071,
0.0086471326649189,
0.14210540056228638,
-0.17609387636184692,
0.10036329180002213,
-0.08174987882375717,
-0.16441667079925537,
0.5894433856010437,
0.1907704621553421,
0.015324469655752182,
0.005759457126259804,
0.01976161263883114,
-0.13520894944667816,
-0.05793821066617966,
0.005731604993343353,
0.11192212998867035,
0.2939564883708954,
0.01045489963144064,
0.001957107335329056,
-0.2046598196029663,
-0.21265166997909546,
0.10335924476385117,
0.28410613536834717,
-0.08615827560424805,
0.014002567157149315,
-0.2293088734149933,
0.2530737817287445,
-0.11073138564825058,
0.008556248620152473,
-0.24275019764900208,
-0.12667851150035858,
0.04112760350108147,
0.2089068591594696,
-0.042332906275987625,
0.304103285074234,
0.09235557913780212,
0.022110849618911743,
0.20150309801101685,
-0.1954922080039978,
-0.10715151578187943,
-0.12142662703990936,
-0.23656344413757324,
-0.009330930188298225,
-0.009536403231322765,
-0.07543697953224182,
0.21278852224349976,
-0.2755417823791504,
-0.08302202075719833,
-0.5109937191009521,
-0.2276017665863037,
0.05386139079928398,
0.287090539932251,
0.2047029584646225,
0.13353246450424194,
0.21452999114990234,
-0.06261589378118515,
-0.05097357928752899,
0.2801598608493805,
-0.21434462070465088,
-0.16846925020217896,
0.052532218396663666,
-0.07898911833763123,
0.2073691338300705,
0.041067708283662796,
-0.6410499811172485,
-0.33730489015579224,
-0.29718631505966187,
-0.12485702335834503,
-0.08479327708482742,
-0.0033859983086586,
-0.1192249283194542,
0.13422508537769318,
0.2047809362411499,
0.03604690730571747,
-0.04733796417713165,
-0.12383139878511429,
-0.21347807347774506,
0.5039736032485962,
-0.08966322243213654,
-0.22543351352214813,
0.11155228316783905,
-0.21235954761505127,
0.06278776377439499,
0.2687757611274719,
-0.5052889585494995,
-0.5236563086509705,
-0.09114871919155121,
0.3369220495223999,
-0.19084809720516205,
0.08946458250284195,
0.49216702580451965,
-0.3213091790676117,
-0.028687039390206337,
-0.07579806447029114,
-0.048251405358314514,
0.1265072375535965,
-0.17750614881515503,
0.4617251455783844,
-0.013194657862186432,
0.26169565320014954,
0.20697005093097687,
1.1618540287017822,
0.22120004892349243,
-0.026496153324842453,
0.0756136029958725,
-0.060171082615852356,
0.3890329897403717,
-0.22064360976219177,
-0.1952374279499054,
0.16998744010925293,
-0.0849355012178421,
-0.02334105223417282,
0.11952090263366699,
-0.017163604497909546,
0.1315138041973114,
-0.043401043862104416,
-0.043116211891174316,
-0.32711175084114075,
-0.06309136003255844,
0.36135736107826233,
0.23743945360183716,
0.17330648005008698,
0.16082008183002472,
0.2168276607990265,
-0.1940920054912567,
-0.10631990432739258,
0.19440461695194244,
0.4131213426589966,
0.07177650928497314,
0.14597266912460327,
-0.2727353572845459,
0.0053167399019002914,
-0.2924439311027527,
0.12668021023273468,
-0.13894224166870117,
0.2734205424785614,
-0.04787159711122513,
-0.016670849174261093,
0.07869358360767365,
-0.0301472470164299,
0.8610990643501282,
-0.21578583121299744,
0.07236270606517792,
0.14617423713207245,
-0.4310400187969208,
-0.15355950593948364,
-0.10241563618183136,
-0.2645178735256195,
-0.11942948400974274,
0.6156060099601746,
0.5470613837242126,
-0.1647455096244812,
-0.06517347693443298,
0.4011293947696686,
0.06727106124162674,
-0.04154866188764572,
-0.09084680676460266,
-0.31983333826065063,
-0.33590731024742126,
-0.289622038602829,
-0.0756409540772438,
-0.05888745188713074,
0.17267467081546783,
0.07250983268022537,
0.2630056142807007,
-0.3187337815761566,
0.15818354487419128,
-0.013452328741550446,
-0.1048920750617981,
0.28680142760276794,
-0.35639873147010803,
0.2334054708480835,
0.2810382843017578,
0.31415578722953796,
0.12408270686864853,
0.47589120268821716,
-0.16207504272460938,
-0.5533198714256287,
0.2848445475101471,
-0.008941730484366417,
0.11003734171390533,
0.36496502161026,
-0.014924833551049232,
0.020631857216358185,
-0.06007258594036102,
0.30591392517089844,
-0.2079598605632782,
0.18884839117527008,
0.12731227278709412,
0.18058009445667267,
-0.005589230451732874,
-0.2922879755496979,
0.23434260487556458,
-0.010059500113129616,
0.12171034514904022,
0.25944972038269043,
-0.14893491566181183,
-0.03714562952518463,
0.8069669604301453,
-0.08515527099370956,
1.0018037557601929,
-0.01640896499156952,
0.3242407441139221,
0.21226125955581665,
-0.18940193951129913,
0.3186565637588501,
-0.8604203462600708,
0.370536208152771,
-0.30981311202049255,
-0.2558271288871765,
-0.21186260879039764,
-0.2688034176826477,
0.2725955545902252,
0.5007388591766357,
-0.23776715993881226,
0.37055426836013794,
0.11261215806007385,
0.5121018886566162,
0.11880964785814285,
0.3404254615306854,
0.11579873412847519,
-0.07257089018821716,
0.18739093840122223,
0.05550365895032883,
-0.08945603668689728,
0.5973533391952515,
0.003410555422306061,
-0.07561318576335907,
-0.3768140375614166,
-0.055950649082660675,
-0.08641655743122101,
0.15343576669692993,
-0.5980368852615356,
0.12144353985786438,
0.4480595290660858,
-0.30198779702186584,
-0.16620728373527527,
0.22106683254241943,
0.429784893989563,
0.20843127369880676,
-0.10151095688343048,
0.3052919805049896,
0.009482264518737793,
-0.13831111788749695,
0.2651393711566925,
-0.14000116288661957,
0.16187873482704163,
-0.07639586925506592,
-0.4398624300956726,
0.24767857789993286,
-0.32997456192970276,
-0.3752295970916748,
0.2602827250957489,
-0.048975929617881775,
0.32523810863494873,
-0.31274667382240295,
-0.20474548637866974,
-0.03820402920246124,
-0.1589907854795456,
-0.19729696214199066,
0.07259514927864075,
-0.014296524226665497,
-0.21474747359752655,
-0.007905863225460052,
-0.11160889267921448,
-0.4335789382457733,
-0.21413755416870117,
0.3808216452598572,
0.0006371624767780304,
0.0819537565112114,
0.5034263134002686,
-0.17171967029571533,
-0.2764568328857422,
-0.18573114275932312,
0.02382134646177292,
0.2257453203201294,
-0.46619051694869995,
-0.12910152971744537,
0.014212965033948421,
-0.021384529769420624,
0.07791375368833542,
-0.31439003348350525,
0.3677603006362915,
-0.07581623643636703,
-0.5247257947921753,
-0.4727155864238739,
-0.23379553854465485,
-0.02841012179851532,
0.24265989661216736,
0.1366357058286667,
0.08980826288461685,
0.11728538572788239,
0.10100959986448288,
0.0829964280128479,
-0.2611962556838989,
0.12746210396289825,
-0.32841402292251587,
0.2241390496492386,
-0.08238227665424347,
-0.432854026556015,
0.11342326551675797,
-0.039801765233278275,
0.012495333328843117,
0.132486954331398,
-0.23289835453033447,
-0.1520702838897705,
-0.05225082486867905,
0.15105216205120087,
0.02935124561190605,
-0.1678699404001236,
-0.0627269446849823,
-0.044591084122657776,
-0.03167957812547684,
-0.11872115731239319,
0.16571663320064545,
0.294643372297287,
0.11328773945569992,
0.009857662953436375,
-0.07312153279781342,
-0.15554097294807434,
-0.17878933250904083,
-0.02070213481783867,
-0.16108758747577667,
0.2682996988296509,
0.24112503230571747,
0.10161413252353668,
-0.03675483539700508,
0.053528621792793274,
-0.04027531296014786,
-0.030725128948688507,
-0.09011667966842651,
-0.09449812024831772,
0.36447376012802124,
-0.4622706174850464,
-0.07398533076047897,
-0.14040331542491913,
0.13954633474349976,
-0.011412061750888824,
-0.34655237197875977,
-0.12715785205364227,
0.33806681632995605,
0.16250911355018616,
-0.4333016872406006,
-0.07758263498544693,
0.23634275794029236,
0.002268316224217415,
0.23741409182548523,
0.29662084579467773,
0.07994484901428223,
0.0015986934304237366,
0.29029572010040283,
0.09310206025838852,
0.3097214698791504,
-0.22496308386325836,
-0.02306530624628067,
-0.02789120003581047,
0.04824916645884514,
0.15354882180690765,
0.18376734852790833,
0.047394827008247375,
0.0814305916428566,
0.4353085160255432,
0.15302401781082153,
0.2819969952106476,
-0.03812568634748459,
0.12010003626346588,
-0.18970569968223572,
-0.4449409544467926,
-0.2815670371055603,
0.30549323558807373,
-0.2354937493801117,
-0.018244847655296326,
-0.3626362085342407,
0.055864110589027405,
-0.156747505068779,
-0.1506156325340271,
-0.04027684032917023,
-0.1189906895160675,
-0.20894917845726013,
0.14655329287052155,
-0.0952104851603508,
-0.030197307467460632,
-0.19310447573661804,
0.10281160473823547,
0.11716432869434357,
-0.11895258724689484,
0.01872938871383667,
0.030183177441358566,
-0.28235018253326416,
0.12103400379419327,
-0.1132589653134346,
0.08803588151931763,
-0.04628890007734299,
-0.20884977281093597,
0.18707571923732758,
0.2697919011116028,
0.05331459641456604,
0.06854118406772614,
0.3685550391674042,
0.44372686743736267,
0.23116381466388702,
-0.22303639352321625,
0.192424938082695,
-0.031863514333963394,
-0.07632134854793549,
-0.030568722635507584,
0.15959793329238892,
-0.15362462401390076,
-0.06888096034526825,
0.3970540761947632,
0.04808367043733597,
-0.18952688574790955,
-0.3199322819709778,
0.027474094182252884,
0.022516492754220963,
-0.46001487970352173,
0.207529217004776,
-0.0441928505897522,
-0.07886039465665817,
0.006566174328327179,
-0.024596095085144043,
-0.5514100790023804,
0.1278146207332611,
0.38036471605300903,
0.02526565082371235,
0.27492958307266235,
0.1281452625989914,
0.007800176739692688,
-0.2787656784057617,
0.031180521473288536,
0.41852885484695435,
-0.035020217299461365,
-0.5950028896331787,
-0.30335402488708496,
-0.4331490099430084,
0.08403624594211578,
-0.5692707300186157,
-0.29260727763175964,
0.0010130424052476883,
0.24850155413150787,
0.08916280418634415,
0.171940878033638,
0.35572153329849243,
-0.10547541826963425,
0.0784783661365509,
0.41263261437416077,
-0.4025352895259857,
-0.16638875007629395,
-0.3254978060722351,
0.20524077117443085,
0.08005429804325104,
-0.7052719593048096,
0.06503205001354218,
0.38843798637390137,
0.010161440819501877,
0.13916000723838806,
-0.09935571998357773,
0.3541441261768341,
0.03279562294483185,
0.11946344375610352,
-0.15630945563316345,
0.26816749572753906,
0.047163695096969604,
-0.03120461106300354,
0.19601000845432281,
0.07867816090583801,
-0.11726315319538116,
0.007538396865129471,
0.078614741563797,
0.5020302534103394,
-0.1586095243692398,
-0.16093549132347107,
-0.277138888835907,
0.26902714371681213,
0.17137321829795837,
-0.16980285942554474,
0.1241610124707222,
0.23296763002872467,
-0.08995946496725082,
0.2271479219198227,
0.27156883478164673,
0.33707794547080994,
-0.06869721412658691,
0.0453815683722496,
-0.34026801586151123,
-0.09948267042636871,
0.5833816528320312,
-0.308798223733902,
-0.2146812230348587,
-0.16531646251678467,
0.11682842671871185,
-0.053247831761837006,
0.25183403491973877,
-0.4316257834434509,
-0.03998377174139023,
0.3314809203147888,
0.06455077230930328,
-0.1202181726694107,
-0.00087001733481884,
0.05771012604236603,
0.05416670814156532,
-0.06881947815418243,
0.25687146186828613,
-0.0468435063958168,
-0.2186792492866516,
-0.10203954577445984,
-0.24380379915237427
] |
https://github.com/huggingface/datasets/issues/720 | OSError: Cannot find data file when not using the dummy dataset in RAG | An update on my end. This seems like a transient issue. Reran the script from scratch overnight with no errors. | ## Environment info
transformers version: 3.3.1
Platform: Linux-4.19
Python version: 3.7.7
PyTorch version (GPU?): 1.6.0
Tensorflow version (GPU?): No
Using GPU in script?: Yes
Using distributed or parallel set-up in script?: No
## To reproduce
Steps to reproduce the behaviour:
```
import os
os.environ['HF_DATASETS_CACHE'] = '/workspace/notebooks/POCs/cache'
from transformers import RagTokenizer, RagRetriever, RagTokenForGeneration
tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=False)
```
Plese note that I'm using the whole dataset: **use_dummy_dataset=False**
After around 4 hours (downloading and some other things) this is returned:
```
Downloading and preparing dataset wiki_dpr/psgs_w100.nq.exact (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /workspace/notebooks/POCs/cache/wiki_dpr/psgs_w100.nq.exact/0.0.0/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2...
---------------------------------------------------------------------------
UnpicklingError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
459 try:
--> 460 return pickle.load(fid, **pickle_kwargs)
461 except Exception:
UnpicklingError: pickle data was truncated
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
552 # Prepare split will record examples associated to the split
--> 553 self._prepare_split(split_generator, **prepare_split_kwargs)
554 except OSError:
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _prepare_split(self, split_generator)
840 for key, record in utils.tqdm(
--> 841 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
842 ):
/opt/conda/lib/python3.7/site-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
217 try:
--> 218 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
219 # return super(tqdm...) will not catch exception
/opt/conda/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
~/.cache/huggingface/modules/datasets_modules/datasets/wiki_dpr/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2/wiki_dpr.py in _generate_examples(self, data_file, vectors_files)
131 break
--> 132 vecs = np.load(open(vectors_files.pop(0), "rb"), allow_pickle=True)
133 vec_idx = 0
/opt/conda/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
462 raise IOError(
--> 463 "Failed to interpret file %s as a pickle" % repr(file))
464 finally:
OSError: Failed to interpret file <_io.BufferedReader name='/workspace/notebooks/POCs/cache/downloads/f34d5f091294259b4ca90e813631e69a6ded660d71b6cbedf89ddba50df94448'> as a pickle
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-10-f28df370ac47> in <module>
1 # ln -s /workspace/notebooks/POCs/cache /root/.cache/huggingface/datasets
----> 2 retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=False)
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in from_pretrained(cls, retriever_name_or_path, **kwargs)
307 generator_tokenizer = rag_tokenizer.generator
308 return cls(
--> 309 config, question_encoder_tokenizer=question_encoder_tokenizer, generator_tokenizer=generator_tokenizer
310 )
311
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in __init__(self, config, question_encoder_tokenizer, generator_tokenizer)
298 self.config = config
299 if self._init_retrieval:
--> 300 self.init_retrieval()
301
302 @classmethod
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in init_retrieval(self)
324
325 logger.info("initializing retrieval")
--> 326 self.index.init_index()
327
328 def postprocess_docs(self, docs, input_strings, prefix, n_docs, return_tensors=None):
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in init_index(self)
238 split=self.dataset_split,
239 index_name=self.index_name,
--> 240 dummy=self.use_dummy_dataset,
241 )
242 self.dataset.set_format("numpy", columns=["embeddings"], output_all_columns=True)
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
474 if not downloaded_from_gcs:
475 self._download_and_prepare(
--> 476 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
477 )
478 # Sync info
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
553 self._prepare_split(split_generator, **prepare_split_kwargs)
554 except OSError:
--> 555 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
556
557 if verify_infos:
OSError: Cannot find data file.
```
Thanks
| 20 | OSError: Cannot find data file when not using the dummy dataset in RAG
## Environment info
transformers version: 3.3.1
Platform: Linux-4.19
Python version: 3.7.7
PyTorch version (GPU?): 1.6.0
Tensorflow version (GPU?): No
Using GPU in script?: Yes
Using distributed or parallel set-up in script?: No
## To reproduce
Steps to reproduce the behaviour:
```
import os
os.environ['HF_DATASETS_CACHE'] = '/workspace/notebooks/POCs/cache'
from transformers import RagTokenizer, RagRetriever, RagTokenForGeneration
tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=False)
```
Plese note that I'm using the whole dataset: **use_dummy_dataset=False**
After around 4 hours (downloading and some other things) this is returned:
```
Downloading and preparing dataset wiki_dpr/psgs_w100.nq.exact (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /workspace/notebooks/POCs/cache/wiki_dpr/psgs_w100.nq.exact/0.0.0/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2...
---------------------------------------------------------------------------
UnpicklingError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
459 try:
--> 460 return pickle.load(fid, **pickle_kwargs)
461 except Exception:
UnpicklingError: pickle data was truncated
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
552 # Prepare split will record examples associated to the split
--> 553 self._prepare_split(split_generator, **prepare_split_kwargs)
554 except OSError:
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _prepare_split(self, split_generator)
840 for key, record in utils.tqdm(
--> 841 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose
842 ):
/opt/conda/lib/python3.7/site-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
217 try:
--> 218 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
219 # return super(tqdm...) will not catch exception
/opt/conda/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
~/.cache/huggingface/modules/datasets_modules/datasets/wiki_dpr/14b973bf2a456087ff69c0fd34526684eed22e48e0dfce4338f9a22b965ce7c2/wiki_dpr.py in _generate_examples(self, data_file, vectors_files)
131 break
--> 132 vecs = np.load(open(vectors_files.pop(0), "rb"), allow_pickle=True)
133 vec_idx = 0
/opt/conda/lib/python3.7/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
462 raise IOError(
--> 463 "Failed to interpret file %s as a pickle" % repr(file))
464 finally:
OSError: Failed to interpret file <_io.BufferedReader name='/workspace/notebooks/POCs/cache/downloads/f34d5f091294259b4ca90e813631e69a6ded660d71b6cbedf89ddba50df94448'> as a pickle
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-10-f28df370ac47> in <module>
1 # ln -s /workspace/notebooks/POCs/cache /root/.cache/huggingface/datasets
----> 2 retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=False)
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in from_pretrained(cls, retriever_name_or_path, **kwargs)
307 generator_tokenizer = rag_tokenizer.generator
308 return cls(
--> 309 config, question_encoder_tokenizer=question_encoder_tokenizer, generator_tokenizer=generator_tokenizer
310 )
311
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in __init__(self, config, question_encoder_tokenizer, generator_tokenizer)
298 self.config = config
299 if self._init_retrieval:
--> 300 self.init_retrieval()
301
302 @classmethod
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in init_retrieval(self)
324
325 logger.info("initializing retrieval")
--> 326 self.index.init_index()
327
328 def postprocess_docs(self, docs, input_strings, prefix, n_docs, return_tensors=None):
/opt/conda/lib/python3.7/site-packages/transformers/retrieval_rag.py in init_index(self)
238 split=self.dataset_split,
239 index_name=self.index_name,
--> 240 dummy=self.use_dummy_dataset,
241 )
242 self.dataset.set_format("numpy", columns=["embeddings"], output_all_columns=True)
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
474 if not downloaded_from_gcs:
475 self._download_and_prepare(
--> 476 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
477 )
478 # Sync info
/opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
553 self._prepare_split(split_generator, **prepare_split_kwargs)
554 except OSError:
--> 555 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
556
557 if verify_infos:
OSError: Cannot find data file.
```
Thanks
An update on my end. This seems like a transient issue. Reran the script from scratch overnight with no errors. | [
-0.225868821144104,
-0.048717595636844635,
0.012397438287734985,
0.10525498539209366,
0.37066686153411865,
-0.06985393166542053,
0.33231642842292786,
0.26923006772994995,
0.01551273837685585,
0.3250916004180908,
-0.1394265741109848,
0.21765241026878357,
-0.06373469531536102,
-0.3219817578792572,
-0.015681501477956772,
0.03875124454498291,
0.008864954113960266,
0.17694461345672607,
-0.20713064074516296,
-0.22746945917606354,
-0.2748768925666809,
0.07126554101705551,
-0.2206946313381195,
-0.024129226803779602,
-0.6810175180435181,
0.1146390363574028,
-0.0578160434961319,
0.3083195090293884,
-0.19542372226715088,
-0.25163039565086365,
0.2026071697473526,
-0.3225422203540802,
0.22631892561912537,
0.7035831809043884,
-0.00012254234752617776,
0.2990081310272217,
0.14293289184570312,
-0.27356597781181335,
-0.2608668804168701,
-0.27868878841400146,
0.4701991379261017,
-0.0021998966112732887,
-0.13363666832447052,
-0.2349148988723755,
-0.38790401816368103,
-0.01792183145880699,
0.1504860669374466,
-0.26080411672592163,
0.11464738845825195,
0.44538864493370056,
0.12014009058475494,
0.5135033130645752,
-0.07892656326293945,
-0.16660620272159576,
0.44164058566093445,
-0.13211199641227722,
-0.24562861025333405,
0.28807082772254944,
0.13557490706443787,
-0.3839831054210663,
-0.22443601489067078,
0.3043578267097473,
0.03579477220773697,
0.2144894003868103,
0.0499642938375473,
0.1509963423013687,
-0.3310997486114502,
-0.1621895581483841,
0.20348906517028809,
0.15927842259407043,
0.4668172597885132,
-0.10246030241250992,
-0.41012629866600037,
0.10785316675901413,
-0.1492985337972641,
-0.011892573907971382,
0.30808281898498535,
0.2507411241531372,
-0.23079325258731842,
0.3093445301055908,
-0.1880168616771698,
0.14112110435962677,
-0.18381139636039734,
0.3203997015953064,
-0.10916827619075775,
0.5142391920089722,
-0.05978578329086304,
0.13334472477436066,
0.05150071159005165,
0.26698315143585205,
-0.12754839658737183,
-0.05327160656452179,
0.25685641169548035,
0.11072622984647751,
-0.4334580898284912,
-0.08514755219221115,
-0.14175808429718018,
-0.22814571857452393,
0.009054932743310928,
0.2838829755783081,
0.11903995275497437,
-0.08728029578924179,
-0.05061730742454529,
0.05590163543820381,
-0.07479265332221985,
0.0031034136191010475,
-0.4398024082183838,
0.3263705372810364,
0.1369171291589737,
0.06339619308710098,
-0.061738766729831696,
-0.2556207776069641,
0.012468492612242699,
-0.07520478218793869,
-0.13775800168514252,
-0.08306737244129181,
0.2952480912208557,
-0.14191477000713348,
-0.37926703691482544,
-0.13765153288841248,
-0.27183055877685547,
0.04491576924920082,
-0.06491921842098236,
0.5335163474082947,
-0.17624489963054657,
0.09424358606338501,
0.22335125505924225,
0.2114507555961609,
-0.3598036468029022,
-0.21351607143878937,
-0.18942034244537354,
0.19140265882015228,
-0.25897178053855896,
-0.06955824047327042,
0.3361578583717346,
0.15156054496765137,
0.5469791889190674,
-0.042223572731018066,
-0.03957919031381607,
0.07573790103197098,
0.5255907773971558,
-0.3452496826648712,
0.18525102734565735,
0.36714115738868713,
-0.09573718905448914,
0.10221454501152039,
0.31972354650497437,
0.010770745575428009,
-0.004844188690185547,
0.16021373867988586,
-0.13479432463645935,
-0.44028300046920776,
-0.01593135856091976,
0.12305926531553268,
-0.09644843637943268,
-0.0022723302245140076,
0.5216626524925232,
-0.3452540636062622,
0.015045180916786194,
-0.01869892328977585,
0.11257878690958023,
-0.0878421738743782,
-0.35880589485168457,
-0.1775871366262436,
0.16570541262626648,
0.36995482444763184,
-0.4192667007446289,
-0.060725137591362,
0.09742967784404755,
0.13548260927200317,
0.27266958355903625,
0.4072973132133484,
-0.2612978219985962,
0.5780158042907715,
-0.36730438470840454,
-0.09791290760040283,
0.25460779666900635,
-0.30397385358810425,
-0.483153373003006,
-0.02942374348640442,
-0.21767032146453857,
0.31695443391799927,
0.3235015869140625,
0.11969546228647232,
0.09529461711645126,
0.11861232668161392,
0.060386404395103455,
0.20233501493930817,
-0.011288372799754143,
-0.18985512852668762,
-0.34361186623573303,
-0.36027297377586365,
0.3072981834411621,
0.36181190609931946,
0.33648136258125305,
0.039493393152952194,
-0.04663266986608505,
0.25230005383491516,
0.25542503595352173,
-0.17657212913036346,
0.013517032377421856,
0.39770805835723877,
0.26586365699768066,
0.06522879749536514,
0.12952427566051483,
-0.2036169171333313,
-0.09274596720933914,
0.21445181965827942,
0.010094329714775085,
0.15947484970092773,
0.07802233099937439,
-0.27868223190307617,
-0.26952627301216125,
-0.15882554650306702,
-0.24662719666957855,
-0.4860774576663971,
0.012551192194223404,
0.3241276741027832,
0.25205373764038086,
-0.09285532683134079,
-0.2521231174468994,
0.43779632449150085,
-0.1952868103981018,
0.2539069652557373,
-0.36266961693763733,
0.3693116307258606,
-0.13947676122188568,
-0.19552738964557648,
-0.10412116348743439,
0.06954997032880783,
0.041225455701351166,
-0.17097027599811554,
0.0008807657286524773,
0.34220704436302185,
0.25739777088165283,
-0.3763900399208069,
0.2662564218044281,
0.05785500258207321,
0.0825238972902298,
-0.11922886222600937,
-0.010350910946726799,
0.43166807293891907,
0.22863173484802246,
0.03115878999233246,
-0.19921964406967163,
0.23427855968475342,
-0.08375310897827148,
-0.015044845640659332,
-0.0632188469171524,
-0.03802986443042755,
0.20545074343681335,
-0.24558362364768982,
0.05433104932308197,
0.054095007479190826,
0.2960952818393707,
0.06238182261586189,
0.5005351305007935,
-0.0863633006811142,
-0.15328413248062134,
-0.04715626686811447,
0.40126070380210876,
-0.04392397776246071,
0.0086471326649189,
0.14210540056228638,
-0.17609387636184692,
0.10036329180002213,
-0.08174987882375717,
-0.16441667079925537,
0.5894433856010437,
0.1907704621553421,
0.015324469655752182,
0.005759457126259804,
0.01976161263883114,
-0.13520894944667816,
-0.05793821066617966,
0.005731604993343353,
0.11192212998867035,
0.2939564883708954,
0.01045489963144064,
0.001957107335329056,
-0.2046598196029663,
-0.21265166997909546,
0.10335924476385117,
0.28410613536834717,
-0.08615827560424805,
0.014002567157149315,
-0.2293088734149933,
0.2530737817287445,
-0.11073138564825058,
0.008556248620152473,
-0.24275019764900208,
-0.12667851150035858,
0.04112760350108147,
0.2089068591594696,
-0.042332906275987625,
0.304103285074234,
0.09235557913780212,
0.022110849618911743,
0.20150309801101685,
-0.1954922080039978,
-0.10715151578187943,
-0.12142662703990936,
-0.23656344413757324,
-0.009330930188298225,
-0.009536403231322765,
-0.07543697953224182,
0.21278852224349976,
-0.2755417823791504,
-0.08302202075719833,
-0.5109937191009521,
-0.2276017665863037,
0.05386139079928398,
0.287090539932251,
0.2047029584646225,
0.13353246450424194,
0.21452999114990234,
-0.06261589378118515,
-0.05097357928752899,
0.2801598608493805,
-0.21434462070465088,
-0.16846925020217896,
0.052532218396663666,
-0.07898911833763123,
0.2073691338300705,
0.041067708283662796,
-0.6410499811172485,
-0.33730489015579224,
-0.29718631505966187,
-0.12485702335834503,
-0.08479327708482742,
-0.0033859983086586,
-0.1192249283194542,
0.13422508537769318,
0.2047809362411499,
0.03604690730571747,
-0.04733796417713165,
-0.12383139878511429,
-0.21347807347774506,
0.5039736032485962,
-0.08966322243213654,
-0.22543351352214813,
0.11155228316783905,
-0.21235954761505127,
0.06278776377439499,
0.2687757611274719,
-0.5052889585494995,
-0.5236563086509705,
-0.09114871919155121,
0.3369220495223999,
-0.19084809720516205,
0.08946458250284195,
0.49216702580451965,
-0.3213091790676117,
-0.028687039390206337,
-0.07579806447029114,
-0.048251405358314514,
0.1265072375535965,
-0.17750614881515503,
0.4617251455783844,
-0.013194657862186432,
0.26169565320014954,
0.20697005093097687,
1.1618540287017822,
0.22120004892349243,
-0.026496153324842453,
0.0756136029958725,
-0.060171082615852356,
0.3890329897403717,
-0.22064360976219177,
-0.1952374279499054,
0.16998744010925293,
-0.0849355012178421,
-0.02334105223417282,
0.11952090263366699,
-0.017163604497909546,
0.1315138041973114,
-0.043401043862104416,
-0.043116211891174316,
-0.32711175084114075,
-0.06309136003255844,
0.36135736107826233,
0.23743945360183716,
0.17330648005008698,
0.16082008183002472,
0.2168276607990265,
-0.1940920054912567,
-0.10631990432739258,
0.19440461695194244,
0.4131213426589966,
0.07177650928497314,
0.14597266912460327,
-0.2727353572845459,
0.0053167399019002914,
-0.2924439311027527,
0.12668021023273468,
-0.13894224166870117,
0.2734205424785614,
-0.04787159711122513,
-0.016670849174261093,
0.07869358360767365,
-0.0301472470164299,
0.8610990643501282,
-0.21578583121299744,
0.07236270606517792,
0.14617423713207245,
-0.4310400187969208,
-0.15355950593948364,
-0.10241563618183136,
-0.2645178735256195,
-0.11942948400974274,
0.6156060099601746,
0.5470613837242126,
-0.1647455096244812,
-0.06517347693443298,
0.4011293947696686,
0.06727106124162674,
-0.04154866188764572,
-0.09084680676460266,
-0.31983333826065063,
-0.33590731024742126,
-0.289622038602829,
-0.0756409540772438,
-0.05888745188713074,
0.17267467081546783,
0.07250983268022537,
0.2630056142807007,
-0.3187337815761566,
0.15818354487419128,
-0.013452328741550446,
-0.1048920750617981,
0.28680142760276794,
-0.35639873147010803,
0.2334054708480835,
0.2810382843017578,
0.31415578722953796,
0.12408270686864853,
0.47589120268821716,
-0.16207504272460938,
-0.5533198714256287,
0.2848445475101471,
-0.008941730484366417,
0.11003734171390533,
0.36496502161026,
-0.014924833551049232,
0.020631857216358185,
-0.06007258594036102,
0.30591392517089844,
-0.2079598605632782,
0.18884839117527008,
0.12731227278709412,
0.18058009445667267,
-0.005589230451732874,
-0.2922879755496979,
0.23434260487556458,
-0.010059500113129616,
0.12171034514904022,
0.25944972038269043,
-0.14893491566181183,
-0.03714562952518463,
0.8069669604301453,
-0.08515527099370956,
1.0018037557601929,
-0.01640896499156952,
0.3242407441139221,
0.21226125955581665,
-0.18940193951129913,
0.3186565637588501,
-0.8604203462600708,
0.370536208152771,
-0.30981311202049255,
-0.2558271288871765,
-0.21186260879039764,
-0.2688034176826477,
0.2725955545902252,
0.5007388591766357,
-0.23776715993881226,
0.37055426836013794,
0.11261215806007385,
0.5121018886566162,
0.11880964785814285,
0.3404254615306854,
0.11579873412847519,
-0.07257089018821716,
0.18739093840122223,
0.05550365895032883,
-0.08945603668689728,
0.5973533391952515,
0.003410555422306061,
-0.07561318576335907,
-0.3768140375614166,
-0.055950649082660675,
-0.08641655743122101,
0.15343576669692993,
-0.5980368852615356,
0.12144353985786438,
0.4480595290660858,
-0.30198779702186584,
-0.16620728373527527,
0.22106683254241943,
0.429784893989563,
0.20843127369880676,
-0.10151095688343048,
0.3052919805049896,
0.009482264518737793,
-0.13831111788749695,
0.2651393711566925,
-0.14000116288661957,
0.16187873482704163,
-0.07639586925506592,
-0.4398624300956726,
0.24767857789993286,
-0.32997456192970276,
-0.3752295970916748,
0.2602827250957489,
-0.048975929617881775,
0.32523810863494873,
-0.31274667382240295,
-0.20474548637866974,
-0.03820402920246124,
-0.1589907854795456,
-0.19729696214199066,
0.07259514927864075,
-0.014296524226665497,
-0.21474747359752655,
-0.007905863225460052,
-0.11160889267921448,
-0.4335789382457733,
-0.21413755416870117,
0.3808216452598572,
0.0006371624767780304,
0.0819537565112114,
0.5034263134002686,
-0.17171967029571533,
-0.2764568328857422,
-0.18573114275932312,
0.02382134646177292,
0.2257453203201294,
-0.46619051694869995,
-0.12910152971744537,
0.014212965033948421,
-0.021384529769420624,
0.07791375368833542,
-0.31439003348350525,
0.3677603006362915,
-0.07581623643636703,
-0.5247257947921753,
-0.4727155864238739,
-0.23379553854465485,
-0.02841012179851532,
0.24265989661216736,
0.1366357058286667,
0.08980826288461685,
0.11728538572788239,
0.10100959986448288,
0.0829964280128479,
-0.2611962556838989,
0.12746210396289825,
-0.32841402292251587,
0.2241390496492386,
-0.08238227665424347,
-0.432854026556015,
0.11342326551675797,
-0.039801765233278275,
0.012495333328843117,
0.132486954331398,
-0.23289835453033447,
-0.1520702838897705,
-0.05225082486867905,
0.15105216205120087,
0.02935124561190605,
-0.1678699404001236,
-0.0627269446849823,
-0.044591084122657776,
-0.03167957812547684,
-0.11872115731239319,
0.16571663320064545,
0.294643372297287,
0.11328773945569992,
0.009857662953436375,
-0.07312153279781342,
-0.15554097294807434,
-0.17878933250904083,
-0.02070213481783867,
-0.16108758747577667,
0.2682996988296509,
0.24112503230571747,
0.10161413252353668,
-0.03675483539700508,
0.053528621792793274,
-0.04027531296014786,
-0.030725128948688507,
-0.09011667966842651,
-0.09449812024831772,
0.36447376012802124,
-0.4622706174850464,
-0.07398533076047897,
-0.14040331542491913,
0.13954633474349976,
-0.011412061750888824,
-0.34655237197875977,
-0.12715785205364227,
0.33806681632995605,
0.16250911355018616,
-0.4333016872406006,
-0.07758263498544693,
0.23634275794029236,
0.002268316224217415,
0.23741409182548523,
0.29662084579467773,
0.07994484901428223,
0.0015986934304237366,
0.29029572010040283,
0.09310206025838852,
0.3097214698791504,
-0.22496308386325836,
-0.02306530624628067,
-0.02789120003581047,
0.04824916645884514,
0.15354882180690765,
0.18376734852790833,
0.047394827008247375,
0.0814305916428566,
0.4353085160255432,
0.15302401781082153,
0.2819969952106476,
-0.03812568634748459,
0.12010003626346588,
-0.18970569968223572,
-0.4449409544467926,
-0.2815670371055603,
0.30549323558807373,
-0.2354937493801117,
-0.018244847655296326,
-0.3626362085342407,
0.055864110589027405,
-0.156747505068779,
-0.1506156325340271,
-0.04027684032917023,
-0.1189906895160675,
-0.20894917845726013,
0.14655329287052155,
-0.0952104851603508,
-0.030197307467460632,
-0.19310447573661804,
0.10281160473823547,
0.11716432869434357,
-0.11895258724689484,
0.01872938871383667,
0.030183177441358566,
-0.28235018253326416,
0.12103400379419327,
-0.1132589653134346,
0.08803588151931763,
-0.04628890007734299,
-0.20884977281093597,
0.18707571923732758,
0.2697919011116028,
0.05331459641456604,
0.06854118406772614,
0.3685550391674042,
0.44372686743736267,
0.23116381466388702,
-0.22303639352321625,
0.192424938082695,
-0.031863514333963394,
-0.07632134854793549,
-0.030568722635507584,
0.15959793329238892,
-0.15362462401390076,
-0.06888096034526825,
0.3970540761947632,
0.04808367043733597,
-0.18952688574790955,
-0.3199322819709778,
0.027474094182252884,
0.022516492754220963,
-0.46001487970352173,
0.207529217004776,
-0.0441928505897522,
-0.07886039465665817,
0.006566174328327179,
-0.024596095085144043,
-0.5514100790023804,
0.1278146207332611,
0.38036471605300903,
0.02526565082371235,
0.27492958307266235,
0.1281452625989914,
0.007800176739692688,
-0.2787656784057617,
0.031180521473288536,
0.41852885484695435,
-0.035020217299461365,
-0.5950028896331787,
-0.30335402488708496,
-0.4331490099430084,
0.08403624594211578,
-0.5692707300186157,
-0.29260727763175964,
0.0010130424052476883,
0.24850155413150787,
0.08916280418634415,
0.171940878033638,
0.35572153329849243,
-0.10547541826963425,
0.0784783661365509,
0.41263261437416077,
-0.4025352895259857,
-0.16638875007629395,
-0.3254978060722351,
0.20524077117443085,
0.08005429804325104,
-0.7052719593048096,
0.06503205001354218,
0.38843798637390137,
0.010161440819501877,
0.13916000723838806,
-0.09935571998357773,
0.3541441261768341,
0.03279562294483185,
0.11946344375610352,
-0.15630945563316345,
0.26816749572753906,
0.047163695096969604,
-0.03120461106300354,
0.19601000845432281,
0.07867816090583801,
-0.11726315319538116,
0.007538396865129471,
0.078614741563797,
0.5020302534103394,
-0.1586095243692398,
-0.16093549132347107,
-0.277138888835907,
0.26902714371681213,
0.17137321829795837,
-0.16980285942554474,
0.1241610124707222,
0.23296763002872467,
-0.08995946496725082,
0.2271479219198227,
0.27156883478164673,
0.33707794547080994,
-0.06869721412658691,
0.0453815683722496,
-0.34026801586151123,
-0.09948267042636871,
0.5833816528320312,
-0.308798223733902,
-0.2146812230348587,
-0.16531646251678467,
0.11682842671871185,
-0.053247831761837006,
0.25183403491973877,
-0.4316257834434509,
-0.03998377174139023,
0.3314809203147888,
0.06455077230930328,
-0.1202181726694107,
-0.00087001733481884,
0.05771012604236603,
0.05416670814156532,
-0.06881947815418243,
0.25687146186828613,
-0.0468435063958168,
-0.2186792492866516,
-0.10203954577445984,
-0.24380379915237427
] |
https://github.com/huggingface/datasets/issues/709 | How to use similarity settings other then "BM25" in Elasticsearch index ? | Datasets does not use elasticsearch API to define custom similarity. If you want to use a custom similarity, the best would be to run a curl request directly to your elasticsearch instance (see sample hereafter, directly from ES documentation), then you should be able to use `my_similarity` in your configuration passed to datasets
```
curl -X PUT "localhost:9200/index?pretty" -H 'Content-Type: application/json' -d'
{
"settings": {
"index": {
"similarity": {
"my_similarity": {
"type": "DFR",
"basic_model": "g",
"after_effect": "l",
"normalization": "h2",
"normalization.h2.c": "3.0"
}
}
}
}
}
'
``` | **QUESTION : How should we use other similarity algorithms supported by Elasticsearch other than "BM25" ?**
**ES Reference**
https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-similarity.html
**HF doc reference:**
https://huggingface.co/docs/datasets/faiss_and_ea.html
**context :**
========
I used the latest Elasticsearch server version 7.9.2
When I set DFR which is one of the other similarity algorithms supported by elasticsearch in the mapping, I get an error
For example DFR that I had tried in the first instance in mappings as below.,
`"mappings": {"properties": {"text": {"type": "text", "analyzer": "standard", "similarity": "DFR"}}},`
I get the following error
RequestError: RequestError(400, 'mapper_parsing_exception', 'Unknown Similarity type [DFR] for field [text]')
The other thing as another option I had tried was to declare "similarity": "my_similarity" within settings and then assigning "my_similarity" inside the mappings as below
`es_config = {
"settings": {
"number_of_shards": 1,
**"similarity": "my_similarity"**: {
"type": "DFR",
"basic_model": "g",
"after_effect": "l",
"normalization": "h2",
"normalization.h2.c": "3.0"
} ,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {"properties": {"text": {"type": "text", "analyzer": "standard", "similarity": "my_similarity"}}},
}`
For this , I got the following error
RequestError: RequestError(400, 'illegal_argument_exception', 'unknown setting [index.similarity] please check that any required plugins are installed, or check the breaking changes documentation for removed settings')
| 88 | How to use similarity settings other then "BM25" in Elasticsearch index ?
**QUESTION : How should we use other similarity algorithms supported by Elasticsearch other than "BM25" ?**
**ES Reference**
https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-similarity.html
**HF doc reference:**
https://huggingface.co/docs/datasets/faiss_and_ea.html
**context :**
========
I used the latest Elasticsearch server version 7.9.2
When I set DFR which is one of the other similarity algorithms supported by elasticsearch in the mapping, I get an error
For example DFR that I had tried in the first instance in mappings as below.,
`"mappings": {"properties": {"text": {"type": "text", "analyzer": "standard", "similarity": "DFR"}}},`
I get the following error
RequestError: RequestError(400, 'mapper_parsing_exception', 'Unknown Similarity type [DFR] for field [text]')
The other thing as another option I had tried was to declare "similarity": "my_similarity" within settings and then assigning "my_similarity" inside the mappings as below
`es_config = {
"settings": {
"number_of_shards": 1,
**"similarity": "my_similarity"**: {
"type": "DFR",
"basic_model": "g",
"after_effect": "l",
"normalization": "h2",
"normalization.h2.c": "3.0"
} ,
"analysis": {"analyzer": {"stop_standard": {"type": "standard", " stopwords": "_english_"}}},
},
"mappings": {"properties": {"text": {"type": "text", "analyzer": "standard", "similarity": "my_similarity"}}},
}`
For this , I got the following error
RequestError: RequestError(400, 'illegal_argument_exception', 'unknown setting [index.similarity] please check that any required plugins are installed, or check the breaking changes documentation for removed settings')
Datasets does not use elasticsearch API to define custom similarity. If you want to use a custom similarity, the best would be to run a curl request directly to your elasticsearch instance (see sample hereafter, directly from ES documentation), then you should be able to use `my_similarity` in your configuration passed to datasets
```
curl -X PUT "localhost:9200/index?pretty" -H 'Content-Type: application/json' -d'
{
"settings": {
"index": {
"similarity": {
"my_similarity": {
"type": "DFR",
"basic_model": "g",
"after_effect": "l",
"normalization": "h2",
"normalization.h2.c": "3.0"
}
}
}
}
}
'
``` | [
-0.10997957736253738,
-0.6802700757980347,
-0.04501506686210632,
-0.039937131106853485,
-0.1662629097700119,
0.051654644310474396,
-0.18381747603416443,
0.22279547154903412,
0.44525662064552307,
0.13827165961265564,
-0.34139057993888855,
-0.1468978375196457,
0.06352023780345917,
-0.20899724960327148,
-0.3592832684516907,
-0.09284131228923798,
0.028919480741024017,
0.0444088876247406,
0.10416185110807419,
0.10852278769016266,
-0.17437314987182617,
0.12545417249202728,
-0.0000623166561126709,
-0.0005489736795425415,
-0.1480966955423355,
0.18768908083438873,
0.03927929699420929,
-0.2065736949443817,
0.15280020236968994,
-0.31489938497543335,
0.14531180262565613,
-0.2109479308128357,
0.1577214002609253,
0.04402000457048416,
-0.0001227612519869581,
0.06900593638420105,
0.3693273067474365,
-0.03213026374578476,
0.4254218637943268,
-0.4718562364578247,
-0.06088559329509735,
0.21651965379714966,
0.18348361551761627,
-0.17767775058746338,
-0.21518245339393616,
-0.3694826066493988,
0.03283454105257988,
-0.43008461594581604,
0.2202269434928894,
0.3700292110443115,
0.11514592170715332,
-0.12532228231430054,
0.17844757437705994,
-0.04535895213484764,
0.13691279292106628,
0.06398118287324905,
0.004400433972477913,
-0.280291885137558,
0.3826867341995239,
0.42095717787742615,
0.33435672521591187,
-0.045455433428287506,
-0.20236040651798248,
0.34652048349380493,
0.3322950601577759,
0.15977737307548523,
0.36094197630882263,
-0.21278473734855652,
0.2631376385688782,
0.14435584843158722,
0.17550021409988403,
0.1586996167898178,
0.11219669133424759,
0.0569029301404953,
-0.17095158994197845,
-0.04366689920425415,
0.07062339782714844,
-0.2081926316022873,
0.14780691266059875,
0.09936279058456421,
-0.19516436755657196,
-0.1788291484117508,
-0.11058518290519714,
0.2574418783187866,
-0.09477227926254272,
0.19258449971675873,
-0.09439486265182495,
-0.06037092208862305,
0.25630950927734375,
-0.4657060503959656,
-0.13207301497459412,
0.010875599458813667,
0.17359302937984467,
0.1292194277048111,
-0.016331177204847336,
-0.2779356837272644,
-0.34068676829338074,
-0.18889036774635315,
0.30271199345588684,
-0.1236501932144165,
-0.07588350027799606,
0.19668877124786377,
0.15526644885540009,
0.26158520579338074,
-0.3191661834716797,
0.2049429714679718,
0.06640687584877014,
0.4087868630886078,
0.08730851113796234,
-0.22030027210712433,
-0.16754713654518127,
0.02076088637113571,
0.4790689945220947,
-0.06995941698551178,
0.053089018911123276,
-0.4394776225090027,
-0.23944345116615295,
-0.4781884253025055,
0.19708013534545898,
-0.15060743689537048,
-0.26554933190345764,
-0.2916415333747864,
0.12989163398742676,
0.11826722323894501,
0.02350366860628128,
-0.4387792646884918,
0.03509970009326935,
0.08630887418985367,
0.07818049192428589,
-0.019993219524621964,
-0.044524695724248886,
-0.009492341428995132,
0.008771181106567383,
0.3264603614807129,
0.30607929825782776,
-0.4353669583797455,
0.5557737946510315,
0.11811388283967972,
0.05816136673092842,
0.36560702323913574,
0.29708290100097656,
0.012017648667097092,
0.3168715536594391,
-0.004003170877695084,
-0.2208724021911621,
0.06148584187030792,
0.18174251914024353,
-0.0633636862039566,
-0.3740388751029968,
-0.06678406149148941,
-0.5649574398994446,
-0.2988857924938202,
-0.2933887839317322,
0.14802604913711548,
-0.3074212074279785,
-0.25484123826026917,
-0.2832584083080292,
0.27341386675834656,
-0.22974613308906555,
-0.14628401398658752,
0.09897921979427338,
-0.08844149857759476,
-0.2237435132265091,
0.044315628707408905,
0.08506608009338379,
-0.16227595508098602,
-0.028630396351218224,
-0.3096387982368469,
-0.05292472243309021,
0.4652363657951355,
0.132064551115036,
0.19347110390663147,
-0.10540604591369629,
-0.6684598922729492,
0.037897706031799316,
0.5693466067314148,
0.5097744464874268,
0.005542304366827011,
-0.12043185532093048,
0.11432387679815292,
0.2543832063674927,
-0.07095973938703537,
0.20396995544433594,
-0.1388186663389206,
0.2006198912858963,
0.1326107233762741,
0.14503026008605957,
0.2731212377548218,
0.20925427973270416,
-0.2835346460342407,
-0.3051755428314209,
-0.21416088938713074,
-0.09257538616657257,
0.01892067864537239,
-0.03332347795367241,
0.06474344432353973,
0.3815341591835022,
-0.16039064526557922,
-0.3229284882545471,
-0.177934929728508,
-0.10874367505311966,
0.09106399118900299,
0.17733395099639893,
0.223741814494133,
0.257964551448822,
-0.19026929140090942,
0.2595604658126831,
0.17663410305976868,
-0.35594871640205383,
0.08182813972234726,
0.23560424149036407,
0.19367842376232147,
-0.08398392796516418,
-0.31391051411628723,
-0.07148662209510803,
-0.0767212063074112,
0.04414632171392441,
-0.2198115587234497,
-0.16276390850543976,
-0.037900470197200775,
-0.16301031410694122,
-0.25554361939430237,
-0.012057220563292503,
-0.024570927023887634,
-0.17578469216823578,
0.5014539361000061,
-0.25970694422721863,
0.03201374411582947,
-0.05911147594451904,
-0.12233879417181015,
0.2278619110584259,
-0.08521886169910431,
-0.1969069242477417,
0.08068661391735077,
-0.18268360197544098,
0.3506126403808594,
0.3075750470161438,
0.7557080984115601,
0.08496290445327759,
-0.43858256936073303,
0.3527543842792511,
-0.008834373205900192,
-0.24993257224559784,
0.098204605281353,
0.011440720409154892,
-0.03863173723220825,
0.29109424352645874,
0.3620179295539856,
0.01914098858833313,
-0.2755414545536041,
-0.09133782237768173,
-0.019480295479297638,
0.2412548065185547,
-0.37681078910827637,
0.26124003529548645,
-0.3031679689884186,
-0.15892578661441803,
0.18385906517505646,
0.16240893304347992,
-0.16170373558998108,
0.02920672670006752,
0.13904020190238953,
0.27215030789375305,
0.20213493704795837,
0.022936709225177765,
-0.19961640238761902,
-0.02084050513803959,
-0.15062597393989563,
0.2454143464565277,
0.1411076784133911,
-0.07464639842510223,
0.15524451434612274,
-0.14302964508533478,
-0.17154169082641602,
0.3471216559410095,
0.12944994866847992,
-0.028844479471445084,
-0.08782043308019638,
0.03893963247537613,
0.05935237556695938,
0.05251634120941162,
-0.38711708784103394,
-0.08912691473960876,
-0.10280263423919678,
-0.10880592465400696,
0.10044845193624496,
-0.5472638010978699,
0.1111529991030693,
-0.18295496702194214,
0.424777090549469,
-0.295529842376709,
-0.036486487835645676,
0.029958542436361313,
0.17977027595043182,
-0.05496596544981003,
0.1705629676580429,
-0.24385806918144226,
-0.14328773319721222,
-0.17536665499210358,
-0.16818885505199432,
-0.27864956855773926,
0.2655237019062042,
-0.23869147896766663,
-0.009353920817375183,
0.026045378297567368,
0.34144774079322815,
0.014675403013825417,
0.03687798231840134,
0.034864652901887894,
-0.3051832616329193,
-0.6715816855430603,
0.15285652875900269,
0.3799232244491577,
0.26684245467185974,
0.25831902027130127,
-0.35304462909698486,
-0.47485846281051636,
-0.2644219398498535,
0.3256281912326813,
-0.28290796279907227,
0.18725287914276123,
-0.027858704328536987,
-0.38940197229385376,
0.3343361020088196,
0.33199676871299744,
-0.29430633783340454,
-0.09597690403461456,
-0.2260112464427948,
-0.1961696296930313,
0.07396212220191956,
0.19449688494205475,
0.31497296690940857,
-0.16866278648376465,
0.0810830146074295,
0.08291669189929962,
0.32013630867004395,
-0.13688234984874725,
0.12802982330322266,
0.5260478854179382,
-0.1801884025335312,
0.2626561224460602,
0.054967332631349564,
-0.04805615544319153,
0.24960310757160187,
0.3947461247444153,
-0.08801667392253876,
-0.03216543421149254,
-0.005675740540027618,
-0.4177229702472687,
0.08331834524869919,
0.14464539289474487,
-0.14674189686775208,
0.007706009782850742,
-0.08537540584802628,
0.18810737133026123,
0.10785460472106934,
0.060645848512649536,
0.17817744612693787,
0.372546523809433,
0.38070690631866455,
0.1436384618282318,
-0.09666334092617035,
0.8414554595947266,
-0.014410315081477165,
0.06521274894475937,
0.39363929629325867,
0.1621798276901245,
-0.21199040114879608,
-0.1389681100845337,
-0.13023139536380768,
-0.218854159116745,
0.3948899507522583,
0.13910475373268127,
0.12193869054317474,
-0.01226775348186493,
-0.3806421756744385,
-0.22912824153900146,
-0.4974322021007538,
0.01697002723813057,
0.10659924149513245,
0.03581833094358444,
0.27874451875686646,
0.40803754329681396,
-0.2741195857524872,
-0.07351036369800568,
0.05525254085659981,
-0.369166761636734,
-0.11371724307537079,
0.05969948694109917,
-0.23994961380958557,
0.17037241160869598,
-0.023079680278897285,
-0.5380220413208008,
-0.3205028176307678,
0.7414458394050598,
0.00021771644242107868,
0.09870466589927673,
-0.2876693308353424,
0.1439875364303589,
0.0832359716296196,
0.34916695952415466,
-0.009813949465751648,
-0.2938860058784485,
-0.5016283988952637,
-0.32933568954467773,
-0.4276208281517029,
-0.3831460773944855,
-0.13084527850151062,
0.2402859926223755,
-0.22328484058380127,
-0.35920992493629456,
0.37044867873191833,
-0.012962386012077332,
-0.1446429193019867,
-0.02157057821750641,
-0.20398037135601044,
0.045156192034482956,
-0.2999052405357361,
0.007228273898363113,
0.1388060450553894,
-0.10720569640398026,
-0.3052331805229187,
0.013953419402241707,
0.2452324479818344,
0.14778903126716614,
-0.07081512361764908,
-0.06767797470092773,
-0.03889124095439911,
0.22693121433258057,
0.07286593317985535,
0.017972860485315323,
0.06618743389844894,
0.0671495795249939,
0.5369635224342346,
0.2987402677536011,
0.24682560563087463,
-0.12209080159664154,
0.01922396570444107,
0.36159124970436096,
-0.24568992853164673,
0.16382624208927155,
0.04320979863405228,
-0.23784878849983215,
0.061340391635894775,
0.3586055040359497,
0.15834376215934753,
-0.0166846364736557,
0.11640049517154694,
-0.3012365996837616,
0.1999049037694931,
0.21371683478355408,
0.004151665139943361,
-0.05775430053472519,
0.6790004968643188,
0.3671955466270447,
-0.012779243290424347,
-0.05316653847694397,
0.3667999505996704,
-0.37414711713790894,
0.3981565833091736,
0.3430176079273224,
0.3471115231513977,
0.40641236305236816,
-0.20984503626823425,
-0.3018675744533539,
0.191567525267601,
0.33195871114730835,
-0.07660789787769318,
0.18509884178638458,
-0.18214645981788635,
-0.37586814165115356,
-0.04142928496003151,
-0.0942477136850357,
0.3397327661514282,
0.06523937731981277,
-0.19564713537693024,
0.49407386779785156,
0.06315317749977112,
-0.20168937742710114,
-0.11471281945705414,
0.33656662702560425,
-0.054830439388751984,
-0.05796509608626366,
0.21609027683734894,
0.03811420500278473,
-0.19064877927303314,
0.35203659534454346,
0.33457517623901367,
0.15185962617397308,
-0.10744817554950714,
-0.0434572733938694,
-0.09710733592510223,
-0.11279114335775375,
-0.023155370727181435,
0.22664062678813934,
0.18013985455036163,
0.2071555107831955,
0.7799128890037537,
-0.26336848735809326,
0.3296681046485901,
0.025892920792102814,
-0.4050149619579315,
-0.054169390350580215,
0.04093628376722336,
-0.1658574789762497,
-0.03699704632163048,
-0.04930876940488815,
0.17722468078136444,
-0.1595717966556549,
-0.41863304376602173,
0.10971570014953613,
0.4122186303138733,
-0.13538464903831482,
-0.6603273749351501,
-0.4940027594566345,
0.022296525537967682,
0.18543891608715057,
-0.1221526712179184,
-0.16722118854522705,
-0.16123655438423157,
0.23748518526554108,
0.08484843373298645,
-0.24671117961406708,
-0.18241818249225616,
0.5444490313529968,
0.20524552464485168,
-0.17459174990653992,
-0.09936761856079102,
0.5531526803970337,
0.05595073848962784,
-0.2092762142419815,
0.2950090169906616,
-0.23289678990840912,
-0.22309306263923645,
0.08902306109666824,
-0.19846192002296448,
0.41636741161346436,
0.11716292053461075,
-0.2509317696094513,
-0.040828872472047806,
-0.04756784439086914,
0.15268933773040771,
0.5386030077934265,
0.413912832736969,
0.5027272701263428,
-0.23896311223506927,
0.11928260326385498,
-0.06979529559612274,
0.30971744656562805,
0.13940227031707764,
0.30730149149894714,
-0.513468325138092,
-0.2494952231645584,
-0.033646926283836365,
-0.006004653871059418,
-0.1531667709350586,
0.3232017457485199,
0.049769431352615356,
-0.10409347712993622,
-0.156562939286232,
-0.029383547604084015,
-0.025474410504102707,
0.0322430245578289,
-0.05580711364746094,
0.05416096746921539,
-0.32888397574424744,
0.002326853573322296,
-0.06268475949764252,
0.1406768411397934,
0.06289399415254593,
-0.2919207811355591,
-0.24108409881591797,
-0.42229968309402466,
-0.16176581382751465,
-0.055712319910526276,
-0.22458626329898834,
0.30703338980674744,
0.17341715097427368,
-0.04489726200699806,
-0.07935580611228943,
-0.5070898532867432,
0.07433347404003143,
0.0686035007238388,
0.09446512907743454,
0.08516619354486465,
0.032571252435445786,
-0.020197704434394836,
-0.05560582876205444,
-0.22464455664157867,
-0.09151691943407059,
0.10863178223371506,
-0.23243890702724457,
0.011034959927201271,
0.15001913905143738,
0.08778760582208633,
-0.32172656059265137,
0.7859102487564087,
0.004024563357234001,
0.020636331290006638,
-0.027126168832182884,
-0.2612791657447815,
0.13309423625469208,
0.1213180273771286,
0.04562355577945709,
-0.18686793744564056,
0.4898707866668701,
0.30755284428596497,
0.012937892228364944,
0.269697368144989,
0.5250288844108582,
0.04866820573806763,
0.2212865948677063,
0.005495591089129448,
0.3301388919353485,
-0.3393140435218811,
0.11814621090888977,
-0.14236120879650116,
0.09514451026916504,
-0.042269233614206314,
0.29147419333457947,
0.27571073174476624,
0.4842648208141327,
0.08486105501651764,
-0.3516993522644043,
0.2595895230770111,
-0.20524528622627258,
0.07624586671590805,
0.7275319695472717,
0.08671396970748901,
0.31684985756874084,
0.31444936990737915,
0.2281220555305481,
0.4571492373943329,
0.051415231078863144,
0.2946281433105469,
0.0566788949072361,
-0.15942229330539703,
0.04059014469385147,
0.00627933070063591,
0.11925055086612701,
-0.08506116271018982,
0.023124948143959045,
-0.31591805815696716,
-0.4254613220691681,
-0.12760663032531738,
0.008254468441009521,
-0.04375491291284561,
-0.1752750277519226,
0.01807267963886261,
-0.12007330358028412,
0.21992793679237366,
0.00003246590495109558,
0.1514885127544403,
0.5412804484367371,
-0.09085461497306824,
0.024508023634552956,
-0.15688328444957733,
-0.1649009883403778,
0.42984169721603394,
0.22568202018737793,
-0.14868910610675812,
0.19156405329704285,
-0.10078129172325134,
-0.08096466213464737,
0.05565151199698448,
-0.13014088571071625,
0.3380601704120636,
0.026142049580812454,
0.16643781960010529,
-0.6764457821846008,
-0.045405495911836624,
-0.041445281356573105,
-0.06452596932649612,
-0.20099617540836334,
-0.3495071232318878,
0.38972708582878113,
-0.1165071427822113,
-0.271394282579422,
0.1432802975177765,
0.1515008807182312,
0.35173413157463074,
-0.11202027648687363,
-0.35818755626678467,
-0.08622952550649643,
0.05185876786708832,
-0.0809844583272934,
-0.14253437519073486,
0.2655230760574341,
0.023730698972940445,
-0.2251168191432953,
0.021737191826105118,
0.14324600994586945,
-0.0875028744339943,
-0.2112695276737213,
0.09299175441265106,
-0.10477998852729797,
0.19714701175689697,
0.08407749235630035,
0.45536404848098755,
0.5093328952789307,
0.09207843244075775,
-0.0255700945854187,
-0.2781481146812439,
0.32148826122283936,
-0.14847412705421448,
-0.3624584674835205,
-0.0977645069360733,
0.10225379467010498,
-0.13420242071151733,
-0.23792888224124908,
-0.12708395719528198,
0.009042467921972275,
0.30544301867485046,
0.27717459201812744,
-0.2832101881504059,
-0.13115306198596954,
-0.6396155953407288,
0.19172728061676025,
0.03629988059401512,
0.038227587938308716,
-0.09249626100063324,
0.07097675651311874,
0.14565257728099823,
0.04859250783920288,
0.28547489643096924,
0.4260377883911133,
-0.17195625603199005,
0.008103893138468266,
0.256097674369812,
0.02481827326118946,
0.17070333659648895,
-0.05030732601881027,
-0.5536447167396545,
-0.24717877805233002,
0.19230936467647552,
-0.1681051254272461,
-0.28262588381767273,
-0.17645171284675598,
-0.20890606939792633,
-0.0843345895409584,
-0.23837001621723175,
-0.18787150084972382,
0.15034787356853485,
0.12853804230690002,
0.016837043687701225,
-0.10152421146631241,
-0.13177625834941864,
0.4407915771007538,
-0.021505028009414673,
0.16769444942474365,
-0.1945519596338272,
0.05412537604570389,
0.6103241443634033,
0.13891352713108063,
-0.19903671741485596,
-0.35198450088500977,
0.37351325154304504,
0.03136375918984413,
-0.005287854000926018,
-0.02483205869793892,
0.3395010530948639,
-0.06197841092944145,
-0.20840716361999512,
-0.19327008724212646,
0.17734527587890625,
0.0633515864610672,
-0.3400343060493469,
0.08899950236082077
] |
https://github.com/huggingface/datasets/issues/708 | Datasets performance slow? - 6.4x slower than in memory dataset | Facing a similar issue here. My model using SQuAD dataset takes about 1h to process with in memory data and more than 2h with datasets directly. | I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
| 26 | Datasets performance slow? - 6.4x slower than in memory dataset
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
Facing a similar issue here. My model using SQuAD dataset takes about 1h to process with in memory data and more than 2h with datasets directly. | [
-0.3806666433811188,
-0.042408622801303864,
-0.03140971064567566,
0.4377957582473755,
0.10050874948501587,
0.12637382745742798,
0.013655014336109161,
0.30718183517456055,
0.09141014516353607,
-0.07309862971305847,
-0.06624182313680649,
0.30112794041633606,
-0.0139892203733325,
-0.27428877353668213,
-0.08003707230091095,
0.06234866380691528,
0.20978185534477234,
0.028924882411956787,
-0.23669669032096863,
-0.1054772213101387,
-0.26409828662872314,
-0.29736974835395813,
-0.06988515704870224,
-0.22846917808055878,
-0.3223612308502197,
-0.14342530071735382,
0.08182022720575333,
-0.0005960054695606232,
-0.34509924054145813,
-0.4037327766418457,
0.3832426369190216,
0.0766955316066742,
0.06868439167737961,
0.5503899455070496,
-0.00011250170791754499,
-0.04486047849059105,
0.21537084877490997,
0.1636437475681305,
-0.17409516870975494,
0.3116465210914612,
-0.04444272816181183,
-0.24157045781612396,
-0.051339149475097656,
-0.11545289307832718,
-0.013212092220783234,
-0.12978483736515045,
-0.07742957770824432,
-0.7160376310348511,
0.018145978450775146,
0.10876138508319855,
0.1370815634727478,
0.3199504315853119,
-0.38727790117263794,
0.21730045974254608,
0.14214134216308594,
0.31982874870300293,
-0.43895620107650757,
-0.10345587134361267,
0.3924716114997864,
-0.14023572206497192,
-0.05481346696615219,
0.22956834733486176,
-0.182692289352417,
0.2396479845046997,
0.45820972323417664,
-0.024468503892421722,
-0.18928936123847961,
-0.2351144552230835,
0.08833503723144531,
0.4672670066356659,
0.18636924028396606,
-0.1389109492301941,
-0.6342912316322327,
-0.38083428144454956,
-0.22537337243556976,
-0.11583198606967926,
-0.006604380905628204,
0.20127199590206146,
-0.19658349454402924,
0.11101819574832916,
-0.5031594038009644,
0.062106903642416,
0.021066814661026,
-0.010644905269145966,
-0.15939365327358246,
0.3560093343257904,
0.10868192464113235,
0.2212630808353424,
0.3045378625392914,
0.11735497415065765,
0.39511629939079285,
-0.34741640090942383,
-0.04265747591853142,
0.056967560201883316,
-0.6727505326271057,
0.07352586090564728,
0.13223479688167572,
0.13274307548999786,
0.2916538715362549,
0.01923973858356476,
0.13751746714115143,
0.2773090898990631,
-0.01809447444975376,
-0.13785627484321594,
0.21889366209506989,
0.1327664852142334,
-0.3069685399532318,
0.48443368077278137,
0.30892181396484375,
-0.25719332695007324,
0.11316867172718048,
0.23479220271110535,
-0.04290648177266121,
-0.12304047495126724,
0.08087354898452759,
-0.24565881490707397,
0.06285788863897324,
-0.2480964958667755,
-0.3668070137500763,
-0.10154612362384796,
-0.12862327694892883,
-0.03555348888039589,
-0.056583333760499954,
0.16398483514785767,
-0.2934103012084961,
0.22844496369361877,
-0.12105327099561691,
0.003949107602238655,
-0.2586510181427002,
0.04836083576083183,
-0.05330055579543114,
-0.08602413535118103,
-0.31407007575035095,
0.35563796758651733,
0.29162776470184326,
-0.0728287547826767,
0.14573374390602112,
-0.03167036175727844,
0.02422153204679489,
0.24293693900108337,
0.360352098941803,
-0.38301771879196167,
0.25235870480537415,
0.1450633555650711,
-0.22604425251483917,
0.5183619260787964,
0.10156401991844177,
0.4579477906227112,
-0.2209920585155487,
0.3493160307407379,
-0.06009400635957718,
-0.20405109226703644,
0.2610081434249878,
0.11241591721773148,
-0.26480481028556824,
-0.11672507226467133,
-0.43795326352119446,
0.28172725439071655,
0.10803442448377609,
-0.0582335889339447,
-0.010016396641731262,
-0.3681591749191284,
-0.19560609757900238,
-0.12006662786006927,
0.3318263292312622,
0.3998510241508484,
-0.5381984710693359,
0.17783066630363464,
0.06051916256546974,
0.21149687469005585,
0.24934306740760803,
0.6614070534706116,
-0.3634275496006012,
0.23807278275489807,
-0.12859003245830536,
-0.2693576216697693,
-0.11695916205644608,
-0.1960737258195877,
-0.5835573673248291,
0.15087991952896118,
0.004400990903377533,
0.13775651156902313,
0.10366177558898926,
0.4255775511264801,
0.38060030341148376,
0.1373888999223709,
0.12054443359375,
0.2378034144639969,
0.05063333734869957,
0.1219746395945549,
-0.35221317410469055,
-0.26674363017082214,
0.5058069229125977,
0.26592525839805603,
-0.018460508435964584,
-0.1692710518836975,
-0.13043338060379028,
-0.2034454494714737,
0.17151528596878052,
-0.17232151329517365,
0.1123998686671257,
0.27616024017333984,
-0.015416067093610764,
-0.13231514394283295,
0.1253482699394226,
0.09626270085573196,
-0.24141240119934082,
0.44943851232528687,
0.047579728066921234,
0.0823376476764679,
-0.07225553691387177,
-0.0690128281712532,
0.23401322960853577,
0.1237763985991478,
-0.2757114768028259,
-0.09139735996723175,
-0.020273512229323387,
-0.12434770166873932,
0.05064372345805168,
-0.23929336667060852,
-0.1698196679353714,
0.3928055763244629,
-0.20490340888500214,
-0.03977392241358757,
-0.2208189219236374,
0.043494440615177155,
0.028986304998397827,
-0.081019826233387,
-0.01303289458155632,
-0.10963436216115952,
-0.12004014104604721,
-0.02735835686326027,
-0.13626909255981445,
0.13468341529369354,
0.2414696365594864,
0.2601763904094696,
0.1974772810935974,
0.3538559675216675,
0.13840901851654053,
-0.31150174140930176,
0.3684661388397217,
0.2825617790222168,
0.1614503264427185,
-0.18783089518547058,
-0.35825929045677185,
0.5080371499061584,
0.040837422013282776,
0.6212490797042847,
0.13185863196849823,
-0.27360308170318604,
0.03547178953886032,
0.16177283227443695,
-0.15279020369052887,
0.36181044578552246,
0.2422436773777008,
0.18313418328762054,
0.5993636846542358,
0.39907434582710266,
-0.2270188331604004,
0.12934578955173492,
0.3130761981010437,
0.07273966073989868,
-0.15578114986419678,
-0.053435906767845154,
-0.2871868312358856,
-0.28217992186546326,
0.2410205751657486,
-0.0649418756365776,
0.527103066444397,
0.29019907116889954,
0.12482994794845581,
-0.16651396453380585,
-0.062395669519901276,
-0.08856488764286041,
0.00046421587467193604,
0.2956542372703552,
0.20211820304393768,
0.023607712239027023,
0.13216164708137512,
-0.033044420182704926,
-0.23693421483039856,
-0.1259486824274063,
-0.013615601696074009,
0.09208767116069794,
-0.18366697430610657,
0.19665588438510895,
-0.04824105650186539,
0.043179385364055634,
-0.11852395534515381,
0.04868873208761215,
-0.14586076140403748,
-0.25088945031166077,
-0.07871976494789124,
-0.17037853598594666,
0.14087489247322083,
0.0997161939740181,
-0.0557449609041214,
0.297817587852478,
-0.0532313734292984,
-0.34373149275779724,
-0.13309583067893982,
-0.1097651794552803,
-0.20562055706977844,
0.03478947654366493,
0.07904907315969467,
0.20156285166740417,
0.3894379138946533,
0.23339731991291046,
0.06305491179227829,
-0.2507634162902832,
-0.1281212568283081,
-0.08113452792167664,
-0.17271307110786438,
0.2470870316028595,
-0.3129538595676422,
0.17224940657615662,
0.04505188763141632,
0.0761781558394432,
0.037500038743019104,
-0.3253334164619446,
0.02823837660253048,
-0.1393776834011078,
-0.18569070100784302,
-0.09560336172580719,
0.09416745603084564,
-0.2838163673877716,
-0.2353224903345108,
-0.23166495561599731,
0.11221776902675629,
0.18562117218971252,
-0.1038917601108551,
-0.07778768241405487,
0.21005429327487946,
0.14003179967403412,
-0.023024646565318108,
-0.03231675922870636,
0.0010908977128565311,
-0.23957586288452148,
0.5963212847709656,
0.13078360259532928,
-0.28741011023521423,
-0.14843885600566864,
0.03250466287136078,
0.09260521829128265,
0.4593251943588257,
-0.43639183044433594,
0.3887858986854553,
-0.4268547594547272,
0.06591242551803589,
-0.028323717415332794,
0.14973951876163483,
0.38756927847862244,
-0.04899069666862488,
-0.055349260568618774,
-0.0899970605969429,
-0.28980714082717896,
-0.20847749710083008,
-0.2657877504825592,
0.1750810742378235,
0.0703376829624176,
0.20472702383995056,
0.1540493369102478,
0.770289421081543,
0.2816253900527954,
-0.12821228802204132,
-0.0700763612985611,
-0.019976036623120308,
0.32215040922164917,
-0.3042881190776825,
-0.13366299867630005,
0.0767841562628746,
-0.23239293694496155,
-0.3620029091835022,
0.10222965478897095,
0.15922048687934875,
-0.22285528481006622,
0.05716609209775925,
0.43347737193107605,
0.26290497183799744,
0.03444605693221092,
0.16438032686710358,
-0.144460529088974,
0.1150294616818428,
0.12919822335243225,
0.2734664976596832,
-0.2965279519557953,
-0.23773983120918274,
0.1282239705324173,
-0.11579309403896332,
0.1971656233072281,
-0.05388909950852394,
-0.5846304893493652,
0.07504286617040634,
-0.7312512397766113,
0.17159870266914368,
-0.00427569355815649,
0.2625329792499542,
0.12129297852516174,
0.09905723482370377,
0.2460765242576599,
0.03434412181377411,
0.4295501112937927,
0.007447125390172005,
-0.13422907888889313,
-0.02095475234091282,
-0.26261961460113525,
-0.5181396007537842,
0.001941286027431488,
-0.11806343495845795,
0.09799259155988693,
-0.018077600747346878,
0.1409916877746582,
-0.14494863152503967,
-0.20846621692180634,
0.012804991565644741,
0.28982558846473694,
-0.1102437674999237,
-0.25748905539512634,
-0.3075465261936188,
-0.2508772015571594,
0.003196684643626213,
-0.11069142073392868,
0.06405922025442123,
-0.21589262783527374,
-0.005322979763150215,
-0.21743755042552948,
-0.14119853079319,
0.1710699498653412,
0.287007212638855,
-0.01994873210787773,
0.22777262330055237,
0.04203520342707634,
0.27845409512519836,
0.30918624997138977,
-0.07793480157852173,
0.3109682500362396,
0.6148457527160645,
0.09618595242500305,
-0.04493163526058197,
-0.05799076706171036,
-0.030223242938518524,
0.1740666627883911,
0.39990100264549255,
-0.11601776629686356,
-0.11743073910474777,
-0.04704491049051285,
-0.04595033824443817,
-0.4416710436344147,
0.09300834685564041,
0.3606792092323303,
0.05450912564992905,
-0.49379798769950867,
-0.6961228847503662,
0.48292404413223267,
0.3221646547317505,
-0.002960599958896637,
0.5213719606399536,
0.1529994010925293,
-0.11883670091629028,
0.22892259061336517,
0.3288167119026184,
0.7686118483543396,
-0.4081909656524658,
0.3427327275276184,
0.033929698169231415,
-0.000614657998085022,
0.28620848059654236,
-0.1507108062505722,
0.04774768650531769,
-0.13878823816776276,
-0.04516090825200081,
0.0209274310618639,
-0.3210030198097229,
0.21636155247688293,
0.04215191304683685,
0.2567623257637024,
0.20722661912441254,
0.14306233823299408,
-0.028538469225168228,
0.009282244369387627,
0.36832359433174133,
0.14154450595378876,
-0.352841854095459,
0.08062957227230072,
0.2060844898223877,
-0.0636477917432785,
0.026683414354920387,
0.10529827326536179,
0.07716839015483856,
-0.5997768640518188,
0.21185804903507233,
-0.22214984893798828,
-0.09834102541208267,
-0.27475830912590027,
0.22977328300476074,
-0.24676385521888733,
-0.19483405351638794,
0.12047849595546722,
0.17524585127830505,
-0.02735401690006256,
-0.005054939538240433,
-0.29250428080558777,
0.2589016258716583,
-0.1889817714691162,
0.17346635460853577,
0.46968525648117065,
-0.4210251569747925,
0.19382835924625397,
0.08227459341287613,
-0.05009527504444122,
0.042528629302978516,
-0.27078136801719666,
-0.3727762699127197,
-0.119048111140728,
-0.09768183529376984,
0.046276774257421494,
-0.09696663171052933,
-0.17741267383098602,
0.1778089553117752,
-0.11572803556919098,
-0.07388055324554443,
0.11928673088550568,
0.28471413254737854,
0.14836934208869934,
0.570770263671875,
0.1340295523405075,
-0.40163180232048035,
-0.15519168972969055,
0.29708611965179443,
0.024441804736852646,
0.08895169198513031,
0.34035784006118774,
0.16486357152462006,
-0.26175814867019653,
-0.078019879758358,
0.34606605768203735,
0.5033900141716003,
-0.13709066808223724,
-0.09443420171737671,
-0.3355535864830017,
0.14552389085292816,
0.16528871655464172,
0.10143573582172394,
0.14639633893966675,
-0.43259620666503906,
-0.2803822457790375,
-0.10835887491703033,
-0.2876851558685303,
0.14524675905704498,
-0.14822880923748016,
0.29796847701072693,
-0.19012171030044556,
-0.31742188334465027,
-0.11149486899375916,
0.01839434541761875,
-0.2807397246360779,
-0.25059330463409424,
-0.010744128376245499,
0.10900290310382843,
-0.10112187266349792,
0.22028779983520508,
0.024403631687164307,
-0.11193418502807617,
0.0007438585162162781,
-0.07983710616827011,
-0.12734174728393555,
-0.1610722839832306,
0.05955244228243828,
0.1735745519399643,
0.05251915752887726,
-0.40336722135543823,
-0.054908521473407745,
-0.3336772322654724,
-0.2233925312757492,
-0.3024187684059143,
0.04917363449931145,
0.33025631308555603,
-0.10850398242473602,
0.0007784543558955193,
0.06414219737052917,
-0.09168758243322372,
-0.11126849055290222,
0.29550546407699585,
-0.1259220540523529,
0.16868937015533447,
0.030922841280698776,
0.1445612907409668,
0.4665188789367676,
-0.2060360461473465,
-0.13433855772018433,
0.13949929177761078,
0.09199842065572739,
0.21920043230056763,
0.31199273467063904,
-0.37542444467544556,
0.30088555812835693,
0.17825499176979065,
0.5255874395370483,
0.5776782035827637,
-0.08642365038394928,
-0.04829949885606766,
-0.1358981728553772,
0.11961130052804947,
-0.008285121992230415,
-0.24928991496562958,
0.0623391829431057,
-0.11106911301612854,
0.15031425654888153,
0.2359202802181244,
0.31714653968811035,
0.3776895999908447,
-0.013536490499973297,
-0.15435445308685303,
0.60346919298172,
-0.4535907506942749,
-0.06375458836555481,
-0.106644406914711,
0.16593575477600098,
0.10513633489608765,
0.44457918405532837,
0.1751127690076828,
0.15019924938678741,
0.5105740427970886,
0.06874160468578339,
0.6162846684455872,
0.3639476001262665,
0.31382471323013306,
-0.10886264592409134,
-0.18955156207084656,
-0.006424449384212494,
0.08304151147603989,
-0.2204793095588684,
-0.031143076717853546,
0.0744839534163475,
0.04590989276766777,
-0.35433048009872437,
-0.3149506449699402,
0.0743725597858429,
-0.25379475951194763,
-0.007490802556276321,
-0.0483669713139534,
-0.029870549216866493,
-0.12977781891822815,
0.0728951245546341,
0.2107991874217987,
-0.20319311320781708,
-0.19604916870594025,
0.3447192907333374,
-0.07792562246322632,
-0.05682133138179779,
-0.16212983429431915,
0.28085213899612427,
-0.021489150822162628,
0.1728646457195282,
-0.12640690803527832,
-0.082384392619133,
-0.2849639058113098,
0.010356336832046509,
-0.1397750973701477,
0.3787521719932556,
0.27050459384918213,
0.23240576684474945,
-0.16406464576721191,
0.050375211983919144,
-0.14890079200267792,
-0.13814076781272888,
0.0803581178188324,
0.3532447814941406,
-0.2355179786682129,
-0.04281085357069969,
0.1823548823595047,
0.10394218564033508,
-0.12562108039855957,
-0.09235432744026184,
-0.18836429715156555,
0.06595812737941742,
-0.43436723947525024,
0.11809118092060089,
-0.08400826901197433,
-0.2931291162967682,
0.06691838800907135,
0.07898397743701935,
-0.24304193258285522,
-0.11079824715852737,
0.48218488693237305,
-0.4651016294956207,
-0.02384684979915619,
-0.1127801388502121,
0.06832945346832275,
-0.2132829874753952,
0.743356466293335,
0.3071632385253906,
0.29774752259254456,
-0.3887542188167572,
0.1410844624042511,
-0.6297143697738647,
-0.06277615576982498,
-0.35741519927978516,
0.024195915088057518,
0.12049387395381927,
0.2420872002840042,
0.08292707800865173,
0.3555293679237366,
0.12554597854614258,
0.0015365472063422203,
-0.03281405568122864,
-0.08632767200469971,
-0.23092062771320343,
-0.025104042142629623,
-0.2001776248216629,
0.21831929683685303,
-0.17947567999362946,
-0.3345945477485657,
0.3847672641277313,
-0.10637593269348145,
-0.04345609247684479,
-0.16519862413406372,
-0.0484442301094532,
0.36525624990463257,
0.12913012504577637,
0.30278876423835754,
0.17714804410934448,
0.4205041527748108,
0.2366502583026886,
-0.07973449677228928,
-0.3657917380332947,
-0.05324940010905266,
-0.032749075442552567,
0.09684883058071136,
-0.24282386898994446,
0.27961596846580505,
-0.15631145238876343,
-0.43859919905662537,
-0.15727634727954865,
0.07073159515857697,
-0.08751414716243744,
-0.09674578160047531,
-0.3099510967731476,
0.04811631143093109,
-0.09352725744247437,
0.1731005758047104,
0.05288771167397499,
0.1320953071117401,
0.09433206915855408,
-0.16976599395275116,
-0.3104426860809326,
0.07549957931041718,
0.09549293667078018,
-0.21179115772247314,
-0.10135827958583832,
-0.09009261429309845,
-0.07877902686595917,
0.4433889091014862,
0.1187654659152031,
-0.525415301322937,
-0.01713188737630844,
0.32149538397789,
-0.04861156642436981,
-0.10246966779232025,
0.197234109044075,
-0.08903463184833527,
-0.016529932618141174,
-0.1392822563648224,
0.20708788931369781,
-0.19468927383422852,
-0.10248934477567673,
-0.010064464062452316,
0.0016356073319911957
] |
https://github.com/huggingface/datasets/issues/708 | Datasets performance slow? - 6.4x slower than in memory dataset | Thanks for the tip @thomwolf ! I did not see that flag in the docs. I'll try with that. | I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
| 19 | Datasets performance slow? - 6.4x slower than in memory dataset
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
Thanks for the tip @thomwolf ! I did not see that flag in the docs. I'll try with that. | [
-0.3806666433811188,
-0.042408622801303864,
-0.03140971064567566,
0.4377957582473755,
0.10050874948501587,
0.12637382745742798,
0.013655014336109161,
0.30718183517456055,
0.09141014516353607,
-0.07309862971305847,
-0.06624182313680649,
0.30112794041633606,
-0.0139892203733325,
-0.27428877353668213,
-0.08003707230091095,
0.06234866380691528,
0.20978185534477234,
0.028924882411956787,
-0.23669669032096863,
-0.1054772213101387,
-0.26409828662872314,
-0.29736974835395813,
-0.06988515704870224,
-0.22846917808055878,
-0.3223612308502197,
-0.14342530071735382,
0.08182022720575333,
-0.0005960054695606232,
-0.34509924054145813,
-0.4037327766418457,
0.3832426369190216,
0.0766955316066742,
0.06868439167737961,
0.5503899455070496,
-0.00011250170791754499,
-0.04486047849059105,
0.21537084877490997,
0.1636437475681305,
-0.17409516870975494,
0.3116465210914612,
-0.04444272816181183,
-0.24157045781612396,
-0.051339149475097656,
-0.11545289307832718,
-0.013212092220783234,
-0.12978483736515045,
-0.07742957770824432,
-0.7160376310348511,
0.018145978450775146,
0.10876138508319855,
0.1370815634727478,
0.3199504315853119,
-0.38727790117263794,
0.21730045974254608,
0.14214134216308594,
0.31982874870300293,
-0.43895620107650757,
-0.10345587134361267,
0.3924716114997864,
-0.14023572206497192,
-0.05481346696615219,
0.22956834733486176,
-0.182692289352417,
0.2396479845046997,
0.45820972323417664,
-0.024468503892421722,
-0.18928936123847961,
-0.2351144552230835,
0.08833503723144531,
0.4672670066356659,
0.18636924028396606,
-0.1389109492301941,
-0.6342912316322327,
-0.38083428144454956,
-0.22537337243556976,
-0.11583198606967926,
-0.006604380905628204,
0.20127199590206146,
-0.19658349454402924,
0.11101819574832916,
-0.5031594038009644,
0.062106903642416,
0.021066814661026,
-0.010644905269145966,
-0.15939365327358246,
0.3560093343257904,
0.10868192464113235,
0.2212630808353424,
0.3045378625392914,
0.11735497415065765,
0.39511629939079285,
-0.34741640090942383,
-0.04265747591853142,
0.056967560201883316,
-0.6727505326271057,
0.07352586090564728,
0.13223479688167572,
0.13274307548999786,
0.2916538715362549,
0.01923973858356476,
0.13751746714115143,
0.2773090898990631,
-0.01809447444975376,
-0.13785627484321594,
0.21889366209506989,
0.1327664852142334,
-0.3069685399532318,
0.48443368077278137,
0.30892181396484375,
-0.25719332695007324,
0.11316867172718048,
0.23479220271110535,
-0.04290648177266121,
-0.12304047495126724,
0.08087354898452759,
-0.24565881490707397,
0.06285788863897324,
-0.2480964958667755,
-0.3668070137500763,
-0.10154612362384796,
-0.12862327694892883,
-0.03555348888039589,
-0.056583333760499954,
0.16398483514785767,
-0.2934103012084961,
0.22844496369361877,
-0.12105327099561691,
0.003949107602238655,
-0.2586510181427002,
0.04836083576083183,
-0.05330055579543114,
-0.08602413535118103,
-0.31407007575035095,
0.35563796758651733,
0.29162776470184326,
-0.0728287547826767,
0.14573374390602112,
-0.03167036175727844,
0.02422153204679489,
0.24293693900108337,
0.360352098941803,
-0.38301771879196167,
0.25235870480537415,
0.1450633555650711,
-0.22604425251483917,
0.5183619260787964,
0.10156401991844177,
0.4579477906227112,
-0.2209920585155487,
0.3493160307407379,
-0.06009400635957718,
-0.20405109226703644,
0.2610081434249878,
0.11241591721773148,
-0.26480481028556824,
-0.11672507226467133,
-0.43795326352119446,
0.28172725439071655,
0.10803442448377609,
-0.0582335889339447,
-0.010016396641731262,
-0.3681591749191284,
-0.19560609757900238,
-0.12006662786006927,
0.3318263292312622,
0.3998510241508484,
-0.5381984710693359,
0.17783066630363464,
0.06051916256546974,
0.21149687469005585,
0.24934306740760803,
0.6614070534706116,
-0.3634275496006012,
0.23807278275489807,
-0.12859003245830536,
-0.2693576216697693,
-0.11695916205644608,
-0.1960737258195877,
-0.5835573673248291,
0.15087991952896118,
0.004400990903377533,
0.13775651156902313,
0.10366177558898926,
0.4255775511264801,
0.38060030341148376,
0.1373888999223709,
0.12054443359375,
0.2378034144639969,
0.05063333734869957,
0.1219746395945549,
-0.35221317410469055,
-0.26674363017082214,
0.5058069229125977,
0.26592525839805603,
-0.018460508435964584,
-0.1692710518836975,
-0.13043338060379028,
-0.2034454494714737,
0.17151528596878052,
-0.17232151329517365,
0.1123998686671257,
0.27616024017333984,
-0.015416067093610764,
-0.13231514394283295,
0.1253482699394226,
0.09626270085573196,
-0.24141240119934082,
0.44943851232528687,
0.047579728066921234,
0.0823376476764679,
-0.07225553691387177,
-0.0690128281712532,
0.23401322960853577,
0.1237763985991478,
-0.2757114768028259,
-0.09139735996723175,
-0.020273512229323387,
-0.12434770166873932,
0.05064372345805168,
-0.23929336667060852,
-0.1698196679353714,
0.3928055763244629,
-0.20490340888500214,
-0.03977392241358757,
-0.2208189219236374,
0.043494440615177155,
0.028986304998397827,
-0.081019826233387,
-0.01303289458155632,
-0.10963436216115952,
-0.12004014104604721,
-0.02735835686326027,
-0.13626909255981445,
0.13468341529369354,
0.2414696365594864,
0.2601763904094696,
0.1974772810935974,
0.3538559675216675,
0.13840901851654053,
-0.31150174140930176,
0.3684661388397217,
0.2825617790222168,
0.1614503264427185,
-0.18783089518547058,
-0.35825929045677185,
0.5080371499061584,
0.040837422013282776,
0.6212490797042847,
0.13185863196849823,
-0.27360308170318604,
0.03547178953886032,
0.16177283227443695,
-0.15279020369052887,
0.36181044578552246,
0.2422436773777008,
0.18313418328762054,
0.5993636846542358,
0.39907434582710266,
-0.2270188331604004,
0.12934578955173492,
0.3130761981010437,
0.07273966073989868,
-0.15578114986419678,
-0.053435906767845154,
-0.2871868312358856,
-0.28217992186546326,
0.2410205751657486,
-0.0649418756365776,
0.527103066444397,
0.29019907116889954,
0.12482994794845581,
-0.16651396453380585,
-0.062395669519901276,
-0.08856488764286041,
0.00046421587467193604,
0.2956542372703552,
0.20211820304393768,
0.023607712239027023,
0.13216164708137512,
-0.033044420182704926,
-0.23693421483039856,
-0.1259486824274063,
-0.013615601696074009,
0.09208767116069794,
-0.18366697430610657,
0.19665588438510895,
-0.04824105650186539,
0.043179385364055634,
-0.11852395534515381,
0.04868873208761215,
-0.14586076140403748,
-0.25088945031166077,
-0.07871976494789124,
-0.17037853598594666,
0.14087489247322083,
0.0997161939740181,
-0.0557449609041214,
0.297817587852478,
-0.0532313734292984,
-0.34373149275779724,
-0.13309583067893982,
-0.1097651794552803,
-0.20562055706977844,
0.03478947654366493,
0.07904907315969467,
0.20156285166740417,
0.3894379138946533,
0.23339731991291046,
0.06305491179227829,
-0.2507634162902832,
-0.1281212568283081,
-0.08113452792167664,
-0.17271307110786438,
0.2470870316028595,
-0.3129538595676422,
0.17224940657615662,
0.04505188763141632,
0.0761781558394432,
0.037500038743019104,
-0.3253334164619446,
0.02823837660253048,
-0.1393776834011078,
-0.18569070100784302,
-0.09560336172580719,
0.09416745603084564,
-0.2838163673877716,
-0.2353224903345108,
-0.23166495561599731,
0.11221776902675629,
0.18562117218971252,
-0.1038917601108551,
-0.07778768241405487,
0.21005429327487946,
0.14003179967403412,
-0.023024646565318108,
-0.03231675922870636,
0.0010908977128565311,
-0.23957586288452148,
0.5963212847709656,
0.13078360259532928,
-0.28741011023521423,
-0.14843885600566864,
0.03250466287136078,
0.09260521829128265,
0.4593251943588257,
-0.43639183044433594,
0.3887858986854553,
-0.4268547594547272,
0.06591242551803589,
-0.028323717415332794,
0.14973951876163483,
0.38756927847862244,
-0.04899069666862488,
-0.055349260568618774,
-0.0899970605969429,
-0.28980714082717896,
-0.20847749710083008,
-0.2657877504825592,
0.1750810742378235,
0.0703376829624176,
0.20472702383995056,
0.1540493369102478,
0.770289421081543,
0.2816253900527954,
-0.12821228802204132,
-0.0700763612985611,
-0.019976036623120308,
0.32215040922164917,
-0.3042881190776825,
-0.13366299867630005,
0.0767841562628746,
-0.23239293694496155,
-0.3620029091835022,
0.10222965478897095,
0.15922048687934875,
-0.22285528481006622,
0.05716609209775925,
0.43347737193107605,
0.26290497183799744,
0.03444605693221092,
0.16438032686710358,
-0.144460529088974,
0.1150294616818428,
0.12919822335243225,
0.2734664976596832,
-0.2965279519557953,
-0.23773983120918274,
0.1282239705324173,
-0.11579309403896332,
0.1971656233072281,
-0.05388909950852394,
-0.5846304893493652,
0.07504286617040634,
-0.7312512397766113,
0.17159870266914368,
-0.00427569355815649,
0.2625329792499542,
0.12129297852516174,
0.09905723482370377,
0.2460765242576599,
0.03434412181377411,
0.4295501112937927,
0.007447125390172005,
-0.13422907888889313,
-0.02095475234091282,
-0.26261961460113525,
-0.5181396007537842,
0.001941286027431488,
-0.11806343495845795,
0.09799259155988693,
-0.018077600747346878,
0.1409916877746582,
-0.14494863152503967,
-0.20846621692180634,
0.012804991565644741,
0.28982558846473694,
-0.1102437674999237,
-0.25748905539512634,
-0.3075465261936188,
-0.2508772015571594,
0.003196684643626213,
-0.11069142073392868,
0.06405922025442123,
-0.21589262783527374,
-0.005322979763150215,
-0.21743755042552948,
-0.14119853079319,
0.1710699498653412,
0.287007212638855,
-0.01994873210787773,
0.22777262330055237,
0.04203520342707634,
0.27845409512519836,
0.30918624997138977,
-0.07793480157852173,
0.3109682500362396,
0.6148457527160645,
0.09618595242500305,
-0.04493163526058197,
-0.05799076706171036,
-0.030223242938518524,
0.1740666627883911,
0.39990100264549255,
-0.11601776629686356,
-0.11743073910474777,
-0.04704491049051285,
-0.04595033824443817,
-0.4416710436344147,
0.09300834685564041,
0.3606792092323303,
0.05450912564992905,
-0.49379798769950867,
-0.6961228847503662,
0.48292404413223267,
0.3221646547317505,
-0.002960599958896637,
0.5213719606399536,
0.1529994010925293,
-0.11883670091629028,
0.22892259061336517,
0.3288167119026184,
0.7686118483543396,
-0.4081909656524658,
0.3427327275276184,
0.033929698169231415,
-0.000614657998085022,
0.28620848059654236,
-0.1507108062505722,
0.04774768650531769,
-0.13878823816776276,
-0.04516090825200081,
0.0209274310618639,
-0.3210030198097229,
0.21636155247688293,
0.04215191304683685,
0.2567623257637024,
0.20722661912441254,
0.14306233823299408,
-0.028538469225168228,
0.009282244369387627,
0.36832359433174133,
0.14154450595378876,
-0.352841854095459,
0.08062957227230072,
0.2060844898223877,
-0.0636477917432785,
0.026683414354920387,
0.10529827326536179,
0.07716839015483856,
-0.5997768640518188,
0.21185804903507233,
-0.22214984893798828,
-0.09834102541208267,
-0.27475830912590027,
0.22977328300476074,
-0.24676385521888733,
-0.19483405351638794,
0.12047849595546722,
0.17524585127830505,
-0.02735401690006256,
-0.005054939538240433,
-0.29250428080558777,
0.2589016258716583,
-0.1889817714691162,
0.17346635460853577,
0.46968525648117065,
-0.4210251569747925,
0.19382835924625397,
0.08227459341287613,
-0.05009527504444122,
0.042528629302978516,
-0.27078136801719666,
-0.3727762699127197,
-0.119048111140728,
-0.09768183529376984,
0.046276774257421494,
-0.09696663171052933,
-0.17741267383098602,
0.1778089553117752,
-0.11572803556919098,
-0.07388055324554443,
0.11928673088550568,
0.28471413254737854,
0.14836934208869934,
0.570770263671875,
0.1340295523405075,
-0.40163180232048035,
-0.15519168972969055,
0.29708611965179443,
0.024441804736852646,
0.08895169198513031,
0.34035784006118774,
0.16486357152462006,
-0.26175814867019653,
-0.078019879758358,
0.34606605768203735,
0.5033900141716003,
-0.13709066808223724,
-0.09443420171737671,
-0.3355535864830017,
0.14552389085292816,
0.16528871655464172,
0.10143573582172394,
0.14639633893966675,
-0.43259620666503906,
-0.2803822457790375,
-0.10835887491703033,
-0.2876851558685303,
0.14524675905704498,
-0.14822880923748016,
0.29796847701072693,
-0.19012171030044556,
-0.31742188334465027,
-0.11149486899375916,
0.01839434541761875,
-0.2807397246360779,
-0.25059330463409424,
-0.010744128376245499,
0.10900290310382843,
-0.10112187266349792,
0.22028779983520508,
0.024403631687164307,
-0.11193418502807617,
0.0007438585162162781,
-0.07983710616827011,
-0.12734174728393555,
-0.1610722839832306,
0.05955244228243828,
0.1735745519399643,
0.05251915752887726,
-0.40336722135543823,
-0.054908521473407745,
-0.3336772322654724,
-0.2233925312757492,
-0.3024187684059143,
0.04917363449931145,
0.33025631308555603,
-0.10850398242473602,
0.0007784543558955193,
0.06414219737052917,
-0.09168758243322372,
-0.11126849055290222,
0.29550546407699585,
-0.1259220540523529,
0.16868937015533447,
0.030922841280698776,
0.1445612907409668,
0.4665188789367676,
-0.2060360461473465,
-0.13433855772018433,
0.13949929177761078,
0.09199842065572739,
0.21920043230056763,
0.31199273467063904,
-0.37542444467544556,
0.30088555812835693,
0.17825499176979065,
0.5255874395370483,
0.5776782035827637,
-0.08642365038394928,
-0.04829949885606766,
-0.1358981728553772,
0.11961130052804947,
-0.008285121992230415,
-0.24928991496562958,
0.0623391829431057,
-0.11106911301612854,
0.15031425654888153,
0.2359202802181244,
0.31714653968811035,
0.3776895999908447,
-0.013536490499973297,
-0.15435445308685303,
0.60346919298172,
-0.4535907506942749,
-0.06375458836555481,
-0.106644406914711,
0.16593575477600098,
0.10513633489608765,
0.44457918405532837,
0.1751127690076828,
0.15019924938678741,
0.5105740427970886,
0.06874160468578339,
0.6162846684455872,
0.3639476001262665,
0.31382471323013306,
-0.10886264592409134,
-0.18955156207084656,
-0.006424449384212494,
0.08304151147603989,
-0.2204793095588684,
-0.031143076717853546,
0.0744839534163475,
0.04590989276766777,
-0.35433048009872437,
-0.3149506449699402,
0.0743725597858429,
-0.25379475951194763,
-0.007490802556276321,
-0.0483669713139534,
-0.029870549216866493,
-0.12977781891822815,
0.0728951245546341,
0.2107991874217987,
-0.20319311320781708,
-0.19604916870594025,
0.3447192907333374,
-0.07792562246322632,
-0.05682133138179779,
-0.16212983429431915,
0.28085213899612427,
-0.021489150822162628,
0.1728646457195282,
-0.12640690803527832,
-0.082384392619133,
-0.2849639058113098,
0.010356336832046509,
-0.1397750973701477,
0.3787521719932556,
0.27050459384918213,
0.23240576684474945,
-0.16406464576721191,
0.050375211983919144,
-0.14890079200267792,
-0.13814076781272888,
0.0803581178188324,
0.3532447814941406,
-0.2355179786682129,
-0.04281085357069969,
0.1823548823595047,
0.10394218564033508,
-0.12562108039855957,
-0.09235432744026184,
-0.18836429715156555,
0.06595812737941742,
-0.43436723947525024,
0.11809118092060089,
-0.08400826901197433,
-0.2931291162967682,
0.06691838800907135,
0.07898397743701935,
-0.24304193258285522,
-0.11079824715852737,
0.48218488693237305,
-0.4651016294956207,
-0.02384684979915619,
-0.1127801388502121,
0.06832945346832275,
-0.2132829874753952,
0.743356466293335,
0.3071632385253906,
0.29774752259254456,
-0.3887542188167572,
0.1410844624042511,
-0.6297143697738647,
-0.06277615576982498,
-0.35741519927978516,
0.024195915088057518,
0.12049387395381927,
0.2420872002840042,
0.08292707800865173,
0.3555293679237366,
0.12554597854614258,
0.0015365472063422203,
-0.03281405568122864,
-0.08632767200469971,
-0.23092062771320343,
-0.025104042142629623,
-0.2001776248216629,
0.21831929683685303,
-0.17947567999362946,
-0.3345945477485657,
0.3847672641277313,
-0.10637593269348145,
-0.04345609247684479,
-0.16519862413406372,
-0.0484442301094532,
0.36525624990463257,
0.12913012504577637,
0.30278876423835754,
0.17714804410934448,
0.4205041527748108,
0.2366502583026886,
-0.07973449677228928,
-0.3657917380332947,
-0.05324940010905266,
-0.032749075442552567,
0.09684883058071136,
-0.24282386898994446,
0.27961596846580505,
-0.15631145238876343,
-0.43859919905662537,
-0.15727634727954865,
0.07073159515857697,
-0.08751414716243744,
-0.09674578160047531,
-0.3099510967731476,
0.04811631143093109,
-0.09352725744247437,
0.1731005758047104,
0.05288771167397499,
0.1320953071117401,
0.09433206915855408,
-0.16976599395275116,
-0.3104426860809326,
0.07549957931041718,
0.09549293667078018,
-0.21179115772247314,
-0.10135827958583832,
-0.09009261429309845,
-0.07877902686595917,
0.4433889091014862,
0.1187654659152031,
-0.525415301322937,
-0.01713188737630844,
0.32149538397789,
-0.04861156642436981,
-0.10246966779232025,
0.197234109044075,
-0.08903463184833527,
-0.016529932618141174,
-0.1392822563648224,
0.20708788931369781,
-0.19468927383422852,
-0.10248934477567673,
-0.010064464062452316,
0.0016356073319911957
] |
https://github.com/huggingface/datasets/issues/708 | Datasets performance slow? - 6.4x slower than in memory dataset | We should add it indeed and also maybe a specific section with all the tips for maximal speed. What do you think @lhoestq @SBrandeis @yjernite ? | I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
| 26 | Datasets performance slow? - 6.4x slower than in memory dataset
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
We should add it indeed and also maybe a specific section with all the tips for maximal speed. What do you think @lhoestq @SBrandeis @yjernite ? | [
-0.3806666433811188,
-0.042408622801303864,
-0.03140971064567566,
0.4377957582473755,
0.10050874948501587,
0.12637382745742798,
0.013655014336109161,
0.30718183517456055,
0.09141014516353607,
-0.07309862971305847,
-0.06624182313680649,
0.30112794041633606,
-0.0139892203733325,
-0.27428877353668213,
-0.08003707230091095,
0.06234866380691528,
0.20978185534477234,
0.028924882411956787,
-0.23669669032096863,
-0.1054772213101387,
-0.26409828662872314,
-0.29736974835395813,
-0.06988515704870224,
-0.22846917808055878,
-0.3223612308502197,
-0.14342530071735382,
0.08182022720575333,
-0.0005960054695606232,
-0.34509924054145813,
-0.4037327766418457,
0.3832426369190216,
0.0766955316066742,
0.06868439167737961,
0.5503899455070496,
-0.00011250170791754499,
-0.04486047849059105,
0.21537084877490997,
0.1636437475681305,
-0.17409516870975494,
0.3116465210914612,
-0.04444272816181183,
-0.24157045781612396,
-0.051339149475097656,
-0.11545289307832718,
-0.013212092220783234,
-0.12978483736515045,
-0.07742957770824432,
-0.7160376310348511,
0.018145978450775146,
0.10876138508319855,
0.1370815634727478,
0.3199504315853119,
-0.38727790117263794,
0.21730045974254608,
0.14214134216308594,
0.31982874870300293,
-0.43895620107650757,
-0.10345587134361267,
0.3924716114997864,
-0.14023572206497192,
-0.05481346696615219,
0.22956834733486176,
-0.182692289352417,
0.2396479845046997,
0.45820972323417664,
-0.024468503892421722,
-0.18928936123847961,
-0.2351144552230835,
0.08833503723144531,
0.4672670066356659,
0.18636924028396606,
-0.1389109492301941,
-0.6342912316322327,
-0.38083428144454956,
-0.22537337243556976,
-0.11583198606967926,
-0.006604380905628204,
0.20127199590206146,
-0.19658349454402924,
0.11101819574832916,
-0.5031594038009644,
0.062106903642416,
0.021066814661026,
-0.010644905269145966,
-0.15939365327358246,
0.3560093343257904,
0.10868192464113235,
0.2212630808353424,
0.3045378625392914,
0.11735497415065765,
0.39511629939079285,
-0.34741640090942383,
-0.04265747591853142,
0.056967560201883316,
-0.6727505326271057,
0.07352586090564728,
0.13223479688167572,
0.13274307548999786,
0.2916538715362549,
0.01923973858356476,
0.13751746714115143,
0.2773090898990631,
-0.01809447444975376,
-0.13785627484321594,
0.21889366209506989,
0.1327664852142334,
-0.3069685399532318,
0.48443368077278137,
0.30892181396484375,
-0.25719332695007324,
0.11316867172718048,
0.23479220271110535,
-0.04290648177266121,
-0.12304047495126724,
0.08087354898452759,
-0.24565881490707397,
0.06285788863897324,
-0.2480964958667755,
-0.3668070137500763,
-0.10154612362384796,
-0.12862327694892883,
-0.03555348888039589,
-0.056583333760499954,
0.16398483514785767,
-0.2934103012084961,
0.22844496369361877,
-0.12105327099561691,
0.003949107602238655,
-0.2586510181427002,
0.04836083576083183,
-0.05330055579543114,
-0.08602413535118103,
-0.31407007575035095,
0.35563796758651733,
0.29162776470184326,
-0.0728287547826767,
0.14573374390602112,
-0.03167036175727844,
0.02422153204679489,
0.24293693900108337,
0.360352098941803,
-0.38301771879196167,
0.25235870480537415,
0.1450633555650711,
-0.22604425251483917,
0.5183619260787964,
0.10156401991844177,
0.4579477906227112,
-0.2209920585155487,
0.3493160307407379,
-0.06009400635957718,
-0.20405109226703644,
0.2610081434249878,
0.11241591721773148,
-0.26480481028556824,
-0.11672507226467133,
-0.43795326352119446,
0.28172725439071655,
0.10803442448377609,
-0.0582335889339447,
-0.010016396641731262,
-0.3681591749191284,
-0.19560609757900238,
-0.12006662786006927,
0.3318263292312622,
0.3998510241508484,
-0.5381984710693359,
0.17783066630363464,
0.06051916256546974,
0.21149687469005585,
0.24934306740760803,
0.6614070534706116,
-0.3634275496006012,
0.23807278275489807,
-0.12859003245830536,
-0.2693576216697693,
-0.11695916205644608,
-0.1960737258195877,
-0.5835573673248291,
0.15087991952896118,
0.004400990903377533,
0.13775651156902313,
0.10366177558898926,
0.4255775511264801,
0.38060030341148376,
0.1373888999223709,
0.12054443359375,
0.2378034144639969,
0.05063333734869957,
0.1219746395945549,
-0.35221317410469055,
-0.26674363017082214,
0.5058069229125977,
0.26592525839805603,
-0.018460508435964584,
-0.1692710518836975,
-0.13043338060379028,
-0.2034454494714737,
0.17151528596878052,
-0.17232151329517365,
0.1123998686671257,
0.27616024017333984,
-0.015416067093610764,
-0.13231514394283295,
0.1253482699394226,
0.09626270085573196,
-0.24141240119934082,
0.44943851232528687,
0.047579728066921234,
0.0823376476764679,
-0.07225553691387177,
-0.0690128281712532,
0.23401322960853577,
0.1237763985991478,
-0.2757114768028259,
-0.09139735996723175,
-0.020273512229323387,
-0.12434770166873932,
0.05064372345805168,
-0.23929336667060852,
-0.1698196679353714,
0.3928055763244629,
-0.20490340888500214,
-0.03977392241358757,
-0.2208189219236374,
0.043494440615177155,
0.028986304998397827,
-0.081019826233387,
-0.01303289458155632,
-0.10963436216115952,
-0.12004014104604721,
-0.02735835686326027,
-0.13626909255981445,
0.13468341529369354,
0.2414696365594864,
0.2601763904094696,
0.1974772810935974,
0.3538559675216675,
0.13840901851654053,
-0.31150174140930176,
0.3684661388397217,
0.2825617790222168,
0.1614503264427185,
-0.18783089518547058,
-0.35825929045677185,
0.5080371499061584,
0.040837422013282776,
0.6212490797042847,
0.13185863196849823,
-0.27360308170318604,
0.03547178953886032,
0.16177283227443695,
-0.15279020369052887,
0.36181044578552246,
0.2422436773777008,
0.18313418328762054,
0.5993636846542358,
0.39907434582710266,
-0.2270188331604004,
0.12934578955173492,
0.3130761981010437,
0.07273966073989868,
-0.15578114986419678,
-0.053435906767845154,
-0.2871868312358856,
-0.28217992186546326,
0.2410205751657486,
-0.0649418756365776,
0.527103066444397,
0.29019907116889954,
0.12482994794845581,
-0.16651396453380585,
-0.062395669519901276,
-0.08856488764286041,
0.00046421587467193604,
0.2956542372703552,
0.20211820304393768,
0.023607712239027023,
0.13216164708137512,
-0.033044420182704926,
-0.23693421483039856,
-0.1259486824274063,
-0.013615601696074009,
0.09208767116069794,
-0.18366697430610657,
0.19665588438510895,
-0.04824105650186539,
0.043179385364055634,
-0.11852395534515381,
0.04868873208761215,
-0.14586076140403748,
-0.25088945031166077,
-0.07871976494789124,
-0.17037853598594666,
0.14087489247322083,
0.0997161939740181,
-0.0557449609041214,
0.297817587852478,
-0.0532313734292984,
-0.34373149275779724,
-0.13309583067893982,
-0.1097651794552803,
-0.20562055706977844,
0.03478947654366493,
0.07904907315969467,
0.20156285166740417,
0.3894379138946533,
0.23339731991291046,
0.06305491179227829,
-0.2507634162902832,
-0.1281212568283081,
-0.08113452792167664,
-0.17271307110786438,
0.2470870316028595,
-0.3129538595676422,
0.17224940657615662,
0.04505188763141632,
0.0761781558394432,
0.037500038743019104,
-0.3253334164619446,
0.02823837660253048,
-0.1393776834011078,
-0.18569070100784302,
-0.09560336172580719,
0.09416745603084564,
-0.2838163673877716,
-0.2353224903345108,
-0.23166495561599731,
0.11221776902675629,
0.18562117218971252,
-0.1038917601108551,
-0.07778768241405487,
0.21005429327487946,
0.14003179967403412,
-0.023024646565318108,
-0.03231675922870636,
0.0010908977128565311,
-0.23957586288452148,
0.5963212847709656,
0.13078360259532928,
-0.28741011023521423,
-0.14843885600566864,
0.03250466287136078,
0.09260521829128265,
0.4593251943588257,
-0.43639183044433594,
0.3887858986854553,
-0.4268547594547272,
0.06591242551803589,
-0.028323717415332794,
0.14973951876163483,
0.38756927847862244,
-0.04899069666862488,
-0.055349260568618774,
-0.0899970605969429,
-0.28980714082717896,
-0.20847749710083008,
-0.2657877504825592,
0.1750810742378235,
0.0703376829624176,
0.20472702383995056,
0.1540493369102478,
0.770289421081543,
0.2816253900527954,
-0.12821228802204132,
-0.0700763612985611,
-0.019976036623120308,
0.32215040922164917,
-0.3042881190776825,
-0.13366299867630005,
0.0767841562628746,
-0.23239293694496155,
-0.3620029091835022,
0.10222965478897095,
0.15922048687934875,
-0.22285528481006622,
0.05716609209775925,
0.43347737193107605,
0.26290497183799744,
0.03444605693221092,
0.16438032686710358,
-0.144460529088974,
0.1150294616818428,
0.12919822335243225,
0.2734664976596832,
-0.2965279519557953,
-0.23773983120918274,
0.1282239705324173,
-0.11579309403896332,
0.1971656233072281,
-0.05388909950852394,
-0.5846304893493652,
0.07504286617040634,
-0.7312512397766113,
0.17159870266914368,
-0.00427569355815649,
0.2625329792499542,
0.12129297852516174,
0.09905723482370377,
0.2460765242576599,
0.03434412181377411,
0.4295501112937927,
0.007447125390172005,
-0.13422907888889313,
-0.02095475234091282,
-0.26261961460113525,
-0.5181396007537842,
0.001941286027431488,
-0.11806343495845795,
0.09799259155988693,
-0.018077600747346878,
0.1409916877746582,
-0.14494863152503967,
-0.20846621692180634,
0.012804991565644741,
0.28982558846473694,
-0.1102437674999237,
-0.25748905539512634,
-0.3075465261936188,
-0.2508772015571594,
0.003196684643626213,
-0.11069142073392868,
0.06405922025442123,
-0.21589262783527374,
-0.005322979763150215,
-0.21743755042552948,
-0.14119853079319,
0.1710699498653412,
0.287007212638855,
-0.01994873210787773,
0.22777262330055237,
0.04203520342707634,
0.27845409512519836,
0.30918624997138977,
-0.07793480157852173,
0.3109682500362396,
0.6148457527160645,
0.09618595242500305,
-0.04493163526058197,
-0.05799076706171036,
-0.030223242938518524,
0.1740666627883911,
0.39990100264549255,
-0.11601776629686356,
-0.11743073910474777,
-0.04704491049051285,
-0.04595033824443817,
-0.4416710436344147,
0.09300834685564041,
0.3606792092323303,
0.05450912564992905,
-0.49379798769950867,
-0.6961228847503662,
0.48292404413223267,
0.3221646547317505,
-0.002960599958896637,
0.5213719606399536,
0.1529994010925293,
-0.11883670091629028,
0.22892259061336517,
0.3288167119026184,
0.7686118483543396,
-0.4081909656524658,
0.3427327275276184,
0.033929698169231415,
-0.000614657998085022,
0.28620848059654236,
-0.1507108062505722,
0.04774768650531769,
-0.13878823816776276,
-0.04516090825200081,
0.0209274310618639,
-0.3210030198097229,
0.21636155247688293,
0.04215191304683685,
0.2567623257637024,
0.20722661912441254,
0.14306233823299408,
-0.028538469225168228,
0.009282244369387627,
0.36832359433174133,
0.14154450595378876,
-0.352841854095459,
0.08062957227230072,
0.2060844898223877,
-0.0636477917432785,
0.026683414354920387,
0.10529827326536179,
0.07716839015483856,
-0.5997768640518188,
0.21185804903507233,
-0.22214984893798828,
-0.09834102541208267,
-0.27475830912590027,
0.22977328300476074,
-0.24676385521888733,
-0.19483405351638794,
0.12047849595546722,
0.17524585127830505,
-0.02735401690006256,
-0.005054939538240433,
-0.29250428080558777,
0.2589016258716583,
-0.1889817714691162,
0.17346635460853577,
0.46968525648117065,
-0.4210251569747925,
0.19382835924625397,
0.08227459341287613,
-0.05009527504444122,
0.042528629302978516,
-0.27078136801719666,
-0.3727762699127197,
-0.119048111140728,
-0.09768183529376984,
0.046276774257421494,
-0.09696663171052933,
-0.17741267383098602,
0.1778089553117752,
-0.11572803556919098,
-0.07388055324554443,
0.11928673088550568,
0.28471413254737854,
0.14836934208869934,
0.570770263671875,
0.1340295523405075,
-0.40163180232048035,
-0.15519168972969055,
0.29708611965179443,
0.024441804736852646,
0.08895169198513031,
0.34035784006118774,
0.16486357152462006,
-0.26175814867019653,
-0.078019879758358,
0.34606605768203735,
0.5033900141716003,
-0.13709066808223724,
-0.09443420171737671,
-0.3355535864830017,
0.14552389085292816,
0.16528871655464172,
0.10143573582172394,
0.14639633893966675,
-0.43259620666503906,
-0.2803822457790375,
-0.10835887491703033,
-0.2876851558685303,
0.14524675905704498,
-0.14822880923748016,
0.29796847701072693,
-0.19012171030044556,
-0.31742188334465027,
-0.11149486899375916,
0.01839434541761875,
-0.2807397246360779,
-0.25059330463409424,
-0.010744128376245499,
0.10900290310382843,
-0.10112187266349792,
0.22028779983520508,
0.024403631687164307,
-0.11193418502807617,
0.0007438585162162781,
-0.07983710616827011,
-0.12734174728393555,
-0.1610722839832306,
0.05955244228243828,
0.1735745519399643,
0.05251915752887726,
-0.40336722135543823,
-0.054908521473407745,
-0.3336772322654724,
-0.2233925312757492,
-0.3024187684059143,
0.04917363449931145,
0.33025631308555603,
-0.10850398242473602,
0.0007784543558955193,
0.06414219737052917,
-0.09168758243322372,
-0.11126849055290222,
0.29550546407699585,
-0.1259220540523529,
0.16868937015533447,
0.030922841280698776,
0.1445612907409668,
0.4665188789367676,
-0.2060360461473465,
-0.13433855772018433,
0.13949929177761078,
0.09199842065572739,
0.21920043230056763,
0.31199273467063904,
-0.37542444467544556,
0.30088555812835693,
0.17825499176979065,
0.5255874395370483,
0.5776782035827637,
-0.08642365038394928,
-0.04829949885606766,
-0.1358981728553772,
0.11961130052804947,
-0.008285121992230415,
-0.24928991496562958,
0.0623391829431057,
-0.11106911301612854,
0.15031425654888153,
0.2359202802181244,
0.31714653968811035,
0.3776895999908447,
-0.013536490499973297,
-0.15435445308685303,
0.60346919298172,
-0.4535907506942749,
-0.06375458836555481,
-0.106644406914711,
0.16593575477600098,
0.10513633489608765,
0.44457918405532837,
0.1751127690076828,
0.15019924938678741,
0.5105740427970886,
0.06874160468578339,
0.6162846684455872,
0.3639476001262665,
0.31382471323013306,
-0.10886264592409134,
-0.18955156207084656,
-0.006424449384212494,
0.08304151147603989,
-0.2204793095588684,
-0.031143076717853546,
0.0744839534163475,
0.04590989276766777,
-0.35433048009872437,
-0.3149506449699402,
0.0743725597858429,
-0.25379475951194763,
-0.007490802556276321,
-0.0483669713139534,
-0.029870549216866493,
-0.12977781891822815,
0.0728951245546341,
0.2107991874217987,
-0.20319311320781708,
-0.19604916870594025,
0.3447192907333374,
-0.07792562246322632,
-0.05682133138179779,
-0.16212983429431915,
0.28085213899612427,
-0.021489150822162628,
0.1728646457195282,
-0.12640690803527832,
-0.082384392619133,
-0.2849639058113098,
0.010356336832046509,
-0.1397750973701477,
0.3787521719932556,
0.27050459384918213,
0.23240576684474945,
-0.16406464576721191,
0.050375211983919144,
-0.14890079200267792,
-0.13814076781272888,
0.0803581178188324,
0.3532447814941406,
-0.2355179786682129,
-0.04281085357069969,
0.1823548823595047,
0.10394218564033508,
-0.12562108039855957,
-0.09235432744026184,
-0.18836429715156555,
0.06595812737941742,
-0.43436723947525024,
0.11809118092060089,
-0.08400826901197433,
-0.2931291162967682,
0.06691838800907135,
0.07898397743701935,
-0.24304193258285522,
-0.11079824715852737,
0.48218488693237305,
-0.4651016294956207,
-0.02384684979915619,
-0.1127801388502121,
0.06832945346832275,
-0.2132829874753952,
0.743356466293335,
0.3071632385253906,
0.29774752259254456,
-0.3887542188167572,
0.1410844624042511,
-0.6297143697738647,
-0.06277615576982498,
-0.35741519927978516,
0.024195915088057518,
0.12049387395381927,
0.2420872002840042,
0.08292707800865173,
0.3555293679237366,
0.12554597854614258,
0.0015365472063422203,
-0.03281405568122864,
-0.08632767200469971,
-0.23092062771320343,
-0.025104042142629623,
-0.2001776248216629,
0.21831929683685303,
-0.17947567999362946,
-0.3345945477485657,
0.3847672641277313,
-0.10637593269348145,
-0.04345609247684479,
-0.16519862413406372,
-0.0484442301094532,
0.36525624990463257,
0.12913012504577637,
0.30278876423835754,
0.17714804410934448,
0.4205041527748108,
0.2366502583026886,
-0.07973449677228928,
-0.3657917380332947,
-0.05324940010905266,
-0.032749075442552567,
0.09684883058071136,
-0.24282386898994446,
0.27961596846580505,
-0.15631145238876343,
-0.43859919905662537,
-0.15727634727954865,
0.07073159515857697,
-0.08751414716243744,
-0.09674578160047531,
-0.3099510967731476,
0.04811631143093109,
-0.09352725744247437,
0.1731005758047104,
0.05288771167397499,
0.1320953071117401,
0.09433206915855408,
-0.16976599395275116,
-0.3104426860809326,
0.07549957931041718,
0.09549293667078018,
-0.21179115772247314,
-0.10135827958583832,
-0.09009261429309845,
-0.07877902686595917,
0.4433889091014862,
0.1187654659152031,
-0.525415301322937,
-0.01713188737630844,
0.32149538397789,
-0.04861156642436981,
-0.10246966779232025,
0.197234109044075,
-0.08903463184833527,
-0.016529932618141174,
-0.1392822563648224,
0.20708788931369781,
-0.19468927383422852,
-0.10248934477567673,
-0.010064464062452316,
0.0016356073319911957
] |
https://github.com/huggingface/datasets/issues/708 | Datasets performance slow? - 6.4x slower than in memory dataset | By default the datasets loaded with `load_dataset` live on disk.
It's possible to load them in memory by using some transforms like `.map(..., keep_in_memory=True)`.
Small correction to @thomwolf 's comment above: currently we don't have the `keep_in_memory` parameter for `load_dataset` AFAIK but it would be nice to add it indeed :) | I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
| 51 | Datasets performance slow? - 6.4x slower than in memory dataset
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
By default the datasets loaded with `load_dataset` live on disk.
It's possible to load them in memory by using some transforms like `.map(..., keep_in_memory=True)`.
Small correction to @thomwolf 's comment above: currently we don't have the `keep_in_memory` parameter for `load_dataset` AFAIK but it would be nice to add it indeed :) | [
-0.3806666433811188,
-0.042408622801303864,
-0.03140971064567566,
0.4377957582473755,
0.10050874948501587,
0.12637382745742798,
0.013655014336109161,
0.30718183517456055,
0.09141014516353607,
-0.07309862971305847,
-0.06624182313680649,
0.30112794041633606,
-0.0139892203733325,
-0.27428877353668213,
-0.08003707230091095,
0.06234866380691528,
0.20978185534477234,
0.028924882411956787,
-0.23669669032096863,
-0.1054772213101387,
-0.26409828662872314,
-0.29736974835395813,
-0.06988515704870224,
-0.22846917808055878,
-0.3223612308502197,
-0.14342530071735382,
0.08182022720575333,
-0.0005960054695606232,
-0.34509924054145813,
-0.4037327766418457,
0.3832426369190216,
0.0766955316066742,
0.06868439167737961,
0.5503899455070496,
-0.00011250170791754499,
-0.04486047849059105,
0.21537084877490997,
0.1636437475681305,
-0.17409516870975494,
0.3116465210914612,
-0.04444272816181183,
-0.24157045781612396,
-0.051339149475097656,
-0.11545289307832718,
-0.013212092220783234,
-0.12978483736515045,
-0.07742957770824432,
-0.7160376310348511,
0.018145978450775146,
0.10876138508319855,
0.1370815634727478,
0.3199504315853119,
-0.38727790117263794,
0.21730045974254608,
0.14214134216308594,
0.31982874870300293,
-0.43895620107650757,
-0.10345587134361267,
0.3924716114997864,
-0.14023572206497192,
-0.05481346696615219,
0.22956834733486176,
-0.182692289352417,
0.2396479845046997,
0.45820972323417664,
-0.024468503892421722,
-0.18928936123847961,
-0.2351144552230835,
0.08833503723144531,
0.4672670066356659,
0.18636924028396606,
-0.1389109492301941,
-0.6342912316322327,
-0.38083428144454956,
-0.22537337243556976,
-0.11583198606967926,
-0.006604380905628204,
0.20127199590206146,
-0.19658349454402924,
0.11101819574832916,
-0.5031594038009644,
0.062106903642416,
0.021066814661026,
-0.010644905269145966,
-0.15939365327358246,
0.3560093343257904,
0.10868192464113235,
0.2212630808353424,
0.3045378625392914,
0.11735497415065765,
0.39511629939079285,
-0.34741640090942383,
-0.04265747591853142,
0.056967560201883316,
-0.6727505326271057,
0.07352586090564728,
0.13223479688167572,
0.13274307548999786,
0.2916538715362549,
0.01923973858356476,
0.13751746714115143,
0.2773090898990631,
-0.01809447444975376,
-0.13785627484321594,
0.21889366209506989,
0.1327664852142334,
-0.3069685399532318,
0.48443368077278137,
0.30892181396484375,
-0.25719332695007324,
0.11316867172718048,
0.23479220271110535,
-0.04290648177266121,
-0.12304047495126724,
0.08087354898452759,
-0.24565881490707397,
0.06285788863897324,
-0.2480964958667755,
-0.3668070137500763,
-0.10154612362384796,
-0.12862327694892883,
-0.03555348888039589,
-0.056583333760499954,
0.16398483514785767,
-0.2934103012084961,
0.22844496369361877,
-0.12105327099561691,
0.003949107602238655,
-0.2586510181427002,
0.04836083576083183,
-0.05330055579543114,
-0.08602413535118103,
-0.31407007575035095,
0.35563796758651733,
0.29162776470184326,
-0.0728287547826767,
0.14573374390602112,
-0.03167036175727844,
0.02422153204679489,
0.24293693900108337,
0.360352098941803,
-0.38301771879196167,
0.25235870480537415,
0.1450633555650711,
-0.22604425251483917,
0.5183619260787964,
0.10156401991844177,
0.4579477906227112,
-0.2209920585155487,
0.3493160307407379,
-0.06009400635957718,
-0.20405109226703644,
0.2610081434249878,
0.11241591721773148,
-0.26480481028556824,
-0.11672507226467133,
-0.43795326352119446,
0.28172725439071655,
0.10803442448377609,
-0.0582335889339447,
-0.010016396641731262,
-0.3681591749191284,
-0.19560609757900238,
-0.12006662786006927,
0.3318263292312622,
0.3998510241508484,
-0.5381984710693359,
0.17783066630363464,
0.06051916256546974,
0.21149687469005585,
0.24934306740760803,
0.6614070534706116,
-0.3634275496006012,
0.23807278275489807,
-0.12859003245830536,
-0.2693576216697693,
-0.11695916205644608,
-0.1960737258195877,
-0.5835573673248291,
0.15087991952896118,
0.004400990903377533,
0.13775651156902313,
0.10366177558898926,
0.4255775511264801,
0.38060030341148376,
0.1373888999223709,
0.12054443359375,
0.2378034144639969,
0.05063333734869957,
0.1219746395945549,
-0.35221317410469055,
-0.26674363017082214,
0.5058069229125977,
0.26592525839805603,
-0.018460508435964584,
-0.1692710518836975,
-0.13043338060379028,
-0.2034454494714737,
0.17151528596878052,
-0.17232151329517365,
0.1123998686671257,
0.27616024017333984,
-0.015416067093610764,
-0.13231514394283295,
0.1253482699394226,
0.09626270085573196,
-0.24141240119934082,
0.44943851232528687,
0.047579728066921234,
0.0823376476764679,
-0.07225553691387177,
-0.0690128281712532,
0.23401322960853577,
0.1237763985991478,
-0.2757114768028259,
-0.09139735996723175,
-0.020273512229323387,
-0.12434770166873932,
0.05064372345805168,
-0.23929336667060852,
-0.1698196679353714,
0.3928055763244629,
-0.20490340888500214,
-0.03977392241358757,
-0.2208189219236374,
0.043494440615177155,
0.028986304998397827,
-0.081019826233387,
-0.01303289458155632,
-0.10963436216115952,
-0.12004014104604721,
-0.02735835686326027,
-0.13626909255981445,
0.13468341529369354,
0.2414696365594864,
0.2601763904094696,
0.1974772810935974,
0.3538559675216675,
0.13840901851654053,
-0.31150174140930176,
0.3684661388397217,
0.2825617790222168,
0.1614503264427185,
-0.18783089518547058,
-0.35825929045677185,
0.5080371499061584,
0.040837422013282776,
0.6212490797042847,
0.13185863196849823,
-0.27360308170318604,
0.03547178953886032,
0.16177283227443695,
-0.15279020369052887,
0.36181044578552246,
0.2422436773777008,
0.18313418328762054,
0.5993636846542358,
0.39907434582710266,
-0.2270188331604004,
0.12934578955173492,
0.3130761981010437,
0.07273966073989868,
-0.15578114986419678,
-0.053435906767845154,
-0.2871868312358856,
-0.28217992186546326,
0.2410205751657486,
-0.0649418756365776,
0.527103066444397,
0.29019907116889954,
0.12482994794845581,
-0.16651396453380585,
-0.062395669519901276,
-0.08856488764286041,
0.00046421587467193604,
0.2956542372703552,
0.20211820304393768,
0.023607712239027023,
0.13216164708137512,
-0.033044420182704926,
-0.23693421483039856,
-0.1259486824274063,
-0.013615601696074009,
0.09208767116069794,
-0.18366697430610657,
0.19665588438510895,
-0.04824105650186539,
0.043179385364055634,
-0.11852395534515381,
0.04868873208761215,
-0.14586076140403748,
-0.25088945031166077,
-0.07871976494789124,
-0.17037853598594666,
0.14087489247322083,
0.0997161939740181,
-0.0557449609041214,
0.297817587852478,
-0.0532313734292984,
-0.34373149275779724,
-0.13309583067893982,
-0.1097651794552803,
-0.20562055706977844,
0.03478947654366493,
0.07904907315969467,
0.20156285166740417,
0.3894379138946533,
0.23339731991291046,
0.06305491179227829,
-0.2507634162902832,
-0.1281212568283081,
-0.08113452792167664,
-0.17271307110786438,
0.2470870316028595,
-0.3129538595676422,
0.17224940657615662,
0.04505188763141632,
0.0761781558394432,
0.037500038743019104,
-0.3253334164619446,
0.02823837660253048,
-0.1393776834011078,
-0.18569070100784302,
-0.09560336172580719,
0.09416745603084564,
-0.2838163673877716,
-0.2353224903345108,
-0.23166495561599731,
0.11221776902675629,
0.18562117218971252,
-0.1038917601108551,
-0.07778768241405487,
0.21005429327487946,
0.14003179967403412,
-0.023024646565318108,
-0.03231675922870636,
0.0010908977128565311,
-0.23957586288452148,
0.5963212847709656,
0.13078360259532928,
-0.28741011023521423,
-0.14843885600566864,
0.03250466287136078,
0.09260521829128265,
0.4593251943588257,
-0.43639183044433594,
0.3887858986854553,
-0.4268547594547272,
0.06591242551803589,
-0.028323717415332794,
0.14973951876163483,
0.38756927847862244,
-0.04899069666862488,
-0.055349260568618774,
-0.0899970605969429,
-0.28980714082717896,
-0.20847749710083008,
-0.2657877504825592,
0.1750810742378235,
0.0703376829624176,
0.20472702383995056,
0.1540493369102478,
0.770289421081543,
0.2816253900527954,
-0.12821228802204132,
-0.0700763612985611,
-0.019976036623120308,
0.32215040922164917,
-0.3042881190776825,
-0.13366299867630005,
0.0767841562628746,
-0.23239293694496155,
-0.3620029091835022,
0.10222965478897095,
0.15922048687934875,
-0.22285528481006622,
0.05716609209775925,
0.43347737193107605,
0.26290497183799744,
0.03444605693221092,
0.16438032686710358,
-0.144460529088974,
0.1150294616818428,
0.12919822335243225,
0.2734664976596832,
-0.2965279519557953,
-0.23773983120918274,
0.1282239705324173,
-0.11579309403896332,
0.1971656233072281,
-0.05388909950852394,
-0.5846304893493652,
0.07504286617040634,
-0.7312512397766113,
0.17159870266914368,
-0.00427569355815649,
0.2625329792499542,
0.12129297852516174,
0.09905723482370377,
0.2460765242576599,
0.03434412181377411,
0.4295501112937927,
0.007447125390172005,
-0.13422907888889313,
-0.02095475234091282,
-0.26261961460113525,
-0.5181396007537842,
0.001941286027431488,
-0.11806343495845795,
0.09799259155988693,
-0.018077600747346878,
0.1409916877746582,
-0.14494863152503967,
-0.20846621692180634,
0.012804991565644741,
0.28982558846473694,
-0.1102437674999237,
-0.25748905539512634,
-0.3075465261936188,
-0.2508772015571594,
0.003196684643626213,
-0.11069142073392868,
0.06405922025442123,
-0.21589262783527374,
-0.005322979763150215,
-0.21743755042552948,
-0.14119853079319,
0.1710699498653412,
0.287007212638855,
-0.01994873210787773,
0.22777262330055237,
0.04203520342707634,
0.27845409512519836,
0.30918624997138977,
-0.07793480157852173,
0.3109682500362396,
0.6148457527160645,
0.09618595242500305,
-0.04493163526058197,
-0.05799076706171036,
-0.030223242938518524,
0.1740666627883911,
0.39990100264549255,
-0.11601776629686356,
-0.11743073910474777,
-0.04704491049051285,
-0.04595033824443817,
-0.4416710436344147,
0.09300834685564041,
0.3606792092323303,
0.05450912564992905,
-0.49379798769950867,
-0.6961228847503662,
0.48292404413223267,
0.3221646547317505,
-0.002960599958896637,
0.5213719606399536,
0.1529994010925293,
-0.11883670091629028,
0.22892259061336517,
0.3288167119026184,
0.7686118483543396,
-0.4081909656524658,
0.3427327275276184,
0.033929698169231415,
-0.000614657998085022,
0.28620848059654236,
-0.1507108062505722,
0.04774768650531769,
-0.13878823816776276,
-0.04516090825200081,
0.0209274310618639,
-0.3210030198097229,
0.21636155247688293,
0.04215191304683685,
0.2567623257637024,
0.20722661912441254,
0.14306233823299408,
-0.028538469225168228,
0.009282244369387627,
0.36832359433174133,
0.14154450595378876,
-0.352841854095459,
0.08062957227230072,
0.2060844898223877,
-0.0636477917432785,
0.026683414354920387,
0.10529827326536179,
0.07716839015483856,
-0.5997768640518188,
0.21185804903507233,
-0.22214984893798828,
-0.09834102541208267,
-0.27475830912590027,
0.22977328300476074,
-0.24676385521888733,
-0.19483405351638794,
0.12047849595546722,
0.17524585127830505,
-0.02735401690006256,
-0.005054939538240433,
-0.29250428080558777,
0.2589016258716583,
-0.1889817714691162,
0.17346635460853577,
0.46968525648117065,
-0.4210251569747925,
0.19382835924625397,
0.08227459341287613,
-0.05009527504444122,
0.042528629302978516,
-0.27078136801719666,
-0.3727762699127197,
-0.119048111140728,
-0.09768183529376984,
0.046276774257421494,
-0.09696663171052933,
-0.17741267383098602,
0.1778089553117752,
-0.11572803556919098,
-0.07388055324554443,
0.11928673088550568,
0.28471413254737854,
0.14836934208869934,
0.570770263671875,
0.1340295523405075,
-0.40163180232048035,
-0.15519168972969055,
0.29708611965179443,
0.024441804736852646,
0.08895169198513031,
0.34035784006118774,
0.16486357152462006,
-0.26175814867019653,
-0.078019879758358,
0.34606605768203735,
0.5033900141716003,
-0.13709066808223724,
-0.09443420171737671,
-0.3355535864830017,
0.14552389085292816,
0.16528871655464172,
0.10143573582172394,
0.14639633893966675,
-0.43259620666503906,
-0.2803822457790375,
-0.10835887491703033,
-0.2876851558685303,
0.14524675905704498,
-0.14822880923748016,
0.29796847701072693,
-0.19012171030044556,
-0.31742188334465027,
-0.11149486899375916,
0.01839434541761875,
-0.2807397246360779,
-0.25059330463409424,
-0.010744128376245499,
0.10900290310382843,
-0.10112187266349792,
0.22028779983520508,
0.024403631687164307,
-0.11193418502807617,
0.0007438585162162781,
-0.07983710616827011,
-0.12734174728393555,
-0.1610722839832306,
0.05955244228243828,
0.1735745519399643,
0.05251915752887726,
-0.40336722135543823,
-0.054908521473407745,
-0.3336772322654724,
-0.2233925312757492,
-0.3024187684059143,
0.04917363449931145,
0.33025631308555603,
-0.10850398242473602,
0.0007784543558955193,
0.06414219737052917,
-0.09168758243322372,
-0.11126849055290222,
0.29550546407699585,
-0.1259220540523529,
0.16868937015533447,
0.030922841280698776,
0.1445612907409668,
0.4665188789367676,
-0.2060360461473465,
-0.13433855772018433,
0.13949929177761078,
0.09199842065572739,
0.21920043230056763,
0.31199273467063904,
-0.37542444467544556,
0.30088555812835693,
0.17825499176979065,
0.5255874395370483,
0.5776782035827637,
-0.08642365038394928,
-0.04829949885606766,
-0.1358981728553772,
0.11961130052804947,
-0.008285121992230415,
-0.24928991496562958,
0.0623391829431057,
-0.11106911301612854,
0.15031425654888153,
0.2359202802181244,
0.31714653968811035,
0.3776895999908447,
-0.013536490499973297,
-0.15435445308685303,
0.60346919298172,
-0.4535907506942749,
-0.06375458836555481,
-0.106644406914711,
0.16593575477600098,
0.10513633489608765,
0.44457918405532837,
0.1751127690076828,
0.15019924938678741,
0.5105740427970886,
0.06874160468578339,
0.6162846684455872,
0.3639476001262665,
0.31382471323013306,
-0.10886264592409134,
-0.18955156207084656,
-0.006424449384212494,
0.08304151147603989,
-0.2204793095588684,
-0.031143076717853546,
0.0744839534163475,
0.04590989276766777,
-0.35433048009872437,
-0.3149506449699402,
0.0743725597858429,
-0.25379475951194763,
-0.007490802556276321,
-0.0483669713139534,
-0.029870549216866493,
-0.12977781891822815,
0.0728951245546341,
0.2107991874217987,
-0.20319311320781708,
-0.19604916870594025,
0.3447192907333374,
-0.07792562246322632,
-0.05682133138179779,
-0.16212983429431915,
0.28085213899612427,
-0.021489150822162628,
0.1728646457195282,
-0.12640690803527832,
-0.082384392619133,
-0.2849639058113098,
0.010356336832046509,
-0.1397750973701477,
0.3787521719932556,
0.27050459384918213,
0.23240576684474945,
-0.16406464576721191,
0.050375211983919144,
-0.14890079200267792,
-0.13814076781272888,
0.0803581178188324,
0.3532447814941406,
-0.2355179786682129,
-0.04281085357069969,
0.1823548823595047,
0.10394218564033508,
-0.12562108039855957,
-0.09235432744026184,
-0.18836429715156555,
0.06595812737941742,
-0.43436723947525024,
0.11809118092060089,
-0.08400826901197433,
-0.2931291162967682,
0.06691838800907135,
0.07898397743701935,
-0.24304193258285522,
-0.11079824715852737,
0.48218488693237305,
-0.4651016294956207,
-0.02384684979915619,
-0.1127801388502121,
0.06832945346832275,
-0.2132829874753952,
0.743356466293335,
0.3071632385253906,
0.29774752259254456,
-0.3887542188167572,
0.1410844624042511,
-0.6297143697738647,
-0.06277615576982498,
-0.35741519927978516,
0.024195915088057518,
0.12049387395381927,
0.2420872002840042,
0.08292707800865173,
0.3555293679237366,
0.12554597854614258,
0.0015365472063422203,
-0.03281405568122864,
-0.08632767200469971,
-0.23092062771320343,
-0.025104042142629623,
-0.2001776248216629,
0.21831929683685303,
-0.17947567999362946,
-0.3345945477485657,
0.3847672641277313,
-0.10637593269348145,
-0.04345609247684479,
-0.16519862413406372,
-0.0484442301094532,
0.36525624990463257,
0.12913012504577637,
0.30278876423835754,
0.17714804410934448,
0.4205041527748108,
0.2366502583026886,
-0.07973449677228928,
-0.3657917380332947,
-0.05324940010905266,
-0.032749075442552567,
0.09684883058071136,
-0.24282386898994446,
0.27961596846580505,
-0.15631145238876343,
-0.43859919905662537,
-0.15727634727954865,
0.07073159515857697,
-0.08751414716243744,
-0.09674578160047531,
-0.3099510967731476,
0.04811631143093109,
-0.09352725744247437,
0.1731005758047104,
0.05288771167397499,
0.1320953071117401,
0.09433206915855408,
-0.16976599395275116,
-0.3104426860809326,
0.07549957931041718,
0.09549293667078018,
-0.21179115772247314,
-0.10135827958583832,
-0.09009261429309845,
-0.07877902686595917,
0.4433889091014862,
0.1187654659152031,
-0.525415301322937,
-0.01713188737630844,
0.32149538397789,
-0.04861156642436981,
-0.10246966779232025,
0.197234109044075,
-0.08903463184833527,
-0.016529932618141174,
-0.1392822563648224,
0.20708788931369781,
-0.19468927383422852,
-0.10248934477567673,
-0.010064464062452316,
0.0016356073319911957
] |
https://github.com/huggingface/datasets/issues/708 | Datasets performance slow? - 6.4x slower than in memory dataset | Great! Thanks a lot.
I did a test using `map(..., keep_in_memory=True)` and also a test using in-memory only data.
```python
features = dataset.map(tokenize, batched=True, remove_columns=dataset['train'].column_names)
features.set_format(type='torch', columns=['input_ids', 'token_type_ids', 'attention_mask'])
features_in_memory = dataset.map(tokenize, batched=True, keep_in_memory=True, remove_columns=dataset['train'].column_names)
features_in_memory.set_format(type='torch', columns=['input_ids', 'token_type_ids', 'attention_mask'])
in_memory = [features['train'][i] for i in range(len(features['train']))]
```
For using the features without any tweak, I got **1min17s** for copying the entire DataLoader to CUDA:
```
%%time
for i, batch in enumerate(DataLoader(features['train'], batch_size=16, num_workers=4)):
batch['input_ids'].to(device)
```
For using the features mapped with `keep_in_memory=True`, I also got **1min17s** for copying the entire DataLoader to CUDA:
```
%%time
for i, batch in enumerate(DataLoader(features_in_memory['train'], batch_size=16, num_workers=4)):
batch['input_ids'].to(device)
```
And for the case using every element in memory, converted from the original dataset, I got **12.5s**:
```
%%time
for i, batch in enumerate(DataLoader(in_memory, batch_size=16, num_workers=4)):
batch['input_ids'].to(device)
```
Taking a closer look in my SQuAD code, using a profiler, I see a lot of calls to `posix read` api. It seems that it is really reliying on disk, which results in a very high train time. | I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
| 170 | Datasets performance slow? - 6.4x slower than in memory dataset
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
Great! Thanks a lot.
I did a test using `map(..., keep_in_memory=True)` and also a test using in-memory only data.
```python
features = dataset.map(tokenize, batched=True, remove_columns=dataset['train'].column_names)
features.set_format(type='torch', columns=['input_ids', 'token_type_ids', 'attention_mask'])
features_in_memory = dataset.map(tokenize, batched=True, keep_in_memory=True, remove_columns=dataset['train'].column_names)
features_in_memory.set_format(type='torch', columns=['input_ids', 'token_type_ids', 'attention_mask'])
in_memory = [features['train'][i] for i in range(len(features['train']))]
```
For using the features without any tweak, I got **1min17s** for copying the entire DataLoader to CUDA:
```
%%time
for i, batch in enumerate(DataLoader(features['train'], batch_size=16, num_workers=4)):
batch['input_ids'].to(device)
```
For using the features mapped with `keep_in_memory=True`, I also got **1min17s** for copying the entire DataLoader to CUDA:
```
%%time
for i, batch in enumerate(DataLoader(features_in_memory['train'], batch_size=16, num_workers=4)):
batch['input_ids'].to(device)
```
And for the case using every element in memory, converted from the original dataset, I got **12.5s**:
```
%%time
for i, batch in enumerate(DataLoader(in_memory, batch_size=16, num_workers=4)):
batch['input_ids'].to(device)
```
Taking a closer look in my SQuAD code, using a profiler, I see a lot of calls to `posix read` api. It seems that it is really reliying on disk, which results in a very high train time. | [
-0.3806666433811188,
-0.042408622801303864,
-0.03140971064567566,
0.4377957582473755,
0.10050874948501587,
0.12637382745742798,
0.013655014336109161,
0.30718183517456055,
0.09141014516353607,
-0.07309862971305847,
-0.06624182313680649,
0.30112794041633606,
-0.0139892203733325,
-0.27428877353668213,
-0.08003707230091095,
0.06234866380691528,
0.20978185534477234,
0.028924882411956787,
-0.23669669032096863,
-0.1054772213101387,
-0.26409828662872314,
-0.29736974835395813,
-0.06988515704870224,
-0.22846917808055878,
-0.3223612308502197,
-0.14342530071735382,
0.08182022720575333,
-0.0005960054695606232,
-0.34509924054145813,
-0.4037327766418457,
0.3832426369190216,
0.0766955316066742,
0.06868439167737961,
0.5503899455070496,
-0.00011250170791754499,
-0.04486047849059105,
0.21537084877490997,
0.1636437475681305,
-0.17409516870975494,
0.3116465210914612,
-0.04444272816181183,
-0.24157045781612396,
-0.051339149475097656,
-0.11545289307832718,
-0.013212092220783234,
-0.12978483736515045,
-0.07742957770824432,
-0.7160376310348511,
0.018145978450775146,
0.10876138508319855,
0.1370815634727478,
0.3199504315853119,
-0.38727790117263794,
0.21730045974254608,
0.14214134216308594,
0.31982874870300293,
-0.43895620107650757,
-0.10345587134361267,
0.3924716114997864,
-0.14023572206497192,
-0.05481346696615219,
0.22956834733486176,
-0.182692289352417,
0.2396479845046997,
0.45820972323417664,
-0.024468503892421722,
-0.18928936123847961,
-0.2351144552230835,
0.08833503723144531,
0.4672670066356659,
0.18636924028396606,
-0.1389109492301941,
-0.6342912316322327,
-0.38083428144454956,
-0.22537337243556976,
-0.11583198606967926,
-0.006604380905628204,
0.20127199590206146,
-0.19658349454402924,
0.11101819574832916,
-0.5031594038009644,
0.062106903642416,
0.021066814661026,
-0.010644905269145966,
-0.15939365327358246,
0.3560093343257904,
0.10868192464113235,
0.2212630808353424,
0.3045378625392914,
0.11735497415065765,
0.39511629939079285,
-0.34741640090942383,
-0.04265747591853142,
0.056967560201883316,
-0.6727505326271057,
0.07352586090564728,
0.13223479688167572,
0.13274307548999786,
0.2916538715362549,
0.01923973858356476,
0.13751746714115143,
0.2773090898990631,
-0.01809447444975376,
-0.13785627484321594,
0.21889366209506989,
0.1327664852142334,
-0.3069685399532318,
0.48443368077278137,
0.30892181396484375,
-0.25719332695007324,
0.11316867172718048,
0.23479220271110535,
-0.04290648177266121,
-0.12304047495126724,
0.08087354898452759,
-0.24565881490707397,
0.06285788863897324,
-0.2480964958667755,
-0.3668070137500763,
-0.10154612362384796,
-0.12862327694892883,
-0.03555348888039589,
-0.056583333760499954,
0.16398483514785767,
-0.2934103012084961,
0.22844496369361877,
-0.12105327099561691,
0.003949107602238655,
-0.2586510181427002,
0.04836083576083183,
-0.05330055579543114,
-0.08602413535118103,
-0.31407007575035095,
0.35563796758651733,
0.29162776470184326,
-0.0728287547826767,
0.14573374390602112,
-0.03167036175727844,
0.02422153204679489,
0.24293693900108337,
0.360352098941803,
-0.38301771879196167,
0.25235870480537415,
0.1450633555650711,
-0.22604425251483917,
0.5183619260787964,
0.10156401991844177,
0.4579477906227112,
-0.2209920585155487,
0.3493160307407379,
-0.06009400635957718,
-0.20405109226703644,
0.2610081434249878,
0.11241591721773148,
-0.26480481028556824,
-0.11672507226467133,
-0.43795326352119446,
0.28172725439071655,
0.10803442448377609,
-0.0582335889339447,
-0.010016396641731262,
-0.3681591749191284,
-0.19560609757900238,
-0.12006662786006927,
0.3318263292312622,
0.3998510241508484,
-0.5381984710693359,
0.17783066630363464,
0.06051916256546974,
0.21149687469005585,
0.24934306740760803,
0.6614070534706116,
-0.3634275496006012,
0.23807278275489807,
-0.12859003245830536,
-0.2693576216697693,
-0.11695916205644608,
-0.1960737258195877,
-0.5835573673248291,
0.15087991952896118,
0.004400990903377533,
0.13775651156902313,
0.10366177558898926,
0.4255775511264801,
0.38060030341148376,
0.1373888999223709,
0.12054443359375,
0.2378034144639969,
0.05063333734869957,
0.1219746395945549,
-0.35221317410469055,
-0.26674363017082214,
0.5058069229125977,
0.26592525839805603,
-0.018460508435964584,
-0.1692710518836975,
-0.13043338060379028,
-0.2034454494714737,
0.17151528596878052,
-0.17232151329517365,
0.1123998686671257,
0.27616024017333984,
-0.015416067093610764,
-0.13231514394283295,
0.1253482699394226,
0.09626270085573196,
-0.24141240119934082,
0.44943851232528687,
0.047579728066921234,
0.0823376476764679,
-0.07225553691387177,
-0.0690128281712532,
0.23401322960853577,
0.1237763985991478,
-0.2757114768028259,
-0.09139735996723175,
-0.020273512229323387,
-0.12434770166873932,
0.05064372345805168,
-0.23929336667060852,
-0.1698196679353714,
0.3928055763244629,
-0.20490340888500214,
-0.03977392241358757,
-0.2208189219236374,
0.043494440615177155,
0.028986304998397827,
-0.081019826233387,
-0.01303289458155632,
-0.10963436216115952,
-0.12004014104604721,
-0.02735835686326027,
-0.13626909255981445,
0.13468341529369354,
0.2414696365594864,
0.2601763904094696,
0.1974772810935974,
0.3538559675216675,
0.13840901851654053,
-0.31150174140930176,
0.3684661388397217,
0.2825617790222168,
0.1614503264427185,
-0.18783089518547058,
-0.35825929045677185,
0.5080371499061584,
0.040837422013282776,
0.6212490797042847,
0.13185863196849823,
-0.27360308170318604,
0.03547178953886032,
0.16177283227443695,
-0.15279020369052887,
0.36181044578552246,
0.2422436773777008,
0.18313418328762054,
0.5993636846542358,
0.39907434582710266,
-0.2270188331604004,
0.12934578955173492,
0.3130761981010437,
0.07273966073989868,
-0.15578114986419678,
-0.053435906767845154,
-0.2871868312358856,
-0.28217992186546326,
0.2410205751657486,
-0.0649418756365776,
0.527103066444397,
0.29019907116889954,
0.12482994794845581,
-0.16651396453380585,
-0.062395669519901276,
-0.08856488764286041,
0.00046421587467193604,
0.2956542372703552,
0.20211820304393768,
0.023607712239027023,
0.13216164708137512,
-0.033044420182704926,
-0.23693421483039856,
-0.1259486824274063,
-0.013615601696074009,
0.09208767116069794,
-0.18366697430610657,
0.19665588438510895,
-0.04824105650186539,
0.043179385364055634,
-0.11852395534515381,
0.04868873208761215,
-0.14586076140403748,
-0.25088945031166077,
-0.07871976494789124,
-0.17037853598594666,
0.14087489247322083,
0.0997161939740181,
-0.0557449609041214,
0.297817587852478,
-0.0532313734292984,
-0.34373149275779724,
-0.13309583067893982,
-0.1097651794552803,
-0.20562055706977844,
0.03478947654366493,
0.07904907315969467,
0.20156285166740417,
0.3894379138946533,
0.23339731991291046,
0.06305491179227829,
-0.2507634162902832,
-0.1281212568283081,
-0.08113452792167664,
-0.17271307110786438,
0.2470870316028595,
-0.3129538595676422,
0.17224940657615662,
0.04505188763141632,
0.0761781558394432,
0.037500038743019104,
-0.3253334164619446,
0.02823837660253048,
-0.1393776834011078,
-0.18569070100784302,
-0.09560336172580719,
0.09416745603084564,
-0.2838163673877716,
-0.2353224903345108,
-0.23166495561599731,
0.11221776902675629,
0.18562117218971252,
-0.1038917601108551,
-0.07778768241405487,
0.21005429327487946,
0.14003179967403412,
-0.023024646565318108,
-0.03231675922870636,
0.0010908977128565311,
-0.23957586288452148,
0.5963212847709656,
0.13078360259532928,
-0.28741011023521423,
-0.14843885600566864,
0.03250466287136078,
0.09260521829128265,
0.4593251943588257,
-0.43639183044433594,
0.3887858986854553,
-0.4268547594547272,
0.06591242551803589,
-0.028323717415332794,
0.14973951876163483,
0.38756927847862244,
-0.04899069666862488,
-0.055349260568618774,
-0.0899970605969429,
-0.28980714082717896,
-0.20847749710083008,
-0.2657877504825592,
0.1750810742378235,
0.0703376829624176,
0.20472702383995056,
0.1540493369102478,
0.770289421081543,
0.2816253900527954,
-0.12821228802204132,
-0.0700763612985611,
-0.019976036623120308,
0.32215040922164917,
-0.3042881190776825,
-0.13366299867630005,
0.0767841562628746,
-0.23239293694496155,
-0.3620029091835022,
0.10222965478897095,
0.15922048687934875,
-0.22285528481006622,
0.05716609209775925,
0.43347737193107605,
0.26290497183799744,
0.03444605693221092,
0.16438032686710358,
-0.144460529088974,
0.1150294616818428,
0.12919822335243225,
0.2734664976596832,
-0.2965279519557953,
-0.23773983120918274,
0.1282239705324173,
-0.11579309403896332,
0.1971656233072281,
-0.05388909950852394,
-0.5846304893493652,
0.07504286617040634,
-0.7312512397766113,
0.17159870266914368,
-0.00427569355815649,
0.2625329792499542,
0.12129297852516174,
0.09905723482370377,
0.2460765242576599,
0.03434412181377411,
0.4295501112937927,
0.007447125390172005,
-0.13422907888889313,
-0.02095475234091282,
-0.26261961460113525,
-0.5181396007537842,
0.001941286027431488,
-0.11806343495845795,
0.09799259155988693,
-0.018077600747346878,
0.1409916877746582,
-0.14494863152503967,
-0.20846621692180634,
0.012804991565644741,
0.28982558846473694,
-0.1102437674999237,
-0.25748905539512634,
-0.3075465261936188,
-0.2508772015571594,
0.003196684643626213,
-0.11069142073392868,
0.06405922025442123,
-0.21589262783527374,
-0.005322979763150215,
-0.21743755042552948,
-0.14119853079319,
0.1710699498653412,
0.287007212638855,
-0.01994873210787773,
0.22777262330055237,
0.04203520342707634,
0.27845409512519836,
0.30918624997138977,
-0.07793480157852173,
0.3109682500362396,
0.6148457527160645,
0.09618595242500305,
-0.04493163526058197,
-0.05799076706171036,
-0.030223242938518524,
0.1740666627883911,
0.39990100264549255,
-0.11601776629686356,
-0.11743073910474777,
-0.04704491049051285,
-0.04595033824443817,
-0.4416710436344147,
0.09300834685564041,
0.3606792092323303,
0.05450912564992905,
-0.49379798769950867,
-0.6961228847503662,
0.48292404413223267,
0.3221646547317505,
-0.002960599958896637,
0.5213719606399536,
0.1529994010925293,
-0.11883670091629028,
0.22892259061336517,
0.3288167119026184,
0.7686118483543396,
-0.4081909656524658,
0.3427327275276184,
0.033929698169231415,
-0.000614657998085022,
0.28620848059654236,
-0.1507108062505722,
0.04774768650531769,
-0.13878823816776276,
-0.04516090825200081,
0.0209274310618639,
-0.3210030198097229,
0.21636155247688293,
0.04215191304683685,
0.2567623257637024,
0.20722661912441254,
0.14306233823299408,
-0.028538469225168228,
0.009282244369387627,
0.36832359433174133,
0.14154450595378876,
-0.352841854095459,
0.08062957227230072,
0.2060844898223877,
-0.0636477917432785,
0.026683414354920387,
0.10529827326536179,
0.07716839015483856,
-0.5997768640518188,
0.21185804903507233,
-0.22214984893798828,
-0.09834102541208267,
-0.27475830912590027,
0.22977328300476074,
-0.24676385521888733,
-0.19483405351638794,
0.12047849595546722,
0.17524585127830505,
-0.02735401690006256,
-0.005054939538240433,
-0.29250428080558777,
0.2589016258716583,
-0.1889817714691162,
0.17346635460853577,
0.46968525648117065,
-0.4210251569747925,
0.19382835924625397,
0.08227459341287613,
-0.05009527504444122,
0.042528629302978516,
-0.27078136801719666,
-0.3727762699127197,
-0.119048111140728,
-0.09768183529376984,
0.046276774257421494,
-0.09696663171052933,
-0.17741267383098602,
0.1778089553117752,
-0.11572803556919098,
-0.07388055324554443,
0.11928673088550568,
0.28471413254737854,
0.14836934208869934,
0.570770263671875,
0.1340295523405075,
-0.40163180232048035,
-0.15519168972969055,
0.29708611965179443,
0.024441804736852646,
0.08895169198513031,
0.34035784006118774,
0.16486357152462006,
-0.26175814867019653,
-0.078019879758358,
0.34606605768203735,
0.5033900141716003,
-0.13709066808223724,
-0.09443420171737671,
-0.3355535864830017,
0.14552389085292816,
0.16528871655464172,
0.10143573582172394,
0.14639633893966675,
-0.43259620666503906,
-0.2803822457790375,
-0.10835887491703033,
-0.2876851558685303,
0.14524675905704498,
-0.14822880923748016,
0.29796847701072693,
-0.19012171030044556,
-0.31742188334465027,
-0.11149486899375916,
0.01839434541761875,
-0.2807397246360779,
-0.25059330463409424,
-0.010744128376245499,
0.10900290310382843,
-0.10112187266349792,
0.22028779983520508,
0.024403631687164307,
-0.11193418502807617,
0.0007438585162162781,
-0.07983710616827011,
-0.12734174728393555,
-0.1610722839832306,
0.05955244228243828,
0.1735745519399643,
0.05251915752887726,
-0.40336722135543823,
-0.054908521473407745,
-0.3336772322654724,
-0.2233925312757492,
-0.3024187684059143,
0.04917363449931145,
0.33025631308555603,
-0.10850398242473602,
0.0007784543558955193,
0.06414219737052917,
-0.09168758243322372,
-0.11126849055290222,
0.29550546407699585,
-0.1259220540523529,
0.16868937015533447,
0.030922841280698776,
0.1445612907409668,
0.4665188789367676,
-0.2060360461473465,
-0.13433855772018433,
0.13949929177761078,
0.09199842065572739,
0.21920043230056763,
0.31199273467063904,
-0.37542444467544556,
0.30088555812835693,
0.17825499176979065,
0.5255874395370483,
0.5776782035827637,
-0.08642365038394928,
-0.04829949885606766,
-0.1358981728553772,
0.11961130052804947,
-0.008285121992230415,
-0.24928991496562958,
0.0623391829431057,
-0.11106911301612854,
0.15031425654888153,
0.2359202802181244,
0.31714653968811035,
0.3776895999908447,
-0.013536490499973297,
-0.15435445308685303,
0.60346919298172,
-0.4535907506942749,
-0.06375458836555481,
-0.106644406914711,
0.16593575477600098,
0.10513633489608765,
0.44457918405532837,
0.1751127690076828,
0.15019924938678741,
0.5105740427970886,
0.06874160468578339,
0.6162846684455872,
0.3639476001262665,
0.31382471323013306,
-0.10886264592409134,
-0.18955156207084656,
-0.006424449384212494,
0.08304151147603989,
-0.2204793095588684,
-0.031143076717853546,
0.0744839534163475,
0.04590989276766777,
-0.35433048009872437,
-0.3149506449699402,
0.0743725597858429,
-0.25379475951194763,
-0.007490802556276321,
-0.0483669713139534,
-0.029870549216866493,
-0.12977781891822815,
0.0728951245546341,
0.2107991874217987,
-0.20319311320781708,
-0.19604916870594025,
0.3447192907333374,
-0.07792562246322632,
-0.05682133138179779,
-0.16212983429431915,
0.28085213899612427,
-0.021489150822162628,
0.1728646457195282,
-0.12640690803527832,
-0.082384392619133,
-0.2849639058113098,
0.010356336832046509,
-0.1397750973701477,
0.3787521719932556,
0.27050459384918213,
0.23240576684474945,
-0.16406464576721191,
0.050375211983919144,
-0.14890079200267792,
-0.13814076781272888,
0.0803581178188324,
0.3532447814941406,
-0.2355179786682129,
-0.04281085357069969,
0.1823548823595047,
0.10394218564033508,
-0.12562108039855957,
-0.09235432744026184,
-0.18836429715156555,
0.06595812737941742,
-0.43436723947525024,
0.11809118092060089,
-0.08400826901197433,
-0.2931291162967682,
0.06691838800907135,
0.07898397743701935,
-0.24304193258285522,
-0.11079824715852737,
0.48218488693237305,
-0.4651016294956207,
-0.02384684979915619,
-0.1127801388502121,
0.06832945346832275,
-0.2132829874753952,
0.743356466293335,
0.3071632385253906,
0.29774752259254456,
-0.3887542188167572,
0.1410844624042511,
-0.6297143697738647,
-0.06277615576982498,
-0.35741519927978516,
0.024195915088057518,
0.12049387395381927,
0.2420872002840042,
0.08292707800865173,
0.3555293679237366,
0.12554597854614258,
0.0015365472063422203,
-0.03281405568122864,
-0.08632767200469971,
-0.23092062771320343,
-0.025104042142629623,
-0.2001776248216629,
0.21831929683685303,
-0.17947567999362946,
-0.3345945477485657,
0.3847672641277313,
-0.10637593269348145,
-0.04345609247684479,
-0.16519862413406372,
-0.0484442301094532,
0.36525624990463257,
0.12913012504577637,
0.30278876423835754,
0.17714804410934448,
0.4205041527748108,
0.2366502583026886,
-0.07973449677228928,
-0.3657917380332947,
-0.05324940010905266,
-0.032749075442552567,
0.09684883058071136,
-0.24282386898994446,
0.27961596846580505,
-0.15631145238876343,
-0.43859919905662537,
-0.15727634727954865,
0.07073159515857697,
-0.08751414716243744,
-0.09674578160047531,
-0.3099510967731476,
0.04811631143093109,
-0.09352725744247437,
0.1731005758047104,
0.05288771167397499,
0.1320953071117401,
0.09433206915855408,
-0.16976599395275116,
-0.3104426860809326,
0.07549957931041718,
0.09549293667078018,
-0.21179115772247314,
-0.10135827958583832,
-0.09009261429309845,
-0.07877902686595917,
0.4433889091014862,
0.1187654659152031,
-0.525415301322937,
-0.01713188737630844,
0.32149538397789,
-0.04861156642436981,
-0.10246966779232025,
0.197234109044075,
-0.08903463184833527,
-0.016529932618141174,
-0.1392822563648224,
0.20708788931369781,
-0.19468927383422852,
-0.10248934477567673,
-0.010064464062452316,
0.0016356073319911957
] |
https://github.com/huggingface/datasets/issues/708 | Datasets performance slow? - 6.4x slower than in memory dataset | I am having the same issue here. When loading from memory I can get the GPU up to 70% util but when loading after mapping I can only get 40%.
In disk:
```
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:20%]')
book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=2500)
book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"])
training_args = TrainingArguments(
output_dir="./mobile_bert_big",
overwrite_output_dir=True,
num_train_epochs=1,
per_device_train_batch_size=32,
per_device_eval_batch_size=16,
save_steps=50,
save_total_limit=2,
logging_first_step=True,
warmup_steps=100,
logging_steps=50,
eval_steps=100,
no_cuda=False,
gradient_accumulation_steps=16,
fp16=True)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=book_corpus,
tokenizer=tokenizer)
```
In disk I can only get 0,17 it/s:
`[ 13/28907 01:03 < 46:03:27, 0.17 it/s, Epoch 0.00/1] `
If I load it with torch.utils.data.Dataset()
```
class BCorpusDataset(torch.utils.data.Dataset):
def __init__(self, encodings):
self.encodings = encodings
def __getitem__(self, idx):
item = [torch.tensor(val[idx]) for key, val in self.encodings.items()][0]
return item
def __len__(self):
length = [len(val) for key, val in self.encodings.items()][0]
return length
**book_corpus = book_corpus.select([i for i in range(16*2000)])** # filtering to not have 20% of BC in memory...
book_corpus = book_corpus(book_corpus)
```
I can get:
` [ 5/62 00:09 < 03:03, 0.31 it/s, Epoch 0.06/1]`
But obviously I can not get BookCorpus in memory xD
EDIT: it is something weird. If i load in disk 1% of bookcorpus:
```
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]')
```
I can get 0.28 it/s, (the same that in memory) but if I load 20% of bookcorpus:
```
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:20%]')
```
I get again 0.17 it/s.
I am missing something? I think it is something related to size, and not disk or in-memory. | I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
| 247 | Datasets performance slow? - 6.4x slower than in memory dataset
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
I am having the same issue here. When loading from memory I can get the GPU up to 70% util but when loading after mapping I can only get 40%.
In disk:
```
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:20%]')
book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=2500)
book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"])
training_args = TrainingArguments(
output_dir="./mobile_bert_big",
overwrite_output_dir=True,
num_train_epochs=1,
per_device_train_batch_size=32,
per_device_eval_batch_size=16,
save_steps=50,
save_total_limit=2,
logging_first_step=True,
warmup_steps=100,
logging_steps=50,
eval_steps=100,
no_cuda=False,
gradient_accumulation_steps=16,
fp16=True)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=book_corpus,
tokenizer=tokenizer)
```
In disk I can only get 0,17 it/s:
`[ 13/28907 01:03 < 46:03:27, 0.17 it/s, Epoch 0.00/1] `
If I load it with torch.utils.data.Dataset()
```
class BCorpusDataset(torch.utils.data.Dataset):
def __init__(self, encodings):
self.encodings = encodings
def __getitem__(self, idx):
item = [torch.tensor(val[idx]) for key, val in self.encodings.items()][0]
return item
def __len__(self):
length = [len(val) for key, val in self.encodings.items()][0]
return length
**book_corpus = book_corpus.select([i for i in range(16*2000)])** # filtering to not have 20% of BC in memory...
book_corpus = book_corpus(book_corpus)
```
I can get:
` [ 5/62 00:09 < 03:03, 0.31 it/s, Epoch 0.06/1]`
But obviously I can not get BookCorpus in memory xD
EDIT: it is something weird. If i load in disk 1% of bookcorpus:
```
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]')
```
I can get 0.28 it/s, (the same that in memory) but if I load 20% of bookcorpus:
```
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:20%]')
```
I get again 0.17 it/s.
I am missing something? I think it is something related to size, and not disk or in-memory. | [
-0.3806666433811188,
-0.042408622801303864,
-0.03140971064567566,
0.4377957582473755,
0.10050874948501587,
0.12637382745742798,
0.013655014336109161,
0.30718183517456055,
0.09141014516353607,
-0.07309862971305847,
-0.06624182313680649,
0.30112794041633606,
-0.0139892203733325,
-0.27428877353668213,
-0.08003707230091095,
0.06234866380691528,
0.20978185534477234,
0.028924882411956787,
-0.23669669032096863,
-0.1054772213101387,
-0.26409828662872314,
-0.29736974835395813,
-0.06988515704870224,
-0.22846917808055878,
-0.3223612308502197,
-0.14342530071735382,
0.08182022720575333,
-0.0005960054695606232,
-0.34509924054145813,
-0.4037327766418457,
0.3832426369190216,
0.0766955316066742,
0.06868439167737961,
0.5503899455070496,
-0.00011250170791754499,
-0.04486047849059105,
0.21537084877490997,
0.1636437475681305,
-0.17409516870975494,
0.3116465210914612,
-0.04444272816181183,
-0.24157045781612396,
-0.051339149475097656,
-0.11545289307832718,
-0.013212092220783234,
-0.12978483736515045,
-0.07742957770824432,
-0.7160376310348511,
0.018145978450775146,
0.10876138508319855,
0.1370815634727478,
0.3199504315853119,
-0.38727790117263794,
0.21730045974254608,
0.14214134216308594,
0.31982874870300293,
-0.43895620107650757,
-0.10345587134361267,
0.3924716114997864,
-0.14023572206497192,
-0.05481346696615219,
0.22956834733486176,
-0.182692289352417,
0.2396479845046997,
0.45820972323417664,
-0.024468503892421722,
-0.18928936123847961,
-0.2351144552230835,
0.08833503723144531,
0.4672670066356659,
0.18636924028396606,
-0.1389109492301941,
-0.6342912316322327,
-0.38083428144454956,
-0.22537337243556976,
-0.11583198606967926,
-0.006604380905628204,
0.20127199590206146,
-0.19658349454402924,
0.11101819574832916,
-0.5031594038009644,
0.062106903642416,
0.021066814661026,
-0.010644905269145966,
-0.15939365327358246,
0.3560093343257904,
0.10868192464113235,
0.2212630808353424,
0.3045378625392914,
0.11735497415065765,
0.39511629939079285,
-0.34741640090942383,
-0.04265747591853142,
0.056967560201883316,
-0.6727505326271057,
0.07352586090564728,
0.13223479688167572,
0.13274307548999786,
0.2916538715362549,
0.01923973858356476,
0.13751746714115143,
0.2773090898990631,
-0.01809447444975376,
-0.13785627484321594,
0.21889366209506989,
0.1327664852142334,
-0.3069685399532318,
0.48443368077278137,
0.30892181396484375,
-0.25719332695007324,
0.11316867172718048,
0.23479220271110535,
-0.04290648177266121,
-0.12304047495126724,
0.08087354898452759,
-0.24565881490707397,
0.06285788863897324,
-0.2480964958667755,
-0.3668070137500763,
-0.10154612362384796,
-0.12862327694892883,
-0.03555348888039589,
-0.056583333760499954,
0.16398483514785767,
-0.2934103012084961,
0.22844496369361877,
-0.12105327099561691,
0.003949107602238655,
-0.2586510181427002,
0.04836083576083183,
-0.05330055579543114,
-0.08602413535118103,
-0.31407007575035095,
0.35563796758651733,
0.29162776470184326,
-0.0728287547826767,
0.14573374390602112,
-0.03167036175727844,
0.02422153204679489,
0.24293693900108337,
0.360352098941803,
-0.38301771879196167,
0.25235870480537415,
0.1450633555650711,
-0.22604425251483917,
0.5183619260787964,
0.10156401991844177,
0.4579477906227112,
-0.2209920585155487,
0.3493160307407379,
-0.06009400635957718,
-0.20405109226703644,
0.2610081434249878,
0.11241591721773148,
-0.26480481028556824,
-0.11672507226467133,
-0.43795326352119446,
0.28172725439071655,
0.10803442448377609,
-0.0582335889339447,
-0.010016396641731262,
-0.3681591749191284,
-0.19560609757900238,
-0.12006662786006927,
0.3318263292312622,
0.3998510241508484,
-0.5381984710693359,
0.17783066630363464,
0.06051916256546974,
0.21149687469005585,
0.24934306740760803,
0.6614070534706116,
-0.3634275496006012,
0.23807278275489807,
-0.12859003245830536,
-0.2693576216697693,
-0.11695916205644608,
-0.1960737258195877,
-0.5835573673248291,
0.15087991952896118,
0.004400990903377533,
0.13775651156902313,
0.10366177558898926,
0.4255775511264801,
0.38060030341148376,
0.1373888999223709,
0.12054443359375,
0.2378034144639969,
0.05063333734869957,
0.1219746395945549,
-0.35221317410469055,
-0.26674363017082214,
0.5058069229125977,
0.26592525839805603,
-0.018460508435964584,
-0.1692710518836975,
-0.13043338060379028,
-0.2034454494714737,
0.17151528596878052,
-0.17232151329517365,
0.1123998686671257,
0.27616024017333984,
-0.015416067093610764,
-0.13231514394283295,
0.1253482699394226,
0.09626270085573196,
-0.24141240119934082,
0.44943851232528687,
0.047579728066921234,
0.0823376476764679,
-0.07225553691387177,
-0.0690128281712532,
0.23401322960853577,
0.1237763985991478,
-0.2757114768028259,
-0.09139735996723175,
-0.020273512229323387,
-0.12434770166873932,
0.05064372345805168,
-0.23929336667060852,
-0.1698196679353714,
0.3928055763244629,
-0.20490340888500214,
-0.03977392241358757,
-0.2208189219236374,
0.043494440615177155,
0.028986304998397827,
-0.081019826233387,
-0.01303289458155632,
-0.10963436216115952,
-0.12004014104604721,
-0.02735835686326027,
-0.13626909255981445,
0.13468341529369354,
0.2414696365594864,
0.2601763904094696,
0.1974772810935974,
0.3538559675216675,
0.13840901851654053,
-0.31150174140930176,
0.3684661388397217,
0.2825617790222168,
0.1614503264427185,
-0.18783089518547058,
-0.35825929045677185,
0.5080371499061584,
0.040837422013282776,
0.6212490797042847,
0.13185863196849823,
-0.27360308170318604,
0.03547178953886032,
0.16177283227443695,
-0.15279020369052887,
0.36181044578552246,
0.2422436773777008,
0.18313418328762054,
0.5993636846542358,
0.39907434582710266,
-0.2270188331604004,
0.12934578955173492,
0.3130761981010437,
0.07273966073989868,
-0.15578114986419678,
-0.053435906767845154,
-0.2871868312358856,
-0.28217992186546326,
0.2410205751657486,
-0.0649418756365776,
0.527103066444397,
0.29019907116889954,
0.12482994794845581,
-0.16651396453380585,
-0.062395669519901276,
-0.08856488764286041,
0.00046421587467193604,
0.2956542372703552,
0.20211820304393768,
0.023607712239027023,
0.13216164708137512,
-0.033044420182704926,
-0.23693421483039856,
-0.1259486824274063,
-0.013615601696074009,
0.09208767116069794,
-0.18366697430610657,
0.19665588438510895,
-0.04824105650186539,
0.043179385364055634,
-0.11852395534515381,
0.04868873208761215,
-0.14586076140403748,
-0.25088945031166077,
-0.07871976494789124,
-0.17037853598594666,
0.14087489247322083,
0.0997161939740181,
-0.0557449609041214,
0.297817587852478,
-0.0532313734292984,
-0.34373149275779724,
-0.13309583067893982,
-0.1097651794552803,
-0.20562055706977844,
0.03478947654366493,
0.07904907315969467,
0.20156285166740417,
0.3894379138946533,
0.23339731991291046,
0.06305491179227829,
-0.2507634162902832,
-0.1281212568283081,
-0.08113452792167664,
-0.17271307110786438,
0.2470870316028595,
-0.3129538595676422,
0.17224940657615662,
0.04505188763141632,
0.0761781558394432,
0.037500038743019104,
-0.3253334164619446,
0.02823837660253048,
-0.1393776834011078,
-0.18569070100784302,
-0.09560336172580719,
0.09416745603084564,
-0.2838163673877716,
-0.2353224903345108,
-0.23166495561599731,
0.11221776902675629,
0.18562117218971252,
-0.1038917601108551,
-0.07778768241405487,
0.21005429327487946,
0.14003179967403412,
-0.023024646565318108,
-0.03231675922870636,
0.0010908977128565311,
-0.23957586288452148,
0.5963212847709656,
0.13078360259532928,
-0.28741011023521423,
-0.14843885600566864,
0.03250466287136078,
0.09260521829128265,
0.4593251943588257,
-0.43639183044433594,
0.3887858986854553,
-0.4268547594547272,
0.06591242551803589,
-0.028323717415332794,
0.14973951876163483,
0.38756927847862244,
-0.04899069666862488,
-0.055349260568618774,
-0.0899970605969429,
-0.28980714082717896,
-0.20847749710083008,
-0.2657877504825592,
0.1750810742378235,
0.0703376829624176,
0.20472702383995056,
0.1540493369102478,
0.770289421081543,
0.2816253900527954,
-0.12821228802204132,
-0.0700763612985611,
-0.019976036623120308,
0.32215040922164917,
-0.3042881190776825,
-0.13366299867630005,
0.0767841562628746,
-0.23239293694496155,
-0.3620029091835022,
0.10222965478897095,
0.15922048687934875,
-0.22285528481006622,
0.05716609209775925,
0.43347737193107605,
0.26290497183799744,
0.03444605693221092,
0.16438032686710358,
-0.144460529088974,
0.1150294616818428,
0.12919822335243225,
0.2734664976596832,
-0.2965279519557953,
-0.23773983120918274,
0.1282239705324173,
-0.11579309403896332,
0.1971656233072281,
-0.05388909950852394,
-0.5846304893493652,
0.07504286617040634,
-0.7312512397766113,
0.17159870266914368,
-0.00427569355815649,
0.2625329792499542,
0.12129297852516174,
0.09905723482370377,
0.2460765242576599,
0.03434412181377411,
0.4295501112937927,
0.007447125390172005,
-0.13422907888889313,
-0.02095475234091282,
-0.26261961460113525,
-0.5181396007537842,
0.001941286027431488,
-0.11806343495845795,
0.09799259155988693,
-0.018077600747346878,
0.1409916877746582,
-0.14494863152503967,
-0.20846621692180634,
0.012804991565644741,
0.28982558846473694,
-0.1102437674999237,
-0.25748905539512634,
-0.3075465261936188,
-0.2508772015571594,
0.003196684643626213,
-0.11069142073392868,
0.06405922025442123,
-0.21589262783527374,
-0.005322979763150215,
-0.21743755042552948,
-0.14119853079319,
0.1710699498653412,
0.287007212638855,
-0.01994873210787773,
0.22777262330055237,
0.04203520342707634,
0.27845409512519836,
0.30918624997138977,
-0.07793480157852173,
0.3109682500362396,
0.6148457527160645,
0.09618595242500305,
-0.04493163526058197,
-0.05799076706171036,
-0.030223242938518524,
0.1740666627883911,
0.39990100264549255,
-0.11601776629686356,
-0.11743073910474777,
-0.04704491049051285,
-0.04595033824443817,
-0.4416710436344147,
0.09300834685564041,
0.3606792092323303,
0.05450912564992905,
-0.49379798769950867,
-0.6961228847503662,
0.48292404413223267,
0.3221646547317505,
-0.002960599958896637,
0.5213719606399536,
0.1529994010925293,
-0.11883670091629028,
0.22892259061336517,
0.3288167119026184,
0.7686118483543396,
-0.4081909656524658,
0.3427327275276184,
0.033929698169231415,
-0.000614657998085022,
0.28620848059654236,
-0.1507108062505722,
0.04774768650531769,
-0.13878823816776276,
-0.04516090825200081,
0.0209274310618639,
-0.3210030198097229,
0.21636155247688293,
0.04215191304683685,
0.2567623257637024,
0.20722661912441254,
0.14306233823299408,
-0.028538469225168228,
0.009282244369387627,
0.36832359433174133,
0.14154450595378876,
-0.352841854095459,
0.08062957227230072,
0.2060844898223877,
-0.0636477917432785,
0.026683414354920387,
0.10529827326536179,
0.07716839015483856,
-0.5997768640518188,
0.21185804903507233,
-0.22214984893798828,
-0.09834102541208267,
-0.27475830912590027,
0.22977328300476074,
-0.24676385521888733,
-0.19483405351638794,
0.12047849595546722,
0.17524585127830505,
-0.02735401690006256,
-0.005054939538240433,
-0.29250428080558777,
0.2589016258716583,
-0.1889817714691162,
0.17346635460853577,
0.46968525648117065,
-0.4210251569747925,
0.19382835924625397,
0.08227459341287613,
-0.05009527504444122,
0.042528629302978516,
-0.27078136801719666,
-0.3727762699127197,
-0.119048111140728,
-0.09768183529376984,
0.046276774257421494,
-0.09696663171052933,
-0.17741267383098602,
0.1778089553117752,
-0.11572803556919098,
-0.07388055324554443,
0.11928673088550568,
0.28471413254737854,
0.14836934208869934,
0.570770263671875,
0.1340295523405075,
-0.40163180232048035,
-0.15519168972969055,
0.29708611965179443,
0.024441804736852646,
0.08895169198513031,
0.34035784006118774,
0.16486357152462006,
-0.26175814867019653,
-0.078019879758358,
0.34606605768203735,
0.5033900141716003,
-0.13709066808223724,
-0.09443420171737671,
-0.3355535864830017,
0.14552389085292816,
0.16528871655464172,
0.10143573582172394,
0.14639633893966675,
-0.43259620666503906,
-0.2803822457790375,
-0.10835887491703033,
-0.2876851558685303,
0.14524675905704498,
-0.14822880923748016,
0.29796847701072693,
-0.19012171030044556,
-0.31742188334465027,
-0.11149486899375916,
0.01839434541761875,
-0.2807397246360779,
-0.25059330463409424,
-0.010744128376245499,
0.10900290310382843,
-0.10112187266349792,
0.22028779983520508,
0.024403631687164307,
-0.11193418502807617,
0.0007438585162162781,
-0.07983710616827011,
-0.12734174728393555,
-0.1610722839832306,
0.05955244228243828,
0.1735745519399643,
0.05251915752887726,
-0.40336722135543823,
-0.054908521473407745,
-0.3336772322654724,
-0.2233925312757492,
-0.3024187684059143,
0.04917363449931145,
0.33025631308555603,
-0.10850398242473602,
0.0007784543558955193,
0.06414219737052917,
-0.09168758243322372,
-0.11126849055290222,
0.29550546407699585,
-0.1259220540523529,
0.16868937015533447,
0.030922841280698776,
0.1445612907409668,
0.4665188789367676,
-0.2060360461473465,
-0.13433855772018433,
0.13949929177761078,
0.09199842065572739,
0.21920043230056763,
0.31199273467063904,
-0.37542444467544556,
0.30088555812835693,
0.17825499176979065,
0.5255874395370483,
0.5776782035827637,
-0.08642365038394928,
-0.04829949885606766,
-0.1358981728553772,
0.11961130052804947,
-0.008285121992230415,
-0.24928991496562958,
0.0623391829431057,
-0.11106911301612854,
0.15031425654888153,
0.2359202802181244,
0.31714653968811035,
0.3776895999908447,
-0.013536490499973297,
-0.15435445308685303,
0.60346919298172,
-0.4535907506942749,
-0.06375458836555481,
-0.106644406914711,
0.16593575477600098,
0.10513633489608765,
0.44457918405532837,
0.1751127690076828,
0.15019924938678741,
0.5105740427970886,
0.06874160468578339,
0.6162846684455872,
0.3639476001262665,
0.31382471323013306,
-0.10886264592409134,
-0.18955156207084656,
-0.006424449384212494,
0.08304151147603989,
-0.2204793095588684,
-0.031143076717853546,
0.0744839534163475,
0.04590989276766777,
-0.35433048009872437,
-0.3149506449699402,
0.0743725597858429,
-0.25379475951194763,
-0.007490802556276321,
-0.0483669713139534,
-0.029870549216866493,
-0.12977781891822815,
0.0728951245546341,
0.2107991874217987,
-0.20319311320781708,
-0.19604916870594025,
0.3447192907333374,
-0.07792562246322632,
-0.05682133138179779,
-0.16212983429431915,
0.28085213899612427,
-0.021489150822162628,
0.1728646457195282,
-0.12640690803527832,
-0.082384392619133,
-0.2849639058113098,
0.010356336832046509,
-0.1397750973701477,
0.3787521719932556,
0.27050459384918213,
0.23240576684474945,
-0.16406464576721191,
0.050375211983919144,
-0.14890079200267792,
-0.13814076781272888,
0.0803581178188324,
0.3532447814941406,
-0.2355179786682129,
-0.04281085357069969,
0.1823548823595047,
0.10394218564033508,
-0.12562108039855957,
-0.09235432744026184,
-0.18836429715156555,
0.06595812737941742,
-0.43436723947525024,
0.11809118092060089,
-0.08400826901197433,
-0.2931291162967682,
0.06691838800907135,
0.07898397743701935,
-0.24304193258285522,
-0.11079824715852737,
0.48218488693237305,
-0.4651016294956207,
-0.02384684979915619,
-0.1127801388502121,
0.06832945346832275,
-0.2132829874753952,
0.743356466293335,
0.3071632385253906,
0.29774752259254456,
-0.3887542188167572,
0.1410844624042511,
-0.6297143697738647,
-0.06277615576982498,
-0.35741519927978516,
0.024195915088057518,
0.12049387395381927,
0.2420872002840042,
0.08292707800865173,
0.3555293679237366,
0.12554597854614258,
0.0015365472063422203,
-0.03281405568122864,
-0.08632767200469971,
-0.23092062771320343,
-0.025104042142629623,
-0.2001776248216629,
0.21831929683685303,
-0.17947567999362946,
-0.3345945477485657,
0.3847672641277313,
-0.10637593269348145,
-0.04345609247684479,
-0.16519862413406372,
-0.0484442301094532,
0.36525624990463257,
0.12913012504577637,
0.30278876423835754,
0.17714804410934448,
0.4205041527748108,
0.2366502583026886,
-0.07973449677228928,
-0.3657917380332947,
-0.05324940010905266,
-0.032749075442552567,
0.09684883058071136,
-0.24282386898994446,
0.27961596846580505,
-0.15631145238876343,
-0.43859919905662537,
-0.15727634727954865,
0.07073159515857697,
-0.08751414716243744,
-0.09674578160047531,
-0.3099510967731476,
0.04811631143093109,
-0.09352725744247437,
0.1731005758047104,
0.05288771167397499,
0.1320953071117401,
0.09433206915855408,
-0.16976599395275116,
-0.3104426860809326,
0.07549957931041718,
0.09549293667078018,
-0.21179115772247314,
-0.10135827958583832,
-0.09009261429309845,
-0.07877902686595917,
0.4433889091014862,
0.1187654659152031,
-0.525415301322937,
-0.01713188737630844,
0.32149538397789,
-0.04861156642436981,
-0.10246966779232025,
0.197234109044075,
-0.08903463184833527,
-0.016529932618141174,
-0.1392822563648224,
0.20708788931369781,
-0.19468927383422852,
-0.10248934477567673,
-0.010064464062452316,
0.0016356073319911957
] |
https://github.com/huggingface/datasets/issues/708 | Datasets performance slow? - 6.4x slower than in memory dataset | There is a way to increase the batches read from memory? or multiprocessed it? I think that one of two or it is reading with just 1 core o it is reading very small chunks from disk and left my GPU at 0 between batches | I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
| 45 | Datasets performance slow? - 6.4x slower than in memory dataset
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
There is a way to increase the batches read from memory? or multiprocessed it? I think that one of two or it is reading with just 1 core o it is reading very small chunks from disk and left my GPU at 0 between batches | [
-0.3806666433811188,
-0.042408622801303864,
-0.03140971064567566,
0.4377957582473755,
0.10050874948501587,
0.12637382745742798,
0.013655014336109161,
0.30718183517456055,
0.09141014516353607,
-0.07309862971305847,
-0.06624182313680649,
0.30112794041633606,
-0.0139892203733325,
-0.27428877353668213,
-0.08003707230091095,
0.06234866380691528,
0.20978185534477234,
0.028924882411956787,
-0.23669669032096863,
-0.1054772213101387,
-0.26409828662872314,
-0.29736974835395813,
-0.06988515704870224,
-0.22846917808055878,
-0.3223612308502197,
-0.14342530071735382,
0.08182022720575333,
-0.0005960054695606232,
-0.34509924054145813,
-0.4037327766418457,
0.3832426369190216,
0.0766955316066742,
0.06868439167737961,
0.5503899455070496,
-0.00011250170791754499,
-0.04486047849059105,
0.21537084877490997,
0.1636437475681305,
-0.17409516870975494,
0.3116465210914612,
-0.04444272816181183,
-0.24157045781612396,
-0.051339149475097656,
-0.11545289307832718,
-0.013212092220783234,
-0.12978483736515045,
-0.07742957770824432,
-0.7160376310348511,
0.018145978450775146,
0.10876138508319855,
0.1370815634727478,
0.3199504315853119,
-0.38727790117263794,
0.21730045974254608,
0.14214134216308594,
0.31982874870300293,
-0.43895620107650757,
-0.10345587134361267,
0.3924716114997864,
-0.14023572206497192,
-0.05481346696615219,
0.22956834733486176,
-0.182692289352417,
0.2396479845046997,
0.45820972323417664,
-0.024468503892421722,
-0.18928936123847961,
-0.2351144552230835,
0.08833503723144531,
0.4672670066356659,
0.18636924028396606,
-0.1389109492301941,
-0.6342912316322327,
-0.38083428144454956,
-0.22537337243556976,
-0.11583198606967926,
-0.006604380905628204,
0.20127199590206146,
-0.19658349454402924,
0.11101819574832916,
-0.5031594038009644,
0.062106903642416,
0.021066814661026,
-0.010644905269145966,
-0.15939365327358246,
0.3560093343257904,
0.10868192464113235,
0.2212630808353424,
0.3045378625392914,
0.11735497415065765,
0.39511629939079285,
-0.34741640090942383,
-0.04265747591853142,
0.056967560201883316,
-0.6727505326271057,
0.07352586090564728,
0.13223479688167572,
0.13274307548999786,
0.2916538715362549,
0.01923973858356476,
0.13751746714115143,
0.2773090898990631,
-0.01809447444975376,
-0.13785627484321594,
0.21889366209506989,
0.1327664852142334,
-0.3069685399532318,
0.48443368077278137,
0.30892181396484375,
-0.25719332695007324,
0.11316867172718048,
0.23479220271110535,
-0.04290648177266121,
-0.12304047495126724,
0.08087354898452759,
-0.24565881490707397,
0.06285788863897324,
-0.2480964958667755,
-0.3668070137500763,
-0.10154612362384796,
-0.12862327694892883,
-0.03555348888039589,
-0.056583333760499954,
0.16398483514785767,
-0.2934103012084961,
0.22844496369361877,
-0.12105327099561691,
0.003949107602238655,
-0.2586510181427002,
0.04836083576083183,
-0.05330055579543114,
-0.08602413535118103,
-0.31407007575035095,
0.35563796758651733,
0.29162776470184326,
-0.0728287547826767,
0.14573374390602112,
-0.03167036175727844,
0.02422153204679489,
0.24293693900108337,
0.360352098941803,
-0.38301771879196167,
0.25235870480537415,
0.1450633555650711,
-0.22604425251483917,
0.5183619260787964,
0.10156401991844177,
0.4579477906227112,
-0.2209920585155487,
0.3493160307407379,
-0.06009400635957718,
-0.20405109226703644,
0.2610081434249878,
0.11241591721773148,
-0.26480481028556824,
-0.11672507226467133,
-0.43795326352119446,
0.28172725439071655,
0.10803442448377609,
-0.0582335889339447,
-0.010016396641731262,
-0.3681591749191284,
-0.19560609757900238,
-0.12006662786006927,
0.3318263292312622,
0.3998510241508484,
-0.5381984710693359,
0.17783066630363464,
0.06051916256546974,
0.21149687469005585,
0.24934306740760803,
0.6614070534706116,
-0.3634275496006012,
0.23807278275489807,
-0.12859003245830536,
-0.2693576216697693,
-0.11695916205644608,
-0.1960737258195877,
-0.5835573673248291,
0.15087991952896118,
0.004400990903377533,
0.13775651156902313,
0.10366177558898926,
0.4255775511264801,
0.38060030341148376,
0.1373888999223709,
0.12054443359375,
0.2378034144639969,
0.05063333734869957,
0.1219746395945549,
-0.35221317410469055,
-0.26674363017082214,
0.5058069229125977,
0.26592525839805603,
-0.018460508435964584,
-0.1692710518836975,
-0.13043338060379028,
-0.2034454494714737,
0.17151528596878052,
-0.17232151329517365,
0.1123998686671257,
0.27616024017333984,
-0.015416067093610764,
-0.13231514394283295,
0.1253482699394226,
0.09626270085573196,
-0.24141240119934082,
0.44943851232528687,
0.047579728066921234,
0.0823376476764679,
-0.07225553691387177,
-0.0690128281712532,
0.23401322960853577,
0.1237763985991478,
-0.2757114768028259,
-0.09139735996723175,
-0.020273512229323387,
-0.12434770166873932,
0.05064372345805168,
-0.23929336667060852,
-0.1698196679353714,
0.3928055763244629,
-0.20490340888500214,
-0.03977392241358757,
-0.2208189219236374,
0.043494440615177155,
0.028986304998397827,
-0.081019826233387,
-0.01303289458155632,
-0.10963436216115952,
-0.12004014104604721,
-0.02735835686326027,
-0.13626909255981445,
0.13468341529369354,
0.2414696365594864,
0.2601763904094696,
0.1974772810935974,
0.3538559675216675,
0.13840901851654053,
-0.31150174140930176,
0.3684661388397217,
0.2825617790222168,
0.1614503264427185,
-0.18783089518547058,
-0.35825929045677185,
0.5080371499061584,
0.040837422013282776,
0.6212490797042847,
0.13185863196849823,
-0.27360308170318604,
0.03547178953886032,
0.16177283227443695,
-0.15279020369052887,
0.36181044578552246,
0.2422436773777008,
0.18313418328762054,
0.5993636846542358,
0.39907434582710266,
-0.2270188331604004,
0.12934578955173492,
0.3130761981010437,
0.07273966073989868,
-0.15578114986419678,
-0.053435906767845154,
-0.2871868312358856,
-0.28217992186546326,
0.2410205751657486,
-0.0649418756365776,
0.527103066444397,
0.29019907116889954,
0.12482994794845581,
-0.16651396453380585,
-0.062395669519901276,
-0.08856488764286041,
0.00046421587467193604,
0.2956542372703552,
0.20211820304393768,
0.023607712239027023,
0.13216164708137512,
-0.033044420182704926,
-0.23693421483039856,
-0.1259486824274063,
-0.013615601696074009,
0.09208767116069794,
-0.18366697430610657,
0.19665588438510895,
-0.04824105650186539,
0.043179385364055634,
-0.11852395534515381,
0.04868873208761215,
-0.14586076140403748,
-0.25088945031166077,
-0.07871976494789124,
-0.17037853598594666,
0.14087489247322083,
0.0997161939740181,
-0.0557449609041214,
0.297817587852478,
-0.0532313734292984,
-0.34373149275779724,
-0.13309583067893982,
-0.1097651794552803,
-0.20562055706977844,
0.03478947654366493,
0.07904907315969467,
0.20156285166740417,
0.3894379138946533,
0.23339731991291046,
0.06305491179227829,
-0.2507634162902832,
-0.1281212568283081,
-0.08113452792167664,
-0.17271307110786438,
0.2470870316028595,
-0.3129538595676422,
0.17224940657615662,
0.04505188763141632,
0.0761781558394432,
0.037500038743019104,
-0.3253334164619446,
0.02823837660253048,
-0.1393776834011078,
-0.18569070100784302,
-0.09560336172580719,
0.09416745603084564,
-0.2838163673877716,
-0.2353224903345108,
-0.23166495561599731,
0.11221776902675629,
0.18562117218971252,
-0.1038917601108551,
-0.07778768241405487,
0.21005429327487946,
0.14003179967403412,
-0.023024646565318108,
-0.03231675922870636,
0.0010908977128565311,
-0.23957586288452148,
0.5963212847709656,
0.13078360259532928,
-0.28741011023521423,
-0.14843885600566864,
0.03250466287136078,
0.09260521829128265,
0.4593251943588257,
-0.43639183044433594,
0.3887858986854553,
-0.4268547594547272,
0.06591242551803589,
-0.028323717415332794,
0.14973951876163483,
0.38756927847862244,
-0.04899069666862488,
-0.055349260568618774,
-0.0899970605969429,
-0.28980714082717896,
-0.20847749710083008,
-0.2657877504825592,
0.1750810742378235,
0.0703376829624176,
0.20472702383995056,
0.1540493369102478,
0.770289421081543,
0.2816253900527954,
-0.12821228802204132,
-0.0700763612985611,
-0.019976036623120308,
0.32215040922164917,
-0.3042881190776825,
-0.13366299867630005,
0.0767841562628746,
-0.23239293694496155,
-0.3620029091835022,
0.10222965478897095,
0.15922048687934875,
-0.22285528481006622,
0.05716609209775925,
0.43347737193107605,
0.26290497183799744,
0.03444605693221092,
0.16438032686710358,
-0.144460529088974,
0.1150294616818428,
0.12919822335243225,
0.2734664976596832,
-0.2965279519557953,
-0.23773983120918274,
0.1282239705324173,
-0.11579309403896332,
0.1971656233072281,
-0.05388909950852394,
-0.5846304893493652,
0.07504286617040634,
-0.7312512397766113,
0.17159870266914368,
-0.00427569355815649,
0.2625329792499542,
0.12129297852516174,
0.09905723482370377,
0.2460765242576599,
0.03434412181377411,
0.4295501112937927,
0.007447125390172005,
-0.13422907888889313,
-0.02095475234091282,
-0.26261961460113525,
-0.5181396007537842,
0.001941286027431488,
-0.11806343495845795,
0.09799259155988693,
-0.018077600747346878,
0.1409916877746582,
-0.14494863152503967,
-0.20846621692180634,
0.012804991565644741,
0.28982558846473694,
-0.1102437674999237,
-0.25748905539512634,
-0.3075465261936188,
-0.2508772015571594,
0.003196684643626213,
-0.11069142073392868,
0.06405922025442123,
-0.21589262783527374,
-0.005322979763150215,
-0.21743755042552948,
-0.14119853079319,
0.1710699498653412,
0.287007212638855,
-0.01994873210787773,
0.22777262330055237,
0.04203520342707634,
0.27845409512519836,
0.30918624997138977,
-0.07793480157852173,
0.3109682500362396,
0.6148457527160645,
0.09618595242500305,
-0.04493163526058197,
-0.05799076706171036,
-0.030223242938518524,
0.1740666627883911,
0.39990100264549255,
-0.11601776629686356,
-0.11743073910474777,
-0.04704491049051285,
-0.04595033824443817,
-0.4416710436344147,
0.09300834685564041,
0.3606792092323303,
0.05450912564992905,
-0.49379798769950867,
-0.6961228847503662,
0.48292404413223267,
0.3221646547317505,
-0.002960599958896637,
0.5213719606399536,
0.1529994010925293,
-0.11883670091629028,
0.22892259061336517,
0.3288167119026184,
0.7686118483543396,
-0.4081909656524658,
0.3427327275276184,
0.033929698169231415,
-0.000614657998085022,
0.28620848059654236,
-0.1507108062505722,
0.04774768650531769,
-0.13878823816776276,
-0.04516090825200081,
0.0209274310618639,
-0.3210030198097229,
0.21636155247688293,
0.04215191304683685,
0.2567623257637024,
0.20722661912441254,
0.14306233823299408,
-0.028538469225168228,
0.009282244369387627,
0.36832359433174133,
0.14154450595378876,
-0.352841854095459,
0.08062957227230072,
0.2060844898223877,
-0.0636477917432785,
0.026683414354920387,
0.10529827326536179,
0.07716839015483856,
-0.5997768640518188,
0.21185804903507233,
-0.22214984893798828,
-0.09834102541208267,
-0.27475830912590027,
0.22977328300476074,
-0.24676385521888733,
-0.19483405351638794,
0.12047849595546722,
0.17524585127830505,
-0.02735401690006256,
-0.005054939538240433,
-0.29250428080558777,
0.2589016258716583,
-0.1889817714691162,
0.17346635460853577,
0.46968525648117065,
-0.4210251569747925,
0.19382835924625397,
0.08227459341287613,
-0.05009527504444122,
0.042528629302978516,
-0.27078136801719666,
-0.3727762699127197,
-0.119048111140728,
-0.09768183529376984,
0.046276774257421494,
-0.09696663171052933,
-0.17741267383098602,
0.1778089553117752,
-0.11572803556919098,
-0.07388055324554443,
0.11928673088550568,
0.28471413254737854,
0.14836934208869934,
0.570770263671875,
0.1340295523405075,
-0.40163180232048035,
-0.15519168972969055,
0.29708611965179443,
0.024441804736852646,
0.08895169198513031,
0.34035784006118774,
0.16486357152462006,
-0.26175814867019653,
-0.078019879758358,
0.34606605768203735,
0.5033900141716003,
-0.13709066808223724,
-0.09443420171737671,
-0.3355535864830017,
0.14552389085292816,
0.16528871655464172,
0.10143573582172394,
0.14639633893966675,
-0.43259620666503906,
-0.2803822457790375,
-0.10835887491703033,
-0.2876851558685303,
0.14524675905704498,
-0.14822880923748016,
0.29796847701072693,
-0.19012171030044556,
-0.31742188334465027,
-0.11149486899375916,
0.01839434541761875,
-0.2807397246360779,
-0.25059330463409424,
-0.010744128376245499,
0.10900290310382843,
-0.10112187266349792,
0.22028779983520508,
0.024403631687164307,
-0.11193418502807617,
0.0007438585162162781,
-0.07983710616827011,
-0.12734174728393555,
-0.1610722839832306,
0.05955244228243828,
0.1735745519399643,
0.05251915752887726,
-0.40336722135543823,
-0.054908521473407745,
-0.3336772322654724,
-0.2233925312757492,
-0.3024187684059143,
0.04917363449931145,
0.33025631308555603,
-0.10850398242473602,
0.0007784543558955193,
0.06414219737052917,
-0.09168758243322372,
-0.11126849055290222,
0.29550546407699585,
-0.1259220540523529,
0.16868937015533447,
0.030922841280698776,
0.1445612907409668,
0.4665188789367676,
-0.2060360461473465,
-0.13433855772018433,
0.13949929177761078,
0.09199842065572739,
0.21920043230056763,
0.31199273467063904,
-0.37542444467544556,
0.30088555812835693,
0.17825499176979065,
0.5255874395370483,
0.5776782035827637,
-0.08642365038394928,
-0.04829949885606766,
-0.1358981728553772,
0.11961130052804947,
-0.008285121992230415,
-0.24928991496562958,
0.0623391829431057,
-0.11106911301612854,
0.15031425654888153,
0.2359202802181244,
0.31714653968811035,
0.3776895999908447,
-0.013536490499973297,
-0.15435445308685303,
0.60346919298172,
-0.4535907506942749,
-0.06375458836555481,
-0.106644406914711,
0.16593575477600098,
0.10513633489608765,
0.44457918405532837,
0.1751127690076828,
0.15019924938678741,
0.5105740427970886,
0.06874160468578339,
0.6162846684455872,
0.3639476001262665,
0.31382471323013306,
-0.10886264592409134,
-0.18955156207084656,
-0.006424449384212494,
0.08304151147603989,
-0.2204793095588684,
-0.031143076717853546,
0.0744839534163475,
0.04590989276766777,
-0.35433048009872437,
-0.3149506449699402,
0.0743725597858429,
-0.25379475951194763,
-0.007490802556276321,
-0.0483669713139534,
-0.029870549216866493,
-0.12977781891822815,
0.0728951245546341,
0.2107991874217987,
-0.20319311320781708,
-0.19604916870594025,
0.3447192907333374,
-0.07792562246322632,
-0.05682133138179779,
-0.16212983429431915,
0.28085213899612427,
-0.021489150822162628,
0.1728646457195282,
-0.12640690803527832,
-0.082384392619133,
-0.2849639058113098,
0.010356336832046509,
-0.1397750973701477,
0.3787521719932556,
0.27050459384918213,
0.23240576684474945,
-0.16406464576721191,
0.050375211983919144,
-0.14890079200267792,
-0.13814076781272888,
0.0803581178188324,
0.3532447814941406,
-0.2355179786682129,
-0.04281085357069969,
0.1823548823595047,
0.10394218564033508,
-0.12562108039855957,
-0.09235432744026184,
-0.18836429715156555,
0.06595812737941742,
-0.43436723947525024,
0.11809118092060089,
-0.08400826901197433,
-0.2931291162967682,
0.06691838800907135,
0.07898397743701935,
-0.24304193258285522,
-0.11079824715852737,
0.48218488693237305,
-0.4651016294956207,
-0.02384684979915619,
-0.1127801388502121,
0.06832945346832275,
-0.2132829874753952,
0.743356466293335,
0.3071632385253906,
0.29774752259254456,
-0.3887542188167572,
0.1410844624042511,
-0.6297143697738647,
-0.06277615576982498,
-0.35741519927978516,
0.024195915088057518,
0.12049387395381927,
0.2420872002840042,
0.08292707800865173,
0.3555293679237366,
0.12554597854614258,
0.0015365472063422203,
-0.03281405568122864,
-0.08632767200469971,
-0.23092062771320343,
-0.025104042142629623,
-0.2001776248216629,
0.21831929683685303,
-0.17947567999362946,
-0.3345945477485657,
0.3847672641277313,
-0.10637593269348145,
-0.04345609247684479,
-0.16519862413406372,
-0.0484442301094532,
0.36525624990463257,
0.12913012504577637,
0.30278876423835754,
0.17714804410934448,
0.4205041527748108,
0.2366502583026886,
-0.07973449677228928,
-0.3657917380332947,
-0.05324940010905266,
-0.032749075442552567,
0.09684883058071136,
-0.24282386898994446,
0.27961596846580505,
-0.15631145238876343,
-0.43859919905662537,
-0.15727634727954865,
0.07073159515857697,
-0.08751414716243744,
-0.09674578160047531,
-0.3099510967731476,
0.04811631143093109,
-0.09352725744247437,
0.1731005758047104,
0.05288771167397499,
0.1320953071117401,
0.09433206915855408,
-0.16976599395275116,
-0.3104426860809326,
0.07549957931041718,
0.09549293667078018,
-0.21179115772247314,
-0.10135827958583832,
-0.09009261429309845,
-0.07877902686595917,
0.4433889091014862,
0.1187654659152031,
-0.525415301322937,
-0.01713188737630844,
0.32149538397789,
-0.04861156642436981,
-0.10246966779232025,
0.197234109044075,
-0.08903463184833527,
-0.016529932618141174,
-0.1392822563648224,
0.20708788931369781,
-0.19468927383422852,
-0.10248934477567673,
-0.010064464062452316,
0.0016356073319911957
] |
https://github.com/huggingface/datasets/issues/708 | Datasets performance slow? - 6.4x slower than in memory dataset | My fault! I had not seen the `dataloader_num_workers` in `TrainingArguments` ! Now I can parallelize and go fast! Sorry, and thanks. | I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
| 21 | Datasets performance slow? - 6.4x slower than in memory dataset
I've been very excited about this amazing datasets project. However, I've noticed that the performance can be substantially slower than using an in-memory dataset.
Now, this is expected I guess, due to memory mapping data using arrow files, and you don't get anything for free. But I was surprised at how much slower.
For example, in the `yelp_polarity` dataset (560000 datapoints, or 17500 batches of 32), it was taking me 3:31 to just get process the data and get it on the GPU (no model involved). Whereas, the equivalent in-memory dataset would finish in just 0:33.
Is this expected? Given that one of the goals of this project is also accelerate dataset processing, this seems a bit slower than I would expect. I understand the advantages of being able to work on datasets that exceed memory, and that's very exciting to me, but thought I'd open this issue to discuss.
For reference I'm running a AMD Ryzen Threadripper 1900X 8-Core Processor CPU, with 128 GB of RAM and an NVME SSD Samsung 960 EVO. I'm running with an RTX Titan 24GB GPU.
I can see with `iotop` that the dataset gets quickly loaded into the system read buffers, and thus doesn't incur any additional IO reads. Thus in theory, all the data *should* be in RAM, but in my benchmark code below it's still 6.4 times slower.
What am I doing wrong? And is there a way to force the datasets to completely load into memory instead of being memory mapped in cases where you want maximum performance?
At 3:31 for 17500 batches, that's 12ms per batch. Does this 12ms just become insignificant as a proportion of forward and backward passes in practice, and thus it's not worth worrying about this in practice?
In any case, here's my code `benchmark.py`. If you run it with an argument of `memory` it will copy the data into memory before executing the same test.
``` py
import sys
from datasets import load_dataset
from transformers import DataCollatorWithPadding, BertTokenizerFast
from torch.utils.data import DataLoader
from tqdm import tqdm
if __name__ == '__main__':
tokenizer = BertTokenizerFast.from_pretrained('bert-base-cased')
collate_fn = DataCollatorWithPadding(tokenizer, padding=True)
ds = load_dataset('yelp_polarity')
def do_tokenize(x):
return tokenizer(x['text'], truncation=True)
ds = ds.map(do_tokenize, batched=True)
ds.set_format('torch', ['input_ids', 'token_type_ids', 'attention_mask'])
if len(sys.argv) == 2 and sys.argv[1] == 'memory':
# copy to memory - probably a faster way to do this - but demonstrates the point
# approximately 530 batches per second - 17500 batches in 0:33
print('using memory')
_ds = [data for data in tqdm(ds['train'])]
else:
# approximately 83 batches per second - 17500 batches in 3:31
print('using datasets')
_ds = ds['train']
dl = DataLoader(_ds, shuffle=True, collate_fn=collate_fn, batch_size=32, num_workers=4)
for data in tqdm(dl):
for k, v in data.items():
data[k] = v.to('cuda')
```
For reference, my conda environment is [here](https://gist.github.com/05b6101518ff70ed42a858b302a0405d)
Once again, I'm very excited about this library, and how easy it is to load datasets, and to do so without worrying about system memory constraints.
Thanks for all your great work.
My fault! I had not seen the `dataloader_num_workers` in `TrainingArguments` ! Now I can parallelize and go fast! Sorry, and thanks. | [
-0.3806666433811188,
-0.042408622801303864,
-0.03140971064567566,
0.4377957582473755,
0.10050874948501587,
0.12637382745742798,
0.013655014336109161,
0.30718183517456055,
0.09141014516353607,
-0.07309862971305847,
-0.06624182313680649,
0.30112794041633606,
-0.0139892203733325,
-0.27428877353668213,
-0.08003707230091095,
0.06234866380691528,
0.20978185534477234,
0.028924882411956787,
-0.23669669032096863,
-0.1054772213101387,
-0.26409828662872314,
-0.29736974835395813,
-0.06988515704870224,
-0.22846917808055878,
-0.3223612308502197,
-0.14342530071735382,
0.08182022720575333,
-0.0005960054695606232,
-0.34509924054145813,
-0.4037327766418457,
0.3832426369190216,
0.0766955316066742,
0.06868439167737961,
0.5503899455070496,
-0.00011250170791754499,
-0.04486047849059105,
0.21537084877490997,
0.1636437475681305,
-0.17409516870975494,
0.3116465210914612,
-0.04444272816181183,
-0.24157045781612396,
-0.051339149475097656,
-0.11545289307832718,
-0.013212092220783234,
-0.12978483736515045,
-0.07742957770824432,
-0.7160376310348511,
0.018145978450775146,
0.10876138508319855,
0.1370815634727478,
0.3199504315853119,
-0.38727790117263794,
0.21730045974254608,
0.14214134216308594,
0.31982874870300293,
-0.43895620107650757,
-0.10345587134361267,
0.3924716114997864,
-0.14023572206497192,
-0.05481346696615219,
0.22956834733486176,
-0.182692289352417,
0.2396479845046997,
0.45820972323417664,
-0.024468503892421722,
-0.18928936123847961,
-0.2351144552230835,
0.08833503723144531,
0.4672670066356659,
0.18636924028396606,
-0.1389109492301941,
-0.6342912316322327,
-0.38083428144454956,
-0.22537337243556976,
-0.11583198606967926,
-0.006604380905628204,
0.20127199590206146,
-0.19658349454402924,
0.11101819574832916,
-0.5031594038009644,
0.062106903642416,
0.021066814661026,
-0.010644905269145966,
-0.15939365327358246,
0.3560093343257904,
0.10868192464113235,
0.2212630808353424,
0.3045378625392914,
0.11735497415065765,
0.39511629939079285,
-0.34741640090942383,
-0.04265747591853142,
0.056967560201883316,
-0.6727505326271057,
0.07352586090564728,
0.13223479688167572,
0.13274307548999786,
0.2916538715362549,
0.01923973858356476,
0.13751746714115143,
0.2773090898990631,
-0.01809447444975376,
-0.13785627484321594,
0.21889366209506989,
0.1327664852142334,
-0.3069685399532318,
0.48443368077278137,
0.30892181396484375,
-0.25719332695007324,
0.11316867172718048,
0.23479220271110535,
-0.04290648177266121,
-0.12304047495126724,
0.08087354898452759,
-0.24565881490707397,
0.06285788863897324,
-0.2480964958667755,
-0.3668070137500763,
-0.10154612362384796,
-0.12862327694892883,
-0.03555348888039589,
-0.056583333760499954,
0.16398483514785767,
-0.2934103012084961,
0.22844496369361877,
-0.12105327099561691,
0.003949107602238655,
-0.2586510181427002,
0.04836083576083183,
-0.05330055579543114,
-0.08602413535118103,
-0.31407007575035095,
0.35563796758651733,
0.29162776470184326,
-0.0728287547826767,
0.14573374390602112,
-0.03167036175727844,
0.02422153204679489,
0.24293693900108337,
0.360352098941803,
-0.38301771879196167,
0.25235870480537415,
0.1450633555650711,
-0.22604425251483917,
0.5183619260787964,
0.10156401991844177,
0.4579477906227112,
-0.2209920585155487,
0.3493160307407379,
-0.06009400635957718,
-0.20405109226703644,
0.2610081434249878,
0.11241591721773148,
-0.26480481028556824,
-0.11672507226467133,
-0.43795326352119446,
0.28172725439071655,
0.10803442448377609,
-0.0582335889339447,
-0.010016396641731262,
-0.3681591749191284,
-0.19560609757900238,
-0.12006662786006927,
0.3318263292312622,
0.3998510241508484,
-0.5381984710693359,
0.17783066630363464,
0.06051916256546974,
0.21149687469005585,
0.24934306740760803,
0.6614070534706116,
-0.3634275496006012,
0.23807278275489807,
-0.12859003245830536,
-0.2693576216697693,
-0.11695916205644608,
-0.1960737258195877,
-0.5835573673248291,
0.15087991952896118,
0.004400990903377533,
0.13775651156902313,
0.10366177558898926,
0.4255775511264801,
0.38060030341148376,
0.1373888999223709,
0.12054443359375,
0.2378034144639969,
0.05063333734869957,
0.1219746395945549,
-0.35221317410469055,
-0.26674363017082214,
0.5058069229125977,
0.26592525839805603,
-0.018460508435964584,
-0.1692710518836975,
-0.13043338060379028,
-0.2034454494714737,
0.17151528596878052,
-0.17232151329517365,
0.1123998686671257,
0.27616024017333984,
-0.015416067093610764,
-0.13231514394283295,
0.1253482699394226,
0.09626270085573196,
-0.24141240119934082,
0.44943851232528687,
0.047579728066921234,
0.0823376476764679,
-0.07225553691387177,
-0.0690128281712532,
0.23401322960853577,
0.1237763985991478,
-0.2757114768028259,
-0.09139735996723175,
-0.020273512229323387,
-0.12434770166873932,
0.05064372345805168,
-0.23929336667060852,
-0.1698196679353714,
0.3928055763244629,
-0.20490340888500214,
-0.03977392241358757,
-0.2208189219236374,
0.043494440615177155,
0.028986304998397827,
-0.081019826233387,
-0.01303289458155632,
-0.10963436216115952,
-0.12004014104604721,
-0.02735835686326027,
-0.13626909255981445,
0.13468341529369354,
0.2414696365594864,
0.2601763904094696,
0.1974772810935974,
0.3538559675216675,
0.13840901851654053,
-0.31150174140930176,
0.3684661388397217,
0.2825617790222168,
0.1614503264427185,
-0.18783089518547058,
-0.35825929045677185,
0.5080371499061584,
0.040837422013282776,
0.6212490797042847,
0.13185863196849823,
-0.27360308170318604,
0.03547178953886032,
0.16177283227443695,
-0.15279020369052887,
0.36181044578552246,
0.2422436773777008,
0.18313418328762054,
0.5993636846542358,
0.39907434582710266,
-0.2270188331604004,
0.12934578955173492,
0.3130761981010437,
0.07273966073989868,
-0.15578114986419678,
-0.053435906767845154,
-0.2871868312358856,
-0.28217992186546326,
0.2410205751657486,
-0.0649418756365776,
0.527103066444397,
0.29019907116889954,
0.12482994794845581,
-0.16651396453380585,
-0.062395669519901276,
-0.08856488764286041,
0.00046421587467193604,
0.2956542372703552,
0.20211820304393768,
0.023607712239027023,
0.13216164708137512,
-0.033044420182704926,
-0.23693421483039856,
-0.1259486824274063,
-0.013615601696074009,
0.09208767116069794,
-0.18366697430610657,
0.19665588438510895,
-0.04824105650186539,
0.043179385364055634,
-0.11852395534515381,
0.04868873208761215,
-0.14586076140403748,
-0.25088945031166077,
-0.07871976494789124,
-0.17037853598594666,
0.14087489247322083,
0.0997161939740181,
-0.0557449609041214,
0.297817587852478,
-0.0532313734292984,
-0.34373149275779724,
-0.13309583067893982,
-0.1097651794552803,
-0.20562055706977844,
0.03478947654366493,
0.07904907315969467,
0.20156285166740417,
0.3894379138946533,
0.23339731991291046,
0.06305491179227829,
-0.2507634162902832,
-0.1281212568283081,
-0.08113452792167664,
-0.17271307110786438,
0.2470870316028595,
-0.3129538595676422,
0.17224940657615662,
0.04505188763141632,
0.0761781558394432,
0.037500038743019104,
-0.3253334164619446,
0.02823837660253048,
-0.1393776834011078,
-0.18569070100784302,
-0.09560336172580719,
0.09416745603084564,
-0.2838163673877716,
-0.2353224903345108,
-0.23166495561599731,
0.11221776902675629,
0.18562117218971252,
-0.1038917601108551,
-0.07778768241405487,
0.21005429327487946,
0.14003179967403412,
-0.023024646565318108,
-0.03231675922870636,
0.0010908977128565311,
-0.23957586288452148,
0.5963212847709656,
0.13078360259532928,
-0.28741011023521423,
-0.14843885600566864,
0.03250466287136078,
0.09260521829128265,
0.4593251943588257,
-0.43639183044433594,
0.3887858986854553,
-0.4268547594547272,
0.06591242551803589,
-0.028323717415332794,
0.14973951876163483,
0.38756927847862244,
-0.04899069666862488,
-0.055349260568618774,
-0.0899970605969429,
-0.28980714082717896,
-0.20847749710083008,
-0.2657877504825592,
0.1750810742378235,
0.0703376829624176,
0.20472702383995056,
0.1540493369102478,
0.770289421081543,
0.2816253900527954,
-0.12821228802204132,
-0.0700763612985611,
-0.019976036623120308,
0.32215040922164917,
-0.3042881190776825,
-0.13366299867630005,
0.0767841562628746,
-0.23239293694496155,
-0.3620029091835022,
0.10222965478897095,
0.15922048687934875,
-0.22285528481006622,
0.05716609209775925,
0.43347737193107605,
0.26290497183799744,
0.03444605693221092,
0.16438032686710358,
-0.144460529088974,
0.1150294616818428,
0.12919822335243225,
0.2734664976596832,
-0.2965279519557953,
-0.23773983120918274,
0.1282239705324173,
-0.11579309403896332,
0.1971656233072281,
-0.05388909950852394,
-0.5846304893493652,
0.07504286617040634,
-0.7312512397766113,
0.17159870266914368,
-0.00427569355815649,
0.2625329792499542,
0.12129297852516174,
0.09905723482370377,
0.2460765242576599,
0.03434412181377411,
0.4295501112937927,
0.007447125390172005,
-0.13422907888889313,
-0.02095475234091282,
-0.26261961460113525,
-0.5181396007537842,
0.001941286027431488,
-0.11806343495845795,
0.09799259155988693,
-0.018077600747346878,
0.1409916877746582,
-0.14494863152503967,
-0.20846621692180634,
0.012804991565644741,
0.28982558846473694,
-0.1102437674999237,
-0.25748905539512634,
-0.3075465261936188,
-0.2508772015571594,
0.003196684643626213,
-0.11069142073392868,
0.06405922025442123,
-0.21589262783527374,
-0.005322979763150215,
-0.21743755042552948,
-0.14119853079319,
0.1710699498653412,
0.287007212638855,
-0.01994873210787773,
0.22777262330055237,
0.04203520342707634,
0.27845409512519836,
0.30918624997138977,
-0.07793480157852173,
0.3109682500362396,
0.6148457527160645,
0.09618595242500305,
-0.04493163526058197,
-0.05799076706171036,
-0.030223242938518524,
0.1740666627883911,
0.39990100264549255,
-0.11601776629686356,
-0.11743073910474777,
-0.04704491049051285,
-0.04595033824443817,
-0.4416710436344147,
0.09300834685564041,
0.3606792092323303,
0.05450912564992905,
-0.49379798769950867,
-0.6961228847503662,
0.48292404413223267,
0.3221646547317505,
-0.002960599958896637,
0.5213719606399536,
0.1529994010925293,
-0.11883670091629028,
0.22892259061336517,
0.3288167119026184,
0.7686118483543396,
-0.4081909656524658,
0.3427327275276184,
0.033929698169231415,
-0.000614657998085022,
0.28620848059654236,
-0.1507108062505722,
0.04774768650531769,
-0.13878823816776276,
-0.04516090825200081,
0.0209274310618639,
-0.3210030198097229,
0.21636155247688293,
0.04215191304683685,
0.2567623257637024,
0.20722661912441254,
0.14306233823299408,
-0.028538469225168228,
0.009282244369387627,
0.36832359433174133,
0.14154450595378876,
-0.352841854095459,
0.08062957227230072,
0.2060844898223877,
-0.0636477917432785,
0.026683414354920387,
0.10529827326536179,
0.07716839015483856,
-0.5997768640518188,
0.21185804903507233,
-0.22214984893798828,
-0.09834102541208267,
-0.27475830912590027,
0.22977328300476074,
-0.24676385521888733,
-0.19483405351638794,
0.12047849595546722,
0.17524585127830505,
-0.02735401690006256,
-0.005054939538240433,
-0.29250428080558777,
0.2589016258716583,
-0.1889817714691162,
0.17346635460853577,
0.46968525648117065,
-0.4210251569747925,
0.19382835924625397,
0.08227459341287613,
-0.05009527504444122,
0.042528629302978516,
-0.27078136801719666,
-0.3727762699127197,
-0.119048111140728,
-0.09768183529376984,
0.046276774257421494,
-0.09696663171052933,
-0.17741267383098602,
0.1778089553117752,
-0.11572803556919098,
-0.07388055324554443,
0.11928673088550568,
0.28471413254737854,
0.14836934208869934,
0.570770263671875,
0.1340295523405075,
-0.40163180232048035,
-0.15519168972969055,
0.29708611965179443,
0.024441804736852646,
0.08895169198513031,
0.34035784006118774,
0.16486357152462006,
-0.26175814867019653,
-0.078019879758358,
0.34606605768203735,
0.5033900141716003,
-0.13709066808223724,
-0.09443420171737671,
-0.3355535864830017,
0.14552389085292816,
0.16528871655464172,
0.10143573582172394,
0.14639633893966675,
-0.43259620666503906,
-0.2803822457790375,
-0.10835887491703033,
-0.2876851558685303,
0.14524675905704498,
-0.14822880923748016,
0.29796847701072693,
-0.19012171030044556,
-0.31742188334465027,
-0.11149486899375916,
0.01839434541761875,
-0.2807397246360779,
-0.25059330463409424,
-0.010744128376245499,
0.10900290310382843,
-0.10112187266349792,
0.22028779983520508,
0.024403631687164307,
-0.11193418502807617,
0.0007438585162162781,
-0.07983710616827011,
-0.12734174728393555,
-0.1610722839832306,
0.05955244228243828,
0.1735745519399643,
0.05251915752887726,
-0.40336722135543823,
-0.054908521473407745,
-0.3336772322654724,
-0.2233925312757492,
-0.3024187684059143,
0.04917363449931145,
0.33025631308555603,
-0.10850398242473602,
0.0007784543558955193,
0.06414219737052917,
-0.09168758243322372,
-0.11126849055290222,
0.29550546407699585,
-0.1259220540523529,
0.16868937015533447,
0.030922841280698776,
0.1445612907409668,
0.4665188789367676,
-0.2060360461473465,
-0.13433855772018433,
0.13949929177761078,
0.09199842065572739,
0.21920043230056763,
0.31199273467063904,
-0.37542444467544556,
0.30088555812835693,
0.17825499176979065,
0.5255874395370483,
0.5776782035827637,
-0.08642365038394928,
-0.04829949885606766,
-0.1358981728553772,
0.11961130052804947,
-0.008285121992230415,
-0.24928991496562958,
0.0623391829431057,
-0.11106911301612854,
0.15031425654888153,
0.2359202802181244,
0.31714653968811035,
0.3776895999908447,
-0.013536490499973297,
-0.15435445308685303,
0.60346919298172,
-0.4535907506942749,
-0.06375458836555481,
-0.106644406914711,
0.16593575477600098,
0.10513633489608765,
0.44457918405532837,
0.1751127690076828,
0.15019924938678741,
0.5105740427970886,
0.06874160468578339,
0.6162846684455872,
0.3639476001262665,
0.31382471323013306,
-0.10886264592409134,
-0.18955156207084656,
-0.006424449384212494,
0.08304151147603989,
-0.2204793095588684,
-0.031143076717853546,
0.0744839534163475,
0.04590989276766777,
-0.35433048009872437,
-0.3149506449699402,
0.0743725597858429,
-0.25379475951194763,
-0.007490802556276321,
-0.0483669713139534,
-0.029870549216866493,
-0.12977781891822815,
0.0728951245546341,
0.2107991874217987,
-0.20319311320781708,
-0.19604916870594025,
0.3447192907333374,
-0.07792562246322632,
-0.05682133138179779,
-0.16212983429431915,
0.28085213899612427,
-0.021489150822162628,
0.1728646457195282,
-0.12640690803527832,
-0.082384392619133,
-0.2849639058113098,
0.010356336832046509,
-0.1397750973701477,
0.3787521719932556,
0.27050459384918213,
0.23240576684474945,
-0.16406464576721191,
0.050375211983919144,
-0.14890079200267792,
-0.13814076781272888,
0.0803581178188324,
0.3532447814941406,
-0.2355179786682129,
-0.04281085357069969,
0.1823548823595047,
0.10394218564033508,
-0.12562108039855957,
-0.09235432744026184,
-0.18836429715156555,
0.06595812737941742,
-0.43436723947525024,
0.11809118092060089,
-0.08400826901197433,
-0.2931291162967682,
0.06691838800907135,
0.07898397743701935,
-0.24304193258285522,
-0.11079824715852737,
0.48218488693237305,
-0.4651016294956207,
-0.02384684979915619,
-0.1127801388502121,
0.06832945346832275,
-0.2132829874753952,
0.743356466293335,
0.3071632385253906,
0.29774752259254456,
-0.3887542188167572,
0.1410844624042511,
-0.6297143697738647,
-0.06277615576982498,
-0.35741519927978516,
0.024195915088057518,
0.12049387395381927,
0.2420872002840042,
0.08292707800865173,
0.3555293679237366,
0.12554597854614258,
0.0015365472063422203,
-0.03281405568122864,
-0.08632767200469971,
-0.23092062771320343,
-0.025104042142629623,
-0.2001776248216629,
0.21831929683685303,
-0.17947567999362946,
-0.3345945477485657,
0.3847672641277313,
-0.10637593269348145,
-0.04345609247684479,
-0.16519862413406372,
-0.0484442301094532,
0.36525624990463257,
0.12913012504577637,
0.30278876423835754,
0.17714804410934448,
0.4205041527748108,
0.2366502583026886,
-0.07973449677228928,
-0.3657917380332947,
-0.05324940010905266,
-0.032749075442552567,
0.09684883058071136,
-0.24282386898994446,
0.27961596846580505,
-0.15631145238876343,
-0.43859919905662537,
-0.15727634727954865,
0.07073159515857697,
-0.08751414716243744,
-0.09674578160047531,
-0.3099510967731476,
0.04811631143093109,
-0.09352725744247437,
0.1731005758047104,
0.05288771167397499,
0.1320953071117401,
0.09433206915855408,
-0.16976599395275116,
-0.3104426860809326,
0.07549957931041718,
0.09549293667078018,
-0.21179115772247314,
-0.10135827958583832,
-0.09009261429309845,
-0.07877902686595917,
0.4433889091014862,
0.1187654659152031,
-0.525415301322937,
-0.01713188737630844,
0.32149538397789,
-0.04861156642436981,
-0.10246966779232025,
0.197234109044075,
-0.08903463184833527,
-0.016529932618141174,
-0.1392822563648224,
0.20708788931369781,
-0.19468927383422852,
-0.10248934477567673,
-0.010064464062452316,
0.0016356073319911957
] |
https://github.com/huggingface/datasets/issues/707 | Requirements should specify pyarrow<1 | @punitaojha, certainly. Feel free to work on this. Let me know if you need any help or clarity. | I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error,
```
module 'pyarrow' has no attribute 'PyExtensionType'
```
I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinning in the setup file.
https://github.com/huggingface/datasets/blob/e86a2a8f869b91654e782c9133d810bb82783200/setup.py#L68
Downgrading by installing `pip install "pyarrow<1"` resolved the issue. | 18 | Requirements should specify pyarrow<1
I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error,
```
module 'pyarrow' has no attribute 'PyExtensionType'
```
I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinning in the setup file.
https://github.com/huggingface/datasets/blob/e86a2a8f869b91654e782c9133d810bb82783200/setup.py#L68
Downgrading by installing `pip install "pyarrow<1"` resolved the issue.
@punitaojha, certainly. Feel free to work on this. Let me know if you need any help or clarity. | [
-0.2744113802909851,
-0.20904040336608887,
0.015252858400344849,
0.18003463745117188,
0.04734569787979126,
-0.061974477022886276,
0.039089590311050415,
0.18513691425323486,
-0.04468001425266266,
0.05690273642539978,
-0.050833068788051605,
0.29233604669570923,
-0.005038904957473278,
0.07317812740802765,
0.11843462288379669,
-0.3647957742214203,
0.21403977274894714,
0.5875728130340576,
-0.38345712423324585,
-0.03992025926709175,
-0.09288616478443146,
0.2630634605884552,
-0.2957940995693207,
0.2726372480392456,
-0.3719048798084259,
0.1225016638636589,
0.02352052740752697,
-0.00847528874874115,
-0.1621870994567871,
-0.5378572940826416,
0.43289652466773987,
0.26396921277046204,
0.02808016538619995,
0.5115489363670349,
-0.00011717449524439871,
0.0794190913438797,
0.14082388579845428,
-0.0046916380524635315,
-0.043940141797065735,
-0.03546954691410065,
-0.030491497367620468,
-0.08330883830785751,
0.3720039427280426,
-0.09274331480264664,
-0.292820543050766,
-0.07925250381231308,
0.006155738607048988,
0.20683225989341736,
0.4049660563468933,
0.1370558738708496,
0.13545829057693481,
0.4140476882457733,
0.6308283805847168,
-0.04836335778236389,
0.5168266296386719,
-0.20373405516147614,
-0.2146047204732895,
0.12463150918483734,
0.21820470690727234,
-0.26373475790023804,
0.09774406254291534,
-0.055917806923389435,
0.21762241423130035,
0.08447910845279694,
0.10070499032735825,
0.0064793783240020275,
0.2837666869163513,
-0.2852364778518677,
-0.07679060846567154,
0.3960493803024292,
0.380525141954422,
-0.20113223791122437,
-0.36041027307510376,
-0.17036691308021545,
-0.20858408510684967,
0.05978337675333023,
0.2075709104537964,
-0.23239979147911072,
-0.30619215965270996,
0.3499829173088074,
-0.023794785141944885,
-0.1572733223438263,
-0.2329321801662445,
0.03981207311153412,
-0.37799257040023804,
0.618675947189331,
0.13046415150165558,
0.20040175318717957,
0.07871407270431519,
-0.1388923078775406,
-0.2523772418498993,
0.2585267424583435,
-0.012978293001651764,
0.06360700726509094,
-0.2934577465057373,
-0.14289231598377228,
0.24885690212249756,
0.24195003509521484,
0.27279403805732727,
0.04031432420015335,
-0.14110729098320007,
0.1671096682548523,
0.19816775619983673,
0.2720077335834503,
0.14465469121932983,
0.03351520746946335,
-0.22452211380004883,
0.13500507175922394,
0.3313995599746704,
-0.00009735929779708385,
0.1322937309741974,
0.05354352295398712,
-0.054398052394390106,
-0.2799723744392395,
0.037835631519556046,
-0.3460947275161743,
0.2894439101219177,
-0.19312912225723267,
-0.3421808183193207,
-0.17635464668273926,
-0.11662233620882034,
0.146670863032341,
-0.03189405798912048,
0.1282464861869812,
0.03886696696281433,
0.3341371715068817,
0.08858469128608704,
0.15770575404167175,
-0.28060612082481384,
-0.008791154250502586,
-0.13201355934143066,
-0.18413136899471283,
-0.009154342114925385,
0.08493714034557343,
0.34475550055503845,
0.05051495507359505,
0.3323368728160858,
0.19757099449634552,
0.06807498633861542,
0.45644915103912354,
-0.05312088876962662,
0.1364160031080246,
-0.37008342146873474,
0.4508803188800812,
-0.3323379158973694,
0.19766193628311157,
-0.058138858526945114,
0.06281054764986038,
-0.19157521426677704,
0.1300499141216278,
-0.18996939063072205,
0.04824785515666008,
-0.19151340425014496,
0.15745870769023895,
-0.35736602544784546,
-0.0826646015048027,
-0.15271145105361938,
0.07020267844200134,
-0.028815411031246185,
-0.43668603897094727,
-0.0195416659116745,
-0.2502211332321167,
-0.013239864259958267,
-0.0616675540804863,
0.2646414041519165,
0.0713779553771019,
-0.3628191649913788,
-0.02746324986219406,
0.14276079833507538,
-0.6227788329124451,
-0.17898017168045044,
0.23935481905937195,
-0.23946690559387207,
0.26064395904541016,
-0.16637203097343445,
0.3105500340461731,
0.16642023622989655,
-0.26931095123291016,
-0.40291792154312134,
-0.1308530867099762,
-0.2516517639160156,
0.4186939597129822,
-0.046410076320171356,
-0.11232760548591614,
0.06764215230941772,
-0.03316079080104828,
-0.047826752066612244,
0.1581588089466095,
0.1312139630317688,
0.21682706475257874,
-0.3007751405239105,
-0.36748015880584717,
0.5387318730354309,
0.2180076688528061,
0.07047124207019806,
-0.0844726487994194,
-0.15065446496009827,
-0.073587566614151,
0.20246094465255737,
-0.26863670349121094,
0.13369521498680115,
0.03547702729701996,
0.42323318123817444,
-0.09713488817214966,
0.2044667750597,
-0.24881696701049805,
-0.5351417660713196,
0.3190748393535614,
-0.09425999224185944,
0.20632542669773102,
-0.15667025744915009,
0.03847881406545639,
-0.037869472056627274,
-0.05421505868434906,
-0.33299461007118225,
-0.2113429754972458,
0.1806451380252838,
-0.2434694766998291,
0.19640319049358368,
0.12061837315559387,
-0.10912340879440308,
0.08062748610973358,
0.44921237230300903,
0.12159758806228638,
0.013460362330079079,
0.3498787581920624,
-0.17682461440563202,
-0.3050769567489624,
0.2239735722541809,
0.08123720437288284,
0.07745136320590973,
-0.08243077248334885,
-0.04252436384558678,
0.28668034076690674,
0.1643122136592865,
0.36540669202804565,
-0.17800304293632507,
0.31762024760246277,
0.13065218925476074,
-0.5406618714332581,
-0.07588798552751541,
0.4269065260887146,
0.10355710238218307,
-0.1261873096227646,
0.11323164403438568,
0.1425604373216629,
0.27977249026298523,
0.019320763647556305,
0.15193888545036316,
-0.12228347361087799,
0.13316111266613007,
0.04064987972378731,
0.07290708273649216,
-0.05683402717113495,
0.005867186933755875,
0.11144684255123138,
0.13714909553527832,
0.017544789239764214,
-0.051674194633960724,
0.2303844392299652,
0.34176838397979736,
0.0505564846098423,
0.329155296087265,
0.13898202776908875,
-0.2897283434867859,
-0.13288849592208862,
0.0805220901966095,
-0.5257545113563538,
0.279121458530426,
0.23698320984840393,
-0.044426847249269485,
0.10003794729709625,
-0.2512214183807373,
-0.1261417269706726,
0.17441952228546143,
-0.08043748140335083,
0.17824514210224152,
0.32317736744880676,
0.0959305688738823,
-0.06377426534891129,
-0.381722092628479,
-0.15074390172958374,
-0.07485400885343552,
0.33067527413368225,
-0.38629117608070374,
-0.2413174957036972,
-0.10496965050697327,
0.32167649269104004,
0.27259591221809387,
-0.08084174245595932,
-0.3064681589603424,
-0.22011305391788483,
0.26039600372314453,
0.4772412180900574,
0.11655433475971222,
0.16284942626953125,
-0.07379332929849625,
0.03809618949890137,
0.13983793556690216,
-0.2964509129524231,
-0.35930413007736206,
-0.2747434377670288,
-0.46827125549316406,
0.12123887240886688,
0.03166887164115906,
0.05942697450518608,
0.2674311101436615,
0.040402598679065704,
0.08697029948234558,
-0.279750794172287,
-0.5713725686073303,
0.025800712406635284,
-0.2757348418235779,
0.2965799868106842,
0.2656936049461365,
0.3712022304534912,
0.014642134308815002,
-0.15209433436393738,
0.3342798948287964,
-0.5331454873085022,
-0.2797224819660187,
0.05614738166332245,
-0.15970954298973083,
-0.018837405368685722,
-0.2276715636253357,
-0.20054110884666443,
0.054562777280807495,
-0.209461972117424,
0.4873054623603821,
0.08935989439487457,
-0.07776425778865814,
-0.05784684419631958,
0.2512846291065216,
0.18184469640254974,
-0.10001835227012634,
0.0056196763180196285,
-0.11323915421962738,
-0.24125243723392487,
0.4282822012901306,
-0.14034198224544525,
-0.3727829158306122,
-0.013119056820869446,
0.04823927581310272,
0.344510942697525,
0.21137426793575287,
-0.2584078311920166,
-0.21449168026447296,
-0.16006241738796234,
0.49731242656707764,
0.17092889547348022,
0.28972160816192627,
0.5415078401565552,
0.09726888686418533,
-0.0025504864752292633,
-0.2357562780380249,
-0.2569277286529541,
0.2003491222858429,
0.05520717054605484,
0.08558231592178345,
-0.10220091789960861,
0.021961232647299767,
-0.08712838590145111,
0.7050462365150452,
0.21035437285900116,
0.11727291345596313,
0.26521599292755127,
-0.14641322195529938,
0.07130815088748932,
-0.28719040751457214,
-0.020400820299983025,
0.1816251277923584,
0.12658029794692993,
0.11419618129730225,
0.46592050790786743,
0.015371905639767647,
-0.294892817735672,
-0.34027305245399475,
-0.014183718711137772,
-0.2656383514404297,
-0.38953304290771484,
-0.10348488390445709,
0.3594270348548889,
0.19298025965690613,
-0.04347456991672516,
-0.0052686408162117004,
-0.16888001561164856,
-0.18902218341827393,
0.2966148853302002,
-0.039745718240737915,
-0.024089165031909943,
0.05529652535915375,
-0.15794342756271362,
-0.2891508638858795,
-0.33363863825798035,
0.08185781538486481,
0.16641753911972046,
0.18478605151176453,
-0.06807615607976913,
-0.13404513895511627,
0.23877733945846558,
-0.25725266337394714,
0.5482110977172852,
-0.250358909368515,
0.06447762995958328,
0.07409822940826416,
0.00793469324707985,
-0.5168678760528564,
-0.2064504623413086,
-0.2619243562221527,
-0.20345403254032135,
-0.005172498524188995,
0.13057546317577362,
-0.8042142391204834,
-0.14169850945472717,
-0.02032116800546646,
0.05438631400465965,
-0.0029819048941135406,
-0.018694009631872177,
-0.3273303508758545,
-0.3300192356109619,
-0.1926889419555664,
-0.25407543778419495,
0.029383568093180656,
0.13463197648525238,
-0.2136131078004837,
0.06165642663836479,
-0.13775649666786194,
-0.01560355443507433,
-0.00046499818563461304,
0.501217246055603,
0.03658194839954376,
-0.24935942888259888,
0.047981638461351395,
0.29624465107917786,
-0.28729307651519775,
0.220521941781044,
0.4225323498249054,
0.32533887028694153,
-0.3725339472293854,
0.0434296652674675,
0.09158474206924438,
0.214943528175354,
0.255044549703598,
-0.11278311908245087,
0.1612326204776764,
-0.22874140739440918,
0.17128074169158936,
-0.2005300372838974,
-0.05501939356327057,
0.645834743976593,
-0.12970250844955444,
-0.4264852702617645,
0.12306182086467743,
0.4306226074695587,
0.0931052565574646,
-0.08584801107645035,
-0.015205785632133484,
0.5795414447784424,
-0.4121969938278198,
0.043236952275037766,
0.06063114106655121,
0.9315187335014343,
-0.06302005052566528,
0.2635147273540497,
0.6802075505256653,
-0.18233345448970795,
0.4589170217514038,
-0.1581909954547882,
0.04833576828241348,
-0.508771538734436,
0.14538894593715668,
-0.09219016879796982,
0.020042572170495987,
0.3349590301513672,
-0.09437583386898041,
-0.4093667268753052,
0.11148180812597275,
0.054616183042526245,
0.3981405794620514,
0.23639214038848877,
0.3883896470069885,
0.055147476494312286,
-0.07015040516853333,
-0.08190739154815674,
0.1282799243927002,
-0.10156403481960297,
0.2616381347179413,
-0.141142338514328,
-0.27804237604141235,
-0.10793022066354752,
-0.4004366397857666,
-0.4374120831489563,
0.015921741724014282,
-0.5444219708442688,
0.24261446297168732,
0.19018703699111938,
-0.10100039094686508,
0.42067888379096985,
-0.07955296337604523,
0.09839612245559692,
-0.037132952362298965,
-0.5875919461250305,
0.26009640097618103,
-0.31745749711990356,
-0.3028063178062439,
-0.015644557774066925,
0.02166404202580452,
0.14766831696033478,
-0.23356351256370544,
-0.482355535030365,
0.1443566083908081,
-0.06121794506907463,
-0.23048678040504456,
-0.24738112092018127,
-0.2755085825920105,
-0.1288021057844162,
-0.1659008115530014,
0.18073558807373047,
-0.07877828180789948,
0.037713367491960526,
-0.1690511405467987,
0.095192551612854,
-0.06648257374763489,
-0.1401757150888443,
0.17353877425193787,
0.138917937874794,
0.041522324085235596,
-0.0753183513879776,
0.3403994143009186,
-0.15054738521575928,
-0.00021690130233764648,
0.4556998610496521,
0.18441425263881683,
-0.21438686549663544,
-0.3254329264163971,
-0.15139000117778778,
0.18606770038604736,
-0.2213611900806427,
-0.09014100581407547,
0.4567631185054779,
-0.0418892502784729,
0.11081592738628387,
0.661535382270813,
0.13069313764572144,
-0.14041337370872498,
0.05089864507317543,
-0.1539062112569809,
-0.06746365129947662,
0.3901177644729614,
0.027861913666129112,
0.3385821580886841,
-0.07317038625478745,
0.3653089106082916,
0.205222487449646,
0.09902027249336243,
-0.3016480803489685,
0.19498667120933533,
0.12555642426013947,
0.05478283762931824,
-0.04979286342859268,
-0.2189922034740448,
0.19796079397201538,
0.10603353381156921,
0.14446933567523956,
-0.008869431912899017,
-0.27139121294021606,
-0.18906429409980774,
-0.027005329728126526,
0.13441254198551178,
0.2101166546344757,
-0.20430508255958557,
0.10097739845514297,
-0.037305451929569244,
-0.03197997808456421,
-0.06145580857992172,
0.3890506625175476,
0.05316026508808136,
-0.14271238446235657,
0.1534891575574875,
0.1570969671010971,
0.054323792457580566,
-0.26395121216773987,
-0.08701052516698837,
-0.09418019652366638,
0.0004092752933502197,
0.1391075700521469,
0.09800514578819275,
-0.21912781894207,
-0.10561929643154144,
0.29487791657447815,
0.5046457648277283,
0.0544733889400959,
0.0643531084060669,
0.23241978883743286,
-0.37278860807418823,
-0.16055317223072052,
-0.11024312674999237,
0.28466635942459106,
0.37552517652511597,
-0.03976275026798248,
-0.05465669929981232,
0.28460177779197693,
0.1878606379032135,
-0.23418378829956055,
-0.010667204856872559,
0.6830045580863953,
0.007156147621572018,
0.1552571952342987,
0.16195541620254517,
0.15286095440387726,
-0.30025845766067505,
-0.2156456559896469,
0.0755801722407341,
0.26297691464424133,
0.07078124582767487,
0.05827805772423744,
0.425940603017807,
-0.09788963198661804,
-0.058063995093107224,
0.13682617247104645,
0.11830401420593262,
0.1697496771812439,
0.20681226253509521,
-0.3776707947254181,
0.0475408136844635,
-0.2825199067592621,
0.25003674626350403,
0.32071128487586975,
0.10818670690059662,
-0.2281581312417984,
-0.03823259472846985,
0.09435921907424927,
-0.20900970697402954,
0.010834380984306335,
0.456393301486969,
0.1838447004556656,
0.04541324824094772,
-0.49059897661209106,
0.21975110471248627,
-0.11270017176866531,
-0.11741745471954346,
-0.01295679435133934,
-0.24860751628875732,
-0.03320544958114624,
-0.12538325786590576,
-0.13841991126537323,
-0.37410682439804077,
0.41176438331604004,
0.11403675377368927,
0.005698308348655701,
-0.414167582988739,
0.18060141801834106,
0.08540283143520355,
0.3866274058818817,
0.1436973661184311,
0.2506820857524872,
0.2383488565683365,
-0.359324187040329,
-0.15534228086471558,
0.5158731341362,
0.36094364523887634,
0.23611553013324738,
-0.4983871579170227,
0.03301551192998886,
-0.19277164340019226,
-0.09721943736076355,
-0.07384848594665527,
0.296200692653656,
0.0832715705037117,
0.10030823945999146,
0.008147785440087318,
0.08124226331710815,
-0.13807497918605804,
-0.3515095114707947,
-0.10287272930145264,
-0.0035800598561763763,
-0.29827195405960083,
0.05447645112872124,
-0.20259840786457062,
-0.0291762575507164,
0.06095746532082558,
-0.12858936190605164,
-0.17036037147045135,
0.0027335723862051964,
0.04664986953139305,
0.12011557072401047,
0.052400000393390656,
-0.17827576398849487,
0.060678549110889435,
0.0881635844707489,
0.5512145757675171,
0.2267615646123886,
0.2592986822128296,
-0.16967156529426575,
-0.1509064882993698,
-0.3126693367958069,
0.20882269740104675,
-0.2903215289115906,
-0.05383765697479248,
-0.006735814735293388,
0.21067188680171967,
-0.1541047990322113,
0.3410603404045105,
0.18301348388195038,
0.2890585958957672,
-0.014177873730659485,
0.22110044956207275,
-0.2086695432662964,
0.19717834889888763,
-0.17817816138267517,
-0.1649370938539505,
-0.07689161598682404,
-0.28056296706199646,
0.24422164261341095,
-0.3426177501678467,
0.053751908242702484,
-0.12858574092388153,
0.46149682998657227,
0.009311813861131668,
-0.3884458541870117,
0.35990801453590393,
0.41411271691322327,
0.44463059306144714,
0.0833815187215805,
0.0008543338626623154,
-0.4352283477783203,
-0.25225767493247986,
-0.32339680194854736,
0.006519995629787445,
-0.13006903231143951,
0.3493003249168396,
0.03718859702348709,
-0.3272899091243744,
-0.07169433683156967,
0.19349896907806396,
0.17951296269893646,
0.19851261377334595,
-0.017134014517068863,
0.09272465854883194,
0.016396813094615936,
0.0711495503783226,
-0.20197103917598724,
0.12628009915351868,
-0.03239025920629501,
-0.2043992131948471,
-0.35657674074172974,
-0.613253116607666,
0.36389827728271484,
-0.6347134709358215,
-0.2741698622703552,
-0.201502725481987,
0.21388939023017883,
0.11616392433643341,
-0.29156315326690674,
-0.5090823173522949,
0.14416399598121643,
0.15227900445461273,
0.11243773996829987,
-0.37411215901374817,
0.31022489070892334,
0.08584222197532654,
-0.1579921692609787,
-0.04110995680093765,
0.33624154329299927,
0.003673996776342392,
0.05510811507701874,
-0.08402839303016663,
-0.14702406525611877
] |
https://github.com/huggingface/datasets/issues/707 | Requirements should specify pyarrow<1 | Hello @mathcass
1. I did fork the repository and clone the same on my local system.
2. Then learnt about how we can publish our package on pypi.org. Also, found some instructions on same in setup.py documentation.
3. Then I Perplexity document link that you shared above. I created a colab link from there keep both tensorflow and pytorch means a mixed option and tried to run it in colab but I encountered no errors at a point where you mentioned. Can you help me to figure out the issue.
4.Here is the link of the colab file with my saved responses.
https://colab.research.google.com/drive/1hfYz8Ira39FnREbxgwa_goZWpOojp2NH?usp=sharing | I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error,
```
module 'pyarrow' has no attribute 'PyExtensionType'
```
I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinning in the setup file.
https://github.com/huggingface/datasets/blob/e86a2a8f869b91654e782c9133d810bb82783200/setup.py#L68
Downgrading by installing `pip install "pyarrow<1"` resolved the issue. | 103 | Requirements should specify pyarrow<1
I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error,
```
module 'pyarrow' has no attribute 'PyExtensionType'
```
I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinning in the setup file.
https://github.com/huggingface/datasets/blob/e86a2a8f869b91654e782c9133d810bb82783200/setup.py#L68
Downgrading by installing `pip install "pyarrow<1"` resolved the issue.
Hello @mathcass
1. I did fork the repository and clone the same on my local system.
2. Then learnt about how we can publish our package on pypi.org. Also, found some instructions on same in setup.py documentation.
3. Then I Perplexity document link that you shared above. I created a colab link from there keep both tensorflow and pytorch means a mixed option and tried to run it in colab but I encountered no errors at a point where you mentioned. Can you help me to figure out the issue.
4.Here is the link of the colab file with my saved responses.
https://colab.research.google.com/drive/1hfYz8Ira39FnREbxgwa_goZWpOojp2NH?usp=sharing | [
-0.20867182314395905,
-0.2492392361164093,
0.010470625013113022,
0.1431630253791809,
-0.13511915504932404,
-0.136764794588089,
0.06010923534631729,
0.17778384685516357,
-0.07222632318735123,
0.18768423795700073,
-0.1349501609802246,
0.39214077591896057,
-0.010591569356620312,
0.20251555740833282,
0.020215308293700218,
-0.31891974806785583,
0.15583805739879608,
0.6317856311798096,
-0.29724571108818054,
-0.033288467675447464,
-0.014853743836283684,
0.2716953158378601,
-0.38569176197052,
0.14681820571422577,
-0.4066579043865204,
-0.07189527153968811,
0.06020176410675049,
-0.19133132696151733,
-0.17890813946723938,
-0.4104490280151367,
0.5019385814666748,
0.2933356761932373,
0.038019318133592606,
0.5386694669723511,
-0.0001246494211954996,
0.0441618412733078,
0.07154850661754608,
-0.058221474289894104,
-0.07307727634906769,
-0.47395187616348267,
-0.012421965599060059,
0.028872983530163765,
0.555283784866333,
-0.11673930287361145,
-0.2710619866847992,
0.12985654175281525,
0.024623926728963852,
0.361477792263031,
0.4647696614265442,
0.22400502860546112,
0.024686342105269432,
0.32209697365760803,
0.5196754336357117,
0.02761002629995346,
0.4959205687046051,
-0.1979997605085373,
-0.225053608417511,
0.40070369839668274,
0.284515917301178,
-0.2938595712184906,
0.2136533409357071,
0.07226191461086273,
0.11439259350299835,
0.224177286028862,
0.0857391357421875,
-0.029640816152095795,
0.30642059445381165,
-0.5438727140426636,
-0.05124055594205856,
0.47044965624809265,
0.19563910365104675,
-0.23399093747138977,
-0.2855396866798401,
-0.17508263885974884,
-0.07605697214603424,
-0.0668526142835617,
0.31519070267677307,
-0.1906863898038864,
-0.4019596576690674,
0.25060954689979553,
0.035996727645397186,
-0.03996125981211662,
-0.38393908739089966,
0.19699010252952576,
-0.5321899652481079,
0.7457958459854126,
0.07813291996717453,
0.14036795496940613,
0.12875476479530334,
-0.006459701806306839,
0.015342030674219131,
0.19769960641860962,
0.20524227619171143,
-0.008003524504601955,
-0.2740122079849243,
-0.18429386615753174,
0.08074749261140823,
-0.05993782728910446,
0.18690508604049683,
-0.15860413014888763,
-0.1703171581029892,
0.1618902087211609,
0.05508280172944069,
0.3274672031402588,
0.08761681616306305,
0.17128117382526398,
-0.22554543614387512,
0.15746499598026276,
0.33452171087265015,
0.10782277584075928,
0.09574437141418457,
0.16502413153648376,
-0.08011314272880554,
-0.27394142746925354,
-0.20602251589298248,
-0.3268119692802429,
0.324887752532959,
-0.18520109355449677,
-0.5430250763893127,
-0.24716821312904358,
-0.3868257999420166,
0.1440587043762207,
0.007572585251182318,
0.19352059066295624,
-0.1681867390871048,
0.2706873416900635,
0.16139905154705048,
0.19952164590358734,
-0.2905425727367401,
0.12624546885490417,
-0.009740886278450489,
-0.015732720494270325,
0.04730365052819252,
0.16687768697738647,
0.3879338502883911,
0.059851549565792084,
0.34426602721214294,
0.2795543372631073,
0.23126091063022614,
0.19232073426246643,
0.14907300472259521,
-0.06851562857627869,
-0.16661518812179565,
0.5420348644256592,
-0.23841577768325806,
0.15362082421779633,
-0.04558912292122841,
0.1128448098897934,
-0.16173774003982544,
0.22232100367546082,
-0.38070428371429443,
0.006301525980234146,
-0.23976899683475494,
0.06686814874410629,
-0.4700930118560791,
-0.01161942258477211,
-0.20892122387886047,
0.24507401883602142,
-0.05181749910116196,
-0.2779948115348816,
-0.025828741490840912,
-0.41170382499694824,
-0.2063218504190445,
-0.09556318819522858,
0.33350327610969543,
-0.15867076814174652,
-0.4914388954639435,
-0.02220575511455536,
0.15629833936691284,
-0.3432883322238922,
-0.06396450847387314,
0.2183384895324707,
-0.35716086626052856,
0.3569909632205963,
-0.13600365817546844,
0.2632778286933899,
0.12531262636184692,
-0.21231022477149963,
-0.4445071518421173,
-0.23077130317687988,
-0.16579508781433105,
0.4377114474773407,
-0.03193768113851547,
-0.18812867999076843,
0.2705566883087158,
-0.00570197869092226,
0.3001309633255005,
0.09104832261800766,
0.09685487300157547,
0.13260623812675476,
-0.24601055681705475,
-0.4140644669532776,
0.6402186751365662,
0.11667262017726898,
0.3057158291339874,
-0.11492284387350082,
-0.2733577489852905,
-0.07690046727657318,
0.2295588254928589,
-0.32234084606170654,
-0.0021767020225524902,
-0.02698918804526329,
0.4426199197769165,
0.025870639830827713,
0.09114225208759308,
-0.32126927375793457,
-0.5001298189163208,
0.2173961102962494,
-0.0801021084189415,
0.3355024755001068,
-0.1914382129907608,
0.060521066188812256,
-0.034313756972551346,
-0.19099630415439606,
-0.33204418420791626,
-0.2931032180786133,
0.10808837413787842,
-0.30930769443511963,
0.0226568765938282,
0.1018398255109787,
-0.19508828222751617,
0.13082505762577057,
0.2655104696750641,
0.020753929391503334,
0.21585482358932495,
0.462619423866272,
-0.19911988079547882,
-0.457233190536499,
0.20325878262519836,
0.1807992160320282,
0.06256218999624252,
-0.05911288410425186,
-0.1452130675315857,
0.09334950149059296,
-0.01935887522995472,
0.18223266303539276,
-0.2986142635345459,
0.26051265001296997,
0.26059746742248535,
-0.4232661724090576,
-0.19554871320724487,
0.3503349721431732,
-0.0008111479692161083,
-0.09306946396827698,
0.20968496799468994,
0.32746076583862305,
0.2745116353034973,
0.017079763114452362,
0.037288226187229156,
-0.22704100608825684,
0.12201233208179474,
-0.001637149602174759,
-0.008360962383449078,
0.00019901245832443237,
0.06533971428871155,
0.1265784204006195,
-0.004933072254061699,
0.08029445260763168,
-0.18012121319770813,
0.22740378975868225,
0.4201955795288086,
0.08356368541717529,
0.413382351398468,
0.05513867735862732,
-0.23760712146759033,
-0.15054798126220703,
0.17391708493232727,
-0.380236953496933,
0.28920114040374756,
0.18419744074344635,
-0.07769982516765594,
0.05687498673796654,
-0.30048879981040955,
-0.11404532194137573,
0.11238887906074524,
-0.025332890450954437,
0.41852670907974243,
0.2763245403766632,
0.15273243188858032,
-0.02494644746184349,
-0.22312307357788086,
-0.1890086531639099,
0.05371245741844177,
0.2534186840057373,
-0.3964974880218506,
-0.24535445868968964,
-0.19420810043811798,
0.13458099961280823,
0.19201728701591492,
0.07234548032283783,
-0.19702273607254028,
-0.04866699129343033,
0.22326809167861938,
0.653278112411499,
0.2153998762369156,
0.28323662281036377,
0.07431657612323761,
-0.05144326388835907,
0.033561743795871735,
-0.3396536707878113,
-0.27684497833251953,
-0.20756255090236664,
-0.3671347498893738,
0.04418512061238289,
0.01326774712651968,
0.1336735039949417,
0.23055145144462585,
-0.09097647666931152,
-0.1738574355840683,
-0.12470925599336624,
-0.5882375240325928,
0.13169753551483154,
-0.3359529972076416,
0.3475389778614044,
0.09533141553401947,
0.3303358554840088,
-0.20242878794670105,
-0.26111581921577454,
0.26532605290412903,
-0.32587873935699463,
-0.25337645411491394,
-0.08413021266460419,
-0.20316551625728607,
0.12572848796844482,
-0.18946264684200287,
-0.35440248250961304,
-0.018800167366862297,
-0.1409432590007782,
0.284136027097702,
-0.10049431025981903,
0.010152902454137802,
0.0029497602954506874,
0.31399592757225037,
0.2860018312931061,
0.04446279630064964,
0.052634045481681824,
-0.1595647633075714,
-0.1258474439382553,
0.48964592814445496,
-0.1127682477235794,
-0.3425047695636749,
0.13775064051151276,
-0.08843867480754852,
0.4012726843357086,
0.23402979969978333,
-0.31735777854919434,
-0.3688829243183136,
-0.011783799156546593,
0.48040062189102173,
0.1285284161567688,
0.06940027326345444,
0.5525758266448975,
0.03127307817339897,
0.10098843276500702,
-0.1931363046169281,
-0.2890688478946686,
0.22640389204025269,
0.1350497007369995,
0.13342301547527313,
-0.002978382632136345,
-0.016732793301343918,
0.07002824544906616,
0.7714210152626038,
0.0803975760936737,
0.07864324748516083,
0.17449051141738892,
-0.07976114004850388,
-0.018849145621061325,
-0.1822080910205841,
-0.07078119367361069,
0.13685333728790283,
0.0644049346446991,
0.10293661057949066,
0.38078445196151733,
-0.18760326504707336,
-0.3487025499343872,
-0.3500247001647949,
-0.020187299698591232,
-0.3264288306236267,
-0.4082988202571869,
0.12431050091981888,
0.27959948778152466,
0.25635793805122375,
-0.06518150120973587,
-0.03779175877571106,
-0.09266473352909088,
-0.16558802127838135,
0.2151123732328415,
0.2523820102214813,
-0.16167595982551575,
0.08305750042200089,
-0.06223209574818611,
-0.47918906807899475,
-0.22203782200813293,
0.048914507031440735,
0.255577951669693,
0.20513591170310974,
-0.05896793305873871,
0.14633521437644958,
0.29814791679382324,
-0.11169316619634628,
0.5202953219413757,
-0.0870404914021492,
0.01107620820403099,
0.08111366629600525,
-0.17290349304676056,
-0.28402867913246155,
-0.30627867579460144,
-0.4232673645019531,
-0.26465320587158203,
0.15854673087596893,
0.1654628962278366,
-0.7676323056221008,
-0.2575204074382782,
0.05057484656572342,
-0.022863755002617836,
0.03225059434771538,
-0.04219949617981911,
-0.3416551947593689,
-0.4767366349697113,
-0.25164684653282166,
-0.2090090811252594,
0.1732095628976822,
0.12902261316776276,
-0.3761104941368103,
-0.02312643826007843,
-0.045055463910102844,
0.027225278317928314,
0.07785235345363617,
0.44018062949180603,
0.005305740516632795,
-0.04699889197945595,
-0.045143984258174896,
0.22957353293895721,
-0.24227473139762878,
0.47457247972488403,
0.1285249888896942,
0.32480376958847046,
-0.4303439259529114,
0.2039565145969391,
0.2204694002866745,
0.1308782547712326,
0.3809550404548645,
-0.19391857087612152,
0.25534504652023315,
-0.21277453005313873,
0.0657229870557785,
0.00909494236111641,
0.17107784748077393,
0.6335740685462952,
0.04739765450358391,
-0.3903394639492035,
-0.028555458411574364,
0.3548619747161865,
0.1598050445318222,
-0.16700473427772522,
-0.05444846302270889,
0.37553703784942627,
-0.386787086725235,
-0.023392032831907272,
0.10863597691059113,
1.0120887756347656,
-0.09740015864372253,
0.20161041617393494,
0.7103577256202698,
-0.12519991397857666,
0.6407560706138611,
-0.1507135033607483,
0.21804989874362946,
-0.3029673993587494,
0.16376957297325134,
-0.12513872981071472,
-0.14643797278404236,
0.3246549367904663,
-0.24939124286174774,
-0.5173290967941284,
0.1654733419418335,
0.18356309831142426,
0.2719471752643585,
0.3307575583457947,
0.36646389961242676,
0.056273385882377625,
-0.1726072132587433,
-0.06618642807006836,
-0.021458785980939865,
-0.1906190812587738,
0.36549854278564453,
-0.14370092749595642,
-0.2710829973220825,
-0.1689603626728058,
-0.1311109960079193,
-0.37110280990600586,
-0.051037151366472244,
-0.8643128275871277,
0.2675008773803711,
0.1508105993270874,
-0.24017134308815002,
0.4472085237503052,
-0.030945319682359695,
0.1376146376132965,
-0.10976867377758026,
-0.4689815938472748,
0.1472122222185135,
-0.2493489384651184,
-0.3123398423194885,
0.09103264659643173,
-0.14191022515296936,
0.3792171776294708,
-0.31290096044540405,
-0.5409115552902222,
0.10330189764499664,
-0.05117608979344368,
-0.10947947204113007,
-0.16802683472633362,
-0.2288941591978073,
-0.14451150596141815,
-0.05266786739230156,
0.24251341819763184,
0.059420496225357056,
0.14412130415439606,
-0.2034572958946228,
0.03383839875459671,
-0.02992095798254013,
-0.19530601799488068,
0.15367186069488525,
0.15964071452617645,
-0.1387040913105011,
-0.010999981313943863,
0.22033321857452393,
0.04957253485918045,
0.02120622992515564,
0.5640969276428223,
0.07901032269001007,
-0.13356280326843262,
-0.16520410776138306,
-0.20419692993164062,
-0.08782295882701874,
-0.01984211429953575,
-0.009744982235133648,
0.40787774324417114,
-0.20624709129333496,
-0.08796856552362442,
0.8415573835372925,
0.23512355983257294,
0.08268764615058899,
-0.0706818550825119,
-0.15251630544662476,
-0.031206578016281128,
0.33797842264175415,
0.0881565660238266,
0.3648156225681305,
-0.002808220684528351,
0.5681377649307251,
0.2385704517364502,
-0.04000674933195114,
-0.1985764503479004,
0.15495967864990234,
0.08038279414176941,
0.12710613012313843,
-0.21915139257907867,
-0.1455729901790619,
0.18347755074501038,
0.15214334428310394,
-0.007262200117111206,
0.07483731210231781,
-0.2029428333044052,
-0.09282399713993073,
-0.055637478828430176,
0.17089436948299408,
0.12092798203229904,
-0.1932411789894104,
-0.03167856112122536,
-0.13394123315811157,
0.0819302648305893,
-0.013293955475091934,
0.3547133803367615,
0.12514305114746094,
-0.14961643517017365,
0.08825615793466568,
-0.008385207504034042,
0.1833602637052536,
-0.20996874570846558,
0.0715831071138382,
-0.15280058979988098,
0.08151987940073013,
0.12651853263378143,
0.04738190397620201,
-0.12346310168504715,
-0.008373640477657318,
0.27130094170570374,
0.24330303072929382,
-0.17564477026462555,
0.11519266664981842,
0.013948507606983185,
-0.31074756383895874,
-0.09695447981357574,
-0.26897504925727844,
0.15330196917057037,
0.34998056292533875,
0.014359400607645512,
-0.08100111782550812,
0.32811158895492554,
0.07026860117912292,
-0.11809604614973068,
0.27995121479034424,
0.5855943560600281,
-0.01651749387383461,
0.1711311638355255,
0.28893277049064636,
0.15920212864875793,
-0.034710973501205444,
-0.12822797894477844,
0.09421347081661224,
0.11775851249694824,
0.10748067498207092,
0.13290143013000488,
0.09496580064296722,
-0.18435464799404144,
0.0916818231344223,
0.18034328520298004,
0.03300166130065918,
0.13575127720832825,
0.049920275807380676,
-0.15375244617462158,
0.034751277416944504,
-0.2302163541316986,
0.23357293009757996,
0.4710671901702881,
0.25595226883888245,
-0.2555859386920929,
0.009381324052810669,
-0.04614168405532837,
-0.17439574003219604,
0.002305559813976288,
0.3529127240180969,
0.02156827040016651,
-0.12299009412527084,
-0.3077791631221771,
0.19193816184997559,
-0.1925986409187317,
-0.019473817199468613,
-0.1789567619562149,
-0.2740046977996826,
0.03374480456113815,
-0.12351664900779724,
0.006653584539890289,
-0.31093543767929077,
0.3534998297691345,
0.24666166305541992,
-0.18548555672168732,
-0.2436198741197586,
0.11565243452787399,
0.1982555091381073,
0.3388855755329132,
0.19594183564186096,
0.3653028905391693,
0.0804525688290596,
-0.2732245624065399,
-0.2526737451553345,
0.5344123840332031,
0.31006234884262085,
0.3571823239326477,
-0.5270898938179016,
-0.11863914877176285,
0.05083738639950752,
-0.03823447227478027,
-0.09939191490411758,
0.07421817630529404,
0.37197527289390564,
0.11590433120727539,
-0.03431186079978943,
0.01668964885175228,
-0.10209432244300842,
-0.18511779606342316,
-0.16211436688899994,
-0.1160401999950409,
-0.3301358222961426,
0.0211435928940773,
-0.13576820492744446,
0.0005404055118560791,
0.1968807876110077,
-0.1748359203338623,
-0.14844325184822083,
0.1207372397184372,
0.10137756168842316,
-0.08516517281532288,
0.07449038326740265,
-0.012758947908878326,
0.026157580316066742,
0.12955018877983093,
0.40614086389541626,
0.07212193310260773,
0.3320487439632416,
-0.2823965847492218,
-0.0656895712018013,
-0.24635380506515503,
0.21520155668258667,
-0.18763743340969086,
0.0049154143780469894,
-0.08604823052883148,
0.2188674807548523,
-0.15912175178527832,
0.3309308886528015,
0.23425012826919556,
0.09332988411188126,
0.23420503735542297,
0.1184995025396347,
-0.3123105466365814,
0.11319008469581604,
-0.160577192902565,
-0.11270813643932343,
0.0392213836312294,
-0.21117815375328064,
0.1725056916475296,
-0.4397733211517334,
-0.03247854858636856,
-0.0812578871846199,
0.4167865216732025,
0.18049240112304688,
-0.2006971836090088,
0.3395538926124573,
0.3661828339099884,
0.605891227722168,
0.07948331534862518,
0.08775005489587784,
-0.06462566554546356,
-0.19967004656791687,
-0.3480489253997803,
0.08659930527210236,
-0.06417769193649292,
0.38495147228240967,
-0.04204662889242172,
-0.3016376197338104,
-0.07826922833919525,
0.2787020802497864,
0.17992331087589264,
-0.11537884175777435,
-0.04225171357393265,
0.06558821350336075,
0.07780859619379044,
0.15267038345336914,
-0.1873808205127716,
0.22864583134651184,
-0.058311186730861664,
-0.17753808200359344,
-0.4938699007034302,
-0.5086950659751892,
0.38637930154800415,
-0.7380795478820801,
-0.3214215934276581,
-0.27189987897872925,
0.1684069037437439,
0.1280072182416916,
-0.024255288764834404,
-0.5557008385658264,
-0.051946453750133514,
0.12064843624830246,
0.25068509578704834,
-0.4771204888820648,
0.26986458897590637,
0.17555446922779083,
-0.07656358927488327,
-0.05907502770423889,
0.37884843349456787,
-0.004791270941495895,
-0.15372566878795624,
-0.22748932242393494,
-0.1956426054239273
] |
https://github.com/huggingface/datasets/issues/707 | Requirements should specify pyarrow<1 | Thanks for looking at this @punitaojha and thanks for sharing the notebook.
I just tried to reproduce this on my own (based on the environment where I had this issue) and I can't reproduce it somehow. If I run into this again, I'll include some steps to reproduce it. I'll close this as invalid.
Thanks again. | I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error,
```
module 'pyarrow' has no attribute 'PyExtensionType'
```
I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinning in the setup file.
https://github.com/huggingface/datasets/blob/e86a2a8f869b91654e782c9133d810bb82783200/setup.py#L68
Downgrading by installing `pip install "pyarrow<1"` resolved the issue. | 56 | Requirements should specify pyarrow<1
I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error,
```
module 'pyarrow' has no attribute 'PyExtensionType'
```
I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinning in the setup file.
https://github.com/huggingface/datasets/blob/e86a2a8f869b91654e782c9133d810bb82783200/setup.py#L68
Downgrading by installing `pip install "pyarrow<1"` resolved the issue.
Thanks for looking at this @punitaojha and thanks for sharing the notebook.
I just tried to reproduce this on my own (based on the environment where I had this issue) and I can't reproduce it somehow. If I run into this again, I'll include some steps to reproduce it. I'll close this as invalid.
Thanks again. | [
-0.26007241010665894,
-0.22944605350494385,
0.04454609379172325,
0.2166784554719925,
0.07497298717498779,
-0.06393042951822281,
-0.0022502876818180084,
0.1691177934408188,
-0.012705547735095024,
0.06574329733848572,
0.020896822214126587,
0.29015490412712097,
-0.011995836161077023,
0.016585225239396095,
0.15642063319683075,
-0.39129558205604553,
0.23542559146881104,
0.5927877426147461,
-0.3565096855163574,
-0.05111907795071602,
-0.09749723970890045,
0.28187236189842224,
-0.315582275390625,
0.24579618871212006,
-0.4022747278213501,
0.13307783007621765,
0.057096853852272034,
-0.02122613787651062,
-0.17883804440498352,
-0.5676389336585999,
0.460424542427063,
0.1918254941701889,
-0.0006511099636554718,
0.48265209794044495,
-0.00012266474368516356,
0.0562131404876709,
0.14347614347934723,
-0.005654012784361839,
-0.0374007374048233,
-0.0778038501739502,
-0.05516740307211876,
-0.12251550704240799,
0.4323882758617401,
-0.06633182615041733,
-0.23511937260627747,
-0.061791811138391495,
0.027540825307369232,
0.20684152841567993,
0.3814498782157898,
0.12060407549142838,
0.08182467520236969,
0.38315239548683167,
0.6507723927497864,
-0.011810884810984135,
0.5365052223205566,
-0.17925424873828888,
-0.22749638557434082,
0.18850918114185333,
0.22833074629306793,
-0.28603115677833557,
0.09471998363733292,
-0.12291890382766724,
0.16368894279003143,
0.12661948800086975,
0.13892552256584167,
-0.03542947769165039,
0.3300076723098755,
-0.304843008518219,
-0.06749578565359116,
0.4033082127571106,
0.37824204564094543,
-0.19259965419769287,
-0.34594103693962097,
-0.1335902214050293,
-0.15892133116722107,
0.07246745377779007,
0.2532920241355896,
-0.19488196074962616,
-0.28695544600486755,
0.36255311965942383,
0.0005614971742033958,
-0.11387881636619568,
-0.22682997584342957,
0.10205535590648651,
-0.40967458486557007,
0.5994549989700317,
0.10864114761352539,
0.20162394642829895,
0.05708916112780571,
-0.11259089410305023,
-0.26479125022888184,
0.26146483421325684,
-0.00011482462286949158,
0.08831873536109924,
-0.3127442002296448,
-0.05969662219285965,
0.22987526655197144,
0.2597002387046814,
0.2728825509548187,
0.041897162795066833,
-0.16887427866458893,
0.10389485955238342,
0.2539021372795105,
0.25486913323402405,
0.12966963648796082,
0.0837184488773346,
-0.22451534867286682,
0.10103752464056015,
0.2753298282623291,
0.02854788862168789,
0.12867651879787445,
0.10251785069704056,
-0.04978930577635765,
-0.2957264482975006,
0.07192517817020416,
-0.3837423622608185,
0.362881600856781,
-0.21492016315460205,
-0.3580620586872101,
-0.15175457298755646,
-0.19981014728546143,
0.14014963805675507,
-0.061670269817113876,
0.12407249957323074,
0.03890874609351158,
0.3743239641189575,
0.06744556874036789,
0.16584937274456024,
-0.2863714098930359,
-0.012357104569673538,
-0.08455642312765121,
-0.15502937138080597,
-0.004363346844911575,
0.09661518782377243,
0.3515409827232361,
0.022762179374694824,
0.34785524010658264,
0.26590731739997864,
0.056261323392391205,
0.38233694434165955,
-0.05640580505132675,
0.1206502914428711,
-0.3797754645347595,
0.5211023092269897,
-0.3667626678943634,
0.24582840502262115,
-0.05994820222258568,
0.08367344737052917,
-0.21622902154922485,
0.16118662059307098,
-0.24481752514839172,
0.06815356016159058,
-0.21355676651000977,
0.10391690582036972,
-0.378711998462677,
-0.07467308640480042,
-0.15726321935653687,
0.05710475146770477,
-0.03520619124174118,
-0.4083649516105652,
0.0018554702401161194,
-0.30959808826446533,
-0.021198797971010208,
-0.050191059708595276,
0.265784353017807,
0.07327234745025635,
-0.41106536984443665,
-0.05535305291414261,
0.14642924070358276,
-0.6278678774833679,
-0.09371685236692429,
0.2602689862251282,
-0.21431106328964233,
0.2615130841732025,
-0.17129206657409668,
0.3319963812828064,
0.12549161911010742,
-0.26873043179512024,
-0.461382120847702,
-0.09794865548610687,
-0.2837933897972107,
0.4334025979042053,
0.022917695343494415,
-0.16636325418949127,
0.05777011811733246,
0.007836274802684784,
-0.005962155759334564,
0.12689068913459778,
0.18040935695171356,
0.21025238931179047,
-0.2970995008945465,
-0.3904988169670105,
0.5659140944480896,
0.20775599777698517,
0.07732012867927551,
-0.05643048137426376,
-0.12266764789819717,
-0.06418073922395706,
0.19252006709575653,
-0.2520045042037964,
0.12664301693439484,
0.06472201645374298,
0.4038165211677551,
-0.12448817491531372,
0.1586151123046875,
-0.23921135067939758,
-0.5577841997146606,
0.33682680130004883,
-0.1081312745809555,
0.1521909236907959,
-0.1528611034154892,
0.07127973437309265,
-0.09388520568609238,
-0.02581903152167797,
-0.3526057004928589,
-0.20561082661151886,
0.11423122882843018,
-0.2597658932209015,
0.14685343205928802,
0.14335668087005615,
-0.0995417982339859,
0.08539174497127533,
0.4340466856956482,
0.10817188024520874,
0.026409700512886047,
0.3328433036804199,
-0.19127893447875977,
-0.3221777081489563,
0.23264220356941223,
0.08617010712623596,
0.11789441108703613,
-0.07631487399339676,
-0.06340064853429794,
0.2662022113800049,
0.16977521777153015,
0.36858606338500977,
-0.21677127480506897,
0.3443758487701416,
0.1450621485710144,
-0.5561099648475647,
-0.055915847420692444,
0.45613205432891846,
0.12857940793037415,
-0.12561902403831482,
0.18803024291992188,
0.13425591588020325,
0.3463533818721771,
0.06146107614040375,
0.10906894505023956,
-0.10192938148975372,
0.09503938257694244,
0.05847673490643501,
0.07568486034870148,
-0.06501972675323486,
0.04880434274673462,
0.11728833615779877,
0.11514237523078918,
0.0534859299659729,
-0.021010741591453552,
0.16884931921958923,
0.3366055190563202,
0.02822726219892502,
0.381207674741745,
0.13018852472305298,
-0.3002985715866089,
-0.14003127813339233,
0.10551817715167999,
-0.5438471436500549,
0.2666546702384949,
0.17106398940086365,
-0.1121409684419632,
0.07926134765148163,
-0.2599855661392212,
-0.12518233060836792,
0.17427301406860352,
-0.057892024517059326,
0.20543046295642853,
0.3278049826622009,
0.08032367378473282,
-0.05202612653374672,
-0.36687177419662476,
-0.17318128049373627,
-0.053440965712070465,
0.3192170262336731,
-0.4489128589630127,
-0.2553730905056,
-0.11538516730070114,
0.40967485308647156,
0.2679767906665802,
-0.08325931429862976,
-0.3234753906726837,
-0.15157157182693481,
0.19071966409683228,
0.48710334300994873,
0.17320621013641357,
0.16285397112369537,
-0.08607487380504608,
0.013421088457107544,
0.1226309984922409,
-0.3300579786300659,
-0.36962857842445374,
-0.24191072583198547,
-0.46197205781936646,
0.049206603318452835,
-0.0058045340701937675,
0.10372815281152725,
0.1937633901834488,
0.005332831293344498,
0.08352061361074448,
-0.25150492787361145,
-0.5143213868141174,
0.005200628191232681,
-0.2900400161743164,
0.3554944694042206,
0.24525800347328186,
0.40377676486968994,
-0.02528459019958973,
-0.1328042894601822,
0.3036791682243347,
-0.47414299845695496,
-0.27751797437667847,
0.0788419097661972,
-0.21274587512016296,
0.003696551313623786,
-0.21096254885196686,
-0.18041685223579407,
0.11192736029624939,
-0.17810942232608795,
0.4739202857017517,
0.0716431587934494,
-0.08639071881771088,
-0.01425077673047781,
0.27491241693496704,
0.22496765851974487,
-0.12036257982254028,
0.05454513430595398,
-0.108929343521595,
-0.2190481573343277,
0.447555273771286,
-0.08972783386707306,
-0.36378344893455505,
-0.006073325872421265,
0.03312115743756294,
0.37148046493530273,
0.2010560780763626,
-0.30301377177238464,
-0.17854167520999908,
-0.18416506052017212,
0.5038667321205139,
0.1345982849597931,
0.2694718539714813,
0.5878301858901978,
0.08131125569343567,
0.055336110293865204,
-0.224319726228714,
-0.28398752212524414,
0.14197030663490295,
0.0696285292506218,
0.08279313892126083,
-0.09563057124614716,
0.02750624343752861,
-0.08472177386283875,
0.7192683219909668,
0.20143499970436096,
0.16836582124233246,
0.2772161662578583,
-0.1349283754825592,
0.024931635707616806,
-0.26097241044044495,
-0.0178886279463768,
0.16110947728157043,
0.1278342604637146,
0.11970704793930054,
0.4493446350097656,
-0.009944485500454903,
-0.29331788420677185,
-0.3085642158985138,
-0.019465550780296326,
-0.2585773468017578,
-0.3600148856639862,
-0.10141202062368393,
0.3348829448223114,
0.24958547949790955,
-0.042280808091163635,
0.053290560841560364,
-0.11344429850578308,
-0.1968872845172882,
0.30398449301719666,
0.02238495647907257,
-0.0011477619409561157,
0.09491462260484695,
-0.18350544571876526,
-0.3080988824367523,
-0.2945212423801422,
0.047018863260746,
0.16643209755420685,
0.27636775374412537,
-0.09393304586410522,
-0.06921450793743134,
0.26980969309806824,
-0.2304873913526535,
0.5348497629165649,
-0.22136305272579193,
0.1032872200012207,
0.07269485294818878,
0.004991170018911362,
-0.5632781386375427,
-0.2405841201543808,
-0.2651919722557068,
-0.24446217715740204,
-0.02852785959839821,
0.08409512042999268,
-0.7947932481765747,
-0.16160795092582703,
-0.0031478162854909897,
0.07459194958209991,
0.034815553575754166,
-0.00793760921806097,
-0.38106241822242737,
-0.3311389088630676,
-0.19611123204231262,
-0.2764699459075928,
0.02510908432304859,
0.14272412657737732,
-0.19724144041538239,
0.12912307679653168,
-0.12721945345401764,
-0.03644341602921486,
-0.0063953399658203125,
0.4384380280971527,
0.01676838845014572,
-0.1937924027442932,
0.019071083515882492,
0.2959502041339874,
-0.2938389480113983,
0.21685123443603516,
0.35492366552352905,
0.3580702841281891,
-0.39002713561058044,
0.07016786932945251,
0.1502627432346344,
0.2579311430454254,
0.2847657799720764,
-0.12111404538154602,
0.14758962392807007,
-0.23077425360679626,
0.09788449853658676,
-0.1897483766078949,
-0.10566768050193787,
0.7092198729515076,
-0.1743062138557434,
-0.42660149931907654,
0.1528977006673813,
0.4809173345565796,
0.1264931559562683,
-0.06366752088069916,
-0.06942771375179291,
0.6567607522010803,
-0.3557112514972687,
0.008424322120845318,
0.04153367504477501,
0.9474663138389587,
-0.04926874488592148,
0.252348929643631,
0.7000191807746887,
-0.17137271165847778,
0.4334253966808319,
-0.1260407567024231,
0.0683535560965538,
-0.4909992814064026,
0.15412797033786774,
-0.11449851840734482,
-0.02479790523648262,
0.39751890301704407,
-0.09409619867801666,
-0.3963693380355835,
0.11294439435005188,
-0.02525320276618004,
0.41111835837364197,
0.2764182388782501,
0.33718839287757874,
0.027761444449424744,
-0.07847908139228821,
-0.09781982004642487,
0.0642562136054039,
-0.16110852360725403,
0.3095928430557251,
-0.15488961338996887,
-0.22258087992668152,
-0.09847116470336914,
-0.37749332189559937,
-0.4782423973083496,
0.015462435781955719,
-0.5383332371711731,
0.2571951746940613,
0.21647372841835022,
-0.13653753697872162,
0.4455128014087677,
-0.07588887214660645,
0.05188446119427681,
-0.0593145526945591,
-0.6055546998977661,
0.2674524188041687,
-0.3270074427127838,
-0.31886351108551025,
0.053010713309049606,
0.007472178898751736,
0.15462686121463776,
-0.22452914714813232,
-0.4871276617050171,
0.12021435797214508,
-0.13971202075481415,
-0.15526852011680603,
-0.23896309733390808,
-0.2483062595129013,
-0.15347449481487274,
-0.1854628622531891,
0.16746580600738525,
-0.12408527731895447,
0.13253146409988403,
-0.17152032256126404,
0.04479294270277023,
-0.08989940583705902,
-0.12198702991008759,
0.15164104104042053,
0.15268783271312714,
-0.012966081500053406,
-0.08023777604103088,
0.38313233852386475,
-0.1722148060798645,
0.009583447128534317,
0.476902037858963,
0.15308959782123566,
-0.18318809568881989,
-0.2931616008281708,
-0.11964105069637299,
0.15799491107463837,
-0.24883979558944702,
-0.11897744983434677,
0.4333809018135071,
-0.043736644089221954,
0.06811247020959854,
0.7004837989807129,
0.17633940279483795,
-0.1456475555896759,
0.054026540368795395,
-0.2041209638118744,
-0.05489879101514816,
0.37787896394729614,
0.0031668171286582947,
0.31283876299858093,
-0.09136807918548584,
0.3753878176212311,
0.19954335689544678,
0.06517833471298218,
-0.22478315234184265,
0.2147880643606186,
0.15908817946910858,
0.06386151164770126,
-0.02937394380569458,
-0.1718461513519287,
0.19078552722930908,
0.11456386744976044,
0.11444036662578583,
-0.006973631680011749,
-0.2571873962879181,
-0.13174939155578613,
-0.06187909096479416,
0.16863252222537994,
0.21303248405456543,
-0.15961717069149017,
0.11988570541143417,
-0.04226657375693321,
-0.0043331291526556015,
-0.0849364623427391,
0.3771916329860687,
0.09658945351839066,
-0.15675929188728333,
0.13903021812438965,
0.13041962683200836,
0.08865377306938171,
-0.31283241510391235,
-0.0523618683218956,
-0.1344362199306488,
0.026059061288833618,
0.13037113845348358,
0.07536076754331589,
-0.20087604224681854,
-0.06838580220937729,
0.2166530340909958,
0.49808499217033386,
0.010634317994117737,
0.08602315187454224,
0.22885963320732117,
-0.409415066242218,
-0.12126603722572327,
-0.11923379451036453,
0.19605982303619385,
0.3971201181411743,
-0.07846156507730484,
-0.0645662248134613,
0.21815398335456848,
0.14230255782604218,
-0.1961408406496048,
0.001172542804852128,
0.6975142955780029,
0.0314340777695179,
0.11267983913421631,
0.17057323455810547,
0.18275901675224304,
-0.33549773693084717,
-0.2131243199110031,
0.08254488557577133,
0.238401859998703,
0.09796590358018875,
0.04133789241313934,
0.4126863479614258,
-0.05307021737098694,
-0.0369051955640316,
0.17385463416576385,
0.07168056070804596,
0.17248408496379852,
0.18923161923885345,
-0.34679168462753296,
0.006121352314949036,
-0.28939688205718994,
0.31533676385879517,
0.3084583580493927,
0.07914942502975464,
-0.23581312596797943,
-0.033842265605926514,
0.054874222725629807,
-0.19314348697662354,
0.028629951179027557,
0.46678075194358826,
0.20117802917957306,
0.02363763190805912,
-0.5152417421340942,
0.17803648114204407,
-0.12692990899085999,
-0.11814536154270172,
-0.00379905104637146,
-0.22375577688217163,
-0.0253533273935318,
-0.11716146767139435,
-0.13900870084762573,
-0.3470350503921509,
0.4516311585903168,
0.11686000972986221,
-0.06790703535079956,
-0.45960551500320435,
0.19749659299850464,
0.13430052995681763,
0.40406176447868347,
0.11946453154087067,
0.251140296459198,
0.18937644362449646,
-0.3837008476257324,
-0.19538412988185883,
0.5415599346160889,
0.39146000146865845,
0.24342943727970123,
-0.4737425148487091,
-0.013855372555553913,
-0.17024165391921997,
-0.10120565444231033,
-0.06526372581720352,
0.265926718711853,
0.10344462841749191,
0.14493268728256226,
0.00022793374955654144,
0.028555629774928093,
-0.07961726188659668,
-0.36076873540878296,
-0.09615840017795563,
0.0007537249475717545,
-0.34365639090538025,
0.08007731288671494,
-0.24950826168060303,
-0.03927440196275711,
0.057580795139074326,
-0.05982834845781326,
-0.16002699732780457,
0.0024755671620368958,
0.046614669263362885,
0.15158799290657043,
0.04175844416022301,
-0.16844415664672852,
0.029273804277181625,
0.09429533779621124,
0.5413830876350403,
0.2419525682926178,
0.2027941644191742,
-0.2083524912595749,
-0.14288662374019623,
-0.2838066518306732,
0.22576779127120972,
-0.2848086655139923,
-0.025027019903063774,
0.02883707731962204,
0.2524174749851227,
-0.22431108355522156,
0.35603445768356323,
0.15800490975379944,
0.29798439145088196,
-0.011750827543437481,
0.26161736249923706,
-0.2010522335767746,
0.1591654121875763,
-0.16536690294742584,
-0.1854948103427887,
-0.08849620074033737,
-0.293552964925766,
0.28032758831977844,
-0.4329347014427185,
0.0006529800593852997,
-0.14495885372161865,
0.42423465847969055,
0.009339790791273117,
-0.3736906051635742,
0.3833179175853729,
0.4528141915798187,
0.4767917990684509,
0.10893858224153519,
-0.012299413792788982,
-0.46570366621017456,
-0.24729172885417938,
-0.26303422451019287,
0.06870152801275253,
-0.18720023334026337,
0.3646774888038635,
0.025079874321818352,
-0.3029356002807617,
-0.05472079664468765,
0.23897762596607208,
0.18538177013397217,
0.2155534029006958,
-0.07217669486999512,
0.11999469250440598,
-0.042229630053043365,
0.11430959403514862,
-0.21098428964614868,
0.09435106813907623,
-0.018996916711330414,
-0.1899803727865219,
-0.39450663328170776,
-0.6121432781219482,
0.32512837648391724,
-0.6871469020843506,
-0.28630250692367554,
-0.22477997839450836,
0.2356777787208557,
0.058621834963560104,
-0.2667001187801361,
-0.4676547646522522,
0.07773572951555252,
0.16926801204681396,
0.1357898712158203,
-0.39948204159736633,
0.27566033601760864,
0.08324040472507477,
-0.11624211072921753,
-0.014399681240320206,
0.35913804173469543,
-0.022888995707035065,
0.04475454241037369,
-0.06285719573497772,
-0.11729014664888382
] |
https://github.com/huggingface/datasets/issues/707 | Requirements should specify pyarrow<1 | I am sorry for hijacking this closed issue, but I believe I was able to reproduce this very issue. Strangely enough, it also turned out that running `pip install "pyarrow<1" --upgrade` did indeed fix the issue (PyArrow was installed in version `0.14.1` in my case).
Please see the Colab below:
https://colab.research.google.com/drive/15QQS3xWjlKW2aK0J74eEcRFuhXUddUST
Thanks! | I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error,
```
module 'pyarrow' has no attribute 'PyExtensionType'
```
I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinning in the setup file.
https://github.com/huggingface/datasets/blob/e86a2a8f869b91654e782c9133d810bb82783200/setup.py#L68
Downgrading by installing `pip install "pyarrow<1"` resolved the issue. | 52 | Requirements should specify pyarrow<1
I was looking at the docs on [Perplexity](https://huggingface.co/transformers/perplexity.html) via GPT2. When you load datasets and try to load Wikitext, you get the error,
```
module 'pyarrow' has no attribute 'PyExtensionType'
```
I traced it back to datasets having installed PyArrow 1.0.1 but there's not pinning in the setup file.
https://github.com/huggingface/datasets/blob/e86a2a8f869b91654e782c9133d810bb82783200/setup.py#L68
Downgrading by installing `pip install "pyarrow<1"` resolved the issue.
I am sorry for hijacking this closed issue, but I believe I was able to reproduce this very issue. Strangely enough, it also turned out that running `pip install "pyarrow<1" --upgrade` did indeed fix the issue (PyArrow was installed in version `0.14.1` in my case).
Please see the Colab below:
https://colab.research.google.com/drive/15QQS3xWjlKW2aK0J74eEcRFuhXUddUST
Thanks! | [
-0.2761940062046051,
-0.1401243954896927,
0.034747667610645294,
0.16038575768470764,
0.04856133460998535,
-0.042708687484264374,
0.026622667908668518,
0.19843684136867523,
-0.05828021839261055,
0.06005023792386055,
0.001563002821058035,
0.2838503420352936,
-0.004442532546818256,
0.037697844207286835,
0.15201793611049652,
-0.3687959611415863,
0.2303960621356964,
0.578868567943573,
-0.3444220721721649,
-0.022595379501581192,
-0.1056375801563263,
0.2532047629356384,
-0.3011270761489868,
0.23487736284732819,
-0.3952784538269043,
0.1669677048921585,
0.04672781378030777,
-0.021139048039913177,
-0.17428447306156158,
-0.5824123024940491,
0.49244099855422974,
0.2521299123764038,
0.02770610898733139,
0.4566901624202728,
-0.00012013626110274345,
0.09098856151103973,
0.16164425015449524,
-0.02731321007013321,
-0.06266793608665466,
-0.06534139811992645,
-0.06636917591094971,
-0.10039009153842926,
0.4112478196620941,
-0.06594336032867432,
-0.2583898603916168,
-0.05693403258919716,
0.05014472082257271,
0.1991274654865265,
0.33310455083847046,
0.12267289310693741,
0.10109737515449524,
0.37856313586235046,
0.6543208956718445,
-0.027497535571455956,
0.5463999509811401,
-0.18524287641048431,
-0.21044209599494934,
0.15015947818756104,
0.22152869403362274,
-0.29794082045555115,
0.09682627767324448,
-0.09114108979701996,
0.15131324529647827,
0.12526477873325348,
0.12984596192836761,
-0.03554370626807213,
0.3226669430732727,
-0.30716851353645325,
-0.0943654254078865,
0.39456644654273987,
0.3904881179332733,
-0.19322243332862854,
-0.365314245223999,
-0.16600996255874634,
-0.17806385457515717,
0.07018136233091354,
0.21862992644309998,
-0.20056374371051788,
-0.2938906252384186,
0.3531876504421234,
0.02280253730714321,
-0.10702608525753021,
-0.2230653166770935,
0.08970299363136292,
-0.4169589579105377,
0.6115356683731079,
0.1379711627960205,
0.2251071333885193,
0.08810539543628693,
-0.1168656200170517,
-0.24165582656860352,
0.26013684272766113,
-0.008609883487224579,
0.06366560608148575,
-0.3093867301940918,
-0.07769657671451569,
0.2582894563674927,
0.2512824237346649,
0.25406020879745483,
0.07271498441696167,
-0.14106418192386627,
0.14505329728126526,
0.24715155363082886,
0.2898198962211609,
0.1449887603521347,
0.058222804218530655,
-0.23428532481193542,
0.10942363739013672,
0.305375874042511,
-0.005727576091885567,
0.1311253160238266,
0.08750215172767639,
-0.05470173805952072,
-0.2781451344490051,
0.09262876212596893,
-0.346833199262619,
0.32320231199264526,
-0.1806136518716812,
-0.37582507729530334,
-0.1754787266254425,
-0.19470131397247314,
0.14701999723911285,
-0.0443430170416832,
0.1393226981163025,
0.05681334808468819,
0.3803694546222687,
0.08329654484987259,
0.17031867802143097,
-0.2854253649711609,
-0.017673514783382416,
-0.09795761108398438,
-0.17713361978530884,
0.04348607733845711,
0.05868556350469589,
0.3848068118095398,
0.05928711220622063,
0.31915757060050964,
0.20189227163791656,
0.03874608129262924,
0.41585689783096313,
-0.008939851075410843,
0.14149102568626404,
-0.373043417930603,
0.5116959810256958,
-0.3510392904281616,
0.2050294131040573,
-0.03545420989394188,
0.031240925192832947,
-0.2431347668170929,
0.14971593022346497,
-0.220783531665802,
0.033729296177625656,
-0.20228080451488495,
0.13438348472118378,
-0.4136125445365906,
-0.10257907211780548,
-0.1556587815284729,
0.04943963140249252,
-0.07399927824735641,
-0.42858755588531494,
-0.04870011657476425,
-0.3369174003601074,
-0.0042496733367443085,
-0.07964275032281876,
0.2585654556751251,
0.06532752513885498,
-0.4140262305736542,
-0.04243874549865723,
0.07101958245038986,
-0.6321161985397339,
-0.11916331201791763,
0.20667584240436554,
-0.22319138050079346,
0.25733157992362976,
-0.15795397758483887,
0.3253785967826843,
0.1259886622428894,
-0.281404048204422,
-0.4366949200630188,
-0.1255474090576172,
-0.27083808183670044,
0.43156465888023376,
-0.03219176083803177,
-0.11441090703010559,
0.09575232118368149,
0.0036063971929252148,
-0.05759084224700928,
0.1472734957933426,
0.1389973759651184,
0.228962242603302,
-0.2556205689907074,
-0.3824257254600525,
0.5881326198577881,
0.24236740171909332,
0.05508057028055191,
-0.08341016620397568,
-0.14924627542495728,
-0.03623628988862038,
0.15238595008850098,
-0.24351179599761963,
0.14659301936626434,
0.03908413648605347,
0.42103689908981323,
-0.09753447771072388,
0.17971841990947723,
-0.20062407851219177,
-0.5595863461494446,
0.323649138212204,
-0.09323424845933914,
0.17470258474349976,
-0.16431955993175507,
0.04975946247577667,
-0.05931311845779419,
-0.013582109473645687,
-0.3554159104824066,
-0.1940598487854004,
0.15039023756980896,
-0.24204480648040771,
0.19084396958351135,
0.11202631890773773,
-0.09613227099180222,
0.07607169449329376,
0.479280948638916,
0.11531386524438858,
0.04389030858874321,
0.33947309851646423,
-0.19452007114887238,
-0.3024533987045288,
0.25156164169311523,
0.0911322832107544,
0.11148367077112198,
-0.0667082667350769,
-0.052086297422647476,
0.2847636938095093,
0.17652633786201477,
0.3445158004760742,
-0.18050742149353027,
0.3716144561767578,
0.11722665280103683,
-0.5627410411834717,
-0.08114326000213623,
0.4557861089706421,
0.12871858477592468,
-0.11435844004154205,
0.16283804178237915,
0.14770296216011047,
0.3197210133075714,
0.06527736783027649,
0.10705910623073578,
-0.08876282721757889,
0.12997980415821075,
0.05534535273909569,
0.05598139017820358,
-0.068904347717762,
-0.002261366695165634,
0.13144291937351227,
0.11010433733463287,
0.04356357455253601,
-0.01923375204205513,
0.21904060244560242,
0.32668524980545044,
0.03253181278705597,
0.3579244911670685,
0.1216076985001564,
-0.33505916595458984,
-0.12623190879821777,
0.11164650321006775,
-0.507922351360321,
0.2845572829246521,
0.21004261076450348,
-0.06936229765415192,
0.0497770830988884,
-0.2698376476764679,
-0.10881660133600235,
0.1571917086839676,
-0.0635257363319397,
0.2181333601474762,
0.29192349314689636,
0.10068327933549881,
-0.07673221826553345,
-0.3659600615501404,
-0.20556877553462982,
-0.07746764272451401,
0.34046778082847595,
-0.41370880603790283,
-0.2654789090156555,
-0.13803671300411224,
0.3818378150463104,
0.2513836920261383,
-0.11239627748727798,
-0.330682635307312,
-0.21467849612236023,
0.2353891134262085,
0.49452266097068787,
0.11719655990600586,
0.1509261429309845,
-0.11587025225162506,
-0.0013259053230285645,
0.12057618796825409,
-0.349217027425766,
-0.36867982149124146,
-0.26339054107666016,
-0.4776780605316162,
0.07900074124336243,
-0.004206867888569832,
0.0857132226228714,
0.2334500253200531,
0.01294689066708088,
0.08997241407632828,
-0.24585679173469543,
-0.5565884113311768,
-0.004159118980169296,
-0.2848060727119446,
0.34930622577667236,
0.26816272735595703,
0.3941205143928528,
-0.01775079220533371,
-0.16006426513195038,
0.33864855766296387,
-0.461284875869751,
-0.2450105845928192,
0.08267674595117569,
-0.19573214650154114,
0.009552202187478542,
-0.2275136113166809,
-0.1870778501033783,
0.08046644926071167,
-0.1823905110359192,
0.4641321301460266,
0.07465846836566925,
-0.0986429750919342,
-0.03910621255636215,
0.2710894048213959,
0.18678517639636993,
-0.09005481749773026,
0.050133295357227325,
-0.12441078573465347,
-0.20106610655784607,
0.4448419213294983,
-0.10240191221237183,
-0.346373051404953,
0.010355334728956223,
0.00438275933265686,
0.3437036871910095,
0.21797066926956177,
-0.2875930666923523,
-0.19108712673187256,
-0.17179718613624573,
0.46684741973876953,
0.1740090698003769,
0.2660767436027527,
0.5662257671356201,
0.11608187854290009,
0.028857963159680367,
-0.23978519439697266,
-0.26983708143234253,
0.13988907635211945,
0.062021926045417786,
0.1233607679605484,
-0.1146317794919014,
-0.020297501236200333,
-0.060094237327575684,
0.7015292048454285,
0.2194095253944397,
0.14331097900867462,
0.24586601555347443,
-0.14314480125904083,
0.040262915194034576,
-0.2635708451271057,
-0.001819545403122902,
0.15941689908504486,
0.10432542860507965,
0.1012834757566452,
0.4308772683143616,
-0.010143833234906197,
-0.3055633306503296,
-0.3132544755935669,
0.0514972098171711,
-0.27443674206733704,
-0.38735875487327576,
-0.0785478800535202,
0.32164594531059265,
0.2337643802165985,
-0.042274221777915955,
0.020792163908481598,
-0.14736714959144592,
-0.1888931393623352,
0.26360777020454407,
0.048506252467632294,
-0.0017888769507408142,
0.1032022088766098,
-0.1735256016254425,
-0.36776983737945557,
-0.3169652819633484,
0.08231233060359955,
0.17211565375328064,
0.25703781843185425,
-0.06650525331497192,
-0.11053936928510666,
0.23134836554527283,
-0.23176707327365875,
0.5387542247772217,
-0.2662319839000702,
0.07275846600532532,
0.09552359580993652,
0.007251925766468048,
-0.5380715131759644,
-0.24525053799152374,
-0.25796014070510864,
-0.27030208706855774,
-0.006410136818885803,
0.042811863124370575,
-0.8047870993614197,
-0.1370546966791153,
0.002542700618505478,
0.06528227031230927,
0.022476259618997574,
0.0021823588758707047,
-0.34766721725463867,
-0.3513224720954895,
-0.20898574590682983,
-0.30425161123275757,
0.015810033306479454,
0.16208742558956146,
-0.2289925068616867,
0.0841265320777893,
-0.13132478296756744,
-0.027112139388918877,
0.025417782366275787,
0.46707502007484436,
0.036771491169929504,
-0.19309501349925995,
0.013571284711360931,
0.29920706152915955,
-0.3078342378139496,
0.24996158480644226,
0.38123053312301636,
0.38984447717666626,
-0.39242663979530334,
0.07513007521629333,
0.17680644989013672,
0.2352266013622284,
0.24570433795452118,
-0.11286799609661102,
0.1488083451986313,
-0.249356210231781,
0.10893748700618744,
-0.2314784675836563,
-0.043591730296611786,
0.6460399031639099,
-0.18371225893497467,
-0.42472970485687256,
0.13059881329536438,
0.46757400035858154,
0.12443624436855316,
-0.06688197702169418,
-0.08461937308311462,
0.595085859298706,
-0.3703900873661041,
0.030637532472610474,
0.06921367347240448,
0.8994726538658142,
-0.08037593960762024,
0.23636814951896667,
0.6777765154838562,
-0.17627717554569244,
0.4314587414264679,
-0.13196754455566406,
0.0896901860833168,
-0.5020118951797485,
0.16799883544445038,
-0.11597548425197601,
-0.020578335970640182,
0.35431280732154846,
-0.0853116363286972,
-0.4229276180267334,
0.11498519778251648,
0.04231395572423935,
0.4126974046230316,
0.253641813993454,
0.33959439396858215,
0.022254033014178276,
-0.08719649910926819,
-0.0327686071395874,
0.10347983241081238,
-0.1468590497970581,
0.3239002823829651,
-0.14144524931907654,
-0.2067805826663971,
-0.11914771795272827,
-0.39214128255844116,
-0.47578829526901245,
-0.001218985766172409,
-0.5666532516479492,
0.2706696391105652,
0.16676107048988342,
-0.10669294744729996,
0.4281308054924011,
-0.09301918745040894,
0.027859847992658615,
-0.02405969426035881,
-0.5778466463088989,
0.27206096053123474,
-0.2703414857387543,
-0.3054291605949402,
0.03823975473642349,
0.001537919044494629,
0.17097678780555725,
-0.2011299431324005,
-0.47821372747421265,
0.12060773372650146,
-0.12029644846916199,
-0.19800543785095215,
-0.2413235753774643,
-0.23348020017147064,
-0.1403300166130066,
-0.16564886271953583,
0.2048700451850891,
-0.0889701396226883,
0.10086876153945923,
-0.16432051360607147,
0.07060401141643524,
-0.084504634141922,
-0.12252001464366913,
0.18584108352661133,
0.13714396953582764,
0.01635073870420456,
-0.06272298097610474,
0.33500394225120544,
-0.15256649255752563,
0.01878170669078827,
0.4783487319946289,
0.14419476687908173,
-0.1743832379579544,
-0.306295245885849,
-0.12738046050071716,
0.16373930871486664,
-0.19461165368556976,
-0.08767619729042053,
0.4245513677597046,
-0.0416407510638237,
0.09993753582239151,
0.6526225209236145,
0.13580825924873352,
-0.1568566858768463,
0.029003743082284927,
-0.21080349385738373,
-0.07223370671272278,
0.410457968711853,
0.0001248382031917572,
0.33646732568740845,
-0.10006089508533478,
0.3942658007144928,
0.17561326920986176,
0.05074841529130936,
-0.2581934332847595,
0.17667344212532043,
0.12739312648773193,
0.0723765641450882,
-0.028180859982967377,
-0.1699814796447754,
0.1859833151102066,
0.1228218674659729,
0.12350176274776459,
-0.023616217076778412,
-0.27899524569511414,
-0.15250995755195618,
-0.05324113368988037,
0.15351669490337372,
0.2072380781173706,
-0.15735578536987305,
0.10926125943660736,
-0.04391445592045784,
-0.004767304286360741,
-0.08576738089323044,
0.37858593463897705,
0.05325925350189209,
-0.17120687663555145,
0.15847119688987732,
0.1245286762714386,
0.07495459914207458,
-0.257069855928421,
-0.08183427900075912,
-0.10653693974018097,
0.04222743213176727,
0.15211831033229828,
0.11053094267845154,
-0.2425275295972824,
-0.06965803354978561,
0.2371830940246582,
0.5027614235877991,
-0.00469411164522171,
0.06970790028572083,
0.24166011810302734,
-0.3728258013725281,
-0.14019079506397247,
-0.12932170927524567,
0.2363273799419403,
0.40219846367836,
-0.03014073148369789,
-0.03391376510262489,
0.2486860454082489,
0.15980426967144012,
-0.17916211485862732,
0.024948308244347572,
0.7095749974250793,
0.025539983063936234,
0.14417842030525208,
0.16727328300476074,
0.19077178835868835,
-0.2652100920677185,
-0.24952612817287445,
0.07243577390909195,
0.2639099955558777,
0.10512863099575043,
0.07827284932136536,
0.45525720715522766,
-0.08880071341991425,
-0.0570242740213871,
0.16008971631526947,
0.0752013623714447,
0.1843457669019699,
0.20089510083198547,
-0.3341518044471741,
0.03265197202563286,
-0.2809024453163147,
0.27932220697402954,
0.3199022114276886,
0.1067882627248764,
-0.2530277669429779,
-0.03135614097118378,
0.0981714203953743,
-0.1619109809398651,
0.04308469593524933,
0.46680790185928345,
0.1513279527425766,
0.06359808146953583,
-0.4788580536842346,
0.1876886934041977,
-0.10720238834619522,
-0.11174364387989044,
-0.04606182128190994,
-0.22030052542686462,
-0.06471826136112213,
-0.11443325877189636,
-0.10652199387550354,
-0.39395517110824585,
0.40865153074264526,
0.12494248151779175,
-0.0485958456993103,
-0.4404161870479584,
0.19328972697257996,
0.11250858008861542,
0.3823844790458679,
0.09767676889896393,
0.19886408746242523,
0.22226335108280182,
-0.37999722361564636,
-0.14165377616882324,
0.5052875280380249,
0.4059634506702423,
0.22385774552822113,
-0.5180214047431946,
-0.011754467152059078,
-0.2111394852399826,
-0.09813876450061798,
-0.10318709164857864,
0.2561291456222534,
0.08355752378702164,
0.11604321002960205,
0.02604261413216591,
0.0627269446849823,
-0.08983884006738663,
-0.40975886583328247,
-0.11043621599674225,
0.006126918829977512,
-0.30291905999183655,
0.07904532551765442,
-0.23545709252357483,
-0.023841071873903275,
0.06390665471553802,
-0.08921415358781815,
-0.11569251865148544,
-0.00911784078925848,
0.03199842572212219,
0.14360781013965607,
0.0451708547770977,
-0.16367942094802856,
0.0443827360868454,
0.08758698403835297,
0.5330718159675598,
0.24997258186340332,
0.20168808102607727,
-0.18502143025398254,
-0.1509503871202469,
-0.29816287755966187,
0.18339382112026215,
-0.300362765789032,
-0.05586143210530281,
0.0372360497713089,
0.2560037076473236,
-0.18635055422782898,
0.3407576084136963,
0.14610011875629425,
0.2600635588169098,
0.026732485741376877,
0.2587112784385681,
-0.18192648887634277,
0.1599324345588684,
-0.17760196328163147,
-0.18437480926513672,
-0.0919502004981041,
-0.3208383619785309,
0.22291682660579681,
-0.3668426275253296,
0.020882487297058105,
-0.14030730724334717,
0.4087253510951996,
0.04920905455946922,
-0.4200238585472107,
0.4051321744918823,
0.42483675479888916,
0.4987817704677582,
0.08597924560308456,
0.023391367867588997,
-0.46242350339889526,
-0.22733505070209503,
-0.3084006607532501,
0.038023218512535095,
-0.19791333377361298,
0.40111470222473145,
0.0511552169919014,
-0.27524998784065247,
-0.06686747074127197,
0.20686084032058716,
0.1771450936794281,
0.18204990029335022,
-0.07849020510911942,
0.12077758461236954,
-0.050749797374010086,
0.10819604247808456,
-0.21832670271396637,
0.09599580615758896,
-0.002697337418794632,
-0.17454443871974945,
-0.38162118196487427,
-0.6334147453308105,
0.33397090435028076,
-0.6409384608268738,
-0.28754106163978577,
-0.192962184548378,
0.19542688131332397,
0.042068395763635635,
-0.2452952265739441,
-0.4759145677089691,
0.11257516592741013,
0.15826170146465302,
0.13078579306602478,
-0.3932453989982605,
0.24942046403884888,
0.10178819298744202,
-0.15491338074207306,
-0.029570385813713074,
0.35058003664016724,
-0.02561073750257492,
0.051990896463394165,
-0.09294146299362183,
-0.10619217157363892
] |
https://github.com/huggingface/datasets/issues/705 | TypeError: '<' not supported between instances of 'NamedSplit' and 'NamedSplit' | Hi !
Thanks for reporting :)
Indeed this is an issue on the `datasets` side.
I'm creating a PR | ## Environment info
<!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
Don't forget to fill out the missing fields in that output! -->
- `transformers` version: 3.3.1 (installed from master)
- `datasets` version: 1.0.2 (installed as a dependency from transformers)
- Platform: Linux-4.15.0-118-generic-x86_64-with-debian-stretch-sid
- Python version: 3.7.9
I'm testing my own text classification dataset using [this example](https://github.com/huggingface/transformers/tree/master/examples/text-classification#run-generic-text-classification-script-in-tensorflow) from transformers. The dataset is split into train / dev / test, and in csv format, containing just a text and a label columns, using comma as sep. Here's a sample:
```
text,label
"Registra-se a presença do acadêmico <name> . <REL_SEP> Ao me deparar com a descrição de dois autores no polo ativo da ação junto ao PJe , margem esquerda foi informado pela procuradora do reclamante que se trata de uma reclamação trabalhista individual . <REL_SEP> Diante disso , face a ausência injustificada do autor <name> , determina-se o ARQUIVAMENTO do presente processo , com relação a este , nos termos do [[ art . 844 da CLT ]] . <REL_SEP> CUSTAS AUTOR - DISPENSADO <REL_SEP> Custas pelo autor no importe de R $326,82 , calculadas sobre R $16.341,03 , dispensadas na forma da lei , em virtude da concessão dos benefícios da Justiça Gratuita , ora deferida . <REL_SEP> Cientes os presentes . <REL_SEP> Audiência encerrada às 8h42min . <REL_SEP> <name> <REL_SEP> Juíza do Trabalho <REL_SEP> Ata redigida por << <name> >> , Secretário de Audiência .",NO_RELATION
```
However, @Santosh-Gupta reported in #7351 that he had the exact same problem using the ChemProt dataset. His colab notebook is referenced in the following section.
## To reproduce
Steps to reproduce the behavior:
1. Created a new conda environment using conda env -n transformers python=3.7
2. Cloned transformers master, `cd` into it and installed using pip install --editable . -r examples/requirements.txt
3. Installed tensorflow with `pip install tensorflow`
3. Ran `run_tf_text_classification.py` with the following parameters:
```
--train_file <DATASET_PATH>/train.csv \
--dev_file <DATASET_PATH>/dev.csv \
--test_file <DATASET_PATH>/test.csv \
--label_column_id 1 \
--model_name_or_path neuralmind/bert-base-portuguese-cased \
--output_dir <OUTPUT_PATH> \
--num_train_epochs 4 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--do_train \
--do_eval \
--do_predict \
--logging_steps 1000 \
--evaluate_during_training \
--save_steps 1000 \
--overwrite_output_dir \
--overwrite_cache
```
I have also copied [@Santosh-Gupta 's colab notebook](https://colab.research.google.com/drive/11APei6GjphCZbH5wD9yVlfGvpIkh8pwr?usp=sharing) as a reference.
<!-- If you have code snippets, error messages, stack traces please provide them here as well.
Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.-->
Here is the stack trace:
```
2020-10-02 07:33:41.622011: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
/media/discoD/repositorios/transformers_pedro/src/transformers/training_args.py:333: FutureWarning: The `evaluate_during_training` argument is deprecated in favor of `evaluation_strategy` (which has more options)
FutureWarning,
2020-10-02 07:33:43.471648: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcuda.so.1
2020-10-02 07:33:43.471791: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.472664: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1070 computeCapability: 6.1
coreClock: 1.7085GHz coreCount: 15 deviceMemorySize: 7.92GiB deviceMemoryBandwidth: 238.66GiB/s
2020-10-02 07:33:43.472684: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2020-10-02 07:33:43.472765: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2020-10-02 07:33:43.472809: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10
2020-10-02 07:33:43.472848: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10
2020-10-02 07:33:43.474209: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10
2020-10-02 07:33:43.474276: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10
2020-10-02 07:33:43.561219: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7
2020-10-02 07:33:43.561397: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.562345: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.563219: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-10-02 07:33:43.563595: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-10-02 07:33:43.570091: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 3591830000 Hz
2020-10-02 07:33:43.570494: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x560842432400 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-10-02 07:33:43.570511: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2020-10-02 07:33:43.570702: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.571599: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1070 computeCapability: 6.1
coreClock: 1.7085GHz coreCount: 15 deviceMemorySize: 7.92GiB deviceMemoryBandwidth: 238.66GiB/s
2020-10-02 07:33:43.571633: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2020-10-02 07:33:43.571645: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2020-10-02 07:33:43.571654: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10
2020-10-02 07:33:43.571664: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10
2020-10-02 07:33:43.571691: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10
2020-10-02 07:33:43.571704: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10
2020-10-02 07:33:43.571718: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7
2020-10-02 07:33:43.571770: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.572641: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.573475: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-10-02 07:33:47.139227: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1257] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-10-02 07:33:47.139265: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1263] 0
2020-10-02 07:33:47.139272: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1276] 0: N
2020-10-02 07:33:47.140323: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.141248: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.142085: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.142854: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1402] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 5371 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)
2020-10-02 07:33:47.146317: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5608b95dc5c0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-10-02 07:33:47.146336: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): GeForce GTX 1070, Compute Capability 6.1
10/02/2020 07:33:47 - INFO - __main__ - n_replicas: 1, distributed training: False, 16-bits training: False
10/02/2020 07:33:47 - INFO - __main__ - Training/evaluation parameters TFTrainingArguments(output_dir='/media/discoD/models/datalawyer/pedidos/transformers_tf', overwrite_output_dir=True, do_train=True, do_eval=True, do_predict=True, evaluate_during_training=True, evaluation_strategy=<EvaluationStrategy.STEPS: 'steps'>, prediction_loss_only=False, per_device_train_batch_size=4, per_device_eval_batch_size=4, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=1, learning_rate=5e-05, weight_decay=0.0, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=4.0, max_steps=-1, warmup_steps=0, logging_dir='runs/Oct02_07-33-43_user-XPS-8700', logging_first_step=False, logging_steps=1000, save_steps=1000, save_total_limit=None, no_cuda=False, seed=42, fp16=False, fp16_opt_level='O1', local_rank=-1, tpu_num_cores=None, tpu_metrics_debug=False, debug=False, dataloader_drop_last=False, eval_steps=1000, dataloader_num_workers=0, past_index=-1, run_name='/media/discoD/models/datalawyer/pedidos/transformers_tf', disable_tqdm=False, remove_unused_columns=True, label_names=None, load_best_model_at_end=False, metric_for_best_model=None, greater_is_better=False, tpu_name=None, xla=False)
10/02/2020 07:33:53 - INFO - filelock - Lock 140407857405776 acquired on /home/user/.cache/huggingface/datasets/e0f1e9ed46db1e2429189f06b479cbd4075c0976104c1aacf8f77d9a53d2ad87.03756fef6da334f50a7ff73608e21b5018229944ca250416ce7352e25d84a552.py.lock
10/02/2020 07:33:53 - INFO - filelock - Lock 140407857405776 released on /home/user/.cache/huggingface/datasets/e0f1e9ed46db1e2429189f06b479cbd4075c0976104c1aacf8f77d9a53d2ad87.03756fef6da334f50a7ff73608e21b5018229944ca250416ce7352e25d84a552.py.lock
Using custom data configuration default
Traceback (most recent call last):
File "run_tf_text_classification.py", line 283, in <module>
main()
File "run_tf_text_classification.py", line 222, in main
max_seq_length=data_args.max_seq_length,
File "run_tf_text_classification.py", line 43, in get_tfds
ds = datasets.load_dataset("csv", data_files=files)
File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/load.py", line 604, in load_dataset
**config_kwargs,
File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/builder.py", line 158, in __init__
**config_kwargs,
File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/builder.py", line 269, in _create_builder_config
for key in sorted(data_files.keys()):
TypeError: '<' not supported between instances of 'NamedSplit' and 'NamedSplit'
```
## Expected behavior
Should be able to run the text-classification example as described in [https://github.com/huggingface/transformers/tree/master/examples/text-classification#run-generic-text-classification-script-in-tensorflow](https://github.com/huggingface/transformers/tree/master/examples/text-classification#run-generic-text-classification-script-in-tensorflow)
Originally opened this issue at transformers' repository: [https://github.com/huggingface/transformers/issues/7535](https://github.com/huggingface/transformers/issues/7535). @jplu instructed me to open here, since according to [this](https://github.com/huggingface/transformers/issues/7535#issuecomment-702778885) evidence, the problem is from datasets.
Thanks! | 19 | TypeError: '<' not supported between instances of 'NamedSplit' and 'NamedSplit'
## Environment info
<!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
Don't forget to fill out the missing fields in that output! -->
- `transformers` version: 3.3.1 (installed from master)
- `datasets` version: 1.0.2 (installed as a dependency from transformers)
- Platform: Linux-4.15.0-118-generic-x86_64-with-debian-stretch-sid
- Python version: 3.7.9
I'm testing my own text classification dataset using [this example](https://github.com/huggingface/transformers/tree/master/examples/text-classification#run-generic-text-classification-script-in-tensorflow) from transformers. The dataset is split into train / dev / test, and in csv format, containing just a text and a label columns, using comma as sep. Here's a sample:
```
text,label
"Registra-se a presença do acadêmico <name> . <REL_SEP> Ao me deparar com a descrição de dois autores no polo ativo da ação junto ao PJe , margem esquerda foi informado pela procuradora do reclamante que se trata de uma reclamação trabalhista individual . <REL_SEP> Diante disso , face a ausência injustificada do autor <name> , determina-se o ARQUIVAMENTO do presente processo , com relação a este , nos termos do [[ art . 844 da CLT ]] . <REL_SEP> CUSTAS AUTOR - DISPENSADO <REL_SEP> Custas pelo autor no importe de R $326,82 , calculadas sobre R $16.341,03 , dispensadas na forma da lei , em virtude da concessão dos benefícios da Justiça Gratuita , ora deferida . <REL_SEP> Cientes os presentes . <REL_SEP> Audiência encerrada às 8h42min . <REL_SEP> <name> <REL_SEP> Juíza do Trabalho <REL_SEP> Ata redigida por << <name> >> , Secretário de Audiência .",NO_RELATION
```
However, @Santosh-Gupta reported in #7351 that he had the exact same problem using the ChemProt dataset. His colab notebook is referenced in the following section.
## To reproduce
Steps to reproduce the behavior:
1. Created a new conda environment using conda env -n transformers python=3.7
2. Cloned transformers master, `cd` into it and installed using pip install --editable . -r examples/requirements.txt
3. Installed tensorflow with `pip install tensorflow`
3. Ran `run_tf_text_classification.py` with the following parameters:
```
--train_file <DATASET_PATH>/train.csv \
--dev_file <DATASET_PATH>/dev.csv \
--test_file <DATASET_PATH>/test.csv \
--label_column_id 1 \
--model_name_or_path neuralmind/bert-base-portuguese-cased \
--output_dir <OUTPUT_PATH> \
--num_train_epochs 4 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--do_train \
--do_eval \
--do_predict \
--logging_steps 1000 \
--evaluate_during_training \
--save_steps 1000 \
--overwrite_output_dir \
--overwrite_cache
```
I have also copied [@Santosh-Gupta 's colab notebook](https://colab.research.google.com/drive/11APei6GjphCZbH5wD9yVlfGvpIkh8pwr?usp=sharing) as a reference.
<!-- If you have code snippets, error messages, stack traces please provide them here as well.
Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.-->
Here is the stack trace:
```
2020-10-02 07:33:41.622011: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
/media/discoD/repositorios/transformers_pedro/src/transformers/training_args.py:333: FutureWarning: The `evaluate_during_training` argument is deprecated in favor of `evaluation_strategy` (which has more options)
FutureWarning,
2020-10-02 07:33:43.471648: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcuda.so.1
2020-10-02 07:33:43.471791: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.472664: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1070 computeCapability: 6.1
coreClock: 1.7085GHz coreCount: 15 deviceMemorySize: 7.92GiB deviceMemoryBandwidth: 238.66GiB/s
2020-10-02 07:33:43.472684: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2020-10-02 07:33:43.472765: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2020-10-02 07:33:43.472809: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10
2020-10-02 07:33:43.472848: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10
2020-10-02 07:33:43.474209: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10
2020-10-02 07:33:43.474276: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10
2020-10-02 07:33:43.561219: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7
2020-10-02 07:33:43.561397: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.562345: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.563219: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-10-02 07:33:43.563595: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2020-10-02 07:33:43.570091: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 3591830000 Hz
2020-10-02 07:33:43.570494: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x560842432400 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-10-02 07:33:43.570511: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2020-10-02 07:33:43.570702: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.571599: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1070 computeCapability: 6.1
coreClock: 1.7085GHz coreCount: 15 deviceMemorySize: 7.92GiB deviceMemoryBandwidth: 238.66GiB/s
2020-10-02 07:33:43.571633: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2020-10-02 07:33:43.571645: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2020-10-02 07:33:43.571654: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10
2020-10-02 07:33:43.571664: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10
2020-10-02 07:33:43.571691: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10
2020-10-02 07:33:43.571704: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10
2020-10-02 07:33:43.571718: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.7
2020-10-02 07:33:43.571770: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.572641: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:43.573475: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-10-02 07:33:47.139227: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1257] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-10-02 07:33:47.139265: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1263] 0
2020-10-02 07:33:47.139272: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1276] 0: N
2020-10-02 07:33:47.140323: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.141248: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.142085: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:982] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-10-02 07:33:47.142854: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1402] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 5371 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)
2020-10-02 07:33:47.146317: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5608b95dc5c0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-10-02 07:33:47.146336: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): GeForce GTX 1070, Compute Capability 6.1
10/02/2020 07:33:47 - INFO - __main__ - n_replicas: 1, distributed training: False, 16-bits training: False
10/02/2020 07:33:47 - INFO - __main__ - Training/evaluation parameters TFTrainingArguments(output_dir='/media/discoD/models/datalawyer/pedidos/transformers_tf', overwrite_output_dir=True, do_train=True, do_eval=True, do_predict=True, evaluate_during_training=True, evaluation_strategy=<EvaluationStrategy.STEPS: 'steps'>, prediction_loss_only=False, per_device_train_batch_size=4, per_device_eval_batch_size=4, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=1, learning_rate=5e-05, weight_decay=0.0, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=4.0, max_steps=-1, warmup_steps=0, logging_dir='runs/Oct02_07-33-43_user-XPS-8700', logging_first_step=False, logging_steps=1000, save_steps=1000, save_total_limit=None, no_cuda=False, seed=42, fp16=False, fp16_opt_level='O1', local_rank=-1, tpu_num_cores=None, tpu_metrics_debug=False, debug=False, dataloader_drop_last=False, eval_steps=1000, dataloader_num_workers=0, past_index=-1, run_name='/media/discoD/models/datalawyer/pedidos/transformers_tf', disable_tqdm=False, remove_unused_columns=True, label_names=None, load_best_model_at_end=False, metric_for_best_model=None, greater_is_better=False, tpu_name=None, xla=False)
10/02/2020 07:33:53 - INFO - filelock - Lock 140407857405776 acquired on /home/user/.cache/huggingface/datasets/e0f1e9ed46db1e2429189f06b479cbd4075c0976104c1aacf8f77d9a53d2ad87.03756fef6da334f50a7ff73608e21b5018229944ca250416ce7352e25d84a552.py.lock
10/02/2020 07:33:53 - INFO - filelock - Lock 140407857405776 released on /home/user/.cache/huggingface/datasets/e0f1e9ed46db1e2429189f06b479cbd4075c0976104c1aacf8f77d9a53d2ad87.03756fef6da334f50a7ff73608e21b5018229944ca250416ce7352e25d84a552.py.lock
Using custom data configuration default
Traceback (most recent call last):
File "run_tf_text_classification.py", line 283, in <module>
main()
File "run_tf_text_classification.py", line 222, in main
max_seq_length=data_args.max_seq_length,
File "run_tf_text_classification.py", line 43, in get_tfds
ds = datasets.load_dataset("csv", data_files=files)
File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/load.py", line 604, in load_dataset
**config_kwargs,
File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/builder.py", line 158, in __init__
**config_kwargs,
File "/media/discoD/anaconda3/envs/transformers/lib/python3.7/site-packages/datasets/builder.py", line 269, in _create_builder_config
for key in sorted(data_files.keys()):
TypeError: '<' not supported between instances of 'NamedSplit' and 'NamedSplit'
```
## Expected behavior
Should be able to run the text-classification example as described in [https://github.com/huggingface/transformers/tree/master/examples/text-classification#run-generic-text-classification-script-in-tensorflow](https://github.com/huggingface/transformers/tree/master/examples/text-classification#run-generic-text-classification-script-in-tensorflow)
Originally opened this issue at transformers' repository: [https://github.com/huggingface/transformers/issues/7535](https://github.com/huggingface/transformers/issues/7535). @jplu instructed me to open here, since according to [this](https://github.com/huggingface/transformers/issues/7535#issuecomment-702778885) evidence, the problem is from datasets.
Thanks!
Hi !
Thanks for reporting :)
Indeed this is an issue on the `datasets` side.
I'm creating a PR | [
-0.29192715883255005,
-0.6131455898284912,
-0.05387753248214722,
0.07242836058139801,
0.5358546376228333,
0.051285676658153534,
0.5790154337882996,
0.3014283776283264,
0.28852659463882446,
0.1793082058429718,
-0.034908540546894073,
0.16951847076416016,
-0.042311180382966995,
-0.11918780207633972,
-0.16703470051288605,
-0.2730582058429718,
-0.1069531962275505,
0.1412789225578308,
-0.4372418224811554,
-0.06679791212081909,
0.006171129643917084,
0.11151610314846039,
-0.3358649015426636,
0.08741093426942825,
-0.3546169102191925,
-0.1470182240009308,
0.1937071979045868,
0.03341399505734444,
0.1056336835026741,
-0.3845277726650238,
0.3663172423839569,
-0.02707807347178459,
0.1710633486509323,
0.4915062189102173,
-0.00010427778761368245,
0.08131098747253418,
0.49508798122406006,
-0.13812027871608734,
-0.07015872001647949,
-0.3430447578430176,
-0.4419640004634857,
0.03079836256802082,
0.01605004072189331,
-0.3915826380252838,
-0.24483734369277954,
-0.011036078445613384,
-0.1189126968383789,
-0.046134501695632935,
0.6161753535270691,
0.2788020968437195,
0.23976492881774902,
0.23817750811576843,
-0.10345013439655304,
-0.337236225605011,
-0.10070031136274338,
0.3406435251235962,
-0.13601714372634888,
-0.10921868681907654,
0.1256229281425476,
-0.2894229590892792,
-0.02511267364025116,
0.23087796568870544,
0.003239719197154045,
-0.089166060090065,
0.33623015880584717,
0.12668710947036743,
-0.17194658517837524,
0.09048421680927277,
0.012749668210744858,
0.24845251441001892,
0.397720605134964,
-0.19125893712043762,
-0.20142115652561188,
-0.19129404425621033,
-0.4447488486766815,
-0.384488970041275,
0.05868569388985634,
0.04057786613702774,
0.08339963853359222,
0.2616131007671356,
-0.006104052998125553,
0.43287184834480286,
-0.21416446566581726,
-0.10106532275676727,
0.02055763453245163,
0.5832356214523315,
-0.17066611349582672,
0.09710672497749329,
0.08106386661529541,
-0.03375769406557083,
0.1662237048149109,
-0.12502121925354004,
0.2540244162082672,
0.03428477421402931,
-0.2468908578157425,
-0.012379731982946396,
-0.042140938341617584,
-0.4438540041446686,
-0.21448737382888794,
-0.12169326841831207,
0.2730001211166382,
-0.04994506388902664,
0.07182256132364273,
0.24860027432441711,
0.1498125046491623,
0.29580262303352356,
0.09116816520690918,
0.5375274419784546,
0.2819213271141052,
0.3849364221096039,
-0.04278607666492462,
-0.13659679889678955,
-0.1424744874238968,
-0.1585971564054489,
-0.014482645317912102,
0.4171225130558014,
0.05766473710536957,
-0.10390397161245346,
-0.30255013704299927,
-0.22128193080425262,
0.030902966856956482,
-0.06602846086025238,
-0.024645403027534485,
0.41575220227241516,
-0.04162432998418808,
0.3547726273536682,
0.20659853518009186,
0.06119559332728386,
-0.000010877847671508789,
-0.1164429783821106,
-0.1507166028022766,
0.17434264719486237,
-0.3866133689880371,
-0.22934195399284363,
-0.01725021004676819,
0.260692298412323,
0.006073812022805214,
-0.13086678087711334,
-0.08395788073539734,
-0.0662650465965271,
-0.06754525750875473,
0.010477691888809204,
0.03860829398036003,
0.2141883671283722,
-0.18145693838596344,
0.17167823016643524,
0.14139774441719055,
-0.14289294183254242,
-0.016880124807357788,
0.254580020904541,
-0.03767208755016327,
-0.26899293065071106,
0.049465619027614594,
0.19830730557441711,
0.09240274131298065,
0.08222046494483948,
0.06466183066368103,
0.19976769387722015,
0.2888106405735016,
-0.0023918598890304565,
0.03898914158344269,
0.06405933201313019,
-0.16133682429790497,
0.14340390264987946,
0.09817060828208923,
0.3937551975250244,
-0.7670521140098572,
-0.23627766966819763,
-0.023154370486736298,
0.08419770002365112,
-0.04411096125841141,
0.43778273463249207,
-0.30819687247276306,
0.2548839747905731,
0.18090051412582397,
0.280478298664093,
0.13158343732357025,
-0.4054889976978302,
-0.23665423691272736,
-0.05112987011671066,
0.06235615909099579,
-0.1371804028749466,
0.19765892624855042,
-0.15997888147830963,
-0.03938896209001541,
-0.2148531824350357,
-0.2731991708278656,
0.1258900910615921,
-0.03726263344287872,
0.037250325083732605,
-0.39785557985305786,
-0.05864889919757843,
0.13873949646949768,
0.016607049852609634,
0.09084901213645935,
-0.024505041539669037,
-0.0067747533321380615,
0.522940993309021,
0.12474855780601501,
-0.3379061818122864,
0.17444761097431183,
0.2543296217918396,
0.06260672211647034,
0.21558213233947754,
0.018898822367191315,
-0.2434884011745453,
-0.20239725708961487,
0.1049192026257515,
-0.026095082983374596,
0.3419177532196045,
-0.23494760692119598,
-0.17345461249351501,
-0.4128475487232208,
0.04000427573919296,
0.03031865507364273,
-0.1581602245569229,
0.18170131742954254,
0.01636132225394249,
0.056210052222013474,
-0.15487931668758392,
0.050441186875104904,
0.08503173291683197,
-0.016933944076299667,
0.11521469801664352,
-0.36520203948020935,
0.20505215227603912,
-0.2516756057739258,
-0.0821666345000267,
-0.12605620920658112,
0.20887216925621033,
0.2595391869544983,
-0.20088371634483337,
-0.15686258673667908,
0.33998847007751465,
-0.28822001814842224,
0.15383847057819366,
-0.3089931309223175,
-0.07518316805362701,
0.26994550228118896,
-0.4763704836368561,
0.0024344120174646378,
0.13100609183311462,
0.09023168683052063,
-0.0006722211837768555,
-0.4511062204837799,
0.1370697021484375,
0.011284280568361282,
0.16488365828990936,
0.12843288481235504,
0.0007872339338064194,
0.1388459950685501,
-0.1832198053598404,
-0.057363204658031464,
-0.10729096829891205,
-0.00014027953147888184,
0.17553547024726868,
-0.21618032455444336,
0.06374428421258926,
-0.14667411148548126,
-0.12163323909044266,
0.48972994089126587,
-0.0830698162317276,
0.21214118599891663,
-0.006670694798231125,
-0.2014055848121643,
0.17403829097747803,
0.014764061197638512,
0.23768983781337738,
0.10192105174064636,
0.10636105388402939,
-0.18180856108665466,
0.1594492495059967,
-0.12971128523349762,
-0.13482221961021423,
0.1366054266691208,
0.14014974236488342,
0.1842847615480423,
0.04740213230252266,
-0.0023737396113574505,
0.06371022015810013,
0.00019929558038711548,
-0.323771595954895,
0.003591742366552353,
0.03753351420164108,
-0.26151925325393677,
0.10923213511705399,
-0.21214799582958221,
-0.1581646353006363,
-0.27697548270225525,
0.24136070907115936,
0.19237440824508667,
-0.07115047425031662,
-0.07799465954303741,
0.02649601362645626,
-0.2088044434785843,
0.3075108528137207,
0.12137213349342346,
0.2280256152153015,
0.2589326500892639,
-0.1669285148382187,
-0.15227895975112915,
-0.3805866837501526,
-0.11487535387277603,
0.12996551394462585,
0.14421162009239197,
0.11630328744649887,
-0.010383429005742073,
0.08111967891454697,
0.013296563178300858,
0.45698651671409607,
-0.5159245729446411,
0.07505392283201218,
-0.3149312734603882,
-0.21561379730701447,
-0.0008076801896095276,
-0.02664322406053543,
0.05137762427330017,
-0.1849365085363388,
0.33618879318237305,
-0.18176782131195068,
0.05879683792591095,
-0.06850492209196091,
0.1174616739153862,
-0.28289276361465454,
-0.18323789536952972,
-0.6926162242889404,
-0.2156880646944046,
-0.4069220721721649,
0.2902899384498596,
-0.11291366815567017,
-0.10006485879421234,
0.45196837186813354,
-0.041459206491708755,
-0.13673080503940582,
0.23231817781925201,
-0.03753024339675903,
0.08424152433872223,
0.2739648222923279,
0.39955753087997437,
-0.14791953563690186,
-0.3361201584339142,
-0.037800900638103485,
-0.1635228544473648,
0.033159591257572174,
-0.2620617151260376,
-0.13472038507461548,
-0.0583055205643177,
-0.2712888717651367,
-0.14741496741771698,
0.1512567698955536,
-0.14043685793876648,
0.6117981672286987,
0.17446771264076233,
-0.15561357140541077,
-0.15801438689231873,
-0.43222931027412415,
0.21497803926467896,
0.06209857016801834,
0.05189306288957596,
-0.05649234354496002,
0.5008736848831177,
0.18673674762248993,
0.649511456489563,
0.0560513399541378,
-0.19620023667812347,
-0.009548552334308624,
0.15302835404872894,
0.06477532535791397,
-0.028466328978538513,
-0.26163366436958313,
0.09405574202537537,
-0.11567994952201843,
-0.13569015264511108,
0.1677747219800949,
-0.18967220187187195,
-0.1575724333524704,
-0.17223887145519257,
0.15429747104644775,
-0.07729898393154144,
-0.08940620720386505,
0.1257668435573578,
0.11916957795619965,
0.22971999645233154,
0.14205113053321838,
-0.0787232294678688,
-0.10656574368476868,
-0.10229944437742233,
0.09643378853797913,
-0.08716548979282379,
-0.1488739252090454,
-0.06524067372083664,
-0.3501497805118561,
0.24227678775787354,
-0.14697960019111633,
0.2825857698917389,
0.23715977370738983,
0.10741682350635529,
-0.20712393522262573,
-0.15368738770484924,
-0.24978433549404144,
0.0146524328738451,
0.14085888862609863,
-0.3110145926475525,
0.1866849809885025,
0.11226442456245422,
-0.08098116517066956,
-0.19016720354557037,
-0.20993351936340332,
-0.3738395571708679,
-0.29871758818626404,
0.4538387656211853,
0.2226492017507553,
-0.1857832670211792,
-0.16392399370670319,
0.2885843813419342,
-0.11992000788450241,
-0.0421014204621315,
-0.0668201819062233,
-0.07685541361570358,
0.018246255815029144,
-0.2515260577201843,
-0.010760903358459473,
0.5364018678665161,
0.20251281559467316,
-0.2095838189125061,
-0.04442126676440239,
0.094326451420784,
-0.20346876978874207,
0.08829014003276825,
0.2573614716529846,
0.13616925477981567,
-0.15584023296833038,
-0.07604451477527618,
0.12488154321908951,
0.283721923828125,
-0.331079363822937,
0.5674953460693359,
-0.02558470517396927,
-0.45154619216918945,
0.042037468403577805,
-0.02005515620112419,
0.13646380603313446,
0.15725380182266235,
-0.0916864201426506,
-0.046193428337574005,
0.10433390736579895,
0.07567404210567474,
-0.32407212257385254,
0.11800237745046616,
0.18914178013801575,
0.38330456614494324,
-0.4595750868320465,
-0.2022823989391327,
0.18384282290935516,
0.02927302196621895,
-0.06684374809265137,
-0.07611480355262756,
-0.16057123243808746,
-0.44413185119628906,
0.3648693561553955,
0.04619482159614563,
0.8255491256713867,
-0.17203451693058014,
-0.02740537002682686,
-0.20601299405097961,
0.12144449353218079,
0.5401180982589722,
-0.4126572012901306,
0.26960885524749756,
-0.23672527074813843,
-0.32835105061531067,
-0.10959130525588989,
-0.05169863998889923,
0.36068785190582275,
0.48038017749786377,
-0.39716795086860657,
0.25730636715888977,
0.10321982204914093,
0.5092799663543701,
0.06488412618637085,
0.13640542328357697,
0.4459850788116455,
-0.3245074152946472,
-0.2694646716117859,
0.1508007049560547,
0.07484641671180725,
0.050959981977939606,
0.008498288691043854,
-0.21468017995357513,
-0.2909613847732544,
-0.19043345749378204,
-0.31858280301094055,
0.3504791259765625,
-0.20439903438091278,
0.09578318893909454,
0.2979169487953186,
0.0655587911605835,
0.49734583497047424,
0.33722007274627686,
0.3578672409057617,
0.23046743869781494,
-0.21531885862350464,
0.23503105342388153,
-0.4642542004585266,
-0.061061710119247437,
0.008865896612405777,
0.25160685181617737,
0.22789914906024933,
0.01689380407333374,
-0.15764454007148743,
0.15145277976989746,
-0.06592103093862534,
-0.23929178714752197,
-0.080961212515831,
0.02061697468161583,
0.24748192727565765,
-0.5286821126937866,
0.010375000536441803,
0.1242399662733078,
-0.26336920261383057,
-0.2806585133075714,
0.2036949247121811,
-0.37911510467529297,
-0.1899051070213318,
0.15432921051979065,
0.11628013849258423,
-0.23728951811790466,
0.034887105226516724,
0.34665369987487793,
0.007645750418305397,
0.20655111968517303,
0.27486562728881836,
0.11891591548919678,
-0.1234728991985321,
-0.2976974844932556,
-0.158562570810318,
0.21767030656337738,
-0.5927740931510925,
0.09826994687318802,
-0.26968914270401,
-0.46637511253356934,
0.12162261456251144,
0.4874909520149231,
0.32183152437210083,
0.13771678507328033,
-0.18934443593025208,
-0.4025091230869293,
-0.2644129991531372,
0.01037481427192688,
0.12458258867263794,
0.24356617033481598,
0.14767667651176453,
0.6597267389297485,
0.017382433637976646,
0.09049942344427109,
-0.3986143171787262,
-0.28002509474754333,
-0.1478806585073471,
0.2958531379699707,
0.3108176290988922,
-0.39572855830192566,
0.35020875930786133,
-0.07015620917081833,
0.18427428603172302,
0.41573160886764526,
-0.21730738878250122,
-0.29014861583709717,
-0.09771782159805298,
0.07360800355672836,
0.1292787492275238,
-0.24792249500751495,
-0.2928445041179657,
0.07054835557937622,
0.07381558418273926,
-0.30572640895843506,
0.06034101918339729,
0.03235404193401337,
-0.0002621114253997803,
0.3716009259223938,
-0.23916210234165192,
0.10322195291519165,
-0.19423259794712067,
-0.18021030724048615,
-0.13089533150196075,
0.20959550142288208,
0.056400272995233536,
0.08179628849029541,
0.202910378575325,
-0.029459994286298752,
-0.42826133966445923,
0.08975640684366226,
0.232058584690094,
0.2600226104259491,
0.32254114747047424,
-0.36762845516204834,
-0.05528085678815842,
0.17261917889118195,
0.5626051425933838,
0.08091965317726135,
-0.10662184655666351,
0.03298085927963257,
-0.04734769091010094,
0.2685657739639282,
-0.30965906381607056,
0.22883854806423187,
-0.09309148788452148,
0.06776104122400284,
0.2696627676486969,
0.2911014258861542,
0.29751017689704895,
-0.06384458392858505,
0.40366536378860474,
0.26776546239852905,
0.5184584259986877,
-0.48005151748657227,
0.3569117486476898,
0.5745410919189453,
0.16979408264160156,
0.17945680022239685,
0.3768186569213867,
-0.02955244854092598,
0.3553954064846039,
0.5121092796325684,
0.2054484486579895,
0.17873601615428925,
0.0035344474017620087,
0.18958084285259247,
0.07744122296571732,
-0.15311865508556366,
0.09105410426855087,
0.08569447696208954,
-0.1319068968296051,
0.08424850553274155,
-0.20427659153938293,
0.30300652980804443,
-0.33489954471588135,
-0.06435550004243851,
-0.1378069370985031,
0.054942015558481216,
-0.21470314264297485,
-0.20303931832313538,
0.14602039754390717,
0.09160611778497696,
-0.09675798565149307,
-0.1491553783416748,
0.14598822593688965,
0.27191030979156494,
0.3311925530433655,
-0.24158065021038055,
0.011369086802005768,
-0.18653663992881775,
-0.18720263242721558,
-0.02291864901781082,
0.37714317440986633,
-0.24214373528957367,
0.32555702328681946,
0.19195793569087982,
-0.21893814206123352,
-0.02560191974043846,
0.331100195646286,
0.38795405626296997,
0.34621375799179077,
-0.09735921025276184,
-0.018850088119506836,
-0.14681357145309448,
-0.24284745752811432,
0.16031837463378906,
0.29043808579444885,
0.14539413154125214,
0.17968715727329254,
0.20345710217952728,
0.1824685037136078,
-0.20126095414161682,
0.2441806197166443,
-0.04533766582608223,
0.09921158850193024,
0.001304207369685173,
0.06382304430007935,
0.0748211219906807,
-0.047486312687397,
-0.0048634372651577,
0.04075566679239273,
-0.37227723002433777,
-0.08388977497816086,
0.364734023809433,
-0.2776278853416443,
0.4735957682132721,
-0.08173402398824692,
0.10440702736377716,
0.03572496026754379,
0.3190370202064514,
-0.05092043802142143,
-0.20985639095306396,
-0.22057873010635376,
0.03668531775474548,
-0.24615824222564697,
-0.07871323078870773,
0.08714709430932999,
-0.21646744012832642,
-0.24823909997940063,
0.04175820201635361,
0.1564621478319168,
0.031166132539510727,
-0.14321096241474152,
-0.3156927525997162,
0.010035966522991657,
-0.08007101714611053,
-0.19007761776447296,
-0.11238990724086761,
0.013546239584684372,
0.019359013065695763,
0.22899079322814941,
-0.2942389249801636,
-0.07222579419612885,
0.4261680245399475,
0.07420804351568222,
-0.41409748792648315,
-0.003379516303539276,
-0.025094248354434967,
0.23685988783836365,
0.15395604074001312,
0.09731914848089218,
0.5690985918045044,
-0.22231808304786682,
0.19484618306159973,
-0.07713465392589569,
-0.30155983567237854,
-0.16965141892433167,
0.24265998601913452,
0.3290059566497803,
0.36490118503570557,
-0.15133023262023926,
0.14345578849315643,
-0.22188051044940948,
-0.15357457101345062,
0.049777887761592865,
-0.21381168067455292,
-0.22997267544269562,
-0.049505531787872314,
-0.2060346007347107,
-0.06149922311306,
0.1562587320804596,
0.2371852993965149,
0.023521944880485535,
-0.008525333367288113,
-0.18143033981323242,
-0.5764251351356506,
0.4325289726257324,
-0.30749374628067017,
-0.4217502772808075,
0.11965358257293701,
-0.04621371626853943,
0.24431157112121582,
0.01128367055207491,
-0.4401862621307373,
0.06568808108568192,
0.20445533096790314,
-0.02607395127415657,
-0.2218869924545288,
0.058609746396541595,
0.19533555209636688,
-0.022852715104818344,
-0.09695246815681458,
0.2508563995361328,
0.1856726109981537,
-0.07931824773550034,
-0.06412220001220703,
-0.19508449733257294
] |
https://github.com/huggingface/datasets/issues/699 | XNLI dataset is not loading | also i tried below code to solve checksum error
`datasets-cli test ./datasets/xnli --save_infos --all_configs`
and it shows
```
2020-10-02 07:06:16.588760: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/datasets/load.py", line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 474, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/./datasets/xnli/xnli.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/datasets/load.py", line 279, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 474, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/./datasets/xnli/xnli.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/bin/datasets-cli", line 36, in <module>
service.run()
File "/opt/conda/lib/python3.7/site-packages/datasets/commands/test.py", line 76, in run
module_path, hash = prepare_module(path)
File "/opt/conda/lib/python3.7/site-packages/datasets/load.py", line 283, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at ./datasets/xnli/xnli.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/./datasets/xnli/xnli.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/./datasets/xnli/xnli.py
```
| `dataset = datasets.load_dataset(path='xnli')`
showing below error
```
/opt/conda/lib/python3.7/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
36 if len(bad_urls) > 0:
37 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 38 raise NonMatchingChecksumError(error_msg + str(bad_urls))
39 logger.info("All the checksums matched successfully" + for_verification_name)
40
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']
```
I think URL is now changed to "https://cims.nyu.edu/~sbowman/xnli/XNLI-MT-1.0.zip" | 170 | XNLI dataset is not loading
`dataset = datasets.load_dataset(path='xnli')`
showing below error
```
/opt/conda/lib/python3.7/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
36 if len(bad_urls) > 0:
37 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 38 raise NonMatchingChecksumError(error_msg + str(bad_urls))
39 logger.info("All the checksums matched successfully" + for_verification_name)
40
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']
```
I think URL is now changed to "https://cims.nyu.edu/~sbowman/xnli/XNLI-MT-1.0.zip"
also i tried below code to solve checksum error
`datasets-cli test ./datasets/xnli --save_infos --all_configs`
and it shows
```
2020-10-02 07:06:16.588760: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/datasets/load.py", line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 474, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/./datasets/xnli/xnli.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/datasets/load.py", line 279, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 474, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/./datasets/xnli/xnli.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/bin/datasets-cli", line 36, in <module>
service.run()
File "/opt/conda/lib/python3.7/site-packages/datasets/commands/test.py", line 76, in run
module_path, hash = prepare_module(path)
File "/opt/conda/lib/python3.7/site-packages/datasets/load.py", line 283, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at ./datasets/xnli/xnli.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/./datasets/xnli/xnli.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/./datasets/xnli/xnli.py
```
| [
-0.281051903963089,
0.14010050892829895,
-0.09117168188095093,
0.12604497373104095,
0.22666780650615692,
-0.24099740386009216,
0.30729180574417114,
0.42818447947502136,
0.08965209126472473,
-0.06145189702510834,
-0.019094593822956085,
0.47371339797973633,
0.18641607463359833,
0.11768046766519547,
0.14953869581222534,
0.21953821182250977,
0.03835517168045044,
0.09438402205705643,
-0.06688918173313141,
-0.1008862853050232,
-0.23144623637199402,
0.06853307038545609,
-0.2965807616710663,
-0.11543244123458862,
-0.08378396183252335,
0.11869823187589645,
0.2151542454957962,
0.20025596022605896,
-0.06649879366159439,
-0.27868029475212097,
0.3651866018772125,
-0.007963452488183975,
0.2631487548351288,
0.2762712836265564,
-0.00011265947250649333,
0.23324500024318695,
0.375419020652771,
-0.16141876578330994,
-0.4101257920265198,
-0.09520183503627777,
-0.4924979507923126,
-0.12450055778026581,
-0.13067524135112762,
-0.26028743386268616,
0.11648579686880112,
0.061471402645111084,
-0.05783064663410187,
-0.16812583804130554,
-0.05451655387878418,
0.49359217286109924,
0.16212324798107147,
0.548884391784668,
0.2709946036338806,
0.21504147350788116,
-0.06741534918546677,
-0.30174964666366577,
0.0076498184353113174,
0.40673181414604187,
0.33005020022392273,
0.014924276620149612,
0.055706605315208435,
0.12143653631210327,
-0.020664071664214134,
0.0008889250457286835,
0.15807536244392395,
-0.16243501007556915,
0.21539625525474548,
-0.08369006216526031,
0.0030174516141414642,
0.20484712719917297,
0.397978276014328,
-0.12012479454278946,
-0.415107399225235,
0.11874354630708694,
0.06175057962536812,
-0.1697445809841156,
0.42129287123680115,
0.17871686816215515,
-0.3158420920372009,
-0.12203161418437958,
-0.37799185514450073,
-0.0248489398509264,
-0.17577111721038818,
0.3431750535964966,
-0.0073400139808654785,
0.43677160143852234,
-0.014038926921784878,
0.025926385074853897,
0.02053704485297203,
-0.09881901741027832,
0.2914389371871948,
-0.06066785752773285,
0.023303547874093056,
0.18611149489879608,
-0.6986987590789795,
0.065139539539814,
-0.03422332555055618,
-0.0879540964961052,
0.1597486436367035,
0.39594054222106934,
0.32623714208602905,
0.08069872856140137,
-0.29251497983932495,
0.15235215425491333,
-0.17194437980651855,
0.3871062397956848,
0.14068832993507385,
0.07904685288667679,
0.27527928352355957,
0.2361997663974762,
-0.013136051595211029,
0.0545627623796463,
-0.30001887679100037,
-0.197139710187912,
-0.08153598010540009,
0.03889574855566025,
0.14011414349079132,
-0.2044801115989685,
-0.26299551129341125,
0.07593783736228943,
-0.07846027612686157,
-0.1383800208568573,
0.43583351373672485,
0.46945592761039734,
-0.32087400555610657,
0.24988707900047302,
0.009845029562711716,
0.01819555275142193,
-0.0383259579539299,
-0.13169194757938385,
-0.1493626981973648,
0.07166919112205505,
-0.2305680215358734,
-0.07218129187822342,
0.28296780586242676,
-0.31515130400657654,
0.4981714189052582,
-0.15553729236125946,
-0.1146097332239151,
-0.3088400959968567,
0.06147284060716629,
0.0018759816884994507,
-0.04045828431844711,
0.24289031326770782,
-0.024970438331365585,
-0.033208996057510376,
0.07295297831296921,
-0.0030834153294563293,
-0.05575146898627281,
0.16838186979293823,
-0.35891130566596985,
-0.29884740710258484,
-0.05451338738203049,
0.2073376178741455,
-0.19958779215812683,
-0.19163306057453156,
-0.0024795755743980408,
-0.488322913646698,
0.06608092784881592,
-0.04775882884860039,
-0.12372060865163803,
-0.215394526720047,
-0.06676127761602402,
-0.20903976261615753,
0.5407052040100098,
0.1293572336435318,
-0.3490075469017029,
0.051649630069732666,
-0.1369035840034485,
-0.05577933415770531,
0.09640594571828842,
0.2605535686016083,
-0.15901897847652435,
0.37280747294425964,
-0.3403569757938385,
-0.11789212375879288,
0.5776914358139038,
-0.47629284858703613,
-0.43992429971694946,
0.2114342600107193,
-0.10187532007694244,
0.00790460966527462,
-0.12557858228683472,
0.25237837433815,
-0.13565552234649658,
-0.03519999608397484,
0.0137476846575737,
0.2980307340621948,
0.14158563315868378,
0.12155792862176895,
-0.22241324186325073,
-0.2473592758178711,
0.15586164593696594,
0.3051370680332184,
0.018824290484189987,
0.1345294862985611,
-0.0449264720082283,
0.06685775518417358,
0.33222684264183044,
-0.08336222171783447,
-0.04643756151199341,
0.22149650752544403,
0.4732952117919922,
-0.03935184329748154,
0.03705313801765442,
-0.00484946183860302,
-0.41313159465789795,
0.3650056719779968,
-0.0015583392232656479,
-0.011436432600021362,
-0.06508348882198334,
0.17890691757202148,
-0.39768439531326294,
-0.02455955184996128,
-0.328342467546463,
-0.10626861453056335,
0.08481138944625854,
0.28094935417175293,
0.13776172697544098,
0.006305433809757233,
-0.37259241938591003,
0.2817600667476654,
-0.8748972415924072,
0.04563805088400841,
-0.42801928520202637,
0.4332662522792816,
0.08658389747142792,
-0.03751420974731445,
0.06580517441034317,
0.2386031150817871,
-0.10120934993028641,
-0.22645878791809082,
-0.3001842200756073,
0.32195818424224854,
-0.03433070331811905,
-0.010014891624450684,
0.22170573472976685,
0.1605619639158249,
0.002372685819864273,
-0.3698912262916565,
0.06305757164955139,
0.18831907212734222,
0.03962347283959389,
-0.0004497542977333069,
-0.057605989277362823,
0.2553059458732605,
-0.18932011723518372,
-0.027898259460926056,
0.1662321239709854,
0.03181592375040054,
0.4790482223033905,
-0.3187072277069092,
-0.034736230969429016,
-0.14046645164489746,
0.23313622176647186,
0.30008864402770996,
0.6040140986442566,
0.12754394114017487,
-0.06613142788410187,
-0.22730529308319092,
0.3051784336566925,
0.08219145238399506,
-0.10160378366708755,
0.1684034764766693,
0.0007089897990226746,
0.00612374022603035,
0.029146675020456314,
0.3065382242202759,
0.32310158014297485,
-0.014005742967128754,
-0.19692379236221313,
0.017757225781679153,
-0.15656615793704987,
-0.17171704769134521,
0.07024484872817993,
-0.17411722242832184,
0.2569727897644043,
0.288235604763031,
-0.05688022822141647,
-0.02132463827729225,
-0.21737056970596313,
-0.38311681151390076,
0.29450714588165283,
0.3578614294528961,
-0.3981689214706421,
-0.22131815552711487,
-0.22624292969703674,
-0.41422393918037415,
-0.3695698380470276,
-0.10487525910139084,
-0.22792941331863403,
-0.2551908791065216,
-0.23120494186878204,
0.3115469813346863,
0.18336530029773712,
0.2592552900314331,
-0.12438791990280151,
0.14477446675300598,
0.25443747639656067,
-0.4136667847633362,
0.023986421525478363,
-0.09034839272499084,
-0.10834682732820511,
0.09174107015132904,
0.5014837384223938,
0.16651234030723572,
0.19697439670562744,
-0.2534523606300354,
0.04522007331252098,
-0.5949462056159973,
-0.29440605640411377,
-0.016185656189918518,
0.037135034799575806,
0.07404198497533798,
-0.07448281347751617,
0.36682671308517456,
0.19766485691070557,
-0.33449265360832214,
0.3055463433265686,
0.09220106899738312,
-0.14509575068950653,
0.11043603718280792,
-0.12622684240341187,
-0.16067948937416077,
0.0007930546998977661,
-0.3663281500339508,
-0.1312316209077835,
-0.273605614900589,
-0.14524951577186584,
-0.11864657700061798,
0.24539871513843536,
0.23744870722293854,
0.02011946588754654,
0.15609052777290344,
0.10875041037797928,
0.08697936683893204,
0.09807062149047852,
-0.5159549117088318,
0.32972198724746704,
0.043985188007354736,
-0.40693268179893494,
0.005501199513673782,
-0.06668343394994736,
0.5552332401275635,
0.20530514419078827,
-0.42300647497177124,
-0.005427340045571327,
-0.18256071209907532,
0.22024568915367126,
0.20529942214488983,
-0.1584538370370865,
0.02278454601764679,
-0.22590437531471252,
-0.010673783719539642,
-0.18400245904922485,
-0.004501707851886749,
0.21840323507785797,
0.11144748330116272,
0.6592664122581482,
0.3477967381477356,
0.22205960750579834,
-0.05643688887357712,
0.11664968729019165,
0.505243718624115,
-0.3023965060710907,
0.2608954906463623,
-0.09867820888757706,
0.11781880259513855,
0.07286980748176575,
-0.2802756130695343,
0.10061607509851456,
0.026476919651031494,
-0.07022716850042343,
-0.09798631072044373,
-0.008387114852666855,
0.136202871799469,
-0.1991451233625412,
0.10256476700305939,
-0.2736380696296692,
-0.2417387068271637,
0.04714730754494667,
-0.36036014556884766,
0.3171442449092865,
-0.04062463343143463,
-0.016036968678236008,
-0.1175241768360138,
-0.2542993724346161,
0.04679817333817482,
0.5146542191505432,
-0.010342858731746674,
-0.160994291305542,
-0.47043293714523315,
-0.16855986416339874,
-0.1489565074443817,
0.04524551331996918,
0.062494829297065735,
0.7762838006019592,
-0.028661508113145828,
0.027804672718048096,
-0.021560415625572205,
-0.07299154251813889,
0.36701077222824097,
-0.2659904956817627,
0.3630940318107605,
0.11051096022129059,
0.08256825804710388,
-0.16490671038627625,
-0.08461587131023407,
0.031895074993371964,
-0.35411861538887024,
0.6948394775390625,
0.3220111131668091,
0.1106783077120781,
-0.06908883899450302,
0.060181524604558945,
0.22693392634391785,
-0.20350529253482819,
-0.2965392470359802,
-0.3927065432071686,
-0.20243066549301147,
-0.3153541386127472,
-0.23635172843933105,
-0.41392168402671814,
0.21975846588611603,
-0.007445609197020531,
-0.2050045281648636,
0.07487815618515015,
-0.2676098346710205,
0.1376391351222992,
0.11484163999557495,
0.16256529092788696,
0.17341597378253937,
0.1625545620918274,
-0.24020636081695557,
0.23528285324573517,
0.17251309752464294,
0.3183295726776123,
-0.14759139716625214,
-0.28853556513786316,
-0.0038333460688591003,
-0.13595165312290192,
0.09593556821346283,
-0.035090819001197815,
-0.15329714119434357,
-0.08394282311201096,
0.09864986687898636,
0.06512679159641266,
0.06215955689549446,
0.2465730756521225,
0.10499132424592972,
0.23009876906871796,
-0.3477570116519928,
-0.35680487751960754,
0.21476337313652039,
0.06040038540959358,
0.11537924408912659,
0.7290049195289612,
-0.29333847761154175,
-0.12881778180599213,
-0.04219966381788254,
0.1484810709953308,
0.5102244019508362,
-0.04323514550924301,
-0.24764597415924072,
0.3940463960170746,
0.13696618378162384,
0.2234211564064026,
-0.1048373132944107,
0.06191100925207138,
-0.34498751163482666,
-0.2537989318370819,
-0.024961985647678375,
-0.34890052676200867,
0.08530815690755844,
-0.010192319750785828,
0.025941040366888046,
0.21950885653495789,
0.045910656452178955,
0.2277485579252243,
0.3119935691356659,
0.525515615940094,
-0.017278539016842842,
-0.12652795016765594,
-0.3445289433002472,
0.0857931599020958,
-0.07830590009689331,
0.37281090021133423,
-0.030358463525772095,
-0.0005273865535855293,
-0.18535877764225006,
0.027662411332130432,
-0.20679661631584167,
0.4837402403354645,
0.06970247626304626,
0.4298192262649536,
0.06649807840585709,
-0.07531534880399704,
-0.07955298572778702,
0.5727033019065857,
0.5105194449424744,
0.08391688764095306,
-0.22352853417396545,
0.21380141377449036,
0.17026787996292114,
0.1728149801492691,
0.018581461161375046,
-0.016804343089461327,
0.35831668972969055,
-0.260017067193985,
-0.2901145815849304,
0.19262060523033142,
-0.104221411049366,
-0.4215747117996216,
0.039427027106285095,
-0.093473419547081,
-0.1304835081100464,
-0.08709920942783356,
0.014883747324347496,
0.05871688202023506,
-0.14042307436466217,
-0.016136471182107925,
0.14277657866477966,
0.13718271255493164,
0.0019294244702905416,
0.12175203859806061,
0.1317557543516159,
-0.3497816324234009,
0.06141068413853645,
0.2858653962612152,
-0.006414517760276794,
-0.001405671238899231,
0.5304970741271973,
-0.07001741230487823,
0.15194672346115112,
-0.2194432020187378,
-0.08524061739444733,
0.04943905770778656,
-0.22124254703521729,
-0.19861328601837158,
-0.08407461643218994,
0.1187090128660202,
0.0725150778889656,
0.43651583790779114,
0.2535583972930908,
0.3030753433704376,
-0.03251377493143082,
-0.6876358985900879,
-0.3423903286457062,
0.05688880383968353,
-0.1715884804725647,
0.1885707825422287,
-0.38849976658821106,
0.3960307836532593,
0.07484017312526703,
-0.17748144268989563,
-0.2731969952583313,
-0.032664552330970764,
-0.40171360969543457,
-0.026731938123703003,
0.02802134118974209,
-0.017664387822151184,
0.16724880039691925,
-0.07093477249145508,
0.168251171708107,
-0.10400085151195526,
-0.20334427058696747,
-0.17540141940116882,
-0.09352019429206848,
0.11719328910112381,
0.163030743598938,
-0.22087541222572327,
-0.20471158623695374,
-0.25996851921081543,
-0.09812699258327484,
-0.0686718001961708,
-0.1285511702299118,
-0.12659966945648193,
-0.02018783986568451,
0.10878841578960419,
-0.09138670563697815,
0.06906360387802124,
-0.10852227360010147,
0.06355161964893341,
-0.3368258774280548,
0.08415994793176651,
0.09126416593790054,
0.18329168856143951,
-0.0921071320772171,
0.08008842170238495,
-0.4293678402900696,
-0.09507697075605392,
-0.10500237345695496,
-0.11581280082464218,
0.28067275881767273,
-0.1528831124305725,
0.06817543506622314,
-0.08401627093553543,
0.14991936087608337,
0.3600476086139679,
-0.3264268934726715,
-0.07376497238874435,
0.2524217367172241,
0.21119791269302368,
-0.23239794373512268,
0.00796210765838623,
0.09751898050308228,
-0.012828250415623188,
-0.08091653138399124,
-0.02027159184217453,
0.1736266016960144,
-0.3428407907485962,
0.3833293318748474,
-0.0789623036980629,
0.2867293655872345,
-0.2502046823501587,
0.1364782750606537,
0.27102044224739075,
0.014672402292490005,
0.045089490711688995,
0.005629397928714752,
-0.03910992667078972,
-0.2255384922027588,
0.19584791362285614,
-0.08577363938093185,
0.23769409954547882,
-0.1642831563949585,
0.5021863579750061,
-0.1042352244257927,
-0.3124949634075165,
-0.006789393723011017,
0.12716792523860931,
-0.44212234020233154,
-0.08383526653051376,
0.004689604043960571,
0.3522090017795563,
-0.11923367530107498,
0.20687294006347656,
-0.2747468650341034,
0.1378641128540039,
-0.15300706028938293,
0.16264955699443817,
-0.6818798780441284,
-0.22026845812797546,
0.13333044946193695,
0.008503928780555725,
0.17059358954429626,
-0.0937688797712326,
-0.2688525915145874,
0.3143113851547241,
-0.3887183666229248,
-0.38783934712409973,
0.06503314524888992,
0.33685457706451416,
-0.012046366930007935,
-0.23560771346092224,
0.3604292869567871,
0.15504679083824158,
-0.07255904376506805,
0.05592314898967743,
0.032623905688524246,
0.2792868912220001,
0.5495956540107727,
0.5028502345085144,
0.14171576499938965,
0.29054391384124756,
0.005155628547072411,
0.009675748646259308,
0.27276408672332764,
0.2030746191740036,
0.10114230215549469,
0.3449245095252991,
0.2064349353313446,
-0.06508474051952362,
-0.10877364873886108,
-0.2298969179391861,
0.24334850907325745,
0.024573419243097305,
0.513114869594574,
0.14571145176887512,
0.11924228817224503,
-0.23040714859962463,
0.08687432110309601,
-0.2940409481525421,
0.042646925896406174,
0.32702770829200745,
0.08963455259799957,
0.1234760656952858,
0.034225888550281525,
0.05819019675254822,
-0.31248509883880615,
0.36519280076026917,
0.3919508755207062,
0.12195044010877609,
-0.28103315830230713,
-0.7514004111289978,
-0.7856200337409973,
0.08127068728208542,
0.10315576195716858,
-0.22066470980644226,
0.13718581199645996,
0.12026229500770569,
-0.25774410367012024,
-0.16773954033851624,
0.054569706320762634,
-0.22195151448249817,
0.052714861929416656,
-0.01933203637599945,
-0.37583982944488525,
-0.09485405683517456,
-0.3110659718513489,
0.1669648140668869,
-0.2070862203836441,
-0.2815290689468384,
0.08944354951381683,
0.03478013724088669,
0.06896853446960449,
0.0055832453072071075,
0.07716232538223267,
0.17660413682460785,
0.21791312098503113,
0.20827767252922058,
-0.07336942106485367,
0.6868259906768799,
0.037990063428878784,
-0.16541314125061035,
-0.29681190848350525,
-0.03292844071984291,
-0.011293605901300907,
0.1104075163602829,
0.10093051195144653,
0.24360033869743347,
0.1682622879743576,
0.24856886267662048,
-0.49463218450546265,
0.48983389139175415,
0.0473819375038147,
-0.512520432472229,
-0.16708777844905853,
-0.0022593773901462555,
0.08859459310770035,
0.005178121384233236,
0.2704472541809082,
0.1382778286933899,
0.033427923917770386,
0.24776817858219147,
-0.12952157855033875,
-0.13300010561943054,
0.38746166229248047,
-0.1668897271156311,
0.04129958525300026,
-0.031772028654813766,
0.19953316450119019,
-0.3064456880092621,
0.13306696712970734,
-0.5193886160850525,
0.04982829838991165,
0.41895365715026855,
-0.019190043210983276,
-0.0867762565612793,
0.12799635529518127,
0.17890812456607819,
0.3869439661502838,
-0.07626114040613174,
-0.10620646178722382,
0.03380683436989784,
-0.21822422742843628,
-0.052542027086019516,
-0.14446917176246643
] |
https://github.com/huggingface/datasets/issues/699 | XNLI dataset is not loading | Hi !
Yes the download url changed.
It's updated on the master branch. I'm doing a release today to fix that :) | `dataset = datasets.load_dataset(path='xnli')`
showing below error
```
/opt/conda/lib/python3.7/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
36 if len(bad_urls) > 0:
37 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 38 raise NonMatchingChecksumError(error_msg + str(bad_urls))
39 logger.info("All the checksums matched successfully" + for_verification_name)
40
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']
```
I think URL is now changed to "https://cims.nyu.edu/~sbowman/xnli/XNLI-MT-1.0.zip" | 22 | XNLI dataset is not loading
`dataset = datasets.load_dataset(path='xnli')`
showing below error
```
/opt/conda/lib/python3.7/site-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
36 if len(bad_urls) > 0:
37 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 38 raise NonMatchingChecksumError(error_msg + str(bad_urls))
39 logger.info("All the checksums matched successfully" + for_verification_name)
40
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']
```
I think URL is now changed to "https://cims.nyu.edu/~sbowman/xnli/XNLI-MT-1.0.zip"
Hi !
Yes the download url changed.
It's updated on the master branch. I'm doing a release today to fix that :) | [
-0.154536634683609,
0.32822030782699585,
-0.06746263056993484,
0.1016501933336258,
0.11844582855701447,
-0.08490347117185593,
0.11391429603099823,
0.35178589820861816,
-0.08381587266921997,
-0.13450516760349274,
-0.07374466210603714,
0.35109320282936096,
0.20486924052238464,
0.05064018815755844,
0.13830623030662537,
0.3167422115802765,
0.1006806492805481,
0.05276092141866684,
-0.14570192992687225,
-0.11426402628421783,
-0.3562244474887848,
0.2969623804092407,
-0.32988762855529785,
0.06998395919799805,
-0.16161878407001495,
0.19154928624629974,
-0.026283318176865578,
0.21551156044006348,
-0.22417007386684418,
-0.5219003558158875,
0.4650443494319916,
-0.02896140143275261,
0.3153361678123474,
0.05340828374028206,
-0.00011079430987592787,
0.013320788741111755,
0.48567962646484375,
-0.07012022286653519,
-0.4200715124607086,
0.09915794432163239,
-0.5813624858856201,
-0.36887696385383606,
-0.040726929903030396,
-0.21894389390945435,
0.17477372288703918,
-0.029456187039613724,
0.06037013977766037,
0.008795000612735748,
-0.05556018650531769,
0.4349471926689148,
0.2022579461336136,
0.33159294724464417,
0.21251575648784637,
0.10414990037679672,
-0.12412921339273453,
-0.1358565241098404,
0.2027837336063385,
0.41852325201034546,
0.20989322662353516,
0.018414245918393135,
0.08200933784246445,
0.06957431137561798,
-0.1658984124660492,
-0.13115563988685608,
0.014294970780611038,
-0.06509963423013687,
0.1832604855298996,
-0.0951680988073349,
-0.023273486644029617,
0.1045120358467102,
0.41576123237609863,
-0.04313039034605026,
-0.4142581820487976,
0.07118558138608932,
0.14022497832775116,
-0.1816166788339615,
0.28975337743759155,
0.16569530963897705,
-0.30684688687324524,
-0.03803442046046257,
-0.3423026204109192,
-0.2752629220485687,
-0.08429966866970062,
0.35296088457107544,
0.005246557295322418,
0.5990450382232666,
-0.041131239384412766,
0.05516674369573593,
0.009063005447387695,
-0.0800497755408287,
0.28230220079421997,
-0.05253731459379196,
-0.10470877587795258,
0.1626807302236557,
-0.54951411485672,
0.024867147207260132,
-0.005983248353004456,
0.18340419232845306,
0.2655080258846283,
0.40277475118637085,
0.03871988132596016,
-0.11630194634199142,
-0.22635070979595184,
-0.009401798248291016,
-0.0039070975035429,
0.3008691966533661,
0.13949938118457794,
0.15945662558078766,
0.2239142656326294,
0.1344495415687561,
0.0951099693775177,
0.04313633590936661,
-0.1842561960220337,
-0.17831549048423767,
-0.06362499296665192,
0.08010945469141006,
0.16823439300060272,
-0.29729387164115906,
-0.14052538573741913,
-0.08371848613023758,
-0.07998321950435638,
-0.16668570041656494,
0.1681002974510193,
0.252123087644577,
-0.2229519486427307,
0.33730024099349976,
0.06863156706094742,
0.11122890561819077,
0.01573154143989086,
-0.24401898682117462,
-0.16951411962509155,
-0.12121814489364624,
-0.2854923903942108,
-0.060443244874477386,
0.27442261576652527,
-0.24811342358589172,
0.46313169598579407,
-0.09213181585073471,
-0.18147899210453033,
-0.1822262406349182,
-0.14769557118415833,
0.16975902020931244,
-0.025686025619506836,
0.15203998982906342,
-0.025762105360627174,
0.09111366420984268,
0.14034444093704224,
-0.011727571487426758,
-0.11723783612251282,
0.2947635352611542,
-0.3946951925754547,
-0.2646884024143219,
-0.04576420038938522,
0.1853073239326477,
-0.160592183470726,
-0.3530971109867096,
0.01994089037179947,
-0.3907817006111145,
-0.006649836897850037,
-0.12541626393795013,
-0.06728518754243851,
-0.2273852378129959,
0.025534551590681076,
-0.23473170399665833,
0.4058353900909424,
0.3372839689254761,
-0.18001805245876312,
-0.05045103281736374,
-0.24738577008247375,
-0.19549204409122467,
0.09238298237323761,
0.2312324494123459,
-0.15369577705860138,
0.17574140429496765,
-0.4672146439552307,
-0.017984166741371155,
0.6156256198883057,
-0.5054790377616882,
-0.4822385013103485,
0.36683735251426697,
-0.16439205408096313,
-0.09392131865024567,
-0.04355166107416153,
0.285428524017334,
-0.07757185399532318,
0.026348132640123367,
0.06119488552212715,
0.35158032178878784,
0.14838756620883942,
0.13470326364040375,
-0.22643384337425232,
-0.31208932399749756,
0.07752956449985504,
0.23743341863155365,
-0.10206286609172821,
0.2401534914970398,
-0.08333245664834976,
-0.09642474353313446,
0.6564125418663025,
-0.0033443979918956757,
-0.039024338126182556,
0.1771041601896286,
0.3496187925338745,
0.04616434499621391,
-0.056155864149332047,
0.1321391761302948,
-0.27438607811927795,
0.23179319500923157,
-0.08110569417476654,
0.07746966928243637,
-0.1369141787290573,
0.15225756168365479,
-0.46717724204063416,
-0.01339875441044569,
-0.35029423236846924,
-0.21380355954170227,
0.09778991341590881,
0.323850154876709,
0.2103266417980194,
0.13868741691112518,
-0.1924281120300293,
0.45104292035102844,
-0.5149962902069092,
0.08922372758388519,
-0.4599665701389313,
0.3872055113315582,
0.05119268596172333,
0.026924461126327515,
0.14029845595359802,
0.22262367606163025,
0.046430885791778564,
-0.09056282043457031,
-0.2875967025756836,
0.41723161935806274,
-0.0751660093665123,
-0.11762003600597382,
0.36871957778930664,
-0.05158683657646179,
0.029984917491674423,
-0.46153709292411804,
0.2841533124446869,
0.40725401043891907,
-0.015950849279761314,
0.08305636793375015,
0.040477775037288666,
0.17627699673175812,
-0.21684281527996063,
-0.0306028351187706,
0.019931018352508545,
0.20446830987930298,
0.4493318200111389,
-0.29428601264953613,
-0.13602116703987122,
-0.1536151021718979,
0.15177975594997406,
0.30450430512428284,
0.5157188773155212,
0.07253599911928177,
-0.0740448608994484,
-0.13812613487243652,
0.3581746518611908,
-0.06928177177906036,
-0.14954057335853577,
0.3571566939353943,
-0.16633063554763794,
-0.0016493331640958786,
-0.048286572098731995,
0.5162200927734375,
0.3303981423377991,
0.0800945833325386,
-0.16722138226032257,
0.015724562108516693,
-0.07633110135793686,
-0.23165355622768402,
0.16465356945991516,
-0.17180822789669037,
0.10886328667402267,
0.18685847520828247,
-0.06939392536878586,
-0.10277484357357025,
-0.21190521121025085,
-0.23474685847759247,
0.07749661803245544,
0.3297290503978729,
-0.3639902174472809,
-0.22749237716197968,
-0.2603933811187744,
-0.6383988857269287,
-0.4869205951690674,
-0.14019396901130676,
-0.2508091330528259,
-0.4705286920070648,
-0.202190101146698,
0.05877998471260071,
0.20629853010177612,
0.315322607755661,
-0.31414949893951416,
0.011696577072143555,
0.04572484642267227,
-0.329563707113266,
0.15891607105731964,
-0.1446891874074936,
-0.2713507413864136,
0.10727283358573914,
0.36713582277297974,
0.1439754068851471,
0.10062434524297714,
-0.42804744839668274,
0.24269618093967438,
-0.6304476857185364,
-0.23256555199623108,
-0.0655871033668518,
-0.014960672706365585,
0.12610727548599243,
0.027094542980194092,
0.28178709745407104,
0.2949369549751282,
-0.1686241626739502,
0.24539755284786224,
-0.0050111692398786545,
-0.10129701346158981,
0.17659713327884674,
-0.09705249965190887,
-0.11833859980106354,
0.11694490909576416,
-0.4073302447795868,
-0.2895720899105072,
-0.2114051878452301,
-0.05377856642007828,
-0.09201353043317795,
0.16961199045181274,
0.15001997351646423,
0.10812942683696747,
0.04069751873612404,
-0.04609215259552002,
-0.05290941894054413,
0.04639198258519173,
-0.5149427056312561,
0.3466630280017853,
0.06842754036188126,
-0.33271944522857666,
-0.02703583985567093,
0.0320868045091629,
0.3410557508468628,
-0.005847526714205742,
-0.5295608639717102,
0.0738171860575676,
-0.14475320279598236,
0.3154469430446625,
0.2459883689880371,
-0.09600921720266342,
0.11203408986330032,
-0.1378752887248993,
-0.06428146362304688,
-0.014782626181840897,
-0.1439591944217682,
0.039677225053310394,
0.010624101385474205,
0.6999571323394775,
0.28552088141441345,
0.21760109066963196,
-0.1492900401353836,
0.08318943530321121,
0.555333137512207,
-0.059204552322626114,
0.2632455825805664,
-0.016361290588974953,
0.13336534798145294,
0.13756181299686432,
-0.34144896268844604,
0.01718446984887123,
-0.03670808672904968,
-0.1097874641418457,
-0.023746982216835022,
0.1147010326385498,
0.0748707577586174,
-0.19252391159534454,
0.002004474401473999,
-0.2976503372192383,
-0.22304044663906097,
-0.02414192073047161,
-0.2135830819606781,
0.2823892831802368,
0.0843418538570404,
-0.032396651804447174,
-0.15580426156520844,
-0.27286216616630554,
-0.016879580914974213,
0.43041640520095825,
0.051093362271785736,
-0.06692461669445038,
-0.43784061074256897,
-0.15038150548934937,
-0.2656536102294922,
0.18579474091529846,
0.04499788209795952,
0.7549547553062439,
0.06797349452972412,
-0.061698898673057556,
0.02394166588783264,
-0.036279335618019104,
0.4664520025253296,
-0.19328178465366364,
0.29733508825302124,
0.14079400897026062,
0.3209073841571808,
-0.2331845760345459,
-0.03488290309906006,
0.06462892889976501,
-0.18487781286239624,
0.7279905676841736,
0.2987176179885864,
0.07216284424066544,
-0.1937948763370514,
0.07322145998477936,
0.29930731654167175,
-0.25757962465286255,
-0.2874573767185211,
-0.44759583473205566,
-0.208844393491745,
-0.2936890125274658,
-0.18376249074935913,
-0.38983771204948425,
0.16133783757686615,
-0.10038752853870392,
-0.051788102835416794,
0.10991832613945007,
-0.2723607122898102,
-0.03525002300739288,
0.03675449639558792,
0.2607635259628296,
0.1131935641169548,
0.010716818273067474,
-0.11642348766326904,
0.2308252602815628,
-0.032676488161087036,
0.5089079737663269,
-0.17467562854290009,
-0.2450764775276184,
-0.01368902251124382,
-0.1131560355424881,
0.14185449481010437,
0.01858198642730713,
-0.047769155353307724,
-0.18555399775505066,
0.17213964462280273,
-0.004262320697307587,
0.022161036729812622,
-0.043377574533224106,
0.20975111424922943,
0.08975353837013245,
-0.3601861596107483,
-0.2822360396385193,
0.4302024841308594,
0.13937526941299438,
-0.05789802595973015,
0.5784239172935486,
-0.11717426776885986,
-0.09448149055242538,
-0.07840348035097122,
0.06546121835708618,
0.6112678647041321,
0.04960054159164429,
-0.05414104089140892,
0.3504295349121094,
-0.18872766196727753,
0.3375973403453827,
0.14589738845825195,
0.03471284359693527,
-0.4030075967311859,
-0.0592869371175766,
0.019608722999691963,
-0.2003258913755417,
0.010181497782468796,
0.0027693919837474823,
-0.03564636781811714,
0.28890323638916016,
-0.08402734249830246,
-0.015521697700023651,
0.3707635998725891,
0.5017664432525635,
0.022525545209646225,
0.011111283674836159,
-0.37199634313583374,
0.16396810114383698,
-0.07847572863101959,
0.3671862781047821,
-0.07638830691576004,
-0.0838334783911705,
-0.2551731765270233,
0.07095921784639359,
-0.2950751781463623,
0.5404979586601257,
0.2757504880428314,
0.33896225690841675,
0.06482607126235962,
-0.12801474332809448,
-0.24966134130954742,
0.3878885507583618,
0.4305008053779602,
0.06389105319976807,
-0.2756442427635193,
0.2003510743379593,
0.07868766784667969,
0.12242504209280014,
0.08920948952436447,
0.12248755991458893,
0.2299332618713379,
-0.1404501497745514,
-0.4328581690788269,
0.22800660133361816,
-0.02158886194229126,
-0.5032146573066711,
-0.05197063833475113,
-0.1553737223148346,
-0.24948202073574066,
-0.23429769277572632,
-0.034345678985118866,
0.07024244219064713,
0.05767219141125679,
-0.12931586802005768,
0.13664686679840088,
0.21213218569755554,
0.0934363380074501,
0.07523287832736969,
0.1593119353055954,
-0.2969801425933838,
0.06242099031805992,
0.31934282183647156,
-0.06856067478656769,
0.06897919625043869,
0.4445508122444153,
0.03336513414978981,
0.15694448351860046,
-0.1756383180618286,
0.08262468129396439,
-0.13445673882961273,
-0.3435789942741394,
-0.24442775547504425,
-0.08723831176757812,
0.3326420783996582,
0.08852844685316086,
0.27768129110336304,
0.22761957347393036,
0.32065582275390625,
-0.00008359551429748535,
-0.6334678530693054,
-0.3039219379425049,
0.09855096787214279,
-0.20641426742076874,
0.06339794397354126,
-0.31804370880126953,
0.31245341897010803,
0.2417283058166504,
-0.24264365434646606,
-0.29668188095092773,
0.07228519767522812,
-0.3123777508735657,
-0.07174066454172134,
0.23958198726177216,
0.029200473800301552,
0.09039731323719025,
-0.04255963861942291,
0.2007020115852356,
-0.2257988303899765,
-0.1257004588842392,
-0.16027295589447021,
-0.02468637190759182,
0.09960635751485825,
0.17766281962394714,
-0.20298191905021667,
-0.12295849621295929,
-0.2508126497268677,
-0.02400609850883484,
0.07176081836223602,
-0.33252426981925964,
-0.16585445404052734,
-0.030743077397346497,
0.2758226990699768,
-0.16158434748649597,
-0.05628658086061478,
-0.03837566822767258,
0.1534138321876526,
-0.1991806924343109,
0.03909241035580635,
0.15521667897701263,
0.2810165286064148,
-0.09045810997486115,
0.06322728097438812,
-0.4773964285850525,
0.03861086443066597,
-0.14507535099983215,
0.04271451383829117,
0.2743888795375824,
-0.25849276781082153,
0.1577841341495514,
0.0820704847574234,
0.11686733365058899,
0.48480039834976196,
-0.18827272951602936,
-0.12620411813259125,
0.27775537967681885,
0.20499244332313538,
-0.22519242763519287,
-0.053996071219444275,
0.0980129987001419,
0.08570428192615509,
-0.2504560649394989,
-0.05558008700609207,
0.05869526043534279,
-0.3978053629398346,
0.4871255159378052,
-0.02347814291715622,
0.3694750964641571,
-0.1294134557247162,
0.13935427367687225,
0.5224541425704956,
0.09354077279567719,
0.020809855312108994,
0.15538060665130615,
0.003515433520078659,
-0.1617504358291626,
0.2503545880317688,
-0.16325870156288147,
0.1540074497461319,
-0.1727181375026703,
0.4835171699523926,
-0.19749021530151367,
-0.17269910871982574,
0.0231972336769104,
0.04491279274225235,
-0.3199961483478546,
-0.21607059240341187,
0.006673187017440796,
0.3999447822570801,
-0.1598164588212967,
0.11848995834589005,
-0.27598100900650024,
0.20979264378547668,
-0.12178093940019608,
-0.006999887526035309,
-0.5526401400566101,
-0.2350108027458191,
0.12375631928443909,
0.03687216714024544,
-0.04313762113451958,
-0.22344408929347992,
-0.04800291359424591,
0.16113905608654022,
-0.3857368230819702,
-0.7578924298286438,
0.07130686193704605,
0.22731611132621765,
-0.0725758746266365,
-0.163279727101326,
0.24396294355392456,
0.1988021433353424,
0.010424502193927765,
0.28313061594963074,
0.17870377004146576,
0.4121365547180176,
0.5009100437164307,
0.38417983055114746,
0.03175339847803116,
0.12980636954307556,
-0.06852292269468307,
0.05122927576303482,
0.27226534485816956,
0.2894980311393738,
0.048066869378089905,
0.30930382013320923,
0.23139522969722748,
-0.06037399172782898,
0.04228317365050316,
-0.14091141521930695,
0.24531732499599457,
0.07271325588226318,
0.6251952052116394,
0.06141076982021332,
0.053746797144412994,
-0.22864729166030884,
0.13158898055553436,
-0.37682509422302246,
0.1797701120376587,
0.30874770879745483,
0.09495232254266739,
0.04386535659432411,
-0.017296766862273216,
0.08094647526741028,
-0.2652844488620758,
0.3914024829864502,
0.5102474093437195,
0.15213680267333984,
-0.2963317632675171,
-0.7047802209854126,
-0.9020801782608032,
0.08677203953266144,
0.05470122769474983,
-0.34107014536857605,
0.04640910029411316,
0.08314178884029388,
-0.20635876059532166,
-0.056896090507507324,
0.01392732560634613,
0.07026803493499756,
0.029517177492380142,
-0.025044776499271393,
-0.2665592133998871,
-0.0999608039855957,
-0.10467465221881866,
0.298039048910141,
-0.2714783549308777,
-0.19067302346229553,
0.08799441903829575,
-0.11571083217859268,
0.06259451061487198,
0.01762937381863594,
-0.09320177137851715,
0.1104453057050705,
0.31064489483833313,
0.2195034921169281,
0.1678660362958908,
0.5355527400970459,
0.056111857295036316,
-0.2521292269229889,
-0.4081023037433624,
-0.12632690370082855,
-0.09855195134878159,
0.11803261935710907,
-0.026952046900987625,
0.2019408494234085,
0.05127263069152832,
0.3044302761554718,
-0.423625111579895,
0.330532431602478,
0.020977959036827087,
-0.34892547130584717,
-0.2254328429698944,
0.021224817261099815,
0.11234786361455917,
-0.10544563084840775,
0.19058236479759216,
0.1687425673007965,
-0.03248852491378784,
0.28558802604675293,
-0.0658099502325058,
-0.022889474406838417,
0.3058546185493469,
-0.0856063961982727,
0.09355431795120239,
-0.01688580960035324,
0.1959044635295868,
-0.30913516879081726,
0.06664589047431946,
-0.41096916794776917,
0.14630210399627686,
0.4854401648044586,
0.10821732133626938,
-0.07626156508922577,
0.22339902818202972,
0.0738200843334198,
0.27390384674072266,
-0.014814812690019608,
-0.012120433151721954,
0.10587234795093536,
-0.3055032193660736,
0.010761480778455734,
-0.1301611363887787
] |
https://github.com/huggingface/datasets/issues/690 | XNLI dataset: NonMatchingChecksumError | Thanks for reporting.
The data file must have been updated by the host.
I'll update the checksum with the new one. | Hi,
I tried to download "xnli" dataset in colab using
`xnli = load_dataset(path='xnli')`
but got 'NonMatchingChecksumError' error
`NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-27-a87bedc82eeb> in <module>()
----> 1 xnli = load_dataset(path='xnli')
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']`
The same code worked well several days ago in colab but stopped working now. Thanks! | 21 | XNLI dataset: NonMatchingChecksumError
Hi,
I tried to download "xnli" dataset in colab using
`xnli = load_dataset(path='xnli')`
but got 'NonMatchingChecksumError' error
`NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-27-a87bedc82eeb> in <module>()
----> 1 xnli = load_dataset(path='xnli')
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']`
The same code worked well several days ago in colab but stopped working now. Thanks!
Thanks for reporting.
The data file must have been updated by the host.
I'll update the checksum with the new one. | [
-0.25861361622810364,
0.25621089339256287,
0.03577624633908272,
0.17244897782802582,
-0.006708342581987381,
-0.03667508810758591,
0.08086847513914108,
0.406707227230072,
0.1755126714706421,
0.23367857933044434,
-0.21354615688323975,
0.30520403385162354,
-0.018766384571790695,
-0.07204686105251312,
-0.21502351760864258,
0.5297761559486389,
0.0938091054558754,
0.21601593494415283,
0.007997885346412659,
0.02223803848028183,
-0.2151082158088684,
0.15843136608600616,
-0.20354700088500977,
-0.31936168670654297,
-0.24584896862506866,
0.15208575129508972,
0.1421748697757721,
-0.053550057113170624,
-0.2479526847600937,
-0.22213055193424225,
0.6901742815971375,
0.18877214193344116,
0.2581357955932617,
0.04628686606884003,
-0.0001240972924279049,
0.008053310215473175,
0.24067090451717377,
-0.19882510602474213,
-0.4517172574996948,
-0.11691446602344513,
-0.8176319003105164,
-0.38186904788017273,
0.047563306987285614,
-0.20784112811088562,
0.10942981392145157,
0.4795922040939331,
0.26673147082328796,
0.13727708160877228,
0.10550445318222046,
0.28077882528305054,
0.11154390871524811,
0.42098379135131836,
0.13478867709636688,
0.14343614876270294,
0.24644219875335693,
-0.05215609073638916,
-0.13627122342586517,
0.48951977491378784,
0.42305266857147217,
0.3203533887863159,
0.03931787982583046,
0.11353491246700287,
-0.3681001663208008,
0.32690250873565674,
-0.035963207483291626,
-0.025063764303922653,
0.020516347140073776,
-0.2464185655117035,
0.2830492854118347,
0.46939000487327576,
0.22619402408599854,
-0.2822745740413666,
-0.2415454238653183,
-0.07438492774963379,
0.04340190812945366,
-0.28091052174568176,
0.27981069684028625,
0.0836087092757225,
-0.34550172090530396,
-0.10639849305152893,
-0.327850878238678,
-0.005859087221324444,
-0.0017170757055282593,
0.10732637345790863,
0.14934396743774414,
0.5423239469528198,
-0.0477060005068779,
-0.023783713579177856,
0.0697467252612114,
-0.15529493987560272,
0.6281563639640808,
-0.2680090665817261,
-0.12527699768543243,
0.17981919646263123,
-0.49006158113479614,
-0.07315404713153839,
-0.20647156238555908,
0.5996735692024231,
0.40664464235305786,
0.2380989044904709,
0.2245098203420639,
0.025924907997250557,
-0.3553992509841919,
0.12549470365047455,
-0.20121347904205322,
0.24799121916294098,
0.09964413195848465,
0.03187447041273117,
0.23207847774028778,
0.34831443428993225,
-0.09731974452733994,
0.12210553884506226,
-0.2033597230911255,
0.03503594920039177,
0.22900353372097015,
0.25804442167282104,
0.32757872343063354,
-0.5910430550575256,
-0.33789196610450745,
0.0049088457599282265,
-0.26034584641456604,
-0.17460939288139343,
0.17539483308792114,
0.17534926533699036,
-0.16994482278823853,
0.10924579948186874,
-0.17566417157649994,
-0.12880873680114746,
-0.04451265186071396,
-0.3918737769126892,
-0.0676397830247879,
-0.05432770028710365,
-0.09563693404197693,
0.1412099301815033,
0.35714080929756165,
-0.29536718130111694,
0.39917871356010437,
-0.2256496697664261,
0.18177445232868195,
0.01791071891784668,
0.05762047320604324,
-0.11160404980182648,
-0.03088146448135376,
0.29100167751312256,
-0.017314912751317024,
0.05957198888063431,
-0.052928220480680466,
-0.14099356532096863,
-0.19727091491222382,
0.23639002442359924,
-0.3122948110103607,
-0.21674510836601257,
0.0996263325214386,
0.04005787894129753,
-0.5102124810218811,
-0.37534165382385254,
0.07367359846830368,
-0.4655599594116211,
0.10155679285526276,
-0.39043956995010376,
-0.007396407425403595,
-0.3887448310852051,
-0.06958269327878952,
-0.1876174360513687,
0.16079695522785187,
0.31641554832458496,
-0.21472527086734772,
0.03430728614330292,
-0.16724207997322083,
0.025788286700844765,
0.40095260739326477,
0.31566211581230164,
0.054487574845552444,
-0.16652554273605347,
-0.2950071394443512,
-0.21611663699150085,
0.3075035810470581,
-0.2204371988773346,
-0.7255299687385559,
0.12161244451999664,
0.07198812067508698,
0.3229765295982361,
0.1239924356341362,
0.281218022108078,
0.21191978454589844,
-0.016751006245613098,
-0.03557690978050232,
0.08729879558086395,
-0.07451947778463364,
-0.042146455496549606,
-0.2804175019264221,
-0.36189737915992737,
0.12046095728874207,
0.1418692171573639,
0.16018669307231903,
0.18562746047973633,
-0.03159195929765701,
-0.056706611067056656,
0.4973291754722595,
-0.17145216464996338,
0.04858241230249405,
-0.022791385650634766,
0.6201289892196655,
-0.13407915830612183,
-0.18491868674755096,
-0.025862611830234528,
-0.3418605923652649,
0.3134123980998993,
0.185893252491951,
0.08875904977321625,
-0.11504171788692474,
0.06767018884420395,
-0.22437235713005066,
-0.15554067492485046,
-0.23704977333545685,
0.06431884318590164,
-0.02420883998274803,
0.3354491889476776,
0.241768479347229,
0.12241782248020172,
-0.00755557045340538,
0.4944453239440918,
-0.36688581109046936,
0.09246312081813812,
-0.3867911100387573,
0.3697481155395508,
0.06005192920565605,
-0.07401309162378311,
0.06442266702651978,
0.09251756966114044,
-0.0817728117108345,
-0.09696170687675476,
-0.2909853160381317,
0.13323427736759186,
0.19139327108860016,
-0.22940368950366974,
0.0671629011631012,
0.28751763701438904,
0.011195915751159191,
-0.15944518148899078,
0.10042539983987808,
0.5777589678764343,
0.12380485236644745,
0.08086345344781876,
-0.07850157469511032,
0.4863090515136719,
-0.18338951468467712,
-0.02253124862909317,
-0.13328802585601807,
0.17460107803344727,
0.35754096508026123,
-0.2149171382188797,
-0.146677166223526,
-0.1746446192264557,
0.3238838315010071,
0.05435166507959366,
0.19488254189491272,
0.11110275238752365,
-0.2262817770242691,
0.008230261504650116,
0.3536302447319031,
0.013698365539312363,
-0.10008542984724045,
0.1387246549129486,
-0.005558408796787262,
-0.026158491149544716,
0.20443692803382874,
0.6320053339004517,
0.3800024390220642,
0.031756479293107986,
-0.04409264400601387,
0.01134399976581335,
-0.13844825327396393,
-0.25326400995254517,
-0.09922993928194046,
-0.15760672092437744,
0.21007269620895386,
0.23510697484016418,
0.1551225334405899,
-0.14047792553901672,
-0.3958391547203064,
-0.40127402544021606,
-0.07333264499902725,
0.4360640347003937,
-0.21054905652999878,
-0.12756741046905518,
-0.3166087567806244,
-0.5170454978942871,
-0.48838937282562256,
-0.21160800755023956,
-0.2422732412815094,
-0.3460928797721863,
-0.18258501589298248,
0.39519643783569336,
0.25814956426620483,
0.23223842680454254,
-0.36952272057533264,
0.012325182557106018,
-0.054611679166555405,
-0.3932124376296997,
0.1058228462934494,
-0.155129075050354,
-0.22832077741622925,
-0.010065572336316109,
0.35517436265945435,
0.039278727024793625,
0.25316736102104187,
-0.4118208587169647,
0.18134266138076782,
-0.44132333993911743,
-0.1746169924736023,
0.01734025403857231,
-0.15315333008766174,
-0.04117480665445328,
0.07834943383932114,
0.20608794689178467,
-0.21344590187072754,
-0.3065018355846405,
0.06668265163898468,
-0.07291954755783081,
-0.14035192131996155,
0.11953750252723694,
-0.24796371161937714,
-0.07921569794416428,
0.15428750216960907,
0.03885515406727791,
-0.24664922058582306,
-0.09031327068805695,
-0.1552613079547882,
0.07611511647701263,
0.22061274945735931,
0.22781576216220856,
-0.04768906906247139,
0.023821283131837845,
0.027399782091379166,
0.0180002823472023,
0.011639763601124287,
-0.6506962776184082,
0.4857341945171356,
0.19742591679096222,
-0.25356248021125793,
0.16480956971645355,
-0.10509032756090164,
0.27086344361305237,
0.23261681199073792,
-0.44537878036499023,
-0.113672636449337,
-0.22595395147800446,
0.31076300144195557,
0.4475627541542053,
-0.20224277675151825,
0.07238496840000153,
-0.09495166689157486,
0.1288636475801468,
-0.0753970593214035,
-0.33944642543792725,
0.00844469666481018,
0.05205286294221878,
0.7311505079269409,
0.14999493956565857,
0.12651744484901428,
-0.1364467293024063,
0.20317700505256653,
0.4175194203853607,
-0.1546086072921753,
0.21047641336917877,
0.011174816638231277,
0.1802268773317337,
0.019540049135684967,
-0.3583568334579468,
0.1440390944480896,
0.022839635610580444,
-0.35360705852508545,
-0.05047158896923065,
-0.051830947399139404,
-0.001401323825120926,
-0.2670251429080963,
-0.010639995336532593,
-0.12939825654029846,
-0.34120991826057434,
-0.07948791235685349,
-0.08312219381332397,
0.25361934304237366,
0.21161633729934692,
0.1231754794716835,
-0.23573602735996246,
-0.6318880319595337,
-0.17083431780338287,
0.447479784488678,
-0.12355262786149979,
-0.05864167585968971,
0.05270826444029808,
-0.18957000970840454,
-0.33071282505989075,
0.44745558500289917,
0.29802006483078003,
0.6073160171508789,
0.11782830953598022,
0.03893471509218216,
0.05996319279074669,
-0.07823740690946579,
0.07009024918079376,
-0.08930660039186478,
0.2266208678483963,
0.07625941932201385,
0.0211503766477108,
-0.1093892902135849,
-0.16568174958229065,
-0.16470186412334442,
-0.17455501854419708,
0.5659579038619995,
0.09115809947252274,
-0.01769489049911499,
0.11891567707061768,
0.2135760337114334,
0.42040878534317017,
-0.23590344190597534,
-0.06282136589288712,
-0.37711629271507263,
-0.20728057622909546,
-0.3647631108760834,
-0.1180632933974266,
-0.4754370450973511,
0.06159951910376549,
-0.045535266399383545,
0.029505174607038498,
0.14794987440109253,
-0.06570382416248322,
0.34462884068489075,
0.22492721676826477,
0.15441778302192688,
0.4531787633895874,
0.23314183950424194,
-0.16749179363250732,
0.10830065608024597,
0.2188340723514557,
0.5179355144500732,
-0.19358931481838226,
-0.36037975549697876,
-0.15264269709587097,
-0.14533460140228271,
-0.10838981717824936,
0.12076042592525482,
0.01864931732416153,
-0.08294907957315445,
0.16563905775547028,
-0.13598346710205078,
0.269239604473114,
0.09044070541858673,
-0.06426742672920227,
0.19000786542892456,
-0.5104938745498657,
-0.18501359224319458,
0.16620171070098877,
0.17328321933746338,
-0.06869243830442429,
0.3116132318973541,
-0.19180817902088165,
0.009712683968245983,
0.038213346153497696,
0.31538817286491394,
0.8688938021659851,
-0.021893665194511414,
-0.03542788699269295,
0.21819952130317688,
-0.12994852662086487,
0.5052807927131653,
0.26575446128845215,
0.21021468937397003,
-0.3559127151966095,
-0.3961743116378784,
-0.1350575089454651,
-0.17329664528369904,
0.056849729269742966,
-0.17104141414165497,
-0.22927647829055786,
0.35276922583580017,
0.2268236130475998,
0.17468595504760742,
0.2256750464439392,
-0.0252704881131649,
-0.25861668586730957,
-0.01624257117509842,
-0.22932004928588867,
0.11816960573196411,
-0.34306830167770386,
0.47544535994529724,
-0.12092838436365128,
-0.10499345511198044,
-0.28574028611183167,
0.06720215082168579,
-0.38324350118637085,
0.31434202194213867,
0.09668028354644775,
0.17322131991386414,
0.2541338801383972,
-0.205942302942276,
-0.27797016501426697,
0.036374591290950775,
0.48717057704925537,
0.013175157830119133,
-0.32208770513534546,
-0.023294299840927124,
0.3273394703865051,
0.04170280694961548,
0.013400203548371792,
-0.13272148370742798,
0.29532602429389954,
-0.05559920892119408,
-0.1177688017487526,
0.10684917867183685,
0.16668325662612915,
-0.45568275451660156,
0.1250385046005249,
-0.177384153008461,
-0.18214446306228638,
-0.08186883479356766,
-0.07120011746883392,
0.07133247703313828,
0.15777240693569183,
-0.17742033302783966,
0.04768168926239014,
0.20794443786144257,
0.05235406756401062,
0.2391226887702942,
0.1268899291753769,
-0.3064703345298767,
-0.11351697146892548,
0.40454432368278503,
0.10579629987478256,
-0.03678479045629501,
0.386557936668396,
-0.13167156279087067,
-0.042377859354019165,
-0.09136068820953369,
0.13218757510185242,
-0.3543289601802826,
-0.4095630943775177,
-0.060403961688280106,
-0.2701902687549591,
0.41533029079437256,
0.02315855212509632,
0.628452718257904,
0.46449124813079834,
0.17834991216659546,
0.09646201133728027,
-0.5210323333740234,
-0.38881000876426697,
0.03154154121875763,
0.012936340644955635,
0.28702589869499207,
-0.3758368492126465,
0.2927761971950531,
0.13973499834537506,
-0.33715811371803284,
-0.16806069016456604,
0.08506432920694351,
-0.30665186047554016,
-0.050979144871234894,
0.0953969731926918,
0.13093870878219604,
0.06910943984985352,
0.06255064904689789,
0.004624702036380768,
0.045924533158540726,
-0.2008613497018814,
-0.04155305027961731,
-0.10222658514976501,
0.1907496154308319,
0.20050188899040222,
-0.1846124827861786,
-0.22847041487693787,
-0.14428849518299103,
-0.1481516808271408,
-0.12848475575447083,
-0.13650383055210114,
0.14993128180503845,
-0.19242031872272491,
0.13129498064517975,
-0.02783777192234993,
-0.014090672135353088,
0.025085583329200745,
0.11298435181379318,
-0.15221697092056274,
0.18370649218559265,
0.25705602765083313,
0.2861247956752777,
0.025334777310490608,
0.08619649708271027,
0.14372478425502777,
0.05713571235537529,
-0.10198034346103668,
-0.24108034372329712,
0.30602994561195374,
-0.26658809185028076,
0.14722444117069244,
0.10999022424221039,
0.04917801916599274,
0.48759472370147705,
0.020543916150927544,
-0.20285189151763916,
0.3525792956352234,
0.08451638370752335,
-0.3221231698989868,
0.06145421415567398,
0.5308296084403992,
0.2454988956451416,
-0.08741812407970428,
0.21343567967414856,
0.03581653907895088,
-0.3072909414768219,
0.6014171838760376,
-0.04301903396844864,
0.14748874306678772,
0.013823059387505054,
-0.00043784361332654953,
0.4038958251476288,
0.06269972026348114,
0.12536965310573578,
0.018943166360259056,
-0.14036868512630463,
0.02872157096862793,
0.06264834851026535,
-0.23161718249320984,
0.38498371839523315,
-0.16942009329795837,
0.2810198962688446,
-0.1107490286231041,
-0.4324720501899719,
0.2339342087507248,
-0.01753959059715271,
-0.20754098892211914,
-0.04208888113498688,
0.29316699504852295,
0.3398033678531647,
-0.2007790058851242,
0.1734028309583664,
-0.5587033033370972,
0.17316694557666779,
-0.19412842392921448,
0.029171161353588104,
-0.2529177665710449,
-0.30078235268592834,
-0.016884509474039078,
0.3131956458091736,
0.03950614109635353,
0.1465025097131729,
0.17002668976783752,
0.20764276385307312,
-0.30365633964538574,
-0.4746924340724945,
-0.0965430960059166,
0.20571714639663696,
-0.06281492859125137,
-0.12992067635059357,
0.1693892478942871,
0.027424372732639313,
-0.02191513031721115,
0.04532109946012497,
0.2925057113170624,
0.377688467502594,
0.41687503457069397,
0.24136404693126678,
-0.029594339430332184,
0.017622383311390877,
0.0726836770772934,
0.023312047123908997,
0.4255524277687073,
0.2902381718158722,
0.07100288569927216,
0.3429035246372223,
0.062206417322158813,
-0.0108726741746068,
0.20229420065879822,
-0.32711201906204224,
-0.18135620653629303,
0.09614421427249908,
0.3088452219963074,
0.18597684800624847,
0.3183513581752777,
-0.20382390916347504,
0.04169942066073418,
-0.38850101828575134,
0.1510501354932785,
0.0275712963193655,
-0.06244680657982826,
0.10615713149309158,
0.1031535267829895,
0.002769308164715767,
-0.3692868649959564,
0.29959362745285034,
0.4130438268184662,
0.18577656149864197,
-0.2702030539512634,
-0.5286297798156738,
-0.7571752667427063,
0.21162530779838562,
-0.1100476086139679,
-0.15977860987186432,
-0.2165714055299759,
-0.0024009738117456436,
-0.12156989425420761,
0.06250879168510437,
-0.01368933916091919,
-0.04815021529793739,
-0.06377530097961426,
-0.06091857701539993,
-0.23127587139606476,
-0.2271120399236679,
0.18649694323539734,
-0.2454635500907898,
-0.17089790105819702,
-0.2581581175327301,
0.20136135816574097,
-0.1007341593503952,
-0.021081458777189255,
0.01654892787337303,
-0.25577449798583984,
-0.011988386511802673,
0.23339620232582092,
0.16440781950950623,
0.27689337730407715,
0.660711407661438,
0.0985972061753273,
-0.10499285906553268,
-0.22001445293426514,
-0.05259467661380768,
0.006234702654182911,
0.16350921988487244,
0.126831516623497,
0.47621074318885803,
0.07816927134990692,
0.3746354579925537,
-0.27137064933776855,
0.49608346819877625,
0.17785197496414185,
-0.3425249457359314,
-0.21084877848625183,
-0.01909470185637474,
-0.373719722032547,
0.1639876663684845,
-0.06081918254494667,
0.1279100477695465,
0.017360348254442215,
0.3779895603656769,
-0.23519262671470642,
0.11214520037174225,
0.5374972820281982,
-0.1511538177728653,
-0.08083812892436981,
-0.34207743406295776,
0.12712332606315613,
-0.17668679356575012,
-0.3017488121986389,
-0.5635136961936951,
0.17132335901260376,
0.2985345721244812,
-0.03669200837612152,
-0.22375261783599854,
0.23234806954860687,
-0.03140455111861229,
0.2705058157444,
-0.057974398136138916,
0.2570030689239502,
0.1416119635105133,
-0.36661282181739807,
-0.12719054520130157,
-0.05908408388495445
] |
https://github.com/huggingface/datasets/issues/690 | XNLI dataset: NonMatchingChecksumError | I'll do a release in the next few days to make the fix available for everyone.
In the meantime you can load `xnli` with
```
xnli = load_dataset('xnli', script_version="master")
```
This will use the latest version of the xnli script (available on master branch), instead of the old one. | Hi,
I tried to download "xnli" dataset in colab using
`xnli = load_dataset(path='xnli')`
but got 'NonMatchingChecksumError' error
`NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-27-a87bedc82eeb> in <module>()
----> 1 xnli = load_dataset(path='xnli')
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']`
The same code worked well several days ago in colab but stopped working now. Thanks! | 49 | XNLI dataset: NonMatchingChecksumError
Hi,
I tried to download "xnli" dataset in colab using
`xnli = load_dataset(path='xnli')`
but got 'NonMatchingChecksumError' error
`NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-27-a87bedc82eeb> in <module>()
----> 1 xnli = load_dataset(path='xnli')
3 frames
/usr/local/lib/python3.6/dist-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name)
37 if len(bad_urls) > 0:
38 error_msg = "Checksums didn't match" + for_verification_name + ":\n"
---> 39 raise NonMatchingChecksumError(error_msg + str(bad_urls))
40 logger.info("All the checksums matched successfully" + for_verification_name)
41
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip']`
The same code worked well several days ago in colab but stopped working now. Thanks!
I'll do a release in the next few days to make the fix available for everyone.
In the meantime you can load `xnli` with
```
xnli = load_dataset('xnli', script_version="master")
```
This will use the latest version of the xnli script (available on master branch), instead of the old one. | [
-0.34403806924819946,
0.2931840419769287,
-0.00019777752459049225,
0.14771169424057007,
0.04289952665567398,
-0.016493290662765503,
0.06692826747894287,
0.433577299118042,
0.1969796121120453,
0.26154205203056335,
-0.19293852150440216,
0.39781928062438965,
-0.038058191537857056,
-0.0033611319959163666,
-0.23669716715812683,
0.4933420419692993,
0.03172557055950165,
0.21108578145503998,
-0.041603557765483856,
0.07393693923950195,
-0.2827177047729492,
0.17870047688484192,
-0.1861884891986847,
-0.3178005814552307,
-0.2123042643070221,
0.12193381041288376,
0.18474888801574707,
0.007517155259847641,
-0.25860437750816345,
-0.26159238815307617,
0.6109446883201599,
0.2217768281698227,
0.2797490060329437,
0.06178082898259163,
-0.0001173359269159846,
0.02371540665626526,
0.2804250717163086,
-0.18930889666080475,
-0.4183902442455292,
-0.19196076691150665,
-0.8016715049743652,
-0.34754854440689087,
0.06052813678979874,
-0.24025887250900269,
0.07479403913021088,
0.5231490731239319,
0.29524675011634827,
0.044249407947063446,
0.07998916506767273,
0.23951244354248047,
0.17879793047904968,
0.42788925766944885,
0.08404898643493652,
0.053593192249536514,
0.23395207524299622,
-0.08773921430110931,
-0.1639372855424881,
0.4085542559623718,
0.3534652590751648,
0.292239248752594,
0.0033400654792785645,
0.1321725845336914,
-0.28409284353256226,
0.30420351028442383,
-0.01835128664970398,
-0.00005737226456403732,
0.02217922732234001,
-0.262489378452301,
0.2590135335922241,
0.45354315638542175,
0.2009490430355072,
-0.3335738182067871,
-0.20445860922336578,
-0.056178439408540726,
0.07893844693899155,
-0.303409606218338,
0.27555742859840393,
0.08503346890211105,
-0.38969218730926514,
-0.13923291862010956,
-0.3486259877681732,
0.011796324513852596,
-0.015010185539722443,
0.12486320734024048,
0.1671702265739441,
0.5360563397407532,
-0.00825168564915657,
-0.029693827033042908,
0.1839882880449295,
-0.1859426349401474,
0.5659557580947876,
-0.16264432668685913,
-0.1520642191171646,
0.1428890824317932,
-0.44130849838256836,
-0.06179511547088623,
-0.16262903809547424,
0.5207802057266235,
0.4231543242931366,
0.25483638048171997,
0.16997909545898438,
0.04114203900098801,
-0.2934746742248535,
0.15232065320014954,
-0.18582811951637268,
0.2886755168437958,
0.12876597046852112,
0.031378671526908875,
0.29303836822509766,
0.3644457459449768,
-0.038698699325323105,
0.13649232685565948,
-0.19927005469799042,
-0.042160458862781525,
0.20769307017326355,
0.29058733582496643,
0.2817009687423706,
-0.563509464263916,
-0.3809592127799988,
-0.04103616252541542,
-0.21308398246765137,
-0.11398829519748688,
0.16769929230213165,
0.2496080994606018,
-0.16155168414115906,
0.1476878523826599,
-0.13711994886398315,
-0.11924000084400177,
-0.06913693249225616,
-0.2893773913383484,
-0.09513495117425919,
0.004090331494808197,
-0.11918391287326813,
0.1341283619403839,
0.3768649697303772,
-0.29478758573532104,
0.439227432012558,
-0.24045594036579132,
0.19500400125980377,
0.12509596347808838,
0.07085911929607391,
-0.09141609072685242,
-0.07689069956541061,
0.3040601313114166,
0.08955787122249603,
0.04182455688714981,
-0.031125161796808243,
-0.15285348892211914,
-0.21022313833236694,
0.23017287254333496,
-0.20999449491500854,
-0.23210979998111725,
0.07978837937116623,
0.10877897590398788,
-0.5416498780250549,
-0.37749722599983215,
0.018900811672210693,
-0.4489600360393524,
0.10884003341197968,
-0.31807830929756165,
-0.0343196764588356,
-0.3917698264122009,
-0.10670193284749985,
-0.24129033088684082,
0.18943646550178528,
0.3107249140739441,
-0.21636271476745605,
0.036051876842975616,
-0.24687592685222626,
-0.026451487094163895,
0.37161746621131897,
0.28494977951049805,
0.013859261758625507,
-0.14860260486602783,
-0.27336353063583374,
-0.13649368286132812,
0.28888577222824097,
-0.27849310636520386,
-0.6970910429954529,
0.128983274102211,
0.04306042939424515,
0.3183750510215759,
0.10469358414411545,
0.29839959740638733,
0.24618543684482574,
-0.016168618574738503,
-0.04382110387086868,
0.17529776692390442,
-0.09702235460281372,
-0.006965551525354385,
-0.263558030128479,
-0.3880695402622223,
0.1158204898238182,
0.13689018785953522,
0.15026190876960754,
0.12090840935707092,
-0.050293706357479095,
-0.03956378996372223,
0.4690096080303192,
-0.19057856500148773,
0.026835158467292786,
-0.05219653248786926,
0.6033701300621033,
-0.12178021669387817,
-0.20282898843288422,
-0.041407808661460876,
-0.40901586413383484,
0.31117790937423706,
0.1476171314716339,
0.12183766812086105,
-0.16868261992931366,
-0.009415488690137863,
-0.28051847219467163,
-0.13905586302280426,
-0.26716113090515137,
0.08377590030431747,
0.054987795650959015,
0.3394343852996826,
0.2582283616065979,
0.08878503739833832,
-0.0038401857018470764,
0.4365169405937195,
-0.3119865357875824,
0.07269018143415451,
-0.43650418519973755,
0.30944764614105225,
0.006204325705766678,
-0.06336452811956406,
0.06755132228136063,
0.11087842285633087,
-0.12259236723184586,
-0.10708164423704147,
-0.2557767629623413,
0.20786452293395996,
0.19603769481182098,
-0.2338295429944992,
0.04946049302816391,
0.3397030234336853,
0.005655588582158089,
-0.15570075809955597,
0.06750959903001785,
0.6223804950714111,
0.0914904847741127,
0.10298378020524979,
-0.13243317604064941,
0.5266983509063721,
-0.19243605434894562,
0.020006023347377777,
-0.06742704659700394,
0.1960761398077011,
0.40012621879577637,
-0.16829794645309448,
-0.161760151386261,
-0.20883309841156006,
0.2940329611301422,
0.0468100905418396,
0.1933836191892624,
0.05897523835301399,
-0.2583683133125305,
0.0743774026632309,
0.3327547013759613,
0.007445350289344788,
-0.03368779271841049,
0.09307374060153961,
0.004055440425872803,
0.011394567787647247,
0.19873861968517303,
0.5975399017333984,
0.34320971369743347,
0.09552725404500961,
-0.06160822883248329,
-0.028678620234131813,
-0.1906537264585495,
-0.2502814531326294,
-0.058055438101291656,
-0.12204211950302124,
0.2735540270805359,
0.15277361869812012,
0.13126341998577118,
-0.18341998755931854,
-0.35422706604003906,
-0.3979007303714752,
-0.09450384974479675,
0.41056329011917114,
-0.2074863314628601,
-0.14653077721595764,
-0.315577894449234,
-0.5586172938346863,
-0.4476633667945862,
-0.21989481151103973,
-0.15857918560504913,
-0.38546961545944214,
-0.14673073589801788,
0.41630637645721436,
0.16788040101528168,
0.2521425187587738,
-0.37582141160964966,
0.03527897596359253,
-0.04680544510483742,
-0.3844073414802551,
0.15037474036216736,
-0.20837005972862244,
-0.19084575772285461,
0.046213600784540176,
0.3689054548740387,
0.08672700822353363,
0.2980211675167084,
-0.4031926393508911,
0.18274806439876556,
-0.407594233751297,
-0.19812345504760742,
0.0023817457258701324,
-0.1348775327205658,
-0.0719992071390152,
0.1256294846534729,
0.17214344441890717,
-0.2058405578136444,
-0.357560932636261,
0.08032163977622986,
-0.14931745827198029,
-0.18815085291862488,
0.10968317091464996,
-0.274691641330719,
-0.15282370150089264,
0.09125779569149017,
-0.0726800188422203,
-0.25566068291664124,
-0.20096951723098755,
-0.09768342971801758,
0.11447826027870178,
0.2240271270275116,
0.26499149203300476,
-0.01917382888495922,
0.04234212264418602,
0.1130247414112091,
0.04006366431713104,
-0.02678714320063591,
-0.6075456738471985,
0.49214085936546326,
0.09473306685686111,
-0.2937290668487549,
0.18481950461864471,
-0.14706766605377197,
0.25526732206344604,
0.21049612760543823,
-0.4421551823616028,
-0.17243491113185883,
-0.23898713290691376,
0.37339165806770325,
0.43320468068122864,
-0.17276735603809357,
0.08129649609327316,
-0.05128491669893265,
0.07804576307535172,
-0.08476579189300537,
-0.2738978862762451,
0.0359920971095562,
-0.033557966351509094,
0.7024348974227905,
0.12586191296577454,
0.1708853542804718,
-0.06351438909769058,
0.20989775657653809,
0.39087772369384766,
-0.12218111753463745,
0.10518741607666016,
-0.027841398492455482,
0.23517106473445892,
-0.009069561958312988,
-0.3265690505504608,
0.11830737441778183,
-0.016559332609176636,
-0.3186420798301697,
-0.005300387740135193,
-0.05562962591648102,
-0.039262063801288605,
-0.24631735682487488,
0.10206881165504456,
-0.08815206587314606,
-0.39269375801086426,
-0.029187047854065895,
-0.07937902212142944,
0.19117820262908936,
0.20542016625404358,
0.1937781274318695,
-0.21947431564331055,
-0.5721911787986755,
-0.099553182721138,
0.3870616555213928,
-0.11907603591680527,
-0.05796346440911293,
0.04725589230656624,
-0.1828984171152115,
-0.41577497124671936,
0.4237546920776367,
0.3293735384941101,
0.5484647154808044,
0.1366918981075287,
-0.011609882116317749,
0.034502919763326645,
-0.09856034815311432,
0.08371630311012268,
-0.05975526571273804,
0.1749051958322525,
0.1334548443555832,
-0.05192355066537857,
-0.1844392567873001,
-0.15015986561775208,
-0.17450182139873505,
-0.15522530674934387,
0.5905575752258301,
0.05911196768283844,
-0.07765759527683258,
0.14080910384655,
0.23337122797966003,
0.3763696253299713,
-0.24628359079360962,
-0.0807742103934288,
-0.39728063344955444,
-0.2627047598361969,
-0.4146532416343689,
-0.15446245670318604,
-0.38294288516044617,
0.13295024633407593,
-0.10051939636468887,
0.044833239167928696,
0.12354030460119247,
-0.11540316790342331,
0.3189049959182739,
0.3315775990486145,
0.228211909532547,
0.41456544399261475,
0.28115037083625793,
-0.1363643854856491,
0.05125109478831291,
0.21073214709758759,
0.5573121905326843,
-0.17224256694316864,
-0.403103232383728,
-0.11641506105661392,
-0.15067628026008606,
-0.12883561849594116,
0.07160399854183197,
-0.006504900753498077,
-0.13952818512916565,
0.12296858429908752,
-0.16647322475910187,
0.24015219509601593,
0.19170507788658142,
-0.11670160293579102,
0.1203279122710228,
-0.43126657605171204,
-0.21168850362300873,
0.20730897784233093,
0.20929503440856934,
-0.03639141097664833,
0.27151715755462646,
-0.23443014919757843,
-0.02486523427069187,
0.08461891114711761,
0.3442433476448059,
0.8187864422798157,
-0.061905890703201294,
-0.013919282704591751,
0.28961682319641113,
-0.05572602152824402,
0.48667478561401367,
0.24848724901676178,
0.2380782663822174,
-0.40961626172065735,
-0.39629966020584106,
-0.03909846022725105,
-0.13660958409309387,
-0.01930035650730133,
-0.1677217334508896,
-0.2541605532169342,
0.33624908328056335,
0.17758561670780182,
0.12376312911510468,
0.20678675174713135,
0.04098495841026306,
-0.2272511124610901,
-0.12682799994945526,
-0.18751631677150726,
0.18444028496742249,
-0.2838769555091858,
0.4083460569381714,
-0.14447817206382751,
-0.06713467836380005,
-0.23170222342014313,
0.06162010878324509,
-0.393795907497406,
0.3232376277446747,
0.03292747959494591,
0.25429415702819824,
0.19143693149089813,
-0.18263445794582367,
-0.2856237292289734,
0.06717713922262192,
0.4448699951171875,
0.03887374326586723,
-0.304897665977478,
-0.004949245601892471,
0.35748931765556335,
-0.018486736342310905,
0.04085369408130646,
-0.06475654989480972,
0.3254223167896271,
-0.09008635580539703,
-0.08732493221759796,
0.08336156606674194,
0.17332586646080017,
-0.4621194005012512,
0.10826244950294495,
-0.17145687341690063,
-0.20831765234470367,
-0.03608141466975212,
-0.03175273537635803,
0.06690775603055954,
0.1646897792816162,
-0.15672700107097626,
0.10151636600494385,
0.21691428124904633,
-0.0008437896613031626,
0.25733667612075806,
0.10366175323724747,
-0.31984299421310425,
-0.10116696357727051,
0.34431546926498413,
0.09083759784698486,
-0.0055113546550273895,
0.33390095829963684,
-0.07034716010093689,
-0.06249535083770752,
-0.12473190575838089,
0.10681282728910446,
-0.27916786074638367,
-0.36325761675834656,
-0.007532824762165546,
-0.23897291719913483,
0.300151526927948,
0.018542181700468063,
0.6877381801605225,
0.44732779264450073,
0.14962755143642426,
0.08599044382572174,
-0.5489445924758911,
-0.43186092376708984,
0.07419339567422867,
0.047420866787433624,
0.30959439277648926,
-0.35134267807006836,
0.29061535000801086,
0.044617488980293274,
-0.32510268688201904,
-0.25086015462875366,
-0.02267579548060894,
-0.35613030195236206,
-0.05243948847055435,
0.10400256514549255,
0.09758968651294708,
0.1359901875257492,
0.08813485503196716,
0.06362971663475037,
0.06298132985830307,
-0.2140294760465622,
-0.11707069724798203,
-0.08616794645786285,
0.145987406373024,
0.12369977682828903,
-0.22115859389305115,
-0.16131044924259186,
-0.11971819400787354,
-0.1620865762233734,
-0.15739263594150543,
-0.0734206885099411,
0.18179187178611755,
-0.21015946567058563,
0.1287512481212616,
-0.06472568213939667,
0.0010962411761283875,
0.06966544687747955,
0.131108820438385,
-0.12144885957241058,
0.24501380324363708,
0.21380017697811127,
0.33222755789756775,
-0.02411618083715439,
0.07397133111953735,
0.19560864567756653,
0.00438341498374939,
-0.02557232975959778,
-0.14653170108795166,
0.23870563507080078,
-0.24232323467731476,
0.1400311440229416,
0.1473294347524643,
0.07038192451000214,
0.47818419337272644,
0.01616317220032215,
-0.15337440371513367,
0.34818992018699646,
0.15627995133399963,
-0.3181651830673218,
0.08611226081848145,
0.39443469047546387,
0.20429210364818573,
-0.017499402165412903,
0.24224981665611267,
0.009003981947898865,
-0.24379709362983704,
0.590853214263916,
-0.04851647466421127,
0.18499143421649933,
-0.033394597470760345,
0.041318126022815704,
0.3584519922733307,
-0.026485614478588104,
0.038649022579193115,
-0.02255767397582531,
-0.10226279497146606,
0.07751581072807312,
0.03201986104249954,
-0.22054117918014526,
0.38289013504981995,
-0.1937125325202942,
0.23516693711280823,
-0.0764029249548912,
-0.3828200697898865,
0.19270214438438416,
0.0023948252201080322,
-0.1918042004108429,
-0.029308952391147614,
0.32555460929870605,
0.3256492614746094,
-0.24659572541713715,
0.1597205251455307,
-0.544340193271637,
0.13140098750591278,
-0.17389464378356934,
-0.0069841984659433365,
-0.28488343954086304,
-0.2271636724472046,
-0.02605121210217476,
0.3117639124393463,
0.04374750331044197,
0.07550496608018875,
0.17720551788806915,
0.19446474313735962,
-0.3063089847564697,
-0.43920591473579407,
-0.04497092217206955,
0.20363849401474,
-0.07615058869123459,
-0.13527625799179077,
0.16376349329948425,
0.0486324317753315,
-0.013440676033496857,
-0.0013751722872257233,
0.280188649892807,
0.41086822748184204,
0.42734402418136597,
0.14951038360595703,
-0.04879556968808174,
-0.014814626425504684,
0.06956487149000168,
-0.054124314337968826,
0.39332014322280884,
0.29810792207717896,
0.12341319024562836,
0.3966400921344757,
0.12950021028518677,
-0.06979412585496902,
0.1862989068031311,
-0.2708439826965332,
-0.18042483925819397,
0.20339275896549225,
0.3322359621524811,
0.194576695561409,
0.33191466331481934,
-0.17346017062664032,
0.050439465790987015,
-0.3767872750759125,
0.06880059093236923,
-0.02459418773651123,
-0.07976731657981873,
0.10148696601390839,
0.0752713531255722,
0.05063483864068985,
-0.3402005136013031,
0.3276662230491638,
0.3530298173427582,
0.2047850787639618,
-0.24606409668922424,
-0.48185187578201294,
-0.7534545063972473,
0.2511006295681,
-0.14408312737941742,
-0.1838153451681137,
-0.23899807035923004,
0.12051428854465485,
-0.15040448307991028,
0.1064959168434143,
-0.03946082293987274,
-0.031222255900502205,
-0.020656103268265724,
-0.08296951651573181,
-0.2197113186120987,
-0.20521533489227295,
0.20644578337669373,
-0.32155150175094604,
-0.11167621612548828,
-0.31385669112205505,
0.10722249746322632,
-0.13707619905471802,
0.04977501928806305,
-0.005486816167831421,
-0.22077442705631256,
0.007533352822065353,
0.21352609992027283,
0.18020831048488617,
0.2631954550743103,
0.6508325338363647,
0.030620872974395752,
-0.12175542116165161,
-0.2570915222167969,
-0.10692879557609558,
-0.0540274903178215,
0.12792712450027466,
0.16813500225543976,
0.4546612799167633,
0.08221373707056046,
0.344687283039093,
-0.32469579577445984,
0.4766314923763275,
0.15324556827545166,
-0.3483618199825287,
-0.20645318925380707,
0.008585035800933838,
-0.4279061257839203,
0.16805554926395416,
-0.08782485872507095,
0.11112658679485321,
-0.025143899023532867,
0.345097154378891,
-0.21591317653656006,
0.045078299939632416,
0.5796916484832764,
-0.16427139937877655,
-0.08910529315471649,
-0.3459121584892273,
0.11203733086585999,
-0.16205519437789917,
-0.2647886574268341,
-0.5371894240379333,
0.19690236449241638,
0.20104625821113586,
-0.025951221585273743,
-0.2404850572347641,
0.2116144299507141,
-0.04442284256219864,
0.24307121336460114,
-0.07141479849815369,
0.25571030378341675,
0.14018702507019043,
-0.36587363481521606,
-0.13659246265888214,
-0.08907429873943329
] |
https://github.com/huggingface/datasets/issues/687 | `ArrowInvalid` occurs while running `Dataset.map()` function | Hi !
This is because `encode` expects one single text as input (str), or one tokenized text (List[str]).
I believe that you actually wanted to use `encode_batch` which expects a batch of texts.
However this method is only available for our "fast" tokenizers (ex: BertTokenizerFast).
BertJapanese is not one of them unfortunately and I don't think it will be added for now (see https://github.com/huggingface/transformers/pull/7141)...
cc @thomwolf for confirmation.
Therefore what I'd suggest for now is disable batching and process one text at a time using `encode`.
Note that you can make it faster by using multiprocessing:
```python
num_proc = None # Specify here the number of processes if you want to use multiprocessing. ex: num_proc = 4
encoded = train_ds.map(
lambda example: {'tokens': t.encode(example['title'], max_length=1000)}, num_proc=num_proc
)
```
| It seems to fail to process the final batch. This [colab](https://colab.research.google.com/drive/1_byLZRHwGP13PHMkJWo62Wp50S_Z2HMD?usp=sharing) can reproduce the error.
Code:
```python
# train_ds = Dataset(features: {
# 'title': Value(dtype='string', id=None),
# 'score': Value(dtype='float64', id=None)
# }, num_rows: 99999)
# suggested in #665
class PicklableTokenizer(BertJapaneseTokenizer):
def __getstate__(self):
state = dict(self.__dict__)
state['do_lower_case'] = self.word_tokenizer.do_lower_case
state['never_split'] = self.word_tokenizer.never_split
del state['word_tokenizer']
return state
def __setstate(self):
do_lower_case = state.pop('do_lower_case')
never_split = state.pop('never_split')
self.__dict__ = state
self.word_tokenizer = MecabTokenizer(
do_lower_case=do_lower_case, never_split=never_split
)
t = PicklableTokenizer.from_pretrained('bert-base-japanese-whole-word-masking')
encoded = train_ds.map(
lambda examples: {'tokens': t.encode(examples['title'], max_length=1000)}, batched=True, batch_size=1000
)
```
Error Message:
```
99% 99/100 [00:22<00:00, 39.07ba/s]
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
<timed exec> in <module>
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1242 fn_kwargs=fn_kwargs,
1243 new_fingerprint=new_fingerprint,
-> 1244 update_data=update_data,
1245 )
1246 else:
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
151 "output_all_columns": self._output_all_columns,
152 }
--> 153 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
154 if new_format["columns"] is not None:
155 new_format["columns"] = list(set(new_format["columns"]) & set(out.column_names))
/usr/local/lib/python3.6/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
161 # Call actual function
162
--> 163 out = func(self, *args, **kwargs)
164
165 # Update fingerprint of in-place transforms + update in-place history of transforms
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data)
1496 if update_data:
1497 batch = cast_to_python_objects(batch)
-> 1498 writer.write_batch(batch)
1499 if update_data:
1500 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
/usr/local/lib/python3.6/site-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
271 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type)
272 typed_sequence_examples[col] = typed_sequence
--> 273 pa_table = pa.Table.from_pydict(typed_sequence_examples)
274 self.write_table(pa_table)
275
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict()
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_arrays()
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.validate()
/usr/local/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Column 4 named tokens expected length 999 but got length 1000
```
| 128 | `ArrowInvalid` occurs while running `Dataset.map()` function
It seems to fail to process the final batch. This [colab](https://colab.research.google.com/drive/1_byLZRHwGP13PHMkJWo62Wp50S_Z2HMD?usp=sharing) can reproduce the error.
Code:
```python
# train_ds = Dataset(features: {
# 'title': Value(dtype='string', id=None),
# 'score': Value(dtype='float64', id=None)
# }, num_rows: 99999)
# suggested in #665
class PicklableTokenizer(BertJapaneseTokenizer):
def __getstate__(self):
state = dict(self.__dict__)
state['do_lower_case'] = self.word_tokenizer.do_lower_case
state['never_split'] = self.word_tokenizer.never_split
del state['word_tokenizer']
return state
def __setstate(self):
do_lower_case = state.pop('do_lower_case')
never_split = state.pop('never_split')
self.__dict__ = state
self.word_tokenizer = MecabTokenizer(
do_lower_case=do_lower_case, never_split=never_split
)
t = PicklableTokenizer.from_pretrained('bert-base-japanese-whole-word-masking')
encoded = train_ds.map(
lambda examples: {'tokens': t.encode(examples['title'], max_length=1000)}, batched=True, batch_size=1000
)
```
Error Message:
```
99% 99/100 [00:22<00:00, 39.07ba/s]
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
<timed exec> in <module>
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1242 fn_kwargs=fn_kwargs,
1243 new_fingerprint=new_fingerprint,
-> 1244 update_data=update_data,
1245 )
1246 else:
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
151 "output_all_columns": self._output_all_columns,
152 }
--> 153 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
154 if new_format["columns"] is not None:
155 new_format["columns"] = list(set(new_format["columns"]) & set(out.column_names))
/usr/local/lib/python3.6/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
161 # Call actual function
162
--> 163 out = func(self, *args, **kwargs)
164
165 # Update fingerprint of in-place transforms + update in-place history of transforms
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data)
1496 if update_data:
1497 batch = cast_to_python_objects(batch)
-> 1498 writer.write_batch(batch)
1499 if update_data:
1500 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
/usr/local/lib/python3.6/site-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
271 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type)
272 typed_sequence_examples[col] = typed_sequence
--> 273 pa_table = pa.Table.from_pydict(typed_sequence_examples)
274 self.write_table(pa_table)
275
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict()
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_arrays()
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.validate()
/usr/local/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Column 4 named tokens expected length 999 but got length 1000
```
Hi !
This is because `encode` expects one single text as input (str), or one tokenized text (List[str]).
I believe that you actually wanted to use `encode_batch` which expects a batch of texts.
However this method is only available for our "fast" tokenizers (ex: BertTokenizerFast).
BertJapanese is not one of them unfortunately and I don't think it will be added for now (see https://github.com/huggingface/transformers/pull/7141)...
cc @thomwolf for confirmation.
Therefore what I'd suggest for now is disable batching and process one text at a time using `encode`.
Note that you can make it faster by using multiprocessing:
```python
num_proc = None # Specify here the number of processes if you want to use multiprocessing. ex: num_proc = 4
encoded = train_ds.map(
lambda example: {'tokens': t.encode(example['title'], max_length=1000)}, num_proc=num_proc
)
```
| [
-0.3730498254299164,
0.020999237895011902,
-0.10263197124004364,
-0.016630016267299652,
0.11070314794778824,
0.1678619086742401,
0.12684766948223114,
0.3861757814884186,
-0.19624215364456177,
0.11606305837631226,
0.2094029188156128,
0.6037943959236145,
-0.11678694933652878,
0.040495365858078,
-0.34056881070137024,
0.012245409190654755,
-0.013880163431167603,
0.21327701210975647,
0.07592839002609253,
-0.20471449196338654,
-0.4590321183204651,
0.027331221848726273,
-0.3769530653953552,
0.21372228860855103,
-0.2793794870376587,
-0.4628056287765503,
0.2793683707714081,
-0.16937988996505737,
-0.22388015687465668,
-0.746396541595459,
0.20839890837669373,
-0.3749469816684723,
-0.02073938027024269,
0.32787424325942993,
-0.00011722592171281576,
0.04234866797924042,
0.40259283781051636,
0.06882383674383163,
-0.2501145601272583,
-0.05859267711639404,
-0.44304579496383667,
0.09256280958652496,
-0.0866483598947525,
-0.1329718381166458,
0.27787482738494873,
-0.03610457852482796,
0.031468138098716736,
-0.4573630094528198,
0.3919549584388733,
0.2821492850780487,
0.12637029588222504,
0.2222546637058258,
0.14423897862434387,
0.03232479467988014,
0.12791500985622406,
-0.12006941437721252,
-0.0969364270567894,
0.10473766922950745,
0.018151745200157166,
-0.2857320308685303,
-0.051298849284648895,
0.5154013633728027,
0.1809658408164978,
0.09226590394973755,
-0.14175495505332947,
-0.1290372610092163,
0.1971551477909088,
-0.41266313195228577,
0.303136944770813,
-0.09486126154661179,
0.081326425075531,
-0.19266831874847412,
-0.41550835967063904,
-0.013859622180461884,
0.13126318156719208,
-0.11980164796113968,
0.06289466470479965,
0.07464848458766937,
-0.09287267923355103,
0.059940092265605927,
-0.05192605406045914,
0.16700603067874908,
-0.21320559084415436,
0.08015773445367813,
0.17882832884788513,
0.4855763912200928,
0.013615965843200684,
0.4012260437011719,
0.21580636501312256,
-0.1161201149225235,
0.0043542031198740005,
0.09703338891267776,
0.019973820075392723,
0.24173521995544434,
-0.23741300404071808,
-0.12742504477500916,
-0.2640080451965332,
-0.18858879804611206,
0.10482580214738846,
-0.3353903293609619,
0.10427739471197128,
0.007284082472324371,
0.15457990765571594,
0.18843182921409607,
0.3311062157154083,
0.07993108034133911,
0.11569070816040039,
0.6522189974784851,
-0.11874319612979889,
-0.49182504415512085,
-0.028596095740795135,
0.09850142896175385,
-0.07018071413040161,
-0.4311814308166504,
0.2728594243526459,
0.3366878628730774,
0.1505466103553772,
0.1117759495973587,
-0.38642141222953796,
0.1871386170387268,
-0.5893796682357788,
-0.0437154695391655,
-0.04796948283910751,
0.19431227445602417,
0.12452490627765656,
0.05866182595491409,
-0.06861680001020432,
-0.053404293954372406,
-0.004659213125705719,
-0.13634777069091797,
-0.04111607372760773,
0.10840888321399689,
-0.4678284525871277,
-0.025171762332320213,
0.06342378258705139,
-0.0948990136384964,
0.32334938645362854,
-0.026672743260860443,
0.12306787818670273,
0.051465049386024475,
0.31442463397979736,
-0.2968287765979767,
0.4440646767616272,
0.09618645906448364,
-0.08729327470064163,
0.3249671757221222,
0.12958267331123352,
0.16029320657253265,
-0.058659620583057404,
0.12871241569519043,
-0.11733751744031906,
-0.23054270446300507,
0.07519274204969406,
0.1038941964507103,
0.3227939009666443,
-0.025357253849506378,
-0.1583411693572998,
-0.06927727162837982,
0.4308267831802368,
-0.055787086486816406,
0.1789766401052475,
-0.39012080430984497,
0.10898037254810333,
-0.23125308752059937,
-0.09152039140462875,
0.2688702940940857,
-0.5863619446754456,
0.11501878499984741,
0.09580469131469727,
0.22841371595859528,
0.23941996693611145,
0.25114232301712036,
-0.3237179219722748,
0.26812878251075745,
-0.06729646027088165,
0.7344176173210144,
0.09132407605648041,
-0.453660249710083,
-0.5696932077407837,
0.16519658267498016,
-0.07141721248626709,
-0.2872890830039978,
-0.1635802686214447,
-0.07537321001291275,
0.10526540130376816,
-0.07037827372550964,
0.2810492217540741,
0.15592826902866364,
-0.20662614703178406,
0.08119914680719376,
-0.08508279919624329,
-0.18053694069385529,
0.11346111446619034,
0.06504763662815094,
0.12706425786018372,
-0.2152687907218933,
0.04166056588292122,
-0.21210090816020966,
-0.01266605406999588,
-0.0910453349351883,
0.3163723349571228,
0.17285925149917603,
0.19680126011371613,
-0.07931050658226013,
0.17166145145893097,
0.05867774039506912,
-0.09765515476465225,
0.12585878372192383,
0.037958793342113495,
-0.11896730959415436,
-0.46106189489364624,
-0.23798489570617676,
-0.36785581707954407,
0.31810930371284485,
-0.4086672067642212,
-0.022438131272792816,
0.12478893995285034,
0.15456435084342957,
-0.05005616322159767,
-0.13162004947662354,
-0.2792711555957794,
-0.20150715112686157,
0.022313294932246208,
-0.01793709397315979,
-0.14435406029224396,
-0.023608021438121796,
-0.1345304399728775,
-0.306461900472641,
0.12080354988574982,
-0.0018812865018844604,
0.1851104348897934,
-0.017227664589881897,
-0.23617523908615112,
0.4019815921783447,
0.11105185002088547,
-0.1824733465909958,
0.26511210203170776,
-0.27034109830856323,
0.00673309899866581,
-0.26171261072158813,
-0.16636377573013306,
0.11911466717720032,
0.22053176164627075,
0.12810474634170532,
0.2508358359336853,
0.35583382844924927,
0.15220916271209717,
0.13572044670581818,
-0.1720411479473114,
0.07197295129299164,
0.13250818848609924,
0.13988308608531952,
-0.19586938619613647,
-0.2773175537586212,
-0.25918129086494446,
-0.1319919377565384,
0.5122653841972351,
-0.16234852373600006,
-0.11648617684841156,
0.03745710104703903,
0.3888113498687744,
0.057344164699316025,
0.07887043058872223,
-0.04648098349571228,
-0.21169117093086243,
0.1952369213104248,
0.13564275205135345,
0.2061399668455124,
0.09870466589927673,
0.082055002450943,
0.09508712589740753,
-0.08312387764453888,
0.008929961360991001,
0.04314051568508148,
0.09419374167919159,
0.1881881058216095,
0.317827433347702,
0.21415531635284424,
-0.074931301176548,
0.05435453727841377,
-0.24892860651016235,
-0.1475624442100525,
0.16881069540977478,
0.26065346598625183,
-0.18525546789169312,
0.17252887785434723,
-0.18877622485160828,
-0.06594738364219666,
-0.06838292628526688,
-0.4471707344055176,
0.17082776129245758,
-0.20917418599128723,
-0.06306136399507523,
-0.03512962535023689,
-0.18347449600696564,
0.4110241234302521,
0.0006338208913803101,
0.11648957431316376,
0.4737392067909241,
-0.015469377860426903,
-0.0733821839094162,
-0.27666157484054565,
-0.19337350130081177,
-0.015265747904777527,
0.22835583984851837,
-0.11027323454618454,
0.2966177463531494,
0.2208099067211151,
0.08440495282411575,
-0.29585710167884827,
-0.0957249104976654,
0.2139260172843933,
-0.18070539832115173,
-0.007603025063872337,
0.23419247567653656,
0.047135934233665466,
-0.5811722874641418,
-0.38722485303878784,
0.1693427860736847,
-0.07572507113218307,
-0.2313341498374939,
-0.15086016058921814,
-0.0024692669976502657,
-0.26347362995147705,
0.0694960206747055,
-0.3197096586227417,
-0.21237345039844513,
-0.23889723420143127,
0.18623480200767517,
-0.25567594170570374,
-0.03161747008562088,
0.06544472277164459,
0.2022593766450882,
0.33222052454948425,
-0.08156470209360123,
-0.36096134781837463,
-0.11511623859405518,
0.016596097499132156,
0.30851301550865173,
-0.2723377048969269,
0.0018395595252513885,
0.029960084706544876,
-0.195161372423172,
0.26196014881134033,
0.23162001371383667,
-0.16217400133609772,
0.18729452788829803,
-0.13910941779613495,
0.23046281933784485,
-0.32291296124458313,
0.2915932834148407,
0.3173621594905853,
0.22905734181404114,
-0.10797013342380524,
-0.2228882908821106,
0.005742054432630539,
0.15877406299114227,
-0.19308426976203918,
0.06350047886371613,
0.04045969247817993,
0.4070856273174286,
0.057836536318063736,
0.9904165267944336,
0.3290007412433624,
-0.18434830009937286,
0.16013556718826294,
0.04394041746854782,
-0.130933478474617,
-0.10318661481142044,
-0.20930087566375732,
-0.12853430211544037,
-0.25242236256599426,
-0.07928618788719177,
0.13660073280334473,
-0.1981545388698578,
-0.30250221490859985,
0.2497546672821045,
0.010588537901639938,
-0.5632715225219727,
-0.23759110271930695,
0.25439372658729553,
-0.27971571683883667,
0.25885438919067383,
-0.002411970868706703,
0.055576302111148834,
-0.2642833888530731,
0.2071426510810852,
0.07188782095909119,
-0.3598584532737732,
0.31962084770202637,
-0.14414818584918976,
0.08944517374038696,
-0.2419474571943283,
-0.37781822681427,
0.36873340606689453,
0.35927826166152954,
0.6092721223831177,
0.03776844963431358,
-0.0073761846870183945,
-0.02948015183210373,
0.09700745344161987,
0.41819727420806885,
-0.3694485127925873,
0.0814594179391861,
-0.03992152959108353,
-0.12314478307962418,
-0.04971284419298172,
0.046938445419073105,
-0.27379247546195984,
0.5196663737297058,
0.3642604351043701,
0.26708078384399414,
-0.27509450912475586,
0.0026988752651959658,
0.20094579458236694,
-0.10174525529146194,
0.05904002860188484,
-0.01118074543774128,
-0.17063097655773163,
-0.0688260942697525,
-0.5586472153663635,
0.17866769433021545,
0.44327113032341003,
-0.12268250435590744,
0.251591295003891,
-0.12119561433792114,
-0.255768746137619,
-0.19738507270812988,
-0.03354346752166748,
0.11363130807876587,
0.32740518450737,
0.2703150510787964,
0.07668855786323547,
0.1624629944562912,
0.25451457500457764,
0.440713107585907,
0.20384490489959717,
-0.10801154375076294,
-0.4675178527832031,
0.12817680835723877,
-0.13989880681037903,
0.29966863989830017,
0.308630108833313,
-0.17807817459106445,
0.05010715499520302,
0.08818864077329636,
0.050952810794115067,
0.23292453587055206,
0.24215705692768097,
0.2835567593574524,
0.22261762619018555,
-0.43963757157325745,
-0.2767537236213684,
0.40497612953186035,
-0.013868875801563263,
-0.09129834920167923,
0.6421586275100708,
0.34741634130477905,
-0.1849978119134903,
0.36928611993789673,
0.4013655483722687,
0.786271333694458,
0.25325077772140503,
-0.012424889951944351,
0.12484044581651688,
0.21707935631275177,
-0.10234666615724564,
0.4299080967903137,
0.1834251433610916,
-0.34773343801498413,
0.2617432773113251,
0.0012242402881383896,
-0.09060339629650116,
0.03416860103607178,
0.1903267800807953,
-0.27576345205307007,
-0.06778805702924728,
-0.12111338973045349,
0.07029467821121216,
0.0555838942527771,
-0.0016874149441719055,
-0.08335892111063004,
-0.33128172159194946,
0.1922796070575714,
0.06115903705358505,
0.0844457596540451,
-0.03500984236598015,
-0.1506827473640442,
-0.2564365267753601,
-0.15011663734912872,
-0.14966720342636108,
-0.11970768868923187,
0.006036389619112015,
-0.6829079985618591,
0.5650310516357422,
-0.04593106731772423,
-0.0839274525642395,
0.1509692519903183,
-0.08429691195487976,
0.33407312631607056,
0.025580517947673798,
-0.035346902906894684,
0.12059397995471954,
0.4888465106487274,
-0.14970387518405914,
-0.1564609706401825,
-0.20732678472995758,
0.30929648876190186,
-0.010179886594414711,
-0.184576153755188,
0.12228651344776154,
-0.16978472471237183,
-0.3743089437484741,
-0.03255564719438553,
0.07641704380512238,
0.17542752623558044,
-0.35030999779701233,
-0.22720809280872345,
-0.07099321484565735,
-0.33937761187553406,
-0.15504184365272522,
0.050209589302539825,
-0.13361546397209167,
-0.17311130464076996,
0.20580661296844482,
0.052239447832107544,
-0.31727680563926697,
0.22799167037010193,
0.13613031804561615,
-0.08922315388917923,
0.055755823850631714,
0.8029519319534302,
-0.17729388177394867,
-0.2020336091518402,
-0.22532209753990173,
0.19783055782318115,
0.5487525463104248,
-0.38118085265159607,
0.1656244695186615,
-0.3322678506374359,
0.07521575689315796,
0.18030273914337158,
0.3500502407550812,
0.17722320556640625,
0.18316566944122314,
-0.15003564953804016,
-0.3336006700992584,
-0.3557192385196686,
0.13225945830345154,
-0.11982424557209015,
0.32736703753471375,
0.038787588477134705,
0.3118835687637329,
-0.032274357974529266,
0.08122473955154419,
-0.2580687999725342,
-0.15722402930259705,
-0.2238391637802124,
0.20411354303359985,
0.09351783245801926,
0.18019652366638184,
-0.06561979651451111,
0.12068703770637512,
0.032749928534030914,
0.5000813007354736,
-0.1537916660308838,
-0.17772796750068665,
0.01563301309943199,
0.12125369906425476,
0.12922897934913635,
-0.056017450988292694,
-0.071584552526474,
-0.10471601784229279,
-0.28496453166007996,
-0.04464324936270714,
-0.11427865922451019,
-0.10972851514816284,
0.01117834821343422,
0.26951631903648376,
0.10764230787754059,
0.019040700048208237,
0.09804925322532654,
-0.09597063064575195,
-0.0032663047313690186,
0.04948091879487038,
-0.0821530893445015,
0.3108954131603241,
0.13301266729831696,
-0.002253010869026184,
-0.04818371310830116,
-0.10156833380460739,
0.08864204585552216,
0.19265127182006836,
0.04926483333110809,
-0.515228807926178,
-0.0905361920595169,
0.08677566796541214,
0.10242626816034317,
0.25163930654525757,
-0.30331873893737793,
-0.29799821972846985,
0.330412894487381,
0.18849173188209534,
-0.2688322067260742,
-0.011482658796012402,
0.10214520990848541,
-0.0675080418586731,
0.1170438826084137,
0.06956461071968079,
-0.14529834687709808,
0.07030574977397919,
-0.25066912174224854,
0.1509166955947876,
-0.012154352851212025,
-0.2579900026321411,
0.13550527393817902,
0.48851725459098816,
-0.08279529213905334,
0.0725361704826355,
0.29480135440826416,
0.25460368394851685,
0.4049091637134552,
0.5791909694671631,
-0.16549721360206604,
0.618457555770874,
0.21912971138954163,
0.08814108371734619,
-0.06337658315896988,
-0.11773121356964111,
0.07707902044057846,
0.25160667300224304,
-0.06245522201061249,
0.24344047904014587,
0.4535258710384369,
0.4902358651161194,
-0.25019410252571106,
-0.4952514171600342,
0.10459204763174057,
0.032424964010715485,
-0.3045402765274048,
-0.0541481077671051,
-0.6603556871414185,
-0.11976824700832367,
-0.056746888905763626,
0.015529591590166092,
-0.1565535068511963,
0.31627291440963745,
0.421938955783844,
0.14729899168014526,
-0.04216216504573822,
-0.13968582451343536,
-0.2276962399482727,
0.22377297282218933,
0.23581844568252563,
-0.3784122169017792,
0.009017985314130783,
-0.033262401819229126,
0.010948341339826584,
-0.2814304232597351,
0.4175466299057007,
0.46236440539360046,
0.3912789821624756,
-0.3112110495567322,
-0.07246304303407669,
-0.056183915585279465,
-0.07389083504676819,
0.06946355849504471,
0.16087226569652557,
0.33940237760543823,
-0.05868580564856529,
0.3028179407119751,
0.09873458743095398,
-0.15269531309604645,
-0.030884627252817154,
0.19965818524360657,
0.2229650467634201,
0.23591673374176025,
-0.28605005145072937,
-0.0518290251493454,
-0.19727307558059692,
-0.02755741775035858,
0.009057626128196716,
-0.39886966347694397,
0.3152639865875244,
0.31376633048057556,
-0.11302893608808517,
0.06877683848142624,
-0.11589806526899338,
0.05925116688013077,
-0.07004976272583008,
0.560812771320343,
0.4262844920158386,
-0.04520252346992493,
-0.39989495277404785,
-0.18877378106117249,
-0.3950440585613251,
0.14554181694984436,
-0.2550314664840698,
-0.044019874185323715,
0.0581868477165699,
0.07532542943954468,
0.10593903809785843,
0.3091358542442322,
0.3110462725162506,
-0.05569295585155487,
-0.21001656353473663,
0.4253169894218445,
-0.1567315012216568,
-0.05070028081536293,
0.05985454469919205,
-0.009193096309900284,
0.16918107867240906,
-0.4654400646686554,
0.07339470088481903,
0.13063377141952515,
0.09907842427492142,
-0.16037152707576752,
-0.4318065941333771,
0.09091943502426147,
-0.186019167304039,
0.5836703181266785,
0.2212095558643341,
0.15059016644954681,
-0.21234413981437683,
-0.07727345079183578,
-0.10933659970760345,
-0.21415328979492188,
-0.12674181163311005,
0.020057670772075653,
0.3289569020271301,
0.5786899328231812,
-0.07535591721534729,
0.05392266809940338,
-0.2971653342247009,
-0.17122270166873932,
0.0016314312815666199,
-0.03094288520514965,
-0.20576052367687225,
0.17937664687633514,
-0.12474651634693146,
0.05584979057312012,
-0.26529666781425476,
0.26647353172302246,
0.06581924855709076,
0.11681278049945831,
-0.3982464671134949,
-0.3479592502117157,
0.5152157545089722,
-0.6306793689727783,
-0.6763503551483154,
0.06640587747097015,
-0.13697108626365662,
0.3331308662891388,
-0.03222931921482086,
-0.49386534094810486,
-0.009121045470237732,
0.1045907735824585,
0.04933561384677887,
-0.4475875198841095,
-0.020746532827615738,
0.01987486332654953,
0.10072380304336548,
0.006097391247749329,
0.6639658212661743,
0.13401338458061218,
-0.1051308661699295,
-0.05413203686475754,
-0.3198484182357788
] |
https://github.com/huggingface/datasets/issues/687 | `ArrowInvalid` occurs while running `Dataset.map()` function | Thank you very much for the kind and precise suggestion!
I'm looking forward to seeing BertJapaneseTokenizer built into the "fast" tokenizers.
I tried `map` with multiprocessing as follows, and it worked!
```python
# There was a Pickle problem if I use `lambda` for multiprocessing
def encode(examples):
return {'tokens': t.encode(examples['title'], max_length=1000)}
num_proc = 8
encoded = train_ds.map(encode, num_proc=num_proc)
```
Thank you again! | It seems to fail to process the final batch. This [colab](https://colab.research.google.com/drive/1_byLZRHwGP13PHMkJWo62Wp50S_Z2HMD?usp=sharing) can reproduce the error.
Code:
```python
# train_ds = Dataset(features: {
# 'title': Value(dtype='string', id=None),
# 'score': Value(dtype='float64', id=None)
# }, num_rows: 99999)
# suggested in #665
class PicklableTokenizer(BertJapaneseTokenizer):
def __getstate__(self):
state = dict(self.__dict__)
state['do_lower_case'] = self.word_tokenizer.do_lower_case
state['never_split'] = self.word_tokenizer.never_split
del state['word_tokenizer']
return state
def __setstate(self):
do_lower_case = state.pop('do_lower_case')
never_split = state.pop('never_split')
self.__dict__ = state
self.word_tokenizer = MecabTokenizer(
do_lower_case=do_lower_case, never_split=never_split
)
t = PicklableTokenizer.from_pretrained('bert-base-japanese-whole-word-masking')
encoded = train_ds.map(
lambda examples: {'tokens': t.encode(examples['title'], max_length=1000)}, batched=True, batch_size=1000
)
```
Error Message:
```
99% 99/100 [00:22<00:00, 39.07ba/s]
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
<timed exec> in <module>
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1242 fn_kwargs=fn_kwargs,
1243 new_fingerprint=new_fingerprint,
-> 1244 update_data=update_data,
1245 )
1246 else:
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
151 "output_all_columns": self._output_all_columns,
152 }
--> 153 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
154 if new_format["columns"] is not None:
155 new_format["columns"] = list(set(new_format["columns"]) & set(out.column_names))
/usr/local/lib/python3.6/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
161 # Call actual function
162
--> 163 out = func(self, *args, **kwargs)
164
165 # Update fingerprint of in-place transforms + update in-place history of transforms
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data)
1496 if update_data:
1497 batch = cast_to_python_objects(batch)
-> 1498 writer.write_batch(batch)
1499 if update_data:
1500 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
/usr/local/lib/python3.6/site-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
271 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type)
272 typed_sequence_examples[col] = typed_sequence
--> 273 pa_table = pa.Table.from_pydict(typed_sequence_examples)
274 self.write_table(pa_table)
275
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict()
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_arrays()
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.validate()
/usr/local/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Column 4 named tokens expected length 999 but got length 1000
```
| 61 | `ArrowInvalid` occurs while running `Dataset.map()` function
It seems to fail to process the final batch. This [colab](https://colab.research.google.com/drive/1_byLZRHwGP13PHMkJWo62Wp50S_Z2HMD?usp=sharing) can reproduce the error.
Code:
```python
# train_ds = Dataset(features: {
# 'title': Value(dtype='string', id=None),
# 'score': Value(dtype='float64', id=None)
# }, num_rows: 99999)
# suggested in #665
class PicklableTokenizer(BertJapaneseTokenizer):
def __getstate__(self):
state = dict(self.__dict__)
state['do_lower_case'] = self.word_tokenizer.do_lower_case
state['never_split'] = self.word_tokenizer.never_split
del state['word_tokenizer']
return state
def __setstate(self):
do_lower_case = state.pop('do_lower_case')
never_split = state.pop('never_split')
self.__dict__ = state
self.word_tokenizer = MecabTokenizer(
do_lower_case=do_lower_case, never_split=never_split
)
t = PicklableTokenizer.from_pretrained('bert-base-japanese-whole-word-masking')
encoded = train_ds.map(
lambda examples: {'tokens': t.encode(examples['title'], max_length=1000)}, batched=True, batch_size=1000
)
```
Error Message:
```
99% 99/100 [00:22<00:00, 39.07ba/s]
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
<timed exec> in <module>
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1242 fn_kwargs=fn_kwargs,
1243 new_fingerprint=new_fingerprint,
-> 1244 update_data=update_data,
1245 )
1246 else:
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
151 "output_all_columns": self._output_all_columns,
152 }
--> 153 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
154 if new_format["columns"] is not None:
155 new_format["columns"] = list(set(new_format["columns"]) & set(out.column_names))
/usr/local/lib/python3.6/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
161 # Call actual function
162
--> 163 out = func(self, *args, **kwargs)
164
165 # Update fingerprint of in-place transforms + update in-place history of transforms
/usr/local/lib/python3.6/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data)
1496 if update_data:
1497 batch = cast_to_python_objects(batch)
-> 1498 writer.write_batch(batch)
1499 if update_data:
1500 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
/usr/local/lib/python3.6/site-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
271 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type)
272 typed_sequence_examples[col] = typed_sequence
--> 273 pa_table = pa.Table.from_pydict(typed_sequence_examples)
274 self.write_table(pa_table)
275
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict()
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_arrays()
/usr/local/lib/python3.6/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.validate()
/usr/local/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Column 4 named tokens expected length 999 but got length 1000
```
Thank you very much for the kind and precise suggestion!
I'm looking forward to seeing BertJapaneseTokenizer built into the "fast" tokenizers.
I tried `map` with multiprocessing as follows, and it worked!
```python
# There was a Pickle problem if I use `lambda` for multiprocessing
def encode(examples):
return {'tokens': t.encode(examples['title'], max_length=1000)}
num_proc = 8
encoded = train_ds.map(encode, num_proc=num_proc)
```
Thank you again! | [
-0.3730498254299164,
0.020999237895011902,
-0.10263197124004364,
-0.016630016267299652,
0.11070314794778824,
0.1678619086742401,
0.12684766948223114,
0.3861757814884186,
-0.19624215364456177,
0.11606305837631226,
0.2094029188156128,
0.6037943959236145,
-0.11678694933652878,
0.040495365858078,
-0.34056881070137024,
0.012245409190654755,
-0.013880163431167603,
0.21327701210975647,
0.07592839002609253,
-0.20471449196338654,
-0.4590321183204651,
0.027331221848726273,
-0.3769530653953552,
0.21372228860855103,
-0.2793794870376587,
-0.4628056287765503,
0.2793683707714081,
-0.16937988996505737,
-0.22388015687465668,
-0.746396541595459,
0.20839890837669373,
-0.3749469816684723,
-0.02073938027024269,
0.32787424325942993,
-0.00011722592171281576,
0.04234866797924042,
0.40259283781051636,
0.06882383674383163,
-0.2501145601272583,
-0.05859267711639404,
-0.44304579496383667,
0.09256280958652496,
-0.0866483598947525,
-0.1329718381166458,
0.27787482738494873,
-0.03610457852482796,
0.031468138098716736,
-0.4573630094528198,
0.3919549584388733,
0.2821492850780487,
0.12637029588222504,
0.2222546637058258,
0.14423897862434387,
0.03232479467988014,
0.12791500985622406,
-0.12006941437721252,
-0.0969364270567894,
0.10473766922950745,
0.018151745200157166,
-0.2857320308685303,
-0.051298849284648895,
0.5154013633728027,
0.1809658408164978,
0.09226590394973755,
-0.14175495505332947,
-0.1290372610092163,
0.1971551477909088,
-0.41266313195228577,
0.303136944770813,
-0.09486126154661179,
0.081326425075531,
-0.19266831874847412,
-0.41550835967063904,
-0.013859622180461884,
0.13126318156719208,
-0.11980164796113968,
0.06289466470479965,
0.07464848458766937,
-0.09287267923355103,
0.059940092265605927,
-0.05192605406045914,
0.16700603067874908,
-0.21320559084415436,
0.08015773445367813,
0.17882832884788513,
0.4855763912200928,
0.013615965843200684,
0.4012260437011719,
0.21580636501312256,
-0.1161201149225235,
0.0043542031198740005,
0.09703338891267776,
0.019973820075392723,
0.24173521995544434,
-0.23741300404071808,
-0.12742504477500916,
-0.2640080451965332,
-0.18858879804611206,
0.10482580214738846,
-0.3353903293609619,
0.10427739471197128,
0.007284082472324371,
0.15457990765571594,
0.18843182921409607,
0.3311062157154083,
0.07993108034133911,
0.11569070816040039,
0.6522189974784851,
-0.11874319612979889,
-0.49182504415512085,
-0.028596095740795135,
0.09850142896175385,
-0.07018071413040161,
-0.4311814308166504,
0.2728594243526459,
0.3366878628730774,
0.1505466103553772,
0.1117759495973587,
-0.38642141222953796,
0.1871386170387268,
-0.5893796682357788,
-0.0437154695391655,
-0.04796948283910751,
0.19431227445602417,
0.12452490627765656,
0.05866182595491409,
-0.06861680001020432,
-0.053404293954372406,
-0.004659213125705719,
-0.13634777069091797,
-0.04111607372760773,
0.10840888321399689,
-0.4678284525871277,
-0.025171762332320213,
0.06342378258705139,
-0.0948990136384964,
0.32334938645362854,
-0.026672743260860443,
0.12306787818670273,
0.051465049386024475,
0.31442463397979736,
-0.2968287765979767,
0.4440646767616272,
0.09618645906448364,
-0.08729327470064163,
0.3249671757221222,
0.12958267331123352,
0.16029320657253265,
-0.058659620583057404,
0.12871241569519043,
-0.11733751744031906,
-0.23054270446300507,
0.07519274204969406,
0.1038941964507103,
0.3227939009666443,
-0.025357253849506378,
-0.1583411693572998,
-0.06927727162837982,
0.4308267831802368,
-0.055787086486816406,
0.1789766401052475,
-0.39012080430984497,
0.10898037254810333,
-0.23125308752059937,
-0.09152039140462875,
0.2688702940940857,
-0.5863619446754456,
0.11501878499984741,
0.09580469131469727,
0.22841371595859528,
0.23941996693611145,
0.25114232301712036,
-0.3237179219722748,
0.26812878251075745,
-0.06729646027088165,
0.7344176173210144,
0.09132407605648041,
-0.453660249710083,
-0.5696932077407837,
0.16519658267498016,
-0.07141721248626709,
-0.2872890830039978,
-0.1635802686214447,
-0.07537321001291275,
0.10526540130376816,
-0.07037827372550964,
0.2810492217540741,
0.15592826902866364,
-0.20662614703178406,
0.08119914680719376,
-0.08508279919624329,
-0.18053694069385529,
0.11346111446619034,
0.06504763662815094,
0.12706425786018372,
-0.2152687907218933,
0.04166056588292122,
-0.21210090816020966,
-0.01266605406999588,
-0.0910453349351883,
0.3163723349571228,
0.17285925149917603,
0.19680126011371613,
-0.07931050658226013,
0.17166145145893097,
0.05867774039506912,
-0.09765515476465225,
0.12585878372192383,
0.037958793342113495,
-0.11896730959415436,
-0.46106189489364624,
-0.23798489570617676,
-0.36785581707954407,
0.31810930371284485,
-0.4086672067642212,
-0.022438131272792816,
0.12478893995285034,
0.15456435084342957,
-0.05005616322159767,
-0.13162004947662354,
-0.2792711555957794,
-0.20150715112686157,
0.022313294932246208,
-0.01793709397315979,
-0.14435406029224396,
-0.023608021438121796,
-0.1345304399728775,
-0.306461900472641,
0.12080354988574982,
-0.0018812865018844604,
0.1851104348897934,
-0.017227664589881897,
-0.23617523908615112,
0.4019815921783447,
0.11105185002088547,
-0.1824733465909958,
0.26511210203170776,
-0.27034109830856323,
0.00673309899866581,
-0.26171261072158813,
-0.16636377573013306,
0.11911466717720032,
0.22053176164627075,
0.12810474634170532,
0.2508358359336853,
0.35583382844924927,
0.15220916271209717,
0.13572044670581818,
-0.1720411479473114,
0.07197295129299164,
0.13250818848609924,
0.13988308608531952,
-0.19586938619613647,
-0.2773175537586212,
-0.25918129086494446,
-0.1319919377565384,
0.5122653841972351,
-0.16234852373600006,
-0.11648617684841156,
0.03745710104703903,
0.3888113498687744,
0.057344164699316025,
0.07887043058872223,
-0.04648098349571228,
-0.21169117093086243,
0.1952369213104248,
0.13564275205135345,
0.2061399668455124,
0.09870466589927673,
0.082055002450943,
0.09508712589740753,
-0.08312387764453888,
0.008929961360991001,
0.04314051568508148,
0.09419374167919159,
0.1881881058216095,
0.317827433347702,
0.21415531635284424,
-0.074931301176548,
0.05435453727841377,
-0.24892860651016235,
-0.1475624442100525,
0.16881069540977478,
0.26065346598625183,
-0.18525546789169312,
0.17252887785434723,
-0.18877622485160828,
-0.06594738364219666,
-0.06838292628526688,
-0.4471707344055176,
0.17082776129245758,
-0.20917418599128723,
-0.06306136399507523,
-0.03512962535023689,
-0.18347449600696564,
0.4110241234302521,
0.0006338208913803101,
0.11648957431316376,
0.4737392067909241,
-0.015469377860426903,
-0.0733821839094162,
-0.27666157484054565,
-0.19337350130081177,
-0.015265747904777527,
0.22835583984851837,
-0.11027323454618454,
0.2966177463531494,
0.2208099067211151,
0.08440495282411575,
-0.29585710167884827,
-0.0957249104976654,
0.2139260172843933,
-0.18070539832115173,
-0.007603025063872337,
0.23419247567653656,
0.047135934233665466,
-0.5811722874641418,
-0.38722485303878784,
0.1693427860736847,
-0.07572507113218307,
-0.2313341498374939,
-0.15086016058921814,
-0.0024692669976502657,
-0.26347362995147705,
0.0694960206747055,
-0.3197096586227417,
-0.21237345039844513,
-0.23889723420143127,
0.18623480200767517,
-0.25567594170570374,
-0.03161747008562088,
0.06544472277164459,
0.2022593766450882,
0.33222052454948425,
-0.08156470209360123,
-0.36096134781837463,
-0.11511623859405518,
0.016596097499132156,
0.30851301550865173,
-0.2723377048969269,
0.0018395595252513885,
0.029960084706544876,
-0.195161372423172,
0.26196014881134033,
0.23162001371383667,
-0.16217400133609772,
0.18729452788829803,
-0.13910941779613495,
0.23046281933784485,
-0.32291296124458313,
0.2915932834148407,
0.3173621594905853,
0.22905734181404114,
-0.10797013342380524,
-0.2228882908821106,
0.005742054432630539,
0.15877406299114227,
-0.19308426976203918,
0.06350047886371613,
0.04045969247817993,
0.4070856273174286,
0.057836536318063736,
0.9904165267944336,
0.3290007412433624,
-0.18434830009937286,
0.16013556718826294,
0.04394041746854782,
-0.130933478474617,
-0.10318661481142044,
-0.20930087566375732,
-0.12853430211544037,
-0.25242236256599426,
-0.07928618788719177,
0.13660073280334473,
-0.1981545388698578,
-0.30250221490859985,
0.2497546672821045,
0.010588537901639938,
-0.5632715225219727,
-0.23759110271930695,
0.25439372658729553,
-0.27971571683883667,
0.25885438919067383,
-0.002411970868706703,
0.055576302111148834,
-0.2642833888530731,
0.2071426510810852,
0.07188782095909119,
-0.3598584532737732,
0.31962084770202637,
-0.14414818584918976,
0.08944517374038696,
-0.2419474571943283,
-0.37781822681427,
0.36873340606689453,
0.35927826166152954,
0.6092721223831177,
0.03776844963431358,
-0.0073761846870183945,
-0.02948015183210373,
0.09700745344161987,
0.41819727420806885,
-0.3694485127925873,
0.0814594179391861,
-0.03992152959108353,
-0.12314478307962418,
-0.04971284419298172,
0.046938445419073105,
-0.27379247546195984,
0.5196663737297058,
0.3642604351043701,
0.26708078384399414,
-0.27509450912475586,
0.0026988752651959658,
0.20094579458236694,
-0.10174525529146194,
0.05904002860188484,
-0.01118074543774128,
-0.17063097655773163,
-0.0688260942697525,
-0.5586472153663635,
0.17866769433021545,
0.44327113032341003,
-0.12268250435590744,
0.251591295003891,
-0.12119561433792114,
-0.255768746137619,
-0.19738507270812988,
-0.03354346752166748,
0.11363130807876587,
0.32740518450737,
0.2703150510787964,
0.07668855786323547,
0.1624629944562912,
0.25451457500457764,
0.440713107585907,
0.20384490489959717,
-0.10801154375076294,
-0.4675178527832031,
0.12817680835723877,
-0.13989880681037903,
0.29966863989830017,
0.308630108833313,
-0.17807817459106445,
0.05010715499520302,
0.08818864077329636,
0.050952810794115067,
0.23292453587055206,
0.24215705692768097,
0.2835567593574524,
0.22261762619018555,
-0.43963757157325745,
-0.2767537236213684,
0.40497612953186035,
-0.013868875801563263,
-0.09129834920167923,
0.6421586275100708,
0.34741634130477905,
-0.1849978119134903,
0.36928611993789673,
0.4013655483722687,
0.786271333694458,
0.25325077772140503,
-0.012424889951944351,
0.12484044581651688,
0.21707935631275177,
-0.10234666615724564,
0.4299080967903137,
0.1834251433610916,
-0.34773343801498413,
0.2617432773113251,
0.0012242402881383896,
-0.09060339629650116,
0.03416860103607178,
0.1903267800807953,
-0.27576345205307007,
-0.06778805702924728,
-0.12111338973045349,
0.07029467821121216,
0.0555838942527771,
-0.0016874149441719055,
-0.08335892111063004,
-0.33128172159194946,
0.1922796070575714,
0.06115903705358505,
0.0844457596540451,
-0.03500984236598015,
-0.1506827473640442,
-0.2564365267753601,
-0.15011663734912872,
-0.14966720342636108,
-0.11970768868923187,
0.006036389619112015,
-0.6829079985618591,
0.5650310516357422,
-0.04593106731772423,
-0.0839274525642395,
0.1509692519903183,
-0.08429691195487976,
0.33407312631607056,
0.025580517947673798,
-0.035346902906894684,
0.12059397995471954,
0.4888465106487274,
-0.14970387518405914,
-0.1564609706401825,
-0.20732678472995758,
0.30929648876190186,
-0.010179886594414711,
-0.184576153755188,
0.12228651344776154,
-0.16978472471237183,
-0.3743089437484741,
-0.03255564719438553,
0.07641704380512238,
0.17542752623558044,
-0.35030999779701233,
-0.22720809280872345,
-0.07099321484565735,
-0.33937761187553406,
-0.15504184365272522,
0.050209589302539825,
-0.13361546397209167,
-0.17311130464076996,
0.20580661296844482,
0.052239447832107544,
-0.31727680563926697,
0.22799167037010193,
0.13613031804561615,
-0.08922315388917923,
0.055755823850631714,
0.8029519319534302,
-0.17729388177394867,
-0.2020336091518402,
-0.22532209753990173,
0.19783055782318115,
0.5487525463104248,
-0.38118085265159607,
0.1656244695186615,
-0.3322678506374359,
0.07521575689315796,
0.18030273914337158,
0.3500502407550812,
0.17722320556640625,
0.18316566944122314,
-0.15003564953804016,
-0.3336006700992584,
-0.3557192385196686,
0.13225945830345154,
-0.11982424557209015,
0.32736703753471375,
0.038787588477134705,
0.3118835687637329,
-0.032274357974529266,
0.08122473955154419,
-0.2580687999725342,
-0.15722402930259705,
-0.2238391637802124,
0.20411354303359985,
0.09351783245801926,
0.18019652366638184,
-0.06561979651451111,
0.12068703770637512,
0.032749928534030914,
0.5000813007354736,
-0.1537916660308838,
-0.17772796750068665,
0.01563301309943199,
0.12125369906425476,
0.12922897934913635,
-0.056017450988292694,
-0.071584552526474,
-0.10471601784229279,
-0.28496453166007996,
-0.04464324936270714,
-0.11427865922451019,
-0.10972851514816284,
0.01117834821343422,
0.26951631903648376,
0.10764230787754059,
0.019040700048208237,
0.09804925322532654,
-0.09597063064575195,
-0.0032663047313690186,
0.04948091879487038,
-0.0821530893445015,
0.3108954131603241,
0.13301266729831696,
-0.002253010869026184,
-0.04818371310830116,
-0.10156833380460739,
0.08864204585552216,
0.19265127182006836,
0.04926483333110809,
-0.515228807926178,
-0.0905361920595169,
0.08677566796541214,
0.10242626816034317,
0.25163930654525757,
-0.30331873893737793,
-0.29799821972846985,
0.330412894487381,
0.18849173188209534,
-0.2688322067260742,
-0.011482658796012402,
0.10214520990848541,
-0.0675080418586731,
0.1170438826084137,
0.06956461071968079,
-0.14529834687709808,
0.07030574977397919,
-0.25066912174224854,
0.1509166955947876,
-0.012154352851212025,
-0.2579900026321411,
0.13550527393817902,
0.48851725459098816,
-0.08279529213905334,
0.0725361704826355,
0.29480135440826416,
0.25460368394851685,
0.4049091637134552,
0.5791909694671631,
-0.16549721360206604,
0.618457555770874,
0.21912971138954163,
0.08814108371734619,
-0.06337658315896988,
-0.11773121356964111,
0.07707902044057846,
0.25160667300224304,
-0.06245522201061249,
0.24344047904014587,
0.4535258710384369,
0.4902358651161194,
-0.25019410252571106,
-0.4952514171600342,
0.10459204763174057,
0.032424964010715485,
-0.3045402765274048,
-0.0541481077671051,
-0.6603556871414185,
-0.11976824700832367,
-0.056746888905763626,
0.015529591590166092,
-0.1565535068511963,
0.31627291440963745,
0.421938955783844,
0.14729899168014526,
-0.04216216504573822,
-0.13968582451343536,
-0.2276962399482727,
0.22377297282218933,
0.23581844568252563,
-0.3784122169017792,
0.009017985314130783,
-0.033262401819229126,
0.010948341339826584,
-0.2814304232597351,
0.4175466299057007,
0.46236440539360046,
0.3912789821624756,
-0.3112110495567322,
-0.07246304303407669,
-0.056183915585279465,
-0.07389083504676819,
0.06946355849504471,
0.16087226569652557,
0.33940237760543823,
-0.05868580564856529,
0.3028179407119751,
0.09873458743095398,
-0.15269531309604645,
-0.030884627252817154,
0.19965818524360657,
0.2229650467634201,
0.23591673374176025,
-0.28605005145072937,
-0.0518290251493454,
-0.19727307558059692,
-0.02755741775035858,
0.009057626128196716,
-0.39886966347694397,
0.3152639865875244,
0.31376633048057556,
-0.11302893608808517,
0.06877683848142624,
-0.11589806526899338,
0.05925116688013077,
-0.07004976272583008,
0.560812771320343,
0.4262844920158386,
-0.04520252346992493,
-0.39989495277404785,
-0.18877378106117249,
-0.3950440585613251,
0.14554181694984436,
-0.2550314664840698,
-0.044019874185323715,
0.0581868477165699,
0.07532542943954468,
0.10593903809785843,
0.3091358542442322,
0.3110462725162506,
-0.05569295585155487,
-0.21001656353473663,
0.4253169894218445,
-0.1567315012216568,
-0.05070028081536293,
0.05985454469919205,
-0.009193096309900284,
0.16918107867240906,
-0.4654400646686554,
0.07339470088481903,
0.13063377141952515,
0.09907842427492142,
-0.16037152707576752,
-0.4318065941333771,
0.09091943502426147,
-0.186019167304039,
0.5836703181266785,
0.2212095558643341,
0.15059016644954681,
-0.21234413981437683,
-0.07727345079183578,
-0.10933659970760345,
-0.21415328979492188,
-0.12674181163311005,
0.020057670772075653,
0.3289569020271301,
0.5786899328231812,
-0.07535591721534729,
0.05392266809940338,
-0.2971653342247009,
-0.17122270166873932,
0.0016314312815666199,
-0.03094288520514965,
-0.20576052367687225,
0.17937664687633514,
-0.12474651634693146,
0.05584979057312012,
-0.26529666781425476,
0.26647353172302246,
0.06581924855709076,
0.11681278049945831,
-0.3982464671134949,
-0.3479592502117157,
0.5152157545089722,
-0.6306793689727783,
-0.6763503551483154,
0.06640587747097015,
-0.13697108626365662,
0.3331308662891388,
-0.03222931921482086,
-0.49386534094810486,
-0.009121045470237732,
0.1045907735824585,
0.04933561384677887,
-0.4475875198841095,
-0.020746532827615738,
0.01987486332654953,
0.10072380304336548,
0.006097391247749329,
0.6639658212661743,
0.13401338458061218,
-0.1051308661699295,
-0.05413203686475754,
-0.3198484182357788
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.