html_url
stringlengths 51
51
| title
stringlengths 6
280
| comments
stringlengths 67
24.7k
| body
stringlengths 51
36.2k
| __index_level_0__
int64 1
1.17k
| comment_length
int64 16
1.45k
| text
stringlengths 190
38.3k
| embeddings
sequence |
---|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/4707 | Dataset Viewer issue for TheNoob3131/mosquito-data | Thanks for the details. For now, the dataset viewer is always disabled on private datasets (see https://huggingface.co/docs/hub/datasets-viewer for more details) | ### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_ | 623 | 20 | Dataset Viewer issue for TheNoob3131/mosquito-data
### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_
Thanks for the details. For now, the dataset viewer is always disabled on private datasets (see https://huggingface.co/docs/hub/datasets-viewer for more details) | [
-1.1714085340499878,
-0.8619429469108582,
-0.876535177230835,
1.4983512163162231,
-0.05169123038649559,
-1.3295490741729736,
0.05664925277233124,
-0.998508095741272,
1.5156970024108887,
-0.6815755367279053,
0.13298442959785461,
-1.705940842628479,
-0.08798371255397797,
-0.5209565162658691,
-0.6673023700714111,
-0.9000547528266907,
-0.29353708028793335,
-0.7945390343666077,
1.110134243965149,
2.5809333324432373,
1.3048406839370728,
-1.28596830368042,
2.7243688106536865,
0.6462036371231079,
-0.30492153763771057,
-1.082590103149414,
0.6443526148796082,
0.048260923475027084,
-1.2062958478927612,
-0.4966684877872467,
-0.9483254551887512,
-0.015928296372294426,
-0.5432217717170715,
-0.344215989112854,
0.011216400191187859,
0.511008083820343,
-0.13703367114067078,
-0.24397248029708862,
-0.531609296798706,
-0.6869106292724609,
0.4042242765426636,
-0.39374956488609314,
0.8292755484580994,
-0.3786182403564453,
1.816649317741394,
-0.6633559465408325,
0.2595458924770355,
0.6104769706726074,
1.4081164598464966,
0.08975707739591599,
-0.10328279435634613,
0.2793918251991272,
0.26926088333129883,
-0.009579281322658062,
0.46071213483810425,
1.162451982498169,
0.5028285384178162,
0.5464231371879578,
0.5038002133369446,
-2.1727442741394043,
1.3587563037872314,
-0.8480265140533447,
0.18016669154167175,
1.5514311790466309,
-1.130685806274414,
0.532891035079956,
-1.7644479274749756,
-0.05634823814034462,
0.5708014369010925,
-2.3104591369628906,
0.29779061675071716,
-1.2314581871032715,
-0.5718310475349426,
0.9745314717292786,
0.39943233132362366,
-1.292630910873413,
0.11341951787471771,
-0.5731223821640015,
1.1278020143508911,
0.4457694888114929,
1.058304786682129,
-1.6997332572937012,
0.03397807851433754,
-0.3400425910949707,
-0.10738962888717651,
-1.4895310401916504,
-1.5732238292694092,
0.46402508020401,
0.6307870745658875,
0.8288288116455078,
0.009790483862161636,
0.8296242952346802,
-1.0654464960098267,
0.7056167125701904,
-0.8718551993370056,
-1.6584546566009521,
-1.350907564163208,
-2.47554874420166,
-2.305943489074707,
0.8396468758583069,
-0.4280831813812256,
-0.5911802053451538,
1.9996200799942017,
-0.9898846745491028,
-1.8614182472229004,
1.1686110496520996,
0.2170202136039734,
-0.0033342139795422554,
2.5065228939056396,
0.2741931974887848,
-0.7608033418655396,
0.42945337295532227,
-0.7896533608436584,
0.810650110244751,
-0.40582898259162903,
1.4273803234100342,
0.6079928874969482,
-0.978308379650116,
1.6806007623672485,
-0.5096736550331116,
0.5518286228179932,
-0.6587080359458923,
-0.5761579871177673,
-0.9473235011100769,
0.3768617510795593,
1.9875924587249756,
-0.28266096115112305,
1.6851913928985596,
-0.3533405661582947,
-1.5656516551971436,
-1.4938093423843384,
0.8041943907737732,
0.5054597854614258,
-0.9417981505393982,
0.18692755699157715,
-0.3949236273765564,
0.08988523483276367,
-0.0627153217792511,
1.0981922149658203,
1.1610453128814697,
0.5261242389678955,
-0.408418744802475,
-0.9331643581390381,
0.28123772144317627,
-0.03595621883869171,
-0.5765977501869202,
-1.8478420972824097,
-0.2782742381095886,
0.23510804772377014,
0.5964774489402771,
-1.2877658605575562,
1.6304799318313599,
0.8756747245788574,
1.964009165763855,
0.9300446510314941,
-0.2509134113788605,
1.3581901788711548,
-0.08582502603530884,
1.9250377416610718,
-0.5267316102981567,
0.7285606265068054,
-0.3222801089286804,
-1.2420156002044678,
0.8457974791526794,
-0.4763485789299011,
-1.9531530141830444,
-0.9502595663070679,
-0.855156421661377,
-0.19755688309669495,
-0.7093198299407959,
0.9670866131782532,
-0.3830094039440155,
-1.422985315322876,
0.2402820587158203,
-0.641463041305542,
0.30724847316741943,
-1.399130940437317,
0.22361522912979126,
0.7715272903442383,
-0.565338671207428,
-0.11987528204917908,
-0.2844339609146118,
-1.3483885526657104,
-0.4781602621078491,
0.2838027775287628,
1.940279245376587,
-0.6472765207290649,
0.9994969367980957,
0.9595932960510254,
-0.6865505576133728,
0.047316718846559525,
0.24658215045928955,
-0.2774406373500824,
0.90867680311203,
-1.1143443584442139,
-0.4055602252483368,
1.1460789442062378,
-0.19070780277252197,
-0.7468162775039673,
1.3920103311538696,
0.8000756502151489,
-1.0456598997116089,
-0.2917776107788086,
-0.23828566074371338,
-0.7945069670677185,
-0.06442024558782578,
-1.5794322490692139,
-0.17983552813529968,
0.29477906227111816,
-1.523043155670166,
-0.38401079177856445,
-0.1409628689289093,
1.3687896728515625,
-0.22418886423110962,
1.3045092821121216,
-0.23698794841766357,
-0.1152307540178299,
-0.35962429642677307,
-0.5608583688735962,
0.19001108407974243,
-0.16824719309806824,
-0.562545120716095,
0.2425193190574646,
-0.877480149269104,
0.3289481997489929,
1.4220019578933716,
0.3816876709461212,
0.12268105894327164,
0.6289299726486206,
1.0914360284805298,
0.32333996891975403,
-0.25397878885269165,
-0.9015318751335144,
-1.6724990606307983,
1.9402626752853394,
-1.4084562063217163,
1.892332673072815,
0.8751184344291687,
-0.02212548814713955,
-1.7970651388168335,
-1.83091139793396,
1.3616514205932617,
1.2453844547271729,
2.305549144744873,
0.598503589630127,
0.4194570481777191,
-0.8819804191589355,
-0.8138898015022278,
0.15185892581939697,
-1.0759010314941406,
-0.7075352072715759,
0.09852155297994614,
2.282594680786133,
1.805832028388977,
-0.5321897864341736,
-0.27110227942466736,
-0.9898074865341187,
1.0893383026123047,
-0.17560812830924988,
0.2100047767162323,
2.0137417316436768,
-0.3164931535720825,
-0.9134384989738464,
1.1566197872161865,
-2.4069607257843018,
0.2241578996181488,
2.070188045501709,
0.24325600266456604,
0.13489463925361633,
-1.4761706590652466,
-0.7251901626586914,
-0.13424408435821533,
-0.39817142486572266,
-1.2070112228393555,
0.6491578221321106,
-0.266581267118454,
-0.8572758436203003,
-1.5342644453048706,
0.1087234765291214,
-1.1338512897491455,
-1.6750785112380981,
0.4290904998779297,
1.9266051054000854,
2.0470166206359863,
-0.8508685827255249,
1.432497501373291,
-0.15190264582633972,
0.16968563199043274,
1.299569010734558,
1.237776279449463,
3.0751638412475586,
1.775660753250122,
-1.158024787902832,
0.8331950902938843,
-0.06154961511492729,
-0.4996394217014313,
1.2654311656951904,
-1.0330718755722046,
1.2140597105026245,
-0.23202958703041077,
-1.326778531074524,
-1.311155915260315,
0.9205610752105713,
0.49748992919921875,
-0.007772483862936497,
-0.4780151844024658,
1.3320807218551636,
0.03528879955410957,
1.2986128330230713,
0.6052727699279785,
-0.4333065450191498,
0.4977782964706421,
-0.4468478262424469,
-0.4692598879337311,
1.549052357673645,
0.1700637936592102,
-1.601507544517517,
-2.2434873580932617,
-0.2707699239253998,
-0.7793319821357727,
-0.1924719512462616,
-0.6923045516014099,
-1.116100788116455,
1.5404109954833984,
0.500157356262207,
-1.058752417564392,
-0.23638120293617249,
-0.24249523878097534,
-0.5568336844444275,
2.6573312282562256,
-1.331336498260498,
-0.08276106417179108,
-1.0184073448181152,
-0.4285893440246582,
1.7698057889938354,
-1.1388814449310303,
-0.17819350957870483,
-0.9887970089912415,
-0.7422370910644531,
-1.3420703411102295,
-0.44688519835472107,
-0.04859456792473793,
-0.9463870525360107,
0.7364920377731323,
0.05670558661222458,
-1.0196174383163452,
-0.12169281393289566,
-0.8641480803489685,
0.9469802379608154,
-0.030404726043343544,
0.23933365941047668,
1.9126640558242798,
0.34668388962745667,
-0.39697960019111633,
0.8030081987380981,
1.209492802619934,
0.5773409605026245,
-0.7524564266204834,
0.08829638361930847,
-0.597955584526062,
0.30897510051727295,
-1.434141755104065,
0.23853307962417603,
-2.937741279602051,
0.6474723219871521,
-0.09520097821950912,
-0.10440479964017868,
0.02520456165075302,
-1.3813066482543945,
1.141121506690979,
2.4760823249816895,
-1.2278962135314941,
0.5247361063957214,
0.40559953451156616,
1.2061951160430908,
-1.5625500679016113,
0.3995988965034485,
-0.5065589547157288,
2.0679097175598145,
0.09798736870288849,
1.270085334777832,
-0.43118739128112793,
-2.0791923999786377,
0.6957805156707764,
-1.3198310136795044,
-1.078628659248352,
0.7823646664619446,
-0.96707683801651,
0.21791592240333557,
-1.4878307580947876,
-0.18683722615242004,
-0.9013156294822693,
-1.3333572149276733,
0.8481791019439697,
0.03303411230444908,
0.2989231050014496,
-0.4475574493408203,
0.3012242913246155,
-2.1753859519958496,
-1.3402692079544067,
-0.15551313757896423,
-0.9528992772102356,
0.380167692899704,
-0.3011111617088318,
0.5253881812095642,
-0.14460152387619019,
0.10902859270572662,
0.1898021399974823,
1.4100693464279175,
3.343947172164917,
0.17789363861083984,
0.2529887855052948,
-0.06003062427043915,
-1.0616211891174316,
1.4785369634628296,
1.0283106565475464,
-0.04607066884636879,
-0.635202944278717,
-0.9584910273551941,
1.3323932886123657,
1.950718641281128,
1.074198603630066,
0.10195299237966537,
-0.8396868705749512,
-0.5606170892715454,
-0.02412928268313408,
0.24979716539382935,
0.4977031350135803,
0.883167028427124,
-0.01344360038638115,
0.12636831402778625,
1.446370005607605,
1.1541558504104614,
-0.46394461393356323,
0.43436744809150696,
-1.0273164510726929,
-0.4345242381095886,
0.3403168320655823,
0.20555824041366577,
0.04893125221133232,
0.4654298722743988,
-1.0338832139968872,
-0.3170962631702423,
-0.21299263834953308,
-0.96368408203125,
-0.7386155724525452,
-0.4745943546295166,
-0.3975013196468353,
1.6087291240692139,
0.1493079960346222,
-0.47843897342681885,
-0.0246012844145298,
-0.8250038027763367,
-0.23956358432769775,
-1.1054010391235352,
0.2724089026451111,
-0.1275315284729004,
-0.09674491733312607,
-0.09610015898942947,
1.7621171474456787,
-1.1316819190979004,
-2.264150619506836,
0.15983057022094727,
0.37616389989852905,
-0.3620326817035675,
0.10772117972373962,
1.7322477102279663,
0.48740673065185547,
1.4659042358398438,
1.2611863613128662,
1.070479393005371,
-0.7019465565681458,
-1.296183466911316,
0.6595003008842468,
1.1144070625305176,
-1.3770800828933716,
0.9109702110290527,
-0.16472795605659485,
-0.5421033501625061,
0.5989804267883301,
1.2450312376022339,
0.569917619228363,
-1.826653003692627,
0.8297292590141296,
-0.9942331910133362,
0.7128205299377441,
0.6910456418991089,
0.9262974262237549,
0.34177857637405396,
0.8871030807495117,
-1.3209199905395508,
-1.147295355796814,
-0.772592306137085,
-0.5182404518127441,
1.8860375881195068,
-0.28393298387527466,
0.5943539142608643,
-0.09090347588062286,
-1.1925698518753052,
0.021538227796554565,
0.8284675478935242,
0.289404034614563,
-0.3577204942703247,
0.9477590322494507,
-0.6850433945655823,
-1.0844552516937256,
-1.3775711059570312,
-0.46229830384254456,
-0.8582350611686707,
-0.9009206891059875,
1.0487971305847168,
0.6659469604492188,
0.34238362312316895,
1.9491392374038696,
0.5586034059524536,
0.33976754546165466,
-2.642749309539795,
0.9364396333694458,
0.1590820848941803,
0.11379169672727585,
0.81038498878479,
0.1833069622516632,
1.1321561336517334,
-0.03949430584907532,
0.4331746995449066,
-2.222480058670044,
2.1428675651550293,
-0.1895330846309662,
0.5599381923675537,
-0.009189723059535027,
-0.11639619618654251,
1.1708617210388184,
0.5647572875022888,
0.638500452041626,
-1.0758191347122192,
0.7687174081802368,
-0.5196636915206909,
1.1039519309997559,
0.9943385124206543,
-0.9174346327781677,
-0.014710409566760063,
1.3705065250396729,
0.4823169708251953,
-0.3607954680919647,
-0.9710890054702759,
-0.7461902499198914,
0.9698142409324646,
1.6285897493362427,
0.06826785206794739,
0.04188685864210129,
0.8211392760276794,
0.4463963210582733,
-1.215989351272583,
0.04152795672416687,
-0.7258480191230774,
-0.60268634557724,
1.6612917184829712,
1.9392139911651611,
-0.08991853147745132,
-0.18716025352478027,
-0.8272202610969543,
-1.1482585668563843,
0.6869099736213684,
-0.1239575669169426,
0.022308431565761566,
0.7290682792663574,
-0.6396799683570862,
1.044880986213684,
0.7051588296890259,
0.9849128723144531,
0.009963447228074074,
0.31259164214134216,
0.47886425256729126,
-0.21670174598693848,
-1.1622841358184814,
-0.27984699606895447,
-1.1507757902145386,
-2.578043222427368,
0.37269842624664307,
-0.3852503001689911,
-1.405297875404358,
0.1349106729030609,
-1.178208351135254,
1.0051062107086182,
-0.6611383557319641,
-1.1546326875686646,
-1.526073694229126,
0.25600484013557434,
-0.26506391167640686,
0.840933620929718,
-1.5941909551620483,
-0.1520446538925171,
1.2660411596298218,
0.864873468875885,
-0.628322958946228,
1.1027007102966309,
0.2359531819820404,
1.0376956462860107,
0.7326769828796387,
-0.3871859908103943,
0.5706018805503845,
0.14677292108535767,
-1.3732635974884033,
0.5830116868019104,
1.2135958671569824,
0.2001582682132721,
1.3686224222183228,
-0.4512341320514679,
-0.009232244454324245,
0.5849730968475342,
-0.5992757081985474,
-0.455082505941391,
-0.39533424377441406,
0.7728474736213684,
0.20272383093833923,
-0.9997389912605286,
-0.07981406897306442,
-0.19135445356369019,
-0.22243744134902954,
0.26028260588645935,
-1.5694879293441772,
-0.34319913387298584,
-0.4171862006187439,
-0.5538536310195923,
-1.336898922920227,
0.07102152705192566,
1.342251181602478,
-0.7871409058570862,
-0.3087756931781769,
0.5170824527740479,
0.40466079115867615,
0.49741554260253906,
0.6131585240364075,
-0.7020789384841919,
-0.12132386863231659,
-0.328357070684433,
-0.24199992418289185,
0.29765063524246216,
1.200228214263916,
-0.11213991791009903,
-1.071375846862793,
0.7382219433784485,
-0.31867244839668274,
0.08042461425065994,
2.0277304649353027,
0.09234748035669327,
-0.8395747542381287,
0.28693172335624695,
-0.5351483821868896,
1.9385019540786743,
1.463513731956482,
1.3257414102554321,
-0.14819645881652832,
-0.7288205027580261,
0.6819770336151123,
-0.04328344389796257,
-0.3204285502433777,
0.8882789611816406,
0.5499113202095032,
-0.12658387422561646,
-1.4642729759216309,
0.606651782989502,
1.3047163486480713,
-0.8820242285728455,
-0.8307297825813293,
0.07343123108148575,
-0.9081069231033325,
1.1633472442626953,
0.7115254998207092,
0.45012354850769043,
0.2631549835205078,
1.6115083694458008,
0.7092965245246887,
-0.5395406484603882,
0.3621092140674591,
0.42055362462997437,
-0.13087432086467743,
-1.9944387674331665,
-0.8412055373191833,
0.3019148111343384,
-0.37506547570228577,
-1.4497249126434326,
1.3386214971542358,
-1.1030884981155396,
-0.7654532790184021,
0.49196189641952515,
0.20574644207954407,
1.4457453489303589,
0.3146415948867798,
1.6531990766525269,
2.017261505126953,
0.926115870475769,
0.23361605405807495,
1.3024232387542725,
-0.06447857618331909,
-0.41744840145111084,
1.7543115615844727,
-0.3823719322681427,
0.5093282461166382,
1.0652118921279907,
-0.4208492338657379,
-1.0504045486450195,
-0.752224326133728,
-1.1522964239120483,
-0.5568321943283081,
1.1218843460083008,
0.29332855343818665,
-1.0868648290634155,
0.15211769938468933,
1.4857254028320312,
0.16370415687561035,
-0.22466251254081726,
0.6337966322898865,
0.4639645516872406,
-0.7832245230674744,
-0.04110175371170044,
-0.859275758266449,
0.5373579859733582,
-0.18403995037078857,
-0.25991353392601013,
0.3128930628299713,
0.45335471630096436,
1.2663156986236572,
-0.0535677969455719,
0.2622928321361542,
1.1291087865829468,
-1.3363364934921265,
1.5206351280212402,
-0.5792286396026611,
0.1494010090827942,
-2.459939479827881,
1.416525959968567,
-0.7705821394920349,
1.8611730337142944,
-2.6605870723724365,
0.4236166179180145,
-0.6377130150794983,
-0.33672255277633667,
0.27982717752456665,
-0.5079904794692993,
0.06238311529159546,
-0.15977808833122253,
-1.1301064491271973,
0.01169678196310997,
-0.7325745820999146,
0.6476089954376221,
1.2713782787322998,
1.2446051836013794,
-1.017372965812683,
-0.1865459382534027,
-1.7832151651382446,
-0.22837546467781067,
-0.8240574598312378,
0.35253965854644775,
-2.0912110805511475,
-0.12791654467582703,
-1.9189507961273193,
-2.437572479248047,
-1.2989228963851929,
-0.7549293041229248,
1.137191653251648,
0.2605544328689575,
-0.9773012399673462,
1.185784101486206,
-0.29525160789489746,
-1.6609104871749878,
1.1117080450057983,
-2.180351972579956
] |
https://github.com/huggingface/datasets/issues/4707 | Dataset Viewer issue for TheNoob3131/mosquito-data | Hi, it was working fine for a few hours, but then I can't see the dataset viewer again (public dataset). Why is this still happening?
It's the same error too:

| ### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_ | 623 | 31 | Dataset Viewer issue for TheNoob3131/mosquito-data
### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_
Hi, it was working fine for a few hours, but then I can't see the dataset viewer again (public dataset). Why is this still happening?
It's the same error too:

| [
-1.2166471481323242,
-0.8833286762237549,
-0.8125847578048706,
1.4564458131790161,
-0.08578333258628845,
-1.2678301334381104,
0.05626176670193672,
-0.9920864701271057,
1.572251796722412,
-0.7151564359664917,
0.15583999454975128,
-1.6852846145629883,
-0.0188496895134449,
-0.6049222350120544,
-0.7054093480110168,
-0.8182762265205383,
-0.2828587293624878,
-0.8747663497924805,
1.152308464050293,
2.558532476425171,
1.2267155647277832,
-1.3888275623321533,
2.766199827194214,
0.5811512470245361,
-0.3147679567337036,
-1.0444289445877075,
0.5401066541671753,
0.06956236064434052,
-1.1998072862625122,
-0.4774327576160431,
-0.986328125,
-0.03513713926076889,
-0.5498846173286438,
-0.46496155858039856,
0.02100163698196411,
0.410112589597702,
-0.19089388847351074,
-0.28723156452178955,
-0.4524696171283722,
-0.6929882764816284,
0.418417751789093,
-0.33344051241874695,
0.8967105150222778,
-0.3082914352416992,
1.8459148406982422,
-0.6370552778244019,
0.31669116020202637,
0.5987738966941833,
1.391026496887207,
0.17597541213035583,
-0.07995437830686569,
0.29222652316093445,
0.3127376437187195,
-0.003271672409027815,
0.42927053570747375,
1.1442389488220215,
0.5501894950866699,
0.5222645401954651,
0.6035609841346741,
-2.20595645904541,
1.3563711643218994,
-0.8909498453140259,
0.24077600240707397,
1.4944580793380737,
-1.0972576141357422,
0.5172572135925293,
-1.7677040100097656,
-0.0363178476691246,
0.5332003831863403,
-2.322134256362915,
0.3025360703468323,
-1.259111762046814,
-0.5967502593994141,
0.955826461315155,
0.3691574037075043,
-1.2901802062988281,
0.09183921664953232,
-0.5492285490036011,
1.1161768436431885,
0.4088485538959503,
1.0802664756774902,
-1.7350165843963623,
-0.04875079169869423,
-0.29652655124664307,
0.06788947433233261,
-1.4077703952789307,
-1.6072022914886475,
0.49997764825820923,
0.6410835385322571,
0.7168205380439758,
-0.032348353415727615,
0.8967949151992798,
-1.019777774810791,
0.7321465611457825,
-0.9229442477226257,
-1.611994743347168,
-1.3790178298950195,
-2.3646304607391357,
-2.3176069259643555,
0.8058171272277832,
-0.4315454065799713,
-0.5342561602592468,
2.0074329376220703,
-1.0408638715744019,
-1.772510051727295,
1.2157357931137085,
0.23086042702198029,
-0.022172730416059494,
2.4442853927612305,
0.2796114385128021,
-0.8006220459938049,
0.49732786417007446,
-0.8356143832206726,
0.8133598566055298,
-0.45756402611732483,
1.4249162673950195,
0.607837975025177,
-0.9782288670539856,
1.6186801195144653,
-0.4150374233722687,
0.5083202719688416,
-0.6888382434844971,
-0.5204028487205505,
-0.9077913165092468,
0.359340637922287,
1.9807401895523071,
-0.26094451546669006,
1.6731468439102173,
-0.3521862328052521,
-1.5713986158370972,
-1.5008924007415771,
0.8329957723617554,
0.5667421817779541,
-0.9412049055099487,
0.2524968385696411,
-0.4250412881374359,
0.13072426617145538,
-0.03383028507232666,
1.0767645835876465,
1.2530972957611084,
0.5451589226722717,
-0.3386087119579315,
-0.9820985198020935,
0.2400791496038437,
-0.11987116187810898,
-0.5763098001480103,
-1.8386290073394775,
-0.31615060567855835,
0.1435447484254837,
0.671197772026062,
-1.327514410018921,
1.6396580934524536,
0.8194695711135864,
1.9809709787368774,
0.9712687134742737,
-0.28070181608200073,
1.4300124645233154,
-0.041798461228609085,
1.8802165985107422,
-0.5440717339515686,
0.7611537575721741,
-0.32167965173721313,
-1.1613092422485352,
0.8183794617652893,
-0.45303571224212646,
-1.9769610166549683,
-0.849685788154602,
-0.8044862747192383,
-0.22074471414089203,
-0.7540529370307922,
0.877295732498169,
-0.40069565176963806,
-1.4359722137451172,
0.3614988923072815,
-0.6780111193656921,
0.27715685963630676,
-1.3463032245635986,
0.28813478350639343,
0.7432988286018372,
-0.5770509839057922,
-0.030832462012767792,
-0.280349999666214,
-1.3115019798278809,
-0.4339503049850464,
0.2526198923587799,
1.9241759777069092,
-0.6819220781326294,
0.9695837497711182,
0.963975727558136,
-0.5410395860671997,
0.012228370644152164,
0.3722691833972931,
-0.25389882922172546,
0.8760373592376709,
-1.1368250846862793,
-0.37777477502822876,
1.1487631797790527,
-0.16415517032146454,
-0.6157138347625732,
1.361727237701416,
0.8108179569244385,
-1.0114600658416748,
-0.2292027622461319,
-0.17392222583293915,
-0.8128051161766052,
-0.04390839859843254,
-1.5972031354904175,
-0.18009769916534424,
0.3007120192050934,
-1.4859031438827515,
-0.3926199972629547,
-0.18276484310626984,
1.3659441471099854,
-0.21149949729442596,
1.389770269393921,
-0.3475215435028076,
-0.12246693670749664,
-0.3719690144062042,
-0.5368828773498535,
0.16699720919132233,
-0.21692773699760437,
-0.6080019474029541,
0.25452810525894165,
-0.7738202214241028,
0.31470608711242676,
1.387742280960083,
0.39210447669029236,
0.11800998449325562,
0.5525542497634888,
1.1275341510772705,
0.2960415482521057,
-0.08580133318901062,
-0.9034048318862915,
-1.6467863321304321,
1.9224495887756348,
-1.5158500671386719,
1.9870153665542603,
0.9339104294776917,
-0.0010103480890393257,
-1.7666140794754028,
-1.7883169651031494,
1.3646600246429443,
1.290743112564087,
2.357811212539673,
0.6085987091064453,
0.4009522795677185,
-0.8215588331222534,
-0.6974107623100281,
0.20839446783065796,
-1.060996413230896,
-0.7547687888145447,
0.09908614307641983,
2.3705880641937256,
1.7133047580718994,
-0.4986501932144165,
-0.265790730714798,
-0.9954921007156372,
1.1891900300979614,
-0.14527879655361176,
0.2114158272743225,
2.0145435333251953,
-0.25975170731544495,
-1.0678657293319702,
1.1954983472824097,
-2.3897016048431396,
0.23873218894004822,
2.0393455028533936,
0.308428555727005,
0.09475063532590866,
-1.4451102018356323,
-0.7037412524223328,
-0.12242245674133301,
-0.40110665559768677,
-1.1964035034179688,
0.6196408271789551,
-0.3096717894077301,
-0.8299211859703064,
-1.539833426475525,
0.10290618240833282,
-1.1442188024520874,
-1.7035977840423584,
0.3846956491470337,
1.9018316268920898,
2.0635695457458496,
-0.8220579028129578,
1.4162123203277588,
-0.20267215371131897,
0.2473328709602356,
1.258545994758606,
1.2069646120071411,
3.1224586963653564,
1.7883013486862183,
-1.2316575050354004,
0.7455916404724121,
-0.11898553371429443,
-0.48331180214881897,
1.1848453283309937,
-1.1196694374084473,
1.2059319019317627,
-0.18629604578018188,
-1.247937798500061,
-1.2701103687286377,
0.9200398921966553,
0.487905889749527,
-0.04803771153092384,
-0.45084893703460693,
1.308513879776001,
0.0312982052564621,
1.2619410753250122,
0.5515763759613037,
-0.36918777227401733,
0.5441217422485352,
-0.3707520365715027,
-0.5192496180534363,
1.564908504486084,
0.15221168100833893,
-1.6130690574645996,
-2.2691056728363037,
-0.27393639087677,
-0.8051584362983704,
-0.10952599346637726,
-0.6776162385940552,
-1.1122817993164062,
1.6018086671829224,
0.43350499868392944,
-1.136088252067566,
-0.22522030770778656,
-0.27947667241096497,
-0.5861351490020752,
2.6120176315307617,
-1.4007800817489624,
-0.22775183618068695,
-0.9613389372825623,
-0.5325765609741211,
1.654823899269104,
-1.1799495220184326,
-0.18416248261928558,
-0.9551492929458618,
-0.6889072060585022,
-1.3135243654251099,
-0.4199647009372711,
-0.10145435482263565,
-0.883517324924469,
0.7110323309898376,
0.12082518637180328,
-1.0815809965133667,
-0.17694276571273804,
-0.8964789509773254,
0.8572891354560852,
-0.05407540872693062,
0.2582528293132782,
1.8795722723007202,
0.389330118894577,
-0.41476961970329285,
0.7578384280204773,
1.266000509262085,
0.5733122825622559,
-0.733161985874176,
0.08514820039272308,
-0.6502249836921692,
0.29620498418807983,
-1.3333204984664917,
0.30511507391929626,
-2.9022300243377686,
0.6873168349266052,
-0.0144650274887681,
-0.09626811742782593,
0.035472024232149124,
-1.3926502466201782,
1.1234713792800903,
2.552842617034912,
-1.1474560499191284,
0.4841931462287903,
0.3580801784992218,
1.2476392984390259,
-1.6925333738327026,
0.3684322237968445,
-0.45888298749923706,
2.1146347522735596,
0.2389499843120575,
1.2544348239898682,
-0.45590391755104065,
-2.2744991779327393,
0.6341859102249146,
-1.3014518022537231,
-1.0959872007369995,
0.7916261553764343,
-0.9207357168197632,
0.11730971932411194,
-1.4321873188018799,
-0.1863325536251068,
-0.8717597723007202,
-1.2966561317443848,
0.7696995139122009,
0.07118044793605804,
0.3884088099002838,
-0.4732101559638977,
0.3327500522136688,
-2.1532416343688965,
-1.372572660446167,
-0.13310660421848297,
-0.9357962608337402,
0.4346524178981781,
-0.3031952381134033,
0.6023077368736267,
-0.20007698237895966,
0.09440106153488159,
0.24842563271522522,
1.4911352396011353,
3.349627733230591,
0.18980632722377777,
0.3617386817932129,
-0.13007397949695587,
-0.9716111421585083,
1.442017674446106,
0.9634321928024292,
-0.06699886173009872,
-0.6848680377006531,
-0.9923146963119507,
1.3683786392211914,
1.954964518547058,
1.033219575881958,
0.09459168463945389,
-0.7987436652183533,
-0.6199929118156433,
-0.0003074789419770241,
0.22630378603935242,
0.45289355516433716,
0.8956258296966553,
0.022122468799352646,
0.1253269463777542,
1.4284484386444092,
1.181588053703308,
-0.48495063185691833,
0.3879925012588501,
-0.9614874124526978,
-0.43181926012039185,
0.4172198176383972,
0.23425965011119843,
0.037249404937028885,
0.46634963154792786,
-1.0005977153778076,
-0.271436482667923,
-0.270794540643692,
-1.0124199390411377,
-0.7536008954048157,
-0.4858819246292114,
-0.3294750154018402,
1.6442230939865112,
0.1387680172920227,
-0.4171382188796997,
-0.056474532932043076,
-0.7590547800064087,
-0.2050948292016983,
-1.0894361734390259,
0.21855920553207397,
-0.09788096696138382,
-0.1161598339676857,
-0.03815535455942154,
1.7896976470947266,
-0.9822558164596558,
-2.2162725925445557,
0.17912685871124268,
0.3697504699230194,
-0.35810908675193787,
0.09817258268594742,
1.7051867246627808,
0.49827033281326294,
1.4152859449386597,
1.337203860282898,
1.0523581504821777,
-0.7013989090919495,
-1.2854993343353271,
0.6967197060585022,
0.9776774644851685,
-1.4000911712646484,
0.921776294708252,
-0.1426427662372589,
-0.5356869101524353,
0.6382541656494141,
1.349136233329773,
0.5702369213104248,
-1.848287582397461,
0.796094536781311,
-0.9531016945838928,
0.7520887851715088,
0.6932986974716187,
0.8115916848182678,
0.27920278906822205,
0.9042814373970032,
-1.311845302581787,
-1.0765420198440552,
-0.799656331539154,
-0.5237299799919128,
1.9162657260894775,
-0.19466671347618103,
0.5117528438568115,
-0.1438911408185959,
-1.228986144065857,
0.031936246901750565,
0.7457543611526489,
0.28590139746665955,
-0.34125715494155884,
0.8711184859275818,
-0.7523266077041626,
-1.1164249181747437,
-1.3884412050247192,
-0.44169366359710693,
-0.8746225237846375,
-0.9605528712272644,
1.102627158164978,
0.7008894681930542,
0.33419269323349,
1.95177161693573,
0.5947880148887634,
0.2510005831718445,
-2.649609088897705,
0.8828892111778259,
0.16430941224098206,
0.040584951639175415,
0.9035689234733582,
0.17104583978652954,
1.1155794858932495,
-0.007139562629163265,
0.4917439818382263,
-2.2825982570648193,
2.1971499919891357,
-0.25869905948638916,
0.664877712726593,
0.022196270525455475,
-0.09067749232053757,
1.1307352781295776,
0.5487993359565735,
0.5628982186317444,
-1.0797075033187866,
0.7659978866577148,
-0.5318959355354309,
1.1387287378311157,
0.980596661567688,
-0.8812593221664429,
0.03124912828207016,
1.2822296619415283,
0.39012667536735535,
-0.4512239694595337,
-0.8883521556854248,
-0.8507004380226135,
0.9336227774620056,
1.705156683921814,
0.02648226171731949,
0.06295288354158401,
0.827877402305603,
0.5495306253433228,
-1.229867935180664,
0.035592220723629,
-0.7303038835525513,
-0.7227367758750916,
1.6806637048721313,
2.049919366836548,
-0.15211348235607147,
-0.22236493229866028,
-0.7354217171669006,
-1.1629785299301147,
0.7373372316360474,
-0.055167052894830704,
0.09407029300928116,
0.677702009677887,
-0.6561299562454224,
1.0368975400924683,
0.7402889728546143,
0.9505174160003662,
0.1554575115442276,
0.27178844809532166,
0.4343528151512146,
-0.22566251456737518,
-1.1141334772109985,
-0.3191486597061157,
-1.157125473022461,
-2.6311755180358887,
0.4109359085559845,
-0.354586124420166,
-1.415732741355896,
0.12407524883747101,
-1.086977243423462,
0.8755923509597778,
-0.6281051635742188,
-1.1359983682632446,
-1.4941341876983643,
0.2079152911901474,
-0.2670481503009796,
0.8313660621643066,
-1.6401513814926147,
-0.12070317566394806,
1.224037766456604,
0.8999740481376648,
-0.5673848986625671,
1.0784401893615723,
0.22237956523895264,
1.0077089071273804,
0.851667582988739,
-0.41975435614585876,
0.5518147349357605,
0.20534075796604156,
-1.3562263250350952,
0.5842599272727966,
1.2394630908966064,
0.1900549679994583,
1.5130506753921509,
-0.454500287771225,
-0.053332436829805374,
0.4924579858779907,
-0.5126824378967285,
-0.4988808035850525,
-0.507003664970398,
0.7614879012107849,
0.16294348239898682,
-0.969512403011322,
-0.011185264214873314,
-0.16934862732887268,
-0.20427782833576202,
0.25678882002830505,
-1.5749201774597168,
-0.24929985404014587,
-0.40185487270355225,
-0.5687673687934875,
-1.3055537939071655,
-0.023235905915498734,
1.35917329788208,
-0.8248011469841003,
-0.27107134461402893,
0.4661717712879181,
0.4263313412666321,
0.501019299030304,
0.5920242071151733,
-0.6919493079185486,
-0.2872428894042969,
-0.24554964900016785,
-0.32540664076805115,
0.32654833793640137,
1.1675794124603271,
-0.14645852148532867,
-1.0745618343353271,
0.6919007301330566,
-0.35651907324790955,
0.0959615558385849,
1.9074809551239014,
0.09907806664705276,
-0.8113965392112732,
0.28722524642944336,
-0.5969036817550659,
1.9130301475524902,
1.516575574874878,
1.3435540199279785,
-0.17058317363262177,
-0.8097334504127502,
0.6812190413475037,
-0.1310333013534546,
-0.3551706075668335,
0.8498625159263611,
0.509916365146637,
-0.13225345313549042,
-1.4605765342712402,
0.6198133230209351,
1.2807284593582153,
-0.8668753504753113,
-0.783595860004425,
-0.011210883036255836,
-0.8744096159934998,
1.1626440286636353,
0.5893358588218689,
0.47800135612487793,
0.21444377303123474,
1.696819543838501,
0.6894976496696472,
-0.5542398691177368,
0.44435223937034607,
0.3938346803188324,
-0.1300782859325409,
-2.0492842197418213,
-0.9765949249267578,
0.2884666621685028,
-0.35055091977119446,
-1.497862696647644,
1.3572481870651245,
-1.1120694875717163,
-0.8465457558631897,
0.5241258144378662,
0.22449946403503418,
1.3798176050186157,
0.24735695123672485,
1.660360336303711,
2.0693247318267822,
0.8821722865104675,
0.31407174468040466,
1.2176965475082397,
-0.14835277199745178,
-0.44922155141830444,
1.779474139213562,
-0.37526145577430725,
0.5024623274803162,
1.0553637742996216,
-0.39334309101104736,
-1.0767178535461426,
-0.7288581728935242,
-1.1421197652816772,
-0.6228566765785217,
1.1228052377700806,
0.25371038913726807,
-1.1602110862731934,
0.13731084764003754,
1.5206166505813599,
0.11971104145050049,
-0.25580066442489624,
0.5721150636672974,
0.47929683327674866,
-0.73148113489151,
-0.028679896146059036,
-0.9350492358207703,
0.4627894163131714,
-0.1827930063009262,
-0.3087383508682251,
0.2873382568359375,
0.5100617408752441,
1.2191225290298462,
-0.01781364530324936,
0.19604410231113434,
1.2455205917358398,
-1.4006373882293701,
1.4591574668884277,
-0.5944314002990723,
0.20956416428089142,
-2.4179821014404297,
1.415392279624939,
-0.8035145401954651,
1.8926992416381836,
-2.6245739459991455,
0.44270119071006775,
-0.6401500105857849,
-0.41032055020332336,
0.3148398697376251,
-0.41087958216667175,
0.13681891560554504,
-0.21289977431297302,
-1.0677199363708496,
-0.053260624408721924,
-0.7614479660987854,
0.574989378452301,
1.2216967344284058,
1.3209691047668457,
-1.0379174947738647,
-0.21989606320858002,
-1.7411690950393677,
-0.2020380049943924,
-0.724568247795105,
0.23449666798114777,
-2.098065137863159,
-0.1014425978064537,
-2.0001628398895264,
-2.34928035736084,
-1.376177191734314,
-0.7969476580619812,
1.1359986066818237,
0.23232734203338623,
-0.9251734018325806,
1.1490721702575684,
-0.3046989142894745,
-1.673484206199646,
1.1589447259902954,
-2.1091127395629883
] |
https://github.com/huggingface/datasets/issues/4707 | Dataset Viewer issue for TheNoob3131/mosquito-data | OK? This is a bug, thanks for help spotting and reproducing it (it occurs when a dataset is switched to private, then to public). We will be working on it, meanwhile, I've restored the dataset viewer manually again. | ### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_ | 623 | 38 | Dataset Viewer issue for TheNoob3131/mosquito-data
### Link
_No response_
### Description
Getting this error when trying to view dataset preview:
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/TheNoob3131/mosquito-data/resolve/8aceebd6c4a359d216d10ef020868bd9e8c986dd/0_Africa_train.csv')
### Owner
_No response_
OK? This is a bug, thanks for help spotting and reproducing it (it occurs when a dataset is switched to private, then to public). We will be working on it, meanwhile, I've restored the dataset viewer manually again. | [
-1.2209782600402832,
-0.9121588468551636,
-0.837836742401123,
1.5509302616119385,
-0.13490043580532074,
-1.2791683673858643,
0.07238222658634186,
-0.9875879883766174,
1.5421441793441772,
-0.7561489939689636,
0.15765084326267242,
-1.6590542793273926,
-0.01212049275636673,
-0.6065756678581238,
-0.6663423180580139,
-0.846743106842041,
-0.3282065689563751,
-0.8053075671195984,
1.165160059928894,
2.582878351211548,
1.2341973781585693,
-1.3951891660690308,
2.712068557739258,
0.6222360134124756,
-0.2925682067871094,
-1.0867164134979248,
0.5681776404380798,
0.072424978017807,
-1.1945141553878784,
-0.48700961470603943,
-0.9453311562538147,
-0.06816921383142471,
-0.525847852230072,
-0.35907426476478577,
-0.05605374649167061,
0.4523020088672638,
-0.2025357484817505,
-0.31289976835250854,
-0.46517157554626465,
-0.7264474034309387,
0.4171348512172699,
-0.40350285172462463,
0.8521074652671814,
-0.3319006860256195,
1.842775583267212,
-0.6119019985198975,
0.30746152997016907,
0.6269871592521667,
1.4309874773025513,
0.15728995203971863,
-0.025623787194490433,
0.27277299761772156,
0.29171955585479736,
-0.014520338736474514,
0.47081342339515686,
1.107306718826294,
0.5302096009254456,
0.5286362171173096,
0.5539882779121399,
-2.2192652225494385,
1.4139267206192017,
-0.9220981001853943,
0.2496209591627121,
1.4651936292648315,
-1.0921624898910522,
0.5157005786895752,
-1.6993052959442139,
-0.07697003334760666,
0.5781542658805847,
-2.2853751182556152,
0.36210179328918457,
-1.2256125211715698,
-0.5797656774520874,
0.9066591858863831,
0.3655928075313568,
-1.258492350578308,
0.08771197497844696,
-0.5854001641273499,
1.0601259469985962,
0.3757965862751007,
1.0042906999588013,
-1.7081674337387085,
-0.00850673858076334,
-0.34795519709587097,
-0.015497689135372639,
-1.4280949831008911,
-1.5754404067993164,
0.46937718987464905,
0.6410756707191467,
0.7713981866836548,
0.0049617234617471695,
0.8891119956970215,
-1.0668535232543945,
0.6915464401245117,
-0.9688873887062073,
-1.5923118591308594,
-1.3591206073760986,
-2.4527556896209717,
-2.3342034816741943,
0.8227772116661072,
-0.42936134338378906,
-0.5987350344657898,
2.0147454738616943,
-1.0093742609024048,
-1.7825599908828735,
1.233711838722229,
0.18337541818618774,
-0.032426364719867706,
2.5262515544891357,
0.2009882777929306,
-0.7350584268569946,
0.498717725276947,
-0.8108046054840088,
0.847357451915741,
-0.4468369483947754,
1.3986133337020874,
0.5451564192771912,
-0.9424872994422913,
1.6468043327331543,
-0.42987456917762756,
0.5457748770713806,
-0.6413592100143433,
-0.54935222864151,
-0.9574260711669922,
0.32626819610595703,
1.9465214014053345,
-0.21942585706710815,
1.6579169034957886,
-0.3946232795715332,
-1.5563844442367554,
-1.5438116788864136,
0.9029634594917297,
0.44276073575019836,
-0.9197595119476318,
0.19802191853523254,
-0.4258388578891754,
0.11514312028884888,
-0.11199862509965897,
1.1085935831069946,
1.198427677154541,
0.5137308239936829,
-0.36849698424339294,
-0.9739274978637695,
0.2600198984146118,
-0.13091179728507996,
-0.6168556809425354,
-1.8465235233306885,
-0.2716497778892517,
0.13777261972427368,
0.6078894138336182,
-1.25932776927948,
1.6676331758499146,
0.8867771625518799,
1.9647213220596313,
0.9875879287719727,
-0.2645610272884369,
1.4462876319885254,
-0.09804492443799973,
1.895920753479004,
-0.5395105481147766,
0.7170101404190063,
-0.38324105739593506,
-1.1677826642990112,
0.8200599551200867,
-0.4437747597694397,
-1.9625791311264038,
-0.9572893977165222,
-0.7846652865409851,
-0.22149871289730072,
-0.7204246520996094,
0.9693528413772583,
-0.45692136883735657,
-1.460779070854187,
0.32211044430732727,
-0.6714764833450317,
0.30717143416404724,
-1.323629379272461,
0.2913171350955963,
0.7488777041435242,
-0.5622718334197998,
-0.022667884826660156,
-0.26869839429855347,
-1.3170406818389893,
-0.4370567500591278,
0.2919461131095886,
1.9435863494873047,
-0.669548511505127,
0.9232565760612488,
0.97043377161026,
-0.627221941947937,
-0.03061428666114807,
0.2815094590187073,
-0.27182039618492126,
0.8306957483291626,
-1.0478017330169678,
-0.38591572642326355,
1.1690751314163208,
-0.2143171727657318,
-0.6940545439720154,
1.3716552257537842,
0.8161618113517761,
-1.0100860595703125,
-0.2128770500421524,
-0.17279551923274994,
-0.7986242175102234,
-0.026126880198717117,
-1.5891441106796265,
-0.14624834060668945,
0.36793065071105957,
-1.546262264251709,
-0.4091353118419647,
-0.21499799191951752,
1.2887014150619507,
-0.22464407980442047,
1.3129481077194214,
-0.3198009729385376,
-0.152358740568161,
-0.28506040573120117,
-0.5333415865898132,
0.20456719398498535,
-0.18674513697624207,
-0.5246635675430298,
0.21286267042160034,
-0.8081887364387512,
0.3790237307548523,
1.4234328269958496,
0.34987565875053406,
0.14569184184074402,
0.5620940327644348,
1.095254898071289,
0.41134360432624817,
-0.1572343111038208,
-0.8706483244895935,
-1.5790852308273315,
1.9473384618759155,
-1.4897615909576416,
1.9488059282302856,
0.8738400340080261,
-0.030815545469522476,
-1.7924792766571045,
-1.7822906970977783,
1.3480459451675415,
1.265398621559143,
2.24235463142395,
0.6202268004417419,
0.3833715319633484,
-0.8885088562965393,
-0.7142350673675537,
0.16997240483760834,
-1.1296974420547485,
-0.771874189376831,
0.1175810843706131,
2.3314998149871826,
1.7909597158432007,
-0.49114370346069336,
-0.2519189715385437,
-0.9933565258979797,
1.179418921470642,
-0.15934519469738007,
0.28568416833877563,
1.978926420211792,
-0.29661667346954346,
-0.9562022686004639,
1.1950795650482178,
-2.4109442234039307,
0.21773645281791687,
2.0515542030334473,
0.24560509622097015,
0.13118860125541687,
-1.451617956161499,
-0.6617480516433716,
-0.15503369271755219,
-0.3408137857913971,
-1.2257390022277832,
0.6571320295333862,
-0.2651025056838989,
-0.8074225187301636,
-1.5215563774108887,
0.19290252029895782,
-1.1201359033584595,
-1.6682292222976685,
0.398718923330307,
1.9167053699493408,
2.1350650787353516,
-0.8426215052604675,
1.464060664176941,
-0.17185650765895844,
0.2002452313899994,
1.2854901552200317,
1.1923240423202515,
3.041783332824707,
1.8094778060913086,
-1.1435414552688599,
0.7666166424751282,
-0.08441657572984695,
-0.49350088834762573,
1.2271662950515747,
-1.1194190979003906,
1.2781215906143188,
-0.14486607909202576,
-1.2114522457122803,
-1.3174866437911987,
0.8842254877090454,
0.5079613924026489,
0.018910620361566544,
-0.44981855154037476,
1.3668264150619507,
0.039823099970817566,
1.2473565340042114,
0.5971830487251282,
-0.3468683362007141,
0.479826420545578,
-0.4686037003993988,
-0.4954932630062103,
1.5611042976379395,
0.20436736941337585,
-1.6441899538040161,
-2.2083964347839355,
-0.29815882444381714,
-0.8025789260864258,
-0.11563021689653397,
-0.6280704736709595,
-1.1150423288345337,
1.5514627695083618,
0.41934847831726074,
-1.0391488075256348,
-0.2161581814289093,
-0.19708168506622314,
-0.5720990300178528,
2.687976837158203,
-1.3188263177871704,
-0.18819278478622437,
-0.9910029172897339,
-0.5234942436218262,
1.7939410209655762,
-1.2125060558319092,
-0.15649837255477905,
-0.9748252630233765,
-0.6620293259620667,
-1.3272640705108643,
-0.37649017572402954,
-0.04974004253745079,
-0.9901582598686218,
0.7917848229408264,
0.0970119833946228,
-1.0925776958465576,
-0.1877242773771286,
-0.9021403789520264,
0.8553608655929565,
0.0065817562863230705,
0.3138444423675537,
1.8765497207641602,
0.3869868218898773,
-0.3907264769077301,
0.815702497959137,
1.2446461915969849,
0.5552336573600769,
-0.773773193359375,
0.11207876354455948,
-0.5927587747573853,
0.3593778610229492,
-1.3641167879104614,
0.2379506528377533,
-2.8884975910186768,
0.668114423751831,
-0.06535189598798752,
-0.17136485874652863,
0.023443032056093216,
-1.3910324573516846,
1.2165780067443848,
2.490546226501465,
-1.207908272743225,
0.5166664719581604,
0.388270765542984,
1.2818896770477295,
-1.5992127656936646,
0.40001049637794495,
-0.515879213809967,
2.1328225135803223,
0.164955273270607,
1.2309961318969727,
-0.4517227113246918,
-2.2436795234680176,
0.711151123046875,
-1.3366211652755737,
-1.1236306428909302,
0.7703771591186523,
-0.9889733791351318,
0.09928616881370544,
-1.5156614780426025,
-0.22762826085090637,
-0.8133791089057922,
-1.3240363597869873,
0.7879456877708435,
0.09390462189912796,
0.33400827646255493,
-0.44077780842781067,
0.29456213116645813,
-2.13934588432312,
-1.4095425605773926,
-0.21299110352993011,
-0.9412968754768372,
0.4155561923980713,
-0.3529486358165741,
0.5605724453926086,
-0.2056351751089096,
0.07451517879962921,
0.23621298372745514,
1.444662094116211,
3.3437397480010986,
0.1963866651058197,
0.31443578004837036,
-0.11989977210760117,
-1.001173734664917,
1.455115556716919,
0.9907402396202087,
-0.023882146924734116,
-0.6097705364227295,
-0.9817268252372742,
1.332695484161377,
1.9978879690170288,
1.0356677770614624,
0.06541630625724792,
-0.7574964761734009,
-0.5435384511947632,
-0.04749588668346405,
0.26310044527053833,
0.4600406289100647,
0.9169216156005859,
0.00716667715460062,
0.11685028672218323,
1.4292657375335693,
1.135540246963501,
-0.4775826930999756,
0.36693859100341797,
-0.9475190043449402,
-0.40846288204193115,
0.4278564155101776,
0.171488419175148,
0.0035377396270632744,
0.49137258529663086,
-0.9669376015663147,
-0.32028433680534363,
-0.28635692596435547,
-0.9769562482833862,
-0.7259536385536194,
-0.4874253571033478,
-0.3177780210971832,
1.6418665647506714,
0.13002601265907288,
-0.4786688983440399,
-0.009653279557824135,
-0.7821407318115234,
-0.2474805861711502,
-1.1269832849502563,
0.1813322752714157,
-0.12248245626688004,
-0.15894566476345062,
-0.023308463394641876,
1.8570175170898438,
-1.1004788875579834,
-2.24489426612854,
0.18161128461360931,
0.34177255630493164,
-0.25731098651885986,
0.15964655578136444,
1.6927725076675415,
0.4404258131980896,
1.47443687915802,
1.2700860500335693,
1.0811783075332642,
-0.7331788539886475,
-1.2750468254089355,
0.7517587542533875,
1.1024402379989624,
-1.3845969438552856,
0.8292897343635559,
-0.11124251782894135,
-0.5516138076782227,
0.5996639132499695,
1.221286654472351,
0.5837143659591675,
-1.8919563293457031,
0.7940214276313782,
-1.066215991973877,
0.7489921450614929,
0.764014482498169,
0.8403538465499878,
0.3635227382183075,
0.8572942614555359,
-1.259106159210205,
-1.1408158540725708,
-0.7695646286010742,
-0.5943588018417358,
1.9022377729415894,
-0.3206978142261505,
0.5564589500427246,
-0.017948590219020844,
-1.2376567125320435,
-0.009694800712168217,
0.8307493925094604,
0.2683030366897583,
-0.404475599527359,
0.8715256452560425,
-0.7887327671051025,
-1.0922484397888184,
-1.4042322635650635,
-0.44651052355766296,
-0.9236246347427368,
-0.9630146622657776,
1.0790870189666748,
0.6497108340263367,
0.3023052513599396,
1.9543840885162354,
0.646056592464447,
0.32481589913368225,
-2.605126142501831,
0.947296142578125,
0.20382915437221527,
0.05372288450598717,
0.7864054441452026,
0.2156955897808075,
1.0635907649993896,
0.01736615225672722,
0.468852162361145,
-2.2861785888671875,
2.2204151153564453,
-0.20627106726169586,
0.6186888813972473,
-0.013189366087317467,
-0.09159698337316513,
1.1469589471817017,
0.5361441373825073,
0.5971639156341553,
-1.0275695323944092,
0.7224840521812439,
-0.4847838580608368,
1.2112245559692383,
0.9595739841461182,
-0.8518134951591492,
-0.0414656437933445,
1.3198776245117188,
0.4564090371131897,
-0.44595158100128174,
-0.9318320155143738,
-0.8212030529975891,
0.9619483947753906,
1.6459890604019165,
-0.035099368542432785,
-0.005010075401514769,
0.8345039486885071,
0.4569726288318634,
-1.1877918243408203,
-0.014807128347456455,
-0.7131639719009399,
-0.692541778087616,
1.6417629718780518,
2.024729013442993,
-0.1964937448501587,
-0.15335482358932495,
-0.7847427129745483,
-1.133656620979309,
0.6958102583885193,
-0.10806567221879959,
0.022113539278507233,
0.6843034029006958,
-0.6117303967475891,
0.9705285429954529,
0.744450569152832,
0.9261029362678528,
0.1184389740228653,
0.2832002639770508,
0.4670548439025879,
-0.24927371740341187,
-1.0995991230010986,
-0.26954156160354614,
-1.1839691400527954,
-2.6417107582092285,
0.3418659567832947,
-0.3810134828090668,
-1.3966343402862549,
0.1327246129512787,
-1.1525503396987915,
1.00594162940979,
-0.6423680782318115,
-1.0914441347122192,
-1.5263570547103882,
0.20080746710300446,
-0.23130583763122559,
0.8932063579559326,
-1.635071039199829,
-0.10548489540815353,
1.2240549325942993,
0.8726906776428223,
-0.6295837163925171,
1.1252275705337524,
0.19188353419303894,
1.0191843509674072,
0.8006277084350586,
-0.44036394357681274,
0.5817070007324219,
0.16700254380702972,
-1.374273657798767,
0.5996953248977661,
1.1764352321624756,
0.19392871856689453,
1.3992706537246704,
-0.4909115135669708,
-0.09780540317296982,
0.4997066259384155,
-0.590049147605896,
-0.44885385036468506,
-0.4290236234664917,
0.7730108499526978,
0.1745014786720276,
-0.9817854166030884,
-0.05397794023156166,
-0.20244504511356354,
-0.2462509721517563,
0.20172230899333954,
-1.5869994163513184,
-0.2766760587692261,
-0.44631341099739075,
-0.5959972143173218,
-1.2985228300094604,
0.006637380458414555,
1.3899191617965698,
-0.7335768342018127,
-0.3164858818054199,
0.45455941557884216,
0.4723917841911316,
0.5017687082290649,
0.6050223112106323,
-0.6878088116645813,
-0.1951970010995865,
-0.24109575152397156,
-0.22827216982841492,
0.39345407485961914,
1.2614809274673462,
-0.14986377954483032,
-1.0905221700668335,
0.7640824913978577,
-0.3713752329349518,
0.08757123351097107,
1.944858193397522,
0.12080122530460358,
-0.7822331190109253,
0.27564623951911926,
-0.5892759561538696,
1.97641122341156,
1.4823671579360962,
1.2592970132827759,
-0.17873524129390717,
-0.7056766748428345,
0.7068313956260681,
-0.09399678558111191,
-0.35616812109947205,
0.8247037529945374,
0.518753170967102,
-0.14018192887306213,
-1.4649419784545898,
0.658230185508728,
1.2369041442871094,
-0.8078527450561523,
-0.8550295233726501,
0.042881328612565994,
-0.8521117568016052,
1.1225202083587646,
0.6625596284866333,
0.5127283930778503,
0.2582806646823883,
1.6798537969589233,
0.7657780051231384,
-0.5811551213264465,
0.4245145916938782,
0.4529968202114105,
-0.0827564224600792,
-2.075888156890869,
-1.0039453506469727,
0.3004343509674072,
-0.412092924118042,
-1.4266201257705688,
1.330670952796936,
-1.1011898517608643,
-0.8345635533332825,
0.5624479651451111,
0.1430196613073349,
1.4202464818954468,
0.3422642946243286,
1.5451501607894897,
2.0220444202423096,
0.9206878542900085,
0.3583192825317383,
1.3037971258163452,
-0.2279365360736847,
-0.5021889209747314,
1.782585859298706,
-0.3836340010166168,
0.43464159965515137,
1.0849612951278687,
-0.38867834210395813,
-0.9788870215415955,
-0.694339394569397,
-1.2010493278503418,
-0.5636142492294312,
1.1277050971984863,
0.23015199601650238,
-1.1201801300048828,
0.19032645225524902,
1.4693536758422852,
0.14017222821712494,
-0.2906613349914551,
0.5635901689529419,
0.47528648376464844,
-0.7943568825721741,
-0.024097908288240433,
-0.9093301296234131,
0.5290191173553467,
-0.2559499144554138,
-0.2538435757160187,
0.37928077578544617,
0.46393072605133057,
1.2591841220855713,
-0.06388645619153976,
0.25352585315704346,
1.1293368339538574,
-1.3758642673492432,
1.4663536548614502,
-0.5795327425003052,
0.14612950384616852,
-2.390807628631592,
1.4182952642440796,
-0.7288352251052856,
1.9220423698425293,
-2.698023796081543,
0.3933859169483185,
-0.6821600198745728,
-0.3824997842311859,
0.3555721342563629,
-0.4676380753517151,
0.11667616665363312,
-0.2034023255109787,
-1.1051249504089355,
0.027027413249015808,
-0.6427290439605713,
0.567777693271637,
1.2373802661895752,
1.2419850826263428,
-1.0409479141235352,
-0.19706404209136963,
-1.7374619245529175,
-0.19938941299915314,
-0.8150355219841003,
0.26689597964286804,
-2.1460750102996826,
-0.178378626704216,
-1.950577735900879,
-2.3452630043029785,
-1.2986963987350464,
-0.7368858456611633,
1.1324354410171509,
0.28862541913986206,
-0.936639666557312,
1.1969624757766724,
-0.2668636441230774,
-1.7175354957580566,
1.1139427423477173,
-2.1084165573120117
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | Hi! I added a link to this issue in our internal request for adding keywords/topics to the Hub, which is identical to the `topic tags` solution. The `collections` solution seems too complex (as you point out). Regarding the `domain tags` solution, we primarily focus on machine learning, so I'm not sure if it's a good idea to make our current taxonomy more complex. | **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 63 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
Hi! I added a link to this issue in our internal request for adding keywords/topics to the Hub, which is identical to the `topic tags` solution. The `collections` solution seems too complex (as you point out). Regarding the `domain tags` solution, we primarily focus on machine learning, so I'm not sure if it's a good idea to make our current taxonomy more complex. | [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | > Hi! I added a link to this issue in our internal request for adding keywords/topics to the Hub, which is identical to the `topic tags` solution. The `collections` solution seems too complex (as you point out). Regarding the `domain tags` solution, we primarily focus on machine learning, so I'm not sure if it's a good idea to make our current taxonomy more complex.
Thanks, for letting me know. Will you allow the topic tags to be user-generated or only chosen from a list? | **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 84 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
> Hi! I added a link to this issue in our internal request for adding keywords/topics to the Hub, which is identical to the `topic tags` solution. The `collections` solution seems too complex (as you point out). Regarding the `domain tags` solution, we primarily focus on machine learning, so I'm not sure if it's a good idea to make our current taxonomy more complex.
Thanks, for letting me know. Will you allow the topic tags to be user-generated or only chosen from a list? | [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | Thanks for opening this issue @davanstrien.
As we discussed last week, the tag approach would be in principle the simpler to be implemented, either the domain tag (with closed vocabulary: more reliable but also more rigid), or the topic tag (with open vocabulary: more flexible for user needs) | **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 48 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
Thanks for opening this issue @davanstrien.
As we discussed last week, the tag approach would be in principle the simpler to be implemented, either the domain tag (with closed vocabulary: more reliable but also more rigid), or the topic tag (with open vocabulary: more flexible for user needs) | [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | Hi @davanstrien If i remember correctly this was also discussed inside a hf.co Discussion, would you be able to link it here too?
(where i suggested using `tags: - foo - bar` IIRC.
Thanks a ton! | **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 36 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
Hi @davanstrien If i remember correctly this was also discussed inside a hf.co Discussion, would you be able to link it here too?
(where i suggested using `tags: - foo - bar` IIRC.
Thanks a ton! | [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | > Hi @davanstrien If i remember correctly this was also discussed inside a hf.co Discussion, would you be able to link it here too?
>
> (where i suggested using `tags: - foo - bar` IIRC.
>
> Thanks a ton!
This doesn't ring a bell - I did a quick search of https://discuss.huggingface.co but didn't find anything.
The `tags: ` approach sounds like a good option for this. It would be especially nice if these could suggest existing tags, but this probably won't be easily possible through the current interface.
| **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 91 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
> Hi @davanstrien If i remember correctly this was also discussed inside a hf.co Discussion, would you be able to link it here too?
>
> (where i suggested using `tags: - foo - bar` IIRC.
>
> Thanks a ton!
This doesn't ring a bell - I did a quick search of https://discuss.huggingface.co but didn't find anything.
The `tags: ` approach sounds like a good option for this. It would be especially nice if these could suggest existing tags, but this probably won't be easily possible through the current interface.
| [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | I opened a PR to add "tags" to the YAML validator:
https://github.com/huggingface/datasets/pull/4716
I also added "tags" to the [tagging app](https://huggingface.co/spaces/huggingface/datasets-tagging), with suggestions like "bio" or "newspapers" | **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 26 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
I opened a PR to add "tags" to the YAML validator:
https://github.com/huggingface/datasets/pull/4716
I also added "tags" to the [tagging app](https://huggingface.co/spaces/huggingface/datasets-tagging), with suggestions like "bio" or "newspapers" | [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | Thanks @lhoestq for the initiative.
Just one question: are "tags" already supported on the Hub?
I think they aren't. Thus, the Hub should support them so that they are properly displayed. | **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 31 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
Thanks @lhoestq for the initiative.
Just one question: are "tags" already supported on the Hub?
I think they aren't. Thus, the Hub should support them so that they are properly displayed. | [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | I think they're not displayed, but at least it should enable users to filter by tag in using `huggingface_hub` or using the appropriate query params on the website (not sure if it's possible yet though) | **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 35 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
I think they're not displayed, but at least it should enable users to filter by tag in using `huggingface_hub` or using the appropriate query params on the website (not sure if it's possible yet though) | [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4702 | Domain specific dataset discovery on the Hugging Face hub | > I think they're not displayed, but at least it should enable users to filter by tag in using `huggingface_hub` or using the appropriate query params on the website (not sure if it's possible yet though)
I think this would already be a helpful start. I'm happy to try this out with the datasets added to https://huggingface.co/organizations/biglam and use the `huggingface_hub` to filter those datasets using the tags. | **Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova | 624 | 68 | Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.**
## The problem
The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data).
There are various ways of identifying datasets that may be relevant for a particular use case:
- searching
- various filters
Currently, however, there isn't an easy way to identify datasets belonging to a specific domain. For example, I want to browse machine learning datasets related to 'social science' or 'climate change research'.
The ability to identify datasets relating to a specific domain has come up in discussions around the [BigLA](https://github.com/bigscience-workshop/lam/) datasets hackathon https://github.com/bigscience-workshop/lam/discussions/31#discussioncomment-3123610. As part of the hackathon, we're currently collecting datasets related to Libraries, Archives and Museums and making them available via the hub. We currently do this under a Hugging Face organization (https://huggingface.co/biglam). However, going forward, I can see some of these datasets being migrated to sit under an organization that is the custodian of the dataset (for example, a national library the data was originally from). At this point, it becomes more difficult to quickly identify datasets from this domain without relying on search.
This is also related to some existing issues on Github related to metadata on the hub:
- https://github.com/huggingface/datasets/issues/3625
- https://github.com/huggingface/datasets/issues/3877
**Describe the solution you'd like**
### Some possible solutions that may help with this:
#### Enable domain tags (from a controlled vocabulary)
- This would add metadata field to the YAML for the domain a dataset relates to
- Advantages:
- the list is controlled, allowing it to be more easily integrated into the datasets tag app (https://huggingface.co/space/huggingface/datasets-tagging)
- the controlled vocabulary could align with an existing controlled vocabulary
- this additional metadata can be used to perform filtering by domain
- disadvantages
- choosing the best controlled vocab may be difficult
- there are many datasets that are likely to fit into the 'machine learning' domain (i.e. there is a long tail of datasets that aren't in more 'generic' machine learning domain
#### Enable topic tags (user-generated)
Enable 'free form' topic tags for datasets and models. This would be closer to GitHub's repository topics which can be chosen from a controlled list (https://github.com/topics/) but can also be more user/org specific. This could potentially be useful for organizations to also manage their own models and datasets as the number they hold in their org grows. For example, they may create 'topic tags' for a specific project, so it's clearer which datasets /models are related to that project.
#### Collections
This solution would likely be the biggest shift and may require significant changes in the hub fronted. Collections could work in several different ways but would include:
Users can curate particular datasets, models, spaces, etc., into a collection. For example, they may create a collection of 'historic newspapers suitable for training language models'. These collections would not be mutually exclusive, i.e. a dataset can belong to zero, one or many collections. Collections can also potentially be nested under other collections.
This is fairly common on other data reposotiores for example the following collections:
<img width="293" alt="Screenshot 2022-07-18 at 11 50 44" src="https://user-images.githubusercontent.com/8995957/179496445-963ed122-5e26-4574-96e8-41081bce3e2b.png">
all belong under a higher level collection (https://bl.iro.bl.uk/collections/353c908d-b495-4413-b047-87236d2573e3?locale=en).
There are different models one could use for how these collections could be created:
- only within an org
- for any dataset/model
- the owner or a dataset/model has to agree to be added to a collection
- a collection owner can have people suggest additions to their collection
- other models....
These collections could be thematic, related to particular training approaches, curate models with particular inference properties etc. Whilst some of these features may duplicate current/or future tag filters on the hub, they offer the advantage of being flexible and not having to predict what users will want to do upfront.
There is also potential for automating the creation of these collections based on existing metadata. For example, one could collect models trained on a collection of datasets so for example, if we had a collection of 'historic newspapers suitable for training language models' that contained 30 datasets, we could create another collection 'historic newspaper language models' that takes any model on the hub whose metadata says it used one or more of those 30 datasets.
There is also the option of exploring ML approaches to suggest models/datasets may be relevant to a particular collection.
This approach is likely to be quite difficult to implement well and would require significant thought. There is also likely to be a benefit in doing quite a bit of upfront work in curating useful collections to demonstrate the benefits of collections.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
It is possible to collate this information externally, i.e. one could link back to the relevant models/datasets from an external platform.
**Additional context**
Add any other context about the feature request here.
I'm cc'ing others involved in the BigLAM hackathon who may also have thoughts @cakiki @clancyoftheoverflow @albertvillanova
> I think they're not displayed, but at least it should enable users to filter by tag in using `huggingface_hub` or using the appropriate query params on the website (not sure if it's possible yet though)
I think this would already be a helpful start. I'm happy to try this out with the datasets added to https://huggingface.co/organizations/biglam and use the `huggingface_hub` to filter those datasets using the tags. | [
-1.1546485424041748,
-1.0167100429534912,
-0.874275803565979,
1.4287856817245483,
-0.11094040423631668,
-1.2783440351486206,
0.010566060431301594,
-1.0585129261016846,
1.6636104583740234,
-0.7138373851776123,
0.2345631718635559,
-1.6990019083023071,
-0.026690859347581863,
-0.5452465415000916,
-0.736083984375,
-0.8707653284072876,
-0.3915780782699585,
-0.8078551888465881,
0.9420019388198853,
2.552022695541382,
1.173134684562683,
-1.399906039237976,
2.757810115814209,
0.7569057941436768,
-0.18035350739955902,
-0.9915600419044495,
0.5275469422340393,
0.014597867615520954,
-1.2578365802764893,
-0.4273054897785187,
-0.9328488111495972,
0.07586037367582321,
-0.5271215438842773,
-0.5046654343605042,
0.0681503564119339,
0.4025014042854309,
-0.18563322722911835,
-0.4125029742717743,
-0.616117000579834,
-0.7145439982414246,
0.4356057047843933,
-0.38574543595314026,
0.9514484405517578,
-0.3083871901035309,
1.8347660303115845,
-0.494555801153183,
0.3364146947860718,
0.6331375241279602,
1.3179242610931396,
0.18132172524929047,
0.02324383333325386,
0.26574885845184326,
0.3577043116092682,
-0.03896287456154823,
0.41964995861053467,
1.2768139839172363,
0.6269820332527161,
0.46529603004455566,
0.7277895212173462,
-2.1511621475219727,
1.3445813655853271,
-0.934435248374939,
0.4300527274608612,
1.3688971996307373,
-0.9758425951004028,
0.37973180413246155,
-1.7418879270553589,
-0.08853114396333694,
0.5392169952392578,
-2.2584192752838135,
0.16535097360610962,
-1.1974332332611084,
-0.5412896275520325,
0.9237521290779114,
0.2120285928249359,
-1.2257217168807983,
0.27660879492759705,
-0.5481237173080444,
1.0618984699249268,
0.524924099445343,
1.2285345792770386,
-1.6708500385284424,
-0.009621165692806244,
-0.19018934667110443,
0.06979655474424362,
-1.3345850706100464,
-1.6086329221725464,
0.5548981428146362,
0.6573119163513184,
0.6419418454170227,
-0.1134461984038353,
0.9051075577735901,
-1.0101828575134277,
0.812550961971283,
-0.9049063324928284,
-1.6564762592315674,
-1.3941293954849243,
-2.307504892349243,
-2.3152852058410645,
0.8152046203613281,
-0.4464687407016754,
-0.4929693639278412,
1.978609323501587,
-1.0318026542663574,
-1.823740839958191,
1.1433473825454712,
0.3896913528442383,
0.020808327943086624,
2.4138576984405518,
0.245718851685524,
-0.7179019451141357,
0.43780070543289185,
-0.6694347262382507,
0.8541952967643738,
-0.463803768157959,
1.3886367082595825,
0.5037211775779724,
-1.0111799240112305,
1.6143735647201538,
-0.5207759141921997,
0.5221237540245056,
-0.7151765823364258,
-0.4517398774623871,
-0.8513336777687073,
0.3822169899940491,
1.8399477005004883,
-0.37992528080940247,
1.6178011894226074,
-0.40156567096710205,
-1.574592113494873,
-1.5892813205718994,
0.817149817943573,
0.5019327402114868,
-0.8115116953849792,
0.046635065227746964,
-0.44691962003707886,
0.03064475581049919,
-0.027536239475011826,
1.0628883838653564,
1.1421172618865967,
0.6782194972038269,
-0.2986505627632141,
-0.888354480266571,
0.1514197289943695,
-0.06939412653446198,
-0.6589117646217346,
-1.7851027250289917,
-0.27706193923950195,
0.27163055539131165,
0.5735146403312683,
-1.2365424633026123,
1.6973742246627808,
0.9279025197029114,
1.9740393161773682,
0.9814949631690979,
-0.36926889419555664,
1.496150255203247,
0.035715680569410324,
1.7791670560836792,
-0.5479798316955566,
0.6932420134544373,
-0.34008222818374634,
-1.121622920036316,
0.7913600206375122,
-0.4093165695667267,
-2.030202627182007,
-0.6949963569641113,
-0.8196731805801392,
-0.20606938004493713,
-0.7465447187423706,
0.9568167328834534,
-0.2635973393917084,
-1.3254685401916504,
0.1832336187362671,
-0.6212142705917358,
0.12953880429267883,
-1.2353061437606812,
0.23607993125915527,
0.811139702796936,
-0.6351867318153381,
-0.03146311268210411,
-0.2209761142730713,
-1.3615634441375732,
-0.47513696551322937,
0.3518708050251007,
1.8471808433532715,
-0.6785853505134583,
0.9135287404060364,
1.0249851942062378,
-0.6450625658035278,
0.07752728462219238,
0.3565785884857178,
-0.3073325455188751,
0.8740190863609314,
-1.0310262441635132,
-0.360076367855072,
1.1293476819992065,
-0.20344248414039612,
-0.6168453693389893,
1.4865365028381348,
0.7749901413917542,
-0.9736023545265198,
-0.220245823264122,
-0.1382511407136917,
-0.8495810031890869,
-0.04975692182779312,
-1.5975421667099,
-0.1030573695898056,
0.21675461530685425,
-1.4851269721984863,
-0.5083631873130798,
-0.3238714039325714,
1.2316757440567017,
-0.09369094669818878,
1.3743635416030884,
-0.2844027280807495,
-0.22363512217998505,
-0.40425989031791687,
-0.4426753520965576,
0.1431332677602768,
-0.2599635720252991,
-0.6305886507034302,
0.28196555376052856,
-0.8316183090209961,
0.3130687177181244,
1.5226058959960938,
0.4753060042858124,
0.1095874086022377,
0.580547034740448,
1.1142319440841675,
0.3856378495693207,
-0.12277575582265854,
-0.856222927570343,
-1.6131713390350342,
2.0379245281219482,
-1.4696377515792847,
1.9832847118377686,
0.8700026869773865,
-0.03740080073475838,
-1.8295565843582153,
-1.8381909132003784,
1.3485254049301147,
1.1724311113357544,
2.4333748817443848,
0.5446902513504028,
0.37277093529701233,
-0.854772686958313,
-0.7020523548126221,
0.2840345799922943,
-1.0022584199905396,
-0.7687609195709229,
0.07156220823526382,
2.3323209285736084,
1.8975316286087036,
-0.5688874125480652,
-0.2192990779876709,
-1.0502781867980957,
1.3651126623153687,
-0.22188085317611694,
0.23391924798488617,
1.9733182191848755,
-0.29932552576065063,
-0.9659709334373474,
1.3025662899017334,
-2.3663766384124756,
0.13022175431251526,
1.95118248462677,
0.24711807072162628,
0.08277179300785065,
-1.454024076461792,
-0.678149402141571,
-0.29265862703323364,
-0.40245574712753296,
-1.2803689241409302,
0.5160912275314331,
-0.2641095221042633,
-0.8355352878570557,
-1.5064915418624878,
0.08547905087471008,
-1.2193790674209595,
-1.6799976825714111,
0.32295721769332886,
1.857542634010315,
2.06223201751709,
-0.7159975171089172,
1.4855666160583496,
-0.2279205620288849,
0.14611761271953583,
1.1963697671890259,
1.2773338556289673,
3.1477603912353516,
1.843605875968933,
-1.3103996515274048,
0.6469255089759827,
-0.15051952004432678,
-0.5194855332374573,
1.164196491241455,
-1.0571215152740479,
1.2184677124023438,
-0.2530324459075928,
-1.2459450960159302,
-1.264113426208496,
1.0923141241073608,
0.5296315550804138,
0.0900331437587738,
-0.565741777420044,
1.1812264919281006,
0.0020643528550863266,
1.2624287605285645,
0.622414767742157,
-0.4422171711921692,
0.5037541389465332,
-0.3349151909351349,
-0.5797930955886841,
1.5156140327453613,
0.17531080543994904,
-1.4774729013442993,
-2.322904348373413,
-0.21332314610481262,
-0.8444298505783081,
-0.13018719851970673,
-0.6726856231689453,
-1.0223009586334229,
1.5594325065612793,
0.4539045989513397,
-1.2691056728363037,
-0.32045722007751465,
-0.3257667124271393,
-0.6262362599372864,
2.505774974822998,
-1.406437873840332,
-0.24229919910430908,
-0.9661622047424316,
-0.45516350865364075,
1.580686092376709,
-1.1145148277282715,
-0.17272886633872986,
-1.079080581665039,
-0.6955365538597107,
-1.3377984762191772,
-0.6140644550323486,
-0.017249610275030136,
-0.858176052570343,
0.7867706418037415,
0.08509465306997299,
-1.042660117149353,
-0.213754341006279,
-0.901902437210083,
0.9096904993057251,
-0.1729055494070053,
0.18546386063098907,
1.913644552230835,
0.4266306161880493,
-0.4241459369659424,
0.7358323335647583,
1.203449010848999,
0.6396355032920837,
-0.6970680356025696,
0.1111723929643631,
-0.7249764800071716,
0.2758029103279114,
-1.412128210067749,
0.310747355222702,
-2.9136440753936768,
0.639236569404602,
-0.06911634653806686,
-0.07798580825328827,
0.058122359216213226,
-1.2709583044052124,
1.0585737228393555,
2.5969107151031494,
-1.1650053262710571,
0.5126460194587708,
0.3468197286128998,
1.192242980003357,
-1.673607349395752,
0.30902916193008423,
-0.42058396339416504,
2.044006109237671,
0.09760306775569916,
1.1306383609771729,
-0.5878263711929321,
-2.1469905376434326,
0.5263913869857788,
-1.2863866090774536,
-1.0366002321243286,
0.7650173902511597,
-0.8652585744857788,
0.12096903473138809,
-1.5218192338943481,
-0.10606419295072556,
-0.9170897006988525,
-1.2719857692718506,
0.7511236071586609,
0.08987347036600113,
0.44756194949150085,
-0.6130408048629761,
0.32249829173088074,
-2.1589202880859375,
-1.3367496728897095,
-0.22540396451950073,
-0.9080931544303894,
0.5167897939682007,
-0.35015419125556946,
0.6737834215164185,
-0.10384272783994675,
0.007847615517675877,
0.2704295814037323,
1.2864630222320557,
3.3897645473480225,
0.2407698631286621,
0.38129037618637085,
-0.05920649692416191,
-0.9048255085945129,
1.4404038190841675,
0.981112003326416,
-0.14084011316299438,
-0.5723839998245239,
-0.9649133682250977,
1.3788838386535645,
1.9244592189788818,
1.127542495727539,
0.1228652074933052,
-0.8540543913841248,
-0.7532104849815369,
0.03181318938732147,
0.22529856860637665,
0.4890962839126587,
0.9221672415733337,
-0.038608379662036896,
0.17445725202560425,
1.5012826919555664,
1.2747023105621338,
-0.3894693851470947,
0.4742506146430969,
-0.8544102907180786,
-0.48743635416030884,
0.431067556142807,
0.31961631774902344,
-0.0166338924318552,
0.436747670173645,
-1.1147528886795044,
-0.33023661375045776,
-0.43146848678588867,
-0.9440080523490906,
-0.6554639339447021,
-0.44720038771629333,
-0.3877616226673126,
1.6223108768463135,
0.06978942453861237,
-0.4960290789604187,
-0.006107937544584274,
-0.7731460332870483,
-0.15258754789829254,
-1.072790265083313,
0.2997223138809204,
-0.09418781846761703,
-0.03218107670545578,
-0.13555967807769775,
1.7430109977722168,
-0.9494795203208923,
-2.1558289527893066,
0.18213868141174316,
0.2534438669681549,
-0.42343348264694214,
0.12499333173036575,
1.646799921989441,
0.5130035877227783,
1.4461277723312378,
1.4074786901474,
0.9555960893630981,
-0.6829904913902283,
-1.2359622716903687,
0.7050976753234863,
0.9714624881744385,
-1.3555271625518799,
0.9122380614280701,
-0.09742262214422226,
-0.5941129922866821,
0.7898803353309631,
1.3446346521377563,
0.34799671173095703,
-1.965327501296997,
0.8569793105125427,
-0.8937121629714966,
0.835985541343689,
0.6709061861038208,
0.7871527075767517,
0.19688238203525543,
0.7480591535568237,
-1.3535674810409546,
-1.177443265914917,
-0.8149939179420471,
-0.5663517713546753,
1.8996509313583374,
-0.13485287129878998,
0.5422667860984802,
-0.20623120665550232,
-1.2924169301986694,
-0.07676858454942703,
0.7265540361404419,
0.42151904106140137,
-0.42972856760025024,
0.8384024500846863,
-0.6331400871276855,
-1.0923534631729126,
-1.3519463539123535,
-0.4153068959712982,
-0.9751849174499512,
-0.8307444453239441,
1.0629074573516846,
0.8585333228111267,
0.2850261330604553,
1.9344910383224487,
0.6008548140525818,
0.25828227400779724,
-2.5943031311035156,
0.8584546446800232,
0.32777103781700134,
-0.029824383556842804,
0.8771300911903381,
0.23761005699634552,
1.0943140983581543,
0.03818517550826073,
0.5037453174591064,
-2.3176052570343018,
2.1476922035217285,
-0.15418212115764618,
0.743737518787384,
-0.04371721297502518,
-0.21659468114376068,
1.1433860063552856,
0.5592522621154785,
0.5791597962379456,
-1.1289170980453491,
0.7139869332313538,
-0.560236394405365,
1.0683420896530151,
0.9552123546600342,
-0.8175740242004395,
0.020551566034555435,
1.3477394580841064,
0.4991146922111511,
-0.4695008099079132,
-0.9766114950180054,
-0.8184027671813965,
0.9476023316383362,
1.7822850942611694,
-0.0009173117578029633,
0.10551714897155762,
0.8910400867462158,
0.6650705933570862,
-1.3562231063842773,
0.13401836156845093,
-0.701384425163269,
-0.6319538950920105,
1.6442923545837402,
1.9915013313293457,
-0.11310160160064697,
-0.11446207016706467,
-0.6874139308929443,
-1.2773046493530273,
0.7215059399604797,
-0.010896500200033188,
0.18650655448436737,
0.7555474042892456,
-0.6569393873214722,
1.1974146366119385,
0.8398253321647644,
0.9030628204345703,
0.003073013387620449,
0.30564916133880615,
0.389308363199234,
-0.339415967464447,
-1.1479501724243164,
-0.2711550295352936,
-1.1349713802337646,
-2.412287712097168,
0.4801933765411377,
-0.17265604436397552,
-1.5131261348724365,
-0.00742566492408514,
-1.0004738569259644,
0.9930224418640137,
-0.5863150358200073,
-1.0646371841430664,
-1.5071139335632324,
0.29057037830352783,
-0.13603343069553375,
0.8535976409912109,
-1.6102070808410645,
-0.073079913854599,
1.2154686450958252,
0.8756241798400879,
-0.5657455921173096,
0.9873799681663513,
0.25803491473197937,
0.9875572919845581,
0.833219051361084,
-0.34841039776802063,
0.42169323563575745,
0.14869557321071625,
-1.4162728786468506,
0.37342849373817444,
1.1422151327133179,
0.21079716086387634,
1.330405592918396,
-0.5405258536338806,
0.06579972058534622,
0.48110756278038025,
-0.4306045174598694,
-0.4160146713256836,
-0.46266791224479675,
0.6756206750869751,
0.039619799703359604,
-0.854914665222168,
0.008279246278107166,
-0.10521875321865082,
-0.33945441246032715,
0.18967457115650177,
-1.5047805309295654,
-0.2682945132255554,
-0.42867520451545715,
-0.47844767570495605,
-1.2441014051437378,
0.0752200037240982,
1.3832675218582153,
-0.7877981066703796,
-0.31202471256256104,
0.5622924566268921,
0.4215950071811676,
0.4991021156311035,
0.684600293636322,
-0.6692550778388977,
-0.2844953238964081,
-0.2591383457183838,
-0.31382182240486145,
0.20436285436153412,
1.2868534326553345,
-0.17361995577812195,
-0.9706486463546753,
0.669613242149353,
-0.4909128248691559,
0.03911789506673813,
1.9677836894989014,
0.060064442455768585,
-0.8268325924873352,
0.3438330292701721,
-0.6817502975463867,
1.862460970878601,
1.7471725940704346,
1.3965288400650024,
-0.10221680253744125,
-0.859188973903656,
0.5682016611099243,
-0.22161641716957092,
-0.31582123041152954,
1.00721275806427,
0.4671366512775421,
-0.16449657082557678,
-1.4903870820999146,
0.512283444404602,
1.2852568626403809,
-0.969190776348114,
-0.6839238405227661,
0.08754724264144897,
-0.8621758818626404,
1.1811692714691162,
0.7362757325172424,
0.34522759914398193,
0.19845041632652283,
1.618731141090393,
0.639309823513031,
-0.48335573077201843,
0.5231505036354065,
0.4682439863681793,
-0.15210367739200592,
-2.0923686027526855,
-0.9942472577095032,
0.22413422167301178,
-0.34823939204216003,
-1.5466511249542236,
1.279499888420105,
-1.1872612237930298,
-0.8735025525093079,
0.4859526455402374,
0.056710317730903625,
1.4706991910934448,
0.3515858054161072,
1.6376115083694458,
2.1841676235198975,
0.8937262892723083,
0.28822100162506104,
1.3289823532104492,
-0.04052362218499184,
-0.3381493091583252,
1.825745940208435,
-0.4098672866821289,
0.6108762621879578,
0.9934509992599487,
-0.44141966104507446,
-1.152918815612793,
-0.7165794372558594,
-1.1799217462539673,
-0.5774009227752686,
1.2039469480514526,
0.11372090876102448,
-1.0737597942352295,
0.26280900835990906,
1.562068223953247,
0.0994299128651619,
-0.24761241674423218,
0.6465226411819458,
0.5202407240867615,
-0.7343341112136841,
-0.08326701819896698,
-0.855714738368988,
0.5030725598335266,
-0.18593119084835052,
-0.30376237630844116,
0.3092891573905945,
0.5109193921089172,
1.2492378950119019,
0.0038239629939198494,
0.11957205086946487,
1.2918933629989624,
-1.4279817342758179,
1.501347541809082,
-0.7168611884117126,
0.20164157450199127,
-2.5347437858581543,
1.5312800407409668,
-0.7887177467346191,
1.9233607053756714,
-2.6459174156188965,
0.3729994595050812,
-0.5990099906921387,
-0.502133309841156,
0.3214539587497711,
-0.3502269983291626,
0.10397123545408249,
-0.1182321310043335,
-1.059216022491455,
0.022670328617095947,
-0.7064883708953857,
0.529894232749939,
1.2522169351577759,
1.3364758491516113,
-1.133283019065857,
-0.314031720161438,
-1.7443665266036987,
-0.20506569743156433,
-0.7583832740783691,
0.34044477343559265,
-1.979601502418518,
-0.15462954342365265,
-1.8741618394851685,
-2.428001880645752,
-1.4626085758209229,
-0.8921994566917419,
1.1181150674819946,
0.19129689037799835,
-0.9824138879776001,
1.141909122467041,
-0.44768577814102173,
-1.7978495359420776,
1.0422545671463013,
-2.25563383102417
] |
https://github.com/huggingface/datasets/issues/4697 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive | Hi @frgfm, thanks for reporting.
As the error message says, streaming mode is not supported out of the box when the dataset contains TAR archive files.
To make the dataset streamable, you have to use `dl_manager.iter_archive`.
There are several examples in other datasets, e.g. food101: https://huggingface.co/datasets/food101/blob/main/food101.py
And yes, as the link you pointed out, for the streaming to be possible, the metadata file must be loaded before all of the images:
- either this is the case when iterating the archive (and you get the metadata file before the images)
- or you have to extract the metadata file by hand and upload it separately to the Hub | ### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes | 625 | 108 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes
Hi @frgfm, thanks for reporting.
As the error message says, streaming mode is not supported out of the box when the dataset contains TAR archive files.
To make the dataset streamable, you have to use `dl_manager.iter_archive`.
There are several examples in other datasets, e.g. food101: https://huggingface.co/datasets/food101/blob/main/food101.py
And yes, as the link you pointed out, for the streaming to be possible, the metadata file must be loaded before all of the images:
- either this is the case when iterating the archive (and you get the metadata file before the images)
- or you have to extract the metadata file by hand and upload it separately to the Hub | [
-1.1553006172180176,
-0.9707354307174683,
-0.8141664862632751,
1.4095704555511475,
-0.17868894338607788,
-1.3257246017456055,
0.07547229528427124,
-1.0478341579437256,
1.6509844064712524,
-0.7176092863082886,
0.26937517523765564,
-1.7101269960403442,
-0.06159897893667221,
-0.5274806022644043,
-0.7722639441490173,
-0.8915066719055176,
-0.4525296092033386,
-0.8139253854751587,
0.961870014667511,
2.623713493347168,
1.2018946409225464,
-1.431843876838684,
2.711188793182373,
0.640546977519989,
-0.1574743390083313,
-1.0741357803344727,
0.6392045021057129,
-0.03843436390161514,
-1.2109702825546265,
-0.4395231306552887,
-0.9188244938850403,
-0.021376093849539757,
-0.5299028754234314,
-0.5339465141296387,
-0.012362218461930752,
0.3755156397819519,
-0.24582865834236145,
-0.37542757391929626,
-0.5694757699966431,
-0.7985078692436218,
0.5009106397628784,
-0.41197308897972107,
1.0024546384811401,
-0.35934609174728394,
1.836455225944519,
-0.45694389939308167,
0.40744999051094055,
0.7755444645881653,
1.3616275787353516,
0.164666086435318,
0.01853383518755436,
0.2536207139492035,
0.41426193714141846,
-0.020677339285612106,
0.4391172528266907,
1.1258171796798706,
0.6629735827445984,
0.4601268470287323,
0.6931439638137817,
-2.2500855922698975,
1.273103952407837,
-0.9911396503448486,
0.2836766242980957,
1.4471994638442993,
-0.946685791015625,
0.3576849699020386,
-1.8642058372497559,
0.009277893230319023,
0.5355652570724487,
-2.1863932609558105,
0.21292179822921753,
-1.192315936088562,
-0.4926910102367401,
1.004949927330017,
0.2655256688594818,
-1.2538057565689087,
0.20290926098823547,
-0.431638240814209,
1.084252119064331,
0.5607118010520935,
1.208052396774292,
-1.6936969757080078,
-0.01323653757572174,
-0.24493835866451263,
0.10741886496543884,
-1.2960320711135864,
-1.5878582000732422,
0.4178217649459839,
0.5811489820480347,
0.5592429637908936,
-0.034135036170482635,
0.9759488105773926,
-0.9604641795158386,
0.7775065302848816,
-0.9009880423545837,
-1.6626886129379272,
-1.419140338897705,
-2.318709135055542,
-2.321794033050537,
0.7780595421791077,
-0.45883363485336304,
-0.4838640093803406,
1.996460199356079,
-1.0032373666763306,
-1.7283843755722046,
1.1878544092178345,
0.34535083174705505,
0.002226238138973713,
2.3385088443756104,
0.25012749433517456,
-0.7463183999061584,
0.3788835406303406,
-0.7183815240859985,
0.7727831602096558,
-0.45272621512413025,
1.36284601688385,
0.5170116424560547,
-0.9816492795944214,
1.6582645177841187,
-0.546942412853241,
0.5453069806098938,
-0.6811378002166748,
-0.46930167078971863,
-0.8359124660491943,
0.44981956481933594,
1.8618762493133545,
-0.4243716299533844,
1.5546456575393677,
-0.3601381480693817,
-1.4934386014938354,
-1.5843510627746582,
0.8991788029670715,
0.47735732793807983,
-0.8010229468345642,
0.10194853693246841,
-0.36619943380355835,
0.043442487716674805,
-0.12256563454866409,
0.977626621723175,
1.192987322807312,
0.6861719489097595,
-0.3690085709095001,
-0.9321200251579285,
0.28190791606903076,
-0.1070837527513504,
-0.6720947623252869,
-1.752369999885559,
-0.3226432204246521,
0.14593306183815002,
0.6451506614685059,
-1.1852465867996216,
1.724392294883728,
0.854397714138031,
1.976325511932373,
0.9314190745353699,
-0.4083670377731323,
1.4066276550292969,
0.059532299637794495,
1.9330798387527466,
-0.5189781188964844,
0.6546365022659302,
-0.2999417781829834,
-1.2322030067443848,
0.8725946545600891,
-0.40565773844718933,
-2.023955821990967,
-0.7597993612289429,
-0.8744279742240906,
-0.19422690570354462,
-0.7570387721061707,
0.9370859861373901,
-0.21942101418972015,
-1.3389546871185303,
0.21639789640903473,
-0.6841517090797424,
0.11279285699129105,
-1.2898967266082764,
0.2593710124492645,
0.727863609790802,
-0.5895366072654724,
-0.0027802414260804653,
-0.20295831561088562,
-1.3302345275878906,
-0.4864353835582733,
0.3546236455440521,
1.8618119955062866,
-0.6696270108222961,
0.9946335554122925,
1.037131905555725,
-0.7089653015136719,
0.05728593468666077,
0.3445652425289154,
-0.3591350018978119,
0.8980172276496887,
-1.0274571180343628,
-0.49353766441345215,
1.1583625078201294,
-0.20703208446502686,
-0.7035481929779053,
1.4541442394256592,
0.7443338632583618,
-1.0043169260025024,
-0.19707228243350983,
-0.18519556522369385,
-0.7734516263008118,
-0.04073144495487213,
-1.6235170364379883,
-0.08451205492019653,
0.3038533627986908,
-1.5411460399627686,
-0.48480677604675293,
-0.2544715702533722,
1.3353235721588135,
-0.12762345373630524,
1.4923465251922607,
-0.36634188890457153,
-0.2014331817626953,
-0.39819493889808655,
-0.40435418486595154,
0.207489475607872,
-0.21892935037612915,
-0.5421357154846191,
0.2288646250963211,
-0.847655713558197,
0.33397406339645386,
1.4162821769714355,
0.38184478878974915,
0.03058118186891079,
0.530699610710144,
1.0674989223480225,
0.36466753482818604,
-0.0331045426428318,
-0.9394129514694214,
-1.5183895826339722,
2.0541346073150635,
-1.427589774131775,
1.9523744583129883,
0.8081955909729004,
-0.03454997390508652,
-1.8236933946609497,
-1.8407315015792847,
1.38776695728302,
1.1339192390441895,
2.3508355617523193,
0.6148388981819153,
0.43974122405052185,
-0.8292277455329895,
-0.6590311527252197,
0.31119492650032043,
-1.0281099081039429,
-0.7089332938194275,
0.13378837704658508,
2.3889951705932617,
1.7331820726394653,
-0.43414506316185,
-0.2120622992515564,
-0.9773308634757996,
1.3278928995132446,
-0.11092298477888107,
0.20247723162174225,
2.000798463821411,
-0.20177015662193298,
-1.020872712135315,
1.2527446746826172,
-2.3422048091888428,
0.22361917793750763,
1.9767745733261108,
0.2730257213115692,
0.12952262163162231,
-1.433301568031311,
-0.6304020285606384,
-0.23323304951190948,
-0.44694387912750244,
-1.1750671863555908,
0.5594945549964905,
-0.3400971591472626,
-0.8619775772094727,
-1.430897831916809,
0.11762262135744095,
-1.0793641805648804,
-1.716323733329773,
0.2833430767059326,
1.7606728076934814,
2.04164457321167,
-0.8498951196670532,
1.5521106719970703,
-0.1860111802816391,
0.1522829532623291,
1.3115533590316772,
1.2773133516311646,
3.14835786819458,
1.931182861328125,
-1.3375999927520752,
0.6716536283493042,
-0.14946581423282623,
-0.45349374413490295,
1.1798022985458374,
-1.1441010236740112,
1.2627315521240234,
-0.24074077606201172,
-1.257498025894165,
-1.2021151781082153,
1.0669711828231812,
0.5259800553321838,
0.07715681195259094,
-0.5177913308143616,
1.2229198217391968,
0.02858189307153225,
1.3049598932266235,
0.5989136695861816,
-0.4014439582824707,
0.6001883149147034,
-0.38479241728782654,
-0.5039644837379456,
1.648914098739624,
0.18569017946720123,
-1.4074169397354126,
-2.307996988296509,
-0.3373054265975952,
-0.8436357975006104,
-0.015005534514784813,
-0.6053586602210999,
-1.0396021604537964,
1.5942671298980713,
0.4421282112598419,
-1.2519828081130981,
-0.42709577083587646,
-0.4228069484233856,
-0.58234703540802,
2.610706329345703,
-1.43585205078125,
-0.14963299036026,
-1.0039008855819702,
-0.5118735432624817,
1.5929433107376099,
-1.2570017576217651,
-0.15630050003528595,
-1.0428009033203125,
-0.6868444681167603,
-1.2989903688430786,
-0.6021424531936646,
-0.009334261529147625,
-0.867987871170044,
0.7442261576652527,
0.20037606358528137,
-1.1412889957427979,
-0.2507524788379669,
-0.834902822971344,
0.8507426381111145,
-0.10870818048715591,
0.31915026903152466,
1.905339002609253,
0.4262327551841736,
-0.3301824629306793,
0.6837029457092285,
1.1115224361419678,
0.6217195987701416,
-0.6885252594947815,
0.19110774993896484,
-0.7687302231788635,
0.28679195046424866,
-1.3275538682937622,
0.15674592554569244,
-2.862316131591797,
0.6271746754646301,
-0.08151688426733017,
-0.031618572771549225,
-0.01633988879621029,
-1.2311832904815674,
1.113701343536377,
2.57145094871521,
-1.2403044700622559,
0.48272350430488586,
0.36295944452285767,
1.169382929801941,
-1.5880496501922607,
0.2588982582092285,
-0.4278605282306671,
2.120389938354492,
0.0860016867518425,
1.2142237424850464,
-0.5024213194847107,
-2.2187037467956543,
0.5956407189369202,
-1.24198317527771,
-1.100537657737732,
0.7815995812416077,
-0.7871829271316528,
0.06962620466947556,
-1.4294753074645996,
-0.14784367382526398,
-0.9155833721160889,
-1.300894021987915,
0.7914237380027771,
0.04613003134727478,
0.4441467821598053,
-0.6105648279190063,
0.34605076909065247,
-2.144282102584839,
-1.3561910390853882,
-0.23401907086372375,
-0.9045019745826721,
0.4264189898967743,
-0.3240458369255066,
0.7039330005645752,
-0.17305389046669006,
0.05790314823389053,
0.29322803020477295,
1.3458735942840576,
3.5027410984039307,
0.25524717569351196,
0.3283199369907379,
-0.0859530121088028,
-0.9912545084953308,
1.4582747220993042,
1.040497899055481,
-0.13310758769512177,
-0.5699007511138916,
-1.061879277229309,
1.287338376045227,
1.9970166683197021,
1.0674829483032227,
0.14002206921577454,
-0.8225790858268738,
-0.7129648327827454,
0.027747144922614098,
0.10599938780069351,
0.5378051996231079,
0.9091601967811584,
-0.03449927642941475,
0.10729891806840897,
1.395198106765747,
1.2615712881088257,
-0.3884994685649872,
0.3876838982105255,
-0.8532857894897461,
-0.4206828773021698,
0.49459323287010193,
0.31456491351127625,
0.06956296414136887,
0.41063523292541504,
-1.042099952697754,
-0.23076951503753662,
-0.37998515367507935,
-0.9492714405059814,
-0.7038559317588806,
-0.39740920066833496,
-0.3090505301952362,
1.5801440477371216,
0.13177013397216797,
-0.4680759906768799,
-0.008652488701045513,
-0.7711594104766846,
-0.07591557502746582,
-1.0784175395965576,
0.21838562190532684,
-0.19312411546707153,
-0.057894885540008545,
-0.16592644155025482,
1.7397466897964478,
-0.9519285559654236,
-2.105320692062378,
0.25354039669036865,
0.2892364263534546,
-0.43974727392196655,
0.22777719795703888,
1.6519122123718262,
0.5158431529998779,
1.4029715061187744,
1.3692916631698608,
1.0146797895431519,
-0.6736629605293274,
-1.2934012413024902,
0.6572686433792114,
1.0073338747024536,
-1.4518848657608032,
0.8498197197914124,
-0.013283764012157917,
-0.5533275008201599,
0.7498896718025208,
1.3555964231491089,
0.37371113896369934,
-2.034005641937256,
0.7883695960044861,
-0.8483470678329468,
0.8363694548606873,
0.6573750376701355,
0.8424439430236816,
0.1864905059337616,
0.7334396243095398,
-1.2664332389831543,
-1.1301530599594116,
-0.7693299651145935,
-0.6335689425468445,
1.923008680343628,
-0.16655337810516357,
0.5802223682403564,
-0.1444045603275299,
-1.3098841905593872,
-0.10988561064004898,
0.7115680575370789,
0.36358869075775146,
-0.4264581799507141,
0.8064395785331726,
-0.6282609701156616,
-1.1303561925888062,
-1.380878210067749,
-0.4252578616142273,
-0.9775921106338501,
-0.869797945022583,
1.0222392082214355,
0.7804242372512817,
0.34984591603279114,
1.8835667371749878,
0.6492055058479309,
0.1983395516872406,
-2.669532299041748,
0.9030801057815552,
0.33094021677970886,
0.014671621844172478,
0.9403162002563477,
0.2484467476606369,
1.059779405593872,
-0.06906301528215408,
0.5506877899169922,
-2.36611008644104,
2.191986560821533,
-0.18915784358978271,
0.6594424247741699,
0.006767762824892998,
-0.22062087059020996,
1.0724011659622192,
0.5629213452339172,
0.5025309920310974,
-1.1424052715301514,
0.7292179465293884,
-0.6059231162071228,
1.2014421224594116,
0.9301233887672424,
-0.8559821844100952,
-0.051569223403930664,
1.4052950143814087,
0.5470033288002014,
-0.47683221101760864,
-0.9313884377479553,
-0.8967412710189819,
0.99083012342453,
1.768208384513855,
-0.06027264893054962,
0.03232014924287796,
0.8987093567848206,
0.622745156288147,
-1.3226507902145386,
0.08495163917541504,
-0.7927473187446594,
-0.7153298854827881,
1.7241770029067993,
2.0201520919799805,
-0.0568871945142746,
-0.22068941593170166,
-0.7867562770843506,
-1.2673510313034058,
0.7242844700813293,
-0.09116394072771072,
0.15678708255290985,
0.6926791071891785,
-0.6839923858642578,
1.1603935956954956,
0.7471197843551636,
0.835727334022522,
0.10050513595342636,
0.25188004970550537,
0.318132221698761,
-0.3553037941455841,
-1.0993103981018066,
-0.24943335354328156,
-1.1228402853012085,
-2.5025177001953125,
0.5172315239906311,
-0.1586095690727234,
-1.5152658224105835,
-0.021627705544233322,
-0.9383817315101624,
0.9551926851272583,
-0.540804386138916,
-1.1159871816635132,
-1.4634934663772583,
0.27396920323371887,
-0.13027292490005493,
0.9465672969818115,
-1.635149359703064,
-0.12114090472459793,
1.3016647100448608,
0.8886193633079529,
-0.6054299473762512,
1.0418461561203003,
0.2133176177740097,
1.0022602081298828,
0.7994665503501892,
-0.3427276015281677,
0.4670233726501465,
0.12886939942836761,
-1.35325026512146,
0.49324217438697815,
1.1342955827713013,
0.17468099296092987,
1.4961838722229004,
-0.5323529839515686,
0.062438398599624634,
0.4023344814777374,
-0.46946367621421814,
-0.4912030100822449,
-0.5261221528053284,
0.6890822052955627,
0.029880015179514885,
-0.8980141878128052,
0.10274195671081543,
-0.14167751371860504,
-0.17313461005687714,
0.1519356518983841,
-1.5144633054733276,
-0.26441943645477295,
-0.3693121671676636,
-0.559568464756012,
-1.225807785987854,
0.007013225927948952,
1.4056235551834106,
-0.7500680088996887,
-0.21734923124313354,
0.491361528635025,
0.37232643365859985,
0.54498690366745,
0.5807601809501648,
-0.5994696021080017,
-0.4014728367328644,
-0.3340720534324646,
-0.3680209219455719,
0.2427208572626114,
1.2377642393112183,
-0.16124655306339264,
-0.9511635899543762,
0.735623836517334,
-0.4383656978607178,
-0.012799522839486599,
1.9462255239486694,
0.12642838060855865,
-0.8275905251502991,
0.35998326539993286,
-0.6530559659004211,
1.907449722290039,
1.6842647790908813,
1.3176738023757935,
-0.12482872605323792,
-0.966265857219696,
0.572657585144043,
-0.2600885033607483,
-0.35612526535987854,
0.9616479277610779,
0.4197615087032318,
-0.18141591548919678,
-1.3964459896087646,
0.5192256569862366,
1.2715892791748047,
-0.9066083431243896,
-0.789289653301239,
0.12883737683296204,
-0.8115746974945068,
1.079379916191101,
0.6610486507415771,
0.3952353596687317,
0.2119990438222885,
1.6359198093414307,
0.760004460811615,
-0.4930712878704071,
0.6263886094093323,
0.5183547139167786,
-0.19217443466186523,
-2.0302884578704834,
-1.0482091903686523,
0.31821539998054504,
-0.4503006637096405,
-1.5378097295761108,
1.319362998008728,
-1.159638524055481,
-0.9434029459953308,
0.48935413360595703,
0.09034804254770279,
1.3945403099060059,
0.30435726046562195,
1.651846170425415,
2.076982021331787,
0.9295265674591064,
0.2869659662246704,
1.336449384689331,
-0.03635613992810249,
-0.4290754795074463,
1.8701006174087524,
-0.45811721682548523,
0.510649561882019,
1.1327725648880005,
-0.4394116997718811,
-1.0251753330230713,
-0.810887336730957,
-1.1878230571746826,
-0.6392695307731628,
1.1681511402130127,
0.10195805877447128,
-1.0325149297714233,
0.2277701497077942,
1.5769414901733398,
0.15724709630012512,
-0.3308005630970001,
0.6254520416259766,
0.4857746660709381,
-0.8012719750404358,
-0.03560279309749603,
-0.8651778101921082,
0.4647713005542755,
-0.09163746237754822,
-0.34984296560287476,
0.3833795189857483,
0.5175541639328003,
1.2762420177459717,
-0.0873170867562294,
0.18050475418567657,
1.2306028604507446,
-1.3839486837387085,
1.534012794494629,
-0.647338330745697,
0.20796538889408112,
-2.376713991165161,
1.3359259366989136,
-0.7423499822616577,
1.8781989812850952,
-2.614689350128174,
0.342557430267334,
-0.6596532464027405,
-0.4526626467704773,
0.3240329623222351,
-0.4322328567504883,
0.07558474689722061,
-0.18136383593082428,
-1.1128838062286377,
-0.11882386356592178,
-0.7643312811851501,
0.6078597903251648,
1.1648237705230713,
1.3788937330245972,
-1.1284301280975342,
-0.2615245282649994,
-1.776235580444336,
-0.15657177567481995,
-0.6973204612731934,
0.3903677463531494,
-1.990471363067627,
-0.18397042155265808,
-1.9562420845031738,
-2.302715539932251,
-1.4463324546813965,
-0.872471272945404,
1.0671378374099731,
0.14626756310462952,
-0.9586484432220459,
1.0813502073287964,
-0.4138888418674469,
-1.7880271673202515,
1.0740760564804077,
-2.161170482635498
] |
https://github.com/huggingface/datasets/issues/4697 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive | Hi @albertvillanova :wave:
Thanks! Yeah I saw that but since I didn't have any metadata, I wasn't sure whether I should create them myself.
So one last question:
What is the metadata supposed to be for archives? The relative path of all files in it?
_(Sorry I'm a bit confused since it's quite hard to debug using the single error message from the data preview :sweat_smile: )_ | ### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes | 625 | 67 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes
Hi @albertvillanova :wave:
Thanks! Yeah I saw that but since I didn't have any metadata, I wasn't sure whether I should create them myself.
So one last question:
What is the metadata supposed to be for archives? The relative path of all files in it?
_(Sorry I'm a bit confused since it's quite hard to debug using the single error message from the data preview :sweat_smile: )_ | [
-1.153306007385254,
-0.9579800963401794,
-0.8230994343757629,
1.411802053451538,
-0.1832098364830017,
-1.2869019508361816,
0.11289501935243607,
-1.043105959892273,
1.6331242322921753,
-0.7264703512191772,
0.26948851346969604,
-1.6793935298919678,
-0.06426713615655899,
-0.5702290534973145,
-0.7689953446388245,
-0.8498997092247009,
-0.48664435744285583,
-0.7568116188049316,
1.0149667263031006,
2.5987656116485596,
1.1611324548721313,
-1.4936665296554565,
2.7255988121032715,
0.6899834275245667,
-0.1946914941072464,
-1.0903996229171753,
0.5677659511566162,
-0.02176401950418949,
-1.1776525974273682,
-0.4036249816417694,
-0.8976741433143616,
-0.03426913917064667,
-0.4942014813423157,
-0.532993495464325,
-0.052980273962020874,
0.4459655284881592,
-0.22798891365528107,
-0.41308268904685974,
-0.5224198698997498,
-0.7894665598869324,
0.44653668999671936,
-0.40736478567123413,
0.9818973541259766,
-0.3669587969779968,
1.825143575668335,
-0.4408758580684662,
0.4092281460762024,
0.8247736096382141,
1.3845232725143433,
0.18026526272296906,
-0.04308062046766281,
0.2975928485393524,
0.42259499430656433,
-0.08012329041957855,
0.45531266927719116,
1.106751799583435,
0.662206768989563,
0.45296692848205566,
0.7277010083198547,
-2.256479024887085,
1.1742173433303833,
-1.00339937210083,
0.35769662261009216,
1.4819858074188232,
-0.9567707180976868,
0.3607533574104309,
-1.8536558151245117,
0.053950801491737366,
0.609764814376831,
-2.132671356201172,
0.28377074003219604,
-1.17268705368042,
-0.47699207067489624,
1.0342267751693726,
0.29033607244491577,
-1.2425910234451294,
0.15998946130275726,
-0.38247185945510864,
1.0758270025253296,
0.5097613334655762,
1.200800895690918,
-1.663461685180664,
0.03892827779054642,
-0.27367275953292847,
0.11609920114278793,
-1.2474555969238281,
-1.5318059921264648,
0.37097230553627014,
0.598212480545044,
0.5799888372421265,
-0.047512687742710114,
0.9221895933151245,
-0.9605794548988342,
0.7964253425598145,
-0.9105109572410583,
-1.6289477348327637,
-1.4762907028198242,
-2.3390700817108154,
-2.297297954559326,
0.7540063858032227,
-0.4283152222633362,
-0.482170432806015,
1.9652704000473022,
-0.9683734178543091,
-1.7516120672225952,
1.2306818962097168,
0.33299723267555237,
0.022230012342333794,
2.3298263549804688,
0.28132930397987366,
-0.790623128414154,
0.44084006547927856,
-0.8133553862571716,
0.7418611645698547,
-0.5128058791160583,
1.3911014795303345,
0.5239505171775818,
-0.9182677865028381,
1.6358704566955566,
-0.5798560380935669,
0.5538480281829834,
-0.641649603843689,
-0.47343555092811584,
-0.8618303537368774,
0.4340094029903412,
1.8894749879837036,
-0.38086962699890137,
1.5684868097305298,
-0.3548896014690399,
-1.5374562740325928,
-1.5290578603744507,
0.8873987197875977,
0.4361794888973236,
-0.8563794493675232,
0.19856172800064087,
-0.4133151173591614,
0.07322491705417633,
-0.18807990849018097,
0.9662433862686157,
1.1598196029663086,
0.6917253136634827,
-0.3427984416484833,
-0.984636127948761,
0.343041330575943,
-0.09805306047201157,
-0.706773042678833,
-1.7659518718719482,
-0.3008357584476471,
0.15954263508319855,
0.6036545038223267,
-1.213680386543274,
1.7157548666000366,
0.8292471170425415,
1.9482650756835938,
0.927491307258606,
-0.4086252450942993,
1.4936307668685913,
0.0909712165594101,
1.9666569232940674,
-0.5105786323547363,
0.6389302015304565,
-0.2720855474472046,
-1.204430341720581,
0.8692447543144226,
-0.40838533639907837,
-2.0744385719299316,
-0.781375527381897,
-0.8851717114448547,
-0.15853798389434814,
-0.7744022607803345,
0.918471097946167,
-0.22755154967308044,
-1.411965012550354,
0.24447749555110931,
-0.693598210811615,
0.16612540185451508,
-1.2653547525405884,
0.2957046329975128,
0.7439677715301514,
-0.5229099988937378,
-0.01668516919016838,
-0.18762722611427307,
-1.3280638456344604,
-0.4679833948612213,
0.3551439642906189,
1.8905296325683594,
-0.7023012638092041,
0.9517552852630615,
1.0078141689300537,
-0.6358480453491211,
0.04955841600894928,
0.33931005001068115,
-0.3648192882537842,
0.9106711745262146,
-1.085806131362915,
-0.49061718583106995,
1.183375597000122,
-0.1868530809879303,
-0.6284542083740234,
1.462623119354248,
0.830717921257019,
-0.9844844937324524,
-0.2075582891702652,
-0.17233295738697052,
-0.7852182388305664,
-0.058420270681381226,
-1.65009605884552,
-0.041029222309589386,
0.31466326117515564,
-1.5231058597564697,
-0.4892829954624176,
-0.20742079615592957,
1.309516191482544,
-0.16850771009922028,
1.4594522714614868,
-0.44623667001724243,
-0.11108266562223434,
-0.4226716160774231,
-0.39995723962783813,
0.29734912514686584,
-0.2604462802410126,
-0.5631210207939148,
0.17939704656600952,
-0.8339117169380188,
0.35619696974754333,
1.369429588317871,
0.3976042568683624,
0.013565462082624435,
0.5388772487640381,
1.0785577297210693,
0.33985239267349243,
0.019352108240127563,
-0.907952070236206,
-1.4837759733200073,
2.114063024520874,
-1.4342048168182373,
1.9952934980392456,
0.7632395625114441,
-0.055614493787288666,
-1.7665544748306274,
-1.8801941871643066,
1.362575650215149,
1.1630357503890991,
2.2720558643341064,
0.5857099890708923,
0.4814891517162323,
-0.887382984161377,
-0.6620529890060425,
0.24323467910289764,
-1.0527962446212769,
-0.6974208950996399,
0.1640598028898239,
2.391141653060913,
1.7500534057617188,
-0.4619969129562378,
-0.19680915772914886,
-0.982349693775177,
1.3916860818862915,
-0.1540020853281021,
0.1961892545223236,
2.046421527862549,
-0.1235499382019043,
-1.0442256927490234,
1.2613804340362549,
-2.357964277267456,
0.24401749670505524,
2.007561445236206,
0.27316272258758545,
0.14769473671913147,
-1.4131369590759277,
-0.6196724772453308,
-0.19752444326877594,
-0.42072737216949463,
-1.1078518629074097,
0.5658937692642212,
-0.29862695932388306,
-0.8121824860572815,
-1.419763207435608,
0.16617955267429352,
-1.0468517541885376,
-1.6803663969039917,
0.2764630913734436,
1.7410327196121216,
2.039027214050293,
-0.9101733565330505,
1.537365198135376,
-0.21368999779224396,
0.21325963735580444,
1.3109115362167358,
1.2450906038284302,
3.118901491165161,
1.929933786392212,
-1.3054219484329224,
0.6396080851554871,
-0.14820121228694916,
-0.45351412892341614,
1.1329861879348755,
-1.1960456371307373,
1.2178095579147339,
-0.19173207879066467,
-1.166115164756775,
-1.1725242137908936,
1.014616847038269,
0.5237301588058472,
0.0666290819644928,
-0.513625979423523,
1.1815763711929321,
-0.026668552309274673,
1.3756616115570068,
0.6049529910087585,
-0.37123310565948486,
0.5542011857032776,
-0.38545727729797363,
-0.4457995295524597,
1.586359977722168,
0.18848048150539398,
-1.436020851135254,
-2.299342632293701,
-0.3480396568775177,
-0.8103757500648499,
-0.03577606379985809,
-0.6151891946792603,
-1.079123854637146,
1.5688285827636719,
0.43211254477500916,
-1.237302303314209,
-0.457348495721817,
-0.3594454824924469,
-0.524194598197937,
2.6674909591674805,
-1.4981049299240112,
-0.21297918260097504,
-0.9511149525642395,
-0.5276031494140625,
1.653566598892212,
-1.2179710865020752,
-0.17876330018043518,
-1.092073678970337,
-0.7058436274528503,
-1.3130241632461548,
-0.6301103830337524,
-0.03354814648628235,
-0.8745013475418091,
0.7784799337387085,
0.21674920618534088,
-1.1422195434570312,
-0.2770155072212219,
-0.8553303480148315,
0.8550959825515747,
-0.13425801694393158,
0.33930692076683044,
1.8492109775543213,
0.4229802191257477,
-0.30277472734451294,
0.7006262540817261,
1.1278144121170044,
0.6313688158988953,
-0.7110219597816467,
0.1773044466972351,
-0.7605614066123962,
0.24757368862628937,
-1.3655813932418823,
0.12962666153907776,
-2.8733394145965576,
0.640411376953125,
-0.04141552746295929,
-0.026978667825460434,
-0.09258903563022614,
-1.3033748865127563,
1.1713855266571045,
2.5573315620422363,
-1.217226266860962,
0.49879446625709534,
0.36727118492126465,
1.2067718505859375,
-1.6496554613113403,
0.2753434479236603,
-0.41377443075180054,
2.1911683082580566,
0.07346934825181961,
1.2699611186981201,
-0.4274279475212097,
-2.2953860759735107,
0.5938776731491089,
-1.2886290550231934,
-1.0992133617401123,
0.7527757883071899,
-0.7939581274986267,
0.054690830409526825,
-1.4918997287750244,
-0.21752403676509857,
-0.9133020639419556,
-1.2673513889312744,
0.8192125558853149,
0.062309712171554565,
0.40953150391578674,
-0.6417703628540039,
0.379550039768219,
-2.181121349334717,
-1.3975560665130615,
-0.22363005578517914,
-0.8968079090118408,
0.3822407126426697,
-0.3368101716041565,
0.7121953368186951,
-0.15568408370018005,
0.02686331234872341,
0.2713446617126465,
1.3750996589660645,
3.5072555541992188,
0.31991347670555115,
0.3834240138530731,
-0.07488518953323364,
-0.9329766631126404,
1.4491990804672241,
0.9788894057273865,
-0.12574703991413116,
-0.5810312628746033,
-1.0469236373901367,
1.3053208589553833,
1.9793503284454346,
1.0183796882629395,
0.08880513161420822,
-0.7922021150588989,
-0.6539686322212219,
-0.02861449122428894,
0.06899884343147278,
0.5259528160095215,
0.8921328783035278,
-0.0468548983335495,
0.0487515926361084,
1.3976045846939087,
1.2302117347717285,
-0.44144704937934875,
0.40086397528648376,
-0.8646437525749207,
-0.4160267114639282,
0.48761871457099915,
0.30755892395973206,
0.0322197824716568,
0.44582974910736084,
-1.0171574354171753,
-0.18882326781749725,
-0.3700098991394043,
-0.9000526666641235,
-0.7179253101348877,
-0.46910572052001953,
-0.28307339549064636,
1.5682705640792847,
0.21927772462368011,
-0.5004543662071228,
-0.04554789513349533,
-0.759885847568512,
-0.03738520294427872,
-1.10243558883667,
0.15277065336704254,
-0.1856740415096283,
-0.005377846769988537,
-0.18957793712615967,
1.7448630332946777,
-0.9011444449424744,
-2.0837490558624268,
0.1896282285451889,
0.3351336121559143,
-0.39685776829719543,
0.1965324878692627,
1.6951088905334473,
0.45588743686676025,
1.3634004592895508,
1.3251608610153198,
1.0218359231948853,
-0.6764861345291138,
-1.2432786226272583,
0.6421708464622498,
1.0426592826843262,
-1.413511037826538,
0.7561476230621338,
0.009191717952489853,
-0.5549241304397583,
0.7146984934806824,
1.3545585870742798,
0.40778040885925293,
-2.023313522338867,
0.7985869646072388,
-0.9029632806777954,
0.8780807256698608,
0.6480948328971863,
0.7740256786346436,
0.2476223260164261,
0.7850474119186401,
-1.2473756074905396,
-1.0751492977142334,
-0.8371564149856567,
-0.6580166816711426,
1.9472384452819824,
-0.2051515281200409,
0.5683176517486572,
-0.12850911915302277,
-1.3094021081924438,
-0.1433878391981125,
0.7175158262252808,
0.3080254793167114,
-0.3902469873428345,
0.8156253099441528,
-0.6305651068687439,
-1.166111946105957,
-1.3178712129592896,
-0.3954598307609558,
-0.9428459405899048,
-0.9038214087486267,
1.0329527854919434,
0.7541528344154358,
0.3428748846054077,
1.8595776557922363,
0.7057259678840637,
0.15897661447525024,
-2.6520674228668213,
0.8966012001037598,
0.31703802943229675,
0.029495397582650185,
0.8612939715385437,
0.2539393901824951,
1.0723941326141357,
-0.056693099439144135,
0.5208690762519836,
-2.389631509780884,
2.1557986736297607,
-0.22199182212352753,
0.6605250239372253,
-0.0013351347297430038,
-0.23475562036037445,
1.0848002433776855,
0.5440000295639038,
0.5041490197181702,
-1.1341270208358765,
0.6763615012168884,
-0.6291314363479614,
1.2150158882141113,
0.8959493637084961,
-0.8443322777748108,
-0.08474764972925186,
1.392751693725586,
0.47257426381111145,
-0.4998120963573456,
-0.9753708839416504,
-0.8601561188697815,
1.0130234956741333,
1.6909239292144775,
-0.059565380215644836,
0.022215628996491432,
0.9173363447189331,
0.6933358907699585,
-1.2913140058517456,
0.04789657145738602,
-0.7845108509063721,
-0.6950329542160034,
1.791418194770813,
2.0914385318756104,
-0.10194429010152817,
-0.2630283832550049,
-0.7932344079017639,
-1.356763482093811,
0.7511841654777527,
-0.1419144570827484,
0.13238325715065002,
0.6756094694137573,
-0.6494633555412292,
1.1412427425384521,
0.7312700152397156,
0.8776146173477173,
0.08725742995738983,
0.25337767601013184,
0.3284444510936737,
-0.3173286020755768,
-1.128882884979248,
-0.24960023164749146,
-1.1872628927230835,
-2.468820810317993,
0.45913219451904297,
-0.1478763073682785,
-1.4586485624313354,
0.010584155097603798,
-0.9442093372344971,
0.9948335886001587,
-0.5517399907112122,
-1.0991709232330322,
-1.445249080657959,
0.25440946221351624,
-0.10248833894729614,
0.8820523619651794,
-1.562930941581726,
-0.11902838200330734,
1.3178694248199463,
0.8527895212173462,
-0.6365090608596802,
1.057296633720398,
0.23045562207698822,
1.0462586879730225,
0.7964901924133301,
-0.3449274003505707,
0.5135087966918945,
0.10385537147521973,
-1.3671237230300903,
0.5998947024345398,
1.1629172563552856,
0.1611231118440628,
1.5274244546890259,
-0.5344161987304688,
0.04211647808551788,
0.415243923664093,
-0.5161731839179993,
-0.5216666460037231,
-0.5102695226669312,
0.7283483743667603,
0.03152792155742645,
-0.9549204111099243,
0.08775243163108826,
-0.12080678343772888,
-0.17899376153945923,
0.19425031542778015,
-1.561449646949768,
-0.23405174911022186,
-0.3101891875267029,
-0.5512264966964722,
-1.2203824520111084,
0.009959874674677849,
1.4095091819763184,
-0.724959671497345,
-0.2132270783185959,
0.5351487994194031,
0.38162940740585327,
0.5361294150352478,
0.5780450701713562,
-0.5440483093261719,
-0.4195620119571686,
-0.3391681909561157,
-0.31815505027770996,
0.2659454941749573,
1.2361208200454712,
-0.17365306615829468,
-0.9641321301460266,
0.7135592699050903,
-0.45365259051322937,
-0.04507993161678314,
1.9187067747116089,
0.1515188068151474,
-0.8448550701141357,
0.37110528349876404,
-0.7280920743942261,
1.9571189880371094,
1.6905620098114014,
1.3050131797790527,
-0.1164507195353508,
-0.9576579928398132,
0.6127069592475891,
-0.3003469407558441,
-0.38715335726737976,
0.861772358417511,
0.4699045717716217,
-0.16822880506515503,
-1.4064093828201294,
0.5405845046043396,
1.2344790697097778,
-0.9014742970466614,
-0.8069100975990295,
0.14050844311714172,
-0.8053579926490784,
1.0981627702713013,
0.6556400656700134,
0.41965004801750183,
0.2383730411529541,
1.6485313177108765,
0.789437472820282,
-0.5130928158760071,
0.6014443039894104,
0.5906161665916443,
-0.1275394856929779,
-2.031477928161621,
-1.0533016920089722,
0.31679344177246094,
-0.4401959180831909,
-1.562829613685608,
1.3283017873764038,
-1.130715012550354,
-0.9432843327522278,
0.5454626083374023,
0.08081154525279999,
1.377307653427124,
0.3205558955669403,
1.6180551052093506,
2.0102829933166504,
0.9134368896484375,
0.3041759729385376,
1.2688339948654175,
-0.1094856932759285,
-0.45788997411727905,
1.9073160886764526,
-0.42863887548446655,
0.5013468265533447,
1.1234744787216187,
-0.45469439029693604,
-1.0476969480514526,
-0.8275511264801025,
-1.231665849685669,
-0.6586263179779053,
1.1583448648452759,
0.144551619887352,
-1.1223242282867432,
0.20785148441791534,
1.6065587997436523,
0.11855395883321762,
-0.3552699685096741,
0.6364328265190125,
0.4202635884284973,
-0.8467466831207275,
-0.013434389606118202,
-0.9089511036872864,
0.45113876461982727,
-0.08021973073482513,
-0.33877894282341003,
0.3885144889354706,
0.5039306282997131,
1.2600551843643188,
-0.07308286428451538,
0.1597857028245926,
1.1702073812484741,
-1.433674931526184,
1.510715365409851,
-0.6746898293495178,
0.25334233045578003,
-2.3354923725128174,
1.3050003051757812,
-0.7732148766517639,
1.9059321880340576,
-2.6507294178009033,
0.31263330578804016,
-0.6936360001564026,
-0.41341447830200195,
0.3123489320278168,
-0.4448380470275879,
0.023417046293616295,
-0.14369623363018036,
-1.1649302244186401,
-0.10939062386751175,
-0.7417909502983093,
0.6301496028900146,
1.1391524076461792,
1.389830470085144,
-1.1108341217041016,
-0.2528552711009979,
-1.711397647857666,
-0.17667093873023987,
-0.7040844559669495,
0.3695772886276245,
-1.9978824853897095,
-0.16347149014472961,
-1.9777427911758423,
-2.241868019104004,
-1.4339404106140137,
-0.8633009195327759,
1.023390531539917,
0.16269062459468842,
-0.97884601354599,
1.042861819267273,
-0.37463152408599854,
-1.7240689992904663,
1.12248694896698,
-2.1393871307373047
] |
https://github.com/huggingface/datasets/issues/4697 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive | Hi @frgfm, streaming a dataset that contains a TAR file requires some tweaks because (contrary to ZIP files), tha TAR archive does not allow random access to any of the contained member files. Instead they have to be accessed sequentially (in the order in which they were put into the TAR file when created) and yielded.
So when iterating over the TAR file content, when an image file is found, we need to yield it (and not keeping it in memory, which will require huge RAM memory for large datasets). But when yielding an image file, we also need to yield with it what we call "metadata": the class label, and other textual information (for example, for audio files, sometimes we also add info such as the speaker ID, their sex, their age,...).
All this information usually is stored in what we call the metadata file: either a JSON or a CSV/TSV file.
But if this is also inside the TAR archive, we need to find this file in the first place when iterating the TAR archive, so that we already have this information when we find an image file and we can yield the image file and its metadata info.
Therefore:
- either the TAR archive contains the metadata file as the first member when iterating it (something we cannot change as it is done at the creation of the TAR file)
- or if not, then we need to have the metadata file elsewhere
- in these cases, what we do (if the dataset license allows it) is:
- we download the TAR file locally, we extract the metadata file and we host the metadata on the Hub
- we modify the dataset loading script so that it first downloads the metadata file (and reads it) and only then starts iterating the content of the TAR archive file
See an example of this process we recently did for "google/fleurs" (their metadata files for "train" were at the end of the TAR archives, after all audio files): https://huggingface.co/datasets/google/fleurs/discussions/4
- we uploaded the metadata file to the Hub
- we adapted the loading script to use it | ### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes | 625 | 357 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes
Hi @frgfm, streaming a dataset that contains a TAR file requires some tweaks because (contrary to ZIP files), tha TAR archive does not allow random access to any of the contained member files. Instead they have to be accessed sequentially (in the order in which they were put into the TAR file when created) and yielded.
So when iterating over the TAR file content, when an image file is found, we need to yield it (and not keeping it in memory, which will require huge RAM memory for large datasets). But when yielding an image file, we also need to yield with it what we call "metadata": the class label, and other textual information (for example, for audio files, sometimes we also add info such as the speaker ID, their sex, their age,...).
All this information usually is stored in what we call the metadata file: either a JSON or a CSV/TSV file.
But if this is also inside the TAR archive, we need to find this file in the first place when iterating the TAR archive, so that we already have this information when we find an image file and we can yield the image file and its metadata info.
Therefore:
- either the TAR archive contains the metadata file as the first member when iterating it (something we cannot change as it is done at the creation of the TAR file)
- or if not, then we need to have the metadata file elsewhere
- in these cases, what we do (if the dataset license allows it) is:
- we download the TAR file locally, we extract the metadata file and we host the metadata on the Hub
- we modify the dataset loading script so that it first downloads the metadata file (and reads it) and only then starts iterating the content of the TAR archive file
See an example of this process we recently did for "google/fleurs" (their metadata files for "train" were at the end of the TAR archives, after all audio files): https://huggingface.co/datasets/google/fleurs/discussions/4
- we uploaded the metadata file to the Hub
- we adapted the loading script to use it | [
-1.1936497688293457,
-0.9639008045196533,
-0.7693411707878113,
1.4037150144577026,
-0.17027954757213593,
-1.2838108539581299,
0.09779191017150879,
-1.0732485055923462,
1.6382853984832764,
-0.7730137705802917,
0.24591030180454254,
-1.7263374328613281,
0.0048760948702692986,
-0.5785203576087952,
-0.7767226099967957,
-0.8664655685424805,
-0.4434146285057068,
-0.8393168449401855,
0.991365373134613,
2.588136672973633,
1.1829369068145752,
-1.4149353504180908,
2.707653760910034,
0.6508286595344543,
-0.24820786714553833,
-1.0826159715652466,
0.5716862082481384,
-0.08134913444519043,
-1.2738069295883179,
-0.4585578143596649,
-0.9157516956329346,
-0.0090686846524477,
-0.5342824459075928,
-0.5084884762763977,
-0.03156731277704239,
0.4018825590610504,
-0.25906479358673096,
-0.3470856845378876,
-0.6017090678215027,
-0.7637243866920471,
0.46288371086120605,
-0.42940303683280945,
1.0470143556594849,
-0.3327966034412384,
1.7879129648208618,
-0.49846819043159485,
0.42224931716918945,
0.7642010450363159,
1.4229620695114136,
0.19914117455482483,
-0.007972290739417076,
0.24120214581489563,
0.3969867527484894,
-0.07487119734287262,
0.43784308433532715,
1.1109503507614136,
0.6499406695365906,
0.4667836129665375,
0.7080138921737671,
-2.2390921115875244,
1.2705901861190796,
-0.9985854029655457,
0.315277099609375,
1.3877393007278442,
-0.8865017294883728,
0.4096578359603882,
-1.865682601928711,
-0.00017510820180177689,
0.5515978932380676,
-2.2504849433898926,
0.2258930802345276,
-1.1730670928955078,
-0.47774195671081543,
1.0057176351547241,
0.3216359615325928,
-1.217383861541748,
0.2242242693901062,
-0.43155238032341003,
1.0196658372879028,
0.467195600271225,
1.191145896911621,
-1.6861844062805176,
-0.03291770815849304,
-0.2580081522464752,
0.13492195308208466,
-1.2435954809188843,
-1.5517065525054932,
0.48209255933761597,
0.6187629699707031,
0.5294150710105896,
-0.038923297077417374,
1.0166354179382324,
-0.978125274181366,
0.7739025354385376,
-0.9014852643013,
-1.6629067659378052,
-1.4165054559707642,
-2.271611213684082,
-2.2780849933624268,
0.7603446245193481,
-0.4977799654006958,
-0.5131078362464905,
2.007427215576172,
-1.014725685119629,
-1.7056658267974854,
1.264188289642334,
0.29628774523735046,
-0.010219105519354343,
2.402399778366089,
0.20419706404209137,
-0.7188740968704224,
0.4653761088848114,
-0.7295506000518799,
0.83016037940979,
-0.5159450769424438,
1.3646142482757568,
0.4243939518928528,
-0.9717851281166077,
1.5895066261291504,
-0.4890487790107727,
0.5727660655975342,
-0.6477813124656677,
-0.4658927321434021,
-0.8459522724151611,
0.4409332871437073,
1.878407597541809,
-0.3701566755771637,
1.5053108930587769,
-0.35426974296569824,
-1.5129817724227905,
-1.5682337284088135,
0.9335604310035706,
0.5140381455421448,
-0.8005712032318115,
0.07857686281204224,
-0.4096266031265259,
0.11169201135635376,
-0.1232842355966568,
0.9735596776008606,
1.2001938819885254,
0.7207179665565491,
-0.3080209195613861,
-0.9027690887451172,
0.29719820618629456,
-0.15571250021457672,
-0.7498606443405151,
-1.7794185876846313,
-0.3104943633079529,
0.1502634733915329,
0.6222223043441772,
-1.2308757305145264,
1.7381526231765747,
0.9136191010475159,
2.0012269020080566,
0.9363207221031189,
-0.4407292604446411,
1.474400520324707,
0.06307432055473328,
1.9118280410766602,
-0.4797550439834595,
0.6594863533973694,
-0.351980596780777,
-1.2580660581588745,
0.885776937007904,
-0.37884455919265747,
-2.0312764644622803,
-0.729830801486969,
-0.8106025457382202,
-0.2153235226869583,
-0.7399322390556335,
0.9379605054855347,
-0.26787814497947693,
-1.394492268562317,
0.2105552703142166,
-0.6525967121124268,
0.16822697222232819,
-1.276871919631958,
0.3022415339946747,
0.6913262009620667,
-0.6374117136001587,
0.004471604712307453,
-0.22464479506015778,
-1.32025945186615,
-0.45352017879486084,
0.2430175095796585,
1.8243910074234009,
-0.7200326919555664,
0.9730305671691895,
1.0257303714752197,
-0.6494917273521423,
0.02732241153717041,
0.39607229828834534,
-0.3272651135921478,
0.8542788624763489,
-1.003970980644226,
-0.5111770033836365,
1.2295655012130737,
-0.19904948770999908,
-0.612211287021637,
1.4221025705337524,
0.701104462146759,
-1.0107203722000122,
-0.23404183983802795,
-0.15700563788414001,
-0.8304468393325806,
-0.022732701152563095,
-1.679497241973877,
-0.06372126936912537,
0.36905598640441895,
-1.55857253074646,
-0.4210093319416046,
-0.2782396376132965,
1.2450592517852783,
-0.14199025928974152,
1.4959514141082764,
-0.4541379511356354,
-0.10155986249446869,
-0.3453466296195984,
-0.4086965322494507,
0.1938873529434204,
-0.28315016627311707,
-0.5467227697372437,
0.2350611686706543,
-0.8400319218635559,
0.32206016778945923,
1.4627591371536255,
0.36503663659095764,
0.05846187099814415,
0.4477994441986084,
1.0609321594238281,
0.40823662281036377,
-0.04605009779334068,
-0.928024172782898,
-1.4749215841293335,
2.078237295150757,
-1.4697723388671875,
1.973853588104248,
0.8666711449623108,
-0.029250511899590492,
-1.7720528841018677,
-1.8867005109786987,
1.3087773323059082,
1.1068142652511597,
2.3442203998565674,
0.5696753859519958,
0.43215057253837585,
-0.8114436268806458,
-0.6226810812950134,
0.31202077865600586,
-1.0100440979003906,
-0.7245950102806091,
0.1156759262084961,
2.384432792663574,
1.800869345664978,
-0.4381903111934662,
-0.2202138453722,
-1.038022756576538,
1.330628752708435,
-0.14080749452114105,
0.20794613659381866,
2.0354645252227783,
-0.2172577828168869,
-1.056754469871521,
1.304761528968811,
-2.315593957901001,
0.20842647552490234,
1.950496792793274,
0.24612174928188324,
0.13631853461265564,
-1.393367886543274,
-0.5984175801277161,
-0.21646401286125183,
-0.36416980624198914,
-1.1909462213516235,
0.6013551354408264,
-0.2715187668800354,
-0.7922793626785278,
-1.4283974170684814,
0.16376131772994995,
-1.1269888877868652,
-1.7033826112747192,
0.28717732429504395,
1.8023359775543213,
2.0972044467926025,
-0.8796414732933044,
1.5162960290908813,
-0.2581331431865692,
0.1398216187953949,
1.2538573741912842,
1.231748104095459,
3.09806489944458,
1.9029614925384521,
-1.3457818031311035,
0.5813865661621094,
-0.1971222162246704,
-0.4220517575740814,
1.1014735698699951,
-1.157447338104248,
1.244924545288086,
-0.15725931525230408,
-1.2129515409469604,
-1.1754662990570068,
1.027830958366394,
0.4626123309135437,
0.06550157070159912,
-0.5458771586418152,
1.1878080368041992,
0.03709065169095993,
1.3178009986877441,
0.5854600071907043,
-0.35698044300079346,
0.6009648442268372,
-0.334600567817688,
-0.5525630712509155,
1.634174108505249,
0.18044456839561462,
-1.411497950553894,
-2.3114593029022217,
-0.3079037070274353,
-0.8351636528968811,
0.08483819663524628,
-0.6217256188392639,
-0.9912029504776001,
1.6182880401611328,
0.3916982412338257,
-1.3158611059188843,
-0.40321803092956543,
-0.3392239511013031,
-0.5579223036766052,
2.6289992332458496,
-1.448958396911621,
-0.1961653232574463,
-0.9649685025215149,
-0.5435900092124939,
1.6137497425079346,
-1.2262160778045654,
-0.22242188453674316,
-1.0064067840576172,
-0.6232242584228516,
-1.2721210718154907,
-0.5774620175361633,
-0.01720200479030609,
-0.9248257875442505,
0.791297972202301,
0.2766191363334656,
-1.1438770294189453,
-0.3334386944770813,
-0.8448147773742676,
0.9118362069129944,
-0.11164385080337524,
0.30319926142692566,
1.8977718353271484,
0.42855599522590637,
-0.3226108253002167,
0.7339779138565063,
1.1393048763275146,
0.6134617924690247,
-0.6539261937141418,
0.13536299765110016,
-0.7896202206611633,
0.3288811147212982,
-1.3069782257080078,
0.23350533843040466,
-2.8279130458831787,
0.6278652548789978,
-0.10754352807998657,
-0.013038747012615204,
-0.005642524920403957,
-1.238839030265808,
1.1087727546691895,
2.6272082328796387,
-1.1669529676437378,
0.5190209150314331,
0.36612409353256226,
1.2019524574279785,
-1.5490405559539795,
0.32393431663513184,
-0.39101332426071167,
2.177466630935669,
0.11569546163082123,
1.2108078002929688,
-0.5074791312217712,
-2.3131556510925293,
0.5989016890525818,
-1.306936264038086,
-1.0911070108413696,
0.7679504752159119,
-0.7787694931030273,
0.006793351843953133,
-1.468493938446045,
-0.18966782093048096,
-0.8798547983169556,
-1.2764334678649902,
0.77434903383255,
0.057060543447732925,
0.4147334396839142,
-0.6197274923324585,
0.35283949971199036,
-2.155776262283325,
-1.3899908065795898,
-0.29257267713546753,
-0.9008018970489502,
0.41084766387939453,
-0.3528061509132385,
0.720604419708252,
-0.2331223338842392,
0.0026165256276726723,
0.3380281329154968,
1.3599846363067627,
3.46803879737854,
0.3093714714050293,
0.36178937554359436,
-0.16218046844005585,
-0.9439956545829773,
1.387465000152588,
1.0061177015304565,
-0.1600969433784485,
-0.5858435034751892,
-1.0509495735168457,
1.3451300859451294,
1.9792861938476562,
1.0085971355438232,
0.11194643378257751,
-0.8198441863059998,
-0.7108376026153564,
-0.014292895793914795,
0.11337965726852417,
0.5248544812202454,
0.9407308101654053,
-0.05546054244041443,
0.10271820425987244,
1.402161717414856,
1.2829043865203857,
-0.4184372127056122,
0.3661802411079407,
-0.7808079123497009,
-0.4155908226966858,
0.5129978060722351,
0.3060259222984314,
0.0496830977499485,
0.43172159790992737,
-0.9997194409370422,
-0.2374199628829956,
-0.40806642174720764,
-0.9312803745269775,
-0.7285544276237488,
-0.3545064926147461,
-0.3111035227775574,
1.6106681823730469,
0.1924380511045456,
-0.43900543451309204,
0.0446024090051651,
-0.7179875373840332,
-0.08477263152599335,
-1.0530041456222534,
0.21711760759353638,
-0.1857994794845581,
-0.054743170738220215,
-0.15646733343601227,
1.7687702178955078,
-0.9175967574119568,
-2.108281373977661,
0.23784685134887695,
0.24683643877506256,
-0.38872838020324707,
0.22140881419181824,
1.7057652473449707,
0.5562549233436584,
1.4251189231872559,
1.3768715858459473,
0.9720037579536438,
-0.7202702760696411,
-1.2896226644515991,
0.7225949168205261,
0.9901480674743652,
-1.4697847366333008,
0.8279130458831787,
0.018563704565167427,
-0.5648662447929382,
0.7349292039871216,
1.381798505783081,
0.3961930572986603,
-2.073803186416626,
0.8141087889671326,
-0.928243100643158,
0.8014992475509644,
0.686050295829773,
0.7956547737121582,
0.20875126123428345,
0.7410356402397156,
-1.248208999633789,
-1.1494308710098267,
-0.8097043037414551,
-0.6308477520942688,
1.975854754447937,
-0.2064254879951477,
0.5816410183906555,
-0.10283802449703217,
-1.3232533931732178,
-0.13035599887371063,
0.6573259234428406,
0.28633180260658264,
-0.3844342827796936,
0.7838069796562195,
-0.6831563115119934,
-1.161263346672058,
-1.3491233587265015,
-0.471331387758255,
-1.0116195678710938,
-0.8959417343139648,
1.0391000509262085,
0.8040895462036133,
0.3471736013889313,
1.880768060684204,
0.6928688287734985,
0.19481122493743896,
-2.6450724601745605,
0.9136887192726135,
0.32505422830581665,
-0.057397473603487015,
0.879547119140625,
0.2626070976257324,
1.0241175889968872,
0.03104482591152191,
0.5299129486083984,
-2.397073984146118,
2.232795000076294,
-0.21994565427303314,
0.6975833773612976,
-0.014551149681210518,
-0.21035002171993256,
1.0721218585968018,
0.5384002327919006,
0.4923168122768402,
-1.1204683780670166,
0.6788037419319153,
-0.6114793419837952,
1.2196367979049683,
0.909862756729126,
-0.8445484042167664,
-0.05080028623342514,
1.3712477684020996,
0.5124948024749756,
-0.5127362012863159,
-0.9097022414207458,
-0.8738660216331482,
0.9509546160697937,
1.8170441389083862,
-0.06197213754057884,
0.04605254903435707,
0.8903539180755615,
0.6462869644165039,
-1.265307903289795,
0.017072925344109535,
-0.7262790203094482,
-0.7578454613685608,
1.6596347093582153,
2.0537917613983154,
-0.07774698734283447,
-0.2459753006696701,
-0.7303466200828552,
-1.2860842943191528,
0.7374746799468994,
-0.0984695553779602,
0.20474910736083984,
0.6528913974761963,
-0.6747289299964905,
1.1428196430206299,
0.8188509941101074,
0.9040402770042419,
0.13329285383224487,
0.21944338083267212,
0.38235828280448914,
-0.3614397943019867,
-1.061754822731018,
-0.24554213881492615,
-1.1488544940948486,
-2.5003833770751953,
0.5082701444625854,
-0.15111735463142395,
-1.5199860334396362,
-0.0022261375561356544,
-0.9314062595367432,
0.9476667642593384,
-0.5404202938079834,
-1.0879414081573486,
-1.4876670837402344,
0.26434531807899475,
-0.1541406363248825,
0.922151505947113,
-1.6563466787338257,
-0.17859840393066406,
1.2530711889266968,
0.9025408029556274,
-0.5899132490158081,
1.028166651725769,
0.21637900173664093,
1.0162714719772339,
0.8124749660491943,
-0.3399319648742676,
0.46689873933792114,
0.10565625131130219,
-1.2967710494995117,
0.42819684743881226,
1.1310425996780396,
0.17640843987464905,
1.4737085103988647,
-0.5064427852630615,
0.01966528594493866,
0.39479130506515503,
-0.46287670731544495,
-0.47424086928367615,
-0.5115950107574463,
0.6896687150001526,
0.04051133245229721,
-0.8892539143562317,
0.0655273050069809,
-0.15857572853565216,
-0.2325318455696106,
0.22069203853607178,
-1.52095365524292,
-0.23990821838378906,
-0.38627153635025024,
-0.5376687049865723,
-1.2315481901168823,
-0.06965407729148865,
1.4455102682113647,
-0.7032420039176941,
-0.2119639366865158,
0.5172242522239685,
0.36438873410224915,
0.5317554473876953,
0.6502315402030945,
-0.6679982542991638,
-0.44051235914230347,
-0.2716861963272095,
-0.372776597738266,
0.2914216220378876,
1.2785612344741821,
-0.10018827021121979,
-0.9132919907569885,
0.6901851296424866,
-0.4089142084121704,
0.016290372237563133,
1.9255974292755127,
0.11393430829048157,
-0.8255211710929871,
0.3698027431964874,
-0.7218990325927734,
1.9095269441604614,
1.686687707901001,
1.2721638679504395,
-0.12202043831348419,
-0.9581508040428162,
0.6326496005058289,
-0.2638411223888397,
-0.3333219885826111,
0.9118161201477051,
0.37594959139823914,
-0.18104851245880127,
-1.4987678527832031,
0.5365995764732361,
1.2164881229400635,
-0.8225812315940857,
-0.7957296967506409,
0.06713046133518219,
-0.8162809014320374,
1.1211055517196655,
0.6524326205253601,
0.3293352723121643,
0.21640658378601074,
1.6297962665557861,
0.8592497706413269,
-0.4926200211048126,
0.5960108637809753,
0.545506477355957,
-0.1847342848777771,
-2.0928759574890137,
-1.0853617191314697,
0.26141873002052307,
-0.4156990051269531,
-1.5097928047180176,
1.329096794128418,
-1.1093379259109497,
-0.9524824023246765,
0.5413283109664917,
0.07695968449115753,
1.385306715965271,
0.34545204043388367,
1.5625112056732178,
2.0980169773101807,
0.9713897705078125,
0.2685645520687103,
1.3345764875411987,
-0.14221756160259247,
-0.4618208408355713,
1.8704071044921875,
-0.40294235944747925,
0.4473434388637543,
1.098802924156189,
-0.4287105202674866,
-1.0248411893844604,
-0.7990543842315674,
-1.225818157196045,
-0.7006312012672424,
1.16059148311615,
0.08372260630130768,
-1.035282015800476,
0.2455093413591385,
1.573386311531067,
0.12726375460624695,
-0.322029173374176,
0.6199859380722046,
0.5110959410667419,
-0.818390965461731,
-0.08966320753097534,
-0.8480860590934753,
0.398164838552475,
-0.09816399216651917,
-0.36290442943573,
0.40543127059936523,
0.5383359789848328,
1.2697749137878418,
-0.07839293777942657,
0.11812283098697662,
1.1434502601623535,
-1.4288649559020996,
1.4793050289154053,
-0.6456202864646912,
0.21680645644664764,
-2.3804805278778076,
1.3653748035430908,
-0.7548757791519165,
1.969959020614624,
-2.5740740299224854,
0.3828926980495453,
-0.6659051775932312,
-0.5074892640113831,
0.31902140378952026,
-0.4339883029460907,
0.15385742485523224,
-0.1576329469680786,
-1.1002148389816284,
-0.14601118862628937,
-0.6695995330810547,
0.6261740922927856,
1.1357142925262451,
1.3907675743103027,
-1.0887442827224731,
-0.26661595702171326,
-1.7590136528015137,
-0.20141133666038513,
-0.7043996453285217,
0.2585514485836029,
-2.0126214027404785,
-0.1837455779314041,
-1.955929160118103,
-2.2216618061065674,
-1.472213864326477,
-0.873008668422699,
1.120025634765625,
0.2015126794576645,
-0.9413267970085144,
1.1201454401016235,
-0.3800274729728699,
-1.8132842779159546,
1.0844846963882446,
-2.189305543899536
] |
https://github.com/huggingface/datasets/issues/4697 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive | Hi @albertvillanova :wave:
Thanks, since my last message, I went through the repo of https://huggingface.co/datasets/food101/blob/main/food101.py and managed to get it to work in the end :pray:
Here it is: https://huggingface.co/datasets/frgfm/imagenette
I appreciate you opening an issue to document the process, it might help a few! | ### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes | 625 | 45 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes
Hi @albertvillanova :wave:
Thanks, since my last message, I went through the repo of https://huggingface.co/datasets/food101/blob/main/food101.py and managed to get it to work in the end :pray:
Here it is: https://huggingface.co/datasets/frgfm/imagenette
I appreciate you opening an issue to document the process, it might help a few! | [
-1.1274250745773315,
-0.9625260829925537,
-0.8183044195175171,
1.3874672651290894,
-0.1709001362323761,
-1.2794618606567383,
0.10900774598121643,
-1.0072723627090454,
1.6016875505447388,
-0.6628493666648865,
0.2876884639263153,
-1.7382107973098755,
-0.11964533478021622,
-0.5263509750366211,
-0.7654151320457458,
-0.8541968464851379,
-0.5054560899734497,
-0.7916706800460815,
0.9435911178588867,
2.6398584842681885,
1.2239679098129272,
-1.462510108947754,
2.6987404823303223,
0.6589936017990112,
-0.19204944372177124,
-1.0970733165740967,
0.617136538028717,
-0.030416958034038544,
-1.2068593502044678,
-0.41539567708969116,
-0.8574210405349731,
-0.041171807795763016,
-0.48043784499168396,
-0.532028079032898,
-0.014664703980088234,
0.4429292678833008,
-0.1757819801568985,
-0.34925925731658936,
-0.5520369410514832,
-0.7794103026390076,
0.4487278461456299,
-0.4254782795906067,
0.9858646392822266,
-0.3915107846260071,
1.7963688373565674,
-0.4538207948207855,
0.4149986505508423,
0.7931041121482849,
1.3892979621887207,
0.13955692946910858,
0.0031284084543585777,
0.24910476803779602,
0.4416126012802124,
-0.01774100959300995,
0.4336622655391693,
1.1449508666992188,
0.6538184881210327,
0.4209727346897125,
0.6628298759460449,
-2.2542014122009277,
1.201262354850769,
-0.9466054439544678,
0.33897653222084045,
1.5014785528182983,
-0.8867067694664001,
0.3279589116573334,
-1.844568133354187,
0.02681087702512741,
0.5898217558860779,
-2.1265885829925537,
0.25423040986061096,
-1.1450525522232056,
-0.5165093541145325,
1.028360366821289,
0.30423179268836975,
-1.2625300884246826,
0.16601845622062683,
-0.40338489413261414,
1.0950113534927368,
0.5278852581977844,
1.2527097463607788,
-1.6823983192443848,
0.020315848290920258,
-0.24018001556396484,
0.0868217870593071,
-1.2696436643600464,
-1.5419834852218628,
0.36280807852745056,
0.5963749885559082,
0.6551797986030579,
-0.021732617169618607,
0.8728334903717041,
-0.9543643593788147,
0.7977098226547241,
-0.8986274600028992,
-1.6569842100143433,
-1.4432775974273682,
-2.330745220184326,
-2.3070108890533447,
0.7487874627113342,
-0.4262976348400116,
-0.4648030400276184,
1.9488935470581055,
-0.9356374144554138,
-1.780191421508789,
1.155430555343628,
0.39378929138183594,
0.04274095594882965,
2.3698678016662598,
0.2841435670852661,
-0.7920787930488586,
0.3698345422744751,
-0.7702335119247437,
0.7528737187385559,
-0.4847634434700012,
1.4028602838516235,
0.5445618629455566,
-0.9372891187667847,
1.639724612236023,
-0.592176079750061,
0.564679741859436,
-0.6932269930839539,
-0.4432380795478821,
-0.8165655136108398,
0.421162486076355,
1.8298591375350952,
-0.4180191457271576,
1.5405598878860474,
-0.3670016825199127,
-1.5192910432815552,
-1.5252349376678467,
0.8674675226211548,
0.4788890779018402,
-0.8097456097602844,
0.12785468995571136,
-0.4197355806827545,
0.05144963786005974,
-0.16314096748828888,
0.925849437713623,
1.1449036598205566,
0.6811776161193848,
-0.3382117748260498,
-0.9366008043289185,
0.3407978415489197,
-0.07815107703208923,
-0.7166873812675476,
-1.7600072622299194,
-0.2876279950141907,
0.16992023587226868,
0.5990631580352783,
-1.264913558959961,
1.751444697380066,
0.8225686550140381,
2.0326244831085205,
0.8784098029136658,
-0.3951079845428467,
1.4768677949905396,
0.018519945442676544,
1.9566138982772827,
-0.49888020753860474,
0.640895426273346,
-0.2681351602077484,
-1.18902587890625,
0.8755625486373901,
-0.4470455050468445,
-2.0676074028015137,
-0.8174023032188416,
-0.868780791759491,
-0.18034788966178894,
-0.7875230312347412,
0.9238252639770508,
-0.1885107159614563,
-1.3955934047698975,
0.20364639163017273,
-0.7064542174339294,
0.13979068398475647,
-1.3000576496124268,
0.21656230092048645,
0.7419090867042542,
-0.5572945475578308,
-0.04243034869432449,
-0.17658530175685883,
-1.3258534669876099,
-0.49501773715019226,
0.3363381624221802,
1.8987809419631958,
-0.6496089100837708,
0.9924542903900146,
0.992440938949585,
-0.6372201442718506,
0.07509223371744156,
0.32684609293937683,
-0.3613449037075043,
0.8701609373092651,
-1.0429209470748901,
-0.4800216257572174,
1.1483433246612549,
-0.17936813831329346,
-0.713310182094574,
1.508345365524292,
0.8306428790092468,
-0.9909873008728027,
-0.23742900788784027,
-0.19530056416988373,
-0.7195106148719788,
-0.05679932236671448,
-1.6417319774627686,
-0.0035260431468486786,
0.26768583059310913,
-1.4678552150726318,
-0.4566948413848877,
-0.24685698747634888,
1.334847331047058,
-0.1699339747428894,
1.4678292274475098,
-0.4094012379646301,
-0.12015179544687271,
-0.4262065291404724,
-0.4145256578922272,
0.2203916311264038,
-0.25303518772125244,
-0.5545068383216858,
0.2233329862356186,
-0.8661940097808838,
0.36219215393066406,
1.3996189832687378,
0.421705037355423,
0.046121492981910706,
0.5014474391937256,
1.0590673685073853,
0.39127686619758606,
0.03431928530335426,
-0.9261888265609741,
-1.4769527912139893,
2.070704221725464,
-1.4260358810424805,
1.9697855710983276,
0.8484509587287903,
-0.06273384392261505,
-1.7811955213546753,
-1.8837087154388428,
1.3651065826416016,
1.1728030443191528,
2.367462158203125,
0.6151666641235352,
0.46171554923057556,
-0.8430538773536682,
-0.6667830348014832,
0.2420886754989624,
-1.0380483865737915,
-0.7037168741226196,
0.18798993527889252,
2.4074618816375732,
1.7613872289657593,
-0.4694647789001465,
-0.22608233988285065,
-0.9684576988220215,
1.3312441110610962,
-0.13942232728004456,
0.1779930293560028,
2.0963172912597656,
-0.1527031809091568,
-0.9751026034355164,
1.2504713535308838,
-2.322798490524292,
0.2598772943019867,
1.9893025159835815,
0.2500743269920349,
0.17764009535312653,
-1.4368970394134521,
-0.631587564945221,
-0.2420366257429123,
-0.4315244257450104,
-1.1125967502593994,
0.5926119685173035,
-0.29443132877349854,
-0.8779968619346619,
-1.4184236526489258,
0.15658710896968842,
-1.0527808666229248,
-1.7300424575805664,
0.31256532669067383,
1.709998607635498,
2.020920515060425,
-0.9270108938217163,
1.5149492025375366,
-0.21138231456279755,
0.15396669507026672,
1.3238794803619385,
1.2830641269683838,
3.0824248790740967,
1.9261962175369263,
-1.344307780265808,
0.692203164100647,
-0.1866944134235382,
-0.451473206281662,
1.1317113637924194,
-1.1708036661148071,
1.213565468788147,
-0.22429196536540985,
-1.2187427282333374,
-1.1857054233551025,
1.0848205089569092,
0.5529783964157104,
0.06451375782489777,
-0.541496217250824,
1.231967806816101,
0.01376835722476244,
1.3353837728500366,
0.5998284816741943,
-0.3888527750968933,
0.5554078817367554,
-0.3709777295589447,
-0.48299428820610046,
1.6165337562561035,
0.20681573450565338,
-1.4613591432571411,
-2.3513267040252686,
-0.3719565272331238,
-0.8686681389808655,
-0.09378595650196075,
-0.6327242255210876,
-1.095400094985962,
1.5980441570281982,
0.4615039527416229,
-1.2496148347854614,
-0.4703444242477417,
-0.35506394505500793,
-0.5429548621177673,
2.6549205780029297,
-1.4561223983764648,
-0.16060152649879456,
-0.9446709156036377,
-0.49140745401382446,
1.6537153720855713,
-1.2174222469329834,
-0.1353924423456192,
-1.0895012617111206,
-0.7254985570907593,
-1.3411470651626587,
-0.6232432723045349,
0.000021101906895637512,
-0.8619956970214844,
0.768681526184082,
0.18036173284053802,
-1.1092694997787476,
-0.26912108063697815,
-0.8628482818603516,
0.8937591314315796,
-0.12212684750556946,
0.3572656810283661,
1.88760244846344,
0.47436460852622986,
-0.2837488055229187,
0.6633979678153992,
1.1329041719436646,
0.605634331703186,
-0.726786196231842,
0.16584628820419312,
-0.7758339643478394,
0.26446014642715454,
-1.3573224544525146,
0.13057774305343628,
-2.8417367935180664,
0.6509181261062622,
-0.05574921891093254,
-0.04599292203783989,
-0.07120242714881897,
-1.248522162437439,
1.1830724477767944,
2.574702739715576,
-1.229939579963684,
0.47970277070999146,
0.39624685049057007,
1.1712839603424072,
-1.6197680234909058,
0.2589090168476105,
-0.4769394099712372,
2.141774892807007,
0.053857460618019104,
1.2149609327316284,
-0.4921180307865143,
-2.220082998275757,
0.5903592109680176,
-1.308194875717163,
-1.0237290859222412,
0.7544713616371155,
-0.8294551968574524,
0.07780814170837402,
-1.4652584791183472,
-0.1339077651500702,
-0.9411394596099854,
-1.2664732933044434,
0.8011993765830994,
0.057000406086444855,
0.42411237955093384,
-0.6405573487281799,
0.42454421520233154,
-2.141611099243164,
-1.4340649843215942,
-0.2781398296356201,
-0.8725659847259521,
0.4382597804069519,
-0.2983746826648712,
0.6929402947425842,
-0.14722898602485657,
0.04220975562930107,
0.30458030104637146,
1.2939196825027466,
3.508631706237793,
0.32411080598831177,
0.3512202501296997,
-0.057307396084070206,
-1.0093263387680054,
1.4793260097503662,
1.0033519268035889,
-0.11016462743282318,
-0.5739689469337463,
-1.013452172279358,
1.2948811054229736,
2.0241544246673584,
1.129752278327942,
0.10585116595029831,
-0.8380051255226135,
-0.6980488300323486,
0.017737939953804016,
0.09929050505161285,
0.536942720413208,
0.8908324837684631,
-0.09866244345903397,
0.09305810183286667,
1.37665855884552,
1.2608152627944946,
-0.3899136483669281,
0.4241200089454651,
-0.9001876711845398,
-0.42784827947616577,
0.47715237736701965,
0.2863895893096924,
0.09211037307977676,
0.49511227011680603,
-1.0739327669143677,
-0.2237277776002884,
-0.3331386148929596,
-0.9363770484924316,
-0.719264030456543,
-0.45370665192604065,
-0.33448654413223267,
1.5540382862091064,
0.16091176867485046,
-0.4548901319503784,
0.04532201588153839,
-0.7792631983757019,
-0.05324195325374603,
-1.0943020582199097,
0.15965910255908966,
-0.20821355283260345,
0.029083609580993652,
-0.20767013728618622,
1.7750316858291626,
-0.9324067831039429,
-2.1329879760742188,
0.24365675449371338,
0.3558642864227295,
-0.47828906774520874,
0.2097124308347702,
1.6727747917175293,
0.5171412825584412,
1.3700337409973145,
1.3140809535980225,
1.0756651163101196,
-0.6794410347938538,
-1.2483388185501099,
0.663824200630188,
1.0740290880203247,
-1.4152754545211792,
0.8194868564605713,
-0.022419404238462448,
-0.5518940091133118,
0.743600606918335,
1.3418364524841309,
0.3542465269565582,
-2.0248172283172607,
0.7853561043739319,
-0.8449283242225647,
0.8751465678215027,
0.6301430463790894,
0.8075546622276306,
0.23108667135238647,
0.7555125951766968,
-1.3055284023284912,
-1.0714569091796875,
-0.8338310122489929,
-0.5998863577842712,
1.909976601600647,
-0.17418250441551208,
0.5738736987113953,
-0.14585620164871216,
-1.3152657747268677,
-0.13290390372276306,
0.7132341265678406,
0.33911561965942383,
-0.4212975800037384,
0.8198218941688538,
-0.5706163644790649,
-1.1131725311279297,
-1.342235803604126,
-0.4067375957965851,
-0.9223186373710632,
-0.8888158202171326,
1.0247881412506104,
0.7496430277824402,
0.38680681586265564,
1.8531378507614136,
0.6648492813110352,
0.15269742906093597,
-2.6574320793151855,
0.874867856502533,
0.3135193884372711,
0.042222313582897186,
0.8829197883605957,
0.27318134903907776,
1.0677322149276733,
-0.03357863053679466,
0.5419625043869019,
-2.388726234436035,
2.162160873413086,
-0.19244343042373657,
0.5951620936393738,
0.023998212069272995,
-0.24873031675815582,
1.0442975759506226,
0.5549603700637817,
0.4696638286113739,
-1.161136269569397,
0.67523592710495,
-0.6162136197090149,
1.1974378824234009,
0.8615306615829468,
-0.8450526595115662,
-0.03976835310459137,
1.3866102695465088,
0.5142784714698792,
-0.4366309940814972,
-0.9314581155776978,
-0.8203680515289307,
1.0364018678665161,
1.690995454788208,
-0.07403510063886642,
0.04563816636800766,
0.9268994331359863,
0.6548296809196472,
-1.2892547845840454,
0.019092001020908356,
-0.7869910597801208,
-0.6661237478256226,
1.8035863637924194,
2.087414026260376,
-0.06551332026720047,
-0.24448756873607635,
-0.8091241717338562,
-1.2798755168914795,
0.7213751673698425,
-0.1743575781583786,
0.14791284501552582,
0.7364267110824585,
-0.6535863876342773,
1.1506049633026123,
0.6395044922828674,
0.8756044507026672,
-0.002438853494822979,
0.2459375262260437,
0.28564760088920593,
-0.3935959041118622,
-1.1418826580047607,
-0.27754583954811096,
-1.1702131032943726,
-2.4974992275238037,
0.45951876044273376,
-0.1546551138162613,
-1.478366732597351,
-0.027930263429880142,
-0.9770681262016296,
0.9971534013748169,
-0.5465834140777588,
-1.0856218338012695,
-1.4336788654327393,
0.3143335282802582,
-0.13869738578796387,
0.9023532271385193,
-1.634010672569275,
-0.1302003562450409,
1.3184632062911987,
0.8318092226982117,
-0.6160151362419128,
1.0481826066970825,
0.22642362117767334,
1.0336297750473022,
0.7808384895324707,
-0.2775207459926605,
0.5088710784912109,
0.1450980007648468,
-1.3661582469940186,
0.531899094581604,
1.1553809642791748,
0.20143097639083862,
1.4788719415664673,
-0.5421156287193298,
0.12046512961387634,
0.3745860159397125,
-0.4916413128376007,
-0.5272740125656128,
-0.5024768114089966,
0.7237997055053711,
0.06430747359991074,
-1.0224689245224,
0.08773903548717499,
-0.13702793419361115,
-0.14416003227233887,
0.20579005777835846,
-1.5408954620361328,
-0.26171523332595825,
-0.28945404291152954,
-0.5096544027328491,
-1.23775315284729,
0.0584086999297142,
1.3827091455459595,
-0.7429126501083374,
-0.2083684802055359,
0.5527474284172058,
0.33815890550613403,
0.5585842728614807,
0.5969647169113159,
-0.5783138871192932,
-0.4548911154270172,
-0.35213932394981384,
-0.3499664068222046,
0.2329806089401245,
1.2258211374282837,
-0.1340940147638321,
-0.9568440914154053,
0.7693803310394287,
-0.49793457984924316,
-0.000749797560274601,
1.9474818706512451,
0.12418437004089355,
-0.8483201265335083,
0.37185460329055786,
-0.6937780976295471,
1.898410439491272,
1.6634562015533447,
1.3225102424621582,
-0.10062281042337418,
-0.9415630102157593,
0.5821518898010254,
-0.24016152322292328,
-0.4070131778717041,
0.8819735050201416,
0.4474733769893646,
-0.18535396456718445,
-1.3970471620559692,
0.45649468898773193,
1.2862235307693481,
-0.8964406251907349,
-0.8345434665679932,
0.1655208319425583,
-0.8683282732963562,
1.098405122756958,
0.6446477770805359,
0.3933495879173279,
0.19984054565429688,
1.5815010070800781,
0.7435596585273743,
-0.5131648182868958,
0.582537055015564,
0.5173779129981995,
-0.16733773052692413,
-1.9958806037902832,
-1.0276668071746826,
0.3076026439666748,
-0.432934433221817,
-1.5307170152664185,
1.2789140939712524,
-1.1816189289093018,
-0.9781975746154785,
0.5313798785209656,
0.11445138603448868,
1.405846357345581,
0.32536134123802185,
1.6425734758377075,
2.0339066982269287,
0.9412374496459961,
0.24336901307106018,
1.29634428024292,
-0.037105824798345566,
-0.4570100009441376,
1.8696112632751465,
-0.4101937413215637,
0.5243620276451111,
1.0685045719146729,
-0.45580199360847473,
-1.0599020719528198,
-0.8656121492385864,
-1.209298849105835,
-0.63997483253479,
1.2294952869415283,
0.15683844685554504,
-1.1096245050430298,
0.18669985234737396,
1.5950124263763428,
0.15641482174396515,
-0.3257206678390503,
0.6532233953475952,
0.4461528956890106,
-0.8618485331535339,
0.00279394444078207,
-0.8956331610679626,
0.45319896936416626,
-0.024372193962335587,
-0.30286964774131775,
0.3427044153213501,
0.5733727216720581,
1.243740439414978,
-0.10567588359117508,
0.1860104203224182,
1.1691750288009644,
-1.326247215270996,
1.5317840576171875,
-0.6343217492103577,
0.23101262748241425,
-2.392792224884033,
1.321010947227478,
-0.743831992149353,
1.8418118953704834,
-2.6247098445892334,
0.3182423412799835,
-0.6288802623748779,
-0.41697946190834045,
0.27419671416282654,
-0.4670153856277466,
0.05932993441820145,
-0.16361743211746216,
-1.1082097291946411,
-0.14133447408676147,
-0.7474615573883057,
0.6163758635520935,
1.150817632675171,
1.4186822175979614,
-1.1279815435409546,
-0.3167194128036499,
-1.791025996208191,
-0.18841467797756195,
-0.7681752443313599,
0.42697039246559143,
-2.007760524749756,
-0.15578269958496094,
-1.9753848314285278,
-2.24348783493042,
-1.5102509260177612,
-0.8931211829185486,
1.0497956275939941,
0.18128971755504608,
-0.9618602395057678,
1.0082945823669434,
-0.3787810504436493,
-1.7371865510940552,
1.0445144176483154,
-2.1726627349853516
] |
https://github.com/huggingface/datasets/issues/4697 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive | Great to see that you manage to make your dataset streamable. :rocket:
I'm closing this issue, as for the docs update there is another issue opened:
- #4711 | ### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes | 625 | 28 | Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link
https://huggingface.co/datasets/frgfm/imagenette
### Description
Hello there :wave:
Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive extraction involved :sweat_smile:
Basically, I get a:
```
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
I've tried several things and checked this issue https://github.com/huggingface/datasets/issues/4181 as well, but no luck so far!
Could you point me in the right direction please? :pray:
### Owner
Yes
Great to see that you manage to make your dataset streamable. :rocket:
I'm closing this issue, as for the docs update there is another issue opened:
- #4711 | [
-1.1407722234725952,
-0.9664180874824524,
-0.8347069621086121,
1.3942945003509521,
-0.17925876379013062,
-1.2847986221313477,
0.11161403357982635,
-1.0376430749893188,
1.6393951177597046,
-0.7062591314315796,
0.2805253565311432,
-1.7147634029388428,
-0.09416228532791138,
-0.5918156504631042,
-0.7995395660400391,
-0.8492196798324585,
-0.4790330231189728,
-0.7797759175300598,
0.950655460357666,
2.609556198120117,
1.208864688873291,
-1.4495830535888672,
2.7072913646698,
0.7124058604240417,
-0.17542079091072083,
-1.1046571731567383,
0.5896632075309753,
0.010572686791419983,
-1.2135783433914185,
-0.3621513843536377,
-0.8970947861671448,
-0.03479874134063721,
-0.4943297505378723,
-0.5562408566474915,
-0.03121872805058956,
0.4699428975582123,
-0.23645800352096558,
-0.4148555397987366,
-0.5148062109947205,
-0.7868368625640869,
0.4603356719017029,
-0.4245350658893585,
0.9929518103599548,
-0.42294827103614807,
1.7904144525527954,
-0.4983990490436554,
0.42286089062690735,
0.7758041024208069,
1.3660675287246704,
0.14750325679779053,
-0.042926937341690063,
0.2819158434867859,
0.4022042155265808,
-0.01848459243774414,
0.4216296374797821,
1.0977925062179565,
0.6489664912223816,
0.4704234004020691,
0.7074886560440063,
-2.224989414215088,
1.2084243297576904,
-0.9598748087882996,
0.28590330481529236,
1.4500478506088257,
-0.9853878617286682,
0.35043635964393616,
-1.8338040113449097,
0.028079533949494362,
0.5650107264518738,
-2.089745283126831,
0.3072449862957001,
-1.1705254316329956,
-0.5241037011146545,
0.9990323185920715,
0.3361840546131134,
-1.2674142122268677,
0.15989580750465393,
-0.4003032147884369,
1.0892568826675415,
0.5275810956954956,
1.193915843963623,
-1.6719293594360352,
0.03162319213151932,
-0.2658253610134125,
0.05600938946008682,
-1.307255744934082,
-1.5359928607940674,
0.37604624032974243,
0.5926924347877502,
0.672702431678772,
-0.047842517495155334,
0.8928498029708862,
-1.001926302909851,
0.7678474187850952,
-0.92024165391922,
-1.6757807731628418,
-1.4209970235824585,
-2.3496978282928467,
-2.280681848526001,
0.7624295353889465,
-0.38999152183532715,
-0.5183973908424377,
1.9764608144760132,
-0.9446339011192322,
-1.7949191331863403,
1.2089920043945312,
0.3374757468700409,
-0.008300764486193657,
2.305950164794922,
0.338306725025177,
-0.749690592288971,
0.38540518283843994,
-0.8111470341682434,
0.7490137815475464,
-0.5163272023200989,
1.3912839889526367,
0.537702202796936,
-0.9151017069816589,
1.6667510271072388,
-0.6181833148002625,
0.5784252882003784,
-0.6925152540206909,
-0.4527222216129303,
-0.8501276969909668,
0.4187639355659485,
1.8781514167785645,
-0.3616645932197571,
1.5721784830093384,
-0.3880723714828491,
-1.5441195964813232,
-1.5616779327392578,
0.8661722540855408,
0.44359421730041504,
-0.7762163281440735,
0.19567044079303741,
-0.4274294376373291,
0.07546692341566086,
-0.17651689052581787,
0.9651514887809753,
1.154259443283081,
0.7194183468818665,
-0.32972365617752075,
-0.969243049621582,
0.3396872282028198,
-0.035834938287734985,
-0.7304248213768005,
-1.7740287780761719,
-0.2940249741077423,
0.16629073023796082,
0.605477511882782,
-1.2319128513336182,
1.7062509059906006,
0.8006566166877747,
1.957945466041565,
0.8825884461402893,
-0.3727113902568817,
1.4221264123916626,
0.020944934338331223,
1.9549987316131592,
-0.5349004864692688,
0.6722036600112915,
-0.21270032227039337,
-1.1567392349243164,
0.8648462295532227,
-0.43135443329811096,
-2.0817997455596924,
-0.7819546461105347,
-0.8761685490608215,
-0.17117665708065033,
-0.8034299612045288,
0.9675921201705933,
-0.21171540021896362,
-1.373844861984253,
0.2398056983947754,
-0.7556160688400269,
0.17515255510807037,
-1.262665867805481,
0.24284105002880096,
0.7315343618392944,
-0.5169664025306702,
-0.012523720040917397,
-0.17869825661182404,
-1.3265414237976074,
-0.44793325662612915,
0.33335080742836,
1.874693751335144,
-0.74277263879776,
1.0026177167892456,
0.967262864112854,
-0.6445672512054443,
0.02282293699681759,
0.36606916785240173,
-0.36538809537887573,
0.9132936596870422,
-1.0650428533554077,
-0.4952079653739929,
1.1808871030807495,
-0.1754370778799057,
-0.6657206416130066,
1.492552399635315,
0.8190815448760986,
-0.9914165139198303,
-0.17593751847743988,
-0.19782209396362305,
-0.736099123954773,
-0.09235074371099472,
-1.688891887664795,
-0.042607054114341736,
0.30402278900146484,
-1.4371384382247925,
-0.4959816634654999,
-0.21605630218982697,
1.336725115776062,
-0.1560794562101364,
1.4456522464752197,
-0.3980650007724762,
-0.14810393750667572,
-0.39750275015830994,
-0.4170432388782501,
0.2415151447057724,
-0.23094888031482697,
-0.545752227306366,
0.18235145509243011,
-0.8436065316200256,
0.3513163626194,
1.3619986772537231,
0.39800652861595154,
0.044226713478565216,
0.5359075665473938,
1.0658200979232788,
0.35334065556526184,
-0.003057486843317747,
-0.9056140780448914,
-1.519018292427063,
2.070221185684204,
-1.4277384281158447,
1.9962869882583618,
0.79538893699646,
-0.04237227886915207,
-1.7997467517852783,
-1.8973898887634277,
1.3513060808181763,
1.185206651687622,
2.299072504043579,
0.6136008501052856,
0.432301789522171,
-0.8883581161499023,
-0.7149233222007751,
0.24436865746974945,
-1.0671509504318237,
-0.6854685544967651,
0.12063466012477875,
2.3746416568756104,
1.7897684574127197,
-0.4776934087276459,
-0.2098672091960907,
-1.0120093822479248,
1.327722191810608,
-0.15363912284374237,
0.18626518547534943,
2.080901861190796,
-0.17273715138435364,
-0.9798493385314941,
1.2503737211227417,
-2.340733766555786,
0.24875880777835846,
1.9541213512420654,
0.23452000319957733,
0.14176996052265167,
-1.4449729919433594,
-0.6414921879768372,
-0.2318507581949234,
-0.36176571249961853,
-1.0851061344146729,
0.6109858155250549,
-0.3091713488101959,
-0.8575437068939209,
-1.4250224828720093,
0.15986619889736176,
-1.0359625816345215,
-1.7021225690841675,
0.35179731249809265,
1.7178057432174683,
2.0503008365631104,
-0.9147727489471436,
1.5603179931640625,
-0.18090106546878815,
0.19113501906394958,
1.3563045263290405,
1.2580076456069946,
3.113400459289551,
1.9058390855789185,
-1.323538064956665,
0.6838475465774536,
-0.12734068930149078,
-0.4437500238418579,
1.166368842124939,
-1.1699703931808472,
1.2094992399215698,
-0.21555526554584503,
-1.2050690650939941,
-1.2040163278579712,
1.0248456001281738,
0.5236539840698242,
0.06142966449260712,
-0.5146405100822449,
1.230107069015503,
-0.02802942506968975,
1.3742387294769287,
0.6457712054252625,
-0.3624708652496338,
0.5953345894813538,
-0.38474276661872864,
-0.4179794192314148,
1.5855337381362915,
0.23030829429626465,
-1.4231772422790527,
-2.322723865509033,
-0.31339240074157715,
-0.838387131690979,
-0.08714170008897781,
-0.6187336444854736,
-1.1008622646331787,
1.606227993965149,
0.4460248649120331,
-1.2414758205413818,
-0.4438563287258148,
-0.34053122997283936,
-0.5396453738212585,
2.657378673553467,
-1.5027153491973877,
-0.20518319308757782,
-1.0192362070083618,
-0.4982680678367615,
1.6616740226745605,
-1.2554432153701782,
-0.15715162456035614,
-1.0945054292678833,
-0.7015406489372253,
-1.3542064428329468,
-0.6218369603157043,
-0.04134243726730347,
-0.8563276529312134,
0.7850728034973145,
0.1917908936738968,
-1.140272617340088,
-0.25902700424194336,
-0.8542540073394775,
0.8555474877357483,
-0.1518830507993698,
0.3986058831214905,
1.872901439666748,
0.45882710814476013,
-0.29836419224739075,
0.6961424350738525,
1.1226998567581177,
0.6119416952133179,
-0.7346640229225159,
0.21786639094352722,
-0.7707781195640564,
0.2809028923511505,
-1.3558473587036133,
0.13582149147987366,
-2.8488433361053467,
0.6476752161979675,
-0.0727187842130661,
-0.03244779258966446,
-0.08162878453731537,
-1.2681807279586792,
1.17502760887146,
2.54555606842041,
-1.2568387985229492,
0.5107879042625427,
0.3443630635738373,
1.2123585939407349,
-1.5974457263946533,
0.27658337354660034,
-0.4150421619415283,
2.1726319789886475,
0.09600210934877396,
1.2444939613342285,
-0.4607011675834656,
-2.1947402954101562,
0.616384744644165,
-1.3151003122329712,
-1.054222583770752,
0.7287694215774536,
-0.7962934970855713,
0.07038165628910065,
-1.458306908607483,
-0.14930973947048187,
-0.954438328742981,
-1.3180840015411377,
0.8086044788360596,
0.06523709744215012,
0.39593467116355896,
-0.6239558458328247,
0.38222983479499817,
-2.175034999847412,
-1.3639392852783203,
-0.24109132587909698,
-0.8392243981361389,
0.40994328260421753,
-0.2929077446460724,
0.6805798411369324,
-0.18701724708080292,
0.00925026461482048,
0.29648682475090027,
1.3253464698791504,
3.516359806060791,
0.30700331926345825,
0.3614053726196289,
-0.0570007786154747,
-0.9385707378387451,
1.4881502389907837,
1.0106648206710815,
-0.11198318749666214,
-0.5575355291366577,
-1.0549746751785278,
1.3103433847427368,
1.9695885181427002,
1.0580822229385376,
0.10757096111774445,
-0.825165867805481,
-0.6832425594329834,
-0.004139875061810017,
0.046722427010536194,
0.5068033933639526,
0.9265543818473816,
-0.03507388383150101,
0.06979454308748245,
1.4287453889846802,
1.2658802270889282,
-0.4090310335159302,
0.3985711634159088,
-0.8911119103431702,
-0.39886006712913513,
0.5106366872787476,
0.31217169761657715,
0.06636491417884827,
0.41449540853500366,
-1.0703247785568237,
-0.24242694675922394,
-0.3435673415660858,
-0.8892890214920044,
-0.7518436312675476,
-0.47472795844078064,
-0.3171766996383667,
1.5407710075378418,
0.1828632354736328,
-0.5006612539291382,
-0.03380599617958069,
-0.7978121638298035,
-0.028741352260112762,
-1.0760060548782349,
0.19545146822929382,
-0.21176016330718994,
0.009501086547970772,
-0.1795114129781723,
1.7532169818878174,
-0.9276371598243713,
-2.0901622772216797,
0.26182034611701965,
0.32896849513053894,
-0.47437044978141785,
0.18199601769447327,
1.6840928792953491,
0.5465067028999329,
1.3632057905197144,
1.2993117570877075,
1.010358452796936,
-0.6934700608253479,
-1.2834053039550781,
0.6236889958381653,
1.022560954093933,
-1.4818751811981201,
0.7915369868278503,
0.03418314456939697,
-0.5440576672554016,
0.7193173766136169,
1.366264820098877,
0.38538193702697754,
-1.9902808666229248,
0.7376598715782166,
-0.8640243411064148,
0.8719905018806458,
0.6891875267028809,
0.8187413811683655,
0.25279495120048523,
0.766444981098175,
-1.3266832828521729,
-1.0790547132492065,
-0.8624550700187683,
-0.6252656579017639,
1.937846064567566,
-0.1863449513912201,
0.5726394653320312,
-0.14812128245830536,
-1.3334755897521973,
-0.12317494302988052,
0.7095479369163513,
0.2952912747859955,
-0.3979349136352539,
0.8242860436439514,
-0.5861649513244629,
-1.130303144454956,
-1.3043272495269775,
-0.4139552712440491,
-0.9235736131668091,
-0.9090649485588074,
1.0275734663009644,
0.7606337070465088,
0.3656587600708008,
1.8415883779525757,
0.6638519167900085,
0.15750257670879364,
-2.642045259475708,
0.8753076195716858,
0.27484744787216187,
0.047154851257801056,
0.8828481435775757,
0.2353125363588333,
1.058767557144165,
-0.06991473585367203,
0.5438376665115356,
-2.4100773334503174,
2.1475417613983154,
-0.22035342454910278,
0.5736193656921387,
-0.0252754557877779,
-0.19442392885684967,
1.110122561454773,
0.5572572350502014,
0.4696289896965027,
-1.1353634595870972,
0.681782603263855,
-0.630147397518158,
1.236238956451416,
0.9083102345466614,
-0.8430036306381226,
-0.050001807510852814,
1.3929336071014404,
0.456587016582489,
-0.45722758769989014,
-0.9656804203987122,
-0.8396581411361694,
1.0159893035888672,
1.676498532295227,
-0.04404475539922714,
0.015431543812155724,
0.9419917464256287,
0.6301271319389343,
-1.3283573389053345,
0.008553596213459969,
-0.7865505218505859,
-0.6449218392372131,
1.8040823936462402,
2.0954248905181885,
-0.06312961876392365,
-0.2549670934677124,
-0.8099619746208191,
-1.2873170375823975,
0.7316043376922607,
-0.09171754866838455,
0.12953929603099823,
0.7295742630958557,
-0.6474604606628418,
1.1416511535644531,
0.7133200168609619,
0.8650670051574707,
0.05764614790678024,
0.26397234201431274,
0.33817344903945923,
-0.3400171995162964,
-1.1532127857208252,
-0.24364903569221497,
-1.1911259889602661,
-2.459420919418335,
0.48346689343452454,
-0.17782801389694214,
-1.4873169660568237,
-0.01694829948246479,
-0.9872106313705444,
1.0204508304595947,
-0.5545878410339355,
-1.090810775756836,
-1.4601274728775024,
0.2769767642021179,
-0.12826217710971832,
0.9185522198677063,
-1.536716103553772,
-0.10497211664915085,
1.346422553062439,
0.8456355929374695,
-0.6058719754219055,
1.0498218536376953,
0.23337219655513763,
1.056912899017334,
0.7877117395401001,
-0.3109159469604492,
0.4878462553024292,
0.12851667404174805,
-1.3662205934524536,
0.544087827205658,
1.1640026569366455,
0.16511669754981995,
1.5457589626312256,
-0.5122871398925781,
0.10511413216590881,
0.4182000160217285,
-0.5148596167564392,
-0.497510701417923,
-0.4747565686702728,
0.7215023636817932,
0.12005820870399475,
-0.93825763463974,
0.054727792739868164,
-0.08422940969467163,
-0.1627589911222458,
0.23014087975025177,
-1.579352855682373,
-0.2321542501449585,
-0.304304838180542,
-0.5560114979743958,
-1.1711153984069824,
0.041215889155864716,
1.403597116470337,
-0.7285104393959045,
-0.2032604068517685,
0.5453311204910278,
0.32864445447921753,
0.5847771763801575,
0.581649661064148,
-0.5922752022743225,
-0.4082389175891876,
-0.36555635929107666,
-0.3352901339530945,
0.23141224682331085,
1.219605803489685,
-0.12344975769519806,
-0.9963910579681396,
0.7684022784233093,
-0.4893566370010376,
0.016380034387111664,
1.9415711164474487,
0.11018674820661545,
-0.8710454702377319,
0.36459752917289734,
-0.6887224912643433,
1.9697729349136353,
1.6293483972549438,
1.3187109231948853,
-0.05657726526260376,
-0.951356053352356,
0.5846709609031677,
-0.21318209171295166,
-0.3681780993938446,
0.8488938212394714,
0.47819599509239197,
-0.17496348917484283,
-1.353702425956726,
0.5170724987983704,
1.2365119457244873,
-0.933046281337738,
-0.8404948711395264,
0.1412011831998825,
-0.8410668969154358,
1.0798557996749878,
0.6590354442596436,
0.43725743889808655,
0.2694248855113983,
1.6076023578643799,
0.7300971746444702,
-0.5132589340209961,
0.5868208408355713,
0.5387899875640869,
-0.14347584545612335,
-1.9697494506835938,
-1.0155667066574097,
0.32512226700782776,
-0.4433291256427765,
-1.5878838300704956,
1.3146134614944458,
-1.1974583864212036,
-0.9176675081253052,
0.5316156148910522,
0.15136946737766266,
1.3764175176620483,
0.31550732254981995,
1.6422117948532104,
2.0107998847961426,
0.9263848066329956,
0.26623690128326416,
1.3067293167114258,
-0.09714297950267792,
-0.5014877915382385,
1.8577779531478882,
-0.45896804332733154,
0.5599322319030762,
1.1003358364105225,
-0.43154484033584595,
-1.0760903358459473,
-0.83404940366745,
-1.1877416372299194,
-0.6302172541618347,
1.1905375719070435,
0.16393834352493286,
-1.1306395530700684,
0.17003493010997772,
1.582863450050354,
0.12348456680774689,
-0.36480823159217834,
0.6048955917358398,
0.42085862159729004,
-0.8371638059616089,
0.024219563230872154,
-0.8724678158760071,
0.43403440713882446,
-0.030337199568748474,
-0.30283409357070923,
0.3697271943092346,
0.534130871295929,
1.263322353363037,
-0.0765039250254631,
0.19012565910816193,
1.2219436168670654,
-1.3734897375106812,
1.5510265827178955,
-0.6318897008895874,
0.20433688163757324,
-2.3933064937591553,
1.326339840888977,
-0.7601895332336426,
1.8699276447296143,
-2.641648292541504,
0.30448246002197266,
-0.6420324444770813,
-0.41106298565864563,
0.24388889968395233,
-0.4486050605773926,
0.0816827267408371,
-0.15385201573371887,
-1.1577380895614624,
-0.09762772917747498,
-0.7973287105560303,
0.604154646396637,
1.160205364227295,
1.3950200080871582,
-1.1507560014724731,
-0.23832166194915771,
-1.748199462890625,
-0.1723056137561798,
-0.8076032996177673,
0.3838146924972534,
-1.9857982397079468,
-0.13557535409927368,
-1.9421216249465942,
-2.255488395690918,
-1.4874621629714966,
-0.8895474076271057,
1.0299289226531982,
0.12432895600795746,
-0.9558596014976501,
0.9848805665969849,
-0.3979071378707886,
-1.7392297983169556,
1.0525074005126953,
-2.129882574081421
] |
https://github.com/huggingface/datasets/issues/4696 | Cannot load LinCE dataset | Hi @finiteautomata, thanks for reporting.
Unfortunately, I'm not able to reproduce your issue:
```python
In [1]: from datasets import load_dataset
...: dataset = load_dataset("lince", "ner_spaeng")
Downloading builder script: 20.8kB [00:00, 9.09MB/s]
Downloading metadata: 31.2kB [00:00, 13.5MB/s]
Downloading and preparing dataset lince/ner_spaeng (download: 2.93 MiB, generated: 18.45 MiB, post-processed: Unknown size, total: 21.38 MiB) to .../.cache/huggingface/datasets/lince/ner_spaeng/1.0.0/10d41747f55f0849fa84ac579ea1acfa7df49aa2015b60426bc459c111b3d589...
Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.08M/3.08M [00:01<00:00, 2.73MB/s]
Dataset lince downloaded and prepared to .../.cache/huggingface/datasets/lince/ner_spaeng/1.0.0/10d41747f55f0849fa84ac579ea1acfa7df49aa2015b60426bc459c111b3d589. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 630.66it/s]
In [2]: dataset
Out[2]:
DatasetDict({
train: Dataset({
features: ['idx', 'words', 'lid', 'ner'],
num_rows: 33611
})
validation: Dataset({
features: ['idx', 'words', 'lid', 'ner'],
num_rows: 10085
})
test: Dataset({
features: ['idx', 'words', 'lid', 'ner'],
num_rows: 23527
})
})
```
Please note that for this dataset, the original data files are not hosted on the Hugging Face Hub, but on https://ritual.uh.edu
And sometimes, the server might be temporarily unavailable, as your error message said (trying to connect to the server timed out):
```
ConnectionError: Couldn't reach https://ritual.uh.edu/lince/libaccess/eyJ1c2VybmFtZSI6ICJodWdnaW5nZmFjZSBubHAiLCAidXNlcl9pZCI6IDExMSwgImVtYWlsIjogImR1bW15QGVtYWlsLmNvbSJ9/ner_spaeng.zip (ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='ritual.uh.edu', port=443): Max retries exceeded with url: /lince/libaccess/eyJ1c2VybmFtZSI6ICJodWdnaW5nZmFjZSBubHAiLCAidXNlcl9pZCI6IDExMSwgImVtYWlsIjogImR1bW15QGVtYWlsLmNvbSJ9/ner_spaeng.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7feb1c45a690>, 'Connection to ritual.uh.edu timed out. (connect timeout=100)'))")))
```
In these cases you could:
- either contact the owners of the data server where the data is hosted to inform them about the issue in their server
- or re-try after waiting some time: usually these issues are just temporary | ## Describe the bug
Cannot load LinCE dataset due to a connection error
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("lince", "ner_spaeng")
```
A notebook with this code and corresponding error can be found at https://colab.research.google.com/drive/1pgX3bNB9amuUwAVfPFm-XuMV5fEg-cD2
## Expected results
It should load the dataset
## Actual results
```python
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-2-fc551ddcebef> in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("lince", "ner_spaeng")
10 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
-> 1684 use_auth_token=use_auth_token,
1685 )
1686
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
703 if not downloaded_from_gcs:
704 self._download_and_prepare(
--> 705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
1219
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
1222
1223 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable:
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
772
773 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/lince/10d41747f55f0849fa84ac579ea1acfa7df49aa2015b60426bc459c111b3d589/lince.py in _split_generators(self, dl_manager)
481 def _split_generators(self, dl_manager):
482 """Returns SplitGenerators."""
--> 483 lince_dir = dl_manager.download_and_extract(f"{_LINCE_URL}/{self.config.name}.zip")
484 data_dir = os.path.join(lince_dir, self.config.data_dir)
485 return [
/usr/local/lib/python3.7/dist-packages/datasets/download/download_manager.py in download_and_extract(self, url_or_urls)
429 extracted_path(s): `str`, extracted paths of given URL(s).
430 """
--> 431 return self.extract(self.download(url_or_urls))
432
433 def get_recorded_sizes_checksums(self):
/usr/local/lib/python3.7/dist-packages/datasets/download/download_manager.py in download(self, url_or_urls)
313 num_proc=download_config.num_proc,
314 disable_tqdm=not is_progress_bar_enabled(),
--> 315 desc="Downloading data files",
316 )
317 duration = datetime.now() - start_time
/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types, disable_tqdm, desc)
346 # Singleton
347 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 348 return function(data_struct)
349
350 disable_tqdm = disable_tqdm or not logging.is_progress_bar_enabled()
/usr/local/lib/python3.7/dist-packages/datasets/download/download_manager.py in _download(self, url_or_filename, download_config)
333 # append the relative path to the base_path
334 url_or_filename = url_or_path_join(self._base_path, url_or_filename)
--> 335 return cached_path(url_or_filename, download_config=download_config)
336
337 def iter_archive(self, path_or_buf: Union[str, io.BufferedReader]):
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
195 use_auth_token=download_config.use_auth_token,
196 ignore_url_params=download_config.ignore_url_params,
--> 197 download_desc=download_config.download_desc,
198 )
199 elif os.path.exists(url_or_filename):
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc)
531 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
532 if head_error is not None:
--> 533 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
534 elif response is not None:
535 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})")
ConnectionError: Couldn't reach https://ritual.uh.edu/lince/libaccess/eyJ1c2VybmFtZSI6ICJodWdnaW5nZmFjZSBubHAiLCAidXNlcl9pZCI6IDExMSwgImVtYWlsIjogImR1bW15QGVtYWlsLmNvbSJ9/ner_spaeng.zip (ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='ritual.uh.edu', port=443): Max retries exceeded with url: /lince/libaccess/eyJ1c2VybmFtZSI6ICJodWdnaW5nZmFjZSBubHAiLCAidXNlcl9pZCI6IDExMSwgImVtYWlsIjogImR1bW15QGVtYWlsLmNvbSJ9/ner_spaeng.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7feb1c45a690>, 'Connection to ritual.uh.edu timed out. (connect timeout=100)'))")))
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 626 | 225 | Cannot load LinCE dataset
## Describe the bug
Cannot load LinCE dataset due to a connection error
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("lince", "ner_spaeng")
```
A notebook with this code and corresponding error can be found at https://colab.research.google.com/drive/1pgX3bNB9amuUwAVfPFm-XuMV5fEg-cD2
## Expected results
It should load the dataset
## Actual results
```python
---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-2-fc551ddcebef> in <module>()
1 from datasets import load_dataset
2
----> 3 dataset = load_dataset("lince", "ner_spaeng")
10 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
-> 1684 use_auth_token=use_auth_token,
1685 )
1686
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
703 if not downloaded_from_gcs:
704 self._download_and_prepare(
--> 705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
1219
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
1222
1223 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable:
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
772
773 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/lince/10d41747f55f0849fa84ac579ea1acfa7df49aa2015b60426bc459c111b3d589/lince.py in _split_generators(self, dl_manager)
481 def _split_generators(self, dl_manager):
482 """Returns SplitGenerators."""
--> 483 lince_dir = dl_manager.download_and_extract(f"{_LINCE_URL}/{self.config.name}.zip")
484 data_dir = os.path.join(lince_dir, self.config.data_dir)
485 return [
/usr/local/lib/python3.7/dist-packages/datasets/download/download_manager.py in download_and_extract(self, url_or_urls)
429 extracted_path(s): `str`, extracted paths of given URL(s).
430 """
--> 431 return self.extract(self.download(url_or_urls))
432
433 def get_recorded_sizes_checksums(self):
/usr/local/lib/python3.7/dist-packages/datasets/download/download_manager.py in download(self, url_or_urls)
313 num_proc=download_config.num_proc,
314 disable_tqdm=not is_progress_bar_enabled(),
--> 315 desc="Downloading data files",
316 )
317 duration = datetime.now() - start_time
/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types, disable_tqdm, desc)
346 # Singleton
347 if not isinstance(data_struct, dict) and not isinstance(data_struct, types):
--> 348 return function(data_struct)
349
350 disable_tqdm = disable_tqdm or not logging.is_progress_bar_enabled()
/usr/local/lib/python3.7/dist-packages/datasets/download/download_manager.py in _download(self, url_or_filename, download_config)
333 # append the relative path to the base_path
334 url_or_filename = url_or_path_join(self._base_path, url_or_filename)
--> 335 return cached_path(url_or_filename, download_config=download_config)
336
337 def iter_archive(self, path_or_buf: Union[str, io.BufferedReader]):
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
195 use_auth_token=download_config.use_auth_token,
196 ignore_url_params=download_config.ignore_url_params,
--> 197 download_desc=download_config.download_desc,
198 )
199 elif os.path.exists(url_or_filename):
/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc)
531 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}")
532 if head_error is not None:
--> 533 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})")
534 elif response is not None:
535 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})")
ConnectionError: Couldn't reach https://ritual.uh.edu/lince/libaccess/eyJ1c2VybmFtZSI6ICJodWdnaW5nZmFjZSBubHAiLCAidXNlcl9pZCI6IDExMSwgImVtYWlsIjogImR1bW15QGVtYWlsLmNvbSJ9/ner_spaeng.zip (ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='ritual.uh.edu', port=443): Max retries exceeded with url: /lince/libaccess/eyJ1c2VybmFtZSI6ICJodWdnaW5nZmFjZSBubHAiLCAidXNlcl9pZCI6IDExMSwgImVtYWlsIjogImR1bW15QGVtYWlsLmNvbSJ9/ner_spaeng.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7feb1c45a690>, 'Connection to ritual.uh.edu timed out. (connect timeout=100)'))")))
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
Hi @finiteautomata, thanks for reporting.
Unfortunately, I'm not able to reproduce your issue:
```python
In [1]: from datasets import load_dataset
...: dataset = load_dataset("lince", "ner_spaeng")
Downloading builder script: 20.8kB [00:00, 9.09MB/s]
Downloading metadata: 31.2kB [00:00, 13.5MB/s]
Downloading and preparing dataset lince/ner_spaeng (download: 2.93 MiB, generated: 18.45 MiB, post-processed: Unknown size, total: 21.38 MiB) to .../.cache/huggingface/datasets/lince/ner_spaeng/1.0.0/10d41747f55f0849fa84ac579ea1acfa7df49aa2015b60426bc459c111b3d589...
Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.08M/3.08M [00:01<00:00, 2.73MB/s]
Dataset lince downloaded and prepared to .../.cache/huggingface/datasets/lince/ner_spaeng/1.0.0/10d41747f55f0849fa84ac579ea1acfa7df49aa2015b60426bc459c111b3d589. Subsequent calls will reuse this data.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 630.66it/s]
In [2]: dataset
Out[2]:
DatasetDict({
train: Dataset({
features: ['idx', 'words', 'lid', 'ner'],
num_rows: 33611
})
validation: Dataset({
features: ['idx', 'words', 'lid', 'ner'],
num_rows: 10085
})
test: Dataset({
features: ['idx', 'words', 'lid', 'ner'],
num_rows: 23527
})
})
```
Please note that for this dataset, the original data files are not hosted on the Hugging Face Hub, but on https://ritual.uh.edu
And sometimes, the server might be temporarily unavailable, as your error message said (trying to connect to the server timed out):
```
ConnectionError: Couldn't reach https://ritual.uh.edu/lince/libaccess/eyJ1c2VybmFtZSI6ICJodWdnaW5nZmFjZSBubHAiLCAidXNlcl9pZCI6IDExMSwgImVtYWlsIjogImR1bW15QGVtYWlsLmNvbSJ9/ner_spaeng.zip (ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='ritual.uh.edu', port=443): Max retries exceeded with url: /lince/libaccess/eyJ1c2VybmFtZSI6ICJodWdnaW5nZmFjZSBubHAiLCAidXNlcl9pZCI6IDExMSwgImVtYWlsIjogImR1bW15QGVtYWlsLmNvbSJ9/ner_spaeng.zip (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7feb1c45a690>, 'Connection to ritual.uh.edu timed out. (connect timeout=100)'))")))
```
In these cases you could:
- either contact the owners of the data server where the data is hosted to inform them about the issue in their server
- or re-try after waiting some time: usually these issues are just temporary | [
-1.125457763671875,
-0.8548656702041626,
-0.5026881098747253,
1.3894790410995483,
-0.007900642231106758,
-1.367379903793335,
0.14234477281570435,
-0.9174266457557678,
1.554260492324829,
-0.8810378313064575,
0.33701062202453613,
-1.7492011785507202,
0.03141418471932411,
-0.6702449321746826,
-0.655005693435669,
-0.6974048018455505,
-0.3316913843154907,
-0.72620689868927,
1.1213427782058716,
2.39905047416687,
1.193841814994812,
-1.2906818389892578,
2.854135274887085,
0.603278398513794,
-0.2597711980342865,
-0.8132486343383789,
0.36493411660194397,
-0.016701027750968933,
-1.407468557357788,
-0.3129790723323822,
-1.0146366357803345,
-0.04729947820305824,
-0.70257967710495,
-0.40121564269065857,
0.041890114545822144,
0.5148566365242004,
-0.22861236333847046,
-0.29066532850265503,
-0.42070266604423523,
-0.7634974122047424,
0.5653039216995239,
-0.25155991315841675,
0.9156902432441711,
-0.2603060305118561,
1.7791063785552979,
-0.6141567826271057,
0.5548482537269592,
0.5644456148147583,
1.1212741136550903,
0.20777416229248047,
0.0025565149262547493,
0.29537031054496765,
0.22901004552841187,
0.05160333961248398,
0.5961435437202454,
1.2261492013931274,
0.58958500623703,
0.5857653021812439,
0.6283694505691528,
-2.1810104846954346,
1.3994284868240356,
-0.7763612866401672,
0.26474639773368835,
1.418161153793335,
-1.0376821756362915,
0.4565431475639343,
-1.8046956062316895,
-0.21169930696487427,
0.4028961658477783,
-2.2554612159729004,
0.19621196389198303,
-1.3201353549957275,
-0.5803358554840088,
0.9422909617424011,
0.446493536233902,
-1.2586746215820312,
0.002136792056262493,
-0.4737901985645294,
0.9933472871780396,
0.3614988327026367,
1.0481579303741455,
-1.6625862121582031,
-0.004925944842398167,
-0.1847553849220276,
0.2649487555027008,
-1.2040513753890991,
-1.6793922185897827,
0.6851688623428345,
0.6549534797668457,
0.6799829602241516,
-0.20176750421524048,
0.9715290665626526,
-1.2268691062927246,
0.8644851446151733,
-1.0649367570877075,
-1.6728483438491821,
-1.27501380443573,
-2.5243539810180664,
-2.4643142223358154,
0.7681496739387512,
-0.43025460839271545,
-0.38095369935035706,
2.175180435180664,
-1.1181762218475342,
-1.6222306489944458,
1.067032814025879,
0.28149887919425964,
-0.1226578950881958,
2.3972532749176025,
0.2354739010334015,
-0.8941386938095093,
0.6802173852920532,
-0.909521758556366,
0.7237051129341125,
-0.379730224609375,
1.2856289148330688,
0.4684143662452698,
-1.1256656646728516,
1.4728678464889526,
-0.4536359906196594,
0.5095809102058411,
-0.6673272848129272,
-0.46435001492500305,
-0.5889158844947815,
0.12964972853660583,
1.9043372869491577,
-0.12226074188947678,
1.517256259918213,
-0.08609001338481903,
-1.4109225273132324,
-1.4245288372039795,
0.8584616780281067,
0.437971830368042,
-0.8810139298439026,
0.19051823019981384,
-0.44765183329582214,
0.18080097436904907,
0.10652375966310501,
1.1439805030822754,
1.277337670326233,
0.7651172280311584,
-0.237362802028656,
-0.8344550728797913,
-0.01130315288901329,
-0.1649474799633026,
-0.5663374662399292,
-1.7685528993606567,
-0.22140184044837952,
0.12959149479866028,
0.6297900676727295,
-1.1269850730895996,
2.016925096511841,
0.898534893989563,
2.0295681953430176,
0.9156306982040405,
-0.34502720832824707,
1.4700815677642822,
0.04096313565969467,
1.8205687999725342,
-0.3864210844039917,
0.6203412413597107,
-0.5261219143867493,
-1.205764651298523,
0.7871899604797363,
-0.3232426643371582,
-1.98277747631073,
-0.38680458068847656,
-0.8588712215423584,
-0.1678788661956787,
-0.9076611995697021,
0.9820208549499512,
-0.11494402587413788,
-1.478042721748352,
0.2110922634601593,
-0.6035792231559753,
0.20148667693138123,
-1.316928744316101,
0.3067084848880768,
0.7327935099601746,
-0.7135359644889832,
-0.04445606842637062,
-0.36065733432769775,
-1.4068032503128052,
-0.5917309522628784,
0.5345665216445923,
1.7267078161239624,
-0.5909227728843689,
1.030670404434204,
1.0445399284362793,
-0.5853398442268372,
-0.09784483164548874,
0.42782461643218994,
-0.3834405541419983,
0.8025684952735901,
-1.0252705812454224,
-0.4930512607097626,
1.149855613708496,
-0.4522511065006256,
-0.47733694314956665,
1.353953242301941,
0.7388448119163513,
-1.0630910396575928,
-0.2655732333660126,
-0.17016828060150146,
-0.868772029876709,
0.061984769999980927,
-1.5850836038589478,
-0.04429177939891815,
0.4270910620689392,
-1.4950846433639526,
-0.3597096800804138,
-0.007673647254705429,
1.3445361852645874,
-0.06215536221861839,
1.3561738729476929,
-0.20559805631637573,
-0.09929188340902328,
-0.4887199401855469,
-0.585563063621521,
0.15776953101158142,
-0.06594248116016388,
-0.43770265579223633,
0.20805394649505615,
-0.6990030407905579,
0.16378077864646912,
1.5509557723999023,
0.12461531907320023,
0.10957417637109756,
0.48604753613471985,
1.1542434692382812,
0.34711042046546936,
-0.16936296224594116,
-0.8488209843635559,
-1.6507848501205444,
1.927600622177124,
-1.580862283706665,
1.9735456705093384,
0.8283334374427795,
-0.039601996541023254,
-1.8264142274856567,
-1.8120852708816528,
1.4128284454345703,
1.100978970527649,
2.440908670425415,
0.4560433626174927,
0.4565752148628235,
-0.8292834162712097,
-0.7366746664047241,
0.4973398745059967,
-0.7706484794616699,
-0.7907710075378418,
0.21204319596290588,
2.2981984615325928,
1.7433409690856934,
-0.38266345858573914,
-0.20303788781166077,
-0.9360256791114807,
1.3900089263916016,
-0.3521575927734375,
0.24619325995445251,
1.9418097734451294,
-0.5200737714767456,
-1.0534284114837646,
1.3334466218948364,
-2.47542405128479,
0.35410234332084656,
2.039389133453369,
0.32785508036613464,
0.036492180079221725,
-1.1438665390014648,
-0.6711797118186951,
-0.25350552797317505,
-0.4516354501247406,
-1.2144725322723389,
0.4258517920970917,
-0.2469584047794342,
-0.7469432353973389,
-1.3754231929779053,
0.05306389927864075,
-1.2006562948226929,
-1.760204792022705,
0.32112738490104675,
1.8019638061523438,
2.2145025730133057,
-0.7942805290222168,
1.3017172813415527,
-0.3205329179763794,
0.27269017696380615,
1.1815390586853027,
1.3415075540542603,
3.182136297225952,
1.8964810371398926,
-1.275789737701416,
0.7108958959579468,
-0.20224106311798096,
-0.511903703212738,
1.1561981439590454,
-0.9521021842956543,
1.2063692808151245,
-0.18512633442878723,
-1.3741496801376343,
-1.2538212537765503,
0.991303563117981,
0.4476582407951355,
-0.028175562620162964,
-0.5028946399688721,
1.1427967548370361,
0.29218077659606934,
1.3369566202163696,
0.701066255569458,
-0.32052934169769287,
0.43360066413879395,
-0.40874403715133667,
-0.6149309873580933,
1.630698323249817,
0.16936644911766052,
-1.571481704711914,
-2.3707754611968994,
-0.27502456307411194,
-1.0454959869384766,
0.04900190979242325,
-0.9226838946342468,
-1.0481524467468262,
1.448639154434204,
0.5001184940338135,
-0.9327632784843445,
-0.0741051658987999,
-0.32214584946632385,
-0.4983154535293579,
2.6494224071502686,
-1.2729077339172363,
-0.1405186653137207,
-0.9198150038719177,
-0.6733450889587402,
1.5367646217346191,
-1.2461811304092407,
-0.2744061052799225,
-1.078900933265686,
-0.5435791611671448,
-1.2100685834884644,
-0.33943626284599304,
-0.03098747506737709,
-0.8526471853256226,
0.7053017616271973,
0.00030164793133735657,
-1.3351852893829346,
-0.31025341153144836,
-1.0688716173171997,
0.9582793116569519,
-0.22964316606521606,
0.04779563099145889,
1.5733824968338013,
0.1907082200050354,
-0.5159547924995422,
0.8416439294815063,
1.296844720840454,
0.6875547766685486,
-0.5702489614486694,
0.09505592286586761,
-0.6938663125038147,
0.5636553764343262,
-1.1349433660507202,
0.3078150451183319,
-3.0550317764282227,
0.6565550565719604,
-0.0808764398097992,
-0.10229954123497009,
-0.20191511511802673,
-1.529287576675415,
0.9008527994155884,
2.3704171180725098,
-1.1484025716781616,
0.6466029286384583,
0.377241313457489,
1.192797064781189,
-1.6490200757980347,
0.03200126811861992,
-0.6971295475959778,
2.0334553718566895,
0.01214817725121975,
1.090399980545044,
-0.5477299690246582,
-2.3483176231384277,
0.5435293912887573,
-1.2214205265045166,
-0.9459361433982849,
0.837471067905426,
-0.8753677010536194,
0.2943304479122162,
-1.1371742486953735,
-0.109713114798069,
-0.8966184258460999,
-1.1966664791107178,
0.46852946281433105,
-0.0021955976262688637,
0.6349859833717346,
-0.6153260469436646,
0.2316913604736328,
-2.2837395668029785,
-1.3670519590377808,
-0.09304996579885483,
-0.892357587814331,
0.5138745903968811,
-0.455678254365921,
0.675409197807312,
-0.12342575192451477,
0.07147728651762009,
0.28487396240234375,
1.6339188814163208,
3.1966323852539062,
-0.0533507838845253,
0.3031390607357025,
-0.2690843343734741,
-1.0440690517425537,
1.4797738790512085,
0.8914703130722046,
-0.21251681447029114,
-0.636313796043396,
-0.9174838662147522,
1.358239769935608,
1.9289311170578003,
1.0797914266586304,
0.08467356115579605,
-0.8944322466850281,
-0.7232299447059631,
0.07054232805967331,
0.1497943103313446,
0.4875720143318176,
0.9852105379104614,
0.09124661982059479,
0.15973249077796936,
1.3375015258789062,
1.0260815620422363,
-0.2739325761795044,
0.437870055437088,
-0.8520744442939758,
-0.3935028612613678,
0.4908376634120941,
0.2716374397277832,
-0.05929703637957573,
0.32689979672431946,
-1.021755576133728,
-0.2423502504825592,
-0.25612199306488037,
-0.771503746509552,
-0.7664493322372437,
-0.37243205308914185,
-0.5513604283332825,
1.7794244289398193,
-0.11040221154689789,
-0.5358301997184753,
0.09721104055643082,
-0.7203077673912048,
-0.16352137923240662,
-1.054187297821045,
0.21019157767295837,
-0.06421025842428207,
0.059567004442214966,
-0.18798115849494934,
1.639061689376831,
-0.9949230551719666,
-2.1962690353393555,
0.11363276094198227,
0.2718888819217682,
-0.2673373818397522,
-0.08172887563705444,
1.8533731698989868,
0.48978009819984436,
1.417929768562317,
1.5070242881774902,
1.091196060180664,
-0.6379948258399963,
-1.3506956100463867,
0.8747522234916687,
0.9686105251312256,
-1.3348026275634766,
0.965174674987793,
-0.22896486520767212,
-0.6270449161529541,
0.6182579398155212,
1.2315764427185059,
0.45644235610961914,
-1.949137568473816,
0.9027418494224548,
-1.281261920928955,
0.9113600254058838,
0.8361818790435791,
0.8319063782691956,
0.1990705132484436,
0.9198185205459595,
-1.2246874570846558,
-1.0021231174468994,
-0.5514187216758728,
-0.6772380471229553,
1.8729979991912842,
-0.3042885661125183,
0.3505503237247467,
-0.2874707877635956,
-1.2263089418411255,
0.15207216143608093,
0.776924192905426,
0.3751983940601349,
-0.3056093454360962,
0.700707733631134,
-0.7059705853462219,
-0.9857744574546814,
-1.2556931972503662,
-0.40815213322639465,
-1.1273316144943237,
-0.8516666293144226,
1.0344780683517456,
0.7063407301902771,
0.5617311596870422,
1.965590000152588,
0.7018765807151794,
0.35259494185447693,
-2.5013010501861572,
0.7888883948326111,
0.37065035104751587,
-0.19892680644989014,
0.7972376346588135,
0.3185134530067444,
1.2867543697357178,
-0.11957574635744095,
0.6543554663658142,
-2.397395133972168,
2.2233994007110596,
-0.2540574073791504,
0.6771321296691895,
0.06293834000825882,
-0.0042222971096634865,
1.0500819683074951,
0.5969453454017639,
0.4397391080856323,
-1.0890953540802002,
0.9196836948394775,
-0.5534465909004211,
1.1097525358200073,
0.8704671263694763,
-0.8946561813354492,
0.18019899725914001,
1.2767248153686523,
0.40925541520118713,
-0.5399833917617798,
-1.0222300291061401,
-0.8691217303276062,
0.903214693069458,
1.6921827793121338,
-0.022643528878688812,
0.025780122727155685,
0.7313981652259827,
0.7851837277412415,
-1.2257850170135498,
0.06409129500389099,
-0.46837422251701355,
-0.6981350183486938,
1.7591761350631714,
2.043541669845581,
-0.08205754309892654,
0.02885565161705017,
-0.7370010018348694,
-1.4389351606369019,
0.8257215023040771,
0.09838739037513733,
-0.10808446258306503,
0.7000392079353333,
-0.6497610211372375,
1.0584806203842163,
0.73885577917099,
0.8342516422271729,
0.24968484044075012,
-0.006959699094295502,
0.2708559036254883,
-0.24005931615829468,
-1.181571364402771,
-0.3688099682331085,
-1.0014358758926392,
-2.7116103172302246,
0.3852824866771698,
-0.2706107795238495,
-1.5176461935043335,
0.15169301629066467,
-0.972403347492218,
0.7417000532150269,
-0.48801758885383606,
-1.2254302501678467,
-1.4287840127944946,
0.32015910744667053,
-0.13071775436401367,
0.870212197303772,
-1.647027850151062,
-0.19681820273399353,
1.1031707525253296,
0.8823345303535461,
-0.6227027773857117,
0.903572142124176,
0.2764364182949066,
0.9130693674087524,
0.848609447479248,
-0.4457470178604126,
0.6209195852279663,
0.2645138204097748,
-1.4142378568649292,
0.3945606052875519,
1.4252586364746094,
0.13689768314361572,
1.2999680042266846,
-0.3649512529373169,
0.02686835452914238,
0.45364779233932495,
-0.37243491411209106,
-0.6129107475280762,
-0.5926719307899475,
0.6449386477470398,
-0.10334421694278717,
-0.9414313435554504,
-0.13348931074142456,
-0.030469194054603577,
-0.28624171018600464,
0.3029433786869049,
-1.5127626657485962,
-0.1851729452610016,
-0.49916258454322815,
-0.5120480060577393,
-1.474369764328003,
-0.09932182729244232,
1.3903872966766357,
-0.7685970067977905,
-0.16071665287017822,
0.559404194355011,
0.25564274191856384,
0.5234937071800232,
0.6697806119918823,
-0.7389169335365295,
-0.1650344729423523,
-0.2280748188495636,
-0.40574318170547485,
0.3062158524990082,
1.3229351043701172,
-0.09869693964719772,
-0.9138844013214111,
0.5352951288223267,
-0.1974707543849945,
0.2323712408542633,
1.9234126806259155,
0.10948490351438522,
-0.9079410433769226,
0.43419119715690613,
-0.7214115262031555,
1.8524341583251953,
1.6482131481170654,
1.2493810653686523,
-0.07573409378528595,
-0.9078145623207092,
0.6247072815895081,
-0.3349785804748535,
-0.3500007092952728,
0.9049340486526489,
0.33172857761383057,
-0.3379247784614563,
-1.4557747840881348,
0.8584282398223877,
1.1947300434112549,
-0.667740523815155,
-0.8077252507209778,
0.0937441736459732,
-0.8044922947883606,
1.285821557044983,
0.561802864074707,
0.33465397357940674,
0.30811285972595215,
1.6694190502166748,
0.757254958152771,
-0.6205739378929138,
0.562347412109375,
0.43753620982170105,
-0.17086711525917053,
-1.9788401126861572,
-1.1438504457473755,
0.2777162492275238,
-0.5661427974700928,
-1.4604860544204712,
1.4376497268676758,
-1.1826928853988647,
-1.0946320295333862,
0.5623211860656738,
0.12855815887451172,
1.2434324026107788,
0.38000398874282837,
1.727195382118225,
2.0137686729431152,
0.883465588092804,
0.5512771606445312,
1.1712629795074463,
-0.28095531463623047,
-0.2311631739139557,
1.7125250101089478,
-0.4734131395816803,
0.6195234060287476,
1.0724542140960693,
-0.49587100744247437,
-1.1998913288116455,
-0.8328787684440613,
-1.0911449193954468,
-0.7000859975814819,
0.9952174425125122,
0.13053661584854126,
-1.0519269704818726,
0.3879084289073944,
1.6201426982879639,
0.023524891585111618,
-0.07032613456249237,
0.7553108930587769,
0.2745136618614197,
-0.6166685223579407,
-0.09953504800796509,
-1.033950686454773,
0.6540482044219971,
-0.39145901799201965,
-0.3811131417751312,
0.218522310256958,
0.7001889944076538,
1.2325540781021118,
0.1229330375790596,
0.14792925119400024,
1.2304459810256958,
-1.4512929916381836,
1.131751537322998,
-0.9052254557609558,
0.340340793132782,
-2.2818076610565186,
1.4047504663467407,
-0.8230016827583313,
2.003674268722534,
-2.7350785732269287,
0.4516626298427582,
-0.4553510248661041,
-0.6838463544845581,
0.19312405586242676,
-0.1762728989124298,
0.1428302824497223,
-0.0702274963259697,
-1.0638148784637451,
-0.05964799225330353,
-0.7954035401344299,
0.5187793374061584,
1.200047254562378,
1.41804039478302,
-0.9542839527130127,
-0.27431654930114746,
-1.5396314859390259,
-0.11904215067625046,
-0.5389840602874756,
0.09680303186178207,
-1.8033250570297241,
-0.17059549689292908,
-2.030259609222412,
-2.4496963024139404,
-1.3573641777038574,
-1.0463542938232422,
1.30330491065979,
0.17904475331306458,
-0.9700446128845215,
1.2183297872543335,
-0.38040247559547424,
-1.790512204170227,
1.1765867471694946,
-2.1978631019592285
] |
https://github.com/huggingface/datasets/issues/4694 | Distributed data parallel training for streaming datasets | Hi ! According to https://huggingface.co/docs/datasets/use_with_pytorch#stream-data you can use the pytorch DataLoader with `num_workers>0` to distribute the shards across your workers (it uses `torch.utils.data.get_worker_info()` to get the worker ID and select the right subsets of shards to use)
<s> EDIT: here is a code example </s>
```python
# ds = ds.with_format("torch")
# dataloader = DataLoader(ds, num_workers=num_workers)
```
EDIT: `with_format("torch")` is not required, now you can just do
```python
dataloader = DataLoader(ds, num_workers=num_workers)
``` | ### Feature request
Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training?
### Motivation
Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation?
### Your contribution
Does it requires manually split on data files for each worker in `DatasetBuilder._split_generator()`? What is`IterableDatasetShard` expected to do? | 627 | 72 | Distributed data parallel training for streaming datasets
### Feature request
Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training?
### Motivation
Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation?
### Your contribution
Does it requires manually split on data files for each worker in `DatasetBuilder._split_generator()`? What is`IterableDatasetShard` expected to do?
Hi ! According to https://huggingface.co/docs/datasets/use_with_pytorch#stream-data you can use the pytorch DataLoader with `num_workers>0` to distribute the shards across your workers (it uses `torch.utils.data.get_worker_info()` to get the worker ID and select the right subsets of shards to use)
<s> EDIT: here is a code example </s>
```python
# ds = ds.with_format("torch")
# dataloader = DataLoader(ds, num_workers=num_workers)
```
EDIT: `with_format("torch")` is not required, now you can just do
```python
dataloader = DataLoader(ds, num_workers=num_workers)
``` | [
-1.1402523517608643,
-0.9374126195907593,
-0.7178969979286194,
1.4824614524841309,
-0.1301054209470749,
-1.3304592370986938,
0.19348694384098053,
-1.0003364086151123,
1.6732970476150513,
-0.8957604765892029,
0.3859843313694,
-1.7304301261901855,
0.0786517933011055,
-0.5873034596443176,
-0.7939635515213013,
-0.8946793079376221,
-0.44233810901641846,
-0.7380642294883728,
1.004284143447876,
2.5134434700012207,
1.206485390663147,
-1.3281497955322266,
2.586397171020508,
0.7460014820098877,
-0.2508848309516907,
-1.0368200540542603,
0.4790659248828888,
-0.04170773923397064,
-1.184121012687683,
-0.39862120151519775,
-1.018768310546875,
-0.18965193629264832,
-0.5296190977096558,
-0.5281184315681458,
0.028565555810928345,
0.47234657406806946,
-0.31137627363204956,
-0.48244109749794006,
-0.5389091372489929,
-0.8077422976493835,
0.4707064628601074,
-0.44400089979171753,
0.9648154377937317,
-0.4022478759288788,
1.8148845434188843,
-0.6053294539451599,
0.530665934085846,
0.7177940011024475,
1.4047809839248657,
0.20446239411830902,
-0.15486562252044678,
0.31174689531326294,
0.33766278624534607,
-0.02575632929801941,
0.5502708554267883,
1.0982784032821655,
0.6120243072509766,
0.5701708793640137,
0.6471710205078125,
-2.2781686782836914,
1.228534460067749,
-1.0761587619781494,
0.29543107748031616,
1.330004096031189,
-0.9841663241386414,
0.33373773097991943,
-1.7321414947509766,
-0.09056241810321808,
0.6334862112998962,
-2.192589044570923,
0.2583305537700653,
-1.2736144065856934,
-0.42392703890800476,
1.1141011714935303,
0.4090571403503418,
-1.3170746564865112,
0.03259766101837158,
-0.34576138854026794,
1.0485553741455078,
0.42368367314338684,
1.034712791442871,
-1.7342708110809326,
-0.06144591420888901,
-0.3893636167049408,
0.06583006680011749,
-1.3537601232528687,
-1.4632949829101562,
0.5529357194900513,
0.7711276412010193,
0.5235928297042847,
-0.10963645577430725,
1.0538386106491089,
-1.0472171306610107,
0.7978368401527405,
-1.0166308879852295,
-1.7006340026855469,
-1.40170419216156,
-2.1815929412841797,
-2.283217668533325,
0.7067810297012329,
-0.391485333442688,
-0.5822919011116028,
2.0744941234588623,
-1.0471116304397583,
-1.7566102743148804,
1.1314241886138916,
0.2033650428056717,
-0.026215840131044388,
2.3640313148498535,
0.276065468788147,
-0.7068443298339844,
0.3714975416660309,
-0.7346908450126648,
0.6457496285438538,
-0.5009242296218872,
1.3370615243911743,
0.41046181321144104,
-1.2067986726760864,
1.6358082294464111,
-0.3804730772972107,
0.6296054720878601,
-0.7172247767448425,
-0.5379764437675476,
-0.7196194529533386,
0.35092857480049133,
1.935016393661499,
-0.33782365918159485,
1.5774927139282227,
-0.2757975459098816,
-1.448655605316162,
-1.6190009117126465,
0.9206377267837524,
0.4268433749675751,
-0.7306175231933594,
0.25060322880744934,
-0.3897508680820465,
0.1869562417268753,
-0.146050825715065,
1.05757474899292,
1.2002731561660767,
0.6824890375137329,
-0.32035163044929504,
-0.8171294331550598,
0.2958569824695587,
0.05826857313513756,
-0.7104599475860596,
-1.6948130130767822,
-0.376304030418396,
0.0973050594329834,
0.5728028416633606,
-1.0744422674179077,
1.8533707857131958,
0.7781052589416504,
1.887483835220337,
0.9876789450645447,
-0.22894571721553802,
1.4558758735656738,
0.008902310393750668,
1.9108619689941406,
-0.47306302189826965,
0.6860349774360657,
-0.33676877617836,
-1.1239477396011353,
0.774642288684845,
-0.36488762497901917,
-2.098600387573242,
-0.6663503050804138,
-0.7501220703125,
-0.09319191426038742,
-0.7923029661178589,
0.9202828407287598,
-0.1991378515958786,
-1.4155035018920898,
0.26537322998046875,
-0.75777667760849,
0.17376427352428436,
-1.2577658891677856,
0.40826037526130676,
0.6836836338043213,
-0.5988940596580505,
0.08535782247781754,
-0.2792671024799347,
-1.201090693473816,
-0.4168993830680847,
0.25920435786247253,
1.9455064535140991,
-0.7913344502449036,
0.8822489380836487,
1.020296573638916,
-0.7625489830970764,
-0.08334954082965851,
0.2795378863811493,
-0.3896797299385071,
0.8588165640830994,
-1.0650463104248047,
-0.4050825238227844,
1.308409571647644,
-0.23198242485523224,
-0.7071279883384705,
1.467559814453125,
0.7630033493041992,
-1.0380958318710327,
-0.1912921518087387,
-0.2417711615562439,
-0.7351916432380676,
0.05576351657509804,
-1.7100967168807983,
0.005148755386471748,
0.48690927028656006,
-1.4295070171356201,
-0.39763161540031433,
-0.08407320082187653,
1.300722360610962,
-0.13721947371959686,
1.4672971963882446,
-0.35641372203826904,
-0.15913791954517365,
-0.32544493675231934,
-0.3826516568660736,
0.08737083524465561,
-0.19563567638397217,
-0.5967328548431396,
0.18015940487384796,
-0.6372970342636108,
0.42240703105926514,
1.4122666120529175,
0.28743845224380493,
0.06593547016382217,
0.5641905665397644,
1.0510121583938599,
0.2796259820461273,
-0.0399237684905529,
-0.8506197929382324,
-1.597151756286621,
1.9295344352722168,
-1.3486961126327515,
2.053224802017212,
0.7509565353393555,
-0.03780855983495712,
-1.7539069652557373,
-1.8940647840499878,
1.366461992263794,
1.2051054239273071,
2.3010194301605225,
0.6099185943603516,
0.41266173124313354,
-0.8426449298858643,
-0.6494691371917725,
0.3904944062232971,
-1.0861756801605225,
-0.7208554148674011,
0.17514686286449432,
2.3938615322113037,
1.745125412940979,
-0.3851097524166107,
-0.20056715607643127,
-1.0635379552841187,
1.3180770874023438,
-0.22937144339084625,
0.2581358551979065,
2.036680221557617,
-0.3198240101337433,
-1.051492691040039,
1.2663567066192627,
-2.341587781906128,
0.1481219083070755,
2.012528896331787,
0.20485368371009827,
0.06949596107006073,
-1.314141035079956,
-0.5316792130470276,
-0.26511338353157043,
-0.30248504877090454,
-1.2483999729156494,
0.49164533615112305,
-0.2861229181289673,
-0.6503598093986511,
-1.3328006267547607,
0.16750012338161469,
-1.0222959518432617,
-1.6304218769073486,
0.21767833828926086,
1.790036678314209,
2.0228538513183594,
-0.8013319969177246,
1.5781900882720947,
-0.30808502435684204,
0.22906272113323212,
1.2847895622253418,
1.3160531520843506,
3.1677591800689697,
1.9174431562423706,
-1.4057375192642212,
0.7336772680282593,
-0.14518314599990845,
-0.5376793742179871,
1.2937312126159668,
-1.2114125490188599,
1.253527045249939,
-0.17514048516750336,
-1.2500842809677124,
-1.2719680070877075,
0.9106155633926392,
0.49860793352127075,
0.06962315738201141,
-0.5434262156486511,
1.2152602672576904,
0.13139000535011292,
1.3133354187011719,
0.504508912563324,
-0.39366087317466736,
0.6100350618362427,
-0.385653018951416,
-0.4168296158313751,
1.5767155885696411,
0.2653743624687195,
-1.31172513961792,
-2.360990524291992,
-0.17542868852615356,
-0.9017241597175598,
0.02922166883945465,
-0.7169952392578125,
-0.9685502648353577,
1.6685479879379272,
0.37792065739631653,
-1.3314223289489746,
-0.24836763739585876,
-0.28077632188796997,
-0.5858562588691711,
2.742593765258789,
-1.4289809465408325,
-0.253488153219223,
-1.077778697013855,
-0.639269232749939,
1.689276933670044,
-1.2946951389312744,
-0.22720296680927277,
-1.0035924911499023,
-0.6003642678260803,
-1.2796186208724976,
-0.5993240475654602,
-0.005399120971560478,
-0.9522754549980164,
0.8976339101791382,
0.2206948846578598,
-1.286379098892212,
-0.31663790345191956,
-0.8481349349021912,
0.8378869295120239,
-0.24307988584041595,
0.2588261365890503,
1.796797752380371,
0.42863354086875916,
-0.45478808879852295,
0.7211993336677551,
1.08717679977417,
0.6268690824508667,
-0.6315696239471436,
0.2609546184539795,
-0.6755434274673462,
0.317313015460968,
-1.2801859378814697,
0.26341843605041504,
-2.8575689792633057,
0.5943758487701416,
-0.07748293876647949,
-0.07407376915216446,
-0.07240334153175354,
-1.3355152606964111,
0.959955096244812,
2.6170475482940674,
-1.17206609249115,
0.47720542550086975,
0.3001101016998291,
1.2511810064315796,
-1.6296368837356567,
0.20266938209533691,
-0.4617305099964142,
2.075094223022461,
0.1712169200181961,
1.2444878816604614,
-0.3874974250793457,
-2.2686495780944824,
0.6521311402320862,
-1.2487304210662842,
-1.1993727684020996,
0.8829026222229004,
-0.8725959658622742,
0.027296673506498337,
-1.3422034978866577,
-0.2705380916595459,
-0.8002113699913025,
-1.2114311456680298,
0.7798184752464294,
0.12972977757453918,
0.47107893228530884,
-0.610750138759613,
0.2745780348777771,
-2.165320873260498,
-1.296047568321228,
-0.26398393511772156,
-0.9473141431808472,
0.3591209352016449,
-0.29217222332954407,
0.7090345025062561,
-0.2186761051416397,
0.05299916863441467,
0.34207427501678467,
1.4520039558410645,
3.343769073486328,
0.3030533790588379,
0.3615269660949707,
-0.2783360779285431,
-0.8874324560165405,
1.4243015050888062,
0.755996584892273,
-0.12784482538700104,
-0.5671423673629761,
-1.0064371824264526,
1.2165098190307617,
1.8627055883407593,
0.9316408634185791,
0.10905402898788452,
-0.8452233672142029,
-0.6967482566833496,
-0.15382534265518188,
0.16400209069252014,
0.43006959557533264,
0.8381544947624207,
0.07585465162992477,
0.15422727167606354,
1.3397526741027832,
1.1925454139709473,
-0.5342705845832825,
0.3505551218986511,
-0.7949528098106384,
-0.4447322189807892,
0.5521875023841858,
0.25416451692581177,
0.026583418250083923,
0.22811128199100494,
-0.9013831615447998,
-0.2473166137933731,
-0.3963518440723419,
-0.9018193483352661,
-0.7676236033439636,
-0.524602472782135,
-0.3301185965538025,
1.6516144275665283,
-0.05193742737174034,
-0.47923561930656433,
-0.08137976378202438,
-0.7621999979019165,
-0.08417881280183792,
-1.1124709844589233,
0.15401260554790497,
-0.03957634046673775,
-0.1290196031332016,
-0.0530121885240078,
1.709668517112732,
-0.9180675745010376,
-2.063342571258545,
0.3027557134628296,
0.28313347697257996,
-0.31971845030784607,
0.19866137206554413,
1.7131959199905396,
0.4849136173725128,
1.4355030059814453,
1.38883376121521,
1.0247772932052612,
-0.6945753693580627,
-1.2842743396759033,
0.6972174644470215,
0.9619753360748291,
-1.4977260828018188,
0.8735401630401611,
0.08917327225208282,
-0.4306436777114868,
0.5768011808395386,
1.1753934621810913,
0.570397138595581,
-1.9554096460342407,
0.7441638112068176,
-1.040743350982666,
0.7725534439086914,
0.7929136753082275,
0.7135121822357178,
0.23135481774806976,
0.8444061875343323,
-1.1311683654785156,
-1.19843590259552,
-0.7695165276527405,
-0.6285510659217834,
1.9334417581558228,
-0.21907690167427063,
0.6248992085456848,
-0.06951025128364563,
-1.427131175994873,
-0.061191409826278687,
0.7735621929168701,
0.3601420521736145,
-0.45364469289779663,
0.8349412679672241,
-0.5648897290229797,
-0.9512808918952942,
-1.354758381843567,
-0.4101751744747162,
-1.1207554340362549,
-0.9335631132125854,
1.1021363735198975,
0.8011223077774048,
0.1919441521167755,
1.8366496562957764,
0.6410382390022278,
0.3306490182876587,
-2.640800952911377,
0.912531852722168,
0.27553361654281616,
-0.10870933532714844,
0.8554441332817078,
0.30106353759765625,
0.992429792881012,
-0.07043753564357758,
0.4945307970046997,
-2.4780752658843994,
2.329411029815674,
-0.22878317534923553,
0.5530003309249878,
-0.03496052324771881,
-0.1733589768409729,
1.0663822889328003,
0.47137388586997986,
0.48511427640914917,
-1.043994665145874,
0.6732138395309448,
-0.6119993925094604,
1.237406849861145,
0.8605328798294067,
-0.9306004643440247,
-0.05119660869240761,
1.3821167945861816,
0.42441704869270325,
-0.5700701475143433,
-0.9021033048629761,
-0.9889570474624634,
0.990333616733551,
1.6549063920974731,
-0.03028736636042595,
-0.045537207275629044,
0.9310659170150757,
0.7454360723495483,
-1.266180396080017,
0.12314890325069427,
-0.6921918392181396,
-0.7685971856117249,
1.672847032546997,
2.0588953495025635,
-0.15382248163223267,
-0.2338835895061493,
-0.7731133699417114,
-1.2204772233963013,
0.8179892301559448,
-0.020377010107040405,
-0.0030164052732288837,
0.6642587780952454,
-0.6548332571983337,
1.1168246269226074,
0.9314658045768738,
0.9416987299919128,
0.2641732394695282,
0.2121010273694992,
0.4090360701084137,
-0.29998597502708435,
-1.1418349742889404,
-0.1573166400194168,
-1.136086106300354,
-2.603738307952881,
0.49138879776000977,
-0.20738564431667328,
-1.2828383445739746,
0.03820269927382469,
-1.0665534734725952,
0.8888346552848816,
-0.5962119698524475,
-1.100542426109314,
-1.5818157196044922,
0.188210129737854,
-0.05957906320691109,
0.9292230010032654,
-1.5748481750488281,
-0.04914569482207298,
1.1437253952026367,
0.9042742848396301,
-0.6839321851730347,
0.9267556071281433,
0.27962279319763184,
1.0313888788223267,
0.8775834441184998,
-0.40062767267227173,
0.5807077288627625,
0.021715115755796432,
-1.3387199640274048,
0.5562437772750854,
1.1879465579986572,
0.20046374201774597,
1.521820306777954,
-0.47842371463775635,
-0.002510976977646351,
0.30695948004722595,
-0.5916002988815308,
-0.47953614592552185,
-0.627085268497467,
0.7547699213027954,
0.03672822192311287,
-0.9141516089439392,
0.05703597143292427,
-0.048682842403650284,
-0.24432936310768127,
0.14786162972450256,
-1.5567753314971924,
-0.09017793089151382,
-0.2202192097902298,
-0.6138278245925903,
-1.2126874923706055,
-0.12316430360078812,
1.4557615518569946,
-0.7672455310821533,
-0.18442635238170624,
0.5130994915962219,
0.3333802819252014,
0.5132592916488647,
0.5382906794548035,
-0.593163013458252,
-0.23508545756340027,
-0.22774139046669006,
-0.3832290768623352,
0.3857567012310028,
1.373477816581726,
-0.06632178276777267,
-0.9241811633110046,
0.8112279772758484,
-0.3715219497680664,
0.08621524274349213,
1.8759894371032715,
0.18864238262176514,
-0.8478308320045471,
0.24832449853420258,
-0.6694565415382385,
1.919977068901062,
1.780669927597046,
1.3883557319641113,
-0.045354973524808884,
-0.9851840138435364,
0.7031106352806091,
-0.3929580748081207,
-0.3641071021556854,
0.9033317565917969,
0.38273197412490845,
-0.24934126436710358,
-1.328150987625122,
0.7952136993408203,
1.2217411994934082,
-0.8023695945739746,
-0.893772304058075,
0.09262584894895554,
-0.800367534160614,
1.0748918056488037,
0.6634689569473267,
0.3285844326019287,
0.29895442724227905,
1.6140732765197754,
0.7235226035118103,
-0.39652493596076965,
0.5538576245307922,
0.49676865339279175,
-0.15212780237197876,
-2.084256649017334,
-1.1239285469055176,
0.474694162607193,
-0.44095489382743835,
-1.5863608121871948,
1.3759002685546875,
-1.1980890035629272,
-0.9018288850784302,
0.5500826239585876,
0.13619311153888702,
1.5466433763504028,
0.34863579273223877,
1.5919395685195923,
2.039383888244629,
0.9029269218444824,
0.374118447303772,
1.3000694513320923,
-0.1737309843301773,
-0.3881855905056,
1.8131542205810547,
-0.4604291617870331,
0.4087684154510498,
1.0791152715682983,
-0.2914237678050995,
-1.154276728630066,
-0.7945794463157654,
-1.2273330688476562,
-0.7825571298599243,
1.1884729862213135,
0.05119350552558899,
-1.0880743265151978,
0.27340131998062134,
1.5984258651733398,
0.013485441915690899,
-0.2501979470252991,
0.6508981585502625,
0.3129578232765198,
-0.8357084393501282,
0.01869276538491249,
-0.8359564542770386,
0.5285475254058838,
-0.16905614733695984,
-0.2546434998512268,
0.3679201006889343,
0.5341601967811584,
1.2963749170303345,
0.013280709274113178,
0.06767275929450989,
1.1242806911468506,
-1.482893466949463,
1.464203119277954,
-0.6499983668327332,
0.2390550673007965,
-2.3934030532836914,
1.4195343255996704,
-0.787649929523468,
1.8770259618759155,
-2.689985990524292,
0.43284451961517334,
-0.5853654742240906,
-0.49214521050453186,
0.2819969058036804,
-0.4179307520389557,
0.09007629752159119,
-0.1602136194705963,
-1.2579505443572998,
-0.064634308218956,
-0.7307370901107788,
0.6169916391372681,
1.0876173973083496,
1.3162944316864014,
-1.2256556749343872,
-0.33788543939590454,
-1.7902824878692627,
-0.08623696863651276,
-0.6562879681587219,
0.3618749976158142,
-2.0251853466033936,
-0.1785167157649994,
-1.9909124374389648,
-2.3161275386810303,
-1.2971314191818237,
-0.6900044083595276,
1.0174248218536377,
0.0976252555847168,
-0.8789156079292297,
1.1645476818084717,
-0.4093150198459625,
-1.8703572750091553,
1.0525559186935425,
-2.2056145668029785
] |
https://github.com/huggingface/datasets/issues/4694 | Distributed data parallel training for streaming datasets | @cyk1337 does streaming datasets with multi-gpu works for you? I am testing on one node with multiple gpus, but this is freezing, https://github.com/huggingface/datasets/issues/5123
In case you could make this work, could you share with me your data-loading codes?
thank you | ### Feature request
Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training?
### Motivation
Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation?
### Your contribution
Does it requires manually split on data files for each worker in `DatasetBuilder._split_generator()`? What is`IterableDatasetShard` expected to do? | 627 | 40 | Distributed data parallel training for streaming datasets
### Feature request
Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training?
### Motivation
Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation?
### Your contribution
Does it requires manually split on data files for each worker in `DatasetBuilder._split_generator()`? What is`IterableDatasetShard` expected to do?
@cyk1337 does streaming datasets with multi-gpu works for you? I am testing on one node with multiple gpus, but this is freezing, https://github.com/huggingface/datasets/issues/5123
In case you could make this work, could you share with me your data-loading codes?
thank you | [
-1.13154935836792,
-1.0454769134521484,
-0.7836054563522339,
1.453216791152954,
-0.13800348341464996,
-1.288615107536316,
0.13823121786117554,
-1.0850181579589844,
1.610918641090393,
-0.8718317151069641,
0.28928399085998535,
-1.7275058031082153,
0.07975344359874725,
-0.5848757028579712,
-0.7065107226371765,
-0.9353733658790588,
-0.4449252784252167,
-0.8276861310005188,
0.9347209334373474,
2.615063428878784,
1.1637675762176514,
-1.2122516632080078,
2.6955795288085938,
0.7179665565490723,
-0.32035231590270996,
-0.9798991680145264,
0.5059910416603088,
0.024210739880800247,
-1.2020878791809082,
-0.3577551543712616,
-1.0731143951416016,
-0.12405935674905777,
-0.5161548852920532,
-0.43962323665618896,
0.05585840716958046,
0.4606679081916809,
-0.26794955134391785,
-0.32620933651924133,
-0.4894382953643799,
-0.8246995210647583,
0.4806631803512573,
-0.43550366163253784,
0.9890246987342834,
-0.3314841389656067,
1.7609341144561768,
-0.6075721979141235,
0.47237443923950195,
0.7161734104156494,
1.331152081489563,
0.12105641514062881,
-0.062293145805597305,
0.2464948445558548,
0.312995970249176,
-0.07242173701524734,
0.474542498588562,
1.0985993146896362,
0.5880176424980164,
0.5687806010246277,
0.5809305310249329,
-2.22987699508667,
1.2660375833511353,
-1.0266828536987305,
0.29593735933303833,
1.3298118114471436,
-0.9768422842025757,
0.39577725529670715,
-1.7421456575393677,
-0.17844335734844208,
0.5799999833106995,
-2.2229254245758057,
0.2046511024236679,
-1.1394484043121338,
-0.496577650308609,
0.984796941280365,
0.3129931688308716,
-1.3220422267913818,
0.13040071725845337,
-0.3837810456752777,
1.1118496656417847,
0.49181392788887024,
1.1080501079559326,
-1.7025115489959717,
-0.040332842618227005,
-0.3416774272918701,
-0.024394821375608444,
-1.3479503393173218,
-1.4937009811401367,
0.5935303568840027,
0.6164087057113647,
0.6348265409469604,
-0.08962611109018326,
0.9493933916091919,
-1.0502307415008545,
0.846123218536377,
-0.9545639157295227,
-1.6474437713623047,
-1.4000093936920166,
-2.4268903732299805,
-2.2799794673919678,
0.8123509883880615,
-0.4174063503742218,
-0.6021194458007812,
2.0170936584472656,
-1.042419672012329,
-1.7975802421569824,
1.200708031654358,
0.14747494459152222,
0.0033201146870851517,
2.3920087814331055,
0.3646780550479889,
-0.6928162574768066,
0.43104442954063416,
-0.7257249355316162,
0.7299778461456299,
-0.4617155194282532,
1.424553394317627,
0.48481321334838867,
-1.0510504245758057,
1.6040714979171753,
-0.4533742666244507,
0.5203886032104492,
-0.6766809225082397,
-0.6632701754570007,
-0.8308456540107727,
0.3265206515789032,
1.9169961214065552,
-0.3381577432155609,
1.5824134349822998,
-0.3229808509349823,
-1.4767100811004639,
-1.598978877067566,
0.913398802280426,
0.4831101894378662,
-0.7214847803115845,
0.23847101628780365,
-0.3430332541465759,
0.08319240808486938,
0.019804690033197403,
1.048994541168213,
1.1861090660095215,
0.563797652721405,
-0.3002025783061981,
-0.898137629032135,
0.3763042986392975,
0.05848371610045433,
-0.7309126853942871,
-1.7218663692474365,
-0.33590102195739746,
0.16165737807750702,
0.6319374442100525,
-1.141494870185852,
1.699585199356079,
0.8640794157981873,
1.9138832092285156,
1.0064376592636108,
-0.24387924373149872,
1.4864352941513062,
-0.0700925663113594,
1.7666335105895996,
-0.49807101488113403,
0.7096403241157532,
-0.3241204619407654,
-1.152854561805725,
0.7370279431343079,
-0.4074365496635437,
-2.0248372554779053,
-0.6808278560638428,
-0.9313530325889587,
-0.11645369231700897,
-0.8195601105690002,
1.0166196823120117,
-0.31872236728668213,
-1.3759610652923584,
0.2519601583480835,
-0.7138894200325012,
0.16494160890579224,
-1.2483009099960327,
0.3343220055103302,
0.7042151093482971,
-0.568752646446228,
0.06123213842511177,
-0.2764168083667755,
-1.256549596786499,
-0.4549652636051178,
0.26141661405563354,
1.918900966644287,
-0.7790148854255676,
0.952293336391449,
0.962037205696106,
-0.7945895195007324,
-0.07687423378229141,
0.3624601662158966,
-0.3619168698787689,
0.902648389339447,
-1.0345879793167114,
-0.3991711139678955,
1.223901629447937,
-0.20879381895065308,
-0.6317068338394165,
1.3721109628677368,
0.7668286561965942,
-0.9920837879180908,
-0.22979731857776642,
-0.2562839090824127,
-0.7816305160522461,
-0.04762381687760353,
-1.699684500694275,
-0.08009364455938339,
0.3462711274623871,
-1.4126707315444946,
-0.4257185161113739,
-0.1874379813671112,
1.2778058052062988,
-0.0854884535074234,
1.3515667915344238,
-0.3086368441581726,
-0.2367866039276123,
-0.342258095741272,
-0.44119203090667725,
0.2128041833639145,
-0.27101513743400574,
-0.5958569049835205,
0.26082468032836914,
-0.7296358942985535,
0.3758189082145691,
1.4878208637237549,
0.34414634108543396,
0.12152407318353653,
0.5689035058021545,
0.9596081376075745,
0.33521246910095215,
-0.1460438072681427,
-0.808546245098114,
-1.5975110530853271,
2.0223066806793213,
-1.421704649925232,
1.9461227655410767,
0.7631641626358032,
-0.11897668242454529,
-1.8488188982009888,
-1.914631724357605,
1.272458553314209,
1.2788445949554443,
2.364591121673584,
0.624945342540741,
0.3842334449291229,
-0.7406735420227051,
-0.6544904112815857,
0.2837070822715759,
-1.1339070796966553,
-0.7456980347633362,
0.15489418804645538,
2.3547956943511963,
1.8147937059402466,
-0.42858099937438965,
-0.2527550160884857,
-1.0512399673461914,
1.2382333278656006,
-0.17184342443943024,
0.1886368989944458,
2.019174337387085,
-0.4003641903400421,
-1.1053794622421265,
1.237451434135437,
-2.270787239074707,
0.09147193282842636,
1.954970121383667,
0.2769072949886322,
0.028076589107513428,
-1.3736454248428345,
-0.5648677349090576,
-0.34477370977401733,
-0.31587737798690796,
-1.232595443725586,
0.5913483500480652,
-0.2766878604888916,
-0.6881585717201233,
-1.4480353593826294,
0.11707090586423874,
-1.0589796304702759,
-1.6966893672943115,
0.33171531558036804,
1.789250373840332,
2.2011044025421143,
-0.848459005355835,
1.5378919839859009,
-0.22853997349739075,
0.2677808403968811,
1.2505955696105957,
1.19292151927948,
3.091811180114746,
1.9170401096343994,
-1.2827355861663818,
0.707094132900238,
-0.0490628220140934,
-0.47791314125061035,
1.2042561769485474,
-1.0659763813018799,
1.2951711416244507,
-0.13594657182693481,
-1.2519395351409912,
-1.2990608215332031,
0.9353638291358948,
0.43112891912460327,
-0.01181736122816801,
-0.5105210542678833,
1.2678219079971313,
0.09861808270215988,
1.2891147136688232,
0.5497633814811707,
-0.39629021286964417,
0.6052905321121216,
-0.356962114572525,
-0.42948517203330994,
1.6295334100723267,
0.26731234788894653,
-1.4704375267028809,
-2.3582608699798584,
-0.1721290796995163,
-0.7805217504501343,
-0.029411066323518753,
-0.6982332468032837,
-0.9872632026672363,
1.569778561592102,
0.43173453211784363,
-1.3023452758789062,
-0.2596595287322998,
-0.2812063992023468,
-0.5881462693214417,
2.70843243598938,
-1.479131817817688,
-0.2145489752292633,
-1.0033584833145142,
-0.6012974381446838,
1.6764484643936157,
-1.225101113319397,
-0.2686709463596344,
-1.0129854679107666,
-0.6593589782714844,
-1.3747495412826538,
-0.5663836002349854,
0.004444008693099022,
-0.9559996128082275,
0.7790292501449585,
0.2071487307548523,
-1.196518063545227,
-0.25033292174339294,
-0.9003759026527405,
0.880423903465271,
-0.2783921957015991,
0.3231300711631775,
1.8055473566055298,
0.4488260746002197,
-0.4564598798751831,
0.709820032119751,
1.1483477354049683,
0.5900819301605225,
-0.7195854187011719,
0.1025688573718071,
-0.7775366902351379,
0.31743645668029785,
-1.300467610359192,
0.32266756892204285,
-2.9778189659118652,
0.6250916123390198,
-0.14613652229309082,
-0.10788066685199738,
-0.022952795028686523,
-1.3973534107208252,
1.0980829000473022,
2.57192325592041,
-1.2241841554641724,
0.4994945228099823,
0.36431223154067993,
1.2347842454910278,
-1.5685871839523315,
0.31424686312675476,
-0.46099361777305603,
2.101325750350952,
0.1492852121591568,
1.232558012008667,
-0.47617989778518677,
-2.135265350341797,
0.6760206818580627,
-1.2660731077194214,
-1.182259440422058,
0.720119059085846,
-0.9250006675720215,
0.029721632599830627,
-1.3950718641281128,
-0.1849701851606369,
-0.8074982762336731,
-1.3247785568237305,
0.7982576489448547,
0.18316951394081116,
0.4508131146430969,
-0.5730859637260437,
0.29015371203422546,
-2.1500892639160156,
-1.3675670623779297,
-0.21456976234912872,
-0.8922959566116333,
0.399015873670578,
-0.3281283378601074,
0.7656236290931702,
-0.1841084212064743,
0.02997303381562233,
0.3453260064125061,
1.3392311334609985,
3.407989740371704,
0.2765294313430786,
0.4149938225746155,
-0.08826640993356705,
-0.8934110999107361,
1.4364064931869507,
0.8762502670288086,
-0.10855003446340561,
-0.566277027130127,
-0.9704669117927551,
1.253135085105896,
1.904869794845581,
0.9964667558670044,
0.17852623760700226,
-0.8280925750732422,
-0.5937523245811462,
-0.03715844452381134,
0.26178064942359924,
0.4345192611217499,
0.8921382427215576,
-0.034484751522541046,
0.14937365055084229,
1.4920856952667236,
1.1657278537750244,
-0.5326448678970337,
0.4351932108402252,
-0.7917488813400269,
-0.45674842596054077,
0.4104234278202057,
0.23631346225738525,
-0.03957735747098923,
0.2799820601940155,
-1.0058943033218384,
-0.2956865131855011,
-0.2877747416496277,
-0.9011924862861633,
-0.7389600872993469,
-0.49618658423423767,
-0.33072102069854736,
1.6833611726760864,
0.01588255912065506,
-0.4499317407608032,
-0.07592396438121796,
-0.7884534001350403,
-0.13586729764938354,
-1.0897337198257446,
0.17021852731704712,
-0.10805526375770569,
-0.11217333376407623,
-0.015434039756655693,
1.8657004833221436,
-0.9621418714523315,
-2.1791269779205322,
0.3431548774242401,
0.2893478274345398,
-0.3490787446498871,
0.04572373256087303,
1.6532061100006104,
0.49602577090263367,
1.4282182455062866,
1.3180862665176392,
1.0526710748672485,
-0.6395149230957031,
-1.2959147691726685,
0.8007741570472717,
1.0021731853485107,
-1.4294357299804688,
0.8313391804695129,
0.01899193972349167,
-0.40825125575065613,
0.5820870399475098,
1.2432949542999268,
0.5125347375869751,
-1.8359227180480957,
0.8747615218162537,
-0.9583773016929626,
0.7609732151031494,
0.8146670460700989,
0.8274277448654175,
0.22727879881858826,
0.8447319269180298,
-1.2236263751983643,
-1.1761122941970825,
-0.8798494338989258,
-0.6141602993011475,
1.8768346309661865,
-0.15306952595710754,
0.6136786937713623,
-0.16859470307826996,
-1.2952908277511597,
-0.06201634556055069,
0.7375999689102173,
0.2666356563568115,
-0.40981072187423706,
0.8867371678352356,
-0.5664793252944946,
-0.9666813015937805,
-1.4061133861541748,
-0.3079562783241272,
-1.0200159549713135,
-0.9220083355903625,
1.0921908617019653,
0.7832189798355103,
0.24046267569065094,
1.8857417106628418,
0.5730174779891968,
0.32226264476776123,
-2.643028497695923,
0.8690139651298523,
0.2829214334487915,
-0.0020157238468527794,
0.8902158737182617,
0.35006460547447205,
1.0814096927642822,
-0.021560199558734894,
0.40666136145591736,
-2.3961679935455322,
2.2426974773406982,
-0.2048792690038681,
0.660971462726593,
0.0054146964102983475,
-0.10615599155426025,
1.1109930276870728,
0.42472895979881287,
0.5230726599693298,
-1.0104012489318848,
0.7237313985824585,
-0.5121621489524841,
1.2339487075805664,
1.036156415939331,
-0.8606271743774414,
0.07246735692024231,
1.362806797027588,
0.6161617040634155,
-0.5203558206558228,
-0.8333649039268494,
-0.8460283279418945,
0.96096271276474,
1.7351629734039307,
-0.014809563755989075,
0.045062869787216187,
0.9578635096549988,
0.6775468587875366,
-1.2647260427474976,
-0.05004175379872322,
-0.6647128462791443,
-0.745556116104126,
1.6394472122192383,
2.1421585083007812,
-0.09105575084686279,
-0.2466888725757599,
-0.7542926669120789,
-1.1918662786483765,
0.8206890225410461,
-0.04367953538894653,
0.03167109563946724,
0.7162253260612488,
-0.6924765110015869,
1.164130449295044,
0.8962835073471069,
0.8791141510009766,
0.2884344458580017,
0.22697272896766663,
0.4095584750175476,
-0.19932307302951813,
-1.0056291818618774,
-0.21946841478347778,
-1.1697880029678345,
-2.597282886505127,
0.49076035618782043,
-0.2851143181324005,
-1.308058261871338,
0.07826315611600876,
-1.0341582298278809,
0.9403483867645264,
-0.5399835705757141,
-1.032875895500183,
-1.6266846656799316,
0.18593716621398926,
-0.19937701523303986,
0.9082576632499695,
-1.5392780303955078,
-0.14186997711658478,
1.1918972730636597,
0.9273315668106079,
-0.6968694925308228,
0.9983106851577759,
0.24823687970638275,
0.9996907711029053,
0.7697757482528687,
-0.4322115480899811,
0.5398513674736023,
0.11901962012052536,
-1.3595244884490967,
0.4835597276687622,
1.1997218132019043,
0.19843947887420654,
1.4551348686218262,
-0.48038241267204285,
0.0069032637402415276,
0.41852664947509766,
-0.5118916630744934,
-0.5207132697105408,
-0.5474390387535095,
0.7757548093795776,
0.03670377656817436,
-0.885614812374115,
0.0027192141860723495,
-0.11897304654121399,
-0.2771601378917694,
0.22520580887794495,
-1.5910130739212036,
-0.22497425973415375,
-0.2998409569263458,
-0.5634615421295166,
-1.3048149347305298,
-0.04470536485314369,
1.4693996906280518,
-0.811370313167572,
-0.26806139945983887,
0.4758775234222412,
0.38173070549964905,
0.5302516222000122,
0.5968996286392212,
-0.6333339214324951,
-0.14265157282352448,
-0.27756065130233765,
-0.36272361874580383,
0.3391433358192444,
1.3392473459243774,
-0.1062340959906578,
-0.9778165817260742,
0.7399733662605286,
-0.2905544340610504,
0.14279845356941223,
1.91335928440094,
0.13996678590774536,
-0.8757249712944031,
0.1603633016347885,
-0.6752428412437439,
1.9970450401306152,
1.6043262481689453,
1.428026795387268,
-0.012967275455594063,
-0.8836051821708679,
0.6812201142311096,
-0.13242413103580475,
-0.350474089384079,
0.956346869468689,
0.4608510136604309,
-0.2230914831161499,
-1.4570584297180176,
0.6245583295822144,
1.1745178699493408,
-0.8667455315589905,
-0.8277550339698792,
0.012616262771189213,
-0.8506255745887756,
1.0892468690872192,
0.6607050895690918,
0.3704076409339905,
0.3237185478210449,
1.6839898824691772,
0.7159076929092407,
-0.45868542790412903,
0.4887086749076843,
0.5042960047721863,
-0.11637048423290253,
-2.098733901977539,
-1.0728260278701782,
0.48489096760749817,
-0.40563473105430603,
-1.5409579277038574,
1.3226155042648315,
-1.1494296789169312,
-0.9225866198539734,
0.48491936922073364,
0.11485670506954193,
1.4688993692398071,
0.34700217843055725,
1.6150165796279907,
2.062404155731201,
0.9057710766792297,
0.2761777341365814,
1.4215530157089233,
-0.2285584658384323,
-0.3785441815853119,
1.8446950912475586,
-0.45453113317489624,
0.48052459955215454,
1.0280117988586426,
-0.3589841425418854,
-1.1017491817474365,
-0.7292816638946533,
-1.0796297788619995,
-0.6247071623802185,
1.1397933959960938,
0.09924564510583878,
-1.1321570873260498,
0.2463737577199936,
1.5300490856170654,
0.06981860101222992,
-0.25839072465896606,
0.5522413849830627,
0.3334152400493622,
-0.7845662832260132,
0.026007432490587234,
-0.9080553650856018,
0.5134372711181641,
-0.23005640506744385,
-0.34403958916664124,
0.27056294679641724,
0.5094531774520874,
1.2081354856491089,
-0.049492575228214264,
0.12904399633407593,
1.1860482692718506,
-1.4611623287200928,
1.4007623195648193,
-0.6664129495620728,
0.21859368681907654,
-2.4619300365448,
1.4590449333190918,
-0.7662540674209595,
1.856571912765503,
-2.7051072120666504,
0.42294275760650635,
-0.5500410199165344,
-0.4731718599796295,
0.2935624122619629,
-0.3927728235721588,
0.14728446304798126,
-0.18370744585990906,
-1.2137821912765503,
-0.12848515808582306,
-0.750191867351532,
0.5718243718147278,
1.1277152299880981,
1.2477381229400635,
-1.1482787132263184,
-0.2908940315246582,
-1.7918778657913208,
-0.1744576245546341,
-0.6950282454490662,
0.15808972716331482,
-2.053938627243042,
-0.2755736708641052,
-1.8504997491836548,
-2.3329217433929443,
-1.272825002670288,
-0.7203154563903809,
1.0478315353393555,
0.12683527171611786,
-0.995978832244873,
1.1497724056243896,
-0.4396311938762665,
-1.833092212677002,
1.0944256782531738,
-2.257143974304199
] |
https://github.com/huggingface/datasets/issues/4694 | Distributed data parallel training for streaming datasets | This has been implemented in `datasets` 2.8:
```python
from datasets.distributed import split_dataset_by_node
ds = split_dataset_by_node(ds, rank=rank, world_size=world_size)
```
docs: https://huggingface.co/docs/datasets/use_with_pytorch#distributed | ### Feature request
Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training?
### Motivation
Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation?
### Your contribution
Does it requires manually split on data files for each worker in `DatasetBuilder._split_generator()`? What is`IterableDatasetShard` expected to do? | 627 | 20 | Distributed data parallel training for streaming datasets
### Feature request
Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training?
### Motivation
Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation?
### Your contribution
Does it requires manually split on data files for each worker in `DatasetBuilder._split_generator()`? What is`IterableDatasetShard` expected to do?
This has been implemented in `datasets` 2.8:
```python
from datasets.distributed import split_dataset_by_node
ds = split_dataset_by_node(ds, rank=rank, world_size=world_size)
```
docs: https://huggingface.co/docs/datasets/use_with_pytorch#distributed | [
-1.1404423713684082,
-0.9758576154708862,
-0.7400391697883606,
1.4779746532440186,
-0.12025586515665054,
-1.3716955184936523,
0.1663607954978943,
-1.0485882759094238,
1.7450981140136719,
-0.908091127872467,
0.3510475158691406,
-1.7361656427383423,
0.07968226820230484,
-0.6192221641540527,
-0.6870181560516357,
-0.9404391646385193,
-0.40110811591148376,
-0.8018468618392944,
0.9827621579170227,
2.5258028507232666,
1.209555983543396,
-1.2233885526657104,
2.6072583198547363,
0.7162488102912903,
-0.32613492012023926,
-0.9504704475402832,
0.5401079058647156,
0.006289438344538212,
-1.268394947052002,
-0.37484103441238403,
-0.9614325761795044,
-0.12557098269462585,
-0.49117201566696167,
-0.532275378704071,
0.0436859093606472,
0.5462436676025391,
-0.30409976840019226,
-0.4108663499355316,
-0.4789639115333557,
-0.8210832476615906,
0.41741758584976196,
-0.38218849897384644,
0.9948354363441467,
-0.39776426553726196,
1.7451531887054443,
-0.6190962791442871,
0.4351266324520111,
0.7235859632492065,
1.2957515716552734,
0.09361045062541962,
-0.09732219576835632,
0.22881487011909485,
0.28753283619880676,
-0.04207310825586319,
0.5287297964096069,
1.056710124015808,
0.5664301514625549,
0.5942933559417725,
0.6207274198532104,
-2.2849721908569336,
1.272660732269287,
-1.0552719831466675,
0.2971362769603729,
1.4156497716903687,
-1.0029710531234741,
0.27264267206192017,
-1.6728169918060303,
-0.0820741131901741,
0.6604344248771667,
-2.209261894226074,
0.2807424068450928,
-1.188119649887085,
-0.4796045422554016,
1.0545454025268555,
0.3908880054950714,
-1.2748475074768066,
0.06263551861047745,
-0.4454541802406311,
1.0637093782424927,
0.5358332991600037,
1.0266600847244263,
-1.7323848009109497,
-0.07005209475755692,
-0.3697245717048645,
-0.03295604884624481,
-1.4347726106643677,
-1.446399450302124,
0.6278563141822815,
0.7155866026878357,
0.6222928166389465,
-0.08437786251306534,
1.036722183227539,
-0.9945100545883179,
0.7604957818984985,
-1.0206115245819092,
-1.7280826568603516,
-1.4148958921432495,
-2.377246856689453,
-2.272814989089966,
0.707777202129364,
-0.38904130458831787,
-0.6086310744285583,
2.054318428039551,
-1.0349982976913452,
-1.7853429317474365,
1.1098295450210571,
0.11637349426746368,
0.020885173231363297,
2.3187453746795654,
0.3231154978275299,
-0.6986778974533081,
0.39593085646629333,
-0.7140210270881653,
0.6789995431900024,
-0.3839402198791504,
1.3427479267120361,
0.48982203006744385,
-1.1523059606552124,
1.578948736190796,
-0.4307771623134613,
0.5907515287399292,
-0.6677210330963135,
-0.6183556318283081,
-0.8241219520568848,
0.29829058051109314,
1.939522385597229,
-0.3138796389102936,
1.5809588432312012,
-0.26749783754348755,
-1.493551254272461,
-1.5877422094345093,
0.9139025211334229,
0.3979093134403229,
-0.7302764654159546,
0.22739344835281372,
-0.43690383434295654,
0.13236644864082336,
-0.11667745560407639,
1.1569538116455078,
1.16892671585083,
0.5930055379867554,
-0.3205120265483856,
-0.8323361277580261,
0.3137192130088806,
0.033388782292604446,
-0.7019957900047302,
-1.744168758392334,
-0.2965637147426605,
0.13646085560321808,
0.6144786477088928,
-1.0343151092529297,
1.8222302198410034,
0.8158960342407227,
1.906214952468872,
0.9813181757926941,
-0.20572231709957123,
1.4278266429901123,
0.004594132304191589,
1.8173439502716064,
-0.5107914805412292,
0.7246760129928589,
-0.29114359617233276,
-1.1557226181030273,
0.8810278177261353,
-0.3461664617061615,
-2.015885829925537,
-0.7302987575531006,
-0.8546621799468994,
-0.09793851524591446,
-0.7638339400291443,
1.0133333206176758,
-0.2915019392967224,
-1.4418704509735107,
0.19279390573501587,
-0.695579469203949,
0.15795734524726868,
-1.2026877403259277,
0.29483750462532043,
0.7386779189109802,
-0.5129207372665405,
0.06575080007314682,
-0.27080440521240234,
-1.227997899055481,
-0.4109245836734772,
0.32763031125068665,
1.9498963356018066,
-0.7371954321861267,
0.9742475152015686,
0.9948143362998962,
-0.7704490423202515,
-0.03175482898950577,
0.26186415553092957,
-0.31861186027526855,
0.9235869646072388,
-1.063703179359436,
-0.3618784546852112,
1.232173204421997,
-0.25000444054603577,
-0.7538567185401917,
1.5404953956604004,
0.7453692555427551,
-1.017513632774353,
-0.14193829894065857,
-0.2691085636615753,
-0.8088531494140625,
0.013011264614760876,
-1.6588412523269653,
0.022151563316583633,
0.46657389402389526,
-1.4134864807128906,
-0.4240261912345886,
-0.11533168703317642,
1.2882161140441895,
-0.12893734872341156,
1.3551791906356812,
-0.3111315667629242,
-0.24062663316726685,
-0.3206767439842224,
-0.384402871131897,
0.1545390486717224,
-0.25896498560905457,
-0.6241039633750916,
0.23128396272659302,
-0.6867665648460388,
0.39436835050582886,
1.4073450565338135,
0.2689688801765442,
0.08786807954311371,
0.6299296617507935,
1.0131281614303589,
0.29745885729789734,
-0.16340920329093933,
-0.8406149744987488,
-1.6198124885559082,
1.9569220542907715,
-1.384436011314392,
1.94423508644104,
0.6880274415016174,
-0.07215636223554611,
-1.7731388807296753,
-1.8893165588378906,
1.3475961685180664,
1.2073311805725098,
2.2811338901519775,
0.6036505699157715,
0.41384580731391907,
-0.7800130844116211,
-0.6933918595314026,
0.30263781547546387,
-1.0525310039520264,
-0.6737058162689209,
0.19709348678588867,
2.3173820972442627,
1.8655750751495361,
-0.4160105586051941,
-0.22986304759979248,
-1.0082794427871704,
1.3079793453216553,
-0.19229404628276825,
0.21486039459705353,
2.0358505249023438,
-0.3403961658477783,
-1.0464458465576172,
1.3113088607788086,
-2.3292593955993652,
0.1493842899799347,
2.0259523391723633,
0.22600287199020386,
0.07473112642765045,
-1.3897018432617188,
-0.5743944644927979,
-0.3403843939304352,
-0.37068960070610046,
-1.256440281867981,
0.5506348013877869,
-0.27006635069847107,
-0.6254920959472656,
-1.372271180152893,
0.2221236377954483,
-1.0360091924667358,
-1.688106656074524,
0.23051230609416962,
1.791286826133728,
2.094593048095703,
-0.7287231683731079,
1.5623804330825806,
-0.3266962170600891,
0.22985714673995972,
1.294824242591858,
1.2529648542404175,
3.11649489402771,
1.9301769733428955,
-1.3200350999832153,
0.8133497834205627,
-0.007046394050121307,
-0.4982105493545532,
1.2551473379135132,
-1.1477253437042236,
1.3000017404556274,
-0.18817497789859772,
-1.2285373210906982,
-1.3583039045333862,
0.9451009631156921,
0.42276731133461,
0.0911930650472641,
-0.5922072529792786,
1.2949128150939941,
0.05522385984659195,
1.2835402488708496,
0.537667453289032,
-0.44164469838142395,
0.6046726107597351,
-0.4184205234050751,
-0.4086836278438568,
1.5489062070846558,
0.29115161299705505,
-1.340865969657898,
-2.2825963497161865,
-0.20061305165290833,
-0.7870198488235474,
0.014304484240710735,
-0.6883900761604309,
-0.9453794956207275,
1.682283639907837,
0.43833205103874207,
-1.3019473552703857,
-0.25078704953193665,
-0.24310657382011414,
-0.6074197888374329,
2.7538492679595947,
-1.3918086290359497,
-0.19045628607273102,
-1.1277567148208618,
-0.6502688527107239,
1.7575665712356567,
-1.2608648538589478,
-0.30006057024002075,
-1.0616157054901123,
-0.6597543954849243,
-1.3279606103897095,
-0.5428690910339355,
-0.00852096825838089,
-0.9576404690742493,
0.8936983346939087,
0.07261818647384644,
-1.2582615613937378,
-0.28567174077033997,
-0.8551091551780701,
0.9616896510124207,
-0.25985223054885864,
0.27889907360076904,
1.7971351146697998,
0.39916926622390747,
-0.5170935988426208,
0.6949372887611389,
1.1090391874313354,
0.6758208274841309,
-0.7577258348464966,
0.1805521547794342,
-0.73747318983078,
0.2869976758956909,
-1.293307900428772,
0.3192935585975647,
-2.9700543880462646,
0.59760582447052,
-0.08657661825418472,
-0.028345759958028793,
-0.05572441965341568,
-1.3578928709030151,
1.0220146179199219,
2.5345821380615234,
-1.2358481884002686,
0.4412497878074646,
0.3359401822090149,
1.2028287649154663,
-1.612690806388855,
0.33031025528907776,
-0.480285108089447,
2.0755457878112793,
0.15622808039188385,
1.2574936151504517,
-0.3926830589771271,
-2.17266845703125,
0.7021819353103638,
-1.279026985168457,
-1.1591800451278687,
0.84291011095047,
-0.896803081035614,
0.02194492518901825,
-1.381821632385254,
-0.21747857332229614,
-0.8396742343902588,
-1.328946828842163,
0.8360361456871033,
0.14193019270896912,
0.3741823136806488,
-0.5529715418815613,
0.3373788297176361,
-2.1668107509613037,
-1.3019331693649292,
-0.2015821933746338,
-0.960431694984436,
0.3557768166065216,
-0.32670897245407104,
0.6805981397628784,
-0.13947953283786774,
0.0693809911608696,
0.37259915471076965,
1.4207919836044312,
3.4395949840545654,
0.21022754907608032,
0.36255136132240295,
-0.10960673540830612,
-0.907394528388977,
1.4345232248306274,
0.9083632826805115,
-0.09265690296888351,
-0.5687299370765686,
-0.9772164225578308,
1.2398923635482788,
1.9197335243225098,
1.019559383392334,
0.11667421460151672,
-0.8904503583908081,
-0.6915426254272461,
-0.09311892837285995,
0.1854454129934311,
0.5082013010978699,
0.7911665439605713,
0.12611111998558044,
0.13906331360340118,
1.4356048107147217,
1.0884371995925903,
-0.42594921588897705,
0.3948906362056732,
-0.8403149247169495,
-0.43042510747909546,
0.45500263571739197,
0.26627352833747864,
-0.0037860972806811333,
0.30292636156082153,
-1.0558393001556396,
-0.2453112155199051,
-0.3251830041408539,
-0.851357638835907,
-0.7343609929084778,
-0.5570353269577026,
-0.3604709804058075,
1.6200659275054932,
-0.04103320091962814,
-0.49055245518684387,
-0.08455973863601685,
-0.7832719683647156,
-0.19393549859523773,
-1.1513031721115112,
0.23056073486804962,
-0.10073443502187729,
-0.1375354677438736,
-0.1198674663901329,
1.7786545753479004,
-0.9680883288383484,
-2.0973150730133057,
0.2800983786582947,
0.30530595779418945,
-0.3074865937232971,
0.10920510441064835,
1.6187275648117065,
0.5261722803115845,
1.361175775527954,
1.3205493688583374,
1.0528819561004639,
-0.6462746858596802,
-1.4003196954727173,
0.6850009560585022,
1.028908133506775,
-1.4592338800430298,
0.8910075426101685,
-0.036194685846567154,
-0.4485597312450409,
0.5625068545341492,
1.2756052017211914,
0.5587759017944336,
-1.824416160583496,
0.7803376317024231,
-1.007448673248291,
0.7338742613792419,
0.8314974904060364,
0.796869695186615,
0.24050216376781464,
0.8199326992034912,
-1.1957006454467773,
-1.1732845306396484,
-0.8158018589019775,
-0.6590316295623779,
1.864880084991455,
-0.26312458515167236,
0.6588640213012695,
-0.1624220460653305,
-1.3364863395690918,
-0.10506660491228104,
0.7843853235244751,
0.3623424470424652,
-0.42696255445480347,
0.8925092220306396,
-0.5368545055389404,
-0.9645689129829407,
-1.269341230392456,
-0.36509275436401367,
-1.077393889427185,
-0.9439160823822021,
1.0724735260009766,
0.7538797855377197,
0.2640373110771179,
1.8621726036071777,
0.6292194128036499,
0.35333606600761414,
-2.6067147254943848,
0.8341068029403687,
0.20599427819252014,
0.059387169778347015,
0.8342018723487854,
0.3125438094139099,
1.0670958757400513,
-0.02600196748971939,
0.48515239357948303,
-2.382718563079834,
2.2734949588775635,
-0.20515970885753632,
0.5431067943572998,
-0.028674576431512833,
-0.18587324023246765,
1.1086972951889038,
0.5044108629226685,
0.5055736303329468,
-1.0145344734191895,
0.7525127530097961,
-0.5980459451675415,
1.2320078611373901,
0.9108632802963257,
-0.887874186038971,
-0.01259793434292078,
1.3888068199157715,
0.5499676465988159,
-0.5089486837387085,
-0.8834747672080994,
-0.9606442451477051,
0.9844287633895874,
1.6543715000152588,
0.002634040080010891,
-0.03410382196307182,
0.9738085865974426,
0.7184527516365051,
-1.1823530197143555,
0.06024770438671112,
-0.6819813847541809,
-0.680361270904541,
1.6714104413986206,
2.0932013988494873,
-0.1295011341571808,
-0.17752201855182648,
-0.8325868844985962,
-1.1197824478149414,
0.7884333729743958,
-0.012989170849323273,
-0.10123450309038162,
0.6631990671157837,
-0.6766031980514526,
1.0546692609786987,
0.9319862723350525,
0.9545820355415344,
0.1849488466978073,
0.2728067636489868,
0.38176229596138,
-0.25348415970802307,
-1.17780601978302,
-0.2601682245731354,
-1.0889503955841064,
-2.642085552215576,
0.47766798734664917,
-0.2887164354324341,
-1.324436902999878,
0.045411787927150726,
-1.1324790716171265,
0.9197668433189392,
-0.5813842415809631,
-1.087602972984314,
-1.5483609437942505,
0.18100185692310333,
-0.1408773809671402,
0.9081287384033203,
-1.4918196201324463,
-0.08623971045017242,
1.2080802917480469,
0.8579809069633484,
-0.7293211221694946,
0.99942547082901,
0.1886267513036728,
0.988821268081665,
0.7782628536224365,
-0.37583664059638977,
0.5872610211372375,
0.11366023868322372,
-1.3994799852371216,
0.5398837924003601,
1.1084349155426025,
0.1732795238494873,
1.491320013999939,
-0.5267724394798279,
0.008743508718907833,
0.39806821942329407,
-0.5439251661300659,
-0.41929271817207336,
-0.6483058333396912,
0.8117409944534302,
0.10064668208360672,
-0.8436060547828674,
0.02569473162293434,
-0.1191876083612442,
-0.2848777174949646,
0.15510985255241394,
-1.5316758155822754,
-0.2046428769826889,
-0.3039724826812744,
-0.5980651378631592,
-1.273521065711975,
-0.06654845178127289,
1.469454288482666,
-0.7567281126976013,
-0.2285945862531662,
0.49837779998779297,
0.4042786955833435,
0.531923770904541,
0.6154155135154724,
-0.6070893406867981,
-0.12528535723686218,
-0.30873993039131165,
-0.30500131845474243,
0.3585387170314789,
1.3573673963546753,
-0.07419207692146301,
-0.9997650384902954,
0.7733766436576843,
-0.30760228633880615,
0.1202927976846695,
1.9523452520370483,
0.10254093259572983,
-0.8280833959579468,
0.2522174119949341,
-0.7043327689170837,
1.996893048286438,
1.6745500564575195,
1.3731141090393066,
-0.05757623910903931,
-0.9522282481193542,
0.634610652923584,
-0.21036642789840698,
-0.4065228998661041,
0.9213500022888184,
0.42610758543014526,
-0.27226522564888,
-1.416801929473877,
0.7306643724441528,
1.1836273670196533,
-0.8487815260887146,
-0.8460689187049866,
0.11561499536037445,
-0.8261317610740662,
1.0514652729034424,
0.6510419249534607,
0.3820268213748932,
0.38396650552749634,
1.6033827066421509,
0.7145603895187378,
-0.3896453380584717,
0.42424142360687256,
0.49353617429733276,
-0.10506795346736908,
-2.06209135055542,
-1.0612872838974,
0.5390429496765137,
-0.5621979236602783,
-1.613974690437317,
1.3052306175231934,
-1.1779199838638306,
-0.8755954504013062,
0.49013906717300415,
0.10107550024986267,
1.4903817176818848,
0.34408268332481384,
1.6138055324554443,
2.0696940422058105,
0.8631886839866638,
0.30476173758506775,
1.3343877792358398,
-0.22000977396965027,
-0.4139131009578705,
1.8103559017181396,
-0.4687274992465973,
0.49612563848495483,
1.0970197916030884,
-0.3222683370113373,
-1.1059285402297974,
-0.7745171189308167,
-1.1410466432571411,
-0.6122921109199524,
1.1387020349502563,
0.08672681450843811,
-1.1597509384155273,
0.23709620535373688,
1.3999278545379639,
0.06423459202051163,
-0.1296468824148178,
0.6348510980606079,
0.291355699300766,
-0.8844806551933289,
-0.016356607899069786,
-0.8749287128448486,
0.5505579113960266,
-0.20263385772705078,
-0.33042511343955994,
0.30295559763908386,
0.5405575633049011,
1.2843708992004395,
0.01616014540195465,
0.15410658717155457,
1.1816143989562988,
-1.433660626411438,
1.453151822090149,
-0.6536708474159241,
0.22068867087364197,
-2.4626760482788086,
1.4404542446136475,
-0.8179474472999573,
1.8842836618423462,
-2.7224864959716797,
0.3771951496601105,
-0.5281878709793091,
-0.48533138632774353,
0.3312632441520691,
-0.3763580024242401,
0.06525780260562897,
-0.19819411635398865,
-1.285553216934204,
-0.034433044493198395,
-0.746066689491272,
0.6198638677597046,
1.0757707357406616,
1.3458095788955688,
-1.2055976390838623,
-0.30273401737213135,
-1.823411226272583,
-0.14699216187000275,
-0.7365845441818237,
0.2619955837726593,
-2.0117368698120117,
-0.13363642990589142,
-1.9126874208450317,
-2.424975872039795,
-1.2766867876052856,
-0.6869338154792786,
1.0002057552337646,
0.11961887776851654,
-0.9234094619750977,
1.1567720174789429,
-0.3875058591365814,
-1.808220624923706,
1.0476222038269043,
-2.1997456550598145
] |
https://github.com/huggingface/datasets/issues/4694 | Distributed data parallel training for streaming datasets | i'm having hanging issues with this when using DDP and allocating the datasets with `split_dataset_by_node` 🤔
---
### edit
I don't want to pollute this thread, but for the sake of following up, I observed hanging close to the final iteration of the dataloader. I think this was happening on the final shard. First, I removed the final shard and things worked. Then (including all shards), I reordered the list of shards: `load_dataset('json', data_files=reordered, streaming=True)` and no hang.
I won't open an issue yet bc I am not quite sure about this observation. | ### Feature request
Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training?
### Motivation
Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation?
### Your contribution
Does it requires manually split on data files for each worker in `DatasetBuilder._split_generator()`? What is`IterableDatasetShard` expected to do? | 627 | 93 | Distributed data parallel training for streaming datasets
### Feature request
Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training?
### Motivation
Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation?
### Your contribution
Does it requires manually split on data files for each worker in `DatasetBuilder._split_generator()`? What is`IterableDatasetShard` expected to do?
i'm having hanging issues with this when using DDP and allocating the datasets with `split_dataset_by_node` 🤔
---
### edit
I don't want to pollute this thread, but for the sake of following up, I observed hanging close to the final iteration of the dataloader. I think this was happening on the final shard. First, I removed the final shard and things worked. Then (including all shards), I reordered the list of shards: `load_dataset('json', data_files=reordered, streaming=True)` and no hang.
I won't open an issue yet bc I am not quite sure about this observation. | [
-1.2204984426498413,
-0.9921425580978394,
-0.7883592844009399,
1.4305983781814575,
-0.1363610327243805,
-1.3252153396606445,
0.11146039515733719,
-1.062657356262207,
1.6479052305221558,
-0.9579980373382568,
0.2580532729625702,
-1.7026909589767456,
0.1381877362728119,
-0.6141002178192139,
-0.7151305675506592,
-0.9950941801071167,
-0.40869274735450745,
-0.7601370811462402,
1.0463021993637085,
2.513317584991455,
1.1254277229309082,
-1.3177073001861572,
2.679183006286621,
0.7512342929840088,
-0.23581728339195251,
-1.0451245307922363,
0.5447124242782593,
-0.007466354873031378,
-1.1879552602767944,
-0.4200981855392456,
-1.0022497177124023,
-0.12910184264183044,
-0.5037306547164917,
-0.4953588843345642,
0.030171500518918037,
0.41793376207351685,
-0.24429696798324585,
-0.4506762623786926,
-0.4442628026008606,
-0.8339029550552368,
0.4908081591129303,
-0.3889159560203552,
1.008905291557312,
-0.3768487870693207,
1.8330044746398926,
-0.5904351472854614,
0.46472108364105225,
0.7371859550476074,
1.3726946115493774,
0.1856977790594101,
-0.12051596492528915,
0.21135088801383972,
0.3509358763694763,
0.018855176866054535,
0.4403799772262573,
1.0183335542678833,
0.5705028176307678,
0.5317338109016418,
0.6818363070487976,
-2.2172200679779053,
1.2445158958435059,
-1.0780186653137207,
0.35907211899757385,
1.3742077350616455,
-1.0188738107681274,
0.4294068515300751,
-1.7969484329223633,
-0.102961465716362,
0.5982512831687927,
-2.212920904159546,
0.16039280593395233,
-1.2353911399841309,
-0.4098025858402252,
0.9884710907936096,
0.33298060297966003,
-1.3391125202178955,
0.11515770852565765,
-0.44213902950286865,
1.1256028413772583,
0.5695957541465759,
1.054991602897644,
-1.7062692642211914,
-0.047033585608005524,
-0.3707698583602905,
0.11109551787376404,
-1.3679779767990112,
-1.418129324913025,
0.5484100580215454,
0.7006890773773193,
0.5123960375785828,
0.002376081421971321,
1.0164849758148193,
-1.0288110971450806,
0.7740992307662964,
-0.965540885925293,
-1.610067367553711,
-1.4175647497177124,
-2.358534336090088,
-2.3152310848236084,
0.7940679788589478,
-0.4229901432991028,
-0.6197447776794434,
2.0303332805633545,
-1.1582685708999634,
-1.7961058616638184,
1.22447669506073,
0.09457744657993317,
0.001252063550055027,
2.3922107219696045,
0.23917201161384583,
-0.6976279616355896,
0.45964035391807556,
-0.787624180316925,
0.6708418726921082,
-0.5482026934623718,
1.4009209871292114,
0.502388060092926,
-1.068747639656067,
1.628302812576294,
-0.38477250933647156,
0.5402127504348755,
-0.6954166293144226,
-0.5960612297058105,
-0.8431491255760193,
0.41259631514549255,
1.9494551420211792,
-0.28824540972709656,
1.5631170272827148,
-0.2746211290359497,
-1.5189130306243896,
-1.5819201469421387,
0.9498660564422607,
0.42495352029800415,
-0.8021862506866455,
0.25460362434387207,
-0.3433700203895569,
0.11877656728029251,
-0.01687011681497097,
1.016358494758606,
1.1702306270599365,
0.6547277569770813,
-0.24912528693675995,
-0.8550836443901062,
0.33814898133277893,
-0.011004098691046238,
-0.6788945198059082,
-1.7445387840270996,
-0.3450671136379242,
0.04403701424598694,
0.6990050673484802,
-1.044846534729004,
1.6942400932312012,
0.8706703186035156,
1.8741841316223145,
1.0861008167266846,
-0.262391597032547,
1.4882111549377441,
0.08960326761007309,
1.8490029573440552,
-0.4843166768550873,
0.7486928105354309,
-0.33186712861061096,
-1.171654224395752,
0.764186441898346,
-0.3860324025154114,
-2.0562803745269775,
-0.6648440957069397,
-0.8534106016159058,
-0.12169578671455383,
-0.8079838752746582,
1.0031155347824097,
-0.3109613358974457,
-1.3910247087478638,
0.2791769206523895,
-0.6350018382072449,
0.23615026473999023,
-1.2543119192123413,
0.38378915190696716,
0.7624565958976746,
-0.5393111705780029,
0.12082291394472122,
-0.3134976625442505,
-1.2387140989303589,
-0.4267875552177429,
0.29822051525115967,
1.9356839656829834,
-0.8053972125053406,
0.9311637878417969,
0.9435573816299438,
-0.6742545366287231,
-0.15102078020572662,
0.36179912090301514,
-0.26335781812667847,
0.9028657674789429,
-0.9872235655784607,
-0.3912074863910675,
1.2896997928619385,
-0.3203587830066681,
-0.5499452352523804,
1.386497139930725,
0.8049209713935852,
-0.9684740304946899,
-0.1812267154455185,
-0.23862506449222565,
-0.9012432098388672,
-0.011895906180143356,
-1.698150634765625,
-0.08116976916790009,
0.39776909351348877,
-1.530131459236145,
-0.43769127130508423,
-0.1070089042186737,
1.2265706062316895,
-0.11260106414556503,
1.4690992832183838,
-0.41182512044906616,
-0.25912925601005554,
-0.31694239377975464,
-0.4577745795249939,
0.28023508191108704,
-0.2425825595855713,
-0.6048158407211304,
0.19735203683376312,
-0.7079436779022217,
0.3481546938419342,
1.3512276411056519,
0.3048703670501709,
0.04751904308795929,
0.5568476319313049,
1.0274242162704468,
0.2748476266860962,
-0.1318521946668625,
-0.8675361275672913,
-1.562993049621582,
2.123356580734253,
-1.4811606407165527,
1.9976893663406372,
0.7193963527679443,
-0.1251259297132492,
-1.7269140481948853,
-1.7860454320907593,
1.3447080850601196,
1.1892613172531128,
2.2582173347473145,
0.5972878932952881,
0.4071092903614044,
-0.8423492312431335,
-0.6563728451728821,
0.2879762053489685,
-1.0903966426849365,
-0.7569921016693115,
0.07044745981693268,
2.348886489868164,
1.7833731174468994,
-0.46319568157196045,
-0.19746194779872894,
-1.0582836866378784,
1.328635334968567,
-0.22185558080673218,
0.20799538493156433,
1.9707145690917969,
-0.34559276700019836,
-1.0507948398590088,
1.2176488637924194,
-2.3280587196350098,
0.1097785085439682,
1.9819364547729492,
0.27313175797462463,
0.05067736655473709,
-1.4677839279174805,
-0.6264257431030273,
-0.2720455825328827,
-0.31318899989128113,
-1.2917338609695435,
0.5441060662269592,
-0.34097546339035034,
-0.6631788611412048,
-1.4372438192367554,
0.16587471961975098,
-1.0610469579696655,
-1.6266895532608032,
0.17822962999343872,
1.804334282875061,
2.1027958393096924,
-0.7387335896492004,
1.6092278957366943,
-0.25764259696006775,
0.327359139919281,
1.2722508907318115,
1.1975871324539185,
3.162684440612793,
1.9003933668136597,
-1.2898764610290527,
0.6543895602226257,
-0.04497379809617996,
-0.47904732823371887,
1.1831767559051514,
-1.0636149644851685,
1.3066942691802979,
-0.13533641397953033,
-1.2504370212554932,
-1.2501230239868164,
0.8944403529167175,
0.37646493315696716,
0.07453907281160355,
-0.4983857274055481,
1.3078893423080444,
0.020289337262511253,
1.2940438985824585,
0.49595752358436584,
-0.403134822845459,
0.591850221157074,
-0.3425256311893463,
-0.47290265560150146,
1.582718014717102,
0.24040469527244568,
-1.4226717948913574,
-2.2889440059661865,
-0.2635757029056549,
-0.7462918162345886,
0.031086770817637444,
-0.6170368790626526,
-0.9671432375907898,
1.64513099193573,
0.4491778016090393,
-1.2473565340042114,
-0.30897241830825806,
-0.3275798261165619,
-0.6693242192268372,
2.7357535362243652,
-1.449831485748291,
-0.36693838238716125,
-0.9951607584953308,
-0.6894835829734802,
1.6196008920669556,
-1.349079966545105,
-0.1811310052871704,
-1.0154564380645752,
-0.6360906362533569,
-1.3483766317367554,
-0.5736013650894165,
-0.07852287590503693,
-1.00874924659729,
0.8394893407821655,
0.2087833732366562,
-1.189379334449768,
-0.2655578851699829,
-0.9164398908615112,
0.7960062026977539,
-0.17697913944721222,
0.3653506636619568,
1.8280757665634155,
0.3340506851673126,
-0.4727896749973297,
0.7595414519309998,
1.1167564392089844,
0.6800029873847961,
-0.6545788049697876,
0.14289723336696625,
-0.7023566365242004,
0.2646561563014984,
-1.205947995185852,
0.4163936376571655,
-2.9096550941467285,
0.6161254048347473,
-0.06389576941728592,
-0.0785609781742096,
-0.015082642436027527,
-1.2919965982437134,
1.0040684938430786,
2.5986952781677246,
-1.2234182357788086,
0.44395023584365845,
0.3093477487564087,
1.316107988357544,
-1.6749004125595093,
0.36728960275650024,
-0.3647981882095337,
2.183804512023926,
0.2333514392375946,
1.2593082189559937,
-0.37374407052993774,
-2.3488271236419678,
0.6334092617034912,
-1.2718970775604248,
-1.2168875932693481,
0.7564285397529602,
-0.815650224685669,
-0.03398606926202774,
-1.383325219154358,
-0.22107858955860138,
-0.8405677676200867,
-1.2584987878799438,
0.7953068017959595,
0.20365285873413086,
0.4784128665924072,
-0.551906168460846,
0.22063200175762177,
-2.189175844192505,
-1.2599809169769287,
-0.19554951786994934,
-0.9320456981658936,
0.3035668730735779,
-0.3271843194961548,
0.6949246525764465,
-0.2157975137233734,
0.015774954110383987,
0.2922825515270233,
1.4630619287490845,
3.4256527423858643,
0.27880755066871643,
0.47113239765167236,
-0.13380476832389832,
-0.8933208584785461,
1.4829657077789307,
0.8337796926498413,
-0.13045480847358704,
-0.5631745457649231,
-0.9204354882240295,
1.2452316284179688,
1.8681793212890625,
0.9409761428833008,
0.13443617522716522,
-0.740531861782074,
-0.6091630458831787,
-0.08703963458538055,
0.19689607620239258,
0.5175092220306396,
0.8509380221366882,
0.05652166157960892,
0.09723317623138428,
1.4476091861724854,
1.151582956314087,
-0.5090930461883545,
0.32605621218681335,
-0.7801355123519897,
-0.42139291763305664,
0.5134053230285645,
0.2903269827365875,
-0.047199755907058716,
0.2666744589805603,
-0.9604246020317078,
-0.18275639414787292,
-0.3487219512462616,
-0.9206418991088867,
-0.6819658279418945,
-0.46365079283714294,
-0.3504193127155304,
1.6385506391525269,
0.10963825136423111,
-0.4945063591003418,
-0.07197031378746033,
-0.7693249583244324,
-0.1909603327512741,
-1.0535117387771606,
0.13615521788597107,
-0.0587620809674263,
-0.11089871823787689,
-0.01635589823126793,
1.8477251529693604,
-0.8833802938461304,
-2.169034004211426,
0.25201916694641113,
0.23532286286354065,
-0.278717964887619,
0.09025564044713974,
1.5799143314361572,
0.4416287839412689,
1.437572717666626,
1.4019838571548462,
0.98508220911026,
-0.6911135315895081,
-1.3169878721237183,
0.756028413772583,
0.9431714415550232,
-1.4667948484420776,
0.9039528369903564,
0.059927426278591156,
-0.5151737928390503,
0.6169363260269165,
1.2812397480010986,
0.524943470954895,
-1.909114122390747,
0.8138501644134521,
-1.0137838125228882,
0.7231776118278503,
0.7595827579498291,
0.676123321056366,
0.27563977241516113,
0.8466830253601074,
-1.1616817712783813,
-1.1555407047271729,
-0.8273303508758545,
-0.5763366222381592,
1.9026509523391724,
-0.21432103216648102,
0.6061564683914185,
-0.12593841552734375,
-1.3258668184280396,
-0.055704303085803986,
0.6557065844535828,
0.35411033034324646,
-0.3336000442504883,
0.83885258436203,
-0.7019527554512024,
-1.1134867668151855,
-1.4004956483840942,
-0.38202086091041565,
-1.0424755811691284,
-0.9669449925422668,
1.097406268119812,
0.806222140789032,
0.14113035798072815,
1.839113473892212,
0.6398290991783142,
0.22038213908672333,
-2.646933078765869,
0.8410691022872925,
0.23100702464580536,
-0.0015584384091198444,
0.8610399961471558,
0.235948383808136,
1.0550415515899658,
0.028061451390385628,
0.4208022654056549,
-2.453613519668579,
2.261723756790161,
-0.2891671657562256,
0.7156952619552612,
-0.04737633466720581,
-0.1447293609380722,
1.1033356189727783,
0.5432518720626831,
0.5790274739265442,
-1.0468921661376953,
0.7429959774017334,
-0.5668456554412842,
1.2461423873901367,
0.9948042631149292,
-0.8511134386062622,
0.05615634471178055,
1.3633496761322021,
0.5588710308074951,
-0.6257970333099365,
-0.9213206171989441,
-0.9644678235054016,
0.9046855568885803,
1.7114500999450684,
0.014739993959665298,
-0.03735342249274254,
0.8992069363594055,
0.7185613512992859,
-1.2386407852172852,
0.08852434903383255,
-0.6317983865737915,
-0.7617630362510681,
1.6225266456604004,
2.074553966522217,
-0.12160810828208923,
-0.1856851726770401,
-0.7257989645004272,
-1.2826107740402222,
0.7749544978141785,
-0.006737757474184036,
0.07180435210466385,
0.6849600672721863,
-0.6728029251098633,
1.0954794883728027,
0.9633607864379883,
0.9022826552391052,
0.3967196047306061,
0.23491503298282623,
0.4032806158065796,
-0.2994975745677948,
-1.0558472871780396,
-0.2195718139410019,
-1.1656672954559326,
-2.528536796569824,
0.4986000955104828,
-0.2595905363559723,
-1.3589783906936646,
0.09156373143196106,
-0.9847739934921265,
0.9230747222900391,
-0.5825768113136292,
-1.0879042148590088,
-1.556240439414978,
0.13624036312103271,
-0.09998781234025955,
0.8303981423377991,
-1.5548523664474487,
-0.06695833802223206,
1.2554210424423218,
0.8611798882484436,
-0.6065077185630798,
1.063042163848877,
0.26422712206840515,
1.0160764455795288,
0.767490565776825,
-0.4711824655532837,
0.5375829935073853,
0.10066121816635132,
-1.4199565649032593,
0.5823274254798889,
1.139122724533081,
0.16386108100414276,
1.4883918762207031,
-0.501384437084198,
-0.05137857049703598,
0.3593268096446991,
-0.5358438491821289,
-0.514216959476471,
-0.6212539672851562,
0.7405972480773926,
0.004364369437098503,
-0.7777493000030518,
0.06783394515514374,
-0.13310393691062927,
-0.29841938614845276,
0.25604569911956787,
-1.5906023979187012,
-0.16681981086730957,
-0.36055758595466614,
-0.6474171280860901,
-1.2840789556503296,
-0.10984881967306137,
1.5252889394760132,
-0.7924874424934387,
-0.2101101130247116,
0.5176932215690613,
0.5168641209602356,
0.5263519883155823,
0.6012650728225708,
-0.6062158346176147,
-0.18340350687503815,
-0.2538203299045563,
-0.3551061153411865,
0.3100672662258148,
1.3104904890060425,
-0.2228253334760666,
-0.9609711766242981,
0.6914299726486206,
-0.34296715259552,
0.057214558124542236,
1.8814398050308228,
0.1865214705467224,
-0.8354775309562683,
0.23212283849716187,
-0.7302647829055786,
1.9860612154006958,
1.6755540370941162,
1.4150053262710571,
-0.0993705466389656,
-0.8798694014549255,
0.6064224243164062,
-0.19790668785572052,
-0.3761347830295563,
0.8578622937202454,
0.5142438411712646,
-0.22975093126296997,
-1.4526026248931885,
0.7270225286483765,
1.109684944152832,
-0.8655775189399719,
-0.7709448337554932,
0.058753274381160736,
-0.8320097327232361,
1.0326366424560547,
0.674250066280365,
0.41787293553352356,
0.24467164278030396,
1.7486958503723145,
0.7604640126228333,
-0.46593403816223145,
0.5024521946907043,
0.5034782886505127,
-0.14365072548389435,
-2.098381519317627,
-1.1081762313842773,
0.414020299911499,
-0.430156946182251,
-1.6117693185806274,
1.3636189699172974,
-1.1561853885650635,
-0.8877017498016357,
0.5131515264511108,
0.13700570166110992,
1.4296202659606934,
0.36078834533691406,
1.5704153776168823,
2.0249180793762207,
0.8752787709236145,
0.36704835295677185,
1.2758197784423828,
-0.22358408570289612,
-0.40774235129356384,
1.8443578481674194,
-0.35954853892326355,
0.4903349280357361,
1.167811393737793,
-0.36291104555130005,
-1.0930887460708618,
-0.7489749789237976,
-1.0796427726745605,
-0.6196293830871582,
1.1251060962677002,
0.0877232477068901,
-1.1254181861877441,
0.24795567989349365,
1.4910091161727905,
0.06921108812093735,
-0.2695125639438629,
0.5432730317115784,
0.4153209924697876,
-0.7694548964500427,
-0.00879568513482809,
-0.9773406982421875,
0.5156926512718201,
-0.2886873483657837,
-0.3909847140312195,
0.35520803928375244,
0.4879867136478424,
1.2590789794921875,
0.008439445868134499,
0.16865596175193787,
1.2699860334396362,
-1.4403910636901855,
1.333810567855835,
-0.7014668583869934,
0.2069166600704193,
-2.3498785495758057,
1.38797926902771,
-0.7913466691970825,
1.8880538940429688,
-2.650630235671997,
0.35902661085128784,
-0.6108897924423218,
-0.46579375863075256,
0.3878937065601349,
-0.45331263542175293,
0.06220056116580963,
-0.1766100376844406,
-1.2150473594665527,
-0.049425870180130005,
-0.732642650604248,
0.599577009677887,
1.1050994396209717,
1.309627652168274,
-1.1215471029281616,
-0.22734691202640533,
-1.7208220958709717,
-0.11566348373889923,
-0.6965405941009521,
0.24836820363998413,
-2.0026333332061768,
-0.1874740719795227,
-1.930687665939331,
-2.3542325496673584,
-1.2885208129882812,
-0.7813453078269958,
1.0474969148635864,
0.13081099092960358,
-0.9081853032112122,
1.2240008115768433,
-0.3811541199684143,
-1.8299510478973389,
1.1039605140686035,
-2.151613712310791
] |
https://github.com/huggingface/datasets/issues/4691 | Dataset Viewer issue for rajistics/indian_food_images | Hi, thanks for reporting. I triggered a refresh of the preview for this dataset, and it works now. I'm not sure what occurred.
<img width="1019" alt="Capture d’écran 2022-07-18 à 11 01 52" src="https://user-images.githubusercontent.com/1676121/179541327-f62ecd5e-a18a-4d91-b316-9e2ebde77a28.png">
| ### Link
https://huggingface.co/datasets/rajistics/indian_food_images/viewer/rajistics--indian_food_images/train
### Description
I have a train/test split in my dataset
<img width="410" alt="Screen Shot 2022-07-15 at 11 44 42 AM" src="https://user-images.githubusercontent.com/6808012/179293215-7b419ec3-3527-46f2-8dad-adbc5568cfa0.png">
t
The dataset viewer works for the test split (images of indian food), but does not show my train split. My guess is maybe there is some corrupt image file that is guessing this. But I have no idea.
The original dataset was pulled from here: https://www.kaggle.com/datasets/l33tc0d3r/indian-food-classification?resource=download-directory
### Owner
Yes | 629 | 33 | Dataset Viewer issue for rajistics/indian_food_images
### Link
https://huggingface.co/datasets/rajistics/indian_food_images/viewer/rajistics--indian_food_images/train
### Description
I have a train/test split in my dataset
<img width="410" alt="Screen Shot 2022-07-15 at 11 44 42 AM" src="https://user-images.githubusercontent.com/6808012/179293215-7b419ec3-3527-46f2-8dad-adbc5568cfa0.png">
t
The dataset viewer works for the test split (images of indian food), but does not show my train split. My guess is maybe there is some corrupt image file that is guessing this. But I have no idea.
The original dataset was pulled from here: https://www.kaggle.com/datasets/l33tc0d3r/indian-food-classification?resource=download-directory
### Owner
Yes
Hi, thanks for reporting. I triggered a refresh of the preview for this dataset, and it works now. I'm not sure what occurred.
<img width="1019" alt="Capture d’écran 2022-07-18 à 11 01 52" src="https://user-images.githubusercontent.com/1676121/179541327-f62ecd5e-a18a-4d91-b316-9e2ebde77a28.png">
| [
-1.1438264846801758,
-0.8683987855911255,
-0.7013146877288818,
1.4124494791030884,
-0.07457093149423599,
-1.247165560722351,
0.08403193950653076,
-1.0309621095657349,
1.5972192287445068,
-0.7958304286003113,
0.2810770869255066,
-1.646176815032959,
-0.029726438224315643,
-0.5057756900787354,
-0.6901597380638123,
-0.9565907716751099,
-0.41867268085479736,
-0.802556037902832,
1.0765372514724731,
2.5949954986572266,
1.262041687965393,
-1.3628582954406738,
2.7579052448272705,
0.6403169631958008,
-0.28210434317588806,
-0.9456497430801392,
0.576717734336853,
0.030178528279066086,
-1.2670077085494995,
-0.38666972517967224,
-0.9563937187194824,
-0.046598754823207855,
-0.5591680407524109,
-0.4735168218612671,
0.001276286318898201,
0.428223580121994,
-0.21486838161945343,
-0.34750863909721375,
-0.5197536945343018,
-0.7958211898803711,
0.45626264810562134,
-0.40376779437065125,
0.847255289554596,
-0.36094558238983154,
1.863690972328186,
-0.5598450899124146,
0.4284932017326355,
0.6442141532897949,
1.2481212615966797,
0.19809643924236298,
-0.007827025838196278,
0.26262861490249634,
0.3479531407356262,
-0.14765073359012604,
0.5100424289703369,
1.2519123554229736,
0.6460217833518982,
0.4923214316368103,
0.724815845489502,
-2.1664514541625977,
1.3674877882003784,
-0.8691961765289307,
0.20386554300785065,
1.4064654111862183,
-1.0053092241287231,
0.44741612672805786,
-1.897644281387329,
-0.06922256201505661,
0.43965306878089905,
-2.2932801246643066,
0.16001349687576294,
-1.2409945726394653,
-0.6045349836349487,
1.014566421508789,
0.24260176718235016,
-1.2818267345428467,
0.06707340478897095,
-0.48359230160713196,
1.0261248350143433,
0.5254413485527039,
1.2105859518051147,
-1.6230430603027344,
-0.0812850147485733,
-0.22241544723510742,
0.13680461049079895,
-1.4017744064331055,
-1.5876047611236572,
0.4996781349182129,
0.6740592122077942,
0.61806321144104,
-0.031303178519010544,
0.9535899758338928,
-0.946706235408783,
0.7257758975028992,
-0.9013119339942932,
-1.6707571744918823,
-1.4477760791778564,
-2.422161102294922,
-2.2951788902282715,
0.7721832990646362,
-0.4459765553474426,
-0.537231981754303,
2.0054688453674316,
-1.0614089965820312,
-1.700109839439392,
1.1023145914077759,
0.28291425108909607,
0.03413126990199089,
2.486924171447754,
0.29958245158195496,
-0.858391523361206,
0.444335013628006,
-0.7661107778549194,
0.7434486150741577,
-0.3879428207874298,
1.4039413928985596,
0.5034148097038269,
-0.9738315939903259,
1.6356918811798096,
-0.4031722843647003,
0.5288214087486267,
-0.7142844796180725,
-0.4903932511806488,
-0.7545554637908936,
0.28975892066955566,
1.896837830543518,
-0.30976203083992004,
1.589849829673767,
-0.30657538771629333,
-1.5306953191757202,
-1.533337950706482,
0.7831136584281921,
0.5459257364273071,
-0.8419670462608337,
0.13200117647647858,
-0.35903480648994446,
0.07055369019508362,
0.06267514824867249,
0.9905818700790405,
1.2573456764221191,
0.6739760041236877,
-0.2932148575782776,
-0.9791228771209717,
0.2286655604839325,
-0.06686747074127197,
-0.6610732078552246,
-1.7533583641052246,
-0.34187036752700806,
0.15590307116508484,
0.5988377928733826,
-1.3048256635665894,
1.74765145778656,
0.8235562443733215,
1.9635140895843506,
0.9755464196205139,
-0.412302166223526,
1.5370348691940308,
0.03616071492433548,
1.8244609832763672,
-0.43555599451065063,
0.679844319820404,
-0.2693216800689697,
-1.1425684690475464,
0.6836838126182556,
-0.3067505359649658,
-1.9713871479034424,
-0.7612625360488892,
-0.804868757724762,
-0.08666431158781052,
-0.8219178915023804,
0.9059984683990479,
-0.22600992023944855,
-1.4090467691421509,
0.25902894139289856,
-0.6615340113639832,
0.12081179767847061,
-1.4396167993545532,
0.2796756327152252,
0.7502240538597107,
-0.6090051531791687,
0.05545179545879364,
-0.2940252721309662,
-1.2668943405151367,
-0.49509239196777344,
0.2991827130317688,
1.9198471307754517,
-0.6360366344451904,
0.8703860640525818,
1.0154788494110107,
-0.6694551706314087,
0.008787012659013271,
0.38613763451576233,
-0.29493075609207153,
0.8974499106407166,
-1.0593925714492798,
-0.33101212978363037,
1.1308584213256836,
-0.2417706847190857,
-0.5985996723175049,
1.3560655117034912,
0.8678478002548218,
-0.9994925856590271,
-0.26489001512527466,
-0.15915904939174652,
-0.8121833205223083,
0.016491666436195374,
-1.534945011138916,
-0.1640750914812088,
0.29583773016929626,
-1.523356318473816,
-0.4353451728820801,
-0.20282262563705444,
1.3544187545776367,
-0.22699198126792908,
1.4701595306396484,
-0.3378731310367584,
-0.1775810569524765,
-0.4160304069519043,
-0.45763352513313293,
0.165859192609787,
-0.2125765085220337,
-0.6669839024543762,
0.3032739758491516,
-0.8316366672515869,
0.24400542676448822,
1.4913427829742432,
0.47655612230300903,
0.03745041415095329,
0.4856920838356018,
1.1180392503738403,
0.34642964601516724,
-0.12542051076889038,
-0.8315348625183105,
-1.589601755142212,
1.9910167455673218,
-1.4481924772262573,
1.98402738571167,
0.8738608956336975,
-0.058664217591285706,
-1.7258602380752563,
-1.8634377717971802,
1.3703646659851074,
1.1856646537780762,
2.4764211177825928,
0.5505208969116211,
0.44609612226486206,
-0.8097143769264221,
-0.7595424056053162,
0.3246730864048004,
-1.0360565185546875,
-0.7944245338439941,
0.15540848672389984,
2.313410997390747,
1.6828502416610718,
-0.45069077610969543,
-0.19689074158668518,
-0.9377175569534302,
1.344228982925415,
-0.13077180087566376,
0.20175552368164062,
1.9499847888946533,
-0.2761330008506775,
-1.0972188711166382,
1.1654893159866333,
-2.3281421661376953,
0.1956685334444046,
1.9675568342208862,
0.2798992991447449,
0.08437705785036087,
-1.4182053804397583,
-0.7375957369804382,
-0.2699950933456421,
-0.42397475242614746,
-1.2530919313430786,
0.5110008120536804,
-0.2139507234096527,
-0.8631165027618408,
-1.5046666860580444,
0.06857163459062576,
-1.1829721927642822,
-1.6680777072906494,
0.29072096943855286,
1.8800402879714966,
2.0537209510803223,
-0.8488165736198425,
1.4391961097717285,
-0.1428869515657425,
0.17053237557411194,
1.1306400299072266,
1.2725824117660522,
3.1685242652893066,
1.8428571224212646,
-1.2657837867736816,
0.7157630920410156,
-0.14799846708774567,
-0.4355168044567108,
1.1498042345046997,
-1.067214012145996,
1.1953442096710205,
-0.13827648758888245,
-1.2293331623077393,
-1.219617486000061,
0.9131657481193542,
0.5311211347579956,
-0.0562557578086853,
-0.4880792200565338,
1.215147852897644,
0.13904404640197754,
1.3743157386779785,
0.49562716484069824,
-0.2637118101119995,
0.6179891228675842,
-0.3689442276954651,
-0.5561292767524719,
1.6301921606063843,
0.11859392374753952,
-1.4744764566421509,
-2.296959161758423,
-0.2632576823234558,
-0.8627668023109436,
-0.08454073965549469,
-0.6864235997200012,
-1.050094485282898,
1.658514142036438,
0.5349655151367188,
-1.1600068807601929,
-0.2953561544418335,
-0.3580470383167267,
-0.6552198529243469,
2.664515495300293,
-1.337370753288269,
-0.16025985777378082,
-0.9583277106285095,
-0.5318743586540222,
1.5824270248413086,
-1.163351058959961,
-0.1321694403886795,
-0.9827606678009033,
-0.6088476777076721,
-1.37703537940979,
-0.5222734808921814,
-0.09426110982894897,
-0.8430456519126892,
0.7112693190574646,
0.1689978390932083,
-1.114423394203186,
-0.29971185326576233,
-0.9405238032341003,
0.9003143906593323,
-0.11913734674453735,
0.1766355037689209,
1.8084917068481445,
0.3915506899356842,
-0.40419286489486694,
0.6776960492134094,
1.1523211002349854,
0.5536817908287048,
-0.6320400238037109,
0.1269204169511795,
-0.6911248564720154,
0.31402692198753357,
-1.2966594696044922,
0.28226834535598755,
-2.920776844024658,
0.7245978713035583,
-0.09744739532470703,
-0.0613529309630394,
-0.07061893492937088,
-1.2804158926010132,
1.2111552953720093,
2.587343215942383,
-1.0803788900375366,
0.5475885272026062,
0.4325047433376312,
1.1295408010482788,
-1.712667465209961,
0.31941935420036316,
-0.48931363224983215,
2.093571424484253,
0.17504334449768066,
1.2463924884796143,
-0.5363428592681885,
-2.3228273391723633,
0.5911322236061096,
-1.1771399974822998,
-1.0401678085327148,
0.7964065670967102,
-0.9093481302261353,
0.1021011620759964,
-1.3007463216781616,
-0.22418265044689178,
-0.9458147287368774,
-1.2206792831420898,
0.6867914199829102,
0.10358216613531113,
0.523277223110199,
-0.5699335336685181,
0.3642122447490692,
-2.2161002159118652,
-1.3708962202072144,
-0.24737951159477234,
-0.9540835022926331,
0.41973650455474854,
-0.3290894329547882,
0.728188157081604,
-0.09878861904144287,
0.048797622323036194,
0.30003565549850464,
1.4133230447769165,
3.3110623359680176,
0.20565100014209747,
0.35560381412506104,
-0.07159022241830826,
-1.0142476558685303,
1.5623029470443726,
0.8368517756462097,
-0.09514307230710983,
-0.6172434091567993,
-1.0451732873916626,
1.3128125667572021,
1.9276227951049805,
1.1543411016464233,
0.09233250468969345,
-0.8858291506767273,
-0.7241492867469788,
-0.0044772871769964695,
0.19035911560058594,
0.4532301425933838,
0.9768175482749939,
-0.01447654701769352,
0.12566864490509033,
1.4649608135223389,
1.2740851640701294,
-0.45807087421417236,
0.39296796917915344,
-0.889245867729187,
-0.4106840193271637,
0.4287673532962799,
0.24947576224803925,
0.017196211963891983,
0.42142465710639954,
-1.0437852144241333,
-0.14957977831363678,
-0.2633363902568817,
-0.8894309401512146,
-0.7311466932296753,
-0.4004806876182556,
-0.29146555066108704,
1.699967861175537,
0.044326357543468475,
-0.5160549283027649,
0.10600662976503372,
-0.7877264618873596,
-0.149491548538208,
-1.1085706949234009,
0.21767108142375946,
-0.16305764019489288,
-0.026842668652534485,
-0.07562393695116043,
1.7741060256958008,
-0.9652683734893799,
-2.276636838912964,
0.2252751588821411,
0.2736240029335022,
-0.42447414994239807,
0.09577805548906326,
1.728645920753479,
0.49060213565826416,
1.387688398361206,
1.3360105752944946,
1.0788838863372803,
-0.7719741463661194,
-1.2723697423934937,
0.7119045853614807,
0.9697515964508057,
-1.3001054525375366,
0.8942983150482178,
-0.1525229960680008,
-0.5154489874839783,
0.560470461845398,
1.3375400304794312,
0.4010433554649353,
-1.9263790845870972,
0.8935208320617676,
-0.8711743950843811,
0.7209951877593994,
0.6618511080741882,
0.8038719892501831,
0.12175468355417252,
0.861723780632019,
-1.2841867208480835,
-1.121306300163269,
-0.700432538986206,
-0.5395603179931641,
1.893427848815918,
-0.19404301047325134,
0.5188844799995422,
-0.18741390109062195,
-1.2547707557678223,
0.02944398671388626,
0.694697916507721,
0.34001579880714417,
-0.3688073456287384,
0.8422655463218689,
-0.6325150728225708,
-1.1221176385879517,
-1.4482383728027344,
-0.433781236410141,
-0.9540990591049194,
-0.9468109607696533,
1.0702241659164429,
0.7307460308074951,
0.33474138379096985,
1.9351658821105957,
0.6678910255432129,
0.2637155055999756,
-2.7025108337402344,
0.8865066170692444,
0.3539747893810272,
0.05207234248518944,
0.9065428376197815,
0.22292737662792206,
1.1073782444000244,
-0.02076108381152153,
0.5367860198020935,
-2.347792863845825,
2.314619302749634,
-0.25367042422294617,
0.7839401364326477,
0.013539913110435009,
-0.1263682097196579,
1.0724151134490967,
0.6348836421966553,
0.6658020615577698,
-1.1580724716186523,
0.801036536693573,
-0.5225515365600586,
1.074201226234436,
0.90342777967453,
-0.9141996502876282,
0.17406316101551056,
1.2596532106399536,
0.5151432752609253,
-0.5103644728660583,
-0.9631321430206299,
-0.8511975407600403,
0.9194179177284241,
1.733622670173645,
-0.013553617522120476,
0.06334487348794937,
0.8444889187812805,
0.5776254534721375,
-1.2999522686004639,
-0.021611467003822327,
-0.670511782169342,
-0.7149460315704346,
1.7373043298721313,
2.1154491901397705,
-0.04916396737098694,
-0.2972090244293213,
-0.6572287082672119,
-1.2788962125778198,
0.824872612953186,
0.004202765412628651,
0.09981276839971542,
0.739081859588623,
-0.7067927122116089,
1.1366260051727295,
0.7539207339286804,
0.8913254737854004,
0.19589097797870636,
0.23044981062412262,
0.36814895272254944,
-0.29312846064567566,
-1.1120322942733765,
-0.24117359519004822,
-1.1445022821426392,
-2.5560100078582764,
0.40951767563819885,
-0.2115398347377777,
-1.3644728660583496,
0.09393433481454849,
-1.0108187198638916,
0.8559357523918152,
-0.5511522889137268,
-1.0836122035980225,
-1.4240885972976685,
0.22820810973644257,
-0.1581455022096634,
0.7940760850906372,
-1.6066886186599731,
-0.17566555738449097,
1.2604281902313232,
0.9352250099182129,
-0.5993090271949768,
0.9602707028388977,
0.21919697523117065,
0.984268844127655,
0.8680979013442993,
-0.3831074833869934,
0.4736998677253723,
0.08324535191059113,
-1.3983899354934692,
0.3644311726093292,
1.2285994291305542,
0.19489924609661102,
1.4188488721847534,
-0.5458181500434875,
0.09452209621667862,
0.4132402539253235,
-0.4012186527252197,
-0.5423583388328552,
-0.5831319689750671,
0.7103816866874695,
0.02189026027917862,
-1.032189965248108,
-0.006905458401888609,
-0.15663166344165802,
-0.14363256096839905,
0.29665321111679077,
-1.4845236539840698,
-0.19746316969394684,
-0.3501879870891571,
-0.5279023051261902,
-1.3182098865509033,
-0.06231148540973663,
1.3149381875991821,
-0.8841062188148499,
-0.15664616227149963,
0.5015159249305725,
0.3308494985103607,
0.5445916652679443,
0.5580729246139526,
-0.7452569007873535,
-0.331516832113266,
-0.2403322160243988,
-0.3431609272956848,
0.32179689407348633,
1.1027714014053345,
-0.16311338543891907,
-1.0061614513397217,
0.6123776435852051,
-0.25755444169044495,
0.13211409747600555,
1.9897072315216064,
0.06713254004716873,
-0.8049371838569641,
0.3169550895690918,
-0.7049509882926941,
1.909705400466919,
1.6481678485870361,
1.4182583093643188,
-0.14492453634738922,
-0.8627001643180847,
0.6170907020568848,
-0.2704428434371948,
-0.3987254202365875,
0.9627854824066162,
0.4198758602142334,
-0.1764625906944275,
-1.4817254543304443,
0.6210948824882507,
1.2633298635482788,
-0.9029222726821899,
-0.7745091319084167,
0.09581407159566879,
-0.8608040809631348,
1.1474629640579224,
0.6599079966545105,
0.32310396432876587,
0.24487359821796417,
1.759046196937561,
0.692270815372467,
-0.5512248277664185,
0.4520342946052551,
0.49768227338790894,
-0.21089227497577667,
-2.073401927947998,
-0.9712757468223572,
0.3176972568035126,
-0.43158018589019775,
-1.4690139293670654,
1.408984899520874,
-1.185988187789917,
-1.0066397190093994,
0.5172269940376282,
0.14304256439208984,
1.371742606163025,
0.3066907525062561,
1.7544734477996826,
2.0348880290985107,
0.8233919143676758,
0.2920559346675873,
1.1498558521270752,
-0.1450508087873459,
-0.40427979826927185,
1.7798330783843994,
-0.4764772355556488,
0.4671291708946228,
1.0248478651046753,
-0.4196365773677826,
-1.1485322713851929,
-0.8480828404426575,
-1.1420730352401733,
-0.6870376467704773,
1.145287036895752,
0.15688855946063995,
-1.1306270360946655,
0.21343541145324707,
1.5922598838806152,
0.010139190591871738,
-0.25829654932022095,
0.5918481945991516,
0.49437522888183594,
-0.6599016785621643,
-0.07731993496417999,
-0.9769629240036011,
0.5402865409851074,
-0.1848779320716858,
-0.36122027039527893,
0.19892063736915588,
0.6003659963607788,
1.286618709564209,
-0.002781878225505352,
0.1451893150806427,
1.2871869802474976,
-1.3382943868637085,
1.3903707265853882,
-0.770039975643158,
0.2915200889110565,
-2.401214838027954,
1.435964822769165,
-0.8042442798614502,
1.9070494174957275,
-2.602477550506592,
0.4447399079799652,
-0.5622788071632385,
-0.5471539497375488,
0.26770490407943726,
-0.404873788356781,
0.10689710825681686,
-0.08727575838565826,
-0.9962400794029236,
-0.15883107483386993,
-0.7689850926399231,
0.5396013259887695,
1.1698520183563232,
1.359070897102356,
-1.0159082412719727,
-0.25694042444229126,
-1.7321882247924805,
-0.11824931204319,
-0.675254762172699,
0.30630388855934143,
-1.9394954442977905,
-0.24838238954544067,
-1.9915403127670288,
-2.410839080810547,
-1.4178472757339478,
-0.8332633376121521,
1.0925236940383911,
0.1479259878396988,
-0.917192816734314,
1.1928101778030396,
-0.37966665625572205,
-1.733476996421814,
1.2206746339797974,
-2.1512811183929443
] |
https://github.com/huggingface/datasets/issues/4684 | How to assign new values to Dataset? | Hi! One option is use `map` with a function that overwrites the labels (`dset = dset.map(lamba _: {"label": 0}, features=dset.features`)). Or you can use the `remove_column` + `add_column` combination (`dset = dset.remove_columns("label").add_column("label", [0]*len(data)).cast(dset.features)`, but note that this approach creates an in-memory table for the added column instead of writing to disk, which could be problematic for large datasets. | 
Hi, if I want to change some values of the dataset, or add new columns to it, how can I do it?
For example, I want to change all the labels of the SST2 dataset to `0`:
```python
from datasets import load_dataset
data = load_dataset('glue','sst2')
data['train']['label'] = [0]*len(data)
```
I will get the error:
```
TypeError: 'Dataset' object does not support item assignment
``` | 630 | 58 | How to assign new values to Dataset?

Hi, if I want to change some values of the dataset, or add new columns to it, how can I do it?
For example, I want to change all the labels of the SST2 dataset to `0`:
```python
from datasets import load_dataset
data = load_dataset('glue','sst2')
data['train']['label'] = [0]*len(data)
```
I will get the error:
```
TypeError: 'Dataset' object does not support item assignment
```
Hi! One option is use `map` with a function that overwrites the labels (`dset = dset.map(lamba _: {"label": 0}, features=dset.features`)). Or you can use the `remove_column` + `add_column` combination (`dset = dset.remove_columns("label").add_column("label", [0]*len(data)).cast(dset.features)`, but note that this approach creates an in-memory table for the added column instead of writing to disk, which could be problematic for large datasets. | [
-1.255739450454712,
-0.8261049389839172,
-0.7829681634902954,
1.4833232164382935,
-0.22292391955852509,
-1.2300797700881958,
0.1894342601299286,
-1.0960084199905396,
1.7383595705032349,
-0.8033766150474548,
0.3806508183479309,
-1.6753531694412231,
0.09516915678977966,
-0.679511547088623,
-0.8009496331214905,
-0.8982288837432861,
-0.38907086849212646,
-0.7884066700935364,
1.0088540315628052,
2.502239227294922,
1.1600522994995117,
-1.435595989227295,
2.6910483837127686,
0.6475332379341125,
-0.14458096027374268,
-1.0470683574676514,
0.42955300211906433,
-0.02829280123114586,
-1.2015371322631836,
-0.38397017121315,
-0.9657831788063049,
-0.10035410523414612,
-0.6487115025520325,
-0.6255125999450684,
-0.006928313057869673,
0.3957146406173706,
-0.3465651869773865,
-0.47055765986442566,
-0.4122313857078552,
-0.7363494038581848,
0.542607843875885,
-0.3522424101829529,
0.9281553030014038,
-0.34593480825424194,
1.8051928281784058,
-0.5358300805091858,
0.4431706666946411,
0.6598767638206482,
1.401310682296753,
0.1928292214870453,
-0.09073469042778015,
0.41435477137565613,
0.29137760400772095,
0.03184438869357109,
0.5359318256378174,
1.1697419881820679,
0.6582107543945312,
0.47482433915138245,
0.7835729122161865,
-2.2575697898864746,
1.2763655185699463,
-1.1433039903640747,
0.2620544731616974,
1.309749960899353,
-0.9582468867301941,
0.3264404833316803,
-1.7564421892166138,
-0.10556652396917343,
0.5822246670722961,
-2.2800118923187256,
0.2024116963148117,
-1.328821063041687,
-0.46694374084472656,
1.0783296823501587,
0.3233529031276703,
-1.3411720991134644,
0.21214918792247772,
-0.27753591537475586,
1.016459345817566,
0.43427544832229614,
1.1529924869537354,
-1.7215675115585327,
-0.0025407648645341396,
-0.39174139499664307,
0.150462806224823,
-1.2429134845733643,
-1.4931505918502808,
0.5324565172195435,
0.6034414172172546,
0.5896023511886597,
-0.13078776001930237,
1.0394974946975708,
-0.9902717471122742,
0.8245209455490112,
-1.0731066465377808,
-1.685165286064148,
-1.3990017175674438,
-2.2018883228302,
-2.2669060230255127,
0.8039162755012512,
-0.4357541799545288,
-0.4826318919658661,
1.9770911931991577,
-0.9919074177742004,
-1.748915672302246,
1.11580491065979,
0.35029709339141846,
-0.08435479551553726,
2.3455159664154053,
0.12038750946521759,
-0.7677630186080933,
0.5136323571205139,
-0.768669605255127,
0.7734516263008118,
-0.2881554663181305,
1.4092354774475098,
0.5402933359146118,
-1.118325114250183,
1.6432733535766602,
-0.3963606357574463,
0.580103874206543,
-0.6149778962135315,
-0.4909132122993469,
-0.8359931111335754,
0.3178153336048126,
1.8887125253677368,
-0.2663246989250183,
1.5789748430252075,
-0.28235456347465515,
-1.496733546257019,
-1.5059409141540527,
0.9145929217338562,
0.4693364202976227,
-0.7974585294723511,
0.14760731160640717,
-0.296099990606308,
0.16938304901123047,
-0.08090797066688538,
1.1883164644241333,
1.1548106670379639,
0.7161902785301208,
-0.2687598764896393,
-0.8739116191864014,
0.2214021533727646,
-0.010042395442724228,
-0.747856616973877,
-1.7596529722213745,
-0.3943289816379547,
0.11882318556308746,
0.680776059627533,
-1.169556975364685,
1.7255667448043823,
0.7986127138137817,
1.8428748846054077,
1.0430444478988647,
-0.3425849974155426,
1.552340030670166,
0.01141731534153223,
1.8650580644607544,
-0.5049976110458374,
0.6914196610450745,
-0.37292686104774475,
-1.2215684652328491,
0.7732070684432983,
-0.2969236373901367,
-2.1178781986236572,
-0.7358573079109192,
-0.8055357336997986,
-0.1194654256105423,
-0.7737606763839722,
0.908281683921814,
-0.43151527643203735,
-1.4884943962097168,
0.3032378852367401,
-0.72386234998703,
0.17771413922309875,
-1.2462905645370483,
0.3490573763847351,
0.7608660459518433,
-0.628233790397644,
0.06340073049068451,
-0.3090822100639343,
-1.2409307956695557,
-0.45058107376098633,
0.19327421486377716,
1.898956298828125,
-0.7661646604537964,
0.9317590594291687,
1.0180972814559937,
-0.7040100693702698,
-0.05501179397106171,
0.34001556038856506,
-0.27506041526794434,
0.897817850112915,
-1.0220164060592651,
-0.5400245785713196,
1.2160860300064087,
-0.08320242911577225,
-0.5712745189666748,
1.465341567993164,
0.7918227314949036,
-0.972396731376648,
-0.1619011014699936,
-0.17586271464824677,
-0.8126330971717834,
0.047344207763671875,
-1.6280477046966553,
-0.08222362399101257,
0.45517632365226746,
-1.5493193864822388,
-0.505876898765564,
-0.11547037214040756,
1.2893600463867188,
-0.22999919950962067,
1.4136793613433838,
-0.42337074875831604,
-0.19565464556217194,
-0.34564024209976196,
-0.41538941860198975,
0.14966025948524475,
-0.12709416449069977,
-0.7010176777839661,
0.17332427203655243,
-0.6638174057006836,
0.4042178988456726,
1.3386598825454712,
0.3715101182460785,
0.06668639928102493,
0.5422083735466003,
1.1744256019592285,
0.3329131305217743,
0.004189264960587025,
-0.8481010794639587,
-1.6039217710494995,
2.066419839859009,
-1.3614873886108398,
2.05120849609375,
0.735569953918457,
-0.039873335510492325,
-1.6979984045028687,
-1.8133920431137085,
1.4681916236877441,
1.2132511138916016,
2.268773317337036,
0.6475075483322144,
0.4648876488208771,
-0.86788010597229,
-0.6525058150291443,
0.3005164861679077,
-0.952840268611908,
-0.7359362244606018,
0.11303084343671799,
2.3841652870178223,
1.8059791326522827,
-0.45788708329200745,
-0.22495584189891815,
-1.1036268472671509,
1.426878571510315,
-0.27747011184692383,
0.29195520281791687,
1.9387750625610352,
-0.31553012132644653,
-1.1632697582244873,
1.3106502294540405,
-2.3291940689086914,
0.13057531416416168,
2.0702555179595947,
0.28341931104660034,
0.01661660149693489,
-1.3378411531448364,
-0.5589848160743713,
-0.20415183901786804,
-0.463659405708313,
-1.313652753829956,
0.4362861216068268,
-0.2485118955373764,
-0.7143886685371399,
-1.3781094551086426,
0.14969201385974884,
-1.1074191331863403,
-1.596924901008606,
0.30821213126182556,
1.8149874210357666,
2.0004401206970215,
-0.6853207349777222,
1.59097158908844,
-0.2913500666618347,
0.35356688499450684,
1.2118797302246094,
1.2081711292266846,
3.1290769577026367,
1.8442412614822388,
-1.2584489583969116,
0.6715453863143921,
-0.1471429467201233,
-0.5212186574935913,
1.2348451614379883,
-1.180283546447754,
1.2472519874572754,
-0.0732196643948555,
-1.269579529762268,
-1.1757577657699585,
0.9118702411651611,
0.466267853975296,
0.04548509791493416,
-0.5397720336914062,
1.136162281036377,
0.010647072456777096,
1.2617452144622803,
0.49363332986831665,
-0.2890920639038086,
0.5722538828849792,
-0.3752596080303192,
-0.5544851422309875,
1.5644323825836182,
0.1471327394247055,
-1.342494010925293,
-2.356962203979492,
-0.17896181344985962,
-0.8285768628120422,
0.008409279398620129,
-0.6438122987747192,
-0.9750010967254639,
1.6903287172317505,
0.34782907366752625,
-1.2548645734786987,
-0.18775485455989838,
-0.36579272150993347,
-0.5478119254112244,
2.66666841506958,
-1.370836615562439,
-0.2346394658088684,
-1.0462429523468018,
-0.6673195362091064,
1.6723779439926147,
-1.0643616914749146,
-0.12664273381233215,
-0.9832984209060669,
-0.5640161037445068,
-1.3641918897628784,
-0.5660466551780701,
-0.05863729119300842,
-0.9115353226661682,
0.8261211514472961,
0.1970730870962143,
-1.1841400861740112,
-0.3508637249469757,
-0.8675014972686768,
0.8848703503608704,
-0.24796192348003387,
0.20685958862304688,
1.881476640701294,
0.42449241876602173,
-0.4248846769332886,
0.7318685054779053,
1.139427661895752,
0.6528035402297974,
-0.5501073002815247,
0.3072573244571686,
-0.6828563213348389,
0.2821541130542755,
-1.303087592124939,
0.24938899278640747,
-2.847979784011841,
0.6964457631111145,
-0.029191214591264725,
-0.049985986202955246,
-0.016833247616887093,
-1.3350818157196045,
1.0340547561645508,
2.602088451385498,
-1.1745439767837524,
0.4622098207473755,
0.30438125133514404,
1.2115252017974854,
-1.5917277336120605,
0.1970522254705429,
-0.436203271150589,
2.1540961265563965,
0.2203669548034668,
1.1980034112930298,
-0.4209156930446625,
-2.3300623893737793,
0.5557572245597839,
-1.2820030450820923,
-1.2268861532211304,
0.8087186813354492,
-0.8797870874404907,
0.12857086956501007,
-1.394771695137024,
-0.21241098642349243,
-0.9170823693275452,
-1.1340326070785522,
0.8039799928665161,
0.1441149115562439,
0.474825918674469,
-0.6296400427818298,
0.31695276498794556,
-2.1334660053253174,
-1.3814369440078735,
-0.18929284811019897,
-0.9621809720993042,
0.5390810370445251,
-0.26211613416671753,
0.6827016472816467,
-0.12449173629283905,
0.01940450444817543,
0.33046555519104004,
1.4825156927108765,
3.407228946685791,
0.23776574432849884,
0.3774115741252899,
-0.20094041526317596,
-0.9088417887687683,
1.4465018510818481,
0.9050396084785461,
-0.11215054988861084,
-0.5478515028953552,
-1.0339041948318481,
1.2480971813201904,
1.9109779596328735,
0.9751173853874207,
0.05814740061759949,
-0.8510341048240662,
-0.673758327960968,
-0.03774113953113556,
0.19036351144313812,
0.4589492976665497,
0.8236913084983826,
0.10436965525150299,
0.12530244886875153,
1.3200442790985107,
1.2274483442306519,
-0.4871925413608551,
0.41711074113845825,
-0.7914960980415344,
-0.44279032945632935,
0.5909237265586853,
0.2590022683143616,
-0.017721086740493774,
0.42444196343421936,
-1.0003652572631836,
-0.24033591151237488,
-0.40933582186698914,
-0.9482747316360474,
-0.7233812212944031,
-0.4648696184158325,
-0.3460278809070587,
1.6716352701187134,
0.03174910694360733,
-0.5688335299491882,
-0.05961114540696144,
-0.8085927963256836,
-0.1324061006307602,
-1.011999487876892,
0.21051937341690063,
-0.16379909217357635,
-0.1299632042646408,
-0.11581242084503174,
1.7026848793029785,
-0.8907862901687622,
-2.0687756538391113,
0.16281430423259735,
0.32314303517341614,
-0.3442659378051758,
0.22233699262142181,
1.614403247833252,
0.5315871834754944,
1.4375907182693481,
1.3945074081420898,
0.9638070464134216,
-0.635716438293457,
-1.264780879020691,
0.6364837288856506,
0.9869904518127441,
-1.3452585935592651,
0.8891300559043884,
0.03607674688100815,
-0.47770386934280396,
0.6185475587844849,
1.2388445138931274,
0.49473655223846436,
-2.006112813949585,
0.7911698818206787,
-0.9025391936302185,
0.7437788844108582,
0.6701233983039856,
0.6444214582443237,
0.23579968512058258,
0.92775958776474,
-1.2539881467819214,
-1.1225709915161133,
-0.7892184257507324,
-0.6389296650886536,
1.9049063920974731,
-0.22939100861549377,
0.6223152875900269,
-0.18224266171455383,
-1.3184312582015991,
-0.10734176635742188,
0.7122583985328674,
0.416826069355011,
-0.44210243225097656,
0.8488110899925232,
-0.6691642999649048,
-1.034767746925354,
-1.3745969533920288,
-0.4954279661178589,
-1.0350733995437622,
-0.9256720542907715,
1.0760022401809692,
0.8448355793952942,
0.29658132791519165,
1.8752326965332031,
0.648254930973053,
0.14234144985675812,
-2.525975465774536,
0.8564084768295288,
0.2567621171474457,
-0.09706633538007736,
0.8350180387496948,
0.35371309518814087,
1.0687305927276611,
-0.042376790195703506,
0.5637333989143372,
-2.315544843673706,
2.2998697757720947,
-0.16127628087997437,
0.684255063533783,
-0.021682724356651306,
-0.17912273108959198,
1.0582319498062134,
0.48107829689979553,
0.47015419602394104,
-1.0880264043807983,
0.6081178784370422,
-0.6874054670333862,
1.3041609525680542,
0.9812310338020325,
-0.843114972114563,
-0.026087574660778046,
1.3736214637756348,
0.4191735088825226,
-0.5073613524436951,
-0.9741047620773315,
-0.9976807236671448,
0.9361000061035156,
1.6991777420043945,
-0.08534279465675354,
-0.07974263280630112,
0.8920034170150757,
0.7578825354576111,
-1.3508795499801636,
0.14020144939422607,
-0.7359533905982971,
-0.7711248993873596,
1.7398334741592407,
2.0924174785614014,
-0.19779665768146515,
-0.2274496704339981,
-0.745315432548523,
-1.183921217918396,
0.7841114401817322,
0.06840133666992188,
0.07675886154174805,
0.7083420157432556,
-0.6794685125350952,
1.185236930847168,
0.9766325354576111,
0.8335785865783691,
0.24227699637413025,
0.29509517550468445,
0.3151625990867615,
-0.2821201980113983,
-1.1599020957946777,
-0.22001689672470093,
-1.112176775932312,
-2.663250684738159,
0.4248349964618683,
-0.21113179624080658,
-1.3301137685775757,
0.00019443687051534653,
-1.0107473134994507,
0.8868024349212646,
-0.5410017371177673,
-1.133690595626831,
-1.4836525917053223,
0.20942644774913788,
0.05331642925739288,
0.9526294469833374,
-1.6056747436523438,
-0.013165382668375969,
1.2113757133483887,
0.9666515588760376,
-0.6665869355201721,
0.9982054233551025,
0.2839008569717407,
1.0113067626953125,
0.9033693075180054,
-0.47077956795692444,
0.5247228145599365,
0.027420692145824432,
-1.3762624263763428,
0.5405640602111816,
1.136674404144287,
0.20737327635288239,
1.449823021888733,
-0.4735665023326874,
0.005966748110949993,
0.3926254212856293,
-0.5113037824630737,
-0.5171229243278503,
-0.7223453521728516,
0.6604949235916138,
0.03393417224287987,
-0.9157086610794067,
0.11162564903497696,
0.03594774380326271,
-0.25610774755477905,
0.15111224353313446,
-1.4990744590759277,
-0.11525944620370865,
-0.3335708975791931,
-0.6407964825630188,
-1.2803243398666382,
-0.1011393740773201,
1.33269464969635,
-0.7864739298820496,
-0.16766828298568726,
0.5103092789649963,
0.3196529448032379,
0.5069072842597961,
0.5517257452011108,
-0.6270707845687866,
-0.43995216488838196,
-0.2664507031440735,
-0.38113364577293396,
0.32694822549819946,
1.2864528894424438,
-0.1728416234254837,
-1.005519986152649,
0.6916825771331787,
-0.32060280442237854,
0.00011175032705068588,
1.8584065437316895,
0.09362894296646118,
-0.797075092792511,
0.27601534128189087,
-0.7008896470069885,
1.899587869644165,
1.7577570676803589,
1.3593482971191406,
-0.22787334024906158,
-0.9954110383987427,
0.6243337392807007,
-0.45817869901657104,
-0.37980836629867554,
0.8844588398933411,
0.3134518563747406,
-0.13394376635551453,
-1.4002931118011475,
0.7307446599006653,
1.3051531314849854,
-0.8548458814620972,
-0.838234007358551,
0.11092936247587204,
-0.8551705479621887,
1.054426908493042,
0.6244977116584778,
0.3466357886791229,
0.3197319805622101,
1.6221897602081299,
0.7343199849128723,
-0.3826090395450592,
0.5901840925216675,
0.5322274565696716,
-0.15456020832061768,
-2.116990566253662,
-1.2303330898284912,
0.3083926737308502,
-0.5105324983596802,
-1.680306077003479,
1.3560775518417358,
-1.2186979055404663,
-0.8743809461593628,
0.5857248306274414,
0.10118953138589859,
1.4366320371627808,
0.30600860714912415,
1.5586894750595093,
2.0228710174560547,
0.8551483154296875,
0.33957943320274353,
1.2752124071121216,
-0.14070777595043182,
-0.4325672686100006,
1.7622113227844238,
-0.47416725754737854,
0.4927908182144165,
1.0607070922851562,
-0.2507714331150055,
-1.119673252105713,
-0.7470587491989136,
-1.3283591270446777,
-0.7631571888923645,
1.1618120670318604,
0.09384512156248093,
-1.1709132194519043,
0.2344251275062561,
1.5895445346832275,
0.026726264506578445,
-0.3648764193058014,
0.6473159790039062,
0.3835712671279907,
-0.8207799196243286,
-0.05912596732378006,
-0.9269456267356873,
0.5236154794692993,
-0.21787278354167938,
-0.30712541937828064,
0.3366275727748871,
0.5058136582374573,
1.280348777770996,
-0.03153899312019348,
0.14887280762195587,
1.1453170776367188,
-1.4032466411590576,
1.4244991540908813,
-0.7495768666267395,
0.3021063804626465,
-2.41508412361145,
1.3640216588974,
-0.7963698506355286,
1.9340633153915405,
-2.6173346042633057,
0.5219746232032776,
-0.5594804883003235,
-0.38962191343307495,
0.3316182494163513,
-0.3794107437133789,
0.12123003602027893,
-0.045067377388477325,
-1.1573222875595093,
-0.1298626959323883,
-0.7837663292884827,
0.5104146599769592,
1.194003701210022,
1.3617091178894043,
-1.1619189977645874,
-0.28125956654548645,
-1.7214107513427734,
-0.09280483424663544,
-0.5504184365272522,
0.3036680519580841,
-2.0378990173339844,
-0.2190563827753067,
-1.981534481048584,
-2.4365015029907227,
-1.281558632850647,
-0.77886962890625,
1.1282302141189575,
0.0702463909983635,
-0.843502402305603,
1.15554940700531,
-0.3629384934902191,
-1.8066602945327759,
1.0614839792251587,
-2.1695315837860107
] |
https://github.com/huggingface/datasets/issues/4684 | How to assign new values to Dataset? | Hi! I tried your proposed solution, but it does not solve my problem unfortunately. I am working with a set of protein sequences that have been tokenized with ESM, but some sequences are longer than `max_length`, they have been truncated in the tokenization. So now I want to truncate my labels as well, but that does not work with a mapping (e.g. `dset.map` as you suggested). Specifically, what I did was the following:
```
def postprocess_tokenize(tokenized_data):
"""
adjust label lengths if they dont match.
"""
if len(tokenized_data['input_ids']) < len(tokenized_data['labels']):
new_labels = tokenized_data['labels'][:len(tokenized_data['input_ids'])]
tokenized_data["labels"] = new_labels
return tokenized_data
tokenized_data = tokenized_data.map(postprocess_tokenize, batched=True) # this does not adjust the labels...
```
Any tips on how to do this properly?
More generally, I am wondering why the DataCollator supports padding but does not support truncation? Seems odd to me.
Thanks in advance! | 
Hi, if I want to change some values of the dataset, or add new columns to it, how can I do it?
For example, I want to change all the labels of the SST2 dataset to `0`:
```python
from datasets import load_dataset
data = load_dataset('glue','sst2')
data['train']['label'] = [0]*len(data)
```
I will get the error:
```
TypeError: 'Dataset' object does not support item assignment
``` | 630 | 139 | How to assign new values to Dataset?

Hi, if I want to change some values of the dataset, or add new columns to it, how can I do it?
For example, I want to change all the labels of the SST2 dataset to `0`:
```python
from datasets import load_dataset
data = load_dataset('glue','sst2')
data['train']['label'] = [0]*len(data)
```
I will get the error:
```
TypeError: 'Dataset' object does not support item assignment
```
Hi! I tried your proposed solution, but it does not solve my problem unfortunately. I am working with a set of protein sequences that have been tokenized with ESM, but some sequences are longer than `max_length`, they have been truncated in the tokenization. So now I want to truncate my labels as well, but that does not work with a mapping (e.g. `dset.map` as you suggested). Specifically, what I did was the following:
```
def postprocess_tokenize(tokenized_data):
"""
adjust label lengths if they dont match.
"""
if len(tokenized_data['input_ids']) < len(tokenized_data['labels']):
new_labels = tokenized_data['labels'][:len(tokenized_data['input_ids'])]
tokenized_data["labels"] = new_labels
return tokenized_data
tokenized_data = tokenized_data.map(postprocess_tokenize, batched=True) # this does not adjust the labels...
```
Any tips on how to do this properly?
More generally, I am wondering why the DataCollator supports padding but does not support truncation? Seems odd to me.
Thanks in advance! | [
-1.2342942953109741,
-0.8921076655387878,
-0.7494319081306458,
1.4856642484664917,
-0.17806783318519592,
-1.1479134559631348,
0.13791429996490479,
-1.1395175457000732,
1.7158223390579224,
-0.7774028182029724,
0.23166689276695251,
-1.6522208452224731,
0.07360141724348068,
-0.6866977214813232,
-0.7617515325546265,
-0.8264913558959961,
-0.3689328134059906,
-0.7337567806243896,
1.0714688301086426,
2.48006272315979,
1.088093638420105,
-1.5287234783172607,
2.7445595264434814,
0.7060595154762268,
-0.1126471757888794,
-1.0540077686309814,
0.44946399331092834,
0.01452134270220995,
-1.1670893430709839,
-0.37953275442123413,
-0.9457453489303589,
0.008377897553145885,
-0.6445461511611938,
-0.5390536189079285,
-0.02229502983391285,
0.4065335690975189,
-0.2879282832145691,
-0.5025066137313843,
-0.5180283188819885,
-0.7473547458648682,
0.4610646963119507,
-0.3977849781513214,
0.9074555039405823,
-0.2889321446418762,
1.802565336227417,
-0.5394516587257385,
0.35202035307884216,
0.7363588809967041,
1.3543484210968018,
0.25268906354904175,
0.0028593139722943306,
0.307981014251709,
0.40294310450553894,
-0.03449251130223274,
0.5310600399971008,
1.148505449295044,
0.6873342394828796,
0.48461854457855225,
0.7863304018974304,
-2.2570931911468506,
1.2368260622024536,
-1.0822514295578003,
0.26646295189857483,
1.3104652166366577,
-0.9742684960365295,
0.3866499066352844,
-1.7739784717559814,
-0.02322133630514145,
0.6614569425582886,
-2.2222020626068115,
0.28809526562690735,
-1.3151144981384277,
-0.4759521186351776,
0.9996422529220581,
0.2519354820251465,
-1.202832818031311,
0.2061787098646164,
-0.3435082733631134,
1.1534621715545654,
0.41695958375930786,
1.1049131155014038,
-1.7078077793121338,
-0.006846833508461714,
-0.29979607462882996,
0.21897093951702118,
-1.2523359060287476,
-1.5178933143615723,
0.539617657661438,
0.6395469903945923,
0.537144124507904,
-0.15702708065509796,
1.0822993516921997,
-1.033107042312622,
0.7889915704727173,
-1.0749744176864624,
-1.6560088396072388,
-1.3591712713241577,
-2.207259178161621,
-2.2814347743988037,
0.7121871113777161,
-0.46463337540626526,
-0.49821189045906067,
1.9740939140319824,
-0.956452488899231,
-1.765970230102539,
1.1541391611099243,
0.36015838384628296,
0.010006868280470371,
2.3735406398773193,
0.142805814743042,
-0.7712185978889465,
0.47014111280441284,
-0.7844131588935852,
0.7720562815666199,
-0.32844045758247375,
1.4324830770492554,
0.4347696304321289,
-0.9626569151878357,
1.591058611869812,
-0.3072357475757599,
0.6519317030906677,
-0.6589329838752747,
-0.4805569052696228,
-0.8227546215057373,
0.29258421063423157,
1.9083937406539917,
-0.28293007612228394,
1.5505436658859253,
-0.40776562690734863,
-1.5919058322906494,
-1.5909382104873657,
0.9472710490226746,
0.45441877841949463,
-0.8273640871047974,
0.1270037442445755,
-0.4186643958091736,
0.19238898158073425,
-0.10876716673374176,
1.2092599868774414,
1.3096920251846313,
0.7450251579284668,
-0.23732227087020874,
-0.8567733764648438,
0.16344614326953888,
-0.06525897234678268,
-0.6686465740203857,
-1.8585906028747559,
-0.3359029293060303,
0.14040400087833405,
0.6841816306114197,
-1.2021377086639404,
1.6836167573928833,
0.7980150580406189,
1.829946517944336,
1.0222886800765991,
-0.4252082407474518,
1.5617976188659668,
0.0517512708902359,
1.8449780941009521,
-0.5525757074356079,
0.5854339599609375,
-0.3534739315509796,
-1.194995403289795,
0.807731568813324,
-0.24579235911369324,
-2.0383846759796143,
-0.7704816460609436,
-0.7559648752212524,
-0.16408678889274597,
-0.743498682975769,
0.8172467350959778,
-0.3623887002468109,
-1.485263705253601,
0.30497655272483826,
-0.6919935941696167,
0.24071104824543,
-1.1158244609832764,
0.3562178313732147,
0.7642302513122559,
-0.6120464205741882,
0.13241548836231232,
-0.3043023645877838,
-1.2550894021987915,
-0.5070849061012268,
0.3127826750278473,
1.8666504621505737,
-0.7582963109016418,
0.9113683700561523,
1.081933856010437,
-0.7363491058349609,
-0.02667277678847313,
0.2867254912853241,
-0.3207956850528717,
0.8612624406814575,
-1.1067382097244263,
-0.5404188632965088,
1.1647613048553467,
-0.18193933367729187,
-0.5363954901695251,
1.4620469808578491,
0.8157998323440552,
-0.9936826825141907,
-0.19966186583042145,
-0.15820838510990143,
-0.8030816912651062,
0.02451716735959053,
-1.6019924879074097,
-0.17003346979618073,
0.5009728074073792,
-1.5494881868362427,
-0.5007800459861755,
-0.23295992612838745,
1.2670717239379883,
-0.1744292676448822,
1.4081754684448242,
-0.40050432085990906,
-0.2053019106388092,
-0.2980766296386719,
-0.4120334982872009,
0.20168857276439667,
-0.2129271924495697,
-0.6489447355270386,
0.15078280866146088,
-0.8097894787788391,
0.385173499584198,
1.403084397315979,
0.34374773502349854,
-0.003155151382088661,
0.48059791326522827,
1.1532230377197266,
0.3859371542930603,
0.028860576450824738,
-0.8774702548980713,
-1.5239545106887817,
2.0089550018310547,
-1.4072061777114868,
2.054503917694092,
0.7103328704833984,
0.006079844199120998,
-1.6990737915039062,
-1.8462014198303223,
1.5329898595809937,
1.1457117795944214,
2.3518502712249756,
0.5756604671478271,
0.40281733870506287,
-0.8224055767059326,
-0.6617879271507263,
0.28760379552841187,
-1.0010005235671997,
-0.7173705101013184,
0.1630832850933075,
2.411404609680176,
1.7635457515716553,
-0.46695154905319214,
-0.21549969911575317,
-0.9994926452636719,
1.4122498035430908,
-0.25130537152290344,
0.309519499540329,
1.9639643430709839,
-0.2497866153717041,
-1.168159008026123,
1.220139503479004,
-2.4169764518737793,
0.1476687788963318,
2.0652647018432617,
0.24265138804912567,
0.10173702239990234,
-1.3561290502548218,
-0.5809500217437744,
-0.25760945677757263,
-0.4405261278152466,
-1.2619107961654663,
0.47577643394470215,
-0.2603471279144287,
-0.7746296525001526,
-1.447700023651123,
0.18557637929916382,
-1.1660388708114624,
-1.509144902229309,
0.2877163887023926,
1.8978739976882935,
2.112727403640747,
-0.7668139934539795,
1.6074151992797852,
-0.2591828405857086,
0.3151954114437103,
1.2202357053756714,
1.2122783660888672,
3.0971436500549316,
1.8243811130523682,
-1.2715586423873901,
0.6170910000801086,
-0.16696837544441223,
-0.542579710483551,
1.1668832302093506,
-1.168898344039917,
1.2550811767578125,
-0.11708252876996994,
-1.1724379062652588,
-1.2377257347106934,
0.9413024187088013,
0.5554511547088623,
0.020760636776685715,
-0.49968308210372925,
1.154586672782898,
0.04559435322880745,
1.2944903373718262,
0.5099936127662659,
-0.27288660407066345,
0.59517502784729,
-0.39505815505981445,
-0.5294409990310669,
1.5594967603683472,
0.12661615014076233,
-1.3977599143981934,
-2.29343581199646,
-0.22498676180839539,
-0.8105562329292297,
0.09230957180261612,
-0.6111950278282166,
-1.0000115633010864,
1.6588410139083862,
0.29474160075187683,
-1.274999976158142,
-0.2580411732196808,
-0.3813984990119934,
-0.560753583908081,
2.60968017578125,
-1.3011287450790405,
-0.3047258257865906,
-0.8988260626792908,
-0.6617759466171265,
1.58540940284729,
-1.100020408630371,
-0.2518922984600067,
-0.9680400490760803,
-0.5502260327339172,
-1.329669713973999,
-0.6117870211601257,
0.013644696213304996,
-0.8871990442276001,
0.8304197788238525,
0.2352095991373062,
-1.209533452987671,
-0.28121742606163025,
-0.8794474601745605,
0.9353839755058289,
-0.26931995153427124,
0.20527544617652893,
1.89495050907135,
0.3780500292778015,
-0.4040244221687317,
0.7923407554626465,
1.0883969068527222,
0.6393305063247681,
-0.5532342791557312,
0.2764807939529419,
-0.6701914072036743,
0.27681565284729004,
-1.284294605255127,
0.2875997722148895,
-2.900726318359375,
0.6710588335990906,
0.07278360426425934,
-0.020643390715122223,
0.0067443205043673515,
-1.3167251348495483,
1.0661064386367798,
2.6392931938171387,
-1.2035106420516968,
0.4634817838668823,
0.37490567564964294,
1.285466194152832,
-1.5845909118652344,
0.1898922622203827,
-0.37196195125579834,
2.135669231414795,
0.25280168652534485,
1.2064796686172485,
-0.42099910974502563,
-2.4156603813171387,
0.575524091720581,
-1.3095066547393799,
-1.1997612714767456,
0.7713537812232971,
-0.910979688167572,
0.10856032371520996,
-1.4430254697799683,
-0.2755303680896759,
-0.9419530630111694,
-1.1762040853500366,
0.6488376259803772,
0.13869737088680267,
0.43288156390190125,
-0.6433460712432861,
0.29983285069465637,
-2.116203784942627,
-1.3869438171386719,
-0.1821894496679306,
-1.0057175159454346,
0.5190141201019287,
-0.36153045296669006,
0.6993656754493713,
-0.153388112783432,
0.022454287856817245,
0.2658321261405945,
1.4771748781204224,
3.3735873699188232,
0.2940182685852051,
0.341582328081131,
-0.22829493880271912,
-0.8315759301185608,
1.4970799684524536,
0.9014948010444641,
-0.13505911827087402,
-0.5028621554374695,
-1.0510705709457397,
1.25337815284729,
1.9716837406158447,
0.9611464738845825,
0.021178770810365677,
-0.7650793790817261,
-0.7042567729949951,
-0.06996625661849976,
0.12552444636821747,
0.4286321997642517,
0.8419827222824097,
0.0831586942076683,
0.08916643261909485,
1.33680260181427,
1.1824462413787842,
-0.4977516233921051,
0.3610670566558838,
-0.8205733895301819,
-0.48286697268486023,
0.5565797686576843,
0.20650427043437958,
-0.029315553605556488,
0.3567272424697876,
-0.985061764717102,
-0.19001081585884094,
-0.460958331823349,
-0.9491995573043823,
-0.6747250556945801,
-0.4075932800769806,
-0.25442466139793396,
1.5661922693252563,
0.15921621024608612,
-0.5903584957122803,
-0.08545584231615067,
-0.7348119020462036,
-0.06363444030284882,
-1.0448572635650635,
0.17691388726234436,
-0.1860770583152771,
-0.13639384508132935,
-0.16139774024486542,
1.6970463991165161,
-0.849885880947113,
-2.041067361831665,
0.14580626785755157,
0.2871958911418915,
-0.2903684079647064,
0.21876640617847443,
1.6942070722579956,
0.4971839487552643,
1.4443368911743164,
1.3770767450332642,
0.9325349926948547,
-0.6119933128356934,
-1.2398172616958618,
0.7114458680152893,
1.0043340921401978,
-1.3321254253387451,
0.8203612565994263,
-0.020964108407497406,
-0.525191605091095,
0.6816325783729553,
1.3059560060501099,
0.46641817688941956,
-2.0542075634002686,
0.7621335983276367,
-1.011230707168579,
0.7701568603515625,
0.6923374533653259,
0.6484665274620056,
0.18909546732902527,
0.9224136471748352,
-1.1595063209533691,
-1.1242640018463135,
-0.7878459692001343,
-0.6417787075042725,
1.9464224576950073,
-0.29864194989204407,
0.5621928572654724,
-0.22021353244781494,
-1.295682668685913,
-0.13776783645153046,
0.7055538892745972,
0.3845392167568207,
-0.4711650013923645,
0.7759962677955627,
-0.7287213206291199,
-1.0161131620407104,
-1.276214361190796,
-0.4873698949813843,
-1.1152622699737549,
-0.9610417485237122,
1.0979218482971191,
0.7779451012611389,
0.31240877509117126,
1.828713059425354,
0.6689961552619934,
0.17632928490638733,
-2.521368980407715,
0.8645656704902649,
0.3342400789260864,
-0.13658040761947632,
0.8568686842918396,
0.3907957077026367,
1.0489968061447144,
-0.013967585749924183,
0.552078127861023,
-2.3677895069122314,
2.335287094116211,
-0.1791372299194336,
0.7383402585983276,
-0.013464937917888165,
-0.16613008081912994,
1.1081045866012573,
0.5320615172386169,
0.4933594763278961,
-1.0833030939102173,
0.6274994611740112,
-0.6160809993743896,
1.2355165481567383,
0.880430281162262,
-0.7962846159934998,
-0.03061700239777565,
1.3393884897232056,
0.4491623640060425,
-0.5745154023170471,
-0.9504157304763794,
-0.990917444229126,
0.9720486998558044,
1.753425121307373,
-0.05172184482216835,
-0.10249591618776321,
0.8998059630393982,
0.7194094061851501,
-1.3423148393630981,
0.0723106637597084,
-0.6850627660751343,
-0.7086727619171143,
1.6994603872299194,
2.0855753421783447,
-0.19741496443748474,
-0.21643313765525818,
-0.722240149974823,
-1.2406182289123535,
0.7257094383239746,
-0.022479809820652008,
0.0704258531332016,
0.6277122497558594,
-0.6328149437904358,
1.1028128862380981,
0.859653115272522,
0.8392957448959351,
0.1874789595603943,
0.2782432734966278,
0.4034443497657776,
-0.3592097759246826,
-1.160813570022583,
-0.24656470119953156,
-1.0782116651535034,
-2.4990553855895996,
0.3739030957221985,
-0.15255175530910492,
-1.3915820121765137,
0.025731731206178665,
-0.9932250380516052,
0.9690993428230286,
-0.5446344614028931,
-1.137972354888916,
-1.5289356708526611,
0.24010278284549713,
0.01688310131430626,
0.9637084007263184,
-1.566777229309082,
-0.03307946026325226,
1.2222455739974976,
0.9634876251220703,
-0.7394255995750427,
1.0481083393096924,
0.2934018671512604,
1.0392343997955322,
0.876620352268219,
-0.43616577982902527,
0.47845950722694397,
0.04824184998869896,
-1.3225868940353394,
0.4837401807308197,
1.1286979913711548,
0.13756966590881348,
1.4441925287246704,
-0.5013405680656433,
-0.06424994021654129,
0.39432480931282043,
-0.6059767603874207,
-0.5090386271476746,
-0.5650368332862854,
0.5675778388977051,
0.003779662773013115,
-0.8134329915046692,
0.0727720856666565,
0.03093496337532997,
-0.31845521926879883,
0.2276601344347,
-1.5727810859680176,
-0.19155989587306976,
-0.37452614307403564,
-0.5967255234718323,
-1.2974553108215332,
0.002712714485824108,
1.3904962539672852,
-0.6900814175605774,
-0.30246099829673767,
0.4935692250728607,
0.33909696340560913,
0.49384137988090515,
0.5654597282409668,
-0.6554042100906372,
-0.36680734157562256,
-0.24452269077301025,
-0.3803724944591522,
0.30894726514816284,
1.3044952154159546,
-0.18227893114089966,
-0.960193395614624,
0.7093202471733093,
-0.317353218793869,
-0.012160899117588997,
1.9113320112228394,
0.08909635245800018,
-0.7770512104034424,
0.21012842655181885,
-0.7676771879196167,
1.9454121589660645,
1.785897135734558,
1.4146018028259277,
-0.2667534351348877,
-0.9137740731239319,
0.6789454817771912,
-0.43873438239097595,
-0.44638508558273315,
0.922478973865509,
0.34869617223739624,
-0.14026862382888794,
-1.416182518005371,
0.7242680788040161,
1.3119611740112305,
-0.845385730266571,
-0.8350474834442139,
0.1513412445783615,
-0.789010226726532,
1.1224967241287231,
0.664912760257721,
0.3450411856174469,
0.293992817401886,
1.634270191192627,
0.7817773222923279,
-0.46310925483703613,
0.6382244825363159,
0.5751625299453735,
-0.11256949603557587,
-2.095499038696289,
-1.2628666162490845,
0.3144837021827698,
-0.45615190267562866,
-1.7291063070297241,
1.3941075801849365,
-1.178848147392273,
-0.9472817182540894,
0.6165355443954468,
0.07198312133550644,
1.3691524267196655,
0.35332924127578735,
1.5707238912582397,
2.082587242126465,
0.7903100848197937,
0.38979390263557434,
1.2163594961166382,
-0.176148921251297,
-0.5217790007591248,
1.9008255004882812,
-0.4867449998855591,
0.49964281916618347,
1.1171396970748901,
-0.27203086018562317,
-0.9825210571289062,
-0.7414878010749817,
-1.2865841388702393,
-0.7102214097976685,
1.142135739326477,
0.08938437700271606,
-1.2065134048461914,
0.2535657584667206,
1.6108355522155762,
0.015974588692188263,
-0.4130634367465973,
0.6783953309059143,
0.3933964669704437,
-0.8071663975715637,
-0.044275932013988495,
-0.9035181403160095,
0.5300806760787964,
-0.263173371553421,
-0.3327765166759491,
0.4456273317337036,
0.48548293113708496,
1.289189338684082,
-0.03824751079082489,
0.12200439721345901,
1.1125319004058838,
-1.4709073305130005,
1.4371016025543213,
-0.7252494096755981,
0.3293488025665283,
-2.415681838989258,
1.3909399509429932,
-0.7547525763511658,
1.984007716178894,
-2.6085877418518066,
0.4584275782108307,
-0.6644217371940613,
-0.4448833167552948,
0.26134324073791504,
-0.2703801393508911,
0.09622408449649811,
-0.10391431301832199,
-1.1754313707351685,
-0.08602885156869888,
-0.7190704941749573,
0.5787822604179382,
1.141247034072876,
1.3557134866714478,
-1.0975703001022339,
-0.25136059522628784,
-1.7116050720214844,
-0.137995645403862,
-0.6608360409736633,
0.3019348978996277,
-2.069725275039673,
-0.3011799454689026,
-1.9386059045791626,
-2.3790805339813232,
-1.2944962978363037,
-0.8199028968811035,
1.0997198820114136,
0.08012223988771439,
-0.8781009316444397,
1.2952638864517212,
-0.3736136555671692,
-1.853857159614563,
1.0839359760284424,
-2.0911715030670166
] |
https://github.com/huggingface/datasets/issues/4681 | IndexError when loading ImageFolder | Hi, thanks for reporting! If there are no examples in ImageFolder, the `label` column is of type `ClassLabel(names=[])`, which leads to an error in [this line](https://github.com/huggingface/datasets/blob/c15b391942764152f6060b59921b09cacc5f22a6/src/datasets/arrow_writer.py#L387) as `asdict(info)` calls `Features({..., "label": {'num_classes': 0, 'names': [], 'id': None, '_type': 'ClassLabel'}})`, which then calls `require_decoding` [here](https://github.com/huggingface/datasets/blob/c15b391942764152f6060b59921b09cacc5f22a6/src/datasets/features/features.py#L1516) on the dict value it does not expect.
I see two ways to fix this:
* custom `asdict` where `dict_factory` is also applied on the `dict` object itself besides dataclasses (the built-in implementation calls `type(dict_obj)` - this means we also need to fix `Features.to_dict` btw)
* implement `DatasetInfo.to_dict` (though adding `to_dict` to a data class is a bit weird IMO)
@lhoestq Which one of these approaches do you like more?
| ## Describe the bug
Loading an image dataset with `imagefolder` throws `IndexError: list index out of range` when the given folder contains a non-image file (like a csv).
## Steps to reproduce the bug
Put a csv file in a folder with images and load it:
```python
import datasets
datasets.load_dataset("imagefolder", data_dir=path/to/folder)
```
## Expected results
I would expect a better error message, like `Unsupported file` or even the dataset loader just ignoring every file that is not an image in that case.
## Actual results
Here is the whole traceback:
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-5.11.0-051100-generic-x86_64-with-glibc2.27
- Python version: 3.9.9
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 631 | 114 | IndexError when loading ImageFolder
## Describe the bug
Loading an image dataset with `imagefolder` throws `IndexError: list index out of range` when the given folder contains a non-image file (like a csv).
## Steps to reproduce the bug
Put a csv file in a folder with images and load it:
```python
import datasets
datasets.load_dataset("imagefolder", data_dir=path/to/folder)
```
## Expected results
I would expect a better error message, like `Unsupported file` or even the dataset loader just ignoring every file that is not an image in that case.
## Actual results
Here is the whole traceback:
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-5.11.0-051100-generic-x86_64-with-glibc2.27
- Python version: 3.9.9
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi, thanks for reporting! If there are no examples in ImageFolder, the `label` column is of type `ClassLabel(names=[])`, which leads to an error in [this line](https://github.com/huggingface/datasets/blob/c15b391942764152f6060b59921b09cacc5f22a6/src/datasets/arrow_writer.py#L387) as `asdict(info)` calls `Features({..., "label": {'num_classes': 0, 'names': [], 'id': None, '_type': 'ClassLabel'}})`, which then calls `require_decoding` [here](https://github.com/huggingface/datasets/blob/c15b391942764152f6060b59921b09cacc5f22a6/src/datasets/features/features.py#L1516) on the dict value it does not expect.
I see two ways to fix this:
* custom `asdict` where `dict_factory` is also applied on the `dict` object itself besides dataclasses (the built-in implementation calls `type(dict_obj)` - this means we also need to fix `Features.to_dict` btw)
* implement `DatasetInfo.to_dict` (though adding `to_dict` to a data class is a bit weird IMO)
@lhoestq Which one of these approaches do you like more?
| [
-1.142751693725586,
-0.8573399782180786,
-0.7658962607383728,
1.4356322288513184,
-0.12539008259773254,
-1.2809430360794067,
0.10456866770982742,
-1.0430936813354492,
1.6789517402648926,
-0.7749113440513611,
0.30190104246139526,
-1.7245625257492065,
-0.03805922716856003,
-0.5995675921440125,
-0.7561414241790771,
-0.8230553865432739,
-0.309573233127594,
-0.8117597103118896,
1.0538161993026733,
2.4990944862365723,
1.2330280542373657,
-1.4288681745529175,
2.724905252456665,
0.6799660325050354,
-0.2619234025478363,
-0.9873945713043213,
0.5124969482421875,
-0.01843642070889473,
-1.2982869148254395,
-0.365072101354599,
-0.9290924072265625,
-0.05468214303255081,
-0.5726487040519714,
-0.5352227091789246,
0.059880539774894714,
0.41315314173698425,
-0.25378167629241943,
-0.433037132024765,
-0.5425916910171509,
-0.7451720237731934,
0.4942335784435272,
-0.37869060039520264,
0.957194983959198,
-0.29998621344566345,
1.769784927368164,
-0.5873962640762329,
0.35495662689208984,
0.69356369972229,
1.355281114578247,
0.21777787804603577,
0.002366424538195133,
0.33242616057395935,
0.32185277342796326,
-0.03223453834652901,
0.5120258927345276,
1.2325665950775146,
0.6379823088645935,
0.4922085106372833,
0.7803201079368591,
-2.2687482833862305,
1.299459457397461,
-0.9613397717475891,
0.25471892952919006,
1.3484466075897217,
-0.9583255648612976,
0.36606284976005554,
-1.849526286125183,
-0.042037926614284515,
0.5209914445877075,
-2.239363431930542,
0.2454596906900406,
-1.325434923171997,
-0.5096749663352966,
0.9806256890296936,
0.2906556725502014,
-1.2141097784042358,
0.15582670271396637,
-0.37779995799064636,
0.9671571850776672,
0.39976766705513,
1.1465318202972412,
-1.7533541917800903,
-0.03943752124905586,
-0.29478371143341064,
0.1738448590040207,
-1.278785228729248,
-1.580788016319275,
0.5318545699119568,
0.7105093002319336,
0.6222602725028992,
-0.14513877034187317,
0.9855697751045227,
-0.9674696326255798,
0.7481699585914612,
-0.9525759220123291,
-1.7608546018600464,
-1.3509801626205444,
-2.2028119564056396,
-2.269510269165039,
0.7449976205825806,
-0.5372620820999146,
-0.445673406124115,
2.0634467601776123,
-1.0184298753738403,
-1.7967065572738647,
1.0621176958084106,
0.32360392808914185,
-0.02464669942855835,
2.3583199977874756,
0.27761003375053406,
-0.7635431885719299,
0.5136981010437012,
-0.7998871803283691,
0.7604736685752869,
-0.373414546251297,
1.3017293214797974,
0.4403505027294159,
-1.0662444829940796,
1.6137454509735107,
-0.46945133805274963,
0.5826377272605896,
-0.694036602973938,
-0.4422514736652374,
-0.7289124727249146,
0.30532634258270264,
1.9106043577194214,
-0.3383203446865082,
1.5036827325820923,
-0.3025560677051544,
-1.577559232711792,
-1.4993337392807007,
0.7967121601104736,
0.5325118899345398,
-0.7938198447227478,
0.1567901372909546,
-0.36268025636672974,
0.11445575952529907,
0.010536175221204758,
1.0711497068405151,
1.2354629039764404,
0.7491425275802612,
-0.2753622829914093,
-0.8928571343421936,
0.2716814875602722,
-0.05110630393028259,
-0.7433071732521057,
-1.8368028402328491,
-0.2925683557987213,
0.1972033679485321,
0.6442620158195496,
-1.2475451231002808,
1.8012120723724365,
0.866650402545929,
1.982657551765442,
0.9556388854980469,
-0.41322287917137146,
1.549006462097168,
0.05826844274997711,
1.8813782930374146,
-0.4275812804698944,
0.6896241307258606,
-0.4062899053096771,
-1.2057024240493774,
0.832319438457489,
-0.3734486997127533,
-2.021367311477661,
-0.639531135559082,
-0.8117135167121887,
-0.14934077858924866,
-0.7524083256721497,
0.90013587474823,
-0.27281370759010315,
-1.4403538703918457,
0.19842669367790222,
-0.7033974528312683,
0.1308002918958664,
-1.2879341840744019,
0.24108831584453583,
0.7403568625450134,
-0.6662949323654175,
0.0140702985227108,
-0.29396867752075195,
-1.2797441482543945,
-0.48510876297950745,
0.3104121685028076,
1.887921929359436,
-0.7256245017051697,
1.0004388093948364,
1.045040249824524,
-0.6902036666870117,
0.05455619841814041,
0.34294435381889343,
-0.37194183468818665,
0.852181613445282,
-1.113166332244873,
-0.4636605679988861,
1.1467432975769043,
-0.10480771958827972,
-0.6120353937149048,
1.4418246746063232,
0.7414030432701111,
-1.0671957731246948,
-0.26080235838890076,
-0.17548508942127228,
-0.7577506303787231,
-0.007530278526246548,
-1.635621428489685,
-0.09309233725070953,
0.3436124324798584,
-1.4822663068771362,
-0.449499249458313,
-0.20585770905017853,
1.3225189447402954,
-0.1378503441810608,
1.400470495223999,
-0.318064421415329,
-0.23301689326763153,
-0.4038115441799164,
-0.4388030767440796,
0.15914598107337952,
-0.2511851489543915,
-0.6497282981872559,
0.23338936269283295,
-0.786938488483429,
0.31127822399139404,
1.4646764993667603,
0.3126540780067444,
0.08291139453649521,
0.4935576021671295,
1.1427403688430786,
0.3720238506793976,
-0.04981794208288193,
-0.8914448618888855,
-1.5704745054244995,
2.0113017559051514,
-1.434166669845581,
2.0007517337799072,
0.8078122138977051,
0.014740794897079468,
-1.834654450416565,
-1.917826771736145,
1.4506257772445679,
1.1819218397140503,
2.4488401412963867,
0.5563386082649231,
0.469106525182724,
-0.8390109539031982,
-0.6344646215438843,
0.37618833780288696,
-0.9006908535957336,
-0.7195563316345215,
0.20318156480789185,
2.373173952102661,
1.7394074201583862,
-0.48093336820602417,
-0.19165442883968353,
-1.0166431665420532,
1.3943411111831665,
-0.18020398914813995,
0.22624582052230835,
2.0032765865325928,
-0.2974899709224701,
-1.0585800409317017,
1.3277755975723267,
-2.323301315307617,
0.17055991291999817,
1.9947434663772583,
0.21854408085346222,
0.05762719362974167,
-1.3575884103775024,
-0.6949877738952637,
-0.23563463985919952,
-0.4449115991592407,
-1.2312560081481934,
0.5083985924720764,
-0.22797207534313202,
-0.7932805418968201,
-1.4921512603759766,
0.12677763402462006,
-1.130378246307373,
-1.7554854154586792,
0.2839486300945282,
1.8622678518295288,
2.0365540981292725,
-0.8371615409851074,
1.4812211990356445,
-0.31999140977859497,
0.1524066925048828,
1.2608036994934082,
1.2272992134094238,
3.1046783924102783,
1.8327302932739258,
-1.292628526687622,
0.7037160396575928,
-0.11069222539663315,
-0.48460155725479126,
1.1732789278030396,
-1.1476483345031738,
1.2026653289794922,
-0.23050713539123535,
-1.250367522239685,
-1.2134267091751099,
0.8571906685829163,
0.45338353514671326,
0.07659593224525452,
-0.4949510991573334,
1.203658938407898,
0.10380038619041443,
1.319787621498108,
0.6130794286727905,
-0.35437944531440735,
0.6437963247299194,
-0.34828266501426697,
-0.4913782477378845,
1.6343227624893188,
0.17192180454730988,
-1.387136697769165,
-2.3674585819244385,
-0.2275816947221756,
-0.8678007125854492,
0.008337881416082382,
-0.6496270895004272,
-1.037953495979309,
1.6048108339309692,
0.4177880883216858,
-1.187062382698059,
-0.26151829957962036,
-0.3620186448097229,
-0.5038455128669739,
2.624138832092285,
-1.446577787399292,
-0.13387146592140198,
-0.9944645166397095,
-0.5534675121307373,
1.6017290353775024,
-1.1452999114990234,
-0.20907358825206757,
-1.0442919731140137,
-0.5583996772766113,
-1.3422479629516602,
-0.5517698526382446,
0.026653533801436424,
-0.8690574169158936,
0.7772336602210999,
0.20494797825813293,
-1.2051907777786255,
-0.3106461763381958,
-0.9250227212905884,
0.891524612903595,
-0.19016443192958832,
0.19750818610191345,
1.8555907011032104,
0.4504287838935852,
-0.3813907504081726,
0.7814881205558777,
1.1780980825424194,
0.6299449801445007,
-0.627877414226532,
0.2320432811975479,
-0.6884310841560364,
0.3002444803714752,
-1.3791861534118652,
0.202972412109375,
-2.857198715209961,
0.6783435344696045,
-0.030549118295311928,
-0.05817103385925293,
-0.024994688108563423,
-1.2917888164520264,
1.0234808921813965,
2.587867259979248,
-1.210490107536316,
0.4660851061344147,
0.3126685917377472,
1.2111079692840576,
-1.527971863746643,
0.2033769190311432,
-0.38338005542755127,
2.0933923721313477,
0.07636429369449615,
1.226395845413208,
-0.49016255140304565,
-2.294492721557617,
0.5641197562217712,
-1.2912907600402832,
-1.0535169839859009,
0.8460183143615723,
-0.8291606307029724,
0.1036800742149353,
-1.4268406629562378,
-0.19177031517028809,
-0.8512483239173889,
-1.2236894369125366,
0.7345701456069946,
0.0678987130522728,
0.4482228457927704,
-0.5785543918609619,
0.3850127160549164,
-2.1511828899383545,
-1.3893351554870605,
-0.1988389790058136,
-0.983283519744873,
0.47746536135673523,
-0.303325355052948,
0.7419255971908569,
-0.1657610535621643,
0.02796182967722416,
0.3681725263595581,
1.3831911087036133,
3.3613834381103516,
0.18406350910663605,
0.3209925591945648,
-0.20017652213573456,
-0.9653725028038025,
1.4560497999191284,
0.9497697353363037,
-0.15818646550178528,
-0.5269064903259277,
-1.0834112167358398,
1.2789157629013062,
1.985172152519226,
1.0568034648895264,
0.0027040792629122734,
-0.8549745678901672,
-0.781610906124115,
0.009085150435566902,
0.1441144198179245,
0.48101574182510376,
0.8817350268363953,
0.08429112285375595,
0.06058325618505478,
1.374356985092163,
1.1595910787582397,
-0.4422528147697449,
0.44405221939086914,
-0.8791778087615967,
-0.4788253605365753,
0.48801949620246887,
0.31037601828575134,
0.03417632728815079,
0.3994123935699463,
-1.0686804056167603,
-0.2963540256023407,
-0.3571787476539612,
-0.903474748134613,
-0.7024603486061096,
-0.4812094569206238,
-0.34763219952583313,
1.5797611474990845,
0.05187162756919861,
-0.4641866385936737,
0.02624758891761303,
-0.7473072409629822,
-0.08094780147075653,
-0.9769874215126038,
0.263372004032135,
-0.15498727560043335,
-0.030341478064656258,
-0.12376175820827484,
1.7278634309768677,
-0.9409998655319214,
-2.0382673740386963,
0.22434766590595245,
0.2836228907108307,
-0.3756803870201111,
0.145503431558609,
1.7556771039962769,
0.5943942070007324,
1.374059796333313,
1.3723102807998657,
1.0016944408416748,
-0.6565834283828735,
-1.259968876838684,
0.6560752391815186,
1.0154213905334473,
-1.3486131429672241,
0.8195211291313171,
-0.0766686275601387,
-0.5410468578338623,
0.6252440214157104,
1.3487275838851929,
0.4843659996986389,
-2.00643253326416,
0.7772719860076904,
-0.9442542791366577,
0.7846399545669556,
0.7495836019515991,
0.7863783836364746,
0.1510833203792572,
0.7987842559814453,
-1.2475742101669312,
-1.1086159944534302,
-0.7198821902275085,
-0.6864598393440247,
1.9199849367141724,
-0.26125621795654297,
0.5291334986686707,
-0.19124794006347656,
-1.300175666809082,
-0.11874249577522278,
0.696786642074585,
0.32147350907325745,
-0.46563780307769775,
0.804242730140686,
-0.5961801409721375,
-1.0358176231384277,
-1.3220809698104858,
-0.505808413028717,
-1.039397120475769,
-0.8987013697624207,
1.0244691371917725,
0.8536577224731445,
0.377917617559433,
1.8726146221160889,
0.676813542842865,
0.1534731239080429,
-2.5600881576538086,
0.9266626238822937,
0.31777939200401306,
-0.056156761944293976,
0.8968343734741211,
0.29672208428382874,
1.0722697973251343,
-0.07135046273469925,
0.5910056829452515,
-2.3006763458251953,
2.22633695602417,
-0.1827024668455124,
0.6940342783927917,
0.021639680489897728,
-0.1823241412639618,
1.0275256633758545,
0.48564809560775757,
0.5187926888465881,
-1.1140406131744385,
0.697658896446228,
-0.6368082761764526,
1.158111572265625,
0.8870311975479126,
-0.8927022218704224,
-0.017715366557240486,
1.3361568450927734,
0.39676210284233093,
-0.5059232711791992,
-0.9368394613265991,
-0.9863091707229614,
1.0067049264907837,
1.7715646028518677,
-0.053371772170066833,
0.057093195617198944,
0.858063280582428,
0.6680724620819092,
-1.337403416633606,
0.005327655002474785,
-0.6936072111129761,
-0.7331639528274536,
1.7467337846755981,
2.0070433616638184,
-0.11895836889743805,
-0.1572013944387436,
-0.7660189867019653,
-1.2482703924179077,
0.7888410687446594,
0.07162486016750336,
0.098122738301754,
0.6951050758361816,
-0.7029404640197754,
1.2416783571243286,
0.8094825148582458,
0.9174392819404602,
0.1738719344139099,
0.2619469165802002,
0.34166544675827026,
-0.3458002209663391,
-1.1905932426452637,
-0.3105131685733795,
-1.1055941581726074,
-2.476743459701538,
0.48429515957832336,
-0.15477587282657623,
-1.4353605508804321,
0.012568056583404541,
-0.9952775239944458,
0.8801400065422058,
-0.6165137887001038,
-1.0676743984222412,
-1.4742968082427979,
0.2871209383010864,
-0.16435149312019348,
0.8960514664649963,
-1.6181867122650146,
-0.09488122910261154,
1.2678481340408325,
1.0249829292297363,
-0.6596003174781799,
0.996509850025177,
0.22061865031719208,
1.0026805400848389,
0.904281497001648,
-0.3280399441719055,
0.5149387121200562,
0.1431216150522232,
-1.2791019678115845,
0.39664745330810547,
1.2079066038131714,
0.17927689850330353,
1.4923442602157593,
-0.5097049474716187,
0.02426965720951557,
0.4042114317417145,
-0.4282279312610626,
-0.5219132304191589,
-0.6279204487800598,
0.6166183948516846,
0.07185682654380798,
-0.9650290012359619,
0.03496410697698593,
-0.014132633805274963,
-0.19745564460754395,
0.2605155110359192,
-1.523034930229187,
-0.17201299965381622,
-0.3217623233795166,
-0.5617926120758057,
-1.243290901184082,
-0.0633571594953537,
1.390528917312622,
-0.7273290753364563,
-0.20778921246528625,
0.516930878162384,
0.3358267843723297,
0.4977235496044159,
0.625301718711853,
-0.7007058262825012,
-0.35893726348876953,
-0.2554945945739746,
-0.39485782384872437,
0.33335086703300476,
1.2738072872161865,
-0.08220725506544113,
-0.9814297556877136,
0.7026005387306213,
-0.4309126138687134,
0.0932089164853096,
1.9259634017944336,
0.06860128045082092,
-0.8391820788383484,
0.34410277009010315,
-0.7037058472633362,
1.856022596359253,
1.7345353364944458,
1.2935618162155151,
-0.059349142014980316,
-0.9868229627609253,
0.6639096140861511,
-0.32306256890296936,
-0.3562406599521637,
1.0253868103027344,
0.3433320224285126,
-0.2528892755508423,
-1.4094871282577515,
0.6523624062538147,
1.33049476146698,
-0.8643897771835327,
-0.7785226106643677,
0.08872778713703156,
-0.8213697075843811,
1.128556489944458,
0.7517141103744507,
0.34749993681907654,
0.2771247327327728,
1.6017686128616333,
0.7784850597381592,
-0.4490513205528259,
0.5579113960266113,
0.49350860714912415,
-0.17605356872081757,
-2.01493763923645,
-1.1353713274002075,
0.29958516359329224,
-0.42383912205696106,
-1.5813908576965332,
1.354831576347351,
-1.203993558883667,
-1.0075082778930664,
0.5542470812797546,
0.03367439657449722,
1.3878523111343384,
0.3232434391975403,
1.5797096490859985,
2.050340175628662,
0.9408929944038391,
0.2836194336414337,
1.233536720275879,
-0.20303893089294434,
-0.394422709941864,
1.794672966003418,
-0.4772767126560211,
0.48402443528175354,
1.0456583499908447,
-0.36072587966918945,
-1.1049948930740356,
-0.8220564723014832,
-1.2306715250015259,
-0.7612425684928894,
1.1866286993026733,
0.12020871043205261,
-1.172570824623108,
0.24049167335033417,
1.5934501886367798,
0.11746856570243835,
-0.29534053802490234,
0.7439119815826416,
0.4391274154186249,
-0.8458467125892639,
-0.09379773586988449,
-0.916968822479248,
0.5046879053115845,
-0.1599770486354828,
-0.3247604966163635,
0.3293382227420807,
0.48840999603271484,
1.2828090190887451,
0.048087768256664276,
0.084398053586483,
1.2135072946548462,
-1.3674989938735962,
1.5071673393249512,
-0.7323900461196899,
0.2641538083553314,
-2.415847063064575,
1.4153717756271362,
-0.7850034236907959,
1.9559775590896606,
-2.666217088699341,
0.43702933192253113,
-0.5644440650939941,
-0.4627841114997864,
0.26993614435195923,
-0.35480552911758423,
0.18372103571891785,
-0.12540750205516815,
-1.0886696577072144,
-0.16404955089092255,
-0.7645975947380066,
0.5682358145713806,
1.169512152671814,
1.389578104019165,
-1.0975865125656128,
-0.27996712923049927,
-1.7460579872131348,
-0.1838710904121399,
-0.6352006793022156,
0.3011828362941742,
-1.955895185470581,
-0.20267502963542938,
-1.9562129974365234,
-2.3676023483276367,
-1.3745076656341553,
-0.859653890132904,
1.1308984756469727,
0.14148177206516266,
-0.892411470413208,
1.1042603254318237,
-0.40217217803001404,
-1.8225370645523071,
1.1023691892623901,
-2.2126166820526123
] |
https://github.com/huggingface/datasets/issues/4681 | IndexError when loading ImageFolder | Small pref for the first option, it feels weird to know that `Features()` can be called with a dictionary of types defined as dictionaries instead of type instances. | ## Describe the bug
Loading an image dataset with `imagefolder` throws `IndexError: list index out of range` when the given folder contains a non-image file (like a csv).
## Steps to reproduce the bug
Put a csv file in a folder with images and load it:
```python
import datasets
datasets.load_dataset("imagefolder", data_dir=path/to/folder)
```
## Expected results
I would expect a better error message, like `Unsupported file` or even the dataset loader just ignoring every file that is not an image in that case.
## Actual results
Here is the whole traceback:
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-5.11.0-051100-generic-x86_64-with-glibc2.27
- Python version: 3.9.9
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 631 | 28 | IndexError when loading ImageFolder
## Describe the bug
Loading an image dataset with `imagefolder` throws `IndexError: list index out of range` when the given folder contains a non-image file (like a csv).
## Steps to reproduce the bug
Put a csv file in a folder with images and load it:
```python
import datasets
datasets.load_dataset("imagefolder", data_dir=path/to/folder)
```
## Expected results
I would expect a better error message, like `Unsupported file` or even the dataset loader just ignoring every file that is not an image in that case.
## Actual results
Here is the whole traceback:
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-5.11.0-051100-generic-x86_64-with-glibc2.27
- Python version: 3.9.9
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Small pref for the first option, it feels weird to know that `Features()` can be called with a dictionary of types defined as dictionaries instead of type instances. | [
-1.1276779174804688,
-0.8588508367538452,
-0.7748622894287109,
1.3846125602722168,
-0.12873610854148865,
-1.3256125450134277,
0.09373635053634644,
-1.0285742282867432,
1.7319947481155396,
-0.9155058860778809,
0.37095907330513,
-1.721145749092102,
0.04718685895204544,
-0.5632277727127075,
-0.777804970741272,
-0.8375419974327087,
-0.362641304731369,
-0.7091457843780518,
1.0785218477249146,
2.4771857261657715,
1.2031748294830322,
-1.4080533981323242,
2.6649982929229736,
0.7237902879714966,
-0.2243235856294632,
-0.9521206021308899,
0.45979005098342896,
0.029726626351475716,
-1.3868064880371094,
-0.30349668860435486,
-0.8941446542739868,
-0.1251022070646286,
-0.584578812122345,
-0.5960564017295837,
0.03459508717060089,
0.37311848998069763,
-0.3334957957267761,
-0.5106733441352844,
-0.521689236164093,
-0.7992259860038757,
0.4716309905052185,
-0.37985631823539734,
0.9310128688812256,
-0.37731391191482544,
1.8197747468948364,
-0.6285533905029297,
0.42945781350135803,
0.7618638873100281,
1.3496712446212769,
0.24433311820030212,
-0.05823449790477753,
0.32438740134239197,
0.34628579020500183,
-0.00030426308512687683,
0.487174391746521,
1.1102616786956787,
0.575534999370575,
0.5387687683105469,
0.7176716327667236,
-2.210371971130371,
1.3294810056686401,
-0.9901105165481567,
0.24396300315856934,
1.3566758632659912,
-1.0713430643081665,
0.33868923783302307,
-1.7685126066207886,
-0.12261520326137543,
0.4906166195869446,
-2.26354718208313,
0.24635812640190125,
-1.2941700220108032,
-0.5188109278678894,
1.0103503465652466,
0.33768847584724426,
-1.2096275091171265,
0.0423189252614975,
-0.36635103821754456,
0.8698127865791321,
0.4545442461967468,
1.140527606010437,
-1.743780255317688,
-0.05889386683702469,
-0.3643718659877777,
0.15945690870285034,
-1.353484034538269,
-1.4730229377746582,
0.5526098608970642,
0.7734948992729187,
0.5658937692642212,
-0.11586073786020279,
0.9697678089141846,
-0.9096498489379883,
0.7565246224403381,
-0.9663809537887573,
-1.7894145250320435,
-1.350197434425354,
-2.227692127227783,
-2.293302059173584,
0.7811655402183533,
-0.47963830828666687,
-0.5218262672424316,
2.1145646572113037,
-1.062270164489746,
-1.7797417640686035,
1.103241205215454,
0.22689007222652435,
-0.09833426773548126,
2.3798632621765137,
0.2707361876964569,
-0.7222341895103455,
0.5325469374656677,
-0.7860613465309143,
0.739037275314331,
-0.5199499130249023,
1.249150037765503,
0.393068790435791,
-1.1665596961975098,
1.59079909324646,
-0.4810894727706909,
0.6056410670280457,
-0.6986393332481384,
-0.39769506454467773,
-0.7649267911911011,
0.3249800205230713,
1.888248085975647,
-0.25404074788093567,
1.5392882823944092,
-0.28661492466926575,
-1.564229965209961,
-1.5677292346954346,
0.7957547903060913,
0.4592522382736206,
-0.7022801637649536,
0.2340749055147171,
-0.2578519880771637,
0.1329580545425415,
0.02978041209280491,
1.051700472831726,
1.2312285900115967,
0.7906267046928406,
-0.22247909009456635,
-0.858586847782135,
0.29745492339134216,
-0.020190345123410225,
-0.7366980910301208,
-1.7976131439208984,
-0.325675904750824,
0.1307610720396042,
0.5857411026954651,
-1.2099531888961792,
1.8480619192123413,
0.8615069389343262,
1.9764543771743774,
0.9409735798835754,
-0.34392207860946655,
1.5067429542541504,
0.04634667932987213,
1.9079217910766602,
-0.32344308495521545,
0.7550413608551025,
-0.38436371088027954,
-1.1672216653823853,
0.754628598690033,
-0.3931954801082611,
-2.0746753215789795,
-0.580447793006897,
-0.846799373626709,
-0.13422991335391998,
-0.7709173560142517,
0.9806495308876038,
-0.1592951864004135,
-1.3292348384857178,
0.296385794878006,
-0.712092399597168,
0.11378726363182068,
-1.3314884901046753,
0.3230169117450714,
0.7509818077087402,
-0.6510594487190247,
0.02873879484832287,
-0.3001445531845093,
-1.2741104364395142,
-0.48659297823905945,
0.27034446597099304,
1.8960210084915161,
-0.8275600075721741,
1.0432085990905762,
0.9803773760795593,
-0.6938085556030273,
-0.04092096537351608,
0.3970244228839874,
-0.41100558638572693,
0.8873063921928406,
-1.0478346347808838,
-0.3599555492401123,
1.2188773155212402,
-0.2048136591911316,
-0.5553262829780579,
1.4714230298995972,
0.6727726459503174,
-1.0191872119903564,
-0.13369497656822205,
-0.21352535486221313,
-0.7741571068763733,
-0.01056547462940216,
-1.6948163509368896,
0.00655924528837204,
0.3050737679004669,
-1.4427156448364258,
-0.4282199740409851,
-0.13610686361789703,
1.247220516204834,
-0.09030125290155411,
1.341498613357544,
-0.3993750512599945,
-0.27844133973121643,
-0.5233983397483826,
-0.38670477271080017,
0.13415515422821045,
-0.22431616485118866,
-0.6547960042953491,
0.26395517587661743,
-0.7213305234909058,
0.2829371690750122,
1.424420952796936,
0.32966431975364685,
0.1282680183649063,
0.5240725874900818,
1.066081166267395,
0.27165350317955017,
-0.1301754117012024,
-0.8295619487762451,
-1.5836875438690186,
2.0248239040374756,
-1.3764443397521973,
2.020364999771118,
0.7581650614738464,
0.00898800976574421,
-1.8670285940170288,
-1.9156848192214966,
1.4644758701324463,
1.1704033613204956,
2.429694175720215,
0.5903626084327698,
0.4391603171825409,
-0.8689806461334229,
-0.6535765528678894,
0.370314359664917,
-0.9771561026573181,
-0.7747234106063843,
0.15043416619300842,
2.3638360500335693,
1.682425856590271,
-0.4335189759731293,
-0.11612623929977417,
-1.1022295951843262,
1.371595859527588,
-0.12861023843288422,
0.1806015968322754,
1.9462400674819946,
-0.3424972593784332,
-1.0437685251235962,
1.239790916442871,
-2.327988862991333,
0.1193951815366745,
1.9549312591552734,
0.22201694548130035,
0.02863297425210476,
-1.3132274150848389,
-0.742475688457489,
-0.23529036343097687,
-0.3472276031970978,
-1.1730157136917114,
0.5100430250167847,
-0.22110098600387573,
-0.7165013551712036,
-1.4089022874832153,
0.180566668510437,
-1.0532664060592651,
-1.7414584159851074,
0.21483270823955536,
1.7757474184036255,
2.005880117416382,
-0.7902218103408813,
1.4373043775558472,
-0.27738258242607117,
0.1803772896528244,
1.2733306884765625,
1.1744604110717773,
3.16693377494812,
1.9130351543426514,
-1.2994744777679443,
0.6462119817733765,
-0.05030854046344757,
-0.43832725286483765,
1.2024918794631958,
-1.1683242321014404,
1.2709840536117554,
-0.1830185502767563,
-1.2267048358917236,
-1.2819360494613647,
0.8266310691833496,
0.4363371431827545,
0.09017060697078705,
-0.5118610858917236,
1.285091519355774,
0.0734967514872551,
1.388577938079834,
0.5682873725891113,
-0.2979375422000885,
0.6428214311599731,
-0.3789955675601959,
-0.4604121148586273,
1.653364658355713,
0.23115850985050201,
-1.3556606769561768,
-2.383202314376831,
-0.2094620168209076,
-0.8817976117134094,
0.013531772419810295,
-0.6473568677902222,
-0.9801396131515503,
1.6565227508544922,
0.46125301718711853,
-1.1850740909576416,
-0.27204084396362305,
-0.37980157136917114,
-0.6275691390037537,
2.7432126998901367,
-1.5612051486968994,
-0.2021288126707077,
-0.9865157008171082,
-0.5948264002799988,
1.6154191493988037,
-1.2367547750473022,
-0.24845361709594727,
-1.0708712339401245,
-0.5395728945732117,
-1.3173428773880005,
-0.560326337814331,
-0.06022493541240692,
-0.8714044094085693,
0.8345657587051392,
0.18565936386585236,
-1.2729899883270264,
-0.3245266079902649,
-0.9832387566566467,
0.7790364027023315,
-0.1232953891158104,
0.2970680594444275,
1.775515079498291,
0.46483108401298523,
-0.3693547546863556,
0.7337800860404968,
1.1735435724258423,
0.6664466857910156,
-0.6315852403640747,
0.35000795125961304,
-0.7106850147247314,
0.33281147480010986,
-1.2616792917251587,
0.24382838606834412,
-2.859945774078369,
0.629167377948761,
-0.08079937845468521,
-0.04607449471950531,
-0.09728081524372101,
-1.285254955291748,
1.0171197652816772,
2.5681560039520264,
-1.1799776554107666,
0.5038715600967407,
0.21260249614715576,
1.1960890293121338,
-1.5240955352783203,
0.22988758981227875,
-0.3999593257904053,
2.143289089202881,
0.14428400993347168,
1.1457475423812866,
-0.46685150265693665,
-2.256067991256714,
0.6218746304512024,
-1.3009417057037354,
-1.0836867094039917,
0.8924614787101746,
-0.752203106880188,
0.027449512854218483,
-1.3221608400344849,
-0.18380194902420044,
-0.7509421706199646,
-1.2364259958267212,
0.7311286926269531,
0.11682799458503723,
0.5829958915710449,
-0.5626725554466248,
0.32738596200942993,
-2.239279270172119,
-1.3781296014785767,
-0.2900770902633667,
-0.9534234404563904,
0.41822198033332825,
-0.2837386429309845,
0.8021280169487,
-0.24750813841819763,
0.026287728920578957,
0.4097343385219574,
1.3833458423614502,
3.33889102935791,
0.19732005894184113,
0.41888272762298584,
-0.19427835941314697,
-0.9052879214286804,
1.4586135149002075,
0.8946318030357361,
-0.2222500443458557,
-0.533883273601532,
-1.0994113683700562,
1.2555588483810425,
1.910919427871704,
1.0096129179000854,
-0.004604681860655546,
-0.8229713439941406,
-0.7362377047538757,
-0.0031079621985554695,
0.07571148127317429,
0.4767867922782898,
0.872995913028717,
0.11340486258268356,
0.09896691143512726,
1.4575997591018677,
1.22481107711792,
-0.4153728187084198,
0.4170345962047577,
-0.8040857911109924,
-0.4956200122833252,
0.5750683546066284,
0.3984315097332001,
0.03863386809825897,
0.2977765202522278,
-1.0229995250701904,
-0.2723846137523651,
-0.3078477382659912,
-0.9493573904037476,
-0.7098885178565979,
-0.5141544342041016,
-0.40054184198379517,
1.6710739135742188,
0.02223760075867176,
-0.47970619797706604,
-0.02769506350159645,
-0.7615007758140564,
0.02863466553390026,
-1.006386637687683,
0.3370720446109772,
-0.11545602232217789,
-0.06869959831237793,
-0.10892260074615479,
1.79965078830719,
-0.9938534498214722,
-2.064101219177246,
0.34005501866340637,
0.222360298037529,
-0.3945674002170563,
0.08621498942375183,
1.6590466499328613,
0.5704206824302673,
1.3988416194915771,
1.4622617959976196,
1.012990117073059,
-0.7385931611061096,
-1.2801743745803833,
0.6777886152267456,
0.97145015001297,
-1.4610259532928467,
0.7727935910224915,
0.039509132504463196,
-0.547683596611023,
0.583419144153595,
1.2856251001358032,
0.48774582147598267,
-1.964519739151001,
0.7162933349609375,
-0.9661804437637329,
0.8009843230247498,
0.7867283225059509,
0.7616897821426392,
0.15011024475097656,
0.7797377109527588,
-1.235164999961853,
-1.0911504030227661,
-0.7145717144012451,
-0.6663641929626465,
1.8962562084197998,
-0.2692800760269165,
0.531713604927063,
-0.1712743192911148,
-1.3647388219833374,
-0.030226368457078934,
0.6564995646476746,
0.2890733480453491,
-0.358201265335083,
0.7454698085784912,
-0.6115785837173462,
-1.1453073024749756,
-1.389772653579712,
-0.522210419178009,
-1.0771557092666626,
-0.8793257474899292,
1.0564736127853394,
0.8896094560623169,
0.3041050136089325,
1.825840950012207,
0.6635430455207825,
0.17068779468536377,
-2.6110472679138184,
0.9049032926559448,
0.25427886843681335,
0.022122789174318314,
0.8323972821235657,
0.2811392545700073,
1.0232863426208496,
-0.11407580226659775,
0.5489472150802612,
-2.372427463531494,
2.301774501800537,
-0.25997498631477356,
0.633782148361206,
0.020945554599165916,
-0.10002851486206055,
1.0357284545898438,
0.5739783644676208,
0.5068922638893127,
-1.0944724082946777,
0.7303944826126099,
-0.6720387935638428,
1.2260006666183472,
0.883868396282196,
-0.855104923248291,
-0.07072954624891281,
1.2625112533569336,
0.3929966390132904,
-0.489184707403183,
-0.9250780344009399,
-1.034115195274353,
1.007724642753601,
1.807141661643982,
-0.01063735131174326,
0.06144202500581741,
0.8576794266700745,
0.6810095906257629,
-1.3571723699569702,
0.04931043088436127,
-0.7401935458183289,
-0.7534148693084717,
1.6899755001068115,
1.9800745248794556,
-0.020974747836589813,
-0.1668662279844284,
-0.7891067266464233,
-1.254812240600586,
0.876613974571228,
0.12123073637485504,
0.058833152055740356,
0.6866542100906372,
-0.6587169766426086,
1.1765187978744507,
0.9134116768836975,
0.8979994654655457,
0.284529447555542,
0.1790260374546051,
0.2978914976119995,
-0.27432572841644287,
-1.2154226303100586,
-0.2297326922416687,
-1.06471848487854,
-2.468222141265869,
0.5092247128486633,
-0.2599559426307678,
-1.4627082347869873,
-0.0005590133368968964,
-1.026068091392517,
0.8354503512382507,
-0.5258668065071106,
-1.0694293975830078,
-1.5018881559371948,
0.19782553613185883,
-0.18623431026935577,
0.837007999420166,
-1.5363218784332275,
-0.059225812554359436,
1.2716095447540283,
0.9836439490318298,
-0.6604500412940979,
1.020891547203064,
0.18123188614845276,
1.0176353454589844,
0.9589457511901855,
-0.33503517508506775,
0.4875006377696991,
0.16332878172397614,
-1.2893643379211426,
0.3657219707965851,
1.2042354345321655,
0.15977275371551514,
1.5609030723571777,
-0.6122417449951172,
0.011844836175441742,
0.3579670190811157,
-0.3385882079601288,
-0.4767124354839325,
-0.7661793828010559,
0.6988639235496521,
0.0476054847240448,
-0.9088630080223083,
0.08216540515422821,
-0.0010144105181097984,
-0.1449442207813263,
0.2633701264858246,
-1.5369025468826294,
-0.0642947405576706,
-0.3092515468597412,
-0.6326938271522522,
-1.2222005128860474,
-0.10458346456289291,
1.4255672693252563,
-0.7313218712806702,
-0.07886632531881332,
0.4888400435447693,
0.2873573303222656,
0.5347509980201721,
0.6694747805595398,
-0.6499179601669312,
-0.3319299519062042,
-0.22555363178253174,
-0.3309658169746399,
0.3756401240825653,
1.2689098119735718,
-0.054070837795734406,
-0.9525196552276611,
0.7253162860870361,
-0.37005940079689026,
0.11422696709632874,
1.971107006072998,
0.13358673453330994,
-0.8946194052696228,
0.35898199677467346,
-0.7749074697494507,
1.8853764533996582,
1.7489553689956665,
1.305033802986145,
0.09275233000516891,
-1.091805338859558,
0.6599518060684204,
-0.3111399710178375,
-0.37898150086402893,
0.9876458048820496,
0.42614904046058655,
-0.2803005874156952,
-1.3150025606155396,
0.6551982164382935,
1.2623785734176636,
-0.8162378072738647,
-0.8761231899261475,
0.05351739376783371,
-0.8116422891616821,
1.0395742654800415,
0.7958175539970398,
0.4298710823059082,
0.30270442366600037,
1.6131542921066284,
0.794579267501831,
-0.49924010038375854,
0.5374776124954224,
0.4726909101009369,
-0.15615883469581604,
-1.9347493648529053,
-1.125759243965149,
0.379428505897522,
-0.47298532724380493,
-1.5613434314727783,
1.3546202182769775,
-1.248913288116455,
-0.9347005486488342,
0.6010003685951233,
0.08536165952682495,
1.4389057159423828,
0.31546130776405334,
1.5378754138946533,
2.006112813949585,
0.9458346366882324,
0.3016221821308136,
1.267325520515442,
-0.22876469790935516,
-0.43164440989494324,
1.730615258216858,
-0.4774784743785858,
0.44946548342704773,
1.04364013671875,
-0.3646984398365021,
-1.087854027748108,
-0.8461533784866333,
-1.1578172445297241,
-0.799342930316925,
1.1896772384643555,
0.1490096002817154,
-1.1648613214492798,
0.24228239059448242,
1.573568344116211,
0.06602595001459122,
-0.2768208384513855,
0.6449277400970459,
0.3783428966999054,
-0.8522318601608276,
-0.07138139009475708,
-0.9790902137756348,
0.5124374628067017,
-0.1774756908416748,
-0.3853740096092224,
0.30858707427978516,
0.4836108982563019,
1.2516123056411743,
0.06897235661745071,
0.09491357952356339,
1.3233072757720947,
-1.362950086593628,
1.434927225112915,
-0.7003188729286194,
0.23200324177742004,
-2.3361103534698486,
1.4506982564926147,
-0.8123579025268555,
1.920861840248108,
-2.6866142749786377,
0.4435213804244995,
-0.5741026997566223,
-0.4421088993549347,
0.3372158706188202,
-0.3799421787261963,
0.22095640003681183,
-0.16958755254745483,
-1.1721807718276978,
-0.1673973798751831,
-0.8370028734207153,
0.5165212750434875,
1.1642358303070068,
1.3461283445358276,
-1.0434819459915161,
-0.3614368140697479,
-1.6895533800125122,
-0.19033358991146088,
-0.5878210067749023,
0.3791821599006653,
-1.916183590888977,
-0.16052179038524628,
-1.948187232017517,
-2.400583267211914,
-1.4011855125427246,
-0.8508373498916626,
1.160875916481018,
0.08606154471635818,
-0.8799972534179688,
1.021143913269043,
-0.44029858708381653,
-1.8543611764907837,
1.132616400718689,
-2.222588539123535
] |
https://github.com/huggingface/datasets/issues/4680 | Dataset Viewer issue for codeparrot/xlcost-text-to-code | There seems to be an issue with the `C++-snippet-level` config:
```python
>>> from datasets import get_dataset_split_names
>>> get_dataset_split_names("codeparrot/xlcost-text-to-code", "C++-snippet-level")
Traceback (most recent call last):
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 352, in get_dataset_config_info
info.splits = {
TypeError: 'NoneType' object is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 404, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 359, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
```
I remove the dataset-viewer tag since it's not directly related.
Pinging @huggingface/datasets | ### Link
https://huggingface.co/datasets/codeparrot/xlcost-text-to-code
### Description
Error
```
Server Error
Status code: 400
Exception: TypeError
Message: 'NoneType' object is not iterable
```
Before I did a minor change in the dataset script (removing some comments), the viewer was working but not properely, it wasn't showing the dataset subsets. But the data can be loaded successfully.
Thanks!
### Owner
Yes | 632 | 115 | Dataset Viewer issue for codeparrot/xlcost-text-to-code
### Link
https://huggingface.co/datasets/codeparrot/xlcost-text-to-code
### Description
Error
```
Server Error
Status code: 400
Exception: TypeError
Message: 'NoneType' object is not iterable
```
Before I did a minor change in the dataset script (removing some comments), the viewer was working but not properely, it wasn't showing the dataset subsets. But the data can be loaded successfully.
Thanks!
### Owner
Yes
There seems to be an issue with the `C++-snippet-level` config:
```python
>>> from datasets import get_dataset_split_names
>>> get_dataset_split_names("codeparrot/xlcost-text-to-code", "C++-snippet-level")
Traceback (most recent call last):
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 352, in get_dataset_config_info
info.splits = {
TypeError: 'NoneType' object is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 404, in get_dataset_split_names
info = get_dataset_config_info(
File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 359, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
```
I remove the dataset-viewer tag since it's not directly related.
Pinging @huggingface/datasets | [
-1.1386678218841553,
-0.8725296258926392,
-0.7462572455406189,
1.4497184753417969,
-0.1598418802022934,
-1.2701271772384644,
0.08488444983959198,
-1.0739390850067139,
1.5507875680923462,
-0.7199318408966064,
0.23124711215496063,
-1.7493600845336914,
-0.10053171217441559,
-0.512368381023407,
-0.7380266785621643,
-0.81532222032547,
-0.3817836046218872,
-0.8591179847717285,
1.066295862197876,
2.484705686569214,
1.2851320505142212,
-1.369216799736023,
2.770219564437866,
0.6294847726821899,
-0.18853329122066498,
-1.0005346536636353,
0.6246628165245056,
-0.022532593458890915,
-1.3075062036514282,
-0.4409646987915039,
-0.9555791616439819,
-0.01866655796766281,
-0.5800089240074158,
-0.4290471374988556,
0.06280427426099777,
0.43795856833457947,
-0.23285815119743347,
-0.31678882241249084,
-0.6245895028114319,
-0.7954544425010681,
0.4983009397983551,
-0.3211331069469452,
0.9251514077186584,
-0.3365350067615509,
1.7588305473327637,
-0.5538365840911865,
0.40243905782699585,
0.6620849370956421,
1.2895516157150269,
0.2493792027235031,
0.023418063297867775,
0.31754961609840393,
0.37532082200050354,
-0.009861464612185955,
0.5005797147750854,
1.2467148303985596,
0.573066234588623,
0.5367453098297119,
0.6929028034210205,
-2.2399208545684814,
1.2797476053237915,
-0.8658795356750488,
0.25160032510757446,
1.3662636280059814,
-0.9138959646224976,
0.38032740354537964,
-1.8247665166854858,
-0.03383049741387367,
0.5697416067123413,
-2.2875688076019287,
0.3206632137298584,
-1.2246254682540894,
-0.5375730395317078,
0.9415720105171204,
0.3388620913028717,
-1.1979540586471558,
0.14706134796142578,
-0.49897509813308716,
1.0400216579437256,
0.4528576731681824,
1.1706950664520264,
-1.6637818813323975,
0.04219766706228256,
-0.224476158618927,
0.1373431384563446,
-1.2537809610366821,
-1.6966973543167114,
0.5459340810775757,
0.6745128035545349,
0.6534661650657654,
-0.20883287489414215,
1.0121195316314697,
-0.9936263561248779,
0.7990643978118896,
-0.9148731827735901,
-1.719860315322876,
-1.3802156448364258,
-2.342689275741577,
-2.25331449508667,
0.7705476880073547,
-0.5701009035110474,
-0.4812591075897217,
2.0534799098968506,
-1.0238518714904785,
-1.7974485158920288,
1.0881872177124023,
0.3491382300853729,
0.055158451199531555,
2.3866491317749023,
0.27319106459617615,
-0.7717679738998413,
0.4435795247554779,
-0.6999334692955017,
0.8316905498504639,
-0.3519647717475891,
1.3294247388839722,
0.5364276170730591,
-0.9703428745269775,
1.6643867492675781,
-0.4465841054916382,
0.5920842885971069,
-0.6662544012069702,
-0.4780779480934143,
-0.7471858263015747,
0.2497316151857376,
1.8848860263824463,
-0.37484702467918396,
1.586517095565796,
-0.22460414469242096,
-1.557313323020935,
-1.552959680557251,
0.8449262976646423,
0.4887934923171997,
-0.887210488319397,
0.11536328494548798,
-0.47588589787483215,
0.1543876677751541,
-0.052885785698890686,
1.061928391456604,
1.231840968132019,
0.7114977836608887,
-0.27028727531433105,
-0.8843446373939514,
0.20320890843868256,
-0.09034634381532669,
-0.6392863988876343,
-1.7806743383407593,
-0.3044567406177521,
0.20566515624523163,
0.675247311592102,
-1.193081259727478,
1.7806522846221924,
0.8595333695411682,
1.9712886810302734,
0.9489052891731262,
-0.42021796107292175,
1.5102685689926147,
0.015228768810629845,
1.8522769212722778,
-0.48842161893844604,
0.5502691268920898,
-0.3739093244075775,
-1.1862149238586426,
0.8369576930999756,
-0.3478321433067322,
-1.9368369579315186,
-0.722405731678009,
-0.8936660289764404,
-0.15912844240665436,
-0.7064746618270874,
0.9157347679138184,
-0.28137627243995667,
-1.430675745010376,
0.08781422674655914,
-0.6675825715065002,
0.14031057059764862,
-1.3660911321640015,
0.21783819794654846,
0.7007339000701904,
-0.7193622589111328,
-0.03195597976446152,
-0.31661996245384216,
-1.3269747495651245,
-0.5530622005462646,
0.34168896079063416,
1.9408085346221924,
-0.6745145916938782,
0.9670407772064209,
1.0037988424301147,
-0.7440782189369202,
0.05796191841363907,
0.25544825196266174,
-0.2788325846195221,
0.8602750897407532,
-1.1265631914138794,
-0.45451486110687256,
1.1766682863235474,
-0.25304505228996277,
-0.6968642473220825,
1.4371577501296997,
0.7519517540931702,
-1.11971914768219,
-0.2800084054470062,
-0.14557288587093353,
-0.8436669111251831,
-0.05192767083644867,
-1.5452250242233276,
-0.16130739450454712,
0.32537081837654114,
-1.4857499599456787,
-0.4398197531700134,
-0.19220124185085297,
1.322796106338501,
-0.14970283210277557,
1.4728137254714966,
-0.3200814723968506,
-0.1509265899658203,
-0.323375940322876,
-0.46047502756118774,
0.10704045742750168,
-0.22305114567279816,
-0.6427210569381714,
0.23665274679660797,
-0.8401264548301697,
0.2262893170118332,
1.499281644821167,
0.36310261487960815,
0.04853976517915726,
0.557567834854126,
1.139890432357788,
0.39128756523132324,
-0.03640816733241081,
-0.8609884977340698,
-1.5596516132354736,
1.9518141746520996,
-1.4631134271621704,
1.9052469730377197,
0.7638401985168457,
-0.08339069038629532,
-1.8409037590026855,
-1.8317757844924927,
1.343637228012085,
1.165590763092041,
2.374922275543213,
0.586472749710083,
0.3986216187477112,
-0.7523055672645569,
-0.6914852857589722,
0.3849051892757416,
-0.9309453368186951,
-0.6823639273643494,
0.1882948875427246,
2.3572170734405518,
1.8055181503295898,
-0.6065150499343872,
-0.23852494359016418,
-0.8919788599014282,
1.264150619506836,
-0.25040051341056824,
0.30048003792762756,
2.0192792415618896,
-0.27129435539245605,
-0.9718115329742432,
1.278182029724121,
-2.3174991607666016,
0.3253461718559265,
2.040290355682373,
0.2598448097705841,
0.15873591601848602,
-1.3444364070892334,
-0.6540362238883972,
-0.2277548462152481,
-0.4755943715572357,
-1.2538164854049683,
0.5788220167160034,
-0.3150300085544586,
-0.8284544348716736,
-1.4120960235595703,
0.08957627415657043,
-1.1062778234481812,
-1.7248010635375977,
0.32932794094085693,
1.9382805824279785,
2.104198455810547,
-0.767174482345581,
1.3697715997695923,
-0.3070426285266876,
0.0722193568944931,
1.2293087244033813,
1.3249309062957764,
3.1270980834960938,
1.8973743915557861,
-1.3292622566223145,
0.769584596157074,
-0.1589556187391281,
-0.4879050552845001,
1.2047877311706543,
-1.085835337638855,
1.12679123878479,
-0.289468377828598,
-1.2707527875900269,
-1.168619990348816,
1.0193912982940674,
0.5012115240097046,
-0.015721479430794716,
-0.5125356316566467,
1.2247776985168457,
0.09276153147220612,
1.2924103736877441,
0.6371598839759827,
-0.4606030583381653,
0.5694257020950317,
-0.3532567322254181,
-0.5505143404006958,
1.6142362356185913,
0.12805692851543427,
-1.5125492811203003,
-2.34567928314209,
-0.21431145071983337,
-0.9380930066108704,
-0.015487605705857277,
-0.6616156101226807,
-1.0736119747161865,
1.5659669637680054,
0.40231817960739136,
-1.186425805091858,
-0.3085677921772003,
-0.3702792823314667,
-0.5714162588119507,
2.5821127891540527,
-1.3293238878250122,
-0.19743381440639496,
-0.9295340776443481,
-0.5276161432266235,
1.6496679782867432,
-1.1970046758651733,
-0.25841888785362244,
-1.090968132019043,
-0.6439573168754578,
-1.362926721572876,
-0.5205920934677124,
0.06699195504188538,
-0.9058144092559814,
0.8530821204185486,
0.06939391046762466,
-1.2146000862121582,
-0.2421816736459732,
-0.8769943714141846,
0.982285737991333,
-0.1993986815214157,
0.1902143359184265,
1.8757599592208862,
0.4052797853946686,
-0.438524067401886,
0.6557610630989075,
1.2125685214996338,
0.6474331617355347,
-0.6275441646575928,
0.1049463227391243,
-0.6621631383895874,
0.350117564201355,
-1.3914402723312378,
0.16834188997745514,
-2.937887668609619,
0.7934552431106567,
-0.05006680637598038,
-0.038765519857406616,
-0.04497263580560684,
-1.3292218446731567,
1.003292441368103,
2.558410167694092,
-1.2152231931686401,
0.4857138693332672,
0.3776807188987732,
1.1124240159988403,
-1.6719388961791992,
0.1671205759048462,
-0.47943857312202454,
2.074655055999756,
0.07817347347736359,
1.199710488319397,
-0.44502878189086914,
-2.1931612491607666,
0.6198458075523376,
-1.2214652299880981,
-1.0263211727142334,
0.871358335018158,
-0.8564654588699341,
0.16409432888031006,
-1.4670926332473755,
-0.09421859681606293,
-0.9018536806106567,
-1.2528634071350098,
0.8520427942276001,
0.06329530477523804,
0.4908517301082611,
-0.592155933380127,
0.39819103479385376,
-2.1291160583496094,
-1.408029317855835,
-0.2342284917831421,
-0.926556408405304,
0.5049799084663391,
-0.48070046305656433,
0.6327364444732666,
-0.11130370944738388,
0.09681230783462524,
0.3663236200809479,
1.3837796449661255,
3.3898727893829346,
0.14139710366725922,
0.26827314496040344,
-0.14818818867206573,
-1.045836091041565,
1.493375539779663,
0.9092276096343994,
-0.18310336768627167,
-0.5622254014015198,
-1.0293340682983398,
1.2892420291900635,
1.9564557075500488,
1.103066086769104,
0.12937763333320618,
-0.9429837465286255,
-0.7346051335334778,
-0.003796982578933239,
0.13979068398475647,
0.5445118546485901,
0.9261786937713623,
-0.07325970381498337,
0.1674652099609375,
1.3164749145507812,
1.1484174728393555,
-0.30658191442489624,
0.4332279860973358,
-0.8722556233406067,
-0.45798102021217346,
0.5254367589950562,
0.2514110505580902,
0.10073162615299225,
0.4729025959968567,
-1.0778712034225464,
-0.29426801204681396,
-0.3115902543067932,
-0.8924790620803833,
-0.6797066330909729,
-0.4826527535915375,
-0.3479403853416443,
1.5652132034301758,
-0.015183710493147373,
-0.50676029920578,
0.01394723728299141,
-0.7403823733329773,
-0.13213881850242615,
-1.0903880596160889,
0.1570833921432495,
-0.10515031218528748,
-0.10098586231470108,
-0.18681874871253967,
1.6482658386230469,
-0.9771873354911804,
-2.1820461750030518,
0.23543664813041687,
0.387832909822464,
-0.37970247864723206,
0.1589517593383789,
1.7690141201019287,
0.4558089077472687,
1.3391770124435425,
1.332495927810669,
1.0038774013519287,
-0.6107413172721863,
-1.2404865026474,
0.65205979347229,
0.9495413303375244,
-1.3420562744140625,
0.9348575472831726,
-0.19767969846725464,
-0.5590694546699524,
0.6291245818138123,
1.3317865133285522,
0.4260381758213043,
-1.9463858604431152,
0.940116286277771,
-0.8908200860023499,
0.8153086304664612,
0.7163001894950867,
0.8827094435691833,
0.21710069477558136,
0.8673182129859924,
-1.2447845935821533,
-1.1416904926300049,
-0.7305522561073303,
-0.5871817469596863,
1.8784935474395752,
-0.16761329770088196,
0.4592154026031494,
-0.19244560599327087,
-1.2701079845428467,
-0.08233499526977539,
0.7856823801994324,
0.316980242729187,
-0.39844873547554016,
0.7791969776153564,
-0.6268749833106995,
-0.964684009552002,
-1.2693053483963013,
-0.41987940669059753,
-1.029256820678711,
-0.913202702999115,
1.0413273572921753,
0.7637723684310913,
0.41060179471969604,
1.8879166841506958,
0.6675666570663452,
0.16171032190322876,
-2.6355347633361816,
0.8846551775932312,
0.35205522179603577,
-0.05171554535627365,
0.8914453983306885,
0.25648510456085205,
1.1330523490905762,
-0.05007422715425491,
0.5968477725982666,
-2.325029134750366,
2.2176623344421387,
-0.2553822100162506,
0.6713876128196716,
0.0017762044444680214,
-0.19272993505001068,
1.0989758968353271,
0.6067491769790649,
0.5288788080215454,
-1.1154160499572754,
0.8162464499473572,
-0.5880814790725708,
1.0591551065444946,
0.9039473533630371,
-0.9192104935646057,
0.09337089955806732,
1.3916178941726685,
0.482289582490921,
-0.4918907582759857,
-0.9597728848457336,
-0.74836266040802,
1.0377585887908936,
1.7234965562820435,
-0.024999570101499557,
0.06481888145208359,
0.8586447834968567,
0.6588076949119568,
-1.255499005317688,
0.10474292933940887,
-0.6480282545089722,
-0.7148577570915222,
1.7200987339019775,
1.9964261054992676,
-0.1276158094406128,
-0.15285873413085938,
-0.7283153533935547,
-1.2971068620681763,
0.7828186750411987,
-0.008385149762034416,
-0.025020426139235497,
0.7772493362426758,
-0.6819806694984436,
1.1551328897476196,
0.5946020483970642,
0.9526388645172119,
0.03276415914297104,
0.2159402221441269,
0.39412540197372437,
-0.2824101150035858,
-1.1720902919769287,
-0.30715784430503845,
-1.0756336450576782,
-2.5308542251586914,
0.4380320906639099,
-0.22890695929527283,
-1.4247997999191284,
0.04035310447216034,
-1.03237783908844,
0.9617080092430115,
-0.5645492076873779,
-1.0768749713897705,
-1.4492853879928589,
0.29932790994644165,
-0.17627252638339996,
0.8381752967834473,
-1.6520334482192993,
-0.21634937822818756,
1.2543537616729736,
0.9366059303283691,
-0.6851398944854736,
0.9138942956924438,
0.2324199229478836,
1.004402756690979,
0.8635615110397339,
-0.3690555989742279,
0.5401078462600708,
0.04790070652961731,
-1.3406398296356201,
0.4139666259288788,
1.2251023054122925,
0.193769633769989,
1.4341681003570557,
-0.4214220345020294,
0.020816391333937645,
0.42510783672332764,
-0.5542207360267639,
-0.5124326348304749,
-0.5142858624458313,
0.6532067656517029,
0.04787079244852066,
-1.0283176898956299,
-0.08731009811162949,
-0.11633806675672531,
-0.2389291226863861,
0.2060735672712326,
-1.4872952699661255,
-0.15726366639137268,
-0.3245043456554413,
-0.43039411306381226,
-1.2900563478469849,
-0.001695306971669197,
1.341786503791809,
-0.7881477475166321,
-0.25026556849479675,
0.5182347297668457,
0.30796754360198975,
0.520261287689209,
0.5228787660598755,
-0.7566061019897461,
-0.27471596002578735,
-0.29586589336395264,
-0.3866739869117737,
0.25593820214271545,
1.2501518726348877,
-0.08911555260419846,
-1.008596420288086,
0.6904782652854919,
-0.30667781829833984,
0.09377462416887283,
1.9379764795303345,
0.05623273551464081,
-0.7391929626464844,
0.3812645375728607,
-0.624939501285553,
1.8115657567977905,
1.758504867553711,
1.325292944908142,
-0.13241244852542877,
-0.8645404577255249,
0.5607244372367859,
-0.3263864815235138,
-0.35854998230934143,
0.8586866855621338,
0.40844857692718506,
-0.17932452261447906,
-1.4661880731582642,
0.6811216473579407,
1.3025730848312378,
-0.8112155199050903,
-0.7320063710212708,
0.026587141677737236,
-0.8554394245147705,
1.1180728673934937,
0.6163011193275452,
0.38153210282325745,
0.25457096099853516,
1.5861550569534302,
0.6552160978317261,
-0.5038195848464966,
0.559939980506897,
0.5376484990119934,
-0.12755358219146729,
-2.0783402919769287,
-1.0622161626815796,
0.38321447372436523,
-0.3436104655265808,
-1.5689599514007568,
1.370179533958435,
-1.1977778673171997,
-1.0020700693130493,
0.5656677484512329,
0.16911111772060394,
1.4009935855865479,
0.38131555914878845,
1.6960558891296387,
2.1494688987731934,
0.9216674566268921,
0.35918983817100525,
1.2140767574310303,
-0.08889259397983551,
-0.35344183444976807,
1.8333203792572021,
-0.4276233911514282,
0.5157464146614075,
1.0184121131896973,
-0.4071879982948303,
-1.1240942478179932,
-0.7860456109046936,
-1.2655779123306274,
-0.6655588150024414,
1.1772397756576538,
0.07537448406219482,
-1.1211093664169312,
0.21582812070846558,
1.6650887727737427,
0.10109437257051468,
-0.23151171207427979,
0.7737826108932495,
0.40991494059562683,
-0.7769578695297241,
-0.048044681549072266,
-0.9302297234535217,
0.5021157264709473,
-0.16058731079101562,
-0.3176282048225403,
0.3069400489330292,
0.5508326888084412,
1.368647813796997,
0.012768244370818138,
0.11904345452785492,
1.1941207647323608,
-1.3983874320983887,
1.482753038406372,
-0.6888988018035889,
0.23308596014976501,
-2.4792823791503906,
1.420892357826233,
-0.8100343346595764,
1.9384005069732666,
-2.5590155124664307,
0.38639310002326965,
-0.6022425293922424,
-0.4724760949611664,
0.2682609260082245,
-0.40512657165527344,
0.10081271082162857,
-0.11290687322616577,
-1.0241169929504395,
-0.005530154798179865,
-0.7357770800590515,
0.609937846660614,
1.1922500133514404,
1.4286155700683594,
-1.0849210023880005,
-0.28451237082481384,
-1.825772762298584,
-0.169926255941391,
-0.7186538577079773,
0.3312586545944214,
-1.884782075881958,
-0.24983103573322296,
-2.010516881942749,
-2.375886917114258,
-1.3774973154067993,
-0.8434433341026306,
1.0837457180023193,
0.22036531567573547,
-0.9162648320198059,
1.142244577407837,
-0.39513084292411804,
-1.822827696800232,
1.1160601377487183,
-2.1931676864624023
] |
https://github.com/huggingface/datasets/issues/4680 | Dataset Viewer issue for codeparrot/xlcost-text-to-code | Thanks I found that this subset wasn't properly defined the the config, I fixed it. Now I can see the subsets but I get this error for the viewer
````
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
``` | ### Link
https://huggingface.co/datasets/codeparrot/xlcost-text-to-code
### Description
Error
```
Server Error
Status code: 400
Exception: TypeError
Message: 'NoneType' object is not iterable
```
Before I did a minor change in the dataset script (removing some comments), the viewer was working but not properely, it wasn't showing the dataset subsets. But the data can be loaded successfully.
Thanks!
### Owner
Yes | 632 | 42 | Dataset Viewer issue for codeparrot/xlcost-text-to-code
### Link
https://huggingface.co/datasets/codeparrot/xlcost-text-to-code
### Description
Error
```
Server Error
Status code: 400
Exception: TypeError
Message: 'NoneType' object is not iterable
```
Before I did a minor change in the dataset script (removing some comments), the viewer was working but not properely, it wasn't showing the dataset subsets. But the data can be loaded successfully.
Thanks!
### Owner
Yes
Thanks I found that this subset wasn't properly defined the the config, I fixed it. Now I can see the subsets but I get this error for the viewer
````
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
``` | [
-1.1614629030227661,
-0.8929657340049744,
-0.8993875980377197,
1.4829213619232178,
-0.1942601352930069,
-1.3333165645599365,
0.022977545857429504,
-1.1053860187530518,
1.624251127243042,
-0.7451790571212769,
0.3252630829811096,
-1.6796066761016846,
0.0004943972453474998,
-0.5843831896781921,
-0.7646830677986145,
-0.7921086549758911,
-0.3561188876628876,
-0.8390411138534546,
1.080235242843628,
2.561520576477051,
1.1500455141067505,
-1.4535938501358032,
2.756162405014038,
0.6161584258079529,
-0.14209267497062683,
-1.1304534673690796,
0.6201347708702087,
-0.07037076354026794,
-1.3275233507156372,
-0.4657609760761261,
-1.0195637941360474,
-0.07556143403053284,
-0.5256156921386719,
-0.552025318145752,
-0.003632869105786085,
0.3981899917125702,
-0.11454629898071289,
-0.501420259475708,
-0.4495585262775421,
-0.8802237510681152,
0.4287182092666626,
-0.31453779339790344,
0.9739468097686768,
-0.38463711738586426,
1.8090267181396484,
-0.4233855903148651,
0.3804589509963989,
0.6424930691719055,
1.4597070217132568,
0.21937696635723114,
-0.1084231585264206,
0.34759271144866943,
0.4647662341594696,
-0.02790168859064579,
0.41380587220191956,
1.08269464969635,
0.5367003679275513,
0.5254149436950684,
0.6494789719581604,
-2.221994161605835,
1.2576779127120972,
-0.9668929576873779,
0.3318658173084259,
1.458573341369629,
-1.090101718902588,
0.30503541231155396,
-1.8287266492843628,
0.0327412411570549,
0.3959026336669922,
-2.2208633422851562,
0.2987460196018219,
-1.1487720012664795,
-0.5152799487113953,
1.1075211763381958,
0.3592975437641144,
-1.4052386283874512,
0.041927821934223175,
-0.3304450213909149,
1.0287344455718994,
0.42500463128089905,
1.0776504278182983,
-1.6010541915893555,
0.1031225174665451,
-0.3998773694038391,
0.06417468190193176,
-1.2065833806991577,
-1.4939004182815552,
0.497529536485672,
0.7737875580787659,
0.7038952708244324,
-0.13411325216293335,
0.93840092420578,
-0.9453027844429016,
0.8445897102355957,
-0.8926796317100525,
-1.7662757635116577,
-1.410088300704956,
-2.260399103164673,
-2.25698184967041,
0.8402324318885803,
-0.5356469750404358,
-0.5138403177261353,
2.0611934661865234,
-0.9958524703979492,
-1.8485513925552368,
1.2327368259429932,
0.2452050894498825,
-0.02231377363204956,
2.3089537620544434,
0.33116045594215393,
-0.7136377692222595,
0.38791051506996155,
-0.7864744067192078,
0.8907228112220764,
-0.504265308380127,
1.4699658155441284,
0.5372984409332275,
-0.9350928664207458,
1.7318719625473022,
-0.37767696380615234,
0.5488433241844177,
-0.7249818444252014,
-0.5119157433509827,
-0.8212867975234985,
0.44621530175209045,
1.954861044883728,
-0.3453098237514496,
1.5397089719772339,
-0.3261016607284546,
-1.5122809410095215,
-1.5425713062286377,
0.8810650706291199,
0.5424425601959229,
-0.8296734690666199,
0.2731192111968994,
-0.2998077869415283,
0.041918713599443436,
-0.12245805561542511,
1.0010089874267578,
1.2214794158935547,
0.6761310696601868,
-0.2563706040382385,
-0.9637370109558105,
0.29731494188308716,
0.059965211898088455,
-0.727881669998169,
-1.7172191143035889,
-0.40957215428352356,
0.02541608363389969,
0.6515989303588867,
-1.1398361921310425,
1.7230956554412842,
0.8218704462051392,
1.9724787473678589,
0.988032341003418,
-0.31629353761672974,
1.4793647527694702,
0.073752760887146,
1.901031494140625,
-0.40067732334136963,
0.5837054252624512,
-0.31357815861701965,
-1.2035186290740967,
0.8230019807815552,
-0.40829282999038696,
-2.0011544227600098,
-0.6895515322685242,
-1.0352543592453003,
-0.15092310309410095,
-0.6674433946609497,
0.9847937226295471,
-0.3109552562236786,
-1.4098831415176392,
0.15728998184204102,
-0.6870428323745728,
0.1582426130771637,
-1.4069124460220337,
0.27376678586006165,
0.7212231755256653,
-0.7012588977813721,
0.08884033560752869,
-0.3627728223800659,
-1.2694222927093506,
-0.4965265393257141,
0.31671229004859924,
1.94716477394104,
-0.8618713021278381,
0.9654265642166138,
0.9904609322547913,
-0.6591795086860657,
-0.10036462545394897,
0.40456560254096985,
-0.26489725708961487,
0.927405834197998,
-1.1201411485671997,
-0.47581639885902405,
1.2132567167282104,
-0.19327005743980408,
-0.565057635307312,
1.4461950063705444,
0.81314617395401,
-1.0905331373214722,
-0.09983380138874054,
-0.15883199870586395,
-0.8414321541786194,
-0.010309376753866673,
-1.729522705078125,
-0.11345642805099487,
0.25065159797668457,
-1.458465576171875,
-0.5704588294029236,
-0.1544027477502823,
1.306699275970459,
-0.07359807193279266,
1.4070326089859009,
-0.35253578424453735,
-0.23722688853740692,
-0.40398871898651123,
-0.4122122526168823,
0.15899397432804108,
-0.24546289443969727,
-0.6569361090660095,
0.2686787247657776,
-0.6946761012077332,
0.3072817623615265,
1.3658145666122437,
0.30748051404953003,
0.10121506452560425,
0.6396081447601318,
1.1380012035369873,
0.31208065152168274,
0.02348531037569046,
-0.9669835567474365,
-1.5291954278945923,
2.039119005203247,
-1.5248686075210571,
1.9361236095428467,
0.749465823173523,
-0.025795619934797287,
-1.7690520286560059,
-1.7857977151870728,
1.521740198135376,
1.2384934425354004,
2.24922513961792,
0.7894673943519592,
0.4145646393299103,
-0.9041343331336975,
-0.54119473695755,
0.36054834723472595,
-0.9666675925254822,
-0.7732483148574829,
0.10644885897636414,
2.313309669494629,
1.7900594472885132,
-0.5180481672286987,
-0.23577456176280975,
-1.0489325523376465,
1.2348920106887817,
-0.18344414234161377,
0.26768821477890015,
2.0073654651641846,
-0.265002965927124,
-1.0531854629516602,
1.1502249240875244,
-2.3094089031219482,
0.254657506942749,
2.0379223823547363,
0.2858215570449829,
0.1879052370786667,
-1.475199580192566,
-0.6380660533905029,
-0.036411117762327194,
-0.41911280155181885,
-1.2026289701461792,
0.5880916118621826,
-0.37997889518737793,
-0.7819992303848267,
-1.4485688209533691,
0.15802021324634552,
-1.0368832349777222,
-1.679958462715149,
0.3099824786186218,
1.8734246492385864,
1.9822607040405273,
-0.6879249811172485,
1.5873597860336304,
-0.2569750249385834,
0.29272761940956116,
1.3057583570480347,
1.1755751371383667,
3.1114022731781006,
1.9994639158248901,
-1.2646116018295288,
0.7224045395851135,
-0.06856430321931839,
-0.4477067291736603,
1.2445651292800903,
-1.0125895738601685,
1.2078280448913574,
-0.26516714692115784,
-1.2212820053100586,
-1.1577860116958618,
0.8054317235946655,
0.46026331186294556,
-0.011194974184036255,
-0.5340282320976257,
1.2756153345108032,
0.054968442767858505,
1.2119348049163818,
0.5308042764663696,
-0.36028340458869934,
0.6057521104812622,
-0.3341621160507202,
-0.3946931064128876,
1.5127110481262207,
0.1604110598564148,
-1.4474387168884277,
-2.3187263011932373,
-0.1871943324804306,
-0.8574267029762268,
-0.0048848348669707775,
-0.6919039487838745,
-1.102599024772644,
1.5732969045639038,
0.4843963086605072,
-1.227888822555542,
-0.3530011773109436,
-0.3930383622646332,
-0.7010136842727661,
2.585462808609009,
-1.3869550228118896,
-0.3749842047691345,
-0.9427562952041626,
-0.48050495982170105,
1.7217893600463867,
-1.2101892232894897,
-0.15562166273593903,
-1.1459460258483887,
-0.5942028760910034,
-1.3237639665603638,
-0.6343747973442078,
0.006631031632423401,
-0.8623536229133606,
0.8484316468238831,
0.09712982177734375,
-1.2062968015670776,
-0.17752280831336975,
-0.8622872829437256,
0.8041445016860962,
-0.1740121692419052,
0.22959795594215393,
1.9899109601974487,
0.5142658352851868,
-0.44807249307632446,
0.725165843963623,
1.1290158033370972,
0.6351553201675415,
-0.6248096227645874,
0.3905438184738159,
-0.5673273801803589,
0.29946064949035645,
-1.327725887298584,
0.2345159351825714,
-2.883047580718994,
0.705682098865509,
0.06755305826663971,
0.0066520534455776215,
-0.04181139916181564,
-1.3573963642120361,
1.0170484781265259,
2.4883170127868652,
-1.2158123254776,
0.5159193277359009,
0.23031924664974213,
1.2885226011276245,
-1.6694828271865845,
0.23129311203956604,
-0.34836095571517944,
2.1101090908050537,
0.048937536776065826,
1.187237024307251,
-0.384287565946579,
-2.287945032119751,
0.5850644707679749,
-1.3423264026641846,
-1.141759991645813,
0.7374378442764282,
-0.7151224613189697,
-0.050901561975479126,
-1.3514964580535889,
-0.049642808735370636,
-0.8411530256271362,
-1.2676852941513062,
0.9303087592124939,
0.16650088131427765,
0.4945891201496124,
-0.661374568939209,
0.38884425163269043,
-2.0650055408477783,
-1.4112939834594727,
-0.20434905588626862,
-0.9136502742767334,
0.29665401577949524,
-0.45021703839302063,
0.6854079365730286,
-0.2505236268043518,
0.04710651561617851,
0.368975430727005,
1.3980162143707275,
3.4575159549713135,
0.15942835807800293,
0.47706472873687744,
-0.1757861077785492,
-0.9265354871749878,
1.534963846206665,
0.9406922459602356,
-0.133405864238739,
-0.5839758515357971,
-1.0187267065048218,
1.204368233680725,
1.9342551231384277,
0.97856205701828,
0.14004330337047577,
-0.9121520519256592,
-0.6579124927520752,
-0.09240409731864929,
0.1501654088497162,
0.48481491208076477,
0.8303370475769043,
0.026109669357538223,
0.1124129593372345,
1.3056491613388062,
1.0832123756408691,
-0.5216398239135742,
0.4840780794620514,
-0.8505972027778625,
-0.41620758175849915,
0.5572181344032288,
0.37810730934143066,
0.0498005747795105,
0.36378809809684753,
-0.9918761849403381,
-0.2737421989440918,
-0.2676119804382324,
-1.0143616199493408,
-0.6221992373466492,
-0.4811544120311737,
-0.29200607538223267,
1.570368766784668,
-0.004286653362214565,
-0.5301228761672974,
-0.0886816680431366,
-0.7963125705718994,
-0.08500269055366516,
-1.025666356086731,
0.16105765104293823,
-0.1307608187198639,
-0.07845625281333923,
-0.01707153581082821,
1.8090311288833618,
-1.0067596435546875,
-2.1929967403411865,
0.32734012603759766,
0.2783149778842926,
-0.36360299587249756,
0.2198602259159088,
1.6020618677139282,
0.481445848941803,
1.309130072593689,
1.4794385433197021,
1.034443736076355,
-0.7270817756652832,
-1.3591341972351074,
0.5992645621299744,
0.9525398015975952,
-1.449682354927063,
0.8382970094680786,
0.014740530401468277,
-0.4785630404949188,
0.6242419481277466,
1.4263222217559814,
0.4556766152381897,
-1.9121339321136475,
0.7827674746513367,
-0.7726129293441772,
0.9887505769729614,
0.7520373463630676,
0.7844641804695129,
0.24457798898220062,
0.7724224925041199,
-1.218085765838623,
-1.1565290689468384,
-0.7894700765609741,
-0.6339496374130249,
1.9258488416671753,
-0.15957623720169067,
0.4921332895755768,
-0.1278197020292282,
-1.4242615699768066,
-0.09084975719451904,
0.6426550149917603,
0.28997913002967834,
-0.36272817850112915,
0.608127236366272,
-0.7112452983856201,
-1.0923222303390503,
-1.4340338706970215,
-0.5207412838935852,
-0.953180193901062,
-0.9972108006477356,
1.0615324974060059,
0.7834241986274719,
0.26360347867012024,
1.8569470643997192,
0.7493793964385986,
0.0828324407339096,
-2.6877763271331787,
0.954383134841919,
0.3297026753425598,
0.032882124185562134,
0.8530691862106323,
0.262163370847702,
1.0878007411956787,
-0.036830317229032516,
0.5921075940132141,
-2.3167061805725098,
2.29599666595459,
-0.28577378392219543,
0.6335663795471191,
0.025863762944936752,
-0.1680716574192047,
1.0743434429168701,
0.5223537683486938,
0.556465744972229,
-1.136521816253662,
0.7488881349563599,
-0.6573019027709961,
1.2437316179275513,
0.9456259608268738,
-0.8636730909347534,
0.06446501612663269,
1.294285774230957,
0.5032404065132141,
-0.5993814468383789,
-0.9389840960502625,
-0.8765717148780823,
1.0246913433074951,
1.6547353267669678,
-0.028647787868976593,
-0.004545132629573345,
0.8004652261734009,
0.6298099160194397,
-1.2462341785430908,
0.07977832853794098,
-0.6934044361114502,
-0.7668909430503845,
1.6541765928268433,
2.0402615070343018,
-0.1305302232503891,
-0.1799331158399582,
-0.8096676468849182,
-1.2215282917022705,
0.7136796116828918,
0.004732073284685612,
-0.04368329420685768,
0.7037266492843628,
-0.6124489307403564,
1.1909178495407104,
0.7454929947853088,
0.7986953258514404,
0.12225872278213501,
0.22861547768115997,
0.35179051756858826,
-0.24466077983379364,
-1.2076022624969482,
-0.2892906665802002,
-1.1090564727783203,
-2.5358469486236572,
0.4504263997077942,
-0.22872397303581238,
-1.3403204679489136,
0.014967530965805054,
-1.0646556615829468,
0.9850769639015198,
-0.606993556022644,
-1.001833200454712,
-1.4614589214324951,
0.13214704394340515,
-0.21695072948932648,
0.7291778922080994,
-1.6593412160873413,
-0.11577992141246796,
1.3319518566131592,
0.9727076888084412,
-0.7955306172370911,
0.9916754364967346,
0.17974841594696045,
1.091414451599121,
0.9285121560096741,
-0.42900052666664124,
0.4560874402523041,
0.044806696474552155,
-1.3687303066253662,
0.5602704882621765,
1.1389232873916626,
0.052014533430337906,
1.5347261428833008,
-0.4818745255470276,
-0.016245953738689423,
0.4576534926891327,
-0.42260992527008057,
-0.5343637466430664,
-0.7046894431114197,
0.7210131883621216,
0.082185760140419,
-0.9347845315933228,
0.08884227275848389,
-0.03958387300372124,
-0.09889526665210724,
0.2226174771785736,
-1.5961276292800903,
-0.1716499626636505,
-0.23423010110855103,
-0.5032119750976562,
-1.2320561408996582,
-0.10507382452487946,
1.3551433086395264,
-0.7204698920249939,
-0.21090036630630493,
0.5744017362594604,
0.2703511416912079,
0.4299256205558777,
0.562763512134552,
-0.6413376331329346,
-0.38615772128105164,
-0.24380481243133545,
-0.3879301846027374,
0.36779075860977173,
1.2826987504959106,
-0.1295139193534851,
-0.9900157451629639,
0.6566280126571655,
-0.3054829239845276,
0.05516975000500679,
1.9122064113616943,
0.1043141633272171,
-0.9200716018676758,
0.325215220451355,
-0.5506210923194885,
2.001643180847168,
1.6184155941009521,
1.3509970903396606,
-0.17257557809352875,
-0.9659076929092407,
0.6134821176528931,
-0.26177340745925903,
-0.3269307017326355,
0.8434212803840637,
0.4144248068332672,
-0.08448804914951324,
-1.400876760482788,
0.6281253099441528,
1.2963664531707764,
-0.8217929601669312,
-0.8795644640922546,
-0.019972413778305054,
-0.7212181687355042,
0.9081849455833435,
0.7404022812843323,
0.48876288533210754,
0.2716536819934845,
1.5889137983322144,
0.6868986487388611,
-0.5141040682792664,
0.6133528351783752,
0.4111759662628174,
-0.05443762615323067,
-1.9576972723007202,
-1.1310772895812988,
0.39289820194244385,
-0.3791869878768921,
-1.6712639331817627,
1.3645222187042236,
-1.2300399541854858,
-0.8059622645378113,
0.5261194109916687,
0.24244911968708038,
1.5330528020858765,
0.2794375419616699,
1.5623891353607178,
2.0365312099456787,
0.8642908334732056,
0.3464369773864746,
1.2434035539627075,
-0.18340575695037842,
-0.4654347002506256,
1.8482205867767334,
-0.4200195074081421,
0.463356077671051,
1.0708662271499634,
-0.4165003299713135,
-1.1065219640731812,
-0.8177028894424438,
-1.2792338132858276,
-0.6576703190803528,
1.1178613901138306,
0.17205722630023956,
-1.3162133693695068,
0.18638688325881958,
1.602401614189148,
0.05365074798464775,
-0.26923656463623047,
0.6865015029907227,
0.4385749399662018,
-0.8215085864067078,
0.04490429535508156,
-0.9238554239273071,
0.45811188220977783,
-0.17921623587608337,
-0.34939199686050415,
0.3621402680873871,
0.4803276062011719,
1.3196995258331299,
0.04259629547595978,
0.10794804990291595,
1.2046852111816406,
-1.3787500858306885,
1.3380022048950195,
-0.6702697277069092,
0.2312367856502533,
-2.3357229232788086,
1.3912702798843384,
-0.8641926646232605,
1.8099784851074219,
-2.6201393604278564,
0.3212185502052307,
-0.6280548572540283,
-0.4027150273323059,
0.3140815496444702,
-0.38041940331459045,
0.08983470499515533,
-0.1873967945575714,
-1.1349812746047974,
-0.061782125383615494,
-0.7392764687538147,
0.6310571432113647,
1.1890374422073364,
1.275384545326233,
-1.0037065744400024,
-0.24296288192272186,
-1.874497652053833,
-0.04829418659210205,
-0.559770941734314,
0.3856264650821686,
-2.0096800327301025,
-0.1632317304611206,
-1.9890376329421997,
-2.266695261001587,
-1.3601481914520264,
-0.8627397418022156,
1.1053425073623657,
0.22874054312705994,
-0.8057020902633667,
1.0895615816116333,
-0.28903868794441223,
-1.6823753118515015,
0.9946431517601013,
-2.112377882003784
] |
https://github.com/huggingface/datasets/issues/4680 | Dataset Viewer issue for codeparrot/xlcost-text-to-code | Yes, the cache is being refreshed, hopefully, it will work in some minutes for all the splits. Some are already here:
https://huggingface.co/datasets/codeparrot/xlcost-text-to-code/viewer/Python-snippet-level/train
<img width="1533" alt="Capture d’écran 2022-07-18 à 12 04 06" src="https://user-images.githubusercontent.com/1676121/179553933-64d874fa-ada9-4b82-900e-082619523c20.png">
| ### Link
https://huggingface.co/datasets/codeparrot/xlcost-text-to-code
### Description
Error
```
Server Error
Status code: 400
Exception: TypeError
Message: 'NoneType' object is not iterable
```
Before I did a minor change in the dataset script (removing some comments), the viewer was working but not properely, it wasn't showing the dataset subsets. But the data can be loaded successfully.
Thanks!
### Owner
Yes | 632 | 32 | Dataset Viewer issue for codeparrot/xlcost-text-to-code
### Link
https://huggingface.co/datasets/codeparrot/xlcost-text-to-code
### Description
Error
```
Server Error
Status code: 400
Exception: TypeError
Message: 'NoneType' object is not iterable
```
Before I did a minor change in the dataset script (removing some comments), the viewer was working but not properely, it wasn't showing the dataset subsets. But the data can be loaded successfully.
Thanks!
### Owner
Yes
Yes, the cache is being refreshed, hopefully, it will work in some minutes for all the splits. Some are already here:
https://huggingface.co/datasets/codeparrot/xlcost-text-to-code/viewer/Python-snippet-level/train
<img width="1533" alt="Capture d’écran 2022-07-18 à 12 04 06" src="https://user-images.githubusercontent.com/1676121/179553933-64d874fa-ada9-4b82-900e-082619523c20.png">
| [
-1.17073392868042,
-0.8231430053710938,
-0.7987825274467468,
1.4639010429382324,
-0.1335386484861374,
-1.2497895956039429,
0.043519798666238785,
-1.0125713348388672,
1.550679087638855,
-0.7419676780700684,
0.3177712857723236,
-1.6492899656295776,
-0.06353771686553955,
-0.5685915350914001,
-0.7461232542991638,
-0.8381778597831726,
-0.37589359283447266,
-0.8390120267868042,
1.024183750152588,
2.5849132537841797,
1.227507472038269,
-1.4646434783935547,
2.7213306427001953,
0.6720216274261475,
-0.18211132287979126,
-1.0211654901504517,
0.5386565327644348,
-0.03585917130112648,
-1.2937148809432983,
-0.4666639268398285,
-0.93421870470047,
-0.056321945041418076,
-0.6220681667327881,
-0.5273804664611816,
0.09353187680244446,
0.4108429551124573,
-0.1072765439748764,
-0.3786623179912567,
-0.48496729135513306,
-0.8557625412940979,
0.48388925194740295,
-0.36208686232566833,
0.9123440384864807,
-0.41748300194740295,
1.7949397563934326,
-0.5556172132492065,
0.3973357677459717,
0.578453004360199,
1.374661922454834,
0.2500837743282318,
-0.07329784333705902,
0.28880053758621216,
0.42604130506515503,
-0.030654301866889,
0.4525032937526703,
1.1904103755950928,
0.6294050216674805,
0.5076806545257568,
0.6953445076942444,
-2.180753231048584,
1.3060367107391357,
-0.8508160710334778,
0.22614486515522003,
1.415037989616394,
-0.9938522577285767,
0.3918452560901642,
-1.920615553855896,
-0.01695551536977291,
0.40071138739585876,
-2.2778804302215576,
0.30045315623283386,
-1.1670408248901367,
-0.5206034779548645,
1.0577454566955566,
0.27583402395248413,
-1.368699073791504,
0.1043558120727539,
-0.42305758595466614,
1.022613286972046,
0.4448281228542328,
1.1441854238510132,
-1.6709859371185303,
-0.009012329392135143,
-0.3326380252838135,
0.14704787731170654,
-1.2691494226455688,
-1.55458402633667,
0.4913921356201172,
0.6864667534828186,
0.638836145401001,
-0.10443185269832611,
0.8931640982627869,
-1.0031862258911133,
0.8032736778259277,
-0.9422693848609924,
-1.7282646894454956,
-1.436164140701294,
-2.286355495452881,
-2.353085517883301,
0.8205698728561401,
-0.464328795671463,
-0.49014896154403687,
2.0266218185424805,
-1.033103585243225,
-1.7496733665466309,
1.151164174079895,
0.2952553629875183,
-0.001917052548378706,
2.4314780235290527,
0.27503594756126404,
-0.8541999459266663,
0.49993157386779785,
-0.7576014995574951,
0.8045114874839783,
-0.5062779188156128,
1.4506402015686035,
0.5512219667434692,
-0.9497531652450562,
1.7206510305404663,
-0.4636725187301636,
0.5313300490379333,
-0.7158246040344238,
-0.5040174126625061,
-0.7570666074752808,
0.3063468337059021,
1.9455220699310303,
-0.33974960446357727,
1.550318956375122,
-0.25086554884910583,
-1.4999293088912964,
-1.4789035320281982,
0.8714194893836975,
0.49907827377319336,
-0.8791804313659668,
0.19821478426456451,
-0.3478376567363739,
0.10671371221542358,
-0.08545736968517303,
0.9390127062797546,
1.2343382835388184,
0.7257115244865417,
-0.30460864305496216,
-1.0210089683532715,
0.2191324532032013,
-0.035287268459796906,
-0.6662431955337524,
-1.7011198997497559,
-0.40728893876075745,
0.10579821467399597,
0.6665421724319458,
-1.2769324779510498,
1.777109980583191,
0.8281135559082031,
2.033445358276367,
0.9429718852043152,
-0.3830777108669281,
1.4837380647659302,
0.04349137470126152,
1.9512864351272583,
-0.4355482757091522,
0.6529048085212708,
-0.36438867449760437,
-1.2096128463745117,
0.6985880732536316,
-0.41516485810279846,
-2.0212202072143555,
-0.6854133605957031,
-0.9471848607063293,
-0.1440158635377884,
-0.7585853934288025,
0.9872698783874512,
-0.26289859414100647,
-1.4228368997573853,
0.21199510991573334,
-0.6988112926483154,
0.16992530226707458,
-1.4494751691818237,
0.2675592303276062,
0.7033628821372986,
-0.6815028786659241,
0.04568076133728027,
-0.3317503035068512,
-1.3012750148773193,
-0.5353866815567017,
0.28281858563423157,
1.9432709217071533,
-0.753541886806488,
0.9550651907920837,
0.9683210253715515,
-0.6368175745010376,
-0.05814192444086075,
0.44261908531188965,
-0.2797958552837372,
0.9163517355918884,
-1.137718915939331,
-0.4133698642253876,
1.1734064817428589,
-0.15014539659023285,
-0.5493876338005066,
1.337439775466919,
0.8575237393379211,
-1.0490810871124268,
-0.2374427616596222,
-0.1529061198234558,
-0.7819551229476929,
0.017713207751512527,
-1.6205402612686157,
-0.0826399028301239,
0.251086950302124,
-1.4221842288970947,
-0.49592843651771545,
-0.17639517784118652,
1.3217397928237915,
-0.13626059889793396,
1.438063621520996,
-0.2978520095348358,
-0.17647908627986908,
-0.3840698003768921,
-0.4532484710216522,
0.15215404331684113,
-0.18791702389717102,
-0.6715039014816284,
0.31383368372917175,
-0.7795701026916504,
0.23028898239135742,
1.4313833713531494,
0.37456014752388,
0.07757328450679779,
0.5311717391014099,
1.1497970819473267,
0.3479911983013153,
-0.016946809366345406,
-0.9427111148834229,
-1.5520880222320557,
2.025571584701538,
-1.4962692260742188,
1.9665387868881226,
0.8219574689865112,
-0.04376917704939842,
-1.7733083963394165,
-1.810520887374878,
1.3868162631988525,
1.212108850479126,
2.470184087753296,
0.7303451895713806,
0.451913982629776,
-0.8718538880348206,
-0.6710346937179565,
0.38652122020721436,
-0.9899778962135315,
-0.7946730852127075,
0.10415057837963104,
2.369072437286377,
1.7298849821090698,
-0.4878740906715393,
-0.21159936487674713,
-0.9329928159713745,
1.2805370092391968,
-0.22026289999485016,
0.2682066857814789,
1.9577685594558716,
-0.2852323055267334,
-1.0577540397644043,
1.1872196197509766,
-2.3125078678131104,
0.29042038321495056,
2.0402631759643555,
0.2865903973579407,
0.1568944901227951,
-1.4075706005096436,
-0.7006069421768188,
-0.15166637301445007,
-0.45110711455345154,
-1.1837149858474731,
0.5222429037094116,
-0.3318079113960266,
-0.8801199197769165,
-1.4413933753967285,
0.05483997240662575,
-1.1144863367080688,
-1.660483717918396,
0.3835386037826538,
1.8433746099472046,
2.061094045639038,
-0.8064965605735779,
1.4063020944595337,
-0.21495391428470612,
0.1742471307516098,
1.2741203308105469,
1.254827618598938,
3.164579391479492,
1.8694530725479126,
-1.2986997365951538,
0.8070914149284363,
-0.21018138527870178,
-0.4545706808567047,
1.175629734992981,
-1.0750118494033813,
1.1575275659561157,
-0.2815513610839844,
-1.2356517314910889,
-1.1152805089950562,
0.8545097708702087,
0.5111756920814514,
-0.05455320328474045,
-0.5128779411315918,
1.212256669998169,
0.09572014212608337,
1.3205031156539917,
0.6052185893058777,
-0.3528813123703003,
0.5459266901016235,
-0.3704138398170471,
-0.4669269621372223,
1.572293758392334,
0.1052023321390152,
-1.4891184568405151,
-2.3510701656341553,
-0.17992258071899414,
-0.9321804642677307,
-0.09275519847869873,
-0.6961262226104736,
-1.1057628393173218,
1.5935862064361572,
0.4434696137905121,
-1.1781643629074097,
-0.3046906590461731,
-0.3589209020137787,
-0.6520065665245056,
2.6014742851257324,
-1.452998161315918,
-0.27121129631996155,
-0.9751249551773071,
-0.4595048129558563,
1.6293091773986816,
-1.177904725074768,
-0.17688263952732086,
-1.0520870685577393,
-0.6328430771827698,
-1.369042158126831,
-0.5606445670127869,
-0.057169586420059204,
-0.7992546558380127,
0.7558820247650146,
0.14921729266643524,
-1.1672672033309937,
-0.23669704794883728,
-0.9327212572097778,
0.8101030588150024,
-0.0798792839050293,
0.2135990709066391,
1.8224724531173706,
0.48079994320869446,
-0.38536542654037476,
0.6996412873268127,
1.2394710779190063,
0.5911408066749573,
-0.6482915282249451,
0.23756369948387146,
-0.6292135715484619,
0.3173106014728546,
-1.3452625274658203,
0.2720097005367279,
-2.842592716217041,
0.7704892754554749,
-0.007254617288708687,
-0.07628726959228516,
-0.04917041212320328,
-1.3309723138809204,
1.1206729412078857,
2.477275848388672,
-1.123960256576538,
0.5359323024749756,
0.27494657039642334,
1.1519373655319214,
-1.6671278476715088,
0.16353268921375275,
-0.47388967871665955,
2.159879684448242,
0.12324181199073792,
1.1916124820709229,
-0.4777260720729828,
-2.3184025287628174,
0.5377637147903442,
-1.3054423332214355,
-1.0107916593551636,
0.8076193332672119,
-0.7917417883872986,
0.0568942166864872,
-1.374304175376892,
-0.09790901839733124,
-0.9747769832611084,
-1.238355278968811,
0.8102935552597046,
0.1072452962398529,
0.5401513576507568,
-0.5912436842918396,
0.4201511740684509,
-2.083587884902954,
-1.4237102270126343,
-0.24105021357536316,
-0.8746117353439331,
0.403917133808136,
-0.3596007823944092,
0.6808335781097412,
-0.17714501917362213,
0.06301434338092804,
0.3660975992679596,
1.4090344905853271,
3.2889840602874756,
0.14189095795154572,
0.3716723918914795,
-0.13421499729156494,
-1.0185240507125854,
1.5206420421600342,
0.9491809606552124,
-0.12032698094844818,
-0.6299312114715576,
-0.9256200790405273,
1.3060364723205566,
1.9446280002593994,
1.0641427040100098,
0.09865759313106537,
-0.9307973980903625,
-0.6701370477676392,
0.004535689949989319,
0.1563536524772644,
0.4757153391838074,
0.9318709969520569,
0.003408798947930336,
0.12734630703926086,
1.3412655591964722,
1.1923601627349854,
-0.4230775535106659,
0.4279591143131256,
-0.8443681597709656,
-0.37695595622062683,
0.504880964756012,
0.2955188453197479,
0.09779085218906403,
0.39920300245285034,
-1.0333510637283325,
-0.21964523196220398,
-0.2718685567378998,
-0.9957188963890076,
-0.6969932913780212,
-0.5238358378410339,
-0.3041088283061981,
1.6404616832733154,
-0.0070431469939649105,
-0.4663994014263153,
0.036651648581027985,
-0.8594224452972412,
-0.09598441421985626,
-1.1251697540283203,
0.2129092812538147,
-0.13544027507305145,
-0.05957812815904617,
-0.0801638662815094,
1.7693681716918945,
-0.9686231017112732,
-2.2200927734375,
0.23726072907447815,
0.33123165369033813,
-0.4653031527996063,
0.102093905210495,
1.7246081829071045,
0.4536929428577423,
1.363671064376831,
1.3889259099960327,
0.9920380711555481,
-0.7285213470458984,
-1.2837796211242676,
0.6691058278083801,
1.0160924196243286,
-1.4164927005767822,
0.9262180924415588,
-0.09930846095085144,
-0.5261721611022949,
0.5934378504753113,
1.3381503820419312,
0.40329641103744507,
-1.8807227611541748,
0.8126013278961182,
-0.8240358829498291,
0.8728975653648376,
0.6604815125465393,
0.8576411008834839,
0.21944373846054077,
0.793053150177002,
-1.3340288400650024,
-1.0924859046936035,
-0.7183942794799805,
-0.536393404006958,
1.8883237838745117,
-0.13842900097370148,
0.44213512539863586,
-0.1352502852678299,
-1.2727993726730347,
-0.049394071102142334,
0.7161518335342407,
0.33979320526123047,
-0.33399781584739685,
0.7247005105018616,
-0.6653887629508972,
-1.0857884883880615,
-1.4146852493286133,
-0.4706266522407532,
-0.9220570921897888,
-0.9603670239448547,
1.0992517471313477,
0.7792044878005981,
0.37759852409362793,
1.9085066318511963,
0.7589485049247742,
0.13770639896392822,
-2.6862642765045166,
0.8594204783439636,
0.30608659982681274,
-0.001759799662977457,
0.95358806848526,
0.23310913145542145,
1.141150951385498,
-0.016077321022748947,
0.6105687022209167,
-2.3687267303466797,
2.2169172763824463,
-0.2254667431116104,
0.6652162075042725,
-0.024295490235090256,
-0.10197502374649048,
1.1007716655731201,
0.5513097643852234,
0.5164541602134705,
-1.1600226163864136,
0.7431887984275818,
-0.5855965614318848,
1.1425628662109375,
0.853355884552002,
-0.9118329286575317,
0.14228804409503937,
1.2463407516479492,
0.4572194218635559,
-0.48000583052635193,
-0.9600497484207153,
-0.7263639569282532,
0.9809293746948242,
1.7421374320983887,
-0.041704777628183365,
0.04303579777479172,
0.8910387754440308,
0.6309365630149841,
-1.3398829698562622,
0.057928312569856644,
-0.6303984522819519,
-0.7798539996147156,
1.7448194026947021,
2.028142213821411,
-0.03104732558131218,
-0.21819202601909637,
-0.7527878880500793,
-1.3049583435058594,
0.7794772386550903,
0.029625017195940018,
0.04699389636516571,
0.7249584794044495,
-0.6913548111915588,
1.17783784866333,
0.6974557042121887,
0.9044328331947327,
0.12276458740234375,
0.17145784199237823,
0.343137264251709,
-0.29250913858413696,
-1.1823251247406006,
-0.24548958241939545,
-1.1372448205947876,
-2.6251118183135986,
0.4678763151168823,
-0.25217676162719727,
-1.4099291563034058,
0.09165751934051514,
-1.0086902379989624,
0.8954041004180908,
-0.595980703830719,
-1.075707197189331,
-1.4052636623382568,
0.2573278844356537,
-0.2066434621810913,
0.769187331199646,
-1.6674059629440308,
-0.15472610294818878,
1.2714327573776245,
0.995873749256134,
-0.6065744161605835,
0.9336705803871155,
0.2565068304538727,
1.0108325481414795,
0.9061771035194397,
-0.36285972595214844,
0.43844133615493774,
0.1378287971019745,
-1.379544973373413,
0.47880423069000244,
1.2526577711105347,
0.16696012020111084,
1.4863251447677612,
-0.5095224380493164,
0.060871753841638565,
0.4184253215789795,
-0.37614214420318604,
-0.5021159648895264,
-0.651635468006134,
0.7148824334144592,
0.08446522057056427,
-1.0323044061660767,
0.0025334861129522324,
-0.12385030090808868,
-0.08058053255081177,
0.25370046496391296,
-1.4880015850067139,
-0.20590662956237793,
-0.33122479915618896,
-0.5394037961959839,
-1.2822015285491943,
-0.06758148968219757,
1.2480378150939941,
-0.8314356207847595,
-0.16252365708351135,
0.5604395270347595,
0.2644492983818054,
0.5389557480812073,
0.5548347234725952,
-0.690891444683075,
-0.4299156963825226,
-0.18735837936401367,
-0.4253884255886078,
0.27247631549835205,
1.1726038455963135,
-0.14982189238071442,
-1.0294803380966187,
0.6547690033912659,
-0.26414117217063904,
0.11360214650630951,
1.9387798309326172,
0.11450918018817902,
-0.8139203190803528,
0.3597637116909027,
-0.60154789686203,
1.943117618560791,
1.6295554637908936,
1.3615914583206177,
-0.1870632916688919,
-0.8531377911567688,
0.6117243766784668,
-0.30427810549736023,
-0.358699232339859,
0.8790631890296936,
0.47991761565208435,
-0.096576988697052,
-1.477933645248413,
0.5565752387046814,
1.30143404006958,
-0.9011509418487549,
-0.775574266910553,
0.06274926662445068,
-0.7975964546203613,
1.0684000253677368,
0.7151870131492615,
0.43537843227386475,
0.2442871630191803,
1.6234978437423706,
0.708955705165863,
-0.5418652296066284,
0.5632563233375549,
0.43883925676345825,
-0.12328384816646576,
-1.9948501586914062,
-1.0371763706207275,
0.3327663242816925,
-0.30722716450691223,
-1.5024244785308838,
1.394229531288147,
-1.2266416549682617,
-0.9218665361404419,
0.5590553879737854,
0.23668134212493896,
1.416270136833191,
0.33402979373931885,
1.6741702556610107,
2.0957467555999756,
0.851833164691925,
0.27520957589149475,
1.2385293245315552,
-0.090617835521698,
-0.3683403730392456,
1.8172765970230103,
-0.4791744351387024,
0.539815366268158,
1.0201226472854614,
-0.43377092480659485,
-1.1614065170288086,
-0.8219990134239197,
-1.2628638744354248,
-0.6817353963851929,
1.1467132568359375,
0.16265243291854858,
-1.1553168296813965,
0.17972654104232788,
1.7207074165344238,
0.008090823888778687,
-0.27562984824180603,
0.6616666316986084,
0.4114885926246643,
-0.7226060032844543,
-0.02619911916553974,
-0.9821267127990723,
0.4683016836643219,
-0.09768238663673401,
-0.32855024933815,
0.2384042739868164,
0.5468112230300903,
1.26790189743042,
0.06031395122408867,
0.11228558421134949,
1.241858720779419,
-1.3921000957489014,
1.3619632720947266,
-0.7513572573661804,
0.22685371339321136,
-2.3751330375671387,
1.4200941324234009,
-0.8894694447517395,
1.8396544456481934,
-2.5924179553985596,
0.39413222670555115,
-0.5699306726455688,
-0.49469104409217834,
0.26735055446624756,
-0.35855042934417725,
0.1445692479610443,
-0.14620696008205414,
-0.9867899417877197,
-0.12971201539039612,
-0.760205864906311,
0.5822533369064331,
1.1733523607254028,
1.3061515092849731,
-1.0601788759231567,
-0.23585236072540283,
-1.8242242336273193,
-0.07352975010871887,
-0.6193309426307678,
0.29695817828178406,
-1.8822863101959229,
-0.15752753615379333,
-2.025381326675415,
-2.273784637451172,
-1.4866365194320679,
-0.8775638341903687,
1.1435716152191162,
0.2476949393749237,
-0.8706427812576294,
1.0551730394363403,
-0.34903261065483093,
-1.7195347547531128,
1.0911221504211426,
-2.1779932975769043
] |
https://github.com/huggingface/datasets/issues/4678 | Cant pass streaming dataset to dataloader after take() | Hi! Calling `take` on an iterable/streamable dataset makes it not possible to shard the dataset, which in turn disables multi-process loading (attempts to split the workload over the shards), so to go past this limitation, you can either use single-process loading in `DataLoader` (`num_workers=None`) or fetch the first `50_000/batch_size` batches in the loop. | ## Describe the bug
I am trying to pass a streaming version of c4 to a dataloader, but it can't be passed after I call `dataset.take(n)`. Some functions such as `shuffle()` can be applied without breaking the dataloader but not take.
## Steps to reproduce the bug
```python
import datasets
import torch
dset = datasets.load_dataset(path='c4', name='en', split="train", streaming=True)
dset = dset.take(50_000)
dset = dset.with_format("torch")
num_workers = 8
batch_size = 512
loader = torch.utils.data.DataLoader(dataset=dset,
batch_size=batch_size,
num_workers=num_workers)
for batch in loader:
...
```
## Expected results
No error thrown when iterating over the dataloader
## Actual results
Original Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/fetch.py", line 32, in fetch
data.append(next(self.dataset_iter))
File "/root/.local/lib/python3.9/site-packages/datasets/formatting/dataset_wrappers/torch_iterable_dataset.py", line 48, in __iter__
for key, example in self._iter_shard(shard_idx):
File "/root/.local/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 586, in _iter_shard
yield from ex_iterable.shard_data_sources(shard_idx)
File "/root/.local/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 60, in shard_data_sources
raise NotImplementedError(f"{type(self)} doesn't implement shard_data_sources yet")
NotImplementedError: <class 'datasets.iterable_dataset.TakeExamplesIterable'> doesn't implement shard_data_sources yet
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.4.0-120-generic-x86_64-with-glibc2.31
- Python version: 3.9.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 633 | 53 | Cant pass streaming dataset to dataloader after take()
## Describe the bug
I am trying to pass a streaming version of c4 to a dataloader, but it can't be passed after I call `dataset.take(n)`. Some functions such as `shuffle()` can be applied without breaking the dataloader but not take.
## Steps to reproduce the bug
```python
import datasets
import torch
dset = datasets.load_dataset(path='c4', name='en', split="train", streaming=True)
dset = dset.take(50_000)
dset = dset.with_format("torch")
num_workers = 8
batch_size = 512
loader = torch.utils.data.DataLoader(dataset=dset,
batch_size=batch_size,
num_workers=num_workers)
for batch in loader:
...
```
## Expected results
No error thrown when iterating over the dataloader
## Actual results
Original Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/fetch.py", line 32, in fetch
data.append(next(self.dataset_iter))
File "/root/.local/lib/python3.9/site-packages/datasets/formatting/dataset_wrappers/torch_iterable_dataset.py", line 48, in __iter__
for key, example in self._iter_shard(shard_idx):
File "/root/.local/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 586, in _iter_shard
yield from ex_iterable.shard_data_sources(shard_idx)
File "/root/.local/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 60, in shard_data_sources
raise NotImplementedError(f"{type(self)} doesn't implement shard_data_sources yet")
NotImplementedError: <class 'datasets.iterable_dataset.TakeExamplesIterable'> doesn't implement shard_data_sources yet
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.4.0-120-generic-x86_64-with-glibc2.31
- Python version: 3.9.13
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi! Calling `take` on an iterable/streamable dataset makes it not possible to shard the dataset, which in turn disables multi-process loading (attempts to split the workload over the shards), so to go past this limitation, you can either use single-process loading in `DataLoader` (`num_workers=None`) or fetch the first `50_000/batch_size` batches in the loop. | [
-1.2246026992797852,
-0.9429380297660828,
-0.6294445991516113,
1.4732342958450317,
-0.150396928191185,
-1.1933151483535767,
0.20224322378635406,
-0.9619626402854919,
1.5456169843673706,
-0.8068476319313049,
0.24698376655578613,
-1.635374665260315,
-0.01403497252613306,
-0.4853152632713318,
-0.6680614352226257,
-0.8859823942184448,
-0.36600637435913086,
-0.8230154514312744,
1.0964041948318481,
2.479384660720825,
1.2846529483795166,
-1.2872576713562012,
2.7188034057617188,
0.6778662800788879,
-0.28349292278289795,
-1.1121859550476074,
0.5092564225196838,
0.019789090380072594,
-1.2641218900680542,
-0.43789297342300415,
-0.9801101088523865,
-0.018786966800689697,
-0.5685056447982788,
-0.32507044076919556,
0.11231774836778641,
0.44109851121902466,
-0.24477644264698029,
-0.35277023911476135,
-0.6179079413414001,
-0.6594704985618591,
0.5196589827537537,
-0.3507942259311676,
0.9677189588546753,
-0.2720469534397125,
1.758651614189148,
-0.648286759853363,
0.5041325092315674,
0.7436559200286865,
1.2869044542312622,
0.25818270444869995,
-0.0008703265339136124,
0.2965259850025177,
0.33346375823020935,
0.051536060869693756,
0.5887391567230225,
1.2183163166046143,
0.6216533184051514,
0.4908949136734009,
0.6203666925430298,
-2.266263723373413,
1.294708251953125,
-0.9499425292015076,
0.30951789021492004,
1.2835613489151,
-0.8999279737472534,
0.4231700003147125,
-1.786614179611206,
-0.12444128096103668,
0.6833512187004089,
-2.2764759063720703,
0.27225950360298157,
-1.391221046447754,
-0.5171368718147278,
0.9736505746841431,
0.359080970287323,
-1.2262240648269653,
0.13875780999660492,
-0.4667653739452362,
1.0506523847579956,
0.4576784074306488,
1.068572759628296,
-1.607478141784668,
-0.021804679185152054,
-0.19817055761814117,
0.10977581888437271,
-1.3023746013641357,
-1.618246078491211,
0.6164800524711609,
0.628237783908844,
0.6720404624938965,
-0.15894261002540588,
1.0771493911743164,
-1.0792745351791382,
0.8035240769386292,
-0.9481257200241089,
-1.676003098487854,
-1.3980716466903687,
-2.3815526962280273,
-2.319514036178589,
0.8664069771766663,
-0.4280332922935486,
-0.5218196511268616,
2.055142879486084,
-1.0575350522994995,
-1.7531925439834595,
1.1029773950576782,
0.18664486706256866,
0.05243350565433502,
2.442054271697998,
0.17125628888607025,
-0.7949641346931458,
0.46891283988952637,
-0.7347759008407593,
0.8072909712791443,
-0.27662384510040283,
1.2829952239990234,
0.49988001585006714,
-1.0286717414855957,
1.6529768705368042,
-0.35593506693840027,
0.5228409171104431,
-0.6010956764221191,
-0.4961208701133728,
-0.7721965312957764,
0.2526129186153412,
1.8990275859832764,
-0.34714484214782715,
1.5716743469238281,
-0.26217886805534363,
-1.5327032804489136,
-1.5316650867462158,
0.8755587935447693,
0.4421359896659851,
-0.8245458006858826,
0.05249349772930145,
-0.5079928636550903,
0.23860058188438416,
-0.04277856647968292,
1.1577633619308472,
1.2088391780853271,
0.700789749622345,
-0.34184369444847107,
-0.904029905796051,
0.25735560059547424,
-0.1864534616470337,
-0.6133257150650024,
-1.7812703847885132,
-0.34585273265838623,
0.15572373569011688,
0.6628541350364685,
-1.1668630838394165,
1.7849472761154175,
0.8431519865989685,
1.930304765701294,
0.9775317311286926,
-0.3589208424091339,
1.5383241176605225,
-0.020878320559859276,
1.8553717136383057,
-0.5243698358535767,
0.6024520993232727,
-0.34963566064834595,
-1.1554133892059326,
0.7620431184768677,
-0.3197230398654938,
-1.930025577545166,
-0.7897151708602905,
-0.7080314755439758,
-0.14686821401119232,
-0.7835701107978821,
0.8233575224876404,
-0.3709245026111603,
-1.497470736503601,
0.1437574028968811,
-0.7198754549026489,
0.2117035686969757,
-1.285393476486206,
0.29916656017303467,
0.7028236985206604,
-0.7013332843780518,
0.0022147195413708687,
-0.3120075762271881,
-1.2303361892700195,
-0.5353790521621704,
0.28026658296585083,
1.9504441022872925,
-0.5740273594856262,
0.9180866479873657,
1.041542410850525,
-0.6922146677970886,
0.06170306354761124,
0.21936094760894775,
-0.29950353503227234,
0.7799696326255798,
-1.1080718040466309,
-0.49682605266571045,
1.261741042137146,
-0.2580302953720093,
-0.6925174593925476,
1.477063536643982,
0.8053737282752991,
-1.0945525169372559,
-0.337814599275589,
-0.14515189826488495,
-0.7650781869888306,
0.06462745368480682,
-1.6292140483856201,
-0.13039226830005646,
0.47362351417541504,
-1.508176565170288,
-0.34074318408966064,
-0.19465358555316925,
1.3200441598892212,
-0.2156643569469452,
1.5181788206100464,
-0.33565375208854675,
-0.18031008541584015,
-0.2890150845050812,
-0.4721750319004059,
0.11896437406539917,
-0.09434611350297928,
-0.6014358997344971,
0.19055993854999542,
-0.8116950988769531,
0.3377072215080261,
1.5097882747650146,
0.3348146677017212,
0.06849975138902664,
0.4934784770011902,
1.1248195171356201,
0.39191779494285583,
-0.07838195562362671,
-0.8177168965339661,
-1.5829707384109497,
1.9587938785552979,
-1.3561664819717407,
1.9477049112319946,
0.798164427280426,
-0.14672987163066864,
-1.743866205215454,
-1.7341694831848145,
1.23715078830719,
1.1403361558914185,
2.3982386589050293,
0.46951013803482056,
0.4423729479312897,
-0.7762801647186279,
-0.7085225582122803,
0.3217517137527466,
-0.9993872046470642,
-0.6897987127304077,
0.27695196866989136,
2.404015302658081,
1.808427333831787,
-0.43531981110572815,
-0.2571549713611603,
-0.9746456742286682,
1.1923000812530518,
-0.2695927321910858,
0.2792927324771881,
2.0476644039154053,
-0.29567980766296387,
-1.0161898136138916,
1.3035197257995605,
-2.3882875442504883,
0.2220897078514099,
2.109703540802002,
0.2790723443031311,
0.08143625408411026,
-1.421337604522705,
-0.5807205438613892,
-0.30646616220474243,
-0.3983592987060547,
-1.2322022914886475,
0.5739520192146301,
-0.2988012135028839,
-0.813310444355011,
-1.3662745952606201,
0.07569810003042221,
-1.1212010383605957,
-1.7280809879302979,
0.26291710138320923,
1.8524447679519653,
2.073359251022339,
-0.8016470074653625,
1.3638238906860352,
-0.2395087331533432,
0.07160260528326035,
1.2261377573013306,
1.339267611503601,
3.091026782989502,
1.9047740697860718,
-1.3254379034042358,
0.7149108648300171,
-0.2644267976284027,
-0.482061505317688,
1.1707743406295776,
-1.2426087856292725,
1.1119009256362915,
-0.1555744707584381,
-1.3600317239761353,
-1.238060712814331,
1.067895770072937,
0.48038238286972046,
0.002424115315079689,
-0.5118048787117004,
1.273018479347229,
0.12696893513202667,
1.3669078350067139,
0.571766197681427,
-0.43788596987724304,
0.5430060625076294,
-0.3737766444683075,
-0.5473939180374146,
1.6583328247070312,
0.18169337511062622,
-1.4748356342315674,
-2.3067479133605957,
-0.24757060408592224,
-0.9619362354278564,
-0.047052569687366486,
-0.6341327428817749,
-1.00796377658844,
1.5749317407608032,
0.3127838671207428,
-1.259779930114746,
-0.2495504766702652,
-0.27568644285202026,
-0.5453493595123291,
2.727919340133667,
-1.2779734134674072,
-0.18636488914489746,
-1.0061683654785156,
-0.5981326103210449,
1.7024495601654053,
-1.2006916999816895,
-0.21893645823001862,
-1.0023417472839355,
-0.6331057548522949,
-1.2605708837509155,
-0.48229798674583435,
0.05231823772192001,
-0.9567339420318604,
0.7726560235023499,
0.17111024260520935,
-1.121964454650879,
-0.33091771602630615,
-0.8901238441467285,
1.0143487453460693,
-0.1230451762676239,
0.17464585602283478,
1.7638038396835327,
0.36466339230537415,
-0.4704357087612152,
0.7774016857147217,
1.1759679317474365,
0.6374781727790833,
-0.6475343108177185,
0.13402335345745087,
-0.7679460048675537,
0.3053540289402008,
-1.3289220333099365,
0.24648240208625793,
-2.876765727996826,
0.6913094520568848,
-0.14550893008708954,
-0.14162811636924744,
-0.10564472526311874,
-1.280064344406128,
1.0427840948104858,
2.6026370525360107,
-1.1587142944335938,
0.5571833252906799,
0.4439536929130554,
1.1846369504928589,
-1.6066688299179077,
0.26667213439941406,
-0.4631583094596863,
2.0407166481018066,
0.24367624521255493,
1.2454605102539062,
-0.47975626587867737,
-2.2522664070129395,
0.746610164642334,
-1.2598744630813599,
-1.0717082023620605,
0.8033126592636108,
-1.0081052780151367,
0.2670571804046631,
-1.4032315015792847,
-0.2514655292034149,
-0.8574259877204895,
-1.2583249807357788,
0.7485289573669434,
0.10930124670267105,
0.4412044584751129,
-0.523358941078186,
0.2941100299358368,
-2.216609001159668,
-1.3326495885849,
-0.25971469283103943,
-1.0759105682373047,
0.51852947473526,
-0.39162224531173706,
0.6009872555732727,
-0.13513030111789703,
0.056686073541641235,
0.2722127437591553,
1.4594788551330566,
3.387843370437622,
0.22823883593082428,
0.17636048793792725,
-0.12496066838502884,
-1.0039184093475342,
1.4434581995010376,
0.8571709394454956,
-0.1836690604686737,
-0.5918054580688477,
-1.036312222480774,
1.3092738389968872,
1.9451217651367188,
1.1068733930587769,
0.18416452407836914,
-0.8245274424552917,
-0.6979323029518127,
-0.0354091078042984,
0.22142010927200317,
0.47887349128723145,
0.9306952953338623,
-0.020273614674806595,
0.1375054270029068,
1.3449652194976807,
1.2383639812469482,
-0.36506399512290955,
0.3124096989631653,
-0.9775095582008362,
-0.44683483242988586,
0.5213815569877625,
0.10728961229324341,
-0.02451949566602707,
0.4206940829753876,
-1.0177600383758545,
-0.23627537488937378,
-0.3284256160259247,
-0.9048267006874084,
-0.7615762948989868,
-0.4267233908176422,
-0.39096036553382874,
1.5604301691055298,
0.04170002043247223,
-0.4744343161582947,
-0.010520515032112598,
-0.6559587121009827,
-0.21585415303707123,
-1.143977165222168,
0.12336541712284088,
-0.046067848801612854,
-0.11783429980278015,
-0.17138263583183289,
1.7053815126419067,
-0.8876981735229492,
-2.1314051151275635,
0.22663761675357819,
0.2631385922431946,
-0.2698993980884552,
0.23968103528022766,
1.778638482093811,
0.42097753286361694,
1.3824121952056885,
1.3510370254516602,
1.010167121887207,
-0.6000269055366516,
-1.1664434671401978,
0.7746400833129883,
0.9462103247642517,
-1.3554407358169556,
0.945805013179779,
-0.16580326855182648,
-0.49598562717437744,
0.6390838623046875,
1.2180109024047852,
0.5067029595375061,
-2.0056514739990234,
0.9047542214393616,
-1.0294361114501953,
0.7084671854972839,
0.7312677502632141,
0.7937377691268921,
0.1934458464384079,
0.9193801879882812,
-1.1866412162780762,
-1.1751612424850464,
-0.6926098465919495,
-0.6223620772361755,
1.9877679347991943,
-0.2593531906604767,
0.6047053337097168,
-0.10471765697002411,
-1.2650737762451172,
-0.06899481266736984,
0.7848960757255554,
0.387118399143219,
-0.46925559639930725,
0.9362314343452454,
-0.6758320331573486,
-1.0363706350326538,
-1.3151694536209106,
-0.42977842688560486,
-1.0985407829284668,
-0.8866509795188904,
1.0961343050003052,
0.6833705902099609,
0.3129829168319702,
1.8091740608215332,
0.5935864448547363,
0.3592211604118347,
-2.661897897720337,
0.9081146717071533,
0.2453642189502716,
-0.08654797077178955,
0.8425018787384033,
0.26240649819374084,
1.1161084175109863,
-0.04429116100072861,
0.5205498337745667,
-2.3662710189819336,
2.274841785430908,
-0.20421384274959564,
0.6581103205680847,
0.011209391057491302,
-0.16136005520820618,
1.093799114227295,
0.6229204535484314,
0.5858939290046692,
-1.0308746099472046,
0.739126443862915,
-0.5616792440414429,
1.1242176294326782,
0.8615235090255737,
-0.9138765931129456,
0.02043973095715046,
1.4043138027191162,
0.42775726318359375,
-0.4527416527271271,
-0.9338677525520325,
-0.8640635013580322,
1.0011346340179443,
1.7102645635604858,
-0.05947710573673248,
0.010716445744037628,
0.8945155739784241,
0.6936248540878296,
-1.194948434829712,
-0.007049151696264744,
-0.7002624869346619,
-0.6872774362564087,
1.6624068021774292,
1.9997398853302002,
-0.15924552083015442,
-0.24580614268779755,
-0.7062599658966064,
-1.2276616096496582,
0.7609717845916748,
-0.13590990006923676,
0.09266669303178787,
0.7950435876846313,
-0.5971994400024414,
1.0595334768295288,
0.6514182090759277,
0.9965513348579407,
0.15105921030044556,
0.22796006500720978,
0.37488827109336853,
-0.35211896896362305,
-1.168299913406372,
-0.2862280011177063,
-1.1273736953735352,
-2.5774569511413574,
0.4563342034816742,
-0.22389870882034302,
-1.4193739891052246,
0.030506392940878868,
-1.049224853515625,
0.9386056661605835,
-0.6388781666755676,
-1.160037875175476,
-1.4493056535720825,
0.2277199923992157,
-0.1652919203042984,
0.9524219632148743,
-1.7167788743972778,
-0.18309654295444489,
1.1715646982192993,
0.8805303573608398,
-0.5808663368225098,
0.9819457530975342,
0.24942266941070557,
0.9900407195091248,
0.7581416368484497,
-0.3458479046821594,
0.6251325607299805,
0.014136040583252907,
-1.3664522171020508,
0.4682590365409851,
1.1560264825820923,
0.18461814522743225,
1.4505025148391724,
-0.5028313398361206,
-0.017334651201963425,
0.42336487770080566,
-0.6570233106613159,
-0.5304654836654663,
-0.4563286602497101,
0.7619694471359253,
-0.05237818509340286,
-0.9759694337844849,
-0.15306785702705383,
-0.14745359122753143,
-0.22800292074680328,
0.13997267186641693,
-1.4814262390136719,
-0.2320108413696289,
-0.36138322949409485,
-0.5455691814422607,
-1.3212890625,
-0.022883711382746696,
1.3709615468978882,
-0.9045572876930237,
-0.21975816786289215,
0.3732108175754547,
0.39987221360206604,
0.5642019510269165,
0.557806670665741,
-0.7403920292854309,
-0.25176137685775757,
-0.2409125119447708,
-0.34598881006240845,
0.3456996977329254,
1.3364856243133545,
-0.08747723698616028,
-1.009713053703308,
0.7291210889816284,
-0.3451331853866577,
0.1691000908613205,
1.9668477773666382,
0.07260524481534958,
-0.7199900150299072,
0.3039143681526184,
-0.7421334981918335,
1.738593339920044,
1.6816234588623047,
1.3611102104187012,
-0.13854874670505524,
-0.8151703476905823,
0.5937146544456482,
-0.38833725452423096,
-0.35397249460220337,
0.8355721235275269,
0.40985438227653503,
-0.19032706320285797,
-1.4136892557144165,
0.7669113278388977,
1.2471745014190674,
-0.7880194783210754,
-0.7501770853996277,
0.1077113077044487,
-0.865906834602356,
1.2305601835250854,
0.5690732598304749,
0.27617132663726807,
0.18311917781829834,
1.6314328908920288,
0.7278570532798767,
-0.4539133310317993,
0.515777051448822,
0.5377074480056763,
-0.20858004689216614,
-2.1550145149230957,
-1.0596733093261719,
0.2853931486606598,
-0.404497891664505,
-1.547107219696045,
1.382338047027588,
-1.1072874069213867,
-0.9569204449653625,
0.5561645030975342,
0.11130131036043167,
1.412000060081482,
0.3887021243572235,
1.6673346757888794,
2.103814125061035,
0.8699761033058167,
0.38063251972198486,
1.2635308504104614,
-0.08708354830741882,
-0.4390951693058014,
1.8172026872634888,
-0.4014337360858917,
0.5111201405525208,
0.9742019772529602,
-0.3283284604549408,
-1.1028616428375244,
-0.7844971418380737,
-1.214982271194458,
-0.6849806308746338,
1.202333927154541,
0.03742324560880661,
-1.0092061758041382,
0.2252320498228073,
1.5062679052352905,
0.1358639895915985,
-0.16871266067028046,
0.6973235011100769,
0.3169257938861847,
-0.739654004573822,
-0.048279695212841034,
-0.833976686000824,
0.4918384552001953,
-0.18275028467178345,
-0.2570922374725342,
0.23251570761203766,
0.5648091435432434,
1.327870488166809,
-0.061844855546951294,
0.12539732456207275,
1.1608740091323853,
-1.4223142862319946,
1.5448298454284668,
-0.6055669188499451,
0.3005788028240204,
-2.4524781703948975,
1.3616068363189697,
-0.8474146127700806,
1.888824462890625,
-2.6377224922180176,
0.48816150426864624,
-0.5413368344306946,
-0.4833991229534149,
0.22854068875312805,
-0.48631036281585693,
0.061433374881744385,
-0.13270333409309387,
-1.0459072589874268,
-0.0031955414451658726,
-0.7324115037918091,
0.6399872303009033,
1.1579797267913818,
1.3564350605010986,
-1.1794278621673584,
-0.260681688785553,
-1.7469602823257446,
-0.1531500369310379,
-0.7497522830963135,
0.3758668005466461,
-1.9911614656448364,
-0.1869419664144516,
-2.0101444721221924,
-2.2687888145446777,
-1.2785638570785522,
-0.8023043870925903,
1.0839444398880005,
0.18544431030750275,
-0.9704301953315735,
1.202984094619751,
-0.3790767788887024,
-1.866401195526123,
1.1264032125473022,
-2.232970952987671
] |
https://github.com/huggingface/datasets/issues/4677 | Random 400 Client Error when pushing dataset | I am having the same issue. Even the simple example from the documentation gives me the 400 Error
> from datasets import load_dataset
>
> dataset = load_dataset("stevhliu/demo")
> dataset.push_to_hub("processed_demo")
`requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/REDACTED/commit/main (Request ID: e-tPnYTiCdB5KPmSL86dQ)`
I "fixed" it by initializing a new virtual environment with only datasets==2.5.2 installed.
The workaround consists of saving to disk then loading from disk and pushing to hub but from the new clean virtual environment. | ## Describe the bug
When pushing a dataset, the client errors randomly with `Bad Request for url:...`.
At the next call, a new parquet file is created for each shard.
The client may fail at any random shard.
## Steps to reproduce the bug
```python
dataset.push_to_hub("ORG/DATASET", private=True, branch="main")
```
## Expected results
Push all the dataset to the Hub with no duplicates.
If it fails, it should retry or fail, but continue from the last failed shard.
## Actual results
```
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
testing.ipynb Cell 29 in <cell line: 1>()
----> [1](testing.ipynb?line=0) dataset.push_to_hub("ORG/DATASET", private=True, branch="main")
File ~/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py:4297, in Dataset.push_to_hub(self, repo_id, split, private, token, branch, max_shard_size, shard_size, embed_external_files)
4291 warnings.warn(
4292 "'shard_size' was renamed to 'max_shard_size' in version 2.1.1 and will be removed in 2.4.0.",
4293 FutureWarning,
4294 )
4295 max_shard_size = shard_size
-> 4297 repo_id, split, uploaded_size, dataset_nbytes, repo_files, deleted_size = self._push_parquet_shards_to_hub(
4298 repo_id=repo_id,
4299 split=split,
4300 private=private,
4301 token=token,
4302 branch=branch,
4303 max_shard_size=max_shard_size,
4304 embed_external_files=embed_external_files,
4305 )
4306 organization, dataset_name = repo_id.split("/")
4307 info_to_dump = self.info.copy()
File ~/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py:4195, in Dataset._push_parquet_shards_to_hub(self, repo_id, split, private, token, branch, max_shard_size, embed_external_files)
4193 shard.to_parquet(buffer)
4194 uploaded_size += buffer.tell()
-> 4195 _retry(
4196 api.upload_file,
4197 func_kwargs=dict(
4198 path_or_fileobj=buffer.getvalue(),
4199 path_in_repo=shard_path_in_repo,
4200 repo_id=repo_id,
4201 token=token,
4202 repo_type="dataset",
4203 revision=branch,
4204 identical_ok=False,
4205 ),
4206 exceptions=HTTPError,
4207 status_codes=[504],
4208 base_wait_time=2.0,
4209 max_retries=5,
4210 max_wait_time=20.0,
4211 )
4212 shards_path_in_repo.append(shard_path_in_repo)
4214 # Cleanup to remove unused files
File ~/.local/lib/python3.9/site-packages/datasets/utils/file_utils.py:284, in _retry(func, func_args, func_kwargs, exceptions, status_codes, max_retries, base_wait_time, max_wait_time)
282 except exceptions as err:
283 if retry >= max_retries or (status_codes and err.response.status_code not in status_codes):
--> 284 raise err
285 else:
286 sleep_time = min(max_wait_time, base_wait_time * 2**retry) # Exponential backoff
File ~/.local/lib/python3.9/site-packages/datasets/utils/file_utils.py:281, in _retry(func, func_args, func_kwargs, exceptions, status_codes, max_retries, base_wait_time, max_wait_time)
279 while True:
280 try:
--> 281 return func(*func_args, **func_kwargs)
282 except exceptions as err:
283 if retry >= max_retries or (status_codes and err.response.status_code not in status_codes):
File ~/.local/lib/python3.9/site-packages/huggingface_hub/hf_api.py:1967, in HfApi.upload_file(self, path_or_fileobj, path_in_repo, repo_id, token, repo_type, revision, identical_ok, commit_message, commit_description, create_pr)
1957 commit_message = (
1958 commit_message
1959 if commit_message is not None
1960 else f"Upload {path_in_repo} with huggingface_hub"
1961 )
1962 operation = CommitOperationAdd(
1963 path_or_fileobj=path_or_fileobj,
1964 path_in_repo=path_in_repo,
1965 )
-> 1967 pr_url = self.create_commit(
1968 repo_id=repo_id,
1969 repo_type=repo_type,
1970 operations=[operation],
1971 commit_message=commit_message,
1972 commit_description=commit_description,
1973 token=token,
1974 revision=revision,
1975 create_pr=create_pr,
1976 )
1977 if pr_url is not None:
1978 re_match = re.match(REGEX_DISCUSSION_URL, pr_url)
File ~/.local/lib/python3.9/site-packages/huggingface_hub/hf_api.py:1844, in HfApi.create_commit(self, repo_id, operations, commit_message, commit_description, token, repo_type, revision, create_pr, num_threads)
1836 commit_url = f"{self.endpoint}/api/{repo_type}s/{repo_id}/commit/{revision}"
1838 commit_resp = requests.post(
1839 url=commit_url,
1840 headers={"Authorization": f"Bearer {token}"},
1841 json=commit_payload,
1842 params={"create_pr": 1} if create_pr else None,
1843 )
-> 1844 _raise_for_status(commit_resp)
1845 return commit_resp.json().get("pullRequestUrl", None)
File ~/.local/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py:84, in _raise_for_status(request)
76 if request.status_code == 401:
77 # The repo was not found and the user is not Authenticated
78 raise RepositoryNotFoundError(
79 f"401 Client Error: Repository Not Found for url: {request.url}. If the"
80 " repo is private, make sure you are authenticated. (Request ID:"
81 f" {request_id})"
82 )
---> 84 _raise_with_request_id(request)
File ~/.local/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py:95, in _raise_with_request_id(request)
92 if request_id is not None and len(e.args) > 0 and isinstance(e.args[0], str):
93 e.args = (e.args[0] + f" (Request ID: {request_id})",) + e.args[1:]
---> 95 raise e
File ~/.local/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py:90, in _raise_with_request_id(request)
88 request_id = request.headers.get("X-Request-Id")
89 try:
---> 90 request.raise_for_status()
91 except Exception as e:
92 if request_id is not None and len(e.args) > 0 and isinstance(e.args[0], str):
File ~/.local/lib/python3.9/site-packages/requests/models.py:1021, in Response.raise_for_status(self)
1016 http_error_msg = (
1017 f"{self.status_code} Server Error: {reason} for url: {self.url}"
1018 )
1020 if http_error_msg:
-> 1021 raise HTTPError(http_error_msg, response=self)
HTTPError: 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/ORG/DATASET/commit/main (Request ID: a_F0IQAHJdxGKVRYyu1cF)
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.13.0-1025-aws-x86_64-with-glibc2.31
- Python version: 3.9.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 634 | 77 | Random 400 Client Error when pushing dataset
## Describe the bug
When pushing a dataset, the client errors randomly with `Bad Request for url:...`.
At the next call, a new parquet file is created for each shard.
The client may fail at any random shard.
## Steps to reproduce the bug
```python
dataset.push_to_hub("ORG/DATASET", private=True, branch="main")
```
## Expected results
Push all the dataset to the Hub with no duplicates.
If it fails, it should retry or fail, but continue from the last failed shard.
## Actual results
```
---------------------------------------------------------------------------
HTTPError Traceback (most recent call last)
testing.ipynb Cell 29 in <cell line: 1>()
----> [1](testing.ipynb?line=0) dataset.push_to_hub("ORG/DATASET", private=True, branch="main")
File ~/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py:4297, in Dataset.push_to_hub(self, repo_id, split, private, token, branch, max_shard_size, shard_size, embed_external_files)
4291 warnings.warn(
4292 "'shard_size' was renamed to 'max_shard_size' in version 2.1.1 and will be removed in 2.4.0.",
4293 FutureWarning,
4294 )
4295 max_shard_size = shard_size
-> 4297 repo_id, split, uploaded_size, dataset_nbytes, repo_files, deleted_size = self._push_parquet_shards_to_hub(
4298 repo_id=repo_id,
4299 split=split,
4300 private=private,
4301 token=token,
4302 branch=branch,
4303 max_shard_size=max_shard_size,
4304 embed_external_files=embed_external_files,
4305 )
4306 organization, dataset_name = repo_id.split("/")
4307 info_to_dump = self.info.copy()
File ~/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py:4195, in Dataset._push_parquet_shards_to_hub(self, repo_id, split, private, token, branch, max_shard_size, embed_external_files)
4193 shard.to_parquet(buffer)
4194 uploaded_size += buffer.tell()
-> 4195 _retry(
4196 api.upload_file,
4197 func_kwargs=dict(
4198 path_or_fileobj=buffer.getvalue(),
4199 path_in_repo=shard_path_in_repo,
4200 repo_id=repo_id,
4201 token=token,
4202 repo_type="dataset",
4203 revision=branch,
4204 identical_ok=False,
4205 ),
4206 exceptions=HTTPError,
4207 status_codes=[504],
4208 base_wait_time=2.0,
4209 max_retries=5,
4210 max_wait_time=20.0,
4211 )
4212 shards_path_in_repo.append(shard_path_in_repo)
4214 # Cleanup to remove unused files
File ~/.local/lib/python3.9/site-packages/datasets/utils/file_utils.py:284, in _retry(func, func_args, func_kwargs, exceptions, status_codes, max_retries, base_wait_time, max_wait_time)
282 except exceptions as err:
283 if retry >= max_retries or (status_codes and err.response.status_code not in status_codes):
--> 284 raise err
285 else:
286 sleep_time = min(max_wait_time, base_wait_time * 2**retry) # Exponential backoff
File ~/.local/lib/python3.9/site-packages/datasets/utils/file_utils.py:281, in _retry(func, func_args, func_kwargs, exceptions, status_codes, max_retries, base_wait_time, max_wait_time)
279 while True:
280 try:
--> 281 return func(*func_args, **func_kwargs)
282 except exceptions as err:
283 if retry >= max_retries or (status_codes and err.response.status_code not in status_codes):
File ~/.local/lib/python3.9/site-packages/huggingface_hub/hf_api.py:1967, in HfApi.upload_file(self, path_or_fileobj, path_in_repo, repo_id, token, repo_type, revision, identical_ok, commit_message, commit_description, create_pr)
1957 commit_message = (
1958 commit_message
1959 if commit_message is not None
1960 else f"Upload {path_in_repo} with huggingface_hub"
1961 )
1962 operation = CommitOperationAdd(
1963 path_or_fileobj=path_or_fileobj,
1964 path_in_repo=path_in_repo,
1965 )
-> 1967 pr_url = self.create_commit(
1968 repo_id=repo_id,
1969 repo_type=repo_type,
1970 operations=[operation],
1971 commit_message=commit_message,
1972 commit_description=commit_description,
1973 token=token,
1974 revision=revision,
1975 create_pr=create_pr,
1976 )
1977 if pr_url is not None:
1978 re_match = re.match(REGEX_DISCUSSION_URL, pr_url)
File ~/.local/lib/python3.9/site-packages/huggingface_hub/hf_api.py:1844, in HfApi.create_commit(self, repo_id, operations, commit_message, commit_description, token, repo_type, revision, create_pr, num_threads)
1836 commit_url = f"{self.endpoint}/api/{repo_type}s/{repo_id}/commit/{revision}"
1838 commit_resp = requests.post(
1839 url=commit_url,
1840 headers={"Authorization": f"Bearer {token}"},
1841 json=commit_payload,
1842 params={"create_pr": 1} if create_pr else None,
1843 )
-> 1844 _raise_for_status(commit_resp)
1845 return commit_resp.json().get("pullRequestUrl", None)
File ~/.local/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py:84, in _raise_for_status(request)
76 if request.status_code == 401:
77 # The repo was not found and the user is not Authenticated
78 raise RepositoryNotFoundError(
79 f"401 Client Error: Repository Not Found for url: {request.url}. If the"
80 " repo is private, make sure you are authenticated. (Request ID:"
81 f" {request_id})"
82 )
---> 84 _raise_with_request_id(request)
File ~/.local/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py:95, in _raise_with_request_id(request)
92 if request_id is not None and len(e.args) > 0 and isinstance(e.args[0], str):
93 e.args = (e.args[0] + f" (Request ID: {request_id})",) + e.args[1:]
---> 95 raise e
File ~/.local/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py:90, in _raise_with_request_id(request)
88 request_id = request.headers.get("X-Request-Id")
89 try:
---> 90 request.raise_for_status()
91 except Exception as e:
92 if request_id is not None and len(e.args) > 0 and isinstance(e.args[0], str):
File ~/.local/lib/python3.9/site-packages/requests/models.py:1021, in Response.raise_for_status(self)
1016 http_error_msg = (
1017 f"{self.status_code} Server Error: {reason} for url: {self.url}"
1018 )
1020 if http_error_msg:
-> 1021 raise HTTPError(http_error_msg, response=self)
HTTPError: 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/ORG/DATASET/commit/main (Request ID: a_F0IQAHJdxGKVRYyu1cF)
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.13.0-1025-aws-x86_64-with-glibc2.31
- Python version: 3.9.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
I am having the same issue. Even the simple example from the documentation gives me the 400 Error
> from datasets import load_dataset
>
> dataset = load_dataset("stevhliu/demo")
> dataset.push_to_hub("processed_demo")
`requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/REDACTED/commit/main (Request ID: e-tPnYTiCdB5KPmSL86dQ)`
I "fixed" it by initializing a new virtual environment with only datasets==2.5.2 installed.
The workaround consists of saving to disk then loading from disk and pushing to hub but from the new clean virtual environment. | [
-1.2384439706802368,
-0.7884247899055481,
-0.6047018766403198,
1.414759635925293,
-0.08069244772195816,
-1.3183231353759766,
0.1665583848953247,
-0.8547730445861816,
1.5520405769348145,
-0.8890072703361511,
0.2871994078159332,
-1.6547975540161133,
0.0861109122633934,
-0.6192706227302551,
-0.6547444462776184,
-0.7363616228103638,
-0.38094061613082886,
-0.7387392520904541,
1.1250150203704834,
2.39785099029541,
1.248696208000183,
-1.291770577430725,
2.7725377082824707,
0.6559298038482666,
-0.22120167315006256,
-0.8760556578636169,
0.42067867517471313,
-0.060228850692510605,
-1.464353322982788,
-0.2592693567276001,
-1.0379530191421509,
-0.05956883355975151,
-0.7358285784721375,
-0.5279941558837891,
0.06264061480760574,
0.4890974164009094,
-0.18092858791351318,
-0.3376708924770355,
-0.41043299436569214,
-0.6898446679115295,
0.6186902523040771,
-0.31724169850349426,
0.8646262884140015,
-0.32871291041374207,
1.8000993728637695,
-0.6853010654449463,
0.5734487175941467,
0.5824849605560303,
1.1929688453674316,
0.26014381647109985,
-0.06376129388809204,
0.37032514810562134,
0.26782289147377014,
0.03490724787116051,
0.5280005931854248,
1.2061116695404053,
0.6655523180961609,
0.5677871108055115,
0.6797653436660767,
-2.251114845275879,
1.428995132446289,
-0.8906580805778503,
0.19800809025764465,
1.387427806854248,
-1.0429751873016357,
0.48903489112854004,
-1.8469722270965576,
-0.15230590105056763,
0.4359176456928253,
-2.29036808013916,
0.21454043686389923,
-1.317430853843689,
-0.5695443153381348,
1.0735493898391724,
0.4407302737236023,
-1.221314787864685,
-0.07007139921188354,
-0.45961371064186096,
0.8810209035873413,
0.3949292004108429,
1.0284830331802368,
-1.7158759832382202,
0.06943649053573608,
-0.22629287838935852,
0.3199766278266907,
-1.2217025756835938,
-1.6351346969604492,
0.6968868970870972,
0.7262434363365173,
0.5831915736198425,
-0.15289367735385895,
0.9059197902679443,
-1.1509181261062622,
0.8127260208129883,
-0.9507448673248291,
-1.7486259937286377,
-1.3752268552780151,
-2.4517006874084473,
-2.437206745147705,
0.7643547654151917,
-0.4437185823917389,
-0.4718935489654541,
2.1382737159729004,
-1.2307180166244507,
-1.6429107189178467,
1.123673915863037,
0.18638955056667328,
-0.00892290286719799,
2.4656667709350586,
0.1513066440820694,
-0.891588032245636,
0.7481581568717957,
-0.9542129039764404,
0.6686969995498657,
-0.3563942015171051,
1.210304856300354,
0.4325871169567108,
-1.1101940870285034,
1.5905840396881104,
-0.3718802332878113,
0.4793117940425873,
-0.6504225730895996,
-0.405174195766449,
-0.6226420402526855,
0.1702999621629715,
1.990596890449524,
-0.15580298006534576,
1.5013376474380493,
-0.12583032250404358,
-1.4349685907363892,
-1.370648741722107,
0.8361755013465881,
0.4274757206439972,
-0.8492661714553833,
0.17183883488178253,
-0.45202311873435974,
0.22525759041309357,
0.08653706312179565,
1.122936487197876,
1.299847960472107,
0.8426057696342468,
-0.28777605295181274,
-0.8883954882621765,
0.04976380243897438,
-0.16310971975326538,
-0.6324214935302734,
-1.7063426971435547,
-0.2856803238391876,
0.09077983349561691,
0.6482215523719788,
-1.122859239578247,
1.991494059562683,
0.900874137878418,
2.0223307609558105,
0.9542532563209534,
-0.4185376465320587,
1.5451946258544922,
0.07575678080320358,
1.8984527587890625,
-0.30571168661117554,
0.7111758589744568,
-0.6103284358978271,
-1.2161908149719238,
0.7766767740249634,
-0.31972047686576843,
-1.913540244102478,
-0.4801674783229828,
-0.8257166147232056,
-0.18092525005340576,
-0.870012640953064,
1.0557563304901123,
-0.18586529791355133,
-1.3830358982086182,
0.2538316249847412,
-0.6311419606208801,
0.13148002326488495,
-1.3931665420532227,
0.31565770506858826,
0.7307827472686768,
-0.7544336318969727,
0.08185124397277832,
-0.4410565197467804,
-1.3670138120651245,
-0.6437466740608215,
0.4230961203575134,
1.786291480064392,
-0.5932567715644836,
1.029982328414917,
1.0398257970809937,
-0.5704333782196045,
-0.19443920254707336,
0.4743867814540863,
-0.30910661816596985,
0.814375638961792,
-0.9999400973320007,
-0.4359424412250519,
1.1480286121368408,
-0.32803091406822205,
-0.5783619284629822,
1.2728841304779053,
0.6267719268798828,
-0.9808687567710876,
-0.3719622790813446,
-0.13753153383731842,
-0.857571542263031,
0.12072187662124634,
-1.587839961051941,
-0.0870966762304306,
0.3883064091205597,
-1.5321109294891357,
-0.3976024091243744,
-0.017437344416975975,
1.3173643350601196,
-0.055565204471349716,
1.3956546783447266,
-0.22501397132873535,
-0.09301646798849106,
-0.48918071389198303,
-0.44979363679885864,
0.16586372256278992,
-0.033149026334285736,
-0.5388706922531128,
0.3177628517150879,
-0.8186366558074951,
0.2159348726272583,
1.4726704359054565,
0.1831253319978714,
0.1251772940158844,
0.4607570469379425,
1.1597585678100586,
0.38005074858665466,
-0.1980060338973999,
-0.885769248008728,
-1.6325042247772217,
2.0757293701171875,
-1.5787100791931152,
1.9562703371047974,
0.8597882986068726,
-0.09342700242996216,
-1.8074567317962646,
-1.7832353115081787,
1.4446028470993042,
1.0850822925567627,
2.439789295196533,
0.5085355043411255,
0.4830585718154907,
-0.840343713760376,
-0.6312479972839355,
0.5296979546546936,
-0.8071478009223938,
-0.8478904962539673,
0.2554970383644104,
2.334296703338623,
1.6681578159332275,
-0.33846333622932434,
-0.12435029447078705,
-0.9773618578910828,
1.3166460990905762,
-0.255368173122406,
0.349871963262558,
1.9034250974655151,
-0.4191175401210785,
-1.0775960683822632,
1.2982059717178345,
-2.390087127685547,
0.24431544542312622,
2.031165599822998,
0.27457311749458313,
0.062199726700782776,
-1.179425835609436,
-0.679060161113739,
-0.1500474512577057,
-0.4571922719478607,
-1.2890976667404175,
0.4773670434951782,
-0.22837615013122559,
-0.7803277969360352,
-1.3223923444747925,
0.07170449197292328,
-1.2260661125183105,
-1.749466061592102,
0.27002885937690735,
1.7914602756500244,
2.208066463470459,
-0.7403632402420044,
1.3433583974838257,
-0.2689708173274994,
0.18710196018218994,
1.1056652069091797,
1.1979377269744873,
3.153766632080078,
1.8819702863693237,
-1.2770006656646729,
0.6690816283226013,
-0.17767652869224548,
-0.4445420801639557,
1.1809697151184082,
-1.0246238708496094,
1.1979925632476807,
-0.21911752223968506,
-1.33639657497406,
-1.255900502204895,
0.9666537046432495,
0.3711133897304535,
-0.04648714140057564,
-0.4210449457168579,
1.1729947328567505,
0.2165621966123581,
1.3595991134643555,
0.6459688544273376,
-0.3356474041938782,
0.5412203073501587,
-0.4003618657588959,
-0.5980427861213684,
1.606117606163025,
0.09594134241342545,
-1.5200557708740234,
-2.262967109680176,
-0.19283677637577057,
-0.984750509262085,
0.01778409816324711,
-0.8895605206489563,
-0.9911034107208252,
1.5222268104553223,
0.42209020256996155,
-1.0009533166885376,
-0.13221067190170288,
-0.3360669016838074,
-0.5432181358337402,
2.659384250640869,
-1.3228408098220825,
-0.23843449354171753,
-0.9270632266998291,
-0.6910245418548584,
1.5179938077926636,
-1.2275750637054443,
-0.2638615071773529,
-1.0241823196411133,
-0.4898397624492645,
-1.2050437927246094,
-0.442114919424057,
-0.1137780025601387,
-0.8479878902435303,
0.7278668284416199,
0.028532352298498154,
-1.3087103366851807,
-0.3023601770401001,
-1.0378011465072632,
0.8370132446289062,
-0.17222072184085846,
0.09711308777332306,
1.676360011100769,
0.1772002875804901,
-0.3571822941303253,
0.8476541042327881,
1.2237604856491089,
0.6469861268997192,
-0.5266920924186707,
0.16822846233844757,
-0.6714351773262024,
0.4600759446620941,
-1.0747733116149902,
0.4250301718711853,
-2.9515838623046875,
0.6221643090248108,
-0.05937106907367706,
-0.03151574730873108,
-0.14996623992919922,
-1.4366543292999268,
0.9848621487617493,
2.4252209663391113,
-1.1514661312103271,
0.6671149730682373,
0.27636945247650146,
1.1563425064086914,
-1.6243205070495605,
0.13402491807937622,
-0.6411954164505005,
2.125270366668701,
0.11137472093105316,
1.08589768409729,
-0.532947838306427,
-2.4090065956115723,
0.598318874835968,
-1.2061737775802612,
-1.0526658296585083,
0.7661985158920288,
-0.8922386169433594,
0.2001657336950302,
-1.17447829246521,
-0.2030666470527649,
-0.8597027063369751,
-1.192120909690857,
0.543908953666687,
0.05459538847208023,
0.6993195414543152,
-0.579830527305603,
0.26958614587783813,
-2.3285374641418457,
-1.3497395515441895,
-0.21665669977664948,
-0.8851081728935242,
0.4668351709842682,
-0.3915974199771881,
0.7232089638710022,
-0.1071765124797821,
0.04139375314116478,
0.37593522667884827,
1.4680488109588623,
3.2670583724975586,
0.056180812418460846,
0.35656070709228516,
-0.2557482421398163,
-1.0712724924087524,
1.5208643674850464,
0.9179796576499939,
-0.23013631999492645,
-0.6791725158691406,
-0.9645345211029053,
1.4078395366668701,
1.91802179813385,
0.969429612159729,
0.10784713923931122,
-0.8763468265533447,
-0.705483615398407,
0.12676657736301422,
0.1771335005760193,
0.38512012362480164,
0.9827799201011658,
0.17171086370944977,
0.17985354363918304,
1.379169225692749,
1.0813897848129272,
-0.27458080649375916,
0.3754281997680664,
-0.8725390434265137,
-0.3803652226924896,
0.5933894515037537,
0.3295844495296478,
-0.04613339900970459,
0.2723909020423889,
-1.0231889486312866,
-0.20247584581375122,
-0.27518346905708313,
-0.8608247637748718,
-0.7135558724403381,
-0.37778782844543457,
-0.44550153613090515,
1.7561554908752441,
-0.0652741938829422,
-0.46661922335624695,
0.04472127929329872,
-0.7917686700820923,
-0.2220393270254135,
-1.1054021120071411,
0.2581876516342163,
-0.10821562260389328,
-0.027798552066087723,
-0.21164429187774658,
1.7227206230163574,
-0.952720046043396,
-2.2294960021972656,
0.14026975631713867,
0.1983448565006256,
-0.21120041608810425,
-0.053593702614307404,
1.8765478134155273,
0.5020875334739685,
1.431559443473816,
1.5638247728347778,
1.0838687419891357,
-0.5877012610435486,
-1.3128283023834229,
0.7978495955467224,
0.9382206797599792,
-1.4246172904968262,
0.9007615447044373,
-0.22052784264087677,
-0.5561452507972717,
0.5560023784637451,
1.1679292917251587,
0.4931238889694214,
-2.002551555633545,
0.8880766034126282,
-1.2687768936157227,
0.8154214024543762,
0.7997916340827942,
0.8403468728065491,
0.06901615113019943,
0.8955078125,
-1.1779791116714478,
-1.0284680128097534,
-0.5284620523452759,
-0.6706154942512512,
1.9043833017349243,
-0.2845328152179718,
0.38765743374824524,
-0.3155387043952942,
-1.2669135332107544,
0.10298693180084229,
0.6352129578590393,
0.3254031538963318,
-0.32838210463523865,
0.7689701318740845,
-0.7713363766670227,
-1.0975909233093262,
-1.3712844848632812,
-0.48343172669410706,
-1.0535821914672852,
-0.7829532623291016,
1.0958694219589233,
0.6501470804214478,
0.47890734672546387,
1.8455275297164917,
0.692462682723999,
0.2684721052646637,
-2.630500316619873,
0.8484793901443481,
0.38271698355674744,
-0.1468764990568161,
0.8765145540237427,
0.37292221188545227,
1.239278793334961,
-0.1402302086353302,
0.5624140501022339,
-2.447903633117676,
2.2776336669921875,
-0.292150616645813,
0.7727255821228027,
0.1137363463640213,
-0.008666768670082092,
0.982160210609436,
0.587211549282074,
0.5432045459747314,
-1.0345876216888428,
0.8826802968978882,
-0.5797963738441467,
1.2212063074111938,
0.8723263740539551,
-0.8736110925674438,
0.12566451728343964,
1.1892207860946655,
0.3550509512424469,
-0.5524052381515503,
-0.8990049362182617,
-0.8928288817405701,
0.8779826760292053,
1.7998188734054565,
-0.03296643868088722,
0.11297865957021713,
0.7617071866989136,
0.6657712459564209,
-1.189366340637207,
0.02615739032626152,
-0.5773380398750305,
-0.7764541506767273,
1.7020456790924072,
2.060337543487549,
-0.09321839362382889,
-0.03819654881954193,
-0.7238839864730835,
-1.496068000793457,
0.8916927576065063,
0.07743874192237854,
-0.09336046874523163,
0.7315871119499207,
-0.5547968745231628,
1.067807912826538,
0.9083319902420044,
0.9378937482833862,
0.3006438612937927,
0.031625162810087204,
0.2960186302661896,
-0.29293566942214966,
-1.0725007057189941,
-0.2727465033531189,
-0.9594603180885315,
-2.6732335090637207,
0.42828020453453064,
-0.32404839992523193,
-1.493031620979309,
0.13661547005176544,
-0.9362343549728394,
0.7386908531188965,
-0.5254024267196655,
-1.1576889753341675,
-1.3260024785995483,
0.22006501257419586,
-0.1260218322277069,
0.8284409642219543,
-1.7017017602920532,
-0.23487482964992523,
1.1069371700286865,
0.8831073045730591,
-0.6999295353889465,
0.9296294450759888,
0.30142301321029663,
0.9110668301582336,
0.90493243932724,
-0.3947048783302307,
0.4781216084957123,
0.32553935050964355,
-1.3791887760162354,
0.27594074606895447,
1.3886946439743042,
0.15080620348453522,
1.35494065284729,
-0.4131910800933838,
-0.08065471053123474,
0.36840781569480896,
-0.41531169414520264,
-0.5329416394233704,
-0.6355742812156677,
0.7047663927078247,
-0.12974298000335693,
-0.90765780210495,
-0.11900373548269272,
-0.03866776078939438,
-0.21808797121047974,
0.2600356638431549,
-1.4751611948013306,
-0.15547923743724823,
-0.4201205372810364,
-0.6516520977020264,
-1.4193270206451416,
-0.13840745389461517,
1.325797438621521,
-0.8403022885322571,
-0.10246551036834717,
0.5634872913360596,
0.29868876934051514,
0.5359179973602295,
0.6904332637786865,
-0.7215326428413391,
-0.32418516278266907,
-0.09261764585971832,
-0.3717813491821289,
0.3163168728351593,
1.3503024578094482,
-0.09135915338993073,
-0.9946336150169373,
0.5187209248542786,
-0.16797535121440887,
0.17027229070663452,
1.8653395175933838,
0.08905027061700821,
-0.8586861491203308,
0.3463914692401886,
-0.685322105884552,
1.8823434114456177,
1.5990879535675049,
1.285804271697998,
-0.1499076932668686,
-0.8722689151763916,
0.6603617072105408,
-0.36283260583877563,
-0.39905405044555664,
0.802696704864502,
0.39568373560905457,
-0.33694884181022644,
-1.4019482135772705,
0.750373899936676,
1.1977465152740479,
-0.7017557621002197,
-0.7781562209129333,
0.06991320848464966,
-0.7208225727081299,
1.2632157802581787,
0.6721026301383972,
0.3824442923069,
0.25947585701942444,
1.7362067699432373,
0.815309464931488,
-0.6447546482086182,
0.49756962060928345,
0.41448768973350525,
-0.1600048989057541,
-2.0245213508605957,
-1.1241693496704102,
0.2624965310096741,
-0.47502321004867554,
-1.4241750240325928,
1.4588127136230469,
-1.2193711996078491,
-1.0530788898468018,
0.5463511943817139,
0.12169161438941956,
1.250150442123413,
0.3051646649837494,
1.7182142734527588,
1.9791074991226196,
0.9214298725128174,
0.5069294571876526,
1.21720552444458,
-0.2691551148891449,
-0.2638278603553772,
1.6716673374176025,
-0.46421727538108826,
0.6547936201095581,
1.1172783374786377,
-0.41936102509498596,
-1.1361013650894165,
-0.7874142527580261,
-1.169188141822815,
-0.7489344477653503,
1.0520445108413696,
0.14257222414016724,
-1.0597151517868042,
0.34487780928611755,
1.5590088367462158,
-0.016604162752628326,
-0.04518800601363182,
0.6788708567619324,
0.4370502829551697,
-0.6648769378662109,
-0.0872417539358139,
-0.9868828058242798,
0.6247183680534363,
-0.4303525686264038,
-0.40934887528419495,
0.2686462104320526,
0.5554263591766357,
1.2661503553390503,
0.05188911408185959,
0.13964691758155823,
1.2388840913772583,
-1.444399118423462,
1.2504976987838745,
-0.9559289216995239,
0.3396150469779968,
-2.2551422119140625,
1.3475587368011475,
-0.8770576119422913,
1.983331322669983,
-2.7155418395996094,
0.4350716769695282,
-0.43922045826911926,
-0.6234586238861084,
0.18412935733795166,
-0.22531233727931976,
0.05958070605993271,
-0.1395025998353958,
-1.0761499404907227,
-0.09696655720472336,
-0.8633448481559753,
0.5251492857933044,
1.1348934173583984,
1.3926661014556885,
-0.9856488704681396,
-0.2519094944000244,
-1.6013381481170654,
-0.13643474876880646,
-0.5300315022468567,
0.07469552755355835,
-1.7795931100845337,
-0.11435431241989136,
-2.1232495307922363,
-2.423295497894287,
-1.2788333892822266,
-1.0286728143692017,
1.387214183807373,
0.1136222630739212,
-0.8521583080291748,
1.163993239402771,
-0.3614795506000519,
-1.8604557514190674,
1.163441777229309,
-2.18391752243042
] |
https://github.com/huggingface/datasets/issues/4676 | Dataset.map gets stuck on _cast_to_python_objects | Are you able to reproduce this? My example is small enough that it should be easy to try. | ## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 635 | 18 | Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Are you able to reproduce this? My example is small enough that it should be easy to try. | [
-1.2169482707977295,
-1.0080511569976807,
-0.6598380208015442,
1.5983015298843384,
-0.14321206510066986,
-1.1522984504699707,
0.1424059122800827,
-1.035354495048523,
1.6434026956558228,
-0.8429833650588989,
0.24568156898021698,
-1.6420706510543823,
0.006780929863452911,
-0.5428546667098999,
-0.73307865858078,
-0.8180152177810669,
-0.33442574739456177,
-0.7778142094612122,
1.0928102731704712,
2.4286437034606934,
1.1968104839324951,
-1.459754228591919,
2.7628345489501953,
0.7026398181915283,
-0.16847091913223267,
-1.1236618757247925,
0.530170738697052,
-0.05772128328680992,
-1.3182717561721802,
-0.497509241104126,
-0.9770482182502747,
0.06696602702140808,
-0.6532946825027466,
-0.4266339838504791,
0.004323503002524376,
0.42533019185066223,
-0.2199392169713974,
-0.3968186676502228,
-0.5455885529518127,
-0.7939310073852539,
0.461095929145813,
-0.3866959512233734,
0.8792977333068848,
-0.21509259939193726,
1.7926501035690308,
-0.4722885489463806,
0.4033288061618805,
0.6943717002868652,
1.368427038192749,
0.19208399951457977,
0.007131187245249748,
0.2499179095029831,
0.3422917425632477,
-0.008769970387220383,
0.5407464504241943,
1.1437424421310425,
0.707592248916626,
0.4482572078704834,
0.6901947855949402,
-2.2774922847747803,
1.4101741313934326,
-1.045516014099121,
0.35192257165908813,
1.3199472427368164,
-0.9312713742256165,
0.39111828804016113,
-1.7053622007369995,
0.012451963499188423,
0.6386255621910095,
-2.2097177505493164,
0.29974687099456787,
-1.303740382194519,
-0.48148003220558167,
1.0561656951904297,
0.39514726400375366,
-1.2642406225204468,
0.15493181347846985,
-0.4550682306289673,
1.1064361333847046,
0.46885785460472107,
1.003474235534668,
-1.7421844005584717,
-0.050199951976537704,
-0.20416352152824402,
0.1626346856355667,
-1.280695915222168,
-1.5856549739837646,
0.5825295448303223,
0.5615191459655762,
0.6404588222503662,
-0.14413166046142578,
1.0795987844467163,
-1.1251336336135864,
0.7870400547981262,
-1.0062514543533325,
-1.6828423738479614,
-1.3689244985580444,
-2.2938272953033447,
-2.2301135063171387,
0.6786895990371704,
-0.4634278118610382,
-0.47787758708000183,
1.9783796072006226,
-0.9522553086280823,
-1.7007194757461548,
1.125571370124817,
0.2510012686252594,
0.037202052772045135,
2.4297380447387695,
0.2387779802083969,
-0.7365620732307434,
0.4407949149608612,
-0.8516362309455872,
0.8067604303359985,
-0.39159438014030457,
1.3801548480987549,
0.45597773790359497,
-1.0304219722747803,
1.5470435619354248,
-0.37298139929771423,
0.4891003966331482,
-0.6518034338951111,
-0.4928267002105713,
-0.7250680327415466,
0.2158253937959671,
1.898941993713379,
-0.26867568492889404,
1.499445915222168,
-0.42073312401771545,
-1.56549870967865,
-1.615979790687561,
0.9424231648445129,
0.43518534302711487,
-0.8336610198020935,
0.12936273217201233,
-0.4857531189918518,
0.1255646049976349,
-0.1310749351978302,
1.1894365549087524,
1.3518935441970825,
0.6606019735336304,
-0.3346390724182129,
-0.7918137311935425,
0.12844505906105042,
-0.2306673526763916,
-0.6210557818412781,
-1.8652775287628174,
-0.3786237835884094,
0.0918317437171936,
0.7061660289764404,
-1.1958733797073364,
1.7293734550476074,
0.9487584829330444,
1.888041377067566,
1.037318229675293,
-0.4364515244960785,
1.4819865226745605,
0.06200983747839928,
1.8251535892486572,
-0.637680172920227,
0.6626091599464417,
-0.435800164937973,
-1.112145185470581,
0.8710073828697205,
-0.32747769355773926,
-1.9215574264526367,
-0.7837563753128052,
-0.7584537863731384,
-0.2600710093975067,
-0.7608314752578735,
0.9055525064468384,
-0.3639109134674072,
-1.538606882095337,
0.1760842651128769,
-0.682205855846405,
0.25530463457107544,
-1.0798622369766235,
0.29156672954559326,
0.7854816317558289,
-0.6114642024040222,
0.047485120594501495,
-0.30003440380096436,
-1.232170581817627,
-0.4918234646320343,
0.414419025182724,
1.8785983324050903,
-0.6657926440238953,
0.9106335043907166,
1.0394965410232544,
-0.6228965520858765,
0.05028234422206879,
0.29390496015548706,
-0.22525687515735626,
0.8139711022377014,
-1.0545629262924194,
-0.5436624884605408,
1.230805516242981,
-0.32766056060791016,
-0.638604998588562,
1.5130126476287842,
0.7296974658966064,
-1.0181684494018555,
-0.22223292291164398,
-0.10888035595417023,
-0.8454641103744507,
0.06288054585456848,
-1.56430184841156,
-0.12673668563365936,
0.49678733944892883,
-1.5678902864456177,
-0.3994004428386688,
-0.2509821355342865,
1.3293752670288086,
-0.17566119134426117,
1.4383158683776855,
-0.3416454493999481,
-0.1100451648235321,
-0.2481238842010498,
-0.41327276825904846,
0.1871282458305359,
-0.23233360052108765,
-0.5385339856147766,
0.19307614862918854,
-0.8814765810966492,
0.36111271381378174,
1.5497477054595947,
0.30699020624160767,
0.011875208467245102,
0.44106316566467285,
1.1377488374710083,
0.486928254365921,
-0.04687432944774628,
-0.8343781232833862,
-1.5600335597991943,
1.9746284484863281,
-1.504231572151184,
2.0566980838775635,
0.7942736148834229,
-0.05222760885953903,
-1.770592212677002,
-1.7428593635559082,
1.2923401594161987,
1.0803409814834595,
2.3690261840820312,
0.5190116763114929,
0.32562246918678284,
-0.8573813438415527,
-0.6937536597251892,
0.3404305875301361,
-0.9990725517272949,
-0.7371420860290527,
0.1531336009502411,
2.396744728088379,
1.8083035945892334,
-0.4141475558280945,
-0.22010676562786102,
-0.9797134399414062,
1.4326270818710327,
-0.22323480248451233,
0.3126581013202667,
1.9934120178222656,
-0.1931660920381546,
-1.0763972997665405,
1.2858355045318604,
-2.4084084033966064,
0.22898903489112854,
2.0989322662353516,
0.3032456040382385,
0.15371470153331757,
-1.4395662546157837,
-0.620507001876831,
-0.30245834589004517,
-0.402231365442276,
-1.2744711637496948,
0.5068546533584595,
-0.2603011727333069,
-0.8088617920875549,
-1.474726915359497,
0.16931559145450592,
-1.1780622005462646,
-1.664254903793335,
0.25660598278045654,
1.9446152448654175,
2.1257174015045166,
-0.6836831569671631,
1.5903033018112183,
-0.27286815643310547,
0.17495736479759216,
1.2114499807357788,
1.2975780963897705,
3.0322647094726562,
1.8575806617736816,
-1.2723264694213867,
0.6497544050216675,
-0.20069262385368347,
-0.5016382932662964,
1.0742714405059814,
-1.136963963508606,
1.2355384826660156,
-0.12310262024402618,
-1.1535452604293823,
-1.283331036567688,
1.0796265602111816,
0.5129719376564026,
0.010242067277431488,
-0.5501317381858826,
1.2577266693115234,
0.035489339381456375,
1.3268282413482666,
0.5785970687866211,
-0.33564293384552,
0.4862869381904602,
-0.43042072653770447,
-0.6212809085845947,
1.5169322490692139,
0.19824928045272827,
-1.4469294548034668,
-2.1629488468170166,
-0.15942725539207458,
-0.880574107170105,
0.07854393124580383,
-0.6093321442604065,
-1.0187879800796509,
1.5975309610366821,
0.3438471257686615,
-1.252477765083313,
-0.2362595498561859,
-0.3028283715248108,
-0.5315849184989929,
2.6190011501312256,
-1.2158117294311523,
-0.24226520955562592,
-0.9817292094230652,
-0.6592309474945068,
1.6199445724487305,
-1.2382158041000366,
-0.2069467455148697,
-1.015281319618225,
-0.6276340484619141,
-1.2633291482925415,
-0.5353933572769165,
-0.00580429146066308,
-0.8891298174858093,
0.707596480846405,
0.1841297447681427,
-1.1456588506698608,
-0.3457913398742676,
-0.8397778868675232,
1.0083950757980347,
-0.09885025024414062,
0.18726694583892822,
1.830609917640686,
0.22826506197452545,
-0.3911782205104828,
0.860323965549469,
1.144938588142395,
0.6313024759292603,
-0.6084709763526917,
0.1247176080942154,
-0.6065889596939087,
0.4396803379058838,
-1.3197945356369019,
0.30845093727111816,
-2.9461209774017334,
0.7074435949325562,
-0.034979209303855896,
-0.15188580751419067,
-0.07006095349788666,
-1.2874187231063843,
1.1272532939910889,
2.5512094497680664,
-1.2010784149169922,
0.5586676597595215,
0.3920278251171112,
1.1932240724563599,
-1.613205909729004,
0.3371391296386719,
-0.4503699243068695,
2.0690758228302,
0.2309863120317459,
1.2799991369247437,
-0.5041399002075195,
-2.411259889602661,
0.5964765548706055,
-1.315406084060669,
-0.9903551340103149,
0.7606605291366577,
-0.8572610020637512,
0.10189208388328552,
-1.4215259552001953,
-0.25011566281318665,
-0.8798683881759644,
-1.2444039583206177,
0.6458080410957336,
0.08694043755531311,
0.37817615270614624,
-0.608572781085968,
0.4077872335910797,
-2.1536202430725098,
-1.3652641773223877,
-0.15167994797229767,
-0.9544826745986938,
0.5525524616241455,
-0.5044457912445068,
0.6120312213897705,
-0.135515958070755,
0.06842519342899323,
0.30746355652809143,
1.4513975381851196,
3.391278028488159,
0.24234820902347565,
0.2933330833911896,
-0.1864665448665619,
-0.9456949830055237,
1.4296058416366577,
0.9492653012275696,
-0.1963559091091156,
-0.5442306399345398,
-1.0908422470092773,
1.362592101097107,
2.0004029273986816,
0.9358892440795898,
0.047540828585624695,
-0.8819899559020996,
-0.7773787379264832,
-0.03832749277353287,
0.16644878685474396,
0.48617449402809143,
0.8713850378990173,
0.09143489599227905,
0.11585444211959839,
1.4191763401031494,
1.2121413946151733,
-0.41146400570869446,
0.44569864869117737,
-0.9117113351821899,
-0.41091683506965637,
0.4593007564544678,
0.24258984625339508,
-0.0631483867764473,
0.41675204038619995,
-1.0091094970703125,
-0.15004074573516846,
-0.45707541704177856,
-0.8896481990814209,
-0.7227439284324646,
-0.39031997323036194,
-0.35448068380355835,
1.5857110023498535,
0.20978450775146484,
-0.5799372792243958,
0.022389333695173264,
-0.7707067131996155,
-0.14802996814250946,
-1.0914117097854614,
0.23511752486228943,
-0.07366131246089935,
-0.11626213788986206,
-0.16365116834640503,
1.7503365278244019,
-0.8720110058784485,
-2.067298650741577,
0.11161473393440247,
0.2856716215610504,
-0.2678271532058716,
0.1961248368024826,
1.7213128805160522,
0.5342632532119751,
1.425153136253357,
1.301084280014038,
0.9684112668037415,
-0.5881977677345276,
-1.2787983417510986,
0.7750467658042908,
0.9713947772979736,
-1.3833811283111572,
0.8856021761894226,
-0.1162417083978653,
-0.5303784012794495,
0.7458386421203613,
1.3201236724853516,
0.48096343874931335,
-2.013378143310547,
0.8034443259239197,
-1.078521966934204,
0.8723738193511963,
0.751980185508728,
0.629342794418335,
0.2326832413673401,
0.8431374430656433,
-1.2584508657455444,
-1.0844060182571411,
-0.7074727416038513,
-0.7433179020881653,
1.9595813751220703,
-0.3274889290332794,
0.5660924911499023,
-0.15651674568653107,
-1.3134878873825073,
-0.15429985523223877,
0.713513195514679,
0.31270501017570496,
-0.5116880536079407,
0.839613139629364,
-0.7581154108047485,
-1.1115236282348633,
-1.2766923904418945,
-0.5121182203292847,
-1.0147614479064941,
-1.0225059986114502,
1.0323512554168701,
0.7683507204055786,
0.33843284845352173,
1.9090360403060913,
0.5762279629707336,
0.2460649162530899,
-2.546069383621216,
0.8377681970596313,
0.30235347151756287,
-0.12124842405319214,
0.8982380032539368,
0.321205198764801,
1.0811161994934082,
0.07902984321117401,
0.551339328289032,
-2.4691174030303955,
2.3236610889434814,
-0.1843220591545105,
0.7260183691978455,
0.04105687513947487,
-0.15113532543182373,
1.203865885734558,
0.6204969882965088,
0.5617637634277344,
-1.066737174987793,
0.7263755798339844,
-0.5528807640075684,
1.2456459999084473,
0.8426097631454468,
-0.8172197937965393,
-0.08555538952350616,
1.3381884098052979,
0.34240540862083435,
-0.6093688607215881,
-0.9381333589553833,
-1.0018181800842285,
0.8705748319625854,
1.7421058416366577,
-0.063946932554245,
-0.04330522567033768,
0.7402570247650146,
0.6688492894172668,
-1.2776062488555908,
0.08746899664402008,
-0.5772041082382202,
-0.7343204617500305,
1.6216057538986206,
2.0932729244232178,
-0.24782413244247437,
-0.10426492989063263,
-0.6139618158340454,
-1.3131983280181885,
0.6654403805732727,
-0.0533880740404129,
0.048949502408504486,
0.6702788472175598,
-0.5511580109596252,
1.0124945640563965,
0.7372854948043823,
0.930305004119873,
0.10408449172973633,
0.24462883174419403,
0.42278853058815,
-0.4126049280166626,
-1.2336273193359375,
-0.31620630621910095,
-1.185855507850647,
-2.5880815982818604,
0.34944769740104675,
-0.15514957904815674,
-1.3623826503753662,
0.10264761745929718,
-0.9853728413581848,
0.9323737025260925,
-0.6268455386161804,
-1.1979491710662842,
-1.3601757287979126,
0.21161973476409912,
-0.09610234200954437,
0.9198949933052063,
-1.6970977783203125,
-0.10568110644817352,
1.2167491912841797,
0.8821537494659424,
-0.6099753379821777,
1.1082152128219604,
0.2295592874288559,
1.0681195259094238,
0.817610502243042,
-0.3339396119117737,
0.5723499655723572,
0.06638716161251068,
-1.3518757820129395,
0.43128788471221924,
1.167742371559143,
0.18702064454555511,
1.3986332416534424,
-0.4696443974971771,
-0.012436704710125923,
0.40451565384864807,
-0.6737241744995117,
-0.4592284560203552,
-0.36610618233680725,
0.6334303021430969,
0.03996949642896652,
-0.8677906394004822,
0.0016843313351273537,
-0.08151441812515259,
-0.26338478922843933,
0.15516558289527893,
-1.5860042572021484,
-0.22924846410751343,
-0.39951279759407043,
-0.529671847820282,
-1.242851972579956,
-0.06634493172168732,
1.4396014213562012,
-0.7216013669967651,
-0.31865617632865906,
0.4537561237812042,
0.4072549045085907,
0.5336516499519348,
0.7181726098060608,
-0.7645469307899475,
-0.4236079752445221,
-0.188837468624115,
-0.29069989919662476,
0.42856791615486145,
1.347097396850586,
-0.10070060193538666,
-0.9040432572364807,
0.6261258721351624,
-0.3962469696998596,
0.14027029275894165,
1.8955539464950562,
-0.00744772469624877,
-0.7586104869842529,
0.28823280334472656,
-0.8127375841140747,
1.9291472434997559,
1.721795916557312,
1.2941904067993164,
-0.21130622923374176,
-0.8661335110664368,
0.6386587023735046,
-0.38169926404953003,
-0.3848232328891754,
0.8707312345504761,
0.41693803668022156,
-0.2363136261701584,
-1.3954744338989258,
0.6424741744995117,
1.2022068500518799,
-0.8679102659225464,
-0.8328741788864136,
0.12922115623950958,
-0.7812637090682983,
1.2004274129867554,
0.590177595615387,
0.35960865020751953,
0.2699398100376129,
1.6360929012298584,
0.8239402174949646,
-0.5142439603805542,
0.5670101046562195,
0.42579230666160583,
-0.26694074273109436,
-2.1209046840667725,
-1.1393039226531982,
0.28628429770469666,
-0.5714422464370728,
-1.6036370992660522,
1.3321253061294556,
-1.0951223373413086,
-0.9592544436454773,
0.5758052468299866,
0.06199580058455467,
1.3318912982940674,
0.3598814904689789,
1.5456998348236084,
2.0891482830047607,
0.8129675984382629,
0.38665324449539185,
1.23249351978302,
-0.18068130314350128,
-0.5794181227684021,
1.7642327547073364,
-0.43508437275886536,
0.4593123495578766,
1.1317161321640015,
-0.3308106064796448,
-1.011946678161621,
-0.788121223449707,
-1.206142544746399,
-0.6257354021072388,
1.1398252248764038,
0.15651796758174896,
-1.1394774913787842,
0.27668052911758423,
1.542670488357544,
0.08335213363170624,
-0.22319957613945007,
0.6963059902191162,
0.467645525932312,
-0.7250800728797913,
-0.012790683656930923,
-0.8421810865402222,
0.47154685854911804,
-0.2602972090244293,
-0.35333648324012756,
0.33111464977264404,
0.4201532006263733,
1.2719939947128296,
-0.03414524346590042,
0.13236315548419952,
1.1384499073028564,
-1.4588731527328491,
1.4911046028137207,
-0.686302125453949,
0.39545777440071106,
-2.393289566040039,
1.3356878757476807,
-0.6667192578315735,
2.0642807483673096,
-2.619436740875244,
0.4059528112411499,
-0.6466107964515686,
-0.5969754457473755,
0.31107598543167114,
-0.33133554458618164,
0.13027846813201904,
-0.17225049436092377,
-1.0634844303131104,
-0.03234010934829712,
-0.6229013204574585,
0.545071005821228,
1.0957189798355103,
1.3584233522415161,
-1.1103157997131348,
-0.19121994078159332,
-1.7738529443740845,
-0.12973998486995697,
-0.8159599900245667,
0.2776966392993927,
-2.04160475730896,
-0.24127589166164398,
-1.9470405578613281,
-2.286112070083618,
-1.3082724809646606,
-0.7663290500640869,
1.0957748889923096,
0.14568999409675598,
-0.7857535481452942,
1.2786957025527954,
-0.26608631014823914,
-1.7934502363204956,
0.9802254438400269,
-2.124882221221924
] |
https://github.com/huggingface/datasets/issues/4676 | Dataset.map gets stuck on _cast_to_python_objects | Hi! Thanks for reporting and providing a reproducible example. Indeed, by default, `datasets` performs an expensive cast on the values returned by `map` to convert them to one of the types supported by PyArrow (the underlying storage format used by `datasets`). This cast is not needed on NumPy arrays as PyArrow supports them natively, so one way to make this transform faster is to add `return_tensors="np"` to the tokenizer call.
I think we should mention this in the docs (cc @stevhliu) | ## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 635 | 81 | Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi! Thanks for reporting and providing a reproducible example. Indeed, by default, `datasets` performs an expensive cast on the values returned by `map` to convert them to one of the types supported by PyArrow (the underlying storage format used by `datasets`). This cast is not needed on NumPy arrays as PyArrow supports them natively, so one way to make this transform faster is to add `return_tensors="np"` to the tokenizer call.
I think we should mention this in the docs (cc @stevhliu) | [
-1.2169482707977295,
-1.0080511569976807,
-0.6598380208015442,
1.5983015298843384,
-0.14321206510066986,
-1.1522984504699707,
0.1424059122800827,
-1.035354495048523,
1.6434026956558228,
-0.8429833650588989,
0.24568156898021698,
-1.6420706510543823,
0.006780929863452911,
-0.5428546667098999,
-0.73307865858078,
-0.8180152177810669,
-0.33442574739456177,
-0.7778142094612122,
1.0928102731704712,
2.4286437034606934,
1.1968104839324951,
-1.459754228591919,
2.7628345489501953,
0.7026398181915283,
-0.16847091913223267,
-1.1236618757247925,
0.530170738697052,
-0.05772128328680992,
-1.3182717561721802,
-0.497509241104126,
-0.9770482182502747,
0.06696602702140808,
-0.6532946825027466,
-0.4266339838504791,
0.004323503002524376,
0.42533019185066223,
-0.2199392169713974,
-0.3968186676502228,
-0.5455885529518127,
-0.7939310073852539,
0.461095929145813,
-0.3866959512233734,
0.8792977333068848,
-0.21509259939193726,
1.7926501035690308,
-0.4722885489463806,
0.4033288061618805,
0.6943717002868652,
1.368427038192749,
0.19208399951457977,
0.007131187245249748,
0.2499179095029831,
0.3422917425632477,
-0.008769970387220383,
0.5407464504241943,
1.1437424421310425,
0.707592248916626,
0.4482572078704834,
0.6901947855949402,
-2.2774922847747803,
1.4101741313934326,
-1.045516014099121,
0.35192257165908813,
1.3199472427368164,
-0.9312713742256165,
0.39111828804016113,
-1.7053622007369995,
0.012451963499188423,
0.6386255621910095,
-2.2097177505493164,
0.29974687099456787,
-1.303740382194519,
-0.48148003220558167,
1.0561656951904297,
0.39514726400375366,
-1.2642406225204468,
0.15493181347846985,
-0.4550682306289673,
1.1064361333847046,
0.46885785460472107,
1.003474235534668,
-1.7421844005584717,
-0.050199951976537704,
-0.20416352152824402,
0.1626346856355667,
-1.280695915222168,
-1.5856549739837646,
0.5825295448303223,
0.5615191459655762,
0.6404588222503662,
-0.14413166046142578,
1.0795987844467163,
-1.1251336336135864,
0.7870400547981262,
-1.0062514543533325,
-1.6828423738479614,
-1.3689244985580444,
-2.2938272953033447,
-2.2301135063171387,
0.6786895990371704,
-0.4634278118610382,
-0.47787758708000183,
1.9783796072006226,
-0.9522553086280823,
-1.7007194757461548,
1.125571370124817,
0.2510012686252594,
0.037202052772045135,
2.4297380447387695,
0.2387779802083969,
-0.7365620732307434,
0.4407949149608612,
-0.8516362309455872,
0.8067604303359985,
-0.39159438014030457,
1.3801548480987549,
0.45597773790359497,
-1.0304219722747803,
1.5470435619354248,
-0.37298139929771423,
0.4891003966331482,
-0.6518034338951111,
-0.4928267002105713,
-0.7250680327415466,
0.2158253937959671,
1.898941993713379,
-0.26867568492889404,
1.499445915222168,
-0.42073312401771545,
-1.56549870967865,
-1.615979790687561,
0.9424231648445129,
0.43518534302711487,
-0.8336610198020935,
0.12936273217201233,
-0.4857531189918518,
0.1255646049976349,
-0.1310749351978302,
1.1894365549087524,
1.3518935441970825,
0.6606019735336304,
-0.3346390724182129,
-0.7918137311935425,
0.12844505906105042,
-0.2306673526763916,
-0.6210557818412781,
-1.8652775287628174,
-0.3786237835884094,
0.0918317437171936,
0.7061660289764404,
-1.1958733797073364,
1.7293734550476074,
0.9487584829330444,
1.888041377067566,
1.037318229675293,
-0.4364515244960785,
1.4819865226745605,
0.06200983747839928,
1.8251535892486572,
-0.637680172920227,
0.6626091599464417,
-0.435800164937973,
-1.112145185470581,
0.8710073828697205,
-0.32747769355773926,
-1.9215574264526367,
-0.7837563753128052,
-0.7584537863731384,
-0.2600710093975067,
-0.7608314752578735,
0.9055525064468384,
-0.3639109134674072,
-1.538606882095337,
0.1760842651128769,
-0.682205855846405,
0.25530463457107544,
-1.0798622369766235,
0.29156672954559326,
0.7854816317558289,
-0.6114642024040222,
0.047485120594501495,
-0.30003440380096436,
-1.232170581817627,
-0.4918234646320343,
0.414419025182724,
1.8785983324050903,
-0.6657926440238953,
0.9106335043907166,
1.0394965410232544,
-0.6228965520858765,
0.05028234422206879,
0.29390496015548706,
-0.22525687515735626,
0.8139711022377014,
-1.0545629262924194,
-0.5436624884605408,
1.230805516242981,
-0.32766056060791016,
-0.638604998588562,
1.5130126476287842,
0.7296974658966064,
-1.0181684494018555,
-0.22223292291164398,
-0.10888035595417023,
-0.8454641103744507,
0.06288054585456848,
-1.56430184841156,
-0.12673668563365936,
0.49678733944892883,
-1.5678902864456177,
-0.3994004428386688,
-0.2509821355342865,
1.3293752670288086,
-0.17566119134426117,
1.4383158683776855,
-0.3416454493999481,
-0.1100451648235321,
-0.2481238842010498,
-0.41327276825904846,
0.1871282458305359,
-0.23233360052108765,
-0.5385339856147766,
0.19307614862918854,
-0.8814765810966492,
0.36111271381378174,
1.5497477054595947,
0.30699020624160767,
0.011875208467245102,
0.44106316566467285,
1.1377488374710083,
0.486928254365921,
-0.04687432944774628,
-0.8343781232833862,
-1.5600335597991943,
1.9746284484863281,
-1.504231572151184,
2.0566980838775635,
0.7942736148834229,
-0.05222760885953903,
-1.770592212677002,
-1.7428593635559082,
1.2923401594161987,
1.0803409814834595,
2.3690261840820312,
0.5190116763114929,
0.32562246918678284,
-0.8573813438415527,
-0.6937536597251892,
0.3404305875301361,
-0.9990725517272949,
-0.7371420860290527,
0.1531336009502411,
2.396744728088379,
1.8083035945892334,
-0.4141475558280945,
-0.22010676562786102,
-0.9797134399414062,
1.4326270818710327,
-0.22323480248451233,
0.3126581013202667,
1.9934120178222656,
-0.1931660920381546,
-1.0763972997665405,
1.2858355045318604,
-2.4084084033966064,
0.22898903489112854,
2.0989322662353516,
0.3032456040382385,
0.15371470153331757,
-1.4395662546157837,
-0.620507001876831,
-0.30245834589004517,
-0.402231365442276,
-1.2744711637496948,
0.5068546533584595,
-0.2603011727333069,
-0.8088617920875549,
-1.474726915359497,
0.16931559145450592,
-1.1780622005462646,
-1.664254903793335,
0.25660598278045654,
1.9446152448654175,
2.1257174015045166,
-0.6836831569671631,
1.5903033018112183,
-0.27286815643310547,
0.17495736479759216,
1.2114499807357788,
1.2975780963897705,
3.0322647094726562,
1.8575806617736816,
-1.2723264694213867,
0.6497544050216675,
-0.20069262385368347,
-0.5016382932662964,
1.0742714405059814,
-1.136963963508606,
1.2355384826660156,
-0.12310262024402618,
-1.1535452604293823,
-1.283331036567688,
1.0796265602111816,
0.5129719376564026,
0.010242067277431488,
-0.5501317381858826,
1.2577266693115234,
0.035489339381456375,
1.3268282413482666,
0.5785970687866211,
-0.33564293384552,
0.4862869381904602,
-0.43042072653770447,
-0.6212809085845947,
1.5169322490692139,
0.19824928045272827,
-1.4469294548034668,
-2.1629488468170166,
-0.15942725539207458,
-0.880574107170105,
0.07854393124580383,
-0.6093321442604065,
-1.0187879800796509,
1.5975309610366821,
0.3438471257686615,
-1.252477765083313,
-0.2362595498561859,
-0.3028283715248108,
-0.5315849184989929,
2.6190011501312256,
-1.2158117294311523,
-0.24226520955562592,
-0.9817292094230652,
-0.6592309474945068,
1.6199445724487305,
-1.2382158041000366,
-0.2069467455148697,
-1.015281319618225,
-0.6276340484619141,
-1.2633291482925415,
-0.5353933572769165,
-0.00580429146066308,
-0.8891298174858093,
0.707596480846405,
0.1841297447681427,
-1.1456588506698608,
-0.3457913398742676,
-0.8397778868675232,
1.0083950757980347,
-0.09885025024414062,
0.18726694583892822,
1.830609917640686,
0.22826506197452545,
-0.3911782205104828,
0.860323965549469,
1.144938588142395,
0.6313024759292603,
-0.6084709763526917,
0.1247176080942154,
-0.6065889596939087,
0.4396803379058838,
-1.3197945356369019,
0.30845093727111816,
-2.9461209774017334,
0.7074435949325562,
-0.034979209303855896,
-0.15188580751419067,
-0.07006095349788666,
-1.2874187231063843,
1.1272532939910889,
2.5512094497680664,
-1.2010784149169922,
0.5586676597595215,
0.3920278251171112,
1.1932240724563599,
-1.613205909729004,
0.3371391296386719,
-0.4503699243068695,
2.0690758228302,
0.2309863120317459,
1.2799991369247437,
-0.5041399002075195,
-2.411259889602661,
0.5964765548706055,
-1.315406084060669,
-0.9903551340103149,
0.7606605291366577,
-0.8572610020637512,
0.10189208388328552,
-1.4215259552001953,
-0.25011566281318665,
-0.8798683881759644,
-1.2444039583206177,
0.6458080410957336,
0.08694043755531311,
0.37817615270614624,
-0.608572781085968,
0.4077872335910797,
-2.1536202430725098,
-1.3652641773223877,
-0.15167994797229767,
-0.9544826745986938,
0.5525524616241455,
-0.5044457912445068,
0.6120312213897705,
-0.135515958070755,
0.06842519342899323,
0.30746355652809143,
1.4513975381851196,
3.391278028488159,
0.24234820902347565,
0.2933330833911896,
-0.1864665448665619,
-0.9456949830055237,
1.4296058416366577,
0.9492653012275696,
-0.1963559091091156,
-0.5442306399345398,
-1.0908422470092773,
1.362592101097107,
2.0004029273986816,
0.9358892440795898,
0.047540828585624695,
-0.8819899559020996,
-0.7773787379264832,
-0.03832749277353287,
0.16644878685474396,
0.48617449402809143,
0.8713850378990173,
0.09143489599227905,
0.11585444211959839,
1.4191763401031494,
1.2121413946151733,
-0.41146400570869446,
0.44569864869117737,
-0.9117113351821899,
-0.41091683506965637,
0.4593007564544678,
0.24258984625339508,
-0.0631483867764473,
0.41675204038619995,
-1.0091094970703125,
-0.15004074573516846,
-0.45707541704177856,
-0.8896481990814209,
-0.7227439284324646,
-0.39031997323036194,
-0.35448068380355835,
1.5857110023498535,
0.20978450775146484,
-0.5799372792243958,
0.022389333695173264,
-0.7707067131996155,
-0.14802996814250946,
-1.0914117097854614,
0.23511752486228943,
-0.07366131246089935,
-0.11626213788986206,
-0.16365116834640503,
1.7503365278244019,
-0.8720110058784485,
-2.067298650741577,
0.11161473393440247,
0.2856716215610504,
-0.2678271532058716,
0.1961248368024826,
1.7213128805160522,
0.5342632532119751,
1.425153136253357,
1.301084280014038,
0.9684112668037415,
-0.5881977677345276,
-1.2787983417510986,
0.7750467658042908,
0.9713947772979736,
-1.3833811283111572,
0.8856021761894226,
-0.1162417083978653,
-0.5303784012794495,
0.7458386421203613,
1.3201236724853516,
0.48096343874931335,
-2.013378143310547,
0.8034443259239197,
-1.078521966934204,
0.8723738193511963,
0.751980185508728,
0.629342794418335,
0.2326832413673401,
0.8431374430656433,
-1.2584508657455444,
-1.0844060182571411,
-0.7074727416038513,
-0.7433179020881653,
1.9595813751220703,
-0.3274889290332794,
0.5660924911499023,
-0.15651674568653107,
-1.3134878873825073,
-0.15429985523223877,
0.713513195514679,
0.31270501017570496,
-0.5116880536079407,
0.839613139629364,
-0.7581154108047485,
-1.1115236282348633,
-1.2766923904418945,
-0.5121182203292847,
-1.0147614479064941,
-1.0225059986114502,
1.0323512554168701,
0.7683507204055786,
0.33843284845352173,
1.9090360403060913,
0.5762279629707336,
0.2460649162530899,
-2.546069383621216,
0.8377681970596313,
0.30235347151756287,
-0.12124842405319214,
0.8982380032539368,
0.321205198764801,
1.0811161994934082,
0.07902984321117401,
0.551339328289032,
-2.4691174030303955,
2.3236610889434814,
-0.1843220591545105,
0.7260183691978455,
0.04105687513947487,
-0.15113532543182373,
1.203865885734558,
0.6204969882965088,
0.5617637634277344,
-1.066737174987793,
0.7263755798339844,
-0.5528807640075684,
1.2456459999084473,
0.8426097631454468,
-0.8172197937965393,
-0.08555538952350616,
1.3381884098052979,
0.34240540862083435,
-0.6093688607215881,
-0.9381333589553833,
-1.0018181800842285,
0.8705748319625854,
1.7421058416366577,
-0.063946932554245,
-0.04330522567033768,
0.7402570247650146,
0.6688492894172668,
-1.2776062488555908,
0.08746899664402008,
-0.5772041082382202,
-0.7343204617500305,
1.6216057538986206,
2.0932729244232178,
-0.24782413244247437,
-0.10426492989063263,
-0.6139618158340454,
-1.3131983280181885,
0.6654403805732727,
-0.0533880740404129,
0.048949502408504486,
0.6702788472175598,
-0.5511580109596252,
1.0124945640563965,
0.7372854948043823,
0.930305004119873,
0.10408449172973633,
0.24462883174419403,
0.42278853058815,
-0.4126049280166626,
-1.2336273193359375,
-0.31620630621910095,
-1.185855507850647,
-2.5880815982818604,
0.34944769740104675,
-0.15514957904815674,
-1.3623826503753662,
0.10264761745929718,
-0.9853728413581848,
0.9323737025260925,
-0.6268455386161804,
-1.1979491710662842,
-1.3601757287979126,
0.21161973476409912,
-0.09610234200954437,
0.9198949933052063,
-1.6970977783203125,
-0.10568110644817352,
1.2167491912841797,
0.8821537494659424,
-0.6099753379821777,
1.1082152128219604,
0.2295592874288559,
1.0681195259094238,
0.817610502243042,
-0.3339396119117737,
0.5723499655723572,
0.06638716161251068,
-1.3518757820129395,
0.43128788471221924,
1.167742371559143,
0.18702064454555511,
1.3986332416534424,
-0.4696443974971771,
-0.012436704710125923,
0.40451565384864807,
-0.6737241744995117,
-0.4592284560203552,
-0.36610618233680725,
0.6334303021430969,
0.03996949642896652,
-0.8677906394004822,
0.0016843313351273537,
-0.08151441812515259,
-0.26338478922843933,
0.15516558289527893,
-1.5860042572021484,
-0.22924846410751343,
-0.39951279759407043,
-0.529671847820282,
-1.242851972579956,
-0.06634493172168732,
1.4396014213562012,
-0.7216013669967651,
-0.31865617632865906,
0.4537561237812042,
0.4072549045085907,
0.5336516499519348,
0.7181726098060608,
-0.7645469307899475,
-0.4236079752445221,
-0.188837468624115,
-0.29069989919662476,
0.42856791615486145,
1.347097396850586,
-0.10070060193538666,
-0.9040432572364807,
0.6261258721351624,
-0.3962469696998596,
0.14027029275894165,
1.8955539464950562,
-0.00744772469624877,
-0.7586104869842529,
0.28823280334472656,
-0.8127375841140747,
1.9291472434997559,
1.721795916557312,
1.2941904067993164,
-0.21130622923374176,
-0.8661335110664368,
0.6386587023735046,
-0.38169926404953003,
-0.3848232328891754,
0.8707312345504761,
0.41693803668022156,
-0.2363136261701584,
-1.3954744338989258,
0.6424741744995117,
1.2022068500518799,
-0.8679102659225464,
-0.8328741788864136,
0.12922115623950958,
-0.7812637090682983,
1.2004274129867554,
0.590177595615387,
0.35960865020751953,
0.2699398100376129,
1.6360929012298584,
0.8239402174949646,
-0.5142439603805542,
0.5670101046562195,
0.42579230666160583,
-0.26694074273109436,
-2.1209046840667725,
-1.1393039226531982,
0.28628429770469666,
-0.5714422464370728,
-1.6036370992660522,
1.3321253061294556,
-1.0951223373413086,
-0.9592544436454773,
0.5758052468299866,
0.06199580058455467,
1.3318912982940674,
0.3598814904689789,
1.5456998348236084,
2.0891482830047607,
0.8129675984382629,
0.38665324449539185,
1.23249351978302,
-0.18068130314350128,
-0.5794181227684021,
1.7642327547073364,
-0.43508437275886536,
0.4593123495578766,
1.1317161321640015,
-0.3308106064796448,
-1.011946678161621,
-0.788121223449707,
-1.206142544746399,
-0.6257354021072388,
1.1398252248764038,
0.15651796758174896,
-1.1394774913787842,
0.27668052911758423,
1.542670488357544,
0.08335213363170624,
-0.22319957613945007,
0.6963059902191162,
0.467645525932312,
-0.7250800728797913,
-0.012790683656930923,
-0.8421810865402222,
0.47154685854911804,
-0.2602972090244293,
-0.35333648324012756,
0.33111464977264404,
0.4201532006263733,
1.2719939947128296,
-0.03414524346590042,
0.13236315548419952,
1.1384499073028564,
-1.4588731527328491,
1.4911046028137207,
-0.686302125453949,
0.39545777440071106,
-2.393289566040039,
1.3356878757476807,
-0.6667192578315735,
2.0642807483673096,
-2.619436740875244,
0.4059528112411499,
-0.6466107964515686,
-0.5969754457473755,
0.31107598543167114,
-0.33133554458618164,
0.13027846813201904,
-0.17225049436092377,
-1.0634844303131104,
-0.03234010934829712,
-0.6229013204574585,
0.545071005821228,
1.0957189798355103,
1.3584233522415161,
-1.1103157997131348,
-0.19121994078159332,
-1.7738529443740845,
-0.12973998486995697,
-0.8159599900245667,
0.2776966392993927,
-2.04160475730896,
-0.24127589166164398,
-1.9470405578613281,
-2.286112070083618,
-1.3082724809646606,
-0.7663290500640869,
1.0957748889923096,
0.14568999409675598,
-0.7857535481452942,
1.2786957025527954,
-0.26608631014823914,
-1.7934502363204956,
0.9802254438400269,
-2.124882221221924
] |
https://github.com/huggingface/datasets/issues/4676 | Dataset.map gets stuck on _cast_to_python_objects | I tested this tokenize function and indeed noticed a casting. However it seems to only concerns the `offset_mapping` field, which contains a list of tuples, that is converted to a list of lists. Since `pyarrow` also supports tuples, we actually don't need to convert the tuples to lists.
I think this can be changed here:
https://github.com/huggingface/datasets/blob/ede72d3f9796339701ec59899c7c31d2427046fb/src/datasets/features/features.py#L382-L383
```diff
- if isinstance(obj, list):
+ if isinstance(obj, (list, tuple)):
```
and here:
https://github.com/huggingface/datasets/blob/ede72d3f9796339701ec59899c7c31d2427046fb/src/datasets/features/features.py#L386-L387
```diff
- return obj if isinstance(obj, list) else [], isinstance(obj, tuple)
+ return obj, False
```
@srobertjames can you try applying these changes and let us know if it helps ? If so, feel free to open a Pull Request to contribute this improvement if you want :) | ## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 635 | 118 | Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
I tested this tokenize function and indeed noticed a casting. However it seems to only concerns the `offset_mapping` field, which contains a list of tuples, that is converted to a list of lists. Since `pyarrow` also supports tuples, we actually don't need to convert the tuples to lists.
I think this can be changed here:
https://github.com/huggingface/datasets/blob/ede72d3f9796339701ec59899c7c31d2427046fb/src/datasets/features/features.py#L382-L383
```diff
- if isinstance(obj, list):
+ if isinstance(obj, (list, tuple)):
```
and here:
https://github.com/huggingface/datasets/blob/ede72d3f9796339701ec59899c7c31d2427046fb/src/datasets/features/features.py#L386-L387
```diff
- return obj if isinstance(obj, list) else [], isinstance(obj, tuple)
+ return obj, False
```
@srobertjames can you try applying these changes and let us know if it helps ? If so, feel free to open a Pull Request to contribute this improvement if you want :) | [
-1.2169482707977295,
-1.0080511569976807,
-0.6598380208015442,
1.5983015298843384,
-0.14321206510066986,
-1.1522984504699707,
0.1424059122800827,
-1.035354495048523,
1.6434026956558228,
-0.8429833650588989,
0.24568156898021698,
-1.6420706510543823,
0.006780929863452911,
-0.5428546667098999,
-0.73307865858078,
-0.8180152177810669,
-0.33442574739456177,
-0.7778142094612122,
1.0928102731704712,
2.4286437034606934,
1.1968104839324951,
-1.459754228591919,
2.7628345489501953,
0.7026398181915283,
-0.16847091913223267,
-1.1236618757247925,
0.530170738697052,
-0.05772128328680992,
-1.3182717561721802,
-0.497509241104126,
-0.9770482182502747,
0.06696602702140808,
-0.6532946825027466,
-0.4266339838504791,
0.004323503002524376,
0.42533019185066223,
-0.2199392169713974,
-0.3968186676502228,
-0.5455885529518127,
-0.7939310073852539,
0.461095929145813,
-0.3866959512233734,
0.8792977333068848,
-0.21509259939193726,
1.7926501035690308,
-0.4722885489463806,
0.4033288061618805,
0.6943717002868652,
1.368427038192749,
0.19208399951457977,
0.007131187245249748,
0.2499179095029831,
0.3422917425632477,
-0.008769970387220383,
0.5407464504241943,
1.1437424421310425,
0.707592248916626,
0.4482572078704834,
0.6901947855949402,
-2.2774922847747803,
1.4101741313934326,
-1.045516014099121,
0.35192257165908813,
1.3199472427368164,
-0.9312713742256165,
0.39111828804016113,
-1.7053622007369995,
0.012451963499188423,
0.6386255621910095,
-2.2097177505493164,
0.29974687099456787,
-1.303740382194519,
-0.48148003220558167,
1.0561656951904297,
0.39514726400375366,
-1.2642406225204468,
0.15493181347846985,
-0.4550682306289673,
1.1064361333847046,
0.46885785460472107,
1.003474235534668,
-1.7421844005584717,
-0.050199951976537704,
-0.20416352152824402,
0.1626346856355667,
-1.280695915222168,
-1.5856549739837646,
0.5825295448303223,
0.5615191459655762,
0.6404588222503662,
-0.14413166046142578,
1.0795987844467163,
-1.1251336336135864,
0.7870400547981262,
-1.0062514543533325,
-1.6828423738479614,
-1.3689244985580444,
-2.2938272953033447,
-2.2301135063171387,
0.6786895990371704,
-0.4634278118610382,
-0.47787758708000183,
1.9783796072006226,
-0.9522553086280823,
-1.7007194757461548,
1.125571370124817,
0.2510012686252594,
0.037202052772045135,
2.4297380447387695,
0.2387779802083969,
-0.7365620732307434,
0.4407949149608612,
-0.8516362309455872,
0.8067604303359985,
-0.39159438014030457,
1.3801548480987549,
0.45597773790359497,
-1.0304219722747803,
1.5470435619354248,
-0.37298139929771423,
0.4891003966331482,
-0.6518034338951111,
-0.4928267002105713,
-0.7250680327415466,
0.2158253937959671,
1.898941993713379,
-0.26867568492889404,
1.499445915222168,
-0.42073312401771545,
-1.56549870967865,
-1.615979790687561,
0.9424231648445129,
0.43518534302711487,
-0.8336610198020935,
0.12936273217201233,
-0.4857531189918518,
0.1255646049976349,
-0.1310749351978302,
1.1894365549087524,
1.3518935441970825,
0.6606019735336304,
-0.3346390724182129,
-0.7918137311935425,
0.12844505906105042,
-0.2306673526763916,
-0.6210557818412781,
-1.8652775287628174,
-0.3786237835884094,
0.0918317437171936,
0.7061660289764404,
-1.1958733797073364,
1.7293734550476074,
0.9487584829330444,
1.888041377067566,
1.037318229675293,
-0.4364515244960785,
1.4819865226745605,
0.06200983747839928,
1.8251535892486572,
-0.637680172920227,
0.6626091599464417,
-0.435800164937973,
-1.112145185470581,
0.8710073828697205,
-0.32747769355773926,
-1.9215574264526367,
-0.7837563753128052,
-0.7584537863731384,
-0.2600710093975067,
-0.7608314752578735,
0.9055525064468384,
-0.3639109134674072,
-1.538606882095337,
0.1760842651128769,
-0.682205855846405,
0.25530463457107544,
-1.0798622369766235,
0.29156672954559326,
0.7854816317558289,
-0.6114642024040222,
0.047485120594501495,
-0.30003440380096436,
-1.232170581817627,
-0.4918234646320343,
0.414419025182724,
1.8785983324050903,
-0.6657926440238953,
0.9106335043907166,
1.0394965410232544,
-0.6228965520858765,
0.05028234422206879,
0.29390496015548706,
-0.22525687515735626,
0.8139711022377014,
-1.0545629262924194,
-0.5436624884605408,
1.230805516242981,
-0.32766056060791016,
-0.638604998588562,
1.5130126476287842,
0.7296974658966064,
-1.0181684494018555,
-0.22223292291164398,
-0.10888035595417023,
-0.8454641103744507,
0.06288054585456848,
-1.56430184841156,
-0.12673668563365936,
0.49678733944892883,
-1.5678902864456177,
-0.3994004428386688,
-0.2509821355342865,
1.3293752670288086,
-0.17566119134426117,
1.4383158683776855,
-0.3416454493999481,
-0.1100451648235321,
-0.2481238842010498,
-0.41327276825904846,
0.1871282458305359,
-0.23233360052108765,
-0.5385339856147766,
0.19307614862918854,
-0.8814765810966492,
0.36111271381378174,
1.5497477054595947,
0.30699020624160767,
0.011875208467245102,
0.44106316566467285,
1.1377488374710083,
0.486928254365921,
-0.04687432944774628,
-0.8343781232833862,
-1.5600335597991943,
1.9746284484863281,
-1.504231572151184,
2.0566980838775635,
0.7942736148834229,
-0.05222760885953903,
-1.770592212677002,
-1.7428593635559082,
1.2923401594161987,
1.0803409814834595,
2.3690261840820312,
0.5190116763114929,
0.32562246918678284,
-0.8573813438415527,
-0.6937536597251892,
0.3404305875301361,
-0.9990725517272949,
-0.7371420860290527,
0.1531336009502411,
2.396744728088379,
1.8083035945892334,
-0.4141475558280945,
-0.22010676562786102,
-0.9797134399414062,
1.4326270818710327,
-0.22323480248451233,
0.3126581013202667,
1.9934120178222656,
-0.1931660920381546,
-1.0763972997665405,
1.2858355045318604,
-2.4084084033966064,
0.22898903489112854,
2.0989322662353516,
0.3032456040382385,
0.15371470153331757,
-1.4395662546157837,
-0.620507001876831,
-0.30245834589004517,
-0.402231365442276,
-1.2744711637496948,
0.5068546533584595,
-0.2603011727333069,
-0.8088617920875549,
-1.474726915359497,
0.16931559145450592,
-1.1780622005462646,
-1.664254903793335,
0.25660598278045654,
1.9446152448654175,
2.1257174015045166,
-0.6836831569671631,
1.5903033018112183,
-0.27286815643310547,
0.17495736479759216,
1.2114499807357788,
1.2975780963897705,
3.0322647094726562,
1.8575806617736816,
-1.2723264694213867,
0.6497544050216675,
-0.20069262385368347,
-0.5016382932662964,
1.0742714405059814,
-1.136963963508606,
1.2355384826660156,
-0.12310262024402618,
-1.1535452604293823,
-1.283331036567688,
1.0796265602111816,
0.5129719376564026,
0.010242067277431488,
-0.5501317381858826,
1.2577266693115234,
0.035489339381456375,
1.3268282413482666,
0.5785970687866211,
-0.33564293384552,
0.4862869381904602,
-0.43042072653770447,
-0.6212809085845947,
1.5169322490692139,
0.19824928045272827,
-1.4469294548034668,
-2.1629488468170166,
-0.15942725539207458,
-0.880574107170105,
0.07854393124580383,
-0.6093321442604065,
-1.0187879800796509,
1.5975309610366821,
0.3438471257686615,
-1.252477765083313,
-0.2362595498561859,
-0.3028283715248108,
-0.5315849184989929,
2.6190011501312256,
-1.2158117294311523,
-0.24226520955562592,
-0.9817292094230652,
-0.6592309474945068,
1.6199445724487305,
-1.2382158041000366,
-0.2069467455148697,
-1.015281319618225,
-0.6276340484619141,
-1.2633291482925415,
-0.5353933572769165,
-0.00580429146066308,
-0.8891298174858093,
0.707596480846405,
0.1841297447681427,
-1.1456588506698608,
-0.3457913398742676,
-0.8397778868675232,
1.0083950757980347,
-0.09885025024414062,
0.18726694583892822,
1.830609917640686,
0.22826506197452545,
-0.3911782205104828,
0.860323965549469,
1.144938588142395,
0.6313024759292603,
-0.6084709763526917,
0.1247176080942154,
-0.6065889596939087,
0.4396803379058838,
-1.3197945356369019,
0.30845093727111816,
-2.9461209774017334,
0.7074435949325562,
-0.034979209303855896,
-0.15188580751419067,
-0.07006095349788666,
-1.2874187231063843,
1.1272532939910889,
2.5512094497680664,
-1.2010784149169922,
0.5586676597595215,
0.3920278251171112,
1.1932240724563599,
-1.613205909729004,
0.3371391296386719,
-0.4503699243068695,
2.0690758228302,
0.2309863120317459,
1.2799991369247437,
-0.5041399002075195,
-2.411259889602661,
0.5964765548706055,
-1.315406084060669,
-0.9903551340103149,
0.7606605291366577,
-0.8572610020637512,
0.10189208388328552,
-1.4215259552001953,
-0.25011566281318665,
-0.8798683881759644,
-1.2444039583206177,
0.6458080410957336,
0.08694043755531311,
0.37817615270614624,
-0.608572781085968,
0.4077872335910797,
-2.1536202430725098,
-1.3652641773223877,
-0.15167994797229767,
-0.9544826745986938,
0.5525524616241455,
-0.5044457912445068,
0.6120312213897705,
-0.135515958070755,
0.06842519342899323,
0.30746355652809143,
1.4513975381851196,
3.391278028488159,
0.24234820902347565,
0.2933330833911896,
-0.1864665448665619,
-0.9456949830055237,
1.4296058416366577,
0.9492653012275696,
-0.1963559091091156,
-0.5442306399345398,
-1.0908422470092773,
1.362592101097107,
2.0004029273986816,
0.9358892440795898,
0.047540828585624695,
-0.8819899559020996,
-0.7773787379264832,
-0.03832749277353287,
0.16644878685474396,
0.48617449402809143,
0.8713850378990173,
0.09143489599227905,
0.11585444211959839,
1.4191763401031494,
1.2121413946151733,
-0.41146400570869446,
0.44569864869117737,
-0.9117113351821899,
-0.41091683506965637,
0.4593007564544678,
0.24258984625339508,
-0.0631483867764473,
0.41675204038619995,
-1.0091094970703125,
-0.15004074573516846,
-0.45707541704177856,
-0.8896481990814209,
-0.7227439284324646,
-0.39031997323036194,
-0.35448068380355835,
1.5857110023498535,
0.20978450775146484,
-0.5799372792243958,
0.022389333695173264,
-0.7707067131996155,
-0.14802996814250946,
-1.0914117097854614,
0.23511752486228943,
-0.07366131246089935,
-0.11626213788986206,
-0.16365116834640503,
1.7503365278244019,
-0.8720110058784485,
-2.067298650741577,
0.11161473393440247,
0.2856716215610504,
-0.2678271532058716,
0.1961248368024826,
1.7213128805160522,
0.5342632532119751,
1.425153136253357,
1.301084280014038,
0.9684112668037415,
-0.5881977677345276,
-1.2787983417510986,
0.7750467658042908,
0.9713947772979736,
-1.3833811283111572,
0.8856021761894226,
-0.1162417083978653,
-0.5303784012794495,
0.7458386421203613,
1.3201236724853516,
0.48096343874931335,
-2.013378143310547,
0.8034443259239197,
-1.078521966934204,
0.8723738193511963,
0.751980185508728,
0.629342794418335,
0.2326832413673401,
0.8431374430656433,
-1.2584508657455444,
-1.0844060182571411,
-0.7074727416038513,
-0.7433179020881653,
1.9595813751220703,
-0.3274889290332794,
0.5660924911499023,
-0.15651674568653107,
-1.3134878873825073,
-0.15429985523223877,
0.713513195514679,
0.31270501017570496,
-0.5116880536079407,
0.839613139629364,
-0.7581154108047485,
-1.1115236282348633,
-1.2766923904418945,
-0.5121182203292847,
-1.0147614479064941,
-1.0225059986114502,
1.0323512554168701,
0.7683507204055786,
0.33843284845352173,
1.9090360403060913,
0.5762279629707336,
0.2460649162530899,
-2.546069383621216,
0.8377681970596313,
0.30235347151756287,
-0.12124842405319214,
0.8982380032539368,
0.321205198764801,
1.0811161994934082,
0.07902984321117401,
0.551339328289032,
-2.4691174030303955,
2.3236610889434814,
-0.1843220591545105,
0.7260183691978455,
0.04105687513947487,
-0.15113532543182373,
1.203865885734558,
0.6204969882965088,
0.5617637634277344,
-1.066737174987793,
0.7263755798339844,
-0.5528807640075684,
1.2456459999084473,
0.8426097631454468,
-0.8172197937965393,
-0.08555538952350616,
1.3381884098052979,
0.34240540862083435,
-0.6093688607215881,
-0.9381333589553833,
-1.0018181800842285,
0.8705748319625854,
1.7421058416366577,
-0.063946932554245,
-0.04330522567033768,
0.7402570247650146,
0.6688492894172668,
-1.2776062488555908,
0.08746899664402008,
-0.5772041082382202,
-0.7343204617500305,
1.6216057538986206,
2.0932729244232178,
-0.24782413244247437,
-0.10426492989063263,
-0.6139618158340454,
-1.3131983280181885,
0.6654403805732727,
-0.0533880740404129,
0.048949502408504486,
0.6702788472175598,
-0.5511580109596252,
1.0124945640563965,
0.7372854948043823,
0.930305004119873,
0.10408449172973633,
0.24462883174419403,
0.42278853058815,
-0.4126049280166626,
-1.2336273193359375,
-0.31620630621910095,
-1.185855507850647,
-2.5880815982818604,
0.34944769740104675,
-0.15514957904815674,
-1.3623826503753662,
0.10264761745929718,
-0.9853728413581848,
0.9323737025260925,
-0.6268455386161804,
-1.1979491710662842,
-1.3601757287979126,
0.21161973476409912,
-0.09610234200954437,
0.9198949933052063,
-1.6970977783203125,
-0.10568110644817352,
1.2167491912841797,
0.8821537494659424,
-0.6099753379821777,
1.1082152128219604,
0.2295592874288559,
1.0681195259094238,
0.817610502243042,
-0.3339396119117737,
0.5723499655723572,
0.06638716161251068,
-1.3518757820129395,
0.43128788471221924,
1.167742371559143,
0.18702064454555511,
1.3986332416534424,
-0.4696443974971771,
-0.012436704710125923,
0.40451565384864807,
-0.6737241744995117,
-0.4592284560203552,
-0.36610618233680725,
0.6334303021430969,
0.03996949642896652,
-0.8677906394004822,
0.0016843313351273537,
-0.08151441812515259,
-0.26338478922843933,
0.15516558289527893,
-1.5860042572021484,
-0.22924846410751343,
-0.39951279759407043,
-0.529671847820282,
-1.242851972579956,
-0.06634493172168732,
1.4396014213562012,
-0.7216013669967651,
-0.31865617632865906,
0.4537561237812042,
0.4072549045085907,
0.5336516499519348,
0.7181726098060608,
-0.7645469307899475,
-0.4236079752445221,
-0.188837468624115,
-0.29069989919662476,
0.42856791615486145,
1.347097396850586,
-0.10070060193538666,
-0.9040432572364807,
0.6261258721351624,
-0.3962469696998596,
0.14027029275894165,
1.8955539464950562,
-0.00744772469624877,
-0.7586104869842529,
0.28823280334472656,
-0.8127375841140747,
1.9291472434997559,
1.721795916557312,
1.2941904067993164,
-0.21130622923374176,
-0.8661335110664368,
0.6386587023735046,
-0.38169926404953003,
-0.3848232328891754,
0.8707312345504761,
0.41693803668022156,
-0.2363136261701584,
-1.3954744338989258,
0.6424741744995117,
1.2022068500518799,
-0.8679102659225464,
-0.8328741788864136,
0.12922115623950958,
-0.7812637090682983,
1.2004274129867554,
0.590177595615387,
0.35960865020751953,
0.2699398100376129,
1.6360929012298584,
0.8239402174949646,
-0.5142439603805542,
0.5670101046562195,
0.42579230666160583,
-0.26694074273109436,
-2.1209046840667725,
-1.1393039226531982,
0.28628429770469666,
-0.5714422464370728,
-1.6036370992660522,
1.3321253061294556,
-1.0951223373413086,
-0.9592544436454773,
0.5758052468299866,
0.06199580058455467,
1.3318912982940674,
0.3598814904689789,
1.5456998348236084,
2.0891482830047607,
0.8129675984382629,
0.38665324449539185,
1.23249351978302,
-0.18068130314350128,
-0.5794181227684021,
1.7642327547073364,
-0.43508437275886536,
0.4593123495578766,
1.1317161321640015,
-0.3308106064796448,
-1.011946678161621,
-0.788121223449707,
-1.206142544746399,
-0.6257354021072388,
1.1398252248764038,
0.15651796758174896,
-1.1394774913787842,
0.27668052911758423,
1.542670488357544,
0.08335213363170624,
-0.22319957613945007,
0.6963059902191162,
0.467645525932312,
-0.7250800728797913,
-0.012790683656930923,
-0.8421810865402222,
0.47154685854911804,
-0.2602972090244293,
-0.35333648324012756,
0.33111464977264404,
0.4201532006263733,
1.2719939947128296,
-0.03414524346590042,
0.13236315548419952,
1.1384499073028564,
-1.4588731527328491,
1.4911046028137207,
-0.686302125453949,
0.39545777440071106,
-2.393289566040039,
1.3356878757476807,
-0.6667192578315735,
2.0642807483673096,
-2.619436740875244,
0.4059528112411499,
-0.6466107964515686,
-0.5969754457473755,
0.31107598543167114,
-0.33133554458618164,
0.13027846813201904,
-0.17225049436092377,
-1.0634844303131104,
-0.03234010934829712,
-0.6229013204574585,
0.545071005821228,
1.0957189798355103,
1.3584233522415161,
-1.1103157997131348,
-0.19121994078159332,
-1.7738529443740845,
-0.12973998486995697,
-0.8159599900245667,
0.2776966392993927,
-2.04160475730896,
-0.24127589166164398,
-1.9470405578613281,
-2.286112070083618,
-1.3082724809646606,
-0.7663290500640869,
1.0957748889923096,
0.14568999409675598,
-0.7857535481452942,
1.2786957025527954,
-0.26608631014823914,
-1.7934502363204956,
0.9802254438400269,
-2.124882221221924
] |
https://github.com/huggingface/datasets/issues/4676 | Dataset.map gets stuck on _cast_to_python_objects | Wow, adding `return_tensors="np"` sped up my example by a **factor 17x** of and completely eliminated the casting! I'd recommend not only to document it, but to make that the default.
The code at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb does not specify `return_tensors="np"` but yet avoids the casting penalty. How does it do that? (The ntbk seems to do `return_overflowing_tokens=True, return_offsets_mapping=True,`).
Also, surprisingly enough, using `return_tensors="pt"` (which is my eventual application) yields this error:
```
TypeError: Provided `function` which is applied to all elements of table returns a `dict` of types
[<class 'torch.Tensor'>, <class 'torch.Tensor'>, <class 'torch.Tensor'>, <class 'torch.Tensor'>].
When using `batched=True`, make sure provided `function` returns a `dict` of types like
`(<class 'list'>, <class 'numpy.ndarray'>)`.
``` | ## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 635 | 112 | Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Wow, adding `return_tensors="np"` sped up my example by a **factor 17x** of and completely eliminated the casting! I'd recommend not only to document it, but to make that the default.
The code at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb does not specify `return_tensors="np"` but yet avoids the casting penalty. How does it do that? (The ntbk seems to do `return_overflowing_tokens=True, return_offsets_mapping=True,`).
Also, surprisingly enough, using `return_tensors="pt"` (which is my eventual application) yields this error:
```
TypeError: Provided `function` which is applied to all elements of table returns a `dict` of types
[<class 'torch.Tensor'>, <class 'torch.Tensor'>, <class 'torch.Tensor'>, <class 'torch.Tensor'>].
When using `batched=True`, make sure provided `function` returns a `dict` of types like
`(<class 'list'>, <class 'numpy.ndarray'>)`.
``` | [
-1.2169482707977295,
-1.0080511569976807,
-0.6598380208015442,
1.5983015298843384,
-0.14321206510066986,
-1.1522984504699707,
0.1424059122800827,
-1.035354495048523,
1.6434026956558228,
-0.8429833650588989,
0.24568156898021698,
-1.6420706510543823,
0.006780929863452911,
-0.5428546667098999,
-0.73307865858078,
-0.8180152177810669,
-0.33442574739456177,
-0.7778142094612122,
1.0928102731704712,
2.4286437034606934,
1.1968104839324951,
-1.459754228591919,
2.7628345489501953,
0.7026398181915283,
-0.16847091913223267,
-1.1236618757247925,
0.530170738697052,
-0.05772128328680992,
-1.3182717561721802,
-0.497509241104126,
-0.9770482182502747,
0.06696602702140808,
-0.6532946825027466,
-0.4266339838504791,
0.004323503002524376,
0.42533019185066223,
-0.2199392169713974,
-0.3968186676502228,
-0.5455885529518127,
-0.7939310073852539,
0.461095929145813,
-0.3866959512233734,
0.8792977333068848,
-0.21509259939193726,
1.7926501035690308,
-0.4722885489463806,
0.4033288061618805,
0.6943717002868652,
1.368427038192749,
0.19208399951457977,
0.007131187245249748,
0.2499179095029831,
0.3422917425632477,
-0.008769970387220383,
0.5407464504241943,
1.1437424421310425,
0.707592248916626,
0.4482572078704834,
0.6901947855949402,
-2.2774922847747803,
1.4101741313934326,
-1.045516014099121,
0.35192257165908813,
1.3199472427368164,
-0.9312713742256165,
0.39111828804016113,
-1.7053622007369995,
0.012451963499188423,
0.6386255621910095,
-2.2097177505493164,
0.29974687099456787,
-1.303740382194519,
-0.48148003220558167,
1.0561656951904297,
0.39514726400375366,
-1.2642406225204468,
0.15493181347846985,
-0.4550682306289673,
1.1064361333847046,
0.46885785460472107,
1.003474235534668,
-1.7421844005584717,
-0.050199951976537704,
-0.20416352152824402,
0.1626346856355667,
-1.280695915222168,
-1.5856549739837646,
0.5825295448303223,
0.5615191459655762,
0.6404588222503662,
-0.14413166046142578,
1.0795987844467163,
-1.1251336336135864,
0.7870400547981262,
-1.0062514543533325,
-1.6828423738479614,
-1.3689244985580444,
-2.2938272953033447,
-2.2301135063171387,
0.6786895990371704,
-0.4634278118610382,
-0.47787758708000183,
1.9783796072006226,
-0.9522553086280823,
-1.7007194757461548,
1.125571370124817,
0.2510012686252594,
0.037202052772045135,
2.4297380447387695,
0.2387779802083969,
-0.7365620732307434,
0.4407949149608612,
-0.8516362309455872,
0.8067604303359985,
-0.39159438014030457,
1.3801548480987549,
0.45597773790359497,
-1.0304219722747803,
1.5470435619354248,
-0.37298139929771423,
0.4891003966331482,
-0.6518034338951111,
-0.4928267002105713,
-0.7250680327415466,
0.2158253937959671,
1.898941993713379,
-0.26867568492889404,
1.499445915222168,
-0.42073312401771545,
-1.56549870967865,
-1.615979790687561,
0.9424231648445129,
0.43518534302711487,
-0.8336610198020935,
0.12936273217201233,
-0.4857531189918518,
0.1255646049976349,
-0.1310749351978302,
1.1894365549087524,
1.3518935441970825,
0.6606019735336304,
-0.3346390724182129,
-0.7918137311935425,
0.12844505906105042,
-0.2306673526763916,
-0.6210557818412781,
-1.8652775287628174,
-0.3786237835884094,
0.0918317437171936,
0.7061660289764404,
-1.1958733797073364,
1.7293734550476074,
0.9487584829330444,
1.888041377067566,
1.037318229675293,
-0.4364515244960785,
1.4819865226745605,
0.06200983747839928,
1.8251535892486572,
-0.637680172920227,
0.6626091599464417,
-0.435800164937973,
-1.112145185470581,
0.8710073828697205,
-0.32747769355773926,
-1.9215574264526367,
-0.7837563753128052,
-0.7584537863731384,
-0.2600710093975067,
-0.7608314752578735,
0.9055525064468384,
-0.3639109134674072,
-1.538606882095337,
0.1760842651128769,
-0.682205855846405,
0.25530463457107544,
-1.0798622369766235,
0.29156672954559326,
0.7854816317558289,
-0.6114642024040222,
0.047485120594501495,
-0.30003440380096436,
-1.232170581817627,
-0.4918234646320343,
0.414419025182724,
1.8785983324050903,
-0.6657926440238953,
0.9106335043907166,
1.0394965410232544,
-0.6228965520858765,
0.05028234422206879,
0.29390496015548706,
-0.22525687515735626,
0.8139711022377014,
-1.0545629262924194,
-0.5436624884605408,
1.230805516242981,
-0.32766056060791016,
-0.638604998588562,
1.5130126476287842,
0.7296974658966064,
-1.0181684494018555,
-0.22223292291164398,
-0.10888035595417023,
-0.8454641103744507,
0.06288054585456848,
-1.56430184841156,
-0.12673668563365936,
0.49678733944892883,
-1.5678902864456177,
-0.3994004428386688,
-0.2509821355342865,
1.3293752670288086,
-0.17566119134426117,
1.4383158683776855,
-0.3416454493999481,
-0.1100451648235321,
-0.2481238842010498,
-0.41327276825904846,
0.1871282458305359,
-0.23233360052108765,
-0.5385339856147766,
0.19307614862918854,
-0.8814765810966492,
0.36111271381378174,
1.5497477054595947,
0.30699020624160767,
0.011875208467245102,
0.44106316566467285,
1.1377488374710083,
0.486928254365921,
-0.04687432944774628,
-0.8343781232833862,
-1.5600335597991943,
1.9746284484863281,
-1.504231572151184,
2.0566980838775635,
0.7942736148834229,
-0.05222760885953903,
-1.770592212677002,
-1.7428593635559082,
1.2923401594161987,
1.0803409814834595,
2.3690261840820312,
0.5190116763114929,
0.32562246918678284,
-0.8573813438415527,
-0.6937536597251892,
0.3404305875301361,
-0.9990725517272949,
-0.7371420860290527,
0.1531336009502411,
2.396744728088379,
1.8083035945892334,
-0.4141475558280945,
-0.22010676562786102,
-0.9797134399414062,
1.4326270818710327,
-0.22323480248451233,
0.3126581013202667,
1.9934120178222656,
-0.1931660920381546,
-1.0763972997665405,
1.2858355045318604,
-2.4084084033966064,
0.22898903489112854,
2.0989322662353516,
0.3032456040382385,
0.15371470153331757,
-1.4395662546157837,
-0.620507001876831,
-0.30245834589004517,
-0.402231365442276,
-1.2744711637496948,
0.5068546533584595,
-0.2603011727333069,
-0.8088617920875549,
-1.474726915359497,
0.16931559145450592,
-1.1780622005462646,
-1.664254903793335,
0.25660598278045654,
1.9446152448654175,
2.1257174015045166,
-0.6836831569671631,
1.5903033018112183,
-0.27286815643310547,
0.17495736479759216,
1.2114499807357788,
1.2975780963897705,
3.0322647094726562,
1.8575806617736816,
-1.2723264694213867,
0.6497544050216675,
-0.20069262385368347,
-0.5016382932662964,
1.0742714405059814,
-1.136963963508606,
1.2355384826660156,
-0.12310262024402618,
-1.1535452604293823,
-1.283331036567688,
1.0796265602111816,
0.5129719376564026,
0.010242067277431488,
-0.5501317381858826,
1.2577266693115234,
0.035489339381456375,
1.3268282413482666,
0.5785970687866211,
-0.33564293384552,
0.4862869381904602,
-0.43042072653770447,
-0.6212809085845947,
1.5169322490692139,
0.19824928045272827,
-1.4469294548034668,
-2.1629488468170166,
-0.15942725539207458,
-0.880574107170105,
0.07854393124580383,
-0.6093321442604065,
-1.0187879800796509,
1.5975309610366821,
0.3438471257686615,
-1.252477765083313,
-0.2362595498561859,
-0.3028283715248108,
-0.5315849184989929,
2.6190011501312256,
-1.2158117294311523,
-0.24226520955562592,
-0.9817292094230652,
-0.6592309474945068,
1.6199445724487305,
-1.2382158041000366,
-0.2069467455148697,
-1.015281319618225,
-0.6276340484619141,
-1.2633291482925415,
-0.5353933572769165,
-0.00580429146066308,
-0.8891298174858093,
0.707596480846405,
0.1841297447681427,
-1.1456588506698608,
-0.3457913398742676,
-0.8397778868675232,
1.0083950757980347,
-0.09885025024414062,
0.18726694583892822,
1.830609917640686,
0.22826506197452545,
-0.3911782205104828,
0.860323965549469,
1.144938588142395,
0.6313024759292603,
-0.6084709763526917,
0.1247176080942154,
-0.6065889596939087,
0.4396803379058838,
-1.3197945356369019,
0.30845093727111816,
-2.9461209774017334,
0.7074435949325562,
-0.034979209303855896,
-0.15188580751419067,
-0.07006095349788666,
-1.2874187231063843,
1.1272532939910889,
2.5512094497680664,
-1.2010784149169922,
0.5586676597595215,
0.3920278251171112,
1.1932240724563599,
-1.613205909729004,
0.3371391296386719,
-0.4503699243068695,
2.0690758228302,
0.2309863120317459,
1.2799991369247437,
-0.5041399002075195,
-2.411259889602661,
0.5964765548706055,
-1.315406084060669,
-0.9903551340103149,
0.7606605291366577,
-0.8572610020637512,
0.10189208388328552,
-1.4215259552001953,
-0.25011566281318665,
-0.8798683881759644,
-1.2444039583206177,
0.6458080410957336,
0.08694043755531311,
0.37817615270614624,
-0.608572781085968,
0.4077872335910797,
-2.1536202430725098,
-1.3652641773223877,
-0.15167994797229767,
-0.9544826745986938,
0.5525524616241455,
-0.5044457912445068,
0.6120312213897705,
-0.135515958070755,
0.06842519342899323,
0.30746355652809143,
1.4513975381851196,
3.391278028488159,
0.24234820902347565,
0.2933330833911896,
-0.1864665448665619,
-0.9456949830055237,
1.4296058416366577,
0.9492653012275696,
-0.1963559091091156,
-0.5442306399345398,
-1.0908422470092773,
1.362592101097107,
2.0004029273986816,
0.9358892440795898,
0.047540828585624695,
-0.8819899559020996,
-0.7773787379264832,
-0.03832749277353287,
0.16644878685474396,
0.48617449402809143,
0.8713850378990173,
0.09143489599227905,
0.11585444211959839,
1.4191763401031494,
1.2121413946151733,
-0.41146400570869446,
0.44569864869117737,
-0.9117113351821899,
-0.41091683506965637,
0.4593007564544678,
0.24258984625339508,
-0.0631483867764473,
0.41675204038619995,
-1.0091094970703125,
-0.15004074573516846,
-0.45707541704177856,
-0.8896481990814209,
-0.7227439284324646,
-0.39031997323036194,
-0.35448068380355835,
1.5857110023498535,
0.20978450775146484,
-0.5799372792243958,
0.022389333695173264,
-0.7707067131996155,
-0.14802996814250946,
-1.0914117097854614,
0.23511752486228943,
-0.07366131246089935,
-0.11626213788986206,
-0.16365116834640503,
1.7503365278244019,
-0.8720110058784485,
-2.067298650741577,
0.11161473393440247,
0.2856716215610504,
-0.2678271532058716,
0.1961248368024826,
1.7213128805160522,
0.5342632532119751,
1.425153136253357,
1.301084280014038,
0.9684112668037415,
-0.5881977677345276,
-1.2787983417510986,
0.7750467658042908,
0.9713947772979736,
-1.3833811283111572,
0.8856021761894226,
-0.1162417083978653,
-0.5303784012794495,
0.7458386421203613,
1.3201236724853516,
0.48096343874931335,
-2.013378143310547,
0.8034443259239197,
-1.078521966934204,
0.8723738193511963,
0.751980185508728,
0.629342794418335,
0.2326832413673401,
0.8431374430656433,
-1.2584508657455444,
-1.0844060182571411,
-0.7074727416038513,
-0.7433179020881653,
1.9595813751220703,
-0.3274889290332794,
0.5660924911499023,
-0.15651674568653107,
-1.3134878873825073,
-0.15429985523223877,
0.713513195514679,
0.31270501017570496,
-0.5116880536079407,
0.839613139629364,
-0.7581154108047485,
-1.1115236282348633,
-1.2766923904418945,
-0.5121182203292847,
-1.0147614479064941,
-1.0225059986114502,
1.0323512554168701,
0.7683507204055786,
0.33843284845352173,
1.9090360403060913,
0.5762279629707336,
0.2460649162530899,
-2.546069383621216,
0.8377681970596313,
0.30235347151756287,
-0.12124842405319214,
0.8982380032539368,
0.321205198764801,
1.0811161994934082,
0.07902984321117401,
0.551339328289032,
-2.4691174030303955,
2.3236610889434814,
-0.1843220591545105,
0.7260183691978455,
0.04105687513947487,
-0.15113532543182373,
1.203865885734558,
0.6204969882965088,
0.5617637634277344,
-1.066737174987793,
0.7263755798339844,
-0.5528807640075684,
1.2456459999084473,
0.8426097631454468,
-0.8172197937965393,
-0.08555538952350616,
1.3381884098052979,
0.34240540862083435,
-0.6093688607215881,
-0.9381333589553833,
-1.0018181800842285,
0.8705748319625854,
1.7421058416366577,
-0.063946932554245,
-0.04330522567033768,
0.7402570247650146,
0.6688492894172668,
-1.2776062488555908,
0.08746899664402008,
-0.5772041082382202,
-0.7343204617500305,
1.6216057538986206,
2.0932729244232178,
-0.24782413244247437,
-0.10426492989063263,
-0.6139618158340454,
-1.3131983280181885,
0.6654403805732727,
-0.0533880740404129,
0.048949502408504486,
0.6702788472175598,
-0.5511580109596252,
1.0124945640563965,
0.7372854948043823,
0.930305004119873,
0.10408449172973633,
0.24462883174419403,
0.42278853058815,
-0.4126049280166626,
-1.2336273193359375,
-0.31620630621910095,
-1.185855507850647,
-2.5880815982818604,
0.34944769740104675,
-0.15514957904815674,
-1.3623826503753662,
0.10264761745929718,
-0.9853728413581848,
0.9323737025260925,
-0.6268455386161804,
-1.1979491710662842,
-1.3601757287979126,
0.21161973476409912,
-0.09610234200954437,
0.9198949933052063,
-1.6970977783203125,
-0.10568110644817352,
1.2167491912841797,
0.8821537494659424,
-0.6099753379821777,
1.1082152128219604,
0.2295592874288559,
1.0681195259094238,
0.817610502243042,
-0.3339396119117737,
0.5723499655723572,
0.06638716161251068,
-1.3518757820129395,
0.43128788471221924,
1.167742371559143,
0.18702064454555511,
1.3986332416534424,
-0.4696443974971771,
-0.012436704710125923,
0.40451565384864807,
-0.6737241744995117,
-0.4592284560203552,
-0.36610618233680725,
0.6334303021430969,
0.03996949642896652,
-0.8677906394004822,
0.0016843313351273537,
-0.08151441812515259,
-0.26338478922843933,
0.15516558289527893,
-1.5860042572021484,
-0.22924846410751343,
-0.39951279759407043,
-0.529671847820282,
-1.242851972579956,
-0.06634493172168732,
1.4396014213562012,
-0.7216013669967651,
-0.31865617632865906,
0.4537561237812042,
0.4072549045085907,
0.5336516499519348,
0.7181726098060608,
-0.7645469307899475,
-0.4236079752445221,
-0.188837468624115,
-0.29069989919662476,
0.42856791615486145,
1.347097396850586,
-0.10070060193538666,
-0.9040432572364807,
0.6261258721351624,
-0.3962469696998596,
0.14027029275894165,
1.8955539464950562,
-0.00744772469624877,
-0.7586104869842529,
0.28823280334472656,
-0.8127375841140747,
1.9291472434997559,
1.721795916557312,
1.2941904067993164,
-0.21130622923374176,
-0.8661335110664368,
0.6386587023735046,
-0.38169926404953003,
-0.3848232328891754,
0.8707312345504761,
0.41693803668022156,
-0.2363136261701584,
-1.3954744338989258,
0.6424741744995117,
1.2022068500518799,
-0.8679102659225464,
-0.8328741788864136,
0.12922115623950958,
-0.7812637090682983,
1.2004274129867554,
0.590177595615387,
0.35960865020751953,
0.2699398100376129,
1.6360929012298584,
0.8239402174949646,
-0.5142439603805542,
0.5670101046562195,
0.42579230666160583,
-0.26694074273109436,
-2.1209046840667725,
-1.1393039226531982,
0.28628429770469666,
-0.5714422464370728,
-1.6036370992660522,
1.3321253061294556,
-1.0951223373413086,
-0.9592544436454773,
0.5758052468299866,
0.06199580058455467,
1.3318912982940674,
0.3598814904689789,
1.5456998348236084,
2.0891482830047607,
0.8129675984382629,
0.38665324449539185,
1.23249351978302,
-0.18068130314350128,
-0.5794181227684021,
1.7642327547073364,
-0.43508437275886536,
0.4593123495578766,
1.1317161321640015,
-0.3308106064796448,
-1.011946678161621,
-0.788121223449707,
-1.206142544746399,
-0.6257354021072388,
1.1398252248764038,
0.15651796758174896,
-1.1394774913787842,
0.27668052911758423,
1.542670488357544,
0.08335213363170624,
-0.22319957613945007,
0.6963059902191162,
0.467645525932312,
-0.7250800728797913,
-0.012790683656930923,
-0.8421810865402222,
0.47154685854911804,
-0.2602972090244293,
-0.35333648324012756,
0.33111464977264404,
0.4201532006263733,
1.2719939947128296,
-0.03414524346590042,
0.13236315548419952,
1.1384499073028564,
-1.4588731527328491,
1.4911046028137207,
-0.686302125453949,
0.39545777440071106,
-2.393289566040039,
1.3356878757476807,
-0.6667192578315735,
2.0642807483673096,
-2.619436740875244,
0.4059528112411499,
-0.6466107964515686,
-0.5969754457473755,
0.31107598543167114,
-0.33133554458618164,
0.13027846813201904,
-0.17225049436092377,
-1.0634844303131104,
-0.03234010934829712,
-0.6229013204574585,
0.545071005821228,
1.0957189798355103,
1.3584233522415161,
-1.1103157997131348,
-0.19121994078159332,
-1.7738529443740845,
-0.12973998486995697,
-0.8159599900245667,
0.2776966392993927,
-2.04160475730896,
-0.24127589166164398,
-1.9470405578613281,
-2.286112070083618,
-1.3082724809646606,
-0.7663290500640869,
1.0957748889923096,
0.14568999409675598,
-0.7857535481452942,
1.2786957025527954,
-0.26608631014823914,
-1.7934502363204956,
0.9802254438400269,
-2.124882221221924
] |
https://github.com/huggingface/datasets/issues/4676 | Dataset.map gets stuck on _cast_to_python_objects | Setting the output to `"np"` makes the whole pipeline fast because it moves the data buffers from rust to python to arrow using zero-copy, and also because it does eliminate the casting completely ;)
Have you had a chance to try eliminating the tuple casting using the trick above ? | ## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 635 | 50 | Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Setting the output to `"np"` makes the whole pipeline fast because it moves the data buffers from rust to python to arrow using zero-copy, and also because it does eliminate the casting completely ;)
Have you had a chance to try eliminating the tuple casting using the trick above ? | [
-1.2169482707977295,
-1.0080511569976807,
-0.6598380208015442,
1.5983015298843384,
-0.14321206510066986,
-1.1522984504699707,
0.1424059122800827,
-1.035354495048523,
1.6434026956558228,
-0.8429833650588989,
0.24568156898021698,
-1.6420706510543823,
0.006780929863452911,
-0.5428546667098999,
-0.73307865858078,
-0.8180152177810669,
-0.33442574739456177,
-0.7778142094612122,
1.0928102731704712,
2.4286437034606934,
1.1968104839324951,
-1.459754228591919,
2.7628345489501953,
0.7026398181915283,
-0.16847091913223267,
-1.1236618757247925,
0.530170738697052,
-0.05772128328680992,
-1.3182717561721802,
-0.497509241104126,
-0.9770482182502747,
0.06696602702140808,
-0.6532946825027466,
-0.4266339838504791,
0.004323503002524376,
0.42533019185066223,
-0.2199392169713974,
-0.3968186676502228,
-0.5455885529518127,
-0.7939310073852539,
0.461095929145813,
-0.3866959512233734,
0.8792977333068848,
-0.21509259939193726,
1.7926501035690308,
-0.4722885489463806,
0.4033288061618805,
0.6943717002868652,
1.368427038192749,
0.19208399951457977,
0.007131187245249748,
0.2499179095029831,
0.3422917425632477,
-0.008769970387220383,
0.5407464504241943,
1.1437424421310425,
0.707592248916626,
0.4482572078704834,
0.6901947855949402,
-2.2774922847747803,
1.4101741313934326,
-1.045516014099121,
0.35192257165908813,
1.3199472427368164,
-0.9312713742256165,
0.39111828804016113,
-1.7053622007369995,
0.012451963499188423,
0.6386255621910095,
-2.2097177505493164,
0.29974687099456787,
-1.303740382194519,
-0.48148003220558167,
1.0561656951904297,
0.39514726400375366,
-1.2642406225204468,
0.15493181347846985,
-0.4550682306289673,
1.1064361333847046,
0.46885785460472107,
1.003474235534668,
-1.7421844005584717,
-0.050199951976537704,
-0.20416352152824402,
0.1626346856355667,
-1.280695915222168,
-1.5856549739837646,
0.5825295448303223,
0.5615191459655762,
0.6404588222503662,
-0.14413166046142578,
1.0795987844467163,
-1.1251336336135864,
0.7870400547981262,
-1.0062514543533325,
-1.6828423738479614,
-1.3689244985580444,
-2.2938272953033447,
-2.2301135063171387,
0.6786895990371704,
-0.4634278118610382,
-0.47787758708000183,
1.9783796072006226,
-0.9522553086280823,
-1.7007194757461548,
1.125571370124817,
0.2510012686252594,
0.037202052772045135,
2.4297380447387695,
0.2387779802083969,
-0.7365620732307434,
0.4407949149608612,
-0.8516362309455872,
0.8067604303359985,
-0.39159438014030457,
1.3801548480987549,
0.45597773790359497,
-1.0304219722747803,
1.5470435619354248,
-0.37298139929771423,
0.4891003966331482,
-0.6518034338951111,
-0.4928267002105713,
-0.7250680327415466,
0.2158253937959671,
1.898941993713379,
-0.26867568492889404,
1.499445915222168,
-0.42073312401771545,
-1.56549870967865,
-1.615979790687561,
0.9424231648445129,
0.43518534302711487,
-0.8336610198020935,
0.12936273217201233,
-0.4857531189918518,
0.1255646049976349,
-0.1310749351978302,
1.1894365549087524,
1.3518935441970825,
0.6606019735336304,
-0.3346390724182129,
-0.7918137311935425,
0.12844505906105042,
-0.2306673526763916,
-0.6210557818412781,
-1.8652775287628174,
-0.3786237835884094,
0.0918317437171936,
0.7061660289764404,
-1.1958733797073364,
1.7293734550476074,
0.9487584829330444,
1.888041377067566,
1.037318229675293,
-0.4364515244960785,
1.4819865226745605,
0.06200983747839928,
1.8251535892486572,
-0.637680172920227,
0.6626091599464417,
-0.435800164937973,
-1.112145185470581,
0.8710073828697205,
-0.32747769355773926,
-1.9215574264526367,
-0.7837563753128052,
-0.7584537863731384,
-0.2600710093975067,
-0.7608314752578735,
0.9055525064468384,
-0.3639109134674072,
-1.538606882095337,
0.1760842651128769,
-0.682205855846405,
0.25530463457107544,
-1.0798622369766235,
0.29156672954559326,
0.7854816317558289,
-0.6114642024040222,
0.047485120594501495,
-0.30003440380096436,
-1.232170581817627,
-0.4918234646320343,
0.414419025182724,
1.8785983324050903,
-0.6657926440238953,
0.9106335043907166,
1.0394965410232544,
-0.6228965520858765,
0.05028234422206879,
0.29390496015548706,
-0.22525687515735626,
0.8139711022377014,
-1.0545629262924194,
-0.5436624884605408,
1.230805516242981,
-0.32766056060791016,
-0.638604998588562,
1.5130126476287842,
0.7296974658966064,
-1.0181684494018555,
-0.22223292291164398,
-0.10888035595417023,
-0.8454641103744507,
0.06288054585456848,
-1.56430184841156,
-0.12673668563365936,
0.49678733944892883,
-1.5678902864456177,
-0.3994004428386688,
-0.2509821355342865,
1.3293752670288086,
-0.17566119134426117,
1.4383158683776855,
-0.3416454493999481,
-0.1100451648235321,
-0.2481238842010498,
-0.41327276825904846,
0.1871282458305359,
-0.23233360052108765,
-0.5385339856147766,
0.19307614862918854,
-0.8814765810966492,
0.36111271381378174,
1.5497477054595947,
0.30699020624160767,
0.011875208467245102,
0.44106316566467285,
1.1377488374710083,
0.486928254365921,
-0.04687432944774628,
-0.8343781232833862,
-1.5600335597991943,
1.9746284484863281,
-1.504231572151184,
2.0566980838775635,
0.7942736148834229,
-0.05222760885953903,
-1.770592212677002,
-1.7428593635559082,
1.2923401594161987,
1.0803409814834595,
2.3690261840820312,
0.5190116763114929,
0.32562246918678284,
-0.8573813438415527,
-0.6937536597251892,
0.3404305875301361,
-0.9990725517272949,
-0.7371420860290527,
0.1531336009502411,
2.396744728088379,
1.8083035945892334,
-0.4141475558280945,
-0.22010676562786102,
-0.9797134399414062,
1.4326270818710327,
-0.22323480248451233,
0.3126581013202667,
1.9934120178222656,
-0.1931660920381546,
-1.0763972997665405,
1.2858355045318604,
-2.4084084033966064,
0.22898903489112854,
2.0989322662353516,
0.3032456040382385,
0.15371470153331757,
-1.4395662546157837,
-0.620507001876831,
-0.30245834589004517,
-0.402231365442276,
-1.2744711637496948,
0.5068546533584595,
-0.2603011727333069,
-0.8088617920875549,
-1.474726915359497,
0.16931559145450592,
-1.1780622005462646,
-1.664254903793335,
0.25660598278045654,
1.9446152448654175,
2.1257174015045166,
-0.6836831569671631,
1.5903033018112183,
-0.27286815643310547,
0.17495736479759216,
1.2114499807357788,
1.2975780963897705,
3.0322647094726562,
1.8575806617736816,
-1.2723264694213867,
0.6497544050216675,
-0.20069262385368347,
-0.5016382932662964,
1.0742714405059814,
-1.136963963508606,
1.2355384826660156,
-0.12310262024402618,
-1.1535452604293823,
-1.283331036567688,
1.0796265602111816,
0.5129719376564026,
0.010242067277431488,
-0.5501317381858826,
1.2577266693115234,
0.035489339381456375,
1.3268282413482666,
0.5785970687866211,
-0.33564293384552,
0.4862869381904602,
-0.43042072653770447,
-0.6212809085845947,
1.5169322490692139,
0.19824928045272827,
-1.4469294548034668,
-2.1629488468170166,
-0.15942725539207458,
-0.880574107170105,
0.07854393124580383,
-0.6093321442604065,
-1.0187879800796509,
1.5975309610366821,
0.3438471257686615,
-1.252477765083313,
-0.2362595498561859,
-0.3028283715248108,
-0.5315849184989929,
2.6190011501312256,
-1.2158117294311523,
-0.24226520955562592,
-0.9817292094230652,
-0.6592309474945068,
1.6199445724487305,
-1.2382158041000366,
-0.2069467455148697,
-1.015281319618225,
-0.6276340484619141,
-1.2633291482925415,
-0.5353933572769165,
-0.00580429146066308,
-0.8891298174858093,
0.707596480846405,
0.1841297447681427,
-1.1456588506698608,
-0.3457913398742676,
-0.8397778868675232,
1.0083950757980347,
-0.09885025024414062,
0.18726694583892822,
1.830609917640686,
0.22826506197452545,
-0.3911782205104828,
0.860323965549469,
1.144938588142395,
0.6313024759292603,
-0.6084709763526917,
0.1247176080942154,
-0.6065889596939087,
0.4396803379058838,
-1.3197945356369019,
0.30845093727111816,
-2.9461209774017334,
0.7074435949325562,
-0.034979209303855896,
-0.15188580751419067,
-0.07006095349788666,
-1.2874187231063843,
1.1272532939910889,
2.5512094497680664,
-1.2010784149169922,
0.5586676597595215,
0.3920278251171112,
1.1932240724563599,
-1.613205909729004,
0.3371391296386719,
-0.4503699243068695,
2.0690758228302,
0.2309863120317459,
1.2799991369247437,
-0.5041399002075195,
-2.411259889602661,
0.5964765548706055,
-1.315406084060669,
-0.9903551340103149,
0.7606605291366577,
-0.8572610020637512,
0.10189208388328552,
-1.4215259552001953,
-0.25011566281318665,
-0.8798683881759644,
-1.2444039583206177,
0.6458080410957336,
0.08694043755531311,
0.37817615270614624,
-0.608572781085968,
0.4077872335910797,
-2.1536202430725098,
-1.3652641773223877,
-0.15167994797229767,
-0.9544826745986938,
0.5525524616241455,
-0.5044457912445068,
0.6120312213897705,
-0.135515958070755,
0.06842519342899323,
0.30746355652809143,
1.4513975381851196,
3.391278028488159,
0.24234820902347565,
0.2933330833911896,
-0.1864665448665619,
-0.9456949830055237,
1.4296058416366577,
0.9492653012275696,
-0.1963559091091156,
-0.5442306399345398,
-1.0908422470092773,
1.362592101097107,
2.0004029273986816,
0.9358892440795898,
0.047540828585624695,
-0.8819899559020996,
-0.7773787379264832,
-0.03832749277353287,
0.16644878685474396,
0.48617449402809143,
0.8713850378990173,
0.09143489599227905,
0.11585444211959839,
1.4191763401031494,
1.2121413946151733,
-0.41146400570869446,
0.44569864869117737,
-0.9117113351821899,
-0.41091683506965637,
0.4593007564544678,
0.24258984625339508,
-0.0631483867764473,
0.41675204038619995,
-1.0091094970703125,
-0.15004074573516846,
-0.45707541704177856,
-0.8896481990814209,
-0.7227439284324646,
-0.39031997323036194,
-0.35448068380355835,
1.5857110023498535,
0.20978450775146484,
-0.5799372792243958,
0.022389333695173264,
-0.7707067131996155,
-0.14802996814250946,
-1.0914117097854614,
0.23511752486228943,
-0.07366131246089935,
-0.11626213788986206,
-0.16365116834640503,
1.7503365278244019,
-0.8720110058784485,
-2.067298650741577,
0.11161473393440247,
0.2856716215610504,
-0.2678271532058716,
0.1961248368024826,
1.7213128805160522,
0.5342632532119751,
1.425153136253357,
1.301084280014038,
0.9684112668037415,
-0.5881977677345276,
-1.2787983417510986,
0.7750467658042908,
0.9713947772979736,
-1.3833811283111572,
0.8856021761894226,
-0.1162417083978653,
-0.5303784012794495,
0.7458386421203613,
1.3201236724853516,
0.48096343874931335,
-2.013378143310547,
0.8034443259239197,
-1.078521966934204,
0.8723738193511963,
0.751980185508728,
0.629342794418335,
0.2326832413673401,
0.8431374430656433,
-1.2584508657455444,
-1.0844060182571411,
-0.7074727416038513,
-0.7433179020881653,
1.9595813751220703,
-0.3274889290332794,
0.5660924911499023,
-0.15651674568653107,
-1.3134878873825073,
-0.15429985523223877,
0.713513195514679,
0.31270501017570496,
-0.5116880536079407,
0.839613139629364,
-0.7581154108047485,
-1.1115236282348633,
-1.2766923904418945,
-0.5121182203292847,
-1.0147614479064941,
-1.0225059986114502,
1.0323512554168701,
0.7683507204055786,
0.33843284845352173,
1.9090360403060913,
0.5762279629707336,
0.2460649162530899,
-2.546069383621216,
0.8377681970596313,
0.30235347151756287,
-0.12124842405319214,
0.8982380032539368,
0.321205198764801,
1.0811161994934082,
0.07902984321117401,
0.551339328289032,
-2.4691174030303955,
2.3236610889434814,
-0.1843220591545105,
0.7260183691978455,
0.04105687513947487,
-0.15113532543182373,
1.203865885734558,
0.6204969882965088,
0.5617637634277344,
-1.066737174987793,
0.7263755798339844,
-0.5528807640075684,
1.2456459999084473,
0.8426097631454468,
-0.8172197937965393,
-0.08555538952350616,
1.3381884098052979,
0.34240540862083435,
-0.6093688607215881,
-0.9381333589553833,
-1.0018181800842285,
0.8705748319625854,
1.7421058416366577,
-0.063946932554245,
-0.04330522567033768,
0.7402570247650146,
0.6688492894172668,
-1.2776062488555908,
0.08746899664402008,
-0.5772041082382202,
-0.7343204617500305,
1.6216057538986206,
2.0932729244232178,
-0.24782413244247437,
-0.10426492989063263,
-0.6139618158340454,
-1.3131983280181885,
0.6654403805732727,
-0.0533880740404129,
0.048949502408504486,
0.6702788472175598,
-0.5511580109596252,
1.0124945640563965,
0.7372854948043823,
0.930305004119873,
0.10408449172973633,
0.24462883174419403,
0.42278853058815,
-0.4126049280166626,
-1.2336273193359375,
-0.31620630621910095,
-1.185855507850647,
-2.5880815982818604,
0.34944769740104675,
-0.15514957904815674,
-1.3623826503753662,
0.10264761745929718,
-0.9853728413581848,
0.9323737025260925,
-0.6268455386161804,
-1.1979491710662842,
-1.3601757287979126,
0.21161973476409912,
-0.09610234200954437,
0.9198949933052063,
-1.6970977783203125,
-0.10568110644817352,
1.2167491912841797,
0.8821537494659424,
-0.6099753379821777,
1.1082152128219604,
0.2295592874288559,
1.0681195259094238,
0.817610502243042,
-0.3339396119117737,
0.5723499655723572,
0.06638716161251068,
-1.3518757820129395,
0.43128788471221924,
1.167742371559143,
0.18702064454555511,
1.3986332416534424,
-0.4696443974971771,
-0.012436704710125923,
0.40451565384864807,
-0.6737241744995117,
-0.4592284560203552,
-0.36610618233680725,
0.6334303021430969,
0.03996949642896652,
-0.8677906394004822,
0.0016843313351273537,
-0.08151441812515259,
-0.26338478922843933,
0.15516558289527893,
-1.5860042572021484,
-0.22924846410751343,
-0.39951279759407043,
-0.529671847820282,
-1.242851972579956,
-0.06634493172168732,
1.4396014213562012,
-0.7216013669967651,
-0.31865617632865906,
0.4537561237812042,
0.4072549045085907,
0.5336516499519348,
0.7181726098060608,
-0.7645469307899475,
-0.4236079752445221,
-0.188837468624115,
-0.29069989919662476,
0.42856791615486145,
1.347097396850586,
-0.10070060193538666,
-0.9040432572364807,
0.6261258721351624,
-0.3962469696998596,
0.14027029275894165,
1.8955539464950562,
-0.00744772469624877,
-0.7586104869842529,
0.28823280334472656,
-0.8127375841140747,
1.9291472434997559,
1.721795916557312,
1.2941904067993164,
-0.21130622923374176,
-0.8661335110664368,
0.6386587023735046,
-0.38169926404953003,
-0.3848232328891754,
0.8707312345504761,
0.41693803668022156,
-0.2363136261701584,
-1.3954744338989258,
0.6424741744995117,
1.2022068500518799,
-0.8679102659225464,
-0.8328741788864136,
0.12922115623950958,
-0.7812637090682983,
1.2004274129867554,
0.590177595615387,
0.35960865020751953,
0.2699398100376129,
1.6360929012298584,
0.8239402174949646,
-0.5142439603805542,
0.5670101046562195,
0.42579230666160583,
-0.26694074273109436,
-2.1209046840667725,
-1.1393039226531982,
0.28628429770469666,
-0.5714422464370728,
-1.6036370992660522,
1.3321253061294556,
-1.0951223373413086,
-0.9592544436454773,
0.5758052468299866,
0.06199580058455467,
1.3318912982940674,
0.3598814904689789,
1.5456998348236084,
2.0891482830047607,
0.8129675984382629,
0.38665324449539185,
1.23249351978302,
-0.18068130314350128,
-0.5794181227684021,
1.7642327547073364,
-0.43508437275886536,
0.4593123495578766,
1.1317161321640015,
-0.3308106064796448,
-1.011946678161621,
-0.788121223449707,
-1.206142544746399,
-0.6257354021072388,
1.1398252248764038,
0.15651796758174896,
-1.1394774913787842,
0.27668052911758423,
1.542670488357544,
0.08335213363170624,
-0.22319957613945007,
0.6963059902191162,
0.467645525932312,
-0.7250800728797913,
-0.012790683656930923,
-0.8421810865402222,
0.47154685854911804,
-0.2602972090244293,
-0.35333648324012756,
0.33111464977264404,
0.4201532006263733,
1.2719939947128296,
-0.03414524346590042,
0.13236315548419952,
1.1384499073028564,
-1.4588731527328491,
1.4911046028137207,
-0.686302125453949,
0.39545777440071106,
-2.393289566040039,
1.3356878757476807,
-0.6667192578315735,
2.0642807483673096,
-2.619436740875244,
0.4059528112411499,
-0.6466107964515686,
-0.5969754457473755,
0.31107598543167114,
-0.33133554458618164,
0.13027846813201904,
-0.17225049436092377,
-1.0634844303131104,
-0.03234010934829712,
-0.6229013204574585,
0.545071005821228,
1.0957189798355103,
1.3584233522415161,
-1.1103157997131348,
-0.19121994078159332,
-1.7738529443740845,
-0.12973998486995697,
-0.8159599900245667,
0.2776966392993927,
-2.04160475730896,
-0.24127589166164398,
-1.9470405578613281,
-2.286112070083618,
-1.3082724809646606,
-0.7663290500640869,
1.0957748889923096,
0.14568999409675598,
-0.7857535481452942,
1.2786957025527954,
-0.26608631014823914,
-1.7934502363204956,
0.9802254438400269,
-2.124882221221924
] |
https://github.com/huggingface/datasets/issues/4676 | Dataset.map gets stuck on _cast_to_python_objects | @lhoestq I just benchmarked the two edits to `features.py` above, and they appear to solve the problem, bringing my original example to within 20% the speed of the output `"np"` example. Nice!
For a pull request, do you suggest simply following https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md ? | ## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 635 | 43 | Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
@lhoestq I just benchmarked the two edits to `features.py` above, and they appear to solve the problem, bringing my original example to within 20% the speed of the output `"np"` example. Nice!
For a pull request, do you suggest simply following https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md ? | [
-1.2169482707977295,
-1.0080511569976807,
-0.6598380208015442,
1.5983015298843384,
-0.14321206510066986,
-1.1522984504699707,
0.1424059122800827,
-1.035354495048523,
1.6434026956558228,
-0.8429833650588989,
0.24568156898021698,
-1.6420706510543823,
0.006780929863452911,
-0.5428546667098999,
-0.73307865858078,
-0.8180152177810669,
-0.33442574739456177,
-0.7778142094612122,
1.0928102731704712,
2.4286437034606934,
1.1968104839324951,
-1.459754228591919,
2.7628345489501953,
0.7026398181915283,
-0.16847091913223267,
-1.1236618757247925,
0.530170738697052,
-0.05772128328680992,
-1.3182717561721802,
-0.497509241104126,
-0.9770482182502747,
0.06696602702140808,
-0.6532946825027466,
-0.4266339838504791,
0.004323503002524376,
0.42533019185066223,
-0.2199392169713974,
-0.3968186676502228,
-0.5455885529518127,
-0.7939310073852539,
0.461095929145813,
-0.3866959512233734,
0.8792977333068848,
-0.21509259939193726,
1.7926501035690308,
-0.4722885489463806,
0.4033288061618805,
0.6943717002868652,
1.368427038192749,
0.19208399951457977,
0.007131187245249748,
0.2499179095029831,
0.3422917425632477,
-0.008769970387220383,
0.5407464504241943,
1.1437424421310425,
0.707592248916626,
0.4482572078704834,
0.6901947855949402,
-2.2774922847747803,
1.4101741313934326,
-1.045516014099121,
0.35192257165908813,
1.3199472427368164,
-0.9312713742256165,
0.39111828804016113,
-1.7053622007369995,
0.012451963499188423,
0.6386255621910095,
-2.2097177505493164,
0.29974687099456787,
-1.303740382194519,
-0.48148003220558167,
1.0561656951904297,
0.39514726400375366,
-1.2642406225204468,
0.15493181347846985,
-0.4550682306289673,
1.1064361333847046,
0.46885785460472107,
1.003474235534668,
-1.7421844005584717,
-0.050199951976537704,
-0.20416352152824402,
0.1626346856355667,
-1.280695915222168,
-1.5856549739837646,
0.5825295448303223,
0.5615191459655762,
0.6404588222503662,
-0.14413166046142578,
1.0795987844467163,
-1.1251336336135864,
0.7870400547981262,
-1.0062514543533325,
-1.6828423738479614,
-1.3689244985580444,
-2.2938272953033447,
-2.2301135063171387,
0.6786895990371704,
-0.4634278118610382,
-0.47787758708000183,
1.9783796072006226,
-0.9522553086280823,
-1.7007194757461548,
1.125571370124817,
0.2510012686252594,
0.037202052772045135,
2.4297380447387695,
0.2387779802083969,
-0.7365620732307434,
0.4407949149608612,
-0.8516362309455872,
0.8067604303359985,
-0.39159438014030457,
1.3801548480987549,
0.45597773790359497,
-1.0304219722747803,
1.5470435619354248,
-0.37298139929771423,
0.4891003966331482,
-0.6518034338951111,
-0.4928267002105713,
-0.7250680327415466,
0.2158253937959671,
1.898941993713379,
-0.26867568492889404,
1.499445915222168,
-0.42073312401771545,
-1.56549870967865,
-1.615979790687561,
0.9424231648445129,
0.43518534302711487,
-0.8336610198020935,
0.12936273217201233,
-0.4857531189918518,
0.1255646049976349,
-0.1310749351978302,
1.1894365549087524,
1.3518935441970825,
0.6606019735336304,
-0.3346390724182129,
-0.7918137311935425,
0.12844505906105042,
-0.2306673526763916,
-0.6210557818412781,
-1.8652775287628174,
-0.3786237835884094,
0.0918317437171936,
0.7061660289764404,
-1.1958733797073364,
1.7293734550476074,
0.9487584829330444,
1.888041377067566,
1.037318229675293,
-0.4364515244960785,
1.4819865226745605,
0.06200983747839928,
1.8251535892486572,
-0.637680172920227,
0.6626091599464417,
-0.435800164937973,
-1.112145185470581,
0.8710073828697205,
-0.32747769355773926,
-1.9215574264526367,
-0.7837563753128052,
-0.7584537863731384,
-0.2600710093975067,
-0.7608314752578735,
0.9055525064468384,
-0.3639109134674072,
-1.538606882095337,
0.1760842651128769,
-0.682205855846405,
0.25530463457107544,
-1.0798622369766235,
0.29156672954559326,
0.7854816317558289,
-0.6114642024040222,
0.047485120594501495,
-0.30003440380096436,
-1.232170581817627,
-0.4918234646320343,
0.414419025182724,
1.8785983324050903,
-0.6657926440238953,
0.9106335043907166,
1.0394965410232544,
-0.6228965520858765,
0.05028234422206879,
0.29390496015548706,
-0.22525687515735626,
0.8139711022377014,
-1.0545629262924194,
-0.5436624884605408,
1.230805516242981,
-0.32766056060791016,
-0.638604998588562,
1.5130126476287842,
0.7296974658966064,
-1.0181684494018555,
-0.22223292291164398,
-0.10888035595417023,
-0.8454641103744507,
0.06288054585456848,
-1.56430184841156,
-0.12673668563365936,
0.49678733944892883,
-1.5678902864456177,
-0.3994004428386688,
-0.2509821355342865,
1.3293752670288086,
-0.17566119134426117,
1.4383158683776855,
-0.3416454493999481,
-0.1100451648235321,
-0.2481238842010498,
-0.41327276825904846,
0.1871282458305359,
-0.23233360052108765,
-0.5385339856147766,
0.19307614862918854,
-0.8814765810966492,
0.36111271381378174,
1.5497477054595947,
0.30699020624160767,
0.011875208467245102,
0.44106316566467285,
1.1377488374710083,
0.486928254365921,
-0.04687432944774628,
-0.8343781232833862,
-1.5600335597991943,
1.9746284484863281,
-1.504231572151184,
2.0566980838775635,
0.7942736148834229,
-0.05222760885953903,
-1.770592212677002,
-1.7428593635559082,
1.2923401594161987,
1.0803409814834595,
2.3690261840820312,
0.5190116763114929,
0.32562246918678284,
-0.8573813438415527,
-0.6937536597251892,
0.3404305875301361,
-0.9990725517272949,
-0.7371420860290527,
0.1531336009502411,
2.396744728088379,
1.8083035945892334,
-0.4141475558280945,
-0.22010676562786102,
-0.9797134399414062,
1.4326270818710327,
-0.22323480248451233,
0.3126581013202667,
1.9934120178222656,
-0.1931660920381546,
-1.0763972997665405,
1.2858355045318604,
-2.4084084033966064,
0.22898903489112854,
2.0989322662353516,
0.3032456040382385,
0.15371470153331757,
-1.4395662546157837,
-0.620507001876831,
-0.30245834589004517,
-0.402231365442276,
-1.2744711637496948,
0.5068546533584595,
-0.2603011727333069,
-0.8088617920875549,
-1.474726915359497,
0.16931559145450592,
-1.1780622005462646,
-1.664254903793335,
0.25660598278045654,
1.9446152448654175,
2.1257174015045166,
-0.6836831569671631,
1.5903033018112183,
-0.27286815643310547,
0.17495736479759216,
1.2114499807357788,
1.2975780963897705,
3.0322647094726562,
1.8575806617736816,
-1.2723264694213867,
0.6497544050216675,
-0.20069262385368347,
-0.5016382932662964,
1.0742714405059814,
-1.136963963508606,
1.2355384826660156,
-0.12310262024402618,
-1.1535452604293823,
-1.283331036567688,
1.0796265602111816,
0.5129719376564026,
0.010242067277431488,
-0.5501317381858826,
1.2577266693115234,
0.035489339381456375,
1.3268282413482666,
0.5785970687866211,
-0.33564293384552,
0.4862869381904602,
-0.43042072653770447,
-0.6212809085845947,
1.5169322490692139,
0.19824928045272827,
-1.4469294548034668,
-2.1629488468170166,
-0.15942725539207458,
-0.880574107170105,
0.07854393124580383,
-0.6093321442604065,
-1.0187879800796509,
1.5975309610366821,
0.3438471257686615,
-1.252477765083313,
-0.2362595498561859,
-0.3028283715248108,
-0.5315849184989929,
2.6190011501312256,
-1.2158117294311523,
-0.24226520955562592,
-0.9817292094230652,
-0.6592309474945068,
1.6199445724487305,
-1.2382158041000366,
-0.2069467455148697,
-1.015281319618225,
-0.6276340484619141,
-1.2633291482925415,
-0.5353933572769165,
-0.00580429146066308,
-0.8891298174858093,
0.707596480846405,
0.1841297447681427,
-1.1456588506698608,
-0.3457913398742676,
-0.8397778868675232,
1.0083950757980347,
-0.09885025024414062,
0.18726694583892822,
1.830609917640686,
0.22826506197452545,
-0.3911782205104828,
0.860323965549469,
1.144938588142395,
0.6313024759292603,
-0.6084709763526917,
0.1247176080942154,
-0.6065889596939087,
0.4396803379058838,
-1.3197945356369019,
0.30845093727111816,
-2.9461209774017334,
0.7074435949325562,
-0.034979209303855896,
-0.15188580751419067,
-0.07006095349788666,
-1.2874187231063843,
1.1272532939910889,
2.5512094497680664,
-1.2010784149169922,
0.5586676597595215,
0.3920278251171112,
1.1932240724563599,
-1.613205909729004,
0.3371391296386719,
-0.4503699243068695,
2.0690758228302,
0.2309863120317459,
1.2799991369247437,
-0.5041399002075195,
-2.411259889602661,
0.5964765548706055,
-1.315406084060669,
-0.9903551340103149,
0.7606605291366577,
-0.8572610020637512,
0.10189208388328552,
-1.4215259552001953,
-0.25011566281318665,
-0.8798683881759644,
-1.2444039583206177,
0.6458080410957336,
0.08694043755531311,
0.37817615270614624,
-0.608572781085968,
0.4077872335910797,
-2.1536202430725098,
-1.3652641773223877,
-0.15167994797229767,
-0.9544826745986938,
0.5525524616241455,
-0.5044457912445068,
0.6120312213897705,
-0.135515958070755,
0.06842519342899323,
0.30746355652809143,
1.4513975381851196,
3.391278028488159,
0.24234820902347565,
0.2933330833911896,
-0.1864665448665619,
-0.9456949830055237,
1.4296058416366577,
0.9492653012275696,
-0.1963559091091156,
-0.5442306399345398,
-1.0908422470092773,
1.362592101097107,
2.0004029273986816,
0.9358892440795898,
0.047540828585624695,
-0.8819899559020996,
-0.7773787379264832,
-0.03832749277353287,
0.16644878685474396,
0.48617449402809143,
0.8713850378990173,
0.09143489599227905,
0.11585444211959839,
1.4191763401031494,
1.2121413946151733,
-0.41146400570869446,
0.44569864869117737,
-0.9117113351821899,
-0.41091683506965637,
0.4593007564544678,
0.24258984625339508,
-0.0631483867764473,
0.41675204038619995,
-1.0091094970703125,
-0.15004074573516846,
-0.45707541704177856,
-0.8896481990814209,
-0.7227439284324646,
-0.39031997323036194,
-0.35448068380355835,
1.5857110023498535,
0.20978450775146484,
-0.5799372792243958,
0.022389333695173264,
-0.7707067131996155,
-0.14802996814250946,
-1.0914117097854614,
0.23511752486228943,
-0.07366131246089935,
-0.11626213788986206,
-0.16365116834640503,
1.7503365278244019,
-0.8720110058784485,
-2.067298650741577,
0.11161473393440247,
0.2856716215610504,
-0.2678271532058716,
0.1961248368024826,
1.7213128805160522,
0.5342632532119751,
1.425153136253357,
1.301084280014038,
0.9684112668037415,
-0.5881977677345276,
-1.2787983417510986,
0.7750467658042908,
0.9713947772979736,
-1.3833811283111572,
0.8856021761894226,
-0.1162417083978653,
-0.5303784012794495,
0.7458386421203613,
1.3201236724853516,
0.48096343874931335,
-2.013378143310547,
0.8034443259239197,
-1.078521966934204,
0.8723738193511963,
0.751980185508728,
0.629342794418335,
0.2326832413673401,
0.8431374430656433,
-1.2584508657455444,
-1.0844060182571411,
-0.7074727416038513,
-0.7433179020881653,
1.9595813751220703,
-0.3274889290332794,
0.5660924911499023,
-0.15651674568653107,
-1.3134878873825073,
-0.15429985523223877,
0.713513195514679,
0.31270501017570496,
-0.5116880536079407,
0.839613139629364,
-0.7581154108047485,
-1.1115236282348633,
-1.2766923904418945,
-0.5121182203292847,
-1.0147614479064941,
-1.0225059986114502,
1.0323512554168701,
0.7683507204055786,
0.33843284845352173,
1.9090360403060913,
0.5762279629707336,
0.2460649162530899,
-2.546069383621216,
0.8377681970596313,
0.30235347151756287,
-0.12124842405319214,
0.8982380032539368,
0.321205198764801,
1.0811161994934082,
0.07902984321117401,
0.551339328289032,
-2.4691174030303955,
2.3236610889434814,
-0.1843220591545105,
0.7260183691978455,
0.04105687513947487,
-0.15113532543182373,
1.203865885734558,
0.6204969882965088,
0.5617637634277344,
-1.066737174987793,
0.7263755798339844,
-0.5528807640075684,
1.2456459999084473,
0.8426097631454468,
-0.8172197937965393,
-0.08555538952350616,
1.3381884098052979,
0.34240540862083435,
-0.6093688607215881,
-0.9381333589553833,
-1.0018181800842285,
0.8705748319625854,
1.7421058416366577,
-0.063946932554245,
-0.04330522567033768,
0.7402570247650146,
0.6688492894172668,
-1.2776062488555908,
0.08746899664402008,
-0.5772041082382202,
-0.7343204617500305,
1.6216057538986206,
2.0932729244232178,
-0.24782413244247437,
-0.10426492989063263,
-0.6139618158340454,
-1.3131983280181885,
0.6654403805732727,
-0.0533880740404129,
0.048949502408504486,
0.6702788472175598,
-0.5511580109596252,
1.0124945640563965,
0.7372854948043823,
0.930305004119873,
0.10408449172973633,
0.24462883174419403,
0.42278853058815,
-0.4126049280166626,
-1.2336273193359375,
-0.31620630621910095,
-1.185855507850647,
-2.5880815982818604,
0.34944769740104675,
-0.15514957904815674,
-1.3623826503753662,
0.10264761745929718,
-0.9853728413581848,
0.9323737025260925,
-0.6268455386161804,
-1.1979491710662842,
-1.3601757287979126,
0.21161973476409912,
-0.09610234200954437,
0.9198949933052063,
-1.6970977783203125,
-0.10568110644817352,
1.2167491912841797,
0.8821537494659424,
-0.6099753379821777,
1.1082152128219604,
0.2295592874288559,
1.0681195259094238,
0.817610502243042,
-0.3339396119117737,
0.5723499655723572,
0.06638716161251068,
-1.3518757820129395,
0.43128788471221924,
1.167742371559143,
0.18702064454555511,
1.3986332416534424,
-0.4696443974971771,
-0.012436704710125923,
0.40451565384864807,
-0.6737241744995117,
-0.4592284560203552,
-0.36610618233680725,
0.6334303021430969,
0.03996949642896652,
-0.8677906394004822,
0.0016843313351273537,
-0.08151441812515259,
-0.26338478922843933,
0.15516558289527893,
-1.5860042572021484,
-0.22924846410751343,
-0.39951279759407043,
-0.529671847820282,
-1.242851972579956,
-0.06634493172168732,
1.4396014213562012,
-0.7216013669967651,
-0.31865617632865906,
0.4537561237812042,
0.4072549045085907,
0.5336516499519348,
0.7181726098060608,
-0.7645469307899475,
-0.4236079752445221,
-0.188837468624115,
-0.29069989919662476,
0.42856791615486145,
1.347097396850586,
-0.10070060193538666,
-0.9040432572364807,
0.6261258721351624,
-0.3962469696998596,
0.14027029275894165,
1.8955539464950562,
-0.00744772469624877,
-0.7586104869842529,
0.28823280334472656,
-0.8127375841140747,
1.9291472434997559,
1.721795916557312,
1.2941904067993164,
-0.21130622923374176,
-0.8661335110664368,
0.6386587023735046,
-0.38169926404953003,
-0.3848232328891754,
0.8707312345504761,
0.41693803668022156,
-0.2363136261701584,
-1.3954744338989258,
0.6424741744995117,
1.2022068500518799,
-0.8679102659225464,
-0.8328741788864136,
0.12922115623950958,
-0.7812637090682983,
1.2004274129867554,
0.590177595615387,
0.35960865020751953,
0.2699398100376129,
1.6360929012298584,
0.8239402174949646,
-0.5142439603805542,
0.5670101046562195,
0.42579230666160583,
-0.26694074273109436,
-2.1209046840667725,
-1.1393039226531982,
0.28628429770469666,
-0.5714422464370728,
-1.6036370992660522,
1.3321253061294556,
-1.0951223373413086,
-0.9592544436454773,
0.5758052468299866,
0.06199580058455467,
1.3318912982940674,
0.3598814904689789,
1.5456998348236084,
2.0891482830047607,
0.8129675984382629,
0.38665324449539185,
1.23249351978302,
-0.18068130314350128,
-0.5794181227684021,
1.7642327547073364,
-0.43508437275886536,
0.4593123495578766,
1.1317161321640015,
-0.3308106064796448,
-1.011946678161621,
-0.788121223449707,
-1.206142544746399,
-0.6257354021072388,
1.1398252248764038,
0.15651796758174896,
-1.1394774913787842,
0.27668052911758423,
1.542670488357544,
0.08335213363170624,
-0.22319957613945007,
0.6963059902191162,
0.467645525932312,
-0.7250800728797913,
-0.012790683656930923,
-0.8421810865402222,
0.47154685854911804,
-0.2602972090244293,
-0.35333648324012756,
0.33111464977264404,
0.4201532006263733,
1.2719939947128296,
-0.03414524346590042,
0.13236315548419952,
1.1384499073028564,
-1.4588731527328491,
1.4911046028137207,
-0.686302125453949,
0.39545777440071106,
-2.393289566040039,
1.3356878757476807,
-0.6667192578315735,
2.0642807483673096,
-2.619436740875244,
0.4059528112411499,
-0.6466107964515686,
-0.5969754457473755,
0.31107598543167114,
-0.33133554458618164,
0.13027846813201904,
-0.17225049436092377,
-1.0634844303131104,
-0.03234010934829712,
-0.6229013204574585,
0.545071005821228,
1.0957189798355103,
1.3584233522415161,
-1.1103157997131348,
-0.19121994078159332,
-1.7738529443740845,
-0.12973998486995697,
-0.8159599900245667,
0.2776966392993927,
-2.04160475730896,
-0.24127589166164398,
-1.9470405578613281,
-2.286112070083618,
-1.3082724809646606,
-0.7663290500640869,
1.0957748889923096,
0.14568999409675598,
-0.7857535481452942,
1.2786957025527954,
-0.26608631014823914,
-1.7934502363204956,
0.9802254438400269,
-2.124882221221924
] |
https://github.com/huggingface/datasets/issues/4676 | Dataset.map gets stuck on _cast_to_python_objects | Cool ! Sure feel free to follow these instructions to open a PR :) thanks ! | ## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 635 | 16 | Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug
`Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows.
Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb , and it did _not_ have this problem. However, I'm at a loss to figure out how it avoids it, as the example below is simple and minimal and still has this problem.
This casting, where it occurs, causes the `Dataset.map` to run approximately 7x slower than it runs for code which does not cause this casting.
This may be related to https://github.com/huggingface/datasets/issues/1046 . However, the tokenizer is _not_ set to return Tensors.
## Steps to reproduce the bug
A minimal, self-contained example to reproduce is below:
```python
import transformers
from transformers import AutoTokenizer
from datasets import load_dataset
import torch
import cProfile
pretrained = 'distilbert-base-uncased'
tokenizer = AutoTokenizer.from_pretrained(pretrained)
squad = load_dataset('squad')
squad_train = squad['train']
squad_tiny = squad_train.select(range(5000))
assert isinstance(tokenizer, transformers.PreTrainedTokenizerFast)
def tokenize(ds):
tokens = tokenizer(text=ds['question'],
text_pair=ds['context'],
add_special_tokens=True,
padding='max_length',
truncation='only_second',
max_length=160,
stride=32,
return_overflowing_tokens=True,
return_offsets_mapping=True,
)
return tokens
cmd = 'squad_tiny.map(tokenize, batched=True, remove_columns=squad_tiny.column_names)'
cProfile.run(cmd, sort='tottime')
```
## Actual results
The code works, but takes 10-25 sec per batch (about 7x slower than non-casting code), with the following profile. Note that `_cast_to_python_objects` is the culprit.
```
63524075 function calls (58206482 primitive calls) in 121.836 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
5274034/40 68.751 0.000 111.060 2.776 features.py:262(_cast_to_python_objects)
42223832 24.077 0.000 33.310 0.000 {built-in method builtins.isinstance}
16338/20 5.121 0.000 111.053 5.553 features.py:361(<listcomp>)
5274135 4.747 0.000 4.749 0.000 {built-in method _abc._abc_instancecheck}
80/40 4.731 0.059 116.292 2.907 {pyarrow.lib.array}
5274135 4.485 0.000 9.234 0.000 abc.py:96(__instancecheck__)
2661564/2645196 2.959 0.000 4.298 0.000 features.py:1081(_check_non_null_non_empty_recursive)
5 2.786 0.557 2.786 0.557 {method 'encode_batch' of 'tokenizers.Tokenizer' objects}
2668052 0.930 0.000 0.930 0.000 {built-in method builtins.len}
5000 0.930 0.000 0.938 0.000 tokenization_utils_fast.py:187(_convert_encoding)
5 0.750 0.150 0.808 0.162 {method 'to_pydict' of 'pyarrow.lib.Table' objects}
1 0.444 0.444 121.749 121.749 arrow_dataset.py:2501(_map_single)
40 0.375 0.009 116.291 2.907 arrow_writer.py:151(__arrow_array__)
10 0.066 0.007 0.066 0.007 {method 'write_batch' of 'pyarrow.lib._CRecordBatchWriter' objects}
1 0.060 0.060 121.835 121.835 fingerprint.py:409(wrapper)
11387/5715 0.049 0.000 0.175 0.000 {built-in method builtins.getattr}
36 0.049 0.001 0.049 0.001 {pyarrow._compute.call_function}
15000 0.040 0.000 0.040 0.000 _collections_abc.py:719(__iter__)
3 0.023 0.008 0.023 0.008 {built-in method _imp.create_dynamic}
77 0.020 0.000 0.020 0.000 {built-in method builtins.dir}
37 0.019 0.001 0.019 0.001 socket.py:543(send)
15 0.017 0.001 0.017 0.001 tokenization_utils_fast.py:460(<listcomp>)
432/421 0.015 0.000 0.024 0.000 traitlets.py:1388(_notify_observers)
5000 0.015 0.000 0.018 0.000 _collections_abc.py:672(keys)
51 0.014 0.000 0.042 0.001 traitlets.py:276(getmembers)
5 0.014 0.003 3.775 0.755 tokenization_utils_fast.py:392(_batch_encode_plus)
3/1 0.014 0.005 0.035 0.035 {built-in method _imp.exec_dynamic}
5 0.012 0.002 0.950 0.190 tokenization_utils_fast.py:438(<listcomp>)
31626 0.012 0.000 0.012 0.000 {method 'append' of 'list' objects}
1532/1001 0.011 0.000 0.189 0.000 traitlets.py:643(get)
5 0.009 0.002 3.796 0.759 arrow_dataset.py:2631(apply_function_on_filtered_inputs)
51 0.009 0.000 0.062 0.001 traitlets.py:1766(traits)
5 0.008 0.002 3.784 0.757 tokenization_utils_base.py:2632(batch_encode_plus)
368 0.007 0.000 0.044 0.000 traitlets.py:1715(_get_trait_default_generator)
26 0.007 0.000 0.022 0.001 traitlets.py:1186(setup_instance)
51 0.006 0.000 0.010 0.000 traitlets.py:1781(<listcomp>)
80/32 0.006 0.000 0.052 0.002 table.py:1758(cast_array_to_feature)
684 0.006 0.000 0.007 0.000 {method 'items' of 'dict' objects}
4344/1794 0.006 0.000 0.192 0.000 traitlets.py:675(__get__)
...
```
## Environment info
I observed this on both Google colab and my local workstation:
### Google colab
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
### Local
- `datasets` version: 2.3.2
- Platform: Windows-7-6.1.7601-SP1
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Cool ! Sure feel free to follow these instructions to open a PR :) thanks ! | [
-1.2169482707977295,
-1.0080511569976807,
-0.6598380208015442,
1.5983015298843384,
-0.14321206510066986,
-1.1522984504699707,
0.1424059122800827,
-1.035354495048523,
1.6434026956558228,
-0.8429833650588989,
0.24568156898021698,
-1.6420706510543823,
0.006780929863452911,
-0.5428546667098999,
-0.73307865858078,
-0.8180152177810669,
-0.33442574739456177,
-0.7778142094612122,
1.0928102731704712,
2.4286437034606934,
1.1968104839324951,
-1.459754228591919,
2.7628345489501953,
0.7026398181915283,
-0.16847091913223267,
-1.1236618757247925,
0.530170738697052,
-0.05772128328680992,
-1.3182717561721802,
-0.497509241104126,
-0.9770482182502747,
0.06696602702140808,
-0.6532946825027466,
-0.4266339838504791,
0.004323503002524376,
0.42533019185066223,
-0.2199392169713974,
-0.3968186676502228,
-0.5455885529518127,
-0.7939310073852539,
0.461095929145813,
-0.3866959512233734,
0.8792977333068848,
-0.21509259939193726,
1.7926501035690308,
-0.4722885489463806,
0.4033288061618805,
0.6943717002868652,
1.368427038192749,
0.19208399951457977,
0.007131187245249748,
0.2499179095029831,
0.3422917425632477,
-0.008769970387220383,
0.5407464504241943,
1.1437424421310425,
0.707592248916626,
0.4482572078704834,
0.6901947855949402,
-2.2774922847747803,
1.4101741313934326,
-1.045516014099121,
0.35192257165908813,
1.3199472427368164,
-0.9312713742256165,
0.39111828804016113,
-1.7053622007369995,
0.012451963499188423,
0.6386255621910095,
-2.2097177505493164,
0.29974687099456787,
-1.303740382194519,
-0.48148003220558167,
1.0561656951904297,
0.39514726400375366,
-1.2642406225204468,
0.15493181347846985,
-0.4550682306289673,
1.1064361333847046,
0.46885785460472107,
1.003474235534668,
-1.7421844005584717,
-0.050199951976537704,
-0.20416352152824402,
0.1626346856355667,
-1.280695915222168,
-1.5856549739837646,
0.5825295448303223,
0.5615191459655762,
0.6404588222503662,
-0.14413166046142578,
1.0795987844467163,
-1.1251336336135864,
0.7870400547981262,
-1.0062514543533325,
-1.6828423738479614,
-1.3689244985580444,
-2.2938272953033447,
-2.2301135063171387,
0.6786895990371704,
-0.4634278118610382,
-0.47787758708000183,
1.9783796072006226,
-0.9522553086280823,
-1.7007194757461548,
1.125571370124817,
0.2510012686252594,
0.037202052772045135,
2.4297380447387695,
0.2387779802083969,
-0.7365620732307434,
0.4407949149608612,
-0.8516362309455872,
0.8067604303359985,
-0.39159438014030457,
1.3801548480987549,
0.45597773790359497,
-1.0304219722747803,
1.5470435619354248,
-0.37298139929771423,
0.4891003966331482,
-0.6518034338951111,
-0.4928267002105713,
-0.7250680327415466,
0.2158253937959671,
1.898941993713379,
-0.26867568492889404,
1.499445915222168,
-0.42073312401771545,
-1.56549870967865,
-1.615979790687561,
0.9424231648445129,
0.43518534302711487,
-0.8336610198020935,
0.12936273217201233,
-0.4857531189918518,
0.1255646049976349,
-0.1310749351978302,
1.1894365549087524,
1.3518935441970825,
0.6606019735336304,
-0.3346390724182129,
-0.7918137311935425,
0.12844505906105042,
-0.2306673526763916,
-0.6210557818412781,
-1.8652775287628174,
-0.3786237835884094,
0.0918317437171936,
0.7061660289764404,
-1.1958733797073364,
1.7293734550476074,
0.9487584829330444,
1.888041377067566,
1.037318229675293,
-0.4364515244960785,
1.4819865226745605,
0.06200983747839928,
1.8251535892486572,
-0.637680172920227,
0.6626091599464417,
-0.435800164937973,
-1.112145185470581,
0.8710073828697205,
-0.32747769355773926,
-1.9215574264526367,
-0.7837563753128052,
-0.7584537863731384,
-0.2600710093975067,
-0.7608314752578735,
0.9055525064468384,
-0.3639109134674072,
-1.538606882095337,
0.1760842651128769,
-0.682205855846405,
0.25530463457107544,
-1.0798622369766235,
0.29156672954559326,
0.7854816317558289,
-0.6114642024040222,
0.047485120594501495,
-0.30003440380096436,
-1.232170581817627,
-0.4918234646320343,
0.414419025182724,
1.8785983324050903,
-0.6657926440238953,
0.9106335043907166,
1.0394965410232544,
-0.6228965520858765,
0.05028234422206879,
0.29390496015548706,
-0.22525687515735626,
0.8139711022377014,
-1.0545629262924194,
-0.5436624884605408,
1.230805516242981,
-0.32766056060791016,
-0.638604998588562,
1.5130126476287842,
0.7296974658966064,
-1.0181684494018555,
-0.22223292291164398,
-0.10888035595417023,
-0.8454641103744507,
0.06288054585456848,
-1.56430184841156,
-0.12673668563365936,
0.49678733944892883,
-1.5678902864456177,
-0.3994004428386688,
-0.2509821355342865,
1.3293752670288086,
-0.17566119134426117,
1.4383158683776855,
-0.3416454493999481,
-0.1100451648235321,
-0.2481238842010498,
-0.41327276825904846,
0.1871282458305359,
-0.23233360052108765,
-0.5385339856147766,
0.19307614862918854,
-0.8814765810966492,
0.36111271381378174,
1.5497477054595947,
0.30699020624160767,
0.011875208467245102,
0.44106316566467285,
1.1377488374710083,
0.486928254365921,
-0.04687432944774628,
-0.8343781232833862,
-1.5600335597991943,
1.9746284484863281,
-1.504231572151184,
2.0566980838775635,
0.7942736148834229,
-0.05222760885953903,
-1.770592212677002,
-1.7428593635559082,
1.2923401594161987,
1.0803409814834595,
2.3690261840820312,
0.5190116763114929,
0.32562246918678284,
-0.8573813438415527,
-0.6937536597251892,
0.3404305875301361,
-0.9990725517272949,
-0.7371420860290527,
0.1531336009502411,
2.396744728088379,
1.8083035945892334,
-0.4141475558280945,
-0.22010676562786102,
-0.9797134399414062,
1.4326270818710327,
-0.22323480248451233,
0.3126581013202667,
1.9934120178222656,
-0.1931660920381546,
-1.0763972997665405,
1.2858355045318604,
-2.4084084033966064,
0.22898903489112854,
2.0989322662353516,
0.3032456040382385,
0.15371470153331757,
-1.4395662546157837,
-0.620507001876831,
-0.30245834589004517,
-0.402231365442276,
-1.2744711637496948,
0.5068546533584595,
-0.2603011727333069,
-0.8088617920875549,
-1.474726915359497,
0.16931559145450592,
-1.1780622005462646,
-1.664254903793335,
0.25660598278045654,
1.9446152448654175,
2.1257174015045166,
-0.6836831569671631,
1.5903033018112183,
-0.27286815643310547,
0.17495736479759216,
1.2114499807357788,
1.2975780963897705,
3.0322647094726562,
1.8575806617736816,
-1.2723264694213867,
0.6497544050216675,
-0.20069262385368347,
-0.5016382932662964,
1.0742714405059814,
-1.136963963508606,
1.2355384826660156,
-0.12310262024402618,
-1.1535452604293823,
-1.283331036567688,
1.0796265602111816,
0.5129719376564026,
0.010242067277431488,
-0.5501317381858826,
1.2577266693115234,
0.035489339381456375,
1.3268282413482666,
0.5785970687866211,
-0.33564293384552,
0.4862869381904602,
-0.43042072653770447,
-0.6212809085845947,
1.5169322490692139,
0.19824928045272827,
-1.4469294548034668,
-2.1629488468170166,
-0.15942725539207458,
-0.880574107170105,
0.07854393124580383,
-0.6093321442604065,
-1.0187879800796509,
1.5975309610366821,
0.3438471257686615,
-1.252477765083313,
-0.2362595498561859,
-0.3028283715248108,
-0.5315849184989929,
2.6190011501312256,
-1.2158117294311523,
-0.24226520955562592,
-0.9817292094230652,
-0.6592309474945068,
1.6199445724487305,
-1.2382158041000366,
-0.2069467455148697,
-1.015281319618225,
-0.6276340484619141,
-1.2633291482925415,
-0.5353933572769165,
-0.00580429146066308,
-0.8891298174858093,
0.707596480846405,
0.1841297447681427,
-1.1456588506698608,
-0.3457913398742676,
-0.8397778868675232,
1.0083950757980347,
-0.09885025024414062,
0.18726694583892822,
1.830609917640686,
0.22826506197452545,
-0.3911782205104828,
0.860323965549469,
1.144938588142395,
0.6313024759292603,
-0.6084709763526917,
0.1247176080942154,
-0.6065889596939087,
0.4396803379058838,
-1.3197945356369019,
0.30845093727111816,
-2.9461209774017334,
0.7074435949325562,
-0.034979209303855896,
-0.15188580751419067,
-0.07006095349788666,
-1.2874187231063843,
1.1272532939910889,
2.5512094497680664,
-1.2010784149169922,
0.5586676597595215,
0.3920278251171112,
1.1932240724563599,
-1.613205909729004,
0.3371391296386719,
-0.4503699243068695,
2.0690758228302,
0.2309863120317459,
1.2799991369247437,
-0.5041399002075195,
-2.411259889602661,
0.5964765548706055,
-1.315406084060669,
-0.9903551340103149,
0.7606605291366577,
-0.8572610020637512,
0.10189208388328552,
-1.4215259552001953,
-0.25011566281318665,
-0.8798683881759644,
-1.2444039583206177,
0.6458080410957336,
0.08694043755531311,
0.37817615270614624,
-0.608572781085968,
0.4077872335910797,
-2.1536202430725098,
-1.3652641773223877,
-0.15167994797229767,
-0.9544826745986938,
0.5525524616241455,
-0.5044457912445068,
0.6120312213897705,
-0.135515958070755,
0.06842519342899323,
0.30746355652809143,
1.4513975381851196,
3.391278028488159,
0.24234820902347565,
0.2933330833911896,
-0.1864665448665619,
-0.9456949830055237,
1.4296058416366577,
0.9492653012275696,
-0.1963559091091156,
-0.5442306399345398,
-1.0908422470092773,
1.362592101097107,
2.0004029273986816,
0.9358892440795898,
0.047540828585624695,
-0.8819899559020996,
-0.7773787379264832,
-0.03832749277353287,
0.16644878685474396,
0.48617449402809143,
0.8713850378990173,
0.09143489599227905,
0.11585444211959839,
1.4191763401031494,
1.2121413946151733,
-0.41146400570869446,
0.44569864869117737,
-0.9117113351821899,
-0.41091683506965637,
0.4593007564544678,
0.24258984625339508,
-0.0631483867764473,
0.41675204038619995,
-1.0091094970703125,
-0.15004074573516846,
-0.45707541704177856,
-0.8896481990814209,
-0.7227439284324646,
-0.39031997323036194,
-0.35448068380355835,
1.5857110023498535,
0.20978450775146484,
-0.5799372792243958,
0.022389333695173264,
-0.7707067131996155,
-0.14802996814250946,
-1.0914117097854614,
0.23511752486228943,
-0.07366131246089935,
-0.11626213788986206,
-0.16365116834640503,
1.7503365278244019,
-0.8720110058784485,
-2.067298650741577,
0.11161473393440247,
0.2856716215610504,
-0.2678271532058716,
0.1961248368024826,
1.7213128805160522,
0.5342632532119751,
1.425153136253357,
1.301084280014038,
0.9684112668037415,
-0.5881977677345276,
-1.2787983417510986,
0.7750467658042908,
0.9713947772979736,
-1.3833811283111572,
0.8856021761894226,
-0.1162417083978653,
-0.5303784012794495,
0.7458386421203613,
1.3201236724853516,
0.48096343874931335,
-2.013378143310547,
0.8034443259239197,
-1.078521966934204,
0.8723738193511963,
0.751980185508728,
0.629342794418335,
0.2326832413673401,
0.8431374430656433,
-1.2584508657455444,
-1.0844060182571411,
-0.7074727416038513,
-0.7433179020881653,
1.9595813751220703,
-0.3274889290332794,
0.5660924911499023,
-0.15651674568653107,
-1.3134878873825073,
-0.15429985523223877,
0.713513195514679,
0.31270501017570496,
-0.5116880536079407,
0.839613139629364,
-0.7581154108047485,
-1.1115236282348633,
-1.2766923904418945,
-0.5121182203292847,
-1.0147614479064941,
-1.0225059986114502,
1.0323512554168701,
0.7683507204055786,
0.33843284845352173,
1.9090360403060913,
0.5762279629707336,
0.2460649162530899,
-2.546069383621216,
0.8377681970596313,
0.30235347151756287,
-0.12124842405319214,
0.8982380032539368,
0.321205198764801,
1.0811161994934082,
0.07902984321117401,
0.551339328289032,
-2.4691174030303955,
2.3236610889434814,
-0.1843220591545105,
0.7260183691978455,
0.04105687513947487,
-0.15113532543182373,
1.203865885734558,
0.6204969882965088,
0.5617637634277344,
-1.066737174987793,
0.7263755798339844,
-0.5528807640075684,
1.2456459999084473,
0.8426097631454468,
-0.8172197937965393,
-0.08555538952350616,
1.3381884098052979,
0.34240540862083435,
-0.6093688607215881,
-0.9381333589553833,
-1.0018181800842285,
0.8705748319625854,
1.7421058416366577,
-0.063946932554245,
-0.04330522567033768,
0.7402570247650146,
0.6688492894172668,
-1.2776062488555908,
0.08746899664402008,
-0.5772041082382202,
-0.7343204617500305,
1.6216057538986206,
2.0932729244232178,
-0.24782413244247437,
-0.10426492989063263,
-0.6139618158340454,
-1.3131983280181885,
0.6654403805732727,
-0.0533880740404129,
0.048949502408504486,
0.6702788472175598,
-0.5511580109596252,
1.0124945640563965,
0.7372854948043823,
0.930305004119873,
0.10408449172973633,
0.24462883174419403,
0.42278853058815,
-0.4126049280166626,
-1.2336273193359375,
-0.31620630621910095,
-1.185855507850647,
-2.5880815982818604,
0.34944769740104675,
-0.15514957904815674,
-1.3623826503753662,
0.10264761745929718,
-0.9853728413581848,
0.9323737025260925,
-0.6268455386161804,
-1.1979491710662842,
-1.3601757287979126,
0.21161973476409912,
-0.09610234200954437,
0.9198949933052063,
-1.6970977783203125,
-0.10568110644817352,
1.2167491912841797,
0.8821537494659424,
-0.6099753379821777,
1.1082152128219604,
0.2295592874288559,
1.0681195259094238,
0.817610502243042,
-0.3339396119117737,
0.5723499655723572,
0.06638716161251068,
-1.3518757820129395,
0.43128788471221924,
1.167742371559143,
0.18702064454555511,
1.3986332416534424,
-0.4696443974971771,
-0.012436704710125923,
0.40451565384864807,
-0.6737241744995117,
-0.4592284560203552,
-0.36610618233680725,
0.6334303021430969,
0.03996949642896652,
-0.8677906394004822,
0.0016843313351273537,
-0.08151441812515259,
-0.26338478922843933,
0.15516558289527893,
-1.5860042572021484,
-0.22924846410751343,
-0.39951279759407043,
-0.529671847820282,
-1.242851972579956,
-0.06634493172168732,
1.4396014213562012,
-0.7216013669967651,
-0.31865617632865906,
0.4537561237812042,
0.4072549045085907,
0.5336516499519348,
0.7181726098060608,
-0.7645469307899475,
-0.4236079752445221,
-0.188837468624115,
-0.29069989919662476,
0.42856791615486145,
1.347097396850586,
-0.10070060193538666,
-0.9040432572364807,
0.6261258721351624,
-0.3962469696998596,
0.14027029275894165,
1.8955539464950562,
-0.00744772469624877,
-0.7586104869842529,
0.28823280334472656,
-0.8127375841140747,
1.9291472434997559,
1.721795916557312,
1.2941904067993164,
-0.21130622923374176,
-0.8661335110664368,
0.6386587023735046,
-0.38169926404953003,
-0.3848232328891754,
0.8707312345504761,
0.41693803668022156,
-0.2363136261701584,
-1.3954744338989258,
0.6424741744995117,
1.2022068500518799,
-0.8679102659225464,
-0.8328741788864136,
0.12922115623950958,
-0.7812637090682983,
1.2004274129867554,
0.590177595615387,
0.35960865020751953,
0.2699398100376129,
1.6360929012298584,
0.8239402174949646,
-0.5142439603805542,
0.5670101046562195,
0.42579230666160583,
-0.26694074273109436,
-2.1209046840667725,
-1.1393039226531982,
0.28628429770469666,
-0.5714422464370728,
-1.6036370992660522,
1.3321253061294556,
-1.0951223373413086,
-0.9592544436454773,
0.5758052468299866,
0.06199580058455467,
1.3318912982940674,
0.3598814904689789,
1.5456998348236084,
2.0891482830047607,
0.8129675984382629,
0.38665324449539185,
1.23249351978302,
-0.18068130314350128,
-0.5794181227684021,
1.7642327547073364,
-0.43508437275886536,
0.4593123495578766,
1.1317161321640015,
-0.3308106064796448,
-1.011946678161621,
-0.788121223449707,
-1.206142544746399,
-0.6257354021072388,
1.1398252248764038,
0.15651796758174896,
-1.1394774913787842,
0.27668052911758423,
1.542670488357544,
0.08335213363170624,
-0.22319957613945007,
0.6963059902191162,
0.467645525932312,
-0.7250800728797913,
-0.012790683656930923,
-0.8421810865402222,
0.47154685854911804,
-0.2602972090244293,
-0.35333648324012756,
0.33111464977264404,
0.4201532006263733,
1.2719939947128296,
-0.03414524346590042,
0.13236315548419952,
1.1384499073028564,
-1.4588731527328491,
1.4911046028137207,
-0.686302125453949,
0.39545777440071106,
-2.393289566040039,
1.3356878757476807,
-0.6667192578315735,
2.0642807483673096,
-2.619436740875244,
0.4059528112411499,
-0.6466107964515686,
-0.5969754457473755,
0.31107598543167114,
-0.33133554458618164,
0.13027846813201904,
-0.17225049436092377,
-1.0634844303131104,
-0.03234010934829712,
-0.6229013204574585,
0.545071005821228,
1.0957189798355103,
1.3584233522415161,
-1.1103157997131348,
-0.19121994078159332,
-1.7738529443740845,
-0.12973998486995697,
-0.8159599900245667,
0.2776966392993927,
-2.04160475730896,
-0.24127589166164398,
-1.9470405578613281,
-2.286112070083618,
-1.3082724809646606,
-0.7663290500640869,
1.0957748889923096,
0.14568999409675598,
-0.7857535481452942,
1.2786957025527954,
-0.26608631014823914,
-1.7934502363204956,
0.9802254438400269,
-2.124882221221924
] |
https://github.com/huggingface/datasets/issues/4675 | Unable to use dataset with PyTorch dataloader | Hi! `para_crawl` has a single column of type `Translation`, which stores translation dictionaries. These dictionaries can be stored in a NumPy array but not in a PyTorch tensor since PyTorch only supports numeric types. In `datasets`, the conversion to `torch` works as follows:
1. convert PyArrow table to NumPy arrays
2. convert NumPy arrays to Torch tensors.
The 2nd step is problematic for your case as `datasets` attempts to convert the array of dictionaries to a PyTorch tensor. One way to fix this is to use the [preprocessing logic](https://github.com/huggingface/transformers/blob/8581a798c0a48fca07b29ce2ca2ef55adcae8c7e/examples/pytorch/translation/run_translation.py#L440-L458) from the Transformers translation script. And on our side, I think we can replace a NumPy array of dicts with a dict of NumPy array if the feature type is `Translation`/`TranslationVariableLanguages` (one array for each language) to get the official PyTorch error message for strings in such case. | ## Describe the bug
When using `.with_format("torch")`, an arrow table is returned and I am unable to use it by passing it to a PyTorch DataLoader: please see the code below.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from torch.utils.data import DataLoader
ds = load_dataset(
"para_crawl",
name="enfr",
cache_dir="/tmp/test/",
split="train",
keep_in_memory=True,
)
dataloader = DataLoader(ds.with_format("torch"), num_workers=32)
print(next(iter(dataloader)))
```
Is there something I am doing wrong? The documentation does not say much about the behavior of `.with_format()` so I feel like I am a bit stuck here :-/
Thanks in advance for your help!
## Expected results
The code should run with no error
## Actual results
```
AttributeError: 'str' object has no attribute 'dtype'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.18.0-348.el8.x86_64-x86_64-with-glibc2.28
- Python version: 3.10.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 636 | 137 | Unable to use dataset with PyTorch dataloader
## Describe the bug
When using `.with_format("torch")`, an arrow table is returned and I am unable to use it by passing it to a PyTorch DataLoader: please see the code below.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from torch.utils.data import DataLoader
ds = load_dataset(
"para_crawl",
name="enfr",
cache_dir="/tmp/test/",
split="train",
keep_in_memory=True,
)
dataloader = DataLoader(ds.with_format("torch"), num_workers=32)
print(next(iter(dataloader)))
```
Is there something I am doing wrong? The documentation does not say much about the behavior of `.with_format()` so I feel like I am a bit stuck here :-/
Thanks in advance for your help!
## Expected results
The code should run with no error
## Actual results
```
AttributeError: 'str' object has no attribute 'dtype'
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.18.0-348.el8.x86_64-x86_64-with-glibc2.28
- Python version: 3.10.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi! `para_crawl` has a single column of type `Translation`, which stores translation dictionaries. These dictionaries can be stored in a NumPy array but not in a PyTorch tensor since PyTorch only supports numeric types. In `datasets`, the conversion to `torch` works as follows:
1. convert PyArrow table to NumPy arrays
2. convert NumPy arrays to Torch tensors.
The 2nd step is problematic for your case as `datasets` attempts to convert the array of dictionaries to a PyTorch tensor. One way to fix this is to use the [preprocessing logic](https://github.com/huggingface/transformers/blob/8581a798c0a48fca07b29ce2ca2ef55adcae8c7e/examples/pytorch/translation/run_translation.py#L440-L458) from the Transformers translation script. And on our side, I think we can replace a NumPy array of dicts with a dict of NumPy array if the feature type is `Translation`/`TranslationVariableLanguages` (one array for each language) to get the official PyTorch error message for strings in such case. | [
-1.221740484237671,
-0.8992647528648376,
-0.6794886589050293,
1.4029346704483032,
-0.1524868607521057,
-1.2399578094482422,
0.19357046484947205,
-1.0364419221878052,
1.700088381767273,
-0.8673519492149353,
0.34963440895080566,
-1.6413689851760864,
0.08593886345624924,
-0.5286879539489746,
-0.7549154162406921,
-0.7805112600326538,
-0.428207665681839,
-0.7010906338691711,
1.0426944494247437,
2.475020170211792,
1.201528549194336,
-1.4367109537124634,
2.6563234329223633,
0.7292326092720032,
-0.1869482845067978,
-0.9861366748809814,
0.4480501711368561,
0.008821690455079079,
-1.3379284143447876,
-0.3843885064125061,
-0.9315048456192017,
-0.09249045699834824,
-0.5542970299720764,
-0.5883220434188843,
0.00009613484144210815,
0.41386041045188904,
-0.262828528881073,
-0.47946077585220337,
-0.5301783680915833,
-0.75458824634552,
0.4742346704006195,
-0.3742949366569519,
0.950068473815918,
-0.37026259303092957,
1.7901809215545654,
-0.5897689461708069,
0.5023272633552551,
0.8102611303329468,
1.2976282835006714,
0.2103896588087082,
-0.08783196657896042,
0.33603763580322266,
0.4229406416416168,
-0.023686831817030907,
0.579421877861023,
1.1127519607543945,
0.6693231463432312,
0.5165274739265442,
0.6939552426338196,
-2.2152628898620605,
1.3055098056793213,
-0.9730722904205322,
0.34339773654937744,
1.337986707687378,
-0.9722470045089722,
0.32924872636795044,
-1.8071939945220947,
-0.06594827771186829,
0.5114182233810425,
-2.199553966522217,
0.335042804479599,
-1.3703593015670776,
-0.516624927520752,
1.0475126504898071,
0.31955766677856445,
-1.2301809787750244,
0.02510816417634487,
-0.34679216146469116,
0.9692690968513489,
0.4415486454963684,
1.1472887992858887,
-1.6278413534164429,
-0.050591662526130676,
-0.3180941939353943,
0.17392180860042572,
-1.2470005750656128,
-1.5196751356124878,
0.4986158609390259,
0.7050269246101379,
0.4818226397037506,
-0.11239102482795715,
1.0262579917907715,
-1.0708065032958984,
0.8168413043022156,
-0.9836137890815735,
-1.7855359315872192,
-1.3920704126358032,
-2.2167084217071533,
-2.3000850677490234,
0.731307864189148,
-0.4492553472518921,
-0.4877747595310211,
2.1465444564819336,
-1.098779559135437,
-1.7963563203811646,
1.1659749746322632,
0.24582159519195557,
-0.017980124801397324,
2.3191699981689453,
0.20278161764144897,
-0.7152451872825623,
0.48728129267692566,
-0.7735015749931335,
0.7091343998908997,
-0.4180562496185303,
1.244152545928955,
0.39441052079200745,
-1.0560592412948608,
1.5821937322616577,
-0.3699460029602051,
0.6352845430374146,
-0.6750449538230896,
-0.43498533964157104,
-0.6632965207099915,
0.3465433418750763,
1.8942970037460327,
-0.30520763993263245,
1.4454115629196167,
-0.3674943447113037,
-1.5134843587875366,
-1.5764670372009277,
0.8601951599121094,
0.48435041308403015,
-0.7153050899505615,
0.1403416246175766,
-0.35534289479255676,
0.13861173391342163,
-0.06416575610637665,
1.1051758527755737,
1.2988556623458862,
0.8177598714828491,
-0.2815946936607361,
-0.8821494579315186,
0.17097076773643494,
-0.02939244545996189,
-0.7055114507675171,
-1.7493412494659424,
-0.33367472887039185,
0.10721030831336975,
0.6056373715400696,
-1.1335923671722412,
1.8304458856582642,
0.8845573663711548,
1.9212818145751953,
0.9791737198829651,
-0.2995145320892334,
1.521952509880066,
0.12739039957523346,
1.9104923009872437,
-0.3686145544052124,
0.6510905623435974,
-0.3349190354347229,
-1.1556124687194824,
0.841779351234436,
-0.3015890121459961,
-2.09633469581604,
-0.6549282073974609,
-0.8333112597465515,
-0.14564572274684906,
-0.7746192812919617,
0.927720308303833,
-0.16542306542396545,
-1.3802218437194824,
0.24689915776252747,
-0.7307061553001404,
0.12283941358327866,
-1.241158127784729,
0.33092617988586426,
0.7045074701309204,
-0.6320724487304688,
0.060153380036354065,
-0.2949013113975525,
-1.3139737844467163,
-0.4699801504611969,
0.2870522141456604,
1.8644869327545166,
-0.8240597248077393,
0.9441032409667969,
1.0996875762939453,
-0.6923134922981262,
-0.03679123520851135,
0.338323712348938,
-0.37171825766563416,
0.8633002638816833,
-1.0556455850601196,
-0.38114944100379944,
1.1772481203079224,
-0.17385756969451904,
-0.6217837333679199,
1.4591872692108154,
0.7090077996253967,
-1.040365219116211,
-0.20762912929058075,
-0.14963968098163605,
-0.7773078680038452,
0.059006527066230774,
-1.6147211790084839,
-0.06887168437242508,
0.3901534378528595,
-1.488635540008545,
-0.46238479018211365,
-0.20097492635250092,
1.246544361114502,
-0.12579095363616943,
1.4916706085205078,
-0.3504393696784973,
-0.1551329344511032,
-0.44621220231056213,
-0.35561537742614746,
0.10009486973285675,
-0.170345738530159,
-0.6092702746391296,
0.20238624513149261,
-0.7184634804725647,
0.3503105938434601,
1.4418020248413086,
0.29979515075683594,
0.0314214825630188,
0.5618451833724976,
1.068962812423706,
0.32010340690612793,
-0.03383434936404228,
-0.8940914869308472,
-1.569292664527893,
1.9544544219970703,
-1.473037838935852,
2.0387163162231445,
0.7746282815933228,
-0.0014374973252415657,
-1.757062315940857,
-1.9527947902679443,
1.4080522060394287,
1.151842474937439,
2.3918569087982178,
0.5364821553230286,
0.4219048023223877,
-0.8549301624298096,
-0.6357418298721313,
0.3768376410007477,
-0.9846723079681396,
-0.7555819749832153,
0.14716792106628418,
2.378941535949707,
1.6993645429611206,
-0.4108714163303375,
-0.14527520537376404,
-1.0299177169799805,
1.420350193977356,
-0.18394997715950012,
0.2424779236316681,
2.0411927700042725,
-0.27258631587028503,
-1.0403910875320435,
1.3299301862716675,
-2.3581650257110596,
0.188762828707695,
2.019047498703003,
0.17323841154575348,
0.07239683717489243,
-1.294980525970459,
-0.6017320156097412,
-0.23723167181015015,
-0.42714014649391174,
-1.2321337461471558,
0.510429859161377,
-0.23833151161670685,
-0.7406508326530457,
-1.428592562675476,
0.21818770468235016,
-1.1101936101913452,
-1.6855711936950684,
0.20416618883609772,
1.8578001260757446,
2.0290729999542236,
-0.779090940952301,
1.546658992767334,
-0.3154016137123108,
0.17159445583820343,
1.224633812904358,
1.2368748188018799,
3.1512439250946045,
1.9449363946914673,
-1.3449554443359375,
0.6393702626228333,
-0.16256676614284515,
-0.46434012055397034,
1.2158769369125366,
-1.2007176876068115,
1.2614712715148926,
-0.15939433872699738,
-1.1830559968948364,
-1.1915826797485352,
0.9198520183563232,
0.4586450159549713,
0.10784497112035751,
-0.41501519083976746,
1.1613694429397583,
0.13536614179611206,
1.3614795207977295,
0.5315788984298706,
-0.3247389793395996,
0.6746287941932678,
-0.3602003753185272,
-0.42171281576156616,
1.5413894653320312,
0.15208777785301208,
-1.3597350120544434,
-2.2942943572998047,
-0.1920173615217209,
-0.9339295029640198,
0.01813104934990406,
-0.6826573610305786,
-0.9729400873184204,
1.6296225786209106,
0.3993053734302521,
-1.2604304552078247,
-0.29900386929512024,
-0.31303131580352783,
-0.6134359240531921,
2.6788547039031982,
-1.436968445777893,
-0.22100570797920227,
-1.030566692352295,
-0.6094061136245728,
1.631443738937378,
-1.2329623699188232,
-0.2399723082780838,
-1.0620372295379639,
-0.5492141246795654,
-1.2695577144622803,
-0.5852571129798889,
-0.03232337534427643,
-0.9509218335151672,
0.86606764793396,
0.2016013115644455,
-1.256581425666809,
-0.33859118819236755,
-0.9107963442802429,
0.84806889295578,
-0.12706565856933594,
0.1759578436613083,
1.7937010526657104,
0.34976667165756226,
-0.39195674657821655,
0.6963598132133484,
1.110701322555542,
0.5998511910438538,
-0.5695491433143616,
0.30394086241722107,
-0.7056086659431458,
0.3420196771621704,
-1.2498093843460083,
0.2932772934436798,
-2.862248659133911,
0.6347004175186157,
-0.0566244050860405,
-0.04950166493654251,
-0.14546266198158264,
-1.3037689924240112,
1.0578484535217285,
2.585170030593872,
-1.1250512599945068,
0.5324852466583252,
0.28728416562080383,
1.2048019170761108,
-1.5745888948440552,
0.2009706050157547,
-0.4618353843688965,
2.049161911010742,
0.17144501209259033,
1.1751914024353027,
-0.4284045100212097,
-2.345327854156494,
0.6523975729942322,
-1.2450199127197266,
-1.17927086353302,
0.8273147940635681,
-0.790851354598999,
0.028699206188321114,
-1.2897011041641235,
-0.24351845681667328,
-0.8556700348854065,
-1.1170674562454224,
0.6819738745689392,
0.09152344614267349,
0.5175544023513794,
-0.6911752820014954,
0.31453004479408264,
-2.2397968769073486,
-1.326342225074768,
-0.2783045470714569,
-0.9005880355834961,
0.43952131271362305,
-0.27365490794181824,
0.6985044479370117,
-0.19068622589111328,
0.0073580630123615265,
0.337251216173172,
1.4154009819030762,
3.3803727626800537,
0.18232500553131104,
0.37887006998062134,
-0.22727161645889282,
-0.9250655770301819,
1.436610460281372,
0.8839337229728699,
-0.1294061541557312,
-0.6041380167007446,
-1.0907169580459595,
1.2100355625152588,
1.9311045408248901,
1.0046170949935913,
-0.002560790628194809,
-0.8156072497367859,
-0.7405622005462646,
-0.0551038458943367,
0.14101147651672363,
0.4654189348220825,
0.9535419940948486,
0.12117087095975876,
0.13479401171207428,
1.4202837944030762,
1.206067442893982,
-0.4334859549999237,
0.32284656167030334,
-0.8305420279502869,
-0.46486735343933105,
0.5620068907737732,
0.32676368951797485,
0.04727688431739807,
0.20214088261127472,
-0.9730236530303955,
-0.23938746750354767,
-0.364047646522522,
-0.9427316188812256,
-0.7591735124588013,
-0.40227240324020386,
-0.3630751073360443,
1.6570711135864258,
0.034824348986148834,
-0.45991945266723633,
-0.06079383194446564,
-0.8022834062576294,
-0.020444635301828384,
-1.034918189048767,
0.27660661935806274,
-0.1300288587808609,
-0.092378169298172,
-0.11683976650238037,
1.6828774213790894,
-0.9509066343307495,
-1.9841842651367188,
0.2673748731613159,
0.18125328421592712,
-0.32761454582214355,
0.22564485669136047,
1.6760053634643555,
0.5964427590370178,
1.4478089809417725,
1.4032388925552368,
0.9940229654312134,
-0.6042709946632385,
-1.3003748655319214,
0.6700849533081055,
0.9177774786949158,
-1.4450795650482178,
0.743543803691864,
0.06818009912967682,
-0.5570187568664551,
0.6653257608413696,
1.273506760597229,
0.4940733313560486,
-2.067858934402466,
0.7925082445144653,
-0.991904079914093,
0.7742945551872253,
0.7375655770301819,
0.7302982211112976,
0.15264351665973663,
0.8398488163948059,
-1.1951526403427124,
-1.150974988937378,
-0.701603889465332,
-0.6521152853965759,
1.9587172269821167,
-0.3387826979160309,
0.5833592414855957,
-0.1636863350868225,
-1.416818618774414,
-0.07136152684688568,
0.6849708557128906,
0.37185677886009216,
-0.472678005695343,
0.7526702880859375,
-0.6103717684745789,
-1.1246848106384277,
-1.390412449836731,
-0.43197518587112427,
-1.069207787513733,
-0.8997629284858704,
1.0363909006118774,
0.8061585426330566,
0.2703593671321869,
1.8494588136672974,
0.6469489336013794,
0.26553693413734436,
-2.6573569774627686,
0.9411081671714783,
0.289210706949234,
-0.09709957242012024,
0.8313428163528442,
0.3110261857509613,
1.0048880577087402,
-0.08067447692155838,
0.5726562738418579,
-2.453218460083008,
2.346059560775757,
-0.19267529249191284,
0.6574382781982422,
0.007351908832788467,
-0.17953066527843475,
1.0697760581970215,
0.6157984733581543,
0.555853545665741,
-1.131989598274231,
0.6953625082969666,
-0.6400994658470154,
1.296696424484253,
0.8000414967536926,
-0.7808801531791687,
-0.07356917858123779,
1.3186050653457642,
0.3881484270095825,
-0.5228710770606995,
-0.8951156139373779,
-1.0685811042785645,
0.9781867265701294,
1.792816162109375,
-0.07504377514123917,
0.002756590023636818,
0.8340743184089661,
0.7313860058784485,
-1.2665380239486694,
0.044036850333213806,
-0.7532826662063599,
-0.7352288961410522,
1.6629897356033325,
2.0244719982147217,
-0.12460772693157196,
-0.23817361891269684,
-0.7348920106887817,
-1.2981728315353394,
0.8119009137153625,
0.01839575730264187,
0.06867341697216034,
0.711635947227478,
-0.6071279048919678,
1.1492418050765991,
0.9160692691802979,
0.9885671138763428,
0.1809709519147873,
0.24390968680381775,
0.35508739948272705,
-0.35531145334243774,
-1.2047086954116821,
-0.2523733675479889,
-1.0209238529205322,
-2.5743789672851562,
0.4758668839931488,
-0.19401748478412628,
-1.4545626640319824,
-0.018750203773379326,
-1.0150259733200073,
0.8368079662322998,
-0.5350103974342346,
-1.1519193649291992,
-1.4832099676132202,
0.19311940670013428,
-0.002830192446708679,
0.8770369291305542,
-1.6023204326629639,
-0.07035470753908157,
1.2429085969924927,
0.9606330990791321,
-0.6889814138412476,
0.9678962826728821,
0.25405457615852356,
1.010241985321045,
0.8825477361679077,
-0.3583514094352722,
0.5235779881477356,
0.0546722486615181,
-1.3014585971832275,
0.4127993881702423,
1.2405647039413452,
0.17987777292728424,
1.509299397468567,
-0.5867102742195129,
0.0198050606995821,
0.3284338116645813,
-0.4860419034957886,
-0.4962674379348755,
-0.6475211381912231,
0.7146813273429871,
-0.07817189395427704,
-0.9168758988380432,
0.00948375090956688,
-0.057934172451496124,
-0.1907266527414322,
0.2025534212589264,
-1.4768716096878052,
-0.12857206165790558,
-0.30401739478111267,
-0.6643321514129639,
-1.2494981288909912,
-0.06563851982355118,
1.3980441093444824,
-0.8102662563323975,
-0.124897301197052,
0.43918266892433167,
0.28989359736442566,
0.49771571159362793,
0.5950788259506226,
-0.6725425124168396,
-0.40716907382011414,
-0.17869241535663605,
-0.3960462212562561,
0.3397888243198395,
1.3963723182678223,
-0.04053918272256851,
-0.9526202082633972,
0.6819583773612976,
-0.4251895546913147,
0.060325391590595245,
1.9033392667770386,
0.09417950361967087,
-0.8249700665473938,
0.35984161496162415,
-0.7489282488822937,
1.8903484344482422,
1.791256070137024,
1.334836721420288,
-0.07558853924274445,
-0.9764167070388794,
0.6226629018783569,
-0.4513086974620819,
-0.38085806369781494,
0.9584270715713501,
0.3902631103992462,
-0.2676560580730438,
-1.3297920227050781,
0.7323523163795471,
1.274742603302002,
-0.8394330143928528,
-0.8709180355072021,
0.09328121691942215,
-0.7903478145599365,
1.090052604675293,
0.7862428426742554,
0.34454143047332764,
0.22469156980514526,
1.6118096113204956,
0.7857879996299744,
-0.4723198115825653,
0.6083428859710693,
0.49390023946762085,
-0.15762701630592346,
-2.0871095657348633,
-1.083113431930542,
0.31459593772888184,
-0.4993498623371124,
-1.619240403175354,
1.4091604948043823,
-1.175768256187439,
-0.972646951675415,
0.5746151804924011,
0.100644052028656,
1.4486781358718872,
0.36337628960609436,
1.5154939889907837,
2.058873176574707,
0.8884880542755127,
0.43432655930519104,
1.2826836109161377,
-0.17926913499832153,
-0.42434024810791016,
1.806795597076416,
-0.48870399594306946,
0.4518296718597412,
1.0885111093521118,
-0.3466341197490692,
-1.094602108001709,
-0.8294401168823242,
-1.2375340461730957,
-0.793018102645874,
1.2031298875808716,
0.08024006336927414,
-1.1034653186798096,
0.2759862244129181,
1.5862985849380493,
0.11161841452121735,
-0.28819790482521057,
0.6544845104217529,
0.3637673258781433,
-0.8742319941520691,
-0.09380966424942017,
-0.8792065382003784,
0.5388999581336975,
-0.20790761709213257,
-0.3182738721370697,
0.3604014217853546,
0.505013108253479,
1.3477146625518799,
-0.008875212632119656,
0.06730005145072937,
1.1938636302947998,
-1.4251389503479004,
1.5079066753387451,
-0.699051022529602,
0.29421597719192505,
-2.3574142456054688,
1.4145550727844238,
-0.7863138318061829,
1.9296300411224365,
-2.695438861846924,
0.40551263093948364,
-0.5712227821350098,
-0.448636531829834,
0.2082740217447281,
-0.305662602186203,
0.10866787284612656,
-0.15647858381271362,
-1.1640390157699585,
-0.07445037364959717,
-0.7565486431121826,
0.5593746304512024,
1.0943529605865479,
1.338376760482788,
-1.1707344055175781,
-0.3228934407234192,
-1.6954783201217651,
-0.16354748606681824,
-0.6478802561759949,
0.3771944046020508,
-1.9738352298736572,
-0.18882784247398376,
-2.0003509521484375,
-2.3322982788085938,
-1.2945612668991089,
-0.843425989151001,
1.1278637647628784,
0.0978579893708229,
-0.8217836618423462,
1.1410788297653198,
-0.40638935565948486,
-1.877942442893982,
1.1274272203445435,
-2.1679344177246094
] |
https://github.com/huggingface/datasets/issues/4674 | Issue loading datasets -- pyarrow.lib has no attribute | Hi @margotwagner, thanks for reporting.
Unfortunately, I'm not able to reproduce your bug: in an environment with datasets-2.3.2 and pyarrow-8.0.0, I can load the datasets without any problem:
```python
>>> ds = load_dataset("glue", "cola")
>>> ds
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
>>> import pyarrow
>>> pyarrow.__version__
8.0.0
>>> from pyarrow.lib import IpcReadOptions
>>> IpcReadOptions
pyarrow.lib.IpcReadOptions
```
I think you may have a problem in your Python environment: maybe you have also an old version of pyarrow that has precedence when importing it.
Could you please check this (just after you tried to load the dataset and got the error)?
```python
>>> import pyarrow
>>> pyarrow.__version__
``` | ## Describe the bug
I am trying to load sentiment analysis datasets from huggingface, but any dataset I try to use via load_dataset, I get the same error:
`AttributeError: module 'pyarrow.lib' has no attribute 'IpcReadOptions'`
## Steps to reproduce the bug
```python
dataset = load_dataset("glue", "cola")
```
## Expected results
Download datasets without issue.
## Actual results
`AttributeError: module 'pyarrow.lib' has no attribute 'IpcReadOptions'`
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 8.0.0
- Pandas version: 1.1.0
| 637 | 130 | Issue loading datasets -- pyarrow.lib has no attribute
## Describe the bug
I am trying to load sentiment analysis datasets from huggingface, but any dataset I try to use via load_dataset, I get the same error:
`AttributeError: module 'pyarrow.lib' has no attribute 'IpcReadOptions'`
## Steps to reproduce the bug
```python
dataset = load_dataset("glue", "cola")
```
## Expected results
Download datasets without issue.
## Actual results
`AttributeError: module 'pyarrow.lib' has no attribute 'IpcReadOptions'`
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 8.0.0
- Pandas version: 1.1.0
Hi @margotwagner, thanks for reporting.
Unfortunately, I'm not able to reproduce your bug: in an environment with datasets-2.3.2 and pyarrow-8.0.0, I can load the datasets without any problem:
```python
>>> ds = load_dataset("glue", "cola")
>>> ds
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 8551
})
validation: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1043
})
test: Dataset({
features: ['sentence', 'label', 'idx'],
num_rows: 1063
})
})
>>> import pyarrow
>>> pyarrow.__version__
8.0.0
>>> from pyarrow.lib import IpcReadOptions
>>> IpcReadOptions
pyarrow.lib.IpcReadOptions
```
I think you may have a problem in your Python environment: maybe you have also an old version of pyarrow that has precedence when importing it.
Could you please check this (just after you tried to load the dataset and got the error)?
```python
>>> import pyarrow
>>> pyarrow.__version__
``` | [
-1.1903740167617798,
-0.9253935813903809,
-0.7294989228248596,
1.443972110748291,
-0.18720687925815582,
-1.235940933227539,
0.06973538547754288,
-1.0865813493728638,
1.7132567167282104,
-0.7686933875083923,
0.2865425646305084,
-1.704891324043274,
0.05319349467754364,
-0.5575258731842041,
-0.7205623388290405,
-0.8386700749397278,
-0.3493327498435974,
-0.8128630518913269,
1.108227014541626,
2.4519309997558594,
1.1179537773132324,
-1.4233500957489014,
2.7310736179351807,
0.6935616135597229,
-0.1609262228012085,
-1.0309821367263794,
0.6090496778488159,
-0.06590979546308517,
-1.3738504648208618,
-0.3463737368583679,
-0.9650005102157593,
-0.03139200806617737,
-0.635776162147522,
-0.5186862349510193,
0.02928008697926998,
0.4372989237308502,
-0.2948504090309143,
-0.4687090218067169,
-0.5064186453819275,
-0.7266678214073181,
0.3774542808532715,
-0.4007435441017151,
0.9618692398071289,
-0.36868423223495483,
1.6759746074676514,
-0.4553672969341278,
0.4492631256580353,
0.7105596661567688,
1.291373610496521,
0.24054796993732452,
0.025257600471377373,
0.3132424056529999,
0.359920859336853,
0.020964240655303,
0.4839780926704407,
1.0920517444610596,
0.6509515643119812,
0.42994430661201477,
0.7545353770256042,
-2.2686026096343994,
1.2727795839309692,
-0.9248345494270325,
0.2827593982219696,
1.3274949789047241,
-0.8679324984550476,
0.3949926197528839,
-1.7793129682540894,
-0.005625477060675621,
0.6130358576774597,
-2.189767360687256,
0.2837734818458557,
-1.3254520893096924,
-0.45838722586631775,
0.953029990196228,
0.3975681662559509,
-1.1996129751205444,
0.029186954721808434,
-0.438271164894104,
1.0484460592269897,
0.3975687623023987,
1.10672926902771,
-1.7173199653625488,
0.013797767460346222,
-0.2765091061592102,
0.20173996686935425,
-1.244418978691101,
-1.5757814645767212,
0.6008261442184448,
0.7112172842025757,
0.6575433015823364,
-0.143979012966156,
0.9105442762374878,
-1.0271552801132202,
0.6274523735046387,
-0.9823377132415771,
-1.8359569311141968,
-1.334669828414917,
-2.2935407161712646,
-2.2599844932556152,
0.680351197719574,
-0.48197147250175476,
-0.44857853651046753,
2.048076629638672,
-0.9798015356063843,
-1.75533127784729,
1.1570124626159668,
0.3859165608882904,
0.0051867421716451645,
2.367025375366211,
0.21064592897891998,
-0.7927106618881226,
0.574989914894104,
-0.8306745290756226,
0.7118643522262573,
-0.3166075348854065,
1.3664677143096924,
0.43536844849586487,
-0.9665577411651611,
1.6031250953674316,
-0.4591202139854431,
0.6465967297554016,
-0.6263449788093567,
-0.40850114822387695,
-0.7591767907142639,
0.18986718356609344,
1.9159083366394043,
-0.31390976905822754,
1.4939334392547607,
-0.3311363756656647,
-1.586310625076294,
-1.5716363191604614,
0.8117258548736572,
0.5173599123954773,
-0.7842257618904114,
0.15076743066310883,
-0.4208827018737793,
0.14045239984989166,
-0.0745433047413826,
1.1636031866073608,
1.3173987865447998,
0.7570911645889282,
-0.3225509822368622,
-0.9399589896202087,
0.1920878142118454,
-0.08818980306386948,
-0.716886043548584,
-1.8302013874053955,
-0.23571975529193878,
0.07326876372098923,
0.6944410800933838,
-1.1707671880722046,
1.7116045951843262,
0.8889972567558289,
1.9760262966156006,
0.9992446899414062,
-0.3841288387775421,
1.531867504119873,
0.17545688152313232,
1.8157504796981812,
-0.5423485040664673,
0.6268981099128723,
-0.4296782910823822,
-1.1095190048217773,
0.8770478963851929,
-0.31312745809555054,
-1.9839844703674316,
-0.6164153218269348,
-0.8283736705780029,
-0.19960486888885498,
-0.8438234329223633,
0.9365071654319763,
-0.23905083537101746,
-1.4860674142837524,
0.3524857759475708,
-0.7883260250091553,
0.16950565576553345,
-1.209304928779602,
0.3040350079536438,
0.7532474398612976,
-0.5740373134613037,
-0.0021925242617726326,
-0.30203017592430115,
-1.352427363395691,
-0.49809059500694275,
0.3459986746311188,
1.8185462951660156,
-0.7202388644218445,
0.9341890215873718,
1.0776665210723877,
-0.6203944683074951,
-0.039514340460300446,
0.2729755938053131,
-0.30900582671165466,
0.793643057346344,
-1.091686487197876,
-0.43984729051589966,
1.1405808925628662,
-0.23398080468177795,
-0.5935885906219482,
1.4355295896530151,
0.742455244064331,
-1.017827033996582,
-0.2488289773464203,
-0.1163281798362732,
-0.7679453492164612,
-0.009334373287856579,
-1.6803497076034546,
-0.12586484849452972,
0.4409397542476654,
-1.623103141784668,
-0.49636122584342957,
-0.18959321081638336,
1.2618882656097412,
-0.11323919147253036,
1.3441951274871826,
-0.31803715229034424,
-0.10607647150754929,
-0.3925425708293915,
-0.4182398319244385,
0.1652105748653412,
-0.27592310309410095,
-0.5709906220436096,
0.1741492748260498,
-0.8419569134712219,
0.32065102458000183,
1.4719218015670776,
0.33049526810646057,
0.03827217221260071,
0.5259976983070374,
1.0775357484817505,
0.3973461985588074,
-0.026094861328601837,
-0.8451015949249268,
-1.6060128211975098,
2.007341146469116,
-1.5273520946502686,
2.0286686420440674,
0.6950342655181885,
-0.03405462205410004,
-1.8357757329940796,
-1.9932007789611816,
1.4121533632278442,
1.0706021785736084,
2.322000741958618,
0.6006799936294556,
0.4477963447570801,
-0.7760317325592041,
-0.6717652082443237,
0.2362672984600067,
-0.8914431929588318,
-0.7682387828826904,
0.1813270002603531,
2.39692759513855,
1.670788049697876,
-0.4273799657821655,
-0.19590610265731812,
-0.9448856711387634,
1.4923967123031616,
-0.15912818908691406,
0.2912612557411194,
2.0008018016815186,
-0.2650682032108307,
-1.0334659814834595,
1.357342004776001,
-2.3745439052581787,
0.24714858829975128,
1.999811053276062,
0.19866879284381866,
0.14199502766132355,
-1.3208098411560059,
-0.7554853558540344,
-0.27371472120285034,
-0.44804835319519043,
-1.2893038988113403,
0.525117039680481,
-0.24139881134033203,
-0.7798812985420227,
-1.4699087142944336,
0.1686038225889206,
-1.1181923151016235,
-1.7626664638519287,
0.17236007750034332,
1.924225926399231,
2.1227951049804688,
-0.8327105045318604,
1.590175986289978,
-0.3361275792121887,
0.20697815716266632,
1.2302871942520142,
1.1631176471710205,
3.0642614364624023,
1.8538047075271606,
-1.3230000734329224,
0.7081957459449768,
-0.09780385345220566,
-0.551848828792572,
1.1936331987380981,
-1.1191486120224,
1.2119357585906982,
-0.23173224925994873,
-1.198135256767273,
-1.1676298379898071,
0.883115828037262,
0.4955690801143646,
0.03944794088602066,
-0.39377012848854065,
1.1834529638290405,
-0.0021573174744844437,
1.3005565404891968,
0.6051689982414246,
-0.28836607933044434,
0.6416802406311035,
-0.3542841374874115,
-0.513606607913971,
1.5389615297317505,
0.12720166146755219,
-1.4110488891601562,
-2.3271260261535645,
-0.333739310503006,
-0.8227002024650574,
0.07232305407524109,
-0.6367548108100891,
-1.0393177270889282,
1.5816662311553955,
0.41685596108436584,
-1.1109967231750488,
-0.2467111200094223,
-0.3640585243701935,
-0.5196561813354492,
2.635730743408203,
-1.3742574453353882,
-0.24647124111652374,
-0.9338582754135132,
-0.6769617199897766,
1.579715371131897,
-1.188902497291565,
-0.2532167136669159,
-1.068877935409546,
-0.5279281139373779,
-1.298594355583191,
-0.5616469383239746,
0.04631263017654419,
-0.8990055322647095,
0.8062194585800171,
0.29011270403862,
-1.1988650560379028,
-0.300755113363266,
-0.97489333152771,
0.8825512528419495,
-0.18628378212451935,
0.28304484486579895,
1.9035146236419678,
0.35806578397750854,
-0.3763710558414459,
0.7478795647621155,
1.1262848377227783,
0.6286816596984863,
-0.6441113948822021,
0.14071018993854523,
-0.6674720048904419,
0.3839934468269348,
-1.2899340391159058,
0.19534151256084442,
-2.933960199356079,
0.6603607535362244,
0.02696322090923786,
-0.07239411771297455,
-0.031004197895526886,
-1.3621338605880737,
1.0689488649368286,
2.5970845222473145,
-1.2243698835372925,
0.5403384566307068,
0.30163463950157166,
1.206756591796875,
-1.59842050075531,
0.24763579666614532,
-0.38820186257362366,
2.191051721572876,
0.13702405989170074,
1.1723332405090332,
-0.40014538168907166,
-2.451052665710449,
0.6654625535011292,
-1.2570844888687134,
-1.1271250247955322,
0.7020744681358337,
-0.9158100485801697,
0.1401393711566925,
-1.5172886848449707,
-0.20264431834220886,
-0.9116863012313843,
-1.1712303161621094,
0.6427474021911621,
0.026889929547905922,
0.4106500446796417,
-0.6703846454620361,
0.3364994525909424,
-2.204219102859497,
-1.409766674041748,
-0.1281043440103531,
-0.9216695427894592,
0.5369067192077637,
-0.32646644115448,
0.7430047988891602,
-0.13646093010902405,
-0.02822449989616871,
0.3594694435596466,
1.4364680051803589,
3.3865487575531006,
0.1237807422876358,
0.3608893156051636,
-0.1977454274892807,
-0.990003764629364,
1.434594750404358,
0.9078928828239441,
-0.18112614750862122,
-0.5423130989074707,
-1.015584945678711,
1.3271865844726562,
1.9808441400527954,
0.8777782917022705,
0.04831637442111969,
-0.7546097040176392,
-0.672605037689209,
0.05452752113342285,
0.1610926240682602,
0.5100231766700745,
0.8727336525917053,
0.08889950066804886,
0.06906771659851074,
1.416608214378357,
1.08167564868927,
-0.3543781340122223,
0.4130898118019104,
-0.9234132766723633,
-0.4912653863430023,
0.5762415528297424,
0.28420135378837585,
-0.04668983072042465,
0.3448440134525299,
-1.0268968343734741,
-0.24320894479751587,
-0.3011285364627838,
-0.8428115844726562,
-0.7067843079566956,
-0.38352519273757935,
-0.2844323217868805,
1.6317856311798096,
0.10302584618330002,
-0.5910768508911133,
-0.006702398881316185,
-0.7561509013175964,
-0.02465498447418213,
-1.094891905784607,
0.2416638284921646,
-0.2883162200450897,
0.0014573950320482254,
-0.16361448168754578,
1.6849271059036255,
-0.8739733695983887,
-2.0159640312194824,
0.10670200735330582,
0.3907087445259094,
-0.30801019072532654,
0.17373819649219513,
1.817083716392517,
0.6115962862968445,
1.41892671585083,
1.414471983909607,
0.9813774824142456,
-0.6816478371620178,
-1.2834303379058838,
0.6527242064476013,
0.9861948490142822,
-1.2978625297546387,
0.8503977060317993,
-0.02257303148508072,
-0.6672478318214417,
0.5794876217842102,
1.3815960884094238,
0.5688058137893677,
-2.0325043201446533,
0.8220682740211487,
-0.9743829369544983,
0.8261457085609436,
0.7645382285118103,
0.7948880791664124,
0.15434305369853973,
0.8039010167121887,
-1.2835086584091187,
-1.01870858669281,
-0.7876664996147156,
-0.6792393922805786,
1.8782622814178467,
-0.30889275670051575,
0.523303210735321,
-0.16706208884716034,
-1.2705556154251099,
-0.08181298524141312,
0.5987891554832458,
0.3924185335636139,
-0.43255066871643066,
0.7523135542869568,
-0.6256164312362671,
-1.168107271194458,
-1.2943679094314575,
-0.4381362199783325,
-1.0112059116363525,
-0.9324788451194763,
1.0049165487289429,
0.7733744978904724,
0.42282918095588684,
1.8256834745407104,
0.6412138938903809,
0.12839703261852264,
-2.594327211380005,
0.8953675627708435,
0.26044654846191406,
-0.1541445553302765,
0.8506242632865906,
0.35085320472717285,
1.112516164779663,
-0.10917824506759644,
0.5840680003166199,
-2.294753074645996,
2.2237203121185303,
-0.23685212433338165,
0.7170343995094299,
-0.016940098255872726,
-0.0988423302769661,
1.0078438520431519,
0.5308689475059509,
0.5683956146240234,
-1.08431875705719,
0.7508893609046936,
-0.5509644746780396,
1.2375599145889282,
0.9438863396644592,
-0.8234270811080933,
-0.03843887895345688,
1.2522432804107666,
0.40150952339172363,
-0.6092747449874878,
-0.9871436357498169,
-0.8710025548934937,
0.9125118255615234,
1.7644612789154053,
-0.08132869005203247,
-0.029526010155677795,
0.7701014876365662,
0.7123532295227051,
-1.3569761514663696,
0.0032724589109420776,
-0.629456102848053,
-0.6893351078033447,
1.753908395767212,
2.0099778175354004,
-0.1412721872329712,
-0.08638770878314972,
-0.7676576375961304,
-1.3662840127944946,
0.7987501621246338,
0.004367307759821415,
0.07558488100767136,
0.630195677280426,
-0.6232735514640808,
1.0602362155914307,
0.8175522089004517,
0.9323545098304749,
0.13846179842948914,
0.30361178517341614,
0.32985836267471313,
-0.3225366473197937,
-1.103690266609192,
-0.2776024043560028,
-1.1020100116729736,
-2.4521501064300537,
0.4804956912994385,
-0.2149299681186676,
-1.4306081533432007,
-0.07882916182279587,
-1.0185974836349487,
1.0175812244415283,
-0.5544142723083496,
-1.0474828481674194,
-1.4066811800003052,
0.2652592658996582,
-0.046087950468063354,
0.8767743110656738,
-1.57806396484375,
-0.10371973365545273,
1.2639988660812378,
1.0104485750198364,
-0.736031174659729,
1.1213797330856323,
0.3233359456062317,
1.062074065208435,
0.7814698815345764,
-0.38533535599708557,
0.5547679662704468,
0.10695568472146988,
-1.2641828060150146,
0.45378175377845764,
1.2551449537277222,
0.21044376492500305,
1.409654140472412,
-0.5620864033699036,
-0.010894501581788063,
0.38352087140083313,
-0.4864722788333893,
-0.4356304705142975,
-0.558214008808136,
0.6368158459663391,
0.01396145299077034,
-0.8823469877243042,
-0.04444392770528793,
0.000052303075790405273,
-0.1726541668176651,
0.2784927785396576,
-1.5022567510604858,
-0.19449679553508759,
-0.3571019172668457,
-0.5857500433921814,
-1.2606570720672607,
-0.11829136312007904,
1.4600133895874023,
-0.7427748441696167,
-0.22792844474315643,
0.4831021726131439,
0.2773343026638031,
0.5253890156745911,
0.6358802318572998,
-0.7126606106758118,
-0.30288201570510864,
-0.2515854239463806,
-0.41230085492134094,
0.2000274956226349,
1.338423490524292,
-0.11860153824090958,
-1.010562539100647,
0.5959569811820984,
-0.37691590189933777,
0.07520066946744919,
1.8705111742019653,
0.049837663769721985,
-0.8997823596000671,
0.2783011794090271,
-0.7435206174850464,
1.9257090091705322,
1.7634861469268799,
1.3576092720031738,
-0.15717634558677673,
-0.9524791240692139,
0.6793830990791321,
-0.3673487901687622,
-0.4197518527507782,
0.8564906716346741,
0.431033730506897,
-0.26356157660484314,
-1.382541537284851,
0.7595997452735901,
1.2806316614151,
-0.8800715208053589,
-0.8581041693687439,
0.175490140914917,
-0.7669297456741333,
1.1808816194534302,
0.7377277612686157,
0.4185939431190491,
0.3302432894706726,
1.6258320808410645,
0.7862538695335388,
-0.5601644515991211,
0.523169755935669,
0.5410418510437012,
-0.19178080558776855,
-2.036457061767578,
-1.1750541925430298,
0.2943708002567291,
-0.49502259492874146,
-1.5980360507965088,
1.4155793190002441,
-1.1551947593688965,
-0.918784499168396,
0.5405564904212952,
0.06809263676404953,
1.3613792657852173,
0.45324233174324036,
1.5917620658874512,
1.9973663091659546,
0.9243270754814148,
0.3688504695892334,
1.2564349174499512,
-0.22369986772537231,
-0.4184211492538452,
1.7721055746078491,
-0.46163201332092285,
0.5589393973350525,
1.1833091974258423,
-0.39125946164131165,
-1.0704522132873535,
-0.8555691242218018,
-1.153822660446167,
-0.7070690989494324,
1.1421701908111572,
0.10087671875953674,
-1.2749242782592773,
0.3345252573490143,
1.643543004989624,
0.035614728927612305,
-0.3191705644130707,
0.7627096176147461,
0.4302354156970978,
-0.8338872790336609,
-0.11184850335121155,
-0.9712673425674438,
0.5044959783554077,
-0.3304139971733093,
-0.3135705888271332,
0.35764873027801514,
0.5476906299591064,
1.3712661266326904,
0.044073112308979034,
0.08468646556138992,
1.1770763397216797,
-1.3186376094818115,
1.4057774543762207,
-0.7483750581741333,
0.29178324341773987,
-2.3477094173431396,
1.3677781820297241,
-0.7423909902572632,
2.067183256149292,
-2.6835827827453613,
0.42823073267936707,
-0.5636171102523804,
-0.4297254681587219,
0.20633645355701447,
-0.36324912309646606,
0.14155440032482147,
-0.11462252587080002,
-1.1250886917114258,
-0.08581104874610901,
-0.7450910210609436,
0.5864742398262024,
1.1566349267959595,
1.3841427564620972,
-1.1240020990371704,
-0.25942572951316833,
-1.6692395210266113,
-0.2102043628692627,
-0.7214351892471313,
0.2939806878566742,
-1.966182827949524,
-0.24962393939495087,
-1.9127775430679321,
-2.4077022075653076,
-1.2220686674118042,
-0.8346254229545593,
1.1418569087982178,
0.026571175083518028,
-0.8833802938461304,
1.2223376035690308,
-0.29388388991355896,
-1.7773772478103638,
1.15423583984375,
-2.1161551475524902
] |
https://github.com/huggingface/datasets/issues/4673 | load_datasets on csv returns everything as a string | Hi @courtneysprouse, thanks for reporting.
Yes, you are right: by default the "csv" loader loads all columns as strings.
You could tweak this behavior by passing the `feature` argument to `load_dataset`, but it is also true that currently it is not possible to perform some kind of casts, due to lacking of implementation in PyArrow. For example:
```python
import datasets
features = datasets.Features(
{
"tokens": datasets.Sequence(datasets.Value("string")),
"ner_tags": datasets.Sequence(datasets.Value("int32")),
}
)
new_conll = datasets.load_dataset("csv", data_files="ner_conll.csv", features=features)
```
gives `ArrowNotImplementedError` error:
```
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowNotImplementedError: Unsupported cast from string to list using function cast_list
```
On the other hand, if you just would like to save and afterwards load your dataset, you could use `save_to_disk` and `load_from_disk` instead. These functions preserve all data types.
```python
>>> orig_conll.save_to_disk("ner_conll")
>>> from datasets import load_from_disk
>>> new_conll = load_from_disk("ner_conll")
>>> new_conll
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 14042
})
validation: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3251
})
test: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3454
})
})
>>> new_conll["train"][0]
{'chunk_tags': [11, 21, 11, 12, 21, 22, 11, 12, 0],
'id': '0',
'ner_tags': [3, 0, 7, 0, 0, 0, 7, 0, 0],
'pos_tags': [22, 42, 16, 21, 35, 37, 16, 21, 7],
'tokens': ['EU',
'rejects',
'German',
'call',
'to',
'boycott',
'British',
'lamb',
'.']}
>>> new_conll["train"].features
{'chunk_tags': Sequence(feature=ClassLabel(num_classes=23, names=['O', 'B-ADJP', 'I-ADJP', 'B-ADVP', 'I-ADVP', 'B-CONJP', 'I-CONJP', 'B-INTJ', 'I-INTJ', 'B-LST', 'I-LST', 'B-NP', 'I-NP', 'B-PP', 'I-PP', 'B-PRT', 'I-PRT', 'B-SBAR', 'I-SBAR', 'B-UCP', 'I-UCP', 'B-VP', 'I-VP'], id=None), length=-1, id=None),
'id': Value(dtype='string', id=None),
'ner_tags': Sequence(feature=ClassLabel(num_classes=9, names=['O', 'B-PER', 'I-PER', 'B-ORG', 'I-ORG', 'B-LOC', 'I-LOC', 'B-MISC', 'I-MISC'], id=None), length=-1, id=None),
'pos_tags': Sequence(feature=ClassLabel(num_classes=47, names=['"', "''", '#', '$', '(', ')', ',', '.', ':', '``', 'CC', 'CD', 'DT', 'EX', 'FW', 'IN', 'JJ', 'JJR', 'JJS', 'LS', 'MD', 'NN', 'NNP', 'NNPS', 'NNS', 'NN|SYM', 'PDT', 'POS', 'PRP', 'PRP$', 'RB', 'RBR', 'RBS', 'RP', 'SYM', 'TO', 'UH', 'VB', 'VBD', 'VBG', 'VBN', 'VBP', 'VBZ', 'WDT', 'WP', 'WP$', 'WRB'], id=None), length=-1, id=None),
'tokens': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}
``` | ## Describe the bug
If you use:
`conll_dataset.to_csv("ner_conll.csv")`
It will create a csv file with all of your data as expected, however when you load it with:
`conll_dataset = load_dataset("csv", data_files="ner_conll.csv")`
everything is read in as a string. For example if I look at everything in 'ner_tags' I get back `['[3 0 7 0 0 0 7 0 0]', '[1 2]', '[5 0]']` instead of what I originally saved which was `[[3, 0, 7, 0, 0, 0, 7, 0, 0], [1, 2], [5, 0]]`
I think maybe there is something funky going on with the csv delimiter
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
#load original conll dataset
orig_conll = load_dataset("conll2003")
#save original conll as a csv
orig_conll.to_csv("ner_conll.csv")
#reload conll data as a csv
new_conll = load_dataset("csv", data_files="ner_conll.csv")`
```
## Expected results
A clear and concise description of the expected results.
I would expect the data be returned as the data type I saved it as. I.e. if I save a list of ints
[[3, 0, 7, 0, 0, 0, 7, 0, 0]], I shouldnt get back a string ['[3 0 7 0 0 0 7 0 0]']
I also get back a string when I pass a list of strings ['EU', 'rejects', 'German', 'call', 'to', 'boycott', 'British', 'lamb', '.']
## Actual results
A list of strings `['[3 0 7 0 0 0 7 0 0]', '[1 2]', '[5 0]']`
A string "['EU' 'rejects' 'German' 'call' 'to' 'boycott' 'British' 'lamb' '.']"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.0-121-generic-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
| 638 | 321 | load_datasets on csv returns everything as a string
## Describe the bug
If you use:
`conll_dataset.to_csv("ner_conll.csv")`
It will create a csv file with all of your data as expected, however when you load it with:
`conll_dataset = load_dataset("csv", data_files="ner_conll.csv")`
everything is read in as a string. For example if I look at everything in 'ner_tags' I get back `['[3 0 7 0 0 0 7 0 0]', '[1 2]', '[5 0]']` instead of what I originally saved which was `[[3, 0, 7, 0, 0, 0, 7, 0, 0], [1, 2], [5, 0]]`
I think maybe there is something funky going on with the csv delimiter
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
#load original conll dataset
orig_conll = load_dataset("conll2003")
#save original conll as a csv
orig_conll.to_csv("ner_conll.csv")
#reload conll data as a csv
new_conll = load_dataset("csv", data_files="ner_conll.csv")`
```
## Expected results
A clear and concise description of the expected results.
I would expect the data be returned as the data type I saved it as. I.e. if I save a list of ints
[[3, 0, 7, 0, 0, 0, 7, 0, 0]], I shouldnt get back a string ['[3 0 7 0 0 0 7 0 0]']
I also get back a string when I pass a list of strings ['EU', 'rejects', 'German', 'call', 'to', 'boycott', 'British', 'lamb', '.']
## Actual results
A list of strings `['[3 0 7 0 0 0 7 0 0]', '[1 2]', '[5 0]']`
A string "['EU' 'rejects' 'German' 'call' 'to' 'boycott' 'British' 'lamb' '.']"
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.18.3
- Platform: Linux-5.4.0-121-generic-x86_64-with-glibc2.17
- Python version: 3.8.13
- PyArrow version: 8.0.0
Hi @courtneysprouse, thanks for reporting.
Yes, you are right: by default the "csv" loader loads all columns as strings.
You could tweak this behavior by passing the `feature` argument to `load_dataset`, but it is also true that currently it is not possible to perform some kind of casts, due to lacking of implementation in PyArrow. For example:
```python
import datasets
features = datasets.Features(
{
"tokens": datasets.Sequence(datasets.Value("string")),
"ner_tags": datasets.Sequence(datasets.Value("int32")),
}
)
new_conll = datasets.load_dataset("csv", data_files="ner_conll.csv", features=features)
```
gives `ArrowNotImplementedError` error:
```
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowNotImplementedError: Unsupported cast from string to list using function cast_list
```
On the other hand, if you just would like to save and afterwards load your dataset, you could use `save_to_disk` and `load_from_disk` instead. These functions preserve all data types.
```python
>>> orig_conll.save_to_disk("ner_conll")
>>> from datasets import load_from_disk
>>> new_conll = load_from_disk("ner_conll")
>>> new_conll
DatasetDict({
train: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 14042
})
validation: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3251
})
test: Dataset({
features: ['id', 'tokens', 'pos_tags', 'chunk_tags', 'ner_tags'],
num_rows: 3454
})
})
>>> new_conll["train"][0]
{'chunk_tags': [11, 21, 11, 12, 21, 22, 11, 12, 0],
'id': '0',
'ner_tags': [3, 0, 7, 0, 0, 0, 7, 0, 0],
'pos_tags': [22, 42, 16, 21, 35, 37, 16, 21, 7],
'tokens': ['EU',
'rejects',
'German',
'call',
'to',
'boycott',
'British',
'lamb',
'.']}
>>> new_conll["train"].features
{'chunk_tags': Sequence(feature=ClassLabel(num_classes=23, names=['O', 'B-ADJP', 'I-ADJP', 'B-ADVP', 'I-ADVP', 'B-CONJP', 'I-CONJP', 'B-INTJ', 'I-INTJ', 'B-LST', 'I-LST', 'B-NP', 'I-NP', 'B-PP', 'I-PP', 'B-PRT', 'I-PRT', 'B-SBAR', 'I-SBAR', 'B-UCP', 'I-UCP', 'B-VP', 'I-VP'], id=None), length=-1, id=None),
'id': Value(dtype='string', id=None),
'ner_tags': Sequence(feature=ClassLabel(num_classes=9, names=['O', 'B-PER', 'I-PER', 'B-ORG', 'I-ORG', 'B-LOC', 'I-LOC', 'B-MISC', 'I-MISC'], id=None), length=-1, id=None),
'pos_tags': Sequence(feature=ClassLabel(num_classes=47, names=['"', "''", '#', '$', '(', ')', ',', '.', ':', '``', 'CC', 'CD', 'DT', 'EX', 'FW', 'IN', 'JJ', 'JJR', 'JJS', 'LS', 'MD', 'NN', 'NNP', 'NNPS', 'NNS', 'NN|SYM', 'PDT', 'POS', 'PRP', 'PRP$', 'RB', 'RBR', 'RBS', 'RP', 'SYM', 'TO', 'UH', 'VB', 'VBD', 'VBG', 'VBN', 'VBP', 'VBZ', 'WDT', 'WP', 'WP$', 'WRB'], id=None), length=-1, id=None),
'tokens': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}
``` | [
-1.1813398599624634,
-0.9482174515724182,
-0.8618688583374023,
1.5314644575119019,
-0.20112067461013794,
-1.143328309059143,
0.08365598320960999,
-1.0315552949905396,
1.6024839878082275,
-0.9202495217323303,
0.2635209262371063,
-1.741904377937317,
0.055148184299468994,
-0.8191652297973633,
-0.6686708927154541,
-0.8741153478622437,
-0.24998828768730164,
-0.7861043214797974,
1.2667460441589355,
2.5259273052215576,
1.0157370567321777,
-1.456676959991455,
2.757187604904175,
0.8261929154396057,
-0.11446846276521683,
-1.0188390016555786,
0.5912207961082458,
-0.11100545525550842,
-1.1364656686782837,
-0.49239006638526917,
-1.0453907251358032,
0.012047648429870605,
-0.5882206559181213,
-0.3583381474018097,
-0.04055193066596985,
0.400565505027771,
-0.2829076945781708,
-0.37490659952163696,
-0.4277854263782501,
-0.8133888244628906,
0.29099082946777344,
-0.42656072974205017,
0.982967734336853,
-0.21576504409313202,
1.7777432203292847,
-0.49837902188301086,
0.2597573399543762,
0.6955105662345886,
1.3277230262756348,
0.1661658138036728,
0.12364830076694489,
0.2886071503162384,
0.42636653780937195,
-0.19425299763679504,
0.5926457643508911,
1.166808843612671,
0.5543701648712158,
0.48280322551727295,
0.8503971099853516,
-2.303997039794922,
1.3224024772644043,
-1.04017972946167,
0.34007206559181213,
1.3682358264923096,
-0.8594049215316772,
0.43994632363319397,
-1.6537604331970215,
-0.03497939556837082,
0.5999123454093933,
-2.1984925270080566,
0.39571383595466614,
-1.3285539150238037,
-0.48337605595588684,
0.7085660696029663,
0.3835075795650482,
-1.3267024755477905,
0.3333323001861572,
-0.3102222681045532,
1.0321882963180542,
0.30988582968711853,
0.9614611268043518,
-1.834075689315796,
-0.049980297684669495,
-0.27535027265548706,
0.1722935140132904,
-1.2764357328414917,
-1.571886420249939,
0.5426480770111084,
0.6970648765563965,
0.5642947554588318,
-0.22939099371433258,
1.0882920026779175,
-1.1766940355300903,
0.6824268698692322,
-1.1352475881576538,
-1.6691886186599731,
-1.3624078035354614,
-2.343433380126953,
-2.2644693851470947,
0.7502557635307312,
-0.5314285755157471,
-0.5692352056503296,
2.0192408561706543,
-1.0490933656692505,
-1.644187331199646,
1.2565226554870605,
0.39136573672294617,
0.019775891676545143,
2.550757884979248,
0.1518944799900055,
-0.6423142552375793,
0.5671381950378418,
-0.9358614683151245,
0.9078598618507385,
-0.38974645733833313,
1.270124912261963,
0.4293287396430969,
-0.9612423181533813,
1.629760980606079,
-0.3866358697414398,
0.6665475368499756,
-0.6527717709541321,
-0.33535876870155334,
-0.9261459112167358,
0.3792359530925751,
1.904422402381897,
-0.18866759538650513,
1.435034990310669,
-0.2901780903339386,
-1.560791254043579,
-1.6257752180099487,
1.0056650638580322,
0.28958243131637573,
-0.8814375400543213,
0.23609426617622375,
-0.33002516627311707,
0.304063081741333,
-0.03028060309588909,
1.2239689826965332,
1.2430270910263062,
0.6130800247192383,
-0.2839607298374176,
-0.8329256772994995,
0.18698443472385406,
-0.2146954983472824,
-0.7503980398178101,
-1.77809476852417,
-0.35405629873275757,
0.14006836712360382,
0.6857571005821228,
-1.1641765832901,
1.7497844696044922,
0.9729945659637451,
1.8645882606506348,
1.088819146156311,
-0.4163995385169983,
1.5380756855010986,
0.044372424483299255,
1.808168888092041,
-0.5801077485084534,
0.6657782793045044,
-0.506290853023529,
-1.2670414447784424,
0.9883219003677368,
-0.3611280620098114,
-1.876869797706604,
-0.7642990946769714,
-0.6822035312652588,
-0.28907328844070435,
-0.7655435800552368,
0.9386024475097656,
-0.4764349162578583,
-1.480642557144165,
0.2990826666355133,
-0.6532769799232483,
0.24083076417446136,
-1.186125636100769,
0.27784180641174316,
0.7353670597076416,
-0.5834077596664429,
-0.005276109091937542,
-0.2739677131175995,
-1.3949631452560425,
-0.3702770173549652,
0.3296910226345062,
1.777572751045227,
-0.6427299380302429,
0.8657779693603516,
0.9729616641998291,
-0.6571874022483826,
-0.0821765884757042,
0.3087065517902374,
-0.29577335715293884,
0.719238817691803,
-0.9696193933486938,
-0.6254847049713135,
1.2970315217971802,
-0.21616646647453308,
-0.6563393473625183,
1.4087564945220947,
0.8621447682380676,
-1.048991084098816,
-0.20713137090206146,
-0.2066265344619751,
-0.8233508467674255,
0.10576692968606949,
-1.6037675142288208,
-0.1650172621011734,
0.5706301331520081,
-1.590225100517273,
-0.4271458685398102,
-0.25122928619384766,
1.1237974166870117,
-0.1680137813091278,
1.356215238571167,
-0.4293671250343323,
-0.18359309434890747,
-0.3096837103366852,
-0.47944334149360657,
0.3129456341266632,
-0.23402945697307587,
-0.6527442336082458,
0.18252241611480713,
-0.6628970503807068,
0.4040250778198242,
1.498659610748291,
0.37030085921287537,
0.12165027856826782,
0.46119701862335205,
1.0575618743896484,
0.3898332417011261,
0.07139024138450623,
-0.9717539548873901,
-1.4418113231658936,
2.036597728729248,
-1.4407284259796143,
1.948837161064148,
0.7662849426269531,
0.07131320983171463,
-1.7549960613250732,
-1.8541216850280762,
1.4755128622055054,
1.2270070314407349,
2.203890562057495,
0.49288254976272583,
0.4208778142929077,
-0.8248139023780823,
-0.6546512842178345,
0.1963142305612564,
-1.0504323244094849,
-0.7144168615341187,
0.12799765169620514,
2.497285842895508,
1.87116539478302,
-0.5039812326431274,
-0.22320443391799927,
-0.9801175594329834,
1.512492299079895,
-0.2078879475593567,
0.32638564705848694,
1.983105182647705,
-0.29555609822273254,
-0.9962704181671143,
1.2634024620056152,
-2.3905210494995117,
0.03725052624940872,
1.999184489250183,
0.12022553384304047,
0.14408333599567413,
-1.3371262550354004,
-0.7093539237976074,
-0.2950327396392822,
-0.5342262983322144,
-1.368445873260498,
0.6204169988632202,
-0.32905644178390503,
-0.6225427389144897,
-1.549314260482788,
0.30206307768821716,
-1.1560325622558594,
-1.5436195135116577,
0.1415523737668991,
1.7964515686035156,
2.1932146549224854,
-0.8490093946456909,
1.633378505706787,
-0.2112777680158615,
0.3260565400123596,
1.1098603010177612,
1.211389183998108,
3.024346351623535,
1.8315494060516357,
-1.1435908079147339,
0.5748483538627625,
-0.26948413252830505,
-0.5049818158149719,
1.2041913270950317,
-1.0767394304275513,
1.255549669265747,
-0.1718774437904358,
-1.1970075368881226,
-1.2214645147323608,
0.8520635962486267,
0.40793582797050476,
0.11163144558668137,
-0.40101850032806396,
1.202113389968872,
0.016797680407762527,
1.1609275341033936,
0.634600818157196,
-0.20414496958255768,
0.5110865831375122,
-0.4533138871192932,
-0.4909297525882721,
1.6175365447998047,
0.06886997818946838,
-1.4975533485412598,
-2.2902004718780518,
-0.2957116365432739,
-0.8012009263038635,
0.09662918001413345,
-0.580906093120575,
-0.9602307081222534,
1.608477234840393,
0.2698247730731964,
-1.1699742078781128,
-0.18074871599674225,
-0.34430381655693054,
-0.5106747150421143,
2.642613649368286,
-1.3661783933639526,
-0.40613940358161926,
-0.9322580099105835,
-0.6480377912521362,
1.5894694328308105,
-1.1750777959823608,
0.001749950461089611,
-1.026960849761963,
-0.382007360458374,
-1.271485447883606,
-0.2872689664363861,
-0.07399801164865494,
-1.046036720275879,
0.8797590732574463,
0.23747017979621887,
-1.2859137058258057,
-0.34086430072784424,
-1.003819227218628,
0.8489914536476135,
-0.09090472012758255,
0.3053077161312103,
1.841107964515686,
0.2674849331378937,
-0.4473084807395935,
0.9795653820037842,
1.1389240026474,
0.7091732025146484,
-0.6823556423187256,
0.14428725838661194,
-0.6377665996551514,
0.33228251338005066,
-1.207247257232666,
0.18258345127105713,
-2.8214659690856934,
0.6584268808364868,
-0.05927573889493942,
-0.2540793716907501,
0.07696714997291565,
-1.2670363187789917,
1.164716362953186,
2.490999698638916,
-1.2463366985321045,
0.4863767921924591,
0.18079131841659546,
1.457628846168518,
-1.50946843624115,
0.24512358009815216,
-0.31363943219184875,
2.091890573501587,
0.1253148317337036,
1.1193888187408447,
-0.3162292242050171,
-2.4653868675231934,
0.6227580308914185,
-1.2905274629592896,
-1.1079202890396118,
0.7349750995635986,
-0.9088167548179626,
0.10860180109739304,
-1.4886194467544556,
-0.272629976272583,
-0.9263300895690918,
-1.1958467960357666,
0.7308840155601501,
0.15863339602947235,
0.3945539891719818,
-0.6784215569496155,
0.22732290625572205,
-2.2153820991516113,
-1.430794596672058,
-0.22075729072093964,
-0.9208860993385315,
0.5364603400230408,
-0.3935340642929077,
0.6869882345199585,
-0.20393691956996918,
-0.0708823874592781,
0.23020562529563904,
1.569116473197937,
3.5182838439941406,
0.20097419619560242,
0.5377481579780579,
-0.19502979516983032,
-0.849097728729248,
1.414605736732483,
0.9444838166236877,
-0.07647746801376343,
-0.5030986070632935,
-1.1159520149230957,
1.4295318126678467,
1.9257673025131226,
0.8838479518890381,
0.012365801259875298,
-0.7530484795570374,
-0.5763491988182068,
-0.15600936114788055,
0.21986426413059235,
0.4720928370952606,
0.883333146572113,
-0.009501698426902294,
-0.04729347676038742,
1.444736123085022,
1.0998347997665405,
-0.4636908769607544,
0.28249120712280273,
-0.79727703332901,
-0.4024185538291931,
0.6049349308013916,
0.16801026463508606,
-0.0543171763420105,
0.49723225831985474,
-1.0097894668579102,
-0.40447837114334106,
-0.3590669333934784,
-0.9132794737815857,
-0.6850038766860962,
-0.3871830999851227,
-0.3188754618167877,
1.5683839321136475,
0.19289347529411316,
-0.6515949368476868,
0.03314928710460663,
-0.6561267375946045,
-0.10425609350204468,
-1.0354875326156616,
-0.02131637930870056,
-0.19227391481399536,
-0.1781795769929886,
-0.25763532519340515,
1.8183350563049316,
-1.0486711263656616,
-1.9496610164642334,
0.08134227246046066,
0.37091735005378723,
-0.09729985147714615,
0.26249468326568604,
1.7234774827957153,
0.47529926896095276,
1.4583089351654053,
1.2946603298187256,
0.9482529163360596,
-0.6168534755706787,
-1.3920451402664185,
0.6276631951332092,
0.9394665360450745,
-1.2486608028411865,
0.9324106574058533,
-0.026791758835315704,
-0.6028741002082825,
0.6072141528129578,
1.2347102165222168,
0.45941492915153503,
-2.0178592205047607,
0.7148910760879517,
-1.169575810432434,
0.8347270488739014,
0.7402768135070801,
0.6184617877006531,
0.3360329568386078,
0.7615369558334351,
-1.1201951503753662,
-1.1350756883621216,
-0.7877522706985474,
-0.6397428512573242,
2.0315680503845215,
-0.2970755100250244,
0.6841534972190857,
-0.04286285489797592,
-1.2142279148101807,
0.00953267514705658,
0.7200385332107544,
0.3682924807071686,
-0.4283149838447571,
0.8412511348724365,
-0.7351526021957397,
-1.1359741687774658,
-1.4252852201461792,
-0.46083763241767883,
-1.1189444065093994,
-0.9604719877243042,
1.1082149744033813,
0.788422167301178,
0.21874989569187164,
1.89851975440979,
0.7775676250457764,
0.1686708778142929,
-2.404740810394287,
0.9010270833969116,
0.17758816480636597,
-0.0799270048737526,
0.7731862664222717,
0.3893182575702667,
1.0873899459838867,
-0.04800838232040405,
0.5310500860214233,
-2.3532965183258057,
2.24642014503479,
-0.23174844682216644,
0.7020947933197021,
-0.14569242298603058,
-0.08488779515028,
1.1177406311035156,
0.5440583229064941,
0.5317203998565674,
-1.0175644159317017,
0.4426518678665161,
-0.5965708494186401,
1.3458131551742554,
1.0060639381408691,
-0.7287001013755798,
0.03365418314933777,
1.3335751295089722,
0.3536769449710846,
-0.5831478834152222,
-0.9785224795341492,
-0.9173860549926758,
0.9748614430427551,
1.6291322708129883,
-0.12228357791900635,
-0.08475898951292038,
0.7056408524513245,
0.6487088203430176,
-1.3727442026138306,
0.05299568921327591,
-0.5000218749046326,
-0.7438638806343079,
1.5839641094207764,
2.120598077774048,
-0.3121456205844879,
0.004528407007455826,
-0.7025663256645203,
-1.1642988920211792,
0.7048982977867126,
0.021803492680191994,
-0.007796178106218576,
0.7447329759597778,
-0.6733699440956116,
0.9644709825515747,
0.7605334520339966,
0.7912384867668152,
0.3495338261127472,
0.2473539263010025,
0.5653395652770996,
-0.41815853118896484,
-1.0213876962661743,
-0.31503602862358093,
-1.0882855653762817,
-2.631263256072998,
0.3308079242706299,
-0.256204217672348,
-1.4313371181488037,
-0.02035238780081272,
-1.012770414352417,
1.0030677318572998,
-0.4505200684070587,
-1.0722721815109253,
-1.481598138809204,
0.26141539216041565,
0.03576219081878662,
0.8555787205696106,
-1.623321294784546,
-0.039735160768032074,
1.2138599157333374,
1.0516364574432373,
-0.7152201533317566,
1.058652400970459,
0.22741709649562836,
1.0887454748153687,
0.7985672354698181,
-0.39640891551971436,
0.5523079037666321,
-0.08382529020309448,
-1.3427839279174805,
0.47545695304870605,
1.2214765548706055,
0.1880200207233429,
1.376838207244873,
-0.5128118395805359,
-0.0898079052567482,
0.3955237865447998,
-0.558636486530304,
-0.520285964012146,
-0.46667149662971497,
0.6350377798080444,
0.1881663203239441,
-0.7649986743927002,
0.05497954040765762,
-0.03726429492235184,
-0.36477455496788025,
0.23682065308094025,
-1.491743564605713,
-0.12145834416151047,
-0.45344066619873047,
-0.4731656014919281,
-1.328001856803894,
-0.050508104264736176,
1.4509979486465454,
-0.6253150701522827,
-0.2562401294708252,
0.523236870765686,
0.37924888730049133,
0.43180063366889954,
0.5551996827125549,
-0.6329333186149597,
-0.3197389841079712,
-0.3250106871128082,
-0.2889541685581207,
0.31059032678604126,
1.3955528736114502,
-0.17291417717933655,
-0.9859976768493652,
0.6999068856239319,
-0.37393221259117126,
-0.005847117863595486,
1.9015518426895142,
0.06189681589603424,
-0.890200138092041,
0.33425137400627136,
-0.6484705805778503,
1.9442273378372192,
1.7419178485870361,
1.19722318649292,
-0.13617385923862457,
-0.8752817511558533,
0.7901610732078552,
-0.29023411870002747,
-0.42489591240882874,
0.8423490524291992,
0.15454792976379395,
-0.30684739351272583,
-1.5601872205734253,
0.6760765910148621,
1.2138153314590454,
-0.6998825669288635,
-0.8108274340629578,
0.09434656798839569,
-0.8507448434829712,
1.2115330696105957,
0.6092525124549866,
0.4755437970161438,
0.2333233505487442,
1.6739652156829834,
0.8465861678123474,
-0.5304506421089172,
0.5685321092605591,
0.6073171496391296,
-0.08521906286478043,
-2.1308279037475586,
-1.2291922569274902,
0.17515841126441956,
-0.42336347699165344,
-1.6689921617507935,
1.2740010023117065,
-1.1317164897918701,
-0.9730161428451538,
0.7027979493141174,
-0.043274492025375366,
1.2937610149383545,
0.44375935196876526,
1.3531924486160278,
2.1402523517608643,
0.7876512408256531,
0.4985920190811157,
1.1736353635787964,
-0.38839223980903625,
-0.5639734864234924,
1.8257415294647217,
-0.3406452536582947,
0.5124552845954895,
1.100386142730713,
-0.23384463787078857,
-0.9736584424972534,
-0.6524562835693359,
-1.089678168296814,
-0.5921947956085205,
1.2157790660858154,
-0.019274253398180008,
-1.097320795059204,
0.30265673995018005,
1.493971347808838,
0.007264271378517151,
-0.42177942395210266,
0.6982622742652893,
0.493849515914917,
-0.8227658271789551,
0.05122188478708267,
-0.8930779695510864,
0.5183683037757874,
-0.3277885615825653,
-0.2174622118473053,
0.5668421983718872,
0.48371821641921997,
1.3848038911819458,
-0.07804987579584122,
0.23658809065818787,
1.1260453462600708,
-1.4532325267791748,
1.452937126159668,
-0.7488317489624023,
0.21364004909992218,
-2.4197936058044434,
1.2818830013275146,
-0.7386672496795654,
2.0210671424865723,
-2.7141072750091553,
0.3626502454280853,
-0.5956227779388428,
-0.6329120397567749,
0.3833884596824646,
-0.28930896520614624,
0.1022178903222084,
-0.12903884053230286,
-1.1123545169830322,
0.11770997941493988,
-0.689854621887207,
0.37711501121520996,
1.125587821006775,
1.346808910369873,
-1.026596188545227,
-0.2383655160665512,
-1.7125567197799683,
-0.017870131880044937,
-0.8117157816886902,
0.24671520292758942,
-2.0916714668273926,
-0.32509809732437134,
-1.8439055681228638,
-2.3741118907928467,
-1.2959554195404053,
-0.8848612904548645,
1.1387434005737305,
0.13654913008213043,
-0.8739652633666992,
1.3440531492233276,
-0.3015155792236328,
-1.7944833040237427,
1.056792974472046,
-2.014336347579956
] |
https://github.com/huggingface/datasets/issues/4671 | Dataset Viewer issue for wmt16 | Thanks for reporting, @lewtun.
~We can't load the dataset locally, so I think this is an issue with the loading script (not the viewer).~
We are investigating... | ### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status code: 400
Exception: NotImplementedError
Message: This is a abstract method
```
Thanks!
### Owner
No | 639 | 27 | Dataset Viewer issue for wmt16
### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status code: 400
Exception: NotImplementedError
Message: This is a abstract method
```
Thanks!
### Owner
No
Thanks for reporting, @lewtun.
~We can't load the dataset locally, so I think this is an issue with the loading script (not the viewer).~
We are investigating... | [
-1.1700109243392944,
-0.9151107668876648,
-0.829308807849884,
1.4238073825836182,
-0.1857450306415558,
-1.2691693305969238,
0.18653804063796997,
-0.9981623291969299,
1.6574852466583252,
-0.7746081352233887,
0.28182265162467957,
-1.7646417617797852,
-0.010416067205369473,
-0.5746211409568787,
-0.7260191440582275,
-0.8488995432853699,
-0.3229862153530121,
-0.7168499231338501,
1.0038164854049683,
2.620741128921509,
1.1950318813323975,
-1.272972583770752,
2.7646946907043457,
0.6534556746482849,
-0.29579591751098633,
-1.0596035718917847,
0.506848156452179,
0.007230144925415516,
-1.2824021577835083,
-0.48988306522369385,
-0.9943758845329285,
-0.060610756278038025,
-0.4666912853717804,
-0.5441721081733704,
-0.015712466090917587,
0.44707512855529785,
-0.18441271781921387,
-0.3241563141345978,
-0.4261149764060974,
-0.8463764190673828,
0.44805631041526794,
-0.3875966966152191,
0.8841662406921387,
-0.38106676936149597,
1.8550455570220947,
-0.5640843510627747,
0.412727028131485,
0.6495044231414795,
1.4221522808074951,
0.10032681375741959,
-0.08601467311382294,
0.26868805289268494,
0.3922799825668335,
0.02158762514591217,
0.43530911207199097,
1.1829274892807007,
0.5951991081237793,
0.5571259260177612,
0.5824646353721619,
-2.222778081893921,
1.3107163906097412,
-0.9643558263778687,
0.3293381631374359,
1.416396975517273,
-1.0449655055999756,
0.3480598032474518,
-1.7349894046783447,
-0.09088167548179626,
0.48669278621673584,
-2.2412493228912354,
0.2625379264354706,
-1.2538665533065796,
-0.5540509223937988,
0.9636951684951782,
0.4209516942501068,
-1.3698978424072266,
-0.009162764064967632,
-0.42786842584609985,
1.0070629119873047,
0.5323518514633179,
1.172174334526062,
-1.6920511722564697,
-0.03823757916688919,
-0.3086223602294922,
-0.0011297371238470078,
-1.3969178199768066,
-1.491841197013855,
0.4732848107814789,
0.703971803188324,
0.7059957385063171,
-0.045436177402734756,
0.9026008248329163,
-1.025671362876892,
0.7321406602859497,
-0.9110528230667114,
-1.6875498294830322,
-1.3929469585418701,
-2.3712480068206787,
-2.2701897621154785,
0.7913997173309326,
-0.45787569880485535,
-0.5888813138008118,
2.020845890045166,
-0.9615288376808167,
-1.8556488752365112,
1.1662392616271973,
0.2183365374803543,
-0.02338304929435253,
2.4182517528533936,
0.3585295081138611,
-0.6974676847457886,
0.3953452408313751,
-0.8063188791275024,
0.7967599034309387,
-0.5017833709716797,
1.4551769495010376,
0.53249591588974,
-0.9676885008811951,
1.6218913793563843,
-0.35676801204681396,
0.5268474817276001,
-0.783284068107605,
-0.5002222657203674,
-0.7918573617935181,
0.3045266568660736,
1.887123465538025,
-0.3792538344860077,
1.5763251781463623,
-0.4231090545654297,
-1.5385624170303345,
-1.5420076847076416,
0.8482633829116821,
0.5275388956069946,
-0.7742010354995728,
0.11361275613307953,
-0.3935314118862152,
0.05554443597793579,
-0.030513353645801544,
1.0778805017471313,
1.174404263496399,
0.6401083469390869,
-0.2906329333782196,
-0.8925555944442749,
0.38084226846694946,
-0.002022059168666601,
-0.750766932964325,
-1.7664715051651,
-0.3020729124546051,
0.04944591596722603,
0.6196536421775818,
-1.276102900505066,
1.6715340614318848,
0.752788245677948,
2.008676290512085,
1.0112379789352417,
-0.2864707112312317,
1.4269578456878662,
-0.005383464973419905,
1.8388795852661133,
-0.5156578421592712,
0.6758144497871399,
-0.3237733542919159,
-1.1058412790298462,
0.7843247056007385,
-0.4256409704685211,
-2.000520944595337,
-0.8030295968055725,
-0.9558728933334351,
-0.1404612809419632,
-0.8023505210876465,
1.0152947902679443,
-0.25818294286727905,
-1.3826558589935303,
0.19651579856872559,
-0.782540500164032,
0.16751331090927124,
-1.350634217262268,
0.21926437318325043,
0.7647508978843689,
-0.580905556678772,
0.07665465772151947,
-0.23081311583518982,
-1.2881507873535156,
-0.3772008419036865,
0.34046560525894165,
2.0181057453155518,
-0.7206408381462097,
0.9490009546279907,
0.9772311449050903,
-0.733350932598114,
-0.02580815926194191,
0.3786613643169403,
-0.25605371594429016,
0.8916789293289185,
-1.033216953277588,
-0.353875994682312,
1.176085114479065,
-0.1522803008556366,
-0.7101277112960815,
1.4820417165756226,
0.780202329158783,
-0.9781256318092346,
-0.22130057215690613,
-0.11538735032081604,
-0.7972785830497742,
0.030427131801843643,
-1.7125647068023682,
-0.17000220715999603,
0.23856934905052185,
-1.4489290714263916,
-0.5711780190467834,
-0.19841213524341583,
1.343096137046814,
-0.11600479483604431,
1.4370710849761963,
-0.2929631471633911,
-0.23542194068431854,
-0.3706743121147156,
-0.42480096220970154,
0.1700531393289566,
-0.2765635848045349,
-0.5984949469566345,
0.2804667353630066,
-0.7290493845939636,
0.3161177933216095,
1.4191968441009521,
0.3448525071144104,
0.10702641308307648,
0.5969704389572144,
1.0182615518569946,
0.31494635343551636,
-0.1390872299671173,
-0.8508411049842834,
-1.638191819190979,
2.0481925010681152,
-1.443361759185791,
1.991670846939087,
0.8349502682685852,
-0.07656638324260712,
-1.814582347869873,
-1.96199369430542,
1.348281741142273,
1.257228970527649,
2.305630683898926,
0.5959615111351013,
0.4167495667934418,
-0.8114511966705322,
-0.7425889372825623,
0.27327287197113037,
-1.0366134643554688,
-0.8019137978553772,
0.1433991640806198,
2.3510406017303467,
1.8139986991882324,
-0.539829671382904,
-0.15019752085208893,
-1.1011186838150024,
1.1513031721115112,
-0.11795487999916077,
0.2165573090314865,
1.9630581140518188,
-0.28532475233078003,
-1.020472764968872,
1.1806862354278564,
-2.239875555038452,
0.1587885022163391,
2.0212714672088623,
0.23402203619480133,
0.06466174870729446,
-1.5181699991226196,
-0.6549586057662964,
-0.26329049468040466,
-0.25284501910209656,
-1.2418370246887207,
0.6159075498580933,
-0.2825078070163727,
-0.8936896920204163,
-1.5085138082504272,
0.09248368442058563,
-1.018682837486267,
-1.6513539552688599,
0.32464399933815,
1.8352181911468506,
1.9416120052337646,
-0.8024252653121948,
1.4789308309555054,
-0.22647884488105774,
0.12348658591508865,
1.282288908958435,
1.137403964996338,
3.0697035789489746,
1.9471148252487183,
-1.2800140380859375,
0.7838193774223328,
-0.02721165493130684,
-0.40334874391555786,
1.2190207242965698,
-1.0643105506896973,
1.1802300214767456,
-0.1969081163406372,
-1.229174017906189,
-1.3065986633300781,
0.8897125720977783,
0.4541693925857544,
-0.05766063928604126,
-0.47618475556373596,
1.3063372373580933,
0.043763380497694016,
1.3343126773834229,
0.5987513661384583,
-0.3271666169166565,
0.6663596630096436,
-0.3556429445743561,
-0.39563608169555664,
1.5559768676757812,
0.22534717619419098,
-1.5418686866760254,
-2.311354637145996,
-0.17521624267101288,
-0.8724660277366638,
-0.04043013975024223,
-0.5936391353607178,
-0.9963576793670654,
1.6816627979278564,
0.5309284329414368,
-1.2530871629714966,
-0.3245529234409332,
-0.31093984842300415,
-0.5686246752738953,
2.75689959526062,
-1.3383569717407227,
-0.29071927070617676,
-1.0550674200057983,
-0.5236800312995911,
1.6632018089294434,
-1.2621448040008545,
-0.12749917805194855,
-1.0418767929077148,
-0.6441775560379028,
-1.329498291015625,
-0.5648251175880432,
-0.0007690265774726868,
-0.9451082944869995,
0.7720693945884705,
0.0615851953625679,
-1.1065409183502197,
-0.24012719094753265,
-0.867588460445404,
0.8824723958969116,
-0.08727376163005829,
0.28147485852241516,
1.9610177278518677,
0.42923250794410706,
-0.4596298635005951,
0.7298473715782166,
1.1053386926651,
0.5478007197380066,
-0.6949520111083984,
0.2888142466545105,
-0.5840499997138977,
0.29935216903686523,
-1.4035487174987793,
0.3129931688308716,
-2.924276828765869,
0.6297131776809692,
-0.10776567459106445,
-0.03446114808320999,
-0.041578005999326706,
-1.3121291399002075,
1.1509487628936768,
2.503970146179199,
-1.2102340459823608,
0.5026777982711792,
0.3087416887283325,
1.2761012315750122,
-1.502821922302246,
0.3632449209690094,
-0.3936808407306671,
2.138232707977295,
0.21239271759986877,
1.2037222385406494,
-0.45571228861808777,
-2.141253709793091,
0.626083493232727,
-1.2937572002410889,
-1.0372004508972168,
0.730933427810669,
-0.7904658317565918,
0.004098983481526375,
-1.3362815380096436,
-0.15376494824886322,
-0.8432356119155884,
-1.2836283445358276,
0.7962489724159241,
0.1694192886352539,
0.43037569522857666,
-0.6453720927238464,
0.417158305644989,
-2.0667803287506104,
-1.3097165822982788,
-0.1801023781299591,
-0.9008731842041016,
0.30420002341270447,
-0.26404425501823425,
0.6620386838912964,
-0.27022886276245117,
0.0699823871254921,
0.31826159358024597,
1.3335660696029663,
3.3874433040618896,
0.23570239543914795,
0.3750913143157959,
-0.11349359154701233,
-0.9583883881568909,
1.5277444124221802,
0.9475600719451904,
-0.046139031648635864,
-0.551453709602356,
-0.9962568879127502,
1.3166602849960327,
1.9976294040679932,
1.093572735786438,
0.1404031664133072,
-0.9014385342597961,
-0.735298752784729,
-0.033583056181669235,
0.1864113062620163,
0.49792835116386414,
0.827158510684967,
-0.026457644999027252,
0.12179506570100784,
1.4453232288360596,
1.193019986152649,
-0.5159067511558533,
0.4793988764286041,
-0.953258216381073,
-0.3497002124786377,
0.403230220079422,
0.39950692653656006,
0.023117829114198685,
0.41267329454421997,
-1.032313346862793,
-0.2893158197402954,
-0.24133729934692383,
-0.9542649388313293,
-0.6919271945953369,
-0.39728018641471863,
-0.3386501967906952,
1.6074808835983276,
0.122352235019207,
-0.41402745246887207,
-0.0524936243891716,
-0.7290180921554565,
-0.09845776855945587,
-1.0423558950424194,
0.24080790579319,
-0.13480493426322937,
0.017602257430553436,
0.01134954672306776,
1.8012378215789795,
-0.9507669806480408,
-2.2288155555725098,
0.27230557799339294,
0.23638221621513367,
-0.4190145432949066,
0.1494898945093155,
1.6222933530807495,
0.5470455288887024,
1.378133773803711,
1.339187741279602,
1.01326584815979,
-0.6919822096824646,
-1.389981746673584,
0.671923816204071,
0.9833310842514038,
-1.3764257431030273,
0.8205422163009644,
-0.0005437461659312248,
-0.5084184408187866,
0.6800891160964966,
1.324892282485962,
0.4484819173812866,
-1.8864374160766602,
0.7458397746086121,
-0.8041906356811523,
0.7542218565940857,
0.7573916912078857,
0.8261203765869141,
0.3097081482410431,
0.8025433421134949,
-1.3254679441452026,
-1.2182328701019287,
-0.7772586345672607,
-0.5339688658714294,
1.9253032207489014,
-0.18523375689983368,
0.5551497340202332,
-0.13869808614253998,
-1.3542203903198242,
-0.12993837893009186,
0.594067394733429,
0.3368293344974518,
-0.40856972336769104,
0.7701217532157898,
-0.6483365893363953,
-1.0915113687515259,
-1.42768394947052,
-0.478941947221756,
-0.9356569647789001,
-0.988581657409668,
1.0095545053482056,
0.7797922492027283,
0.3291938602924347,
1.9527952671051025,
0.6161541938781738,
0.19346028566360474,
-2.6070849895477295,
0.9195172190666199,
0.3302727937698364,
0.07482707500457764,
0.8171035051345825,
0.3445867598056793,
1.1087478399276733,
0.029852624982595444,
0.5152390599250793,
-2.331580400466919,
2.2694664001464844,
-0.2351338118314743,
0.6684040427207947,
-0.014347759075462818,
-0.0790233314037323,
1.1430561542510986,
0.5376886129379272,
0.592070460319519,
-1.1325247287750244,
0.7620396614074707,
-0.6613838076591492,
1.1908129453659058,
0.9788044095039368,
-0.8025209307670593,
0.03959795460104942,
1.3269307613372803,
0.5241182446479797,
-0.4948178231716156,
-0.8747125267982483,
-0.8270979523658752,
0.9138496518135071,
1.6956385374069214,
0.05004356428980827,
-0.004423523787409067,
0.8685320615768433,
0.5592902898788452,
-1.2737423181533813,
-0.019052758812904358,
-0.7020801305770874,
-0.6766136288642883,
1.6966768503189087,
2.0401577949523926,
-0.11470543593168259,
-0.16544897854328156,
-0.7956411242485046,
-1.1490674018859863,
0.7244574427604675,
-0.0851454883813858,
0.06978558748960495,
0.8025104999542236,
-0.6275371313095093,
1.1506630182266235,
0.6923284530639648,
0.8801618814468384,
0.1691417247056961,
0.31851926445961,
0.3499377369880676,
-0.2783455550670624,
-1.2419060468673706,
-0.31137800216674805,
-1.1709916591644287,
-2.5555858612060547,
0.4228358268737793,
-0.3565041720867157,
-1.3780585527420044,
0.10665666311979294,
-1.1056725978851318,
0.9429846405982971,
-0.5986633896827698,
-1.0647600889205933,
-1.4320361614227295,
0.23353417217731476,
-0.19473761320114136,
0.8040851354598999,
-1.601409912109375,
-0.03183594346046448,
1.292937994003296,
0.9320682287216187,
-0.5706556439399719,
1.0348975658416748,
0.27312374114990234,
1.108139157295227,
0.8196657299995422,
-0.3331643044948578,
0.5095899701118469,
0.08046071976423264,
-1.3336073160171509,
0.5355948209762573,
1.1366775035858154,
0.11265584081411362,
1.4333139657974243,
-0.5006362795829773,
0.06521283835172653,
0.55106520652771,
-0.5010355710983276,
-0.5187692642211914,
-0.48064231872558594,
0.7842159271240234,
0.09493221342563629,
-1.0015159845352173,
-0.029315613210201263,
-0.13232940435409546,
-0.13157501816749573,
0.24563144147396088,
-1.5800261497497559,
-0.2089003473520279,
-0.3472602963447571,
-0.629295825958252,
-1.3360803127288818,
-0.08301016688346863,
1.3713561296463013,
-0.8104777932167053,
-0.2410745620727539,
0.5992235541343689,
0.331246942281723,
0.5641028881072998,
0.6215124130249023,
-0.6742416620254517,
-0.36792248487472534,
-0.2819751799106598,
-0.36746761202812195,
0.4093553125858307,
1.2699458599090576,
-0.14956790208816528,
-1.0641014575958252,
0.702349841594696,
-0.3726751506328583,
0.1103103831410408,
1.969325304031372,
0.06132303178310394,
-0.9087425470352173,
0.2518690228462219,
-0.6502249240875244,
2.0138442516326904,
1.5941214561462402,
1.3575372695922852,
-0.08094228059053421,
-0.9484269618988037,
0.51274174451828,
-0.11884162575006485,
-0.3561844825744629,
0.8119269013404846,
0.43830472230911255,
-0.18332305550575256,
-1.3076951503753662,
0.5048624277114868,
1.2732590436935425,
-0.894032895565033,
-0.9204482436180115,
0.09422053396701813,
-0.9139958024024963,
1.0699830055236816,
0.76507169008255,
0.3666805326938629,
0.28385505080223083,
1.5340479612350464,
0.7385994791984558,
-0.5910957455635071,
0.4066309332847595,
0.3666512370109558,
-0.05376802384853363,
-2.1045124530792236,
-1.0016168355941772,
0.34645429253578186,
-0.37472406029701233,
-1.5662438869476318,
1.3156750202178955,
-1.1818770170211792,
-0.9200639724731445,
0.44937804341316223,
0.2150590419769287,
1.3341385126113892,
0.2547619938850403,
1.5978935956954956,
1.988818645477295,
0.9003210067749023,
0.27640965580940247,
1.3752435445785522,
-0.15487363934516907,
-0.5206235647201538,
1.7916206121444702,
-0.3591603934764862,
0.5249947309494019,
1.093752145767212,
-0.4702042043209076,
-1.0530387163162231,
-0.8283767104148865,
-1.181950330734253,
-0.6451279520988464,
1.1479541063308716,
0.25267931818962097,
-1.2164206504821777,
0.13692818582057953,
1.4584416151046753,
0.16124270856380463,
-0.3017145097255707,
0.5787092447280884,
0.4873393177986145,
-0.7291597127914429,
0.030461370944976807,
-0.9626035094261169,
0.5441387891769409,
-0.16166247427463531,
-0.3444831073284149,
0.2894660532474518,
0.4374506175518036,
1.2123829126358032,
-0.00419960729777813,
0.17596504092216492,
1.2303365468978882,
-1.3755539655685425,
1.4386759996414185,
-0.5340569615364075,
0.23326194286346436,
-2.4409408569335938,
1.4323070049285889,
-0.7743993401527405,
1.7975119352340698,
-2.680701494216919,
0.407318115234375,
-0.5503564476966858,
-0.39813950657844543,
0.30607807636260986,
-0.3953483998775482,
0.11836398392915726,
-0.14511501789093018,
-1.1397427320480347,
-0.096887968480587,
-0.7913132905960083,
0.5757763981819153,
1.2113410234451294,
1.2979342937469482,
-1.0702509880065918,
-0.25508296489715576,
-1.8248333930969238,
-0.058067984879016876,
-0.727549135684967,
0.3043627142906189,
-2.083073139190674,
-0.19960516691207886,
-1.9308195114135742,
-2.3636374473571777,
-1.366823434829712,
-0.804991602897644,
1.1104834079742432,
0.21665380895137787,
-0.9188134074211121,
1.0880898237228394,
-0.31083083152770996,
-1.7486848831176758,
1.0251680612564087,
-2.1889243125915527
] |
https://github.com/huggingface/datasets/issues/4671 | Dataset Viewer issue for wmt16 | Recently, there was a merged PR related to this dataset:
- #4554
We are looking at this... | ### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status code: 400
Exception: NotImplementedError
Message: This is a abstract method
```
Thanks!
### Owner
No | 639 | 17 | Dataset Viewer issue for wmt16
### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status code: 400
Exception: NotImplementedError
Message: This is a abstract method
```
Thanks!
### Owner
No
Recently, there was a merged PR related to this dataset:
- #4554
We are looking at this... | [
-1.132081151008606,
-0.9160559773445129,
-0.8157680630683899,
1.4908636808395386,
-0.1665322631597519,
-1.2878577709197998,
0.20562106370925903,
-0.9644324779510498,
1.6607691049575806,
-0.6938296556472778,
0.2871902585029602,
-1.753904104232788,
-0.055620186030864716,
-0.5911145210266113,
-0.692794919013977,
-0.8553691506385803,
-0.3358948826789856,
-0.7215006351470947,
0.9786016345024109,
2.5971662998199463,
1.1912312507629395,
-1.3497140407562256,
2.6865525245666504,
0.6686457991600037,
-0.3090194761753082,
-0.9999035000801086,
0.5033799409866333,
0.09711077064275742,
-1.2708470821380615,
-0.4904845952987671,
-0.9304757118225098,
-0.07145946472883224,
-0.47515183687210083,
-0.554315447807312,
-0.04253031685948372,
0.5123059749603271,
-0.1598629504442215,
-0.33238381147384644,
-0.4265763759613037,
-0.8185303807258606,
0.44133636355400085,
-0.4100128710269928,
0.8660426139831543,
-0.3775356411933899,
1.8306469917297363,
-0.5807991027832031,
0.4026857316493988,
0.6271004676818848,
1.3787544965744019,
0.06258385628461838,
-0.055275920778512955,
0.24410924315452576,
0.3821788728237152,
-0.039240576326847076,
0.4414156377315521,
1.1676095724105835,
0.6293437480926514,
0.5705779790878296,
0.569769561290741,
-2.178222894668579,
1.3125784397125244,
-0.8992712497711182,
0.37779170274734497,
1.3798103332519531,
-1.1138900518417358,
0.3675915002822876,
-1.7348285913467407,
-0.09654203057289124,
0.536710798740387,
-2.1635591983795166,
0.3064211905002594,
-1.22788667678833,
-0.5604268908500671,
0.9896910786628723,
0.3854176998138428,
-1.293665885925293,
0.008615599013864994,
-0.45082294940948486,
1.05560302734375,
0.47715330123901367,
1.1829527616500854,
-1.6946173906326294,
0.01348950807005167,
-0.3313998579978943,
-0.03362761065363884,
-1.3670231103897095,
-1.4694452285766602,
0.43129709362983704,
0.7138981819152832,
0.7618481516838074,
-0.02099364623427391,
0.9211800694465637,
-0.9903905391693115,
0.7140898108482361,
-0.9543009400367737,
-1.6895487308502197,
-1.3308019638061523,
-2.3572497367858887,
-2.291703701019287,
0.7983075380325317,
-0.40366461873054504,
-0.5372185707092285,
2.0316219329833984,
-0.9014272689819336,
-1.8936142921447754,
1.1667723655700684,
0.2837504744529724,
-0.027674097567796707,
2.353346586227417,
0.34200140833854675,
-0.7124679088592529,
0.43749651312828064,
-0.827086329460144,
0.7717385292053223,
-0.5445103049278259,
1.3823933601379395,
0.4999329447746277,
-1.001096487045288,
1.5785025358200073,
-0.35580581426620483,
0.6171883940696716,
-0.8560219407081604,
-0.49511948227882385,
-0.7811968922615051,
0.32157596945762634,
1.8603460788726807,
-0.3624887764453888,
1.548636555671692,
-0.3720281720161438,
-1.5109195709228516,
-1.5445283651351929,
0.8764539361000061,
0.49992871284484863,
-0.7681108117103577,
0.09498417377471924,
-0.42605316638946533,
0.07049790024757385,
-0.02098199352622032,
1.044817328453064,
1.156036138534546,
0.6280314326286316,
-0.2900198698043823,
-0.9139794111251831,
0.37057432532310486,
0.02198970690369606,
-0.6711899042129517,
-1.760613203048706,
-0.27733883261680603,
0.08668747544288635,
0.5870768427848816,
-1.2660990953445435,
1.6832990646362305,
0.790043830871582,
2.010897636413574,
0.9593510627746582,
-0.2727729082107544,
1.5200222730636597,
-0.030251186341047287,
1.8560653924942017,
-0.4643951952457428,
0.6662449240684509,
-0.29112038016319275,
-1.1305526494979858,
0.8466742038726807,
-0.40434008836746216,
-2.0293354988098145,
-0.7865079641342163,
-0.9298142194747925,
-0.11747289448976517,
-0.8542518019676208,
1.0362669229507446,
-0.21236644685268402,
-1.3635594844818115,
0.222692608833313,
-0.7876098155975342,
0.19366952776908875,
-1.3133240938186646,
0.1909680813550949,
0.7506267428398132,
-0.5482154488563538,
0.07932773977518082,
-0.24884754419326782,
-1.3123254776000977,
-0.3794203996658325,
0.3885687589645386,
1.992761492729187,
-0.729194164276123,
0.9753021597862244,
1.0186607837677002,
-0.7213901281356812,
0.03516222909092903,
0.3573596477508545,
-0.2262144386768341,
0.9411346912384033,
-1.0935611724853516,
-0.3396919369697571,
1.1446080207824707,
-0.12971287965774536,
-0.755867063999176,
1.5097650289535522,
0.7885664701461792,
-0.9419991970062256,
-0.20176179707050323,
-0.1287550926208496,
-0.7561004757881165,
-0.019245188683271408,
-1.7140004634857178,
-0.11950923502445221,
0.2512282133102417,
-1.4162993431091309,
-0.5503824949264526,
-0.23037675023078918,
1.332425594329834,
-0.09205041825771332,
1.4246301651000977,
-0.21807129681110382,
-0.22724410891532898,
-0.3799648582935333,
-0.46593451499938965,
0.0996275320649147,
-0.28997597098350525,
-0.6362053155899048,
0.262024849653244,
-0.7389105558395386,
0.2980498671531677,
1.4426573514938354,
0.31281304359436035,
0.10699034482240677,
0.6125854253768921,
1.025537371635437,
0.3132861852645874,
-0.17103175818920135,
-0.8653082847595215,
-1.6129889488220215,
1.9855313301086426,
-1.397728443145752,
1.973963737487793,
0.8899198174476624,
-0.006228231824934483,
-1.7686896324157715,
-2.0154659748077393,
1.3934531211853027,
1.2351808547973633,
2.387817621231079,
0.5864849090576172,
0.38327863812446594,
-0.8957093954086304,
-0.7262693047523499,
0.2641354501247406,
-1.0544403791427612,
-0.7972173094749451,
0.1220705434679985,
2.3709895610809326,
1.8162486553192139,
-0.5047695636749268,
-0.1705578714609146,
-1.066436767578125,
1.1932001113891602,
-0.1279928833246231,
0.1643378734588623,
2.0223681926727295,
-0.2567279040813446,
-0.9961990714073181,
1.1752530336380005,
-2.3002429008483887,
0.1202607974410057,
2.0415046215057373,
0.2315049171447754,
0.08317264169454575,
-1.526978611946106,
-0.6858512163162231,
-0.26366329193115234,
-0.28111639618873596,
-1.2288645505905151,
0.6430051326751709,
-0.27362382411956787,
-0.8358167409896851,
-1.527366280555725,
0.17494873702526093,
-1.043386697769165,
-1.6568925380706787,
0.3277603089809418,
1.8277913331985474,
1.9279943704605103,
-0.839447021484375,
1.4599639177322388,
-0.24886955320835114,
0.12707768380641937,
1.2843518257141113,
1.1754035949707031,
3.1048076152801514,
1.984988808631897,
-1.2387112379074097,
0.758680522441864,
-0.05681196227669716,
-0.4478560984134674,
1.2071651220321655,
-1.0949667692184448,
1.1771554946899414,
-0.2771839201450348,
-1.1940405368804932,
-1.3830653429031372,
0.9127662777900696,
0.48805204033851624,
-0.004795194137841463,
-0.5252143740653992,
1.3211301565170288,
0.06367045640945435,
1.3133047819137573,
0.5945845246315002,
-0.3113350570201874,
0.6616654992103577,
-0.3371700048446655,
-0.39851459860801697,
1.5679057836532593,
0.2343468964099884,
-1.506264090538025,
-2.3098106384277344,
-0.1584755778312683,
-0.8776030540466309,
-0.141935333609581,
-0.6121704578399658,
-1.0059560537338257,
1.6687647104263306,
0.5076528191566467,
-1.2734884023666382,
-0.2698584794998169,
-0.22399944067001343,
-0.5932309031486511,
2.729285717010498,
-1.3523389101028442,
-0.27228760719299316,
-1.0398200750350952,
-0.46491897106170654,
1.7016874551773071,
-1.2079998254776,
-0.17416784167289734,
-1.003222942352295,
-0.6815254092216492,
-1.2753006219863892,
-0.5399901866912842,
-0.04352960363030434,
-0.9495022296905518,
0.8050671815872192,
0.027263354510068893,
-1.217827320098877,
-0.19183216989040375,
-0.876480221748352,
0.8799335360527039,
-0.04847452789545059,
0.31926384568214417,
1.943738341331482,
0.44029855728149414,
-0.4003472626209259,
0.7633466124534607,
1.1386646032333374,
0.5679346323013306,
-0.7324891090393066,
0.3147358298301697,
-0.6166514158248901,
0.28871774673461914,
-1.4015190601348877,
0.31169769167900085,
-2.9324405193328857,
0.6401829719543457,
-0.12350812554359436,
-0.019256170839071274,
-0.022904694080352783,
-1.2703468799591064,
1.1348267793655396,
2.5457448959350586,
-1.210647702217102,
0.4773200452327728,
0.3103848099708557,
1.2407550811767578,
-1.4781972169876099,
0.36400094628334045,
-0.3920309543609619,
2.1004066467285156,
0.10618222504854202,
1.200978398323059,
-0.472145676612854,
-2.1388933658599854,
0.5889842510223389,
-1.3519384860992432,
-1.083006739616394,
0.7329398393630981,
-0.816856861114502,
-0.05472792685031891,
-1.3324851989746094,
-0.1278257817029953,
-0.8518792390823364,
-1.3460566997528076,
0.7689521908760071,
0.12580502033233643,
0.3961373567581177,
-0.6107972860336304,
0.40561944246292114,
-2.0753254890441895,
-1.3632532358169556,
-0.24033120274543762,
-0.9250577688217163,
0.29068467020988464,
-0.25080299377441406,
0.6825153231620789,
-0.2740636169910431,
0.07924061268568039,
0.3112565875053406,
1.3606810569763184,
3.3449525833129883,
0.22448484599590302,
0.3827231228351593,
-0.09058981388807297,
-0.9305583238601685,
1.5667957067489624,
0.9718126058578491,
-0.06728024780750275,
-0.5565518736839294,
-1.0037212371826172,
1.352141261100769,
2.0155272483825684,
1.1190593242645264,
0.07276040315628052,
-0.9384617805480957,
-0.7334563732147217,
-0.013959663920104504,
0.16582363843917847,
0.5204629302024841,
0.827853798866272,
0.015673097223043442,
0.11556615680456161,
1.4335778951644897,
1.1854727268218994,
-0.43653160333633423,
0.46796324849128723,
-0.9657143950462341,
-0.3458540141582489,
0.3847348093986511,
0.38972553610801697,
0.09284117817878723,
0.36511585116386414,
-1.094123363494873,
-0.3208663761615753,
-0.22946372628211975,
-0.9336752891540527,
-0.781490683555603,
-0.45481762290000916,
-0.36893975734710693,
1.632236361503601,
0.08278705924749374,
-0.43863898515701294,
-0.01879723370075226,
-0.7237676978111267,
-0.0865846648812294,
-1.010101318359375,
0.29242122173309326,
-0.15852263569831848,
0.019514895975589752,
0.01045470405369997,
1.8210091590881348,
-1.0549862384796143,
-2.263019323348999,
0.2869677245616913,
0.24961358308792114,
-0.43152230978012085,
0.1311020851135254,
1.617278814315796,
0.6226690411567688,
1.4007724523544312,
1.274766445159912,
1.0439801216125488,
-0.7342867851257324,
-1.4304916858673096,
0.7052982449531555,
1.0457725524902344,
-1.3485413789749146,
0.8079925775527954,
-0.031935930252075195,
-0.4749956429004669,
0.6633056402206421,
1.308924913406372,
0.5018574595451355,
-1.949802279472351,
0.6530539989471436,
-0.817848801612854,
0.7496019005775452,
0.7286314368247986,
0.816413938999176,
0.27956029772758484,
0.7457107305526733,
-1.4065641164779663,
-1.1281663179397583,
-0.7175042629241943,
-0.5181159377098083,
1.9001739025115967,
-0.24733813107013702,
0.558684229850769,
-0.1340739130973816,
-1.409831166267395,
-0.10102410614490509,
0.6495588421821594,
0.36091485619544983,
-0.46314921975135803,
0.7531347274780273,
-0.5870535969734192,
-1.0317100286483765,
-1.368274450302124,
-0.4878159463405609,
-0.9334868788719177,
-0.9724118709564209,
0.9556434750556946,
0.785670816898346,
0.3634341359138489,
1.919478178024292,
0.6279972791671753,
0.19932690262794495,
-2.6341006755828857,
0.9029070138931274,
0.3317536413669586,
0.060156457126140594,
0.8024516701698303,
0.3209238052368164,
1.03858482837677,
0.026524875313043594,
0.5244556665420532,
-2.3277056217193604,
2.275038957595825,
-0.19031429290771484,
0.5887760519981384,
0.03276098519563675,
-0.08167453110218048,
1.1436948776245117,
0.46245139837265015,
0.5942801237106323,
-1.1351879835128784,
0.7130871415138245,
-0.6572182774543762,
1.170518398284912,
0.9275265336036682,
-0.7635746598243713,
0.03853597491979599,
1.2835545539855957,
0.5413082838058472,
-0.4992750883102417,
-0.912643551826477,
-0.8222357034683228,
0.9827042818069458,
1.7103841304779053,
0.06086520850658417,
0.03534020856022835,
0.912299394607544,
0.4618772566318512,
-1.2903183698654175,
-0.06248197332024574,
-0.6965422034263611,
-0.6547260880470276,
1.690772294998169,
2.0092933177948,
-0.10267564654350281,
-0.17151299118995667,
-0.8441076278686523,
-1.1717087030410767,
0.7308157682418823,
-0.09665726125240326,
0.03615470603108406,
0.8070147633552551,
-0.630287766456604,
1.141005516052246,
0.685766875743866,
0.941965639591217,
0.0985172912478447,
0.307381808757782,
0.3801693320274353,
-0.30743250250816345,
-1.2978179454803467,
-0.3553454577922821,
-1.1683896780014038,
-2.529240131378174,
0.39651432633399963,
-0.3281169533729553,
-1.3466607332229614,
0.08367632329463959,
-1.1963222026824951,
0.9372714757919312,
-0.5827416777610779,
-1.0813056230545044,
-1.4527086019515991,
0.2293635755777359,
-0.21426500380039215,
0.8268689513206482,
-1.560420036315918,
-0.04373113065958023,
1.2365802526474,
0.9480686187744141,
-0.6463960409164429,
0.9914357662200928,
0.21173565089702606,
1.050797939300537,
0.8570973873138428,
-0.2859039306640625,
0.49943673610687256,
0.15681375563144684,
-1.3274601697921753,
0.48978304862976074,
1.1996818780899048,
0.09968560189008713,
1.4025890827178955,
-0.5430207848548889,
0.02909225970506668,
0.5382542610168457,
-0.42790186405181885,
-0.4774245023727417,
-0.5465259552001953,
0.7475637197494507,
0.15541589260101318,
-1.0410817861557007,
-0.027728624641895294,
-0.1248321682214737,
-0.09983889013528824,
0.2556222379207611,
-1.5619467496871948,
-0.22689227759838104,
-0.30870112776756287,
-0.650152325630188,
-1.326430082321167,
0.01945452019572258,
1.3388882875442505,
-0.7527584433555603,
-0.23900502920150757,
0.5963296294212341,
0.3167142868041992,
0.5858665108680725,
0.5933274626731873,
-0.6823329329490662,
-0.3608396053314209,
-0.2939486801624298,
-0.33803728222846985,
0.41608622670173645,
1.2279952764511108,
-0.10507074743509293,
-1.0729389190673828,
0.7487833499908447,
-0.42952555418014526,
0.08609703183174133,
2.003251075744629,
0.06167328357696533,
-0.9164317846298218,
0.2893140912055969,
-0.6648914217948914,
1.9755003452301025,
1.576751470565796,
1.3371022939682007,
-0.07471751421689987,
-0.9000694155693054,
0.5471934080123901,
-0.08347290754318237,
-0.3454201817512512,
0.8765799403190613,
0.44126126170158386,
-0.19083303213119507,
-1.352429747581482,
0.4941673278808594,
1.3208273649215698,
-0.9064984917640686,
-0.9794453382492065,
0.15487302839756012,
-0.9437415599822998,
1.0596928596496582,
0.7475648522377014,
0.4078139662742615,
0.2493395209312439,
1.5340498685836792,
0.721846342086792,
-0.5834742188453674,
0.40171951055526733,
0.35136038064956665,
-0.0033216546289622784,
-2.0540618896484375,
-1.0189666748046875,
0.3413492441177368,
-0.39103296399116516,
-1.5813629627227783,
1.3096675872802734,
-1.204140305519104,
-0.9268484115600586,
0.48865532875061035,
0.15877191722393036,
1.3680437803268433,
0.2127489149570465,
1.5587091445922852,
2.003411293029785,
0.9205292463302612,
0.26642701029777527,
1.3392976522445679,
-0.17944243550300598,
-0.49801281094551086,
1.8119113445281982,
-0.36191388964653015,
0.5405959486961365,
1.062173843383789,
-0.47164982557296753,
-1.0782315731048584,
-0.8172347545623779,
-1.2123510837554932,
-0.6385165452957153,
1.1300060749053955,
0.28159910440444946,
-1.209641456604004,
0.17685970664024353,
1.4647091627120972,
0.12778957188129425,
-0.31858935952186584,
0.5844804644584656,
0.44231468439102173,
-0.783020555973053,
0.0321224108338356,
-0.9574730396270752,
0.5871813893318176,
-0.1752665489912033,
-0.31927695870399475,
0.3069094717502594,
0.481376051902771,
1.1754869222640991,
0.06685962527990341,
0.1730007380247116,
1.216274619102478,
-1.3723093271255493,
1.4977394342422485,
-0.5323414206504822,
0.26971715688705444,
-2.452880382537842,
1.4282245635986328,
-0.7522009015083313,
1.75885009765625,
-2.6839804649353027,
0.3830677270889282,
-0.5647567510604858,
-0.42842698097229004,
0.31688061356544495,
-0.3681933879852295,
0.14193961024284363,
-0.18752071261405945,
-1.1009995937347412,
-0.059867069125175476,
-0.7647027969360352,
0.5774648189544678,
1.2108253240585327,
1.3399863243103027,
-1.0351760387420654,
-0.24362312257289886,
-1.8189728260040283,
-0.13867345452308655,
-0.6995185613632202,
0.28488534688949585,
-2.077242851257324,
-0.16898199915885925,
-1.9246374368667603,
-2.3861899375915527,
-1.402916669845581,
-0.7935336232185364,
1.1114542484283447,
0.21500040590763092,
-0.9473341107368469,
1.0797139406204224,
-0.32574453949928284,
-1.7476701736450195,
1.0759536027908325,
-2.1859850883483887
] |
https://github.com/huggingface/datasets/issues/4671 | Dataset Viewer issue for wmt16 | Indeed, the above mentioned PR fixed the loading script (it was not working before).
I'm forcing the refresh of the Viewer. | ### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status code: 400
Exception: NotImplementedError
Message: This is a abstract method
```
Thanks!
### Owner
No | 639 | 21 | Dataset Viewer issue for wmt16
### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status code: 400
Exception: NotImplementedError
Message: This is a abstract method
```
Thanks!
### Owner
No
Indeed, the above mentioned PR fixed the loading script (it was not working before).
I'm forcing the refresh of the Viewer. | [
-1.1924231052398682,
-0.9007379412651062,
-0.8548924326896667,
1.4481337070465088,
-0.15620623528957367,
-1.2872697114944458,
0.18102040886878967,
-0.9715338945388794,
1.6754074096679688,
-0.7549296021461487,
0.2901649475097656,
-1.742089033126831,
0.0005299272015690804,
-0.5616135597229004,
-0.7247719764709473,
-0.8478448390960693,
-0.31019914150238037,
-0.7655208110809326,
1.0205883979797363,
2.588550329208374,
1.2153958082199097,
-1.3166342973709106,
2.7499098777770996,
0.6615959405899048,
-0.2630143165588379,
-1.0353597402572632,
0.5014333724975586,
0.0293805543333292,
-1.251181960105896,
-0.5417990684509277,
-0.9629573225975037,
-0.05781874060630798,
-0.4810432195663452,
-0.5540786385536194,
-0.044786639511585236,
0.4578675627708435,
-0.18240085244178772,
-0.34629854559898376,
-0.4092085361480713,
-0.8497784733772278,
0.4093840420246124,
-0.3681357800960541,
0.8778734803199768,
-0.4214751720428467,
1.8598713874816895,
-0.5184691548347473,
0.3607495427131653,
0.6287616491317749,
1.4485422372817993,
0.11635957658290863,
-0.08383677899837494,
0.27979904413223267,
0.3517545461654663,
-0.022452251985669136,
0.42356252670288086,
1.1590297222137451,
0.6052340269088745,
0.5811191201210022,
0.6224607825279236,
-2.2074437141418457,
1.3205581903457642,
-0.9626530408859253,
0.3208811581134796,
1.3937406539916992,
-1.0949010848999023,
0.3203611671924591,
-1.7562416791915894,
-0.028165552765130997,
0.48849374055862427,
-2.2462363243103027,
0.27516210079193115,
-1.2389194965362549,
-0.5572839379310608,
0.9975912570953369,
0.3763720393180847,
-1.3277153968811035,
-0.046063557267189026,
-0.4692592918872833,
1.0790486335754395,
0.5141750574111938,
1.191246509552002,
-1.6754685640335083,
0.014840755611658096,
-0.3323369324207306,
-0.02570309117436409,
-1.3869714736938477,
-1.5007925033569336,
0.4240730106830597,
0.7324345707893372,
0.7488430142402649,
-0.04503723978996277,
1.0001364946365356,
-0.957010805606842,
0.7272458672523499,
-0.9383744597434998,
-1.6778252124786377,
-1.3418488502502441,
-2.343214988708496,
-2.253533124923706,
0.8032101392745972,
-0.4699467420578003,
-0.5775629281997681,
2.0168025493621826,
-0.9090632796287537,
-1.868646502494812,
1.1552215814590454,
0.30582234263420105,
-0.0176498144865036,
2.372530460357666,
0.31353989243507385,
-0.7413084506988525,
0.4064835011959076,
-0.7828832864761353,
0.7997859120368958,
-0.5443625450134277,
1.4315218925476074,
0.54884272813797,
-0.9787295460700989,
1.6072918176651,
-0.34420669078826904,
0.6068506240844727,
-0.8379413485527039,
-0.4941941201686859,
-0.822829008102417,
0.32167571783065796,
1.8923938274383545,
-0.41209274530410767,
1.54664146900177,
-0.3961520195007324,
-1.5404146909713745,
-1.5654830932617188,
0.8609069585800171,
0.4655299782752991,
-0.7782962918281555,
0.12786561250686646,
-0.37844234704971313,
0.05867999792098999,
-0.014995841309428215,
1.04984450340271,
1.1760956048965454,
0.6293269395828247,
-0.27285104990005493,
-0.9324377179145813,
0.37195342779159546,
0.020011723041534424,
-0.6769374012947083,
-1.7557218074798584,
-0.32855671644210815,
0.03396253287792206,
0.6387923955917358,
-1.239995002746582,
1.6835013628005981,
0.7655532956123352,
1.9785618782043457,
0.9855234026908875,
-0.27272021770477295,
1.5178567171096802,
-0.002139181364327669,
1.8524997234344482,
-0.4924032688140869,
0.6403937339782715,
-0.2938750088214874,
-1.1207354068756104,
0.814182460308075,
-0.4053383767604828,
-2.0064382553100586,
-0.785563051700592,
-0.9392478466033936,
-0.11535376310348511,
-0.8204262852668762,
0.9904733896255493,
-0.29088494181632996,
-1.3558101654052734,
0.2125149965286255,
-0.7929835915565491,
0.14516469836235046,
-1.351297378540039,
0.1982562243938446,
0.7561394572257996,
-0.5546414852142334,
0.12257148325443268,
-0.24223175644874573,
-1.305338740348816,
-0.4125042259693146,
0.35044389963150024,
2.052849292755127,
-0.740938127040863,
0.9960837364196777,
1.0509487390518188,
-0.774209201335907,
0.028992755338549614,
0.36192917823791504,
-0.18510252237319946,
0.9584829211235046,
-1.107683777809143,
-0.37030091881752014,
1.1793824434280396,
-0.127064049243927,
-0.7584829926490784,
1.4864811897277832,
0.7820810079574585,
-0.9821053743362427,
-0.17689408361911774,
-0.07973287999629974,
-0.8083878755569458,
0.029790936037898064,
-1.6896655559539795,
-0.17667272686958313,
0.23571093380451202,
-1.416333794593811,
-0.5685981512069702,
-0.20970772206783295,
1.3070926666259766,
-0.09331072121858597,
1.4489672183990479,
-0.2636924088001251,
-0.2572326362133026,
-0.35465720295906067,
-0.4325183928012848,
0.13851767778396606,
-0.2684836983680725,
-0.6726574897766113,
0.24298298358917236,
-0.7334600687026978,
0.2964700758457184,
1.4159246683120728,
0.36825525760650635,
0.11769430339336395,
0.6466763615608215,
1.0542300939559937,
0.29476964473724365,
-0.16482195258140564,
-0.8569120764732361,
-1.610709309577942,
2.0276637077331543,
-1.3791764974594116,
1.9752990007400513,
0.8407883644104004,
-0.04993946850299835,
-1.7756245136260986,
-1.980020523071289,
1.3784602880477905,
1.2507524490356445,
2.309872627258301,
0.6477241516113281,
0.39382684230804443,
-0.8625013828277588,
-0.7493919730186462,
0.2602591812610626,
-1.077113151550293,
-0.7997429370880127,
0.11104360967874527,
2.3412516117095947,
1.8088374137878418,
-0.5040505528450012,
-0.14129291474819183,
-1.0414173603057861,
1.1861952543258667,
-0.1572905033826828,
0.19455204904079437,
1.9550577402114868,
-0.24238453805446625,
-0.9929561614990234,
1.1403945684432983,
-2.274836540222168,
0.13971002399921417,
2.048497438430786,
0.2767869532108307,
0.09939178079366684,
-1.5216717720031738,
-0.6924368739128113,
-0.2455652356147766,
-0.2717097997665405,
-1.2450215816497803,
0.6117852330207825,
-0.3372427523136139,
-0.8793436288833618,
-1.4956421852111816,
0.17910075187683105,
-0.978752613067627,
-1.6317960023880005,
0.3114708662033081,
1.8806519508361816,
1.9259625673294067,
-0.7923696041107178,
1.4688483476638794,
-0.20782235264778137,
0.1315441131591797,
1.2932344675064087,
1.1409671306610107,
3.1139466762542725,
1.9890931844711304,
-1.2070454359054565,
0.709098756313324,
-0.04687412083148956,
-0.4300967752933502,
1.209459900856018,
-1.0907717943191528,
1.1706715822219849,
-0.22616612911224365,
-1.2222181558609009,
-1.3516299724578857,
0.8935041427612305,
0.4800528883934021,
-0.03376153111457825,
-0.4859156310558319,
1.3202911615371704,
0.02668883092701435,
1.2667919397354126,
0.5983931422233582,
-0.32928982377052307,
0.6518831849098206,
-0.33685049414634705,
-0.4060189723968506,
1.5696649551391602,
0.1836230456829071,
-1.5286400318145752,
-2.2802505493164062,
-0.15434429049491882,
-0.8646721839904785,
-0.009783205576241016,
-0.6338930726051331,
-0.9846807718276978,
1.7370238304138184,
0.49827590584754944,
-1.2487119436264038,
-0.3406108319759369,
-0.2944500148296356,
-0.6041697263717651,
2.7370693683624268,
-1.321177363395691,
-0.3335433602333069,
-1.053308367729187,
-0.45842528343200684,
1.662253499031067,
-1.2587498426437378,
-0.17437128722667694,
-0.9919790029525757,
-0.666290819644928,
-1.2526416778564453,
-0.5424745678901672,
-0.04739048331975937,
-0.9305545687675476,
0.8465205430984497,
0.04252459108829498,
-1.1604509353637695,
-0.1832571178674698,
-0.8839919567108154,
0.8811661601066589,
-0.06672743707895279,
0.27210476994514465,
1.9618386030197144,
0.4559393525123596,
-0.40961578488349915,
0.7578989863395691,
1.1207690238952637,
0.5475378036499023,
-0.6783495545387268,
0.31929394602775574,
-0.5661231875419617,
0.2963983118534088,
-1.4051454067230225,
0.3421340882778168,
-2.9634690284729004,
0.6682640314102173,
-0.10577856004238129,
-0.011148241348564625,
-0.04204452782869339,
-1.2958974838256836,
1.1134766340255737,
2.540574789047241,
-1.2225886583328247,
0.4471012055873871,
0.2941136658191681,
1.2614878416061401,
-1.5010255575180054,
0.37558266520500183,
-0.3906455636024475,
2.1351003646850586,
0.1308562010526657,
1.1946945190429688,
-0.4642031788825989,
-2.1561014652252197,
0.6130907535552979,
-1.304557204246521,
-1.0716840028762817,
0.7322891354560852,
-0.7942091822624207,
-0.015888866037130356,
-1.3096550703048706,
-0.14679643511772156,
-0.8105915188789368,
-1.2567317485809326,
0.8354771733283997,
0.14623525738716125,
0.40873536467552185,
-0.6153145432472229,
0.39420947432518005,
-2.0411429405212402,
-1.3382900953292847,
-0.20248408615589142,
-0.9446232318878174,
0.2908257842063904,
-0.29488110542297363,
0.6378036141395569,
-0.26366159319877625,
0.09447870403528214,
0.2978772222995758,
1.364918828010559,
3.3712472915649414,
0.20821096003055573,
0.4014926254749298,
-0.08778312057256699,
-0.9406960010528564,
1.5279172658920288,
0.950788140296936,
-0.057286977767944336,
-0.5480185747146606,
-1.0025227069854736,
1.3410309553146362,
1.9749650955200195,
1.0775986909866333,
0.0949738398194313,
-0.9470150470733643,
-0.7326778769493103,
-0.048829831182956696,
0.1946755051612854,
0.5379258990287781,
0.8070949912071228,
0.017992794513702393,
0.08585076034069061,
1.4217541217803955,
1.1608480215072632,
-0.5042508244514465,
0.4749738276004791,
-0.9806026816368103,
-0.3455735445022583,
0.4300304353237152,
0.4060574173927307,
0.05628962069749832,
0.3492435812950134,
-1.0680283308029175,
-0.2935193181037903,
-0.22470277547836304,
-0.9608941078186035,
-0.7512449622154236,
-0.4237740933895111,
-0.28367388248443604,
1.6324167251586914,
0.10461536049842834,
-0.4310530722141266,
-0.055337175726890564,
-0.7615098357200623,
-0.08359504491090775,
-1.0531933307647705,
0.2855437695980072,
-0.17599157989025116,
-0.023168250918388367,
-0.0016759796999394894,
1.7841302156448364,
-1.0354580879211426,
-2.2493820190429688,
0.29117247462272644,
0.248684823513031,
-0.444482684135437,
0.15772151947021484,
1.5894511938095093,
0.5672070384025574,
1.3727284669876099,
1.302591323852539,
1.0037463903427124,
-0.7205712795257568,
-1.3517909049987793,
0.6739593744277954,
1.0090529918670654,
-1.357474446296692,
0.7948476672172546,
-0.009153217077255249,
-0.5159620046615601,
0.7197238802909851,
1.3164951801300049,
0.4760279953479767,
-1.9188686609268188,
0.7146779894828796,
-0.819844126701355,
0.785820722579956,
0.7194364666938782,
0.8029900193214417,
0.31259259581565857,
0.8092334866523743,
-1.387317180633545,
-1.2058049440383911,
-0.7380529046058655,
-0.530687689781189,
1.8698456287384033,
-0.20004738867282867,
0.5369827151298523,
-0.12353131920099258,
-1.3700435161590576,
-0.10535507649183273,
0.6140927672386169,
0.3514292538166046,
-0.39693987369537354,
0.7419896721839905,
-0.6702113747596741,
-1.0316358804702759,
-1.4696358442306519,
-0.526013970375061,
-0.8996444344520569,
-1.0042171478271484,
0.9695863127708435,
0.7945638298988342,
0.31350016593933105,
1.915950894355774,
0.6306148767471313,
0.18588972091674805,
-2.5951576232910156,
0.8881798386573792,
0.32957905530929565,
0.06138138473033905,
0.8177042603492737,
0.3174421489238739,
1.0454076528549194,
0.04623306542634964,
0.4730182886123657,
-2.307009220123291,
2.2386739253997803,
-0.23840631544589996,
0.6270236372947693,
0.025110675022006035,
-0.1253412365913391,
1.1545040607452393,
0.5171158909797668,
0.6244751214981079,
-1.1531413793563843,
0.749078094959259,
-0.6719695329666138,
1.1898117065429688,
0.9552346467971802,
-0.7810716032981873,
0.030839236453175545,
1.2863632440567017,
0.5354090332984924,
-0.5525080561637878,
-0.9207896590232849,
-0.8330803513526917,
0.9717186689376831,
1.7179372310638428,
0.1304815262556076,
0.014528213068842888,
0.8681589961051941,
0.49790331721305847,
-1.2671916484832764,
-0.01760544255375862,
-0.706721305847168,
-0.6846571564674377,
1.69461989402771,
1.9971107244491577,
-0.14566342532634735,
-0.1747799962759018,
-0.8051027655601501,
-1.1833791732788086,
0.6952309012413025,
-0.09947732836008072,
-0.013205810450017452,
0.7846784591674805,
-0.6704403758049011,
1.12654447555542,
0.6858716607093811,
0.9060395359992981,
0.10623495280742645,
0.346606582403183,
0.4009043872356415,
-0.2794322073459625,
-1.2988628149032593,
-0.33890819549560547,
-1.1685469150543213,
-2.5414156913757324,
0.36406317353248596,
-0.31716635823249817,
-1.339942455291748,
0.12641429901123047,
-1.1433665752410889,
0.9590345621109009,
-0.5637488961219788,
-1.0712212324142456,
-1.4296754598617554,
0.20054744184017181,
-0.1853935271501541,
0.7817707657814026,
-1.5452203750610352,
-0.0562666654586792,
1.2834175825119019,
0.9919143915176392,
-0.5970172882080078,
0.9656243920326233,
0.23509708046913147,
1.1020647287368774,
0.857395350933075,
-0.34568125009536743,
0.4545527398586273,
0.09948282688856125,
-1.321535348892212,
0.5240240693092346,
1.168041706085205,
0.12400795519351959,
1.4523006677627563,
-0.49515020847320557,
0.020121725276112556,
0.5188248157501221,
-0.5108060836791992,
-0.5730270147323608,
-0.556596577167511,
0.7489884495735168,
0.10559552162885666,
-1.0014292001724243,
0.004068723879754543,
-0.10847382247447968,
-0.1348123699426651,
0.29158973693847656,
-1.6106197834014893,
-0.19129791855812073,
-0.3151201605796814,
-0.6429005265235901,
-1.336043357849121,
-0.0031591500155627728,
1.3556289672851562,
-0.7825779914855957,
-0.26469355821609497,
0.5846649408340454,
0.3653847873210907,
0.5354991555213928,
0.5811357498168945,
-0.673223614692688,
-0.37858057022094727,
-0.29271399974823,
-0.35875827074050903,
0.41266635060310364,
1.204232096672058,
-0.14499732851982117,
-1.0585451126098633,
0.7110356092453003,
-0.39180099964141846,
0.04669131338596344,
1.9542726278305054,
0.10581310093402863,
-0.9055883884429932,
0.2558424174785614,
-0.6860806941986084,
2.0152368545532227,
1.5676093101501465,
1.3706213235855103,
-0.11819087713956833,
-0.909181535243988,
0.5647863149642944,
-0.10627224296331406,
-0.37508636713027954,
0.8436838388442993,
0.4697383642196655,
-0.18351204693317413,
-1.3146418333053589,
0.51059889793396,
1.3160805702209473,
-0.9031387567520142,
-0.9742609262466431,
0.10831177979707718,
-0.900276780128479,
1.0257377624511719,
0.7776797413825989,
0.40509822964668274,
0.30456677079200745,
1.5595788955688477,
0.7075052261352539,
-0.5993990302085876,
0.38540685176849365,
0.3839517831802368,
-0.006348654627799988,
-2.082447052001953,
-1.008896827697754,
0.35830843448638916,
-0.39408132433891296,
-1.566624641418457,
1.3190571069717407,
-1.149688720703125,
-0.9183261394500732,
0.458524227142334,
0.17410653829574585,
1.3584809303283691,
0.21052196621894836,
1.6046288013458252,
1.999252438545227,
0.8966851234436035,
0.2774309515953064,
1.3154948949813843,
-0.16800066828727722,
-0.4975265562534332,
1.8304897546768188,
-0.326904833316803,
0.4980120360851288,
1.0863529443740845,
-0.5019246935844421,
-1.083690881729126,
-0.7914445996284485,
-1.227701187133789,
-0.6405858993530273,
1.1211298704147339,
0.2903114855289459,
-1.2269045114517212,
0.1622316986322403,
1.4668607711791992,
0.20310287177562714,
-0.31111225485801697,
0.5749102830886841,
0.484402596950531,
-0.7720528841018677,
0.0769672617316246,
-0.9854097366333008,
0.5711352229118347,
-0.1861640065908432,
-0.3932556211948395,
0.30696699023246765,
0.46877914667129517,
1.2602475881576538,
0.04585985839366913,
0.17329944670200348,
1.2543604373931885,
-1.377739429473877,
1.4473963975906372,
-0.5683304667472839,
0.27134522795677185,
-2.449629306793213,
1.4221160411834717,
-0.8010191917419434,
1.783475637435913,
-2.655914068222046,
0.4242089092731476,
-0.588363766670227,
-0.40884414315223694,
0.33275264501571655,
-0.4074029326438904,
0.1108243465423584,
-0.15926222503185272,
-1.1261729001998901,
-0.05972157418727875,
-0.7533172965049744,
0.5833492875099182,
1.2882953882217407,
1.3429099321365356,
-1.0196303129196167,
-0.21024179458618164,
-1.828163743019104,
-0.06784142553806305,
-0.6546965837478638,
0.3102515637874603,
-2.102965831756592,
-0.23104380071163177,
-1.9308531284332275,
-2.355221748352051,
-1.3394867181777954,
-0.7904766201972961,
1.0930942296981812,
0.22265687584877014,
-0.9317412376403809,
1.110795021057129,
-0.3260481059551239,
-1.7137987613677979,
1.0438534021377563,
-2.140432357788086
] |
https://github.com/huggingface/datasets/issues/4671 | Dataset Viewer issue for wmt16 | Please note that the above mentioned PR also made an enhancement in the `datasets` library, required by this loading script. This enhancement will only be available to the Viewer once we make our next release. | ### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status code: 400
Exception: NotImplementedError
Message: This is a abstract method
```
Thanks!
### Owner
No | 639 | 35 | Dataset Viewer issue for wmt16
### Link
https://huggingface.co/datasets/wmt16
### Description
[Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error.
```
Status code: 400
Exception: NotImplementedError
Message: This is a abstract method
```
Thanks!
### Owner
No
Please note that the above mentioned PR also made an enhancement in the `datasets` library, required by this loading script. This enhancement will only be available to the Viewer once we make our next release. | [
-1.1257723569869995,
-0.9031270146369934,
-0.8286269307136536,
1.440562129020691,
-0.16198097169399261,
-1.2729878425598145,
0.15092620253562927,
-1.045757532119751,
1.6244187355041504,
-0.7536302208900452,
0.31378868222236633,
-1.766561508178711,
-0.007763254456222057,
-0.5910027027130127,
-0.7313598990440369,
-0.8446782231330872,
-0.31529128551483154,
-0.7312226295471191,
0.97340327501297,
2.588951587677002,
1.2309277057647705,
-1.3140791654586792,
2.7468514442443848,
0.7011833786964417,
-0.28480544686317444,
-1.0013010501861572,
0.4863090515136719,
0.03362642601132393,
-1.2732884883880615,
-0.5112393498420715,
-0.9277806878089905,
-0.021861031651496887,
-0.49218320846557617,
-0.5729846358299255,
-0.006709991488605738,
0.42663678526878357,
-0.20724210143089294,
-0.3505996763706207,
-0.45986780524253845,
-0.8552981615066528,
0.40635570883750916,
-0.3916078507900238,
0.923040509223938,
-0.40536975860595703,
1.8838775157928467,
-0.5767418742179871,
0.3363130986690521,
0.6493565440177917,
1.3704839944839478,
0.10403601080179214,
-0.05395279824733734,
0.3037538528442383,
0.3416455388069153,
-0.020505163818597794,
0.4588351845741272,
1.1617432832717896,
0.6139174103736877,
0.5696200728416443,
0.6408478021621704,
-2.194159984588623,
1.3136255741119385,
-0.9800004363059998,
0.2667587995529175,
1.3715463876724243,
-1.0581897497177124,
0.37004485726356506,
-1.752794623374939,
-0.04001377150416374,
0.5048006772994995,
-2.2475578784942627,
0.27495670318603516,
-1.2487947940826416,
-0.5704305768013,
0.9619700312614441,
0.3507322072982788,
-1.3277515172958374,
0.005888717249035835,
-0.4468039870262146,
1.0382323265075684,
0.5246211886405945,
1.202001929283142,
-1.7031266689300537,
0.003245077095925808,
-0.32372432947158813,
-0.0009958231821656227,
-1.4204219579696655,
-1.4509562253952026,
0.4547749161720276,
0.7103890180587769,
0.6893996000289917,
-0.03669831529259682,
0.9950590133666992,
-0.9785536527633667,
0.7278451323509216,
-0.9423151612281799,
-1.673121690750122,
-1.349066972732544,
-2.3550009727478027,
-2.2380311489105225,
0.826897919178009,
-0.4731609523296356,
-0.6101774573326111,
2.006220579147339,
-0.9114447236061096,
-1.8781555891036987,
1.1854526996612549,
0.29968971014022827,
-0.02467968314886093,
2.383314847946167,
0.32043272256851196,
-0.6935843229293823,
0.37204816937446594,
-0.768791675567627,
0.8123157620429993,
-0.5188649296760559,
1.4079502820968628,
0.5103774666786194,
-1.0200613737106323,
1.5784958600997925,
-0.39888593554496765,
0.6099092960357666,
-0.8157131671905518,
-0.5173966288566589,
-0.800469160079956,
0.31446030735969543,
1.8852193355560303,
-0.3808923363685608,
1.5591479539871216,
-0.4032869338989258,
-1.502907633781433,
-1.5430296659469604,
0.86949223279953,
0.5062705874443054,
-0.7456280589103699,
0.09926111996173859,
-0.37438011169433594,
0.09309744089841843,
-0.07395610958337784,
1.035667061805725,
1.1637041568756104,
0.5768300890922546,
-0.268487811088562,
-0.9044541120529175,
0.3462979793548584,
-0.013253509998321533,
-0.7467620372772217,
-1.8056057691574097,
-0.2825864553451538,
0.08928221464157104,
0.5745154023170471,
-1.2770479917526245,
1.6848286390304565,
0.7909954786300659,
2.0210065841674805,
0.9925333261489868,
-0.2830455005168915,
1.5065780878067017,
-0.015416627749800682,
1.8203885555267334,
-0.4805552065372467,
0.6397976279258728,
-0.34050267934799194,
-1.1376368999481201,
0.8126365542411804,
-0.3852684497833252,
-2.014387845993042,
-0.7752774953842163,
-0.9445906281471252,
-0.15810272097587585,
-0.7966224551200867,
0.976645827293396,
-0.260148286819458,
-1.3607523441314697,
0.20259077847003937,
-0.7641719579696655,
0.11967875063419342,
-1.307907223701477,
0.206144779920578,
0.7391480207443237,
-0.591685950756073,
0.06672494113445282,
-0.2646321654319763,
-1.2683216333389282,
-0.41471272706985474,
0.36351099610328674,
1.9652761220932007,
-0.7474675178527832,
0.9649608731269836,
1.027348518371582,
-0.7507205009460449,
0.015871308743953705,
0.3390553891658783,
-0.2416381686925888,
0.8998342156410217,
-1.0655310153961182,
-0.37612560391426086,
1.2137454748153687,
-0.1331382393836975,
-0.7553271651268005,
1.5145330429077148,
0.7512808442115784,
-0.9703519940376282,
-0.1849314421415329,
-0.13664039969444275,
-0.8254956007003784,
0.03549138829112053,
-1.6956608295440674,
-0.1278671771287918,
0.1935381442308426,
-1.4292274713516235,
-0.556391179561615,
-0.21703825891017914,
1.32170569896698,
-0.1016329824924469,
1.45932137966156,
-0.2817937433719635,
-0.2448044717311859,
-0.368194043636322,
-0.4437154233455658,
0.12315374612808228,
-0.24481047689914703,
-0.6095395684242249,
0.2601756155490875,
-0.6835421919822693,
0.32654210925102234,
1.4164191484451294,
0.3406352996826172,
0.11807848513126373,
0.605057418346405,
1.023058295249939,
0.28268784284591675,
-0.09303728491067886,
-0.839996874332428,
-1.6181364059448242,
2.0086777210235596,
-1.4499238729476929,
1.9771912097930908,
0.8472865223884583,
-0.0298675037920475,
-1.779219150543213,
-1.976676344871521,
1.396316409111023,
1.2383769750595093,
2.305591583251953,
0.6035618782043457,
0.3763543963432312,
-0.8529216051101685,
-0.7157500386238098,
0.30332791805267334,
-1.03367018699646,
-0.7842910289764404,
0.17181386053562164,
2.321072816848755,
1.8104156255722046,
-0.5106438398361206,
-0.15294991433620453,
-1.0974555015563965,
1.2392929792404175,
-0.13328298926353455,
0.22805114090442657,
1.9866706132888794,
-0.2742612361907959,
-1.0130231380462646,
1.1679173707962036,
-2.2950682640075684,
0.1281304657459259,
2.001648187637329,
0.255981981754303,
0.10316577553749084,
-1.4991652965545654,
-0.6884105801582336,
-0.2823600471019745,
-0.25649121403694153,
-1.2128878831863403,
0.6212723851203918,
-0.2863670289516449,
-0.8391181826591492,
-1.4725801944732666,
0.15444976091384888,
-1.0347343683242798,
-1.670137643814087,
0.35764697194099426,
1.8876593112945557,
1.9138250350952148,
-0.8297537565231323,
1.496817708015442,
-0.22699563205242157,
0.10943350940942764,
1.3307490348815918,
1.1719846725463867,
3.110844612121582,
1.9602367877960205,
-1.268263578414917,
0.731539785861969,
-0.018181081861257553,
-0.4116171896457672,
1.2557514905929565,
-1.0837256908416748,
1.1752444505691528,
-0.2259744107723236,
-1.1948703527450562,
-1.3538023233413696,
0.8716994524002075,
0.46878403425216675,
-0.014695052057504654,
-0.5097187161445618,
1.2973666191101074,
0.07228680700063705,
1.3170052766799927,
0.5758451223373413,
-0.3447991907596588,
0.6435769200325012,
-0.36383509635925293,
-0.386143296957016,
1.5586450099945068,
0.2118353396654129,
-1.4928497076034546,
-2.2875893115997314,
-0.1326702982187271,
-0.8477535247802734,
-0.05248954892158508,
-0.6293056011199951,
-0.9849168658256531,
1.705358862876892,
0.4685903787612915,
-1.2995420694351196,
-0.28936880826950073,
-0.2917611598968506,
-0.5675798058509827,
2.6736934185028076,
-1.3590739965438843,
-0.3060411214828491,
-1.0429577827453613,
-0.47804537415504456,
1.6617989540100098,
-1.1870152950286865,
-0.1763676553964615,
-1.0070881843566895,
-0.6469626426696777,
-1.3105779886245728,
-0.5552200078964233,
-0.02681892365217209,
-0.9309924840927124,
0.8239611387252808,
0.0595136433839798,
-1.1658196449279785,
-0.23101374506950378,
-0.8707336783409119,
0.8987566232681274,
-0.08044176548719406,
0.3247656226158142,
1.9758890867233276,
0.4794432520866394,
-0.42527177929878235,
0.7063952088356018,
1.12940514087677,
0.5693478584289551,
-0.7141987085342407,
0.35291311144828796,
-0.5970789194107056,
0.3266303837299347,
-1.40114426612854,
0.31737250089645386,
-2.9345858097076416,
0.6315223574638367,
-0.1161598414182663,
-0.00064803846180439,
-0.04571252688765526,
-1.2782347202301025,
1.1159496307373047,
2.5590827465057373,
-1.210886001586914,
0.447627454996109,
0.31349390745162964,
1.2616987228393555,
-1.5537233352661133,
0.39079076051712036,
-0.37286075949668884,
2.1262309551239014,
0.11765584349632263,
1.1920385360717773,
-0.4842081665992737,
-2.2050325870513916,
0.5883836150169373,
-1.2693521976470947,
-1.1049388647079468,
0.7727173566818237,
-0.7928208708763123,
-0.028400298207998276,
-1.379721999168396,
-0.14801421761512756,
-0.8078985810279846,
-1.3059395551681519,
0.8142661452293396,
0.1940055936574936,
0.4181572198867798,
-0.6214150190353394,
0.3649725317955017,
-2.0475618839263916,
-1.3107640743255615,
-0.20034927129745483,
-0.9029942750930786,
0.35995689034461975,
-0.2527378797531128,
0.6786497831344604,
-0.2422369420528412,
0.11182603240013123,
0.33238089084625244,
1.3464945554733276,
3.416813373565674,
0.24175265431404114,
0.3722761571407318,
-0.1098402738571167,
-0.894119143486023,
1.5334466695785522,
0.9719312787055969,
-0.057028044015169144,
-0.5259636044502258,
-1.0220308303833008,
1.2930258512496948,
1.996918797492981,
1.0597962141036987,
0.11077194660902023,
-0.9003597497940063,
-0.7401412129402161,
-0.07199611514806747,
0.1653403788805008,
0.45954692363739014,
0.8000174760818481,
0.01758604869246483,
0.12423321604728699,
1.4174925088882446,
1.205835223197937,
-0.47222447395324707,
0.49447333812713623,
-0.9537134766578674,
-0.3190120458602905,
0.46579596400260925,
0.39901936054229736,
0.03031451255083084,
0.3453218638896942,
-1.049064040184021,
-0.3264075517654419,
-0.2577468156814575,
-0.9381012320518494,
-0.7277663946151733,
-0.40768948197364807,
-0.31422528624534607,
1.6085820198059082,
0.08864505589008331,
-0.41125357151031494,
-0.05449877679347992,
-0.7418426871299744,
-0.10196979343891144,
-0.9984824061393738,
0.2471485733985901,
-0.17472240328788757,
-0.020135771483182907,
0.026792466640472412,
1.7902823686599731,
-1.031775951385498,
-2.2250454425811768,
0.285220205783844,
0.267892450094223,
-0.430265337228775,
0.15741389989852905,
1.6217749118804932,
0.5514413714408875,
1.367208480834961,
1.311560869216919,
1.0228558778762817,
-0.7012437582015991,
-1.4144865274429321,
0.6800137162208557,
1.0305248498916626,
-1.3870503902435303,
0.7934339642524719,
0.037124671041965485,
-0.4977816641330719,
0.6852260231971741,
1.294386386871338,
0.46588972210884094,
-1.913156270980835,
0.6982592344284058,
-0.8134773969650269,
0.7292801141738892,
0.7628681659698486,
0.8060393929481506,
0.3226330280303955,
0.8253082633018494,
-1.3697412014007568,
-1.179451584815979,
-0.7525050044059753,
-0.5491783022880554,
1.9161503314971924,
-0.2022537887096405,
0.5024981498718262,
-0.10217611491680145,
-1.368524432182312,
-0.09191030263900757,
0.6212148070335388,
0.3457491099834442,
-0.41869714856147766,
0.760802686214447,
-0.6850805878639221,
-1.0286816358566284,
-1.4740185737609863,
-0.48642048239707947,
-0.9194827079772949,
-0.9929009079933167,
0.96425461769104,
0.8027269840240479,
0.30793702602386475,
1.9489457607269287,
0.6220306754112244,
0.21270751953125,
-2.588724136352539,
0.9062144160270691,
0.3311305344104767,
-0.004884432069957256,
0.8156203031539917,
0.32177236676216125,
1.0614999532699585,
0.055515117943286896,
0.5451802015304565,
-2.3420982360839844,
2.2994518280029297,
-0.23758012056350708,
0.6025379300117493,
0.03123338893055916,
-0.13310860097408295,
1.1602946519851685,
0.5045725703239441,
0.5889338850975037,
-1.1435481309890747,
0.7798928618431091,
-0.638868510723114,
1.1582125425338745,
0.9373500943183899,
-0.801052987575531,
0.019986793398857117,
1.3094757795333862,
0.5472208857536316,
-0.516629159450531,
-0.8414855003356934,
-0.8332393169403076,
0.9235669374465942,
1.7116127014160156,
0.08710210025310516,
0.027909208089113235,
0.8841228485107422,
0.526175856590271,
-1.2611351013183594,
-0.011622798629105091,
-0.7210588455200195,
-0.7365537881851196,
1.6988810300827026,
1.9973396062850952,
-0.1150757223367691,
-0.15612071752548218,
-0.8117976784706116,
-1.1348159313201904,
0.7387167811393738,
-0.08465497195720673,
0.007477478124201298,
0.7818501591682434,
-0.6546437740325928,
1.148025631904602,
0.7400050759315491,
0.865413248538971,
0.16648179292678833,
0.30528995394706726,
0.37257662415504456,
-0.30346235632896423,
-1.2467046976089478,
-0.3332749307155609,
-1.1590315103530884,
-2.5553503036499023,
0.44631636142730713,
-0.2802737057209015,
-1.3415710926055908,
0.05644390732049942,
-1.144431710243225,
0.964301347732544,
-0.5734491944313049,
-1.0941888093948364,
-1.4648926258087158,
0.22487704455852509,
-0.18541675806045532,
0.7858182787895203,
-1.5834213495254517,
-0.04651518911123276,
1.2618235349655151,
0.9502316117286682,
-0.6102238297462463,
0.9590155482292175,
0.22652897238731384,
1.0780943632125854,
0.8830288052558899,
-0.2959340810775757,
0.4708712697029114,
0.11224493384361267,
-1.3399324417114258,
0.49174439907073975,
1.1510272026062012,
0.1071786880493164,
1.4720433950424194,
-0.49707379937171936,
0.06532507389783859,
0.4875897169113159,
-0.46415582299232483,
-0.5038926601409912,
-0.5643905401229858,
0.7795495390892029,
0.12589411437511444,
-0.995204746723175,
-0.018495244905352592,
-0.11016885191202164,
-0.1423019915819168,
0.26794302463531494,
-1.5758566856384277,
-0.1895214170217514,
-0.3181753158569336,
-0.6275038123130798,
-1.3031672239303589,
-0.027372237294912338,
1.3819334506988525,
-0.7569029927253723,
-0.2550938129425049,
0.5905247330665588,
0.3178867995738983,
0.5385294556617737,
0.651865541934967,
-0.6948741674423218,
-0.407565176486969,
-0.3100704848766327,
-0.35224610567092896,
0.400416761636734,
1.2581957578659058,
-0.11801587790250778,
-1.0823577642440796,
0.7422108054161072,
-0.4058931767940521,
0.09971648454666138,
1.9849145412445068,
0.07302330434322357,
-0.9195882081985474,
0.3120862543582916,
-0.6718769073486328,
1.9830896854400635,
1.6375452280044556,
1.3342219591140747,
-0.08924073725938797,
-0.9653992652893066,
0.5753742456436157,
-0.13111649453639984,
-0.3428759276866913,
0.8618438839912415,
0.4545213580131531,
-0.20738020539283752,
-1.3288336992263794,
0.48389682173728943,
1.341478943824768,
-0.8605358600616455,
-0.9286468029022217,
0.0705212950706482,
-0.863629162311554,
1.0229231119155884,
0.7896765470504761,
0.3703147768974304,
0.3199642300605774,
1.5292017459869385,
0.6985635757446289,
-0.5924077033996582,
0.3790826201438904,
0.3769635856151581,
-0.004706076346337795,
-2.081730604171753,
-1.044877290725708,
0.3610101044178009,
-0.375166654586792,
-1.561961054801941,
1.3170735836029053,
-1.159698486328125,
-0.8827978372573853,
0.42201411724090576,
0.13351519405841827,
1.3461296558380127,
0.2026420533657074,
1.6080502271652222,
2.021387815475464,
0.8894572257995605,
0.2642713785171509,
1.3446094989776611,
-0.17173650860786438,
-0.5159177780151367,
1.8393871784210205,
-0.3751221001148224,
0.47936952114105225,
1.0801373720169067,
-0.4403614103794098,
-1.0570008754730225,
-0.7878614068031311,
-1.2257964611053467,
-0.6261357665061951,
1.1645164489746094,
0.21941973268985748,
-1.2377020120620728,
0.14299993216991425,
1.50211501121521,
0.1557277888059616,
-0.31618982553482056,
0.5539043545722961,
0.48997554183006287,
-0.8097776174545288,
0.0235108844935894,
-0.9466979503631592,
0.5627555251121521,
-0.15978290140628815,
-0.3554842174053192,
0.3085779547691345,
0.45878252387046814,
1.2362738847732544,
0.02981380745768547,
0.16373129189014435,
1.1997305154800415,
-1.3572405576705933,
1.4480082988739014,
-0.6209109425544739,
0.2506917417049408,
-2.4722092151641846,
1.4482834339141846,
-0.7813482284545898,
1.788013219833374,
-2.6353917121887207,
0.39209142327308655,
-0.5632445812225342,
-0.42940884828567505,
0.34892773628234863,
-0.3774276375770569,
0.18547670543193817,
-0.17227484285831451,
-1.0699976682662964,
-0.05342880263924599,
-0.7653306722640991,
0.6153044104576111,
1.229802131652832,
1.3035178184509277,
-1.097091794013977,
-0.19299817085266113,
-1.8339468240737915,
-0.10643622279167175,
-0.6739898324012756,
0.26651716232299805,
-2.0933196544647217,
-0.1937752515077591,
-1.9396865367889404,
-2.4092819690704346,
-1.399308681488037,
-0.7937077879905701,
1.079537034034729,
0.18741115927696228,
-0.9560232758522034,
1.072208285331726,
-0.3356837034225464,
-1.7560756206512451,
1.0727629661560059,
-2.137057304382324
] |
https://github.com/huggingface/datasets/issues/4670 | Can't extract files from `.7z` zipfile using `download_and_extract` | Hi @bhavitvyamalik, thanks for reporting.
Yes, currently we do not support 7zip archive compression: I think we should.
As a workaround, you could uncompress it explicitly, like done in e.g. `samsum` dataset:
https://github.com/huggingface/datasets/blob/fedf891a08bfc77041d575fad6c26091bc0fce52/datasets/samsum/samsum.py#L106-L110
| ## Describe the bug
I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error:
```
>>> dataset = load_dataset("./datasets/mantis/")
Using custom data configuration default
Downloading and preparing dataset mantis/default to /Users/bhavitvyamalik/.cache/huggingface/datasets/mantis/default/1.1.0/611affa804ec53e2055a335cc1b8b213bb5a0b5142d919967729d5ee23c6bab4...
Downloading data: 100%|█████████████████████████████████████████████████████████| 77.2M/77.2M [00:23<00:00, 3.28MB/s]
/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/load.py", line 1745, in load_dataset
use_auth_token=use_auth_token,
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 595, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 690, in _download_and_prepare
) from None
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6/merged_train.json'
```
just before generating the splits. I checked `fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6` file and it's `7z` zip file (similar to downloaded Google drive file) which means it didn't get unzip. Do I need to unzip it separately and then pass the paths for train,dev,test files in `SplitGenerator`?
## Environment info
- `datasets` version: 1.18.4.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.8
- PyArrow version: 5.0.0 | 640 | 33 | Can't extract files from `.7z` zipfile using `download_and_extract`
## Describe the bug
I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error:
```
>>> dataset = load_dataset("./datasets/mantis/")
Using custom data configuration default
Downloading and preparing dataset mantis/default to /Users/bhavitvyamalik/.cache/huggingface/datasets/mantis/default/1.1.0/611affa804ec53e2055a335cc1b8b213bb5a0b5142d919967729d5ee23c6bab4...
Downloading data: 100%|█████████████████████████████████████████████████████████| 77.2M/77.2M [00:23<00:00, 3.28MB/s]
/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/load.py", line 1745, in load_dataset
use_auth_token=use_auth_token,
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 595, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 690, in _download_and_prepare
) from None
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6/merged_train.json'
```
just before generating the splits. I checked `fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6` file and it's `7z` zip file (similar to downloaded Google drive file) which means it didn't get unzip. Do I need to unzip it separately and then pass the paths for train,dev,test files in `SplitGenerator`?
## Environment info
- `datasets` version: 1.18.4.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.8
- PyArrow version: 5.0.0
Hi @bhavitvyamalik, thanks for reporting.
Yes, currently we do not support 7zip archive compression: I think we should.
As a workaround, you could uncompress it explicitly, like done in e.g. `samsum` dataset:
https://github.com/huggingface/datasets/blob/fedf891a08bfc77041d575fad6c26091bc0fce52/datasets/samsum/samsum.py#L106-L110
| [
-1.1831490993499756,
-0.8560053706169128,
-0.6608892679214478,
1.385361671447754,
-0.11431881040334702,
-1.2410014867782593,
0.12204492092132568,
-1.115902304649353,
1.5976307392120361,
-0.6959618330001831,
0.22364257276058197,
-1.6843518018722534,
-0.11148616671562195,
-0.49245500564575195,
-0.7164862751960754,
-0.893682599067688,
-0.31273841857910156,
-0.882840096950531,
0.9633342623710632,
2.526712656021118,
1.272980809211731,
-1.335212230682373,
2.739835262298584,
0.6783918142318726,
-0.35866105556488037,
-1.0086864233016968,
0.5620375871658325,
0.09445694833993912,
-1.193806529045105,
-0.4323948621749878,
-0.866909384727478,
0.062244489789009094,
-0.5858315229415894,
-0.36237633228302,
0.017079228535294533,
0.48935210704803467,
-0.31232792139053345,
-0.2865344285964966,
-0.6340864896774292,
-0.739423394203186,
0.4872322082519531,
-0.3303990364074707,
0.936124324798584,
-0.32879650592803955,
1.7808430194854736,
-0.5644698143005371,
0.37286603450775146,
0.694770336151123,
1.2646390199661255,
0.15335121750831604,
0.18705321848392487,
0.19557292759418488,
0.352508008480072,
-0.050967540591955185,
0.487895131111145,
1.249952793121338,
0.5387247204780579,
0.505875825881958,
0.6681371927261353,
-2.2133188247680664,
1.350553274154663,
-0.8778444528579712,
0.24944446980953217,
1.3530735969543457,
-0.8163816332817078,
0.28469717502593994,
-1.8532732725143433,
-0.05895961821079254,
0.5752405524253845,
-2.270873546600342,
0.263466477394104,
-1.3220115900039673,
-0.5298230648040771,
0.8914028406143188,
0.3093489408493042,
-1.1384620666503906,
0.2658573389053345,
-0.5524535775184631,
1.1248838901519775,
0.4658306837081909,
1.1516271829605103,
-1.607909083366394,
-0.053386032581329346,
-0.1857590228319168,
0.043772242963314056,
-1.3736151456832886,
-1.6774230003356934,
0.5458151698112488,
0.5665353536605835,
0.7246291637420654,
-0.11735295504331589,
1.055997610092163,
-1.0621047019958496,
0.7673234343528748,
-0.894899308681488,
-1.6086534261703491,
-1.3566683530807495,
-2.352027416229248,
-2.326564073562622,
0.7981695532798767,
-0.5086486339569092,
-0.46005773544311523,
2.0121374130249023,
-0.985572099685669,
-1.765798807144165,
1.0075440406799316,
0.34226226806640625,
0.0418303944170475,
2.361398696899414,
0.24904505908489227,
-0.7378305196762085,
0.4156832695007324,
-0.6650341153144836,
0.822344958782196,
-0.2835918068885803,
1.3292288780212402,
0.5363723039627075,
-0.9835581183433533,
1.5126105546951294,
-0.43970775604248047,
0.6153920292854309,
-0.6161918044090271,
-0.5969024896621704,
-0.8226107358932495,
0.21327538788318634,
1.8578977584838867,
-0.4003586173057556,
1.5337077379226685,
-0.298009991645813,
-1.6030664443969727,
-1.61127769947052,
0.8993884325027466,
0.5209042429924011,
-0.8625786900520325,
0.06894729286432266,
-0.5368276238441467,
0.12599565088748932,
-0.0721660628914833,
1.1239464282989502,
1.2467697858810425,
0.7047505378723145,
-0.2962223291397095,
-0.7949262857437134,
0.2248842716217041,
-0.1552315354347229,
-0.6529268622398376,
-1.8138445615768433,
-0.26872992515563965,
0.26418811082839966,
0.6339814066886902,
-1.1984971761703491,
1.7959269285202026,
0.8864361047744751,
2.01678729057312,
0.9831488728523254,
-0.38700932264328003,
1.487043857574463,
-0.011644790880382061,
1.8187276124954224,
-0.4779329299926758,
0.5948367714881897,
-0.37300872802734375,
-1.1351726055145264,
0.8934348821640015,
-0.35764604806900024,
-1.9798004627227783,
-0.82994544506073,
-0.7779891490936279,
-0.19248753786087036,
-0.7099206447601318,
0.8138989210128784,
-0.26779627799987793,
-1.476860761642456,
0.05953989177942276,
-0.6404536366462708,
0.12902113795280457,
-1.2058939933776855,
0.18305405974388123,
0.7095150947570801,
-0.6670429706573486,
-0.10738784819841385,
-0.18478664755821228,
-1.2375658750534058,
-0.4813494086265564,
0.35442590713500977,
1.9652875661849976,
-0.5629340410232544,
0.9744846224784851,
1.080642580986023,
-0.7550442814826965,
0.20926979184150696,
0.2702500820159912,
-0.31366652250289917,
0.7725073099136353,
-1.0745478868484497,
-0.3710808753967285,
1.1465578079223633,
-0.21651655435562134,
-0.6506868600845337,
1.4026391506195068,
0.8495276570320129,
-1.08600652217865,
-0.16679389774799347,
-0.23548409342765808,
-0.8111491799354553,
-0.023564767092466354,
-1.4744048118591309,
-0.12129563093185425,
0.38983672857284546,
-1.4628392457962036,
-0.3872096538543701,
-0.27589887380599976,
1.354122281074524,
-0.2501148581504822,
1.41038978099823,
-0.23150452971458435,
-0.12896522879600525,
-0.30156493186950684,
-0.5044782161712646,
0.15044192969799042,
-0.21297182142734528,
-0.558352530002594,
0.15253624320030212,
-0.9004368185997009,
0.2591692805290222,
1.502537727355957,
0.35258907079696655,
0.014842687174677849,
0.4723125696182251,
1.105206847190857,
0.36819612979888916,
-0.041173115372657776,
-0.8313500881195068,
-1.5194872617721558,
1.9348775148391724,
-1.4326623678207397,
1.907396912574768,
0.813165009021759,
-0.10441913455724716,
-1.773735523223877,
-1.9030702114105225,
1.3233062028884888,
1.0735234022140503,
2.4065194129943848,
0.5508292317390442,
0.44061964750289917,
-0.7539318799972534,
-0.7772061824798584,
0.3656250238418579,
-0.9858989715576172,
-0.6205342411994934,
0.1948782354593277,
2.310180902481079,
1.7657220363616943,
-0.622268557548523,
-0.2253534495830536,
-0.8453707098960876,
1.2672828435897827,
-0.19188569486141205,
0.1867208480834961,
2.107640027999878,
-0.3061811327934265,
-1.0399093627929688,
1.3472577333450317,
-2.364027738571167,
0.251361608505249,
2.0342953205108643,
0.3078131079673767,
0.1401372104883194,
-1.4060440063476562,
-0.6493340730667114,
-0.3269937038421631,
-0.518589198589325,
-1.236386775970459,
0.5974748730659485,
-0.2778272032737732,
-0.8699812889099121,
-1.4728436470031738,
0.08446450531482697,
-1.17622971534729,
-1.7872118949890137,
0.3889405131340027,
1.9808745384216309,
2.0850651264190674,
-0.8167510032653809,
1.424977421760559,
-0.2531241178512573,
-0.007225054781883955,
1.2459834814071655,
1.3836243152618408,
3.1592884063720703,
1.8002541065216064,
-1.2764898538589478,
0.7310777902603149,
-0.171571284532547,
-0.49440324306488037,
1.1539186239242554,
-1.125442624092102,
1.1383410692214966,
-0.1930517703294754,
-1.209826111793518,
-1.2815566062927246,
0.9950772523880005,
0.4580156207084656,
0.0565982311964035,
-0.5141950845718384,
1.2562400102615356,
0.11526092141866684,
1.4022787809371948,
0.5500930547714233,
-0.3813478946685791,
0.5350326895713806,
-0.39350569248199463,
-0.6043716669082642,
1.6579350233078003,
0.15102867782115936,
-1.5088783502578735,
-2.3481829166412354,
-0.3071137070655823,
-0.8238329291343689,
0.03366634249687195,
-0.6397951245307922,
-1.1361194849014282,
1.5654406547546387,
0.3994428515434265,
-1.250204086303711,
-0.30154067277908325,
-0.3430919647216797,
-0.572097897529602,
2.583984375,
-1.2553104162216187,
-0.0246955044567585,
-0.9402685761451721,
-0.573225736618042,
1.6106706857681274,
-1.2151795625686646,
-0.16878491640090942,
-1.0655759572982788,
-0.6171218752861023,
-1.3659414052963257,
-0.49829214811325073,
0.07885909825563431,
-1.001827359199524,
0.7515208125114441,
0.16292704641819,
-1.0967785120010376,
-0.2992745041847229,
-0.8832908272743225,
1.0792386531829834,
-0.10975579172372818,
0.21848167479038239,
1.7933834791183472,
0.4042106866836548,
-0.42852890491485596,
0.7053403854370117,
1.18830144405365,
0.5723550915718079,
-0.6816100478172302,
0.02954583242535591,
-0.7618899941444397,
0.34965741634368896,
-1.4822020530700684,
0.2330787181854248,
-2.9330625534057617,
0.8009533286094666,
-0.15431392192840576,
-0.08489909768104553,
-0.0372723713517189,
-1.3236390352249146,
1.0720233917236328,
2.6082422733306885,
-1.1976829767227173,
0.5038950443267822,
0.4668886065483093,
1.1316864490509033,
-1.6023935079574585,
0.22522634267807007,
-0.4556102752685547,
2.0701751708984375,
0.08196176588535309,
1.2969475984573364,
-0.5129722356796265,
-2.1966044902801514,
0.6045283675193787,
-1.2116799354553223,
-1.050653100013733,
0.8585214018821716,
-0.9072028994560242,
0.2645530700683594,
-1.4390747547149658,
-0.20698267221450806,
-1.0198019742965698,
-1.1848773956298828,
0.7609818577766418,
0.11992011964321136,
0.4177546501159668,
-0.5660065412521362,
0.4323594570159912,
-2.205789566040039,
-1.385381817817688,
-0.19398120045661926,
-0.9705165028572083,
0.5902050137519836,
-0.3454907536506653,
0.563794732093811,
-0.11400970816612244,
0.10438902676105499,
0.3224223256111145,
1.4603177309036255,
3.3654770851135254,
0.10716328769922256,
0.20352350175380707,
-0.05872194841504097,
-1.008082628250122,
1.4435033798217773,
0.9525463581085205,
-0.11797048896551132,
-0.5545135140419006,
-1.0479669570922852,
1.27297842502594,
2.0076019763946533,
1.1662025451660156,
0.06757652759552002,
-0.8838880062103271,
-0.7890851497650146,
-0.0042378525249660015,
0.18022194504737854,
0.5444903373718262,
0.8992930054664612,
-0.04595481604337692,
0.09913665801286697,
1.303587555885315,
1.209817886352539,
-0.3703268766403198,
0.4259389042854309,
-0.9601153135299683,
-0.43642765283584595,
0.38630932569503784,
0.16079872846603394,
0.0797431543469429,
0.5531153082847595,
-1.0239243507385254,
-0.2909697890281677,
-0.2915528416633606,
-0.9256747961044312,
-0.7300302982330322,
-0.46088916063308716,
-0.371859073638916,
1.5603982210159302,
0.08764681220054626,
-0.5079419612884521,
0.0689607486128807,
-0.7142033576965332,
-0.19399021565914154,
-1.128028154373169,
0.1359061300754547,
-0.16544753313064575,
-0.05778980627655983,
-0.13479728996753693,
1.6542011499404907,
-0.9885451793670654,
-2.0825040340423584,
0.17569853365421295,
0.31969016790390015,
-0.4256453514099121,
0.21379004418849945,
1.723455786705017,
0.4951843023300171,
1.4451041221618652,
1.237896203994751,
0.9875918030738831,
-0.6387404799461365,
-1.1963398456573486,
0.7399898171424866,
0.9090621471405029,
-1.2924119234085083,
0.9097912311553955,
-0.11679352819919586,
-0.5333901643753052,
0.7013408541679382,
1.3498420715332031,
0.4060579538345337,
-2.0693373680114746,
0.8921679854393005,
-0.9417667984962463,
0.745730459690094,
0.6622294783592224,
0.8212644457817078,
0.28477180004119873,
0.8752631545066833,
-1.2396341562271118,
-1.1296038627624512,
-0.7605353593826294,
-0.648837149143219,
1.9695274829864502,
-0.197560116648674,
0.5010536909103394,
-0.15653134882450104,
-1.1719540357589722,
-0.21272343397140503,
0.7902410626411438,
0.438212513923645,
-0.4012138843536377,
0.8434877991676331,
-0.6281658411026001,
-0.9366948008537292,
-1.2617994546890259,
-0.4036189317703247,
-1.0103951692581177,
-0.8943416476249695,
0.995305061340332,
0.7681259512901306,
0.3814792037010193,
1.9132027626037598,
0.5665299296379089,
0.3821333050727844,
-2.636653423309326,
0.8899502158164978,
0.3325974941253662,
-0.08320536464452744,
0.9314470291137695,
0.27435028553009033,
1.1661436557769775,
-0.009711137041449547,
0.6090847849845886,
-2.3292713165283203,
2.2157063484191895,
-0.19263692200183868,
0.6526354551315308,
-0.03515435755252838,
-0.1993788480758667,
1.1252176761627197,
0.5963122248649597,
0.5157303810119629,
-1.1507320404052734,
0.7289599180221558,
-0.5539554953575134,
1.074906587600708,
0.9853971004486084,
-0.9048027992248535,
0.11921903491020203,
1.4563379287719727,
0.5024301409721375,
-0.4605950117111206,
-0.9577474594116211,
-0.7974078059196472,
0.9706345796585083,
1.6800607442855835,
-0.1092277243733406,
-0.007242907769978046,
0.830678403377533,
0.6842049956321716,
-1.2680528163909912,
0.12450775504112244,
-0.5922456979751587,
-0.7246333360671997,
1.7811752557754517,
2.0661816596984863,
-0.07929100096225739,
-0.17821438610553741,
-0.7862083315849304,
-1.215418815612793,
0.741519033908844,
-0.10489525645971298,
0.12493094801902771,
0.5938022136688232,
-0.7182478308677673,
1.14678156375885,
0.6085708737373352,
0.9376066327095032,
-0.010320061817765236,
0.3736676573753357,
0.44481807947158813,
-0.34284400939941406,
-1.1377346515655518,
-0.4343118667602539,
-1.171039342880249,
-2.569093942642212,
0.5413758158683777,
-0.22255568206310272,
-1.4669991731643677,
-0.03638144209980965,
-1.0470267534255981,
0.9351011514663696,
-0.649556577205658,
-1.0668480396270752,
-1.4488974809646606,
0.30585533380508423,
-0.1253931224346161,
0.9926007986068726,
-1.6485594511032104,
-0.1763726770877838,
1.2047367095947266,
0.9183733463287354,
-0.581626832485199,
0.9968414306640625,
0.2608177065849304,
1.0166733264923096,
0.789085865020752,
-0.4728473424911499,
0.6401757001876831,
0.09077315777540207,
-1.296372890472412,
0.42914700508117676,
1.224774956703186,
0.15539273619651794,
1.4396480321884155,
-0.41890615224838257,
0.07893477380275726,
0.4583432674407959,
-0.5730201005935669,
-0.5672277808189392,
-0.3576200604438782,
0.6352761387825012,
0.11341194808483124,
-1.0919060707092285,
-0.13991586863994598,
-0.21272051334381104,
-0.2680361270904541,
0.22934938967227936,
-1.527756929397583,
-0.3126552104949951,
-0.3833884000778198,
-0.44420337677001953,
-1.2697629928588867,
0.036256514489650726,
1.3965214490890503,
-0.7415801882743835,
-0.23614202439785004,
0.40734249353408813,
0.37755757570266724,
0.5241778492927551,
0.5707185864448547,
-0.8042367696762085,
-0.32474297285079956,
-0.35538989305496216,
-0.3508771061897278,
0.2747390866279602,
1.2152454853057861,
-0.09912648797035217,
-0.997295618057251,
0.6119566559791565,
-0.3942496180534363,
0.13649345934391022,
1.9899505376815796,
-0.03329888731241226,
-0.693045973777771,
0.29887086153030396,
-0.6983609199523926,
1.7777191400527954,
1.7491340637207031,
1.2714998722076416,
-0.10471754521131516,
-0.7996626496315002,
0.5431396961212158,
-0.2958140969276428,
-0.29635465145111084,
0.9653703570365906,
0.4688420295715332,
-0.24474625289440155,
-1.4872792959213257,
0.5773414373397827,
1.2929846048355103,
-0.8766452670097351,
-0.7505364418029785,
0.02864990383386612,
-0.8632155656814575,
1.1773645877838135,
0.5940050482749939,
0.29227936267852783,
0.28332263231277466,
1.5738425254821777,
0.7206763029098511,
-0.4834633469581604,
0.6197617053985596,
0.4411587119102478,
-0.19012509286403656,
-2.1379668712615967,
-1.0863972902297974,
0.3085097074508667,
-0.4512883424758911,
-1.585759162902832,
1.4111473560333252,
-1.0546762943267822,
-1.019812822341919,
0.5319593548774719,
0.06725793331861496,
1.3273483514785767,
0.3116985559463501,
1.7257862091064453,
2.09479022026062,
0.8617271780967712,
0.29268550872802734,
1.2790822982788086,
-0.08583596348762512,
-0.5325737595558167,
1.8550416231155396,
-0.4580482244491577,
0.49421072006225586,
1.0279288291931152,
-0.3516862392425537,
-1.0408271551132202,
-0.8726032376289368,
-1.2491412162780762,
-0.6701511144638062,
1.2017977237701416,
0.09581567347049713,
-1.049712061882019,
0.16790640354156494,
1.6975877285003662,
0.15286657214164734,
-0.2090618759393692,
0.7417380809783936,
0.46102118492126465,
-0.812526524066925,
-0.10877900570631027,
-0.8547405004501343,
0.5065121054649353,
-0.08646373450756073,
-0.3068031668663025,
0.2102244794368744,
0.5476755499839783,
1.3123522996902466,
-0.07434162497520447,
0.06234974414110184,
1.1439735889434814,
-1.3630770444869995,
1.4850430488586426,
-0.5844746232032776,
0.271797239780426,
-2.4493703842163086,
1.4241925477981567,
-0.759344756603241,
1.9557254314422607,
-2.5646934509277344,
0.4424208402633667,
-0.6036672592163086,
-0.5020295977592468,
0.2859896421432495,
-0.445335328578949,
0.1600026935338974,
-0.12003413587808609,
-0.9633911848068237,
-0.09889133274555206,
-0.6885090470314026,
0.6593920588493347,
1.2072848081588745,
1.4402801990509033,
-1.0827232599258423,
-0.22989490628242493,
-1.7140579223632812,
-0.24368539452552795,
-0.7186417579650879,
0.29319047927856445,
-1.9716485738754272,
-0.19904008507728577,
-2.015073299407959,
-2.377448558807373,
-1.3926435708999634,
-0.8099985718727112,
0.9985144138336182,
0.16299782693386078,
-1.009265661239624,
1.2080916166305542,
-0.31676989793777466,
-1.7778745889663696,
1.1283345222473145,
-2.1492300033569336
] |
https://github.com/huggingface/datasets/issues/4670 | Can't extract files from `.7z` zipfile using `download_and_extract` | Sure, let me look into and check what can be done. Will keep you guys updated here! | ## Describe the bug
I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error:
```
>>> dataset = load_dataset("./datasets/mantis/")
Using custom data configuration default
Downloading and preparing dataset mantis/default to /Users/bhavitvyamalik/.cache/huggingface/datasets/mantis/default/1.1.0/611affa804ec53e2055a335cc1b8b213bb5a0b5142d919967729d5ee23c6bab4...
Downloading data: 100%|█████████████████████████████████████████████████████████| 77.2M/77.2M [00:23<00:00, 3.28MB/s]
/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/load.py", line 1745, in load_dataset
use_auth_token=use_auth_token,
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 595, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 690, in _download_and_prepare
) from None
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6/merged_train.json'
```
just before generating the splits. I checked `fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6` file and it's `7z` zip file (similar to downloaded Google drive file) which means it didn't get unzip. Do I need to unzip it separately and then pass the paths for train,dev,test files in `SplitGenerator`?
## Environment info
- `datasets` version: 1.18.4.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.8
- PyArrow version: 5.0.0 | 640 | 17 | Can't extract files from `.7z` zipfile using `download_and_extract`
## Describe the bug
I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error:
```
>>> dataset = load_dataset("./datasets/mantis/")
Using custom data configuration default
Downloading and preparing dataset mantis/default to /Users/bhavitvyamalik/.cache/huggingface/datasets/mantis/default/1.1.0/611affa804ec53e2055a335cc1b8b213bb5a0b5142d919967729d5ee23c6bab4...
Downloading data: 100%|█████████████████████████████████████████████████████████| 77.2M/77.2M [00:23<00:00, 3.28MB/s]
/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/load.py", line 1745, in load_dataset
use_auth_token=use_auth_token,
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 595, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 690, in _download_and_prepare
) from None
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6/merged_train.json'
```
just before generating the splits. I checked `fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6` file and it's `7z` zip file (similar to downloaded Google drive file) which means it didn't get unzip. Do I need to unzip it separately and then pass the paths for train,dev,test files in `SplitGenerator`?
## Environment info
- `datasets` version: 1.18.4.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.8
- PyArrow version: 5.0.0
Sure, let me look into and check what can be done. Will keep you guys updated here! | [
-1.1831490993499756,
-0.8560053706169128,
-0.6608892679214478,
1.385361671447754,
-0.11431881040334702,
-1.2410014867782593,
0.12204492092132568,
-1.115902304649353,
1.5976307392120361,
-0.6959618330001831,
0.22364257276058197,
-1.6843518018722534,
-0.11148616671562195,
-0.49245500564575195,
-0.7164862751960754,
-0.893682599067688,
-0.31273841857910156,
-0.882840096950531,
0.9633342623710632,
2.526712656021118,
1.272980809211731,
-1.335212230682373,
2.739835262298584,
0.6783918142318726,
-0.35866105556488037,
-1.0086864233016968,
0.5620375871658325,
0.09445694833993912,
-1.193806529045105,
-0.4323948621749878,
-0.866909384727478,
0.062244489789009094,
-0.5858315229415894,
-0.36237633228302,
0.017079228535294533,
0.48935210704803467,
-0.31232792139053345,
-0.2865344285964966,
-0.6340864896774292,
-0.739423394203186,
0.4872322082519531,
-0.3303990364074707,
0.936124324798584,
-0.32879650592803955,
1.7808430194854736,
-0.5644698143005371,
0.37286603450775146,
0.694770336151123,
1.2646390199661255,
0.15335121750831604,
0.18705321848392487,
0.19557292759418488,
0.352508008480072,
-0.050967540591955185,
0.487895131111145,
1.249952793121338,
0.5387247204780579,
0.505875825881958,
0.6681371927261353,
-2.2133188247680664,
1.350553274154663,
-0.8778444528579712,
0.24944446980953217,
1.3530735969543457,
-0.8163816332817078,
0.28469717502593994,
-1.8532732725143433,
-0.05895961821079254,
0.5752405524253845,
-2.270873546600342,
0.263466477394104,
-1.3220115900039673,
-0.5298230648040771,
0.8914028406143188,
0.3093489408493042,
-1.1384620666503906,
0.2658573389053345,
-0.5524535775184631,
1.1248838901519775,
0.4658306837081909,
1.1516271829605103,
-1.607909083366394,
-0.053386032581329346,
-0.1857590228319168,
0.043772242963314056,
-1.3736151456832886,
-1.6774230003356934,
0.5458151698112488,
0.5665353536605835,
0.7246291637420654,
-0.11735295504331589,
1.055997610092163,
-1.0621047019958496,
0.7673234343528748,
-0.894899308681488,
-1.6086534261703491,
-1.3566683530807495,
-2.352027416229248,
-2.326564073562622,
0.7981695532798767,
-0.5086486339569092,
-0.46005773544311523,
2.0121374130249023,
-0.985572099685669,
-1.765798807144165,
1.0075440406799316,
0.34226226806640625,
0.0418303944170475,
2.361398696899414,
0.24904505908489227,
-0.7378305196762085,
0.4156832695007324,
-0.6650341153144836,
0.822344958782196,
-0.2835918068885803,
1.3292288780212402,
0.5363723039627075,
-0.9835581183433533,
1.5126105546951294,
-0.43970775604248047,
0.6153920292854309,
-0.6161918044090271,
-0.5969024896621704,
-0.8226107358932495,
0.21327538788318634,
1.8578977584838867,
-0.4003586173057556,
1.5337077379226685,
-0.298009991645813,
-1.6030664443969727,
-1.61127769947052,
0.8993884325027466,
0.5209042429924011,
-0.8625786900520325,
0.06894729286432266,
-0.5368276238441467,
0.12599565088748932,
-0.0721660628914833,
1.1239464282989502,
1.2467697858810425,
0.7047505378723145,
-0.2962223291397095,
-0.7949262857437134,
0.2248842716217041,
-0.1552315354347229,
-0.6529268622398376,
-1.8138445615768433,
-0.26872992515563965,
0.26418811082839966,
0.6339814066886902,
-1.1984971761703491,
1.7959269285202026,
0.8864361047744751,
2.01678729057312,
0.9831488728523254,
-0.38700932264328003,
1.487043857574463,
-0.011644790880382061,
1.8187276124954224,
-0.4779329299926758,
0.5948367714881897,
-0.37300872802734375,
-1.1351726055145264,
0.8934348821640015,
-0.35764604806900024,
-1.9798004627227783,
-0.82994544506073,
-0.7779891490936279,
-0.19248753786087036,
-0.7099206447601318,
0.8138989210128784,
-0.26779627799987793,
-1.476860761642456,
0.05953989177942276,
-0.6404536366462708,
0.12902113795280457,
-1.2058939933776855,
0.18305405974388123,
0.7095150947570801,
-0.6670429706573486,
-0.10738784819841385,
-0.18478664755821228,
-1.2375658750534058,
-0.4813494086265564,
0.35442590713500977,
1.9652875661849976,
-0.5629340410232544,
0.9744846224784851,
1.080642580986023,
-0.7550442814826965,
0.20926979184150696,
0.2702500820159912,
-0.31366652250289917,
0.7725073099136353,
-1.0745478868484497,
-0.3710808753967285,
1.1465578079223633,
-0.21651655435562134,
-0.6506868600845337,
1.4026391506195068,
0.8495276570320129,
-1.08600652217865,
-0.16679389774799347,
-0.23548409342765808,
-0.8111491799354553,
-0.023564767092466354,
-1.4744048118591309,
-0.12129563093185425,
0.38983672857284546,
-1.4628392457962036,
-0.3872096538543701,
-0.27589887380599976,
1.354122281074524,
-0.2501148581504822,
1.41038978099823,
-0.23150452971458435,
-0.12896522879600525,
-0.30156493186950684,
-0.5044782161712646,
0.15044192969799042,
-0.21297182142734528,
-0.558352530002594,
0.15253624320030212,
-0.9004368185997009,
0.2591692805290222,
1.502537727355957,
0.35258907079696655,
0.014842687174677849,
0.4723125696182251,
1.105206847190857,
0.36819612979888916,
-0.041173115372657776,
-0.8313500881195068,
-1.5194872617721558,
1.9348775148391724,
-1.4326623678207397,
1.907396912574768,
0.813165009021759,
-0.10441913455724716,
-1.773735523223877,
-1.9030702114105225,
1.3233062028884888,
1.0735234022140503,
2.4065194129943848,
0.5508292317390442,
0.44061964750289917,
-0.7539318799972534,
-0.7772061824798584,
0.3656250238418579,
-0.9858989715576172,
-0.6205342411994934,
0.1948782354593277,
2.310180902481079,
1.7657220363616943,
-0.622268557548523,
-0.2253534495830536,
-0.8453707098960876,
1.2672828435897827,
-0.19188569486141205,
0.1867208480834961,
2.107640027999878,
-0.3061811327934265,
-1.0399093627929688,
1.3472577333450317,
-2.364027738571167,
0.251361608505249,
2.0342953205108643,
0.3078131079673767,
0.1401372104883194,
-1.4060440063476562,
-0.6493340730667114,
-0.3269937038421631,
-0.518589198589325,
-1.236386775970459,
0.5974748730659485,
-0.2778272032737732,
-0.8699812889099121,
-1.4728436470031738,
0.08446450531482697,
-1.17622971534729,
-1.7872118949890137,
0.3889405131340027,
1.9808745384216309,
2.0850651264190674,
-0.8167510032653809,
1.424977421760559,
-0.2531241178512573,
-0.007225054781883955,
1.2459834814071655,
1.3836243152618408,
3.1592884063720703,
1.8002541065216064,
-1.2764898538589478,
0.7310777902603149,
-0.171571284532547,
-0.49440324306488037,
1.1539186239242554,
-1.125442624092102,
1.1383410692214966,
-0.1930517703294754,
-1.209826111793518,
-1.2815566062927246,
0.9950772523880005,
0.4580156207084656,
0.0565982311964035,
-0.5141950845718384,
1.2562400102615356,
0.11526092141866684,
1.4022787809371948,
0.5500930547714233,
-0.3813478946685791,
0.5350326895713806,
-0.39350569248199463,
-0.6043716669082642,
1.6579350233078003,
0.15102867782115936,
-1.5088783502578735,
-2.3481829166412354,
-0.3071137070655823,
-0.8238329291343689,
0.03366634249687195,
-0.6397951245307922,
-1.1361194849014282,
1.5654406547546387,
0.3994428515434265,
-1.250204086303711,
-0.30154067277908325,
-0.3430919647216797,
-0.572097897529602,
2.583984375,
-1.2553104162216187,
-0.0246955044567585,
-0.9402685761451721,
-0.573225736618042,
1.6106706857681274,
-1.2151795625686646,
-0.16878491640090942,
-1.0655759572982788,
-0.6171218752861023,
-1.3659414052963257,
-0.49829214811325073,
0.07885909825563431,
-1.001827359199524,
0.7515208125114441,
0.16292704641819,
-1.0967785120010376,
-0.2992745041847229,
-0.8832908272743225,
1.0792386531829834,
-0.10975579172372818,
0.21848167479038239,
1.7933834791183472,
0.4042106866836548,
-0.42852890491485596,
0.7053403854370117,
1.18830144405365,
0.5723550915718079,
-0.6816100478172302,
0.02954583242535591,
-0.7618899941444397,
0.34965741634368896,
-1.4822020530700684,
0.2330787181854248,
-2.9330625534057617,
0.8009533286094666,
-0.15431392192840576,
-0.08489909768104553,
-0.0372723713517189,
-1.3236390352249146,
1.0720233917236328,
2.6082422733306885,
-1.1976829767227173,
0.5038950443267822,
0.4668886065483093,
1.1316864490509033,
-1.6023935079574585,
0.22522634267807007,
-0.4556102752685547,
2.0701751708984375,
0.08196176588535309,
1.2969475984573364,
-0.5129722356796265,
-2.1966044902801514,
0.6045283675193787,
-1.2116799354553223,
-1.050653100013733,
0.8585214018821716,
-0.9072028994560242,
0.2645530700683594,
-1.4390747547149658,
-0.20698267221450806,
-1.0198019742965698,
-1.1848773956298828,
0.7609818577766418,
0.11992011964321136,
0.4177546501159668,
-0.5660065412521362,
0.4323594570159912,
-2.205789566040039,
-1.385381817817688,
-0.19398120045661926,
-0.9705165028572083,
0.5902050137519836,
-0.3454907536506653,
0.563794732093811,
-0.11400970816612244,
0.10438902676105499,
0.3224223256111145,
1.4603177309036255,
3.3654770851135254,
0.10716328769922256,
0.20352350175380707,
-0.05872194841504097,
-1.008082628250122,
1.4435033798217773,
0.9525463581085205,
-0.11797048896551132,
-0.5545135140419006,
-1.0479669570922852,
1.27297842502594,
2.0076019763946533,
1.1662025451660156,
0.06757652759552002,
-0.8838880062103271,
-0.7890851497650146,
-0.0042378525249660015,
0.18022194504737854,
0.5444903373718262,
0.8992930054664612,
-0.04595481604337692,
0.09913665801286697,
1.303587555885315,
1.209817886352539,
-0.3703268766403198,
0.4259389042854309,
-0.9601153135299683,
-0.43642765283584595,
0.38630932569503784,
0.16079872846603394,
0.0797431543469429,
0.5531153082847595,
-1.0239243507385254,
-0.2909697890281677,
-0.2915528416633606,
-0.9256747961044312,
-0.7300302982330322,
-0.46088916063308716,
-0.371859073638916,
1.5603982210159302,
0.08764681220054626,
-0.5079419612884521,
0.0689607486128807,
-0.7142033576965332,
-0.19399021565914154,
-1.128028154373169,
0.1359061300754547,
-0.16544753313064575,
-0.05778980627655983,
-0.13479728996753693,
1.6542011499404907,
-0.9885451793670654,
-2.0825040340423584,
0.17569853365421295,
0.31969016790390015,
-0.4256453514099121,
0.21379004418849945,
1.723455786705017,
0.4951843023300171,
1.4451041221618652,
1.237896203994751,
0.9875918030738831,
-0.6387404799461365,
-1.1963398456573486,
0.7399898171424866,
0.9090621471405029,
-1.2924119234085083,
0.9097912311553955,
-0.11679352819919586,
-0.5333901643753052,
0.7013408541679382,
1.3498420715332031,
0.4060579538345337,
-2.0693373680114746,
0.8921679854393005,
-0.9417667984962463,
0.745730459690094,
0.6622294783592224,
0.8212644457817078,
0.28477180004119873,
0.8752631545066833,
-1.2396341562271118,
-1.1296038627624512,
-0.7605353593826294,
-0.648837149143219,
1.9695274829864502,
-0.197560116648674,
0.5010536909103394,
-0.15653134882450104,
-1.1719540357589722,
-0.21272343397140503,
0.7902410626411438,
0.438212513923645,
-0.4012138843536377,
0.8434877991676331,
-0.6281658411026001,
-0.9366948008537292,
-1.2617994546890259,
-0.4036189317703247,
-1.0103951692581177,
-0.8943416476249695,
0.995305061340332,
0.7681259512901306,
0.3814792037010193,
1.9132027626037598,
0.5665299296379089,
0.3821333050727844,
-2.636653423309326,
0.8899502158164978,
0.3325974941253662,
-0.08320536464452744,
0.9314470291137695,
0.27435028553009033,
1.1661436557769775,
-0.009711137041449547,
0.6090847849845886,
-2.3292713165283203,
2.2157063484191895,
-0.19263692200183868,
0.6526354551315308,
-0.03515435755252838,
-0.1993788480758667,
1.1252176761627197,
0.5963122248649597,
0.5157303810119629,
-1.1507320404052734,
0.7289599180221558,
-0.5539554953575134,
1.074906587600708,
0.9853971004486084,
-0.9048027992248535,
0.11921903491020203,
1.4563379287719727,
0.5024301409721375,
-0.4605950117111206,
-0.9577474594116211,
-0.7974078059196472,
0.9706345796585083,
1.6800607442855835,
-0.1092277243733406,
-0.007242907769978046,
0.830678403377533,
0.6842049956321716,
-1.2680528163909912,
0.12450775504112244,
-0.5922456979751587,
-0.7246333360671997,
1.7811752557754517,
2.0661816596984863,
-0.07929100096225739,
-0.17821438610553741,
-0.7862083315849304,
-1.215418815612793,
0.741519033908844,
-0.10489525645971298,
0.12493094801902771,
0.5938022136688232,
-0.7182478308677673,
1.14678156375885,
0.6085708737373352,
0.9376066327095032,
-0.010320061817765236,
0.3736676573753357,
0.44481807947158813,
-0.34284400939941406,
-1.1377346515655518,
-0.4343118667602539,
-1.171039342880249,
-2.569093942642212,
0.5413758158683777,
-0.22255568206310272,
-1.4669991731643677,
-0.03638144209980965,
-1.0470267534255981,
0.9351011514663696,
-0.649556577205658,
-1.0668480396270752,
-1.4488974809646606,
0.30585533380508423,
-0.1253931224346161,
0.9926007986068726,
-1.6485594511032104,
-0.1763726770877838,
1.2047367095947266,
0.9183733463287354,
-0.581626832485199,
0.9968414306640625,
0.2608177065849304,
1.0166733264923096,
0.789085865020752,
-0.4728473424911499,
0.6401757001876831,
0.09077315777540207,
-1.296372890472412,
0.42914700508117676,
1.224774956703186,
0.15539273619651794,
1.4396480321884155,
-0.41890615224838257,
0.07893477380275726,
0.4583432674407959,
-0.5730201005935669,
-0.5672277808189392,
-0.3576200604438782,
0.6352761387825012,
0.11341194808483124,
-1.0919060707092285,
-0.13991586863994598,
-0.21272051334381104,
-0.2680361270904541,
0.22934938967227936,
-1.527756929397583,
-0.3126552104949951,
-0.3833884000778198,
-0.44420337677001953,
-1.2697629928588867,
0.036256514489650726,
1.3965214490890503,
-0.7415801882743835,
-0.23614202439785004,
0.40734249353408813,
0.37755757570266724,
0.5241778492927551,
0.5707185864448547,
-0.8042367696762085,
-0.32474297285079956,
-0.35538989305496216,
-0.3508771061897278,
0.2747390866279602,
1.2152454853057861,
-0.09912648797035217,
-0.997295618057251,
0.6119566559791565,
-0.3942496180534363,
0.13649345934391022,
1.9899505376815796,
-0.03329888731241226,
-0.693045973777771,
0.29887086153030396,
-0.6983609199523926,
1.7777191400527954,
1.7491340637207031,
1.2714998722076416,
-0.10471754521131516,
-0.7996626496315002,
0.5431396961212158,
-0.2958140969276428,
-0.29635465145111084,
0.9653703570365906,
0.4688420295715332,
-0.24474625289440155,
-1.4872792959213257,
0.5773414373397827,
1.2929846048355103,
-0.8766452670097351,
-0.7505364418029785,
0.02864990383386612,
-0.8632155656814575,
1.1773645877838135,
0.5940050482749939,
0.29227936267852783,
0.28332263231277466,
1.5738425254821777,
0.7206763029098511,
-0.4834633469581604,
0.6197617053985596,
0.4411587119102478,
-0.19012509286403656,
-2.1379668712615967,
-1.0863972902297974,
0.3085097074508667,
-0.4512883424758911,
-1.585759162902832,
1.4111473560333252,
-1.0546762943267822,
-1.019812822341919,
0.5319593548774719,
0.06725793331861496,
1.3273483514785767,
0.3116985559463501,
1.7257862091064453,
2.09479022026062,
0.8617271780967712,
0.29268550872802734,
1.2790822982788086,
-0.08583596348762512,
-0.5325737595558167,
1.8550416231155396,
-0.4580482244491577,
0.49421072006225586,
1.0279288291931152,
-0.3516862392425537,
-1.0408271551132202,
-0.8726032376289368,
-1.2491412162780762,
-0.6701511144638062,
1.2017977237701416,
0.09581567347049713,
-1.049712061882019,
0.16790640354156494,
1.6975877285003662,
0.15286657214164734,
-0.2090618759393692,
0.7417380809783936,
0.46102118492126465,
-0.812526524066925,
-0.10877900570631027,
-0.8547405004501343,
0.5065121054649353,
-0.08646373450756073,
-0.3068031668663025,
0.2102244794368744,
0.5476755499839783,
1.3123522996902466,
-0.07434162497520447,
0.06234974414110184,
1.1439735889434814,
-1.3630770444869995,
1.4850430488586426,
-0.5844746232032776,
0.271797239780426,
-2.4493703842163086,
1.4241925477981567,
-0.759344756603241,
1.9557254314422607,
-2.5646934509277344,
0.4424208402633667,
-0.6036672592163086,
-0.5020295977592468,
0.2859896421432495,
-0.445335328578949,
0.1600026935338974,
-0.12003413587808609,
-0.9633911848068237,
-0.09889133274555206,
-0.6885090470314026,
0.6593920588493347,
1.2072848081588745,
1.4402801990509033,
-1.0827232599258423,
-0.22989490628242493,
-1.7140579223632812,
-0.24368539452552795,
-0.7186417579650879,
0.29319047927856445,
-1.9716485738754272,
-0.19904008507728577,
-2.015073299407959,
-2.377448558807373,
-1.3926435708999634,
-0.8099985718727112,
0.9985144138336182,
0.16299782693386078,
-1.009265661239624,
1.2080916166305542,
-0.31676989793777466,
-1.7778745889663696,
1.1283345222473145,
-2.1492300033569336
] |
https://github.com/huggingface/datasets/issues/4670 | Can't extract files from `.7z` zipfile using `download_and_extract` | Initially, I thought of solving this without any external dependency. Almost everywhere I saw `lzma` can be used for this but there is a caveat that lzma doesn’t work with 7z archives but only single files. In my case the 7z archive has multiple files so it didn't work. Is it fine to use external library here? | ## Describe the bug
I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error:
```
>>> dataset = load_dataset("./datasets/mantis/")
Using custom data configuration default
Downloading and preparing dataset mantis/default to /Users/bhavitvyamalik/.cache/huggingface/datasets/mantis/default/1.1.0/611affa804ec53e2055a335cc1b8b213bb5a0b5142d919967729d5ee23c6bab4...
Downloading data: 100%|█████████████████████████████████████████████████████████| 77.2M/77.2M [00:23<00:00, 3.28MB/s]
/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/load.py", line 1745, in load_dataset
use_auth_token=use_auth_token,
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 595, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 690, in _download_and_prepare
) from None
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6/merged_train.json'
```
just before generating the splits. I checked `fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6` file and it's `7z` zip file (similar to downloaded Google drive file) which means it didn't get unzip. Do I need to unzip it separately and then pass the paths for train,dev,test files in `SplitGenerator`?
## Environment info
- `datasets` version: 1.18.4.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.8
- PyArrow version: 5.0.0 | 640 | 57 | Can't extract files from `.7z` zipfile using `download_and_extract`
## Describe the bug
I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error:
```
>>> dataset = load_dataset("./datasets/mantis/")
Using custom data configuration default
Downloading and preparing dataset mantis/default to /Users/bhavitvyamalik/.cache/huggingface/datasets/mantis/default/1.1.0/611affa804ec53e2055a335cc1b8b213bb5a0b5142d919967729d5ee23c6bab4...
Downloading data: 100%|█████████████████████████████████████████████████████████| 77.2M/77.2M [00:23<00:00, 3.28MB/s]
/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/load.py", line 1745, in load_dataset
use_auth_token=use_auth_token,
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 595, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 690, in _download_and_prepare
) from None
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6/merged_train.json'
```
just before generating the splits. I checked `fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6` file and it's `7z` zip file (similar to downloaded Google drive file) which means it didn't get unzip. Do I need to unzip it separately and then pass the paths for train,dev,test files in `SplitGenerator`?
## Environment info
- `datasets` version: 1.18.4.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.8
- PyArrow version: 5.0.0
Initially, I thought of solving this without any external dependency. Almost everywhere I saw `lzma` can be used for this but there is a caveat that lzma doesn’t work with 7z archives but only single files. In my case the 7z archive has multiple files so it didn't work. Is it fine to use external library here? | [
-1.1831490993499756,
-0.8560053706169128,
-0.6608892679214478,
1.385361671447754,
-0.11431881040334702,
-1.2410014867782593,
0.12204492092132568,
-1.115902304649353,
1.5976307392120361,
-0.6959618330001831,
0.22364257276058197,
-1.6843518018722534,
-0.11148616671562195,
-0.49245500564575195,
-0.7164862751960754,
-0.893682599067688,
-0.31273841857910156,
-0.882840096950531,
0.9633342623710632,
2.526712656021118,
1.272980809211731,
-1.335212230682373,
2.739835262298584,
0.6783918142318726,
-0.35866105556488037,
-1.0086864233016968,
0.5620375871658325,
0.09445694833993912,
-1.193806529045105,
-0.4323948621749878,
-0.866909384727478,
0.062244489789009094,
-0.5858315229415894,
-0.36237633228302,
0.017079228535294533,
0.48935210704803467,
-0.31232792139053345,
-0.2865344285964966,
-0.6340864896774292,
-0.739423394203186,
0.4872322082519531,
-0.3303990364074707,
0.936124324798584,
-0.32879650592803955,
1.7808430194854736,
-0.5644698143005371,
0.37286603450775146,
0.694770336151123,
1.2646390199661255,
0.15335121750831604,
0.18705321848392487,
0.19557292759418488,
0.352508008480072,
-0.050967540591955185,
0.487895131111145,
1.249952793121338,
0.5387247204780579,
0.505875825881958,
0.6681371927261353,
-2.2133188247680664,
1.350553274154663,
-0.8778444528579712,
0.24944446980953217,
1.3530735969543457,
-0.8163816332817078,
0.28469717502593994,
-1.8532732725143433,
-0.05895961821079254,
0.5752405524253845,
-2.270873546600342,
0.263466477394104,
-1.3220115900039673,
-0.5298230648040771,
0.8914028406143188,
0.3093489408493042,
-1.1384620666503906,
0.2658573389053345,
-0.5524535775184631,
1.1248838901519775,
0.4658306837081909,
1.1516271829605103,
-1.607909083366394,
-0.053386032581329346,
-0.1857590228319168,
0.043772242963314056,
-1.3736151456832886,
-1.6774230003356934,
0.5458151698112488,
0.5665353536605835,
0.7246291637420654,
-0.11735295504331589,
1.055997610092163,
-1.0621047019958496,
0.7673234343528748,
-0.894899308681488,
-1.6086534261703491,
-1.3566683530807495,
-2.352027416229248,
-2.326564073562622,
0.7981695532798767,
-0.5086486339569092,
-0.46005773544311523,
2.0121374130249023,
-0.985572099685669,
-1.765798807144165,
1.0075440406799316,
0.34226226806640625,
0.0418303944170475,
2.361398696899414,
0.24904505908489227,
-0.7378305196762085,
0.4156832695007324,
-0.6650341153144836,
0.822344958782196,
-0.2835918068885803,
1.3292288780212402,
0.5363723039627075,
-0.9835581183433533,
1.5126105546951294,
-0.43970775604248047,
0.6153920292854309,
-0.6161918044090271,
-0.5969024896621704,
-0.8226107358932495,
0.21327538788318634,
1.8578977584838867,
-0.4003586173057556,
1.5337077379226685,
-0.298009991645813,
-1.6030664443969727,
-1.61127769947052,
0.8993884325027466,
0.5209042429924011,
-0.8625786900520325,
0.06894729286432266,
-0.5368276238441467,
0.12599565088748932,
-0.0721660628914833,
1.1239464282989502,
1.2467697858810425,
0.7047505378723145,
-0.2962223291397095,
-0.7949262857437134,
0.2248842716217041,
-0.1552315354347229,
-0.6529268622398376,
-1.8138445615768433,
-0.26872992515563965,
0.26418811082839966,
0.6339814066886902,
-1.1984971761703491,
1.7959269285202026,
0.8864361047744751,
2.01678729057312,
0.9831488728523254,
-0.38700932264328003,
1.487043857574463,
-0.011644790880382061,
1.8187276124954224,
-0.4779329299926758,
0.5948367714881897,
-0.37300872802734375,
-1.1351726055145264,
0.8934348821640015,
-0.35764604806900024,
-1.9798004627227783,
-0.82994544506073,
-0.7779891490936279,
-0.19248753786087036,
-0.7099206447601318,
0.8138989210128784,
-0.26779627799987793,
-1.476860761642456,
0.05953989177942276,
-0.6404536366462708,
0.12902113795280457,
-1.2058939933776855,
0.18305405974388123,
0.7095150947570801,
-0.6670429706573486,
-0.10738784819841385,
-0.18478664755821228,
-1.2375658750534058,
-0.4813494086265564,
0.35442590713500977,
1.9652875661849976,
-0.5629340410232544,
0.9744846224784851,
1.080642580986023,
-0.7550442814826965,
0.20926979184150696,
0.2702500820159912,
-0.31366652250289917,
0.7725073099136353,
-1.0745478868484497,
-0.3710808753967285,
1.1465578079223633,
-0.21651655435562134,
-0.6506868600845337,
1.4026391506195068,
0.8495276570320129,
-1.08600652217865,
-0.16679389774799347,
-0.23548409342765808,
-0.8111491799354553,
-0.023564767092466354,
-1.4744048118591309,
-0.12129563093185425,
0.38983672857284546,
-1.4628392457962036,
-0.3872096538543701,
-0.27589887380599976,
1.354122281074524,
-0.2501148581504822,
1.41038978099823,
-0.23150452971458435,
-0.12896522879600525,
-0.30156493186950684,
-0.5044782161712646,
0.15044192969799042,
-0.21297182142734528,
-0.558352530002594,
0.15253624320030212,
-0.9004368185997009,
0.2591692805290222,
1.502537727355957,
0.35258907079696655,
0.014842687174677849,
0.4723125696182251,
1.105206847190857,
0.36819612979888916,
-0.041173115372657776,
-0.8313500881195068,
-1.5194872617721558,
1.9348775148391724,
-1.4326623678207397,
1.907396912574768,
0.813165009021759,
-0.10441913455724716,
-1.773735523223877,
-1.9030702114105225,
1.3233062028884888,
1.0735234022140503,
2.4065194129943848,
0.5508292317390442,
0.44061964750289917,
-0.7539318799972534,
-0.7772061824798584,
0.3656250238418579,
-0.9858989715576172,
-0.6205342411994934,
0.1948782354593277,
2.310180902481079,
1.7657220363616943,
-0.622268557548523,
-0.2253534495830536,
-0.8453707098960876,
1.2672828435897827,
-0.19188569486141205,
0.1867208480834961,
2.107640027999878,
-0.3061811327934265,
-1.0399093627929688,
1.3472577333450317,
-2.364027738571167,
0.251361608505249,
2.0342953205108643,
0.3078131079673767,
0.1401372104883194,
-1.4060440063476562,
-0.6493340730667114,
-0.3269937038421631,
-0.518589198589325,
-1.236386775970459,
0.5974748730659485,
-0.2778272032737732,
-0.8699812889099121,
-1.4728436470031738,
0.08446450531482697,
-1.17622971534729,
-1.7872118949890137,
0.3889405131340027,
1.9808745384216309,
2.0850651264190674,
-0.8167510032653809,
1.424977421760559,
-0.2531241178512573,
-0.007225054781883955,
1.2459834814071655,
1.3836243152618408,
3.1592884063720703,
1.8002541065216064,
-1.2764898538589478,
0.7310777902603149,
-0.171571284532547,
-0.49440324306488037,
1.1539186239242554,
-1.125442624092102,
1.1383410692214966,
-0.1930517703294754,
-1.209826111793518,
-1.2815566062927246,
0.9950772523880005,
0.4580156207084656,
0.0565982311964035,
-0.5141950845718384,
1.2562400102615356,
0.11526092141866684,
1.4022787809371948,
0.5500930547714233,
-0.3813478946685791,
0.5350326895713806,
-0.39350569248199463,
-0.6043716669082642,
1.6579350233078003,
0.15102867782115936,
-1.5088783502578735,
-2.3481829166412354,
-0.3071137070655823,
-0.8238329291343689,
0.03366634249687195,
-0.6397951245307922,
-1.1361194849014282,
1.5654406547546387,
0.3994428515434265,
-1.250204086303711,
-0.30154067277908325,
-0.3430919647216797,
-0.572097897529602,
2.583984375,
-1.2553104162216187,
-0.0246955044567585,
-0.9402685761451721,
-0.573225736618042,
1.6106706857681274,
-1.2151795625686646,
-0.16878491640090942,
-1.0655759572982788,
-0.6171218752861023,
-1.3659414052963257,
-0.49829214811325073,
0.07885909825563431,
-1.001827359199524,
0.7515208125114441,
0.16292704641819,
-1.0967785120010376,
-0.2992745041847229,
-0.8832908272743225,
1.0792386531829834,
-0.10975579172372818,
0.21848167479038239,
1.7933834791183472,
0.4042106866836548,
-0.42852890491485596,
0.7053403854370117,
1.18830144405365,
0.5723550915718079,
-0.6816100478172302,
0.02954583242535591,
-0.7618899941444397,
0.34965741634368896,
-1.4822020530700684,
0.2330787181854248,
-2.9330625534057617,
0.8009533286094666,
-0.15431392192840576,
-0.08489909768104553,
-0.0372723713517189,
-1.3236390352249146,
1.0720233917236328,
2.6082422733306885,
-1.1976829767227173,
0.5038950443267822,
0.4668886065483093,
1.1316864490509033,
-1.6023935079574585,
0.22522634267807007,
-0.4556102752685547,
2.0701751708984375,
0.08196176588535309,
1.2969475984573364,
-0.5129722356796265,
-2.1966044902801514,
0.6045283675193787,
-1.2116799354553223,
-1.050653100013733,
0.8585214018821716,
-0.9072028994560242,
0.2645530700683594,
-1.4390747547149658,
-0.20698267221450806,
-1.0198019742965698,
-1.1848773956298828,
0.7609818577766418,
0.11992011964321136,
0.4177546501159668,
-0.5660065412521362,
0.4323594570159912,
-2.205789566040039,
-1.385381817817688,
-0.19398120045661926,
-0.9705165028572083,
0.5902050137519836,
-0.3454907536506653,
0.563794732093811,
-0.11400970816612244,
0.10438902676105499,
0.3224223256111145,
1.4603177309036255,
3.3654770851135254,
0.10716328769922256,
0.20352350175380707,
-0.05872194841504097,
-1.008082628250122,
1.4435033798217773,
0.9525463581085205,
-0.11797048896551132,
-0.5545135140419006,
-1.0479669570922852,
1.27297842502594,
2.0076019763946533,
1.1662025451660156,
0.06757652759552002,
-0.8838880062103271,
-0.7890851497650146,
-0.0042378525249660015,
0.18022194504737854,
0.5444903373718262,
0.8992930054664612,
-0.04595481604337692,
0.09913665801286697,
1.303587555885315,
1.209817886352539,
-0.3703268766403198,
0.4259389042854309,
-0.9601153135299683,
-0.43642765283584595,
0.38630932569503784,
0.16079872846603394,
0.0797431543469429,
0.5531153082847595,
-1.0239243507385254,
-0.2909697890281677,
-0.2915528416633606,
-0.9256747961044312,
-0.7300302982330322,
-0.46088916063308716,
-0.371859073638916,
1.5603982210159302,
0.08764681220054626,
-0.5079419612884521,
0.0689607486128807,
-0.7142033576965332,
-0.19399021565914154,
-1.128028154373169,
0.1359061300754547,
-0.16544753313064575,
-0.05778980627655983,
-0.13479728996753693,
1.6542011499404907,
-0.9885451793670654,
-2.0825040340423584,
0.17569853365421295,
0.31969016790390015,
-0.4256453514099121,
0.21379004418849945,
1.723455786705017,
0.4951843023300171,
1.4451041221618652,
1.237896203994751,
0.9875918030738831,
-0.6387404799461365,
-1.1963398456573486,
0.7399898171424866,
0.9090621471405029,
-1.2924119234085083,
0.9097912311553955,
-0.11679352819919586,
-0.5333901643753052,
0.7013408541679382,
1.3498420715332031,
0.4060579538345337,
-2.0693373680114746,
0.8921679854393005,
-0.9417667984962463,
0.745730459690094,
0.6622294783592224,
0.8212644457817078,
0.28477180004119873,
0.8752631545066833,
-1.2396341562271118,
-1.1296038627624512,
-0.7605353593826294,
-0.648837149143219,
1.9695274829864502,
-0.197560116648674,
0.5010536909103394,
-0.15653134882450104,
-1.1719540357589722,
-0.21272343397140503,
0.7902410626411438,
0.438212513923645,
-0.4012138843536377,
0.8434877991676331,
-0.6281658411026001,
-0.9366948008537292,
-1.2617994546890259,
-0.4036189317703247,
-1.0103951692581177,
-0.8943416476249695,
0.995305061340332,
0.7681259512901306,
0.3814792037010193,
1.9132027626037598,
0.5665299296379089,
0.3821333050727844,
-2.636653423309326,
0.8899502158164978,
0.3325974941253662,
-0.08320536464452744,
0.9314470291137695,
0.27435028553009033,
1.1661436557769775,
-0.009711137041449547,
0.6090847849845886,
-2.3292713165283203,
2.2157063484191895,
-0.19263692200183868,
0.6526354551315308,
-0.03515435755252838,
-0.1993788480758667,
1.1252176761627197,
0.5963122248649597,
0.5157303810119629,
-1.1507320404052734,
0.7289599180221558,
-0.5539554953575134,
1.074906587600708,
0.9853971004486084,
-0.9048027992248535,
0.11921903491020203,
1.4563379287719727,
0.5024301409721375,
-0.4605950117111206,
-0.9577474594116211,
-0.7974078059196472,
0.9706345796585083,
1.6800607442855835,
-0.1092277243733406,
-0.007242907769978046,
0.830678403377533,
0.6842049956321716,
-1.2680528163909912,
0.12450775504112244,
-0.5922456979751587,
-0.7246333360671997,
1.7811752557754517,
2.0661816596984863,
-0.07929100096225739,
-0.17821438610553741,
-0.7862083315849304,
-1.215418815612793,
0.741519033908844,
-0.10489525645971298,
0.12493094801902771,
0.5938022136688232,
-0.7182478308677673,
1.14678156375885,
0.6085708737373352,
0.9376066327095032,
-0.010320061817765236,
0.3736676573753357,
0.44481807947158813,
-0.34284400939941406,
-1.1377346515655518,
-0.4343118667602539,
-1.171039342880249,
-2.569093942642212,
0.5413758158683777,
-0.22255568206310272,
-1.4669991731643677,
-0.03638144209980965,
-1.0470267534255981,
0.9351011514663696,
-0.649556577205658,
-1.0668480396270752,
-1.4488974809646606,
0.30585533380508423,
-0.1253931224346161,
0.9926007986068726,
-1.6485594511032104,
-0.1763726770877838,
1.2047367095947266,
0.9183733463287354,
-0.581626832485199,
0.9968414306640625,
0.2608177065849304,
1.0166733264923096,
0.789085865020752,
-0.4728473424911499,
0.6401757001876831,
0.09077315777540207,
-1.296372890472412,
0.42914700508117676,
1.224774956703186,
0.15539273619651794,
1.4396480321884155,
-0.41890615224838257,
0.07893477380275726,
0.4583432674407959,
-0.5730201005935669,
-0.5672277808189392,
-0.3576200604438782,
0.6352761387825012,
0.11341194808483124,
-1.0919060707092285,
-0.13991586863994598,
-0.21272051334381104,
-0.2680361270904541,
0.22934938967227936,
-1.527756929397583,
-0.3126552104949951,
-0.3833884000778198,
-0.44420337677001953,
-1.2697629928588867,
0.036256514489650726,
1.3965214490890503,
-0.7415801882743835,
-0.23614202439785004,
0.40734249353408813,
0.37755757570266724,
0.5241778492927551,
0.5707185864448547,
-0.8042367696762085,
-0.32474297285079956,
-0.35538989305496216,
-0.3508771061897278,
0.2747390866279602,
1.2152454853057861,
-0.09912648797035217,
-0.997295618057251,
0.6119566559791565,
-0.3942496180534363,
0.13649345934391022,
1.9899505376815796,
-0.03329888731241226,
-0.693045973777771,
0.29887086153030396,
-0.6983609199523926,
1.7777191400527954,
1.7491340637207031,
1.2714998722076416,
-0.10471754521131516,
-0.7996626496315002,
0.5431396961212158,
-0.2958140969276428,
-0.29635465145111084,
0.9653703570365906,
0.4688420295715332,
-0.24474625289440155,
-1.4872792959213257,
0.5773414373397827,
1.2929846048355103,
-0.8766452670097351,
-0.7505364418029785,
0.02864990383386612,
-0.8632155656814575,
1.1773645877838135,
0.5940050482749939,
0.29227936267852783,
0.28332263231277466,
1.5738425254821777,
0.7206763029098511,
-0.4834633469581604,
0.6197617053985596,
0.4411587119102478,
-0.19012509286403656,
-2.1379668712615967,
-1.0863972902297974,
0.3085097074508667,
-0.4512883424758911,
-1.585759162902832,
1.4111473560333252,
-1.0546762943267822,
-1.019812822341919,
0.5319593548774719,
0.06725793331861496,
1.3273483514785767,
0.3116985559463501,
1.7257862091064453,
2.09479022026062,
0.8617271780967712,
0.29268550872802734,
1.2790822982788086,
-0.08583596348762512,
-0.5325737595558167,
1.8550416231155396,
-0.4580482244491577,
0.49421072006225586,
1.0279288291931152,
-0.3516862392425537,
-1.0408271551132202,
-0.8726032376289368,
-1.2491412162780762,
-0.6701511144638062,
1.2017977237701416,
0.09581567347049713,
-1.049712061882019,
0.16790640354156494,
1.6975877285003662,
0.15286657214164734,
-0.2090618759393692,
0.7417380809783936,
0.46102118492126465,
-0.812526524066925,
-0.10877900570631027,
-0.8547405004501343,
0.5065121054649353,
-0.08646373450756073,
-0.3068031668663025,
0.2102244794368744,
0.5476755499839783,
1.3123522996902466,
-0.07434162497520447,
0.06234974414110184,
1.1439735889434814,
-1.3630770444869995,
1.4850430488586426,
-0.5844746232032776,
0.271797239780426,
-2.4493703842163086,
1.4241925477981567,
-0.759344756603241,
1.9557254314422607,
-2.5646934509277344,
0.4424208402633667,
-0.6036672592163086,
-0.5020295977592468,
0.2859896421432495,
-0.445335328578949,
0.1600026935338974,
-0.12003413587808609,
-0.9633911848068237,
-0.09889133274555206,
-0.6885090470314026,
0.6593920588493347,
1.2072848081588745,
1.4402801990509033,
-1.0827232599258423,
-0.22989490628242493,
-1.7140579223632812,
-0.24368539452552795,
-0.7186417579650879,
0.29319047927856445,
-1.9716485738754272,
-0.19904008507728577,
-2.015073299407959,
-2.377448558807373,
-1.3926435708999634,
-0.8099985718727112,
0.9985144138336182,
0.16299782693386078,
-1.009265661239624,
1.2080916166305542,
-0.31676989793777466,
-1.7778745889663696,
1.1283345222473145,
-2.1492300033569336
] |
https://github.com/huggingface/datasets/issues/4670 | Can't extract files from `.7z` zipfile using `download_and_extract` | Hi @bhavitvyamalik, thanks for your investigation.
On Monday, I started a PR that will eventually close this issue as well: I'm linking it to this.
- #4672
Let me know what you think. | ## Describe the bug
I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error:
```
>>> dataset = load_dataset("./datasets/mantis/")
Using custom data configuration default
Downloading and preparing dataset mantis/default to /Users/bhavitvyamalik/.cache/huggingface/datasets/mantis/default/1.1.0/611affa804ec53e2055a335cc1b8b213bb5a0b5142d919967729d5ee23c6bab4...
Downloading data: 100%|█████████████████████████████████████████████████████████| 77.2M/77.2M [00:23<00:00, 3.28MB/s]
/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/load.py", line 1745, in load_dataset
use_auth_token=use_auth_token,
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 595, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 690, in _download_and_prepare
) from None
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6/merged_train.json'
```
just before generating the splits. I checked `fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6` file and it's `7z` zip file (similar to downloaded Google drive file) which means it didn't get unzip. Do I need to unzip it separately and then pass the paths for train,dev,test files in `SplitGenerator`?
## Environment info
- `datasets` version: 1.18.4.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.8
- PyArrow version: 5.0.0 | 640 | 33 | Can't extract files from `.7z` zipfile using `download_and_extract`
## Describe the bug
I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error:
```
>>> dataset = load_dataset("./datasets/mantis/")
Using custom data configuration default
Downloading and preparing dataset mantis/default to /Users/bhavitvyamalik/.cache/huggingface/datasets/mantis/default/1.1.0/611affa804ec53e2055a335cc1b8b213bb5a0b5142d919967729d5ee23c6bab4...
Downloading data: 100%|█████████████████████████████████████████████████████████| 77.2M/77.2M [00:23<00:00, 3.28MB/s]
/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/load.py", line 1745, in load_dataset
use_auth_token=use_auth_token,
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 595, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/bhavitvyamalik/Desktop/work/hf/datasets/src/datasets/builder.py", line 690, in _download_and_prepare
) from None
OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/Users/bhavitvyamalik/.cache/huggingface/datasets/downloads/fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6/merged_train.json'
```
just before generating the splits. I checked `fc3d70123c9de8407587a59aa426c37819cf2bf016795d33270e8a1d558a34e6` file and it's `7z` zip file (similar to downloaded Google drive file) which means it didn't get unzip. Do I need to unzip it separately and then pass the paths for train,dev,test files in `SplitGenerator`?
## Environment info
- `datasets` version: 1.18.4.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.8
- PyArrow version: 5.0.0
Hi @bhavitvyamalik, thanks for your investigation.
On Monday, I started a PR that will eventually close this issue as well: I'm linking it to this.
- #4672
Let me know what you think. | [
-1.1831490993499756,
-0.8560053706169128,
-0.6608892679214478,
1.385361671447754,
-0.11431881040334702,
-1.2410014867782593,
0.12204492092132568,
-1.115902304649353,
1.5976307392120361,
-0.6959618330001831,
0.22364257276058197,
-1.6843518018722534,
-0.11148616671562195,
-0.49245500564575195,
-0.7164862751960754,
-0.893682599067688,
-0.31273841857910156,
-0.882840096950531,
0.9633342623710632,
2.526712656021118,
1.272980809211731,
-1.335212230682373,
2.739835262298584,
0.6783918142318726,
-0.35866105556488037,
-1.0086864233016968,
0.5620375871658325,
0.09445694833993912,
-1.193806529045105,
-0.4323948621749878,
-0.866909384727478,
0.062244489789009094,
-0.5858315229415894,
-0.36237633228302,
0.017079228535294533,
0.48935210704803467,
-0.31232792139053345,
-0.2865344285964966,
-0.6340864896774292,
-0.739423394203186,
0.4872322082519531,
-0.3303990364074707,
0.936124324798584,
-0.32879650592803955,
1.7808430194854736,
-0.5644698143005371,
0.37286603450775146,
0.694770336151123,
1.2646390199661255,
0.15335121750831604,
0.18705321848392487,
0.19557292759418488,
0.352508008480072,
-0.050967540591955185,
0.487895131111145,
1.249952793121338,
0.5387247204780579,
0.505875825881958,
0.6681371927261353,
-2.2133188247680664,
1.350553274154663,
-0.8778444528579712,
0.24944446980953217,
1.3530735969543457,
-0.8163816332817078,
0.28469717502593994,
-1.8532732725143433,
-0.05895961821079254,
0.5752405524253845,
-2.270873546600342,
0.263466477394104,
-1.3220115900039673,
-0.5298230648040771,
0.8914028406143188,
0.3093489408493042,
-1.1384620666503906,
0.2658573389053345,
-0.5524535775184631,
1.1248838901519775,
0.4658306837081909,
1.1516271829605103,
-1.607909083366394,
-0.053386032581329346,
-0.1857590228319168,
0.043772242963314056,
-1.3736151456832886,
-1.6774230003356934,
0.5458151698112488,
0.5665353536605835,
0.7246291637420654,
-0.11735295504331589,
1.055997610092163,
-1.0621047019958496,
0.7673234343528748,
-0.894899308681488,
-1.6086534261703491,
-1.3566683530807495,
-2.352027416229248,
-2.326564073562622,
0.7981695532798767,
-0.5086486339569092,
-0.46005773544311523,
2.0121374130249023,
-0.985572099685669,
-1.765798807144165,
1.0075440406799316,
0.34226226806640625,
0.0418303944170475,
2.361398696899414,
0.24904505908489227,
-0.7378305196762085,
0.4156832695007324,
-0.6650341153144836,
0.822344958782196,
-0.2835918068885803,
1.3292288780212402,
0.5363723039627075,
-0.9835581183433533,
1.5126105546951294,
-0.43970775604248047,
0.6153920292854309,
-0.6161918044090271,
-0.5969024896621704,
-0.8226107358932495,
0.21327538788318634,
1.8578977584838867,
-0.4003586173057556,
1.5337077379226685,
-0.298009991645813,
-1.6030664443969727,
-1.61127769947052,
0.8993884325027466,
0.5209042429924011,
-0.8625786900520325,
0.06894729286432266,
-0.5368276238441467,
0.12599565088748932,
-0.0721660628914833,
1.1239464282989502,
1.2467697858810425,
0.7047505378723145,
-0.2962223291397095,
-0.7949262857437134,
0.2248842716217041,
-0.1552315354347229,
-0.6529268622398376,
-1.8138445615768433,
-0.26872992515563965,
0.26418811082839966,
0.6339814066886902,
-1.1984971761703491,
1.7959269285202026,
0.8864361047744751,
2.01678729057312,
0.9831488728523254,
-0.38700932264328003,
1.487043857574463,
-0.011644790880382061,
1.8187276124954224,
-0.4779329299926758,
0.5948367714881897,
-0.37300872802734375,
-1.1351726055145264,
0.8934348821640015,
-0.35764604806900024,
-1.9798004627227783,
-0.82994544506073,
-0.7779891490936279,
-0.19248753786087036,
-0.7099206447601318,
0.8138989210128784,
-0.26779627799987793,
-1.476860761642456,
0.05953989177942276,
-0.6404536366462708,
0.12902113795280457,
-1.2058939933776855,
0.18305405974388123,
0.7095150947570801,
-0.6670429706573486,
-0.10738784819841385,
-0.18478664755821228,
-1.2375658750534058,
-0.4813494086265564,
0.35442590713500977,
1.9652875661849976,
-0.5629340410232544,
0.9744846224784851,
1.080642580986023,
-0.7550442814826965,
0.20926979184150696,
0.2702500820159912,
-0.31366652250289917,
0.7725073099136353,
-1.0745478868484497,
-0.3710808753967285,
1.1465578079223633,
-0.21651655435562134,
-0.6506868600845337,
1.4026391506195068,
0.8495276570320129,
-1.08600652217865,
-0.16679389774799347,
-0.23548409342765808,
-0.8111491799354553,
-0.023564767092466354,
-1.4744048118591309,
-0.12129563093185425,
0.38983672857284546,
-1.4628392457962036,
-0.3872096538543701,
-0.27589887380599976,
1.354122281074524,
-0.2501148581504822,
1.41038978099823,
-0.23150452971458435,
-0.12896522879600525,
-0.30156493186950684,
-0.5044782161712646,
0.15044192969799042,
-0.21297182142734528,
-0.558352530002594,
0.15253624320030212,
-0.9004368185997009,
0.2591692805290222,
1.502537727355957,
0.35258907079696655,
0.014842687174677849,
0.4723125696182251,
1.105206847190857,
0.36819612979888916,
-0.041173115372657776,
-0.8313500881195068,
-1.5194872617721558,
1.9348775148391724,
-1.4326623678207397,
1.907396912574768,
0.813165009021759,
-0.10441913455724716,
-1.773735523223877,
-1.9030702114105225,
1.3233062028884888,
1.0735234022140503,
2.4065194129943848,
0.5508292317390442,
0.44061964750289917,
-0.7539318799972534,
-0.7772061824798584,
0.3656250238418579,
-0.9858989715576172,
-0.6205342411994934,
0.1948782354593277,
2.310180902481079,
1.7657220363616943,
-0.622268557548523,
-0.2253534495830536,
-0.8453707098960876,
1.2672828435897827,
-0.19188569486141205,
0.1867208480834961,
2.107640027999878,
-0.3061811327934265,
-1.0399093627929688,
1.3472577333450317,
-2.364027738571167,
0.251361608505249,
2.0342953205108643,
0.3078131079673767,
0.1401372104883194,
-1.4060440063476562,
-0.6493340730667114,
-0.3269937038421631,
-0.518589198589325,
-1.236386775970459,
0.5974748730659485,
-0.2778272032737732,
-0.8699812889099121,
-1.4728436470031738,
0.08446450531482697,
-1.17622971534729,
-1.7872118949890137,
0.3889405131340027,
1.9808745384216309,
2.0850651264190674,
-0.8167510032653809,
1.424977421760559,
-0.2531241178512573,
-0.007225054781883955,
1.2459834814071655,
1.3836243152618408,
3.1592884063720703,
1.8002541065216064,
-1.2764898538589478,
0.7310777902603149,
-0.171571284532547,
-0.49440324306488037,
1.1539186239242554,
-1.125442624092102,
1.1383410692214966,
-0.1930517703294754,
-1.209826111793518,
-1.2815566062927246,
0.9950772523880005,
0.4580156207084656,
0.0565982311964035,
-0.5141950845718384,
1.2562400102615356,
0.11526092141866684,
1.4022787809371948,
0.5500930547714233,
-0.3813478946685791,
0.5350326895713806,
-0.39350569248199463,
-0.6043716669082642,
1.6579350233078003,
0.15102867782115936,
-1.5088783502578735,
-2.3481829166412354,
-0.3071137070655823,
-0.8238329291343689,
0.03366634249687195,
-0.6397951245307922,
-1.1361194849014282,
1.5654406547546387,
0.3994428515434265,
-1.250204086303711,
-0.30154067277908325,
-0.3430919647216797,
-0.572097897529602,
2.583984375,
-1.2553104162216187,
-0.0246955044567585,
-0.9402685761451721,
-0.573225736618042,
1.6106706857681274,
-1.2151795625686646,
-0.16878491640090942,
-1.0655759572982788,
-0.6171218752861023,
-1.3659414052963257,
-0.49829214811325073,
0.07885909825563431,
-1.001827359199524,
0.7515208125114441,
0.16292704641819,
-1.0967785120010376,
-0.2992745041847229,
-0.8832908272743225,
1.0792386531829834,
-0.10975579172372818,
0.21848167479038239,
1.7933834791183472,
0.4042106866836548,
-0.42852890491485596,
0.7053403854370117,
1.18830144405365,
0.5723550915718079,
-0.6816100478172302,
0.02954583242535591,
-0.7618899941444397,
0.34965741634368896,
-1.4822020530700684,
0.2330787181854248,
-2.9330625534057617,
0.8009533286094666,
-0.15431392192840576,
-0.08489909768104553,
-0.0372723713517189,
-1.3236390352249146,
1.0720233917236328,
2.6082422733306885,
-1.1976829767227173,
0.5038950443267822,
0.4668886065483093,
1.1316864490509033,
-1.6023935079574585,
0.22522634267807007,
-0.4556102752685547,
2.0701751708984375,
0.08196176588535309,
1.2969475984573364,
-0.5129722356796265,
-2.1966044902801514,
0.6045283675193787,
-1.2116799354553223,
-1.050653100013733,
0.8585214018821716,
-0.9072028994560242,
0.2645530700683594,
-1.4390747547149658,
-0.20698267221450806,
-1.0198019742965698,
-1.1848773956298828,
0.7609818577766418,
0.11992011964321136,
0.4177546501159668,
-0.5660065412521362,
0.4323594570159912,
-2.205789566040039,
-1.385381817817688,
-0.19398120045661926,
-0.9705165028572083,
0.5902050137519836,
-0.3454907536506653,
0.563794732093811,
-0.11400970816612244,
0.10438902676105499,
0.3224223256111145,
1.4603177309036255,
3.3654770851135254,
0.10716328769922256,
0.20352350175380707,
-0.05872194841504097,
-1.008082628250122,
1.4435033798217773,
0.9525463581085205,
-0.11797048896551132,
-0.5545135140419006,
-1.0479669570922852,
1.27297842502594,
2.0076019763946533,
1.1662025451660156,
0.06757652759552002,
-0.8838880062103271,
-0.7890851497650146,
-0.0042378525249660015,
0.18022194504737854,
0.5444903373718262,
0.8992930054664612,
-0.04595481604337692,
0.09913665801286697,
1.303587555885315,
1.209817886352539,
-0.3703268766403198,
0.4259389042854309,
-0.9601153135299683,
-0.43642765283584595,
0.38630932569503784,
0.16079872846603394,
0.0797431543469429,
0.5531153082847595,
-1.0239243507385254,
-0.2909697890281677,
-0.2915528416633606,
-0.9256747961044312,
-0.7300302982330322,
-0.46088916063308716,
-0.371859073638916,
1.5603982210159302,
0.08764681220054626,
-0.5079419612884521,
0.0689607486128807,
-0.7142033576965332,
-0.19399021565914154,
-1.128028154373169,
0.1359061300754547,
-0.16544753313064575,
-0.05778980627655983,
-0.13479728996753693,
1.6542011499404907,
-0.9885451793670654,
-2.0825040340423584,
0.17569853365421295,
0.31969016790390015,
-0.4256453514099121,
0.21379004418849945,
1.723455786705017,
0.4951843023300171,
1.4451041221618652,
1.237896203994751,
0.9875918030738831,
-0.6387404799461365,
-1.1963398456573486,
0.7399898171424866,
0.9090621471405029,
-1.2924119234085083,
0.9097912311553955,
-0.11679352819919586,
-0.5333901643753052,
0.7013408541679382,
1.3498420715332031,
0.4060579538345337,
-2.0693373680114746,
0.8921679854393005,
-0.9417667984962463,
0.745730459690094,
0.6622294783592224,
0.8212644457817078,
0.28477180004119873,
0.8752631545066833,
-1.2396341562271118,
-1.1296038627624512,
-0.7605353593826294,
-0.648837149143219,
1.9695274829864502,
-0.197560116648674,
0.5010536909103394,
-0.15653134882450104,
-1.1719540357589722,
-0.21272343397140503,
0.7902410626411438,
0.438212513923645,
-0.4012138843536377,
0.8434877991676331,
-0.6281658411026001,
-0.9366948008537292,
-1.2617994546890259,
-0.4036189317703247,
-1.0103951692581177,
-0.8943416476249695,
0.995305061340332,
0.7681259512901306,
0.3814792037010193,
1.9132027626037598,
0.5665299296379089,
0.3821333050727844,
-2.636653423309326,
0.8899502158164978,
0.3325974941253662,
-0.08320536464452744,
0.9314470291137695,
0.27435028553009033,
1.1661436557769775,
-0.009711137041449547,
0.6090847849845886,
-2.3292713165283203,
2.2157063484191895,
-0.19263692200183868,
0.6526354551315308,
-0.03515435755252838,
-0.1993788480758667,
1.1252176761627197,
0.5963122248649597,
0.5157303810119629,
-1.1507320404052734,
0.7289599180221558,
-0.5539554953575134,
1.074906587600708,
0.9853971004486084,
-0.9048027992248535,
0.11921903491020203,
1.4563379287719727,
0.5024301409721375,
-0.4605950117111206,
-0.9577474594116211,
-0.7974078059196472,
0.9706345796585083,
1.6800607442855835,
-0.1092277243733406,
-0.007242907769978046,
0.830678403377533,
0.6842049956321716,
-1.2680528163909912,
0.12450775504112244,
-0.5922456979751587,
-0.7246333360671997,
1.7811752557754517,
2.0661816596984863,
-0.07929100096225739,
-0.17821438610553741,
-0.7862083315849304,
-1.215418815612793,
0.741519033908844,
-0.10489525645971298,
0.12493094801902771,
0.5938022136688232,
-0.7182478308677673,
1.14678156375885,
0.6085708737373352,
0.9376066327095032,
-0.010320061817765236,
0.3736676573753357,
0.44481807947158813,
-0.34284400939941406,
-1.1377346515655518,
-0.4343118667602539,
-1.171039342880249,
-2.569093942642212,
0.5413758158683777,
-0.22255568206310272,
-1.4669991731643677,
-0.03638144209980965,
-1.0470267534255981,
0.9351011514663696,
-0.649556577205658,
-1.0668480396270752,
-1.4488974809646606,
0.30585533380508423,
-0.1253931224346161,
0.9926007986068726,
-1.6485594511032104,
-0.1763726770877838,
1.2047367095947266,
0.9183733463287354,
-0.581626832485199,
0.9968414306640625,
0.2608177065849304,
1.0166733264923096,
0.789085865020752,
-0.4728473424911499,
0.6401757001876831,
0.09077315777540207,
-1.296372890472412,
0.42914700508117676,
1.224774956703186,
0.15539273619651794,
1.4396480321884155,
-0.41890615224838257,
0.07893477380275726,
0.4583432674407959,
-0.5730201005935669,
-0.5672277808189392,
-0.3576200604438782,
0.6352761387825012,
0.11341194808483124,
-1.0919060707092285,
-0.13991586863994598,
-0.21272051334381104,
-0.2680361270904541,
0.22934938967227936,
-1.527756929397583,
-0.3126552104949951,
-0.3833884000778198,
-0.44420337677001953,
-1.2697629928588867,
0.036256514489650726,
1.3965214490890503,
-0.7415801882743835,
-0.23614202439785004,
0.40734249353408813,
0.37755757570266724,
0.5241778492927551,
0.5707185864448547,
-0.8042367696762085,
-0.32474297285079956,
-0.35538989305496216,
-0.3508771061897278,
0.2747390866279602,
1.2152454853057861,
-0.09912648797035217,
-0.997295618057251,
0.6119566559791565,
-0.3942496180534363,
0.13649345934391022,
1.9899505376815796,
-0.03329888731241226,
-0.693045973777771,
0.29887086153030396,
-0.6983609199523926,
1.7777191400527954,
1.7491340637207031,
1.2714998722076416,
-0.10471754521131516,
-0.7996626496315002,
0.5431396961212158,
-0.2958140969276428,
-0.29635465145111084,
0.9653703570365906,
0.4688420295715332,
-0.24474625289440155,
-1.4872792959213257,
0.5773414373397827,
1.2929846048355103,
-0.8766452670097351,
-0.7505364418029785,
0.02864990383386612,
-0.8632155656814575,
1.1773645877838135,
0.5940050482749939,
0.29227936267852783,
0.28332263231277466,
1.5738425254821777,
0.7206763029098511,
-0.4834633469581604,
0.6197617053985596,
0.4411587119102478,
-0.19012509286403656,
-2.1379668712615967,
-1.0863972902297974,
0.3085097074508667,
-0.4512883424758911,
-1.585759162902832,
1.4111473560333252,
-1.0546762943267822,
-1.019812822341919,
0.5319593548774719,
0.06725793331861496,
1.3273483514785767,
0.3116985559463501,
1.7257862091064453,
2.09479022026062,
0.8617271780967712,
0.29268550872802734,
1.2790822982788086,
-0.08583596348762512,
-0.5325737595558167,
1.8550416231155396,
-0.4580482244491577,
0.49421072006225586,
1.0279288291931152,
-0.3516862392425537,
-1.0408271551132202,
-0.8726032376289368,
-1.2491412162780762,
-0.6701511144638062,
1.2017977237701416,
0.09581567347049713,
-1.049712061882019,
0.16790640354156494,
1.6975877285003662,
0.15286657214164734,
-0.2090618759393692,
0.7417380809783936,
0.46102118492126465,
-0.812526524066925,
-0.10877900570631027,
-0.8547405004501343,
0.5065121054649353,
-0.08646373450756073,
-0.3068031668663025,
0.2102244794368744,
0.5476755499839783,
1.3123522996902466,
-0.07434162497520447,
0.06234974414110184,
1.1439735889434814,
-1.3630770444869995,
1.4850430488586426,
-0.5844746232032776,
0.271797239780426,
-2.4493703842163086,
1.4241925477981567,
-0.759344756603241,
1.9557254314422607,
-2.5646934509277344,
0.4424208402633667,
-0.6036672592163086,
-0.5020295977592468,
0.2859896421432495,
-0.445335328578949,
0.1600026935338974,
-0.12003413587808609,
-0.9633911848068237,
-0.09889133274555206,
-0.6885090470314026,
0.6593920588493347,
1.2072848081588745,
1.4402801990509033,
-1.0827232599258423,
-0.22989490628242493,
-1.7140579223632812,
-0.24368539452552795,
-0.7186417579650879,
0.29319047927856445,
-1.9716485738754272,
-0.19904008507728577,
-2.015073299407959,
-2.377448558807373,
-1.3926435708999634,
-0.8099985718727112,
0.9985144138336182,
0.16299782693386078,
-1.009265661239624,
1.2080916166305542,
-0.31676989793777466,
-1.7778745889663696,
1.1283345222473145,
-2.1492300033569336
] |
https://github.com/huggingface/datasets/issues/4668 | Dataset Viewer issue for hungnm/multilingual-amazon-review-sentiment-processed | It seems like a private dataset. The viewer is currently not supported on the private datasets. | ### Link
https://huggingface.co/hungnm/multilingual-amazon-review-sentiment
### Description
_No response_
### Owner
Yes | 642 | 16 | Dataset Viewer issue for hungnm/multilingual-amazon-review-sentiment-processed
### Link
https://huggingface.co/hungnm/multilingual-amazon-review-sentiment
### Description
_No response_
### Owner
Yes
It seems like a private dataset. The viewer is currently not supported on the private datasets. | [
-1.044511079788208,
-0.8701752424240112,
-0.7892706394195557,
1.4870320558547974,
-0.15160517394542694,
-1.403130054473877,
0.14434807002544403,
-0.7646801471710205,
1.5751758813858032,
-0.8212715983390808,
0.20920173823833466,
-1.8578170537948608,
-0.12394938617944717,
-0.5372354388237,
-0.5545418858528137,
-0.8522351980209351,
-0.41715699434280396,
-0.5013375878334045,
1.2452704906463623,
2.4650039672851562,
1.1855133771896362,
-1.1187293529510498,
2.775135040283203,
0.6708831191062927,
-0.31648731231689453,
-0.8715466856956482,
0.5008623600006104,
-0.006232135929167271,
-1.4367016553878784,
-0.44302040338516235,
-1.069201111793518,
-0.07649713009595871,
-0.6128726601600647,
-0.4629272520542145,
0.040380366146564484,
0.5470568537712097,
-0.14097696542739868,
-0.43909868597984314,
-0.5541973114013672,
-0.83592689037323,
0.37959614396095276,
-0.3333183228969574,
0.8335738778114319,
-0.5163405537605286,
1.7833553552627563,
-0.5819098353385925,
0.44504597783088684,
0.6365920901298523,
1.1728869676589966,
0.1835007220506668,
-0.06080527603626251,
0.26053354144096375,
0.3027924597263336,
-0.10788536816835403,
0.3990713655948639,
1.17009699344635,
0.37679827213287354,
0.6432773470878601,
0.5109654068946838,
-2.0662648677825928,
1.5580294132232666,
-0.7998849153518677,
0.16013877093791962,
1.5664422512054443,
-1.3509963750839233,
0.5415433049201965,
-1.648071050643921,
-0.01978817582130432,
0.5064153671264648,
-2.16216778755188,
0.2501891553401947,
-1.1557824611663818,
-0.6574935913085938,
0.8907104134559631,
0.5095994472503662,
-1.361985683441162,
-0.08309722691774368,
-0.48740825057029724,
0.9828105568885803,
0.5669263005256653,
1.1928069591522217,
-1.5828478336334229,
0.22011414170265198,
-0.22946134209632874,
-0.05246218293905258,
-1.326498031616211,
-1.478057861328125,
0.6777337193489075,
0.8522268533706665,
0.8336194753646851,
-0.12518402934074402,
0.7943876385688782,
-0.9077931046485901,
0.739488422870636,
-0.6379558444023132,
-1.824169397354126,
-1.2916356325149536,
-2.4559953212738037,
-2.315359354019165,
0.9241092205047607,
-0.34140288829803467,
-0.561460018157959,
1.9632593393325806,
-1.083526849746704,
-1.853681206703186,
1.2819119691848755,
0.033422745764255524,
-0.07739683240652084,
2.4844565391540527,
0.4240682125091553,
-0.5636206269264221,
0.5292484164237976,
-0.996893048286438,
0.7748252749443054,
-0.734868049621582,
1.310083270072937,
0.4335440695285797,
-0.9673340916633606,
1.6722235679626465,
-0.4500468969345093,
0.6160499453544617,
-0.7953137159347534,
-0.5030558109283447,
-0.6918119192123413,
0.3865159749984741,
2.0690667629241943,
-0.3523767590522766,
1.597057580947876,
-0.35191139578819275,
-1.5556732416152954,
-1.4837433099746704,
0.8066858649253845,
0.42898738384246826,
-0.8747677206993103,
0.47213056683540344,
-0.3235251307487488,
0.05918760597705841,
0.09853009134531021,
0.9742698669433594,
1.3343510627746582,
0.6379430294036865,
-0.235297292470932,
-0.7686296701431274,
0.37753820419311523,
0.04624132812023163,
-0.6538411378860474,
-1.6604390144348145,
-0.38064464926719666,
0.10774868726730347,
0.6254934072494507,
-1.2559545040130615,
1.8580024242401123,
0.8246759176254272,
2.072439432144165,
0.9197158217430115,
-0.4038344919681549,
1.3620229959487915,
0.05197843909263611,
1.9131675958633423,
-0.30779188871383667,
0.6830031871795654,
-0.3516845703125,
-1.1139158010482788,
0.672719419002533,
-0.5104159116744995,
-1.7490581274032593,
-0.678240954875946,
-0.9280300736427307,
-0.07437896728515625,
-0.9007583856582642,
1.0825387239456177,
-0.24853534996509552,
-1.3826026916503906,
0.15842489898204803,
-0.7229177951812744,
0.153880774974823,
-1.5297633409500122,
0.23410114645957947,
0.686828076839447,
-0.630089282989502,
0.04158595949411392,
-0.3647012710571289,
-1.4693704843521118,
-0.41358381509780884,
0.39991676807403564,
1.883626937866211,
-0.6660163402557373,
1.088719129562378,
0.8295833468437195,
-0.6931098103523254,
-0.059116020798683167,
0.5169172883033752,
-0.18139898777008057,
0.8317287564277649,
-1.1757856607437134,
-0.3096632659435272,
1.2468159198760986,
-0.36324289441108704,
-0.5849122405052185,
1.4056891202926636,
0.7257785201072693,
-0.998979389667511,
-0.3055201768875122,
-0.3233262002468109,
-0.7530863285064697,
-0.15149253606796265,
-1.6678897142410278,
-0.07842195779085159,
0.21453745663166046,
-1.4882361888885498,
-0.5860388875007629,
-0.2693437933921814,
1.2293413877487183,
0.016721440479159355,
1.2616227865219116,
-0.1583842635154724,
-0.13108503818511963,
-0.5959423780441284,
-0.47557124495506287,
0.25083908438682556,
-0.37718871235847473,
-0.5630646347999573,
0.18009516596794128,
-0.8759561777114868,
0.22009184956550598,
1.5645707845687866,
0.19703425467014313,
0.3238835632801056,
0.7330640554428101,
1.0167723894119263,
0.3185855448246002,
-0.3120737373828888,
-0.8648989796638489,
-1.4967809915542603,
1.7699432373046875,
-1.3714947700500488,
1.8580498695373535,
0.829826831817627,
-0.15760493278503418,
-1.866085171699524,
-2.0135650634765625,
1.3117659091949463,
1.1948236227035522,
2.3522109985351562,
0.6261948347091675,
0.5001153349876404,
-0.8942574858665466,
-0.8174194097518921,
0.1236828938126564,
-1.004593849182129,
-0.8805380463600159,
0.25447192788124084,
2.2563693523406982,
1.5575600862503052,
-0.4761161804199219,
-0.206774041056633,
-1.1250132322311401,
1.1309479475021362,
-0.2522878348827362,
0.10727802664041519,
1.9709004163742065,
-0.38887619972229004,
-0.8424704074859619,
0.911902129650116,
-2.3022468090057373,
0.16088879108428955,
1.9754852056503296,
0.14699402451515198,
0.16899517178535461,
-1.3549309968948364,
-0.9179810881614685,
-0.15678024291992188,
-0.30956265330314636,
-1.163008213043213,
0.5716991424560547,
-0.33905914425849915,
-0.9117990136146545,
-1.4437869787216187,
0.15272074937820435,
-0.8150142431259155,
-1.5418938398361206,
0.17786268889904022,
1.9717108011245728,
2.0282394886016846,
-0.9647122025489807,
1.3674101829528809,
0.03258970379829407,
0.03504471480846405,
1.2570137977600098,
1.1044294834136963,
3.1690611839294434,
2.0808045864105225,
-1.3251906633377075,
0.7883448600769043,
0.04556773602962494,
-0.3742172420024872,
1.2805575132369995,
-1.0895490646362305,
1.2338120937347412,
-0.39422807097435,
-1.3636791706085205,
-1.3200746774673462,
0.8764621019363403,
0.4331062436103821,
-0.14707238972187042,
-0.3769240379333496,
1.3791946172714233,
-0.014846477657556534,
1.4748154878616333,
0.6370798349380493,
-0.4461590647697449,
0.6472358107566833,
-0.45658016204833984,
-0.285609632730484,
1.5884159803390503,
0.24753375351428986,
-1.5702793598175049,
-2.1620521545410156,
-0.030967451632022858,
-0.977906346321106,
-0.024658530950546265,
-0.8166922926902771,
-1.0563347339630127,
1.3983421325683594,
0.6870311498641968,
-1.012213110923767,
-0.3997531235218048,
-0.366313636302948,
-0.6659586429595947,
2.7500557899475098,
-1.38150155544281,
-0.37987470626831055,
-0.9160897135734558,
-0.4008401334285736,
1.8006361722946167,
-1.231241226196289,
-0.161711648106575,
-1.0141370296478271,
-0.6417939066886902,
-1.2348560094833374,
-0.3851373791694641,
-0.04344053566455841,
-0.7182502746582031,
0.6863357424736023,
-0.08552569895982742,
-1.1315020322799683,
-0.09765792638063431,
-0.9531425833702087,
0.9135969877243042,
-0.163344144821167,
0.3478587865829468,
1.8591686487197876,
0.37054169178009033,
-0.3988853991031647,
0.6930077075958252,
1.1552311182022095,
0.4574403464794159,
-0.648645281791687,
0.10722264647483826,
-0.6217191219329834,
0.53680419921875,
-1.2541981935501099,
0.254744291305542,
-2.9511923789978027,
0.5362308025360107,
-0.16885283589363098,
-0.1943168193101883,
-0.1776210516691208,
-1.393269658088684,
1.093855619430542,
2.3094029426574707,
-1.1941920518875122,
0.6824451088905334,
0.202748641371727,
1.355032205581665,
-1.5970284938812256,
0.24029691517353058,
-0.7287113070487976,
2.056729555130005,
0.06833865493535995,
0.9874911308288574,
-0.3599250912666321,
-2.090487480163574,
0.6603785157203674,
-1.2341954708099365,
-0.9132297039031982,
0.8773953914642334,
-0.9294290542602539,
-0.021693658083677292,
-1.2710323333740234,
-0.03585561364889145,
-0.6933301091194153,
-1.2450138330459595,
0.7520727515220642,
0.04971832036972046,
0.6095811128616333,
-0.44390174746513367,
0.34141412377357483,
-2.2946252822875977,
-1.3284130096435547,
-0.36529380083084106,
-0.9216974377632141,
0.3937488794326782,
-0.4830186665058136,
0.7292895913124084,
-0.2541118264198303,
0.10945908725261688,
0.2392180860042572,
1.143174648284912,
3.16815447807312,
0.01682231016457081,
0.27061405777931213,
-0.13944000005722046,
-1.0314874649047852,
1.437551736831665,
1.0381994247436523,
-0.21194589138031006,
-0.6958403587341309,
-0.9469866156578064,
1.4881802797317505,
1.8595937490463257,
1.0391864776611328,
0.19794118404388428,
-0.7886584401130676,
-0.5439910292625427,
-0.0010845484212040901,
0.18057887256145477,
0.3014010787010193,
0.9181289672851562,
0.09263771027326584,
0.17412172257900238,
1.458497405052185,
1.2120647430419922,
-0.3990563750267029,
0.5718641877174377,
-0.9137876629829407,
-0.30123576521873474,
0.4964087903499603,
0.39541783928871155,
0.05220937728881836,
0.186570405960083,
-1.019679069519043,
-0.28193145990371704,
-0.12345578521490097,
-1.0054317712783813,
-0.9168850183486938,
-0.24658511579036713,
-0.415677934885025,
1.7899729013442993,
-0.009628833271563053,
-0.5923440456390381,
-0.07712986320257187,
-0.9110363125801086,
0.008931552991271019,
-1.103243112564087,
0.30823814868927,
-0.17637671530246735,
-0.028662407770752907,
0.06681667268276215,
1.8455846309661865,
-1.1633352041244507,
-2.442267417907715,
0.2836529314517975,
0.27911829948425293,
-0.4489450752735138,
-0.08193079382181168,
1.7256098985671997,
0.5404657125473022,
1.4008002281188965,
1.427939772605896,
1.1983600854873657,
-0.8692123293876648,
-1.2381399869918823,
0.7246661186218262,
0.9614182710647583,
-1.4352694749832153,
0.8138522505760193,
-0.08711104094982147,
-0.5518953800201416,
0.5163077712059021,
1.1938778162002563,
0.4122065603733063,
-1.7917710542678833,
0.7874029874801636,
-1.0328149795532227,
1.0028576850891113,
0.7781763076782227,
1.1079462766647339,
0.2521781325340271,
0.7780805826187134,
-1.2806830406188965,
-1.2502938508987427,
-0.6226617097854614,
-0.5184741020202637,
2.105670928955078,
-0.23331303894519806,
0.4894377589225769,
-0.38966622948646545,
-1.1659024953842163,
0.07680600881576538,
0.7878923416137695,
0.4711170494556427,
-0.3494608998298645,
0.6941617131233215,
-0.6233152747154236,
-1.1474621295928955,
-1.4409366846084595,
-0.5943620204925537,
-0.8079535365104675,
-0.9758014678955078,
1.2563104629516602,
0.7914724349975586,
0.4874383807182312,
1.8458538055419922,
0.4132698178291321,
0.32153013348579407,
-2.569605588912964,
0.9249657988548279,
0.28835606575012207,
0.12509110569953918,
0.8032583594322205,
0.3664698004722595,
0.9848295450210571,
-0.08304832130670547,
0.3217207193374634,
-2.256866693496704,
2.1966559886932373,
-0.22569188475608826,
0.6559680700302124,
-0.003088883589953184,
0.17607825994491577,
1.0239087343215942,
0.5978071689605713,
0.6101486086845398,
-1.0344139337539673,
0.8468272089958191,
-0.41038447618484497,
1.2665163278579712,
0.9101482033729553,
-0.8956270217895508,
0.20277878642082214,
1.357431411743164,
0.5423866510391235,
-0.5358027219772339,
-0.9236313700675964,
-0.8162683248519897,
0.9503672122955322,
1.7408145666122437,
0.0911581888794899,
0.2303249090909958,
0.7927916646003723,
0.4191247224807739,
-1.2889856100082397,
0.036672383546829224,
-0.7177250385284424,
-0.5450456738471985,
1.7370949983596802,
1.9641942977905273,
-0.014176719821989536,
-0.11132041364908218,
-0.7468908429145813,
-1.415791630744934,
0.7232986092567444,
0.031470075249671936,
-0.0309657733887434,
1.0079237222671509,
-0.5782131552696228,
1.1125911474227905,
0.5157487988471985,
0.8173373937606812,
0.24452896416187286,
0.079938143491745,
0.32224133610725403,
-0.24870994687080383,
-1.232340693473816,
-0.2914974093437195,
-1.1035540103912354,
-2.445910692214966,
0.4432731866836548,
-0.39107170701026917,
-1.4744127988815308,
0.11666076630353928,
-1.1377934217453003,
0.9708346724510193,
-0.4548724293708801,
-1.2338780164718628,
-1.489316463470459,
0.05498306453227997,
-0.15208353102207184,
0.749974250793457,
-1.5990859270095825,
-0.23201483488082886,
1.1420202255249023,
1.0199369192123413,
-0.8042603731155396,
1.0669467449188232,
0.21613700687885284,
1.0532596111297607,
0.8112035393714905,
-0.20537346601486206,
0.32712870836257935,
0.057389579713344574,
-1.4225014448165894,
0.5822281837463379,
1.2828112840652466,
0.11075843125581741,
1.471688151359558,
-0.7178058624267578,
-0.07309969514608383,
0.5889075398445129,
-0.3423622250556946,
-0.5949783325195312,
-0.5445250868797302,
0.7685033082962036,
-0.037724100053310394,
-0.8555235862731934,
-0.1243978813290596,
-0.11737243086099625,
0.017369437962770462,
0.18572993576526642,
-1.403741478919983,
-0.12219571322202682,
-0.27819156646728516,
-0.6902267932891846,
-1.2985376119613647,
0.06144589185714722,
1.3012425899505615,
-0.7826180458068848,
-0.1341552585363388,
0.5530518889427185,
0.31706181168556213,
0.44335293769836426,
0.5322714447975159,
-0.6979032158851624,
-0.0843454971909523,
-0.14170628786087036,
-0.24280954897403717,
0.3929797112941742,
1.3734210729599,
-0.2070712298154831,
-1.0390205383300781,
0.6076593995094299,
-0.3659130334854126,
0.17143847048282623,
2.0319221019744873,
0.26134324073791504,
-0.9546778202056885,
0.24061577022075653,
-0.8796274662017822,
2.0902745723724365,
1.5012825727462769,
1.338778018951416,
0.01155785471200943,
-1.0302225351333618,
0.629292368888855,
0.0006475849077105522,
-0.4265461266040802,
0.8166047930717468,
0.2204592078924179,
-0.2959092855453491,
-1.4869053363800049,
0.5928554534912109,
1.2012039422988892,
-0.8585647940635681,
-0.8681601285934448,
-0.013015342876315117,
-0.8447436094284058,
1.04490065574646,
0.8811438083648682,
0.4403528869152069,
0.23646090924739838,
1.7233484983444214,
0.6945762038230896,
-0.5940628051757812,
0.5415234565734863,
0.2950424551963806,
0.003130740486085415,
-1.8912923336029053,
-0.9792183637619019,
0.39249467849731445,
-0.39166635274887085,
-1.3840670585632324,
1.3825085163116455,
-1.1626023054122925,
-1.0646871328353882,
0.5313401818275452,
0.30488327145576477,
1.5713214874267578,
0.1580258160829544,
1.6716604232788086,
1.91255784034729,
0.9335247278213501,
0.13170191645622253,
1.2536855936050415,
-0.20894597470760345,
-0.31127217411994934,
1.6942827701568604,
-0.4691848158836365,
0.5326685905456543,
0.961317777633667,
-0.46746593713760376,
-1.2361012697219849,
-0.707815945148468,
-1.1287531852722168,
-0.8558939099311829,
1.0894060134887695,
0.225167915225029,
-0.9961312413215637,
0.15351127088069916,
1.542476773262024,
0.07039565593004227,
-0.09948726743459702,
0.6256654858589172,
0.47312450408935547,
-0.7938001751899719,
0.057843416929244995,
-0.9302304983139038,
0.5279096961021423,
-0.15205617249011993,
-0.4632439911365509,
0.43792620301246643,
0.5087926387786865,
1.2546885013580322,
0.052781037986278534,
0.3110319972038269,
1.3961095809936523,
-1.25661301612854,
1.4157670736312866,
-0.7937774658203125,
0.03603693097829819,
-2.481205940246582,
1.601102590560913,
-0.7967066168785095,
1.6830590963363647,
-2.8217926025390625,
0.4454954266548157,
-0.44242164492607117,
-0.5693971514701843,
0.15831606090068817,
-0.31056421995162964,
0.03719031810760498,
-0.17530019581317902,
-1.1855342388153076,
0.1249905452132225,
-0.6714324355125427,
0.5092118978500366,
1.2342872619628906,
1.1643846035003662,
-1.0659831762313843,
-0.16115137934684753,
-1.7714290618896484,
0.07809074223041534,
-0.800359845161438,
0.32333341240882874,
-1.8938140869140625,
-0.17396734654903412,
-1.8617898225784302,
-2.4274537563323975,
-1.356332540512085,
-0.767935574054718,
1.1846998929977417,
0.27751624584198,
-1.0393846035003662,
1.1540265083312988,
-0.38030216097831726,
-1.769096851348877,
1.0449286699295044,
-2.2034823894500732
] |
https://github.com/huggingface/datasets/issues/4666 | Issues with concatenating datasets | Hi! I agree we should improve the features equality checks to account for this particular case. However, your code fails due to `answer_start` having the dtype `int64` instead of `int32` after loading from JSON (it's not possible to embed type precision info into a JSON file; `save_to_disk` does that for arrow files), which would lead to the concatenation error as PyArrow does not support this sort of type promotion. This can be fixed as follows:
```python
temp = load_dataset("json", data_files={"train": "output.jsonl"}, features=squad["train"].features)
``` | ## Describe the bug
It is impossible to concatenate datasets if a feature is sequence of dict in one dataset and a dict of sequence in another. But based on the document, it should be automatically converted.
> A [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Sequence) with a internal dictionary feature will be automatically converted into a dictionary of lists. This behavior is implemented to have a compatilbity layer with the TensorFlow Datasets library but may be un-wanted in some cases. If you don’t want this behavior, you can use a python list instead of the [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Sequence).
## Steps to reproduce the bug
```python
from datasets import concatenate_datasets, load_dataset
squad = load_dataset("squad_v2")
squad["train"].to_json("output.jsonl", lines=True)
temp = load_dataset("json", data_files={"train": "output.jsonl"})
concatenate_datasets([temp["train"], squad["train"]])
```
## Expected results
No error executing that code
## Actual results
```
ValueError: The features can't be aligned because the key answers of features {'id': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'context': Value(dtype='string', id=None), 'question': Value(dtype='string', id=None), 'answers': Sequence(feature={'text': Value(dtype='string', id=None), 'answer_start': Value(dtype='int32', id=None)}, length=-1, id=None)} has unexpected type - Sequence(feature={'text': Value(dtype='string', id=None), 'answer_start': Value(dtype='int32', id=None)}, length=-1, id=None) (expected either {'text': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'answer_start': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None)} or Value("null").
```
## Environment info
- `datasets` version: 2.3.2
- Platform: macOS-12.4-arm64-arm-64bit
- Python version: 3.8.11
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 643 | 83 | Issues with concatenating datasets
## Describe the bug
It is impossible to concatenate datasets if a feature is sequence of dict in one dataset and a dict of sequence in another. But based on the document, it should be automatically converted.
> A [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Sequence) with a internal dictionary feature will be automatically converted into a dictionary of lists. This behavior is implemented to have a compatilbity layer with the TensorFlow Datasets library but may be un-wanted in some cases. If you don’t want this behavior, you can use a python list instead of the [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Sequence).
## Steps to reproduce the bug
```python
from datasets import concatenate_datasets, load_dataset
squad = load_dataset("squad_v2")
squad["train"].to_json("output.jsonl", lines=True)
temp = load_dataset("json", data_files={"train": "output.jsonl"})
concatenate_datasets([temp["train"], squad["train"]])
```
## Expected results
No error executing that code
## Actual results
```
ValueError: The features can't be aligned because the key answers of features {'id': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'context': Value(dtype='string', id=None), 'question': Value(dtype='string', id=None), 'answers': Sequence(feature={'text': Value(dtype='string', id=None), 'answer_start': Value(dtype='int32', id=None)}, length=-1, id=None)} has unexpected type - Sequence(feature={'text': Value(dtype='string', id=None), 'answer_start': Value(dtype='int32', id=None)}, length=-1, id=None) (expected either {'text': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'answer_start': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None)} or Value("null").
```
## Environment info
- `datasets` version: 2.3.2
- Platform: macOS-12.4-arm64-arm-64bit
- Python version: 3.8.11
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
Hi! I agree we should improve the features equality checks to account for this particular case. However, your code fails due to `answer_start` having the dtype `int64` instead of `int32` after loading from JSON (it's not possible to embed type precision info into a JSON file; `save_to_disk` does that for arrow files), which would lead to the concatenation error as PyArrow does not support this sort of type promotion. This can be fixed as follows:
```python
temp = load_dataset("json", data_files={"train": "output.jsonl"}, features=squad["train"].features)
``` | [
-1.2679157257080078,
-1.04617440700531,
-0.7832317352294922,
1.5805561542510986,
-0.16036120057106018,
-1.105148434638977,
0.07327565550804138,
-1.0264008045196533,
1.641181468963623,
-0.7281888723373413,
0.24084007740020752,
-1.6529438495635986,
-0.026509087532758713,
-0.6225762963294983,
-0.7073103189468384,
-0.8693215250968933,
-0.3172512650489807,
-0.7661610841751099,
1.1006097793579102,
2.482070207595825,
1.2467316389083862,
-1.431984782218933,
2.7983412742614746,
0.7745922803878784,
-0.07899343222379684,
-1.051777720451355,
0.5342237949371338,
-0.06532397866249084,
-1.2243192195892334,
-0.4672505557537079,
-0.907234787940979,
-0.07051021605730057,
-0.5530647039413452,
-0.4763726592063904,
-0.07775788009166718,
0.4386165142059326,
-0.2947971820831299,
-0.4946870803833008,
-0.6450048685073853,
-0.7689037919044495,
0.377760112285614,
-0.32346534729003906,
0.8525212407112122,
-0.3019130825996399,
1.8372710943222046,
-0.503842294216156,
0.2628796398639679,
0.5983980894088745,
1.2647502422332764,
0.27016642689704895,
0.10423938184976578,
0.36057740449905396,
0.38349512219429016,
-0.048678863793611526,
0.5774262547492981,
1.2409770488739014,
0.7255508303642273,
0.41440102458000183,
0.8015308380126953,
-2.269840955734253,
1.222457766532898,
-1.083441138267517,
0.32912930846214294,
1.3919905424118042,
-0.9087169766426086,
0.4698895215988159,
-1.7297924757003784,
-0.044058576226234436,
0.6594483852386475,
-2.210538387298584,
0.27598318457603455,
-1.2939609289169312,
-0.5023082494735718,
0.9586475491523743,
0.4005306661128998,
-1.2240246534347534,
0.10925403237342834,
-0.4191472828388214,
1.0479035377502441,
0.38914039731025696,
1.0797433853149414,
-1.6649537086486816,
0.02676207199692726,
-0.26404306292533875,
0.1178508922457695,
-1.2771682739257812,
-1.611836552619934,
0.5274617671966553,
0.5635190606117249,
0.6988531351089478,
-0.13641512393951416,
1.0990973711013794,
-1.0837846994400024,
0.6562821269035339,
-1.0398744344711304,
-1.7183818817138672,
-1.440015435218811,
-2.3470187187194824,
-2.229809284210205,
0.7578753232955933,
-0.43608012795448303,
-0.6060810089111328,
1.9535832405090332,
-0.9554867744445801,
-1.8006397485733032,
1.1845394372940063,
0.3431186378002167,
0.008220110088586807,
2.490569591522217,
0.19378960132598877,
-0.7861770391464233,
0.47981590032577515,
-0.7633880972862244,
0.7631092071533203,
-0.3105652630329132,
1.4255781173706055,
0.45224958658218384,
-0.9283150434494019,
1.647261142730713,
-0.41151440143585205,
0.5732113122940063,
-0.6774287819862366,
-0.477369099855423,
-0.7715913653373718,
0.3060646653175354,
1.912921667098999,
-0.2863289713859558,
1.5171263217926025,
-0.37809062004089355,
-1.5828139781951904,
-1.6087061166763306,
0.9265188574790955,
0.3667966425418854,
-0.8489571213722229,
0.1318906545639038,
-0.4214745759963989,
0.163955420255661,
-0.09137245267629623,
1.2043565511703491,
1.2138922214508057,
0.6238222718238831,
-0.3195817768573761,
-0.8272814750671387,
0.1114073246717453,
-0.12127573788166046,
-0.7022318840026855,
-1.7875275611877441,
-0.27397653460502625,
0.17402449250221252,
0.5976626873016357,
-1.2582628726959229,
1.6301300525665283,
0.8870037794113159,
1.8790985345840454,
1.0784202814102173,
-0.3828584551811218,
1.5027097463607788,
0.03894120082259178,
1.8038700819015503,
-0.6016242504119873,
0.5993910431861877,
-0.2853989005088806,
-1.149224877357483,
0.8356302976608276,
-0.2948748469352722,
-2.027651071548462,
-0.8027423620223999,
-0.7921772599220276,
-0.1903684437274933,
-0.7142761945724487,
0.8650564551353455,
-0.3517419993877411,
-1.4615384340286255,
0.20628011226654053,
-0.8158286809921265,
0.18946576118469238,
-1.167023777961731,
0.31589919328689575,
0.7367285490036011,
-0.6175889372825623,
0.06317111849784851,
-0.19266772270202637,
-1.2479655742645264,
-0.45777419209480286,
0.3673262298107147,
1.9019695520401,
-0.8219691514968872,
0.7061709761619568,
1.1098557710647583,
-0.7206124663352966,
0.07268495112657547,
0.2801988124847412,
-0.2392677366733551,
0.8440830707550049,
-1.0762953758239746,
-0.5504659414291382,
1.1843974590301514,
-0.1722612977027893,
-0.6345504522323608,
1.4486204385757446,
0.7840102910995483,
-1.0458585023880005,
-0.2588273286819458,
-0.1102534830570221,
-0.8547337651252747,
0.017662853002548218,
-1.539812684059143,
-0.19456827640533447,
0.4750117063522339,
-1.5622507333755493,
-0.5058403611183167,
-0.24726936221122742,
1.3826160430908203,
-0.15179255604743958,
1.4095741510391235,
-0.37936538457870483,
-0.13829255104064941,
-0.27396276593208313,
-0.38406869769096375,
0.1596108078956604,
-0.2513844072818756,
-0.5848552584648132,
0.12806391716003418,
-0.859117329120636,
0.3696219325065613,
1.4742431640625,
0.3865430951118469,
0.05853773653507233,
0.5428850650787354,
1.1894093751907349,
0.47284021973609924,
0.02136574313044548,
-0.8181264400482178,
-1.5236843824386597,
1.9496638774871826,
-1.4829829931259155,
1.9954489469528198,
0.6920328736305237,
-0.02821652777493,
-1.762564778327942,
-1.8807724714279175,
1.4069366455078125,
1.179495096206665,
2.339547634124756,
0.556262731552124,
0.3700655996799469,
-0.8678059577941895,
-0.6989016532897949,
0.1809259057044983,
-0.9595452547073364,
-0.6986915469169617,
0.17976608872413635,
2.41060471534729,
1.8842970132827759,
-0.47046783566474915,
-0.23046115040779114,
-0.9658690690994263,
1.448149561882019,
-0.23501718044281006,
0.20150533318519592,
2.0207509994506836,
-0.16092315316200256,
-1.0036360025405884,
1.2935481071472168,
-2.425614833831787,
0.15244412422180176,
1.9981123208999634,
0.28214672207832336,
0.1550201177597046,
-1.4350535869598389,
-0.733850359916687,
-0.33270263671875,
-0.48339563608169556,
-1.2843230962753296,
0.4660922586917877,
-0.3024630844593048,
-0.780436635017395,
-1.483845829963684,
0.2039223313331604,
-1.0859742164611816,
-1.6321073770523071,
0.23459351062774658,
1.9121239185333252,
2.055013418197632,
-0.80000239610672,
1.6165506839752197,
-0.172979474067688,
0.1343691349029541,
1.3024016618728638,
1.2910608053207397,
3.0311059951782227,
1.8762505054473877,
-1.270726203918457,
0.583065390586853,
-0.15038594603538513,
-0.4838012158870697,
1.1460776329040527,
-1.2408581972122192,
1.2407853603363037,
-0.11334288865327835,
-1.2165966033935547,
-1.2020971775054932,
0.9417689442634583,
0.5494029521942139,
0.009741825982928276,
-0.5078898668289185,
1.216808557510376,
-0.007213421165943146,
1.3351339101791382,
0.5997782945632935,
-0.3329547643661499,
0.5360059142112732,
-0.381339967250824,
-0.5312719941139221,
1.5018575191497803,
0.11694728583097458,
-1.412769079208374,
-2.2050490379333496,
-0.1389254629611969,
-0.8673117160797119,
-0.024278923869132996,
-0.5983330607414246,
-1.046002984046936,
1.7113500833511353,
0.3240676522254944,
-1.214859127998352,
-0.22836759686470032,
-0.3223763406276703,
-0.542202353477478,
2.72381591796875,
-1.3034383058547974,
-0.32057663798332214,
-0.9912200570106506,
-0.5912721157073975,
1.683890700340271,
-1.05924391746521,
-0.2179734706878662,
-1.0825380086898804,
-0.6324236989021301,
-1.331763505935669,
-0.5571523308753967,
0.0308455228805542,
-0.8451995849609375,
0.8780847787857056,
0.21329569816589355,
-1.1630147695541382,
-0.31779441237449646,
-0.9252576231956482,
0.9631377458572388,
-0.15650123357772827,
0.18068087100982666,
1.9112036228179932,
0.36029621958732605,
-0.40974926948547363,
0.8366485834121704,
1.1954898834228516,
0.6622382998466492,
-0.6526561379432678,
0.23226842284202576,
-0.5929003953933716,
0.31330305337905884,
-1.3797459602355957,
0.26632821559906006,
-2.9166390895843506,
0.6565848588943481,
-0.02037767693400383,
-0.1194370687007904,
0.021094098687171936,
-1.2823472023010254,
1.1240710020065308,
2.5124261379241943,
-1.2157577276229858,
0.49713751673698425,
0.36906057596206665,
1.2308382987976074,
-1.7191168069839478,
0.32531604170799255,
-0.43302005529403687,
2.0644681453704834,
0.2004164755344391,
1.1946736574172974,
-0.42455190420150757,
-2.327392578125,
0.5944986939430237,
-1.2852904796600342,
-1.0396621227264404,
0.7067775130271912,
-0.9494161605834961,
0.20999664068222046,
-1.537883996963501,
-0.23533529043197632,
-0.8789811134338379,
-1.1863892078399658,
0.7084512114524841,
0.17525333166122437,
0.25518813729286194,
-0.5410733222961426,
0.4113802909851074,
-2.1883742809295654,
-1.3830424547195435,
-0.17569449543952942,
-0.9375549554824829,
0.5539742708206177,
-0.41713109612464905,
0.70555579662323,
-0.15485098958015442,
-0.04429030790925026,
0.3409790098667145,
1.438438892364502,
3.3192248344421387,
0.2415768802165985,
0.3961007595062256,
-0.16191530227661133,
-0.9641979336738586,
1.4894441366195679,
0.9124819040298462,
-0.15737038850784302,
-0.47311609983444214,
-1.0769026279449463,
1.37400484085083,
1.8825854063034058,
1.0608844757080078,
0.015710443258285522,
-0.7862812876701355,
-0.6986969709396362,
-0.01620103046298027,
0.32592934370040894,
0.41494259238243103,
0.8761432766914368,
-0.03699079155921936,
0.017634088173508644,
1.437204122543335,
1.152734637260437,
-0.46944451332092285,
0.35586538910865784,
-0.9115138053894043,
-0.4626195728778839,
0.5074948072433472,
0.16607993841171265,
0.004199381917715073,
0.41085925698280334,
-1.0525143146514893,
-0.27080607414245605,
-0.36776891350746155,
-0.8650388717651367,
-0.6514756679534912,
-0.41316306591033936,
-0.33585837483406067,
1.5345802307128906,
0.1828446090221405,
-0.6065841913223267,
-0.08856389671564102,
-0.7420995235443115,
-0.19435769319534302,
-1.1247841119766235,
0.21987465023994446,
-0.08238331973552704,
-0.18775343894958496,
-0.18839582800865173,
1.7365165948867798,
-0.9008976221084595,
-2.1592695713043213,
0.15389183163642883,
0.3445691764354706,
-0.21684134006500244,
0.2760908305644989,
1.7081999778747559,
0.4966541826725006,
1.3879473209381104,
1.2862963676452637,
0.9496108293533325,
-0.6036322116851807,
-1.3373299837112427,
0.6627963185310364,
1.0968669652938843,
-1.3792399168014526,
0.8503744602203369,
-0.09659485518932343,
-0.5272329449653625,
0.6089398860931396,
1.3140316009521484,
0.4513154625892639,
-1.967671275138855,
0.8099427819252014,
-0.9741896390914917,
0.8513911366462708,
0.657651424407959,
0.6398822069168091,
0.20106172561645508,
0.799281656742096,
-1.2699549198150635,
-1.1696505546569824,
-0.7521459460258484,
-0.7058433890342712,
1.969478964805603,
-0.244086354970932,
0.6059553623199463,
-0.18742507696151733,
-1.32054603099823,
-0.012010523118078709,
0.6481941938400269,
0.3028494715690613,
-0.5441182851791382,
0.8802245855331421,
-0.7033460736274719,
-1.1201765537261963,
-1.2996991872787476,
-0.42428088188171387,
-1.0090208053588867,
-0.9381614923477173,
1.105440378189087,
0.8125597238540649,
0.22154992818832397,
1.8552151918411255,
0.6482474207878113,
0.27859872579574585,
-2.5515573024749756,
0.9148716330528259,
0.24540510773658752,
-0.06488613784313202,
0.7717934846878052,
0.34032684564590454,
1.0040203332901,
0.028332345187664032,
0.5286216139793396,
-2.3937840461730957,
2.262691020965576,
-0.1794675588607788,
0.7474817633628845,
-0.06909152865409851,
-0.17906805872917175,
1.0762763023376465,
0.537125825881958,
0.5585516691207886,
-0.951974630355835,
0.5783346891403198,
-0.49275684356689453,
1.221074104309082,
0.9076701998710632,
-0.814299464225769,
-0.04916258156299591,
1.2835578918457031,
0.46295857429504395,
-0.6004722118377686,
-0.9666520357131958,
-0.8806160092353821,
0.9497346878051758,
1.6037170886993408,
0.025982655584812164,
0.04189695790410042,
0.8844387531280518,
0.6036619544029236,
-1.2362886667251587,
0.07488290965557098,
-0.6400203704833984,
-0.6361907720565796,
1.7007043361663818,
2.06268572807312,
-0.26194077730178833,
-0.1073862835764885,
-0.6391991376876831,
-1.307673692703247,
0.6898965835571289,
-0.045421868562698364,
0.1455499231815338,
0.6878690719604492,
-0.6025981307029724,
0.9852548241615295,
0.8078431487083435,
0.889141857624054,
0.14640116691589355,
0.28923219442367554,
0.4467756450176239,
-0.42037269473075867,
-1.1864222288131714,
-0.2613505721092224,
-1.1256992816925049,
-2.466644763946533,
0.3568097651004791,
-0.16053563356399536,
-1.3505531549453735,
0.05076978728175163,
-1.016425371170044,
1.0828889608383179,
-0.5624954700469971,
-1.0567659139633179,
-1.3928879499435425,
0.2776399254798889,
-0.0010717157274484634,
0.8634660243988037,
-1.6359833478927612,
-0.16724169254302979,
1.2816661596298218,
0.9440158009529114,
-0.6915542483329773,
1.0009995698928833,
0.27981075644493103,
1.1518977880477905,
0.791627824306488,
-0.3527030348777771,
0.5073844790458679,
-0.0324254110455513,
-1.3682141304016113,
0.4543474018573761,
1.134129524230957,
0.1793159544467926,
1.4982303380966187,
-0.4917607605457306,
-0.026399055495858192,
0.4206588864326477,
-0.6411373019218445,
-0.445692777633667,
-0.45888301730155945,
0.5879268050193787,
0.07052002102136612,
-0.8278053402900696,
-0.07476568222045898,
0.025604519993066788,
-0.23543459177017212,
0.1427527368068695,
-1.5155130624771118,
-0.15742897987365723,
-0.45501992106437683,
-0.5441970825195312,
-1.206772804260254,
-0.1081283912062645,
1.339403748512268,
-0.7860843539237976,
-0.3561205565929413,
0.5130323767662048,
0.31703200936317444,
0.5080218315124512,
0.6715565323829651,
-0.6651057004928589,
-0.257090300321579,
-0.19707506895065308,
-0.3184002637863159,
0.26205286383628845,
1.411047101020813,
-0.11377770453691483,
-0.9840291142463684,
0.7618622183799744,
-0.37383168935775757,
0.07428856939077377,
1.822798490524292,
0.019244248047471046,
-0.8046528100967407,
0.25882086157798767,
-0.7548011541366577,
1.9307565689086914,
1.693779706954956,
1.3980998992919922,
-0.22680386900901794,
-0.805220365524292,
0.6643915772438049,
-0.36958935856819153,
-0.5056344270706177,
0.8584131002426147,
0.45177677273750305,
-0.2377278208732605,
-1.4273018836975098,
0.7275475263595581,
1.273445963859558,
-0.8736511468887329,
-0.7415982484817505,
0.196132093667984,
-0.8040152192115784,
1.128720998764038,
0.7020847201347351,
0.3286114037036896,
0.30883675813674927,
1.6157002449035645,
0.8077264428138733,
-0.4980456233024597,
0.4862566292285919,
0.5732618570327759,
-0.18053314089775085,
-2.1196932792663574,
-1.153232216835022,
0.27442488074302673,
-0.51320481300354,
-1.5856276750564575,
1.3231571912765503,
-1.1149710416793823,
-0.9334138631820679,
0.5410323739051819,
0.09589473158121109,
1.3213169574737549,
0.40828263759613037,
1.4917819499969482,
2.0985629558563232,
0.7664405703544617,
0.3835747241973877,
1.2096147537231445,
-0.11144358664751053,
-0.41016891598701477,
1.7737922668457031,
-0.38314977288246155,
0.5615181922912598,
1.0158414840698242,
-0.2674456536769867,
-1.1612370014190674,
-0.7340021729469299,
-1.326122522354126,
-0.6494664549827576,
1.1718878746032715,
0.0909186378121376,
-1.1161532402038574,
0.2545328140258789,
1.5011717081069946,
0.027315881103277206,
-0.41365110874176025,
0.6654065251350403,
0.41220512986183167,
-0.8254574537277222,
-0.062251318246126175,
-0.9018738269805908,
0.5598554611206055,
-0.18734702467918396,
-0.30716872215270996,
0.35425877571105957,
0.4416967034339905,
1.3842872381210327,
0.037476710975170135,
0.19434553384780884,
1.1346591711044312,
-1.356155276298523,
1.5804909467697144,
-0.7599101662635803,
0.2993911802768707,
-2.449793577194214,
1.4149954319000244,
-0.7372666597366333,
1.9851435422897339,
-2.66886305809021,
0.5230523943901062,
-0.6078251004219055,
-0.4926902651786804,
0.28542420268058777,
-0.3931288421154022,
0.06168534606695175,
-0.10340695083141327,
-1.124403476715088,
0.09983508288860321,
-0.6163017749786377,
0.5282599925994873,
1.1860272884368896,
1.350597620010376,
-1.1312395334243774,
-0.2539066970348358,
-1.7411689758300781,
-0.16709119081497192,
-0.89030921459198,
0.30875322222709656,
-2.052828311920166,
-0.24261361360549927,
-1.8072261810302734,
-2.342700958251953,
-1.2301784753799438,
-0.827994167804718,
1.1319539546966553,
0.15760266780853271,
-0.9311216473579407,
1.3679684400558472,
-0.38749831914901733,
-1.8155409097671509,
1.0637929439544678,
-2.1129682064056396
] |
https://github.com/huggingface/datasets/issues/4666 | Issues with concatenating datasets | That makes sense. I totally missed the `int64` and `int32` part. Thanks for pointing it out! Will close this issue for now. | ## Describe the bug
It is impossible to concatenate datasets if a feature is sequence of dict in one dataset and a dict of sequence in another. But based on the document, it should be automatically converted.
> A [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Sequence) with a internal dictionary feature will be automatically converted into a dictionary of lists. This behavior is implemented to have a compatilbity layer with the TensorFlow Datasets library but may be un-wanted in some cases. If you don’t want this behavior, you can use a python list instead of the [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Sequence).
## Steps to reproduce the bug
```python
from datasets import concatenate_datasets, load_dataset
squad = load_dataset("squad_v2")
squad["train"].to_json("output.jsonl", lines=True)
temp = load_dataset("json", data_files={"train": "output.jsonl"})
concatenate_datasets([temp["train"], squad["train"]])
```
## Expected results
No error executing that code
## Actual results
```
ValueError: The features can't be aligned because the key answers of features {'id': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'context': Value(dtype='string', id=None), 'question': Value(dtype='string', id=None), 'answers': Sequence(feature={'text': Value(dtype='string', id=None), 'answer_start': Value(dtype='int32', id=None)}, length=-1, id=None)} has unexpected type - Sequence(feature={'text': Value(dtype='string', id=None), 'answer_start': Value(dtype='int32', id=None)}, length=-1, id=None) (expected either {'text': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'answer_start': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None)} or Value("null").
```
## Environment info
- `datasets` version: 2.3.2
- Platform: macOS-12.4-arm64-arm-64bit
- Python version: 3.8.11
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 643 | 22 | Issues with concatenating datasets
## Describe the bug
It is impossible to concatenate datasets if a feature is sequence of dict in one dataset and a dict of sequence in another. But based on the document, it should be automatically converted.
> A [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Sequence) with a internal dictionary feature will be automatically converted into a dictionary of lists. This behavior is implemented to have a compatilbity layer with the TensorFlow Datasets library but may be un-wanted in some cases. If you don’t want this behavior, you can use a python list instead of the [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Sequence).
## Steps to reproduce the bug
```python
from datasets import concatenate_datasets, load_dataset
squad = load_dataset("squad_v2")
squad["train"].to_json("output.jsonl", lines=True)
temp = load_dataset("json", data_files={"train": "output.jsonl"})
concatenate_datasets([temp["train"], squad["train"]])
```
## Expected results
No error executing that code
## Actual results
```
ValueError: The features can't be aligned because the key answers of features {'id': Value(dtype='string', id=None), 'title': Value(dtype='string', id=None), 'context': Value(dtype='string', id=None), 'question': Value(dtype='string', id=None), 'answers': Sequence(feature={'text': Value(dtype='string', id=None), 'answer_start': Value(dtype='int32', id=None)}, length=-1, id=None)} has unexpected type - Sequence(feature={'text': Value(dtype='string', id=None), 'answer_start': Value(dtype='int32', id=None)}, length=-1, id=None) (expected either {'text': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'answer_start': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None)} or Value("null").
```
## Environment info
- `datasets` version: 2.3.2
- Platform: macOS-12.4-arm64-arm-64bit
- Python version: 3.8.11
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
That makes sense. I totally missed the `int64` and `int32` part. Thanks for pointing it out! Will close this issue for now. | [
-1.2679157257080078,
-1.04617440700531,
-0.7832317352294922,
1.5805561542510986,
-0.16036120057106018,
-1.105148434638977,
0.07327565550804138,
-1.0264008045196533,
1.641181468963623,
-0.7281888723373413,
0.24084007740020752,
-1.6529438495635986,
-0.026509087532758713,
-0.6225762963294983,
-0.7073103189468384,
-0.8693215250968933,
-0.3172512650489807,
-0.7661610841751099,
1.1006097793579102,
2.482070207595825,
1.2467316389083862,
-1.431984782218933,
2.7983412742614746,
0.7745922803878784,
-0.07899343222379684,
-1.051777720451355,
0.5342237949371338,
-0.06532397866249084,
-1.2243192195892334,
-0.4672505557537079,
-0.907234787940979,
-0.07051021605730057,
-0.5530647039413452,
-0.4763726592063904,
-0.07775788009166718,
0.4386165142059326,
-0.2947971820831299,
-0.4946870803833008,
-0.6450048685073853,
-0.7689037919044495,
0.377760112285614,
-0.32346534729003906,
0.8525212407112122,
-0.3019130825996399,
1.8372710943222046,
-0.503842294216156,
0.2628796398639679,
0.5983980894088745,
1.2647502422332764,
0.27016642689704895,
0.10423938184976578,
0.36057740449905396,
0.38349512219429016,
-0.048678863793611526,
0.5774262547492981,
1.2409770488739014,
0.7255508303642273,
0.41440102458000183,
0.8015308380126953,
-2.269840955734253,
1.222457766532898,
-1.083441138267517,
0.32912930846214294,
1.3919905424118042,
-0.9087169766426086,
0.4698895215988159,
-1.7297924757003784,
-0.044058576226234436,
0.6594483852386475,
-2.210538387298584,
0.27598318457603455,
-1.2939609289169312,
-0.5023082494735718,
0.9586475491523743,
0.4005306661128998,
-1.2240246534347534,
0.10925403237342834,
-0.4191472828388214,
1.0479035377502441,
0.38914039731025696,
1.0797433853149414,
-1.6649537086486816,
0.02676207199692726,
-0.26404306292533875,
0.1178508922457695,
-1.2771682739257812,
-1.611836552619934,
0.5274617671966553,
0.5635190606117249,
0.6988531351089478,
-0.13641512393951416,
1.0990973711013794,
-1.0837846994400024,
0.6562821269035339,
-1.0398744344711304,
-1.7183818817138672,
-1.440015435218811,
-2.3470187187194824,
-2.229809284210205,
0.7578753232955933,
-0.43608012795448303,
-0.6060810089111328,
1.9535832405090332,
-0.9554867744445801,
-1.8006397485733032,
1.1845394372940063,
0.3431186378002167,
0.008220110088586807,
2.490569591522217,
0.19378960132598877,
-0.7861770391464233,
0.47981590032577515,
-0.7633880972862244,
0.7631092071533203,
-0.3105652630329132,
1.4255781173706055,
0.45224958658218384,
-0.9283150434494019,
1.647261142730713,
-0.41151440143585205,
0.5732113122940063,
-0.6774287819862366,
-0.477369099855423,
-0.7715913653373718,
0.3060646653175354,
1.912921667098999,
-0.2863289713859558,
1.5171263217926025,
-0.37809062004089355,
-1.5828139781951904,
-1.6087061166763306,
0.9265188574790955,
0.3667966425418854,
-0.8489571213722229,
0.1318906545639038,
-0.4214745759963989,
0.163955420255661,
-0.09137245267629623,
1.2043565511703491,
1.2138922214508057,
0.6238222718238831,
-0.3195817768573761,
-0.8272814750671387,
0.1114073246717453,
-0.12127573788166046,
-0.7022318840026855,
-1.7875275611877441,
-0.27397653460502625,
0.17402449250221252,
0.5976626873016357,
-1.2582628726959229,
1.6301300525665283,
0.8870037794113159,
1.8790985345840454,
1.0784202814102173,
-0.3828584551811218,
1.5027097463607788,
0.03894120082259178,
1.8038700819015503,
-0.6016242504119873,
0.5993910431861877,
-0.2853989005088806,
-1.149224877357483,
0.8356302976608276,
-0.2948748469352722,
-2.027651071548462,
-0.8027423620223999,
-0.7921772599220276,
-0.1903684437274933,
-0.7142761945724487,
0.8650564551353455,
-0.3517419993877411,
-1.4615384340286255,
0.20628011226654053,
-0.8158286809921265,
0.18946576118469238,
-1.167023777961731,
0.31589919328689575,
0.7367285490036011,
-0.6175889372825623,
0.06317111849784851,
-0.19266772270202637,
-1.2479655742645264,
-0.45777419209480286,
0.3673262298107147,
1.9019695520401,
-0.8219691514968872,
0.7061709761619568,
1.1098557710647583,
-0.7206124663352966,
0.07268495112657547,
0.2801988124847412,
-0.2392677366733551,
0.8440830707550049,
-1.0762953758239746,
-0.5504659414291382,
1.1843974590301514,
-0.1722612977027893,
-0.6345504522323608,
1.4486204385757446,
0.7840102910995483,
-1.0458585023880005,
-0.2588273286819458,
-0.1102534830570221,
-0.8547337651252747,
0.017662853002548218,
-1.539812684059143,
-0.19456827640533447,
0.4750117063522339,
-1.5622507333755493,
-0.5058403611183167,
-0.24726936221122742,
1.3826160430908203,
-0.15179255604743958,
1.4095741510391235,
-0.37936538457870483,
-0.13829255104064941,
-0.27396276593208313,
-0.38406869769096375,
0.1596108078956604,
-0.2513844072818756,
-0.5848552584648132,
0.12806391716003418,
-0.859117329120636,
0.3696219325065613,
1.4742431640625,
0.3865430951118469,
0.05853773653507233,
0.5428850650787354,
1.1894093751907349,
0.47284021973609924,
0.02136574313044548,
-0.8181264400482178,
-1.5236843824386597,
1.9496638774871826,
-1.4829829931259155,
1.9954489469528198,
0.6920328736305237,
-0.02821652777493,
-1.762564778327942,
-1.8807724714279175,
1.4069366455078125,
1.179495096206665,
2.339547634124756,
0.556262731552124,
0.3700655996799469,
-0.8678059577941895,
-0.6989016532897949,
0.1809259057044983,
-0.9595452547073364,
-0.6986915469169617,
0.17976608872413635,
2.41060471534729,
1.8842970132827759,
-0.47046783566474915,
-0.23046115040779114,
-0.9658690690994263,
1.448149561882019,
-0.23501718044281006,
0.20150533318519592,
2.0207509994506836,
-0.16092315316200256,
-1.0036360025405884,
1.2935481071472168,
-2.425614833831787,
0.15244412422180176,
1.9981123208999634,
0.28214672207832336,
0.1550201177597046,
-1.4350535869598389,
-0.733850359916687,
-0.33270263671875,
-0.48339563608169556,
-1.2843230962753296,
0.4660922586917877,
-0.3024630844593048,
-0.780436635017395,
-1.483845829963684,
0.2039223313331604,
-1.0859742164611816,
-1.6321073770523071,
0.23459351062774658,
1.9121239185333252,
2.055013418197632,
-0.80000239610672,
1.6165506839752197,
-0.172979474067688,
0.1343691349029541,
1.3024016618728638,
1.2910608053207397,
3.0311059951782227,
1.8762505054473877,
-1.270726203918457,
0.583065390586853,
-0.15038594603538513,
-0.4838012158870697,
1.1460776329040527,
-1.2408581972122192,
1.2407853603363037,
-0.11334288865327835,
-1.2165966033935547,
-1.2020971775054932,
0.9417689442634583,
0.5494029521942139,
0.009741825982928276,
-0.5078898668289185,
1.216808557510376,
-0.007213421165943146,
1.3351339101791382,
0.5997782945632935,
-0.3329547643661499,
0.5360059142112732,
-0.381339967250824,
-0.5312719941139221,
1.5018575191497803,
0.11694728583097458,
-1.412769079208374,
-2.2050490379333496,
-0.1389254629611969,
-0.8673117160797119,
-0.024278923869132996,
-0.5983330607414246,
-1.046002984046936,
1.7113500833511353,
0.3240676522254944,
-1.214859127998352,
-0.22836759686470032,
-0.3223763406276703,
-0.542202353477478,
2.72381591796875,
-1.3034383058547974,
-0.32057663798332214,
-0.9912200570106506,
-0.5912721157073975,
1.683890700340271,
-1.05924391746521,
-0.2179734706878662,
-1.0825380086898804,
-0.6324236989021301,
-1.331763505935669,
-0.5571523308753967,
0.0308455228805542,
-0.8451995849609375,
0.8780847787857056,
0.21329569816589355,
-1.1630147695541382,
-0.31779441237449646,
-0.9252576231956482,
0.9631377458572388,
-0.15650123357772827,
0.18068087100982666,
1.9112036228179932,
0.36029621958732605,
-0.40974926948547363,
0.8366485834121704,
1.1954898834228516,
0.6622382998466492,
-0.6526561379432678,
0.23226842284202576,
-0.5929003953933716,
0.31330305337905884,
-1.3797459602355957,
0.26632821559906006,
-2.9166390895843506,
0.6565848588943481,
-0.02037767693400383,
-0.1194370687007904,
0.021094098687171936,
-1.2823472023010254,
1.1240710020065308,
2.5124261379241943,
-1.2157577276229858,
0.49713751673698425,
0.36906057596206665,
1.2308382987976074,
-1.7191168069839478,
0.32531604170799255,
-0.43302005529403687,
2.0644681453704834,
0.2004164755344391,
1.1946736574172974,
-0.42455190420150757,
-2.327392578125,
0.5944986939430237,
-1.2852904796600342,
-1.0396621227264404,
0.7067775130271912,
-0.9494161605834961,
0.20999664068222046,
-1.537883996963501,
-0.23533529043197632,
-0.8789811134338379,
-1.1863892078399658,
0.7084512114524841,
0.17525333166122437,
0.25518813729286194,
-0.5410733222961426,
0.4113802909851074,
-2.1883742809295654,
-1.3830424547195435,
-0.17569449543952942,
-0.9375549554824829,
0.5539742708206177,
-0.41713109612464905,
0.70555579662323,
-0.15485098958015442,
-0.04429030790925026,
0.3409790098667145,
1.438438892364502,
3.3192248344421387,
0.2415768802165985,
0.3961007595062256,
-0.16191530227661133,
-0.9641979336738586,
1.4894441366195679,
0.9124819040298462,
-0.15737038850784302,
-0.47311609983444214,
-1.0769026279449463,
1.37400484085083,
1.8825854063034058,
1.0608844757080078,
0.015710443258285522,
-0.7862812876701355,
-0.6986969709396362,
-0.01620103046298027,
0.32592934370040894,
0.41494259238243103,
0.8761432766914368,
-0.03699079155921936,
0.017634088173508644,
1.437204122543335,
1.152734637260437,
-0.46944451332092285,
0.35586538910865784,
-0.9115138053894043,
-0.4626195728778839,
0.5074948072433472,
0.16607993841171265,
0.004199381917715073,
0.41085925698280334,
-1.0525143146514893,
-0.27080607414245605,
-0.36776891350746155,
-0.8650388717651367,
-0.6514756679534912,
-0.41316306591033936,
-0.33585837483406067,
1.5345802307128906,
0.1828446090221405,
-0.6065841913223267,
-0.08856389671564102,
-0.7420995235443115,
-0.19435769319534302,
-1.1247841119766235,
0.21987465023994446,
-0.08238331973552704,
-0.18775343894958496,
-0.18839582800865173,
1.7365165948867798,
-0.9008976221084595,
-2.1592695713043213,
0.15389183163642883,
0.3445691764354706,
-0.21684134006500244,
0.2760908305644989,
1.7081999778747559,
0.4966541826725006,
1.3879473209381104,
1.2862963676452637,
0.9496108293533325,
-0.6036322116851807,
-1.3373299837112427,
0.6627963185310364,
1.0968669652938843,
-1.3792399168014526,
0.8503744602203369,
-0.09659485518932343,
-0.5272329449653625,
0.6089398860931396,
1.3140316009521484,
0.4513154625892639,
-1.967671275138855,
0.8099427819252014,
-0.9741896390914917,
0.8513911366462708,
0.657651424407959,
0.6398822069168091,
0.20106172561645508,
0.799281656742096,
-1.2699549198150635,
-1.1696505546569824,
-0.7521459460258484,
-0.7058433890342712,
1.969478964805603,
-0.244086354970932,
0.6059553623199463,
-0.18742507696151733,
-1.32054603099823,
-0.012010523118078709,
0.6481941938400269,
0.3028494715690613,
-0.5441182851791382,
0.8802245855331421,
-0.7033460736274719,
-1.1201765537261963,
-1.2996991872787476,
-0.42428088188171387,
-1.0090208053588867,
-0.9381614923477173,
1.105440378189087,
0.8125597238540649,
0.22154992818832397,
1.8552151918411255,
0.6482474207878113,
0.27859872579574585,
-2.5515573024749756,
0.9148716330528259,
0.24540510773658752,
-0.06488613784313202,
0.7717934846878052,
0.34032684564590454,
1.0040203332901,
0.028332345187664032,
0.5286216139793396,
-2.3937840461730957,
2.262691020965576,
-0.1794675588607788,
0.7474817633628845,
-0.06909152865409851,
-0.17906805872917175,
1.0762763023376465,
0.537125825881958,
0.5585516691207886,
-0.951974630355835,
0.5783346891403198,
-0.49275684356689453,
1.221074104309082,
0.9076701998710632,
-0.814299464225769,
-0.04916258156299591,
1.2835578918457031,
0.46295857429504395,
-0.6004722118377686,
-0.9666520357131958,
-0.8806160092353821,
0.9497346878051758,
1.6037170886993408,
0.025982655584812164,
0.04189695790410042,
0.8844387531280518,
0.6036619544029236,
-1.2362886667251587,
0.07488290965557098,
-0.6400203704833984,
-0.6361907720565796,
1.7007043361663818,
2.06268572807312,
-0.26194077730178833,
-0.1073862835764885,
-0.6391991376876831,
-1.307673692703247,
0.6898965835571289,
-0.045421868562698364,
0.1455499231815338,
0.6878690719604492,
-0.6025981307029724,
0.9852548241615295,
0.8078431487083435,
0.889141857624054,
0.14640116691589355,
0.28923219442367554,
0.4467756450176239,
-0.42037269473075867,
-1.1864222288131714,
-0.2613505721092224,
-1.1256992816925049,
-2.466644763946533,
0.3568097651004791,
-0.16053563356399536,
-1.3505531549453735,
0.05076978728175163,
-1.016425371170044,
1.0828889608383179,
-0.5624954700469971,
-1.0567659139633179,
-1.3928879499435425,
0.2776399254798889,
-0.0010717157274484634,
0.8634660243988037,
-1.6359833478927612,
-0.16724169254302979,
1.2816661596298218,
0.9440158009529114,
-0.6915542483329773,
1.0009995698928833,
0.27981075644493103,
1.1518977880477905,
0.791627824306488,
-0.3527030348777771,
0.5073844790458679,
-0.0324254110455513,
-1.3682141304016113,
0.4543474018573761,
1.134129524230957,
0.1793159544467926,
1.4982303380966187,
-0.4917607605457306,
-0.026399055495858192,
0.4206588864326477,
-0.6411373019218445,
-0.445692777633667,
-0.45888301730155945,
0.5879268050193787,
0.07052002102136612,
-0.8278053402900696,
-0.07476568222045898,
0.025604519993066788,
-0.23543459177017212,
0.1427527368068695,
-1.5155130624771118,
-0.15742897987365723,
-0.45501992106437683,
-0.5441970825195312,
-1.206772804260254,
-0.1081283912062645,
1.339403748512268,
-0.7860843539237976,
-0.3561205565929413,
0.5130323767662048,
0.31703200936317444,
0.5080218315124512,
0.6715565323829651,
-0.6651057004928589,
-0.257090300321579,
-0.19707506895065308,
-0.3184002637863159,
0.26205286383628845,
1.411047101020813,
-0.11377770453691483,
-0.9840291142463684,
0.7618622183799744,
-0.37383168935775757,
0.07428856939077377,
1.822798490524292,
0.019244248047471046,
-0.8046528100967407,
0.25882086157798767,
-0.7548011541366577,
1.9307565689086914,
1.693779706954956,
1.3980998992919922,
-0.22680386900901794,
-0.805220365524292,
0.6643915772438049,
-0.36958935856819153,
-0.5056344270706177,
0.8584131002426147,
0.45177677273750305,
-0.2377278208732605,
-1.4273018836975098,
0.7275475263595581,
1.273445963859558,
-0.8736511468887329,
-0.7415982484817505,
0.196132093667984,
-0.8040152192115784,
1.128720998764038,
0.7020847201347351,
0.3286114037036896,
0.30883675813674927,
1.6157002449035645,
0.8077264428138733,
-0.4980456233024597,
0.4862566292285919,
0.5732618570327759,
-0.18053314089775085,
-2.1196932792663574,
-1.153232216835022,
0.27442488074302673,
-0.51320481300354,
-1.5856276750564575,
1.3231571912765503,
-1.1149710416793823,
-0.9334138631820679,
0.5410323739051819,
0.09589473158121109,
1.3213169574737549,
0.40828263759613037,
1.4917819499969482,
2.0985629558563232,
0.7664405703544617,
0.3835747241973877,
1.2096147537231445,
-0.11144358664751053,
-0.41016891598701477,
1.7737922668457031,
-0.38314977288246155,
0.5615181922912598,
1.0158414840698242,
-0.2674456536769867,
-1.1612370014190674,
-0.7340021729469299,
-1.326122522354126,
-0.6494664549827576,
1.1718878746032715,
0.0909186378121376,
-1.1161532402038574,
0.2545328140258789,
1.5011717081069946,
0.027315881103277206,
-0.41365110874176025,
0.6654065251350403,
0.41220512986183167,
-0.8254574537277222,
-0.062251318246126175,
-0.9018738269805908,
0.5598554611206055,
-0.18734702467918396,
-0.30716872215270996,
0.35425877571105957,
0.4416967034339905,
1.3842872381210327,
0.037476710975170135,
0.19434553384780884,
1.1346591711044312,
-1.356155276298523,
1.5804909467697144,
-0.7599101662635803,
0.2993911802768707,
-2.449793577194214,
1.4149954319000244,
-0.7372666597366333,
1.9851435422897339,
-2.66886305809021,
0.5230523943901062,
-0.6078251004219055,
-0.4926902651786804,
0.28542420268058777,
-0.3931288421154022,
0.06168534606695175,
-0.10340695083141327,
-1.124403476715088,
0.09983508288860321,
-0.6163017749786377,
0.5282599925994873,
1.1860272884368896,
1.350597620010376,
-1.1312395334243774,
-0.2539066970348358,
-1.7411689758300781,
-0.16709119081497192,
-0.89030921459198,
0.30875322222709656,
-2.052828311920166,
-0.24261361360549927,
-1.8072261810302734,
-2.342700958251953,
-1.2301784753799438,
-0.827994167804718,
1.1319539546966553,
0.15760266780853271,
-0.9311216473579407,
1.3679684400558472,
-0.38749831914901733,
-1.8155409097671509,
1.0637929439544678,
-2.1129682064056396
] |
https://github.com/huggingface/datasets/issues/4665 | Unable to create dataset having Python dataset script only | Hi @aleSuglia, thanks for reporting.
We are having a look at it.
We transfer this issue to the Community tab of the corresponding Hub dataset: https://huggingface.co/datasets/Heriot-WattUniversity/dialog-babi/discussions | ## Describe the bug
Hi there,
I'm trying to add the following dataset to Huggingface datasets: https://huggingface.co/datasets/Heriot-WattUniversity/dialog-babi/blob/
I'm trying to do so using the CLI commands but seems that this command generates the wrong `dataset_info.json` file (you can find it in the repo already):
```
datasets-cli test Heriot-WattUniversity/dialog-babi/dialog_babi.py --save_infos --all-configs
```
while it errors when I remove the python script:
```
datasets-cli test Heriot-WattUniversity/dialog-babi/ --save_infos --all-configs
```
The error message is the following:
```
FileNotFoundError: Unable to resolve any data file that matches '['**']' at /Users/as2180/workspace/Heriot-WattUniversity/dialog-babi with any supported extension ['csv', 'tsv', 'json', 'jsonl', 'parquet', 'txt', 'blp', 'bmp', 'dib', 'bufr', 'cur', 'pcx', 'dcx', 'dds', 'ps', 'eps', 'fit', 'fits', 'fli', 'flc', 'ftc', 'ftu', 'gbr', 'gif', 'grib', 'h5', 'hdf', 'png', 'apng', 'jp2', 'j2k', 'jpc', 'jpf', 'jpx', 'j2c', 'icns', 'ico', 'im', 'iim', 'tif', 'tiff', 'jfif', 'jpe', 'jpg', 'jpeg', 'mpg', 'mpeg', 'msp', 'pcd', 'pxr', 'pbm', 'pgm', 'ppm', 'pnm', 'psd', 'bw', 'rgb', 'rgba', 'sgi', 'ras', 'tga', 'icb', 'vda', 'vst', 'webp', 'wmf', 'emf', 'xbm', 'xpm', 'zip']
```
## Environment info
- `datasets` version: 2.3.2
- Platform: macOS-12.4-arm64-arm-64bit
- Python version: 3.9.9
- PyArrow version: 8.0.0
- Pandas version: 1.4.3 | 644 | 26 | Unable to create dataset having Python dataset script only
## Describe the bug
Hi there,
I'm trying to add the following dataset to Huggingface datasets: https://huggingface.co/datasets/Heriot-WattUniversity/dialog-babi/blob/
I'm trying to do so using the CLI commands but seems that this command generates the wrong `dataset_info.json` file (you can find it in the repo already):
```
datasets-cli test Heriot-WattUniversity/dialog-babi/dialog_babi.py --save_infos --all-configs
```
while it errors when I remove the python script:
```
datasets-cli test Heriot-WattUniversity/dialog-babi/ --save_infos --all-configs
```
The error message is the following:
```
FileNotFoundError: Unable to resolve any data file that matches '['**']' at /Users/as2180/workspace/Heriot-WattUniversity/dialog-babi with any supported extension ['csv', 'tsv', 'json', 'jsonl', 'parquet', 'txt', 'blp', 'bmp', 'dib', 'bufr', 'cur', 'pcx', 'dcx', 'dds', 'ps', 'eps', 'fit', 'fits', 'fli', 'flc', 'ftc', 'ftu', 'gbr', 'gif', 'grib', 'h5', 'hdf', 'png', 'apng', 'jp2', 'j2k', 'jpc', 'jpf', 'jpx', 'j2c', 'icns', 'ico', 'im', 'iim', 'tif', 'tiff', 'jfif', 'jpe', 'jpg', 'jpeg', 'mpg', 'mpeg', 'msp', 'pcd', 'pxr', 'pbm', 'pgm', 'ppm', 'pnm', 'psd', 'bw', 'rgb', 'rgba', 'sgi', 'ras', 'tga', 'icb', 'vda', 'vst', 'webp', 'wmf', 'emf', 'xbm', 'xpm', 'zip']
```
## Environment info
- `datasets` version: 2.3.2
- Platform: macOS-12.4-arm64-arm-64bit
- Python version: 3.9.9
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi @aleSuglia, thanks for reporting.
We are having a look at it.
We transfer this issue to the Community tab of the corresponding Hub dataset: https://huggingface.co/datasets/Heriot-WattUniversity/dialog-babi/discussions | [
-1.1563730239868164,
-1.0545293092727661,
-0.840805172920227,
1.6767115592956543,
-0.2316257506608963,
-1.145721435546875,
-0.05734400823712349,
-0.9049237966537476,
1.616195559501648,
-0.684027910232544,
0.03918842598795891,
-1.7691490650177002,
-0.18053153157234192,
-0.8608520030975342,
-0.6357885599136353,
-0.6973652839660645,
-0.14178679883480072,
-0.8745909929275513,
1.1502522230148315,
2.394993305206299,
0.9087046980857849,
-1.5950427055358887,
2.819363832473755,
0.6499490737915039,
-0.02720913663506508,
-1.1578705310821533,
0.5427202582359314,
-0.1245715543627739,
-1.0199089050292969,
-0.5265097618103027,
-1.0151302814483643,
0.14245013892650604,
-0.7472745776176453,
-0.27619117498397827,
0.06697728484869003,
0.5320363640785217,
-0.16392682492733002,
-0.48893436789512634,
-0.4200787842273712,
-0.6442352533340454,
0.37188658118247986,
-0.44077175855636597,
0.8866895437240601,
-0.2078804224729538,
1.6751960515975952,
-0.3188067674636841,
0.1660895198583603,
0.6257438659667969,
1.3944387435913086,
0.2557276487350464,
0.16177895665168762,
0.3648913502693176,
0.3188536465167999,
0.018381968140602112,
0.6246002912521362,
1.1492708921432495,
0.6422710418701172,
0.3435611128807068,
0.8632357120513916,
-2.4754223823547363,
1.2518314123153687,
-1.1700773239135742,
0.3229980766773224,
1.3337429761886597,
-0.7803354263305664,
0.6220424175262451,
-1.8663830757141113,
0.17987902462482452,
0.5804802179336548,
-2.058962821960449,
0.4401639401912689,
-1.1204705238342285,
-0.36965805292129517,
0.7799865007400513,
0.3581031858921051,
-1.3313920497894287,
0.2716221809387207,
-0.30690762400627136,
1.0765196084976196,
0.2754238545894623,
0.9324323534965515,
-1.8297713994979858,
0.12029965221881866,
-0.2189987450838089,
0.2501296103000641,
-1.2189269065856934,
-1.6434017419815063,
0.5208024978637695,
0.5026288032531738,
0.7735995650291443,
-0.21940240263938904,
0.8842648863792419,
-1.2995569705963135,
0.5946178436279297,
-1.0623259544372559,
-1.6533714532852173,
-1.2317479848861694,
-2.3241095542907715,
-2.3051342964172363,
0.7312251329421997,
-0.46370720863342285,
-0.34402233362197876,
2.0292744636535645,
-0.8085533976554871,
-1.7868406772613525,
1.2516217231750488,
0.5663938522338867,
0.09402833133935928,
2.4295384883880615,
0.19076383113861084,
-0.8250253796577454,
0.5547803044319153,
-0.9253292679786682,
0.8628411293029785,
-0.42533406615257263,
1.5367542505264282,
0.3943823575973511,
-0.7585263252258301,
1.8008983135223389,
-0.46248334646224976,
0.5632757544517517,
-0.6480849981307983,
-0.461550772190094,
-0.8401275277137756,
0.2885722815990448,
1.9487427473068237,
-0.09073591232299805,
1.3703820705413818,
-0.4605230689048767,
-1.4883410930633545,
-1.4622910022735596,
1.0261081457138062,
0.21785102784633636,
-1.0186989307403564,
0.11902309954166412,
-0.40414002537727356,
0.30640125274658203,
-0.19783718883991241,
1.1474021673202515,
1.2373732328414917,
0.5943230390548706,
-0.2779938876628876,
-0.9835286736488342,
0.08951390534639359,
-0.3250550925731659,
-0.5554502010345459,
-1.9156529903411865,
-0.23951521515846252,
0.13886955380439758,
0.7928241491317749,
-1.269780158996582,
1.6112412214279175,
0.8285660147666931,
2.010023593902588,
0.9838290810585022,
-0.5232124924659729,
1.5273816585540771,
0.15150310099124908,
1.8021332025527954,
-0.7391709089279175,
0.5554668307304382,
-0.4326237142086029,
-1.1590752601623535,
0.9814285635948181,
-0.2939969003200531,
-1.8551969528198242,
-0.6927561163902283,
-0.9764951467514038,
-0.4663659632205963,
-0.6951356530189514,
0.8070762157440186,
-0.5002717971801758,
-1.5337252616882324,
0.22494545578956604,
-0.6076902151107788,
0.44395485520362854,
-1.1511881351470947,
0.22356031835079193,
0.7515566945075989,
-0.5425876975059509,
0.17666418850421906,
-0.4009054899215698,
-1.4697083234786987,
-0.5523902177810669,
0.6652703881263733,
1.8967459201812744,
-0.6650312542915344,
0.8105255961418152,
1.032280445098877,
-0.7152656316757202,
-0.10461827367544174,
0.2703830897808075,
-0.17744018137454987,
0.6982586979866028,
-0.9874256253242493,
-0.9228310585021973,
1.163106083869934,
-0.3256717622280121,
-0.6117455363273621,
1.3015015125274658,
0.9215613603591919,
-1.1732738018035889,
-0.32798317074775696,
-0.2706587314605713,
-0.8905729651451111,
0.0699043795466423,
-1.5717426538467407,
-0.262554794549942,
0.4826343357563019,
-1.601189136505127,
-0.4289732575416565,
-0.33864250779151917,
1.1319150924682617,
-0.09301645308732986,
1.2528823614120483,
-0.3158853352069855,
-0.1544177085161209,
-0.10425810515880585,
-0.694429874420166,
0.4129822254180908,
-0.32754576206207275,
-0.6078774333000183,
0.0696355402469635,
-0.8362412452697754,
0.41691967844963074,
1.474777340888977,
0.2518104910850525,
-0.09703215211629868,
0.5757988095283508,
1.184556245803833,
0.5011834502220154,
0.326141357421875,
-0.9150484800338745,
-1.5048589706420898,
1.957517147064209,
-1.7224270105361938,
1.895266056060791,
0.49247831106185913,
0.0384906530380249,
-1.7947908639907837,
-1.7591625452041626,
1.495619297027588,
1.1964045763015747,
2.1794087886810303,
0.7443380355834961,
0.3549864888191223,
-0.9678985476493835,
-0.6801910996437073,
0.13060727715492249,
-0.7518337368965149,
-0.7246738076210022,
0.15898823738098145,
2.4235663414001465,
1.794161081314087,
-0.4793473482131958,
-0.20700666308403015,
-0.8129752278327942,
1.5897917747497559,
-0.40633833408355713,
0.5035800337791443,
2.0099432468414307,
-0.3030359447002411,
-0.9914048910140991,
1.2867294549942017,
-2.6134040355682373,
0.31024169921875,
2.0582098960876465,
0.2937549352645874,
0.2867843210697174,
-1.3737304210662842,
-0.8043948411941528,
-0.17969278991222382,
-0.3719845116138458,
-1.317157506942749,
0.5590373277664185,
-0.3613659143447876,
-0.6517370939254761,
-1.628176212310791,
0.23811717331409454,
-1.165307641029358,
-1.4528244733810425,
0.30804187059402466,
2.0677335262298584,
2.278885841369629,
-0.793954074382782,
1.6835235357284546,
-0.12059783935546875,
0.41821950674057007,
1.3090736865997314,
1.1440625190734863,
2.855144739151001,
1.6723023653030396,
-1.06544828414917,
0.6136265397071838,
-0.17066878080368042,
-0.5613387227058411,
1.1970041990280151,
-0.9395068287849426,
0.9663748741149902,
-0.1926288604736328,
-1.0343419313430786,
-1.195562720298767,
0.8585614562034607,
0.4183562397956848,
-0.08251992613077164,
-0.37402158975601196,
1.1216044425964355,
-0.05903353542089462,
1.1032414436340332,
0.7430680394172668,
-0.44961345195770264,
0.2609040141105652,
-0.3779841959476471,
-0.6455202102661133,
1.545691728591919,
0.03124581277370453,
-1.5384904146194458,
-2.1575732231140137,
-0.2731507420539856,
-0.7615175843238831,
-0.025468692183494568,
-0.509600043296814,
-1.0184789896011353,
1.3943424224853516,
0.2908667325973511,
-0.9274595379829407,
-0.10259326547384262,
-0.3028247058391571,
-0.4113472104072571,
2.6442830562591553,
-1.26935875415802,
-0.5351693034172058,
-0.8911152482032776,
-0.5840460062026978,
1.6478136777877808,
-1.0720129013061523,
-0.11322524398565292,
-1.003422498703003,
-0.5210356712341309,
-1.4543646574020386,
-0.4302864372730255,
0.04470032453536987,
-0.8043702244758606,
1.005234718322754,
0.41725584864616394,
-1.091199278831482,
-0.2267734259366989,
-1.0027897357940674,
0.9512501955032349,
-0.26164257526397705,
0.3097308278083801,
1.9180015325546265,
0.3000815212726593,
-0.2988058030605316,
1.0101147890090942,
1.0856460332870483,
0.6553525924682617,
-0.5439590811729431,
0.11735333502292633,
-0.44670194387435913,
0.47607970237731934,
-1.3415054082870483,
0.160273939371109,
-3.0030438899993896,
0.6110517978668213,
0.040544040501117706,
-0.13209332525730133,
0.024694163352251053,
-1.4467381238937378,
1.1275190114974976,
2.3515825271606445,
-1.3408164978027344,
0.6190221309661865,
0.35046616196632385,
1.5843018293380737,
-1.6766045093536377,
0.21945399045944214,
-0.40124866366386414,
2.197964668273926,
-0.02989288419485092,
1.1177453994750977,
-0.5492478013038635,
-2.546428918838501,
0.47445788979530334,
-1.3098876476287842,
-0.959355890750885,
0.4120180606842041,
-0.9249663352966309,
0.24167664349079132,
-1.7201613187789917,
-0.2584671974182129,
-1.098668098449707,
-1.2382211685180664,
0.7507438063621521,
0.1724759340286255,
0.1977931559085846,
-0.6513992547988892,
0.429028183221817,
-2.016082525253296,
-1.5193203687667847,
-0.10058474540710449,
-0.8734956383705139,
0.7191627025604248,
-0.41211387515068054,
0.701863706111908,
-0.11718999594449997,
0.00838505569845438,
0.12187229096889496,
1.59230375289917,
3.481642961502075,
0.0456140972673893,
0.4055229127407074,
-0.18488503992557526,
-0.9500888586044312,
1.4125087261199951,
1.0236072540283203,
-0.15589536726474762,
-0.49534645676612854,
-1.2094467878341675,
1.495815634727478,
2.1052489280700684,
0.8725602626800537,
0.03391481190919876,
-0.6148213148117065,
-0.5861717462539673,
0.043234262615442276,
0.22041593492031097,
0.5821878910064697,
0.7799643278121948,
0.011052732355892658,
-0.02449765056371689,
1.2768733501434326,
1.160348653793335,
-0.3812725841999054,
0.3117585778236389,
-0.9388708472251892,
-0.3084075152873993,
0.578799307346344,
0.05053884908556938,
-0.13640733063220978,
0.35249125957489014,
-1.016592025756836,
-0.27087685465812683,
-0.2711847126483917,
-0.8454099893569946,
-0.6474965810775757,
-0.3755032420158386,
-0.3627091944217682,
1.4850420951843262,
0.486284464597702,
-0.7514511346817017,
-0.05824216827750206,
-0.5780510306358337,
0.0012492919340729713,
-0.999320387840271,
-0.01936992071568966,
-0.3525618314743042,
-0.1586627960205078,
-0.3001866638660431,
1.7444396018981934,
-0.9159318208694458,
-2.016805410385132,
-0.09857625514268875,
0.5780555605888367,
-0.05168536677956581,
0.15472769737243652,
1.7286237478256226,
0.4017305076122284,
1.4404820203781128,
1.4195502996444702,
0.9640389084815979,
-0.5735244750976562,
-1.350882887840271,
0.5375241041183472,
1.0293627977371216,
-1.2469496726989746,
0.9643958806991577,
-0.030944176018238068,
-0.648202657699585,
0.6811776161193848,
1.4914411306381226,
0.37474068999290466,
-2.0030484199523926,
0.7949019074440002,
-1.2391215562820435,
0.9031956195831299,
0.7750345468521118,
0.9071990251541138,
0.35469475388526917,
0.7678022384643555,
-1.1856024265289307,
-1.070510983467102,
-0.9231367707252502,
-0.7612317204475403,
1.9047349691390991,
-0.23931708931922913,
0.4141004681587219,
0.04473082348704338,
-1.2169007062911987,
-0.13530024886131287,
0.6543753147125244,
0.43338173627853394,
-0.35088294744491577,
0.7620183229446411,
-0.8445553183555603,
-1.2713266611099243,
-1.3625075817108154,
-0.5054793953895569,
-0.9218148589134216,
-1.041754961013794,
0.9340145587921143,
0.8492067456245422,
0.3519745469093323,
1.8554960489273071,
0.6466562151908875,
0.06881812959909439,
-2.3921592235565186,
0.9305094480514526,
0.33288997411727905,
-0.23558050394058228,
0.664132833480835,
0.3819429278373718,
1.2511959075927734,
0.03955772519111633,
0.6310865879058838,
-2.180983066558838,
2.0964462757110596,
-0.21814808249473572,
0.8886504769325256,
-0.1874491274356842,
-0.04249386116862297,
1.0695785284042358,
0.33649277687072754,
0.5809449553489685,
-0.969205379486084,
0.6359239816665649,
-0.5438516736030579,
1.2308151721954346,
1.1585787534713745,
-0.773442268371582,
0.05274347588419914,
1.354156494140625,
0.28875696659088135,
-0.8266929388046265,
-1.02144193649292,
-0.7688085436820984,
0.935899555683136,
1.7076882123947144,
-0.2891170382499695,
-0.057757146656513214,
0.7822980284690857,
0.5807978510856628,
-1.2548913955688477,
0.0025284718722105026,
-0.51015305519104,
-0.5647380352020264,
1.8381251096725464,
1.9338434934616089,
-0.39796116948127747,
0.05064792558550835,
-0.7251453399658203,
-1.3572098016738892,
0.5195953249931335,
0.12288963794708252,
-0.10884842276573181,
0.8079210519790649,
-0.6306769847869873,
0.9520731568336487,
0.6285365223884583,
0.8598026037216187,
0.030336808413267136,
0.37466731667518616,
0.5134537816047668,
-0.5167006254196167,
-1.0502458810806274,
-0.36569467186927795,
-1.2623710632324219,
-2.5500829219818115,
0.29432186484336853,
-0.1031385287642479,
-1.3699021339416504,
0.05311804637312889,
-0.8362433314323425,
1.1881308555603027,
-0.46786996722221375,
-1.2937357425689697,
-1.2223621606826782,
0.35682278871536255,
0.015241275541484356,
0.7504281997680664,
-1.8166635036468506,
-0.036786749958992004,
1.3792368173599243,
0.9829906821250916,
-0.7287036776542664,
1.080680251121521,
0.39223116636276245,
1.0400595664978027,
0.6680874228477478,
-0.33985066413879395,
0.5400874018669128,
-0.1255832016468048,
-1.2315775156021118,
0.5121747851371765,
1.2351106405258179,
0.09041140228509903,
1.1710962057113647,
-0.3921010196208954,
-0.15609730780124664,
0.4028485119342804,
-0.5846078395843506,
-0.41080644726753235,
-0.286807119846344,
0.5460163950920105,
-0.03691421449184418,
-0.6816107630729675,
0.06929036229848862,
0.20424340665340424,
-0.26682549715042114,
0.17644409835338593,
-1.5510181188583374,
-0.3725467026233673,
-0.41851451992988586,
-0.29342249035835266,
-1.325087070465088,
-0.10321711748838425,
1.3358205556869507,
-0.44611573219299316,
-0.40100806951522827,
0.6868656873703003,
0.3481518626213074,
0.4589589536190033,
0.5061846971511841,
-0.7047679424285889,
-0.32901641726493835,
-0.16561760008335114,
-0.3984062969684601,
0.17773227393627167,
1.3013920783996582,
-0.17948557436466217,
-1.0595420598983765,
0.601105809211731,
-0.3576887249946594,
-0.04660290852189064,
1.6329545974731445,
-0.13800951838493347,
-0.9482870697975159,
0.24854932725429535,
-0.7831178307533264,
1.9981509447097778,
1.6907826662063599,
1.1548775434494019,
-0.24712619185447693,
-0.748576819896698,
0.7219812870025635,
-0.3395550549030304,
-0.35651105642318726,
0.7328532338142395,
0.4379075765609741,
-0.22155657410621643,
-1.3967969417572021,
0.7075084447860718,
1.1567636728286743,
-0.7787859439849854,
-0.8200767040252686,
0.20556430518627167,
-0.7478993535041809,
1.2417770624160767,
0.6701275706291199,
0.37269723415374756,
0.17542162537574768,
1.7419278621673584,
0.8089409470558167,
-0.5815017819404602,
0.666179358959198,
0.6127715706825256,
-0.3559483587741852,
-2.0588555335998535,
-1.263506293296814,
0.044917892664670944,
-0.4069705307483673,
-1.739859700202942,
1.3614577054977417,
-1.0433666706085205,
-0.8093701004981995,
0.6469317674636841,
0.10356380045413971,
1.1781842708587646,
0.5121604204177856,
1.3140413761138916,
1.9758846759796143,
0.6394959688186646,
0.5983931422233582,
1.22378408908844,
-0.3227616250514984,
-0.5914654731750488,
1.9138225317001343,
-0.36075717210769653,
0.6485419869422913,
1.1636106967926025,
-0.35042238235473633,
-1.1210676431655884,
-0.6409448385238647,
-1.211545467376709,
-0.5383480787277222,
1.102597713470459,
0.057716261595487595,
-1.1869449615478516,
0.3301028311252594,
1.5714905261993408,
0.07273135334253311,
-0.48266634345054626,
0.8111187219619751,
0.48259034752845764,
-0.8537529110908508,
-0.0936332494020462,
-0.9838225245475769,
0.4594804346561432,
-0.35260170698165894,
-0.07611142843961716,
0.43641531467437744,
0.4202940762042999,
1.3966236114501953,
0.1017441377043724,
0.260783314704895,
1.0532325506210327,
-1.3688969612121582,
1.4839019775390625,
-0.8531363010406494,
0.38556578755378723,
-2.395883083343506,
1.2000339031219482,
-0.730202853679657,
2.194904327392578,
-2.614122152328491,
0.37077978253364563,
-0.6520872116088867,
-0.49134358763694763,
0.24012066423892975,
-0.24751606583595276,
0.019020911306142807,
0.03417501971125603,
-1.006601333618164,
0.12554480135440826,
-0.666094183921814,
0.3587853014469147,
1.2593495845794678,
1.3772205114364624,
-0.9689736366271973,
-0.13436414301395416,
-1.7047185897827148,
-0.18434973061084747,
-0.7042319774627686,
0.38076409697532654,
-2.120872974395752,
-0.2800634205341339,
-1.8150194883346558,
-2.211838960647583,
-1.2827662229537964,
-0.9019551873207092,
1.2601420879364014,
0.012471401132643223,
-0.9481160640716553,
1.525844693183899,
-0.19551518559455872,
-1.7570167779922485,
1.0537029504776,
-1.9441465139389038
] |
https://github.com/huggingface/datasets/issues/4661 | Concurrency bug when using same cache among several jobs | I can confirm that if I run one job first that processes the dataset, then I can run any jobs in parallel with no problem (no write-concurrency anymore...). | ## Describe the bug
I used to see this bug with an older version of the datasets. It seems to persist.
This is my concrete scenario: I launch several evaluation jobs on a cluster in which I share the file system and I share the cache directory used by huggingface libraries. The evaluation jobs read the same *.csv files. If my jobs get all scheduled pretty much at the same time, there are all kinds of weird concurrency errors. Sometime it crashes silently. This time I got lucky that it crashed with a stack trace that I can share and maybe you get to the bottom of this. If you don't have a similar setup available, it may be hard to reproduce as you really need two jobs accessing the same file at the same time to see this type of bug.
## Steps to reproduce the bug
I'm running a modified version of `run_glue.py` script adapted to my use case. I've seen the same problem when running some glue datasets as well (so it's not specific to loading the datasets from csv files).
## Expected results
No crash, concurrent access to the (intermediate) files just fine.
## Actual results
Crashes due to races/concurrency bugs.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.18.0-348.23.1.el8_5.x86_64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 8.0.0
- Pandas version: 1.1.0
Stack trace that I just got with the crash (I've obfuscated some names, it should still be quite informative):
```
Running tokenizer on dataset: 0%| | 0/3 [00:00<?, ?ba/s]
Traceback (most recent call last):
File "../../src/models//run_*******.py", line 600, in <module>
main()
File "../../src/models//run_*******.py", line 444, in main
raw_datasets = raw_datasets.map(
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/dataset_dict.py", line 770, in map
{
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/dataset_dict.py", line 771, in <dictcomp>
k: dataset.map(
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2376, in map
return self._map_single(
File "/*******/envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 551, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 518, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/*******/envs/tr-crt/lib/python3.8/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2776, in _map_single
buf_writer, writer, tmp_file = init_buffer_and_writer()
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2696, in init_buffer_and_writer
tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)
File "/*******//envs/tr-crt/lib/python3.8/tempfile.py", line 541, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/*******//envs/tr-crt/lib/python3.8/tempfile.py", line 250, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
FileNotFoundError: [Errno 2] No such file or directory: '/*******/cache-transformers//transformers/csv/default-ef9cd184210742a7/0.0.0/51cce309a08df9c4d82ffd9363bbe090bf173197fc01a71b034e8594995a1a58/tmps8l6j5yc'
```
As I ran 100s of experiments last year for an empirical paper, I ran into this type of bugs several times. I found several bandaid/work-arounds, e.g., run one job first that caches the dataset => eliminate concurrency; OR use unique caches => eliminate concurrency (but increase storage space), etc. and it all works fine.
I'd like to help you fixing this bug as it's really annoying to always apply the work arounds. Let me know what other info from my side could help you figure out the issue.
Thanks for your help!
| 645 | 28 | Concurrency bug when using same cache among several jobs
## Describe the bug
I used to see this bug with an older version of the datasets. It seems to persist.
This is my concrete scenario: I launch several evaluation jobs on a cluster in which I share the file system and I share the cache directory used by huggingface libraries. The evaluation jobs read the same *.csv files. If my jobs get all scheduled pretty much at the same time, there are all kinds of weird concurrency errors. Sometime it crashes silently. This time I got lucky that it crashed with a stack trace that I can share and maybe you get to the bottom of this. If you don't have a similar setup available, it may be hard to reproduce as you really need two jobs accessing the same file at the same time to see this type of bug.
## Steps to reproduce the bug
I'm running a modified version of `run_glue.py` script adapted to my use case. I've seen the same problem when running some glue datasets as well (so it's not specific to loading the datasets from csv files).
## Expected results
No crash, concurrent access to the (intermediate) files just fine.
## Actual results
Crashes due to races/concurrency bugs.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.18.0-348.23.1.el8_5.x86_64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 8.0.0
- Pandas version: 1.1.0
Stack trace that I just got with the crash (I've obfuscated some names, it should still be quite informative):
```
Running tokenizer on dataset: 0%| | 0/3 [00:00<?, ?ba/s]
Traceback (most recent call last):
File "../../src/models//run_*******.py", line 600, in <module>
main()
File "../../src/models//run_*******.py", line 444, in main
raw_datasets = raw_datasets.map(
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/dataset_dict.py", line 770, in map
{
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/dataset_dict.py", line 771, in <dictcomp>
k: dataset.map(
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2376, in map
return self._map_single(
File "/*******/envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 551, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 518, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/*******/envs/tr-crt/lib/python3.8/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2776, in _map_single
buf_writer, writer, tmp_file = init_buffer_and_writer()
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2696, in init_buffer_and_writer
tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)
File "/*******//envs/tr-crt/lib/python3.8/tempfile.py", line 541, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/*******//envs/tr-crt/lib/python3.8/tempfile.py", line 250, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
FileNotFoundError: [Errno 2] No such file or directory: '/*******/cache-transformers//transformers/csv/default-ef9cd184210742a7/0.0.0/51cce309a08df9c4d82ffd9363bbe090bf173197fc01a71b034e8594995a1a58/tmps8l6j5yc'
```
As I ran 100s of experiments last year for an empirical paper, I ran into this type of bugs several times. I found several bandaid/work-arounds, e.g., run one job first that caches the dataset => eliminate concurrency; OR use unique caches => eliminate concurrency (but increase storage space), etc. and it all works fine.
I'd like to help you fixing this bug as it's really annoying to always apply the work arounds. Let me know what other info from my side could help you figure out the issue.
Thanks for your help!
I can confirm that if I run one job first that processes the dataset, then I can run any jobs in parallel with no problem (no write-concurrency anymore...). | [
-1.2329033613204956,
-0.9238336682319641,
-0.7017348408699036,
1.3927226066589355,
-0.19954971969127655,
-1.2542363405227661,
0.09773635864257812,
-1.0371589660644531,
1.6832343339920044,
-0.7469403147697449,
0.2707950472831726,
-1.5914100408554077,
0.024656223133206367,
-0.48467937111854553,
-0.7575728893280029,
-0.7976261377334595,
-0.4289136230945587,
-0.8078377842903137,
1.0230486392974854,
2.4866151809692383,
1.1560415029525757,
-1.426483392715454,
2.720022201538086,
0.6722093224525452,
-0.12758806347846985,
-0.9687328934669495,
0.5730024576187134,
0.061254873871803284,
-1.3963040113449097,
-0.39002707600593567,
-0.8986400961875916,
-0.057714931666851044,
-0.4859548807144165,
-0.48745787143707275,
0.07748215645551682,
0.3558228313922882,
-0.19416822493076324,
-0.4751602113246918,
-0.5312468409538269,
-0.7265966534614563,
0.45506930351257324,
-0.3785613179206848,
0.922385036945343,
-0.3746470510959625,
1.8010940551757812,
-0.5960978269577026,
0.47358179092407227,
0.751183271408081,
1.3497413396835327,
0.20751670002937317,
0.0015152515843510628,
0.33660951256752014,
0.44416964054107666,
-0.0018611778505146503,
0.48030179738998413,
1.1460471153259277,
0.6175135374069214,
0.4188775420188904,
0.7251126766204834,
-2.1816868782043457,
1.3344223499298096,
-0.923809826374054,
0.37610453367233276,
1.3228516578674316,
-0.9725057482719421,
0.35129398107528687,
-1.8559553623199463,
-0.07261932641267776,
0.5281421542167664,
-2.267890691757202,
0.21608830988407135,
-1.2710505723953247,
-0.530193030834198,
0.9141040444374084,
0.31016239523887634,
-1.2378233671188354,
0.0983242318034172,
-0.5416744351387024,
0.9582257270812988,
0.4242982864379883,
1.1759051084518433,
-1.6483875513076782,
-0.10932076722383499,
-0.24669988453388214,
0.14118137955665588,
-1.2311266660690308,
-1.5303062200546265,
0.547578752040863,
0.657357931137085,
0.527765154838562,
-0.12078149616718292,
0.9194081425666809,
-0.9795836806297302,
0.8601624369621277,
-0.9254133701324463,
-1.784849762916565,
-1.419840931892395,
-2.3056912422180176,
-2.2400941848754883,
0.842341423034668,
-0.43370428681373596,
-0.4272707998752594,
2.0751070976257324,
-1.0110126733779907,
-1.7779669761657715,
1.0957602262496948,
0.2480023205280304,
0.023204850032925606,
2.3383631706237793,
0.1794026643037796,
-0.7184562087059021,
0.44837912917137146,
-0.7326676845550537,
0.7413168549537659,
-0.4724508821964264,
1.3033806085586548,
0.383430153131485,
-0.9118664264678955,
1.5519294738769531,
-0.358080118894577,
0.5552284121513367,
-0.6919999122619629,
-0.4535450339317322,
-0.8036372065544128,
0.31796881556510925,
1.922790765762329,
-0.2973347008228302,
1.5185171365737915,
-0.35712599754333496,
-1.616060495376587,
-1.5575562715530396,
0.8377557992935181,
0.5381344556808472,
-0.7286116480827332,
0.09905336797237396,
-0.3825523555278778,
0.12499810010194778,
-0.017297912389039993,
1.0480780601501465,
1.2605782747268677,
0.8007968068122864,
-0.2760382890701294,
-0.9369680285453796,
0.2075759768486023,
-0.12155427038669586,
-0.6875786185264587,
-1.8609733581542969,
-0.3038603663444519,
0.1865893453359604,
0.6619401574134827,
-1.240735411643982,
1.7307571172714233,
0.9387721419334412,
1.9794399738311768,
1.0619090795516968,
-0.3595784306526184,
1.5364902019500732,
0.10787650942802429,
1.8952507972717285,
-0.44697391986846924,
0.6355227828025818,
-0.43989986181259155,
-1.1319555044174194,
0.809550940990448,
-0.30322253704071045,
-2.0458595752716064,
-0.7130417227745056,
-0.8560198545455933,
-0.1842396855354309,
-0.6727656126022339,
0.9994413256645203,
-0.31245744228363037,
-1.324344277381897,
0.2150300145149231,
-0.7275170087814331,
0.07342217117547989,
-1.223250389099121,
0.26421281695365906,
0.7292711734771729,
-0.6224914193153381,
0.08936009556055069,
-0.29325562715530396,
-1.3544498682022095,
-0.5431269407272339,
0.34789127111434937,
1.816513180732727,
-0.768754243850708,
1.0008788108825684,
1.0091760158538818,
-0.7375898361206055,
0.017464857548475266,
0.44107913970947266,
-0.34790346026420593,
0.8386896252632141,
-1.0647481679916382,
-0.39312782883644104,
1.1730632781982422,
-0.2735975980758667,
-0.5668465495109558,
1.4536467790603638,
0.7078868746757507,
-1.0167062282562256,
-0.16416531801223755,
-0.11552724987268448,
-0.8837972283363342,
0.030519047752022743,
-1.6604818105697632,
-0.12766040861606598,
0.28934526443481445,
-1.5987548828125,
-0.4836726188659668,
-0.20981912314891815,
1.2307032346725464,
-0.03503192216157913,
1.4205533266067505,
-0.2857668995857239,
-0.20365172624588013,
-0.42227089405059814,
-0.39458751678466797,
0.15289898216724396,
-0.2179459035396576,
-0.6586014628410339,
0.2931962013244629,
-0.8383550047874451,
0.2931104600429535,
1.433663010597229,
0.38795965909957886,
-0.0007315557450056076,
0.6215696930885315,
1.0140364170074463,
0.3319977819919586,
-0.07357775419950485,
-0.8330941200256348,
-1.6187753677368164,
2.059441328048706,
-1.5298408269882202,
1.9725103378295898,
0.810828685760498,
-0.10220415890216827,
-1.812065601348877,
-1.9247931241989136,
1.3724982738494873,
1.0836583375930786,
2.4047482013702393,
0.514912486076355,
0.4385170340538025,
-0.7490354180335999,
-0.6842224597930908,
0.3354140520095825,
-1.0324783325195312,
-0.7886961102485657,
0.057123199105262756,
2.374950885772705,
1.75495445728302,
-0.49074921011924744,
-0.13354244828224182,
-1.0533632040023804,
1.4398479461669922,
-0.1364002376794815,
0.1975420117378235,
1.9512555599212646,
-0.2020498663187027,
-1.0059140920639038,
1.2277556657791138,
-2.2869882583618164,
0.274141788482666,
2.0048987865448,
0.25426942110061646,
0.1427433341741562,
-1.429157018661499,
-0.6444079279899597,
-0.23649068176746368,
-0.3860805332660675,
-1.2005970478057861,
0.5862820744514465,
-0.26650768518447876,
-0.8238323330879211,
-1.4800046682357788,
0.11066646873950958,
-1.1749701499938965,
-1.7292590141296387,
0.3206776976585388,
1.9153813123703003,
2.0437800884246826,
-0.6637215614318848,
1.4804770946502686,
-0.28597092628479004,
0.1300889104604721,
1.2145261764526367,
1.1790108680725098,
3.161425828933716,
1.9580092430114746,
-1.2541229724884033,
0.6156867742538452,
-0.14801296591758728,
-0.4103420078754425,
1.067006230354309,
-1.139477014541626,
1.2453405857086182,
-0.15296386182308197,
-1.136172890663147,
-1.1123179197311401,
1.0116077661514282,
0.4710526466369629,
0.05264395475387573,
-0.42268988490104675,
1.1950644254684448,
0.060915976762771606,
1.3364018201828003,
0.5508518218994141,
-0.3423879146575928,
0.641456663608551,
-0.3923546075820923,
-0.4773200750350952,
1.6110272407531738,
0.20593807101249695,
-1.4347957372665405,
-2.3398025035858154,
-0.2227453738451004,
-0.8720264434814453,
0.07035078853368759,
-0.6273858547210693,
-0.983644962310791,
1.5591644048690796,
0.42287343740463257,
-1.1747874021530151,
-0.2812717854976654,
-0.37520015239715576,
-0.7185059785842896,
2.618504047393799,
-1.441177248954773,
-0.26691514253616333,
-0.9481221437454224,
-0.5707778334617615,
1.559620976448059,
-1.2324706315994263,
-0.2329685539007187,
-1.0246448516845703,
-0.5112626552581787,
-1.2564067840576172,
-0.5929456949234009,
-0.0010448130778968334,
-0.9474164247512817,
0.841528594493866,
0.14495010673999786,
-1.1418609619140625,
-0.28656822443008423,
-0.9281325936317444,
0.8446786999702454,
0.0017693080008029938,
0.1469988226890564,
1.816055178642273,
0.36227360367774963,
-0.39961645007133484,
0.703453004360199,
1.1711293458938599,
0.6363793611526489,
-0.6074271202087402,
0.18950976431369781,
-0.6347396373748779,
0.3436036705970764,
-1.300039291381836,
0.2926325500011444,
-2.83854079246521,
0.6615379452705383,
-0.08794518560171127,
-0.06389132887125015,
-0.046366170048713684,
-1.2450016736984253,
1.111568570137024,
2.614672899246216,
-1.153367280960083,
0.5030839443206787,
0.31067806482315063,
1.175458312034607,
-1.5367218255996704,
0.366115003824234,
-0.4208705723285675,
2.1111302375793457,
0.16264690458774567,
1.1516869068145752,
-0.5634971261024475,
-2.3132638931274414,
0.6433838605880737,
-1.1995582580566406,
-1.1526768207550049,
0.7078866362571716,
-0.85052889585495,
0.06696823984384537,
-1.406219720840454,
-0.1884087324142456,
-0.83687424659729,
-1.2052724361419678,
0.6175411939620972,
0.12184468656778336,
0.4688475728034973,
-0.6375334858894348,
0.3175504505634308,
-2.2491047382354736,
-1.376725435256958,
-0.23260559141635895,
-0.9679996371269226,
0.5095770955085754,
-0.34541749954223633,
0.7425751686096191,
-0.14647170901298523,
0.028836360201239586,
0.2718331217765808,
1.3634016513824463,
3.3533127307891846,
0.08455996215343475,
0.3350665867328644,
-0.2105044424533844,
-0.9844630360603333,
1.4330099821090698,
0.9963602423667908,
-0.14526188373565674,
-0.6161500811576843,
-1.0118670463562012,
1.2372899055480957,
2.0420892238616943,
1.0176619291305542,
0.07987436652183533,
-0.7820407152175903,
-0.740315854549408,
0.009243343025445938,
0.13992397487163544,
0.5712003707885742,
0.9937987923622131,
0.0389271005988121,
0.10418780148029327,
1.4752132892608643,
1.214350700378418,
-0.39040088653564453,
0.358875572681427,
-0.7956196069717407,
-0.45483383536338806,
0.5228317975997925,
0.42968571186065674,
-0.07103129476308823,
0.3200841546058655,
-1.0905911922454834,
-0.2122560739517212,
-0.37387967109680176,
-0.9508933424949646,
-0.6943208575248718,
-0.38761624693870544,
-0.3818066716194153,
1.7003259658813477,
0.13613581657409668,
-0.5107594132423401,
-0.05237963795661926,
-0.7416260242462158,
-0.0024910406209528446,
-1.0453734397888184,
0.3226880431175232,
-0.17985732853412628,
0.016841711476445198,
-0.09548085182905197,
1.8171809911727905,
-0.9305124878883362,
-2.0797154903411865,
0.23697537183761597,
0.16826187074184418,
-0.3258024752140045,
0.18363915383815765,
1.6325838565826416,
0.5961681008338928,
1.4105972051620483,
1.4149320125579834,
0.9462331533432007,
-0.6707539558410645,
-1.298887848854065,
0.6629964709281921,
0.9271205067634583,
-1.4411062002182007,
0.7264043092727661,
0.01880718767642975,
-0.5800475478172302,
0.6950099468231201,
1.361751914024353,
0.42720600962638855,
-2.113532781600952,
0.8700810074806213,
-0.9323537945747375,
0.767307698726654,
0.7367337942123413,
0.7626966238021851,
0.22630134224891663,
0.8509262204170227,
-1.30039381980896,
-1.0981281995773315,
-0.7985416054725647,
-0.7168148756027222,
1.9688466787338257,
-0.23429995775222778,
0.5279260873794556,
-0.16332946717739105,
-1.3500103950500488,
-0.1204020082950592,
0.6252211928367615,
0.30007365345954895,
-0.37039485573768616,
0.7960793375968933,
-0.6925665736198425,
-1.2281450033187866,
-1.3925329446792603,
-0.48080646991729736,
-0.9876550436019897,
-0.8559035062789917,
1.0210795402526855,
0.7869719862937927,
0.40270617604255676,
1.9217807054519653,
0.64693683385849,
0.17428353428840637,
-2.7025890350341797,
0.8969810605049133,
0.36408883333206177,
-0.03864403814077377,
0.8636451363563538,
0.24233081936836243,
1.0853006839752197,
-0.022214364260435104,
0.5589105486869812,
-2.4034669399261475,
2.305101156234741,
-0.23705177009105682,
0.7761993408203125,
0.023977765813469887,
-0.12649373710155487,
1.1074497699737549,
0.6279780268669128,
0.6327480673789978,
-1.062944769859314,
0.720798134803772,
-0.6855425834655762,
1.2121002674102783,
0.8928106427192688,
-0.7583017349243164,
-0.03753227740526199,
1.310444712638855,
0.4752095937728882,
-0.46879202127456665,
-0.9651467204093933,
-0.9849721193313599,
0.9138935208320618,
1.8537713289260864,
-0.06410735845565796,
0.0743916928768158,
0.8329160213470459,
0.6231939196586609,
-1.3290592432022095,
-0.013965402729809284,
-0.802543580532074,
-0.7474575042724609,
1.637655258178711,
2.10383939743042,
-0.07897764444351196,
-0.15794681012630463,
-0.7329586744308472,
-1.3039288520812988,
0.7225225567817688,
-0.015160860493779182,
0.13166020810604095,
0.6641762256622314,
-0.5943480134010315,
1.1297192573547363,
0.7781679034233093,
1.0111849308013916,
0.09159678965806961,
0.2706215977668762,
0.274147629737854,
-0.31559744477272034,
-1.1702138185501099,
-0.28668177127838135,
-1.0354582071304321,
-2.4926795959472656,
0.47152647376060486,
-0.18460774421691895,
-1.5351152420043945,
0.03510310500860214,
-1.0057194232940674,
0.872847318649292,
-0.48947572708129883,
-1.1236449480056763,
-1.4481955766677856,
0.15444009006023407,
-0.15371555089950562,
0.8959768414497375,
-1.6124528646469116,
-0.12608517706394196,
1.2439041137695312,
0.8814662098884583,
-0.6310997009277344,
1.0224779844284058,
0.2649100124835968,
1.004524827003479,
0.870025098323822,
-0.3819483816623688,
0.4242117404937744,
0.15438862144947052,
-1.2729073762893677,
0.4293820261955261,
1.188191294670105,
0.13231737911701202,
1.4051854610443115,
-0.6580273509025574,
0.0802234560251236,
0.455713152885437,
-0.4562242031097412,
-0.46476584672927856,
-0.5806195735931396,
0.6953232884407043,
-0.02526187151670456,
-0.936838686466217,
-0.02177535369992256,
-0.13464239239692688,
-0.21689584851264954,
0.21408943831920624,
-1.489835500717163,
-0.1909826397895813,
-0.3478317856788635,
-0.5715667009353638,
-1.2269761562347412,
0.03892183303833008,
1.3855751752853394,
-0.7983750700950623,
-0.17012529075145721,
0.49933570623397827,
0.38908013701438904,
0.6089404225349426,
0.6557640433311462,
-0.7017502188682556,
-0.39818912744522095,
-0.2070336937904358,
-0.38965895771980286,
0.292162150144577,
1.3319830894470215,
-0.08920525759458542,
-0.9640439748764038,
0.6583825945854187,
-0.40463170409202576,
0.07241209596395493,
2.0004775524139404,
0.04612165689468384,
-0.8126254677772522,
0.33411142230033875,
-0.761023223400116,
1.90205717086792,
1.6619932651519775,
1.2786767482757568,
-0.09812206774950027,
-0.9591827392578125,
0.5896592140197754,
-0.25664660334587097,
-0.3799102306365967,
0.8353248834609985,
0.4967234134674072,
-0.21352724730968475,
-1.3628321886062622,
0.6213086247444153,
1.277370810508728,
-0.9135982990264893,
-0.8280133605003357,
0.08883589506149292,
-0.8368635773658752,
1.127488613128662,
0.729240894317627,
0.4440958797931671,
0.20220135152339935,
1.668196678161621,
0.7571184039115906,
-0.5612122416496277,
0.5597189664840698,
0.4965420365333557,
-0.15776972472667694,
-2.096052408218384,
-1.0760124921798706,
0.31292903423309326,
-0.45923367142677307,
-1.599952220916748,
1.3823274374008179,
-1.1153775453567505,
-0.9211938381195068,
0.49323010444641113,
0.09072902053594589,
1.421488642692566,
0.37623754143714905,
1.5893819332122803,
2.03707218170166,
0.9711582064628601,
0.4055747091770172,
1.3259390592575073,
-0.1347130537033081,
-0.49946725368499756,
1.800195574760437,
-0.4672718346118927,
0.5174963474273682,
1.1075845956802368,
-0.41989439725875854,
-1.0389928817749023,
-0.73716801404953,
-1.1077954769134521,
-0.6878788471221924,
1.124611735343933,
0.08230411261320114,
-1.1155853271484375,
0.25591081380844116,
1.5794074535369873,
0.17246001958847046,
-0.2749164402484894,
0.6139568090438843,
0.40925002098083496,
-0.7616655230522156,
-0.1536933034658432,
-0.994153618812561,
0.4470902383327484,
-0.22608532011508942,
-0.42970651388168335,
0.29598692059516907,
0.46590662002563477,
1.256750226020813,
-0.0516088530421257,
0.11498379707336426,
1.2879585027694702,
-1.4123897552490234,
1.5021542310714722,
-0.7141448855400085,
0.2833927571773529,
-2.419870376586914,
1.4722747802734375,
-0.8494921922683716,
1.956198811531067,
-2.6225860118865967,
0.3584456443786621,
-0.6268383860588074,
-0.4072766900062561,
0.23423659801483154,
-0.28294244408607483,
0.10348822921514511,
-0.14833378791809082,
-1.0988115072250366,
-0.11286821961402893,
-0.7338065505027771,
0.530720591545105,
1.148156762123108,
1.376682996749878,
-1.0191903114318848,
-0.2196306437253952,
-1.7524584531784058,
-0.22552353143692017,
-0.6815934777259827,
0.3740958571434021,
-1.9533300399780273,
-0.1689874678850174,
-1.9034781455993652,
-2.305859088897705,
-1.383312463760376,
-0.8681796789169312,
1.0815656185150146,
0.12686774134635925,
-0.8459091782569885,
1.1183711290359497,
-0.35210537910461426,
-1.8596972227096558,
1.1155322790145874,
-2.2094650268554688
] |
https://github.com/huggingface/datasets/issues/4661 | Concurrency bug when using same cache among several jobs | Hi! That's weird. It seems like the error points to the `mkstemp` function, but the official docs state the following:
```
There are no race conditions in the file’s creation, assuming that the platform properly implements the [os.O_EXCL](https://docs.python.org/3/library/os.html#os.O_EXCL) flag for [os.open()](https://docs.python.org/3/library/os.html#os.open)
```
So this could mean your platform doesn't support that flag.
~~Can you please check if wrapping the temp file creation (the line `tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)` in `_map_single`) with the `multiprocess.Lock` fixes the issue?~~
Perhaps wrapping the temp file creation in `_map_single` with `filelock` could work:
```python
with FileLock(lock_path):
tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)
```
Can you please check if that helps? | ## Describe the bug
I used to see this bug with an older version of the datasets. It seems to persist.
This is my concrete scenario: I launch several evaluation jobs on a cluster in which I share the file system and I share the cache directory used by huggingface libraries. The evaluation jobs read the same *.csv files. If my jobs get all scheduled pretty much at the same time, there are all kinds of weird concurrency errors. Sometime it crashes silently. This time I got lucky that it crashed with a stack trace that I can share and maybe you get to the bottom of this. If you don't have a similar setup available, it may be hard to reproduce as you really need two jobs accessing the same file at the same time to see this type of bug.
## Steps to reproduce the bug
I'm running a modified version of `run_glue.py` script adapted to my use case. I've seen the same problem when running some glue datasets as well (so it's not specific to loading the datasets from csv files).
## Expected results
No crash, concurrent access to the (intermediate) files just fine.
## Actual results
Crashes due to races/concurrency bugs.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.18.0-348.23.1.el8_5.x86_64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 8.0.0
- Pandas version: 1.1.0
Stack trace that I just got with the crash (I've obfuscated some names, it should still be quite informative):
```
Running tokenizer on dataset: 0%| | 0/3 [00:00<?, ?ba/s]
Traceback (most recent call last):
File "../../src/models//run_*******.py", line 600, in <module>
main()
File "../../src/models//run_*******.py", line 444, in main
raw_datasets = raw_datasets.map(
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/dataset_dict.py", line 770, in map
{
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/dataset_dict.py", line 771, in <dictcomp>
k: dataset.map(
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2376, in map
return self._map_single(
File "/*******/envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 551, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 518, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/*******/envs/tr-crt/lib/python3.8/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2776, in _map_single
buf_writer, writer, tmp_file = init_buffer_and_writer()
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2696, in init_buffer_and_writer
tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)
File "/*******//envs/tr-crt/lib/python3.8/tempfile.py", line 541, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/*******//envs/tr-crt/lib/python3.8/tempfile.py", line 250, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
FileNotFoundError: [Errno 2] No such file or directory: '/*******/cache-transformers//transformers/csv/default-ef9cd184210742a7/0.0.0/51cce309a08df9c4d82ffd9363bbe090bf173197fc01a71b034e8594995a1a58/tmps8l6j5yc'
```
As I ran 100s of experiments last year for an empirical paper, I ran into this type of bugs several times. I found several bandaid/work-arounds, e.g., run one job first that caches the dataset => eliminate concurrency; OR use unique caches => eliminate concurrency (but increase storage space), etc. and it all works fine.
I'd like to help you fixing this bug as it's really annoying to always apply the work arounds. Let me know what other info from my side could help you figure out the issue.
Thanks for your help!
| 645 | 105 | Concurrency bug when using same cache among several jobs
## Describe the bug
I used to see this bug with an older version of the datasets. It seems to persist.
This is my concrete scenario: I launch several evaluation jobs on a cluster in which I share the file system and I share the cache directory used by huggingface libraries. The evaluation jobs read the same *.csv files. If my jobs get all scheduled pretty much at the same time, there are all kinds of weird concurrency errors. Sometime it crashes silently. This time I got lucky that it crashed with a stack trace that I can share and maybe you get to the bottom of this. If you don't have a similar setup available, it may be hard to reproduce as you really need two jobs accessing the same file at the same time to see this type of bug.
## Steps to reproduce the bug
I'm running a modified version of `run_glue.py` script adapted to my use case. I've seen the same problem when running some glue datasets as well (so it's not specific to loading the datasets from csv files).
## Expected results
No crash, concurrent access to the (intermediate) files just fine.
## Actual results
Crashes due to races/concurrency bugs.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.18.0-348.23.1.el8_5.x86_64-x86_64-with-glibc2.10
- Python version: 3.8.5
- PyArrow version: 8.0.0
- Pandas version: 1.1.0
Stack trace that I just got with the crash (I've obfuscated some names, it should still be quite informative):
```
Running tokenizer on dataset: 0%| | 0/3 [00:00<?, ?ba/s]
Traceback (most recent call last):
File "../../src/models//run_*******.py", line 600, in <module>
main()
File "../../src/models//run_*******.py", line 444, in main
raw_datasets = raw_datasets.map(
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/dataset_dict.py", line 770, in map
{
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/dataset_dict.py", line 771, in <dictcomp>
k: dataset.map(
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2376, in map
return self._map_single(
File "/*******/envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 551, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 518, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/*******/envs/tr-crt/lib/python3.8/site-packages/datasets/fingerprint.py", line 458, in wrapper
out = func(self, *args, **kwargs)
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2776, in _map_single
buf_writer, writer, tmp_file = init_buffer_and_writer()
File "/*******//envs/tr-crt/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 2696, in init_buffer_and_writer
tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)
File "/*******//envs/tr-crt/lib/python3.8/tempfile.py", line 541, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/*******//envs/tr-crt/lib/python3.8/tempfile.py", line 250, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
FileNotFoundError: [Errno 2] No such file or directory: '/*******/cache-transformers//transformers/csv/default-ef9cd184210742a7/0.0.0/51cce309a08df9c4d82ffd9363bbe090bf173197fc01a71b034e8594995a1a58/tmps8l6j5yc'
```
As I ran 100s of experiments last year for an empirical paper, I ran into this type of bugs several times. I found several bandaid/work-arounds, e.g., run one job first that caches the dataset => eliminate concurrency; OR use unique caches => eliminate concurrency (but increase storage space), etc. and it all works fine.
I'd like to help you fixing this bug as it's really annoying to always apply the work arounds. Let me know what other info from my side could help you figure out the issue.
Thanks for your help!
Hi! That's weird. It seems like the error points to the `mkstemp` function, but the official docs state the following:
```
There are no race conditions in the file’s creation, assuming that the platform properly implements the [os.O_EXCL](https://docs.python.org/3/library/os.html#os.O_EXCL) flag for [os.open()](https://docs.python.org/3/library/os.html#os.open)
```
So this could mean your platform doesn't support that flag.
~~Can you please check if wrapping the temp file creation (the line `tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)` in `_map_single`) with the `multiprocess.Lock` fixes the issue?~~
Perhaps wrapping the temp file creation in `_map_single` with `filelock` could work:
```python
with FileLock(lock_path):
tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)
```
Can you please check if that helps? | [
-1.2329033613204956,
-0.9238336682319641,
-0.7017348408699036,
1.3927226066589355,
-0.19954971969127655,
-1.2542363405227661,
0.09773635864257812,
-1.0371589660644531,
1.6832343339920044,
-0.7469403147697449,
0.2707950472831726,
-1.5914100408554077,
0.024656223133206367,
-0.48467937111854553,
-0.7575728893280029,
-0.7976261377334595,
-0.4289136230945587,
-0.8078377842903137,
1.0230486392974854,
2.4866151809692383,
1.1560415029525757,
-1.426483392715454,
2.720022201538086,
0.6722093224525452,
-0.12758806347846985,
-0.9687328934669495,
0.5730024576187134,
0.061254873871803284,
-1.3963040113449097,
-0.39002707600593567,
-0.8986400961875916,
-0.057714931666851044,
-0.4859548807144165,
-0.48745787143707275,
0.07748215645551682,
0.3558228313922882,
-0.19416822493076324,
-0.4751602113246918,
-0.5312468409538269,
-0.7265966534614563,
0.45506930351257324,
-0.3785613179206848,
0.922385036945343,
-0.3746470510959625,
1.8010940551757812,
-0.5960978269577026,
0.47358179092407227,
0.751183271408081,
1.3497413396835327,
0.20751670002937317,
0.0015152515843510628,
0.33660951256752014,
0.44416964054107666,
-0.0018611778505146503,
0.48030179738998413,
1.1460471153259277,
0.6175135374069214,
0.4188775420188904,
0.7251126766204834,
-2.1816868782043457,
1.3344223499298096,
-0.923809826374054,
0.37610453367233276,
1.3228516578674316,
-0.9725057482719421,
0.35129398107528687,
-1.8559553623199463,
-0.07261932641267776,
0.5281421542167664,
-2.267890691757202,
0.21608830988407135,
-1.2710505723953247,
-0.530193030834198,
0.9141040444374084,
0.31016239523887634,
-1.2378233671188354,
0.0983242318034172,
-0.5416744351387024,
0.9582257270812988,
0.4242982864379883,
1.1759051084518433,
-1.6483875513076782,
-0.10932076722383499,
-0.24669988453388214,
0.14118137955665588,
-1.2311266660690308,
-1.5303062200546265,
0.547578752040863,
0.657357931137085,
0.527765154838562,
-0.12078149616718292,
0.9194081425666809,
-0.9795836806297302,
0.8601624369621277,
-0.9254133701324463,
-1.784849762916565,
-1.419840931892395,
-2.3056912422180176,
-2.2400941848754883,
0.842341423034668,
-0.43370428681373596,
-0.4272707998752594,
2.0751070976257324,
-1.0110126733779907,
-1.7779669761657715,
1.0957602262496948,
0.2480023205280304,
0.023204850032925606,
2.3383631706237793,
0.1794026643037796,
-0.7184562087059021,
0.44837912917137146,
-0.7326676845550537,
0.7413168549537659,
-0.4724508821964264,
1.3033806085586548,
0.383430153131485,
-0.9118664264678955,
1.5519294738769531,
-0.358080118894577,
0.5552284121513367,
-0.6919999122619629,
-0.4535450339317322,
-0.8036372065544128,
0.31796881556510925,
1.922790765762329,
-0.2973347008228302,
1.5185171365737915,
-0.35712599754333496,
-1.616060495376587,
-1.5575562715530396,
0.8377557992935181,
0.5381344556808472,
-0.7286116480827332,
0.09905336797237396,
-0.3825523555278778,
0.12499810010194778,
-0.017297912389039993,
1.0480780601501465,
1.2605782747268677,
0.8007968068122864,
-0.2760382890701294,
-0.9369680285453796,
0.2075759768486023,
-0.12155427038669586,
-0.6875786185264587,
-1.8609733581542969,
-0.3038603663444519,
0.1865893453359604,
0.6619401574134827,
-1.240735411643982,
1.7307571172714233,
0.9387721419334412,
1.9794399738311768,
1.0619090795516968,
-0.3595784306526184,
1.5364902019500732,
0.10787650942802429,
1.8952507972717285,
-0.44697391986846924,
0.6355227828025818,
-0.43989986181259155,
-1.1319555044174194,
0.809550940990448,
-0.30322253704071045,
-2.0458595752716064,
-0.7130417227745056,
-0.8560198545455933,
-0.1842396855354309,
-0.6727656126022339,
0.9994413256645203,
-0.31245744228363037,
-1.324344277381897,
0.2150300145149231,
-0.7275170087814331,
0.07342217117547989,
-1.223250389099121,
0.26421281695365906,
0.7292711734771729,
-0.6224914193153381,
0.08936009556055069,
-0.29325562715530396,
-1.3544498682022095,
-0.5431269407272339,
0.34789127111434937,
1.816513180732727,
-0.768754243850708,
1.0008788108825684,
1.0091760158538818,
-0.7375898361206055,
0.017464857548475266,
0.44107913970947266,
-0.34790346026420593,
0.8386896252632141,
-1.0647481679916382,
-0.39312782883644104,
1.1730632781982422,
-0.2735975980758667,
-0.5668465495109558,
1.4536467790603638,
0.7078868746757507,
-1.0167062282562256,
-0.16416531801223755,
-0.11552724987268448,
-0.8837972283363342,
0.030519047752022743,
-1.6604818105697632,
-0.12766040861606598,
0.28934526443481445,
-1.5987548828125,
-0.4836726188659668,
-0.20981912314891815,
1.2307032346725464,
-0.03503192216157913,
1.4205533266067505,
-0.2857668995857239,
-0.20365172624588013,
-0.42227089405059814,
-0.39458751678466797,
0.15289898216724396,
-0.2179459035396576,
-0.6586014628410339,
0.2931962013244629,
-0.8383550047874451,
0.2931104600429535,
1.433663010597229,
0.38795965909957886,
-0.0007315557450056076,
0.6215696930885315,
1.0140364170074463,
0.3319977819919586,
-0.07357775419950485,
-0.8330941200256348,
-1.6187753677368164,
2.059441328048706,
-1.5298408269882202,
1.9725103378295898,
0.810828685760498,
-0.10220415890216827,
-1.812065601348877,
-1.9247931241989136,
1.3724982738494873,
1.0836583375930786,
2.4047482013702393,
0.514912486076355,
0.4385170340538025,
-0.7490354180335999,
-0.6842224597930908,
0.3354140520095825,
-1.0324783325195312,
-0.7886961102485657,
0.057123199105262756,
2.374950885772705,
1.75495445728302,
-0.49074921011924744,
-0.13354244828224182,
-1.0533632040023804,
1.4398479461669922,
-0.1364002376794815,
0.1975420117378235,
1.9512555599212646,
-0.2020498663187027,
-1.0059140920639038,
1.2277556657791138,
-2.2869882583618164,
0.274141788482666,
2.0048987865448,
0.25426942110061646,
0.1427433341741562,
-1.429157018661499,
-0.6444079279899597,
-0.23649068176746368,
-0.3860805332660675,
-1.2005970478057861,
0.5862820744514465,
-0.26650768518447876,
-0.8238323330879211,
-1.4800046682357788,
0.11066646873950958,
-1.1749701499938965,
-1.7292590141296387,
0.3206776976585388,
1.9153813123703003,
2.0437800884246826,
-0.6637215614318848,
1.4804770946502686,
-0.28597092628479004,
0.1300889104604721,
1.2145261764526367,
1.1790108680725098,
3.161425828933716,
1.9580092430114746,
-1.2541229724884033,
0.6156867742538452,
-0.14801296591758728,
-0.4103420078754425,
1.067006230354309,
-1.139477014541626,
1.2453405857086182,
-0.15296386182308197,
-1.136172890663147,
-1.1123179197311401,
1.0116077661514282,
0.4710526466369629,
0.05264395475387573,
-0.42268988490104675,
1.1950644254684448,
0.060915976762771606,
1.3364018201828003,
0.5508518218994141,
-0.3423879146575928,
0.641456663608551,
-0.3923546075820923,
-0.4773200750350952,
1.6110272407531738,
0.20593807101249695,
-1.4347957372665405,
-2.3398025035858154,
-0.2227453738451004,
-0.8720264434814453,
0.07035078853368759,
-0.6273858547210693,
-0.983644962310791,
1.5591644048690796,
0.42287343740463257,
-1.1747874021530151,
-0.2812717854976654,
-0.37520015239715576,
-0.7185059785842896,
2.618504047393799,
-1.441177248954773,
-0.26691514253616333,
-0.9481221437454224,
-0.5707778334617615,
1.559620976448059,
-1.2324706315994263,
-0.2329685539007187,
-1.0246448516845703,
-0.5112626552581787,
-1.2564067840576172,
-0.5929456949234009,
-0.0010448130778968334,
-0.9474164247512817,
0.841528594493866,
0.14495010673999786,
-1.1418609619140625,
-0.28656822443008423,
-0.9281325936317444,
0.8446786999702454,
0.0017693080008029938,
0.1469988226890564,
1.816055178642273,
0.36227360367774963,
-0.39961645007133484,
0.703453004360199,
1.1711293458938599,
0.6363793611526489,
-0.6074271202087402,
0.18950976431369781,
-0.6347396373748779,
0.3436036705970764,
-1.300039291381836,
0.2926325500011444,
-2.83854079246521,
0.6615379452705383,
-0.08794518560171127,
-0.06389132887125015,
-0.046366170048713684,
-1.2450016736984253,
1.111568570137024,
2.614672899246216,
-1.153367280960083,
0.5030839443206787,
0.31067806482315063,
1.175458312034607,
-1.5367218255996704,
0.366115003824234,
-0.4208705723285675,
2.1111302375793457,
0.16264690458774567,
1.1516869068145752,
-0.5634971261024475,
-2.3132638931274414,
0.6433838605880737,
-1.1995582580566406,
-1.1526768207550049,
0.7078866362571716,
-0.85052889585495,
0.06696823984384537,
-1.406219720840454,
-0.1884087324142456,
-0.83687424659729,
-1.2052724361419678,
0.6175411939620972,
0.12184468656778336,
0.4688475728034973,
-0.6375334858894348,
0.3175504505634308,
-2.2491047382354736,
-1.376725435256958,
-0.23260559141635895,
-0.9679996371269226,
0.5095770955085754,
-0.34541749954223633,
0.7425751686096191,
-0.14647170901298523,
0.028836360201239586,
0.2718331217765808,
1.3634016513824463,
3.3533127307891846,
0.08455996215343475,
0.3350665867328644,
-0.2105044424533844,
-0.9844630360603333,
1.4330099821090698,
0.9963602423667908,
-0.14526188373565674,
-0.6161500811576843,
-1.0118670463562012,
1.2372899055480957,
2.0420892238616943,
1.0176619291305542,
0.07987436652183533,
-0.7820407152175903,
-0.740315854549408,
0.009243343025445938,
0.13992397487163544,
0.5712003707885742,
0.9937987923622131,
0.0389271005988121,
0.10418780148029327,
1.4752132892608643,
1.214350700378418,
-0.39040088653564453,
0.358875572681427,
-0.7956196069717407,
-0.45483383536338806,
0.5228317975997925,
0.42968571186065674,
-0.07103129476308823,
0.3200841546058655,
-1.0905911922454834,
-0.2122560739517212,
-0.37387967109680176,
-0.9508933424949646,
-0.6943208575248718,
-0.38761624693870544,
-0.3818066716194153,
1.7003259658813477,
0.13613581657409668,
-0.5107594132423401,
-0.05237963795661926,
-0.7416260242462158,
-0.0024910406209528446,
-1.0453734397888184,
0.3226880431175232,
-0.17985732853412628,
0.016841711476445198,
-0.09548085182905197,
1.8171809911727905,
-0.9305124878883362,
-2.0797154903411865,
0.23697537183761597,
0.16826187074184418,
-0.3258024752140045,
0.18363915383815765,
1.6325838565826416,
0.5961681008338928,
1.4105972051620483,
1.4149320125579834,
0.9462331533432007,
-0.6707539558410645,
-1.298887848854065,
0.6629964709281921,
0.9271205067634583,
-1.4411062002182007,
0.7264043092727661,
0.01880718767642975,
-0.5800475478172302,
0.6950099468231201,
1.361751914024353,
0.42720600962638855,
-2.113532781600952,
0.8700810074806213,
-0.9323537945747375,
0.767307698726654,
0.7367337942123413,
0.7626966238021851,
0.22630134224891663,
0.8509262204170227,
-1.30039381980896,
-1.0981281995773315,
-0.7985416054725647,
-0.7168148756027222,
1.9688466787338257,
-0.23429995775222778,
0.5279260873794556,
-0.16332946717739105,
-1.3500103950500488,
-0.1204020082950592,
0.6252211928367615,
0.30007365345954895,
-0.37039485573768616,
0.7960793375968933,
-0.6925665736198425,
-1.2281450033187866,
-1.3925329446792603,
-0.48080646991729736,
-0.9876550436019897,
-0.8559035062789917,
1.0210795402526855,
0.7869719862937927,
0.40270617604255676,
1.9217807054519653,
0.64693683385849,
0.17428353428840637,
-2.7025890350341797,
0.8969810605049133,
0.36408883333206177,
-0.03864403814077377,
0.8636451363563538,
0.24233081936836243,
1.0853006839752197,
-0.022214364260435104,
0.5589105486869812,
-2.4034669399261475,
2.305101156234741,
-0.23705177009105682,
0.7761993408203125,
0.023977765813469887,
-0.12649373710155487,
1.1074497699737549,
0.6279780268669128,
0.6327480673789978,
-1.062944769859314,
0.720798134803772,
-0.6855425834655762,
1.2121002674102783,
0.8928106427192688,
-0.7583017349243164,
-0.03753227740526199,
1.310444712638855,
0.4752095937728882,
-0.46879202127456665,
-0.9651467204093933,
-0.9849721193313599,
0.9138935208320618,
1.8537713289260864,
-0.06410735845565796,
0.0743916928768158,
0.8329160213470459,
0.6231939196586609,
-1.3290592432022095,
-0.013965402729809284,
-0.802543580532074,
-0.7474575042724609,
1.637655258178711,
2.10383939743042,
-0.07897764444351196,
-0.15794681012630463,
-0.7329586744308472,
-1.3039288520812988,
0.7225225567817688,
-0.015160860493779182,
0.13166020810604095,
0.6641762256622314,
-0.5943480134010315,
1.1297192573547363,
0.7781679034233093,
1.0111849308013916,
0.09159678965806961,
0.2706215977668762,
0.274147629737854,
-0.31559744477272034,
-1.1702138185501099,
-0.28668177127838135,
-1.0354582071304321,
-2.4926795959472656,
0.47152647376060486,
-0.18460774421691895,
-1.5351152420043945,
0.03510310500860214,
-1.0057194232940674,
0.872847318649292,
-0.48947572708129883,
-1.1236449480056763,
-1.4481955766677856,
0.15444009006023407,
-0.15371555089950562,
0.8959768414497375,
-1.6124528646469116,
-0.12608517706394196,
1.2439041137695312,
0.8814662098884583,
-0.6310997009277344,
1.0224779844284058,
0.2649100124835968,
1.004524827003479,
0.870025098323822,
-0.3819483816623688,
0.4242117404937744,
0.15438862144947052,
-1.2729073762893677,
0.4293820261955261,
1.188191294670105,
0.13231737911701202,
1.4051854610443115,
-0.6580273509025574,
0.0802234560251236,
0.455713152885437,
-0.4562242031097412,
-0.46476584672927856,
-0.5806195735931396,
0.6953232884407043,
-0.02526187151670456,
-0.936838686466217,
-0.02177535369992256,
-0.13464239239692688,
-0.21689584851264954,
0.21408943831920624,
-1.489835500717163,
-0.1909826397895813,
-0.3478317856788635,
-0.5715667009353638,
-1.2269761562347412,
0.03892183303833008,
1.3855751752853394,
-0.7983750700950623,
-0.17012529075145721,
0.49933570623397827,
0.38908013701438904,
0.6089404225349426,
0.6557640433311462,
-0.7017502188682556,
-0.39818912744522095,
-0.2070336937904358,
-0.38965895771980286,
0.292162150144577,
1.3319830894470215,
-0.08920525759458542,
-0.9640439748764038,
0.6583825945854187,
-0.40463170409202576,
0.07241209596395493,
2.0004775524139404,
0.04612165689468384,
-0.8126254677772522,
0.33411142230033875,
-0.761023223400116,
1.90205717086792,
1.6619932651519775,
1.2786767482757568,
-0.09812206774950027,
-0.9591827392578125,
0.5896592140197754,
-0.25664660334587097,
-0.3799102306365967,
0.8353248834609985,
0.4967234134674072,
-0.21352724730968475,
-1.3628321886062622,
0.6213086247444153,
1.277370810508728,
-0.9135982990264893,
-0.8280133605003357,
0.08883589506149292,
-0.8368635773658752,
1.127488613128662,
0.729240894317627,
0.4440958797931671,
0.20220135152339935,
1.668196678161621,
0.7571184039115906,
-0.5612122416496277,
0.5597189664840698,
0.4965420365333557,
-0.15776972472667694,
-2.096052408218384,
-1.0760124921798706,
0.31292903423309326,
-0.45923367142677307,
-1.599952220916748,
1.3823274374008179,
-1.1153775453567505,
-0.9211938381195068,
0.49323010444641113,
0.09072902053594589,
1.421488642692566,
0.37623754143714905,
1.5893819332122803,
2.03707218170166,
0.9711582064628601,
0.4055747091770172,
1.3259390592575073,
-0.1347130537033081,
-0.49946725368499756,
1.800195574760437,
-0.4672718346118927,
0.5174963474273682,
1.1075845956802368,
-0.41989439725875854,
-1.0389928817749023,
-0.73716801404953,
-1.1077954769134521,
-0.6878788471221924,
1.124611735343933,
0.08230411261320114,
-1.1155853271484375,
0.25591081380844116,
1.5794074535369873,
0.17246001958847046,
-0.2749164402484894,
0.6139568090438843,
0.40925002098083496,
-0.7616655230522156,
-0.1536933034658432,
-0.994153618812561,
0.4470902383327484,
-0.22608532011508942,
-0.42970651388168335,
0.29598692059516907,
0.46590662002563477,
1.256750226020813,
-0.0516088530421257,
0.11498379707336426,
1.2879585027694702,
-1.4123897552490234,
1.5021542310714722,
-0.7141448855400085,
0.2833927571773529,
-2.419870376586914,
1.4722747802734375,
-0.8494921922683716,
1.956198811531067,
-2.6225860118865967,
0.3584456443786621,
-0.6268383860588074,
-0.4072766900062561,
0.23423659801483154,
-0.28294244408607483,
0.10348822921514511,
-0.14833378791809082,
-1.0988115072250366,
-0.11286821961402893,
-0.7338065505027771,
0.530720591545105,
1.148156762123108,
1.376682996749878,
-1.0191903114318848,
-0.2196306437253952,
-1.7524584531784058,
-0.22552353143692017,
-0.6815934777259827,
0.3740958571434021,
-1.9533300399780273,
-0.1689874678850174,
-1.9034781455993652,
-2.305859088897705,
-1.383312463760376,
-0.8681796789169312,
1.0815656185150146,
0.12686774134635925,
-0.8459091782569885,
1.1183711290359497,
-0.35210537910461426,
-1.8596972227096558,
1.1155322790145874,
-2.2094650268554688
] |
https://github.com/huggingface/datasets/issues/4642 | Streaming issue for ccdv/pubmed-summarization | Thanks for reporting @lewtun.
I confirm there is an issue with streaming: it does not stream locally. | ### Link
https://huggingface.co/datasets/ccdv/pubmed-summarization
### Description
This was reported by a [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/7). It seems like streaming doesn't work due to the way the dataset loading script is defined?
```
Status code: 400
Exception: FileNotFoundError
Message: https://huggingface.co/datasets/ccdv/pubmed-summarization/resolve/main/train.zip/train.txt
```
### Owner
No | 656 | 17 | Streaming issue for ccdv/pubmed-summarization
### Link
https://huggingface.co/datasets/ccdv/pubmed-summarization
### Description
This was reported by a [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/7). It seems like streaming doesn't work due to the way the dataset loading script is defined?
```
Status code: 400
Exception: FileNotFoundError
Message: https://huggingface.co/datasets/ccdv/pubmed-summarization/resolve/main/train.zip/train.txt
```
### Owner
No
Thanks for reporting @lewtun.
I confirm there is an issue with streaming: it does not stream locally. | [
-1.1369627714157104,
-0.8899402022361755,
-0.8886561393737793,
1.5263264179229736,
-0.22916141152381897,
-1.317656397819519,
0.04097099229693413,
-0.8844806551933289,
1.478289008140564,
-0.6523331999778748,
0.32824376225471497,
-1.7373812198638916,
-0.0657847449183464,
-0.5681434869766235,
-0.6418842077255249,
-0.8006398677825928,
-0.26164066791534424,
-0.7318704724311829,
0.9947830438613892,
2.573126792907715,
1.2356218099594116,
-1.3344758749008179,
2.736403465270996,
0.6564550995826721,
-0.31528040766716003,
-1.0950806140899658,
0.6006657481193542,
0.06831879168748856,
-1.2494434118270874,
-0.5371443629264832,
-0.9285217523574829,
-0.08391635864973068,
-0.41660991311073303,
-0.5640017986297607,
-0.006178533658385277,
0.4633308947086334,
-0.1582769900560379,
-0.30059918761253357,
-0.5610596537590027,
-0.8317760229110718,
0.5125015377998352,
-0.3527064621448517,
0.8433433175086975,
-0.37686145305633545,
1.867491602897644,
-0.586447536945343,
0.3779878318309784,
0.5706483125686646,
1.5401486158370972,
0.1467904895544052,
-0.1014508455991745,
0.2886519134044647,
0.41014420986175537,
0.0162968747317791,
0.5601862668991089,
1.2482892274856567,
0.5605038404464722,
0.5249186754226685,
0.5678374767303467,
-2.146076202392578,
1.279236912727356,
-0.8428264260292053,
0.2529061436653137,
1.3501927852630615,
-1.02211594581604,
0.31215545535087585,
-1.782870888710022,
-0.11643823981285095,
0.4629148840904236,
-2.193336009979248,
0.20401211082935333,
-1.180297613143921,
-0.5709088444709778,
0.9261451363563538,
0.3191518485546112,
-1.343342661857605,
0.03663969784975052,
-0.45251625776290894,
1.065643310546875,
0.48338744044303894,
1.2022188901901245,
-1.5468553304672241,
0.02851109579205513,
-0.3093985617160797,
0.026640720665454865,
-1.3040997982025146,
-1.5321115255355835,
0.49138742685317993,
0.6774177551269531,
0.7000418901443481,
-0.046565134078264236,
0.8405827283859253,
-0.9421915411949158,
0.8533473610877991,
-0.8644793629646301,
-1.7110018730163574,
-1.4142420291900635,
-2.3697471618652344,
-2.302701950073242,
0.8423136472702026,
-0.4761098325252533,
-0.5423954129219055,
1.9404282569885254,
-1.0007975101470947,
-1.9129797220230103,
1.0291577577590942,
0.2062208205461502,
0.11708968877792358,
2.349961757659912,
0.355954110622406,
-0.6960815191268921,
0.2881943881511688,
-0.7606784701347351,
0.6922208070755005,
-0.5294418334960938,
1.4655154943466187,
0.5455019474029541,
-0.9264122843742371,
1.7596981525421143,
-0.4074552655220032,
0.49062806367874146,
-0.8405502438545227,
-0.48500779271125793,
-0.7748751044273376,
0.3491710424423218,
1.9593324661254883,
-0.4566862881183624,
1.591698408126831,
-0.34518569707870483,
-1.5260237455368042,
-1.5687230825424194,
0.7704802751541138,
0.4983179569244385,
-0.8293682932853699,
0.19329291582107544,
-0.3939451575279236,
0.05580472946166992,
0.03822488710284233,
1.0446316003799438,
1.1187583208084106,
0.6366187334060669,
-0.2665794789791107,
-0.8638946413993835,
0.3979157507419586,
0.02804482728242874,
-0.654381513595581,
-1.7944036722183228,
-0.32468143105506897,
0.19356657564640045,
0.6435756087303162,
-1.250918984413147,
1.7803444862365723,
0.7518448233604431,
2.1281871795654297,
1.0038055181503296,
-0.23320990800857544,
1.4258942604064941,
-0.05215230584144592,
1.9289708137512207,
-0.41095030307769775,
0.6603873372077942,
-0.40852099657058716,
-1.2493278980255127,
0.8242740631103516,
-0.40219423174858093,
-1.9527019262313843,
-0.754346489906311,
-1.0709292888641357,
-0.08719544112682343,
-0.7833868265151978,
1.0647283792495728,
-0.2714325785636902,
-1.2991433143615723,
0.11133686453104019,
-0.7492443919181824,
0.15128260850906372,
-1.4225167036056519,
0.1715213656425476,
0.8165343999862671,
-0.6876454949378967,
0.0906948372721672,
-0.3168581426143646,
-1.2905465364456177,
-0.47722217440605164,
0.3637661337852478,
2.0545811653137207,
-0.767924964427948,
0.9566704034805298,
0.8985660076141357,
-0.7521968483924866,
0.10877883434295654,
0.3248135447502136,
-0.34633174538612366,
0.8004716634750366,
-1.0542858839035034,
-0.3173668682575226,
1.1435240507125854,
-0.15246696770191193,
-0.7841236591339111,
1.39414381980896,
0.8785180449485779,
-1.026400089263916,
-0.19654300808906555,
-0.21655890345573425,
-0.8155675530433655,
-0.03532574325799942,
-1.67046058177948,
-0.1033562496304512,
0.1525103747844696,
-1.4414020776748657,
-0.4861948788166046,
-0.12429777532815933,
1.4087488651275635,
-0.08757806569337845,
1.4448518753051758,
-0.23394986987113953,
-0.28463104367256165,
-0.3408746123313904,
-0.5028842687606812,
0.1409771889448166,
-0.23449400067329407,
-0.7137163877487183,
0.37739458680152893,
-0.8828356862068176,
0.25869137048721313,
1.3991687297821045,
0.2925260066986084,
0.06627961993217468,
0.651634156703949,
1.0197863578796387,
0.331045925617218,
-0.11868305504322052,
-0.9690989851951599,
-1.6490328311920166,
2.0363454818725586,
-1.3418636322021484,
1.9388819932937622,
0.8429363965988159,
-0.09339852631092072,
-1.8739371299743652,
-1.9395416975021362,
1.349020004272461,
1.2720344066619873,
2.3799924850463867,
0.6890213489532471,
0.4046585261821747,
-0.8068426251411438,
-0.6448739171028137,
0.2922249734401703,
-1.0530660152435303,
-0.7923426032066345,
0.02461623027920723,
2.3029284477233887,
1.8639187812805176,
-0.5501394271850586,
-0.2857684791088104,
-0.9908506274223328,
1.0639640092849731,
-0.15686535835266113,
0.24828556180000305,
1.9795708656311035,
-0.33626824617385864,
-0.8941137194633484,
1.1721220016479492,
-2.343745708465576,
0.26546722650527954,
2.096890926361084,
0.22609683871269226,
0.08679087460041046,
-1.4526491165161133,
-0.6459096670150757,
-0.21005718410015106,
-0.3579012155532837,
-1.2303251028060913,
0.5203039646148682,
-0.27420341968536377,
-0.9949536323547363,
-1.5237653255462646,
0.09200454503297806,
-1.0533567667007446,
-1.6796495914459229,
0.45552897453308105,
1.8172922134399414,
2.0099740028381348,
-0.8419250249862671,
1.3837603330612183,
-0.17065203189849854,
0.20939692854881287,
1.3616331815719604,
1.2142106294631958,
3.093252658843994,
2.022310256958008,
-1.274923324584961,
0.8736398816108704,
-0.0915679782629013,
-0.4063774645328522,
1.2254093885421753,
-1.1457830667495728,
1.0423918962478638,
-0.37030452489852905,
-1.2542444467544556,
-1.3151413202285767,
0.9578482508659363,
0.5136258602142334,
-0.05949510633945465,
-0.4395274519920349,
1.280482292175293,
0.12665630877017975,
1.3012453317642212,
0.5713536739349365,
-0.4156687259674072,
0.5385371446609497,
-0.3116251230239868,
-0.39130333065986633,
1.559498906135559,
0.21048246324062347,
-1.508774995803833,
-2.3588242530822754,
-0.16343197226524353,
-0.937800943851471,
-0.2120790034532547,
-0.6362561583518982,
-0.9897596836090088,
1.6025235652923584,
0.49981409311294556,
-1.133657693862915,
-0.3556171953678131,
-0.37969475984573364,
-0.5951356887817383,
2.7163023948669434,
-1.4818824529647827,
-0.20820525288581848,
-1.0613853931427002,
-0.4084334969520569,
1.7769269943237305,
-1.170697569847107,
-0.2347937375307083,
-1.03578782081604,
-0.5937661528587341,
-1.3394497632980347,
-0.5528660416603088,
0.05821141600608826,
-0.890122652053833,
0.7502647638320923,
0.025201473385095596,
-1.0623364448547363,
-0.25416338443756104,
-0.9091257452964783,
0.9208018779754639,
-0.18904554843902588,
0.2592191696166992,
1.9526549577713013,
0.43997037410736084,
-0.4343750476837158,
0.6681280136108398,
1.19342041015625,
0.549675464630127,
-0.6821167469024658,
0.27463001012802124,
-0.5952228903770447,
0.29898855090141296,
-1.5668690204620361,
0.2102019190788269,
-2.8789777755737305,
0.5979998111724854,
-0.05847223848104477,
-0.05310829356312752,
-0.043535228818655014,
-1.3595566749572754,
1.136897087097168,
2.5203962326049805,
-1.2483396530151367,
0.42044925689697266,
0.3610830008983612,
1.159024953842163,
-1.5179721117019653,
0.3747708797454834,
-0.4594036638736725,
2.02992582321167,
0.07449741661548615,
1.195898413658142,
-0.4223082661628723,
-2.0373268127441406,
0.6449611186981201,
-1.237461805343628,
-0.9906296133995056,
0.7735974788665771,
-0.7631953954696655,
0.04331635683774948,
-1.4465502500534058,
-0.008454070426523685,
-0.8989686965942383,
-1.3224064111709595,
0.8003953099250793,
0.11571584641933441,
0.38051989674568176,
-0.5761569142341614,
0.3738008141517639,
-2.035081386566162,
-1.3915916681289673,
-0.16021762788295746,
-1.0292030572891235,
0.3786464333534241,
-0.36726436018943787,
0.6024667620658875,
-0.20372489094734192,
0.08945732563734055,
0.2909983694553375,
1.3576149940490723,
3.4251770973205566,
0.1654929369688034,
0.41231173276901245,
-0.10740353912115097,
-1.0252408981323242,
1.5564677715301514,
1.0097004175186157,
-0.044082317501306534,
-0.5474255681037903,
-0.9083214402198792,
1.2649359703063965,
2.002739429473877,
1.1682885885238647,
0.19290702044963837,
-0.9660658240318298,
-0.8156902194023132,
-0.015170088969171047,
0.28776949644088745,
0.4957873821258545,
0.8874659538269043,
-0.01849472150206566,
0.04666918143630028,
1.2517074346542358,
1.2036826610565186,
-0.48238036036491394,
0.4232174754142761,
-1.0280646085739136,
-0.3282751441001892,
0.36998507380485535,
0.4542270302772522,
0.08509683609008789,
0.40473395586013794,
-1.0610095262527466,
-0.29253554344177246,
-0.16343671083450317,
-0.922998309135437,
-0.7062405943870544,
-0.3694143295288086,
-0.3201543092727661,
1.5890990495681763,
0.06795674562454224,
-0.48289650678634644,
-0.05901404470205307,
-0.7757668495178223,
-0.020278632640838623,
-1.0237079858779907,
0.1630469709634781,
-0.075892873108387,
0.030894476920366287,
-0.04383592680096626,
1.7429637908935547,
-1.1173967123031616,
-2.321956157684326,
0.3399167060852051,
0.2906336188316345,
-0.46668148040771484,
0.1049499362707138,
1.6122020483016968,
0.47082701325416565,
1.267122745513916,
1.3747376203536987,
1.0964447259902954,
-0.687234103679657,
-1.3645312786102295,
0.6593604683876038,
0.9891875386238098,
-1.384042501449585,
0.8270213603973389,
-0.02436070144176483,
-0.43243125081062317,
0.630148708820343,
1.362003207206726,
0.4762001633644104,
-1.8740137815475464,
0.6893282532691956,
-0.7436675429344177,
0.7552164793014526,
0.7676018476486206,
0.8728447556495667,
0.40920835733413696,
0.778149425983429,
-1.2826687097549438,
-1.1793336868286133,
-0.7738021016120911,
-0.5235705375671387,
1.798750638961792,
-0.23130393028259277,
0.6130868792533875,
-0.10149747133255005,
-1.2764630317687988,
-0.13664086163043976,
0.8176460862159729,
0.20519298315048218,
-0.44915372133255005,
0.9016849398612976,
-0.5806154012680054,
-1.0829377174377441,
-1.3283419609069824,
-0.4607180655002594,
-0.8169605731964111,
-0.9580947160720825,
1.0485774278640747,
0.7327507734298706,
0.34204116463661194,
2.0622124671936035,
0.6117618083953857,
0.13798576593399048,
-2.74617862701416,
0.8998408317565918,
0.2594408690929413,
0.1807573437690735,
0.8709139227867126,
0.2227480709552765,
1.1167281866073608,
-0.062260836362838745,
0.5369114875793457,
-2.2742528915405273,
2.2126173973083496,
-0.14997732639312744,
0.5478736162185669,
-0.005152060184627771,
-0.12227116525173187,
1.0676524639129639,
0.4692400097846985,
0.5769452452659607,
-1.1147156953811646,
0.7585764527320862,
-0.6950913071632385,
1.1081438064575195,
0.8588042855262756,
-0.8275446891784668,
0.10916974395513535,
1.3188958168029785,
0.6037049293518066,
-0.44192051887512207,
-0.9559090733528137,
-0.8081791400909424,
0.9679774641990662,
1.6340276002883911,
0.09907464683055878,
-0.019042983651161194,
0.8867537379264832,
0.572722315788269,
-1.266517996788025,
0.04660160839557648,
-0.6001929640769958,
-0.6002662777900696,
1.77145254611969,
1.9989293813705444,
-0.043182358145713806,
-0.17013628780841827,
-0.8228200078010559,
-1.1956590414047241,
0.6646748781204224,
-0.07408464699983597,
0.018772339448332787,
0.8245240449905396,
-0.6721876859664917,
1.3004746437072754,
0.5635508298873901,
0.8256708979606628,
0.05759609490633011,
0.3112342059612274,
0.4042744040489197,
-0.361651211977005,
-1.2145582437515259,
-0.3468092381954193,
-1.1811673641204834,
-2.571697235107422,
0.4735523462295532,
-0.365639328956604,
-1.3952603340148926,
0.1185111552476883,
-1.1427435874938965,
0.9772407412528992,
-0.6187849640846252,
-1.0707945823669434,
-1.357554316520691,
0.1930064857006073,
-0.20748060941696167,
0.8434925079345703,
-1.6412451267242432,
-0.08141659200191498,
1.2988463640213013,
0.9307053089141846,
-0.6575005650520325,
0.9672982692718506,
0.2212124764919281,
1.1397026777267456,
0.8613503575325012,
-0.3195607364177704,
0.47050806879997253,
0.14359064400196075,
-1.353731393814087,
0.5032334923744202,
1.1818939447402954,
0.09898239374160767,
1.4013406038284302,
-0.5008307099342346,
0.1800963431596756,
0.5244483351707458,
-0.5458589196205139,
-0.5453676581382751,
-0.5298830270767212,
0.82151198387146,
0.0746031329035759,
-1.0499122142791748,
-0.04076560214161873,
-0.11827778071165085,
-0.14593884348869324,
0.17161975800991058,
-1.5857419967651367,
-0.19131438434123993,
-0.20103417336940765,
-0.6294891238212585,
-1.3071329593658447,
0.11566387116909027,
1.3032242059707642,
-0.7852048277854919,
-0.24386456608772278,
0.6323070526123047,
0.20356224477291107,
0.5602109432220459,
0.5170292854309082,
-0.7196844220161438,
-0.2905314564704895,
-0.20964792370796204,
-0.3462935984134674,
0.3786068558692932,
1.19534170627594,
-0.09598691761493683,
-1.047150731086731,
0.7530317306518555,
-0.37128713726997375,
0.0771290510892868,
2.099226951599121,
0.06940434128046036,
-0.8870108127593994,
0.2248837947845459,
-0.6375352144241333,
1.9353309869766235,
1.5325106382369995,
1.2401729822158813,
-0.03210568428039551,
-0.8364306688308716,
0.5634183287620544,
-0.09454144537448883,
-0.27589014172554016,
0.7528851628303528,
0.42482757568359375,
-0.24350784718990326,
-1.3445006608963013,
0.3742711544036865,
1.3395060300827026,
-0.9124769568443298,
-0.881452739238739,
0.04898872971534729,
-0.9509191513061523,
1.0279593467712402,
0.5868462324142456,
0.353289395570755,
0.24022473394870758,
1.4993112087249756,
0.6801208257675171,
-0.400005578994751,
0.5009808540344238,
0.483971506357193,
-0.08200623840093613,
-1.9957860708236694,
-0.801678478717804,
0.4101257026195526,
-0.4188281297683716,
-1.5939990282058716,
1.3202351331710815,
-1.2990951538085938,
-0.9189056158065796,
0.4916684031486511,
0.2791941463947296,
1.4347590208053589,
0.27530181407928467,
1.6873188018798828,
1.970380187034607,
0.8831660747528076,
0.26258787512779236,
1.282725214958191,
-0.0445619598031044,
-0.4448479413986206,
1.805771827697754,
-0.4249744713306427,
0.5896802544593811,
1.0763413906097412,
-0.4144589900970459,
-1.1743711233139038,
-0.7906817197799683,
-1.196484923362732,
-0.6563535928726196,
1.2473945617675781,
0.26296672224998474,
-1.1680158376693726,
0.1505264937877655,
1.5529104471206665,
0.20074737071990967,
-0.25954484939575195,
0.5750433802604675,
0.3889468312263489,
-0.8047688007354736,
0.06763412803411484,
-0.8900105953216553,
0.5403188467025757,
-0.05800863727927208,
-0.3212243318557739,
0.2974295914173126,
0.5228022933006287,
1.1932073831558228,
-0.05269845575094223,
0.2679281532764435,
1.309765338897705,
-1.3203932046890259,
1.5663787126541138,
-0.5473049283027649,
0.18347343802452087,
-2.4235448837280273,
1.459046483039856,
-0.7988048195838928,
1.7912088632583618,
-2.59295654296875,
0.41015106439590454,
-0.6136785745620728,
-0.3733445405960083,
0.3177761435508728,
-0.4325878322124481,
0.02247565984725952,
-0.15114451944828033,
-0.9619306325912476,
-0.1078992560505867,
-0.7293528914451599,
0.4890056848526001,
1.294772982597351,
1.2679164409637451,
-1.038739562034607,
-0.33925873041152954,
-1.9615719318389893,
-0.20843327045440674,
-0.6855890154838562,
0.3815818130970001,
-2.0445408821105957,
-0.1252731829881668,
-2.009640693664551,
-2.3492488861083984,
-1.4262096881866455,
-0.7317299842834473,
1.0178314447402954,
0.20344749093055725,
-0.8146182298660278,
0.9833812117576599,
-0.3568570017814636,
-1.6848176717758179,
0.9850588440895081,
-2.193737030029297
] |
https://github.com/huggingface/datasets/issues/4642 | Streaming issue for ccdv/pubmed-summarization | Oh, after investigation, the source of the issue is in the Hub dataset loading script.
I'm opening a PR on the Hub dataset. | ### Link
https://huggingface.co/datasets/ccdv/pubmed-summarization
### Description
This was reported by a [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/7). It seems like streaming doesn't work due to the way the dataset loading script is defined?
```
Status code: 400
Exception: FileNotFoundError
Message: https://huggingface.co/datasets/ccdv/pubmed-summarization/resolve/main/train.zip/train.txt
```
### Owner
No | 656 | 23 | Streaming issue for ccdv/pubmed-summarization
### Link
https://huggingface.co/datasets/ccdv/pubmed-summarization
### Description
This was reported by a [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/7). It seems like streaming doesn't work due to the way the dataset loading script is defined?
```
Status code: 400
Exception: FileNotFoundError
Message: https://huggingface.co/datasets/ccdv/pubmed-summarization/resolve/main/train.zip/train.txt
```
### Owner
No
Oh, after investigation, the source of the issue is in the Hub dataset loading script.
I'm opening a PR on the Hub dataset. | [
-1.1391452550888062,
-0.898883044719696,
-0.9140058159828186,
1.4758485555648804,
-0.233493372797966,
-1.3634634017944336,
0.0008643800392746925,
-0.9253839254379272,
1.508270502090454,
-0.6811770796775818,
0.30034881830215454,
-1.7662668228149414,
-0.05392751097679138,
-0.5554040670394897,
-0.6289632320404053,
-0.8443167805671692,
-0.2522582411766052,
-0.7607014179229736,
0.9573724269866943,
2.595957040786743,
1.205313801765442,
-1.3186485767364502,
2.7734947204589844,
0.64363694190979,
-0.2483944147825241,
-1.0595874786376953,
0.6106424331665039,
0.03515718877315521,
-1.2445319890975952,
-0.5515468120574951,
-0.9206368327140808,
-0.06509614735841751,
-0.4284203350543976,
-0.5756946802139282,
0.002095116302371025,
0.44920581579208374,
-0.14792414009571075,
-0.3000885248184204,
-0.5499046444892883,
-0.8538928627967834,
0.45457977056503296,
-0.3511432111263275,
0.8694360852241516,
-0.4022032618522644,
1.8870913982391357,
-0.5660778880119324,
0.3227229416370392,
0.588588297367096,
1.5012582540512085,
0.16727034747600555,
-0.06064438074827194,
0.24536220729351044,
0.382304847240448,
0.009262271225452423,
0.5228074193000793,
1.2371439933776855,
0.5395594239234924,
0.5468725562095642,
0.567175567150116,
-2.1879513263702393,
1.2691495418548584,
-0.8370640873908997,
0.28813740611076355,
1.3863790035247803,
-0.9831827878952026,
0.30359023809432983,
-1.7533109188079834,
-0.1200404018163681,
0.45694851875305176,
-2.231118679046631,
0.20825079083442688,
-1.1750695705413818,
-0.5767184495925903,
0.9030911326408386,
0.290459007024765,
-1.343016505241394,
0.08173006772994995,
-0.4658936560153961,
1.1058168411254883,
0.5218409299850464,
1.227394461631775,
-1.5650091171264648,
0.03418280929327011,
-0.2768790125846863,
0.0015932843089103699,
-1.3184616565704346,
-1.551387071609497,
0.5062189698219299,
0.6730766296386719,
0.6738603711128235,
-0.08249324560165405,
0.8739154934883118,
-0.9257263541221619,
0.8636438250541687,
-0.8572626709938049,
-1.7312257289886475,
-1.3947173357009888,
-2.3564462661743164,
-2.352308750152588,
0.8532664179801941,
-0.484333872795105,
-0.5414188504219055,
1.965865969657898,
-1.0151890516281128,
-1.9123543500900269,
1.063219428062439,
0.21161198616027832,
0.11454044282436371,
2.3628015518188477,
0.33581194281578064,
-0.6938154697418213,
0.27241694927215576,
-0.7329273223876953,
0.7309201955795288,
-0.5015878081321716,
1.4691088199615479,
0.5754935145378113,
-0.9529187083244324,
1.754626750946045,
-0.44182834029197693,
0.48112767934799194,
-0.8220361471176147,
-0.4629668593406677,
-0.8203734159469604,
0.3424910604953766,
1.9170747995376587,
-0.4570104479789734,
1.5971150398254395,
-0.3611263036727905,
-1.4799692630767822,
-1.584208607673645,
0.8179150223731995,
0.46567100286483765,
-0.8870390057563782,
0.17499136924743652,
-0.38860443234443665,
0.05354379862546921,
0.02242269180715084,
1.047065019607544,
1.0830141305923462,
0.6497406363487244,
-0.2502360939979553,
-0.8619084358215332,
0.3582979738712311,
0.010998457670211792,
-0.6311761736869812,
-1.7815574407577515,
-0.3216492831707001,
0.19061757624149323,
0.6275482773780823,
-1.205184817314148,
1.7676596641540527,
0.7493743896484375,
2.1115317344665527,
0.976823091506958,
-0.21688973903656006,
1.4221763610839844,
-0.03781677410006523,
1.9083722829818726,
-0.44579482078552246,
0.6432874202728271,
-0.4045512080192566,
-1.2556202411651611,
0.8359205722808838,
-0.37739482522010803,
-1.9228975772857666,
-0.7590356469154358,
-1.0709853172302246,
-0.1099410206079483,
-0.7493317723274231,
1.048973798751831,
-0.2987982928752899,
-1.2837530374526978,
0.11304881423711777,
-0.7013546824455261,
0.12317398190498352,
-1.3968271017074585,
0.1814652532339096,
0.7968165278434753,
-0.7085614800453186,
0.0553673580288887,
-0.318941593170166,
-1.2745314836502075,
-0.5413824319839478,
0.3496271073818207,
2.058797836303711,
-0.7849892973899841,
0.9706130027770996,
0.9002949595451355,
-0.7625027298927307,
0.10267192870378494,
0.31400009989738464,
-0.29483315348625183,
0.8061493635177612,
-1.0754510164260864,
-0.3321612775325775,
1.150093674659729,
-0.15770763158798218,
-0.7871712446212769,
1.423344373703003,
0.8796797394752502,
-1.0407360792160034,
-0.1317102313041687,
-0.22267980873584747,
-0.8625258207321167,
-0.028342971578240395,
-1.620707631111145,
-0.13106834888458252,
0.15766265988349915,
-1.4195737838745117,
-0.4592176079750061,
-0.17054998874664307,
1.3739166259765625,
-0.03803923726081848,
1.4394795894622803,
-0.2529239058494568,
-0.34864306449890137,
-0.39015746116638184,
-0.4589957594871521,
0.15722930431365967,
-0.23115034401416779,
-0.7201873660087585,
0.33093777298927307,
-0.8845311403274536,
0.24186475574970245,
1.371839165687561,
0.33598628640174866,
0.055157482624053955,
0.64936363697052,
1.062982439994812,
0.2956319749355316,
-0.08672691136598587,
-0.968820333480835,
-1.6435394287109375,
2.035231351852417,
-1.3674758672714233,
1.8876599073410034,
0.8090063333511353,
-0.05255184322595596,
-1.908831238746643,
-1.9640320539474487,
1.3585636615753174,
1.2377749681472778,
2.3473622798919678,
0.6549658179283142,
0.38322874903678894,
-0.8205897808074951,
-0.6317965984344482,
0.2882130444049835,
-1.0529013872146606,
-0.7528358697891235,
0.03067980520427227,
2.2788803577423096,
1.8878121376037598,
-0.5637866854667664,
-0.26373448967933655,
-1.0052615404129028,
1.0928577184677124,
-0.1692054271697998,
0.2124110758304596,
1.9931674003601074,
-0.34566450119018555,
-0.9254494905471802,
1.1906287670135498,
-2.3254611492156982,
0.1922079473733902,
2.0934646129608154,
0.21510623395442963,
0.06652902066707611,
-1.441272258758545,
-0.7148975133895874,
-0.19118492305278778,
-0.4055156111717224,
-1.2899158000946045,
0.5240458846092224,
-0.3310427963733673,
-0.9763632416725159,
-1.5447523593902588,
0.06285689771175385,
-1.0906518697738647,
-1.6622679233551025,
0.46264734864234924,
1.8218307495117188,
1.9921464920043945,
-0.7515366077423096,
1.4335352182388306,
-0.16797062754631042,
0.21197596192359924,
1.417412281036377,
1.2125041484832764,
3.1033077239990234,
2.0163564682006836,
-1.2720727920532227,
0.823087751865387,
-0.0970701053738594,
-0.4086848795413971,
1.2535871267318726,
-1.075121283531189,
1.0398225784301758,
-0.36961472034454346,
-1.2820827960968018,
-1.3334349393844604,
0.9853193163871765,
0.4737854301929474,
-0.016811009496450424,
-0.4491751194000244,
1.279825210571289,
0.09312894940376282,
1.2759653329849243,
0.6207183599472046,
-0.4597832262516022,
0.5290176868438721,
-0.340397447347641,
-0.4026252031326294,
1.5793735980987549,
0.2149677872657776,
-1.4925556182861328,
-2.3834025859832764,
-0.19611848890781403,
-0.9141846299171448,
-0.18367525935173035,
-0.6313021779060364,
-1.0180609226226807,
1.6085197925567627,
0.5047720074653625,
-1.1469894647598267,
-0.35254427790641785,
-0.4031299650669098,
-0.60280442237854,
2.68546199798584,
-1.4648770093917847,
-0.2263369858264923,
-1.052024245262146,
-0.38304421305656433,
1.7577329874038696,
-1.1902155876159668,
-0.20207786560058594,
-1.0359816551208496,
-0.5716724395751953,
-1.3565614223480225,
-0.5316630005836487,
0.053098417818546295,
-0.88170325756073,
0.8304385542869568,
-0.014592224732041359,
-1.035995602607727,
-0.22673630714416504,
-0.8933558464050293,
0.8800132274627686,
-0.18018217384815216,
0.27425143122673035,
1.9799976348876953,
0.4482603073120117,
-0.44380173087120056,
0.6444178819656372,
1.1741812229156494,
0.5726149678230286,
-0.6676961779594421,
0.2473924607038498,
-0.6138069033622742,
0.2768581211566925,
-1.5406538248062134,
0.19627904891967773,
-2.8861217498779297,
0.6465869545936584,
-0.0911608338356018,
-0.06780644506216049,
-0.028644928708672523,
-1.3478145599365234,
1.0949939489364624,
2.5109035968780518,
-1.283852458000183,
0.364455908536911,
0.3487001657485962,
1.1992849111557007,
-1.5594574213027954,
0.40254735946655273,
-0.4730004072189331,
1.9717581272125244,
0.05536533147096634,
1.1806838512420654,
-0.41223815083503723,
-2.0017716884613037,
0.6198719143867493,
-1.218011498451233,
-1.047879695892334,
0.813683032989502,
-0.7345725297927856,
0.050257280468940735,
-1.4556858539581299,
0.0032853903248906136,
-0.8770931959152222,
-1.295229196548462,
0.8493173718452454,
0.12100248038768768,
0.37188827991485596,
-0.5829312205314636,
0.35522693395614624,
-2.0455915927886963,
-1.385348916053772,
-0.16782419383525848,
-0.9784162044525146,
0.38366955518722534,
-0.3681817352771759,
0.5897988677024841,
-0.19248968362808228,
0.11356561630964279,
0.2888885736465454,
1.3826189041137695,
3.4446940422058105,
0.17249272763729095,
0.4092876613140106,
-0.0803350955247879,
-1.0427924394607544,
1.5214611291885376,
1.0217067003250122,
-0.011786209419369698,
-0.5287967324256897,
-0.9161625504493713,
1.278836965560913,
2.0163328647613525,
1.153244137763977,
0.2430269569158554,
-0.912487804889679,
-0.7537826895713806,
-0.04148636758327484,
0.2750852704048157,
0.5066748857498169,
0.8946900963783264,
-0.011839564889669418,
0.055185019969940186,
1.2877310514450073,
1.2152073383331299,
-0.440032958984375,
0.42385926842689514,
-0.9976402521133423,
-0.36112290620803833,
0.4207915663719177,
0.4295752942562103,
0.05001160502433777,
0.4279665946960449,
-1.0738657712936401,
-0.3260330259799957,
-0.1912223845720291,
-0.9609757661819458,
-0.6711122989654541,
-0.3835572600364685,
-0.3301680386066437,
1.5501459836959839,
0.07251287251710892,
-0.4800521433353424,
-0.0695330947637558,
-0.7749148011207581,
-0.0458529070019722,
-1.0498193502426147,
0.19182217121124268,
-0.10192760080099106,
-0.020271647721529007,
-0.04198566824197769,
1.6982581615447998,
-1.1431360244750977,
-2.310595750808716,
0.3416404128074646,
0.29647886753082275,
-0.4398864507675171,
0.1499771922826767,
1.5801904201507568,
0.4878571927547455,
1.317495346069336,
1.3566243648529053,
1.0835931301116943,
-0.673866868019104,
-1.382128119468689,
0.6558384895324707,
0.9555190801620483,
-1.376272201538086,
0.8274463415145874,
-0.05114945024251938,
-0.48053544759750366,
0.6908047199249268,
1.353458046913147,
0.4754260182380676,
-1.8627498149871826,
0.7079513669013977,
-0.7543604373931885,
0.7224728465080261,
0.7586063146591187,
0.8905272483825684,
0.36218157410621643,
0.7674216032028198,
-1.2889909744262695,
-1.2072479724884033,
-0.7484022378921509,
-0.5335667729377747,
1.779242753982544,
-0.20828120410442352,
0.6178589463233948,
-0.15500707924365997,
-1.2646876573562622,
-0.10241811722517014,
0.7940879464149475,
0.23445527255535126,
-0.4653131067752838,
0.8980538845062256,
-0.5692752599716187,
-1.0733067989349365,
-1.3807079792022705,
-0.449802041053772,
-0.8481116890907288,
-0.9208036065101624,
1.068339228630066,
0.7770534753799438,
0.295239120721817,
2.0426666736602783,
0.6161913871765137,
0.13846608996391296,
-2.715097665786743,
0.8658022880554199,
0.2853351831436157,
0.15560588240623474,
0.8615784049034119,
0.22319906949996948,
1.123343825340271,
-0.032568350434303284,
0.5298346281051636,
-2.2723677158355713,
2.2146530151367188,
-0.17253784835338593,
0.5334569811820984,
-0.029651502147316933,
-0.13926763832569122,
1.0947611331939697,
0.4502180516719818,
0.5907606482505798,
-1.1082218885421753,
0.7820276021957397,
-0.6504761576652527,
1.0870379209518433,
0.9068261981010437,
-0.8250526785850525,
0.0765247792005539,
1.367479681968689,
0.6600127816200256,
-0.45033469796180725,
-0.9175550937652588,
-0.7946119904518127,
0.9521253108978271,
1.68364679813385,
0.12659412622451782,
0.0285158921033144,
0.885503351688385,
0.5795154571533203,
-1.2581257820129395,
0.04933848977088928,
-0.597646176815033,
-0.6032403111457825,
1.7553880214691162,
1.9547441005706787,
-0.06539463251829147,
-0.10029977560043335,
-0.8639013767242432,
-1.1843290328979492,
0.6445418000221252,
-0.04423172026872635,
-0.035151444375514984,
0.8534256815910339,
-0.6766274571418762,
1.2539024353027344,
0.5995579361915588,
0.8558207750320435,
0.06466150283813477,
0.3659711182117462,
0.41007199883461,
-0.37281206250190735,
-1.1810548305511475,
-0.3151504695415497,
-1.1441842317581177,
-2.567575454711914,
0.4655338227748871,
-0.37742528319358826,
-1.4428681135177612,
0.11878225207328796,
-1.14484441280365,
1.0032973289489746,
-0.5899839401245117,
-1.0892630815505981,
-1.36482834815979,
0.20147526264190674,
-0.16484273970127106,
0.8754580020904541,
-1.6136682033538818,
-0.06900079548358917,
1.3338429927825928,
0.8895674347877502,
-0.6778531074523926,
0.9342647790908813,
0.20925764739513397,
1.1347206830978394,
0.8590725064277649,
-0.3657473027706146,
0.4226713180541992,
0.09422480314970016,
-1.339736819267273,
0.5016628503799438,
1.169049620628357,
0.11774204671382904,
1.3672775030136108,
-0.4896763563156128,
0.12391844391822815,
0.5319938063621521,
-0.5033732652664185,
-0.5340986251831055,
-0.5192360877990723,
0.7988992929458618,
0.11063819378614426,
-0.9755586981773376,
0.012056125327944756,
-0.0917438268661499,
-0.18077783286571503,
0.2003832310438156,
-1.553237795829773,
-0.2302379608154297,
-0.24320922791957855,
-0.5732478499412537,
-1.2986611127853394,
0.10389184206724167,
1.294176697731018,
-0.7513980269432068,
-0.24619600176811218,
0.6193094849586487,
0.23136623203754425,
0.5769650340080261,
0.524105429649353,
-0.6898215413093567,
-0.3267606496810913,
-0.25166556239128113,
-0.36413994431495667,
0.29395678639411926,
1.1941967010498047,
-0.13465431332588196,
-1.0753973722457886,
0.8114328384399414,
-0.3459971845149994,
0.05953238159418106,
2.0754032135009766,
0.061242006719112396,
-0.9138389825820923,
0.22544947266578674,
-0.6078295707702637,
1.9305816888809204,
1.6190661191940308,
1.235239028930664,
-0.04896586388349533,
-0.8250578045845032,
0.5481336116790771,
-0.08654743432998657,
-0.2658500373363495,
0.7991207242012024,
0.4342656433582306,
-0.19190657138824463,
-1.3234001398086548,
0.39115309715270996,
1.3228808641433716,
-0.9106208086013794,
-0.8624813556671143,
0.05131392180919647,
-0.9291830658912659,
1.0580511093139648,
0.5920102000236511,
0.3856213092803955,
0.2521626651287079,
1.489141821861267,
0.6431272029876709,
-0.43290773034095764,
0.4837256968021393,
0.49024415016174316,
-0.04547496140003204,
-2.018256664276123,
-0.7975555062294006,
0.39323118329048157,
-0.3947986662387848,
-1.6353319883346558,
1.2788035869598389,
-1.2369292974472046,
-0.9160698652267456,
0.4924454689025879,
0.2638038992881775,
1.4321471452713013,
0.2412993460893631,
1.6876832246780396,
2.0084967613220215,
0.8795521855354309,
0.2682900130748749,
1.2891985177993774,
0.011890305206179619,
-0.4220792055130005,
1.808243751525879,
-0.37320899963378906,
0.5992304086685181,
1.0413554906845093,
-0.41590070724487305,
-1.1308858394622803,
-0.757724940776825,
-1.2062950134277344,
-0.5858782529830933,
1.2230184078216553,
0.24175597727298737,
-1.1718944311141968,
0.15133149921894073,
1.510515809059143,
0.2209855616092682,
-0.2707529067993164,
0.6196600198745728,
0.38654956221580505,
-0.7845923900604248,
0.09896835684776306,
-0.9089316129684448,
0.5421543717384338,
-0.05790724605321884,
-0.3163786232471466,
0.34160855412483215,
0.5167288184165955,
1.2554947137832642,
-0.027720090001821518,
0.2557162642478943,
1.3451513051986694,
-1.2947750091552734,
1.5095654726028442,
-0.5718163251876831,
0.15740659832954407,
-2.4674994945526123,
1.4670339822769165,
-0.8309256434440613,
1.7771252393722534,
-2.5772528648376465,
0.39802175760269165,
-0.6150212287902832,
-0.34328493475914,
0.3473140001296997,
-0.45409470796585083,
-0.014196604490280151,
-0.15143701434135437,
-0.9488515257835388,
-0.06893359124660492,
-0.751768946647644,
0.4907357692718506,
1.3588995933532715,
1.3147315979003906,
-1.0454144477844238,
-0.3373568654060364,
-1.9529731273651123,
-0.21420486271381378,
-0.6844679117202759,
0.3944645822048187,
-2.0869975090026855,
-0.11352383345365524,
-1.9796630144119263,
-2.421098232269287,
-1.4177525043487549,
-0.7756648063659668,
1.0714313983917236,
0.2305033951997757,
-0.8403438329696655,
0.9938852787017822,
-0.3498094379901886,
-1.7023612260818481,
0.995834469795227,
-2.162954807281494
] |
https://github.com/huggingface/datasets/issues/4641 | Dataset Viewer issue for kmfoda/booksum | Thanks for reporting, @lewtun.
It works locally in streaming mode:
```
{'bid': 27681,
'is_aggregate': True,
'source': 'cliffnotes',
'chapter_path': 'all_chapterized_books/27681-chapters/chapters_1_to_2.txt',
'summary_path': 'finished_summaries/cliffnotes/The Last of the Mohicans/section_1_part_0.txt',
'book_id': 'The Last of the Mohicans.chapters 1-2',
'summary_id': 'chapters 1-2',
'content': None,
'summary': '{"name": "Chapters 1-2", "url": "https://web.archive.org/web/20201101053205/https://www.cliffsnotes.com/literature/l/the-last-of-the-mohicans/summary-and-analysis/chapters-12", "summary": "Before any characters appear, the time and geography are made clear. Though it is the last war that England and France waged for a country that neither would retain, the wilderness between the forces still has to be...
```
I'm forcing the refresh of the preview. | ### Link
https://huggingface.co/datasets/kmfoda/booksum
### Description
A [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/9) discovered this dataset cannot be streamed due to:
```
Status code: 400
Exception: ClientResponseError
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/kmfoda/booksum/resolve/47953f583d6967f086cb16a2f4d2346e9834024d/test.csv')
```
I'm not sure why it says "Unauthorized" since it's just a bunch of CSV files in a repo
### Owner
No | 657 | 90 | Dataset Viewer issue for kmfoda/booksum
### Link
https://huggingface.co/datasets/kmfoda/booksum
### Description
A [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/9) discovered this dataset cannot be streamed due to:
```
Status code: 400
Exception: ClientResponseError
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/kmfoda/booksum/resolve/47953f583d6967f086cb16a2f4d2346e9834024d/test.csv')
```
I'm not sure why it says "Unauthorized" since it's just a bunch of CSV files in a repo
### Owner
No
Thanks for reporting, @lewtun.
It works locally in streaming mode:
```
{'bid': 27681,
'is_aggregate': True,
'source': 'cliffnotes',
'chapter_path': 'all_chapterized_books/27681-chapters/chapters_1_to_2.txt',
'summary_path': 'finished_summaries/cliffnotes/The Last of the Mohicans/section_1_part_0.txt',
'book_id': 'The Last of the Mohicans.chapters 1-2',
'summary_id': 'chapters 1-2',
'content': None,
'summary': '{"name": "Chapters 1-2", "url": "https://web.archive.org/web/20201101053205/https://www.cliffsnotes.com/literature/l/the-last-of-the-mohicans/summary-and-analysis/chapters-12", "summary": "Before any characters appear, the time and geography are made clear. Though it is the last war that England and France waged for a country that neither would retain, the wilderness between the forces still has to be...
```
I'm forcing the refresh of the preview. | [
-1.1773027181625366,
-1.003936767578125,
-0.8407560586929321,
1.5745172500610352,
-0.11045581102371216,
-1.218553900718689,
0.06190218776464462,
-0.9252121448516846,
1.581346869468689,
-0.665902316570282,
0.24122288823127747,
-1.6984432935714722,
-0.06627160310745239,
-0.6595495939254761,
-0.7074198126792908,
-0.8122765421867371,
-0.30585482716560364,
-0.8427225947380066,
1.069934606552124,
2.444330930709839,
1.1891593933105469,
-1.4646856784820557,
2.701371669769287,
0.7617207169532776,
-0.14446721971035004,
-1.0711008310317993,
0.5260059833526611,
-0.05043712258338928,
-1.1959549188613892,
-0.501342236995697,
-0.9398941993713379,
0.026532752439379692,
-0.6009531617164612,
-0.4356251358985901,
-0.03704001009464264,
0.5498033761978149,
-0.22505861520767212,
-0.39646127820014954,
-0.6027238368988037,
-0.7852059602737427,
0.41282811760902405,
-0.4077693819999695,
0.8958877921104431,
-0.30473098158836365,
1.7896254062652588,
-0.507544994354248,
0.30824339389801025,
0.6433766484260559,
1.3052657842636108,
0.1317441463470459,
0.09985622763633728,
0.2167908251285553,
0.39148226380348206,
-0.009175027720630169,
0.5946377515792847,
1.2415382862091064,
0.6398831009864807,
0.47463929653167725,
0.7016907930374146,
-2.3343873023986816,
1.282626986503601,
-0.9477458000183105,
0.306736022233963,
1.3480421304702759,
-0.8995471000671387,
0.42786672711372375,
-1.8164453506469727,
0.13342808187007904,
0.5993445515632629,
-2.0951597690582275,
0.36711499094963074,
-1.2767236232757568,
-0.4795793890953064,
0.8946948051452637,
0.33288484811782837,
-1.2659354209899902,
0.1731927990913391,
-0.43420544266700745,
1.0950021743774414,
0.42507296800613403,
1.07988440990448,
-1.7191506624221802,
-0.030959440395236015,
-0.19040286540985107,
0.0856868252158165,
-1.3041075468063354,
-1.5774598121643066,
0.4497704803943634,
0.6628389954566956,
0.6420774459838867,
-0.11455381661653519,
0.9107846021652222,
-1.1340206861495972,
0.7658783197402954,
-1.004185438156128,
-1.7049177885055542,
-1.408881664276123,
-2.3323628902435303,
-2.25321102142334,
0.7611605525016785,
-0.47823381423950195,
-0.45974642038345337,
1.9600427150726318,
-0.9654128551483154,
-1.7628806829452515,
1.1354498863220215,
0.3969861567020416,
0.125547394156456,
2.3854007720947266,
0.17888569831848145,
-0.7786667943000793,
0.4655184745788574,
-0.7983561158180237,
0.7198536396026611,
-0.4439518451690674,
1.4233335256576538,
0.4630650579929352,
-0.9374616146087646,
1.656404972076416,
-0.48384198546409607,
0.6014410257339478,
-0.7604719996452332,
-0.4780537486076355,
-0.7434821724891663,
0.2904047966003418,
1.8843950033187866,
-0.29620006680488586,
1.5379998683929443,
-0.3702474534511566,
-1.5001840591430664,
-1.5279607772827148,
0.8978887796401978,
0.35868653655052185,
-0.8949176669120789,
0.09271727502346039,
-0.45323532819747925,
0.1855842024087906,
-0.1969858556985855,
1.110556960105896,
1.2486287355422974,
0.6576672196388245,
-0.2616111934185028,
-0.8809263706207275,
0.12860938906669617,
-0.13206684589385986,
-0.6437895894050598,
-1.757203459739685,
-0.2680611312389374,
0.30265069007873535,
0.658244252204895,
-1.2664127349853516,
1.724830150604248,
0.8499272465705872,
2.015150785446167,
1.010082721710205,
-0.37678763270378113,
1.5485296249389648,
0.050199590623378754,
1.8918439149856567,
-0.5894322991371155,
0.569903552532196,
-0.3479064404964447,
-1.142562747001648,
0.8390964269638062,
-0.3483079671859741,
-1.9685763120651245,
-0.7398169040679932,
-0.9080813527107239,
-0.24162796139717102,
-0.7090975642204285,
0.8643818497657776,
-0.3279678225517273,
-1.3875616788864136,
0.1842687875032425,
-0.7442357540130615,
0.18271096050739288,
-1.1980239152908325,
0.23112812638282776,
0.7941698431968689,
-0.6193660497665405,
0.08759704977273941,
-0.24875010550022125,
-1.3477436304092407,
-0.5216434001922607,
0.5453284382820129,
1.9215681552886963,
-0.6546853184700012,
0.8033073544502258,
1.039039969444275,
-0.676110029220581,
0.07038060575723648,
0.3240126967430115,
-0.3101598024368286,
0.7765953540802002,
-1.0259625911712646,
-0.5906844735145569,
1.1517810821533203,
-0.2089596539735794,
-0.7153158187866211,
1.4106842279434204,
0.823373556137085,
-1.0512559413909912,
-0.325472891330719,
-0.13924157619476318,
-0.7532926201820374,
0.04994587600231171,
-1.546001672744751,
-0.1267736852169037,
0.3492174446582794,
-1.5070630311965942,
-0.44236627221107483,
-0.26111310720443726,
1.3355258703231812,
-0.13397642970085144,
1.417815923690796,
-0.294280469417572,
-0.07597813010215759,
-0.2944922149181366,
-0.5223363637924194,
0.1545901745557785,
-0.23960307240486145,
-0.6269198656082153,
0.12665458023548126,
-0.8157713413238525,
0.32045498490333557,
1.4611061811447144,
0.37453320622444153,
-0.004202584736049175,
0.4973985552787781,
1.1740360260009766,
0.42692264914512634,
0.09383486211299896,
-0.9117109775543213,
-1.4899269342422485,
1.9749027490615845,
-1.448073148727417,
1.997607946395874,
0.7412290573120117,
-0.022350110113620758,
-1.822518229484558,
-1.8838586807250977,
1.3576405048370361,
1.130578637123108,
2.355285167694092,
0.6321195960044861,
0.3932919502258301,
-0.9124063849449158,
-0.6767369508743286,
0.324777215719223,
-0.9339585900306702,
-0.7547747492790222,
0.15095841884613037,
2.4493069648742676,
1.8523041009902954,
-0.5125773549079895,
-0.29614758491516113,
-0.9460877776145935,
1.3452317714691162,
-0.22142453491687775,
0.2940654158592224,
2.0132806301116943,
-0.168653666973114,
-0.9690201878547668,
1.261449933052063,
-2.4411213397979736,
0.2857941687107086,
2.113562822341919,
0.2953009307384491,
0.12523691356182098,
-1.435172200202942,
-0.7143261432647705,
-0.1942710429430008,
-0.4230155050754547,
-1.1960535049438477,
0.545960009098053,
-0.2971913814544678,
-0.8477345108985901,
-1.4884169101715088,
0.18043343722820282,
-1.1072633266448975,
-1.6222187280654907,
0.25230714678764343,
1.9440821409225464,
2.0742690563201904,
-0.8571140766143799,
1.4961135387420654,
-0.15727394819259644,
0.1911972463130951,
1.3480942249298096,
1.3232977390289307,
3.0945982933044434,
1.9125124216079712,
-1.172922968864441,
0.6438763737678528,
-0.233152836561203,
-0.4443451166152954,
1.1844711303710938,
-1.1933164596557617,
1.1426514387130737,
-0.24443946778774261,
-1.1473877429962158,
-1.2330105304718018,
1.0022265911102295,
0.557389497756958,
-0.015708360821008682,
-0.43978267908096313,
1.1770418882369995,
0.07751081883907318,
1.2815440893173218,
0.636655330657959,
-0.43010222911834717,
0.46093183755874634,
-0.371981143951416,
-0.5367211103439331,
1.5319143533706665,
0.12291855365037918,
-1.4735417366027832,
-2.215240001678467,
-0.18417660892009735,
-0.9042831659317017,
-0.1269667148590088,
-0.6237850785255432,
-1.054060459136963,
1.594772458076477,
0.3834027945995331,
-1.199549913406372,
-0.20967495441436768,
-0.38610604405403137,
-0.5460463762283325,
2.6478543281555176,
-1.3618848323822021,
-0.2745484709739685,
-1.042037844657898,
-0.5340821146965027,
1.677004098892212,
-1.1293696165084839,
-0.1819644272327423,
-1.0110020637512207,
-0.6376774311065674,
-1.3595386743545532,
-0.4804527461528778,
0.024436796084046364,
-0.7942959070205688,
0.8467576503753662,
0.24047011137008667,
-1.2028193473815918,
-0.3232732117176056,
-0.9202653765678406,
0.9563396573066711,
-0.1323583871126175,
0.2721037268638611,
1.9786226749420166,
0.3667954206466675,
-0.3626546859741211,
0.805712878704071,
1.1648423671722412,
0.6344380378723145,
-0.6334637403488159,
0.2083277553319931,
-0.5302598476409912,
0.351059228181839,
-1.4747332334518433,
0.22375227510929108,
-2.882512092590332,
0.6836293339729309,
-0.01589878834784031,
-0.11919388175010681,
-0.025632578879594803,
-1.3775438070297241,
1.134300947189331,
2.5042409896850586,
-1.2779099941253662,
0.5093725323677063,
0.38732007145881653,
1.267966628074646,
-1.719887137413025,
0.2454657256603241,
-0.48007696866989136,
2.1027886867523193,
0.03649201989173889,
1.1872878074645996,
-0.48251771926879883,
-2.3426787853240967,
0.5558910965919495,
-1.2713782787322998,
-0.9712314009666443,
0.677469789981842,
-0.9109784960746765,
0.18277233839035034,
-1.532941222190857,
-0.22394122183322906,
-0.9584141969680786,
-1.2541671991348267,
0.7699416875839233,
0.13246822357177734,
0.3396863043308258,
-0.6361141204833984,
0.37001949548721313,
-2.156064748764038,
-1.4067955017089844,
-0.18916837871074677,
-0.8921869993209839,
0.5429664850234985,
-0.3772335648536682,
0.6980311870574951,
-0.08016398549079895,
0.07846876978874207,
0.19849298894405365,
1.3958616256713867,
3.4003214836120605,
0.17766547203063965,
0.3330481946468353,
-0.17777232825756073,
-0.9631165266036987,
1.458482027053833,
0.9275983572006226,
-0.09305591881275177,
-0.5220999717712402,
-1.0388646125793457,
1.4133695363998413,
2.0548152923583984,
1.0297350883483887,
0.10861002653837204,
-0.8516756296157837,
-0.7905846834182739,
0.0004204334691166878,
0.19500206410884857,
0.5177676677703857,
0.9182310104370117,
0.03474011272192001,
0.0589912012219429,
1.4101793766021729,
1.1307817697525024,
-0.34909000992774963,
0.31186237931251526,
-0.9433174133300781,
-0.36581966280937195,
0.490195095539093,
0.2246534675359726,
0.05309981107711792,
0.42275863885879517,
-1.113470196723938,
-0.27882665395736694,
-0.29550403356552124,
-0.8575746417045593,
-0.6773723363876343,
-0.4181511700153351,
-0.3179270327091217,
1.549981713294983,
0.23633812367916107,
-0.5838439464569092,
-0.0010986914858222008,
-0.7367327809333801,
-0.09625881165266037,
-1.0799442529678345,
0.14692054688930511,
-0.14385639131069183,
-0.09045150876045227,
-0.22310370206832886,
1.7112075090408325,
-0.9624305963516235,
-2.138861894607544,
0.14185556769371033,
0.37024474143981934,
-0.3012380599975586,
0.14000742137432098,
1.7337385416030884,
0.4566200375556946,
1.3926488161087036,
1.2822171449661255,
1.073360562324524,
-0.6199542284011841,
-1.3124144077301025,
0.6573814749717712,
1.0677618980407715,
-1.3374375104904175,
0.8908209204673767,
-0.07871154695749283,
-0.5362445712089539,
0.6442804932594299,
1.390817642211914,
0.4038642644882202,
-1.9809238910675049,
0.742056667804718,
-1.01301109790802,
0.8676935434341431,
0.6917325854301453,
0.8460947871208191,
0.31030407547950745,
0.8361615538597107,
-1.2655318975448608,
-1.1184685230255127,
-0.7291024327278137,
-0.7105761170387268,
1.9024803638458252,
-0.24331603944301605,
0.55414217710495,
-0.05789702385663986,
-1.3385683298110962,
-0.12639498710632324,
0.7867178320884705,
0.3407221734523773,
-0.4280444383621216,
0.8040468096733093,
-0.7687265276908875,
-1.0578967332839966,
-1.2989262342453003,
-0.481083482503891,
-0.9138941764831543,
-1.0061076879501343,
0.9954696297645569,
0.84281325340271,
0.3190957009792328,
1.9563257694244385,
0.6626747846603394,
0.204976886510849,
-2.5732476711273193,
0.8633264303207397,
0.32269108295440674,
-0.06037159264087677,
0.877836287021637,
0.2868967354297638,
1.0887051820755005,
0.020620903000235558,
0.5248621702194214,
-2.360574960708618,
2.2180275917053223,
-0.2111259549856186,
0.6619778275489807,
-0.09726836532354355,
-0.16796523332595825,
1.1476633548736572,
0.4954323172569275,
0.5878353714942932,
-1.0262876749038696,
0.7261923551559448,
-0.5355409979820251,
1.1381863355636597,
0.9278765320777893,
-0.830436646938324,
0.06034637987613678,
1.3606659173965454,
0.40719470381736755,
-0.6190645098686218,
-0.9587306976318359,
-0.8484455347061157,
0.9345863461494446,
1.7164722681045532,
0.01417817547917366,
0.03234952688217163,
0.8948010206222534,
0.5713685750961304,
-1.2370256185531616,
0.018192430958151817,
-0.6685596704483032,
-0.6141400337219238,
1.728212833404541,
2.018854856491089,
-0.22941158711910248,
-0.18507510423660278,
-0.7299708127975464,
-1.277358889579773,
0.6383068561553955,
-0.015053214505314827,
0.016030123457312584,
0.6973515748977661,
-0.6497837901115417,
1.000116229057312,
0.5769429802894592,
0.9289349317550659,
-0.0009966986253857613,
0.3031080365180969,
0.4607042670249939,
-0.482426255941391,
-1.1960124969482422,
-0.3267223536968231,
-1.1421091556549072,
-2.5133156776428223,
0.4187193214893341,
-0.08152659237384796,
-1.418352723121643,
0.059209853410720825,
-0.9992896318435669,
1.0197367668151855,
-0.5568523406982422,
-1.2411056756973267,
-1.3173412084579468,
0.25492963194847107,
-0.10884132981300354,
0.8096917271614075,
-1.669211506843567,
-0.14740616083145142,
1.2353249788284302,
0.971394419670105,
-0.7350403666496277,
0.9908055663108826,
0.2597602307796478,
1.146506905555725,
0.8160083293914795,
-0.3516538441181183,
0.4572388529777527,
0.018999392166733742,
-1.340870976448059,
0.44571757316589355,
1.2084568738937378,
0.14293694496154785,
1.434095859527588,
-0.4635797441005707,
0.022033678367733955,
0.44821494817733765,
-0.6248450875282288,
-0.46588781476020813,
-0.4725687503814697,
0.6449592709541321,
0.06522734463214874,
-0.9226917624473572,
-0.00728398934006691,
-0.016812331974506378,
-0.1918652355670929,
0.1432749181985855,
-1.5396300554275513,
-0.19982470571994781,
-0.32000258564949036,
-0.49509233236312866,
-1.2688336372375488,
0.03230290114879608,
1.341708779335022,
-0.6868700981140137,
-0.3032646179199219,
0.5350830554962158,
0.29210036993026733,
0.49807703495025635,
0.5672962069511414,
-0.6653364300727844,
-0.37635737657546997,
-0.16205859184265137,
-0.3158286213874817,
0.29686641693115234,
1.2943487167358398,
-0.1077103316783905,
-1.0146163702011108,
0.6954116821289062,
-0.4281969368457794,
0.09846454113721848,
1.8848506212234497,
-0.019965773448348045,
-0.7994098663330078,
0.2571489214897156,
-0.7128056287765503,
1.9056918621063232,
1.6633329391479492,
1.2696579694747925,
-0.1767125278711319,
-0.761292040348053,
0.6982542872428894,
-0.30379271507263184,
-0.393608421087265,
0.7907524704933167,
0.3922068476676941,
-0.2429131120443344,
-1.4353740215301514,
0.5566073060035706,
1.2542988061904907,
-0.8801366090774536,
-0.7968674898147583,
0.2173403948545456,
-0.8242472410202026,
1.1912130117416382,
0.6322438716888428,
0.3712829649448395,
0.2616366446018219,
1.6362055540084839,
0.7348164319992065,
-0.46323683857917786,
0.5785120129585266,
0.5738097429275513,
-0.21353700757026672,
-2.0903327465057373,
-1.0666559934616089,
0.22876927256584167,
-0.4068477153778076,
-1.630063533782959,
1.324137806892395,
-1.2050724029541016,
-0.9973911046981812,
0.5287262797355652,
0.12467410415410995,
1.2785935401916504,
0.34622669219970703,
1.536504864692688,
2.0694973468780518,
0.7497183084487915,
0.4990854859352112,
1.206969976425171,
-0.14909809827804565,
-0.5353792905807495,
1.8596805334091187,
-0.4326171875,
0.6307986974716187,
1.0565359592437744,
-0.3490104377269745,
-1.1780976057052612,
-0.7314090132713318,
-1.23154616355896,
-0.6038236021995544,
1.1937309503555298,
0.1550454944372177,
-1.1255258321762085,
0.28871554136276245,
1.5771769285202026,
0.07364090532064438,
-0.34901612997055054,
0.6554325819015503,
0.46118560433387756,
-0.8238420486450195,
-0.004972458351403475,
-0.8816155791282654,
0.5915014147758484,
-0.16738469898700714,
-0.20814162492752075,
0.3340710401535034,
0.4735630750656128,
1.30130934715271,
-0.0157918743789196,
0.12342489510774612,
1.1521053314208984,
-1.392258644104004,
1.6226282119750977,
-0.6400972008705139,
0.2999401092529297,
-2.481477975845337,
1.3539167642593384,
-0.7914338707923889,
1.9930260181427002,
-2.580986499786377,
0.4006305932998657,
-0.6203359365463257,
-0.5116626620292664,
0.33460915088653564,
-0.3708266615867615,
-0.017333921045064926,
-0.09698077291250229,
-1.0282976627349854,
0.03752969950437546,
-0.7171798944473267,
0.4605833888053894,
1.2515686750411987,
1.3537942171096802,
-1.104936957359314,
-0.23445382714271545,
-1.7672979831695557,
-0.14812321960926056,
-0.7935606241226196,
0.3283882439136505,
-2.032527446746826,
-0.18546579778194427,
-1.9327104091644287,
-2.300178289413452,
-1.3886679410934448,
-0.8558354377746582,
1.0795782804489136,
0.16378913819789886,
-0.9652005434036255,
1.2187778949737549,
-0.3105248212814331,
-1.7382726669311523,
1.0230512619018555,
-2.080266237258911
] |
https://github.com/huggingface/datasets/issues/4637 | The "all" split breaks streaming | @albertvillanova Nice! Let me know if it's something I can fix my self; would love to contribtue! | ## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 658 | 17 | The "all" split breaks streaming
## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
@albertvillanova Nice! Let me know if it's something I can fix my self; would love to contribtue! | [
-1.2206077575683594,
-0.9136096835136414,
-0.7287731766700745,
1.6075432300567627,
-0.15511037409305573,
-1.2191036939620972,
0.15929493308067322,
-0.9746297001838684,
1.7483906745910645,
-0.80376797914505,
0.30730003118515015,
-1.6482698917388916,
0.029934439808130264,
-0.6635935306549072,
-0.7206145524978638,
-0.7845211029052734,
-0.38194331526756287,
-0.6626538634300232,
1.0973870754241943,
2.4106192588806152,
1.1433459520339966,
-1.4653061628341675,
2.6616222858428955,
0.6542776823043823,
-0.11881936341524124,
-1.0309972763061523,
0.5319159030914307,
-0.03909474238753319,
-1.3476758003234863,
-0.4504565894603729,
-0.8837336897850037,
-0.11252538114786148,
-0.6237034797668457,
-0.5620222687721252,
0.06263793259859085,
0.43552422523498535,
-0.2741661071777344,
-0.5235652327537537,
-0.3845919966697693,
-0.8119276165962219,
0.4405076801776886,
-0.3621371388435364,
0.8376209735870361,
-0.3465036153793335,
1.7880723476409912,
-0.5327633023262024,
0.47643423080444336,
0.7579535245895386,
1.3890700340270996,
0.21516384184360504,
-0.08519488573074341,
0.40955594182014465,
0.3761223256587982,
-0.009117036126554012,
0.5459988713264465,
1.0566743612289429,
0.6196667551994324,
0.4385755658149719,
0.741101861000061,
-2.347216844558716,
1.2483283281326294,
-1.0803500413894653,
0.2551683485507965,
1.3942539691925049,
-0.9883553981781006,
0.33756983280181885,
-1.8546385765075684,
0.0553569570183754,
0.4878930151462555,
-2.178715229034424,
0.30222538113594055,
-1.2335854768753052,
-0.45360687375068665,
1.1156187057495117,
0.38671785593032837,
-1.2645362615585327,
0.03177551180124283,
-0.3218114376068115,
0.9311392903327942,
0.4401847720146179,
1.0906089544296265,
-1.7454029321670532,
0.0015052733942866325,
-0.3227251172065735,
0.21181514859199524,
-1.2716386318206787,
-1.485930323600769,
0.4814462661743164,
0.6056987643241882,
0.5583540797233582,
-0.1537555754184723,
0.9980555176734924,
-0.9804909229278564,
0.7523586750030518,
-1.038146734237671,
-1.7919734716415405,
-1.3741209506988525,
-2.3158485889434814,
-2.2624077796936035,
0.7033689022064209,
-0.4215690791606903,
-0.446766197681427,
2.032792091369629,
-1.005574107170105,
-1.773444652557373,
1.1345276832580566,
0.28095656633377075,
-0.014835797250270844,
2.354647159576416,
0.19781255722045898,
-0.7375470995903015,
0.49518895149230957,
-0.8121501207351685,
0.6142556667327881,
-0.4678035080432892,
1.3500773906707764,
0.4008006751537323,
-1.0583901405334473,
1.6398004293441772,
-0.3745865821838379,
0.5801790356636047,
-0.7469421029090881,
-0.44229283928871155,
-0.6777753829956055,
0.2928905189037323,
2.011507987976074,
-0.251355916261673,
1.4307782649993896,
-0.34361156821250916,
-1.4743547439575195,
-1.5186927318572998,
0.8885143399238586,
0.39215099811553955,
-0.7183002233505249,
0.24057480692863464,
-0.3031265437602997,
0.17224133014678955,
-0.10743650048971176,
1.100385308265686,
1.228916883468628,
0.7303296327590942,
-0.2710767090320587,
-0.8920660018920898,
0.22612883150577545,
-0.017602484673261642,
-0.6524925827980042,
-1.768597960472107,
-0.3291567265987396,
0.07610462605953217,
0.7510799765586853,
-1.24148428440094,
1.803013801574707,
0.8855745196342468,
1.895734429359436,
1.0314815044403076,
-0.39347919821739197,
1.5424243211746216,
0.12415945529937744,
1.9354162216186523,
-0.44975733757019043,
0.6389083862304688,
-0.44308605790138245,
-1.172216773033142,
0.8265041708946228,
-0.24367661774158478,
-1.9911017417907715,
-0.6489537954330444,
-0.9393751621246338,
-0.2504003643989563,
-0.7616164088249207,
0.9425449371337891,
-0.3199968636035919,
-1.451761245727539,
0.2522515058517456,
-0.7448709011077881,
0.189876988530159,
-1.2619194984436035,
0.31988686323165894,
0.7529239654541016,
-0.5511148571968079,
0.2137925773859024,
-0.40653276443481445,
-1.341935157775879,
-0.5337457656860352,
0.47117626667022705,
1.8496330976486206,
-0.7435178160667419,
0.9494273662567139,
1.0525354146957397,
-0.715774655342102,
-0.1508319079875946,
0.3948656916618347,
-0.2472752183675766,
0.8727083802223206,
-1.0392955541610718,
-0.5811892747879028,
1.1865942478179932,
-0.20017406344413757,
-0.676725447177887,
1.526296615600586,
0.7304147481918335,
-1.0064092874526978,
-0.16075579822063446,
-0.18575020134449005,
-0.8163137435913086,
0.07244995981454849,
-1.726540207862854,
-0.05541497468948364,
0.431250661611557,
-1.5745174884796143,
-0.5017644762992859,
-0.14980711042881012,
1.2578084468841553,
-0.0979682132601738,
1.4323545694351196,
-0.30877524614334106,
-0.15650317072868347,
-0.34799492359161377,
-0.41759824752807617,
0.17530353367328644,
-0.20859555900096893,
-0.6893386840820312,
0.24701790511608124,
-0.751315176486969,
0.3839350938796997,
1.4467275142669678,
0.23884521424770355,
0.025714591145515442,
0.6439486145973206,
1.1508698463439941,
0.38158100843429565,
0.01306231040507555,
-0.912014901638031,
-1.6071165800094604,
2.022057294845581,
-1.5072405338287354,
1.967851996421814,
0.6659159660339355,
-0.08985260874032974,
-1.7636967897415161,
-1.8367631435394287,
1.460618257522583,
1.1266703605651855,
2.3007657527923584,
0.6704990267753601,
0.45846787095069885,
-0.9036664962768555,
-0.6677790880203247,
0.2428155094385147,
-0.9129887819290161,
-0.8183848857879639,
0.14494997262954712,
2.433391571044922,
1.6998236179351807,
-0.361688494682312,
-0.1389024406671524,
-1.0234408378601074,
1.4651532173156738,
-0.20596764981746674,
0.29712191224098206,
1.9075570106506348,
-0.16537337005138397,
-1.0207804441452026,
1.2370928525924683,
-2.370502471923828,
0.2551015019416809,
2.020387649536133,
0.26679345965385437,
0.13337342441082,
-1.3190183639526367,
-0.6891435384750366,
-0.15975284576416016,
-0.385089635848999,
-1.2672746181488037,
0.46562492847442627,
-0.20417550206184387,
-0.6779958605766296,
-1.3648903369903564,
0.2898416817188263,
-1.0418312549591064,
-1.6015689373016357,
0.1312958151102066,
1.8248927593231201,
2.0546417236328125,
-0.700537383556366,
1.5955283641815186,
-0.2708401381969452,
0.3245350420475006,
1.2767181396484375,
1.1619852781295776,
3.0698747634887695,
1.9435597658157349,
-1.2608999013900757,
0.6868067979812622,
-0.06414810568094254,
-0.4742323160171509,
1.2210626602172852,
-1.180083155632019,
1.2540074586868286,
-0.19640040397644043,
-1.1401216983795166,
-1.2214919328689575,
0.8357446789741516,
0.47439494729042053,
0.03746453672647476,
-0.4331892430782318,
1.1464991569519043,
0.06022518873214722,
1.2407875061035156,
0.5362144708633423,
-0.33359554409980774,
0.6169724464416504,
-0.43427518010139465,
-0.4801029860973358,
1.5446512699127197,
0.1471603363752365,
-1.372997760772705,
-2.190129041671753,
-0.14285510778427124,
-0.934013307094574,
0.09017927944660187,
-0.6507845520973206,
-0.9243282675743103,
1.5834341049194336,
0.394193559885025,
-1.0977343320846558,
-0.17307770252227783,
-0.3799121081829071,
-0.6310518980026245,
2.731693983078003,
-1.4068840742111206,
-0.34465646743774414,
-1.0528563261032104,
-0.6860762238502502,
1.693611741065979,
-1.212207317352295,
-0.23709185421466827,
-1.0593409538269043,
-0.5144875049591064,
-1.314095139503479,
-0.5416786074638367,
-0.029093708842992783,
-0.855950653553009,
0.921335756778717,
0.23272119462490082,
-1.3132177591323853,
-0.40613240003585815,
-0.9538800716400146,
0.8662363290786743,
-0.1776711791753769,
0.19635580480098724,
1.8037773370742798,
0.3744807839393616,
-0.3618715703487396,
0.756375253200531,
1.127091884613037,
0.6435273289680481,
-0.5088047385215759,
0.36734631657600403,
-0.5373655557632446,
0.31521204113960266,
-1.2309138774871826,
0.2999682128429413,
-2.825092315673828,
0.603310763835907,
0.05689806491136551,
-0.03792484849691391,
-0.11962837725877762,
-1.3458956480026245,
1.0654088258743286,
2.522138833999634,
-1.2399672269821167,
0.5568785071372986,
0.31377336382865906,
1.2273526191711426,
-1.6040804386138916,
0.2331404834985733,
-0.4715268313884735,
2.1428639888763428,
0.1350632607936859,
1.1588456630706787,
-0.4932120740413666,
-2.477416753768921,
0.5628910660743713,
-1.2810418605804443,
-1.1512197256088257,
0.7028830051422119,
-0.7618324160575867,
0.06118007004261017,
-1.316839337348938,
-0.20120877027511597,
-0.8469975590705872,
-1.184097409248352,
0.7826786041259766,
0.1381140947341919,
0.4894607961177826,
-0.6261674165725708,
0.3562050759792328,
-2.159592866897583,
-1.336787462234497,
-0.18154530227184296,
-0.9318021535873413,
0.46378809213638306,
-0.3564492464065552,
0.7956773042678833,
-0.15907880663871765,
-0.041206568479537964,
0.34729018807411194,
1.382451057434082,
3.3946452140808105,
0.15643267333507538,
0.4556869864463806,
-0.21449095010757446,
-0.9146814942359924,
1.4954513311386108,
0.9566402435302734,
-0.20225317776203156,
-0.5268536806106567,
-1.1214771270751953,
1.273688554763794,
1.9253209829330444,
0.9595251679420471,
-0.00019651558250188828,
-0.7607032060623169,
-0.7357798218727112,
0.0602542981505394,
0.13706962764263153,
0.5324528217315674,
0.8314034342765808,
0.15455175936222076,
0.08266817778348923,
1.356706142425537,
1.1312181949615479,
-0.46599093079566956,
0.3382711708545685,
-0.775995135307312,
-0.38525089621543884,
0.605598509311676,
0.3501911759376526,
-0.04338144138455391,
0.2267119139432907,
-1.0006505250930786,
-0.17084254324436188,
-0.2837326228618622,
-0.892889142036438,
-0.6914128661155701,
-0.4133291244506836,
-0.3589971959590912,
1.6694425344467163,
0.0814724713563919,
-0.548839807510376,
-0.05197058245539665,
-0.7882132530212402,
0.030139505863189697,
-1.0446481704711914,
0.21559613943099976,
-0.1959412395954132,
-0.10485786199569702,
-0.1631132811307907,
1.7906200885772705,
-0.9568091034889221,
-2.1016077995300293,
0.13743604719638824,
0.28967157006263733,
-0.28669828176498413,
0.17641814053058624,
1.661214828491211,
0.5245684385299683,
1.3647021055221558,
1.4287164211273193,
0.9926244616508484,
-0.6960389018058777,
-1.3358838558197021,
0.5735571384429932,
1.027331829071045,
-1.3911998271942139,
0.7705376744270325,
0.08632735908031464,
-0.5200068354606628,
0.5998105406761169,
1.3403396606445312,
0.4929594397544861,
-2.0167994499206543,
0.6733548045158386,
-0.9880202412605286,
0.8516937494277954,
0.7947385311126709,
0.7599496245384216,
0.2217794805765152,
0.7906416654586792,
-1.2134318351745605,
-1.1156917810440063,
-0.6664138436317444,
-0.7644789814949036,
1.900728702545166,
-0.27939823269844055,
0.4953540563583374,
-0.12011799216270447,
-1.4395803213119507,
-0.02949804812669754,
0.6476624011993408,
0.30247044563293457,
-0.46961939334869385,
0.7438560724258423,
-0.7297543287277222,
-1.192144751548767,
-1.382312297821045,
-0.5975614190101624,
-0.9880421757698059,
-0.985370397567749,
1.022760272026062,
0.8866984844207764,
0.23970702290534973,
1.876805305480957,
0.7068944573402405,
0.11370041966438293,
-2.567671775817871,
0.8175010085105896,
0.26083776354789734,
0.026180334389209747,
0.7664769291877747,
0.38466590642929077,
1.068799376487732,
-0.0588865801692009,
0.5538363456726074,
-2.438894271850586,
2.3533995151519775,
-0.24680015444755554,
0.7142124772071838,
-0.03860024735331535,
-0.15427228808403015,
1.024503469467163,
0.5776386260986328,
0.5658577084541321,
-1.0493606328964233,
0.6643497943878174,
-0.6947574019432068,
1.3590872287750244,
0.8391724824905396,
-0.8405517935752869,
-0.055639415979385376,
1.2371876239776611,
0.3849828541278839,
-0.6403805613517761,
-1.0388344526290894,
-1.0472581386566162,
1.0087761878967285,
1.7214127779006958,
-0.067282535135746,
-0.016420993953943253,
0.8488189578056335,
0.6857665181159973,
-1.314026951789856,
0.06561338901519775,
-0.667029857635498,
-0.7488902807235718,
1.7154757976531982,
2.064009189605713,
-0.229269877076149,
-0.14509983360767365,
-0.7384331822395325,
-1.2419508695602417,
0.7558377385139465,
0.08592136204242706,
0.058948442339897156,
0.6976494789123535,
-0.5423738360404968,
1.1010196208953857,
0.9380278587341309,
0.8920621871948242,
0.2127794772386551,
0.2281295359134674,
0.28527843952178955,
-0.3471769094467163,
-1.2188957929611206,
-0.2208208292722702,
-1.1168462038040161,
-2.65604305267334,
0.44305774569511414,
-0.17181885242462158,
-1.3554283380508423,
0.10468942672014236,
-1.0050280094146729,
0.9091804027557373,
-0.5311147570610046,
-1.216820240020752,
-1.3446881771087646,
0.125104159116745,
-0.0943155363202095,
0.8085836172103882,
-1.6845157146453857,
-0.0606670081615448,
1.3316196203231812,
0.9929742217063904,
-0.7241540551185608,
1.0246261358261108,
0.2249743789434433,
1.060462236404419,
0.8919236660003662,
-0.30034008622169495,
0.5621835589408875,
0.13004495203495026,
-1.3235383033752441,
0.5177876353263855,
1.1905734539031982,
0.21318849921226501,
1.4817752838134766,
-0.5576016902923584,
-0.030786171555519104,
0.3466932773590088,
-0.473399817943573,
-0.4619981646537781,
-0.761194109916687,
0.6520261764526367,
-0.07588061690330505,
-0.8200078010559082,
0.15572014451026917,
0.031211987137794495,
-0.150837704539299,
0.1582699716091156,
-1.5565019845962524,
-0.09416968375444412,
-0.2887987196445465,
-0.6497337222099304,
-1.2682701349258423,
-0.1125805452466011,
1.36050546169281,
-0.7058833837509155,
-0.21116463840007782,
0.5226408243179321,
0.2908296585083008,
0.47838154435157776,
0.643248438835144,
-0.6852157115936279,
-0.37220051884651184,
-0.16214904189109802,
-0.42179372906684875,
0.3775614798069,
1.3915338516235352,
-0.1359885036945343,
-0.9964852929115295,
0.6602856516838074,
-0.35680273175239563,
0.05141464248299599,
1.8490384817123413,
0.01138074416667223,
-0.8687664866447449,
0.24215970933437347,
-0.8043458461761475,
1.9941588640213013,
1.70846426486969,
1.2960184812545776,
-0.17483976483345032,
-1.0191766023635864,
0.7102469801902771,
-0.3759821653366089,
-0.4441220760345459,
0.8811606764793396,
0.4029908776283264,
-0.29109132289886475,
-1.3385345935821533,
0.7002245783805847,
1.1879408359527588,
-0.7595920562744141,
-0.9232878684997559,
0.10738163441419601,
-0.7690504789352417,
1.0712639093399048,
0.7173337936401367,
0.35106736421585083,
0.2787139415740967,
1.696007490158081,
0.820400059223175,
-0.5313059091567993,
0.627524197101593,
0.5313259959220886,
-0.1861836463212967,
-2.0883231163024902,
-1.2023564577102661,
0.3242855966091156,
-0.5765351057052612,
-1.6832903623580933,
1.429674506187439,
-1.1232293844223022,
-0.9112203121185303,
0.5697993040084839,
0.12074214220046997,
1.4439858198165894,
0.3768635392189026,
1.5042459964752197,
1.935510516166687,
0.7998970746994019,
0.40843769907951355,
1.2163752317428589,
-0.2665627896785736,
-0.49204400181770325,
1.7394623756408691,
-0.5370649099349976,
0.48586589097976685,
1.1638485193252563,
-0.2985193431377411,
-1.087466835975647,
-0.7834347486495972,
-1.2826409339904785,
-0.7725659608840942,
1.1583796739578247,
0.07658233493566513,
-1.15314519405365,
0.3243749141693115,
1.5586656332015991,
0.06677187234163284,
-0.25478458404541016,
0.7023789882659912,
0.3627357482910156,
-0.8965068459510803,
-0.04582435265183449,
-0.9765805602073669,
0.4990953803062439,
-0.27125564217567444,
-0.3178732991218567,
0.310479998588562,
0.4648250341415405,
1.3297498226165771,
0.06860407441854477,
0.17417217791080475,
1.2505676746368408,
-1.3868746757507324,
1.4361544847488403,
-0.8843989968299866,
0.32492074370384216,
-2.3578133583068848,
1.3342232704162598,
-0.8080500364303589,
1.9365724325180054,
-2.664642333984375,
0.44956064224243164,
-0.6272257566452026,
-0.4362447261810303,
0.29084908962249756,
-0.2970956563949585,
0.06820621341466904,
-0.12152156233787537,
-1.1627593040466309,
-0.1287204623222351,
-0.7368049025535583,
0.5050326585769653,
1.1504859924316406,
1.3341206312179565,
-1.0557633638381958,
-0.23910050094127655,
-1.8043729066848755,
-0.13130974769592285,
-0.61260586977005,
0.38113319873809814,
-1.917554497718811,
-0.20147135853767395,
-1.9486197233200073,
-2.3088862895965576,
-1.216651439666748,
-0.7656470537185669,
1.2024961709976196,
0.08750732243061066,
-0.8286057114601135,
1.1395878791809082,
-0.3195500373840332,
-1.7578320503234863,
1.036371111869812,
-2.1435976028442383
] |
https://github.com/huggingface/datasets/issues/4637 | The "all" split breaks streaming | @cakiki I was working on this but if you would like to contribute, go ahead. I will close my PR. ;)
For the moment I just pushed the test (to see if it impacts other tests). | ## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 658 | 36 | The "all" split breaks streaming
## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
@cakiki I was working on this but if you would like to contribute, go ahead. I will close my PR. ;)
For the moment I just pushed the test (to see if it impacts other tests). | [
-1.2319499254226685,
-0.926291823387146,
-0.7375389337539673,
1.5940781831741333,
-0.15106213092803955,
-1.2280464172363281,
0.12351737171411514,
-0.9663018584251404,
1.7480428218841553,
-0.7996657490730286,
0.3006737232208252,
-1.6301753520965576,
0.07221941649913788,
-0.6284613609313965,
-0.740134060382843,
-0.7781916260719299,
-0.381705641746521,
-0.6771364212036133,
1.1092060804367065,
2.4288864135742188,
1.151505470275879,
-1.4586209058761597,
2.6654105186462402,
0.6532596349716187,
-0.1312919706106186,
-1.0311161279678345,
0.5264707207679749,
-0.07853925228118896,
-1.327942967414856,
-0.45634597539901733,
-0.8828592896461487,
-0.11493168026208878,
-0.610306441783905,
-0.5885649919509888,
0.0581473708152771,
0.4435203969478607,
-0.2962665557861328,
-0.5117252469062805,
-0.3771528899669647,
-0.795834481716156,
0.47033217549324036,
-0.3742329776287079,
0.8647851943969727,
-0.3281670808792114,
1.7867299318313599,
-0.5354112386703491,
0.49130475521087646,
0.7358986735343933,
1.3781565427780151,
0.19913031160831451,
-0.0857863500714302,
0.4161825478076935,
0.3772377073764801,
0.001043057069182396,
0.5291269421577454,
1.0682867765426636,
0.6270134449005127,
0.44816678762435913,
0.7622837424278259,
-2.32128643989563,
1.2820357084274292,
-1.0843567848205566,
0.2599605321884155,
1.3737642765045166,
-0.9920358657836914,
0.35292473435401917,
-1.826927900314331,
0.0669129267334938,
0.48821762204170227,
-2.196593761444092,
0.30203816294670105,
-1.261712908744812,
-0.4327050447463989,
1.1417677402496338,
0.3884221315383911,
-1.2532851696014404,
0.04455479606986046,
-0.3271297514438629,
0.9364933967590332,
0.4354460537433624,
1.0711565017700195,
-1.765513300895691,
0.01770586520433426,
-0.302011102437973,
0.2146712690591812,
-1.2663160562515259,
-1.4992082118988037,
0.48815199732780457,
0.5975179672241211,
0.5571284294128418,
-0.17093844711780548,
1.022512435913086,
-0.9897848963737488,
0.7116864323616028,
-1.0254300832748413,
-1.7972385883331299,
-1.3689146041870117,
-2.336885929107666,
-2.297473192214966,
0.7062004804611206,
-0.42011934518814087,
-0.4516146183013916,
2.049805164337158,
-1.0121530294418335,
-1.7976882457733154,
1.1362746953964233,
0.2785143256187439,
-0.024103086441755295,
2.3581061363220215,
0.18832813203334808,
-0.7370872497558594,
0.498121976852417,
-0.8199607133865356,
0.6394131779670715,
-0.4529680907726288,
1.3348712921142578,
0.4232575595378876,
-1.0470695495605469,
1.655718445777893,
-0.3535008132457733,
0.5968553423881531,
-0.7136237621307373,
-0.39794662594795227,
-0.6982004642486572,
0.3177446722984314,
2.0162811279296875,
-0.2433692216873169,
1.4349526166915894,
-0.3596095144748688,
-1.4926122426986694,
-1.5390751361846924,
0.9038041830062866,
0.4020664393901825,
-0.7070398330688477,
0.23696324229240417,
-0.2930740714073181,
0.15654414892196655,
-0.07461250573396683,
1.1144722700119019,
1.2417916059494019,
0.7316073775291443,
-0.27252504229545593,
-0.9250612854957581,
0.25466930866241455,
-0.0420648567378521,
-0.6421428918838501,
-1.7449851036071777,
-0.3618408739566803,
0.08509552478790283,
0.7499402761459351,
-1.2099251747131348,
1.8027865886688232,
0.9082231521606445,
1.8976361751556396,
1.0263179540634155,
-0.3918491303920746,
1.5102256536483765,
0.13882999122142792,
1.9290194511413574,
-0.45686960220336914,
0.6406895518302917,
-0.4452211558818817,
-1.1774362325668335,
0.8525227308273315,
-0.2637958526611328,
-1.9843109846115112,
-0.6285572052001953,
-0.9218806028366089,
-0.21230970323085785,
-0.742644190788269,
0.966630756855011,
-0.32563647627830505,
-1.4286634922027588,
0.2692456543445587,
-0.7658447623252869,
0.16216787695884705,
-1.258932113647461,
0.2889863848686218,
0.7581622004508972,
-0.5760688781738281,
0.20495733618736267,
-0.3896407186985016,
-1.3407317399978638,
-0.531599760055542,
0.45260846614837646,
1.8659054040908813,
-0.7143038511276245,
0.9792450070381165,
1.0423250198364258,
-0.7336959838867188,
-0.1617870330810547,
0.4024527668952942,
-0.254321426153183,
0.8621782660484314,
-1.0163698196411133,
-0.5673064589500427,
1.169508457183838,
-0.21484950184822083,
-0.6643705368041992,
1.4972094297409058,
0.6991897225379944,
-1.0122604370117188,
-0.15354901552200317,
-0.1671665608882904,
-0.8258489966392517,
0.0928289145231247,
-1.6917836666107178,
-0.06535280495882034,
0.43090346455574036,
-1.6133836507797241,
-0.5070210099220276,
-0.16161313652992249,
1.232952356338501,
-0.09893079847097397,
1.4430854320526123,
-0.31687819957733154,
-0.18019405007362366,
-0.3611389100551605,
-0.43281418085098267,
0.14309318363666534,
-0.1801343411207199,
-0.6749584078788757,
0.24941961467266083,
-0.778096616268158,
0.4119681119918823,
1.4386259317398071,
0.21666349470615387,
0.031928952783346176,
0.6310206651687622,
1.1327964067459106,
0.3930146396160126,
-0.03305141627788544,
-0.918491542339325,
-1.5935548543930054,
2.0152997970581055,
-1.4955124855041504,
1.9582711458206177,
0.679931640625,
-0.08701170980930328,
-1.7524257898330688,
-1.8131382465362549,
1.4608114957809448,
1.1497361660003662,
2.312594175338745,
0.6538155674934387,
0.4423465430736542,
-0.9008113145828247,
-0.6762226819992065,
0.24356360733509064,
-0.9214028120040894,
-0.8400800228118896,
0.1052466332912445,
2.4210257530212402,
1.7198277711868286,
-0.34944096207618713,
-0.15792657434940338,
-1.0202527046203613,
1.4598650932312012,
-0.20123426616191864,
0.2740832567214966,
1.8935881853103638,
-0.17708313465118408,
-1.030509114265442,
1.2539774179458618,
-2.3758585453033447,
0.2513352036476135,
2.0007717609405518,
0.27690988779067993,
0.15536391735076904,
-1.3412175178527832,
-0.6822110414505005,
-0.15436720848083496,
-0.37359318137168884,
-1.2852318286895752,
0.4842943549156189,
-0.21296857297420502,
-0.7169257402420044,
-1.3785386085510254,
0.2909248173236847,
-1.072670578956604,
-1.6175154447555542,
0.129925936460495,
1.8267406225204468,
2.062997341156006,
-0.6968005895614624,
1.5953969955444336,
-0.24525325000286102,
0.3317168056964874,
1.2626124620437622,
1.1534297466278076,
3.0659310817718506,
1.9581199884414673,
-1.2335188388824463,
0.6633994579315186,
-0.06801280379295349,
-0.4894501268863678,
1.2281051874160767,
-1.1766163110733032,
1.2467471361160278,
-0.18341805040836334,
-1.1596920490264893,
-1.2202688455581665,
0.8432871103286743,
0.48473384976387024,
0.03905309736728668,
-0.4203610122203827,
1.15325129032135,
0.0641431212425232,
1.2267096042633057,
0.5457825660705566,
-0.3191945254802704,
0.6297829151153564,
-0.43095067143440247,
-0.46930181980133057,
1.5359699726104736,
0.1445440649986267,
-1.3869634866714478,
-2.1709370613098145,
-0.14783918857574463,
-0.9229097962379456,
0.07374345511198044,
-0.6391448974609375,
-0.893620491027832,
1.5705560445785522,
0.40566742420196533,
-1.1137325763702393,
-0.17724333703517914,
-0.4025759994983673,
-0.6697145700454712,
2.7166292667388916,
-1.3832793235778809,
-0.35506319999694824,
-1.0681226253509521,
-0.7048984169960022,
1.6374058723449707,
-1.232399821281433,
-0.24443846940994263,
-1.0528913736343384,
-0.49278467893600464,
-1.3123480081558228,
-0.5535756945610046,
-0.06448744982481003,
-0.8513038158416748,
0.9069471955299377,
0.21353310346603394,
-1.2960309982299805,
-0.4004094898700714,
-0.9406722784042358,
0.8339703679084778,
-0.15758246183395386,
0.1829725056886673,
1.7927149534225464,
0.3474988639354706,
-0.3487698435783386,
0.7384205460548401,
1.1088958978652954,
0.6475107669830322,
-0.5152979493141174,
0.38828811049461365,
-0.5294088125228882,
0.3158020079135895,
-1.258579969406128,
0.32486429810523987,
-2.803036689758301,
0.6233456134796143,
0.04426415637135506,
-0.025871440768241882,
-0.11500387638807297,
-1.3200585842132568,
1.0610411167144775,
2.533905029296875,
-1.240229606628418,
0.5416128039360046,
0.30541563034057617,
1.2225865125656128,
-1.5964972972869873,
0.24512822926044464,
-0.46448758244514465,
2.151223659515381,
0.14320781826972961,
1.1805928945541382,
-0.47698739171028137,
-2.464942693710327,
0.5655331015586853,
-1.2640339136123657,
-1.1711859703063965,
0.6900442838668823,
-0.7532227635383606,
0.059470243752002716,
-1.3054243326187134,
-0.20197349786758423,
-0.825782835483551,
-1.1923203468322754,
0.7847663164138794,
0.15641967952251434,
0.47743526101112366,
-0.6155964136123657,
0.34848538041114807,
-2.1713197231292725,
-1.346924066543579,
-0.18420040607452393,
-0.9515547752380371,
0.4515957236289978,
-0.3565898537635803,
0.7893350124359131,
-0.15944190323352814,
-0.05752689391374588,
0.3187347650527954,
1.39267098903656,
3.4195971488952637,
0.16777053475379944,
0.4267536401748657,
-0.21268479526042938,
-0.9403204917907715,
1.4996641874313354,
0.9745150804519653,
-0.20580324530601501,
-0.5145793557167053,
-1.1232982873916626,
1.288516640663147,
1.9327186346054077,
0.966147243976593,
0.0030179964378476143,
-0.7637603878974915,
-0.7415896654129028,
0.06748924404382706,
0.1306726634502411,
0.5195579528808594,
0.8681809902191162,
0.18762464821338654,
0.0903143659234047,
1.3742833137512207,
1.117484211921692,
-0.43876558542251587,
0.3429974913597107,
-0.7800794839859009,
-0.40900805592536926,
0.59590744972229,
0.3710290789604187,
-0.017018260434269905,
0.228163480758667,
-1.0197914838790894,
-0.1703236848115921,
-0.28976261615753174,
-0.8976684212684631,
-0.6972159147262573,
-0.39406847953796387,
-0.348243772983551,
1.6841222047805786,
0.07412749528884888,
-0.5405999422073364,
-0.06713075935840607,
-0.7815157771110535,
0.024755842983722687,
-1.017822504043579,
0.21315298974514008,
-0.18304142355918884,
-0.11405184119939804,
-0.17230920493602753,
1.7704530954360962,
-0.9659860730171204,
-2.115837335586548,
0.1572209596633911,
0.2831578552722931,
-0.26832035183906555,
0.17841002345085144,
1.624605417251587,
0.5381268858909607,
1.392655372619629,
1.4424604177474976,
0.9987466335296631,
-0.7068668007850647,
-1.3395041227340698,
0.6024576425552368,
1.0222111940383911,
-1.3791056871414185,
0.7617548108100891,
0.08603019267320633,
-0.5093322396278381,
0.5922728776931763,
1.3269400596618652,
0.4937894940376282,
-2.031802177429199,
0.6770954728126526,
-0.9870545268058777,
0.8404439091682434,
0.7829688191413879,
0.7548539638519287,
0.1929832100868225,
0.7799003720283508,
-1.225274920463562,
-1.1047415733337402,
-0.6594757437705994,
-0.7565241456031799,
1.8821802139282227,
-0.2961808443069458,
0.5273333191871643,
-0.14538075029850006,
-1.4567687511444092,
-0.0371159166097641,
0.6580519676208496,
0.3116435408592224,
-0.4896768033504486,
0.7508677840232849,
-0.7320154309272766,
-1.2014046907424927,
-1.3989218473434448,
-0.5760877728462219,
-0.9981576204299927,
-0.9715316891670227,
1.0152952671051025,
0.8436593413352966,
0.21112965047359467,
1.885982632637024,
0.6972561478614807,
0.11755049973726273,
-2.58828067779541,
0.8188993334770203,
0.25950750708580017,
0.03578801825642586,
0.7863314151763916,
0.37425196170806885,
1.0524327754974365,
-0.07449597865343094,
0.5683162808418274,
-2.4164364337921143,
2.336820602416992,
-0.21297141909599304,
0.7138647437095642,
-0.016390400007367134,
-0.16035206615924835,
1.051396369934082,
0.5980876684188843,
0.5843424201011658,
-1.0610986948013306,
0.6733314394950867,
-0.6661680340766907,
1.3755104541778564,
0.8592357635498047,
-0.8511636257171631,
-0.053729161620140076,
1.248305082321167,
0.40254074335098267,
-0.6489540934562683,
-1.037825584411621,
-1.0638419389724731,
0.9771570563316345,
1.7565414905548096,
-0.06253871321678162,
-0.018212998285889626,
0.839063286781311,
0.6759606003761292,
-1.2933018207550049,
0.04480407387018204,
-0.6865376830101013,
-0.7459872364997864,
1.6932367086410522,
2.0547935962677,
-0.24251368641853333,
-0.16650758683681488,
-0.7377403974533081,
-1.2399437427520752,
0.7509977221488953,
0.11427141726016998,
0.05029353126883507,
0.7189509868621826,
-0.5538603663444519,
1.109562873840332,
0.93777996301651,
0.9020549058914185,
0.2206733673810959,
0.2197503000497818,
0.3051270842552185,
-0.3643322288990021,
-1.221293330192566,
-0.22633641958236694,
-1.0880812406539917,
-2.643890619277954,
0.44312208890914917,
-0.16538381576538086,
-1.3931087255477905,
0.08689191192388535,
-1.0109496116638184,
0.9084392189979553,
-0.5257823467254639,
-1.2054461240768433,
-1.3730084896087646,
0.10458485782146454,
-0.10610660165548325,
0.828753650188446,
-1.6732654571533203,
-0.05938122048974037,
1.3190637826919556,
0.9908707141876221,
-0.7282446026802063,
1.0363364219665527,
0.20711110532283783,
1.0443406105041504,
0.8775128722190857,
-0.3047025203704834,
0.5566272139549255,
0.12702490389347076,
-1.3304346799850464,
0.4953615069389343,
1.1782690286636353,
0.20148658752441406,
1.457256555557251,
-0.5775460600852966,
-0.02105805091559887,
0.3545227348804474,
-0.4770347476005554,
-0.47683700919151306,
-0.7479298114776611,
0.6435754895210266,
-0.08046652376651764,
-0.8203176259994507,
0.1600668877363205,
0.05157740041613579,
-0.161908358335495,
0.1788443922996521,
-1.5602784156799316,
-0.09407560527324677,
-0.30106228590011597,
-0.6724867820739746,
-1.2494508028030396,
-0.14022576808929443,
1.3756284713745117,
-0.7252479195594788,
-0.22273960709571838,
0.5293842554092407,
0.3107297420501709,
0.4693014323711395,
0.6183619499206543,
-0.6803382635116577,
-0.3787286579608917,
-0.16157248616218567,
-0.40157008171081543,
0.3744184672832489,
1.3889325857162476,
-0.1256871372461319,
-1.0250369310379028,
0.6631391644477844,
-0.3627414107322693,
0.034073539078235626,
1.8439679145812988,
0.02094912901520729,
-0.8564178347587585,
0.2406868189573288,
-0.7823100090026855,
1.9737939834594727,
1.6930030584335327,
1.2984507083892822,
-0.16947780549526215,
-0.9919425845146179,
0.7223487496376038,
-0.36826038360595703,
-0.4416773021221161,
0.8982271552085876,
0.3813445568084717,
-0.29027408361434937,
-1.321764588356018,
0.6984190940856934,
1.2179492712020874,
-0.7752020955085754,
-0.9429416060447693,
0.10947109758853912,
-0.8037715554237366,
1.0660247802734375,
0.6992126703262329,
0.39288341999053955,
0.24951983988285065,
1.720472812652588,
0.8213508129119873,
-0.5242310166358948,
0.6273434162139893,
0.5287184119224548,
-0.1927192658185959,
-2.0754342079162598,
-1.1946402788162231,
0.31548967957496643,
-0.5850875973701477,
-1.6711286306381226,
1.4178425073623657,
-1.137656331062317,
-0.9103978872299194,
0.5956821441650391,
0.11979178339242935,
1.427339792251587,
0.3497164845466614,
1.5080307722091675,
1.9451870918273926,
0.8155897259712219,
0.4179372191429138,
1.1889945268630981,
-0.2676277756690979,
-0.48263320326805115,
1.717383623123169,
-0.5220234394073486,
0.5013072490692139,
1.1851859092712402,
-0.28946515917778015,
-1.0735554695129395,
-0.7804520726203918,
-1.261374831199646,
-0.7727235555648804,
1.1473853588104248,
0.08799395710229874,
-1.162461519241333,
0.3253740966320038,
1.5542240142822266,
0.1160891130566597,
-0.24926377832889557,
0.6860964298248291,
0.39223113656044006,
-0.8811772465705872,
-0.036784566938877106,
-0.9676433205604553,
0.49913549423217773,
-0.28538715839385986,
-0.3167617619037628,
0.32710856199264526,
0.442644327878952,
1.3084245920181274,
0.05385309457778931,
0.1849387288093567,
1.2604312896728516,
-1.3782234191894531,
1.4677711725234985,
-0.8624060750007629,
0.3299703896045685,
-2.354971408843994,
1.33492910861969,
-0.8044269680976868,
1.914123296737671,
-2.648074150085449,
0.4282678961753845,
-0.6516390442848206,
-0.4502551555633545,
0.2866893410682678,
-0.3151378333568573,
0.07038219273090363,
-0.14229723811149597,
-1.1606110334396362,
-0.14896559715270996,
-0.7171629071235657,
0.5150938034057617,
1.1642731428146362,
1.347662329673767,
-1.068149209022522,
-0.22954918444156647,
-1.8112964630126953,
-0.12041988223791122,
-0.6238744258880615,
0.3853890001773834,
-1.9404557943344116,
-0.20795482397079468,
-1.9467252492904663,
-2.295193672180176,
-1.2044882774353027,
-0.772901713848114,
1.2292423248291016,
0.08023929595947266,
-0.8086632490158081,
1.1475361585617065,
-0.3201204240322113,
-1.767572283744812,
1.0479251146316528,
-2.1406984329223633
] |
https://github.com/huggingface/datasets/issues/4637 | The "all" split breaks streaming | It impacted the test `test_generator_based_download_and_prepare` and I have fixed this.
So that you can copy the test I implemented in my PR and then implement a fix for this issue that passes the test `tests/test_builder.py::test_builder_as_streaming_dataset`. | ## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 658 | 35 | The "all" split breaks streaming
## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
It impacted the test `test_generator_based_download_and_prepare` and I have fixed this.
So that you can copy the test I implemented in my PR and then implement a fix for this issue that passes the test `tests/test_builder.py::test_builder_as_streaming_dataset`. | [
-1.2236392498016357,
-0.9311374425888062,
-0.7086479067802429,
1.6019041538238525,
-0.1440945416688919,
-1.2787818908691406,
0.11830857396125793,
-0.9831491708755493,
1.756643295288086,
-0.8029643893241882,
0.2973316013813019,
-1.6340948343276978,
0.04581575095653534,
-0.6488441824913025,
-0.7364102602005005,
-0.7763107419013977,
-0.3721505105495453,
-0.6837595105171204,
1.1225513219833374,
2.358849048614502,
1.1786246299743652,
-1.4392555952072144,
2.662386178970337,
0.6678715944290161,
-0.1751011461019516,
-1.0424672365188599,
0.4940904676914215,
-0.060178518295288086,
-1.3439267873764038,
-0.44081437587738037,
-0.8634582757949829,
-0.10041653364896774,
-0.6045898795127869,
-0.5474825501441956,
-0.008915390819311142,
0.48005273938179016,
-0.33948272466659546,
-0.5127543807029724,
-0.3959347903728485,
-0.8368102312088013,
0.45476245880126953,
-0.3470161557197571,
0.8624191284179688,
-0.3539046347141266,
1.7872464656829834,
-0.5284983515739441,
0.49923381209373474,
0.7679558396339417,
1.3358664512634277,
0.17109274864196777,
-0.07580681890249252,
0.3531740605831146,
0.37883251905441284,
0.009647341445088387,
0.5595178008079529,
1.0878357887268066,
0.615791380405426,
0.4818752408027649,
0.7630693316459656,
-2.3464620113372803,
1.281584620475769,
-1.0591791868209839,
0.2688784599304199,
1.3662173748016357,
-1.0011006593704224,
0.30448809266090393,
-1.8078088760375977,
0.06439728289842606,
0.5084643959999084,
-2.168856382369995,
0.31426918506622314,
-1.2936429977416992,
-0.47433385252952576,
1.078890323638916,
0.40824389457702637,
-1.1974751949310303,
0.04201844334602356,
-0.3390941619873047,
0.9745965003967285,
0.44491204619407654,
1.0329500436782837,
-1.7326375246047974,
-0.0031005581840872765,
-0.27514997124671936,
0.1893698126077652,
-1.3069602251052856,
-1.5145556926727295,
0.493573397397995,
0.6101678609848022,
0.5952935814857483,
-0.1522829681634903,
1.0566737651824951,
-1.0589677095413208,
0.720118522644043,
-1.0458319187164307,
-1.784373164176941,
-1.3521320819854736,
-2.347234010696411,
-2.2787129878997803,
0.6930860280990601,
-0.4401908814907074,
-0.44968438148498535,
2.0549144744873047,
-1.0049710273742676,
-1.7591049671173096,
1.143315076828003,
0.2719567120075226,
-0.004030054900795221,
2.3397011756896973,
0.20254454016685486,
-0.7276635766029358,
0.49260959029197693,
-0.8212242126464844,
0.6560320854187012,
-0.44581133127212524,
1.3159948587417603,
0.43614786863327026,
-1.0608773231506348,
1.6272841691970825,
-0.3470381200313568,
0.6123506426811218,
-0.7177165746688843,
-0.46334701776504517,
-0.6724462509155273,
0.27774113416671753,
1.9576928615570068,
-0.251085102558136,
1.4492970705032349,
-0.33432215452194214,
-1.4859181642532349,
-1.5723158121109009,
0.8973290324211121,
0.3828175663948059,
-0.7211978435516357,
0.22726203501224518,
-0.30126163363456726,
0.16714560985565186,
-0.13200274109840393,
1.148515224456787,
1.2708525657653809,
0.7528759837150574,
-0.29097747802734375,
-0.8323078155517578,
0.23567786812782288,
-0.028348160907626152,
-0.6627286672592163,
-1.726622462272644,
-0.32087844610214233,
0.07670371979475021,
0.7044063210487366,
-1.1523000001907349,
1.8184928894042969,
0.8921747803688049,
1.8972686529159546,
1.0094358921051025,
-0.37182560563087463,
1.4837055206298828,
0.10473121702671051,
1.9385298490524292,
-0.4861048460006714,
0.6382523775100708,
-0.44438689947128296,
-1.1529717445373535,
0.8915174603462219,
-0.2773418128490448,
-2.0027554035186768,
-0.6150366067886353,
-0.9102573990821838,
-0.23640671372413635,
-0.7258104085922241,
0.9175633192062378,
-0.318561315536499,
-1.4454195499420166,
0.24242053925991058,
-0.7411397695541382,
0.2061181217432022,
-1.2099955081939697,
0.29281461238861084,
0.7803904414176941,
-0.5505312085151672,
0.18065549433231354,
-0.36007389426231384,
-1.3170363903045654,
-0.5087110996246338,
0.5184491276741028,
1.8716034889221191,
-0.7054796814918518,
0.9678155183792114,
1.0428458452224731,
-0.7405915260314941,
-0.1234222948551178,
0.339860200881958,
-0.21309922635555267,
0.8096886277198792,
-1.004513144493103,
-0.5638611316680908,
1.165253758430481,
-0.25491654872894287,
-0.7028295993804932,
1.5293186902999878,
0.7110843062400818,
-0.9742045402526855,
-0.13614913821220398,
-0.18605469167232513,
-0.8438886404037476,
0.05946265906095505,
-1.6722193956375122,
-0.05950719863176346,
0.44835278391838074,
-1.5902560949325562,
-0.4635106921195984,
-0.14863111078739166,
1.2606701850891113,
-0.13125109672546387,
1.421615719795227,
-0.30634868144989014,
-0.18845349550247192,
-0.3259577453136444,
-0.46407410502433777,
0.16387346386909485,
-0.2071412354707718,
-0.622038722038269,
0.19357825815677643,
-0.7485347390174866,
0.3787221312522888,
1.4158155918121338,
0.18711227178573608,
0.039380624890327454,
0.5794476270675659,
1.151789665222168,
0.3895794451236725,
-0.03368210792541504,
-0.8920180201530457,
-1.5434212684631348,
2.001500129699707,
-1.4988903999328613,
2.002563953399658,
0.6598012447357178,
-0.07337746769189835,
-1.7882599830627441,
-1.862048864364624,
1.413339376449585,
1.1331161260604858,
2.273071527481079,
0.6473422646522522,
0.4205014705657959,
-0.9365078210830688,
-0.696952760219574,
0.2727932333946228,
-0.9277819395065308,
-0.784679114818573,
0.08286683261394501,
2.3939058780670166,
1.7113115787506104,
-0.3643520772457123,
-0.18488065898418427,
-1.0151814222335815,
1.471267819404602,
-0.1771794557571411,
0.29561546444892883,
1.9189976453781128,
-0.2063230276107788,
-1.001025915145874,
1.2640788555145264,
-2.417790651321411,
0.2642861306667328,
2.054936170578003,
0.29885146021842957,
0.13949233293533325,
-1.3151586055755615,
-0.6629704833030701,
-0.17332999408245087,
-0.38662827014923096,
-1.2605414390563965,
0.49906644225120544,
-0.23688288033008575,
-0.7123919725418091,
-1.3917107582092285,
0.2570495903491974,
-1.034049153327942,
-1.6378401517868042,
0.11755260825157166,
1.8557920455932617,
2.0479650497436523,
-0.6872363686561584,
1.5925344228744507,
-0.2567891776561737,
0.2862741947174072,
1.2996736764907837,
1.2127926349639893,
3.077089786529541,
1.9717594385147095,
-1.2599564790725708,
0.6753264665603638,
-0.05606335401535034,
-0.4657590687274933,
1.2133270502090454,
-1.2148407697677612,
1.2453269958496094,
-0.18430538475513458,
-1.1643729209899902,
-1.2433019876480103,
0.8804523348808289,
0.4837360382080078,
0.05563089996576309,
-0.4380490779876709,
1.1644541025161743,
0.061110012233257294,
1.2575838565826416,
0.5693133473396301,
-0.3504488170146942,
0.6203358173370361,
-0.4288230240345001,
-0.49132463335990906,
1.5377002954483032,
0.1777597814798355,
-1.3560088872909546,
-2.1759305000305176,
-0.18793629109859467,
-0.927925705909729,
0.07388662546873093,
-0.6178107857704163,
-0.9323791265487671,
1.578753113746643,
0.40061700344085693,
-1.1619551181793213,
-0.1619284451007843,
-0.3891095817089081,
-0.6452881097793579,
2.734497308731079,
-1.3534951210021973,
-0.31665387749671936,
-1.0982980728149414,
-0.7114481925964355,
1.706756830215454,
-1.2458629608154297,
-0.26027461886405945,
-1.0541874170303345,
-0.49275290966033936,
-1.3134979009628296,
-0.522568941116333,
-0.029120253399014473,
-0.8293099403381348,
0.9347630739212036,
0.2280920445919037,
-1.3121309280395508,
-0.4062519967556,
-0.9167045950889587,
0.8809924125671387,
-0.19641517102718353,
0.21832746267318726,
1.8373745679855347,
0.31074199080467224,
-0.3862340450286865,
0.7572749853134155,
1.1019763946533203,
0.6662620902061462,
-0.507731020450592,
0.38889357447624207,
-0.5107242465019226,
0.36925607919692993,
-1.2545552253723145,
0.2917064428329468,
-2.8253278732299805,
0.6231733560562134,
0.02251308225095272,
-0.04212029278278351,
-0.10689840465784073,
-1.3921804428100586,
1.0393097400665283,
2.5178256034851074,
-1.2584744691848755,
0.5548516511917114,
0.30946221947669983,
1.213117241859436,
-1.6101127862930298,
0.24908436834812164,
-0.48345503211021423,
2.1441516876220703,
0.15291795134544373,
1.1773834228515625,
-0.47183534502983093,
-2.4738707542419434,
0.563239574432373,
-1.2683277130126953,
-1.155981183052063,
0.7349517345428467,
-0.7743410468101501,
0.10318803042173386,
-1.3114585876464844,
-0.23505911231040955,
-0.8496520519256592,
-1.1851747035980225,
0.7435382008552551,
0.14442987740039825,
0.4820118248462677,
-0.6451629996299744,
0.33458495140075684,
-2.178462266921997,
-1.316476583480835,
-0.19077374041080475,
-0.9377068877220154,
0.4758654832839966,
-0.3888125419616699,
0.751897394657135,
-0.15309415757656097,
-0.05392848700284958,
0.30644509196281433,
1.4302998781204224,
3.4165468215942383,
0.1520622968673706,
0.37205231189727783,
-0.20963561534881592,
-0.9177109599113464,
1.4803173542022705,
0.9534727334976196,
-0.17321383953094482,
-0.5076603293418884,
-1.120208978652954,
1.2451748847961426,
1.9517122507095337,
0.9513241052627563,
-0.032070983201265335,
-0.73552405834198,
-0.7542322278022766,
0.05364324897527695,
0.10741699486970901,
0.5621772408485413,
0.8717020153999329,
0.20214930176734924,
0.0815078392624855,
1.365270733833313,
1.1385297775268555,
-0.4355579614639282,
0.30825862288475037,
-0.80277019739151,
-0.41519632935523987,
0.5280097126960754,
0.36282238364219666,
-0.05274991691112518,
0.25032758712768555,
-1.0367357730865479,
-0.17075270414352417,
-0.3213749825954437,
-0.8552132844924927,
-0.70176100730896,
-0.39291897416114807,
-0.38223326206207275,
1.6701042652130127,
0.10109904408454895,
-0.5756978392601013,
-0.04441487044095993,
-0.7732489705085754,
0.020602935925126076,
-1.0585554838180542,
0.25014728307724,
-0.18895931541919708,
-0.09547330439090729,
-0.12063419818878174,
1.7698107957839966,
-0.9273385405540466,
-2.0832409858703613,
0.1688753217458725,
0.2594992220401764,
-0.28260597586631775,
0.16590526700019836,
1.648215413093567,
0.5126142501831055,
1.3913676738739014,
1.4456894397735596,
1.0095387697219849,
-0.6897470951080322,
-1.3347663879394531,
0.6301526427268982,
0.9861408472061157,
-1.399945855140686,
0.7606877088546753,
0.07340825349092484,
-0.5069618821144104,
0.6219931244850159,
1.3538295030593872,
0.513871967792511,
-2.0587117671966553,
0.6839922070503235,
-1.0292692184448242,
0.8486332297325134,
0.8228718638420105,
0.7529449462890625,
0.23043042421340942,
0.8124867677688599,
-1.1840845346450806,
-1.1205347776412964,
-0.6636657118797302,
-0.8191985487937927,
1.8603181838989258,
-0.34604132175445557,
0.5788071751594543,
-0.11757353693246841,
-1.4401644468307495,
-0.06123372167348862,
0.7117393612861633,
0.3162268400192261,
-0.4591793715953827,
0.7318491339683533,
-0.723072350025177,
-1.1513561010360718,
-1.3400641679763794,
-0.5612737536430359,
-1.0222140550613403,
-0.9926066398620605,
1.0016943216323853,
0.8769821524620056,
0.2582283020019531,
1.8931238651275635,
0.7297118902206421,
0.17063365876674652,
-2.576927661895752,
0.7906785011291504,
0.2328193336725235,
0.011588416993618011,
0.7910685539245605,
0.3880161941051483,
1.0418641567230225,
-0.033495694398880005,
0.5649276375770569,
-2.4252257347106934,
2.3601253032684326,
-0.2184687852859497,
0.6746147871017456,
-0.04507865756750107,
-0.15522225201129913,
1.0938764810562134,
0.5764983296394348,
0.5438551902770996,
-1.0401285886764526,
0.7181095480918884,
-0.6419363617897034,
1.3372067213058472,
0.8372244238853455,
-0.825575590133667,
-0.037414319813251495,
1.2860255241394043,
0.39394551515579224,
-0.6692375540733337,
-1.0241986513137817,
-1.088431477546692,
0.9444049596786499,
1.7325265407562256,
-0.03508403152227402,
-0.04015723243355751,
0.8326684236526489,
0.6860857009887695,
-1.2461581230163574,
0.0639248788356781,
-0.6837483048439026,
-0.7149200439453125,
1.7035115957260132,
2.00837779045105,
-0.21831895411014557,
-0.13790898025035858,
-0.7389513254165649,
-1.2369377613067627,
0.7165648341178894,
0.11546675860881805,
0.017082227393984795,
0.6968787312507629,
-0.558804988861084,
1.053045392036438,
0.8843522071838379,
0.8802241683006287,
0.18096426129341125,
0.2446518987417221,
0.3253105878829956,
-0.3628741204738617,
-1.2310433387756348,
-0.24580158293247223,
-1.121052622795105,
-2.6079676151275635,
0.4723423719406128,
-0.15075665712356567,
-1.3998944759368896,
0.07499578595161438,
-1.0202558040618896,
0.9097575545310974,
-0.5421881079673767,
-1.2427051067352295,
-1.406124234199524,
0.12753824889659882,
-0.10693706572055817,
0.8597132563591003,
-1.6374157667160034,
-0.0759945809841156,
1.3154960870742798,
0.9468028545379639,
-0.7519910931587219,
1.037895679473877,
0.2039182037115097,
1.0718976259231567,
0.8525416851043701,
-0.34810665249824524,
0.5542362928390503,
0.09782899171113968,
-1.3728747367858887,
0.5143862962722778,
1.1792885065078735,
0.13719592988491058,
1.490883708000183,
-0.5617631673812866,
-0.015199200250208378,
0.39834702014923096,
-0.4988979399204254,
-0.47269508242607117,
-0.7014949321746826,
0.6771931648254395,
-0.06938402354717255,
-0.8113756775856018,
0.1399458795785904,
0.040542274713516235,
-0.1936207115650177,
0.15789717435836792,
-1.5377038717269897,
-0.10607463866472244,
-0.34231168031692505,
-0.6541669964790344,
-1.2926238775253296,
-0.07111407816410065,
1.3812203407287598,
-0.6886317729949951,
-0.2221904844045639,
0.500426173210144,
0.30291950702667236,
0.46029382944107056,
0.6253837943077087,
-0.6590473651885986,
-0.33333319425582886,
-0.17623774707317352,
-0.3832029104232788,
0.4152272343635559,
1.3831350803375244,
-0.1273222267627716,
-1.017992377281189,
0.698310136795044,
-0.39094439148902893,
0.04926601052284241,
1.8685110807418823,
0.019247958436608315,
-0.8117377758026123,
0.24673990905284882,
-0.8242583274841309,
1.9709893465042114,
1.705989122390747,
1.2844741344451904,
-0.14394411444664001,
-1.0068227052688599,
0.7006330490112305,
-0.3727945387363434,
-0.3991475999355316,
0.8762125372886658,
0.370206743478775,
-0.3070039451122284,
-1.3100340366363525,
0.7337019443511963,
1.1871681213378906,
-0.8081902265548706,
-0.9268274307250977,
0.1473049819469452,
-0.7514109015464783,
1.071285605430603,
0.6476147174835205,
0.3660084903240204,
0.2802044749259949,
1.681045651435852,
0.8179775476455688,
-0.4470280706882477,
0.6367403268814087,
0.526726484298706,
-0.20077548921108246,
-2.102766752243042,
-1.209331750869751,
0.34362518787384033,
-0.6023011803627014,
-1.7075817584991455,
1.4369258880615234,
-1.1531926393508911,
-0.9492651224136353,
0.5523592233657837,
0.08939041197299957,
1.423833966255188,
0.3648546636104584,
1.5246834754943848,
1.960035800933838,
0.8060994744300842,
0.45167744159698486,
1.2286450862884521,
-0.28029996156692505,
-0.5426743626594543,
1.750396490097046,
-0.5608852505683899,
0.46062716841697693,
1.1695839166641235,
-0.29899993538856506,
-1.1080400943756104,
-0.7837512493133545,
-1.221508264541626,
-0.7583823204040527,
1.1829626560211182,
0.08556203544139862,
-1.130506992340088,
0.34313973784446716,
1.5306669473648071,
0.10452207922935486,
-0.23509401082992554,
0.6900013089179993,
0.37394851446151733,
-0.9078398942947388,
-0.0372689813375473,
-0.9312956929206848,
0.5190055966377258,
-0.2877582609653473,
-0.32316726446151733,
0.3301854729652405,
0.43695268034935,
1.3059980869293213,
0.039249107241630554,
0.17203912138938904,
1.2187639474868774,
-1.3769869804382324,
1.4771699905395508,
-0.7957467436790466,
0.3122316896915436,
-2.3354556560516357,
1.3324298858642578,
-0.7754404544830322,
1.960361123085022,
-2.660288095474243,
0.4175769090652466,
-0.627125084400177,
-0.4493630826473236,
0.316355437040329,
-0.29653698205947876,
0.04833108186721802,
-0.1583814024925232,
-1.1670225858688354,
-0.1109311580657959,
-0.7381372451782227,
0.5442379713058472,
1.1546359062194824,
1.3539060354232788,
-1.0741041898727417,
-0.25304239988327026,
-1.7799865007400513,
-0.12494807690382004,
-0.6435036063194275,
0.37486532330513,
-1.9577841758728027,
-0.1869852989912033,
-1.9806106090545654,
-2.3089027404785156,
-1.1839064359664917,
-0.780170738697052,
1.171022891998291,
0.09383954107761383,
-0.798841655254364,
1.1353000402450562,
-0.30374807119369507,
-1.773683786392212,
1.065924048423767,
-2.1067023277282715
] |
https://github.com/huggingface/datasets/issues/4637 | The "all" split breaks streaming | Hi @cakiki are you still interested in working on this? Are you planning to open a PR? | ## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 658 | 17 | The "all" split breaks streaming
## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi @cakiki are you still interested in working on this? Are you planning to open a PR? | [
-1.2256877422332764,
-0.9031363725662231,
-0.7310691475868225,
1.5971784591674805,
-0.1751181036233902,
-1.2354786396026611,
0.13083189725875854,
-0.9917768239974976,
1.7425559759140015,
-0.8083500266075134,
0.2890005111694336,
-1.6378141641616821,
0.04000888764858246,
-0.6634647250175476,
-0.7237760424613953,
-0.7840521335601807,
-0.3702399730682373,
-0.6516318917274475,
1.0783421993255615,
2.4231913089752197,
1.1442581415176392,
-1.4533400535583496,
2.650472640991211,
0.7002347111701965,
-0.14491631090641022,
-1.0225536823272705,
0.507287859916687,
-0.06145399063825607,
-1.3355796337127686,
-0.4348148703575134,
-0.8901451230049133,
-0.11850801855325699,
-0.583276093006134,
-0.5709229707717896,
0.03915783390402794,
0.4292774200439453,
-0.3051465153694153,
-0.502143383026123,
-0.3536711633205414,
-0.8229382634162903,
0.4576214849948883,
-0.3782691955566406,
0.8539560437202454,
-0.34993618726730347,
1.7655450105667114,
-0.5409819483757019,
0.512547492980957,
0.7370033264160156,
1.3658581972122192,
0.2174883484840393,
-0.07015502452850342,
0.4130352735519409,
0.3428713083267212,
0.004834143444895744,
0.5422494411468506,
1.0750398635864258,
0.6163066625595093,
0.43385639786720276,
0.7528673410415649,
-2.3473448753356934,
1.2361111640930176,
-1.0642259120941162,
0.2682391405105591,
1.3629024028778076,
-0.9652926921844482,
0.3456599712371826,
-1.841196060180664,
0.07681001722812653,
0.49987849593162537,
-2.187396287918091,
0.32604724168777466,
-1.2532846927642822,
-0.46484291553497314,
1.1241434812545776,
0.39032891392707825,
-1.2304521799087524,
0.041710563004016876,
-0.3164403438568115,
0.9464136362075806,
0.44927147030830383,
1.0420844554901123,
-1.731360673904419,
0.003735112026333809,
-0.2968953549861908,
0.19858843088150024,
-1.286102294921875,
-1.4822332859039307,
0.4765961170196533,
0.5912492871284485,
0.5708569288253784,
-0.14386239647865295,
0.9983236193656921,
-0.9806690216064453,
0.7195612788200378,
-1.0409281253814697,
-1.7952829599380493,
-1.3597753047943115,
-2.3236918449401855,
-2.270169734954834,
0.703048050403595,
-0.4271010756492615,
-0.44901955127716064,
2.0232629776000977,
-0.9985406994819641,
-1.779051661491394,
1.138178825378418,
0.29306119680404663,
-0.0041936286725103855,
2.3686745166778564,
0.20585468411445618,
-0.7597761750221252,
0.5222259163856506,
-0.8248546719551086,
0.5987544059753418,
-0.48837944865226746,
1.3196896314620972,
0.4052159786224365,
-1.0774649381637573,
1.6518224477767944,
-0.39306750893592834,
0.5935400128364563,
-0.7386242151260376,
-0.45714712142944336,
-0.6838880181312561,
0.3113750219345093,
1.999719500541687,
-0.24812860786914825,
1.4293197393417358,
-0.3164292871952057,
-1.4709060192108154,
-1.5354206562042236,
0.8934574127197266,
0.4071327745914459,
-0.6978469491004944,
0.24904917180538177,
-0.30343618988990784,
0.1546592116355896,
-0.12080699950456619,
1.1054071187973022,
1.2390286922454834,
0.7171058654785156,
-0.2512141168117523,
-0.9000119566917419,
0.26008424162864685,
-0.028478208929300308,
-0.6549975275993347,
-1.7471033334732056,
-0.3270348906517029,
0.0788269191980362,
0.7173140048980713,
-1.2266994714736938,
1.8058968782424927,
0.8592106103897095,
1.894802451133728,
1.0408926010131836,
-0.3701189160346985,
1.5372979640960693,
0.12520956993103027,
1.9319554567337036,
-0.4575842320919037,
0.6727394461631775,
-0.4487944543361664,
-1.151537299156189,
0.8285852074623108,
-0.2657736837863922,
-2.0147223472595215,
-0.6240231394767761,
-0.9133749604225159,
-0.2177163064479828,
-0.7633282542228699,
0.9576075673103333,
-0.3046770691871643,
-1.4218225479125977,
0.2687205970287323,
-0.7755526900291443,
0.17225824296474457,
-1.2548120021820068,
0.3128874599933624,
0.7674145698547363,
-0.5479850172996521,
0.19046644866466522,
-0.37818118929862976,
-1.318084716796875,
-0.5189797878265381,
0.4444844722747803,
1.8682771921157837,
-0.7266891598701477,
0.9231675863265991,
1.053937554359436,
-0.7267174124717712,
-0.14087539911270142,
0.40016359090805054,
-0.24861666560173035,
0.8480817079544067,
-1.0202038288116455,
-0.5731639266014099,
1.2057489156723022,
-0.1988847702741623,
-0.6867557764053345,
1.501287817955017,
0.7316569685935974,
-0.9961009621620178,
-0.15361157059669495,
-0.18216197192668915,
-0.8142905235290527,
0.05903016775846481,
-1.6979156732559204,
-0.03792260214686394,
0.40925517678260803,
-1.600368618965149,
-0.5095829367637634,
-0.15963593125343323,
1.2575432062149048,
-0.10520754009485245,
1.4489152431488037,
-0.3152438998222351,
-0.16953963041305542,
-0.3451216518878937,
-0.4537556767463684,
0.14510954916477203,
-0.22305577993392944,
-0.6681638956069946,
0.22432410717010498,
-0.7482170462608337,
0.37862756848335266,
1.427506923675537,
0.20723164081573486,
0.03044162690639496,
0.6549974083900452,
1.120374321937561,
0.3811972737312317,
-0.026078201830387115,
-0.8835784196853638,
-1.5858659744262695,
1.983957290649414,
-1.4847157001495361,
1.989841341972351,
0.6694005131721497,
-0.10347499698400497,
-1.7596327066421509,
-1.8656139373779297,
1.4372378587722778,
1.1312061548233032,
2.3055107593536377,
0.6720866560935974,
0.4736320376396179,
-0.9257100224494934,
-0.6895139217376709,
0.25100407004356384,
-0.9185965657234192,
-0.8281990885734558,
0.08718206733465195,
2.433053731918335,
1.7264418601989746,
-0.34404829144477844,
-0.1506231278181076,
-1.0259804725646973,
1.4720231294631958,
-0.19058841466903687,
0.28477686643600464,
1.9096369743347168,
-0.1733505129814148,
-1.046195387840271,
1.2676550149917603,
-2.3962621688842773,
0.2223934680223465,
2.022433280944824,
0.26918384432792664,
0.13943696022033691,
-1.310775637626648,
-0.6936784982681274,
-0.14774000644683838,
-0.386187881231308,
-1.2523019313812256,
0.46353888511657715,
-0.207345113158226,
-0.6914988160133362,
-1.3799619674682617,
0.2767859995365143,
-1.0398138761520386,
-1.6084568500518799,
0.1280624121427536,
1.818691372871399,
2.053727388381958,
-0.718601644039154,
1.6071290969848633,
-0.2414802461862564,
0.3364045023918152,
1.2749921083450317,
1.2100694179534912,
3.062840223312378,
1.9570962190628052,
-1.2673252820968628,
0.6937277317047119,
-0.0643046498298645,
-0.4684324264526367,
1.2163341045379639,
-1.201851487159729,
1.253578543663025,
-0.18592196702957153,
-1.1659599542617798,
-1.2203423976898193,
0.8185603022575378,
0.50023353099823,
0.046015575528144836,
-0.4359718859195709,
1.1377915143966675,
0.05712813138961792,
1.255328893661499,
0.5484179854393005,
-0.3376031219959259,
0.5924843549728394,
-0.42166948318481445,
-0.4769757091999054,
1.5568193197250366,
0.14688225090503693,
-1.3759690523147583,
-2.199065923690796,
-0.15824441611766815,
-0.9391002058982849,
0.053024910390377045,
-0.6453655958175659,
-0.9255430102348328,
1.5985926389694214,
0.4094862639904022,
-1.089646577835083,
-0.1677645593881607,
-0.3687545955181122,
-0.6200034618377686,
2.730367422103882,
-1.4244664907455444,
-0.35757169127464294,
-1.0732682943344116,
-0.6878800392150879,
1.674446940422058,
-1.2107982635498047,
-0.21930107474327087,
-1.0363134145736694,
-0.5210931301116943,
-1.3245822191238403,
-0.5279936790466309,
-0.06003142520785332,
-0.8632888197898865,
0.9284714460372925,
0.24707038700580597,
-1.3270745277404785,
-0.40386712551116943,
-0.9444226026535034,
0.8656461834907532,
-0.15466710925102234,
0.19960148632526398,
1.8036373853683472,
0.3571394979953766,
-0.36306798458099365,
0.7486937046051025,
1.144896149635315,
0.6493359804153442,
-0.5203068256378174,
0.37695109844207764,
-0.5512956380844116,
0.3603087067604065,
-1.2781903743743896,
0.28746354579925537,
-2.834601640701294,
0.626232385635376,
0.037413131445646286,
-0.04745487868785858,
-0.1124284565448761,
-1.3462637662887573,
1.056839108467102,
2.556635856628418,
-1.2282207012176514,
0.5392820835113525,
0.3179725110530853,
1.222032070159912,
-1.6073862314224243,
0.2354736328125,
-0.4724982976913452,
2.1429965496063232,
0.10598660260438919,
1.186231255531311,
-0.4606325030326843,
-2.4865734577178955,
0.5705868005752563,
-1.2643747329711914,
-1.1590641736984253,
0.7177750468254089,
-0.7706528902053833,
0.06794684380292892,
-1.3297021389007568,
-0.18867765367031097,
-0.8314727544784546,
-1.1873154640197754,
0.7931802868843079,
0.14730378985404968,
0.5042166113853455,
-0.6335767507553101,
0.36025986075401306,
-2.1689727306365967,
-1.3204227685928345,
-0.19201721251010895,
-0.9178086519241333,
0.45094582438468933,
-0.3306901454925537,
0.7938166856765747,
-0.16123677790164948,
-0.04748411104083061,
0.33823055028915405,
1.3878895044326782,
3.373013734817505,
0.13981075584888458,
0.4251050651073456,
-0.2066773921251297,
-0.9220060706138611,
1.470771312713623,
0.9821365475654602,
-0.1909242421388626,
-0.5250356197357178,
-1.100165605545044,
1.2773774862289429,
1.9307992458343506,
0.9522210955619812,
0.028596624732017517,
-0.7892727851867676,
-0.7244777083396912,
0.06424454599618912,
0.15344345569610596,
0.5274419784545898,
0.8637076020240784,
0.17573252320289612,
0.08633238077163696,
1.3739744424819946,
1.1339340209960938,
-0.4381811320781708,
0.33765971660614014,
-0.785908579826355,
-0.4007519483566284,
0.6038340926170349,
0.3667548596858978,
-0.027933970093727112,
0.22667129337787628,
-1.0268079042434692,
-0.1609613448381424,
-0.2856903672218323,
-0.8529457449913025,
-0.6978411674499512,
-0.43258583545684814,
-0.35317203402519226,
1.659618616104126,
0.06714202463626862,
-0.5341545939445496,
-0.04918961599469185,
-0.7840378880500793,
0.01699395850300789,
-1.042734980583191,
0.2086610645055771,
-0.18993665277957916,
-0.09226621687412262,
-0.17734529078006744,
1.7850711345672607,
-0.9327564239501953,
-2.1002919673919678,
0.1433793157339096,
0.29779016971588135,
-0.28883084654808044,
0.17375437915325165,
1.6746609210968018,
0.5438289046287537,
1.394677996635437,
1.4191412925720215,
1.0146725177764893,
-0.6944789886474609,
-1.3281850814819336,
0.5967786312103271,
1.0420804023742676,
-1.3632692098617554,
0.7526440620422363,
0.09645146876573563,
-0.5186707973480225,
0.5742416381835938,
1.3259332180023193,
0.4925732910633087,
-2.0002996921539307,
0.6729235649108887,
-1.0136950016021729,
0.8494918942451477,
0.7897055745124817,
0.7704746127128601,
0.2169773131608963,
0.7776807546615601,
-1.2269113063812256,
-1.1168404817581177,
-0.6707306504249573,
-0.7537505030632019,
1.8713414669036865,
-0.3074272871017456,
0.5186954736709595,
-0.12083810567855835,
-1.4564481973648071,
-0.03911115601658821,
0.6726321578025818,
0.312321275472641,
-0.45973867177963257,
0.7647263407707214,
-0.7260375618934631,
-1.1657062768936157,
-1.3796910047531128,
-0.581572413444519,
-0.983117401599884,
-0.9719018936157227,
1.024043321609497,
0.8777738809585571,
0.22661392390727997,
1.8728532791137695,
0.7227080464363098,
0.1318151205778122,
-2.5680410861968994,
0.8184230923652649,
0.2542684078216553,
-0.0031594010069966316,
0.7798055410385132,
0.3783494532108307,
1.051259160041809,
-0.05422259122133255,
0.5483938455581665,
-2.439866542816162,
2.3318400382995605,
-0.202394038438797,
0.7016123533248901,
-0.03617633134126663,
-0.12693829834461212,
1.0234169960021973,
0.5614649057388306,
0.5613032579421997,
-1.015051007270813,
0.6768093109130859,
-0.6737755537033081,
1.3760946989059448,
0.8709808588027954,
-0.85420161485672,
-0.06744670867919922,
1.230151891708374,
0.377197265625,
-0.6533960700035095,
-0.9962645769119263,
-1.0576585531234741,
0.9887959361076355,
1.7440507411956787,
-0.06968071311712265,
-0.004272006917744875,
0.8606821894645691,
0.6916757225990295,
-1.3068974018096924,
0.025601666420698166,
-0.6988986730575562,
-0.7225320935249329,
1.7027831077575684,
2.0325522422790527,
-0.22559578716754913,
-0.14790202677249908,
-0.7458800077438354,
-1.2479859590530396,
0.750607430934906,
0.08120100945234299,
0.042836643755435944,
0.7359645366668701,
-0.5561665296554565,
1.0796940326690674,
0.934472918510437,
0.8831700682640076,
0.22623169422149658,
0.22638872265815735,
0.29785817861557007,
-0.37306931614875793,
-1.214577078819275,
-0.22397102415561676,
-1.1167043447494507,
-2.6522700786590576,
0.4540749490261078,
-0.15590009093284607,
-1.3798986673355103,
0.08885564655065536,
-1.0287622213363647,
0.9157282114028931,
-0.537171483039856,
-1.2144172191619873,
-1.3556218147277832,
0.11494804918766022,
-0.11139387637376785,
0.8363749980926514,
-1.6497889757156372,
-0.05969434604048729,
1.3193590641021729,
1.0048869848251343,
-0.7353522181510925,
1.0374088287353516,
0.23280930519104004,
1.0708962678909302,
0.8911597728729248,
-0.31480881571769714,
0.5603932738304138,
0.11217401921749115,
-1.326013445854187,
0.5289403796195984,
1.1947150230407715,
0.20713375508785248,
1.4821925163269043,
-0.5832494497299194,
-0.05420510470867157,
0.33551448583602905,
-0.4603046476840973,
-0.47473254799842834,
-0.7678229212760925,
0.6502147316932678,
-0.060110632330179214,
-0.8347898721694946,
0.12059351056814194,
0.04269557446241379,
-0.1801687777042389,
0.14531074464321136,
-1.5445197820663452,
-0.06732308864593506,
-0.28256887197494507,
-0.6515383124351501,
-1.2429614067077637,
-0.0908864289522171,
1.369998574256897,
-0.7175447940826416,
-0.20635581016540527,
0.5384883880615234,
0.3058650493621826,
0.48170968890190125,
0.6355342268943787,
-0.6971821784973145,
-0.3663161098957062,
-0.16570346057415009,
-0.4006289839744568,
0.3858494162559509,
1.3929076194763184,
-0.11584561318159103,
-1.037445068359375,
0.6801208853721619,
-0.3771528899669647,
0.025090664625167847,
1.8302617073059082,
0.012659751810133457,
-0.8643440008163452,
0.24221496284008026,
-0.8007822632789612,
2.002983331680298,
1.7043006420135498,
1.2934943437576294,
-0.16547545790672302,
-1.003537893295288,
0.7006706595420837,
-0.38757601380348206,
-0.43048784136772156,
0.8883339166641235,
0.4079984128475189,
-0.29326963424682617,
-1.3386839628219604,
0.6974341869354248,
1.179067850112915,
-0.7874106764793396,
-0.9128175377845764,
0.1302797794342041,
-0.7787821292877197,
1.077128529548645,
0.7095897793769836,
0.3493201732635498,
0.29609063267707825,
1.7219213247299194,
0.8248843550682068,
-0.5440289974212646,
0.6078873872756958,
0.5350560545921326,
-0.17719896137714386,
-2.0559515953063965,
-1.2162199020385742,
0.3400980532169342,
-0.5776785016059875,
-1.6661179065704346,
1.426780104637146,
-1.152707815170288,
-0.9175494909286499,
0.5697805881500244,
0.12533323466777802,
1.415535807609558,
0.3673061430454254,
1.501640796661377,
1.9346699714660645,
0.8232216835021973,
0.40814849734306335,
1.2287384271621704,
-0.2938726842403412,
-0.4806520938873291,
1.7171326875686646,
-0.5384273529052734,
0.4858870208263397,
1.1613209247589111,
-0.2838344871997833,
-1.0936414003372192,
-0.7782132625579834,
-1.2858752012252808,
-0.7898756861686707,
1.1427961587905884,
0.08382921665906906,
-1.1477229595184326,
0.32597360014915466,
1.5593674182891846,
0.07435629516839981,
-0.265325129032135,
0.7034240961074829,
0.3656196892261505,
-0.9012154936790466,
-0.024397604167461395,
-0.9795721769332886,
0.4973001778125763,
-0.2630165219306946,
-0.3073326349258423,
0.30383816361427307,
0.4685579538345337,
1.3128821849822998,
0.058208055794239044,
0.18616804480552673,
1.242789387702942,
-1.3897508382797241,
1.4766993522644043,
-0.8701671361923218,
0.3278183341026306,
-2.3619329929351807,
1.331520676612854,
-0.8106637001037598,
1.9187722206115723,
-2.66121244430542,
0.44529059529304504,
-0.6215901374816895,
-0.43450507521629333,
0.28519582748413086,
-0.31957724690437317,
0.06819860637187958,
-0.12326376885175705,
-1.185311198234558,
-0.14482884109020233,
-0.7168412208557129,
0.5112748146057129,
1.1277949810028076,
1.3352323770523071,
-1.094394326210022,
-0.24954743683338165,
-1.7982852458953857,
-0.12174832820892334,
-0.6191367506980896,
0.37111592292785645,
-1.9481714963912964,
-0.21116594970226288,
-1.9352582693099976,
-2.3039002418518066,
-1.232948899269104,
-0.7524072527885437,
1.223512887954712,
0.07120630890130997,
-0.8454053997993469,
1.1298975944519043,
-0.31991061568260193,
-1.7694982290267944,
1.0482053756713867,
-2.1474645137786865
] |
https://github.com/huggingface/datasets/issues/4637 | The "all" split breaks streaming | Hi @albertvillanova ! Sorry it took so long; I wanted to spend this weekend working on it. | ## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
| 658 | 17 | The "all" split breaks streaming
## Describe the bug
Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"`
## Steps to reproduce the bug
The following works:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all')
```
The following throws `ValueError: Bad split: all. Available splits: ['train', 'validation', 'test']`:
```python
ds = load_dataset('super_glue', 'wsc.fixed', split='all', streaming=True)
```
## Expected results
An iterator over all splits.
## Actual results
I had to do the following to achieve the desired result:
```python
from itertools import chain
ds = load_dataset('super_glue', 'wsc.fixed', streaming=True)
it = chain.from_iterable(ds.values())
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.31
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.3
Hi @albertvillanova ! Sorry it took so long; I wanted to spend this weekend working on it. | [
-1.2325189113616943,
-0.9047781229019165,
-0.7190610766410828,
1.6079970598220825,
-0.16871678829193115,
-1.2219152450561523,
0.15141922235488892,
-0.9602866768836975,
1.7538856267929077,
-0.8033490180969238,
0.30031320452690125,
-1.63693106174469,
0.025891918689012527,
-0.6498616337776184,
-0.7325384020805359,
-0.7747323513031006,
-0.3789181411266327,
-0.6418936252593994,
1.0955392122268677,
2.4108057022094727,
1.154062271118164,
-1.4531230926513672,
2.660505533218384,
0.6674730777740479,
-0.11354032158851624,
-1.0403982400894165,
0.5176305174827576,
-0.046179480850696564,
-1.3555960655212402,
-0.44499269127845764,
-0.8747438192367554,
-0.12477701157331467,
-0.6026329398155212,
-0.5727344155311584,
0.046251941472291946,
0.4473629295825958,
-0.28784576058387756,
-0.5208759903907776,
-0.36759763956069946,
-0.8188149333000183,
0.4396747648715973,
-0.36393648386001587,
0.8443602919578552,
-0.3486641049385071,
1.7764713764190674,
-0.550170361995697,
0.4933196008205414,
0.7418639659881592,
1.390318512916565,
0.21444372832775116,
-0.08253003656864166,
0.41189971566200256,
0.36750340461730957,
0.023636087775230408,
0.5590886473655701,
1.061696171760559,
0.62583327293396,
0.4253239035606384,
0.7419824004173279,
-2.3438239097595215,
1.2450774908065796,
-1.0884665250778198,
0.2544913589954376,
1.3898543119430542,
-0.9751700758934021,
0.32548215985298157,
-1.849867820739746,
0.060397177934646606,
0.4776167869567871,
-2.1952664852142334,
0.2891972064971924,
-1.2435762882232666,
-0.4401569068431854,
1.128466010093689,
0.38227418065071106,
-1.2640180587768555,
0.0267401821911335,
-0.3047129809856415,
0.9347435235977173,
0.4425050914287567,
1.0670194625854492,
-1.73582923412323,
0.00030875392258167267,
-0.29745158553123474,
0.21509644389152527,
-1.2674436569213867,
-1.4734481573104858,
0.4714365303516388,
0.5986851453781128,
0.5789970755577087,
-0.13568329811096191,
0.9950371980667114,
-0.989963948726654,
0.737006425857544,
-1.0434104204177856,
-1.805533528327942,
-1.3759922981262207,
-2.3257906436920166,
-2.283128499984741,
0.7001710534095764,
-0.43304720520973206,
-0.43453189730644226,
2.0158228874206543,
-0.994347333908081,
-1.776793122291565,
1.12175714969635,
0.2901930510997772,
0.0015553971752524376,
2.3816654682159424,
0.19370771944522858,
-0.7554618716239929,
0.5116982460021973,
-0.830860435962677,
0.5993434190750122,
-0.46589401364326477,
1.332590103149414,
0.39941591024398804,
-1.0642338991165161,
1.6324824094772339,
-0.3685757517814636,
0.590423583984375,
-0.7381300926208496,
-0.4495576322078705,
-0.682499349117279,
0.2882806360721588,
2.007235050201416,
-0.23172003030776978,
1.4317467212677002,
-0.3232770264148712,
-1.4795427322387695,
-1.5147162675857544,
0.8898208141326904,
0.4008268713951111,
-0.7034940123558044,
0.2290291041135788,
-0.29527369141578674,
0.17035852372646332,
-0.10819429159164429,
1.0878021717071533,
1.2192189693450928,
0.7400176525115967,
-0.2660248577594757,
-0.8929398655891418,
0.24771733582019806,
-0.01046594325453043,
-0.6548259854316711,
-1.7500375509262085,
-0.3208158016204834,
0.0716223269701004,
0.737671971321106,
-1.2257587909698486,
1.8087458610534668,
0.8654592037200928,
1.8908578157424927,
1.0468809604644775,
-0.37018153071403503,
1.5314210653305054,
0.13467983901500702,
1.936106562614441,
-0.4730561375617981,
0.6452615261077881,
-0.4615669250488281,
-1.1517503261566162,
0.8284131288528442,
-0.26436150074005127,
-1.9998579025268555,
-0.6333121061325073,
-0.9120883941650391,
-0.22993174195289612,
-0.7534115314483643,
0.9657275080680847,
-0.2956604063510895,
-1.4461538791656494,
0.23876960575580597,
-0.7538067698478699,
0.17494985461235046,
-1.2722432613372803,
0.31243619322776794,
0.7636280655860901,
-0.5507119297981262,
0.212711364030838,
-0.40490174293518066,
-1.329822301864624,
-0.5187814235687256,
0.4494759142398834,
1.8716554641723633,
-0.7332218885421753,
0.9544854760169983,
1.0498191118240356,
-0.731682300567627,
-0.15498554706573486,
0.39665958285331726,
-0.24283209443092346,
0.8469808101654053,
-1.011389136314392,
-0.5663859248161316,
1.192445158958435,
-0.19097568094730377,
-0.6863127946853638,
1.5128389596939087,
0.7396584153175354,
-1.0012452602386475,
-0.16135823726654053,
-0.1657170206308365,
-0.8260067105293274,
0.0765657052397728,
-1.7212438583374023,
-0.033197566866874695,
0.42100635170936584,
-1.599932312965393,
-0.49289238452911377,
-0.14804892241954803,
1.2449095249176025,
-0.11132319271564484,
1.432273268699646,
-0.29818853735923767,
-0.15938936173915863,
-0.3469603955745697,
-0.43561413884162903,
0.13901561498641968,
-0.21301530301570892,
-0.6817919611930847,
0.24069027602672577,
-0.7558417916297913,
0.3775221109390259,
1.4513258934020996,
0.22901122272014618,
0.014134886674582958,
0.6416255235671997,
1.1347215175628662,
0.38769620656967163,
-0.0003636367619037628,
-0.8931612372398376,
-1.5888415575027466,
2.0086984634399414,
-1.4933561086654663,
1.9846735000610352,
0.6642370820045471,
-0.10309126228094101,
-1.7450908422470093,
-1.85685133934021,
1.461114525794983,
1.1291685104370117,
2.3159403800964355,
0.6832918524742126,
0.46512988209724426,
-0.9137973189353943,
-0.6624726057052612,
0.23434945940971375,
-0.9137109518051147,
-0.8320786356925964,
0.11688747256994247,
2.425441265106201,
1.7092841863632202,
-0.36551418900489807,
-0.14300988614559174,
-1.0253342390060425,
1.4681450128555298,
-0.19733169674873352,
0.30134162306785583,
1.901503086090088,
-0.16569232940673828,
-1.0250482559204102,
1.2460005283355713,
-2.3736953735351562,
0.2560439705848694,
2.032627582550049,
0.2958068549633026,
0.13443446159362793,
-1.334604024887085,
-0.6951475739479065,
-0.15494848787784576,
-0.3811066448688507,
-1.253394603729248,
0.4736093282699585,
-0.20549407601356506,
-0.6865290403366089,
-1.3787397146224976,
0.2827499508857727,
-1.041305422782898,
-1.6246960163116455,
0.1298448145389557,
1.8214342594146729,
2.0385754108428955,
-0.6971718668937683,
1.574891209602356,
-0.2503628432750702,
0.3263639509677887,
1.2786765098571777,
1.1825624704360962,
3.0529723167419434,
1.940970778465271,
-1.247987985610962,
0.6990742087364197,
-0.059040334075689316,
-0.46823951601982117,
1.220089077949524,
-1.1983180046081543,
1.249078631401062,
-0.18349234759807587,
-1.1561442613601685,
-1.225110411643982,
0.8192945122718811,
0.4739995002746582,
0.03297622501850128,
-0.43137669563293457,
1.1420047283172607,
0.06477900594472885,
1.2338541746139526,
0.5437710285186768,
-0.31683918833732605,
0.6112485527992249,
-0.4295309782028198,
-0.4876551926136017,
1.5493932962417603,
0.1308830827474594,
-1.393566608428955,
-2.2137832641601562,
-0.13538376986980438,
-0.9223699569702148,
0.06958156079053879,
-0.6330846548080444,
-0.9243345260620117,
1.6029964685440063,
0.422355979681015,
-1.0939905643463135,
-0.166834756731987,
-0.3854570984840393,
-0.6403301358222961,
2.7465083599090576,
-1.3942863941192627,
-0.35836708545684814,
-1.0745089054107666,
-0.6983094811439514,
1.683834433555603,
-1.1984047889709473,
-0.20963497459888458,
-1.0408047437667847,
-0.5147598385810852,
-1.3341675996780396,
-0.5358157753944397,
-0.03197087347507477,
-0.8520150184631348,
0.906508207321167,
0.2511891722679138,
-1.3302842378616333,
-0.4065568149089813,
-0.9465343952178955,
0.8661262392997742,
-0.15727978944778442,
0.20229478180408478,
1.8116124868392944,
0.35806363821029663,
-0.3592163324356079,
0.7579647898674011,
1.1298611164093018,
0.647471010684967,
-0.5138920545578003,
0.37766262888908386,
-0.5413929224014282,
0.3350212275981903,
-1.2628166675567627,
0.28852561116218567,
-2.8212008476257324,
0.6110211610794067,
0.04264529421925545,
-0.03934027627110481,
-0.12528926134109497,
-1.3420372009277344,
1.07692289352417,
2.528196096420288,
-1.222236156463623,
0.5505198240280151,
0.3325574994087219,
1.2338942289352417,
-1.5908591747283936,
0.2584782540798187,
-0.4812755286693573,
2.1557044982910156,
0.13279055058956146,
1.1603211164474487,
-0.48615899682044983,
-2.483365058898926,
0.5774738788604736,
-1.2770627737045288,
-1.1687628030776978,
0.712185263633728,
-0.7778567671775818,
0.06991665065288544,
-1.3259857892990112,
-0.19714221358299255,
-0.8454712629318237,
-1.1838200092315674,
0.7862639427185059,
0.14139007031917572,
0.47880056500434875,
-0.6291784644126892,
0.3744834363460541,
-2.1762402057647705,
-1.3190395832061768,
-0.1926255226135254,
-0.9288925528526306,
0.45275434851646423,
-0.35059723258018494,
0.7924284338951111,
-0.16530077159404755,
-0.05874843895435333,
0.3340374529361725,
1.3900799751281738,
3.3840811252593994,
0.14419175684452057,
0.43878766894340515,
-0.225143164396286,
-0.9222348928451538,
1.4917433261871338,
0.972214937210083,
-0.2036099135875702,
-0.5126004815101624,
-1.104079246520996,
1.2781850099563599,
1.931977391242981,
0.9715156555175781,
0.003854328766465187,
-0.7791910767555237,
-0.740696907043457,
0.06262822449207306,
0.12802812457084656,
0.5207530856132507,
0.8493499755859375,
0.16857987642288208,
0.07696022838354111,
1.3657485246658325,
1.1338425874710083,
-0.44979867339134216,
0.3357287645339966,
-0.79707932472229,
-0.38221076130867004,
0.6176249980926514,
0.3606337606906891,
-0.05052616074681282,
0.2480134516954422,
-1.0185270309448242,
-0.158393993973732,
-0.2737334966659546,
-0.8625792264938354,
-0.6809960007667542,
-0.42679259181022644,
-0.35081371665000916,
1.6713892221450806,
0.06725792586803436,
-0.5485791563987732,
-0.03422370180487633,
-0.7927217483520508,
0.02857566624879837,
-1.0477166175842285,
0.22207044064998627,
-0.20052571594715118,
-0.08528339117765427,
-0.1791647970676422,
1.806064248085022,
-0.9492542743682861,
-2.1014928817749023,
0.14448051154613495,
0.30569493770599365,
-0.28347793221473694,
0.16891346871852875,
1.6472790241241455,
0.5407273173332214,
1.3776830434799194,
1.4456654787063599,
1.004166841506958,
-0.6795021891593933,
-1.3453282117843628,
0.5935961604118347,
1.027637004852295,
-1.3762967586517334,
0.7678492069244385,
0.08663370460271835,
-0.5130834579467773,
0.574065089225769,
1.3452106714248657,
0.4845074713230133,
-2.0097458362579346,
0.666129469871521,
-0.9825764894485474,
0.8402116894721985,
0.7908221483230591,
0.7664002776145935,
0.23355811834335327,
0.7758293747901917,
-1.2155274152755737,
-1.1259052753448486,
-0.6851262450218201,
-0.7446325421333313,
1.8753877878189087,
-0.2782035768032074,
0.5139192938804626,
-0.10792075842618942,
-1.447439193725586,
-0.03973694518208504,
0.6513801217079163,
0.3084147572517395,
-0.45927906036376953,
0.7674117088317871,
-0.7211936116218567,
-1.1898173093795776,
-1.3794522285461426,
-0.5954726934432983,
-0.9820876121520996,
-0.969129204750061,
1.0257598161697388,
0.8832722306251526,
0.23976710438728333,
1.8646118640899658,
0.7156736850738525,
0.12692922353744507,
-2.5764894485473633,
0.8193955421447754,
0.26330292224884033,
0.019621938467025757,
0.7612773180007935,
0.3868893086910248,
1.0548487901687622,
-0.0640534833073616,
0.5653596520423889,
-2.444037437438965,
2.343783140182495,
-0.2249048352241516,
0.7084143161773682,
-0.017103999853134155,
-0.14821197092533112,
1.021069884300232,
0.5833974480628967,
0.5555217266082764,
-1.0329707860946655,
0.6807029247283936,
-0.6907002329826355,
1.3807225227355957,
0.8499416708946228,
-0.845704972743988,
-0.06858118623495102,
1.2365548610687256,
0.3796476125717163,
-0.636819064617157,
-1.022028923034668,
-1.0393515825271606,
1.0018454790115356,
1.7236899137496948,
-0.06184994429349899,
-0.012518427334725857,
0.8655164837837219,
0.678613543510437,
-1.2994585037231445,
0.03124498575925827,
-0.6852307319641113,
-0.7358245253562927,
1.7212859392166138,
2.0506083965301514,
-0.21840794384479523,
-0.16395027935504913,
-0.7481279969215393,
-1.2398372888565063,
0.7332600951194763,
0.08445145934820175,
0.051588673144578934,
0.7171908020973206,
-0.5428018569946289,
1.0787874460220337,
0.9355320930480957,
0.8983665704727173,
0.20294605195522308,
0.23884671926498413,
0.28073132038116455,
-0.3645855188369751,
-1.2284393310546875,
-0.2304881364107132,
-1.1301651000976562,
-2.652790069580078,
0.44936129450798035,
-0.16325688362121582,
-1.3787013292312622,
0.1274711936712265,
-1.0264149904251099,
0.900568962097168,
-0.5352794528007507,
-1.2164195775985718,
-1.342492699623108,
0.11400088667869568,
-0.11177624762058258,
0.8268762230873108,
-1.6698088645935059,
-0.05930129438638687,
1.3236417770385742,
0.9982411861419678,
-0.7324230670928955,
1.040569543838501,
0.22547553479671478,
1.0737913846969604,
0.889007568359375,
-0.3177594542503357,
0.5523740649223328,
0.14018666744232178,
-1.3240255117416382,
0.5131396055221558,
1.1766499280929565,
0.21433641016483307,
1.4836095571517944,
-0.5758599638938904,
-0.016176799312233925,
0.337266743183136,
-0.4749998450279236,
-0.485012412071228,
-0.7631507515907288,
0.6623955368995667,
-0.060607463121414185,
-0.8342142701148987,
0.1338309943675995,
0.03234368562698364,
-0.15829788148403168,
0.1443033069372177,
-1.555058240890503,
-0.07645467668771744,
-0.28784534335136414,
-0.673480212688446,
-1.2537983655929565,
-0.11129072308540344,
1.3556066751480103,
-0.7133192420005798,
-0.21083079278469086,
0.5297949314117432,
0.2809489369392395,
0.45894092321395874,
0.6337552666664124,
-0.6828641891479492,
-0.3718571364879608,
-0.15912505984306335,
-0.40149110555648804,
0.3898158371448517,
1.3871655464172363,
-0.11910147219896317,
-1.0267629623413086,
0.6671469807624817,
-0.3651842176914215,
0.039834585040807724,
1.8449584245681763,
-0.007741404231637716,
-0.854028046131134,
0.24571086466312408,
-0.7890572547912598,
2.004791259765625,
1.6925204992294312,
1.3001867532730103,
-0.1655128300189972,
-1.0133867263793945,
0.6908019185066223,
-0.38254520297050476,
-0.4544380307197571,
0.873052179813385,
0.40004199743270874,
-0.27233248949050903,
-1.3368090391159058,
0.6801480054855347,
1.1931527853012085,
-0.7664167881011963,
-0.9063729047775269,
0.12052176147699356,
-0.7859600782394409,
1.065744400024414,
0.6934555172920227,
0.3363765478134155,
0.28700289130210876,
1.7022716999053955,
0.8276078104972839,
-0.5357204675674438,
0.6154802441596985,
0.5286866426467896,
-0.17683756351470947,
-2.068923234939575,
-1.2039247751235962,
0.3343161642551422,
-0.5870253443717957,
-1.67576265335083,
1.4255033731460571,
-1.1460832357406616,
-0.8924993276596069,
0.5740141272544861,
0.12807197868824005,
1.4226757287979126,
0.3734901547431946,
1.495165467262268,
1.9278000593185425,
0.8159786462783813,
0.40058404207229614,
1.2115648984909058,
-0.2733987271785736,
-0.5044844150543213,
1.731117844581604,
-0.5292766690254211,
0.4933062493801117,
1.1473721265792847,
-0.2902739346027374,
-1.0945295095443726,
-0.8026198148727417,
-1.2978510856628418,
-0.7794427275657654,
1.1479235887527466,
0.08793807774782181,
-1.1637325286865234,
0.3175189197063446,
1.556272029876709,
0.07550343126058578,
-0.2657570540904999,
0.7139249444007874,
0.3557893931865692,
-0.9028527140617371,
-0.03126515448093414,
-0.9739532470703125,
0.49980399012565613,
-0.26799798011779785,
-0.31193652749061584,
0.2928480803966522,
0.47366759181022644,
1.3190242052078247,
0.06636159867048264,
0.18541672825813293,
1.2485687732696533,
-1.366321086883545,
1.4539271593093872,
-0.8778760433197021,
0.32505548000335693,
-2.3504719734191895,
1.3414692878723145,
-0.8202890157699585,
1.9136546850204468,
-2.663790702819824,
0.4300785958766937,
-0.6232646703720093,
-0.4325007200241089,
0.2753019332885742,
-0.3155328929424286,
0.06400710344314575,
-0.11383490264415741,
-1.186667799949646,
-0.1477571278810501,
-0.7296758890151978,
0.4992934763431549,
1.1337207555770874,
1.3490325212478638,
-1.068784236907959,
-0.25375497341156006,
-1.817137598991394,
-0.1256416290998459,
-0.5950857400894165,
0.37008029222488403,
-1.9304622411727905,
-0.19634750485420227,
-1.9454809427261353,
-2.302783727645874,
-1.2243225574493408,
-0.7626921534538269,
1.2100149393081665,
0.06847763061523438,
-0.8234266042709351,
1.1322239637374878,
-0.30158621072769165,
-1.7452495098114014,
1.0243172645568848,
-2.168724298477173
] |
https://github.com/huggingface/datasets/issues/4635 | Dataset Viewer issue for vadis/sv-ident | Thanks for reporting, @e-tornike
Some context:
- #4527
The dataset loads locally in streaming mode:
```python
In [2]: from datasets import load_dataset; ds = load_dataset("vadis/sv-ident", split="validation", streaming=True); item = next(iter(ds)); item
Using custom data configuration default
Out[2]:
{'sentence': 'Im Falle von Umweltbelastungen kann selten eindeutig entschieden werden, ob Unbedenklichkeitswerte bereits erreicht oder überschritten sind, die die menschliche Gesundheit oder andere Wohlfahrts»güter« beeinträchtigen.',
'is_variable': 0,
'variable': [],
'research_data': [],
'doc_id': '51971',
'uuid': 'ee3d7f88-1a3e-4a59-997f-e986b544a604',
'lang': 'de'}
``` | ### Link
https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation
### Description
Error message when loading validation split in the viewer:
```
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
```
### Owner
_No response_ | 659 | 75 | Dataset Viewer issue for vadis/sv-ident
### Link
https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation
### Description
Error message when loading validation split in the viewer:
```
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
```
### Owner
_No response_
Thanks for reporting, @e-tornike
Some context:
- #4527
The dataset loads locally in streaming mode:
```python
In [2]: from datasets import load_dataset; ds = load_dataset("vadis/sv-ident", split="validation", streaming=True); item = next(iter(ds)); item
Using custom data configuration default
Out[2]:
{'sentence': 'Im Falle von Umweltbelastungen kann selten eindeutig entschieden werden, ob Unbedenklichkeitswerte bereits erreicht oder überschritten sind, die die menschliche Gesundheit oder andere Wohlfahrts»güter« beeinträchtigen.',
'is_variable': 0,
'variable': [],
'research_data': [],
'doc_id': '51971',
'uuid': 'ee3d7f88-1a3e-4a59-997f-e986b544a604',
'lang': 'de'}
``` | [
-1.2033027410507202,
-0.8910842537879944,
-0.8271589875221252,
1.6280033588409424,
-0.14894527196884155,
-1.1859211921691895,
0.04719863086938858,
-0.9638683795928955,
1.6325236558914185,
-0.7260369062423706,
0.25501230359077454,
-1.6626276969909668,
-0.09285788983106613,
-0.7315913438796997,
-0.7425122261047363,
-0.8658379912376404,
-0.30354127287864685,
-0.8090024590492249,
1.1230899095535278,
2.521740436553955,
1.2054781913757324,
-1.5281426906585693,
2.7196574211120605,
0.7226645946502686,
-0.17527645826339722,
-1.093612551689148,
0.5767064690589905,
-0.03598522022366524,
-1.1805773973464966,
-0.4476051330566406,
-0.9176878333091736,
-0.07309670746326447,
-0.5687310695648193,
-0.43223875761032104,
0.015776406973600388,
0.47856831550598145,
-0.22820083796977997,
-0.4898526966571808,
-0.4649897515773773,
-0.8153735995292664,
0.44002440571784973,
-0.41171184182167053,
0.8606038093566895,
-0.24318081140518188,
1.8199602365493774,
-0.5623250603675842,
0.32292258739471436,
0.6449078321456909,
1.3592782020568848,
0.2080673724412918,
-0.0036263810470700264,
0.40248534083366394,
0.2820824086666107,
-0.04124953970313072,
0.564059317111969,
1.1647759675979614,
0.720938503742218,
0.4397778809070587,
0.7582371234893799,
-2.2793235778808594,
1.186108946800232,
-1.104400396347046,
0.2914585471153259,
1.3693840503692627,
-1.0254522562026978,
0.4488549530506134,
-1.8482424020767212,
0.02025040239095688,
0.653480589389801,
-2.1635584831237793,
0.4126192033290863,
-1.1557451486587524,
-0.48786696791648865,
0.9218262434005737,
0.32331332564353943,
-1.2576690912246704,
0.10334289073944092,
-0.4110957682132721,
1.076021671295166,
0.41102081537246704,
1.0645989179611206,
-1.7286463975906372,
0.09592027217149734,
-0.30412670969963074,
0.11646360903978348,
-1.3411227464675903,
-1.5423705577850342,
0.49608686566352844,
0.6795142292976379,
0.7073448300361633,
-0.11792095750570297,
0.9660710692405701,
-1.0070462226867676,
0.7849389910697937,
-1.0469366312026978,
-1.663076639175415,
-1.3761258125305176,
-2.3288321495056152,
-2.1945085525512695,
0.7716875076293945,
-0.4499429762363434,
-0.5804721713066101,
2.051124095916748,
-0.9098387360572815,
-1.7635160684585571,
1.162834644317627,
0.35063958168029785,
0.0139894625172019,
2.469815492630005,
0.21451298892498016,
-0.8746017217636108,
0.4907499849796295,
-0.8709608316421509,
0.8001459240913391,
-0.48855406045913696,
1.4656847715377808,
0.46168044209480286,
-0.9435856342315674,
1.6619168519973755,
-0.41314461827278137,
0.5990954041481018,
-0.7360982298851013,
-0.5863437056541443,
-0.7787560820579529,
0.31007319688796997,
2.006758451461792,
-0.2653416693210602,
1.5280081033706665,
-0.3256256878376007,
-1.5597152709960938,
-1.4222023487091064,
0.9419869780540466,
0.4458208680152893,
-0.8816908597946167,
0.19927699863910675,
-0.35187217593193054,
0.19228024780750275,
-0.17565743625164032,
1.0508073568344116,
1.2403901815414429,
0.6045615673065186,
-0.2919865846633911,
-0.9304695725440979,
0.17868036031723022,
-0.17603233456611633,
-0.705185055732727,
-1.7810567617416382,
-0.2805252969264984,
0.0742814689874649,
0.65567946434021,
-1.3408066034317017,
1.7270877361297607,
0.8361454606056213,
1.9341992139816284,
0.9735206365585327,
-0.37889906764030457,
1.5246291160583496,
0.03436075896024704,
1.846819281578064,
-0.5351055264472961,
0.6646815538406372,
-0.3626633286476135,
-1.208922028541565,
0.8842865228652954,
-0.3563225269317627,
-2.0251941680908203,
-0.7086076140403748,
-0.8783162832260132,
-0.1655951291322708,
-0.7850106954574585,
0.9298222064971924,
-0.33557090163230896,
-1.4561307430267334,
0.23467302322387695,
-0.7688814997673035,
0.293557733297348,
-1.275495171546936,
0.25266262888908386,
0.7049575448036194,
-0.5124168395996094,
0.0659947618842125,
-0.29549428820610046,
-1.3059343099594116,
-0.471350759267807,
0.41798850893974304,
1.9225022792816162,
-0.7625584006309509,
0.8476976752281189,
1.0448168516159058,
-0.6864813566207886,
-0.01903872936964035,
0.31479454040527344,
-0.2977350354194641,
0.9145687222480774,
-1.0494334697723389,
-0.5816627740859985,
1.171947956085205,
-0.1468067318201065,
-0.6210566759109497,
1.4253894090652466,
0.7856624722480774,
-1.0260472297668457,
-0.30746886134147644,
-0.1393776535987854,
-0.8485857844352722,
-0.012615589424967766,
-1.674635410308838,
-0.13920627534389496,
0.364545077085495,
-1.524796724319458,
-0.47939547896385193,
-0.22354520857334137,
1.329453706741333,
-0.17031808197498322,
1.4538841247558594,
-0.33585166931152344,
-0.15590207278728485,
-0.24032951891422272,
-0.44939085841178894,
0.18344125151634216,
-0.2265196293592453,
-0.5987675189971924,
0.16330073773860931,
-0.7233449816703796,
0.24558518826961517,
1.4307836294174194,
0.328544557094574,
0.0448785163462162,
0.5554206371307373,
1.142006754875183,
0.3564261794090271,
0.07556776702404022,
-0.8448197841644287,
-1.5279192924499512,
1.9346648454666138,
-1.5154856443405151,
1.9944665431976318,
0.7731279134750366,
0.06396295130252838,
-1.7699148654937744,
-1.8911781311035156,
1.423196792602539,
1.2155487537384033,
2.3032755851745605,
0.6572783589363098,
0.38677456974983215,
-0.9069955945014954,
-0.6744607090950012,
0.1709403097629547,
-0.9472495913505554,
-0.7575471997261047,
0.2226412296295166,
2.4658565521240234,
1.7172012329101562,
-0.4297531545162201,
-0.16963307559490204,
-0.9099979996681213,
1.38118577003479,
-0.22843323647975922,
0.25670334696769714,
1.9676287174224854,
-0.1411830484867096,
-1.0776933431625366,
1.1691848039627075,
-2.493093252182007,
0.13788509368896484,
2.0106489658355713,
0.3609484136104584,
0.15177039802074432,
-1.3398187160491943,
-0.7113430500030518,
-0.1886109858751297,
-0.38933101296424866,
-1.1213808059692383,
0.4837982654571533,
-0.2800253629684448,
-0.7735354900360107,
-1.4310193061828613,
0.16591201722621918,
-1.0954687595367432,
-1.592727541923523,
0.25289973616600037,
1.8574312925338745,
2.095555305480957,
-0.8828820586204529,
1.6080065965652466,
-0.2747015357017517,
0.25926217436790466,
1.233116865158081,
1.2408368587493896,
3.0419881343841553,
1.8281995058059692,
-1.2345606088638306,
0.6952787041664124,
-0.11109784990549088,
-0.5084229111671448,
1.1757923364639282,
-1.1895619630813599,
1.1463665962219238,
-0.24830400943756104,
-1.1228307485580444,
-1.2795395851135254,
0.8637985587120056,
0.4838618338108063,
0.04251015931367874,
-0.5129678845405579,
1.1843876838684082,
0.02933667227625847,
1.2893447875976562,
0.5977575182914734,
-0.30837514996528625,
0.471841961145401,
-0.392320841550827,
-0.5496766567230225,
1.568771243095398,
0.10434769839048386,
-1.425959825515747,
-2.274670362472534,
-0.20520982146263123,
-0.835403561592102,
0.02202097326517105,
-0.6827787756919861,
-1.03889000415802,
1.5861427783966064,
0.3010888695716858,
-1.1376086473464966,
-0.2497476041316986,
-0.3440040946006775,
-0.5666390061378479,
2.751084089279175,
-1.4282276630401611,
-0.3422093391418457,
-0.9540796875953674,
-0.6346114277839661,
1.6396559476852417,
-1.07473623752594,
-0.21552357077598572,
-1.0494126081466675,
-0.5899059176445007,
-1.2958004474639893,
-0.5342299938201904,
-0.058573104441165924,
-0.9235267043113708,
0.8119093775749207,
0.22275294363498688,
-1.2133809328079224,
-0.2842767536640167,
-0.8865638375282288,
0.9435120820999146,
-0.21171723306179047,
0.2864983081817627,
1.9073048830032349,
0.38036099076271057,
-0.3243481516838074,
0.8575788736343384,
1.186458945274353,
0.6742931008338928,
-0.6119985580444336,
0.1936987340450287,
-0.5368444919586182,
0.2881724536418915,
-1.3646808862686157,
0.20357783138751984,
-2.8637712001800537,
0.5469430088996887,
0.09146375209093094,
-0.045059945434331894,
-0.0008218316361308098,
-1.349621295928955,
1.1327471733093262,
2.580280065536499,
-1.1923168897628784,
0.48366591334342957,
0.34981676936149597,
1.314551830291748,
-1.7465271949768066,
0.20068678259849548,
-0.40636539459228516,
2.1705853939056396,
0.06494493782520294,
1.2303435802459717,
-0.47584161162376404,
-2.4301986694335938,
0.48386356234550476,
-1.38652503490448,
-1.0730271339416504,
0.6852894425392151,
-0.8926731944084167,
0.2134844809770584,
-1.508273720741272,
-0.22938737273216248,
-0.9542432427406311,
-1.195147156715393,
0.7803820371627808,
0.12067539244890213,
0.3402712941169739,
-0.5667672157287598,
0.4038981795310974,
-2.1709558963775635,
-1.4515244960784912,
-0.20588724315166473,
-0.9151425361633301,
0.5002269744873047,
-0.4016357362270355,
0.7283276319503784,
-0.16319900751113892,
0.019889388233423233,
0.2863786816596985,
1.4616937637329102,
3.40690016746521,
0.24990229308605194,
0.39830610156059265,
-0.1256546825170517,
-0.9390190839767456,
1.4848039150238037,
0.8786574006080627,
-0.14482159912586212,
-0.5676094889640808,
-0.9909324049949646,
1.3703361749649048,
1.976786494255066,
1.0191526412963867,
-0.02458040416240692,
-0.7271332144737244,
-0.676102340221405,
0.007261709310114384,
0.23879529535770416,
0.45355069637298584,
0.7616679072380066,
-0.04646268114447594,
0.08415678888559341,
1.2639268636703491,
1.1151409149169922,
-0.4416131377220154,
0.4061093032360077,
-0.9161702394485474,
-0.414184033870697,
0.5461017489433289,
0.19949881732463837,
-0.0501735657453537,
0.4025575816631317,
-1.0227991342544556,
-0.25926363468170166,
-0.25254857540130615,
-0.8309271931648254,
-0.6453707218170166,
-0.4615820348262787,
-0.32643842697143555,
1.5908795595169067,
0.16814129054546356,
-0.5043984055519104,
-0.05083555728197098,
-0.7142322063446045,
-0.056040968745946884,
-1.1397054195404053,
0.09939063340425491,
-0.14880387485027313,
-0.09866570681333542,
-0.17843356728553772,
1.805936336517334,
-0.9421688318252563,
-2.0726397037506104,
0.14751669764518738,
0.3617619276046753,
-0.24547478556632996,
0.14223453402519226,
1.7990224361419678,
0.506992518901825,
1.4229685068130493,
1.3780028820037842,
1.0272514820098877,
-0.7057209610939026,
-1.2721903324127197,
0.623677670955658,
1.087539553642273,
-1.2938960790634155,
0.9038711190223694,
-0.08830522745847702,
-0.5061503648757935,
0.51701819896698,
1.437703251838684,
0.48485976457595825,
-1.9841560125350952,
0.7286694645881653,
-0.9343645572662354,
0.9159312844276428,
0.7064233422279358,
0.7674561738967896,
0.23387949168682098,
0.808600127696991,
-1.2520262002944946,
-1.0757043361663818,
-0.8515180349349976,
-0.6956647634506226,
1.9047372341156006,
-0.23782916367053986,
0.5644522905349731,
-0.0858725756406784,
-1.3346128463745117,
-0.03757336735725403,
0.7021841406822205,
0.3879754841327667,
-0.36418527364730835,
0.8202188611030579,
-0.7277703881263733,
-1.1372967958450317,
-1.309831142425537,
-0.42739084362983704,
-0.9129886627197266,
-0.9297212958335876,
1.0271334648132324,
0.8302231431007385,
0.2818593680858612,
1.8978912830352783,
0.722848117351532,
0.16873089969158173,
-2.5071499347686768,
0.9265156984329224,
0.29788970947265625,
-0.09122243523597717,
0.812902569770813,
0.321301132440567,
1.0966501235961914,
0.061934057623147964,
0.545366644859314,
-2.367947816848755,
2.1551570892333984,
-0.21951156854629517,
0.725386917591095,
-0.014923712238669395,
-0.13696253299713135,
1.0268723964691162,
0.4876764118671417,
0.509549617767334,
-1.0374380350112915,
0.6598184108734131,
-0.5701130032539368,
1.2383636236190796,
0.9753327965736389,
-0.7788048982620239,
0.04743123799562454,
1.2986252307891846,
0.35848236083984375,
-0.6722338199615479,
-1.005126714706421,
-0.8187550902366638,
0.9070947170257568,
1.6241854429244995,
-0.007626517675817013,
0.00586650799959898,
0.8986595273017883,
0.6031693816184998,
-1.2627265453338623,
0.07649199664592743,
-0.6644274592399597,
-0.7298959493637085,
1.7855823040008545,
2.071197509765625,
-0.19554325938224792,
-0.15368808805942535,
-0.7489474415779114,
-1.3059008121490479,
0.7883490920066833,
-0.15047016739845276,
0.07440701872110367,
0.7146561741828918,
-0.5663577914237976,
1.0743577480316162,
0.7724342942237854,
0.8439903855323792,
0.09153030812740326,
0.21149039268493652,
0.44600799679756165,
-0.33682897686958313,
-1.0932375192642212,
-0.253426730632782,
-1.1606677770614624,
-2.522031784057617,
0.45963749289512634,
-0.15390194952487946,
-1.3712159395217896,
0.06428354978561401,
-0.9993954300880432,
1.052661657333374,
-0.6311408281326294,
-1.1148031949996948,
-1.4332191944122314,
0.28173333406448364,
-0.06458071619272232,
0.819401741027832,
-1.6145044565200806,
-0.09228388220071793,
1.21816885471344,
0.8927369713783264,
-0.7075966000556946,
1.02805495262146,
0.2406700700521469,
1.1485146284103394,
0.8261998891830444,
-0.29394257068634033,
0.5821388363838196,
0.03003080189228058,
-1.3154757022857666,
0.5295562148094177,
1.1795655488967896,
0.12984897196292877,
1.3998931646347046,
-0.43383046984672546,
-0.10180444270372391,
0.459549218416214,
-0.571218729019165,
-0.5049250721931458,
-0.6443992257118225,
0.668342649936676,
0.11061056703329086,
-0.886674702167511,
-0.060249123722314835,
-0.007664443459361792,
-0.2155490219593048,
0.23969407379627228,
-1.6147159337997437,
-0.1585499346256256,
-0.37031832337379456,
-0.5301476716995239,
-1.2987326383590698,
-0.033385489135980606,
1.3656891584396362,
-0.7162174582481384,
-0.23039110004901886,
0.5614487528800964,
0.30166783928871155,
0.43922749161720276,
0.6385610699653625,
-0.6377173066139221,
-0.29486364126205444,
-0.23470821976661682,
-0.3554481267929077,
0.294834703207016,
1.2969856262207031,
-0.14192624390125275,
-0.9928001761436462,
0.6560350060462952,
-0.3335273265838623,
0.03939749300479889,
1.845518708229065,
0.06008318439126015,
-0.8675457835197449,
0.3123112618923187,
-0.7501741647720337,
1.937404751777649,
1.6177715063095093,
1.3519643545150757,
-0.21278120577335358,
-0.9256131052970886,
0.7080919146537781,
-0.32563236355781555,
-0.3949449360370636,
0.7613482475280762,
0.4563845992088318,
-0.20380990207195282,
-1.4276031255722046,
0.6505856513977051,
1.273550033569336,
-0.8009362816810608,
-0.8396832942962646,
0.22518303990364075,
-0.786597728729248,
1.0680772066116333,
0.6563441157341003,
0.3817485272884369,
0.29340603947639465,
1.6720235347747803,
0.7557251453399658,
-0.59135901927948,
0.48004648089408875,
0.542301595211029,
-0.1910175085067749,
-2.025132894515991,
-1.1094863414764404,
0.2503887116909027,
-0.38199183344841003,
-1.6619340181350708,
1.3755242824554443,
-1.1743837594985962,
-0.9196307063102722,
0.5163347721099854,
0.09252405911684036,
1.3266342878341675,
0.37480685114860535,
1.5914949178695679,
1.9602389335632324,
0.7812643647193909,
0.38616621494293213,
1.2190250158309937,
-0.2511610686779022,
-0.4762513339519501,
1.8483954668045044,
-0.49142560362815857,
0.5575271248817444,
1.0517315864562988,
-0.2945585250854492,
-1.1807211637496948,
-0.7336781620979309,
-1.3413461446762085,
-0.6300292611122131,
1.2104707956314087,
0.07882402837276459,
-1.1871378421783447,
0.2745375633239746,
1.6394639015197754,
-0.013505847193300724,
-0.3933345675468445,
0.7031121253967285,
0.39573076367378235,
-0.914240300655365,
-0.003526329528540373,
-0.9442203044891357,
0.4607382118701935,
-0.06570244580507278,
-0.23092055320739746,
0.29898905754089355,
0.5483705997467041,
1.2903225421905518,
0.07007303088903427,
0.19348803162574768,
1.0926762819290161,
-1.4452013969421387,
1.471563696861267,
-0.777415931224823,
0.34403279423713684,
-2.3835113048553467,
1.3162591457366943,
-0.771652102470398,
1.934393286705017,
-2.6850013732910156,
0.48322299122810364,
-0.5710605978965759,
-0.4875373840332031,
0.3442017436027527,
-0.4082643985748291,
0.042072441428899765,
-0.07320039719343185,
-1.0854625701904297,
-0.02515992894768715,
-0.7141515016555786,
0.5961055159568787,
1.1722962856292725,
1.298561453819275,
-1.0229636430740356,
-0.22659090161323547,
-1.7749264240264893,
-0.18319831788539886,
-0.674907386302948,
0.22852548956871033,
-2.0073416233062744,
-0.161281019449234,
-1.9549213647842407,
-2.201885223388672,
-1.3052729368209839,
-0.8284928798675537,
1.0925827026367188,
0.11241064965724945,
-1.0317734479904175,
1.1931006908416748,
-0.3304349184036255,
-1.7167778015136719,
1.1433262825012207,
-2.0322301387786865
] |
https://github.com/huggingface/datasets/issues/4635 | Dataset Viewer issue for vadis/sv-ident | ~~I have forced the refresh of the split in the preview without success.~~
I have forced the refresh of the split in the preview, and now it works. | ### Link
https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation
### Description
Error message when loading validation split in the viewer:
```
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
```
### Owner
_No response_ | 659 | 28 | Dataset Viewer issue for vadis/sv-ident
### Link
https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation
### Description
Error message when loading validation split in the viewer:
```
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
```
### Owner
_No response_
~~I have forced the refresh of the split in the preview without success.~~
I have forced the refresh of the split in the preview, and now it works. | [
-1.0791383981704712,
-0.7978196740150452,
-1.0060815811157227,
1.5269969701766968,
-0.1531105935573578,
-1.4607232809066772,
0.10671143233776093,
-1.067409634590149,
1.678775668144226,
-0.7143954634666443,
0.20907771587371826,
-1.65906822681427,
-0.14027340710163116,
-0.5635398030281067,
-0.7656800150871277,
-0.9838939905166626,
-0.4861399531364441,
-0.8207632899284363,
1.0933207273483276,
2.6394054889678955,
1.3820552825927734,
-1.3140370845794678,
2.7014641761779785,
0.6113755702972412,
-0.1577196717262268,
-1.0505775213241577,
0.668109118938446,
-0.010704864747822285,
-1.2120866775512695,
-0.5322608351707458,
-0.9244937300682068,
-0.0634860172867775,
-0.4899592697620392,
-0.47071847319602966,
-0.05479296296834946,
0.43442174792289734,
-0.2007811963558197,
-0.3620603084564209,
-0.28760480880737305,
-0.8809143304824829,
0.4204050898551941,
-0.25245875120162964,
0.9062941074371338,
-0.4799211323261261,
1.913949966430664,
-0.49042096734046936,
0.29769203066825867,
0.79677414894104,
1.4594297409057617,
0.1095171570777893,
-0.18381115794181824,
0.3163493275642395,
0.3608587086200714,
-0.025939851999282837,
0.4554840624332428,
1.1373428106307983,
0.5454140901565552,
0.6278468370437622,
0.6271166205406189,
-2.1308629512786865,
1.2374545335769653,
-0.9282606840133667,
0.23520508408546448,
1.4241517782211304,
-1.169170618057251,
0.25240227580070496,
-1.78468918800354,
-0.004754053894430399,
0.5905752182006836,
-2.3106257915496826,
0.30500516295433044,
-1.1068285703659058,
-0.5655709505081177,
1.0025007724761963,
0.36092808842658997,
-1.3521041870117188,
0.018082333728671074,
-0.3706384003162384,
1.0284651517868042,
0.597345232963562,
1.2405022382736206,
-1.6405189037322998,
0.19744467735290527,
-0.28567612171173096,
-0.02443278208374977,
-1.349259376525879,
-1.4961050748825073,
0.5060576796531677,
0.7393959760665894,
0.7203097939491272,
-0.08568087220191956,
0.7404813766479492,
-0.8037697672843933,
0.7793216705322266,
-0.7368773818016052,
-1.7614538669586182,
-1.3171896934509277,
-2.3840909004211426,
-2.1825368404388428,
0.8759501576423645,
-0.4752957224845886,
-0.6069657802581787,
2.037228584289551,
-0.8883041739463806,
-1.885607123374939,
0.9833549857139587,
0.1933458149433136,
-0.041364941745996475,
2.3583743572235107,
0.3455202579498291,
-0.7769303321838379,
0.2985847592353821,
-0.7489061951637268,
0.8154048919677734,
-0.5784023404121399,
1.4640105962753296,
0.514365017414093,
-1.0460106134414673,
1.7407159805297852,
-0.5615019798278809,
0.5966780781745911,
-0.8679366707801819,
-0.5443091988563538,
-0.8027760982513428,
0.4476744830608368,
2.054243803024292,
-0.4734739661216736,
1.62458336353302,
-0.3757072687149048,
-1.5735145807266235,
-1.5338083505630493,
0.7852635979652405,
0.5225067734718323,
-0.7812763452529907,
0.3066107928752899,
-0.28428947925567627,
0.051801182329654694,
-0.09702266752719879,
0.9513359069824219,
1.3394169807434082,
0.6944990158081055,
-0.33369141817092896,
-0.8980321288108826,
0.23541848361492157,
-0.04393359646201134,
-0.7422872185707092,
-1.7848987579345703,
-0.36651381850242615,
-0.05342841520905495,
0.6121147274971008,
-1.2269972562789917,
1.723718523979187,
0.7705292105674744,
2.015619993209839,
0.909426212310791,
-0.3936528265476227,
1.4165151119232178,
0.04549827426671982,
1.9007500410079956,
-0.4404585659503937,
0.6376395225524902,
-0.23749642074108124,
-1.177830696105957,
0.8366498947143555,
-0.4025701880455017,
-1.8356314897537231,
-0.7625787854194641,
-1.0367780923843384,
-0.10714146494865417,
-0.6398895382881165,
1.0398149490356445,
-0.2191038280725479,
-1.255582571029663,
0.12406693398952484,
-0.7732702493667603,
0.07817515730857849,
-1.5079039335250854,
0.0583801306784153,
0.7121425271034241,
-0.5689617991447449,
0.029484719038009644,
-0.3272530734539032,
-1.3124076128005981,
-0.49877962470054626,
0.3258196711540222,
1.9873161315917969,
-0.7908689379692078,
1.056005597114563,
0.8988298177719116,
-0.7359398007392883,
-0.02711218222975731,
0.49170494079589844,
-0.23768596351146698,
0.9551742672920227,
-1.2001146078109741,
-0.4180413484573364,
1.1305124759674072,
-0.13084080815315247,
-0.594139575958252,
1.4038249254226685,
0.7228367328643799,
-1.1203032732009888,
-0.0724734514951706,
-0.13466374576091766,
-0.9911251068115234,
0.03406913951039314,
-1.6540098190307617,
-0.19407060742378235,
0.06358602643013,
-1.444796085357666,
-0.6484239101409912,
-0.15997320413589478,
1.4284602403640747,
-0.04376528784632683,
1.5327945947647095,
-0.32938963174819946,
-0.3273567259311676,
-0.3573225438594818,
-0.3984876871109009,
0.17492876946926117,
-0.26008546352386475,
-0.40273091197013855,
0.22381138801574707,
-0.769417941570282,
0.12678632140159607,
1.4727281332015991,
0.2477881908416748,
0.13826613128185272,
0.7526060342788696,
1.1469253301620483,
0.2755923867225647,
-0.16027787327766418,
-0.9101207256317139,
-1.5370745658874512,
1.9415154457092285,
-1.3128608465194702,
1.8774930238723755,
0.8140338659286499,
-0.05573190748691559,
-1.8204010725021362,
-1.9568052291870117,
1.3954499959945679,
1.299171805381775,
2.323037624359131,
0.7438101768493652,
0.36404159665107727,
-0.8994600772857666,
-0.638058602809906,
0.19883550703525543,
-1.0955874919891357,
-0.7693982124328613,
0.16756126284599304,
2.309530735015869,
1.6743654012680054,
-0.4534462094306946,
-0.24589988589286804,
-1.012917160987854,
1.2722632884979248,
-0.16987210512161255,
0.16018284857273102,
1.9728317260742188,
-0.19023676216602325,
-0.9424468874931335,
0.977458119392395,
-2.2857959270477295,
0.1849309653043747,
1.9377933740615845,
0.26941466331481934,
0.1391381174325943,
-1.5323411226272583,
-0.7528619766235352,
-0.03267567232251167,
-0.4282783269882202,
-1.1747219562530518,
0.5537393093109131,
-0.407169908285141,
-0.8743802309036255,
-1.4249024391174316,
0.15782321989536285,
-0.8892064094543457,
-1.7160567045211792,
0.24538147449493408,
1.9938791990280151,
1.9261372089385986,
-0.850831151008606,
1.623850703239441,
-0.11941790580749512,
0.11491245031356812,
1.3918949365615845,
1.1296700239181519,
3.073241710662842,
2.0296123027801514,
-1.247678279876709,
0.8401700854301453,
0.06567882001399994,
-0.38374942541122437,
1.2515660524368286,
-1.0749924182891846,
1.1866345405578613,
-0.38843271136283875,
-1.2913650274276733,
-1.2947789430618286,
0.7428874373435974,
0.498149573802948,
0.09606020152568817,
-0.5195133090019226,
1.305612325668335,
-0.004963813815265894,
1.3416024446487427,
0.575214147567749,
-0.5428107380867004,
0.6258358955383301,
-0.3513323664665222,
-0.41921505331993103,
1.5819427967071533,
0.2894308865070343,
-1.3757973909378052,
-2.375007152557373,
-0.16524340212345123,
-0.9009056687355042,
-0.08546645939350128,
-0.6594856977462769,
-1.0024884939193726,
1.5034583806991577,
0.601880669593811,
-1.0396205186843872,
-0.5154183506965637,
-0.45744821429252625,
-0.6486373543739319,
2.6948442459106445,
-1.4133881330490112,
-0.27737200260162354,
-0.9702047109603882,
-0.46005281805992126,
1.7385417222976685,
-1.2463188171386719,
-0.13368085026741028,
-1.1218781471252441,
-0.6029832363128662,
-1.3102859258651733,
-0.5344352126121521,
-0.002615467645227909,
-0.7371759414672852,
0.7102023959159851,
-0.025918472558259964,
-1.1191089153289795,
-0.09359194338321686,
-0.7103484272956848,
0.898773729801178,
-0.19147178530693054,
0.36705437302589417,
2.022813320159912,
0.3616497814655304,
-0.4276989996433258,
0.714570939540863,
1.1312023401260376,
0.42150768637657166,
-0.6201644539833069,
0.20443667471408844,
-0.5474859476089478,
0.17260952293872833,
-1.3673893213272095,
0.23154237866401672,
-2.825619697570801,
0.5488713979721069,
0.018227823078632355,
0.029316633939743042,
-0.1331789195537567,
-1.3811981678009033,
1.1266473531723022,
2.48956298828125,
-1.1652144193649292,
0.4776685833930969,
0.32606902718544006,
1.3200737237930298,
-1.612828254699707,
0.25977838039398193,
-0.4910338222980499,
2.1026012897491455,
0.09674538671970367,
1.272645354270935,
-0.4301850497722626,
-2.0909423828125,
0.6271265149116516,
-1.2981915473937988,
-1.0481595993041992,
0.8183857202529907,
-0.6430428624153137,
-0.0002550370991230011,
-1.4334769248962402,
-0.03234050050377846,
-0.7840356230735779,
-1.2512693405151367,
0.8996706008911133,
0.13696274161338806,
0.5234634876251221,
-0.6692331433296204,
0.4327990412712097,
-2.1087472438812256,
-1.3031251430511475,
-0.19507914781570435,
-0.8821092247962952,
0.30626624822616577,
-0.43091991543769836,
0.6440582275390625,
-0.24757114052772522,
-0.003959323279559612,
0.2773075997829437,
1.2195159196853638,
3.457122802734375,
0.13650697469711304,
0.27277570962905884,
-0.07528369128704071,
-0.9603303670883179,
1.5819975137710571,
0.95118248462677,
-0.15683668851852417,
-0.592900276184082,
-0.942866325378418,
1.2332464456558228,
2.0149776935577393,
1.1048409938812256,
0.16665032505989075,
-1.004582166671753,
-0.5818579196929932,
-0.15811076760292053,
0.16400335729122162,
0.5009350180625916,
0.8405925631523132,
-0.06811696290969849,
-0.022620420902967453,
1.2646015882492065,
1.1315377950668335,
-0.4745790660381317,
0.6458378434181213,
-1.0098477602005005,
-0.3558897376060486,
0.4467070996761322,
0.4404257535934448,
0.029343195259571075,
0.36772429943084717,
-0.9640578031539917,
-0.2362334430217743,
-0.22583475708961487,
-0.8817753195762634,
-0.6278563737869263,
-0.43060943484306335,
-0.2562049627304077,
1.6522163152694702,
0.05427708849310875,
-0.541631281375885,
-0.08552034199237823,
-0.7880517840385437,
-0.06380662322044373,
-1.0640166997909546,
0.2256416231393814,
-0.16789762675762177,
-0.05345745384693146,
-0.03817088529467583,
1.746002435684204,
-1.13910710811615,
-2.246650457382202,
0.3865622282028198,
0.3193245232105255,
-0.4384251534938812,
0.1773112267255783,
1.5656296014785767,
0.5701470375061035,
1.3694499731063843,
1.441075086593628,
1.0849075317382812,
-0.7445347905158997,
-1.24089777469635,
0.5520071387290955,
0.9626520276069641,
-1.495293140411377,
0.7631035447120667,
-0.06789764761924744,
-0.5781582593917847,
0.5831976532936096,
1.2500643730163574,
0.36344635486602783,
-1.9968067407608032,
0.8312032222747803,
-0.6645853519439697,
0.8580266237258911,
0.6674255728721619,
0.8356645703315735,
0.2887229025363922,
0.7430878281593323,
-1.181996464729309,
-1.2748818397521973,
-0.8341537714004517,
-0.717010498046875,
1.817557692527771,
-0.034965649247169495,
0.641129195690155,
-0.24572159349918365,
-1.3450844287872314,
-0.09328858554363251,
0.6399030685424805,
0.31041646003723145,
-0.35420891642570496,
0.6267921328544617,
-0.6218374967575073,
-1.0726988315582275,
-1.5253084897994995,
-0.4385916292667389,
-0.9007392525672913,
-0.9589274525642395,
1.0013805627822876,
0.7850920557975769,
0.3136615455150604,
1.9474214315414429,
0.5928000807762146,
0.20001302659511566,
-2.5533649921417236,
0.9472045302391052,
0.4159219563007355,
0.12947919964790344,
0.8760071992874146,
0.32967284321784973,
1.1183604001998901,
0.14415615797042847,
0.44627267122268677,
-2.3684420585632324,
2.2421090602874756,
-0.3023327887058258,
0.4697255492210388,
0.02604437619447708,
-0.2860732972621918,
1.0734015703201294,
0.5685459971427917,
0.5795388221740723,
-1.1965019702911377,
0.7603153586387634,
-0.6007359027862549,
1.2081865072250366,
0.9195427298545837,
-0.8196357488632202,
0.025854207575321198,
1.3361189365386963,
0.5777516961097717,
-0.4713565409183502,
-0.9343051910400391,
-0.8976084589958191,
0.8759094476699829,
1.6102039813995361,
0.134901225566864,
0.21980470418930054,
0.8020845055580139,
0.4430491626262665,
-1.176924705505371,
0.12367106974124908,
-0.8491684794425964,
-0.7642116546630859,
1.6527155637741089,
1.8997455835342407,
-0.014310609549283981,
-0.12760180234909058,
-0.9236535429954529,
-1.1937026977539062,
0.7280915379524231,
0.029532358050346375,
0.02617381513118744,
0.810245156288147,
-0.5541266202926636,
1.2492470741271973,
0.713102400302887,
0.8489624857902527,
0.1381627768278122,
0.23152251541614532,
0.39246630668640137,
-0.23471805453300476,
-1.1740471124649048,
-0.250197172164917,
-1.1527104377746582,
-2.4528234004974365,
0.47937098145484924,
-0.25836214423179626,
-1.3836758136749268,
-0.011042281053960323,
-1.1156103610992432,
0.9149121046066284,
-0.6197848320007324,
-1.1046223640441895,
-1.516103982925415,
0.25502169132232666,
-0.2538822889328003,
0.8148772120475769,
-1.529021143913269,
-0.07959730923175812,
1.3844319581985474,
0.8514829874038696,
-0.7849496006965637,
1.0372432470321655,
0.20691648125648499,
1.1677547693252563,
0.8411737084388733,
-0.2930060625076294,
0.41075122356414795,
0.03001197800040245,
-1.3931384086608887,
0.6360752582550049,
1.0796085596084595,
0.13101965188980103,
1.4545975923538208,
-0.6261311173439026,
0.01816912554204464,
0.586604654788971,
-0.45252522826194763,
-0.6876149773597717,
-0.7060010433197021,
0.7312806248664856,
0.046865515410900116,
-0.8871181011199951,
0.13746047019958496,
-0.08488017320632935,
-0.11139547824859619,
0.27036145329475403,
-1.5027575492858887,
-0.1688508838415146,
-0.2311379760503769,
-0.5462523102760315,
-1.281455397605896,
0.03184192627668381,
1.299941897392273,
-0.6741077899932861,
-0.2166910469532013,
0.6348057985305786,
0.36222967505455017,
0.4549010992050171,
0.5001853704452515,
-0.6524819731712341,
-0.21463614702224731,
-0.2685750424861908,
-0.34739819169044495,
0.3509294092655182,
1.279821515083313,
-0.15096516907215118,
-0.9281629920005798,
0.7422487139701843,
-0.33982306718826294,
0.0039604948833584785,
2.0354199409484863,
0.18726752698421478,
-0.8615689277648926,
0.30951985716819763,
-0.5774526000022888,
2.063369035720825,
1.5427072048187256,
1.3253464698791504,
-0.06408698111772537,
-0.9740614295005798,
0.5356472134590149,
-0.1724672168493271,
-0.4156772494316101,
0.8052994012832642,
0.4476710557937622,
-0.19949474930763245,
-1.4974584579467773,
0.44291064143180847,
1.3023608922958374,
-0.8867253065109253,
-0.8616048097610474,
-0.0008853385224938393,
-0.7195489406585693,
0.9078589677810669,
0.8548813462257385,
0.47757914662361145,
0.24327409267425537,
1.5455341339111328,
0.6798158884048462,
-0.5312196612358093,
0.4045816957950592,
0.37305253744125366,
-0.01890462636947632,
-1.9895237684249878,
-0.937339723110199,
0.35622331500053406,
-0.368265837430954,
-1.6367385387420654,
1.3271700143814087,
-1.155280590057373,
-0.9879828691482544,
0.35421299934387207,
0.27556565403938293,
1.5255146026611328,
0.2690761387348175,
1.6192989349365234,
1.982926607131958,
0.9060986638069153,
0.20024695992469788,
1.2587999105453491,
-0.17283780872821808,
-0.4499574303627014,
1.7972993850708008,
-0.4690820276737213,
0.4842053949832916,
1.0904561281204224,
-0.4187237024307251,
-1.1094074249267578,
-0.7464188933372498,
-1.3122198581695557,
-0.4929373264312744,
1.1664090156555176,
0.18091167509555817,
-1.0937645435333252,
0.2577522397041321,
1.4758046865463257,
0.1132434606552124,
-0.2543543577194214,
0.6115742325782776,
0.47022247314453125,
-0.8957635760307312,
0.08354035019874573,
-0.9327935576438904,
0.44224417209625244,
-0.0026970375329256058,
-0.5049310326576233,
0.35030847787857056,
0.48785674571990967,
1.4466246366500854,
0.0008855042979121208,
0.2564709186553955,
1.2746402025222778,
-1.383225917816162,
1.5479810237884521,
-0.7579563856124878,
0.17919445037841797,
-2.3847436904907227,
1.440724492073059,
-0.7335809469223022,
1.7229028940200806,
-2.749189615249634,
0.4264814555644989,
-0.45808735489845276,
-0.3982260525226593,
0.38973844051361084,
-0.4256693124771118,
-0.012440996244549751,
-0.19138146936893463,
-1.191597580909729,
-0.09895172715187073,
-0.7437173128128052,
0.6458500027656555,
1.2572389841079712,
1.375385046005249,
-0.9919729232788086,
-0.16784197092056274,
-1.9704866409301758,
-0.02905048057436943,
-0.692893385887146,
0.39116960763931274,
-2.0076332092285156,
-0.15755751729011536,
-1.9650609493255615,
-2.2588284015655518,
-1.323654055595398,
-0.8320978283882141,
1.0434393882751465,
0.1848335564136505,
-0.9971825480461121,
1.052356243133545,
-0.34445881843566895,
-1.6496829986572266,
1.0150903463363647,
-2.106529951095581
] |
https://github.com/huggingface/datasets/issues/4635 | Dataset Viewer issue for vadis/sv-ident | OK, thank you @e-tornike.
Apparently, after forcing the refresh, we just had to wait a little until it is effectively refreshed. | ### Link
https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation
### Description
Error message when loading validation split in the viewer:
```
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
```
### Owner
_No response_ | 659 | 21 | Dataset Viewer issue for vadis/sv-ident
### Link
https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation
### Description
Error message when loading validation split in the viewer:
```
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
```
### Owner
_No response_
OK, thank you @e-tornike.
Apparently, after forcing the refresh, we just had to wait a little until it is effectively refreshed. | [
-1.0727475881576538,
-0.7908313870429993,
-0.8628483414649963,
1.4905353784561157,
-0.1641230285167694,
-1.3768346309661865,
0.16331712901592255,
-0.9480201601982117,
1.6224638223648071,
-0.7295728921890259,
0.28907856345176697,
-1.6381765604019165,
-0.18010063469409943,
-0.5949909090995789,
-0.7081985473632812,
-0.8441071510314941,
-0.4189770519733429,
-0.7930600643157959,
1.078407883644104,
2.6030282974243164,
1.3405046463012695,
-1.3025480508804321,
2.7197794914245605,
0.6714577078819275,
-0.2239304780960083,
-1.0483707189559937,
0.6238687634468079,
-0.02127814292907715,
-1.2737659215927124,
-0.4687591791152954,
-0.8783426880836487,
-0.12342743575572968,
-0.50126051902771,
-0.4590931236743927,
-0.009890188463032246,
0.5745822787284851,
-0.12227004766464233,
-0.3906812369823456,
-0.4246600568294525,
-0.8901163339614868,
0.4160577654838562,
-0.4404202997684479,
0.8975797295570374,
-0.36256447434425354,
1.8906022310256958,
-0.4969346225261688,
0.38541731238365173,
0.6220559477806091,
1.4018645286560059,
0.08240959048271179,
-0.0886533111333847,
0.23834754526615143,
0.3364719748497009,
-0.09477301687002182,
0.4251934885978699,
1.0947387218475342,
0.601162850856781,
0.6496936082839966,
0.6074751615524292,
-2.1411049365997314,
1.2981423139572144,
-0.8980859518051147,
0.29841119050979614,
1.449847936630249,
-1.1558215618133545,
0.2936047613620758,
-1.8201402425765991,
-0.07988549768924713,
0.5223263502120972,
-2.270360231399536,
0.3640945255756378,
-1.0861477851867676,
-0.6112702488899231,
0.9664794206619263,
0.3834248483181,
-1.363041877746582,
0.0009215502068400383,
-0.359372615814209,
1.0186131000518799,
0.48379114270210266,
1.1336591243743896,
-1.6262954473495483,
0.16764406859874725,
-0.2813888192176819,
-0.02458321303129196,
-1.3117812871932983,
-1.5648683309555054,
0.6196202635765076,
0.7389500141143799,
0.8051917552947998,
-0.10493198037147522,
0.7851114273071289,
-0.848427951335907,
0.7915644645690918,
-0.9136817455291748,
-1.8088874816894531,
-1.306870460510254,
-2.3889176845550537,
-2.234954357147217,
0.7900004982948303,
-0.40093061327934265,
-0.604368269443512,
2.0217411518096924,
-0.8414841294288635,
-1.8186558485031128,
1.0738837718963623,
0.18202269077301025,
-0.05002603307366371,
2.4195613861083984,
0.3849770426750183,
-0.7553091645240784,
0.29841843247413635,
-0.8232574462890625,
0.9035741686820984,
-0.5652652382850647,
1.4603362083435059,
0.49022719264030457,
-1.0436553955078125,
1.747225284576416,
-0.4880165755748749,
0.633341908454895,
-0.8674076795578003,
-0.5583759546279907,
-0.7741082906723022,
0.2878347337245941,
1.9489355087280273,
-0.39622026681900024,
1.5179128646850586,
-0.37642982602119446,
-1.5728679895401,
-1.5025888681411743,
0.8315282464027405,
0.5343527793884277,
-0.8111350536346436,
0.2530893385410309,
-0.3607757091522217,
0.02385612204670906,
-0.07378813624382019,
1.0062979459762573,
1.2888561487197876,
0.6915205717086792,
-0.3330729305744171,
-0.911604642868042,
0.23648978769779205,
-0.04966111108660698,
-0.758510410785675,
-1.7869184017181396,
-0.3792015314102173,
0.049476757645606995,
0.5839248299598694,
-1.245232343673706,
1.823491096496582,
0.8543969988822937,
2.0394790172576904,
0.9187178611755371,
-0.42481642961502075,
1.399117112159729,
-0.07709837704896927,
1.84865140914917,
-0.45983272790908813,
0.6522578597068787,
-0.3079034388065338,
-1.1652039289474487,
0.9117693305015564,
-0.362252414226532,
-1.9334620237350464,
-0.7666656970977783,
-0.99845290184021,
-0.11878159642219543,
-0.6827384829521179,
1.0771360397338867,
-0.20044878125190735,
-1.3176804780960083,
0.07995133101940155,
-0.7580332159996033,
0.1491311490535736,
-1.4311102628707886,
0.15449275076389313,
0.7012848258018494,
-0.5447416305541992,
0.05192149430513382,
-0.2931118309497833,
-1.349190592765808,
-0.48349958658218384,
0.3700849413871765,
1.8841378688812256,
-0.7488293647766113,
0.9624732136726379,
0.8917744755744934,
-0.71588534116745,
-0.03470474109053612,
0.3520885407924652,
-0.3247169256210327,
0.9072254300117493,
-1.1391273736953735,
-0.35679352283477783,
1.1864837408065796,
-0.08726181089878082,
-0.6680828928947449,
1.4576070308685303,
0.6900062561035156,
-1.0587825775146484,
-0.11042674630880356,
-0.17180749773979187,
-0.8883891701698303,
0.03713817521929741,
-1.7472361326217651,
-0.17683210968971252,
0.17499615252017975,
-1.366628885269165,
-0.5571871995925903,
-0.1919601410627365,
1.3648205995559692,
-0.07000505924224854,
1.4695072174072266,
-0.23858670890331268,
-0.24599404633045197,
-0.4280080795288086,
-0.3807763159275055,
0.12233281880617142,
-0.3113049864768982,
-0.49024316668510437,
0.24806468188762665,
-0.7954615354537964,
0.20311185717582703,
1.5879323482513428,
0.2668195366859436,
0.19845737516880035,
0.6399967074394226,
1.1135635375976562,
0.33670738339424133,
-0.11224177479743958,
-0.8870003819465637,
-1.495381236076355,
1.9025508165359497,
-1.4080473184585571,
1.9070966243743896,
0.8196614384651184,
-0.03323947638273239,
-1.8317123651504517,
-1.9324612617492676,
1.3723264932632446,
1.2778769731521606,
2.3188488483428955,
0.7131960988044739,
0.3655432164669037,
-0.8250471353530884,
-0.6833962202072144,
0.15449008345603943,
-1.0545101165771484,
-0.7443490624427795,
0.19713997840881348,
2.3069376945495605,
1.710655689239502,
-0.4997793734073639,
-0.17592434585094452,
-1.0997141599655151,
1.2037931680679321,
-0.245550274848938,
0.150102898478508,
1.9984209537506104,
-0.25717422366142273,
-0.9705836176872253,
1.0083221197128296,
-2.3369295597076416,
0.225545272231102,
1.9907007217407227,
0.3021451234817505,
0.19416534900665283,
-1.4376487731933594,
-0.7656738758087158,
-0.08516167104244232,
-0.34273776412010193,
-1.1891567707061768,
0.5897977352142334,
-0.2962513267993927,
-0.8751819133758545,
-1.42366361618042,
0.19855621457099915,
-1.0097334384918213,
-1.7431602478027344,
0.2826796770095825,
1.9369683265686035,
1.9747600555419922,
-0.8312573432922363,
1.5338661670684814,
-0.21759304404258728,
0.05149490013718605,
1.2880313396453857,
1.1411055326461792,
3.0303823947906494,
2.0273890495300293,
-1.2356250286102295,
0.8412957787513733,
-0.01200993824750185,
-0.4844617545604706,
1.207089900970459,
-1.0599762201309204,
1.1938976049423218,
-0.37711355090141296,
-1.155470609664917,
-1.2876243591308594,
0.8047806024551392,
0.5085267424583435,
0.1037863940000534,
-0.5068559646606445,
1.3128515481948853,
0.06644469499588013,
1.35103178024292,
0.6540431976318359,
-0.430350124835968,
0.6834501624107361,
-0.3435673415660858,
-0.32741907238960266,
1.5517606735229492,
0.307039350271225,
-1.4381940364837646,
-2.3501458168029785,
-0.14745914936065674,
-0.9250198006629944,
-0.05128606781363487,
-0.7471264600753784,
-1.0964919328689575,
1.5987005233764648,
0.5663878917694092,
-1.042529821395874,
-0.39954930543899536,
-0.3451296389102936,
-0.6488820910453796,
2.7332310676574707,
-1.4207127094268799,
-0.24411632120609283,
-0.94561368227005,
-0.49314597249031067,
1.7484794855117798,
-1.1856231689453125,
-0.1818140149116516,
-1.1347534656524658,
-0.5538764595985413,
-1.2327433824539185,
-0.5250439047813416,
-0.031083520501852036,
-0.8658058643341064,
0.7299291491508484,
0.00003900844603776932,
-1.2043899297714233,
-0.1771831065416336,
-0.7577962875366211,
0.9422491192817688,
-0.13834533095359802,
0.306802362203598,
1.956451177597046,
0.4321010112762451,
-0.3499772846698761,
0.7847016453742981,
1.1850128173828125,
0.44564738869667053,
-0.6770386695861816,
0.23125606775283813,
-0.5844053030014038,
0.24631743133068085,
-1.3656219244003296,
0.19767935574054718,
-2.8195624351501465,
0.5229746699333191,
-0.03330747410655022,
-0.07683435827493668,
-0.04840610548853874,
-1.4460405111312866,
1.119456171989441,
2.505739450454712,
-1.2003406286239624,
0.5512890815734863,
0.23116526007652283,
1.2664055824279785,
-1.5785167217254639,
0.25641682744026184,
-0.5412726998329163,
2.0678465366363525,
0.06580273061990738,
1.21002197265625,
-0.519781768321991,
-2.12827730178833,
0.5837528109550476,
-1.3189486265182495,
-1.0360225439071655,
0.7473186254501343,
-0.7983667254447937,
-0.01845398172736168,
-1.3481603860855103,
-0.08544550836086273,
-0.8487247228622437,
-1.2875159978866577,
0.8093976974487305,
0.1354680061340332,
0.4635244607925415,
-0.656246542930603,
0.4475078582763672,
-2.1340153217315674,
-1.3442901372909546,
-0.33528628945350647,
-0.8855246305465698,
0.38235196471214294,
-0.3870067596435547,
0.627565860748291,
-0.2518683671951294,
0.02208312600851059,
0.30301710963249207,
1.2494041919708252,
3.3625340461730957,
0.14817751944065094,
0.38915497064590454,
-0.15251147747039795,
-0.9966356158256531,
1.5311665534973145,
0.9754675030708313,
-0.07194063812494278,
-0.628380298614502,
-0.8783304691314697,
1.3465220928192139,
2.0068702697753906,
1.1034386157989502,
0.07011501491069794,
-0.9997948408126831,
-0.607249915599823,
-0.09305082261562347,
0.167217418551445,
0.4083520472049713,
0.9074414372444153,
-0.013532531447708607,
0.0697409138083458,
1.245706558227539,
1.108085036277771,
-0.41080808639526367,
0.5745759010314941,
-1.0237568616867065,
-0.34867116808891296,
0.42211779952049255,
0.37320008873939514,
0.006885179318487644,
0.45052069425582886,
-0.9876832365989685,
-0.2927812337875366,
-0.21410468220710754,
-0.869022786617279,
-0.764052152633667,
-0.48076149821281433,
-0.3297611474990845,
1.7374752759933472,
0.03338178992271423,
-0.4804401695728302,
0.01651851087808609,
-0.7632055282592773,
-0.004131756257265806,
-1.0468864440917969,
0.20122602581977844,
-0.10304107517004013,
-0.034147072583436966,
-0.037487223744392395,
1.7734553813934326,
-1.1673330068588257,
-2.2540581226348877,
0.3251885175704956,
0.24596278369426727,
-0.4186307489871979,
0.11915457993745804,
1.649744987487793,
0.6106814742088318,
1.4330612421035767,
1.4294319152832031,
1.1265965700149536,
-0.7549135088920593,
-1.2961214780807495,
0.6084311604499817,
1.034196138381958,
-1.458831787109375,
0.85136878490448,
-0.07899228483438492,
-0.4541700482368469,
0.5977473258972168,
1.3403493165969849,
0.40722930431365967,
-1.9754136800765991,
0.7672204375267029,
-0.7604420781135559,
0.9342050552368164,
0.7429875731468201,
0.8290029764175415,
0.3117503523826599,
0.7324425578117371,
-1.3265106678009033,
-1.1858528852462769,
-0.7508795261383057,
-0.7083210349082947,
1.9287559986114502,
-0.1360359489917755,
0.5956824421882629,
-0.2035846710205078,
-1.294754981994629,
-0.02408101037144661,
0.7078627347946167,
0.4128073751926422,
-0.4068085253238678,
0.6159011721611023,
-0.5511245727539062,
-1.046120285987854,
-1.4536410570144653,
-0.46092015504837036,
-0.9607371091842651,
-0.9964690804481506,
1.0365872383117676,
0.7813835144042969,
0.3856983482837677,
1.9088903665542603,
0.5949053764343262,
0.2617429196834564,
-2.564997434616089,
1.007733702659607,
0.42347779870033264,
0.0732264518737793,
0.8314214944839478,
0.38163450360298157,
1.1207833290100098,
-0.005787377245724201,
0.5242723226547241,
-2.3758881092071533,
2.2782435417175293,
-0.22304335236549377,
0.4850546419620514,
0.09988830238580704,
-0.11879115551710129,
1.0133620500564575,
0.5553033351898193,
0.5477913618087769,
-1.180777668952942,
0.7136611342430115,
-0.611287534236908,
1.2208607196807861,
0.8543105125427246,
-0.7908932566642761,
0.009202335961163044,
1.3026633262634277,
0.47153085470199585,
-0.5138023495674133,
-0.9030216932296753,
-0.7755599617958069,
0.9039216041564941,
1.5936784744262695,
0.08954112231731415,
0.12827667593955994,
0.8602254986763,
0.4336583912372589,
-1.2622084617614746,
0.04522985965013504,
-0.7408587336540222,
-0.7149137258529663,
1.6598851680755615,
2.000472068786621,
-0.0731259435415268,
-0.10006846487522125,
-0.8584516644477844,
-1.2536749839782715,
0.7788135409355164,
-0.046043120324611664,
0.020104609429836273,
0.7672899961471558,
-0.5209727883338928,
1.1967556476593018,
0.6629884839057922,
0.9023022651672363,
0.01274911593645811,
0.2593982219696045,
0.4269677996635437,
-0.2931482195854187,
-1.1850768327713013,
-0.2229757457971573,
-1.1547001600265503,
-2.5673298835754395,
0.4787355363368988,
-0.33600836992263794,
-1.390975832939148,
0.036574408411979675,
-1.1499062776565552,
0.9208722710609436,
-0.696521520614624,
-1.0432411432266235,
-1.521546483039856,
0.2681159973144531,
-0.23784638941287994,
0.7953636646270752,
-1.689118504524231,
-0.04183213412761688,
1.2792004346847534,
0.8198326826095581,
-0.8170893788337708,
1.0604488849639893,
0.21270808577537537,
1.1481717824935913,
0.8563821315765381,
-0.22017213702201843,
0.3981582820415497,
0.03747590258717537,
-1.328628659248352,
0.5639359354972839,
1.1987175941467285,
0.15511831641197205,
1.4199837446212769,
-0.550849437713623,
0.02600160986185074,
0.5555077195167542,
-0.43989047408103943,
-0.6505780816078186,
-0.5929940938949585,
0.7197700142860413,
0.21521982550621033,
-0.958028256893158,
-0.03627042844891548,
-0.0725000724196434,
-0.11427416652441025,
0.26715174317359924,
-1.524448037147522,
-0.20825350284576416,
-0.26842743158340454,
-0.5548010468482971,
-1.270882487297058,
-0.01809503696858883,
1.334316372871399,
-0.645359992980957,
-0.23936031758785248,
0.6214933395385742,
0.31250664591789246,
0.43351098895072937,
0.5784624218940735,
-0.736151933670044,
-0.24832725524902344,
-0.2046576291322708,
-0.3194994330406189,
0.4078060984611511,
1.3402283191680908,
-0.1515653133392334,
-0.9704094529151917,
0.6868737936019897,
-0.46308180689811707,
0.11559808999300003,
2.0356481075286865,
0.14447197318077087,
-0.9317138195037842,
0.30551373958587646,
-0.7042595148086548,
2.033177137374878,
1.5460796356201172,
1.2918418645858765,
-0.01717604696750641,
-0.9985173940658569,
0.6377202868461609,
-0.20953664183616638,
-0.3577710688114166,
0.758000373840332,
0.4046613872051239,
-0.23342661559581757,
-1.425209641456604,
0.4895712733268738,
1.3739705085754395,
-0.8116892576217651,
-0.9208357334136963,
0.038181204348802567,
-0.7691636681556702,
1.0361918210983276,
0.7709783911705017,
0.4149307310581207,
0.24523009359836578,
1.4746736288070679,
0.6779058575630188,
-0.5087597370147705,
0.5022855401039124,
0.3450332581996918,
-0.10525128990411758,
-1.8944464921951294,
-0.9649589657783508,
0.39645376801490784,
-0.39896348118782043,
-1.6269041299819946,
1.3317997455596924,
-1.1838476657867432,
-1.035644769668579,
0.4055502414703369,
0.2798449695110321,
1.5733495950698853,
0.32314127683639526,
1.5898470878601074,
1.9484840631484985,
0.9115455150604248,
0.2661009132862091,
1.2957273721694946,
-0.2776903808116913,
-0.4615228474140167,
1.7854881286621094,
-0.4139838218688965,
0.4832550883293152,
1.0002776384353638,
-0.32748010754585266,
-1.1192309856414795,
-0.7207749485969543,
-1.3294084072113037,
-0.6009224653244019,
1.2435564994812012,
0.18985556066036224,
-1.1284531354904175,
0.2626866102218628,
1.5563803911209106,
0.04532628133893013,
-0.2528343200683594,
0.6466390490531921,
0.4691885709762573,
-0.9090436697006226,
0.0926629900932312,
-0.9756295680999756,
0.4579591155052185,
0.011643962003290653,
-0.4117119610309601,
0.2995150089263916,
0.6194826364517212,
1.288967490196228,
0.052972882986068726,
0.22910542786121368,
1.1432979106903076,
-1.3511947393417358,
1.5321829319000244,
-0.685922384262085,
0.19281631708145142,
-2.400649070739746,
1.4004428386688232,
-0.7072645425796509,
1.7430157661437988,
-2.7589921951293945,
0.4086515009403229,
-0.4225010275840759,
-0.450704425573349,
0.33664458990097046,
-0.39055609703063965,
0.04828488081693649,
-0.1985761821269989,
-1.1309846639633179,
-0.0818304643034935,
-0.7238101363182068,
0.5964556932449341,
1.193801760673523,
1.3100385665893555,
-1.0293922424316406,
-0.19274595379829407,
-1.9552490711212158,
-0.07151000946760178,
-0.7075105905532837,
0.31710246205329895,
-2.0564520359039307,
-0.15579597651958466,
-1.926761269569397,
-2.216299533843994,
-1.3247277736663818,
-0.8423470854759216,
1.0637600421905518,
0.1890668123960495,
-0.9115476608276367,
1.0563675165176392,
-0.3437443971633911,
-1.7131401300430298,
0.9520492553710938,
-2.115342378616333
] |
https://github.com/huggingface/datasets/issues/4635 | Dataset Viewer issue for vadis/sv-ident | I'm closing this issue as it was solved after forcing the refresh of the split in the preview. | ### Link
https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation
### Description
Error message when loading validation split in the viewer:
```
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
```
### Owner
_No response_ | 659 | 18 | Dataset Viewer issue for vadis/sv-ident
### Link
https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation
### Description
Error message when loading validation split in the viewer:
```
Status code: 400
Exception: Status400Error
Message: The split cache is empty.
```
### Owner
_No response_
I'm closing this issue as it was solved after forcing the refresh of the split in the preview. | [
-1.0254795551300049,
-0.8191131353378296,
-0.9598214030265808,
1.4677518606185913,
-0.17223182320594788,
-1.3939673900604248,
0.11909837275743484,
-0.9329838156700134,
1.652708649635315,
-0.7113316059112549,
0.2948084771633148,
-1.6680768728256226,
-0.19493839144706726,
-0.5115345120429993,
-0.6848266124725342,
-0.9117884039878845,
-0.4460284411907196,
-0.7814943790435791,
1.0742840766906738,
2.5649330615997314,
1.305724859237671,
-1.3460137844085693,
2.767723798751831,
0.6290163993835449,
-0.16867473721504211,
-1.0551764965057373,
0.6078657507896423,
0.014683164656162262,
-1.2508403062820435,
-0.4820176064968109,
-0.8653160333633423,
-0.029277747496962547,
-0.44098159670829773,
-0.4301115870475769,
-0.026599982753396034,
0.5042662620544434,
-0.06843003630638123,
-0.46186965703964233,
-0.41140812635421753,
-0.9170053005218506,
0.30512407422065735,
-0.37551194429397583,
0.8716434240341187,
-0.4111478328704834,
1.9006556272506714,
-0.48660701513290405,
0.28684118390083313,
0.6942291855812073,
1.3556592464447021,
0.0851932168006897,
-0.14044389128684998,
0.22206905484199524,
0.3884133994579315,
-0.07884983718395233,
0.44381484389305115,
1.162681221961975,
0.5866726040840149,
0.6592697501182556,
0.572266161441803,
-2.123617172241211,
1.223360300064087,
-0.8932322859764099,
0.23614493012428284,
1.4148263931274414,
-1.1816719770431519,
0.3135494887828827,
-1.8011343479156494,
-0.011116605252027512,
0.5365938544273376,
-2.248483180999756,
0.32063502073287964,
-1.1274470090866089,
-0.5334190130233765,
0.9428936839103699,
0.339825838804245,
-1.3635660409927368,
-0.025466710329055786,
-0.39228692650794983,
1.0747289657592773,
0.5021979212760925,
1.223937749862671,
-1.6371909379959106,
0.22377294301986694,
-0.30710023641586304,
-0.05034034326672554,
-1.3131768703460693,
-1.5374835729599,
0.5332847237586975,
0.8254980444908142,
0.8159026503562927,
-0.10558358579874039,
0.819926917552948,
-0.8422698974609375,
0.7562407851219177,
-0.7500858306884766,
-1.7404006719589233,
-1.2771103382110596,
-2.3750951290130615,
-2.1906685829162598,
0.8350774049758911,
-0.47065263986587524,
-0.6179383397102356,
2.0037119388580322,
-0.8708070516586304,
-1.8609306812286377,
1.0779324769973755,
0.13365605473518372,
-0.004647644702345133,
2.4067928791046143,
0.3611254394054413,
-0.7886552214622498,
0.20044869184494019,
-0.7804490923881531,
0.8407814502716064,
-0.5878074765205383,
1.4641090631484985,
0.5520652532577515,
-0.9889744520187378,
1.7460556030273438,
-0.44421976804733276,
0.6546721458435059,
-0.8698274493217468,
-0.5780192017555237,
-0.7940394878387451,
0.3224923312664032,
1.983977198600769,
-0.4570247232913971,
1.5764657258987427,
-0.41378265619277954,
-1.5151472091674805,
-1.5307588577270508,
0.802615225315094,
0.5131338238716125,
-0.76287442445755,
0.261799156665802,
-0.321002721786499,
0.061707764863967896,
-0.10337888449430466,
0.9598597884178162,
1.2403674125671387,
0.6554567813873291,
-0.31704825162887573,
-0.8881122469902039,
0.2639550566673279,
0.06377461552619934,
-0.6969563961029053,
-1.7821002006530762,
-0.30765536427497864,
0.033704958856105804,
0.5604454278945923,
-1.2634813785552979,
1.7357902526855469,
0.7509142756462097,
2.0506231784820557,
0.9349198937416077,
-0.3688938617706299,
1.4381811618804932,
-0.03498028963804245,
1.8542200326919556,
-0.4135337471961975,
0.5466165542602539,
-0.17318686842918396,
-1.1808488368988037,
0.8990616798400879,
-0.3800669014453888,
-1.874046802520752,
-0.7469611763954163,
-0.9877544045448303,
-0.11547764390707016,
-0.6427597999572754,
0.987553596496582,
-0.22920745611190796,
-1.3239027261734009,
0.07566914707422256,
-0.7135612964630127,
0.1182907447218895,
-1.4554131031036377,
0.11754319816827774,
0.7221089005470276,
-0.5710849761962891,
0.042551133781671524,
-0.3320356011390686,
-1.3586894273757935,
-0.4823978543281555,
0.3750534653663635,
1.9558559656143188,
-0.8018833994865417,
0.9724193811416626,
0.9404319524765015,
-0.7461622357368469,
0.0071173496544361115,
0.38490089774131775,
-0.3029443025588989,
0.9811205267906189,
-1.2168318033218384,
-0.39524802565574646,
1.1696946620941162,
-0.12953591346740723,
-0.66108238697052,
1.467645287513733,
0.7613244652748108,
-1.0879088640213013,
-0.1614537239074707,
-0.17022401094436646,
-0.9435349106788635,
-0.01658894494175911,
-1.7047356367111206,
-0.17017513513565063,
0.07933291792869568,
-1.3524903059005737,
-0.5748285055160522,
-0.22783491015434265,
1.4173333644866943,
-0.03391018137335777,
1.4835163354873657,
-0.29248666763305664,
-0.2549298107624054,
-0.36286887526512146,
-0.38660064339637756,
0.15739640593528748,
-0.32202041149139404,
-0.5234586596488953,
0.20930445194244385,
-0.802311897277832,
0.15478411316871643,
1.5374975204467773,
0.3495102822780609,
0.14625635743141174,
0.7318591475486755,
1.1457809209823608,
0.29155078530311584,
-0.12055878341197968,
-0.8738336563110352,
-1.5396106243133545,
1.893990397453308,
-1.2907005548477173,
1.8983982801437378,
0.816363513469696,
-0.04367613419890404,
-1.8200485706329346,
-1.955493688583374,
1.366666316986084,
1.267343282699585,
2.3215298652648926,
0.7345141768455505,
0.3817465305328369,
-0.8592766523361206,
-0.7300393581390381,
0.15278595685958862,
-1.0562881231307983,
-0.8027843832969666,
0.21971869468688965,
2.2502732276916504,
1.6749968528747559,
-0.4787486493587494,
-0.2249784767627716,
-1.1012476682662964,
1.1796141862869263,
-0.18857231736183167,
0.15149369835853577,
1.9920600652694702,
-0.1554989218711853,
-0.9448472857475281,
0.9298696517944336,
-2.3256590366363525,
0.23468106985092163,
1.9250121116638184,
0.25875192880630493,
0.17885997891426086,
-1.5344524383544922,
-0.800605297088623,
-0.09643016755580902,
-0.34309518337249756,
-1.2052048444747925,
0.6041444540023804,
-0.40006938576698303,
-0.8511380553245544,
-1.4118667840957642,
0.170296311378479,
-0.9569541215896606,
-1.7306896448135376,
0.300668865442276,
1.9918240308761597,
1.9042268991470337,
-0.8627938628196716,
1.5697745084762573,
-0.21774166822433472,
0.0803196132183075,
1.3809752464294434,
1.1282730102539062,
3.068096876144409,
2.017901659011841,
-1.2303602695465088,
0.8284916281700134,
0.06721911579370499,
-0.4343085289001465,
1.212205410003662,
-1.0983470678329468,
1.143794298171997,
-0.43156754970550537,
-1.1987303495407104,
-1.2997825145721436,
0.7515389919281006,
0.4763623774051666,
0.11718157678842545,
-0.5283371210098267,
1.3702738285064697,
-0.0028639514930546284,
1.3640202283859253,
0.6546049118041992,
-0.47742751240730286,
0.6175528764724731,
-0.34418800473213196,
-0.2878343164920807,
1.5516033172607422,
0.25424861907958984,
-1.3969738483428955,
-2.3720028400421143,
-0.11590085923671722,
-0.8830284476280212,
-0.053543198853731155,
-0.7210074663162231,
-1.056984543800354,
1.58274245262146,
0.6117678880691528,
-1.1297849416732788,
-0.453611820936203,
-0.4073217809200287,
-0.626081645488739,
2.6640238761901855,
-1.421169400215149,
-0.23924216628074646,
-0.9664203524589539,
-0.42051756381988525,
1.7786287069320679,
-1.1888173818588257,
-0.19331753253936768,
-1.1201204061508179,
-0.5926656723022461,
-1.3021752834320068,
-0.55879145860672,
-0.00478773657232523,
-0.83033686876297,
0.7816067337989807,
-0.034293532371520996,
-1.1860803365707397,
-0.11316464841365814,
-0.7200961709022522,
0.9196871519088745,
-0.20535916090011597,
0.3667099177837372,
2.0777080059051514,
0.4433269202709198,
-0.34109869599342346,
0.754388153553009,
1.1275569200515747,
0.4694007933139801,
-0.6320231556892395,
0.25061023235321045,
-0.5826690196990967,
0.23253095149993896,
-1.4350454807281494,
0.2017250955104828,
-2.8455653190612793,
0.5378018021583557,
-0.0071189263835549355,
0.08411268889904022,
-0.07081781327724457,
-1.3628264665603638,
1.0457667112350464,
2.5145978927612305,
-1.2331348657608032,
0.49073469638824463,
0.29687878489494324,
1.3190572261810303,
-1.6325864791870117,
0.27418169379234314,
-0.4920194149017334,
2.0666019916534424,
0.06283953785896301,
1.258396863937378,
-0.4306013286113739,
-2.0769236087799072,
0.5742033123970032,
-1.3491755723953247,
-1.0302852392196655,
0.8089070916175842,
-0.7206155061721802,
-0.04444364085793495,
-1.3641563653945923,
-0.073928602039814,
-0.8664226531982422,
-1.2848727703094482,
0.8816620111465454,
0.09195053577423096,
0.39945730566978455,
-0.6447659134864807,
0.45448988676071167,
-2.1244893074035645,
-1.3452043533325195,
-0.3308451771736145,
-0.9319437146186829,
0.3648063540458679,
-0.3972281515598297,
0.6730743050575256,
-0.29622238874435425,
0.05169815942645073,
0.2278839349746704,
1.2379759550094604,
3.402217388153076,
0.19966119527816772,
0.34312254190444946,
-0.09071581065654755,
-0.9338057041168213,
1.550897240638733,
0.9308455586433411,
-0.1370525360107422,
-0.6105921864509583,
-0.9052475094795227,
1.356248378753662,
2.0031325817108154,
1.092339277267456,
0.175747811794281,
-0.9519302845001221,
-0.6539280414581299,
-0.13250203430652618,
0.16995519399642944,
0.4084811806678772,
0.8581923246383667,
-0.02609926275908947,
0.07075326144695282,
1.2283482551574707,
1.1307917833328247,
-0.4382869601249695,
0.6174095273017883,
-1.0400910377502441,
-0.3081092834472656,
0.48076722025871277,
0.3659152090549469,
0.04486455023288727,
0.41692936420440674,
-1.0087283849716187,
-0.3235231935977936,
-0.1854211390018463,
-0.872473955154419,
-0.7113720178604126,
-0.4199140667915344,
-0.2613252103328705,
1.5929861068725586,
0.0810173749923706,
-0.5423330664634705,
-0.06428059935569763,
-0.7984692454338074,
-0.03635134920477867,
-1.0414429903030396,
0.24210289120674133,
-0.16810253262519836,
-0.02109147049486637,
-0.01828373223543167,
1.7742751836776733,
-1.1444586515426636,
-2.2730133533477783,
0.3714885711669922,
0.2826555073261261,
-0.4860369861125946,
0.15190091729164124,
1.6710753440856934,
0.5457121133804321,
1.4129952192306519,
1.4021642208099365,
1.1071480512619019,
-0.7290055751800537,
-1.2421401739120483,
0.5422875881195068,
1.0081247091293335,
-1.494706630706787,
0.8151817321777344,
-0.11676257848739624,
-0.4503880441188812,
0.6123499274253845,
1.4122449159622192,
0.41768524050712585,
-1.9418017864227295,
0.7538487315177917,
-0.6813990473747253,
0.8271763324737549,
0.7384282350540161,
0.9056137204170227,
0.3203725516796112,
0.7765802145004272,
-1.313848853111267,
-1.2238978147506714,
-0.7881599068641663,
-0.6094908118247986,
1.8521480560302734,
-0.07868729531764984,
0.6214179992675781,
-0.2336491048336029,
-1.3565577268600464,
-0.0735689103603363,
0.6361804604530334,
0.3615640103816986,
-0.37027814984321594,
0.6705651879310608,
-0.5751041769981384,
-1.0729423761367798,
-1.4735110998153687,
-0.42755743861198425,
-0.9443514943122864,
-0.9634920954704285,
1.0023988485336304,
0.8102339506149292,
0.3649446666240692,
1.875834345817566,
0.5641623139381409,
0.1762169897556305,
-2.5941126346588135,
0.9845108389854431,
0.42185065150260925,
0.08039230108261108,
0.8755510449409485,
0.31912094354629517,
1.0724942684173584,
0.049692098051309586,
0.47096484899520874,
-2.371009349822998,
2.248109817504883,
-0.28727206587791443,
0.5051467418670654,
0.0919906422495842,
-0.23614555597305298,
1.0360504388809204,
0.5281892418861389,
0.6146442294120789,
-1.2301294803619385,
0.7478948831558228,
-0.5888686776161194,
1.231234073638916,
0.8431217074394226,
-0.7987914085388184,
0.06636495143175125,
1.3349865674972534,
0.5223929286003113,
-0.46285247802734375,
-0.897066056728363,
-0.8457848429679871,
0.9275535941123962,
1.5887523889541626,
0.18590781092643738,
0.17151275277137756,
0.8559747338294983,
0.4404212236404419,
-1.2173296213150024,
0.05816185474395752,
-0.7212867736816406,
-0.719601571559906,
1.7313296794891357,
2.0165483951568604,
-0.013524143025279045,
-0.18287602066993713,
-0.9110280871391296,
-1.1958534717559814,
0.6973212957382202,
-0.036341357976198196,
-0.028825141489505768,
0.8820362687110901,
-0.5303434729576111,
1.214303970336914,
0.5946996212005615,
0.8756505846977234,
0.02514529973268509,
0.26039406657218933,
0.4749058783054352,
-0.28843677043914795,
-1.2336586713790894,
-0.24158379435539246,
-1.2101329565048218,
-2.439678430557251,
0.45372337102890015,
-0.2870067358016968,
-1.3718140125274658,
0.0384240485727787,
-1.1608972549438477,
0.9141520857810974,
-0.7099717259407043,
-1.1851507425308228,
-1.5015230178833008,
0.19596904516220093,
-0.2171618938446045,
0.7434998154640198,
-1.6087214946746826,
-0.08586928993463516,
1.3423265218734741,
0.9057576060295105,
-0.802279531955719,
0.9954989552497864,
0.18248215317726135,
1.2234692573547363,
0.8614664077758789,
-0.24425065517425537,
0.4127722382545471,
0.01703919842839241,
-1.3298659324645996,
0.6458588242530823,
1.1509159803390503,
0.12361802905797958,
1.4738287925720215,
-0.5722336769104004,
0.009808806702494621,
0.6038737893104553,
-0.523479700088501,
-0.6933457255363464,
-0.6444807052612305,
0.7223713994026184,
0.13651928305625916,
-0.8793001174926758,
0.04631706327199936,
-0.10090791434049606,
-0.022361602634191513,
0.311754435300827,
-1.5482523441314697,
-0.215681254863739,
-0.22985237836837769,
-0.4611937403678894,
-1.2573628425598145,
0.054273925721645355,
1.3516545295715332,
-0.6854305863380432,
-0.2668706178665161,
0.6127696633338928,
0.261067271232605,
0.46050408482551575,
0.539627194404602,
-0.6598216891288757,
-0.22327280044555664,
-0.22208404541015625,
-0.35504820942878723,
0.35811707377433777,
1.3137736320495605,
-0.1697729229927063,
-0.9715461134910583,
0.7373386025428772,
-0.4567404091358185,
0.042277924716472626,
2.0613937377929688,
0.17580389976501465,
-0.9327002763748169,
0.28085076808929443,
-0.6454587578773499,
1.9938629865646362,
1.555467963218689,
1.3319880962371826,
-0.08551911264657974,
-0.8992937803268433,
0.5695965886116028,
-0.16836705803871155,
-0.4540400803089142,
0.7425700426101685,
0.4987379312515259,
-0.21762734651565552,
-1.467523455619812,
0.44099387526512146,
1.3097120523452759,
-0.8748992681503296,
-0.8955042958259583,
0.029155265539884567,
-0.7383594512939453,
0.9035421013832092,
0.7857449054718018,
0.43479037284851074,
0.23811876773834229,
1.511714220046997,
0.6611201167106628,
-0.507358968257904,
0.4774406850337982,
0.3481629490852356,
-0.03885997086763382,
-1.9014406204223633,
-0.8871787786483765,
0.3912472426891327,
-0.33929139375686646,
-1.6439388990402222,
1.3450796604156494,
-1.1745555400848389,
-1.0383495092391968,
0.3513018488883972,
0.3397614359855652,
1.5734001398086548,
0.23906809091567993,
1.6701171398162842,
1.939158320426941,
0.8981408476829529,
0.21231821179389954,
1.2720867395401,
-0.19722211360931396,
-0.5416874289512634,
1.835929274559021,
-0.4277580976486206,
0.5121867060661316,
1.0135080814361572,
-0.37846502661705017,
-1.1859203577041626,
-0.7037699222564697,
-1.3285229206085205,
-0.5172121524810791,
1.2281357049942017,
0.20076292753219604,
-1.1448676586151123,
0.1935705542564392,
1.478583812713623,
0.10152760148048401,
-0.24608755111694336,
0.6821057200431824,
0.41543328762054443,
-0.8769606351852417,
0.08262564986944199,
-0.95838463306427,
0.5112293362617493,
-0.01097889244556427,
-0.42841383814811707,
0.2814596891403198,
0.5800025463104248,
1.34961998462677,
0.018642472103238106,
0.24955245852470398,
1.3082726001739502,
-1.3171911239624023,
1.517846941947937,
-0.7470980882644653,
0.20111703872680664,
-2.479950189590454,
1.4378877878189087,
-0.7484611868858337,
1.7442538738250732,
-2.749030828475952,
0.39831432700157166,
-0.46500465273857117,
-0.3520207405090332,
0.3262825608253479,
-0.42798084020614624,
-0.021820656955242157,
-0.22322207689285278,
-1.0845556259155273,
-0.08044909685850143,
-0.72471022605896,
0.6792182922363281,
1.261952519416809,
1.380374550819397,
-1.007811188697815,
-0.16243377327919006,
-1.9958906173706055,
-0.09960295259952545,
-0.7298560738563538,
0.41930994391441345,
-2.0440423488616943,
-0.11105885356664658,
-1.9574837684631348,
-2.2577574253082275,
-1.323590636253357,
-0.8230446577072144,
0.8997948169708252,
0.22023257613182068,
-0.9651012420654297,
1.0375195741653442,
-0.30206215381622314,
-1.7093673944473267,
0.9992765784263611,
-2.101489782333374
] |
https://github.com/huggingface/datasets/issues/4634 | Can't load the Hausa audio dataset | Could you provide the error details. It is difficult to debug otherwise. Also try other config. `ha` is not a valid. | common_voice_train = load_dataset("common_voice", "ha", split="train+validation") | 660 | 21 | Can't load the Hausa audio dataset
common_voice_train = load_dataset("common_voice", "ha", split="train+validation")
Could you provide the error details. It is difficult to debug otherwise. Also try other config. `ha` is not a valid. | [
-1.2491031885147095,
-0.9738444685935974,
-0.6318951845169067,
1.5521018505096436,
-0.3308950364589691,
-1.0979636907577515,
0.266561359167099,
-0.970335066318512,
1.6619983911514282,
-0.7902001142501831,
0.495015025138855,
-1.7006142139434814,
-0.09216558188199997,
-0.5803862810134888,
-0.6510643362998962,
-0.9446091055870056,
-0.5377343893051147,
-0.4626452922821045,
0.9877731800079346,
2.3748090267181396,
1.1158243417739868,
-1.2031465768814087,
2.76385235786438,
0.5748597979545593,
-0.05571784824132919,
-1.1529531478881836,
0.6516667008399963,
-0.012254226952791214,
-1.2146332263946533,
-0.46604129672050476,
-1.1321864128112793,
-0.0931168720126152,
-0.5137190222740173,
-0.5498897433280945,
-0.07191682606935501,
0.3460597097873688,
-0.329653799533844,
-0.5520883798599243,
-0.5844444036483765,
-0.8845787048339844,
0.4078173339366913,
-0.458788126707077,
0.977078378200531,
-0.5824910402297974,
1.8527805805206299,
-0.4194542467594147,
0.5145578980445862,
0.8551763296127319,
1.3934869766235352,
0.4303731918334961,
0.09044656902551651,
0.3057633638381958,
0.39415937662124634,
-0.12117142975330353,
0.5542396306991577,
1.029448390007019,
0.4198838472366333,
0.7464858293533325,
0.7588608860969543,
-2.120685338973999,
1.4804542064666748,
-1.123188853263855,
0.1702432483434677,
1.3799729347229004,
-1.0127147436141968,
0.47632285952568054,
-1.7766144275665283,
-0.06833789497613907,
0.5713774561882019,
-2.0861265659332275,
0.46038100123405457,
-1.317409634590149,
-0.6446208953857422,
0.9937788844108582,
0.48509281873703003,
-1.2140238285064697,
0.015146932564675808,
-0.16510187089443207,
0.8891938328742981,
0.536117672920227,
1.0857702493667603,
-1.5048819780349731,
0.17477861046791077,
-0.37743693590164185,
0.18225422501564026,
-1.2671376466751099,
-1.5305933952331543,
0.8255406618118286,
0.5859971642494202,
0.6446086764335632,
-0.16449540853500366,
0.9607943296432495,
-0.9714006185531616,
0.9864394664764404,
-1.093545913696289,
-1.5009936094284058,
-1.4575551748275757,
-2.3054957389831543,
-2.386723041534424,
0.8019839525222778,
-0.5287396907806396,
-0.4756717383861542,
2.0126919746398926,
-1.1411406993865967,
-1.5798146724700928,
1.1901113986968994,
0.028245437890291214,
0.04943528771400452,
2.529390335083008,
0.16818241775035858,
-0.7062069773674011,
0.43179404735565186,
-0.9025689959526062,
0.9914695620536804,
-0.32513487339019775,
1.4566459655761719,
0.44717371463775635,
-0.9373264908790588,
1.7562872171401978,
-0.37700989842414856,
0.6232571005821228,
-0.5039022564888,
-0.8153472542762756,
-0.65192049741745,
0.17609532177448273,
1.9436382055282593,
-0.2510117292404175,
1.641523003578186,
-0.42766979336738586,
-1.563111662864685,
-1.6347765922546387,
0.9402812123298645,
0.4554080367088318,
-0.765630304813385,
0.10029229521751404,
-0.16963575780391693,
0.27506735920906067,
0.03306432068347931,
1.261184811592102,
1.501876711845398,
0.8800215721130371,
-0.21555989980697632,
-0.8170253038406372,
-0.031397756189107895,
0.00372985377907753,
-0.915555477142334,
-1.6142480373382568,
-0.49376365542411804,
-0.08321620523929596,
0.6960897445678711,
-1.1393455266952515,
1.7515697479248047,
1.0509042739868164,
1.7704213857650757,
1.0133917331695557,
-0.2705196738243103,
1.4765275716781616,
0.10082544386386871,
1.7453309297561646,
-0.47949108481407166,
0.3890301585197449,
-0.2870554029941559,
-1.0524752140045166,
0.6467031240463257,
-0.1495998352766037,
-1.960073709487915,
-0.9326454401016235,
-0.7978119254112244,
-0.18862855434417725,
-0.6620542407035828,
0.9092739820480347,
-0.4004182815551758,
-1.4252911806106567,
0.3093196749687195,
-0.6269249320030212,
0.030500654131174088,
-1.2527999877929688,
0.4231722056865692,
0.46547964215278625,
-0.848686158657074,
0.13283543288707733,
-0.045868340879678726,
-1.277021884918213,
-0.5403186678886414,
0.24967481195926666,
2.0798919200897217,
-0.761963963508606,
0.7081087231636047,
0.9322949647903442,
-0.7852293848991394,
-0.19749093055725098,
0.3956754505634308,
-0.02972276508808136,
0.5181330442428589,
-1.0855265855789185,
-0.6721826791763306,
1.241347312927246,
-0.22204166650772095,
-0.6702396273612976,
1.4840244054794312,
0.7107691168785095,
-1.1490288972854614,
-0.1443367451429367,
-0.14150086045265198,
-0.7182498574256897,
-0.06004245951771736,
-1.484933614730835,
-0.2485308051109314,
0.43555548787117004,
-1.357088565826416,
-0.6930006146430969,
-0.19072484970092773,
1.1886259317398071,
-0.09025616198778152,
1.3554821014404297,
-0.39670759439468384,
-0.283017098903656,
-0.2838733196258545,
-0.4884386360645294,
0.10063906759023666,
-0.29723721742630005,
-0.482291042804718,
0.13809120655059814,
-0.8863892555236816,
0.3409174680709839,
1.5149651765823364,
0.2963370382785797,
0.014848698861896992,
0.5169743895530701,
1.1062391996383667,
0.4382772147655487,
0.00609524454921484,
-0.9465518593788147,
-1.241528034210205,
1.841794729232788,
-1.352517008781433,
2.0455315113067627,
0.6137270927429199,
-0.13586053252220154,
-1.7413299083709717,
-1.8546615839004517,
1.1386064291000366,
1.230485200881958,
2.166905641555786,
0.4977259635925293,
0.24516887962818146,
-0.8901033997535706,
-0.8002080321311951,
0.3599512577056885,
-0.9911171197891235,
-0.6937636137008667,
0.19475752115249634,
2.3714025020599365,
1.7256388664245605,
-0.5628671050071716,
-0.06528208404779434,
-1.052004337310791,
1.368416428565979,
-0.20941802859306335,
0.18077008426189423,
1.9962234497070312,
-0.41900038719177246,
-1.244265079498291,
1.2509177923202515,
-2.154909133911133,
0.11255618184804916,
1.99627685546875,
0.3673175275325775,
0.08722575008869171,
-1.399201512336731,
-0.766859769821167,
-0.26542356610298157,
-0.5133943557739258,
-1.3190295696258545,
0.576761782169342,
-0.35922855138778687,
-0.8074686527252197,
-1.286024808883667,
0.08325699716806412,
-1.0835834741592407,
-1.5626578330993652,
0.3749300241470337,
2.0523297786712646,
1.9362164735794067,
-0.7234153151512146,
1.437808632850647,
-0.20318840444087982,
-0.05128834769129753,
1.360069990158081,
1.1907776594161987,
3.043017864227295,
1.955028772354126,
-1.1923086643218994,
0.7801889181137085,
-0.1270049661397934,
-0.3989829421043396,
1.1259946823120117,
-1.1392661333084106,
1.2466027736663818,
-0.23103849589824677,
-1.2019423246383667,
-1.1659252643585205,
0.8362718820571899,
0.44043123722076416,
0.01526713278144598,
-0.3864971399307251,
1.3246197700500488,
0.248005673289299,
1.4498136043548584,
0.6223505735397339,
-0.35186707973480225,
0.798895537853241,
-0.25481027364730835,
-0.43820294737815857,
1.5732802152633667,
0.22690093517303467,
-1.5583971738815308,
-2.2335503101348877,
-0.24456468224525452,
-0.9064661860466003,
-0.0144156813621521,
-0.5538634657859802,
-0.9740778207778931,
1.9097539186477661,
0.3549153506755829,
-1.3533072471618652,
-0.2866635322570801,
-0.45273956656455994,
-0.575335681438446,
2.912114381790161,
-1.305782437324524,
-0.261823832988739,
-0.9283414483070374,
-0.7084976434707642,
1.7476762533187866,
-1.1889818906784058,
-0.12581947445869446,
-1.1740612983703613,
-0.48814839124679565,
-1.3269292116165161,
-0.4728299081325531,
0.16512249410152435,
-0.8078475594520569,
0.7984340190887451,
0.1323622614145279,
-1.0877113342285156,
-0.4548262357711792,
-0.8733935356140137,
0.8795883059501648,
-0.05724440515041351,
0.2349197119474411,
1.9374868869781494,
0.2680392861366272,
-0.4413222670555115,
0.6246235370635986,
1.0918830633163452,
0.4086856544017792,
-0.5742478966712952,
0.3042042851448059,
-0.6196234226226807,
0.5523670315742493,
-1.2256451845169067,
0.1571396142244339,
-2.975181818008423,
0.576899528503418,
-0.12662263214588165,
-0.12621726095676422,
-0.11448387056589127,
-1.301033616065979,
1.1777225732803345,
2.585526943206787,
-1.1265736818313599,
0.5570474863052368,
0.2736663520336151,
1.1612446308135986,
-1.6989789009094238,
0.37400051951408386,
-0.4673292934894562,
1.9892151355743408,
0.19483229517936707,
1.0528457164764404,
-0.509634792804718,
-2.208190679550171,
0.7247831225395203,
-1.160489559173584,
-1.177486777305603,
0.7273054122924805,
-0.9463147521018982,
0.13037247955799103,
-1.2697546482086182,
-0.17818088829517365,
-0.8675184845924377,
-1.1488032341003418,
0.8318194150924683,
0.4066941738128662,
0.39444446563720703,
-0.5156455039978027,
0.39327332377433777,
-2.3513498306274414,
-1.382314920425415,
-0.27555474638938904,
-0.8309104442596436,
0.6824427247047424,
-0.4435977339744568,
0.6570128798484802,
-0.2584781348705292,
0.03913257271051407,
0.36075085401535034,
1.5079978704452515,
3.3295347690582275,
0.04211319983005524,
0.22736798226833344,
-0.2423921525478363,
-0.9408695697784424,
1.6400500535964966,
0.9292990565299988,
-0.08307037502527237,
-0.5691105723381042,
-1.1183046102523804,
1.208316683769226,
1.907698631286621,
0.9327148795127869,
0.00849731732159853,
-0.8330560326576233,
-0.5200687646865845,
-0.05442219600081444,
0.16232973337173462,
0.37244442105293274,
0.9726510643959045,
-0.0034647826105356216,
-0.013899777084589005,
1.3620235919952393,
1.3192569017410278,
-0.3036586344242096,
0.21444587409496307,
-0.9546526074409485,
-0.45792296528816223,
0.4975910186767578,
0.2772553265094757,
-0.09807318449020386,
0.3259739577770233,
-0.8445925116539001,
-0.2514948546886444,
-0.1878603845834732,
-0.9347109198570251,
-0.6995945572853088,
-0.3774302303791046,
-0.5178314447402954,
1.53790283203125,
0.14543910324573517,
-0.7547780871391296,
-0.02524707466363907,
-0.8386450409889221,
-0.08662448078393936,
-1.0551773309707642,
0.17511990666389465,
-0.013138798996806145,
-0.18247516453266144,
-0.27732905745506287,
1.6870625019073486,
-1.0328283309936523,
-2.1210854053497314,
0.2567659914493561,
0.26446467638015747,
-0.13756640255451202,
0.27871495485305786,
1.556633472442627,
0.5212103128433228,
1.3201043605804443,
1.3057500123977661,
0.8144774436950684,
-0.6938755512237549,
-1.2849308252334595,
0.5086190700531006,
0.830390214920044,
-1.3763483762741089,
0.804585874080658,
-0.1011313945055008,
-0.42217639088630676,
0.6406819820404053,
1.0536932945251465,
0.5370380878448486,
-1.8159137964248657,
0.8339859843254089,
-0.8273834586143494,
0.7783300280570984,
0.6677412986755371,
0.7438176274299622,
0.22608596086502075,
0.9240807890892029,
-0.9761152267456055,
-1.1945297718048096,
-0.6364781260490417,
-0.7403092384338379,
1.992915391921997,
-0.4200661778450012,
0.6072811484336853,
-0.29838815331459045,
-1.1275413036346436,
-0.006274928338825703,
0.6746575832366943,
0.43508195877075195,
-0.5194277167320251,
0.4967849850654602,
-0.7154852151870728,
-1.1633574962615967,
-1.429516315460205,
-0.4641602635383606,
-1.0580095052719116,
-0.963437557220459,
1.1225796937942505,
0.8328061699867249,
0.41692039370536804,
1.9877549409866333,
0.5408910512924194,
0.35187870264053345,
-2.5855612754821777,
0.9200761318206787,
0.20445339381694794,
0.03913474082946777,
0.8908485174179077,
0.441191703081131,
0.8829893469810486,
-0.1074739471077919,
0.5341624617576599,
-2.359297275543213,
2.4226768016815186,
-0.45993736386299133,
0.8983141779899597,
0.0659574419260025,
-0.02176208794116974,
1.0383244752883911,
0.6019752621650696,
0.5018022656440735,
-1.1356215476989746,
0.5483191609382629,
-0.41607916355133057,
1.2973878383636475,
1.037768840789795,
-0.7500650882720947,
0.032498881220817566,
1.3370699882507324,
0.4849635362625122,
-0.4897949993610382,
-0.977020263671875,
-0.7900359630584717,
0.8391054272651672,
1.638755202293396,
-0.10054098814725876,
0.08630143851041794,
0.8913359642028809,
0.5755326747894287,
-1.2372140884399414,
-0.09429270029067993,
-0.7619147300720215,
-0.8278152942657471,
1.5850645303726196,
2.076033115386963,
-0.114608034491539,
-0.2462131232023239,
-0.7249324321746826,
-1.3207560777664185,
0.7658966779708862,
0.07487596571445465,
0.19068796932697296,
0.6848124861717224,
-0.6448935866355896,
1.0955886840820312,
0.7093145251274109,
0.8532431125640869,
0.25023362040519714,
0.4733964502811432,
0.6270704865455627,
-0.23222242295742035,
-1.2011233568191528,
-0.2348741888999939,
-1.1010217666625977,
-2.623617649078369,
0.4154648184776306,
-0.37620246410369873,
-1.4644819498062134,
-0.09634549170732498,
-1.1170034408569336,
0.8706124424934387,
-0.4932155907154083,
-1.031245470046997,
-1.4069222211837769,
0.07973375916481018,
0.1593438982963562,
0.8803457021713257,
-1.821381688117981,
-0.211339071393013,
1.3251357078552246,
0.979992151260376,
-0.795710027217865,
0.9857252836227417,
0.28957927227020264,
1.144614338874817,
0.7255884408950806,
-0.42007628083229065,
0.6220632791519165,
-0.1551487296819687,
-1.4961320161819458,
0.3811744451522827,
1.2395045757293701,
0.07346879690885544,
1.644322156906128,
-0.4883684813976288,
0.12664838135242462,
0.5860572457313538,
-0.7170523405075073,
-0.6624687910079956,
-0.5406862497329712,
0.5275801420211792,
-0.12521059811115265,
-0.9830401539802551,
-0.147338405251503,
-0.01016018632799387,
-0.1264439970254898,
0.09270640462636948,
-1.2114531993865967,
-0.23185858130455017,
-0.4370498061180115,
-0.47496455907821655,
-1.1800605058670044,
-0.3341038227081299,
1.317168951034546,
-0.6369055509567261,
-0.17594140768051147,
0.4018552005290985,
0.3026021718978882,
0.5971277356147766,
0.44886502623558044,
-0.7836872935295105,
-0.3087880313396454,
-0.19880816340446472,
-0.24813054502010345,
0.4253966510295868,
1.542987585067749,
-0.28854769468307495,
-1.0126588344573975,
0.6845136880874634,
-0.18516813218593597,
0.1841438114643097,
2.053161382675171,
0.07985879480838776,
-0.646700918674469,
0.2182939052581787,
-0.8802319765090942,
1.9457615613937378,
1.6714808940887451,
1.3342201709747314,
-0.11324398964643478,
-0.9603776931762695,
0.6401082873344421,
-0.47497114539146423,
-0.40598374605178833,
0.668186604976654,
0.2888442277908325,
-0.25503841042518616,
-1.2638648748397827,
0.7894193530082703,
1.083566665649414,
-0.7339895367622375,
-0.7793967127799988,
-0.014328631572425365,
-0.7232585549354553,
0.9617372155189514,
0.6471086144447327,
0.46340489387512207,
0.39066123962402344,
1.6816340684890747,
0.8095577359199524,
-0.4994899332523346,
0.5349764227867126,
0.6120316982269287,
-0.21841318905353546,
-2.173466920852661,
-1.2837862968444824,
0.3615662753582001,
-0.6494210958480835,
-1.6514673233032227,
1.4112985134124756,
-1.0858323574066162,
-1.2896065711975098,
0.5953823924064636,
0.2110031247138977,
1.4109447002410889,
0.44340550899505615,
1.5248912572860718,
1.7973747253417969,
0.9050266742706299,
0.5217085480690002,
1.4243967533111572,
-0.14318591356277466,
-0.45317724347114563,
1.9129902124404907,
-0.41094765067100525,
0.3613569438457489,
1.0140330791473389,
-0.2044818103313446,
-1.2022879123687744,
-0.8437070250511169,
-1.3167669773101807,
-0.8844819068908691,
1.1449780464172363,
0.08471259474754333,
-1.1880083084106445,
0.19733189046382904,
1.5475596189498901,
-0.09624522179365158,
-0.41414234042167664,
0.5770626664161682,
0.29984357953071594,
-0.7467353343963623,
0.10087548941373825,
-1.0211228132247925,
0.5046055316925049,
-0.26254040002822876,
-0.5798438787460327,
0.1305869221687317,
0.4482647180557251,
1.4279240369796753,
-0.06683714687824249,
0.1751047968864441,
1.2364505529403687,
-1.3828386068344116,
1.4605365991592407,
-0.6844847202301025,
0.23576290905475616,
-2.3175876140594482,
1.3815810680389404,
-0.7085767984390259,
1.7994129657745361,
-2.8343429565429688,
0.6355654001235962,
-0.41259366273880005,
-0.5467147827148438,
0.18460361659526825,
-0.36992186307907104,
0.20714706182479858,
-0.07965310662984848,
-0.9936506152153015,
0.27718567848205566,
-0.5725990533828735,
0.5760365724563599,
0.9285017251968384,
1.4047119617462158,
-1.0633069276809692,
-0.1998376101255417,
-1.7291874885559082,
0.009835758246481419,
-0.8164868354797363,
0.31643548607826233,
-2.178096055984497,
-0.23782512545585632,
-1.849596619606018,
-2.2071077823638916,
-1.1456009149551392,
-0.7276581525802612,
1.2284754514694214,
0.20515145361423492,
-0.9096626043319702,
1.2616673707962036,
-0.4008864760398865,
-1.8846282958984375,
1.219354271888733,
-1.9914703369140625
] |
https://github.com/huggingface/datasets/issues/4632 | 'sort' method sorts one column only | Hi ! `ds.sort()` does sort the full dataset, not just one column:
```python
from datasets import *
ds = Dataset.from_dict({"foo": [3, 2, 1], "bar": ["c", "b", "a"]})
print(d.sort("foo").to_pandas()
# foo bar
# 0 1 a
# 1 2 b
# 2 3 c
```
What made you think it was not the case ? Did you experience a situation where it was only sorting one column ? | The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order. | 661 | 67 | 'sort' method sorts one column only
The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order.
Hi ! `ds.sort()` does sort the full dataset, not just one column:
```python
from datasets import *
ds = Dataset.from_dict({"foo": [3, 2, 1], "bar": ["c", "b", "a"]})
print(d.sort("foo").to_pandas()
# foo bar
# 0 1 a
# 1 2 b
# 2 3 c
```
What made you think it was not the case ? Did you experience a situation where it was only sorting one column ? | [
-1.2558245658874512,
-0.8626922965049744,
-0.9278170466423035,
1.4287548065185547,
-0.19045057892799377,
-1.2907931804656982,
0.14166174829006195,
-1.0843441486358643,
1.6843295097351074,
-0.7864481806755066,
0.37121450901031494,
-1.650156021118164,
0.03878963738679886,
-0.625278890132904,
-0.6949982047080994,
-0.925612211227417,
-0.38724610209465027,
-0.7696917057037354,
1.0677740573883057,
2.547028064727783,
1.0638501644134521,
-1.2695410251617432,
2.6695363521575928,
0.7662345767021179,
-0.07806263118982315,
-0.9394015669822693,
0.5352009534835815,
-0.11674296110868454,
-1.178781509399414,
-0.5190012454986572,
-1.089675784111023,
-0.07509857416152954,
-0.5093128085136414,
-0.5613119602203369,
-0.05534633994102478,
0.40054458379745483,
-0.3833197057247162,
-0.39037829637527466,
-0.5184832811355591,
-0.7931457757949829,
0.4125553369522095,
-0.494854599237442,
0.9593261480331421,
-0.44155943393707275,
1.8542988300323486,
-0.449410080909729,
0.4290574789047241,
0.6516405344009399,
1.3655633926391602,
0.23215121030807495,
0.005715944804251194,
0.4738233983516693,
0.36427778005599976,
-0.11013206094503403,
0.4503193497657776,
1.1108598709106445,
0.6189549565315247,
0.513849139213562,
0.7719366550445557,
-2.237699508666992,
1.2007142305374146,
-1.1502577066421509,
0.2763059139251709,
1.4468661546707153,
-0.9306663870811462,
0.43433475494384766,
-1.7481426000595093,
0.05575547739863396,
0.5392823219299316,
-2.3447840213775635,
0.27782630920410156,
-1.2986464500427246,
-0.536156177520752,
1.0342512130737305,
0.4500337839126587,
-1.3190115690231323,
0.03710854426026344,
-0.3613693416118622,
0.9675615429878235,
0.47259679436683655,
1.069157361984253,
-1.656569242477417,
-0.015165042132139206,
-0.35538023710250854,
0.00043981336057186127,
-1.3298993110656738,
-1.4231007099151611,
0.6359930038452148,
0.4940713346004486,
0.5409965515136719,
-0.06165507808327675,
1.069584846496582,
-1.0077996253967285,
0.7768014073371887,
-0.9599032998085022,
-1.7086275815963745,
-1.5983681678771973,
-2.232975482940674,
-2.2064616680145264,
0.8005176186561584,
-0.5058397054672241,
-0.5379500985145569,
1.9942492246627808,
-0.9692850112915039,
-1.665305256843567,
1.2554258108139038,
0.33743399381637573,
-0.019797157496213913,
2.4325199127197266,
0.14326468110084534,
-0.6866450905799866,
0.4483698308467865,
-0.7823853492736816,
0.9060660600662231,
-0.4933076500892639,
1.3827407360076904,
0.4434880316257477,
-0.8722840547561646,
1.586032509803772,
-0.42279818654060364,
0.5733036398887634,
-0.5832993984222412,
-0.5052024722099304,
-0.8979729413986206,
0.46443480253219604,
1.8932747840881348,
-0.30023062229156494,
1.5600248575210571,
-0.36312294006347656,
-1.4865134954452515,
-1.6229724884033203,
0.8953040838241577,
0.4320985674858093,
-0.8386020660400391,
0.1379307210445404,
-0.33420059084892273,
0.2645646035671234,
-0.10351807624101639,
1.200994610786438,
1.3072504997253418,
0.5669422149658203,
-0.2775125503540039,
-0.8905760645866394,
0.29124194383621216,
-0.044486600905656815,
-0.7638093829154968,
-1.6025439500808716,
-0.3973868489265442,
0.18906554579734802,
0.5621178150177002,
-1.2318735122680664,
1.7715567350387573,
0.8144196271896362,
1.8278639316558838,
1.0338053703308105,
-0.231873020529747,
1.5282832384109497,
0.06257279962301254,
1.826550841331482,
-0.635989248752594,
0.6809766888618469,
-0.3869127333164215,
-1.1018106937408447,
0.8236416578292847,
-0.3404720723628998,
-2.0750439167022705,
-0.8404833674430847,
-1.004930853843689,
-0.1417297124862671,
-0.7641037106513977,
0.9837372899055481,
-0.4459584653377533,
-1.2544124126434326,
0.3019346296787262,
-0.7845451235771179,
-0.08141467720270157,
-1.2322219610214233,
0.3548680543899536,
0.7378792762756348,
-0.5950395464897156,
0.04422006756067276,
-0.20054201781749725,
-1.285868525505066,
-0.3127439320087433,
0.176753968000412,
1.9619044065475464,
-0.8089618682861328,
0.8917883038520813,
0.9741238355636597,
-0.8588383793830872,
0.020304787904024124,
0.33836549520492554,
-0.287627249956131,
0.9093621373176575,
-0.9811635613441467,
-0.44960373640060425,
1.2576191425323486,
-0.27766698598861694,
-0.5944117903709412,
1.4092216491699219,
0.7016490697860718,
-0.9686552286148071,
-0.19637377560138702,
-0.17271512746810913,
-0.7907431125640869,
0.07434684783220291,
-1.6003741025924683,
-0.12250180542469025,
0.4099602699279785,
-1.4948652982711792,
-0.5532656908035278,
-0.18834520876407623,
1.1844111680984497,
-0.17509211599826813,
1.3417482376098633,
-0.3933333456516266,
-0.2421455830335617,
-0.44715049862861633,
-0.45249614119529724,
0.11392014473676682,
-0.15255770087242126,
-0.6542098522186279,
0.1546875387430191,
-0.7260972261428833,
0.3737121522426605,
1.3290894031524658,
0.43484267592430115,
0.049063172191381454,
0.7093721628189087,
1.0357729196548462,
0.44684675335884094,
0.0015454022213816643,
-0.8714086413383484,
-1.5318968296051025,
2.019836664199829,
-1.4683328866958618,
1.929058313369751,
0.6822181940078735,
-0.021389879286289215,
-1.693068027496338,
-1.9942295551300049,
1.3526145219802856,
1.1834750175476074,
2.15920090675354,
0.5392258167266846,
0.4232574999332428,
-0.8572864532470703,
-0.7360725402832031,
0.3130814731121063,
-1.102016568183899,
-0.7417591214179993,
0.08936789631843567,
2.3700761795043945,
1.7907767295837402,
-0.4977917969226837,
-0.16822725534439087,
-1.1063190698623657,
1.4775481224060059,
-0.24697242677211761,
0.27422383427619934,
1.872046947479248,
-0.29948556423187256,
-1.0740717649459839,
1.2057241201400757,
-2.281529188156128,
0.020952962338924408,
2.0578806400299072,
0.2988022565841675,
0.012809605337679386,
-1.3003538846969604,
-0.6441671848297119,
-0.24115116894245148,
-0.40840744972229004,
-1.2985899448394775,
0.5049230456352234,
-0.18993613123893738,
-0.7938271760940552,
-1.4521377086639404,
0.12412595003843307,
-1.0668779611587524,
-1.5185561180114746,
0.19620215892791748,
1.94819974899292,
1.9614547491073608,
-0.7754992842674255,
1.5531926155090332,
-0.19238659739494324,
0.23088683187961578,
1.2319345474243164,
1.1956521272659302,
3.159519672393799,
1.9112699031829834,
-1.0544471740722656,
0.5672303438186646,
-0.11356525123119354,
-0.4829776883125305,
1.2685176134109497,
-1.2141735553741455,
1.36246657371521,
0.04226599261164665,
-1.0302597284317017,
-1.224305272102356,
0.7782230973243713,
0.36285465955734253,
0.01277101319283247,
-0.48029080033302307,
1.1826437711715698,
-0.03537072613835335,
1.2920727729797363,
0.5876004099845886,
-0.3423124849796295,
0.5315518379211426,
-0.4520469307899475,
-0.42468026280403137,
1.5682317018508911,
0.18098975718021393,
-1.4214236736297607,
-2.2943146228790283,
-0.1876956671476364,
-0.7942769527435303,
0.06396587193012238,
-0.5568799376487732,
-0.9695239067077637,
1.7088738679885864,
0.3943402171134949,
-1.1904056072235107,
-0.23859675228595734,
-0.4679582417011261,
-0.5798952579498291,
2.826648712158203,
-1.4734315872192383,
-0.29384705424308777,
-1.0214009284973145,
-0.593539297580719,
1.7138789892196655,
-1.1511598825454712,
-0.17063526809215546,
-1.0481175184249878,
-0.4638674259185791,
-1.3303520679473877,
-0.5147178173065186,
-0.052273087203502655,
-0.9983294010162354,
0.8605627417564392,
0.1609969437122345,
-1.1646007299423218,
-0.24511919915676117,
-0.8297231793403625,
0.7885736227035522,
-0.14134801924228668,
0.17248305678367615,
1.9785023927688599,
0.41605812311172485,
-0.24655528366565704,
0.7544689178466797,
1.1813827753067017,
0.583335280418396,
-0.48656389117240906,
0.2613691985607147,
-0.6772807240486145,
0.43097373843193054,
-1.2834237813949585,
0.23201993107795715,
-2.8073055744171143,
0.49561038613319397,
-0.17338527739048004,
-0.20576412975788116,
-0.005822358652949333,
-1.3659939765930176,
1.159717321395874,
2.5854039192199707,
-1.204792857170105,
0.45289361476898193,
0.17351652681827545,
1.2748713493347168,
-1.6725943088531494,
0.3101668953895569,
-0.4457789361476898,
2.0930190086364746,
0.11773522943258286,
1.1423405408859253,
-0.5245112776756287,
-2.2971489429473877,
0.7015079855918884,
-1.2636648416519165,
-1.255622148513794,
0.7041558027267456,
-0.9210199117660522,
0.10171496123075485,
-1.4405649900436401,
-0.2584058940410614,
-0.7640792727470398,
-1.2321642637252808,
0.8023781776428223,
0.07421334832906723,
0.3734404146671295,
-0.5764021873474121,
0.3355925977230072,
-2.272017478942871,
-1.4891287088394165,
-0.22523513436317444,
-0.9236423373222351,
0.5287371873855591,
-0.3040625751018524,
0.736694872379303,
-0.27766305208206177,
0.03844371438026428,
0.30849364399909973,
1.4733552932739258,
3.45707631111145,
0.22204072773456573,
0.39810532331466675,
-0.1518075168132782,
-0.8971036672592163,
1.528725028038025,
1.005169153213501,
-0.020553376525640488,
-0.5952454805374146,
-1.0755667686462402,
1.3264501094818115,
1.9420900344848633,
1.0212184190750122,
0.09837566316127777,
-0.775787889957428,
-0.6532189846038818,
-0.11189001798629761,
0.1544007807970047,
0.33900535106658936,
0.917487621307373,
0.0658373311161995,
0.1002955511212349,
1.5965794324874878,
1.2333896160125732,
-0.42610228061676025,
0.396827757358551,
-0.7718332409858704,
-0.4896959364414215,
0.6036405563354492,
0.3002449572086334,
-0.07512594759464264,
0.3964574933052063,
-0.845116913318634,
-0.34751781821250916,
-0.32030048966407776,
-0.8974594473838806,
-0.7169581055641174,
-0.37252330780029297,
-0.258788138628006,
1.6357098817825317,
0.1749289333820343,
-0.5824183821678162,
-0.1424604207277298,
-0.8725296258926392,
-0.10640108585357666,
-1.0212880373001099,
0.14032235741615295,
-0.14351880550384521,
-0.25123995542526245,
-0.14548930525779724,
1.7051109075546265,
-0.9953886866569519,
-2.0911998748779297,
0.13354642689228058,
0.31382617354393005,
-0.209944948554039,
0.16441309452056885,
1.580378532409668,
0.5318759083747864,
1.4772870540618896,
1.289096474647522,
0.8950310945510864,
-0.661919355392456,
-1.339369535446167,
0.6776473522186279,
0.884711742401123,
-1.3472837209701538,
0.7583291530609131,
-0.0028385771438479424,
-0.534860372543335,
0.5322335362434387,
1.150814414024353,
0.5060110092163086,
-1.8323956727981567,
0.8077080249786377,
-0.9915333390235901,
0.8650550246238708,
0.7161124348640442,
0.7600519061088562,
0.3819880783557892,
0.8871629238128662,
-1.1881308555603027,
-1.2364835739135742,
-0.791218638420105,
-0.7155981659889221,
2.0081520080566406,
-0.26524150371551514,
0.7911089658737183,
-0.22405502200126648,
-1.2967807054519653,
-0.1191590428352356,
0.6247666478157043,
0.42511600255966187,
-0.41016897559165955,
0.857544481754303,
-0.7636539340019226,
-1.0589321851730347,
-1.53096604347229,
-0.4996602237224579,
-1.0254979133605957,
-0.9221440553665161,
1.039241909980774,
0.8210309743881226,
0.19553610682487488,
1.9634934663772583,
0.6694843769073486,
0.2920326590538025,
-2.5705313682556152,
1.0114792585372925,
0.28603166341781616,
-0.06516250967979431,
0.7965972423553467,
0.45195844769477844,
1.062375545501709,
-0.2005641758441925,
0.4207444190979004,
-2.316696882247925,
2.2776854038238525,
-0.23633351922035217,
0.7815589308738708,
-0.010754093527793884,
-0.06789063662290573,
1.1442700624465942,
0.5234335064888,
0.5354229807853699,
-1.02877676486969,
0.6120409369468689,
-0.5772805213928223,
1.3887693881988525,
1.1061631441116333,
-0.7785718441009521,
-0.0416923388838768,
1.4900965690612793,
0.4808049499988556,
-0.5854354500770569,
-0.9863457679748535,
-0.9208965301513672,
0.9665915369987488,
1.7156850099563599,
-0.06810586899518967,
0.02416902408003807,
0.8439544439315796,
0.5642961263656616,
-1.2130298614501953,
0.04199846833944321,
-0.8451070785522461,
-0.7827728986740112,
1.7017004489898682,
2.119837999343872,
-0.20841661095619202,
-0.2660711407661438,
-0.6327678561210632,
-1.334560751914978,
0.6486363410949707,
0.08032975345849991,
0.09563671797513962,
0.7324156165122986,
-0.6664580702781677,
1.0399736166000366,
0.9823798537254333,
0.9184285998344421,
0.22575919330120087,
0.3374174237251282,
0.4430270195007324,
-0.3067154586315155,
-1.1483876705169678,
-0.27355828881263733,
-1.0490977764129639,
-2.5715227127075195,
0.39103418588638306,
-0.31858348846435547,
-1.2768901586532593,
0.0233093723654747,
-0.9790363907814026,
1.016977310180664,
-0.5490772724151611,
-1.0625965595245361,
-1.5094856023788452,
0.14793692529201508,
0.027049966156482697,
0.9192202687263489,
-1.646445870399475,
-0.20997421443462372,
1.2781389951705933,
0.9702959656715393,
-0.7301661372184753,
0.9289543628692627,
0.16316825151443481,
1.0875985622406006,
0.7480652332305908,
-0.4557931125164032,
0.4861081540584564,
-0.14475607872009277,
-1.3562822341918945,
0.6178014874458313,
1.121762752532959,
0.12258592993021011,
1.4516035318374634,
-0.5462712049484253,
0.030715249478816986,
0.4383102059364319,
-0.49885907769203186,
-0.37628984451293945,
-0.5581738352775574,
0.6866215467453003,
0.1280335634946823,
-0.8626857399940491,
0.06800571829080582,
-0.02379067987203598,
-0.31001192331314087,
0.15087203681468964,
-1.4528472423553467,
-0.1055566743016243,
-0.27989763021469116,
-0.6190489530563354,
-1.1892964839935303,
-0.11894560605287552,
1.3265743255615234,
-0.7736610770225525,
-0.12973758578300476,
0.5156630277633667,
0.3158774673938751,
0.4608345031738281,
0.5712509155273438,
-0.7001863718032837,
-0.3242725729942322,
-0.1697131097316742,
-0.33519309759140015,
0.2981972098350525,
1.2734642028808594,
-0.2271631807088852,
-1.1098741292953491,
0.6996403932571411,
-0.15692020952701569,
0.01024188194423914,
1.7527037858963013,
0.043998029083013535,
-0.8485696315765381,
0.19423848390579224,
-0.6733958125114441,
1.8618988990783691,
1.6459184885025024,
1.2850040197372437,
-0.1878739297389984,
-0.8406722545623779,
0.7255136370658875,
-0.3118686378002167,
-0.4231575131416321,
0.749039351940155,
0.32897892594337463,
-0.26059067249298096,
-1.4705854654312134,
0.7914617657661438,
1.2043591737747192,
-0.9768797755241394,
-0.8241404891014099,
0.07082165032625198,
-0.8695639371871948,
1.0914934873580933,
0.6987357139587402,
0.4050789177417755,
0.32425373792648315,
1.8358339071273804,
0.7337984442710876,
-0.4587704539299011,
0.4509173631668091,
0.6097244620323181,
-0.16325430572032928,
-2.2361152172088623,
-1.1690099239349365,
0.3235078454017639,
-0.5429906845092773,
-1.5209681987762451,
1.4098153114318848,
-1.0355041027069092,
-0.8803713917732239,
0.6329761147499084,
0.1201375350356102,
1.5300335884094238,
0.3451697528362274,
1.4572080373764038,
1.9836770296096802,
0.8031934499740601,
0.4215710461139679,
1.2558494806289673,
-0.15787112712860107,
-0.35286054015159607,
1.7609460353851318,
-0.3784531354904175,
0.5515164732933044,
0.9866125583648682,
-0.35650986433029175,
-1.0880674123764038,
-0.6710919141769409,
-1.33401358127594,
-0.767465353012085,
1.107936143875122,
0.13706183433532715,
-1.0913448333740234,
0.2076544612646103,
1.5003191232681274,
0.09242959320545197,
-0.3439245820045471,
0.5788760781288147,
0.5407079458236694,
-0.8027695417404175,
0.00033398717641830444,
-0.8415718078613281,
0.6025234460830688,
-0.14448440074920654,
-0.3287582993507385,
0.3483550250530243,
0.4016389846801758,
1.4902782440185547,
-0.07882143557071686,
0.16347700357437134,
0.9916963577270508,
-1.4049583673477173,
1.562294602394104,
-0.6498454809188843,
0.16631636023521423,
-2.31866455078125,
1.420190691947937,
-0.7576537132263184,
1.9580800533294678,
-2.5967063903808594,
0.4422353506088257,
-0.5614762902259827,
-0.4169405996799469,
0.34893476963043213,
-0.4343113601207733,
0.13316528499126434,
-0.09084685891866684,
-1.2260924577713013,
0.060861390084028244,
-0.6020281910896301,
0.49597224593162537,
1.0763763189315796,
1.3112727403640747,
-1.0436770915985107,
-0.3447885811328888,
-1.798641562461853,
-0.14245690405368805,
-0.6168037056922913,
0.2844949960708618,
-2.2098331451416016,
-0.3148888945579529,
-1.8457368612289429,
-2.310202121734619,
-1.2544832229614258,
-0.7199269533157349,
1.2478978633880615,
0.0028291773051023483,
-0.8898568749427795,
1.3549232482910156,
-0.27904918789863586,
-1.8364096879959106,
1.1285971403121948,
-2.1248862743377686
] |
https://github.com/huggingface/datasets/issues/4632 | 'sort' method sorts one column only | Hi! thank you for your quick reply!
I wanted to sort the `cnn_dailymail` dataset by the length of the labels (num of characters). I added a new column to the dataset (`ds.add_column`) with the lengths and then sorted by this new column. Only the new length column was sorted, the reset left in their original order. | The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order. | 661 | 56 | 'sort' method sorts one column only
The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order.
Hi! thank you for your quick reply!
I wanted to sort the `cnn_dailymail` dataset by the length of the labels (num of characters). I added a new column to the dataset (`ds.add_column`) with the lengths and then sorted by this new column. Only the new length column was sorted, the reset left in their original order. | [
-1.4077919721603394,
-0.8493636250495911,
-0.9907630681991577,
1.3276782035827637,
-0.26684677600860596,
-1.3527897596359253,
0.1681131273508072,
-1.0336627960205078,
1.7303686141967773,
-0.8492989540100098,
0.31281906366348267,
-1.6762579679489136,
0.0745382159948349,
-0.5612202882766724,
-0.6665263175964355,
-0.9789037108421326,
-0.41742953658103943,
-0.8243756294250488,
1.0885392427444458,
2.4123878479003906,
1.0205848217010498,
-1.3854056596755981,
2.614494800567627,
0.7320542335510254,
-0.050732217729091644,
-0.9432200193405151,
0.4908062815666199,
-0.11401937156915665,
-1.0258848667144775,
-0.5707790851593018,
-1.0918502807617188,
0.03295021876692772,
-0.5819403529167175,
-0.5614885091781616,
0.012204817496240139,
0.3663117587566376,
-0.3225862979888916,
-0.3780099153518677,
-0.34617239236831665,
-0.7086732387542725,
0.4664490818977356,
-0.4414713680744171,
0.8912460207939148,
-0.4651041626930237,
1.8292629718780518,
-0.2888037860393524,
0.3136214017868042,
0.6963290572166443,
1.4634665250778198,
0.06136062741279602,
-0.1918300837278366,
0.45452216267585754,
0.3368191123008728,
-0.030955370515584946,
0.39125674962997437,
1.1417219638824463,
0.5787463784217834,
0.5895624160766602,
0.7508349418640137,
-2.261200189590454,
1.2637578248977661,
-1.1528509855270386,
0.35062649846076965,
1.5048046112060547,
-1.1511162519454956,
0.46092313528060913,
-1.7996406555175781,
0.09615494310855865,
0.5034449696540833,
-2.3288466930389404,
0.12189484387636185,
-1.2073330879211426,
-0.4445022642612457,
0.9897012114524841,
0.27827146649360657,
-1.405570149421692,
0.1480487734079361,
-0.3519958555698395,
1.0997593402862549,
0.6258398294448853,
1.155700445175171,
-1.6745870113372803,
0.053844861686229706,
-0.4073948264122009,
-0.0006557246670126915,
-1.3985661268234253,
-1.4212571382522583,
0.5649407505989075,
0.6648424863815308,
0.44517800211906433,
-0.09918730705976486,
0.9873685240745544,
-0.9169796109199524,
0.8697049021720886,
-0.7989333271980286,
-1.5487886667251587,
-1.5124629735946655,
-2.21805739402771,
-2.2295355796813965,
0.8640227317810059,
-0.5452714562416077,
-0.4430418312549591,
2.0633323192596436,
-1.0457212924957275,
-1.7971000671386719,
1.2448844909667969,
0.3723391592502594,
-0.07715289294719696,
2.305148124694824,
0.0811348408460617,
-0.694719672203064,
0.3026234209537506,
-0.7184509634971619,
0.9604504108428955,
-0.5989366173744202,
1.4025089740753174,
0.5503982305526733,
-0.9195399880409241,
1.6389155387878418,
-0.47531577944755554,
0.5578640103340149,
-0.623328685760498,
-0.6031710505485535,
-1.0046838521957397,
0.5220943689346313,
1.921120285987854,
-0.32659175992012024,
1.5955075025558472,
-0.5032809376716614,
-1.5073037147521973,
-1.5590496063232422,
0.9487205743789673,
0.4762463867664337,
-0.9680350422859192,
0.2142084538936615,
-0.2551739811897278,
0.1936391443014145,
-0.013998234644532204,
1.1324262619018555,
1.2672840356826782,
0.7016207575798035,
-0.25572481751441956,
-0.9753730297088623,
0.24330779910087585,
-0.06653626263141632,
-0.6100202798843384,
-1.6811025142669678,
-0.3521673381328583,
0.1042083352804184,
0.6533412337303162,
-1.1642663478851318,
1.7463449239730835,
0.8640829920768738,
1.826520323753357,
1.0215116739273071,
-0.3606567084789276,
1.587278962135315,
0.08867140114307404,
1.8332881927490234,
-0.6151690483093262,
0.7059795260429382,
-0.33440929651260376,
-1.0940673351287842,
0.8433019518852234,
-0.23331813514232635,
-2.0041704177856445,
-0.750514566898346,
-1.0253868103027344,
-0.1577674299478531,
-0.6983188986778259,
1.0008271932601929,
-0.5282458662986755,
-1.2210170030593872,
0.33963069319725037,
-0.5202744007110596,
0.07691960781812668,
-1.2027287483215332,
0.39326226711273193,
0.8002375364303589,
-0.5684361457824707,
0.05910208076238632,
-0.31769147515296936,
-1.336086392402649,
-0.395170122385025,
0.35551732778549194,
1.8244506120681763,
-0.7561249136924744,
0.9660099744796753,
0.9219242930412292,
-0.8058955073356628,
-0.08584930002689362,
0.23507001996040344,
-0.1882523149251938,
0.9678802490234375,
-0.9824151396751404,
-0.4832300841808319,
1.2874252796173096,
-0.28869232535362244,
-0.5967420339584351,
1.391227126121521,
0.7156057953834534,
-0.9434206485748291,
-0.161176398396492,
-0.2880738079547882,
-0.8829951286315918,
0.09775097668170929,
-1.6596546173095703,
-0.14202840626239777,
0.3797375559806824,
-1.5406527519226074,
-0.5655969977378845,
-0.1498604118824005,
1.2658981084823608,
-0.13656958937644958,
1.478793740272522,
-0.49530699849128723,
-0.29117971658706665,
-0.43359747529029846,
-0.47759926319122314,
0.35412725806236267,
-0.11131733655929565,
-0.6529552340507507,
0.07577217370271683,
-0.7432589530944824,
0.3028862178325653,
1.3538633584976196,
0.3885098993778229,
0.08547802269458771,
0.7767074704170227,
1.0789862871170044,
0.3009713888168335,
0.008473190478980541,
-0.9309105277061462,
-1.4960695505142212,
2.0538675785064697,
-1.4954746961593628,
1.8925325870513916,
0.556094229221344,
0.015095402486622334,
-1.7342863082885742,
-1.8754056692123413,
1.4189780950546265,
1.1918824911117554,
2.100245475769043,
0.5540831089019775,
0.46004390716552734,
-0.8269463181495667,
-0.6728591918945312,
0.2987971603870392,
-1.104440450668335,
-0.870261013507843,
-0.007704539690166712,
2.2650187015533447,
1.7931405305862427,
-0.6283978819847107,
-0.20006050169467926,
-1.0598376989364624,
1.4846004247665405,
-0.20694471895694733,
0.3670893907546997,
1.7998417615890503,
-0.32010361552238464,
-1.123326063156128,
1.1417236328125,
-2.385286569595337,
0.056970760226249695,
2.0554890632629395,
0.3438091576099396,
0.03655870258808136,
-1.476613163948059,
-0.6331700682640076,
-0.008608276024460793,
-0.628102719783783,
-1.4096616506576538,
0.36672443151474,
-0.3613119423389435,
-0.7366234064102173,
-1.3684560060501099,
0.19486111402511597,
-1.0417664051055908,
-1.5309149026870728,
0.19570297002792358,
2.037564277648926,
1.8110804557800293,
-0.6456100344657898,
1.5789694786071777,
-0.14223012328147888,
0.3302798271179199,
1.3160401582717896,
1.0910457372665405,
3.0798003673553467,
1.997875690460205,
-1.0712543725967407,
0.5772454142570496,
-0.054025858640670776,
-0.4124332070350647,
1.1821422576904297,
-1.088013768196106,
1.40982186794281,
0.012733983807265759,
-1.1143003702163696,
-1.231408953666687,
0.7964763641357422,
0.3649781048297882,
0.1148592084646225,
-0.4345380663871765,
1.2911391258239746,
-0.10713861137628555,
1.1945370435714722,
0.5631386041641235,
-0.5786775350570679,
0.532426655292511,
-0.42756927013397217,
-0.4971580505371094,
1.6905837059020996,
0.1362425833940506,
-1.3011364936828613,
-2.2667343616485596,
-0.19080248475074768,
-0.6339107155799866,
0.08543386310338974,
-0.4779813289642334,
-0.8341310620307922,
1.5923599004745483,
0.5331622362136841,
-1.1711052656173706,
-0.28982973098754883,
-0.5460481643676758,
-0.5540785789489746,
2.6857733726501465,
-1.4761366844177246,
-0.3389764428138733,
-0.9223809838294983,
-0.4683605432510376,
1.6655200719833374,
-1.204479455947876,
-0.18511182069778442,
-0.9817938208580017,
-0.46829935908317566,
-1.3791404962539673,
-0.46624860167503357,
-0.13302384316921234,
-0.8578470945358276,
0.8348411321640015,
0.09168438613414764,
-1.0951451063156128,
-0.2523297965526581,
-0.7732003927230835,
0.7082877159118652,
-0.08570273220539093,
0.23002378642559052,
1.9362725019454956,
0.4142495393753052,
-0.26275572180747986,
0.8985393047332764,
1.010035753250122,
0.5588327050209045,
-0.42878958582878113,
0.3019397258758545,
-0.60617595911026,
0.3748525381088257,
-1.2117223739624023,
0.27237364649772644,
-2.927231550216675,
0.5055272579193115,
-0.16745677590370178,
-0.133014976978302,
-0.08393347263336182,
-1.3976836204528809,
1.0246505737304688,
2.552421808242798,
-1.1741195917129517,
0.47828051447868347,
0.17575237154960632,
1.361505389213562,
-1.6453841924667358,
0.3138137757778168,
-0.4523541331291199,
2.1184990406036377,
0.12590990960597992,
1.1800150871276855,
-0.5670400857925415,
-2.377237558364868,
0.5039140582084656,
-1.1609233617782593,
-1.2711944580078125,
0.7789724469184875,
-0.7397085428237915,
-0.010107203386723995,
-1.4854387044906616,
-0.35524389147758484,
-0.8479565382003784,
-1.284409523010254,
0.9438309073448181,
0.2830629050731659,
0.3789392411708832,
-0.6819617748260498,
0.18327993154525757,
-2.285371780395508,
-1.3168503046035767,
-0.10783220827579498,
-0.9104015231132507,
0.432125061750412,
-0.3060297667980194,
0.6656356453895569,
-0.15242327749729156,
0.1201140508055687,
0.1634596884250641,
1.4636163711547852,
3.438230276107788,
0.225280299782753,
0.44428059458732605,
-0.1725543737411499,
-0.7954638004302979,
1.6133193969726562,
1.0574238300323486,
-0.09736384451389313,
-0.6548131108283997,
-1.116482138633728,
1.238071322441101,
1.9100894927978516,
0.8206920027732849,
0.1507899910211563,
-0.7265532612800598,
-0.5972709655761719,
-0.0990590825676918,
0.08811425417661667,
0.5493291020393372,
0.9942424893379211,
0.0002966141328215599,
0.11806277185678482,
1.4408646821975708,
1.1669855117797852,
-0.4490082263946533,
0.4969754219055176,
-0.7193530201911926,
-0.3919063210487366,
0.495735764503479,
0.39548641443252563,
-0.055527184158563614,
0.381274938583374,
-0.8693709373474121,
-0.15774944424629211,
-0.3686792254447937,
-1.0586309432983398,
-0.6094381213188171,
-0.2481471449136734,
-0.30539852380752563,
1.6820647716522217,
0.29628250002861023,
-0.6692520380020142,
-0.17648261785507202,
-0.8598612546920776,
-0.17882192134857178,
-0.9367422461509705,
0.25401750206947327,
-0.18282845616340637,
-0.20014110207557678,
-0.07434629648923874,
1.6493308544158936,
-0.9896108508110046,
-2.2702324390411377,
0.16091220080852509,
0.3150046169757843,
-0.19035542011260986,
0.18162895739078522,
1.5501110553741455,
0.512201726436615,
1.3862422704696655,
1.473130226135254,
0.9011214375495911,
-0.6657182574272156,
-1.4121582508087158,
0.7728797197341919,
0.8470504283905029,
-1.4607404470443726,
0.721137285232544,
0.06827732175588608,
-0.5436501502990723,
0.6670786738395691,
1.1115659475326538,
0.40919229388237,
-2.0667097568511963,
0.9065166711807251,
-0.9896719455718994,
0.859070360660553,
0.6304318904876709,
0.767024576663971,
0.4517156481742859,
1.0013229846954346,
-1.1363308429718018,
-1.3597041368484497,
-0.7498713731765747,
-0.7816862463951111,
1.955978512763977,
-0.23636634647846222,
0.7487643957138062,
-0.1486932635307312,
-1.295181393623352,
-0.21734999120235443,
0.6348457932472229,
0.3974025249481201,
-0.31390997767448425,
0.8870325088500977,
-0.8072932362556458,
-1.1786147356033325,
-1.5796635150909424,
-0.6003362536430359,
-0.984512209892273,
-0.867418646812439,
0.9611852765083313,
0.8500820994377136,
0.09648680686950684,
1.9843236207962036,
0.5550850033760071,
0.13200066983699799,
-2.5920796394348145,
0.8778469562530518,
0.40676748752593994,
0.003155539743602276,
0.8290497064590454,
0.4360707700252533,
1.0217373371124268,
-0.10077683627605438,
0.403417706489563,
-2.314211368560791,
2.24682354927063,
-0.40874767303466797,
0.8697273135185242,
-0.05818064138293266,
-0.13101911544799805,
1.1034973859786987,
0.5428284406661987,
0.7030829787254333,
-1.098447561264038,
0.7033103704452515,
-0.7024741172790527,
1.3622772693634033,
1.1454293727874756,
-0.7954323887825012,
-0.012490561231970787,
1.5143382549285889,
0.4256080985069275,
-0.6378518342971802,
-0.9425355792045593,
-1.0497987270355225,
0.8758043646812439,
1.8547252416610718,
-0.048243198543787,
0.14576157927513123,
0.7243837118148804,
0.5824397206306458,
-1.2603760957717896,
0.1659531593322754,
-0.8352223634719849,
-0.8128300905227661,
1.65031099319458,
1.903001070022583,
-0.16008496284484863,
-0.22266006469726562,
-0.6627633571624756,
-1.3556290864944458,
0.5819051265716553,
0.11810094863176346,
0.11679442971944809,
0.6814831495285034,
-0.7417636513710022,
1.029350757598877,
0.9284713864326477,
0.8345456719398499,
0.14557775855064392,
0.43151694536209106,
0.4351533055305481,
-0.30690914392471313,
-1.1079264879226685,
-0.29897406697273254,
-1.1935768127441406,
-2.6284916400909424,
0.2850099802017212,
-0.33034923672676086,
-1.3255211114883423,
0.060618408024311066,
-0.9827722311019897,
0.8475908041000366,
-0.5631054639816284,
-1.182319164276123,
-1.475990891456604,
0.18649813532829285,
0.03944679722189903,
0.7849375009536743,
-1.6177723407745361,
-0.06827808916568756,
1.2564760446548462,
1.049847960472107,
-0.6845653653144836,
1.1067124605178833,
0.2737487852573395,
1.0475704669952393,
0.7115552425384521,
-0.5015177130699158,
0.3433382213115692,
-0.10817217826843262,
-1.383622646331787,
0.7163928747177124,
1.0215842723846436,
0.05781683325767517,
1.4591385126113892,
-0.6381164789199829,
-0.028910361230373383,
0.5094212293624878,
-0.44372498989105225,
-0.3887419104576111,
-0.597895085811615,
0.7532346844673157,
-0.05040474236011505,
-0.7304525375366211,
0.2603900134563446,
-0.06432449072599411,
-0.3347381353378296,
0.24530062079429626,
-1.4347329139709473,
-0.3028486371040344,
-0.3487575948238373,
-0.4668976962566376,
-1.3190460205078125,
-0.00825260579586029,
1.3373655080795288,
-0.622787356376648,
-0.18041221797466278,
0.5558019280433655,
0.48950833082199097,
0.4771239459514618,
0.596272349357605,
-0.596866250038147,
-0.32648953795433044,
-0.2190801352262497,
-0.2311176210641861,
0.3058725893497467,
1.1467745304107666,
-0.43875399231910706,
-1.0415503978729248,
0.7095740437507629,
-0.11179926246404648,
-0.033214669674634933,
1.7632696628570557,
0.12969762086868286,
-0.7941271066665649,
0.2041502296924591,
-0.7214668393135071,
1.7574204206466675,
1.645024061203003,
1.2427181005477905,
-0.19497808814048767,
-0.8219000697135925,
0.6923742294311523,
-0.36353710293769836,
-0.3190867006778717,
0.8239112496376038,
0.49202704429626465,
-0.19351322948932648,
-1.4339193105697632,
0.7642620205879211,
1.0864439010620117,
-0.9818912744522095,
-0.7773072719573975,
0.005820665508508682,
-0.6845216155052185,
1.0743656158447266,
0.7583910226821899,
0.4506309926509857,
0.23229098320007324,
1.825244426727295,
0.6193937659263611,
-0.4292542636394501,
0.47638413310050964,
0.5121957659721375,
-0.11378056555986404,
-2.2643251419067383,
-1.1107085943222046,
0.285957932472229,
-0.46231594681739807,
-1.669293761253357,
1.388127088546753,
-1.0555018186569214,
-0.9280831217765808,
0.5312469005584717,
0.1458931714296341,
1.5120030641555786,
0.2892657220363617,
1.5042887926101685,
2.012152671813965,
0.905639111995697,
0.3636729419231415,
1.281248927116394,
-0.061141885817050934,
-0.2618134915828705,
1.8931978940963745,
-0.3457843065261841,
0.5436409711837769,
1.1461760997772217,
-0.4703994691371918,
-0.9377058744430542,
-0.6388435363769531,
-1.231220006942749,
-0.5754247307777405,
1.001845359802246,
0.17759783565998077,
-1.1319873332977295,
0.20449112355709076,
1.291567325592041,
0.0750121995806694,
-0.30225497484207153,
0.6013591885566711,
0.6066908240318298,
-0.7158371210098267,
-0.05436987057328224,
-0.8104920387268066,
0.5415578484535217,
-0.3187269866466522,
-0.485186368227005,
0.4965853691101074,
0.37942734360694885,
1.3254046440124512,
-0.08980982005596161,
0.22406825423240662,
1.2266745567321777,
-1.4563156366348267,
1.4240915775299072,
-0.6108072996139526,
0.17575150728225708,
-2.275468587875366,
1.4858102798461914,
-0.6992564797401428,
1.9925146102905273,
-2.5997989177703857,
0.45861437916755676,
-0.6813888549804688,
-0.3929332196712494,
0.5306962132453918,
-0.31961220502853394,
-0.005961499642580748,
-0.12793022394180298,
-1.15635347366333,
0.030171915888786316,
-0.558094322681427,
0.3897732198238373,
1.1179805994033813,
1.2544617652893066,
-1.0723552703857422,
-0.19842593371868134,
-1.758262038230896,
-0.19943977892398834,
-0.5850340127944946,
0.5041751861572266,
-2.4139444828033447,
-0.4212242364883423,
-1.9695249795913696,
-2.343808174133301,
-1.1628692150115967,
-0.842095136642456,
1.2429988384246826,
0.11682393401861191,
-0.8634957075119019,
1.4022220373153687,
-0.23402322828769684,
-1.7230846881866455,
0.9322199821472168,
-2.099628448486328
] |
https://github.com/huggingface/datasets/issues/4623 | Loading MNIST as Pytorch Dataset | Hi ! We haven't implemented the conversion from images data to PyTorch tensors yet I think
cc @mariosasko | ## Describe the bug
Conversion of MNIST dataset to pytorch fails with bug
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("mnist", split="train")
dataset.set_format('torch')
dataset[0]
print()
```
## Expected results
Expect to see torch tensors image and label
## Actual results
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/chapm/PycharmProjects/multiviewdata/multiviewdata/huggingface/mnist.py", line 13, in <module>
dataset[0]
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2154, in __getitem__
return self._getitem(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2139, in _getitem
formatted_output = format_table(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 356, in map_nested
mapped = [
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 357, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 293, in _single_map_nested
return function(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
python-BaseException
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Windows-10-10.0.22579-SP0
- Python version: 3.9.2
- PyArrow version: 8.0.0
- Pandas version: 1.4.1
| 663 | 18 | Loading MNIST as Pytorch Dataset
## Describe the bug
Conversion of MNIST dataset to pytorch fails with bug
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("mnist", split="train")
dataset.set_format('torch')
dataset[0]
print()
```
## Expected results
Expect to see torch tensors image and label
## Actual results
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/chapm/PycharmProjects/multiviewdata/multiviewdata/huggingface/mnist.py", line 13, in <module>
dataset[0]
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2154, in __getitem__
return self._getitem(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2139, in _getitem
formatted_output = format_table(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 356, in map_nested
mapped = [
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 357, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 293, in _single_map_nested
return function(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
python-BaseException
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Windows-10-10.0.22579-SP0
- Python version: 3.9.2
- PyArrow version: 8.0.0
- Pandas version: 1.4.1
Hi ! We haven't implemented the conversion from images data to PyTorch tensors yet I think
cc @mariosasko | [
-1.211437463760376,
-0.8525142669677734,
-0.7070724368095398,
1.3484094142913818,
-0.16596032679080963,
-1.267719030380249,
0.06665410846471786,
-1.0384465456008911,
1.723157286643982,
-0.793874979019165,
0.17862169444561005,
-1.6909693479537964,
0.06994496285915375,
-0.5644180774688721,
-0.6417743563652039,
-0.8966150283813477,
-0.4116695821285248,
-0.7529481053352356,
1.0425713062286377,
2.5244672298431396,
1.294863224029541,
-1.392760157585144,
2.782353639602661,
0.8373896479606628,
-0.2365095615386963,
-0.9182897806167603,
0.625190258026123,
0.10831446200609207,
-1.202897071838379,
-0.38936087489128113,
-0.9122364521026611,
-0.06413406878709793,
-0.6227320432662964,
-0.4841095805168152,
-0.1107325330376625,
0.4484724700450897,
-0.23862634599208832,
-0.361909419298172,
-0.7075575590133667,
-0.7463421821594238,
0.4596191346645355,
-0.5023505091667175,
1.045536756515503,
-0.3007625639438629,
1.7732056379318237,
-0.6287081241607666,
0.38384348154067993,
0.8127651810646057,
1.208784580230713,
0.08745279163122177,
0.05369672179222107,
0.29381945729255676,
0.3253391981124878,
0.010220159776508808,
0.537503719329834,
1.0554436445236206,
0.6754257678985596,
0.40854570269584656,
0.7485796809196472,
-2.15556263923645,
1.388515830039978,
-0.9630400538444519,
0.12221898883581161,
1.3012263774871826,
-0.9766818284988403,
0.40665823221206665,
-1.6546000242233276,
-0.16666963696479797,
0.6373084187507629,
-2.0790154933929443,
0.13577763736248016,
-1.270750641822815,
-0.5007568001747131,
0.9722790718078613,
0.3466397225856781,
-1.0179007053375244,
0.16826726496219635,
-0.5355259776115417,
1.0371041297912598,
0.3916952610015869,
1.1493233442306519,
-1.6146690845489502,
0.07660982757806778,
-0.3280123472213745,
0.11647463589906693,
-1.5046387910842896,
-1.6090095043182373,
0.627327024936676,
0.5095811486244202,
0.6424176096916199,
-0.011026090942323208,
1.0498394966125488,
-1.123107671737671,
0.7463119626045227,
-1.0323413610458374,
-1.7441771030426025,
-1.3890726566314697,
-2.320380449295044,
-2.257155656814575,
0.7753533720970154,
-0.5886092185974121,
-0.6169040203094482,
2.0450026988983154,
-1.0474375486373901,
-1.681876301765442,
1.0560795068740845,
0.16612428426742554,
0.044921763241291046,
2.4377388954162598,
0.2881004810333252,
-0.7163621187210083,
0.459958016872406,
-0.7827906608581543,
0.7998899221420288,
-0.19729673862457275,
1.2624136209487915,
0.4129512310028076,
-0.9624496102333069,
1.4781721830368042,
-0.4932580292224884,
0.6672924160957336,
-0.6193945407867432,
-0.4245060384273529,
-0.7553026080131531,
0.28009137511253357,
1.7941116094589233,
-0.3557482659816742,
1.6029106378555298,
-0.3715391457080841,
-1.5326988697052002,
-1.5490342378616333,
0.763881504535675,
0.36488184332847595,
-0.766143262386322,
0.1294442117214203,
-0.38415977358818054,
0.17522451281547546,
-0.08117364346981049,
1.1786712408065796,
1.3226549625396729,
0.6056506633758545,
-0.3532313108444214,
-0.8418710827827454,
0.19355741143226624,
-0.1130174919962883,
-0.7116972804069519,
-1.7879927158355713,
-0.34498533606529236,
0.08559654653072357,
0.7251960635185242,
-1.2563047409057617,
1.8263360261917114,
1.0320183038711548,
1.8538256883621216,
1.001267433166504,
-0.39087045192718506,
1.4131321907043457,
-0.018514487892389297,
1.8637486696243286,
-0.527306854724884,
0.7301511764526367,
-0.4271122217178345,
-1.1655049324035645,
0.9053316116333008,
-0.29505711793899536,
-2.008254289627075,
-0.8142757415771484,
-0.7550930976867676,
-0.15339703857898712,
-0.7757076025009155,
0.9826395511627197,
-0.2971126139163971,
-1.3927655220031738,
0.2104322463274002,
-0.7003429532051086,
0.025026075541973114,
-1.241399884223938,
0.20054565370082855,
0.6283795237541199,
-0.6216034889221191,
0.0675097107887268,
-0.23304377496242523,
-1.3626728057861328,
-0.4031318426132202,
0.17919442057609558,
1.8730289936065674,
-0.784938395023346,
0.9736005663871765,
1.06241774559021,
-0.6725146770477295,
0.15579402446746826,
0.30353599786758423,
-0.30249229073524475,
0.8059020638465881,
-1.1026227474212646,
-0.44485756754875183,
1.1667582988739014,
-0.1695982813835144,
-0.6779300570487976,
1.5109467506408691,
0.7006626129150391,
-1.1386486291885376,
-0.29855483770370483,
-0.2056795060634613,
-0.8819288611412048,
-0.026072770357131958,
-1.553194522857666,
-0.17094287276268005,
0.3840036690235138,
-1.5251797437667847,
-0.3874075412750244,
-0.27052611112594604,
1.2880421876907349,
-0.16833658516407013,
1.416771650314331,
-0.4396093189716339,
-0.16429653763771057,
-0.32191231846809387,
-0.46028560400009155,
0.14000204205513,
-0.13073056936264038,
-0.5581347346305847,
0.16371992230415344,
-0.9994473457336426,
0.3600589334964752,
1.4340084791183472,
0.34662434458732605,
-0.017683306708931923,
0.4237462878227234,
1.1037791967391968,
0.3619837760925293,
-0.11036940664052963,
-0.8315105438232422,
-1.496812343597412,
2.0800468921661377,
-1.592778205871582,
2.0334155559539795,
0.7576912641525269,
-0.07749159634113312,
-1.7836966514587402,
-1.8060616254806519,
1.3515939712524414,
1.1713522672653198,
2.205280065536499,
0.5483240485191345,
0.3542267084121704,
-0.8189680576324463,
-0.5954849720001221,
0.40666463971138,
-1.0889663696289062,
-0.5811671018600464,
0.27199122309684753,
2.4091548919677734,
1.749263048171997,
-0.45577502250671387,
-0.08624574542045593,
-0.8587852716445923,
1.2725598812103271,
-0.22380909323692322,
0.256828248500824,
2.1304593086242676,
-0.41329503059387207,
-0.9319864511489868,
1.2286856174468994,
-2.3445231914520264,
0.1389256864786148,
2.017096996307373,
0.23331975936889648,
0.1719713658094406,
-1.312379002571106,
-0.6404643654823303,
-0.5175462365150452,
-0.34260377287864685,
-1.2349085807800293,
0.5449988842010498,
-0.16433441638946533,
-0.908258855342865,
-1.485276222229004,
0.11244566738605499,
-1.2298017740249634,
-1.8496067523956299,
0.38419920206069946,
1.8089174032211304,
2.195364236831665,
-0.9175498485565186,
1.5138132572174072,
-0.331099271774292,
0.08478018641471863,
1.1281535625457764,
1.188259482383728,
3.0619380474090576,
1.9142119884490967,
-1.2099418640136719,
0.6092769503593445,
-0.1416935920715332,
-0.4643699526786804,
1.1508184671401978,
-1.1853258609771729,
1.3092325925827026,
-0.18447943031787872,
-1.11094331741333,
-1.2623592615127563,
0.9790047407150269,
0.35489585995674133,
-0.06774576008319855,
-0.44385185837745667,
1.426917314529419,
0.08977324515581131,
1.4439020156860352,
0.4681779146194458,
-0.33481690287590027,
0.526024341583252,
-0.5639660954475403,
-0.42530664801597595,
1.5438060760498047,
0.1839393824338913,
-1.5451148748397827,
-2.231638193130493,
-0.25452136993408203,
-0.8486346006393433,
0.024986550211906433,
-0.6801795363426208,
-0.9787629842758179,
1.6927661895751953,
0.2769090235233307,
-1.1868191957473755,
-0.33734872937202454,
-0.4021564722061157,
-0.5014877319335938,
2.764327049255371,
-1.3690744638442993,
-0.11242525279521942,
-0.942883312702179,
-0.6097992062568665,
1.5682440996170044,
-1.0942760705947876,
-0.1466520130634308,
-1.1409814357757568,
-0.59199059009552,
-1.3058661222457886,
-0.5469422340393066,
-0.01509975828230381,
-1.080348253250122,
0.7928128838539124,
0.2658287286758423,
-1.0606225728988647,
-0.30386364459991455,
-0.886861264705658,
0.9351166486740112,
-0.19551928341388702,
0.3355010747909546,
1.8572862148284912,
0.4042072594165802,
-0.41748225688934326,
0.7767913341522217,
1.2045245170593262,
0.566943347454071,
-0.7698736786842346,
-0.09355127811431885,
-0.7660375833511353,
0.44456493854522705,
-1.2594108581542969,
0.19275406002998352,
-2.8013241291046143,
0.6174154877662659,
-0.16061890125274658,
-0.027567315846681595,
-0.07936175912618637,
-1.2028779983520508,
1.1038106679916382,
2.6910758018493652,
-1.1793230772018433,
0.46625688672065735,
0.3962167203426361,
1.2089930772781372,
-1.5030330419540405,
0.3732779622077942,
-0.45110076665878296,
2.0427160263061523,
0.23890115320682526,
1.2273277044296265,
-0.5083358287811279,
-2.3108410835266113,
0.780426561832428,
-1.232013463973999,
-1.185612440109253,
0.8623782992362976,
-0.8817642331123352,
0.14977262914180756,
-1.4917901754379272,
-0.11679215729236603,
-0.9856383204460144,
-1.2409086227416992,
0.680927574634552,
0.1806899458169937,
0.46694624423980713,
-0.5851754546165466,
0.26457491517066956,
-2.213127613067627,
-1.3793669939041138,
-0.30478426814079285,
-0.8776670098304749,
0.6464201807975769,
-0.44476011395454407,
0.6267255544662476,
-0.10988201946020126,
0.03788232058286667,
0.34944188594818115,
1.3683494329452515,
3.485985040664673,
0.22652065753936768,
0.258391797542572,
-0.2023741602897644,
-0.989538311958313,
1.4388830661773682,
0.9784250259399414,
-0.1748592108488083,
-0.48094213008880615,
-1.0649255514144897,
1.208614706993103,
1.912814974784851,
1.0685436725616455,
-0.09009619802236557,
-0.8339237570762634,
-0.6447920203208923,
-0.024724237620830536,
0.15353307127952576,
0.4553259015083313,
0.8976495862007141,
-0.08613146841526031,
0.0783424898982048,
1.6677532196044922,
1.160238265991211,
-0.4674919545650482,
0.18765880167484283,
-0.8883662819862366,
-0.3577987253665924,
0.6256406307220459,
0.153825044631958,
0.09593401104211807,
0.44529616832733154,
-0.8344724774360657,
-0.4057728052139282,
-0.2567603886127472,
-0.8893468976020813,
-0.7408075332641602,
-0.3741348087787628,
-0.41469606757164,
1.6388602256774902,
0.06575729697942734,
-0.5406840443611145,
-0.06283297389745712,
-0.7180965542793274,
-0.17495618760585785,
-1.105672836303711,
0.3098505139350891,
-0.16096928715705872,
-0.07092665880918503,
-0.22762835025787354,
1.7629404067993164,
-0.9259766936302185,
-1.9701231718063354,
0.29735592007637024,
0.34249868988990784,
-0.195354625582695,
0.23735614120960236,
1.5894311666488647,
0.7002052068710327,
1.3468761444091797,
1.1816734075546265,
0.957220196723938,
-0.7359697818756104,
-1.2479089498519897,
0.5535203814506531,
1.0568456649780273,
-1.402781367301941,
0.8949050307273865,
-0.09129679948091507,
-0.5829617977142334,
0.5756924748420715,
1.379551887512207,
0.4922574460506439,
-1.9521217346191406,
0.795515239238739,
-1.0105977058410645,
0.9488978981971741,
0.6998308300971985,
0.7927615642547607,
0.06492722779512405,
0.7086396813392639,
-1.1939469575881958,
-1.143860101699829,
-0.8072068095207214,
-0.6436194181442261,
1.9554531574249268,
-0.23587603867053986,
0.615744411945343,
-0.20694640278816223,
-1.1634588241577148,
-0.06062731146812439,
0.7235395312309265,
0.41459745168685913,
-0.4628584086894989,
0.8677417635917664,
-0.5714307427406311,
-0.9905205368995667,
-1.2906731367111206,
-0.38121214509010315,
-0.9852359294891357,
-0.9852307438850403,
1.0641961097717285,
0.636387825012207,
0.3740037977695465,
1.8337033987045288,
0.612309455871582,
0.24710653722286224,
-2.5288407802581787,
1.075122594833374,
0.2662826180458069,
-0.14104235172271729,
0.8429731726646423,
0.34457284212112427,
0.9235298037528992,
-0.036849867552518845,
0.5092847347259521,
-2.4229724407196045,
2.2861528396606445,
-0.22987811267375946,
0.5753768682479858,
0.12224722653627396,
-0.15909427404403687,
1.0544039011001587,
0.7122184634208679,
0.40509775280952454,
-0.9723113775253296,
0.6400249600410461,
-0.493191659450531,
1.1647425889968872,
1.079095482826233,
-0.7830934524536133,
0.021088093519210815,
1.3359626531600952,
0.5276003479957581,
-0.5674658417701721,
-0.9105307459831238,
-0.9759560823440552,
1.0010221004486084,
1.8170197010040283,
-0.15063636004924774,
-0.09809970110654831,
0.7929192781448364,
0.5669893026351929,
-1.1080530881881714,
0.05139240622520447,
-0.715255618095398,
-0.6751959919929504,
1.6691079139709473,
2.090226173400879,
-0.0832897275686264,
-0.13197249174118042,
-0.658390998840332,
-1.1974223852157593,
0.9124755859375,
-0.1348734200000763,
0.14376084506511688,
0.7050111293792725,
-0.6029202342033386,
1.1582742929458618,
0.77705317735672,
0.9560890197753906,
0.15353849530220032,
0.2713850140571594,
0.3879500925540924,
-0.26585885882377625,
-1.0309569835662842,
-0.2699105739593506,
-1.0940840244293213,
-2.43402099609375,
0.29703760147094727,
-0.24806827306747437,
-1.5646852254867554,
-0.12440246343612671,
-0.9376477003097534,
1.0911593437194824,
-0.5080922842025757,
-1.0545743703842163,
-1.5982621908187866,
0.13628537952899933,
-0.012612990103662014,
1.0436657667160034,
-1.553946614265442,
-0.19793236255645752,
1.299282193183899,
0.8650650382041931,
-0.5560420155525208,
1.1325533390045166,
0.24818234145641327,
0.9987050294876099,
0.7574334740638733,
-0.26738062500953674,
0.6713897585868835,
0.07257218658924103,
-1.3479011058807373,
0.42413559556007385,
1.2073570489883423,
0.1727423071861267,
1.4180963039398193,
-0.42477524280548096,
0.056101568043231964,
0.31753212213516235,
-0.6240724325180054,
-0.4884338974952698,
-0.375876784324646,
0.679885983467102,
0.07235990464687347,
-0.9228562116622925,
-0.14369972050189972,
-0.15228377282619476,
-0.3128212094306946,
0.16598381102085114,
-1.4766947031021118,
-0.24161994457244873,
-0.4338986873626709,
-0.5819137692451477,
-1.276990294456482,
-0.051985807716846466,
1.4519016742706299,
-0.7890397906303406,
-0.12661965191364288,
0.41653430461883545,
0.3458671569824219,
0.47299182415008545,
0.6189029812812805,
-0.8061485886573792,
-0.3553091585636139,
-0.33764058351516724,
-0.2934190332889557,
0.2555192708969116,
1.2835465669631958,
0.03451881930232048,
-1.1270431280136108,
0.7632327079772949,
-0.35942843556404114,
0.14913295209407806,
2.02668833732605,
0.16321228444576263,
-0.7344498038291931,
0.3608585596084595,
-0.7948585152626038,
1.8583112955093384,
1.6760296821594238,
1.2701175212860107,
-0.12926147878170013,
-0.9287561178207397,
0.61090487241745,
-0.39219409227371216,
-0.3665979504585266,
0.7999546527862549,
0.3264802396297455,
-0.25442948937416077,
-1.4225326776504517,
0.6970474720001221,
1.2716549634933472,
-0.7431067824363708,
-0.7450993657112122,
0.13524119555950165,
-0.8422430157661438,
1.1357554197311401,
0.6331019997596741,
0.3931795060634613,
0.2954147756099701,
1.6395188570022583,
0.7752870321273804,
-0.524154782295227,
0.45784512162208557,
0.5192008018493652,
-0.1376609057188034,
-2.07201886177063,
-1.0236681699752808,
0.258205771446228,
-0.5070543885231018,
-1.5543861389160156,
1.4859910011291504,
-1.3103231191635132,
-0.9168421626091003,
0.6454625129699707,
0.03790051490068436,
1.324068307876587,
0.31716784834861755,
1.5025933980941772,
2.1316466331481934,
0.7234697341918945,
0.386250764131546,
1.1944764852523804,
-0.19192665815353394,
-0.5061846375465393,
1.8754925727844238,
-0.4610302746295929,
0.4701431095600128,
1.0744291543960571,
-0.2544075846672058,
-0.959307849407196,
-0.802494466304779,
-1.2935621738433838,
-0.6498061418533325,
1.1300824880599976,
-0.0065695978701114655,
-1.1440283060073853,
0.2045074999332428,
1.5738577842712402,
0.20081207156181335,
-0.41785988211631775,
0.5693973302841187,
0.4760652184486389,
-0.9244391322135925,
-0.2580759823322296,
-0.9230842590332031,
0.5030733942985535,
-0.12214037775993347,
-0.27202990651130676,
0.35430052876472473,
0.5138001441955566,
1.3467024564743042,
-0.01949172094464302,
0.18520572781562805,
1.1441915035247803,
-1.2747342586517334,
1.6629711389541626,
-0.6153821349143982,
0.18559420108795166,
-2.398618459701538,
1.4223178625106812,
-0.730297863483429,
1.9748198986053467,
-2.6392455101013184,
0.43612709641456604,
-0.41457828879356384,
-0.42960795760154724,
0.1807205229997635,
-0.3279566168785095,
0.11116743087768555,
-0.057530373334884644,
-1.0697251558303833,
0.04031128063797951,
-0.537138044834137,
0.6721543073654175,
1.0820090770721436,
1.3579307794570923,
-1.1865984201431274,
-0.2562752962112427,
-1.7143596410751343,
-0.17765890061855316,
-0.8867946863174438,
0.2773689925670624,
-1.9799851179122925,
-0.2314714789390564,
-1.9347102642059326,
-2.49436616897583,
-1.4268356561660767,
-0.8090839385986328,
1.176116943359375,
0.1586773842573166,
-0.9746300578117371,
1.2974807024002075,
-0.3914276659488678,
-1.8963388204574585,
1.187274694442749,
-2.090200662612915
] |
https://github.com/huggingface/datasets/issues/4623 | Loading MNIST as Pytorch Dataset | So I understand:
set_format() does not properly do the conversion to pytorch tensors from PIL images.
So that someone who stumbles on this can use the package:
```python
dataset = load_dataset("mnist", split="train")
def transform_func(examples):
examples["image"] = [np.array(img) for img in examples["image"]]
return examples
dataset = dataset.with_transform(transform_func)
dataset[0]
``` | ## Describe the bug
Conversion of MNIST dataset to pytorch fails with bug
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("mnist", split="train")
dataset.set_format('torch')
dataset[0]
print()
```
## Expected results
Expect to see torch tensors image and label
## Actual results
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/chapm/PycharmProjects/multiviewdata/multiviewdata/huggingface/mnist.py", line 13, in <module>
dataset[0]
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2154, in __getitem__
return self._getitem(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2139, in _getitem
formatted_output = format_table(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 356, in map_nested
mapped = [
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 357, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 293, in _single_map_nested
return function(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
python-BaseException
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Windows-10-10.0.22579-SP0
- Python version: 3.9.2
- PyArrow version: 8.0.0
- Pandas version: 1.4.1
| 663 | 48 | Loading MNIST as Pytorch Dataset
## Describe the bug
Conversion of MNIST dataset to pytorch fails with bug
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("mnist", split="train")
dataset.set_format('torch')
dataset[0]
print()
```
## Expected results
Expect to see torch tensors image and label
## Actual results
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/chapm/PycharmProjects/multiviewdata/multiviewdata/huggingface/mnist.py", line 13, in <module>
dataset[0]
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2154, in __getitem__
return self._getitem(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2139, in _getitem
formatted_output = format_table(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 356, in map_nested
mapped = [
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 357, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 293, in _single_map_nested
return function(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
python-BaseException
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Windows-10-10.0.22579-SP0
- Python version: 3.9.2
- PyArrow version: 8.0.0
- Pandas version: 1.4.1
So I understand:
set_format() does not properly do the conversion to pytorch tensors from PIL images.
So that someone who stumbles on this can use the package:
```python
dataset = load_dataset("mnist", split="train")
def transform_func(examples):
examples["image"] = [np.array(img) for img in examples["image"]]
return examples
dataset = dataset.with_transform(transform_func)
dataset[0]
``` | [
-1.211437463760376,
-0.8525142669677734,
-0.7070724368095398,
1.3484094142913818,
-0.16596032679080963,
-1.267719030380249,
0.06665410846471786,
-1.0384465456008911,
1.723157286643982,
-0.793874979019165,
0.17862169444561005,
-1.6909693479537964,
0.06994496285915375,
-0.5644180774688721,
-0.6417743563652039,
-0.8966150283813477,
-0.4116695821285248,
-0.7529481053352356,
1.0425713062286377,
2.5244672298431396,
1.294863224029541,
-1.392760157585144,
2.782353639602661,
0.8373896479606628,
-0.2365095615386963,
-0.9182897806167603,
0.625190258026123,
0.10831446200609207,
-1.202897071838379,
-0.38936087489128113,
-0.9122364521026611,
-0.06413406878709793,
-0.6227320432662964,
-0.4841095805168152,
-0.1107325330376625,
0.4484724700450897,
-0.23862634599208832,
-0.361909419298172,
-0.7075575590133667,
-0.7463421821594238,
0.4596191346645355,
-0.5023505091667175,
1.045536756515503,
-0.3007625639438629,
1.7732056379318237,
-0.6287081241607666,
0.38384348154067993,
0.8127651810646057,
1.208784580230713,
0.08745279163122177,
0.05369672179222107,
0.29381945729255676,
0.3253391981124878,
0.010220159776508808,
0.537503719329834,
1.0554436445236206,
0.6754257678985596,
0.40854570269584656,
0.7485796809196472,
-2.15556263923645,
1.388515830039978,
-0.9630400538444519,
0.12221898883581161,
1.3012263774871826,
-0.9766818284988403,
0.40665823221206665,
-1.6546000242233276,
-0.16666963696479797,
0.6373084187507629,
-2.0790154933929443,
0.13577763736248016,
-1.270750641822815,
-0.5007568001747131,
0.9722790718078613,
0.3466397225856781,
-1.0179007053375244,
0.16826726496219635,
-0.5355259776115417,
1.0371041297912598,
0.3916952610015869,
1.1493233442306519,
-1.6146690845489502,
0.07660982757806778,
-0.3280123472213745,
0.11647463589906693,
-1.5046387910842896,
-1.6090095043182373,
0.627327024936676,
0.5095811486244202,
0.6424176096916199,
-0.011026090942323208,
1.0498394966125488,
-1.123107671737671,
0.7463119626045227,
-1.0323413610458374,
-1.7441771030426025,
-1.3890726566314697,
-2.320380449295044,
-2.257155656814575,
0.7753533720970154,
-0.5886092185974121,
-0.6169040203094482,
2.0450026988983154,
-1.0474375486373901,
-1.681876301765442,
1.0560795068740845,
0.16612428426742554,
0.044921763241291046,
2.4377388954162598,
0.2881004810333252,
-0.7163621187210083,
0.459958016872406,
-0.7827906608581543,
0.7998899221420288,
-0.19729673862457275,
1.2624136209487915,
0.4129512310028076,
-0.9624496102333069,
1.4781721830368042,
-0.4932580292224884,
0.6672924160957336,
-0.6193945407867432,
-0.4245060384273529,
-0.7553026080131531,
0.28009137511253357,
1.7941116094589233,
-0.3557482659816742,
1.6029106378555298,
-0.3715391457080841,
-1.5326988697052002,
-1.5490342378616333,
0.763881504535675,
0.36488184332847595,
-0.766143262386322,
0.1294442117214203,
-0.38415977358818054,
0.17522451281547546,
-0.08117364346981049,
1.1786712408065796,
1.3226549625396729,
0.6056506633758545,
-0.3532313108444214,
-0.8418710827827454,
0.19355741143226624,
-0.1130174919962883,
-0.7116972804069519,
-1.7879927158355713,
-0.34498533606529236,
0.08559654653072357,
0.7251960635185242,
-1.2563047409057617,
1.8263360261917114,
1.0320183038711548,
1.8538256883621216,
1.001267433166504,
-0.39087045192718506,
1.4131321907043457,
-0.018514487892389297,
1.8637486696243286,
-0.527306854724884,
0.7301511764526367,
-0.4271122217178345,
-1.1655049324035645,
0.9053316116333008,
-0.29505711793899536,
-2.008254289627075,
-0.8142757415771484,
-0.7550930976867676,
-0.15339703857898712,
-0.7757076025009155,
0.9826395511627197,
-0.2971126139163971,
-1.3927655220031738,
0.2104322463274002,
-0.7003429532051086,
0.025026075541973114,
-1.241399884223938,
0.20054565370082855,
0.6283795237541199,
-0.6216034889221191,
0.0675097107887268,
-0.23304377496242523,
-1.3626728057861328,
-0.4031318426132202,
0.17919442057609558,
1.8730289936065674,
-0.784938395023346,
0.9736005663871765,
1.06241774559021,
-0.6725146770477295,
0.15579402446746826,
0.30353599786758423,
-0.30249229073524475,
0.8059020638465881,
-1.1026227474212646,
-0.44485756754875183,
1.1667582988739014,
-0.1695982813835144,
-0.6779300570487976,
1.5109467506408691,
0.7006626129150391,
-1.1386486291885376,
-0.29855483770370483,
-0.2056795060634613,
-0.8819288611412048,
-0.026072770357131958,
-1.553194522857666,
-0.17094287276268005,
0.3840036690235138,
-1.5251797437667847,
-0.3874075412750244,
-0.27052611112594604,
1.2880421876907349,
-0.16833658516407013,
1.416771650314331,
-0.4396093189716339,
-0.16429653763771057,
-0.32191231846809387,
-0.46028560400009155,
0.14000204205513,
-0.13073056936264038,
-0.5581347346305847,
0.16371992230415344,
-0.9994473457336426,
0.3600589334964752,
1.4340084791183472,
0.34662434458732605,
-0.017683306708931923,
0.4237462878227234,
1.1037791967391968,
0.3619837760925293,
-0.11036940664052963,
-0.8315105438232422,
-1.496812343597412,
2.0800468921661377,
-1.592778205871582,
2.0334155559539795,
0.7576912641525269,
-0.07749159634113312,
-1.7836966514587402,
-1.8060616254806519,
1.3515939712524414,
1.1713522672653198,
2.205280065536499,
0.5483240485191345,
0.3542267084121704,
-0.8189680576324463,
-0.5954849720001221,
0.40666463971138,
-1.0889663696289062,
-0.5811671018600464,
0.27199122309684753,
2.4091548919677734,
1.749263048171997,
-0.45577502250671387,
-0.08624574542045593,
-0.8587852716445923,
1.2725598812103271,
-0.22380909323692322,
0.256828248500824,
2.1304593086242676,
-0.41329503059387207,
-0.9319864511489868,
1.2286856174468994,
-2.3445231914520264,
0.1389256864786148,
2.017096996307373,
0.23331975936889648,
0.1719713658094406,
-1.312379002571106,
-0.6404643654823303,
-0.5175462365150452,
-0.34260377287864685,
-1.2349085807800293,
0.5449988842010498,
-0.16433441638946533,
-0.908258855342865,
-1.485276222229004,
0.11244566738605499,
-1.2298017740249634,
-1.8496067523956299,
0.38419920206069946,
1.8089174032211304,
2.195364236831665,
-0.9175498485565186,
1.5138132572174072,
-0.331099271774292,
0.08478018641471863,
1.1281535625457764,
1.188259482383728,
3.0619380474090576,
1.9142119884490967,
-1.2099418640136719,
0.6092769503593445,
-0.1416935920715332,
-0.4643699526786804,
1.1508184671401978,
-1.1853258609771729,
1.3092325925827026,
-0.18447943031787872,
-1.11094331741333,
-1.2623592615127563,
0.9790047407150269,
0.35489585995674133,
-0.06774576008319855,
-0.44385185837745667,
1.426917314529419,
0.08977324515581131,
1.4439020156860352,
0.4681779146194458,
-0.33481690287590027,
0.526024341583252,
-0.5639660954475403,
-0.42530664801597595,
1.5438060760498047,
0.1839393824338913,
-1.5451148748397827,
-2.231638193130493,
-0.25452136993408203,
-0.8486346006393433,
0.024986550211906433,
-0.6801795363426208,
-0.9787629842758179,
1.6927661895751953,
0.2769090235233307,
-1.1868191957473755,
-0.33734872937202454,
-0.4021564722061157,
-0.5014877319335938,
2.764327049255371,
-1.3690744638442993,
-0.11242525279521942,
-0.942883312702179,
-0.6097992062568665,
1.5682440996170044,
-1.0942760705947876,
-0.1466520130634308,
-1.1409814357757568,
-0.59199059009552,
-1.3058661222457886,
-0.5469422340393066,
-0.01509975828230381,
-1.080348253250122,
0.7928128838539124,
0.2658287286758423,
-1.0606225728988647,
-0.30386364459991455,
-0.886861264705658,
0.9351166486740112,
-0.19551928341388702,
0.3355010747909546,
1.8572862148284912,
0.4042072594165802,
-0.41748225688934326,
0.7767913341522217,
1.2045245170593262,
0.566943347454071,
-0.7698736786842346,
-0.09355127811431885,
-0.7660375833511353,
0.44456493854522705,
-1.2594108581542969,
0.19275406002998352,
-2.8013241291046143,
0.6174154877662659,
-0.16061890125274658,
-0.027567315846681595,
-0.07936175912618637,
-1.2028779983520508,
1.1038106679916382,
2.6910758018493652,
-1.1793230772018433,
0.46625688672065735,
0.3962167203426361,
1.2089930772781372,
-1.5030330419540405,
0.3732779622077942,
-0.45110076665878296,
2.0427160263061523,
0.23890115320682526,
1.2273277044296265,
-0.5083358287811279,
-2.3108410835266113,
0.780426561832428,
-1.232013463973999,
-1.185612440109253,
0.8623782992362976,
-0.8817642331123352,
0.14977262914180756,
-1.4917901754379272,
-0.11679215729236603,
-0.9856383204460144,
-1.2409086227416992,
0.680927574634552,
0.1806899458169937,
0.46694624423980713,
-0.5851754546165466,
0.26457491517066956,
-2.213127613067627,
-1.3793669939041138,
-0.30478426814079285,
-0.8776670098304749,
0.6464201807975769,
-0.44476011395454407,
0.6267255544662476,
-0.10988201946020126,
0.03788232058286667,
0.34944188594818115,
1.3683494329452515,
3.485985040664673,
0.22652065753936768,
0.258391797542572,
-0.2023741602897644,
-0.989538311958313,
1.4388830661773682,
0.9784250259399414,
-0.1748592108488083,
-0.48094213008880615,
-1.0649255514144897,
1.208614706993103,
1.912814974784851,
1.0685436725616455,
-0.09009619802236557,
-0.8339237570762634,
-0.6447920203208923,
-0.024724237620830536,
0.15353307127952576,
0.4553259015083313,
0.8976495862007141,
-0.08613146841526031,
0.0783424898982048,
1.6677532196044922,
1.160238265991211,
-0.4674919545650482,
0.18765880167484283,
-0.8883662819862366,
-0.3577987253665924,
0.6256406307220459,
0.153825044631958,
0.09593401104211807,
0.44529616832733154,
-0.8344724774360657,
-0.4057728052139282,
-0.2567603886127472,
-0.8893468976020813,
-0.7408075332641602,
-0.3741348087787628,
-0.41469606757164,
1.6388602256774902,
0.06575729697942734,
-0.5406840443611145,
-0.06283297389745712,
-0.7180965542793274,
-0.17495618760585785,
-1.105672836303711,
0.3098505139350891,
-0.16096928715705872,
-0.07092665880918503,
-0.22762835025787354,
1.7629404067993164,
-0.9259766936302185,
-1.9701231718063354,
0.29735592007637024,
0.34249868988990784,
-0.195354625582695,
0.23735614120960236,
1.5894311666488647,
0.7002052068710327,
1.3468761444091797,
1.1816734075546265,
0.957220196723938,
-0.7359697818756104,
-1.2479089498519897,
0.5535203814506531,
1.0568456649780273,
-1.402781367301941,
0.8949050307273865,
-0.09129679948091507,
-0.5829617977142334,
0.5756924748420715,
1.379551887512207,
0.4922574460506439,
-1.9521217346191406,
0.795515239238739,
-1.0105977058410645,
0.9488978981971741,
0.6998308300971985,
0.7927615642547607,
0.06492722779512405,
0.7086396813392639,
-1.1939469575881958,
-1.143860101699829,
-0.8072068095207214,
-0.6436194181442261,
1.9554531574249268,
-0.23587603867053986,
0.615744411945343,
-0.20694640278816223,
-1.1634588241577148,
-0.06062731146812439,
0.7235395312309265,
0.41459745168685913,
-0.4628584086894989,
0.8677417635917664,
-0.5714307427406311,
-0.9905205368995667,
-1.2906731367111206,
-0.38121214509010315,
-0.9852359294891357,
-0.9852307438850403,
1.0641961097717285,
0.636387825012207,
0.3740037977695465,
1.8337033987045288,
0.612309455871582,
0.24710653722286224,
-2.5288407802581787,
1.075122594833374,
0.2662826180458069,
-0.14104235172271729,
0.8429731726646423,
0.34457284212112427,
0.9235298037528992,
-0.036849867552518845,
0.5092847347259521,
-2.4229724407196045,
2.2861528396606445,
-0.22987811267375946,
0.5753768682479858,
0.12224722653627396,
-0.15909427404403687,
1.0544039011001587,
0.7122184634208679,
0.40509775280952454,
-0.9723113775253296,
0.6400249600410461,
-0.493191659450531,
1.1647425889968872,
1.079095482826233,
-0.7830934524536133,
0.021088093519210815,
1.3359626531600952,
0.5276003479957581,
-0.5674658417701721,
-0.9105307459831238,
-0.9759560823440552,
1.0010221004486084,
1.8170197010040283,
-0.15063636004924774,
-0.09809970110654831,
0.7929192781448364,
0.5669893026351929,
-1.1080530881881714,
0.05139240622520447,
-0.715255618095398,
-0.6751959919929504,
1.6691079139709473,
2.090226173400879,
-0.0832897275686264,
-0.13197249174118042,
-0.658390998840332,
-1.1974223852157593,
0.9124755859375,
-0.1348734200000763,
0.14376084506511688,
0.7050111293792725,
-0.6029202342033386,
1.1582742929458618,
0.77705317735672,
0.9560890197753906,
0.15353849530220032,
0.2713850140571594,
0.3879500925540924,
-0.26585885882377625,
-1.0309569835662842,
-0.2699105739593506,
-1.0940840244293213,
-2.43402099609375,
0.29703760147094727,
-0.24806827306747437,
-1.5646852254867554,
-0.12440246343612671,
-0.9376477003097534,
1.0911593437194824,
-0.5080922842025757,
-1.0545743703842163,
-1.5982621908187866,
0.13628537952899933,
-0.012612990103662014,
1.0436657667160034,
-1.553946614265442,
-0.19793236255645752,
1.299282193183899,
0.8650650382041931,
-0.5560420155525208,
1.1325533390045166,
0.24818234145641327,
0.9987050294876099,
0.7574334740638733,
-0.26738062500953674,
0.6713897585868835,
0.07257218658924103,
-1.3479011058807373,
0.42413559556007385,
1.2073570489883423,
0.1727423071861267,
1.4180963039398193,
-0.42477524280548096,
0.056101568043231964,
0.31753212213516235,
-0.6240724325180054,
-0.4884338974952698,
-0.375876784324646,
0.679885983467102,
0.07235990464687347,
-0.9228562116622925,
-0.14369972050189972,
-0.15228377282619476,
-0.3128212094306946,
0.16598381102085114,
-1.4766947031021118,
-0.24161994457244873,
-0.4338986873626709,
-0.5819137692451477,
-1.276990294456482,
-0.051985807716846466,
1.4519016742706299,
-0.7890397906303406,
-0.12661965191364288,
0.41653430461883545,
0.3458671569824219,
0.47299182415008545,
0.6189029812812805,
-0.8061485886573792,
-0.3553091585636139,
-0.33764058351516724,
-0.2934190332889557,
0.2555192708969116,
1.2835465669631958,
0.03451881930232048,
-1.1270431280136108,
0.7632327079772949,
-0.35942843556404114,
0.14913295209407806,
2.02668833732605,
0.16321228444576263,
-0.7344498038291931,
0.3608585596084595,
-0.7948585152626038,
1.8583112955093384,
1.6760296821594238,
1.2701175212860107,
-0.12926147878170013,
-0.9287561178207397,
0.61090487241745,
-0.39219409227371216,
-0.3665979504585266,
0.7999546527862549,
0.3264802396297455,
-0.25442948937416077,
-1.4225326776504517,
0.6970474720001221,
1.2716549634933472,
-0.7431067824363708,
-0.7450993657112122,
0.13524119555950165,
-0.8422430157661438,
1.1357554197311401,
0.6331019997596741,
0.3931795060634613,
0.2954147756099701,
1.6395188570022583,
0.7752870321273804,
-0.524154782295227,
0.45784512162208557,
0.5192008018493652,
-0.1376609057188034,
-2.07201886177063,
-1.0236681699752808,
0.258205771446228,
-0.5070543885231018,
-1.5543861389160156,
1.4859910011291504,
-1.3103231191635132,
-0.9168421626091003,
0.6454625129699707,
0.03790051490068436,
1.324068307876587,
0.31716784834861755,
1.5025933980941772,
2.1316466331481934,
0.7234697341918945,
0.386250764131546,
1.1944764852523804,
-0.19192665815353394,
-0.5061846375465393,
1.8754925727844238,
-0.4610302746295929,
0.4701431095600128,
1.0744291543960571,
-0.2544075846672058,
-0.959307849407196,
-0.802494466304779,
-1.2935621738433838,
-0.6498061418533325,
1.1300824880599976,
-0.0065695978701114655,
-1.1440283060073853,
0.2045074999332428,
1.5738577842712402,
0.20081207156181335,
-0.41785988211631775,
0.5693973302841187,
0.4760652184486389,
-0.9244391322135925,
-0.2580759823322296,
-0.9230842590332031,
0.5030733942985535,
-0.12214037775993347,
-0.27202990651130676,
0.35430052876472473,
0.5138001441955566,
1.3467024564743042,
-0.01949172094464302,
0.18520572781562805,
1.1441915035247803,
-1.2747342586517334,
1.6629711389541626,
-0.6153821349143982,
0.18559420108795166,
-2.398618459701538,
1.4223178625106812,
-0.730297863483429,
1.9748198986053467,
-2.6392455101013184,
0.43612709641456604,
-0.41457828879356384,
-0.42960795760154724,
0.1807205229997635,
-0.3279566168785095,
0.11116743087768555,
-0.057530373334884644,
-1.0697251558303833,
0.04031128063797951,
-0.537138044834137,
0.6721543073654175,
1.0820090770721436,
1.3579307794570923,
-1.1865984201431274,
-0.2562752962112427,
-1.7143596410751343,
-0.17765890061855316,
-0.8867946863174438,
0.2773689925670624,
-1.9799851179122925,
-0.2314714789390564,
-1.9347102642059326,
-2.49436616897583,
-1.4268356561660767,
-0.8090839385986328,
1.176116943359375,
0.1586773842573166,
-0.9746300578117371,
1.2974807024002075,
-0.3914276659488678,
-1.8963388204574585,
1.187274694442749,
-2.090200662612915
] |
https://github.com/huggingface/datasets/issues/4623 | Loading MNIST as Pytorch Dataset | This then appears to work with pytorch dataloaders as:
```
dataloader=torch.utils.data.DataLoader(dataset,batch_size=1)
```
and tensorflow as:
```
dataset=dataset.to_tf_dataset(batch_size=1)
``` | ## Describe the bug
Conversion of MNIST dataset to pytorch fails with bug
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("mnist", split="train")
dataset.set_format('torch')
dataset[0]
print()
```
## Expected results
Expect to see torch tensors image and label
## Actual results
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/chapm/PycharmProjects/multiviewdata/multiviewdata/huggingface/mnist.py", line 13, in <module>
dataset[0]
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2154, in __getitem__
return self._getitem(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2139, in _getitem
formatted_output = format_table(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 356, in map_nested
mapped = [
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 357, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 293, in _single_map_nested
return function(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
python-BaseException
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Windows-10-10.0.22579-SP0
- Python version: 3.9.2
- PyArrow version: 8.0.0
- Pandas version: 1.4.1
| 663 | 18 | Loading MNIST as Pytorch Dataset
## Describe the bug
Conversion of MNIST dataset to pytorch fails with bug
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("mnist", split="train")
dataset.set_format('torch')
dataset[0]
print()
```
## Expected results
Expect to see torch tensors image and label
## Actual results
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/chapm/PycharmProjects/multiviewdata/multiviewdata/huggingface/mnist.py", line 13, in <module>
dataset[0]
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2154, in __getitem__
return self._getitem(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2139, in _getitem
formatted_output = format_table(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 356, in map_nested
mapped = [
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 357, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 293, in _single_map_nested
return function(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
python-BaseException
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Windows-10-10.0.22579-SP0
- Python version: 3.9.2
- PyArrow version: 8.0.0
- Pandas version: 1.4.1
This then appears to work with pytorch dataloaders as:
```
dataloader=torch.utils.data.DataLoader(dataset,batch_size=1)
```
and tensorflow as:
```
dataset=dataset.to_tf_dataset(batch_size=1)
``` | [
-1.211437463760376,
-0.8525142669677734,
-0.7070724368095398,
1.3484094142913818,
-0.16596032679080963,
-1.267719030380249,
0.06665410846471786,
-1.0384465456008911,
1.723157286643982,
-0.793874979019165,
0.17862169444561005,
-1.6909693479537964,
0.06994496285915375,
-0.5644180774688721,
-0.6417743563652039,
-0.8966150283813477,
-0.4116695821285248,
-0.7529481053352356,
1.0425713062286377,
2.5244672298431396,
1.294863224029541,
-1.392760157585144,
2.782353639602661,
0.8373896479606628,
-0.2365095615386963,
-0.9182897806167603,
0.625190258026123,
0.10831446200609207,
-1.202897071838379,
-0.38936087489128113,
-0.9122364521026611,
-0.06413406878709793,
-0.6227320432662964,
-0.4841095805168152,
-0.1107325330376625,
0.4484724700450897,
-0.23862634599208832,
-0.361909419298172,
-0.7075575590133667,
-0.7463421821594238,
0.4596191346645355,
-0.5023505091667175,
1.045536756515503,
-0.3007625639438629,
1.7732056379318237,
-0.6287081241607666,
0.38384348154067993,
0.8127651810646057,
1.208784580230713,
0.08745279163122177,
0.05369672179222107,
0.29381945729255676,
0.3253391981124878,
0.010220159776508808,
0.537503719329834,
1.0554436445236206,
0.6754257678985596,
0.40854570269584656,
0.7485796809196472,
-2.15556263923645,
1.388515830039978,
-0.9630400538444519,
0.12221898883581161,
1.3012263774871826,
-0.9766818284988403,
0.40665823221206665,
-1.6546000242233276,
-0.16666963696479797,
0.6373084187507629,
-2.0790154933929443,
0.13577763736248016,
-1.270750641822815,
-0.5007568001747131,
0.9722790718078613,
0.3466397225856781,
-1.0179007053375244,
0.16826726496219635,
-0.5355259776115417,
1.0371041297912598,
0.3916952610015869,
1.1493233442306519,
-1.6146690845489502,
0.07660982757806778,
-0.3280123472213745,
0.11647463589906693,
-1.5046387910842896,
-1.6090095043182373,
0.627327024936676,
0.5095811486244202,
0.6424176096916199,
-0.011026090942323208,
1.0498394966125488,
-1.123107671737671,
0.7463119626045227,
-1.0323413610458374,
-1.7441771030426025,
-1.3890726566314697,
-2.320380449295044,
-2.257155656814575,
0.7753533720970154,
-0.5886092185974121,
-0.6169040203094482,
2.0450026988983154,
-1.0474375486373901,
-1.681876301765442,
1.0560795068740845,
0.16612428426742554,
0.044921763241291046,
2.4377388954162598,
0.2881004810333252,
-0.7163621187210083,
0.459958016872406,
-0.7827906608581543,
0.7998899221420288,
-0.19729673862457275,
1.2624136209487915,
0.4129512310028076,
-0.9624496102333069,
1.4781721830368042,
-0.4932580292224884,
0.6672924160957336,
-0.6193945407867432,
-0.4245060384273529,
-0.7553026080131531,
0.28009137511253357,
1.7941116094589233,
-0.3557482659816742,
1.6029106378555298,
-0.3715391457080841,
-1.5326988697052002,
-1.5490342378616333,
0.763881504535675,
0.36488184332847595,
-0.766143262386322,
0.1294442117214203,
-0.38415977358818054,
0.17522451281547546,
-0.08117364346981049,
1.1786712408065796,
1.3226549625396729,
0.6056506633758545,
-0.3532313108444214,
-0.8418710827827454,
0.19355741143226624,
-0.1130174919962883,
-0.7116972804069519,
-1.7879927158355713,
-0.34498533606529236,
0.08559654653072357,
0.7251960635185242,
-1.2563047409057617,
1.8263360261917114,
1.0320183038711548,
1.8538256883621216,
1.001267433166504,
-0.39087045192718506,
1.4131321907043457,
-0.018514487892389297,
1.8637486696243286,
-0.527306854724884,
0.7301511764526367,
-0.4271122217178345,
-1.1655049324035645,
0.9053316116333008,
-0.29505711793899536,
-2.008254289627075,
-0.8142757415771484,
-0.7550930976867676,
-0.15339703857898712,
-0.7757076025009155,
0.9826395511627197,
-0.2971126139163971,
-1.3927655220031738,
0.2104322463274002,
-0.7003429532051086,
0.025026075541973114,
-1.241399884223938,
0.20054565370082855,
0.6283795237541199,
-0.6216034889221191,
0.0675097107887268,
-0.23304377496242523,
-1.3626728057861328,
-0.4031318426132202,
0.17919442057609558,
1.8730289936065674,
-0.784938395023346,
0.9736005663871765,
1.06241774559021,
-0.6725146770477295,
0.15579402446746826,
0.30353599786758423,
-0.30249229073524475,
0.8059020638465881,
-1.1026227474212646,
-0.44485756754875183,
1.1667582988739014,
-0.1695982813835144,
-0.6779300570487976,
1.5109467506408691,
0.7006626129150391,
-1.1386486291885376,
-0.29855483770370483,
-0.2056795060634613,
-0.8819288611412048,
-0.026072770357131958,
-1.553194522857666,
-0.17094287276268005,
0.3840036690235138,
-1.5251797437667847,
-0.3874075412750244,
-0.27052611112594604,
1.2880421876907349,
-0.16833658516407013,
1.416771650314331,
-0.4396093189716339,
-0.16429653763771057,
-0.32191231846809387,
-0.46028560400009155,
0.14000204205513,
-0.13073056936264038,
-0.5581347346305847,
0.16371992230415344,
-0.9994473457336426,
0.3600589334964752,
1.4340084791183472,
0.34662434458732605,
-0.017683306708931923,
0.4237462878227234,
1.1037791967391968,
0.3619837760925293,
-0.11036940664052963,
-0.8315105438232422,
-1.496812343597412,
2.0800468921661377,
-1.592778205871582,
2.0334155559539795,
0.7576912641525269,
-0.07749159634113312,
-1.7836966514587402,
-1.8060616254806519,
1.3515939712524414,
1.1713522672653198,
2.205280065536499,
0.5483240485191345,
0.3542267084121704,
-0.8189680576324463,
-0.5954849720001221,
0.40666463971138,
-1.0889663696289062,
-0.5811671018600464,
0.27199122309684753,
2.4091548919677734,
1.749263048171997,
-0.45577502250671387,
-0.08624574542045593,
-0.8587852716445923,
1.2725598812103271,
-0.22380909323692322,
0.256828248500824,
2.1304593086242676,
-0.41329503059387207,
-0.9319864511489868,
1.2286856174468994,
-2.3445231914520264,
0.1389256864786148,
2.017096996307373,
0.23331975936889648,
0.1719713658094406,
-1.312379002571106,
-0.6404643654823303,
-0.5175462365150452,
-0.34260377287864685,
-1.2349085807800293,
0.5449988842010498,
-0.16433441638946533,
-0.908258855342865,
-1.485276222229004,
0.11244566738605499,
-1.2298017740249634,
-1.8496067523956299,
0.38419920206069946,
1.8089174032211304,
2.195364236831665,
-0.9175498485565186,
1.5138132572174072,
-0.331099271774292,
0.08478018641471863,
1.1281535625457764,
1.188259482383728,
3.0619380474090576,
1.9142119884490967,
-1.2099418640136719,
0.6092769503593445,
-0.1416935920715332,
-0.4643699526786804,
1.1508184671401978,
-1.1853258609771729,
1.3092325925827026,
-0.18447943031787872,
-1.11094331741333,
-1.2623592615127563,
0.9790047407150269,
0.35489585995674133,
-0.06774576008319855,
-0.44385185837745667,
1.426917314529419,
0.08977324515581131,
1.4439020156860352,
0.4681779146194458,
-0.33481690287590027,
0.526024341583252,
-0.5639660954475403,
-0.42530664801597595,
1.5438060760498047,
0.1839393824338913,
-1.5451148748397827,
-2.231638193130493,
-0.25452136993408203,
-0.8486346006393433,
0.024986550211906433,
-0.6801795363426208,
-0.9787629842758179,
1.6927661895751953,
0.2769090235233307,
-1.1868191957473755,
-0.33734872937202454,
-0.4021564722061157,
-0.5014877319335938,
2.764327049255371,
-1.3690744638442993,
-0.11242525279521942,
-0.942883312702179,
-0.6097992062568665,
1.5682440996170044,
-1.0942760705947876,
-0.1466520130634308,
-1.1409814357757568,
-0.59199059009552,
-1.3058661222457886,
-0.5469422340393066,
-0.01509975828230381,
-1.080348253250122,
0.7928128838539124,
0.2658287286758423,
-1.0606225728988647,
-0.30386364459991455,
-0.886861264705658,
0.9351166486740112,
-0.19551928341388702,
0.3355010747909546,
1.8572862148284912,
0.4042072594165802,
-0.41748225688934326,
0.7767913341522217,
1.2045245170593262,
0.566943347454071,
-0.7698736786842346,
-0.09355127811431885,
-0.7660375833511353,
0.44456493854522705,
-1.2594108581542969,
0.19275406002998352,
-2.8013241291046143,
0.6174154877662659,
-0.16061890125274658,
-0.027567315846681595,
-0.07936175912618637,
-1.2028779983520508,
1.1038106679916382,
2.6910758018493652,
-1.1793230772018433,
0.46625688672065735,
0.3962167203426361,
1.2089930772781372,
-1.5030330419540405,
0.3732779622077942,
-0.45110076665878296,
2.0427160263061523,
0.23890115320682526,
1.2273277044296265,
-0.5083358287811279,
-2.3108410835266113,
0.780426561832428,
-1.232013463973999,
-1.185612440109253,
0.8623782992362976,
-0.8817642331123352,
0.14977262914180756,
-1.4917901754379272,
-0.11679215729236603,
-0.9856383204460144,
-1.2409086227416992,
0.680927574634552,
0.1806899458169937,
0.46694624423980713,
-0.5851754546165466,
0.26457491517066956,
-2.213127613067627,
-1.3793669939041138,
-0.30478426814079285,
-0.8776670098304749,
0.6464201807975769,
-0.44476011395454407,
0.6267255544662476,
-0.10988201946020126,
0.03788232058286667,
0.34944188594818115,
1.3683494329452515,
3.485985040664673,
0.22652065753936768,
0.258391797542572,
-0.2023741602897644,
-0.989538311958313,
1.4388830661773682,
0.9784250259399414,
-0.1748592108488083,
-0.48094213008880615,
-1.0649255514144897,
1.208614706993103,
1.912814974784851,
1.0685436725616455,
-0.09009619802236557,
-0.8339237570762634,
-0.6447920203208923,
-0.024724237620830536,
0.15353307127952576,
0.4553259015083313,
0.8976495862007141,
-0.08613146841526031,
0.0783424898982048,
1.6677532196044922,
1.160238265991211,
-0.4674919545650482,
0.18765880167484283,
-0.8883662819862366,
-0.3577987253665924,
0.6256406307220459,
0.153825044631958,
0.09593401104211807,
0.44529616832733154,
-0.8344724774360657,
-0.4057728052139282,
-0.2567603886127472,
-0.8893468976020813,
-0.7408075332641602,
-0.3741348087787628,
-0.41469606757164,
1.6388602256774902,
0.06575729697942734,
-0.5406840443611145,
-0.06283297389745712,
-0.7180965542793274,
-0.17495618760585785,
-1.105672836303711,
0.3098505139350891,
-0.16096928715705872,
-0.07092665880918503,
-0.22762835025787354,
1.7629404067993164,
-0.9259766936302185,
-1.9701231718063354,
0.29735592007637024,
0.34249868988990784,
-0.195354625582695,
0.23735614120960236,
1.5894311666488647,
0.7002052068710327,
1.3468761444091797,
1.1816734075546265,
0.957220196723938,
-0.7359697818756104,
-1.2479089498519897,
0.5535203814506531,
1.0568456649780273,
-1.402781367301941,
0.8949050307273865,
-0.09129679948091507,
-0.5829617977142334,
0.5756924748420715,
1.379551887512207,
0.4922574460506439,
-1.9521217346191406,
0.795515239238739,
-1.0105977058410645,
0.9488978981971741,
0.6998308300971985,
0.7927615642547607,
0.06492722779512405,
0.7086396813392639,
-1.1939469575881958,
-1.143860101699829,
-0.8072068095207214,
-0.6436194181442261,
1.9554531574249268,
-0.23587603867053986,
0.615744411945343,
-0.20694640278816223,
-1.1634588241577148,
-0.06062731146812439,
0.7235395312309265,
0.41459745168685913,
-0.4628584086894989,
0.8677417635917664,
-0.5714307427406311,
-0.9905205368995667,
-1.2906731367111206,
-0.38121214509010315,
-0.9852359294891357,
-0.9852307438850403,
1.0641961097717285,
0.636387825012207,
0.3740037977695465,
1.8337033987045288,
0.612309455871582,
0.24710653722286224,
-2.5288407802581787,
1.075122594833374,
0.2662826180458069,
-0.14104235172271729,
0.8429731726646423,
0.34457284212112427,
0.9235298037528992,
-0.036849867552518845,
0.5092847347259521,
-2.4229724407196045,
2.2861528396606445,
-0.22987811267375946,
0.5753768682479858,
0.12224722653627396,
-0.15909427404403687,
1.0544039011001587,
0.7122184634208679,
0.40509775280952454,
-0.9723113775253296,
0.6400249600410461,
-0.493191659450531,
1.1647425889968872,
1.079095482826233,
-0.7830934524536133,
0.021088093519210815,
1.3359626531600952,
0.5276003479957581,
-0.5674658417701721,
-0.9105307459831238,
-0.9759560823440552,
1.0010221004486084,
1.8170197010040283,
-0.15063636004924774,
-0.09809970110654831,
0.7929192781448364,
0.5669893026351929,
-1.1080530881881714,
0.05139240622520447,
-0.715255618095398,
-0.6751959919929504,
1.6691079139709473,
2.090226173400879,
-0.0832897275686264,
-0.13197249174118042,
-0.658390998840332,
-1.1974223852157593,
0.9124755859375,
-0.1348734200000763,
0.14376084506511688,
0.7050111293792725,
-0.6029202342033386,
1.1582742929458618,
0.77705317735672,
0.9560890197753906,
0.15353849530220032,
0.2713850140571594,
0.3879500925540924,
-0.26585885882377625,
-1.0309569835662842,
-0.2699105739593506,
-1.0940840244293213,
-2.43402099609375,
0.29703760147094727,
-0.24806827306747437,
-1.5646852254867554,
-0.12440246343612671,
-0.9376477003097534,
1.0911593437194824,
-0.5080922842025757,
-1.0545743703842163,
-1.5982621908187866,
0.13628537952899933,
-0.012612990103662014,
1.0436657667160034,
-1.553946614265442,
-0.19793236255645752,
1.299282193183899,
0.8650650382041931,
-0.5560420155525208,
1.1325533390045166,
0.24818234145641327,
0.9987050294876099,
0.7574334740638733,
-0.26738062500953674,
0.6713897585868835,
0.07257218658924103,
-1.3479011058807373,
0.42413559556007385,
1.2073570489883423,
0.1727423071861267,
1.4180963039398193,
-0.42477524280548096,
0.056101568043231964,
0.31753212213516235,
-0.6240724325180054,
-0.4884338974952698,
-0.375876784324646,
0.679885983467102,
0.07235990464687347,
-0.9228562116622925,
-0.14369972050189972,
-0.15228377282619476,
-0.3128212094306946,
0.16598381102085114,
-1.4766947031021118,
-0.24161994457244873,
-0.4338986873626709,
-0.5819137692451477,
-1.276990294456482,
-0.051985807716846466,
1.4519016742706299,
-0.7890397906303406,
-0.12661965191364288,
0.41653430461883545,
0.3458671569824219,
0.47299182415008545,
0.6189029812812805,
-0.8061485886573792,
-0.3553091585636139,
-0.33764058351516724,
-0.2934190332889557,
0.2555192708969116,
1.2835465669631958,
0.03451881930232048,
-1.1270431280136108,
0.7632327079772949,
-0.35942843556404114,
0.14913295209407806,
2.02668833732605,
0.16321228444576263,
-0.7344498038291931,
0.3608585596084595,
-0.7948585152626038,
1.8583112955093384,
1.6760296821594238,
1.2701175212860107,
-0.12926147878170013,
-0.9287561178207397,
0.61090487241745,
-0.39219409227371216,
-0.3665979504585266,
0.7999546527862549,
0.3264802396297455,
-0.25442948937416077,
-1.4225326776504517,
0.6970474720001221,
1.2716549634933472,
-0.7431067824363708,
-0.7450993657112122,
0.13524119555950165,
-0.8422430157661438,
1.1357554197311401,
0.6331019997596741,
0.3931795060634613,
0.2954147756099701,
1.6395188570022583,
0.7752870321273804,
-0.524154782295227,
0.45784512162208557,
0.5192008018493652,
-0.1376609057188034,
-2.07201886177063,
-1.0236681699752808,
0.258205771446228,
-0.5070543885231018,
-1.5543861389160156,
1.4859910011291504,
-1.3103231191635132,
-0.9168421626091003,
0.6454625129699707,
0.03790051490068436,
1.324068307876587,
0.31716784834861755,
1.5025933980941772,
2.1316466331481934,
0.7234697341918945,
0.386250764131546,
1.1944764852523804,
-0.19192665815353394,
-0.5061846375465393,
1.8754925727844238,
-0.4610302746295929,
0.4701431095600128,
1.0744291543960571,
-0.2544075846672058,
-0.959307849407196,
-0.802494466304779,
-1.2935621738433838,
-0.6498061418533325,
1.1300824880599976,
-0.0065695978701114655,
-1.1440283060073853,
0.2045074999332428,
1.5738577842712402,
0.20081207156181335,
-0.41785988211631775,
0.5693973302841187,
0.4760652184486389,
-0.9244391322135925,
-0.2580759823322296,
-0.9230842590332031,
0.5030733942985535,
-0.12214037775993347,
-0.27202990651130676,
0.35430052876472473,
0.5138001441955566,
1.3467024564743042,
-0.01949172094464302,
0.18520572781562805,
1.1441915035247803,
-1.2747342586517334,
1.6629711389541626,
-0.6153821349143982,
0.18559420108795166,
-2.398618459701538,
1.4223178625106812,
-0.730297863483429,
1.9748198986053467,
-2.6392455101013184,
0.43612709641456604,
-0.41457828879356384,
-0.42960795760154724,
0.1807205229997635,
-0.3279566168785095,
0.11116743087768555,
-0.057530373334884644,
-1.0697251558303833,
0.04031128063797951,
-0.537138044834137,
0.6721543073654175,
1.0820090770721436,
1.3579307794570923,
-1.1865984201431274,
-0.2562752962112427,
-1.7143596410751343,
-0.17765890061855316,
-0.8867946863174438,
0.2773689925670624,
-1.9799851179122925,
-0.2314714789390564,
-1.9347102642059326,
-2.49436616897583,
-1.4268356561660767,
-0.8090839385986328,
1.176116943359375,
0.1586773842573166,
-0.9746300578117371,
1.2974807024002075,
-0.3914276659488678,
-1.8963388204574585,
1.187274694442749,
-2.090200662612915
] |
https://github.com/huggingface/datasets/issues/4623 | Loading MNIST as Pytorch Dataset | Hi! `set_transform`/`with_transform` is indeed the correct solution for the conversion. Improving this part of the API is one of the things I'm working on currently, so stay tuned! | ## Describe the bug
Conversion of MNIST dataset to pytorch fails with bug
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("mnist", split="train")
dataset.set_format('torch')
dataset[0]
print()
```
## Expected results
Expect to see torch tensors image and label
## Actual results
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/chapm/PycharmProjects/multiviewdata/multiviewdata/huggingface/mnist.py", line 13, in <module>
dataset[0]
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2154, in __getitem__
return self._getitem(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2139, in _getitem
formatted_output = format_table(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 356, in map_nested
mapped = [
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 357, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 293, in _single_map_nested
return function(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
python-BaseException
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Windows-10-10.0.22579-SP0
- Python version: 3.9.2
- PyArrow version: 8.0.0
- Pandas version: 1.4.1
| 663 | 28 | Loading MNIST as Pytorch Dataset
## Describe the bug
Conversion of MNIST dataset to pytorch fails with bug
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("mnist", split="train")
dataset.set_format('torch')
dataset[0]
print()
```
## Expected results
Expect to see torch tensors image and label
## Actual results
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\pydevd.py", line 1491, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2020.3.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/chapm/PycharmProjects/multiviewdata/multiviewdata/huggingface/mnist.py", line 13, in <module>
dataset[0]
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2154, in __getitem__
return self._getitem(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\arrow_dataset.py", line 2139, in _getitem
formatted_output = format_table(
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 58, in format_row
return self.recursive_tensorize(row)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 54, in recursive_tensorize
return map_nested(self._recursive_tensorize, data_struct, map_list=False)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 356, in map_nested
mapped = [
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 357, in <listcomp>
_single_map_nested((function, obj, types, None, True, None))
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in _single_map_nested
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 309, in <dictcomp>
return {k: _single_map_nested((function, v, types, None, True, None)) for k, v in pbar}
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\utils\py_utils.py", line 293, in _single_map_nested
return function(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 51, in _recursive_tensorize
return self._tensorize(data_struct)
File "C:\Users\chapm\PycharmProjects\multiviewdata\venv\lib\site-packages\datasets\formatting\torch_formatter.py", line 38, in _tensorize
if np.issubdtype(value.dtype, np.integer):
AttributeError: 'bytes' object has no attribute 'dtype'
python-BaseException
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: Windows-10-10.0.22579-SP0
- Python version: 3.9.2
- PyArrow version: 8.0.0
- Pandas version: 1.4.1
Hi! `set_transform`/`with_transform` is indeed the correct solution for the conversion. Improving this part of the API is one of the things I'm working on currently, so stay tuned! | [
-1.211437463760376,
-0.8525142669677734,
-0.7070724368095398,
1.3484094142913818,
-0.16596032679080963,
-1.267719030380249,
0.06665410846471786,
-1.0384465456008911,
1.723157286643982,
-0.793874979019165,
0.17862169444561005,
-1.6909693479537964,
0.06994496285915375,
-0.5644180774688721,
-0.6417743563652039,
-0.8966150283813477,
-0.4116695821285248,
-0.7529481053352356,
1.0425713062286377,
2.5244672298431396,
1.294863224029541,
-1.392760157585144,
2.782353639602661,
0.8373896479606628,
-0.2365095615386963,
-0.9182897806167603,
0.625190258026123,
0.10831446200609207,
-1.202897071838379,
-0.38936087489128113,
-0.9122364521026611,
-0.06413406878709793,
-0.6227320432662964,
-0.4841095805168152,
-0.1107325330376625,
0.4484724700450897,
-0.23862634599208832,
-0.361909419298172,
-0.7075575590133667,
-0.7463421821594238,
0.4596191346645355,
-0.5023505091667175,
1.045536756515503,
-0.3007625639438629,
1.7732056379318237,
-0.6287081241607666,
0.38384348154067993,
0.8127651810646057,
1.208784580230713,
0.08745279163122177,
0.05369672179222107,
0.29381945729255676,
0.3253391981124878,
0.010220159776508808,
0.537503719329834,
1.0554436445236206,
0.6754257678985596,
0.40854570269584656,
0.7485796809196472,
-2.15556263923645,
1.388515830039978,
-0.9630400538444519,
0.12221898883581161,
1.3012263774871826,
-0.9766818284988403,
0.40665823221206665,
-1.6546000242233276,
-0.16666963696479797,
0.6373084187507629,
-2.0790154933929443,
0.13577763736248016,
-1.270750641822815,
-0.5007568001747131,
0.9722790718078613,
0.3466397225856781,
-1.0179007053375244,
0.16826726496219635,
-0.5355259776115417,
1.0371041297912598,
0.3916952610015869,
1.1493233442306519,
-1.6146690845489502,
0.07660982757806778,
-0.3280123472213745,
0.11647463589906693,
-1.5046387910842896,
-1.6090095043182373,
0.627327024936676,
0.5095811486244202,
0.6424176096916199,
-0.011026090942323208,
1.0498394966125488,
-1.123107671737671,
0.7463119626045227,
-1.0323413610458374,
-1.7441771030426025,
-1.3890726566314697,
-2.320380449295044,
-2.257155656814575,
0.7753533720970154,
-0.5886092185974121,
-0.6169040203094482,
2.0450026988983154,
-1.0474375486373901,
-1.681876301765442,
1.0560795068740845,
0.16612428426742554,
0.044921763241291046,
2.4377388954162598,
0.2881004810333252,
-0.7163621187210083,
0.459958016872406,
-0.7827906608581543,
0.7998899221420288,
-0.19729673862457275,
1.2624136209487915,
0.4129512310028076,
-0.9624496102333069,
1.4781721830368042,
-0.4932580292224884,
0.6672924160957336,
-0.6193945407867432,
-0.4245060384273529,
-0.7553026080131531,
0.28009137511253357,
1.7941116094589233,
-0.3557482659816742,
1.6029106378555298,
-0.3715391457080841,
-1.5326988697052002,
-1.5490342378616333,
0.763881504535675,
0.36488184332847595,
-0.766143262386322,
0.1294442117214203,
-0.38415977358818054,
0.17522451281547546,
-0.08117364346981049,
1.1786712408065796,
1.3226549625396729,
0.6056506633758545,
-0.3532313108444214,
-0.8418710827827454,
0.19355741143226624,
-0.1130174919962883,
-0.7116972804069519,
-1.7879927158355713,
-0.34498533606529236,
0.08559654653072357,
0.7251960635185242,
-1.2563047409057617,
1.8263360261917114,
1.0320183038711548,
1.8538256883621216,
1.001267433166504,
-0.39087045192718506,
1.4131321907043457,
-0.018514487892389297,
1.8637486696243286,
-0.527306854724884,
0.7301511764526367,
-0.4271122217178345,
-1.1655049324035645,
0.9053316116333008,
-0.29505711793899536,
-2.008254289627075,
-0.8142757415771484,
-0.7550930976867676,
-0.15339703857898712,
-0.7757076025009155,
0.9826395511627197,
-0.2971126139163971,
-1.3927655220031738,
0.2104322463274002,
-0.7003429532051086,
0.025026075541973114,
-1.241399884223938,
0.20054565370082855,
0.6283795237541199,
-0.6216034889221191,
0.0675097107887268,
-0.23304377496242523,
-1.3626728057861328,
-0.4031318426132202,
0.17919442057609558,
1.8730289936065674,
-0.784938395023346,
0.9736005663871765,
1.06241774559021,
-0.6725146770477295,
0.15579402446746826,
0.30353599786758423,
-0.30249229073524475,
0.8059020638465881,
-1.1026227474212646,
-0.44485756754875183,
1.1667582988739014,
-0.1695982813835144,
-0.6779300570487976,
1.5109467506408691,
0.7006626129150391,
-1.1386486291885376,
-0.29855483770370483,
-0.2056795060634613,
-0.8819288611412048,
-0.026072770357131958,
-1.553194522857666,
-0.17094287276268005,
0.3840036690235138,
-1.5251797437667847,
-0.3874075412750244,
-0.27052611112594604,
1.2880421876907349,
-0.16833658516407013,
1.416771650314331,
-0.4396093189716339,
-0.16429653763771057,
-0.32191231846809387,
-0.46028560400009155,
0.14000204205513,
-0.13073056936264038,
-0.5581347346305847,
0.16371992230415344,
-0.9994473457336426,
0.3600589334964752,
1.4340084791183472,
0.34662434458732605,
-0.017683306708931923,
0.4237462878227234,
1.1037791967391968,
0.3619837760925293,
-0.11036940664052963,
-0.8315105438232422,
-1.496812343597412,
2.0800468921661377,
-1.592778205871582,
2.0334155559539795,
0.7576912641525269,
-0.07749159634113312,
-1.7836966514587402,
-1.8060616254806519,
1.3515939712524414,
1.1713522672653198,
2.205280065536499,
0.5483240485191345,
0.3542267084121704,
-0.8189680576324463,
-0.5954849720001221,
0.40666463971138,
-1.0889663696289062,
-0.5811671018600464,
0.27199122309684753,
2.4091548919677734,
1.749263048171997,
-0.45577502250671387,
-0.08624574542045593,
-0.8587852716445923,
1.2725598812103271,
-0.22380909323692322,
0.256828248500824,
2.1304593086242676,
-0.41329503059387207,
-0.9319864511489868,
1.2286856174468994,
-2.3445231914520264,
0.1389256864786148,
2.017096996307373,
0.23331975936889648,
0.1719713658094406,
-1.312379002571106,
-0.6404643654823303,
-0.5175462365150452,
-0.34260377287864685,
-1.2349085807800293,
0.5449988842010498,
-0.16433441638946533,
-0.908258855342865,
-1.485276222229004,
0.11244566738605499,
-1.2298017740249634,
-1.8496067523956299,
0.38419920206069946,
1.8089174032211304,
2.195364236831665,
-0.9175498485565186,
1.5138132572174072,
-0.331099271774292,
0.08478018641471863,
1.1281535625457764,
1.188259482383728,
3.0619380474090576,
1.9142119884490967,
-1.2099418640136719,
0.6092769503593445,
-0.1416935920715332,
-0.4643699526786804,
1.1508184671401978,
-1.1853258609771729,
1.3092325925827026,
-0.18447943031787872,
-1.11094331741333,
-1.2623592615127563,
0.9790047407150269,
0.35489585995674133,
-0.06774576008319855,
-0.44385185837745667,
1.426917314529419,
0.08977324515581131,
1.4439020156860352,
0.4681779146194458,
-0.33481690287590027,
0.526024341583252,
-0.5639660954475403,
-0.42530664801597595,
1.5438060760498047,
0.1839393824338913,
-1.5451148748397827,
-2.231638193130493,
-0.25452136993408203,
-0.8486346006393433,
0.024986550211906433,
-0.6801795363426208,
-0.9787629842758179,
1.6927661895751953,
0.2769090235233307,
-1.1868191957473755,
-0.33734872937202454,
-0.4021564722061157,
-0.5014877319335938,
2.764327049255371,
-1.3690744638442993,
-0.11242525279521942,
-0.942883312702179,
-0.6097992062568665,
1.5682440996170044,
-1.0942760705947876,
-0.1466520130634308,
-1.1409814357757568,
-0.59199059009552,
-1.3058661222457886,
-0.5469422340393066,
-0.01509975828230381,
-1.080348253250122,
0.7928128838539124,
0.2658287286758423,
-1.0606225728988647,
-0.30386364459991455,
-0.886861264705658,
0.9351166486740112,
-0.19551928341388702,
0.3355010747909546,
1.8572862148284912,
0.4042072594165802,
-0.41748225688934326,
0.7767913341522217,
1.2045245170593262,
0.566943347454071,
-0.7698736786842346,
-0.09355127811431885,
-0.7660375833511353,
0.44456493854522705,
-1.2594108581542969,
0.19275406002998352,
-2.8013241291046143,
0.6174154877662659,
-0.16061890125274658,
-0.027567315846681595,
-0.07936175912618637,
-1.2028779983520508,
1.1038106679916382,
2.6910758018493652,
-1.1793230772018433,
0.46625688672065735,
0.3962167203426361,
1.2089930772781372,
-1.5030330419540405,
0.3732779622077942,
-0.45110076665878296,
2.0427160263061523,
0.23890115320682526,
1.2273277044296265,
-0.5083358287811279,
-2.3108410835266113,
0.780426561832428,
-1.232013463973999,
-1.185612440109253,
0.8623782992362976,
-0.8817642331123352,
0.14977262914180756,
-1.4917901754379272,
-0.11679215729236603,
-0.9856383204460144,
-1.2409086227416992,
0.680927574634552,
0.1806899458169937,
0.46694624423980713,
-0.5851754546165466,
0.26457491517066956,
-2.213127613067627,
-1.3793669939041138,
-0.30478426814079285,
-0.8776670098304749,
0.6464201807975769,
-0.44476011395454407,
0.6267255544662476,
-0.10988201946020126,
0.03788232058286667,
0.34944188594818115,
1.3683494329452515,
3.485985040664673,
0.22652065753936768,
0.258391797542572,
-0.2023741602897644,
-0.989538311958313,
1.4388830661773682,
0.9784250259399414,
-0.1748592108488083,
-0.48094213008880615,
-1.0649255514144897,
1.208614706993103,
1.912814974784851,
1.0685436725616455,
-0.09009619802236557,
-0.8339237570762634,
-0.6447920203208923,
-0.024724237620830536,
0.15353307127952576,
0.4553259015083313,
0.8976495862007141,
-0.08613146841526031,
0.0783424898982048,
1.6677532196044922,
1.160238265991211,
-0.4674919545650482,
0.18765880167484283,
-0.8883662819862366,
-0.3577987253665924,
0.6256406307220459,
0.153825044631958,
0.09593401104211807,
0.44529616832733154,
-0.8344724774360657,
-0.4057728052139282,
-0.2567603886127472,
-0.8893468976020813,
-0.7408075332641602,
-0.3741348087787628,
-0.41469606757164,
1.6388602256774902,
0.06575729697942734,
-0.5406840443611145,
-0.06283297389745712,
-0.7180965542793274,
-0.17495618760585785,
-1.105672836303711,
0.3098505139350891,
-0.16096928715705872,
-0.07092665880918503,
-0.22762835025787354,
1.7629404067993164,
-0.9259766936302185,
-1.9701231718063354,
0.29735592007637024,
0.34249868988990784,
-0.195354625582695,
0.23735614120960236,
1.5894311666488647,
0.7002052068710327,
1.3468761444091797,
1.1816734075546265,
0.957220196723938,
-0.7359697818756104,
-1.2479089498519897,
0.5535203814506531,
1.0568456649780273,
-1.402781367301941,
0.8949050307273865,
-0.09129679948091507,
-0.5829617977142334,
0.5756924748420715,
1.379551887512207,
0.4922574460506439,
-1.9521217346191406,
0.795515239238739,
-1.0105977058410645,
0.9488978981971741,
0.6998308300971985,
0.7927615642547607,
0.06492722779512405,
0.7086396813392639,
-1.1939469575881958,
-1.143860101699829,
-0.8072068095207214,
-0.6436194181442261,
1.9554531574249268,
-0.23587603867053986,
0.615744411945343,
-0.20694640278816223,
-1.1634588241577148,
-0.06062731146812439,
0.7235395312309265,
0.41459745168685913,
-0.4628584086894989,
0.8677417635917664,
-0.5714307427406311,
-0.9905205368995667,
-1.2906731367111206,
-0.38121214509010315,
-0.9852359294891357,
-0.9852307438850403,
1.0641961097717285,
0.636387825012207,
0.3740037977695465,
1.8337033987045288,
0.612309455871582,
0.24710653722286224,
-2.5288407802581787,
1.075122594833374,
0.2662826180458069,
-0.14104235172271729,
0.8429731726646423,
0.34457284212112427,
0.9235298037528992,
-0.036849867552518845,
0.5092847347259521,
-2.4229724407196045,
2.2861528396606445,
-0.22987811267375946,
0.5753768682479858,
0.12224722653627396,
-0.15909427404403687,
1.0544039011001587,
0.7122184634208679,
0.40509775280952454,
-0.9723113775253296,
0.6400249600410461,
-0.493191659450531,
1.1647425889968872,
1.079095482826233,
-0.7830934524536133,
0.021088093519210815,
1.3359626531600952,
0.5276003479957581,
-0.5674658417701721,
-0.9105307459831238,
-0.9759560823440552,
1.0010221004486084,
1.8170197010040283,
-0.15063636004924774,
-0.09809970110654831,
0.7929192781448364,
0.5669893026351929,
-1.1080530881881714,
0.05139240622520447,
-0.715255618095398,
-0.6751959919929504,
1.6691079139709473,
2.090226173400879,
-0.0832897275686264,
-0.13197249174118042,
-0.658390998840332,
-1.1974223852157593,
0.9124755859375,
-0.1348734200000763,
0.14376084506511688,
0.7050111293792725,
-0.6029202342033386,
1.1582742929458618,
0.77705317735672,
0.9560890197753906,
0.15353849530220032,
0.2713850140571594,
0.3879500925540924,
-0.26585885882377625,
-1.0309569835662842,
-0.2699105739593506,
-1.0940840244293213,
-2.43402099609375,
0.29703760147094727,
-0.24806827306747437,
-1.5646852254867554,
-0.12440246343612671,
-0.9376477003097534,
1.0911593437194824,
-0.5080922842025757,
-1.0545743703842163,
-1.5982621908187866,
0.13628537952899933,
-0.012612990103662014,
1.0436657667160034,
-1.553946614265442,
-0.19793236255645752,
1.299282193183899,
0.8650650382041931,
-0.5560420155525208,
1.1325533390045166,
0.24818234145641327,
0.9987050294876099,
0.7574334740638733,
-0.26738062500953674,
0.6713897585868835,
0.07257218658924103,
-1.3479011058807373,
0.42413559556007385,
1.2073570489883423,
0.1727423071861267,
1.4180963039398193,
-0.42477524280548096,
0.056101568043231964,
0.31753212213516235,
-0.6240724325180054,
-0.4884338974952698,
-0.375876784324646,
0.679885983467102,
0.07235990464687347,
-0.9228562116622925,
-0.14369972050189972,
-0.15228377282619476,
-0.3128212094306946,
0.16598381102085114,
-1.4766947031021118,
-0.24161994457244873,
-0.4338986873626709,
-0.5819137692451477,
-1.276990294456482,
-0.051985807716846466,
1.4519016742706299,
-0.7890397906303406,
-0.12661965191364288,
0.41653430461883545,
0.3458671569824219,
0.47299182415008545,
0.6189029812812805,
-0.8061485886573792,
-0.3553091585636139,
-0.33764058351516724,
-0.2934190332889557,
0.2555192708969116,
1.2835465669631958,
0.03451881930232048,
-1.1270431280136108,
0.7632327079772949,
-0.35942843556404114,
0.14913295209407806,
2.02668833732605,
0.16321228444576263,
-0.7344498038291931,
0.3608585596084595,
-0.7948585152626038,
1.8583112955093384,
1.6760296821594238,
1.2701175212860107,
-0.12926147878170013,
-0.9287561178207397,
0.61090487241745,
-0.39219409227371216,
-0.3665979504585266,
0.7999546527862549,
0.3264802396297455,
-0.25442948937416077,
-1.4225326776504517,
0.6970474720001221,
1.2716549634933472,
-0.7431067824363708,
-0.7450993657112122,
0.13524119555950165,
-0.8422430157661438,
1.1357554197311401,
0.6331019997596741,
0.3931795060634613,
0.2954147756099701,
1.6395188570022583,
0.7752870321273804,
-0.524154782295227,
0.45784512162208557,
0.5192008018493652,
-0.1376609057188034,
-2.07201886177063,
-1.0236681699752808,
0.258205771446228,
-0.5070543885231018,
-1.5543861389160156,
1.4859910011291504,
-1.3103231191635132,
-0.9168421626091003,
0.6454625129699707,
0.03790051490068436,
1.324068307876587,
0.31716784834861755,
1.5025933980941772,
2.1316466331481934,
0.7234697341918945,
0.386250764131546,
1.1944764852523804,
-0.19192665815353394,
-0.5061846375465393,
1.8754925727844238,
-0.4610302746295929,
0.4701431095600128,
1.0744291543960571,
-0.2544075846672058,
-0.959307849407196,
-0.802494466304779,
-1.2935621738433838,
-0.6498061418533325,
1.1300824880599976,
-0.0065695978701114655,
-1.1440283060073853,
0.2045074999332428,
1.5738577842712402,
0.20081207156181335,
-0.41785988211631775,
0.5693973302841187,
0.4760652184486389,
-0.9244391322135925,
-0.2580759823322296,
-0.9230842590332031,
0.5030733942985535,
-0.12214037775993347,
-0.27202990651130676,
0.35430052876472473,
0.5138001441955566,
1.3467024564743042,
-0.01949172094464302,
0.18520572781562805,
1.1441915035247803,
-1.2747342586517334,
1.6629711389541626,
-0.6153821349143982,
0.18559420108795166,
-2.398618459701538,
1.4223178625106812,
-0.730297863483429,
1.9748198986053467,
-2.6392455101013184,
0.43612709641456604,
-0.41457828879356384,
-0.42960795760154724,
0.1807205229997635,
-0.3279566168785095,
0.11116743087768555,
-0.057530373334884644,
-1.0697251558303833,
0.04031128063797951,
-0.537138044834137,
0.6721543073654175,
1.0820090770721436,
1.3579307794570923,
-1.1865984201431274,
-0.2562752962112427,
-1.7143596410751343,
-0.17765890061855316,
-0.8867946863174438,
0.2773689925670624,
-1.9799851179122925,
-0.2314714789390564,
-1.9347102642059326,
-2.49436616897583,
-1.4268356561660767,
-0.8090839385986328,
1.176116943359375,
0.1586773842573166,
-0.9746300578117371,
1.2974807024002075,
-0.3914276659488678,
-1.8963388204574585,
1.187274694442749,
-2.090200662612915
] |
https://github.com/huggingface/datasets/issues/4619 | np arrays get turned into native lists | If you add the line `dataset2.set_format('np')` before calling `dataset2[0]['tmp']` it should return `np.ndarray`.
I believe internally it will not store it as a list, it is only returning a list when you index it.
```
In [1]: import datasets, numpy as np
In [2]: dataset = datasets.load_dataset("glue", "mrpc")["validation"]
In [3]: dataset2 = dataset.map(lambda x: {"tmp": np.array([0.5])}, batched=False)
In [4]: dataset2[0]["tmp"]
Out[4]: [0.5]
In [5]: dataset2.set_format('np')
In [6]: dataset2[0]["tmp"]
Out[6]: array([0.5])
``` | ## Describe the bug
When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen?
## Steps to reproduce the bug
```python
>>> import datasets, numpy as np
>>> dataset = datasets.load_dataset("glue", "mrpc")["validation"]
Reusing dataset glue (...)
100%|███████████████████████████████████████████████| 3/3 [00:00<00:00, 1360.61it/s]
>>> dataset2 = dataset.map(lambda x: {"tmp": np.array([0.5])}, batched=False)
100%|██████████████████████████████████████████| 408/408 [00:00<00:00, 10819.97ex/s]
>>> dataset2[0]["tmp"]
[0.5]
>>> type(dataset2[0]["tmp"])
<class 'list'>
```
## Expected results
`dataset2[0]["tmp"]` should be an `np.ndarray`.
## Actual results
It's a list.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: mac, though I'm pretty sure it happens on a linux machine too
- Python version: 3.9.7
- PyArrow version: 6.0.1
| 665 | 71 | np arrays get turned into native lists
## Describe the bug
When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen?
## Steps to reproduce the bug
```python
>>> import datasets, numpy as np
>>> dataset = datasets.load_dataset("glue", "mrpc")["validation"]
Reusing dataset glue (...)
100%|███████████████████████████████████████████████| 3/3 [00:00<00:00, 1360.61it/s]
>>> dataset2 = dataset.map(lambda x: {"tmp": np.array([0.5])}, batched=False)
100%|██████████████████████████████████████████| 408/408 [00:00<00:00, 10819.97ex/s]
>>> dataset2[0]["tmp"]
[0.5]
>>> type(dataset2[0]["tmp"])
<class 'list'>
```
## Expected results
`dataset2[0]["tmp"]` should be an `np.ndarray`.
## Actual results
It's a list.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: mac, though I'm pretty sure it happens on a linux machine too
- Python version: 3.9.7
- PyArrow version: 6.0.1
If you add the line `dataset2.set_format('np')` before calling `dataset2[0]['tmp']` it should return `np.ndarray`.
I believe internally it will not store it as a list, it is only returning a list when you index it.
```
In [1]: import datasets, numpy as np
In [2]: dataset = datasets.load_dataset("glue", "mrpc")["validation"]
In [3]: dataset2 = dataset.map(lambda x: {"tmp": np.array([0.5])}, batched=False)
In [4]: dataset2[0]["tmp"]
Out[4]: [0.5]
In [5]: dataset2.set_format('np')
In [6]: dataset2[0]["tmp"]
Out[6]: array([0.5])
``` | [
-1.2296521663665771,
-0.8293591737747192,
-0.756727397441864,
1.4514260292053223,
-0.17493745684623718,
-1.2277114391326904,
0.09198786318302155,
-1.1415804624557495,
1.7680108547210693,
-0.8037613034248352,
0.3107990324497223,
-1.7112575769424438,
0.010698260739445686,
-0.5442249178886414,
-0.7423348426818848,
-0.9248868823051453,
-0.4061751067638397,
-0.7451372742652893,
1.0069514513015747,
2.449167013168335,
1.1330305337905884,
-1.4264857769012451,
2.7054312229156494,
0.6749787926673889,
-0.09110134094953537,
-0.9137227535247803,
0.5513989329338074,
0.08481291681528091,
-1.3714004755020142,
-0.33346027135849,
-0.9641108512878418,
-0.11717229336500168,
-0.5379671454429626,
-0.5870642066001892,
-0.012489531189203262,
0.3255050480365753,
-0.35618191957473755,
-0.5079384446144104,
-0.49830809235572815,
-0.812213659286499,
0.3541008234024048,
-0.3213331401348114,
0.9870777130126953,
-0.3349054455757141,
1.7646981477737427,
-0.6051947474479675,
0.3895343244075775,
0.6740066409111023,
1.2413568496704102,
0.2763793170452118,
0.03699476271867752,
0.3771527409553528,
0.42137598991394043,
-0.006373540963977575,
0.48685401678085327,
1.158076286315918,
0.6519777178764343,
0.44692739844322205,
0.8560484647750854,
-2.18972110748291,
1.2311676740646362,
-0.9964133501052856,
0.3438498079776764,
1.2848788499832153,
-0.8719748258590698,
0.3338472545146942,
-1.7215238809585571,
-0.055572107434272766,
0.6393412947654724,
-2.2128803730010986,
0.2293577343225479,
-1.393396258354187,
-0.49805784225463867,
0.9019590020179749,
0.34772437810897827,
-1.1432386636734009,
0.11292508989572525,
-0.4146341383457184,
0.9352529644966125,
0.3862832188606262,
1.2014425992965698,
-1.7180838584899902,
0.007057696580886841,
-0.3242339789867401,
0.22674186527729034,
-1.194757103919983,
-1.5266215801239014,
0.6416091322898865,
0.6871054172515869,
0.6072927117347717,
-0.09504422545433044,
1.0033564567565918,
-1.0256823301315308,
0.67999267578125,
-1.011481761932373,
-1.8066396713256836,
-1.3399397134780884,
-2.197676420211792,
-2.2703442573547363,
0.7431002855300903,
-0.513154923915863,
-0.4888477027416229,
2.085150957107544,
-1.0172107219696045,
-1.8227500915527344,
1.1284104585647583,
0.2805668115615845,
-0.008900394663214684,
2.396616220474243,
0.19404050707817078,
-0.7403532862663269,
0.5675930380821228,
-0.7743101119995117,
0.7490084767341614,
-0.287842333316803,
1.2565973997116089,
0.3403022289276123,
-0.9471073746681213,
1.581458568572998,
-0.3611122965812683,
0.6041584610939026,
-0.7452002763748169,
-0.45747214555740356,
-0.6845975518226624,
0.2848277986049652,
1.9877865314483643,
-0.31518831849098206,
1.605565071105957,
-0.26586443185806274,
-1.6015583276748657,
-1.5905166864395142,
0.7931485176086426,
0.5526335835456848,
-0.7541319131851196,
0.0795907974243164,
-0.3521532714366913,
0.1399582177400589,
-0.06544200330972672,
1.2361811399459839,
1.2691134214401245,
0.7753269076347351,
-0.22137650847434998,
-0.8969197273254395,
0.15746654570102692,
-0.07098530232906342,
-0.8051396608352661,
-1.7106491327285767,
-0.3438633978366852,
0.14689743518829346,
0.6713448166847229,
-1.2580583095550537,
1.696921706199646,
0.8376649022102356,
1.9218302965164185,
1.0786681175231934,
-0.37944871187210083,
1.541953206062317,
0.1623736172914505,
1.8565893173217773,
-0.44548335671424866,
0.640150249004364,
-0.4400666654109955,
-1.167712926864624,
0.8603050112724304,
-0.3657742738723755,
-1.9632112979888916,
-0.6629396080970764,
-0.8678851127624512,
-0.10795852541923523,
-0.7820892930030823,
0.9796984791755676,
-0.2981078326702118,
-1.4447499513626099,
0.35613688826560974,
-0.7785072326660156,
-0.0033073164522647858,
-1.20939040184021,
0.2536318302154541,
0.743241548538208,
-0.645786702632904,
0.16201423108577728,
-0.24221505224704742,
-1.4188629388809204,
-0.46126416325569153,
0.21466252207756042,
1.9290724992752075,
-0.810926079750061,
0.901003897190094,
1.094272255897522,
-0.6987990736961365,
0.001941438764333725,
0.3426392674446106,
-0.27781984210014343,
0.8337475657463074,
-1.1518207788467407,
-0.3914300203323364,
1.141658067703247,
-0.09067339450120926,
-0.5284489989280701,
1.4172505140304565,
0.6490303874015808,
-0.9957056641578674,
-0.19109779596328735,
-0.040197860449552536,
-0.7735835909843445,
-0.026204995810985565,
-1.6365947723388672,
-0.15421704947948456,
0.3547123968601227,
-1.5447708368301392,
-0.590752899646759,
-0.22703520953655243,
1.1947118043899536,
-0.10559523105621338,
1.3283193111419678,
-0.3196818232536316,
-0.15488003194332123,
-0.42509371042251587,
-0.39664387702941895,
0.044200338423252106,
-0.3273675739765167,
-0.6082409024238586,
0.2574464976787567,
-0.7636458277702332,
0.2738284766674042,
1.4209879636764526,
0.304367333650589,
0.026306984946131706,
0.5204017162322998,
1.1187467575073242,
0.4448970854282379,
-0.06335219740867615,
-0.8627958297729492,
-1.530227780342102,
1.9982911348342896,
-1.4945703744888306,
1.9582104682922363,
0.6683435440063477,
-0.034274980425834656,
-1.7867571115493774,
-1.9958136081695557,
1.3982594013214111,
1.1256415843963623,
2.4266812801361084,
0.6485652327537537,
0.45436620712280273,
-0.7692601084709167,
-0.6034225821495056,
0.28998881578445435,
-0.9592578411102295,
-0.7825016379356384,
0.21224814653396606,
2.39253306388855,
1.640108346939087,
-0.5512186884880066,
-0.09332388639450073,
-0.9208295345306396,
1.4007954597473145,
-0.15358838438987732,
0.24147646129131317,
1.9649325609207153,
-0.24857878684997559,
-1.1252877712249756,
1.3328043222427368,
-2.2968530654907227,
0.02843826822936535,
1.963281512260437,
0.2172444760799408,
0.10380325466394424,
-1.358824372291565,
-0.7280017733573914,
-0.35295453667640686,
-0.4397987127304077,
-1.3358393907546997,
0.5708443522453308,
-0.23454219102859497,
-0.8444191813468933,
-1.4781055450439453,
0.16939228773117065,
-1.0689589977264404,
-1.6490623950958252,
0.1596422642469406,
1.9145058393478394,
2.009474754333496,
-0.8020527958869934,
1.5679757595062256,
-0.37358540296554565,
0.16844876110553741,
1.1493220329284668,
1.1727571487426758,
3.1446404457092285,
1.9770668745040894,
-1.19547700881958,
0.6749971508979797,
-0.12572810053825378,
-0.45999231934547424,
1.226468801498413,
-1.2344465255737305,
1.2060039043426514,
-0.17487473785877228,
-1.2381857633590698,
-1.1494115591049194,
0.8968983292579651,
0.37415292859077454,
0.045712076127529144,
-0.48999059200286865,
1.2849482297897339,
-0.028091751039028168,
1.3201231956481934,
0.5622706413269043,
-0.2220895141363144,
0.6356044411659241,
-0.4367896020412445,
-0.3986397087574005,
1.571735143661499,
0.1501808762550354,
-1.4591412544250488,
-2.3342154026031494,
-0.18010126054286957,
-0.8764693737030029,
0.045095235109329224,
-0.5790296196937561,
-1.1001032590866089,
1.7243826389312744,
0.3757888376712799,
-1.1891003847122192,
-0.274984210729599,
-0.39014893770217896,
-0.6449699401855469,
2.6825239658355713,
-1.3891682624816895,
-0.2937614917755127,
-0.982467532157898,
-0.6335737705230713,
1.6693048477172852,
-1.1666836738586426,
-0.19700275361537933,
-0.9925151467323303,
-0.44729816913604736,
-1.3629076480865479,
-0.5809757113456726,
-0.01738019287586212,
-0.9499624371528625,
0.8522757291793823,
0.1878442019224167,
-1.1647509336471558,
-0.25043877959251404,
-0.9435152411460876,
0.8339715003967285,
-0.10816581547260284,
0.24222196638584137,
2.0310301780700684,
0.37450525164604187,
-0.31902608275413513,
0.7217996120452881,
1.2275034189224243,
0.645096480846405,
-0.676679790019989,
0.21348755061626434,
-0.6657676100730896,
0.3339773416519165,
-1.380265712738037,
0.22217881679534912,
-2.8244845867156982,
0.7194589972496033,
-0.023959994316101074,
-0.021824825555086136,
0.09651567786931992,
-1.2300223112106323,
1.160813331604004,
2.63885235786438,
-1.1961475610733032,
0.42636802792549133,
0.24902577698230743,
1.2648587226867676,
-1.5185178518295288,
0.24596254527568817,
-0.4631745517253876,
2.1514790058135986,
0.17856109142303467,
1.1514487266540527,
-0.3690299391746521,
-2.397610902786255,
0.6511079668998718,
-1.2823889255523682,
-1.2037757635116577,
0.8039801716804504,
-0.8742069602012634,
0.09606605023145676,
-1.4427143335342407,
-0.16971291601657867,
-0.8773152232170105,
-1.1220468282699585,
0.6840911507606506,
0.03604109585285187,
0.46377405524253845,
-0.5623798966407776,
0.3842969536781311,
-2.2327094078063965,
-1.3946170806884766,
-0.22701133787631989,
-1.0430614948272705,
0.4922908842563629,
-0.28955748677253723,
0.7967694401741028,
-0.22963367402553558,
-0.001626383513212204,
0.37783995270729065,
1.3441848754882812,
3.365572690963745,
0.17885294556617737,
0.38400641083717346,
-0.1613166630268097,
-0.9808456301689148,
1.3807806968688965,
0.9780377149581909,
-0.18649344146251678,
-0.49088403582572937,
-1.0503201484680176,
1.2294352054595947,
1.9732768535614014,
0.9413822889328003,
-0.017880424857139587,
-0.8570482730865479,
-0.7188885807991028,
0.029054822400212288,
0.2209516167640686,
0.43499428033828735,
0.9469165802001953,
0.12958520650863647,
0.09200550615787506,
1.450866460800171,
1.0783144235610962,
-0.3259561061859131,
0.3261584937572479,
-0.8211821913719177,
-0.5222529768943787,
0.6680418252944946,
0.31400689482688904,
0.05230143666267395,
0.38882288336753845,
-1.0826283693313599,
-0.26645272970199585,
-0.3833763897418976,
-0.858526349067688,
-0.643546462059021,
-0.33798953890800476,
-0.2293301373720169,
1.6587532758712769,
-0.012585891410708427,
-0.5681992173194885,
0.019406119361519814,
-0.7659138441085815,
-0.041665807366371155,
-1.0723587274551392,
0.3325556814670563,
-0.18002289533615112,
-0.0873820036649704,
-0.050593383610248566,
1.8027944564819336,
-0.9158793687820435,
-1.9484703540802002,
0.15693399310112,
0.2676713764667511,
-0.3768821358680725,
0.25690707564353943,
1.6433476209640503,
0.701611340045929,
1.4730422496795654,
1.3348275423049927,
0.9825782179832458,
-0.6148340106010437,
-1.3352205753326416,
0.5524507164955139,
0.945142388343811,
-1.2615262269973755,
0.7978525161743164,
-0.01461324468255043,
-0.5523858070373535,
0.535609245300293,
1.3237268924713135,
0.5061922073364258,
-1.9785858392715454,
0.7832666039466858,
-0.920860230922699,
0.7872206568717957,
0.7217527031898499,
0.7763181924819946,
0.16312766075134277,
0.7364919185638428,
-1.223248839378357,
-1.1198135614395142,
-0.7943737506866455,
-0.6751739382743835,
1.8437353372573853,
-0.26593512296676636,
0.5038034915924072,
-0.27981245517730713,
-1.330012559890747,
-0.04451315850019455,
0.5858110785484314,
0.3273357152938843,
-0.477591335773468,
0.7686655521392822,
-0.6449828147888184,
-1.1177819967269897,
-1.3513116836547852,
-0.47786158323287964,
-1.0184956789016724,
-0.9831171035766602,
1.0716511011123657,
0.797073483467102,
0.38630056381225586,
1.8675169944763184,
0.7075700163841248,
0.17471888661384583,
-2.659085750579834,
0.9427734613418579,
0.2624085545539856,
-0.11115524917840958,
0.873290479183197,
0.3701961636543274,
1.0056962966918945,
-0.10004109144210815,
0.6032097935676575,
-2.3856680393218994,
2.2673163414001465,
-0.2348097711801529,
0.7162419557571411,
0.0227657463401556,
-0.10258173197507858,
0.963690996170044,
0.5481201410293579,
0.5584210753440857,
-1.0904936790466309,
0.617385983467102,
-0.6300715804100037,
1.2685390710830688,
0.8948853611946106,
-0.7630719542503357,
-0.0034654205664992332,
1.301642894744873,
0.5313680171966553,
-0.5731930732727051,
-0.9055073261260986,
-0.9554017782211304,
0.952258825302124,
1.740760326385498,
-0.06709514558315277,
-0.014191823080182076,
0.8466280102729797,
0.6197029948234558,
-1.3578526973724365,
-0.028646092861890793,
-0.7246435284614563,
-0.7502517700195312,
1.668915033340454,
2.0604867935180664,
-0.06935948133468628,
-0.12566839158535004,
-0.6646950244903564,
-1.2938076257705688,
0.7692378759384155,
0.08481990545988083,
0.09583569318056107,
0.7003389596939087,
-0.5987827777862549,
1.1751714944839478,
0.8493109941482544,
0.9339978694915771,
0.2870712876319885,
0.3916924297809601,
0.3758912682533264,
-0.3285209834575653,
-1.1625876426696777,
-0.23036609590053558,
-0.9884615540504456,
-2.442653179168701,
0.45063507556915283,
-0.24479135870933533,
-1.4188787937164307,
-0.10404937714338303,
-1.005156397819519,
0.9355409145355225,
-0.516057550907135,
-1.012502670288086,
-1.4701662063598633,
0.2168530374765396,
0.03554985672235489,
1.0094915628433228,
-1.523297905921936,
-0.10770203173160553,
1.2800419330596924,
1.0422426462173462,
-0.7824317216873169,
1.019752025604248,
0.2715321183204651,
1.0484744310379028,
0.9090933203697205,
-0.4009276032447815,
0.4745337665081024,
0.05045954883098602,
-1.2734490633010864,
0.47798821330070496,
1.164435625076294,
0.17948654294013977,
1.5091216564178467,
-0.5724261999130249,
-0.11816420406103134,
0.36829715967178345,
-0.4499237537384033,
-0.39750370383262634,
-0.7388509511947632,
0.5817028284072876,
0.15270255506038666,
-0.8757534027099609,
-0.11990299820899963,
0.009495256468653679,
-0.19871823489665985,
0.23262940347194672,
-1.4737536907196045,
-0.012774495407938957,
-0.3905034065246582,
-0.616633415222168,
-1.089424967765808,
-0.059131428599357605,
1.3746306896209717,
-0.8540884256362915,
-0.09759289026260376,
0.41482827067375183,
0.26123130321502686,
0.4689786732196808,
0.6765711307525635,
-0.6662991642951965,
-0.4486527740955353,
-0.26963987946510315,
-0.38811323046684265,
0.2700241208076477,
1.3706908226013184,
-0.1208806037902832,
-1.049599528312683,
0.6859578490257263,
-0.36790046095848083,
0.0006613032892346382,
1.8510713577270508,
0.008966624736785889,
-0.8335994482040405,
0.26563799381256104,
-0.7034539580345154,
1.9763343334197998,
1.721514105796814,
1.2702016830444336,
-0.1333906352519989,
-0.9030265808105469,
0.6198909282684326,
-0.34352004528045654,
-0.4488303065299988,
0.8132956624031067,
0.4089995324611664,
-0.24882832169532776,
-1.477870225906372,
0.6521469354629517,
1.274043321609497,
-0.9295122027397156,
-0.7404370307922363,
0.1059916764497757,
-0.7902049422264099,
1.017311692237854,
0.7563714385032654,
0.38795405626296997,
0.32998737692832947,
1.668695092201233,
0.8234695196151733,
-0.5126965045928955,
0.5355399250984192,
0.551103949546814,
-0.020330671221017838,
-2.0996487140655518,
-1.2092955112457275,
0.333629310131073,
-0.4169508218765259,
-1.6167396306991577,
1.4048223495483398,
-1.1645889282226562,
-0.9424486756324768,
0.5457736253738403,
0.07606080174446106,
1.3407964706420898,
0.3318774104118347,
1.590916395187378,
2.0590975284576416,
0.8355585336685181,
0.332333505153656,
1.2437424659729004,
-0.2204737514257431,
-0.45125246047973633,
1.7465769052505493,
-0.47563400864601135,
0.4946669042110443,
1.052514672279358,
-0.35016104578971863,
-1.0520505905151367,
-0.7591147422790527,
-1.3475666046142578,
-0.7457272410392761,
1.0548603534698486,
0.09344533085823059,
-1.2302327156066895,
0.28837889432907104,
1.6045528650283813,
0.052076198160648346,
-0.36900705099105835,
0.6559044122695923,
0.42357590794563293,
-0.8601182699203491,
-0.14603926241397858,
-0.960371732711792,
0.5979228615760803,
-0.11801471561193466,
-0.3194027841091156,
0.3117718994617462,
0.42295214533805847,
1.4053641557693481,
0.04483900964260101,
0.14080512523651123,
1.2618285417556763,
-1.4252588748931885,
1.5233867168426514,
-0.7657107710838318,
0.2559702694416046,
-2.432943344116211,
1.3670897483825684,
-0.8069525361061096,
1.934818148612976,
-2.712120294570923,
0.44226834177970886,
-0.507561206817627,
-0.4348788559436798,
0.26432839035987854,
-0.29855430126190186,
0.18056468665599823,
-0.1746271252632141,
-1.110053300857544,
-0.10149607062339783,
-0.7125774025917053,
0.572799026966095,
1.0666347742080688,
1.388093113899231,
-1.0897029638290405,
-0.31741946935653687,
-1.7198848724365234,
-0.05074523389339447,
-0.6529744267463684,
0.22008027136325836,
-1.9511278867721558,
-0.21260425448417664,
-1.870434045791626,
-2.467459201812744,
-1.3437871932983398,
-0.7532163858413696,
1.063407063484192,
0.05619918555021286,
-0.9134347438812256,
1.1879781484603882,
-0.3508312702178955,
-1.8554047346115112,
1.1851086616516113,
-2.124202013015747
] |
https://github.com/huggingface/datasets/issues/4619 | np arrays get turned into native lists | I see, thanks! Any idea if the default numpy → list conversion might cause precision loss? | ## Describe the bug
When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen?
## Steps to reproduce the bug
```python
>>> import datasets, numpy as np
>>> dataset = datasets.load_dataset("glue", "mrpc")["validation"]
Reusing dataset glue (...)
100%|███████████████████████████████████████████████| 3/3 [00:00<00:00, 1360.61it/s]
>>> dataset2 = dataset.map(lambda x: {"tmp": np.array([0.5])}, batched=False)
100%|██████████████████████████████████████████| 408/408 [00:00<00:00, 10819.97ex/s]
>>> dataset2[0]["tmp"]
[0.5]
>>> type(dataset2[0]["tmp"])
<class 'list'>
```
## Expected results
`dataset2[0]["tmp"]` should be an `np.ndarray`.
## Actual results
It's a list.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: mac, though I'm pretty sure it happens on a linux machine too
- Python version: 3.9.7
- PyArrow version: 6.0.1
| 665 | 16 | np arrays get turned into native lists
## Describe the bug
When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen?
## Steps to reproduce the bug
```python
>>> import datasets, numpy as np
>>> dataset = datasets.load_dataset("glue", "mrpc")["validation"]
Reusing dataset glue (...)
100%|███████████████████████████████████████████████| 3/3 [00:00<00:00, 1360.61it/s]
>>> dataset2 = dataset.map(lambda x: {"tmp": np.array([0.5])}, batched=False)
100%|██████████████████████████████████████████| 408/408 [00:00<00:00, 10819.97ex/s]
>>> dataset2[0]["tmp"]
[0.5]
>>> type(dataset2[0]["tmp"])
<class 'list'>
```
## Expected results
`dataset2[0]["tmp"]` should be an `np.ndarray`.
## Actual results
It's a list.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: mac, though I'm pretty sure it happens on a linux machine too
- Python version: 3.9.7
- PyArrow version: 6.0.1
I see, thanks! Any idea if the default numpy → list conversion might cause precision loss? | [
-1.2068750858306885,
-0.8216241598129272,
-0.7683005928993225,
1.461892008781433,
-0.17699985206127167,
-1.197507619857788,
0.0933268815279007,
-1.123651385307312,
1.7333588600158691,
-0.7870030403137207,
0.33053353428840637,
-1.7051852941513062,
0.02417638711631298,
-0.5213012099266052,
-0.7347666621208191,
-0.9477721452713013,
-0.4241136610507965,
-0.7227926254272461,
1.016366958618164,
2.4865496158599854,
1.139413833618164,
-1.4194302558898926,
2.6953845024108887,
0.6786288619041443,
-0.1638919711112976,
-0.8986878991127014,
0.5699300169944763,
0.11976662278175354,
-1.3654658794403076,
-0.3406398296356201,
-0.935543954372406,
-0.10047981888055801,
-0.5386232733726501,
-0.5589501857757568,
-0.0023515131324529648,
0.30430713295936584,
-0.3452415466308594,
-0.5056831240653992,
-0.4876278340816498,
-0.8515294790267944,
0.34940823912620544,
-0.30902329087257385,
0.9254117012023926,
-0.3288756012916565,
1.7759393453598022,
-0.6185964941978455,
0.3965201675891876,
0.703925609588623,
1.2236961126327515,
0.2704085111618042,
-0.0003098566085100174,
0.38968804478645325,
0.43470197916030884,
-0.03206875920295715,
0.47020936012268066,
1.115835428237915,
0.6239063143730164,
0.4617294669151306,
0.7935612797737122,
-2.1775386333465576,
1.2713463306427002,
-1.016843557357788,
0.29982781410217285,
1.3296934366226196,
-0.9178363680839539,
0.36693963408470154,
-1.697664737701416,
-0.07902856171131134,
0.6145600080490112,
-2.2407350540161133,
0.20836178958415985,
-1.3711106777191162,
-0.5195794105529785,
0.860680103302002,
0.37216007709503174,
-1.169469952583313,
0.07620634883642197,
-0.43562981486320496,
0.9378858804702759,
0.3926922678947449,
1.2009278535842896,
-1.719329595565796,
-0.016644790768623352,
-0.3251635432243347,
0.192477747797966,
-1.236387014389038,
-1.5244839191436768,
0.6290581822395325,
0.690676748752594,
0.5808352828025818,
-0.03746145963668823,
0.9696962237358093,
-0.9877412915229797,
0.7075967788696289,
-0.9644752144813538,
-1.7933342456817627,
-1.3292498588562012,
-2.245375633239746,
-2.272639036178589,
0.7642787098884583,
-0.5099620223045349,
-0.5158091187477112,
2.0978281497955322,
-1.0428085327148438,
-1.8384313583374023,
1.1549763679504395,
0.2761077880859375,
-0.06398562341928482,
2.450770378112793,
0.22303983569145203,
-0.7204947471618652,
0.5209534168243408,
-0.7927717566490173,
0.7728074789047241,
-0.3396240174770355,
1.2560065984725952,
0.3630657196044922,
-0.9637220501899719,
1.5664547681808472,
-0.35017096996307373,
0.5637555122375488,
-0.7127031683921814,
-0.443229615688324,
-0.7144534587860107,
0.26562440395355225,
1.9867171049118042,
-0.31645870208740234,
1.6113649606704712,
-0.2436874508857727,
-1.5532315969467163,
-1.5923714637756348,
0.8110729455947876,
0.5376025438308716,
-0.812655508518219,
0.1509852558374405,
-0.35470542311668396,
0.13208937644958496,
-0.025278888642787933,
1.2117722034454346,
1.308860421180725,
0.7349298000335693,
-0.22952395677566528,
-0.9153627753257751,
0.17263254523277283,
-0.08805891126394272,
-0.7697969079017639,
-1.7149235010147095,
-0.3576381802558899,
0.10235408693552017,
0.6839807629585266,
-1.2647485733032227,
1.6709156036376953,
0.844197154045105,
1.9025251865386963,
1.0735893249511719,
-0.3850116431713104,
1.5278935432434082,
0.14030180871486664,
1.8591228723526,
-0.4562249779701233,
0.6858631372451782,
-0.45415520668029785,
-1.1684175729751587,
0.8531273007392883,
-0.37439364194869995,
-1.9586882591247559,
-0.6854496002197266,
-0.8885113596916199,
-0.13649354875087738,
-0.7855408787727356,
0.9907779097557068,
-0.26932579278945923,
-1.4225465059280396,
0.3749271631240845,
-0.7749727964401245,
-0.0027728253044188023,
-1.2384779453277588,
0.30428946018218994,
0.7346060276031494,
-0.5754566192626953,
0.1238035261631012,
-0.25685983896255493,
-1.3848167657852173,
-0.4420112073421478,
0.20009727776050568,
1.9284225702285767,
-0.7842638492584229,
0.9655267000198364,
1.0513710975646973,
-0.709572434425354,
0.008015425875782967,
0.35043907165527344,
-0.2727853059768677,
0.8648093342781067,
-1.1423463821411133,
-0.3575884699821472,
1.1364476680755615,
-0.12812243402004242,
-0.5261620283126831,
1.4154703617095947,
0.6491643786430359,
-0.9835770726203918,
-0.2061455249786377,
-0.05912652611732483,
-0.7803912162780762,
-0.004766547586768866,
-1.6677937507629395,
-0.12872746586799622,
0.3449344038963318,
-1.5385353565216064,
-0.5690827369689941,
-0.2036084234714508,
1.19256591796875,
-0.11116229742765427,
1.3322697877883911,
-0.33344766497612,
-0.14863549172878265,
-0.4644351601600647,
-0.39033573865890503,
0.062248244881629944,
-0.30897337198257446,
-0.5712000727653503,
0.28014251589775085,
-0.7732346057891846,
0.2506354749202728,
1.4226360321044922,
0.3111291229724884,
0.026226015761494637,
0.5194143056869507,
1.0642471313476562,
0.42493727803230286,
-0.07722870260477066,
-0.8500391840934753,
-1.540261149406433,
2.044722557067871,
-1.5060962438583374,
1.9774829149246216,
0.6797559261322021,
-0.052051156759262085,
-1.7611899375915527,
-2.004854679107666,
1.4004634618759155,
1.1267331838607788,
2.387516975402832,
0.6546585559844971,
0.4670487940311432,
-0.7541759014129639,
-0.6292030215263367,
0.26007556915283203,
-1.0029335021972656,
-0.797610878944397,
0.19364601373672485,
2.4027793407440186,
1.590660810470581,
-0.5470806360244751,
-0.06858823448419571,
-0.9646181464195251,
1.3879687786102295,
-0.0994592010974884,
0.1827227920293808,
1.9667466878890991,
-0.25477370619773865,
-1.1173299551010132,
1.2946974039077759,
-2.3169312477111816,
0.02799217961728573,
1.9713294506072998,
0.23532043397426605,
0.07172905653715134,
-1.3466256856918335,
-0.7572948932647705,
-0.3460398018360138,
-0.42043551802635193,
-1.306862235069275,
0.5633649230003357,
-0.2100168764591217,
-0.8252406716346741,
-1.5036283731460571,
0.1460973620414734,
-1.0590945482254028,
-1.6453399658203125,
0.15974916517734528,
1.909471035003662,
2.0309689044952393,
-0.7740266919136047,
1.5661324262619019,
-0.377096563577652,
0.13679921627044678,
1.1455575227737427,
1.1740267276763916,
3.1439077854156494,
1.9873325824737549,
-1.2139922380447388,
0.6557298898696899,
-0.09292231500148773,
-0.4515519440174103,
1.2352110147476196,
-1.240052580833435,
1.2141178846359253,
-0.16075390577316284,
-1.2344846725463867,
-1.190427303314209,
0.8869337439537048,
0.3516228497028351,
0.024014299735426903,
-0.476919949054718,
1.2933975458145142,
-0.0024110940285027027,
1.3435759544372559,
0.5437473058700562,
-0.20206451416015625,
0.6227875351905823,
-0.47302818298339844,
-0.38166698813438416,
1.6197788715362549,
0.1826283484697342,
-1.4658513069152832,
-2.367293119430542,
-0.20563669502735138,
-0.8609053492546082,
0.08313500881195068,
-0.6017765998840332,
-1.111243724822998,
1.704347014427185,
0.41381576657295227,
-1.154449462890625,
-0.31174910068511963,
-0.3891054689884186,
-0.6631035208702087,
2.680631160736084,
-1.4350230693817139,
-0.2811724841594696,
-0.9635169506072998,
-0.6585929989814758,
1.622246265411377,
-1.2006181478500366,
-0.20118311047554016,
-1.0010498762130737,
-0.4758606255054474,
-1.3525927066802979,
-0.5475016832351685,
-0.05653209239244461,
-0.9771406650543213,
0.8085614442825317,
0.1713176816701889,
-1.1537492275238037,
-0.23851175606250763,
-0.9298729300498962,
0.7972633242607117,
-0.11534757912158966,
0.28120750188827515,
1.9704986810684204,
0.37760692834854126,
-0.31892502307891846,
0.7330579161643982,
1.2427096366882324,
0.6306396126747131,
-0.6929578185081482,
0.18061235547065735,
-0.6532406806945801,
0.30876120924949646,
-1.3099088668823242,
0.23975665867328644,
-2.826815366744995,
0.7067067623138428,
-0.055234529078006744,
-0.010192286223173141,
0.06720174849033356,
-1.2136757373809814,
1.21552312374115,
2.608567953109741,
-1.1730490922927856,
0.4666292071342468,
0.22844983637332916,
1.24675452709198,
-1.520742654800415,
0.2738463580608368,
-0.4366004765033722,
2.2015199661254883,
0.22371242940425873,
1.16374933719635,
-0.38327157497406006,
-2.3800415992736816,
0.6573141813278198,
-1.2533810138702393,
-1.198925495147705,
0.7844851613044739,
-0.8261932730674744,
0.04235953092575073,
-1.4251127243041992,
-0.1795947253704071,
-0.846311092376709,
-1.147608995437622,
0.6897820234298706,
0.0049066683277487755,
0.5061368942260742,
-0.5258122682571411,
0.36940255761146545,
-2.2803518772125244,
-1.3970158100128174,
-0.19947725534439087,
-1.0555686950683594,
0.4858196973800659,
-0.2942516505718231,
0.8001113533973694,
-0.2112250179052353,
0.03899110108613968,
0.3773961067199707,
1.336829662322998,
3.375157356262207,
0.18846642971038818,
0.4166210889816284,
-0.12458014488220215,
-0.9845423698425293,
1.3725441694259644,
0.9492536783218384,
-0.18088021874427795,
-0.49917080998420715,
-1.0568583011627197,
1.2586636543273926,
1.9590704441070557,
0.9505605101585388,
0.014800339937210083,
-0.8554937839508057,
-0.6831943392753601,
0.013566598296165466,
0.2393551915884018,
0.4425067901611328,
0.9275298118591309,
0.11088827252388,
0.12655411660671234,
1.4344311952590942,
1.1043130159378052,
-0.3457375168800354,
0.3684520423412323,
-0.8174373507499695,
-0.5003957748413086,
0.6431556940078735,
0.3135068118572235,
0.020551595836877823,
0.37441378831863403,
-1.0556386709213257,
-0.26448380947113037,
-0.33872008323669434,
-0.857421338558197,
-0.6563345789909363,
-0.32007789611816406,
-0.27251166105270386,
1.6783456802368164,
-0.004475540481507778,
-0.5366684198379517,
0.004391451366245747,
-0.7784305214881897,
-0.030404753983020782,
-1.107663869857788,
0.3086685240268707,
-0.15825755894184113,
-0.07333441823720932,
-0.028354696929454803,
1.8541672229766846,
-0.899833083152771,
-1.9995414018630981,
0.16938889026641846,
0.29361340403556824,
-0.42366182804107666,
0.23039335012435913,
1.651098370552063,
0.674123227596283,
1.4818227291107178,
1.3245679140090942,
0.995778501033783,
-0.6362087726593018,
-1.3232884407043457,
0.5509960651397705,
0.9389365911483765,
-1.2582287788391113,
0.7969045042991638,
-0.010350765660405159,
-0.5407461524009705,
0.5077354907989502,
1.3270152807235718,
0.5216781497001648,
-1.9707211256027222,
0.7955273389816284,
-0.9203733205795288,
0.8093667030334473,
0.6910343170166016,
0.7679108381271362,
0.17916053533554077,
0.7192607522010803,
-1.2490280866622925,
-1.0947552919387817,
-0.8164132237434387,
-0.6294023394584656,
1.8356918096542358,
-0.2750001549720764,
0.4797765612602234,
-0.2960527241230011,
-1.2871602773666382,
-0.031811170279979706,
0.6075621843338013,
0.3146679103374481,
-0.4359336495399475,
0.7934941649436951,
-0.6050280928611755,
-1.1708800792694092,
-1.366120457649231,
-0.46035632491111755,
-1.0162700414657593,
-0.9771116971969604,
1.085547685623169,
0.7844781279563904,
0.3531210720539093,
1.8739802837371826,
0.6369550228118896,
0.15079934895038605,
-2.6812853813171387,
0.9435438513755798,
0.25696590542793274,
-0.10530971735715866,
0.9009160399436951,
0.35202428698539734,
1.048165202140808,
-0.0820377767086029,
0.5690985918045044,
-2.392124652862549,
2.294389009475708,
-0.22611431777477264,
0.7264394164085388,
0.05281517654657364,
-0.07152465730905533,
0.9695425629615784,
0.5635417699813843,
0.5563817620277405,
-1.0983104705810547,
0.6742191314697266,
-0.6285359859466553,
1.2645900249481201,
0.9092663526535034,
-0.7649226784706116,
-0.007894032634794712,
1.2886500358581543,
0.5264267325401306,
-0.5531873106956482,
-0.9141808748245239,
-0.9334229826927185,
0.9472264647483826,
1.747032642364502,
-0.07042290270328522,
0.007863111793994904,
0.7990948557853699,
0.6071251034736633,
-1.3493194580078125,
0.00360302347689867,
-0.7163004875183105,
-0.767844021320343,
1.6382228136062622,
2.0589194297790527,
-0.05209635943174362,
-0.13829897344112396,
-0.6844612956047058,
-1.354493498802185,
0.7924285531044006,
0.07139859348535538,
0.1347488909959793,
0.7037046551704407,
-0.5862932801246643,
1.182113766670227,
0.8560908436775208,
0.9690828323364258,
0.27109646797180176,
0.36223727464675903,
0.3630354702472687,
-0.29171431064605713,
-1.132574439048767,
-0.22836290299892426,
-1.0160973072052002,
-2.4837021827697754,
0.480886846780777,
-0.3069044053554535,
-1.4225248098373413,
-0.11343022435903549,
-1.0185699462890625,
0.9240060448646545,
-0.534201443195343,
-0.9872779250144958,
-1.487097144126892,
0.1805087774991989,
-0.020760780200362206,
0.9956774115562439,
-1.5125070810317993,
-0.12320494651794434,
1.3097965717315674,
1.0083938837051392,
-0.7705628275871277,
1.0626357793807983,
0.291964590549469,
1.0225554704666138,
0.8919251561164856,
-0.396124929189682,
0.49713146686553955,
0.07668992877006531,
-1.27394700050354,
0.4972384572029114,
1.1998448371887207,
0.20713146030902863,
1.5155185461044312,
-0.5828744173049927,
-0.14264823496341705,
0.36925920844078064,
-0.39216282963752747,
-0.41479501128196716,
-0.6747080087661743,
0.5854565501213074,
0.1522800326347351,
-0.9143784046173096,
-0.08091557025909424,
-0.03145245462656021,
-0.1627499908208847,
0.2254299521446228,
-1.4725438356399536,
-0.032426852732896805,
-0.42220911383628845,
-0.5953589677810669,
-1.1371452808380127,
-0.08926580101251602,
1.38627028465271,
-0.8626706600189209,
-0.06583809852600098,
0.40513452887535095,
0.2825049161911011,
0.48167866468429565,
0.705028235912323,
-0.6306993961334229,
-0.45414361357688904,
-0.28947049379348755,
-0.37190431356430054,
0.2828402519226074,
1.3092533349990845,
-0.1301412433385849,
-1.0352636575698853,
0.65127032995224,
-0.3293050527572632,
0.030394116416573524,
1.865533709526062,
0.0066877249628305435,
-0.8570703864097595,
0.26663950085639954,
-0.6642394065856934,
2.002342700958252,
1.6871674060821533,
1.294309139251709,
-0.12115035206079483,
-0.9463257789611816,
0.6405110955238342,
-0.2946796715259552,
-0.40699222683906555,
0.8091652393341064,
0.45780447125434875,
-0.2428857833147049,
-1.4891505241394043,
0.6298704147338867,
1.2591503858566284,
-0.9384313821792603,
-0.76813143491745,
0.10391099005937576,
-0.7909929752349854,
1.0146592855453491,
0.7303116917610168,
0.38715237379074097,
0.3189360201358795,
1.6882376670837402,
0.7897478342056274,
-0.5417393445968628,
0.5344078540802002,
0.5193442106246948,
-0.05919104069471359,
-2.10332989692688,
-1.1759979724884033,
0.33332687616348267,
-0.4454127550125122,
-1.5945580005645752,
1.4104008674621582,
-1.1340103149414062,
-0.9266629219055176,
0.555375337600708,
0.09255800396203995,
1.36740243434906,
0.29512178897857666,
1.6310946941375732,
2.052799701690674,
0.8601974844932556,
0.30605924129486084,
1.233166217803955,
-0.23446480929851532,
-0.45239052176475525,
1.722172737121582,
-0.45299649238586426,
0.4567897319793701,
1.1122666597366333,
-0.3815934360027313,
-1.021860122680664,
-0.7668670415878296,
-1.3041132688522339,
-0.7724910974502563,
1.068895936012268,
0.11333055794239044,
-1.2067911624908447,
0.2668393552303314,
1.609187126159668,
0.07854118198156357,
-0.3506055772304535,
0.6249427795410156,
0.45906201004981995,
-0.8484483361244202,
-0.14032427966594696,
-0.9998133182525635,
0.5853451490402222,
-0.11379148066043854,
-0.33911895751953125,
0.27639761567115784,
0.38176748156547546,
1.3778783082962036,
0.04028106480836868,
0.13611957430839539,
1.2685847282409668,
-1.4508966207504272,
1.53300142288208,
-0.7185556292533875,
0.21269550919532776,
-2.3970999717712402,
1.3857172727584839,
-0.7929544448852539,
1.9222623109817505,
-2.6924099922180176,
0.43198874592781067,
-0.5481263995170593,
-0.3955519199371338,
0.2681347727775574,
-0.3105454742908478,
0.1924765259027481,
-0.24022340774536133,
-1.0895358324050903,
-0.15283197164535522,
-0.7186643481254578,
0.547269344329834,
1.0768436193466187,
1.363340973854065,
-1.0802524089813232,
-0.3083382844924927,
-1.7107293605804443,
-0.05484507232904434,
-0.61806720495224,
0.19961689412593842,
-1.9059944152832031,
-0.20092396438121796,
-1.8947954177856445,
-2.4518001079559326,
-1.353652834892273,
-0.7530716061592102,
1.0539882183074951,
0.045838162302970886,
-0.9260114431381226,
1.1649242639541626,
-0.34168553352355957,
-1.8437420129776,
1.2046862840652466,
-2.1213512420654297
] |
https://github.com/huggingface/datasets/issues/4619 | np arrays get turned into native lists | I'm not super familiar with our datasets works internally, but I think your `np` array will be stored in a `pyarrow` format, and then you take a view of this as a python array. In which case, I think the precision should be preserved. | ## Describe the bug
When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen?
## Steps to reproduce the bug
```python
>>> import datasets, numpy as np
>>> dataset = datasets.load_dataset("glue", "mrpc")["validation"]
Reusing dataset glue (...)
100%|███████████████████████████████████████████████| 3/3 [00:00<00:00, 1360.61it/s]
>>> dataset2 = dataset.map(lambda x: {"tmp": np.array([0.5])}, batched=False)
100%|██████████████████████████████████████████| 408/408 [00:00<00:00, 10819.97ex/s]
>>> dataset2[0]["tmp"]
[0.5]
>>> type(dataset2[0]["tmp"])
<class 'list'>
```
## Expected results
`dataset2[0]["tmp"]` should be an `np.ndarray`.
## Actual results
It's a list.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: mac, though I'm pretty sure it happens on a linux machine too
- Python version: 3.9.7
- PyArrow version: 6.0.1
| 665 | 44 | np arrays get turned into native lists
## Describe the bug
When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen?
## Steps to reproduce the bug
```python
>>> import datasets, numpy as np
>>> dataset = datasets.load_dataset("glue", "mrpc")["validation"]
Reusing dataset glue (...)
100%|███████████████████████████████████████████████| 3/3 [00:00<00:00, 1360.61it/s]
>>> dataset2 = dataset.map(lambda x: {"tmp": np.array([0.5])}, batched=False)
100%|██████████████████████████████████████████| 408/408 [00:00<00:00, 10819.97ex/s]
>>> dataset2[0]["tmp"]
[0.5]
>>> type(dataset2[0]["tmp"])
<class 'list'>
```
## Expected results
`dataset2[0]["tmp"]` should be an `np.ndarray`.
## Actual results
It's a list.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: mac, though I'm pretty sure it happens on a linux machine too
- Python version: 3.9.7
- PyArrow version: 6.0.1
I'm not super familiar with our datasets works internally, but I think your `np` array will be stored in a `pyarrow` format, and then you take a view of this as a python array. In which case, I think the precision should be preserved. | [
-1.1993778944015503,
-0.8747811913490295,
-0.7353445291519165,
1.4185562133789062,
-0.17726284265518188,
-1.2277740240097046,
0.10740496218204498,
-1.1511837244033813,
1.747473120689392,
-0.8028281927108765,
0.33303362131118774,
-1.7192392349243164,
0.0035390714183449745,
-0.5387536883354187,
-0.75544673204422,
-0.9251337647438049,
-0.40310895442962646,
-0.7418296337127686,
1.0006681680679321,
2.4903922080993652,
1.1493443250656128,
-1.4221012592315674,
2.687891960144043,
0.6648425459861755,
-0.1510854810476303,
-0.9122155904769897,
0.5700599551200867,
0.08470942825078964,
-1.3676496744155884,
-0.3686012625694275,
-0.9303448796272278,
-0.09824776649475098,
-0.5621784925460815,
-0.5783464312553406,
-0.019938912242650986,
0.32276153564453125,
-0.3368385434150696,
-0.48610788583755493,
-0.4593728184700012,
-0.8460755348205566,
0.3589858114719391,
-0.3085291087627411,
0.9501256346702576,
-0.32868656516075134,
1.7514278888702393,
-0.6105165481567383,
0.41910576820373535,
0.6875506639480591,
1.250245213508606,
0.2751007378101349,
-0.010553544387221336,
0.3731216490268707,
0.40919795632362366,
-0.033504419028759,
0.4888800382614136,
1.1252219676971436,
0.6329953670501709,
0.4443378448486328,
0.8057812452316284,
-2.18062686920166,
1.2708550691604614,
-0.9780353307723999,
0.3331890106201172,
1.287835717201233,
-0.8797107934951782,
0.36501163244247437,
-1.7047239542007446,
-0.11523258686065674,
0.603009045124054,
-2.2144410610198975,
0.20818330347537994,
-1.4053477048873901,
-0.5021674036979675,
0.868642270565033,
0.34402701258659363,
-1.177746295928955,
0.08529119938611984,
-0.41230860352516174,
0.9362083077430725,
0.40206655859947205,
1.185791254043579,
-1.705834150314331,
-0.03149449825286865,
-0.3325503468513489,
0.2121421992778778,
-1.1961078643798828,
-1.5198454856872559,
0.6003511548042297,
0.6667946577072144,
0.5793494582176208,
-0.054426975548267365,
0.9651470184326172,
-1.0122969150543213,
0.6913570165634155,
-0.9671351909637451,
-1.788007378578186,
-1.309061050415039,
-2.2252540588378906,
-2.2879879474639893,
0.7598322033882141,
-0.514035701751709,
-0.5031397938728333,
2.102586507797241,
-1.023048996925354,
-1.8182218074798584,
1.1317659616470337,
0.2667240798473358,
-0.05707772076129913,
2.437106132507324,
0.21984469890594482,
-0.7302177548408508,
0.5370129942893982,
-0.7845799326896667,
0.7401044964790344,
-0.3423226475715637,
1.279490351676941,
0.33214861154556274,
-0.9667694568634033,
1.5886728763580322,
-0.3829829692840576,
0.5644654631614685,
-0.7119274139404297,
-0.45434755086898804,
-0.704435408115387,
0.29710349440574646,
1.9609944820404053,
-0.31236353516578674,
1.6043148040771484,
-0.2647458016872406,
-1.5781309604644775,
-1.610426664352417,
0.8065112233161926,
0.5218302011489868,
-0.8088029623031616,
0.1205897256731987,
-0.35596567392349243,
0.13115233182907104,
-0.02575443685054779,
1.2102152109146118,
1.305435061454773,
0.7720707654953003,
-0.2297540158033371,
-0.8942372798919678,
0.17399145662784576,
-0.11459875106811523,
-0.7753456234931946,
-1.7335528135299683,
-0.3409852683544159,
0.1355471909046173,
0.6773287653923035,
-1.2424427270889282,
1.6988052129745483,
0.8626251816749573,
1.9124045372009277,
1.0754787921905518,
-0.3685668706893921,
1.5281274318695068,
0.15547700226306915,
1.8644187450408936,
-0.4560014009475708,
0.6609840989112854,
-0.4581018090248108,
-1.1513005495071411,
0.8808584213256836,
-0.3615257143974304,
-1.957119107246399,
-0.6599568128585815,
-0.867824137210846,
-0.12954451143741608,
-0.7869497537612915,
0.9996877312660217,
-0.2575441300868988,
-1.4114936590194702,
0.3852214515209198,
-0.7850448489189148,
0.009680242277681828,
-1.2113343477249146,
0.30927765369415283,
0.7349209785461426,
-0.5980107188224792,
0.14794522523880005,
-0.24728018045425415,
-1.388798713684082,
-0.46103671193122864,
0.2162037044763565,
1.8943337202072144,
-0.8023540377616882,
0.9147359132766724,
1.071492314338684,
-0.694352388381958,
-0.021992836147546768,
0.3735162913799286,
-0.2989308536052704,
0.8260828256607056,
-1.1366945505142212,
-0.33798056840896606,
1.1140410900115967,
-0.1443929672241211,
-0.5232732892036438,
1.4138813018798828,
0.6843528747558594,
-0.9836768507957458,
-0.14882124960422516,
-0.07637987285852432,
-0.7823863625526428,
-0.0024142595939338207,
-1.6607168912887573,
-0.13004519045352936,
0.3551185727119446,
-1.5791656970977783,
-0.5720176100730896,
-0.20169810950756073,
1.2149053812026978,
-0.06744939088821411,
1.3364959955215454,
-0.3292948603630066,
-0.13700947165489197,
-0.4557054340839386,
-0.3845618665218353,
0.0725313127040863,
-0.31799423694610596,
-0.5523555874824524,
0.2849012613296509,
-0.7474381923675537,
0.24589192867279053,
1.4231922626495361,
0.31383422017097473,
-0.005743741523474455,
0.5016356706619263,
1.0838547945022583,
0.4124312400817871,
-0.08323512971401215,
-0.8393580913543701,
-1.5266188383102417,
2.045949935913086,
-1.5172592401504517,
1.9803475141525269,
0.688549280166626,
-0.027670051902532578,
-1.788252830505371,
-1.995131492614746,
1.401292085647583,
1.123990774154663,
2.3931713104248047,
0.6289594173431396,
0.4641960859298706,
-0.7720219492912292,
-0.6051998138427734,
0.2926497161388397,
-0.9991925954818726,
-0.790541410446167,
0.179911270737648,
2.383291721343994,
1.6230241060256958,
-0.5613583922386169,
-0.07077779620885849,
-0.9587286114692688,
1.4161243438720703,
-0.10426237434148788,
0.20313213765621185,
1.9662144184112549,
-0.2722722589969635,
-1.0970981121063232,
1.3104183673858643,
-2.3141114711761475,
0.03710052743554115,
1.9735755920410156,
0.19777724146842957,
0.08336401730775833,
-1.3372948169708252,
-0.729865550994873,
-0.3517236113548279,
-0.4329570233821869,
-1.304851770401001,
0.5689549446105957,
-0.19267792999744415,
-0.8203890323638916,
-1.5296684503555298,
0.17023791372776031,
-1.0821231603622437,
-1.6701538562774658,
0.18631598353385925,
1.9164268970489502,
2.044710874557495,
-0.7833214402198792,
1.5908845663070679,
-0.3432063162326813,
0.18972374498844147,
1.167784333229065,
1.164945125579834,
3.153641700744629,
1.9868391752243042,
-1.2165992259979248,
0.6403765082359314,
-0.09734328836202621,
-0.4668853282928467,
1.2121164798736572,
-1.2299625873565674,
1.21011483669281,
-0.17997623980045319,
-1.231044054031372,
-1.1478385925292969,
0.8962305188179016,
0.3670032024383545,
0.040767449885606766,
-0.45047542452812195,
1.2782644033432007,
0.002255519852042198,
1.3481699228286743,
0.5713332295417786,
-0.198042094707489,
0.637805163860321,
-0.4621070921421051,
-0.3859986364841461,
1.6093487739562988,
0.20059196650981903,
-1.4583549499511719,
-2.3529727458953857,
-0.19937284290790558,
-0.8822311758995056,
0.05648893117904663,
-0.5915914177894592,
-1.1074249744415283,
1.6600862741470337,
0.41285526752471924,
-1.1552449464797974,
-0.317802757024765,
-0.36507517099380493,
-0.6312025785446167,
2.6761932373046875,
-1.4244061708450317,
-0.261243999004364,
-0.9576503038406372,
-0.6507469415664673,
1.6291543245315552,
-1.2098747491836548,
-0.20139814913272858,
-1.0147236585617065,
-0.47008898854255676,
-1.3474171161651611,
-0.54584139585495,
-0.07802931219339371,
-0.9558854699134827,
0.8196638226509094,
0.1873236745595932,
-1.1701010465621948,
-0.24962805211544037,
-0.9595097303390503,
0.800440788269043,
-0.09229755401611328,
0.28365808725357056,
1.9449632167816162,
0.3708387613296509,
-0.3578047454357147,
0.7186707258224487,
1.2331680059432983,
0.6203352212905884,
-0.6722796559333801,
0.18869784474372864,
-0.6769018173217773,
0.3173980116844177,
-1.3270395994186401,
0.21336287260055542,
-2.827911376953125,
0.704506516456604,
-0.05733698979020119,
-0.028687387704849243,
0.039430808275938034,
-1.236649513244629,
1.2062829732894897,
2.595201253890991,
-1.182930827140808,
0.463876336812973,
0.23576487600803375,
1.2507925033569336,
-1.5139636993408203,
0.2699124813079834,
-0.4403723478317261,
2.198026657104492,
0.2008165866136551,
1.1546326875686646,
-0.37307247519493103,
-2.3955295085906982,
0.6526328325271606,
-1.2594996690750122,
-1.1937533617019653,
0.7845463156700134,
-0.8523867130279541,
0.018751509487628937,
-1.4359171390533447,
-0.15441849827766418,
-0.8660445809364319,
-1.1523175239562988,
0.6882107853889465,
0.02502353861927986,
0.48421430587768555,
-0.5598632097244263,
0.35575664043426514,
-2.2361416816711426,
-1.3974878787994385,
-0.2208385020494461,
-1.0037094354629517,
0.4902826249599457,
-0.2722368836402893,
0.7884677648544312,
-0.23599591851234436,
0.02342161536216736,
0.39704710245132446,
1.3375377655029297,
3.3820199966430664,
0.1773281991481781,
0.4261181354522705,
-0.15090149641036987,
-0.9887624979019165,
1.3625911474227905,
0.9689735770225525,
-0.19899588823318481,
-0.49932414293289185,
-1.0747267007827759,
1.2577133178710938,
1.9785935878753662,
0.9659351110458374,
0.02769922837615013,
-0.8214942812919617,
-0.6853679418563843,
0.01616189256310463,
0.25494715571403503,
0.44354069232940674,
0.9460006952285767,
0.14548003673553467,
0.10016600787639618,
1.442674160003662,
1.0968927145004272,
-0.35571974515914917,
0.37091144919395447,
-0.8220540285110474,
-0.5069631934165955,
0.6328992247581482,
0.31314533948898315,
0.005152465775609016,
0.3417375683784485,
-1.045801043510437,
-0.2708870470523834,
-0.34714365005493164,
-0.8735970854759216,
-0.6650493741035461,
-0.3497966527938843,
-0.2580702602863312,
1.6758389472961426,
-0.012784913182258606,
-0.5645846724510193,
0.017544887959957123,
-0.7417312860488892,
-0.03306861221790314,
-1.1090248823165894,
0.3094030022621155,
-0.17104080319404602,
-0.06723969429731369,
-0.04030684381723404,
1.8231596946716309,
-0.8933188319206238,
-1.995423436164856,
0.1808399260044098,
0.2859230637550354,
-0.39870351552963257,
0.2523055076599121,
1.6566479206085205,
0.6522795557975769,
1.4917495250701904,
1.3519231081008911,
1.014892578125,
-0.6431230902671814,
-1.3103922605514526,
0.5903573632240295,
0.9314570426940918,
-1.2681794166564941,
0.7752902507781982,
0.024037882685661316,
-0.5515683889389038,
0.5403633117675781,
1.2912558317184448,
0.51777583360672,
-2.007070779800415,
0.7906630039215088,
-0.9110364317893982,
0.7895762324333191,
0.695641040802002,
0.7919949293136597,
0.2103061079978943,
0.7360451817512512,
-1.2459765672683716,
-1.10556960105896,
-0.8098360300064087,
-0.6603196859359741,
1.849271297454834,
-0.27711814641952515,
0.5150006413459778,
-0.255551278591156,
-1.3196076154708862,
-0.05074251815676689,
0.6315617561340332,
0.3105529248714447,
-0.4961804151535034,
0.790047287940979,
-0.6184784173965454,
-1.1355202198028564,
-1.364834189414978,
-0.4476746916770935,
-1.047866702079773,
-0.9894130229949951,
1.0489877462387085,
0.790069580078125,
0.35469308495521545,
1.8974519968032837,
0.6455692648887634,
0.18081526458263397,
-2.644524335861206,
0.9219980239868164,
0.2730816602706909,
-0.12281611561775208,
0.8989596962928772,
0.35148242115974426,
1.0189768075942993,
-0.10596534609794617,
0.5823453068733215,
-2.4008188247680664,
2.298295497894287,
-0.22538164258003235,
0.7251279354095459,
0.03651047125458717,
-0.0914682075381279,
0.9898542761802673,
0.5470550060272217,
0.5500926375389099,
-1.0745213031768799,
0.6937547922134399,
-0.636019229888916,
1.2640899419784546,
0.9011092782020569,
-0.786013662815094,
-0.012340212240815163,
1.2796131372451782,
0.5317188501358032,
-0.5533339381217957,
-0.9357566237449646,
-0.9643977880477905,
0.9434298872947693,
1.755560040473938,
-0.09544067084789276,
-0.009038114920258522,
0.8031866550445557,
0.609643816947937,
-1.354564905166626,
-0.006776775233447552,
-0.7196991443634033,
-0.7715129852294922,
1.65000581741333,
2.0515329837799072,
-0.06684388220310211,
-0.12064820528030396,
-0.6987881660461426,
-1.3489316701889038,
0.7897021174430847,
0.07591759413480759,
0.11486891657114029,
0.7057733535766602,
-0.5893200039863586,
1.1929819583892822,
0.8854546546936035,
0.940555214881897,
0.28578513860702515,
0.352858304977417,
0.36489996314048767,
-0.29737645387649536,
-1.1247384548187256,
-0.23068280518054962,
-1.0329077243804932,
-2.4709854125976562,
0.4889220893383026,
-0.2862754464149475,
-1.4486768245697021,
-0.11657019704580307,
-1.0169425010681152,
0.9235780239105225,
-0.5249423384666443,
-1.0135326385498047,
-1.4861328601837158,
0.19382216036319733,
-0.002698843367397785,
0.9904346466064453,
-1.4949828386306763,
-0.07851424068212509,
1.2905374765396118,
0.993562638759613,
-0.7498756647109985,
1.0614280700683594,
0.3065698444843292,
1.0271446704864502,
0.9086081385612488,
-0.39891311526298523,
0.4915999472141266,
0.059335172176361084,
-1.2869081497192383,
0.4753992259502411,
1.1954156160354614,
0.1770583987236023,
1.4801039695739746,
-0.611622154712677,
-0.10637495666742325,
0.360455185174942,
-0.3912068009376526,
-0.41788941621780396,
-0.6801961064338684,
0.5996381044387817,
0.15186572074890137,
-0.9122639298439026,
-0.10223308950662613,
-0.0292411670088768,
-0.19473618268966675,
0.23295225203037262,
-1.4816608428955078,
-0.049837831407785416,
-0.4215553104877472,
-0.6073794960975647,
-1.120591640472412,
-0.0796443372964859,
1.3878931999206543,
-0.8206478357315063,
-0.10072517395019531,
0.424888551235199,
0.29284149408340454,
0.48982131481170654,
0.678248405456543,
-0.633602499961853,
-0.44861966371536255,
-0.2925552427768707,
-0.3814242482185364,
0.28751567006111145,
1.3253190517425537,
-0.10352447628974915,
-1.0331642627716064,
0.6813876628875732,
-0.3498389422893524,
0.00457714032381773,
1.8826167583465576,
-0.0023595672100782394,
-0.838742733001709,
0.274895578622818,
-0.6646660566329956,
1.9965603351593018,
1.7283077239990234,
1.269866943359375,
-0.10280347615480423,
-0.9552435874938965,
0.6384408473968506,
-0.310639351606369,
-0.4290984570980072,
0.8257565498352051,
0.4381020665168762,
-0.24975062906742096,
-1.4701303243637085,
0.6442909240722656,
1.243238925933838,
-0.9236791133880615,
-0.7712766528129578,
0.08805549144744873,
-0.7793278098106384,
1.0398657321929932,
0.7344579696655273,
0.40024763345718384,
0.3067982494831085,
1.670767903327942,
0.788906455039978,
-0.5345364809036255,
0.5150439739227295,
0.5556079745292664,
-0.050667181611061096,
-2.1015071868896484,
-1.2059749364852905,
0.3136886656284332,
-0.45293062925338745,
-1.611502766609192,
1.41785728931427,
-1.1672767400741577,
-0.9271280169487,
0.5542870759963989,
0.06459980458021164,
1.349027156829834,
0.32925525307655334,
1.6090972423553467,
2.0540714263916016,
0.8638798594474792,
0.32905641198158264,
1.236057162284851,
-0.23921509087085724,
-0.4376355707645416,
1.7440617084503174,
-0.45708805322647095,
0.46405863761901855,
1.1210017204284668,
-0.3686658442020416,
-1.0174862146377563,
-0.7785845398902893,
-1.2962502241134644,
-0.7378847002983093,
1.0879720449447632,
0.10092119872570038,
-1.193373203277588,
0.3103187382221222,
1.604530930519104,
0.05542096495628357,
-0.3912505507469177,
0.5951358079910278,
0.4509771466255188,
-0.8258612751960754,
-0.1313059777021408,
-1.007893443107605,
0.592223584651947,
-0.1574586033821106,
-0.32991939783096313,
0.3371511697769165,
0.4219170808792114,
1.3857319355010986,
0.03366631641983986,
0.15909424424171448,
1.260321021080017,
-1.4438058137893677,
1.5092648267745972,
-0.7355117201805115,
0.2191941738128662,
-2.3721425533294678,
1.4033786058425903,
-0.7835823893547058,
1.9334042072296143,
-2.7140138149261475,
0.42405396699905396,
-0.5198211669921875,
-0.4077475965023041,
0.2573160231113434,
-0.29652702808380127,
0.17330746352672577,
-0.2362111508846283,
-1.0887269973754883,
-0.135558620095253,
-0.7076922655105591,
0.5385071039199829,
1.0510032176971436,
1.364152431488037,
-1.070854663848877,
-0.323092520236969,
-1.690796136856079,
-0.06381697952747345,
-0.6293381452560425,
0.21318888664245605,
-1.9195226430892944,
-0.18131902813911438,
-1.8912750482559204,
-2.4563686847686768,
-1.3692823648452759,
-0.7568337321281433,
1.0674421787261963,
0.06153620779514313,
-0.8948130011558533,
1.1653151512145996,
-0.3782510757446289,
-1.85722017288208,
1.1881569623947144,
-2.119157075881958
] |
https://github.com/huggingface/datasets/issues/4618 | contribute data loading for object detection datasets with yolo data format | Hi! The `imagefolder` script is already quite complex, so a standalone script sounds better. Also, I suggest we create an org on the Hub (e.g. `hf-loaders`) and store such scripts there for easier maintenance rather than having them as packaged modules (IMO only very generic loaders should be packaged). WDYT @lhoestq @albertvillanova @polinaeterna? | **Is your feature request related to a problem? Please describe.**
At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/2))
**Describe the solution you'd like**
I wrote a [custom script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py) to load dataset which has YOLO data format.
**Describe alternatives you've considered**
The script can either be a standalone dataset builder, or a modified version of `ImageFolder`
**Additional context**
I would be happy to contribute to this, but I would do it at a very slow pace (maybe a month or two) as I have my exams approaching 😄
| 666 | 53 | contribute data loading for object detection datasets with yolo data format
**Is your feature request related to a problem? Please describe.**
At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/2))
**Describe the solution you'd like**
I wrote a [custom script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py) to load dataset which has YOLO data format.
**Describe alternatives you've considered**
The script can either be a standalone dataset builder, or a modified version of `ImageFolder`
**Additional context**
I would be happy to contribute to this, but I would do it at a very slow pace (maybe a month or two) as I have my exams approaching 😄
Hi! The `imagefolder` script is already quite complex, so a standalone script sounds better. Also, I suggest we create an org on the Hub (e.g. `hf-loaders`) and store such scripts there for easier maintenance rather than having them as packaged modules (IMO only very generic loaders should be packaged). WDYT @lhoestq @albertvillanova @polinaeterna? | [
-1.272715449333191,
-0.9913463592529297,
-0.6925296783447266,
1.3897110223770142,
-0.19873377680778503,
-1.3088375329971313,
0.08306236565113068,
-1.0557576417922974,
1.644579291343689,
-0.7345884442329407,
0.27564987540245056,
-1.7356559038162231,
-0.06308615207672119,
-0.5420247912406921,
-0.8090956807136536,
-0.8562669157981873,
-0.4242328107357025,
-0.8538983464241028,
0.9596720337867737,
2.5625436305999756,
1.1536731719970703,
-1.4481350183486938,
2.7509543895721436,
0.6445650458335876,
-0.21878625452518463,
-1.084732174873352,
0.4482726752758026,
0.02229905128479004,
-1.1570249795913696,
-0.5090065002441406,
-0.9422100186347961,
-0.0868978500366211,
-0.5689558386802673,
-0.5133023858070374,
0.12975575029850006,
0.33337169885635376,
-0.15055422484874725,
-0.3328770399093628,
-0.617989718914032,
-0.6801508069038391,
0.506832480430603,
-0.35258039832115173,
0.9659096598625183,
-0.32871559262275696,
1.785469889640808,
-0.669034481048584,
0.4205763041973114,
0.651618480682373,
1.4250571727752686,
0.23712633550167084,
-0.005597408395260572,
0.39040184020996094,
0.41643860936164856,
-0.06533139944076538,
0.5036904215812683,
1.210407018661499,
0.5983630418777466,
0.4607011675834656,
0.7320592999458313,
-2.152050256729126,
1.261874794960022,
-1.055855631828308,
0.33637240529060364,
1.4339722394943237,
-0.9118130803108215,
0.41756749153137207,
-1.8784666061401367,
-0.06985041499137878,
0.5674490332603455,
-2.248671531677246,
0.08441343903541565,
-1.2609150409698486,
-0.5968912839889526,
0.9574461579322815,
0.2453603446483612,
-1.3127918243408203,
0.2586033046245575,
-0.4647553861141205,
1.0658930540084839,
0.42901650071144104,
1.133824348449707,
-1.747277021408081,
-0.06242809444665909,
-0.24569155275821686,
0.18709078431129456,
-1.2594177722930908,
-1.5290530920028687,
0.5738688111305237,
0.6145366430282593,
0.623046338558197,
-0.16468596458435059,
0.9286288022994995,
-0.9444681406021118,
0.9155548214912415,
-1.020460844039917,
-1.6533052921295166,
-1.482958197593689,
-2.230978012084961,
-2.272557258605957,
0.9245423674583435,
-0.5366979241371155,
-0.5307268500328064,
1.9526170492172241,
-1.0257073640823364,
-1.7751328945159912,
1.1076617240905762,
0.31527337431907654,
0.059262920171022415,
2.441225290298462,
0.27555474638938904,
-0.7519767880439758,
0.4640275239944458,
-0.7457138299942017,
0.8866569995880127,
-0.3425486087799072,
1.3988560438156128,
0.5155792832374573,
-0.9626085162162781,
1.5737727880477905,
-0.4677254259586334,
0.5257171392440796,
-0.6145443320274353,
-0.5970279574394226,
-0.8165371417999268,
0.4290401339530945,
1.9415115118026733,
-0.3049403131008148,
1.6257573366165161,
-0.4096969664096832,
-1.6057571172714233,
-1.5529483556747437,
0.8554167747497559,
0.5575147271156311,
-0.8585958480834961,
0.06335538625717163,
-0.45103007555007935,
0.07705070078372955,
0.07616850733757019,
1.0336557626724243,
1.1703354120254517,
0.7248303890228271,
-0.3274884819984436,
-0.8325418829917908,
0.2110772728919983,
-0.09115549921989441,
-0.7497085332870483,
-1.8560298681259155,
-0.34218671917915344,
0.2047283798456192,
0.6350815296173096,
-1.2604236602783203,
1.7012131214141846,
0.8991971015930176,
1.9510676860809326,
1.016408920288086,
-0.29925593733787537,
1.4819360971450806,
0.002216002903878689,
1.8350650072097778,
-0.5560570359230042,
0.6634846329689026,
-0.380244642496109,
-1.0982842445373535,
0.7894814014434814,
-0.41270768642425537,
-2.156703233718872,
-0.7563395500183105,
-0.8345518112182617,
-0.14053761959075928,
-0.7523126006126404,
0.8732048869132996,
-0.262931764125824,
-1.4056521654129028,
0.1508040875196457,
-0.649642288684845,
0.1505116969347,
-1.2507342100143433,
0.2409641444683075,
0.7809070944786072,
-0.6740238070487976,
-0.10054220259189606,
-0.22286836802959442,
-1.3192671537399292,
-0.4596676528453827,
0.21982721984386444,
1.9558851718902588,
-0.7278713583946228,
0.9284131526947021,
0.943446934223175,
-0.6814067959785461,
0.05406853184103966,
0.2932093143463135,
-0.28167101740837097,
0.8395841121673584,
-1.0348563194274902,
-0.3350837528705597,
1.1290913820266724,
-0.13961133360862732,
-0.5446863174438477,
1.4631088972091675,
0.840360701084137,
-0.9934577941894531,
-0.24519117176532745,
-0.2765704095363617,
-0.8297688364982605,
-0.09626546502113342,
-1.5715211629867554,
-0.2060287594795227,
0.2533782720565796,
-1.4621638059616089,
-0.47015780210494995,
-0.19008246064186096,
1.3027055263519287,
-0.1577705591917038,
1.3724925518035889,
-0.3924288749694824,
-0.28078657388687134,
-0.420287549495697,
-0.44657814502716064,
0.17713601887226105,
-0.282833069562912,
-0.6758783459663391,
0.2364981323480606,
-0.8264467120170593,
0.3590777516365051,
1.4754785299301147,
0.44247815012931824,
0.05129504203796387,
0.44735825061798096,
1.0762923955917358,
0.3278432786464691,
-0.036219656467437744,
-0.9010525345802307,
-1.4974877834320068,
2.0638954639434814,
-1.4428881406784058,
1.9483448266983032,
0.7856572866439819,
-0.0504247285425663,
-1.7623953819274902,
-1.861562967300415,
1.3423668146133423,
1.3213083744049072,
2.398148775100708,
0.475934773683548,
0.34527021646499634,
-0.8077773451805115,
-0.6751259565353394,
0.2854492962360382,
-0.9907262921333313,
-0.6939805150032043,
0.052058469504117966,
2.4008796215057373,
1.845097303390503,
-0.6097818613052368,
-0.23976576328277588,
-0.9785342216491699,
1.406823992729187,
-0.20235809683799744,
0.22822439670562744,
2.0461621284484863,
-0.32206565141677856,
-1.086133599281311,
1.340175747871399,
-2.275801420211792,
0.18672366440296173,
1.9964425563812256,
0.3636910021305084,
0.06270343065261841,
-1.4094258546829224,
-0.6257432103157043,
-0.3339737057685852,
-0.42204755544662476,
-1.2154489755630493,
0.5157577395439148,
-0.3251269459724426,
-0.8341901302337646,
-1.4956202507019043,
0.03687068074941635,
-1.1623889207839966,
-1.7080011367797852,
0.35922786593437195,
1.7988299131393433,
2.0108530521392822,
-0.755466639995575,
1.4137622117996216,
-0.2849302589893341,
0.1938086450099945,
1.2841070890426636,
1.2305703163146973,
3.0866026878356934,
1.8513469696044922,
-1.2073619365692139,
0.6144094467163086,
-0.25705188512802124,
-0.487078994512558,
1.1316978931427002,
-1.0809015035629272,
1.1995301246643066,
-0.17638982832431793,
-1.194019079208374,
-1.1921653747558594,
0.9800686240196228,
0.4369819760322571,
-0.001325132790952921,
-0.5248474478721619,
1.2106420993804932,
0.0927128791809082,
1.3286784887313843,
0.5904390215873718,
-0.4145359992980957,
0.5566132664680481,
-0.3804725110530853,
-0.5833135843276978,
1.6326816082000732,
0.17273887991905212,
-1.5598413944244385,
-2.3433971405029297,
-0.22681444883346558,
-0.8676891922950745,
0.017148632556200027,
-0.6508536338806152,
-1.0204029083251953,
1.6219135522842407,
0.43267545104026794,
-1.3025665283203125,
-0.24814137816429138,
-0.4138382077217102,
-0.5530696511268616,
2.7049012184143066,
-1.4471195936203003,
-0.16981488466262817,
-0.9236596822738647,
-0.4888635277748108,
1.5962263345718384,
-1.1469359397888184,
-0.08646579086780548,
-1.0480623245239258,
-0.6956304907798767,
-1.2732064723968506,
-0.5037983059883118,
-0.11279083788394928,
-0.9007794857025146,
0.7326872944831848,
0.05140827223658562,
-1.0635042190551758,
-0.3900516629219055,
-0.8787261247634888,
0.9060864448547363,
-0.15361842513084412,
0.26648271083831787,
1.887984275817871,
0.42360907793045044,
-0.3975541293621063,
0.7471910715103149,
1.289262056350708,
0.6242502927780151,
-0.6295756101608276,
0.11921115219593048,
-0.6993812322616577,
0.3115270435810089,
-1.3326934576034546,
0.2022080272436142,
-2.9371225833892822,
0.742222249507904,
-0.032388731837272644,
-0.10530027747154236,
-0.00571008026599884,
-1.2971012592315674,
1.109452486038208,
2.6109001636505127,
-1.1795556545257568,
0.4172840714454651,
0.36613985896110535,
1.152022123336792,
-1.5846866369247437,
0.30193424224853516,
-0.39405930042266846,
2.1157872676849365,
0.16761726140975952,
1.1851264238357544,
-0.5896254181861877,
-2.1263840198516846,
0.5819860696792603,
-1.1944431066513062,
-1.1203067302703857,
0.7113473415374756,
-0.8883628249168396,
0.1954207867383957,
-1.5469154119491577,
-0.10479602217674255,
-0.8926383852958679,
-1.1829001903533936,
0.7561812996864319,
0.1503031998872757,
0.4009994864463806,
-0.5656307935714722,
0.37548431754112244,
-2.160470724105835,
-1.4411320686340332,
-0.2466745376586914,
-0.9320104122161865,
0.5416094064712524,
-0.31653594970703125,
0.657845675945282,
-0.02216699719429016,
0.07941539585590363,
0.3566923439502716,
1.439497947692871,
3.4078316688537598,
0.283173531293869,
0.36804330348968506,
-0.11954204738140106,
-0.9023985266685486,
1.4131152629852295,
0.9796496629714966,
-0.1089121550321579,
-0.5620960593223572,
-0.9555258750915527,
1.3632043600082397,
1.924068808555603,
1.1272515058517456,
0.0817951112985611,
-0.790597677230835,
-0.6875753998756409,
0.08501337468624115,
0.2500353157520294,
0.44884905219078064,
0.9590087532997131,
-0.010843751952052116,
0.16040898859500885,
1.437785029411316,
1.240154504776001,
-0.5379128456115723,
0.4245271682739258,
-0.8782677054405212,
-0.4735051691532135,
0.41363367438316345,
0.2704722285270691,
-0.029277563095092773,
0.4146415889263153,
-1.0000618696212769,
-0.23529940843582153,
-0.2847451865673065,
-0.9219726324081421,
-0.660452127456665,
-0.5289458632469177,
-0.4714718759059906,
1.5787452459335327,
0.12614841759204865,
-0.4405856728553772,
-0.023657500743865967,
-0.7454283237457275,
-0.1584455519914627,
-1.076801061630249,
0.25173497200012207,
-0.009690738283097744,
-0.03193653002381325,
-0.21957826614379883,
1.7489804029464722,
-0.896230161190033,
-2.0692567825317383,
0.2531398832798004,
0.3417920470237732,
-0.4223150312900543,
0.14785632491111755,
1.6972905397415161,
0.5246883034706116,
1.4559093713760376,
1.3473838567733765,
0.9395276308059692,
-0.5471754670143127,
-1.2490514516830444,
0.6672350168228149,
0.936529815196991,
-1.3164976835250854,
0.8936575651168823,
-0.01770852878689766,
-0.45953568816185,
0.6672403216362,
1.3436006307601929,
0.34258967638015747,
-2.006434679031372,
0.8562936782836914,
-0.8395998477935791,
0.8434563875198364,
0.6928501725196838,
0.7737637758255005,
0.2502511143684387,
0.8524140119552612,
-1.2433273792266846,
-1.1527820825576782,
-0.8617845177650452,
-0.5765680074691772,
1.985633373260498,
-0.1645466387271881,
0.5366407632827759,
-0.17838945984840393,
-1.1972620487213135,
-0.1450139880180359,
0.7508577704429626,
0.3830074667930603,
-0.427347868680954,
0.8781097531318665,
-0.5872170329093933,
-1.0363820791244507,
-1.3427828550338745,
-0.3932932913303375,
-0.9127256274223328,
-0.8923219442367554,
1.0304629802703857,
0.8600497841835022,
0.3568595349788666,
1.8672081232070923,
0.6237868070602417,
0.25175637006759644,
-2.677360773086548,
0.9107558727264404,
0.23330529034137726,
-0.07134604454040527,
0.8966736793518066,
0.2770595848560333,
1.016039490699768,
-0.0047530545853078365,
0.5494928956031799,
-2.3073713779449463,
2.135521411895752,
-0.21331363916397095,
0.7714682817459106,
0.02252507209777832,
-0.12057679891586304,
1.1763752698898315,
0.5418338775634766,
0.5352847576141357,
-1.1426960229873657,
0.6851932406425476,
-0.508592426776886,
1.151573657989502,
0.8911158442497253,
-0.7599960565567017,
0.0011036992073059082,
1.3948980569839478,
0.48775333166122437,
-0.49998918175697327,
-1.0132615566253662,
-0.8413031697273254,
0.992579460144043,
1.7211031913757324,
-0.09247532486915588,
-0.049785103648900986,
0.812703013420105,
0.7028359174728394,
-1.2492388486862183,
0.08211269974708557,
-0.7396407723426819,
-0.7570475339889526,
1.6533515453338623,
2.110708475112915,
-0.09094852209091187,
-0.16821230947971344,
-0.6665219664573669,
-1.2358475923538208,
0.7998937964439392,
0.007413769140839577,
0.16544662415981293,
0.6872599124908447,
-0.6693552732467651,
1.2145057916641235,
0.8325505256652832,
0.8792330026626587,
0.08628766238689423,
0.39280885457992554,
0.3234367072582245,
-0.24130290746688843,
-1.156489372253418,
-0.35629385709762573,
-1.167548418045044,
-2.4490108489990234,
0.3737860321998596,
-0.29949474334716797,
-1.437067985534668,
0.049089450389146805,
-1.0199896097183228,
0.8510264754295349,
-0.6124173998832703,
-1.0327339172363281,
-1.6044645309448242,
0.2747686207294464,
-0.039869293570518494,
0.8908979892730713,
-1.6761224269866943,
-0.06804416328668594,
1.153384804725647,
0.8161106705665588,
-0.49139678478240967,
0.970237672328949,
0.3510931730270386,
0.9493904113769531,
0.8834463953971863,
-0.3569064438343048,
0.4941868484020233,
0.081769660115242,
-1.3711920976638794,
0.4755844175815582,
1.1743488311767578,
0.23642395436763763,
1.3242528438568115,
-0.4840811789035797,
0.1728045791387558,
0.4166381061077118,
-0.5259882211685181,
-0.47344300150871277,
-0.5633999109268188,
0.6767233610153198,
0.13142181932926178,
-0.9919635653495789,
-0.05665922537446022,
-0.08568288385868073,
-0.25723326206207275,
0.2595314383506775,
-1.4782280921936035,
-0.2181331068277359,
-0.392089307308197,
-0.46181344985961914,
-1.2523351907730103,
-0.11255700886249542,
1.4340126514434814,
-0.850364625453949,
-0.1622837483882904,
0.588249146938324,
0.4896518290042877,
0.5523229837417603,
0.6766823530197144,
-0.6226356625556946,
-0.2999415993690491,
-0.30818960070610046,
-0.28552210330963135,
0.169183149933815,
1.194179892539978,
-0.17132851481437683,
-0.9729399681091309,
0.7259100079536438,
-0.4068858027458191,
0.04259597137570381,
1.96180260181427,
0.06698080897331238,
-0.7378196120262146,
0.3832467496395111,
-0.7222352027893066,
1.8293095827102661,
1.7322211265563965,
1.3151663541793823,
-0.04959730803966522,
-0.9472837448120117,
0.5455141663551331,
-0.20459160208702087,
-0.37386348843574524,
0.900536298751831,
0.4442196786403656,
-0.23910383880138397,
-1.417145848274231,
0.57268887758255,
1.3492399454116821,
-0.8503929972648621,
-0.7852439284324646,
0.06440719962120056,
-0.8864901661872864,
1.0645874738693237,
0.6306244730949402,
0.3616620600223541,
0.20171743631362915,
1.6937764883041382,
0.6842306852340698,
-0.457107812166214,
0.4678872227668762,
0.5930980443954468,
-0.21610106527805328,
-2.1309025287628174,
-1.130205512046814,
0.28126099705696106,
-0.43378376960754395,
-1.5519529581069946,
1.2936482429504395,
-1.1629903316497803,
-0.9407114386558533,
0.5841601490974426,
0.06406719982624054,
1.4699530601501465,
0.3496648967266083,
1.6588298082351685,
2.1404824256896973,
0.8887487053871155,
0.31773003935813904,
1.301773190498352,
-0.04240945726633072,
-0.3910938501358032,
1.8837977647781372,
-0.4041105806827545,
0.5270312428474426,
0.9975893497467041,
-0.4078260064125061,
-1.079817533493042,
-0.8337271809577942,
-1.1501657962799072,
-0.6856493949890137,
1.1229363679885864,
0.13302727043628693,
-1.1168653964996338,
0.15989598631858826,
1.5768030881881714,
0.10878211259841919,
-0.2976623475551605,
0.5746174454689026,
0.3980388939380646,
-0.7483034729957581,
-0.11761289834976196,
-1.0138362646102905,
0.4449044466018677,
-0.09789761900901794,
-0.3086300790309906,
0.27278557419776917,
0.4890710115432739,
1.1655895709991455,
-0.02614511363208294,
0.11317107081413269,
1.1602766513824463,
-1.4130586385726929,
1.4574934244155884,
-0.6209913492202759,
0.2869992256164551,
-2.4566848278045654,
1.5142216682434082,
-0.7548931241035461,
1.8870583772659302,
-2.683595657348633,
0.4009042978286743,
-0.6539739966392517,
-0.5246215462684631,
0.3250232934951782,
-0.3310692012310028,
0.1670733094215393,
-0.0599508062005043,
-1.128743290901184,
-0.024550829082727432,
-0.7358170747756958,
0.5294516086578369,
1.062974214553833,
1.416690707206726,
-1.0912957191467285,
-0.357027530670166,
-1.7860777378082275,
-0.1524650603532791,
-0.6825846433639526,
0.33592602610588074,
-2.042438268661499,
-0.0443427637219429,
-1.9120222330093384,
-2.2610082626342773,
-1.4531223773956299,
-0.8456879258155823,
1.038640022277832,
0.1396791934967041,
-0.9143786430358887,
1.0699104070663452,
-0.41449519991874695,
-1.8096733093261719,
1.0674644708633423,
-2.1990067958831787
] |
https://github.com/huggingface/datasets/issues/4618 | contribute data loading for object detection datasets with yolo data format | Thank you for the suggestion @mariosasko . I agree with the point, but I have a few doubts
1. How would the user access the script if it's not a part of the core codebase?
2. Could you direct me as to what will be the tasks I have to do to contribute to the code? As per my understanding, it would be like
1. Create a new org "hf-loaders" and add you (and more HF people) to the org
2. Add data loader script as a (model?)
3. Test it with a dataset on HF hub
3. We should maybe brainstorm as to which public datasets have this format (YOLO type) and are the most important ones to test the script with. We can even add the datasets on HF Hub alongside the script | **Is your feature request related to a problem? Please describe.**
At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/2))
**Describe the solution you'd like**
I wrote a [custom script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py) to load dataset which has YOLO data format.
**Describe alternatives you've considered**
The script can either be a standalone dataset builder, or a modified version of `ImageFolder`
**Additional context**
I would be happy to contribute to this, but I would do it at a very slow pace (maybe a month or two) as I have my exams approaching 😄
| 666 | 135 | contribute data loading for object detection datasets with yolo data format
**Is your feature request related to a problem? Please describe.**
At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/2))
**Describe the solution you'd like**
I wrote a [custom script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py) to load dataset which has YOLO data format.
**Describe alternatives you've considered**
The script can either be a standalone dataset builder, or a modified version of `ImageFolder`
**Additional context**
I would be happy to contribute to this, but I would do it at a very slow pace (maybe a month or two) as I have my exams approaching 😄
Thank you for the suggestion @mariosasko . I agree with the point, but I have a few doubts
1. How would the user access the script if it's not a part of the core codebase?
2. Could you direct me as to what will be the tasks I have to do to contribute to the code? As per my understanding, it would be like
1. Create a new org "hf-loaders" and add you (and more HF people) to the org
2. Add data loader script as a (model?)
3. Test it with a dataset on HF hub
3. We should maybe brainstorm as to which public datasets have this format (YOLO type) and are the most important ones to test the script with. We can even add the datasets on HF Hub alongside the script | [
-1.288076400756836,
-1.0424425601959229,
-0.7607046961784363,
1.3738722801208496,
-0.1941821128129959,
-1.257224440574646,
0.04736991226673126,
-1.0937100648880005,
1.6886624097824097,
-0.730297863483429,
0.24210885167121887,
-1.708638072013855,
-0.0029294705018401146,
-0.46663686633110046,
-0.7807710766792297,
-0.862214207649231,
-0.43404582142829895,
-0.9065289497375488,
0.9599651098251343,
2.5715386867523193,
1.1101477146148682,
-1.4864970445632935,
2.7838521003723145,
0.6533343195915222,
-0.17075593769550323,
-1.0607655048370361,
0.4364076852798462,
0.01846361719071865,
-1.2009378671646118,
-0.5140095353126526,
-0.9467352032661438,
-0.014398016966879368,
-0.556270182132721,
-0.526111364364624,
0.12570133805274963,
0.29536789655685425,
-0.16657863557338715,
-0.32891184091567993,
-0.6367693543434143,
-0.7255449891090393,
0.5255800485610962,
-0.3682001233100891,
0.9805458188056946,
-0.36487096548080444,
1.8086494207382202,
-0.5302173495292664,
0.44419431686401367,
0.6823575496673584,
1.359185814857483,
0.2535688579082489,
0.03490782529115677,
0.3770529627799988,
0.4316025972366333,
-0.08892367780208588,
0.46709293127059937,
1.2339715957641602,
0.5893933773040771,
0.4953555762767792,
0.7136228680610657,
-2.2000465393066406,
1.3489367961883545,
-1.0076333284378052,
0.3917222023010254,
1.3965927362442017,
-0.8946117162704468,
0.3731933832168579,
-1.7855640649795532,
-0.09138564020395279,
0.572039783000946,
-2.290492534637451,
0.12721621990203857,
-1.2817366123199463,
-0.6083369255065918,
0.9981019496917725,
0.24614980816841125,
-1.2307102680206299,
0.28397148847579956,
-0.5190679430961609,
1.0915933847427368,
0.43224188685417175,
1.186099886894226,
-1.729002594947815,
-0.0883595272898674,
-0.2016143500804901,
0.12849678099155426,
-1.2576390504837036,
-1.574309229850769,
0.5622960329055786,
0.5778413414955139,
0.5976299047470093,
-0.1250908076763153,
0.9504446387290955,
-0.9858367443084717,
0.8915738463401794,
-0.9503253102302551,
-1.662581205368042,
-1.4060657024383545,
-2.2351698875427246,
-2.2950565814971924,
0.8846917152404785,
-0.523350715637207,
-0.5166100859642029,
1.9971848726272583,
-1.082342505455017,
-1.7438933849334717,
1.1607236862182617,
0.2885989248752594,
0.04263564199209213,
2.425084352493286,
0.2327730357646942,
-0.7245877385139465,
0.44170495867729187,
-0.6966527700424194,
0.9171218872070312,
-0.35185012221336365,
1.363318920135498,
0.4998197853565216,
-0.9256299138069153,
1.5846377611160278,
-0.4502955675125122,
0.5675095319747925,
-0.6390247344970703,
-0.588587760925293,
-0.8264562487602234,
0.40699246525764465,
1.913895845413208,
-0.34519386291503906,
1.6133452653884888,
-0.42939504981040955,
-1.6321051120758057,
-1.6190032958984375,
0.8674532175064087,
0.5625540018081665,
-0.8454716801643372,
0.013833481818437576,
-0.41139325499534607,
0.08793652057647705,
0.053038641810417175,
1.084956407546997,
1.2017343044281006,
0.7319009900093079,
-0.3349326252937317,
-0.8589784502983093,
0.1827210932970047,
-0.12112046033143997,
-0.7137414813041687,
-1.828713297843933,
-0.32036805152893066,
0.1933058798313141,
0.6422829031944275,
-1.2301603555679321,
1.6674860715866089,
0.9132394790649414,
1.9624217748641968,
1.022017478942871,
-0.30312713980674744,
1.4694409370422363,
0.04244363307952881,
1.8044689893722534,
-0.552058756351471,
0.6240857839584351,
-0.36017856001853943,
-1.0895414352416992,
0.7867107391357422,
-0.4156498610973358,
-2.111788511276245,
-0.720597505569458,
-0.826918363571167,
-0.20497870445251465,
-0.713123619556427,
0.8606576919555664,
-0.31771957874298096,
-1.3390083312988281,
0.1944752186536789,
-0.6320063471794128,
0.1250046044588089,
-1.1719450950622559,
0.2805221974849701,
0.7872564196586609,
-0.721619188785553,
-0.04844602197408676,
-0.21310016512870789,
-1.2887943983078003,
-0.5077107548713684,
0.24115823209285736,
1.9375686645507812,
-0.7407810688018799,
0.9379923343658447,
0.9687946438789368,
-0.6954577565193176,
0.04411808401346207,
0.3312705159187317,
-0.2652185261249542,
0.881877064704895,
-1.0583809614181519,
-0.30834338068962097,
1.0985137224197388,
-0.17858928442001343,
-0.5391096472740173,
1.451611042022705,
0.7386380434036255,
-1.0120218992233276,
-0.2585151791572571,
-0.19464267790317535,
-0.8598353266716003,
-0.08317910879850388,
-1.5338791608810425,
-0.22396008670330048,
0.23842519521713257,
-1.5156160593032837,
-0.528343677520752,
-0.24176068603992462,
1.2693668603897095,
-0.13808462023735046,
1.3823397159576416,
-0.39213141798973083,
-0.30716025829315186,
-0.4131069481372833,
-0.4336850643157959,
0.11861589550971985,
-0.2687661945819855,
-0.6258233785629272,
0.1860392987728119,
-0.8560759425163269,
0.3075764775276184,
1.4884519577026367,
0.46387365460395813,
0.03886454552412033,
0.44440019130706787,
1.1151628494262695,
0.3533358871936798,
-0.08911076188087463,
-0.8550993800163269,
-1.4889580011367798,
2.0293142795562744,
-1.4371010065078735,
1.964332103729248,
0.818596601486206,
-0.04407039284706116,
-1.8081319332122803,
-1.8742293119430542,
1.3030587434768677,
1.255353331565857,
2.440696954727173,
0.4729703366756439,
0.36906567215919495,
-0.8262113928794861,
-0.6725248098373413,
0.36529049277305603,
-0.9699155688285828,
-0.7414916753768921,
0.02280569262802601,
2.347013473510742,
1.8299773931503296,
-0.5853666067123413,
-0.20260049402713776,
-1.0026637315750122,
1.4310792684555054,
-0.1554987132549286,
0.22959807515144348,
2.0145723819732666,
-0.2977895736694336,
-1.0837222337722778,
1.3406484127044678,
-2.240750551223755,
0.13705125451087952,
1.999590516090393,
0.307399719953537,
0.06873925775289536,
-1.4132992029190063,
-0.6243526339530945,
-0.3144742250442505,
-0.39500951766967773,
-1.238418698310852,
0.512135922908783,
-0.3947051465511322,
-0.8341639041900635,
-1.529655933380127,
0.016206517815589905,
-1.1533229351043701,
-1.680596113204956,
0.3061060905456543,
1.878432273864746,
2.0081067085266113,
-0.7349395155906677,
1.4422188997268677,
-0.2736169397830963,
0.11948394775390625,
1.2702852487564087,
1.1956968307495117,
3.1444554328918457,
1.8847532272338867,
-1.235840082168579,
0.585206925868988,
-0.17467764019966125,
-0.45253515243530273,
1.0974663496017456,
-1.0587159395217896,
1.247359275817871,
-0.17468449473381042,
-1.196178674697876,
-1.1612818241119385,
1.04423987865448,
0.48086977005004883,
0.04567880928516388,
-0.4980415999889374,
1.2165826559066772,
0.0006699021905660629,
1.2945400476455688,
0.5758335590362549,
-0.4355810880661011,
0.6322011947631836,
-0.38703879714012146,
-0.5819250345230103,
1.6041070222854614,
0.1695927530527115,
-1.5440183877944946,
-2.3443806171417236,
-0.22445818781852722,
-0.8278819918632507,
0.032746024429798126,
-0.6517497897148132,
-1.0221234560012817,
1.6161361932754517,
0.4624091684818268,
-1.354752779006958,
-0.3254338800907135,
-0.4259108006954193,
-0.6195882558822632,
2.5980968475341797,
-1.3941594362258911,
-0.15355418622493744,
-0.9448472857475281,
-0.473346084356308,
1.5458154678344727,
-1.198499321937561,
-0.16356496512889862,
-1.0283751487731934,
-0.6613971590995789,
-1.2436593770980835,
-0.516044557094574,
-0.08301343023777008,
-0.9172220230102539,
0.7698781490325928,
0.03352271765470505,
-1.0179165601730347,
-0.262688547372818,
-0.8719556331634521,
0.8421578407287598,
-0.1304628849029541,
0.2188834547996521,
1.9118783473968506,
0.38776159286499023,
-0.40431976318359375,
0.7160021066665649,
1.2600903511047363,
0.5871866941452026,
-0.6376081705093384,
0.13791246712207794,
-0.717007577419281,
0.34564024209976196,
-1.3348278999328613,
0.23048149049282074,
-2.928982734680176,
0.716745138168335,
-0.046973712742328644,
-0.0792836993932724,
0.044094666838645935,
-1.2658942937850952,
1.0275547504425049,
2.5805954933166504,
-1.1982778310775757,
0.4531398415565491,
0.31028369069099426,
1.173173189163208,
-1.6254984140396118,
0.3030692934989929,
-0.39617544412612915,
2.0624747276306152,
0.1555124670267105,
1.132835030555725,
-0.5978225469589233,
-2.121236801147461,
0.5682507753372192,
-1.1639764308929443,
-1.1672443151474,
0.7070136666297913,
-0.8815596103668213,
0.11214709281921387,
-1.5199297666549683,
-0.08830852061510086,
-0.8508855700492859,
-1.199469804763794,
0.7189248204231262,
0.1665603220462799,
0.426999032497406,
-0.6096564531326294,
0.3386435806751251,
-2.2097480297088623,
-1.4037280082702637,
-0.20874172449111938,
-0.9298719763755798,
0.5895454287528992,
-0.3679644465446472,
0.6629002094268799,
-0.09948835521936417,
0.0690920427441597,
0.3412249684333801,
1.3815659284591675,
3.4504032135009766,
0.2954027056694031,
0.33252835273742676,
-0.13427117466926575,
-0.9202361702919006,
1.4285264015197754,
1.0296348333358765,
-0.1273297518491745,
-0.5804389715194702,
-1.028227686882019,
1.3362175226211548,
1.9262253046035767,
1.0696978569030762,
0.10506599396467209,
-0.7979036569595337,
-0.6703313589096069,
0.040003709495067596,
0.24611946940422058,
0.46649277210235596,
0.9806326627731323,
0.022695885971188545,
0.15828868746757507,
1.4807415008544922,
1.2378580570220947,
-0.45400699973106384,
0.4263286292552948,
-0.8151993155479431,
-0.5018658638000488,
0.4236503541469574,
0.31069183349609375,
-0.017941119149327278,
0.37922075390815735,
-1.0085768699645996,
-0.23064303398132324,
-0.3979592025279999,
-0.9831354022026062,
-0.6632954478263855,
-0.4918946325778961,
-0.3985809087753296,
1.6045187711715698,
0.14412067830562592,
-0.4469255208969116,
-0.059646978974342346,
-0.7895574569702148,
-0.1828882098197937,
-1.0953491926193237,
0.374930739402771,
-0.04445821791887283,
-0.0760163888335228,
-0.18034549057483673,
1.748159646987915,
-0.9104235172271729,
-2.105447292327881,
0.2792368531227112,
0.2596271336078644,
-0.38975515961647034,
0.20621895790100098,
1.6543028354644775,
0.5501038432121277,
1.4403810501098633,
1.3640985488891602,
0.8988246321678162,
-0.5569152235984802,
-1.2376376390457153,
0.6727944612503052,
0.8947781920433044,
-1.3801119327545166,
0.8237422704696655,
-0.023295944556593895,
-0.543039858341217,
0.7618348598480225,
1.3231971263885498,
0.37977656722068787,
-1.966148853302002,
0.9174772500991821,
-0.8517154455184937,
0.8414978384971619,
0.6949580907821655,
0.7723987102508545,
0.24972373247146606,
0.8599656820297241,
-1.2418736219406128,
-1.1726006269454956,
-0.8343104124069214,
-0.6351839303970337,
1.9815661907196045,
-0.19516433775424957,
0.5768123269081116,
-0.271231472492218,
-1.2406225204467773,
-0.14529472589492798,
0.7426720857620239,
0.38058051466941833,
-0.4208208918571472,
0.85952228307724,
-0.6186405420303345,
-1.0536768436431885,
-1.3701735734939575,
-0.3817170560359955,
-0.9922110438346863,
-0.8671474456787109,
0.990685224533081,
0.8239170908927917,
0.3123876452445984,
1.8952972888946533,
0.5852227807044983,
0.2958132028579712,
-2.672640323638916,
0.8825756907463074,
0.2772497832775116,
-0.11333359777927399,
0.979498565196991,
0.3081895411014557,
1.00801682472229,
0.0048426613211631775,
0.49635353684425354,
-2.2909135818481445,
2.1793265342712402,
-0.22032536566257477,
0.8173660635948181,
-0.04671984165906906,
-0.11995483189821243,
1.2210901975631714,
0.5562843680381775,
0.5565311908721924,
-1.126565933227539,
0.7094844579696655,
-0.5234138369560242,
1.108791708946228,
0.8984389305114746,
-0.7255937457084656,
-0.03349778801202774,
1.3861757516860962,
0.5040115714073181,
-0.4962371289730072,
-0.9238587021827698,
-0.8815913200378418,
0.9635703563690186,
1.8226343393325806,
-0.06759810447692871,
0.020815566182136536,
0.762669563293457,
0.6930342316627502,
-1.2871193885803223,
0.10623936355113983,
-0.7196654081344604,
-0.7891027927398682,
1.5902633666992188,
2.066108465194702,
-0.02678082510828972,
-0.16259507834911346,
-0.6150310039520264,
-1.312229871749878,
0.7252066135406494,
0.06822332739830017,
0.16866198182106018,
0.6824002265930176,
-0.6675437688827515,
1.200723648071289,
0.8603243231773376,
0.9089543223381042,
0.04289301484823227,
0.34815576672554016,
0.3779474198818207,
-0.2732674777507782,
-1.14692223072052,
-0.3688148558139801,
-1.120620846748352,
-2.3667826652526855,
0.4054138958454132,
-0.21521833539009094,
-1.4788289070129395,
0.019709868356585503,
-0.9682192802429199,
0.9372258186340332,
-0.5896950364112854,
-1.0358680486679077,
-1.6595652103424072,
0.23903225362300873,
-0.05667397379875183,
0.9426993131637573,
-1.5987622737884521,
-0.11182135343551636,
1.1547529697418213,
0.8826339840888977,
-0.48466116189956665,
0.9928581714630127,
0.3017679750919342,
0.9198227524757385,
0.8730771541595459,
-0.4550926983356476,
0.4567553699016571,
0.11888761818408966,
-1.3884084224700928,
0.41635334491729736,
1.1641490459442139,
0.23746493458747864,
1.3324649333953857,
-0.532073974609375,
0.12815086543560028,
0.43859532475471497,
-0.5298706889152527,
-0.4366600811481476,
-0.5060306191444397,
0.673893392086029,
0.08318332582712173,
-0.9578641057014465,
-0.059309929609298706,
-0.08574631810188293,
-0.23690389096736908,
0.22682161629199982,
-1.4611140489578247,
-0.2590729296207428,
-0.43241333961486816,
-0.4368714392185211,
-1.244217872619629,
-0.07431986927986145,
1.4435105323791504,
-0.8347428441047668,
-0.19876454770565033,
0.5569854378700256,
0.5155946016311646,
0.5429588556289673,
0.6719000935554504,
-0.6151933073997498,
-0.335239052772522,
-0.2717001736164093,
-0.29938918352127075,
0.15229135751724243,
1.2319283485412598,
-0.1781911551952362,
-0.9702916145324707,
0.7599399089813232,
-0.3967265784740448,
0.02934354357421398,
1.9102935791015625,
0.037200696766376495,
-0.7048960328102112,
0.3291025161743164,
-0.7197260856628418,
1.8303769826889038,
1.7735059261322021,
1.3785635232925415,
-0.0975816622376442,
-0.8945586681365967,
0.5095831751823425,
-0.23439031839370728,
-0.3382333219051361,
0.9596760272979736,
0.4615536034107208,
-0.2250288426876068,
-1.4432246685028076,
0.5715261697769165,
1.2557950019836426,
-0.9168202877044678,
-0.7688013911247253,
0.08368922770023346,
-0.8040605783462524,
1.076836347579956,
0.6537033915519714,
0.42710965871810913,
0.16721844673156738,
1.6990686655044556,
0.6781508922576904,
-0.4796343445777893,
0.5242578387260437,
0.5741977095603943,
-0.1922890543937683,
-2.1608362197875977,
-1.1388019323349,
0.3004518449306488,
-0.42206570506095886,
-1.539212942123413,
1.325605869293213,
-1.130165934562683,
-0.9716387391090393,
0.5549265146255493,
0.0358022078871727,
1.4191428422927856,
0.3171278238296509,
1.6538374423980713,
2.2032485008239746,
0.8976776599884033,
0.35122933983802795,
1.353563904762268,
-0.031219609081745148,
-0.35155338048934937,
1.899387001991272,
-0.38397881388664246,
0.5214474201202393,
1.0099940299987793,
-0.45245999097824097,
-1.051000714302063,
-0.7617889046669006,
-1.1245458126068115,
-0.6901484727859497,
1.0597845315933228,
0.12311336398124695,
-1.069273829460144,
0.14828822016716003,
1.559617042541504,
0.13176245987415314,
-0.2756941020488739,
0.5800319314002991,
0.4166940152645111,
-0.711792528629303,
-0.10673660039901733,
-0.9815223813056946,
0.5134611129760742,
-0.19100546836853027,
-0.3693293631076813,
0.3123628497123718,
0.43828898668289185,
1.2029013633728027,
-0.027806555852293968,
0.07091247290372849,
1.2192745208740234,
-1.4057238101959229,
1.4457288980484009,
-0.648287296295166,
0.2792225778102875,
-2.4233970642089844,
1.5182627439498901,
-0.7314258813858032,
1.9028306007385254,
-2.651665449142456,
0.4115169048309326,
-0.6672326922416687,
-0.5342453122138977,
0.3493233621120453,
-0.3103705048561096,
0.18207643926143646,
-0.13458338379859924,
-1.1080378293991089,
-0.018155444413423538,
-0.7196107506752014,
0.5726921558380127,
1.124812126159668,
1.4287693500518799,
-1.1123270988464355,
-0.3335219919681549,
-1.799168348312378,
-0.13268537819385529,
-0.6995378136634827,
0.3208598494529724,
-2.0858023166656494,
-0.11841244995594025,
-1.8945741653442383,
-2.335253953933716,
-1.399351716041565,
-0.8401345014572144,
1.0530532598495483,
0.14435051381587982,
-0.8832970261573792,
1.1612344980239868,
-0.42731520533561707,
-1.8339933156967163,
1.0665959119796753,
-2.2154672145843506
] |
https://github.com/huggingface/datasets/issues/4618 | contribute data loading for object detection datasets with yolo data format | 1. Like this: `load_dataset("hf-loaders/yolo", data_files=...)`
2. The steps would be:
1. Create a new org `hf-community-loaders` (IMO a better name than "hf-loaders") and add me (as an admin)
2. Create a new dataset repo `yolo` and add the loading script to it (`yolo.py`)
3. Open a discussion to request our review
4. I like this idea. Another option is to add snippets that describe how to load such datasets using the `yolo` loader. | **Is your feature request related to a problem? Please describe.**
At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/2))
**Describe the solution you'd like**
I wrote a [custom script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py) to load dataset which has YOLO data format.
**Describe alternatives you've considered**
The script can either be a standalone dataset builder, or a modified version of `ImageFolder`
**Additional context**
I would be happy to contribute to this, but I would do it at a very slow pace (maybe a month or two) as I have my exams approaching 😄
| 666 | 73 | contribute data loading for object detection datasets with yolo data format
**Is your feature request related to a problem? Please describe.**
At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/2))
**Describe the solution you'd like**
I wrote a [custom script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py) to load dataset which has YOLO data format.
**Describe alternatives you've considered**
The script can either be a standalone dataset builder, or a modified version of `ImageFolder`
**Additional context**
I would be happy to contribute to this, but I would do it at a very slow pace (maybe a month or two) as I have my exams approaching 😄
1. Like this: `load_dataset("hf-loaders/yolo", data_files=...)`
2. The steps would be:
1. Create a new org `hf-community-loaders` (IMO a better name than "hf-loaders") and add me (as an admin)
2. Create a new dataset repo `yolo` and add the loading script to it (`yolo.py`)
3. Open a discussion to request our review
4. I like this idea. Another option is to add snippets that describe how to load such datasets using the `yolo` loader. | [
-1.2574604749679565,
-0.9857620000839233,
-0.7179887890815735,
1.4144736528396606,
-0.1774483621120453,
-1.2907344102859497,
0.08914919197559357,
-1.0152270793914795,
1.7343873977661133,
-0.7424783110618591,
0.31012094020843506,
-1.708284616470337,
-0.0375349260866642,
-0.5075806379318237,
-0.7943128943443298,
-0.8794621825218201,
-0.4337637424468994,
-0.869590699672699,
0.9749139547348022,
2.5162901878356934,
1.1433604955673218,
-1.4705408811569214,
2.753566265106201,
0.6363294720649719,
-0.172615647315979,
-1.0582737922668457,
0.42412206530570984,
0.07510605454444885,
-1.2032840251922607,
-0.48154959082603455,
-0.9180281162261963,
-0.07768959552049637,
-0.5725057125091553,
-0.5753335356712341,
0.11992049962282181,
0.34144556522369385,
-0.237698495388031,
-0.40303468704223633,
-0.6527957916259766,
-0.7590106725692749,
0.4830653667449951,
-0.37907159328460693,
0.9221503138542175,
-0.3796277642250061,
1.788468599319458,
-0.5732574462890625,
0.4484597146511078,
0.6493815183639526,
1.3733932971954346,
0.21438437700271606,
0.03412001207470894,
0.3824619948863983,
0.3956511616706848,
-0.035259492695331573,
0.4842945337295532,
1.254363775253296,
0.6024967432022095,
0.4696286618709564,
0.7131333351135254,
-2.1885764598846436,
1.3313453197479248,
-1.0455608367919922,
0.3539971113204956,
1.3688546419143677,
-0.9678160548210144,
0.37155991792678833,
-1.7964825630187988,
-0.07040436565876007,
0.5755893588066101,
-2.269351005554199,
0.13411098718643188,
-1.3339797258377075,
-0.5999096035957336,
1.0017759799957275,
0.3218500316143036,
-1.2362895011901855,
0.23372089862823486,
-0.48885786533355713,
1.064037799835205,
0.4106101393699646,
1.1780638694763184,
-1.7295459508895874,
-0.06791181117296219,
-0.20821359753608704,
0.13312885165214539,
-1.2277580499649048,
-1.5480140447616577,
0.6028661727905273,
0.6467225551605225,
0.6209575533866882,
-0.15842148661613464,
0.9540945887565613,
-0.9531830549240112,
0.8386649489402771,
-1.0169662237167358,
-1.693278193473816,
-1.4507266283035278,
-2.3025338649749756,
-2.2911620140075684,
0.9169599413871765,
-0.5126899480819702,
-0.5066093802452087,
1.9794803857803345,
-1.0179789066314697,
-1.7675141096115112,
1.0927128791809082,
0.325674444437027,
0.015390537679195404,
2.3781464099884033,
0.2955690026283264,
-0.7943487763404846,
0.47018688917160034,
-0.7547524571418762,
0.886200487613678,
-0.347281813621521,
1.388030767440796,
0.5248266458511353,
-0.9671557545661926,
1.536852240562439,
-0.43734288215637207,
0.5639351606369019,
-0.6400038003921509,
-0.5551667213439941,
-0.7672368884086609,
0.409874826669693,
1.940637230873108,
-0.3219449818134308,
1.6458896398544312,
-0.40146923065185547,
-1.6313867568969727,
-1.5659030675888062,
0.8586662411689758,
0.5423903465270996,
-0.754896879196167,
0.0517880916595459,
-0.38832759857177734,
0.12249200791120529,
0.06258735805749893,
1.126032829284668,
1.2144497632980347,
0.7260704040527344,
-0.35537976026535034,
-0.8515575528144836,
0.158297598361969,
-0.050023533403873444,
-0.7012404203414917,
-1.811404824256897,
-0.3471902906894684,
0.21779602766036987,
0.5879292488098145,
-1.261819839477539,
1.6910412311553955,
0.911253035068512,
1.9670151472091675,
1.0261117219924927,
-0.27588146924972534,
1.511091709136963,
0.022846367210149765,
1.8623002767562866,
-0.5215038657188416,
0.6555429697036743,
-0.306358277797699,
-1.0934326648712158,
0.7941268086433411,
-0.39770612120628357,
-2.1390814781188965,
-0.7333813905715942,
-0.88363116979599,
-0.15440455079078674,
-0.7157902121543884,
0.8630331754684448,
-0.26391077041625977,
-1.3781462907791138,
0.17610105872154236,
-0.6811566948890686,
0.09681062400341034,
-1.1845139265060425,
0.21473392844200134,
0.7614260911941528,
-0.6643938422203064,
-0.05970921367406845,
-0.2343812882900238,
-1.27590012550354,
-0.46150267124176025,
0.2712421119213104,
1.931860327720642,
-0.7339234352111816,
0.9751842021942139,
1.0083657503128052,
-0.7214341163635254,
0.06245163828134537,
0.2787944972515106,
-0.25636225938796997,
0.8890546560287476,
-1.0449044704437256,
-0.30161336064338684,
1.1410027742385864,
-0.12834304571151733,
-0.5513428449630737,
1.4623664617538452,
0.7524974942207336,
-0.9700652360916138,
-0.21891653537750244,
-0.20369607210159302,
-0.8268884420394897,
-0.035717517137527466,
-1.5447382926940918,
-0.19596102833747864,
0.26333072781562805,
-1.4591472148895264,
-0.5227449536323547,
-0.24153795838356018,
1.271606206893921,
-0.16303607821464539,
1.354840636253357,
-0.3565171957015991,
-0.3019391596317291,
-0.43176788091659546,
-0.4483882784843445,
0.09987874329090118,
-0.27030301094055176,
-0.6447084546089172,
0.23012793064117432,
-0.8407648205757141,
0.35087308287620544,
1.4555820226669312,
0.3994510769844055,
0.04086409881711006,
0.4617522358894348,
1.1351126432418823,
0.34569281339645386,
-0.06593221426010132,
-0.8340595364570618,
-1.519163727760315,
2.0540380477905273,
-1.415682077407837,
1.9655956029891968,
0.7635071277618408,
-0.02263067103922367,
-1.791995882987976,
-1.872809648513794,
1.3464882373809814,
1.2652791738510132,
2.4566855430603027,
0.4716607928276062,
0.33572182059288025,
-0.8181620836257935,
-0.6985990405082703,
0.32555171847343445,
-0.9573537707328796,
-0.7061443328857422,
0.07915545254945755,
2.368140935897827,
1.82766854763031,
-0.5684002637863159,
-0.22086459398269653,
-1.0189763307571411,
1.443979024887085,
-0.20990803837776184,
0.19539403915405273,
2.043617010116577,
-0.29559803009033203,
-1.0625351667404175,
1.3066953420639038,
-2.25555157661438,
0.18072167038917542,
2.0146262645721436,
0.366774320602417,
0.04570478945970535,
-1.443568468093872,
-0.6366329193115234,
-0.3452935218811035,
-0.41193366050720215,
-1.2369123697280884,
0.48692837357521057,
-0.3320837616920471,
-0.8480110168457031,
-1.5033162832260132,
0.04433567449450493,
-1.1400436162948608,
-1.740947961807251,
0.29122817516326904,
1.83847177028656,
1.979138970375061,
-0.7600316405296326,
1.4172453880310059,
-0.327002614736557,
0.13460469245910645,
1.282199501991272,
1.1796889305114746,
3.1215953826904297,
1.8738614320755005,
-1.2187185287475586,
0.6483996510505676,
-0.1907406449317932,
-0.42950162291526794,
1.113398551940918,
-1.1160980463027954,
1.218407154083252,
-0.17700663208961487,
-1.191882610321045,
-1.1931498050689697,
1.0268797874450684,
0.48876920342445374,
0.013758793473243713,
-0.5488145351409912,
1.2358818054199219,
0.04907553270459175,
1.3130435943603516,
0.5591641068458557,
-0.4032140374183655,
0.6390795111656189,
-0.3522823452949524,
-0.5834856629371643,
1.5923686027526855,
0.20475509762763977,
-1.5151996612548828,
-2.332552433013916,
-0.2165268063545227,
-0.886139452457428,
0.005781433545053005,
-0.6505685448646545,
-0.9956466555595398,
1.648695945739746,
0.44782784581184387,
-1.3087719678878784,
-0.22797638177871704,
-0.43039223551750183,
-0.6255669593811035,
2.6826367378234863,
-1.3681252002716064,
-0.1556919515132904,
-0.9696663022041321,
-0.50560462474823,
1.5724716186523438,
-1.1202023029327393,
-0.1420574188232422,
-1.0410138368606567,
-0.6041477918624878,
-1.2473037242889404,
-0.5348657369613647,
-0.07236107438802719,
-0.860532820224762,
0.7462232112884521,
-0.010425068438053131,
-1.0895017385482788,
-0.33030444383621216,
-0.8793622851371765,
0.8912249803543091,
-0.15728729963302612,
0.20411530137062073,
1.9134135246276855,
0.3945113718509674,
-0.3693804442882538,
0.7331558465957642,
1.23294198513031,
0.5893871784210205,
-0.639975905418396,
0.21490803360939026,
-0.7017459273338318,
0.302126407623291,
-1.3347852230072021,
0.24878191947937012,
-2.912005662918091,
0.712993860244751,
-0.012062130495905876,
-0.06534534692764282,
0.02455732971429825,
-1.2705285549163818,
1.0588476657867432,
2.5950088500976562,
-1.2101917266845703,
0.4410099685192108,
0.34162506461143494,
1.133113145828247,
-1.5999845266342163,
0.3024999499320984,
-0.4076324999332428,
2.085325241088867,
0.17821776866912842,
1.154829502105713,
-0.5935108065605164,
-2.1296277046203613,
0.5598240494728088,
-1.1984449625015259,
-1.1178903579711914,
0.7097499966621399,
-0.8665648698806763,
0.15556120872497559,
-1.4786033630371094,
-0.124820776283741,
-0.8326804637908936,
-1.1923093795776367,
0.7199245095252991,
0.15040868520736694,
0.42625105381011963,
-0.5773007869720459,
0.3695932924747467,
-2.199862241744995,
-1.4353634119033813,
-0.23793116211891174,
-0.9549039602279663,
0.5733880400657654,
-0.34540829062461853,
0.6356840133666992,
-0.06438812613487244,
0.055036380887031555,
0.35501834750175476,
1.4043370485305786,
3.4585518836975098,
0.24363753199577332,
0.2885618507862091,
-0.10027015954256058,
-0.9206780195236206,
1.4384492635726929,
0.9643169641494751,
-0.11871107667684555,
-0.5178311467170715,
-1.0222177505493164,
1.3227453231811523,
1.9473726749420166,
1.1583470106124878,
0.0671861469745636,
-0.8278772234916687,
-0.7303770780563354,
0.08644123375415802,
0.23041975498199463,
0.45730769634246826,
0.8947324156761169,
0.04343383386731148,
0.1554000973701477,
1.4459030628204346,
1.221923589706421,
-0.4554440677165985,
0.4400448799133301,
-0.8912123441696167,
-0.4565141797065735,
0.44200119376182556,
0.295817106962204,
0.009821852669119835,
0.37076786160469055,
-1.050372838973999,
-0.23853206634521484,
-0.3403492271900177,
-0.9227636456489563,
-0.6681311130523682,
-0.5450490713119507,
-0.4244583547115326,
1.6126552820205688,
0.13231146335601807,
-0.4655548632144928,
-0.03696511313319206,
-0.7644065618515015,
-0.12031611055135727,
-1.074317216873169,
0.3355381190776825,
-0.01781167834997177,
-0.053902558982372284,
-0.1735113561153412,
1.7310352325439453,
-0.9371019601821899,
-2.0939626693725586,
0.2707602381706238,
0.28470343351364136,
-0.42445287108421326,
0.14721539616584778,
1.650268316268921,
0.5909355282783508,
1.40507972240448,
1.3517659902572632,
0.9466760754585266,
-0.5685489773750305,
-1.3012135028839111,
0.655376672744751,
0.9400448799133301,
-1.3411149978637695,
0.8609747290611267,
-0.03808286041021347,
-0.472362756729126,
0.695792555809021,
1.4014360904693604,
0.35062557458877563,
-2.003051996231079,
0.8144732713699341,
-0.810878336429596,
0.8110857605934143,
0.6857654452323914,
0.7538172602653503,
0.1989542543888092,
0.8329955339431763,
-1.266371726989746,
-1.169685959815979,
-0.8432157039642334,
-0.6259136199951172,
1.9403613805770874,
-0.15557104349136353,
0.5417319536209106,
-0.27755582332611084,
-1.2505311965942383,
-0.08934107422828674,
0.7409932017326355,
0.44492053985595703,
-0.4667920470237732,
0.8246313333511353,
-0.6155974864959717,
-1.0468429327011108,
-1.381291389465332,
-0.39660048484802246,
-0.9639897346496582,
-0.9113004207611084,
0.9837227463722229,
0.8096362352371216,
0.3736096918582916,
1.8792821168899536,
0.6582137942314148,
0.2749480903148651,
-2.69256854057312,
0.9113172292709351,
0.24118119478225708,
-0.034421443939208984,
0.9020066261291504,
0.2854326367378235,
1.007535696029663,
-0.050605349242687225,
0.5529022216796875,
-2.2824153900146484,
2.161289691925049,
-0.21858015656471252,
0.7452715039253235,
0.01309911347925663,
-0.11006657779216766,
1.1519181728363037,
0.5552637577056885,
0.555466890335083,
-1.1574896574020386,
0.7134928107261658,
-0.50208580493927,
1.1292204856872559,
0.8784647583961487,
-0.7600545287132263,
-0.04700283333659172,
1.3854252099990845,
0.48409920930862427,
-0.4859132468700409,
-0.9765837788581848,
-0.8946915864944458,
0.9654982089996338,
1.730530858039856,
-0.07222000509500504,
-0.02885505184531212,
0.8286185264587402,
0.6439678072929382,
-1.2973119020462036,
0.10431846231222153,
-0.7385615706443787,
-0.7371533513069153,
1.678308367729187,
2.077650547027588,
-0.07290633022785187,
-0.18522223830223083,
-0.6385834813117981,
-1.2553013563156128,
0.730818510055542,
0.05802460014820099,
0.08386094868183136,
0.6881975531578064,
-0.6516098976135254,
1.2009261846542358,
0.8255041241645813,
0.8981464505195618,
0.039066728204488754,
0.36796054244041443,
0.3651691973209381,
-0.28995221853256226,
-1.2034136056900024,
-0.3773375153541565,
-1.1106014251708984,
-2.401487350463867,
0.3932737112045288,
-0.24573060870170593,
-1.4559231996536255,
0.012149680405855179,
-1.0195248126983643,
0.9108613133430481,
-0.6288067102432251,
-1.0115753412246704,
-1.5485366582870483,
0.24106428027153015,
-0.041724998503923416,
0.928219735622406,
-1.6376512050628662,
-0.10209418088197708,
1.1893186569213867,
0.865272045135498,
-0.5090575218200684,
0.9858874678611755,
0.27489787340164185,
0.9537761807441711,
0.8705161809921265,
-0.4125082194805145,
0.4863716661930084,
0.09752795100212097,
-1.3911738395690918,
0.4642440974712372,
1.1841485500335693,
0.21554508805274963,
1.349421501159668,
-0.5152796506881714,
0.14269262552261353,
0.43503808975219727,
-0.5607385039329529,
-0.448053240776062,
-0.5641823410987854,
0.6840419173240662,
0.10606572777032852,
-1.008172631263733,
-0.039520300924777985,
-0.01074981689453125,
-0.1899605691432953,
0.2515110969543457,
-1.4709107875823975,
-0.20699402689933777,
-0.39477813243865967,
-0.47053638100624084,
-1.1916121244430542,
-0.11817903071641922,
1.3812837600708008,
-0.8497602939605713,
-0.18203094601631165,
0.5508145093917847,
0.4486755430698395,
0.5709658265113831,
0.6526639461517334,
-0.6313812136650085,
-0.30792152881622314,
-0.2705869674682617,
-0.2864548861980438,
0.20017901062965393,
1.1937713623046875,
-0.152631938457489,
-0.9909369349479675,
0.7459496855735779,
-0.4277116358280182,
0.09368190169334412,
1.9398448467254639,
0.06613243371248245,
-0.7354493737220764,
0.31982800364494324,
-0.7455260157585144,
1.8070907592773438,
1.7461644411087036,
1.3561652898788452,
-0.03219272196292877,
-0.9271663427352905,
0.5214114785194397,
-0.25363752245903015,
-0.40222111344337463,
0.9134148359298706,
0.42553624510765076,
-0.2013816237449646,
-1.3752286434173584,
0.5654966235160828,
1.3671784400939941,
-0.895797848701477,
-0.8254160284996033,
0.09531306475400925,
-0.8425076603889465,
1.0638896226882935,
0.6624027490615845,
0.38430193066596985,
0.21840187907218933,
1.6970939636230469,
0.6715224385261536,
-0.4566163122653961,
0.5363875031471252,
0.5360353589057922,
-0.21923193335533142,
-2.1267523765563965,
-1.1493642330169678,
0.32134291529655457,
-0.46401098370552063,
-1.5675609111785889,
1.3016796112060547,
-1.1611168384552002,
-0.9533645510673523,
0.5541589260101318,
0.053582362830638885,
1.4578022956848145,
0.3043375611305237,
1.6696370840072632,
2.1628305912017822,
0.877692699432373,
0.32306092977523804,
1.301757574081421,
-0.04818996042013168,
-0.39884644746780396,
1.8679842948913574,
-0.3807973563671112,
0.5366260409355164,
0.9888003468513489,
-0.40201422572135925,
-1.1048389673233032,
-0.8239425420761108,
-1.1596826314926147,
-0.6576083302497864,
1.071616530418396,
0.16045260429382324,
-1.1237192153930664,
0.17344534397125244,
1.5935003757476807,
0.12032521516084671,
-0.29869022965431213,
0.6160891652107239,
0.386555552482605,
-0.7658365964889526,
-0.06581483781337738,
-1.030768632888794,
0.4893031120300293,
-0.13326838612556458,
-0.33355221152305603,
0.23148414492607117,
0.48247334361076355,
1.196778655052185,
0.00830724649131298,
0.10723825544118881,
1.2127461433410645,
-1.365096926689148,
1.4976732730865479,
-0.6517764925956726,
0.3015786409378052,
-2.400110960006714,
1.4689221382141113,
-0.7658376097679138,
1.8723338842391968,
-2.6624984741210938,
0.40386590361595154,
-0.6210345029830933,
-0.5101215243339539,
0.32056209444999695,
-0.34846779704093933,
0.18746548891067505,
-0.07157136499881744,
-1.1736459732055664,
-0.0042270515114068985,
-0.7684082984924316,
0.5575024485588074,
1.1265300512313843,
1.4600493907928467,
-1.1180683374404907,
-0.3348178565502167,
-1.8071038722991943,
-0.12912800908088684,
-0.7015555500984192,
0.3319111764431,
-2.018624782562256,
-0.08361566811800003,
-1.8910424709320068,
-2.345482587814331,
-1.3677040338516235,
-0.8629806041717529,
1.0501680374145508,
0.10973387211561203,
-0.8890788555145264,
1.1201298236846924,
-0.4124632179737091,
-1.8754792213439941,
1.0864665508270264,
-2.1847379207611084
] |
https://github.com/huggingface/datasets/issues/4612 | Release 2.3.0 broke custom iterable datasets | Apparently, `fsspec` does not allow access to attribute-based modules anymore, such as `fsspec.async`.
However, this is a fairly simple fix:
- Change the import to: `from fsspec import asyn`;
- Change line 18 to: `asyn.iothread[0] = None`;
- Change line 19 to `asyn.loop[0] = None`. | ## Describe the bug
Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0.
## Steps to reproduce the bug
```python
next(iter(custom_iterable_dataset))
```
## Expected results
`next(iter(custom_iterable_dataset))` should return examples from the dataset
## Actual results
```
/usr/local/lib/python3.7/dist-packages/datasets/formatting/dataset_wrappers/torch_iterable_dataset.py in _set_fsspec_for_multiprocess()
16 See https://github.com/fsspec/gcsfs/issues/379
17 """
---> 18 fsspec.asyn.iothread[0] = None
19 fsspec.asyn.loop[0] = None
20
AttributeError: module 'fsspec' has no attribute 'asyn'
```
## Environment info
- `datasets` version: 2.3.0
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 8.0.0
- Pandas version: 1.3.5
| 667 | 45 | Release 2.3.0 broke custom iterable datasets
## Describe the bug
Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0.
## Steps to reproduce the bug
```python
next(iter(custom_iterable_dataset))
```
## Expected results
`next(iter(custom_iterable_dataset))` should return examples from the dataset
## Actual results
```
/usr/local/lib/python3.7/dist-packages/datasets/formatting/dataset_wrappers/torch_iterable_dataset.py in _set_fsspec_for_multiprocess()
16 See https://github.com/fsspec/gcsfs/issues/379
17 """
---> 18 fsspec.asyn.iothread[0] = None
19 fsspec.asyn.loop[0] = None
20
AttributeError: module 'fsspec' has no attribute 'asyn'
```
## Environment info
- `datasets` version: 2.3.0
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 8.0.0
- Pandas version: 1.3.5
Apparently, `fsspec` does not allow access to attribute-based modules anymore, such as `fsspec.async`.
However, this is a fairly simple fix:
- Change the import to: `from fsspec import asyn`;
- Change line 18 to: `asyn.iothread[0] = None`;
- Change line 19 to `asyn.loop[0] = None`. | [
-1.2229942083358765,
-0.8304753303527832,
-0.6798725128173828,
1.594677209854126,
-0.0990484356880188,
-1.2675917148590088,
0.14951477944850922,
-0.9554650187492371,
1.678745150566101,
-0.7611624002456665,
0.3374619781970978,
-1.592681884765625,
0.030146362259984016,
-0.5825725793838501,
-0.7237676382064819,
-0.7957624793052673,
-0.4035945236682892,
-0.73082435131073,
1.09457528591156,
2.4778690338134766,
1.2525544166564941,
-1.3989566564559937,
2.695833921432495,
0.6860502362251282,
-0.2464522272348404,
-1.0053794384002686,
0.4139648973941803,
0.026666587218642235,
-1.3817957639694214,
-0.4495926797389984,
-0.898111879825592,
-0.05112716555595398,
-0.5504199862480164,
-0.5602285265922546,
0.10583962500095367,
0.47244328260421753,
-0.25353550910949707,
-0.5292826294898987,
-0.46224749088287354,
-0.8383832573890686,
0.42241623997688293,
-0.32481178641319275,
0.9080603122711182,
-0.3323448896408081,
1.731830358505249,
-0.5408154726028442,
0.5105471014976501,
0.6887028813362122,
1.3009393215179443,
0.17468902468681335,
-0.045618198812007904,
0.41504138708114624,
0.34419378638267517,
0.032580114901065826,
0.6191967129707336,
1.1825485229492188,
0.673606276512146,
0.431593656539917,
0.7119958400726318,
-2.210606813430786,
1.3253145217895508,
-0.9688293933868408,
0.26202157139778137,
1.2956535816192627,
-0.9702950119972229,
0.3637956976890564,
-1.7175593376159668,
-0.1289713978767395,
0.46967199444770813,
-2.21635103225708,
0.2702440321445465,
-1.3383612632751465,
-0.47867098450660706,
1.0675976276397705,
0.36284342408180237,
-1.1587622165679932,
0.08619779348373413,
-0.42010655999183655,
0.9520102143287659,
0.3809392750263214,
1.1606504917144775,
-1.6816284656524658,
-0.04318331927061081,
-0.23467905819416046,
0.16158027946949005,
-1.2844995260238647,
-1.5735814571380615,
0.5320121049880981,
0.690804123878479,
0.6239755153656006,
-0.15886011719703674,
1.033562183380127,
-1.0249418020248413,
0.8088501691818237,
-1.0665194988250732,
-1.8210301399230957,
-1.3508015871047974,
-2.3178675174713135,
-2.403639554977417,
0.7612870335578918,
-0.43267175555229187,
-0.44815710186958313,
2.130807399749756,
-0.9241804480552673,
-1.8346531391143799,
1.0707807540893555,
0.2657701075077057,
0.020335789769887924,
2.3320658206939697,
0.1694907546043396,
-0.7061116099357605,
0.5317233800888062,
-0.7500168681144714,
0.767117977142334,
-0.3317844569683075,
1.2995011806488037,
0.4434485137462616,
-1.037955403327942,
1.542677640914917,
-0.2582609951496124,
0.6072140336036682,
-0.6831348538398743,
-0.39922165870666504,
-0.7277644276618958,
0.2733926475048065,
1.9200704097747803,
-0.2638871967792511,
1.528593897819519,
-0.2709270119667053,
-1.515395164489746,
-1.5842480659484863,
0.8028171062469482,
0.49838078022003174,
-0.6716710925102234,
0.10585259646177292,
-0.33068063855171204,
0.15466465055942535,
0.05465158075094223,
1.1121267080307007,
1.254929780960083,
0.7118847966194153,
-0.33970728516578674,
-0.9471774101257324,
0.24971802532672882,
-0.025179671123623848,
-0.7235655188560486,
-1.6842490434646606,
-0.2832035720348358,
0.1748766452074051,
0.6467256546020508,
-1.235404133796692,
1.7869621515274048,
0.8753759860992432,
1.9722437858581543,
1.0397651195526123,
-0.3192976713180542,
1.5273420810699463,
0.036397531628608704,
1.9166679382324219,
-0.4016778767108917,
0.5885921120643616,
-0.4798220992088318,
-1.1593362092971802,
0.8290937542915344,
-0.3011937439441681,
-2.0989255905151367,
-0.7134987711906433,
-0.8465567231178284,
-0.13893312215805054,
-0.7389937043190002,
0.9768368005752563,
-0.2526938319206238,
-1.4051589965820312,
0.14775314927101135,
-0.726992130279541,
0.19707077741622925,
-1.2286275625228882,
0.2674412727355957,
0.7542294263839722,
-0.7113531231880188,
0.1786290407180786,
-0.31673142313957214,
-1.3787609338760376,
-0.5933897495269775,
0.4051262438297272,
1.8935612440109253,
-0.6731627583503723,
0.9954492449760437,
1.0780166387557983,
-0.7641820311546326,
0.02000744268298149,
0.2808206081390381,
-0.37762579321861267,
0.8188480138778687,
-1.1347410678863525,
-0.43861499428749084,
1.2080785036087036,
-0.2434626668691635,
-0.6795445680618286,
1.4849247932434082,
0.6981884241104126,
-1.0338201522827148,
-0.23613518476486206,
-0.07972542941570282,
-0.8205558657646179,
0.09539687633514404,
-1.613958716392517,
-0.14743809401988983,
0.4190804064273834,
-1.597116470336914,
-0.451326847076416,
-0.21520689129829407,
1.2499405145645142,
-0.15498454868793488,
1.4313348531723022,
-0.15592420101165771,
-0.2377135455608368,
-0.36832258105278015,
-0.4558689594268799,
0.06122913956642151,
-0.1960686892271042,
-0.672044038772583,
0.29711031913757324,
-0.7193602919578552,
0.4782073497772217,
1.4043806791305542,
0.263907253742218,
0.037705615162849426,
0.4948498606681824,
1.1689597368240356,
0.35980480909347534,
-0.1359378695487976,
-0.8356740474700928,
-1.593300461769104,
1.9974039793014526,
-1.4024790525436401,
1.9962776899337769,
0.7118401527404785,
0.01261904090642929,
-1.7770543098449707,
-1.9319729804992676,
1.3891253471374512,
1.108647108078003,
2.3673229217529297,
0.6299167275428772,
0.3718101382255554,
-0.7908338904380798,
-0.6527508497238159,
0.28460267186164856,
-0.9575757384300232,
-0.8017706274986267,
0.1874932497739792,
2.4573843479156494,
1.7403031587600708,
-0.4113299548625946,
-0.19743715226650238,
-1.0099073648452759,
1.4048267602920532,
-0.19204239547252655,
0.23242047429084778,
1.9874732494354248,
-0.2019665390253067,
-1.057430624961853,
1.3046339750289917,
-2.420767307281494,
0.3226924240589142,
2.0784265995025635,
0.2806472182273865,
0.06976150721311569,
-1.377755045890808,
-0.6482531428337097,
-0.2921249568462372,
-0.38305822014808655,
-1.1589373350143433,
0.5544658303260803,
-0.16003410518169403,
-0.7545371651649475,
-1.4253456592559814,
0.17316223680973053,
-1.127810001373291,
-1.7237476110458374,
0.25274109840393066,
1.8701246976852417,
1.9999803304672241,
-0.6935352087020874,
1.4990357160568237,
-0.24275359511375427,
0.1579621434211731,
1.2752749919891357,
1.225150227546692,
3.1309502124786377,
2.0019853115081787,
-1.2232609987258911,
0.6584756374359131,
-0.1370694786310196,
-0.46011605858802795,
1.2331362962722778,
-1.2024625539779663,
1.2197531461715698,
-0.18754076957702637,
-1.29525625705719,
-1.2812581062316895,
0.9257186651229858,
0.4952031373977661,
0.021830478683114052,
-0.4611318111419678,
1.138034462928772,
0.07483762502670288,
1.2724655866622925,
0.6015176773071289,
-0.2894997298717499,
0.6777453422546387,
-0.4315531253814697,
-0.39023831486701965,
1.5495524406433105,
0.09018538147211075,
-1.4941643476486206,
-2.2467434406280518,
-0.16055426001548767,
-0.8988839983940125,
-0.018634818494319916,
-0.7253565788269043,
-1.040584683418274,
1.5783910751342773,
0.34127160906791687,
-1.229666829109192,
-0.16862832009792328,
-0.33617621660232544,
-0.6362019777297974,
2.6614186763763428,
-1.365842580795288,
-0.23311296105384827,
-1.046068549156189,
-0.6523585915565491,
1.5676261186599731,
-1.1780413389205933,
-0.22107209265232086,
-0.9807388186454773,
-0.5034631490707397,
-1.2679673433303833,
-0.5476281642913818,
0.03709370642900467,
-0.8665679693222046,
0.8094460964202881,
0.12096226215362549,
-1.1838068962097168,
-0.3726825416088104,
-0.949904203414917,
0.8878347873687744,
-0.10280849039554596,
0.11311210691928864,
1.8093667030334473,
0.36612972617149353,
-0.3458797037601471,
0.7515965700149536,
1.1670819520950317,
0.6562179327011108,
-0.6300403475761414,
0.3036036491394043,
-0.7018022537231445,
0.37375906109809875,
-1.317049264907837,
0.2751592993736267,
-2.7997264862060547,
0.5473802089691162,
-0.06329604238271713,
-0.06688425689935684,
-0.014155078679323196,
-1.3158600330352783,
1.1424360275268555,
2.6613495349884033,
-1.243820071220398,
0.5642192363739014,
0.31273049116134644,
1.1620875597000122,
-1.5413638353347778,
0.22108998894691467,
-0.5012920498847961,
2.1127121448516846,
0.14328990876674652,
1.1760613918304443,
-0.49465253949165344,
-2.3095762729644775,
0.6031969785690308,
-1.2214596271514893,
-1.1835378408432007,
0.7521666288375854,
-0.909451961517334,
0.10248526185750961,
-1.2608002424240112,
-0.1851745992898941,
-0.8053432703018188,
-1.2163043022155762,
0.6233519911766052,
0.09015461057424545,
0.47284525632858276,
-0.5988199710845947,
0.3115474283695221,
-2.223451852798462,
-1.3504549264907837,
-0.2539459764957428,
-1.0217558145523071,
0.5091813802719116,
-0.39493852853775024,
0.6529383063316345,
-0.11889101564884186,
-0.08392023295164108,
0.25403207540512085,
1.4588295221328735,
3.3705360889434814,
0.17631636559963226,
0.3395005464553833,
-0.19380469620227814,
-1.0319851636886597,
1.4404058456420898,
0.940252423286438,
-0.18995758891105652,
-0.5044084191322327,
-1.0627855062484741,
1.1756912469863892,
1.993317723274231,
1.1054508686065674,
0.005532531999051571,
-0.8689999580383301,
-0.9170689582824707,
0.0369691327214241,
0.13946522772312164,
0.48272809386253357,
0.9584726095199585,
0.14109627902507782,
0.05824445188045502,
1.3869370222091675,
1.1907159090042114,
-0.3443825840950012,
0.3413397967815399,
-0.8648079633712769,
-0.41605716943740845,
0.5206376910209656,
0.2471029907464981,
-0.04909617453813553,
0.36249008774757385,
-1.0011223554611206,
-0.21270020306110382,
-0.36729443073272705,
-0.8845863342285156,
-0.7838960886001587,
-0.42976176738739014,
-0.3625684678554535,
1.6970256567001343,
-0.010767144151031971,
-0.5665797591209412,
-0.01748025417327881,
-0.7071264982223511,
-0.013624999672174454,
-0.9580361247062683,
0.347902774810791,
-0.19070979952812195,
-0.09391304850578308,
-0.1844729632139206,
1.7477346658706665,
-1.0010478496551514,
-2.0582408905029297,
0.2265021800994873,
0.1989133656024933,
-0.3571871221065521,
0.19791989028453827,
1.6359704732894897,
0.5826254487037659,
1.4977035522460938,
1.4643884897232056,
0.9779307246208191,
-0.703737199306488,
-1.326812744140625,
0.7030740976333618,
0.8797904253005981,
-1.3213621377944946,
0.7757807970046997,
-0.07536938786506653,
-0.4060862064361572,
0.5911301374435425,
1.353920340538025,
0.4233507513999939,
-2.022585153579712,
0.756881594657898,
-0.991442084312439,
0.7857566475868225,
0.762933075428009,
0.7596002817153931,
0.1665586531162262,
0.7525506019592285,
-1.2322567701339722,
-1.0438588857650757,
-0.6401257514953613,
-0.6975826025009155,
1.9157730340957642,
-0.31816643476486206,
0.6361393332481384,
-0.16463902592658997,
-1.4192594289779663,
-0.047334037721157074,
0.7143764495849609,
0.33407437801361084,
-0.5134532451629639,
0.8388186097145081,
-0.5906617641448975,
-1.0255731344223022,
-1.3185560703277588,
-0.5158303380012512,
-1.0420312881469727,
-0.8971664309501648,
1.0309619903564453,
0.7348412871360779,
0.2999616265296936,
1.9078989028930664,
0.6518586874008179,
0.2658598721027374,
-2.7296700477600098,
0.8411461710929871,
0.3046993315219879,
-0.04597833752632141,
0.8451541662216187,
0.3212689459323883,
0.973163366317749,
-0.0974406898021698,
0.6193976998329163,
-2.2685272693634033,
2.3323590755462646,
-0.13418227434158325,
0.6965968608856201,
0.034353263676166534,
-0.07480859756469727,
1.0261143445968628,
0.5687229037284851,
0.6209108829498291,
-1.216323733329773,
0.7079150676727295,
-0.6815140843391418,
1.2469362020492554,
0.7840734124183655,
-0.8577468991279602,
0.024073010310530663,
1.3200773000717163,
0.3912715017795563,
-0.4595717787742615,
-1.0219275951385498,
-0.93827885389328,
1.0370495319366455,
1.7483718395233154,
-0.07723158597946167,
-0.01502794399857521,
0.9196627736091614,
0.6693952083587646,
-1.3375484943389893,
0.016337916254997253,
-0.6555887460708618,
-0.6796689033508301,
1.6614936590194702,
2.039069175720215,
-0.11949064582586288,
-0.22833392024040222,
-0.7439166307449341,
-1.1964290142059326,
0.7290321588516235,
0.07485353201627731,
-0.05176451802253723,
0.673932671546936,
-0.6264621019363403,
1.2097645998001099,
0.8605435490608215,
0.945184588432312,
0.09327879548072815,
0.21722589433193207,
0.28117361664772034,
-0.3649386465549469,
-1.2436858415603638,
-0.2666478455066681,
-0.9972180128097534,
-2.6063897609710693,
0.4035748541355133,
-0.20140431821346283,
-1.4874544143676758,
0.0460352823138237,
-1.0326541662216187,
0.9635779857635498,
-0.4947400391101837,
-1.1808090209960938,
-1.5160431861877441,
0.13563622534275055,
-0.22734487056732178,
0.8871006965637207,
-1.5907025337219238,
-0.13449706137180328,
1.194826602935791,
0.9235600233078003,
-0.7044560313224792,
0.9899336099624634,
0.20203839242458344,
1.006989598274231,
0.9189784526824951,
-0.3160123825073242,
0.4693131446838379,
0.15967826545238495,
-1.3204978704452515,
0.4225505590438843,
1.2075719833374023,
0.16314542293548584,
1.3916823863983154,
-0.6464458107948303,
0.020623967051506042,
0.392525315284729,
-0.45999976992607117,
-0.4766067564487457,
-0.6870688796043396,
0.7830623984336853,
-0.00369002902880311,
-0.9780329465866089,
-0.040411680936813354,
-0.06255660951137543,
-0.14154723286628723,
0.13657376170158386,
-1.5024529695510864,
-0.11501163989305496,
-0.3257512152194977,
-0.589988112449646,
-1.2306852340698242,
0.03640802204608917,
1.3551814556121826,
-0.9003234505653381,
-0.21211150288581848,
0.4305175840854645,
0.27223899960517883,
0.5095975995063782,
0.5652590990066528,
-0.6801212430000305,
-0.3528343141078949,
-0.2648548185825348,
-0.3385069668292999,
0.3486127257347107,
1.3372560739517212,
0.02453395538032055,
-1.0412906408309937,
0.7369440197944641,
-0.421612024307251,
0.15664638578891754,
1.974338173866272,
0.033014699816703796,
-0.777214527130127,
0.32051292061805725,
-0.727603554725647,
1.8685296773910522,
1.7384504079818726,
1.327097773551941,
-0.1144576370716095,
-1.0601006746292114,
0.6274237632751465,
-0.3466428220272064,
-0.3572365343570709,
0.8773220181465149,
0.388385146856308,
-0.26981469988822937,
-1.3578602075576782,
0.6114546060562134,
1.2801131010055542,
-0.8748536705970764,
-0.8332543969154358,
0.18063656985759735,
-0.8519315719604492,
1.1379907131195068,
0.606737494468689,
0.2916697561740875,
0.25551024079322815,
1.5900481939315796,
0.7159472107887268,
-0.4112738370895386,
0.6472728252410889,
0.5081929564476013,
-0.20736075937747955,
-2.018637180328369,
-1.1462620496749878,
0.325151264667511,
-0.4711586833000183,
-1.579202651977539,
1.3517134189605713,
-1.1523452997207642,
-0.8764583468437195,
0.5977418422698975,
0.10692314803600311,
1.4735387563705444,
0.2913670837879181,
1.5957468748092651,
2.0842320919036865,
0.8587496876716614,
0.4144635498523712,
1.175455927848816,
-0.21823512017726898,
-0.5067247152328491,
1.7713159322738647,
-0.5211999416351318,
0.5461035966873169,
1.07197904586792,
-0.3379257321357727,
-0.9888944029808044,
-0.8312014937400818,
-1.270024061203003,
-0.7539052367210388,
1.0904561281204224,
0.0843464732170105,
-1.1130930185317993,
0.31188684701919556,
1.6031031608581543,
0.14965423941612244,
-0.23208045959472656,
0.6221456527709961,
0.36162349581718445,
-0.8587360382080078,
-0.1047833114862442,
-0.8742689490318298,
0.4903627634048462,
-0.2617456614971161,
-0.29374459385871887,
0.2899242341518402,
0.445992648601532,
1.261388897895813,
0.08626548945903778,
0.09882743656635284,
1.2358531951904297,
-1.3387030363082886,
1.491662859916687,
-0.7182788848876953,
0.3318154811859131,
-2.3077034950256348,
1.4903959035873413,
-0.8681962490081787,
1.8411730527877808,
-2.649678945541382,
0.4229308068752289,
-0.5871672630310059,
-0.43736815452575684,
0.2228633165359497,
-0.32489481568336487,
0.17479495704174042,
-0.2132461667060852,
-1.1051527261734009,
-0.12530019879341125,
-0.7964858412742615,
0.6065821051597595,
1.1714603900909424,
1.3584901094436646,
-0.9906765818595886,
-0.33100444078445435,
-1.764233946800232,
-0.15842203795909882,
-0.6410521268844604,
0.4406261742115021,
-1.849266767501831,
-0.18812140822410583,
-1.9216264486312866,
-2.4323151111602783,
-1.2418402433395386,
-0.7831283807754517,
1.0654906034469604,
0.045624859631061554,
-0.7943241000175476,
1.105459451675415,
-0.40625253319740295,
-1.812838077545166,
1.1490060091018677,
-2.2109031677246094
] |
https://github.com/huggingface/datasets/issues/4612 | Release 2.3.0 broke custom iterable datasets | Hi! I think it's easier to replace `import fsspec` with `import fsspec.asyn` and leave the rest unchanged. @gugarosa Are you interested in submitting a PR? | ## Describe the bug
Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0.
## Steps to reproduce the bug
```python
next(iter(custom_iterable_dataset))
```
## Expected results
`next(iter(custom_iterable_dataset))` should return examples from the dataset
## Actual results
```
/usr/local/lib/python3.7/dist-packages/datasets/formatting/dataset_wrappers/torch_iterable_dataset.py in _set_fsspec_for_multiprocess()
16 See https://github.com/fsspec/gcsfs/issues/379
17 """
---> 18 fsspec.asyn.iothread[0] = None
19 fsspec.asyn.loop[0] = None
20
AttributeError: module 'fsspec' has no attribute 'asyn'
```
## Environment info
- `datasets` version: 2.3.0
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 8.0.0
- Pandas version: 1.3.5
| 667 | 25 | Release 2.3.0 broke custom iterable datasets
## Describe the bug
Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0.
## Steps to reproduce the bug
```python
next(iter(custom_iterable_dataset))
```
## Expected results
`next(iter(custom_iterable_dataset))` should return examples from the dataset
## Actual results
```
/usr/local/lib/python3.7/dist-packages/datasets/formatting/dataset_wrappers/torch_iterable_dataset.py in _set_fsspec_for_multiprocess()
16 See https://github.com/fsspec/gcsfs/issues/379
17 """
---> 18 fsspec.asyn.iothread[0] = None
19 fsspec.asyn.loop[0] = None
20
AttributeError: module 'fsspec' has no attribute 'asyn'
```
## Environment info
- `datasets` version: 2.3.0
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 8.0.0
- Pandas version: 1.3.5
Hi! I think it's easier to replace `import fsspec` with `import fsspec.asyn` and leave the rest unchanged. @gugarosa Are you interested in submitting a PR? | [
-1.24974524974823,
-0.857594907283783,
-0.692696750164032,
1.5642340183258057,
-0.08375442773103714,
-1.274600863456726,
0.16499315202236176,
-0.9384090900421143,
1.6505169868469238,
-0.7607532739639282,
0.31936317682266235,
-1.6095467805862427,
0.007671821862459183,
-0.533953070640564,
-0.722314178943634,
-0.8360463380813599,
-0.4388682246208191,
-0.739639163017273,
1.0923372507095337,
2.482259511947632,
1.2511889934539795,
-1.3779964447021484,
2.723127841949463,
0.6521002054214478,
-0.24811112880706787,
-1.0095443725585938,
0.4398220181465149,
0.00704323872923851,
-1.3706464767456055,
-0.4509260058403015,
-0.9116273522377014,
-0.03772851824760437,
-0.5394717454910278,
-0.5380622744560242,
0.15388981997966766,
0.44576144218444824,
-0.2446531057357788,
-0.5047763586044312,
-0.4596400260925293,
-0.825466513633728,
0.4218387007713318,
-0.34850507974624634,
0.9357011318206787,
-0.319928914308548,
1.7394834756851196,
-0.5217705965042114,
0.5312009453773499,
0.6978683471679688,
1.3359719514846802,
0.17784668505191803,
-0.027091069146990776,
0.4254276156425476,
0.3400683104991913,
0.04738821089267731,
0.5698040723800659,
1.2033441066741943,
0.6001229882240295,
0.4111352264881134,
0.6647666692733765,
-2.2040178775787354,
1.3303446769714355,
-0.9738411903381348,
0.2516874372959137,
1.3331674337387085,
-0.9714586734771729,
0.38132983446121216,
-1.6908550262451172,
-0.07182881981134415,
0.4940759837627411,
-2.256474733352661,
0.24263986945152283,
-1.3181679248809814,
-0.450233519077301,
1.096318244934082,
0.36122965812683105,
-1.1459479331970215,
0.0794428363442421,
-0.44165459275245667,
1.002850890159607,
0.4242111146450043,
1.1490498781204224,
-1.7042105197906494,
-0.05501925200223923,
-0.23200972378253937,
0.14650464057922363,
-1.309116244316101,
-1.5821588039398193,
0.49591633677482605,
0.7235016822814941,
0.6464857459068298,
-0.1174173429608345,
1.0304433107376099,
-0.9762558937072754,
0.7616732120513916,
-1.0087445974349976,
-1.7686231136322021,
-1.383397102355957,
-2.3401694297790527,
-2.3800787925720215,
0.7573256492614746,
-0.4512632191181183,
-0.4703281819820404,
2.103031635284424,
-0.9259163737297058,
-1.8411805629730225,
1.070279836654663,
0.2683940529823303,
0.07272601872682571,
2.317622184753418,
0.1683187037706375,
-0.7125312089920044,
0.5169326663017273,
-0.7387790679931641,
0.7546491622924805,
-0.35468146204948425,
1.292934775352478,
0.4762343168258667,
-1.0445269346237183,
1.5083574056625366,
-0.2974739670753479,
0.6118472814559937,
-0.6568825244903564,
-0.40890929102897644,
-0.7834782004356384,
0.28683868050575256,
1.9096958637237549,
-0.2558433413505554,
1.5620179176330566,
-0.25931668281555176,
-1.5481477975845337,
-1.6052249670028687,
0.8188616037368774,
0.47703835368156433,
-0.6782811284065247,
0.10990822315216064,
-0.34658029675483704,
0.1297696977853775,
0.050305962562561035,
1.0788207054138184,
1.2268236875534058,
0.6750950813293457,
-0.33444109559059143,
-0.9777342677116394,
0.3291815221309662,
-0.017583578824996948,
-0.6943665146827698,
-1.6766904592514038,
-0.33037713170051575,
0.19581255316734314,
0.6114649772644043,
-1.2163490056991577,
1.7573269605636597,
0.8612105250358582,
1.9717875719070435,
1.0258183479309082,
-0.30399125814437866,
1.5422312021255493,
0.0798981711268425,
1.8962589502334595,
-0.4119923412799835,
0.6081961393356323,
-0.40637269616127014,
-1.157436728477478,
0.7771778702735901,
-0.3414272367954254,
-2.0795059204101562,
-0.7346459627151489,
-0.8525524735450745,
-0.12141630053520203,
-0.7371208071708679,
0.9640363454818726,
-0.27322137355804443,
-1.4176291227340698,
0.15333473682403564,
-0.742419421672821,
0.22327105700969696,
-1.269452691078186,
0.26876240968704224,
0.7789155840873718,
-0.7054075598716736,
0.14821051061153412,
-0.29801154136657715,
-1.373719334602356,
-0.5386773943901062,
0.3986091613769531,
1.9134498834609985,
-0.6410030722618103,
1.0171271562576294,
1.0560628175735474,
-0.7850305438041687,
0.05760706216096878,
0.2675803601741791,
-0.35603398084640503,
0.8569969534873962,
-1.1460446119308472,
-0.4095572233200073,
1.2374475002288818,
-0.24994921684265137,
-0.698158860206604,
1.4866580963134766,
0.7372249960899353,
-1.0198432207107544,
-0.24968558549880981,
-0.11621222645044327,
-0.8081969022750854,
0.09098073840141296,
-1.6038874387741089,
-0.13475054502487183,
0.39794474840164185,
-1.5725629329681396,
-0.45893144607543945,
-0.23683668673038483,
1.2590746879577637,
-0.16574203968048096,
1.4513479471206665,
-0.1933329701423645,
-0.21564190089702606,
-0.3991362154483795,
-0.5257982015609741,
0.11089260876178741,
-0.23777499794960022,
-0.6855708956718445,
0.27022141218185425,
-0.7098251581192017,
0.5104071497917175,
1.3938391208648682,
0.293346643447876,
0.04659140855073929,
0.5121908187866211,
1.1683810949325562,
0.33265337347984314,
-0.16094820201396942,
-0.8396813869476318,
-1.6324247121810913,
2.0205676555633545,
-1.377341866493225,
1.9740091562271118,
0.7023781538009644,
-0.040897637605667114,
-1.7308740615844727,
-1.9139823913574219,
1.3596967458724976,
1.1183370351791382,
2.3587141036987305,
0.6066383719444275,
0.4266737997531891,
-0.8015956878662109,
-0.697922945022583,
0.2656678557395935,
-0.9553108215332031,
-0.7855905890464783,
0.19322125613689423,
2.4276180267333984,
1.703530192375183,
-0.4286167323589325,
-0.20155726373195648,
-1.0091887712478638,
1.3747023344039917,
-0.2263273447751999,
0.22779154777526855,
1.9923464059829712,
-0.16679339110851288,
-1.0647222995758057,
1.2863887548446655,
-2.397279977798462,
0.31129056215286255,
2.0800037384033203,
0.298449844121933,
0.07334292680025101,
-1.4151716232299805,
-0.6753028631210327,
-0.34645089507102966,
-0.3418620526790619,
-1.2126199007034302,
0.5659623146057129,
-0.17102490365505219,
-0.7665264010429382,
-1.4143561124801636,
0.18944908678531647,
-1.1040517091751099,
-1.7162896394729614,
0.2665230631828308,
1.8696123361587524,
1.993216872215271,
-0.722588837146759,
1.4853205680847168,
-0.20808662474155426,
0.1639353483915329,
1.247377872467041,
1.2225487232208252,
3.1162056922912598,
2.013618230819702,
-1.2046905755996704,
0.6788954138755798,
-0.13961122930049896,
-0.47175630927085876,
1.261457920074463,
-1.201635718345642,
1.2352335453033447,
-0.1453404575586319,
-1.3263659477233887,
-1.2881609201431274,
0.9252867698669434,
0.5302112698554993,
-0.00509729003533721,
-0.472420871257782,
1.1538320779800415,
0.036148637533187866,
1.2776658535003662,
0.549608051776886,
-0.32598021626472473,
0.6426999568939209,
-0.4343803822994232,
-0.41247156262397766,
1.5441111326217651,
0.08671855181455612,
-1.5100886821746826,
-2.243662118911743,
-0.20333924889564514,
-0.8700818419456482,
-0.05106697231531143,
-0.7466436624526978,
-1.0459518432617188,
1.5639188289642334,
0.37392401695251465,
-1.2092156410217285,
-0.212382972240448,
-0.35089558362960815,
-0.643098771572113,
2.6913366317749023,
-1.3607763051986694,
-0.2069031149148941,
-1.018981695175171,
-0.6115021109580994,
1.5619397163391113,
-1.2232627868652344,
-0.22757892310619354,
-0.984249472618103,
-0.5583324432373047,
-1.2828534841537476,
-0.5582118630409241,
-0.00632230332121253,
-0.8710861802101135,
0.7669152617454529,
0.17611826956272125,
-1.1531935930252075,
-0.33861565589904785,
-0.9483371376991272,
0.9151903390884399,
-0.09130324423313141,
0.11922159045934677,
1.7872949838638306,
0.34559565782546997,
-0.3047674596309662,
0.751266360282898,
1.1704695224761963,
0.63676518201828,
-0.6744903922080994,
0.24295583367347717,
-0.7472358345985413,
0.3357525169849396,
-1.3268667459487915,
0.2684662938117981,
-2.842275619506836,
0.5655543804168701,
-0.057852089405059814,
-0.08970146626234055,
-0.0400644913315773,
-1.2967170476913452,
1.1580876111984253,
2.6578898429870605,
-1.2813029289245605,
0.5474922060966492,
0.35422980785369873,
1.1678600311279297,
-1.5717287063598633,
0.23606367409229279,
-0.4934503138065338,
2.119276523590088,
0.1711532175540924,
1.218093991279602,
-0.4645782709121704,
-2.3206589221954346,
0.6000632047653198,
-1.2082666158676147,
-1.1777681112289429,
0.7375913858413696,
-0.9253262877464294,
0.10059060156345367,
-1.2678766250610352,
-0.18693245947360992,
-0.7816055417060852,
-1.2149229049682617,
0.6333746314048767,
0.09334802627563477,
0.4923724830150604,
-0.5824512839317322,
0.33276838064193726,
-2.2378733158111572,
-1.3328391313552856,
-0.26871001720428467,
-1.0357178449630737,
0.5123982429504395,
-0.3847976624965668,
0.6258161664009094,
-0.10159821808338165,
-0.05646742880344391,
0.2788483202457428,
1.455834984779358,
3.3821468353271484,
0.18348686397075653,
0.3224296271800995,
-0.10905466228723526,
-1.0422025918960571,
1.4295659065246582,
0.9404085278511047,
-0.22435423731803894,
-0.5148879289627075,
-1.0489543676376343,
1.2182265520095825,
1.992726445198059,
1.1045434474945068,
0.034824930131435394,
-0.8793912529945374,
-0.8956586122512817,
0.040744759142398834,
0.12314974516630173,
0.49361851811408997,
0.9598461389541626,
0.13647884130477905,
0.06952761113643646,
1.4424420595169067,
1.2043377161026,
-0.32726919651031494,
0.3185272514820099,
-0.8877750635147095,
-0.4299061894416809,
0.5092652440071106,
0.23554059863090515,
-0.06570633500814438,
0.40101832151412964,
-0.9948949217796326,
-0.18173375725746155,
-0.37880855798721313,
-0.8936241269111633,
-0.783100426197052,
-0.44804465770721436,
-0.35923779010772705,
1.7287266254425049,
0.0010699937120079994,
-0.5718807578086853,
-0.023776624351739883,
-0.7020723223686218,
-0.02992609702050686,
-0.9920202493667603,
0.3119775354862213,
-0.19377975165843964,
-0.08430418372154236,
-0.17660830914974213,
1.7102890014648438,
-1.001571774482727,
-2.101668119430542,
0.20482711493968964,
0.22163957357406616,
-0.35310646891593933,
0.16742445528507233,
1.6299113035202026,
0.5622005462646484,
1.4879028797149658,
1.437279224395752,
1.0206758975982666,
-0.7209222316741943,
-1.3392778635025024,
0.7095184326171875,
0.8730413913726807,
-1.306200623512268,
0.776921272277832,
-0.09895000606775284,
-0.4508261978626251,
0.5947937965393066,
1.330254077911377,
0.42397335171699524,
-1.9662201404571533,
0.7801979184150696,
-1.0150772333145142,
0.7846390604972839,
0.7445030808448792,
0.7740222215652466,
0.14870089292526245,
0.8000929355621338,
-1.24632728099823,
-1.064371943473816,
-0.659383237361908,
-0.6956721544265747,
1.907304048538208,
-0.3418717682361603,
0.6199501752853394,
-0.17655201256275177,
-1.388962745666504,
-0.029057543724775314,
0.7221073508262634,
0.3492564558982849,
-0.48258018493652344,
0.8826488852500916,
-0.6250945329666138,
-1.0295476913452148,
-1.352128505706787,
-0.4993245303630829,
-1.0326204299926758,
-0.9230694770812988,
1.0221790075302124,
0.7147927284240723,
0.3028196096420288,
1.8433399200439453,
0.6661483645439148,
0.29089972376823425,
-2.7715485095977783,
0.8476105332374573,
0.28047624230384827,
-0.015019542537629604,
0.821442723274231,
0.3042948246002197,
1.0260725021362305,
-0.07747790217399597,
0.5897015929222107,
-2.2343480587005615,
2.300058126449585,
-0.17650099098682404,
0.6881506443023682,
0.019101690500974655,
-0.08246390521526337,
1.0254981517791748,
0.5418013334274292,
0.6328775882720947,
-1.2483564615249634,
0.7552646398544312,
-0.664593517780304,
1.2122591733932495,
0.8098072409629822,
-0.892622709274292,
0.03667226433753967,
1.3615103960037231,
0.42811599373817444,
-0.46870309114456177,
-1.0211422443389893,
-0.9247708320617676,
1.034018874168396,
1.7137720584869385,
-0.06505462527275085,
-0.005226189270615578,
0.9329627752304077,
0.6775182485580444,
-1.3295000791549683,
0.017737455666065216,
-0.6728453040122986,
-0.6571943759918213,
1.6885312795639038,
2.0426981449127197,
-0.09070676565170288,
-0.25922587513923645,
-0.7161976099014282,
-1.1693332195281982,
0.7049188017845154,
0.07524286955595016,
-0.04982797056436539,
0.6747450828552246,
-0.6371138095855713,
1.187121033668518,
0.8436028361320496,
0.9832792282104492,
0.0806615874171257,
0.20309026539325714,
0.28430917859077454,
-0.370455265045166,
-1.264793872833252,
-0.28078120946884155,
-0.9850113391876221,
-2.597416639328003,
0.3871026039123535,
-0.1918461173772812,
-1.494756817817688,
0.048700831830501556,
-1.0288010835647583,
0.9694929122924805,
-0.534916877746582,
-1.1454371213912964,
-1.5018196105957031,
0.12787161767482758,
-0.2268241047859192,
0.8222719430923462,
-1.5818341970443726,
-0.17626476287841797,
1.2291532754898071,
0.9327380657196045,
-0.6716288924217224,
1.0120835304260254,
0.1890663057565689,
0.9829352498054504,
0.9162857532501221,
-0.3151843249797821,
0.5058510303497314,
0.1856555938720703,
-1.3265273571014404,
0.49940696358680725,
1.1871814727783203,
0.20882149040699005,
1.3943077325820923,
-0.6511066555976868,
0.04167886823415756,
0.37621790170669556,
-0.4915550649166107,
-0.45955130457878113,
-0.6933028101921082,
0.7671335935592651,
-0.014048974961042404,
-0.9861553907394409,
-0.014516779221594334,
-0.09378006309270859,
-0.13208705186843872,
0.142078697681427,
-1.5272568464279175,
-0.13011643290519714,
-0.3031359910964966,
-0.6007055640220642,
-1.2093788385391235,
0.032799139618873596,
1.3601254224777222,
-0.9353135824203491,
-0.2089473307132721,
0.43363258242607117,
0.3395886719226837,
0.5167184472084045,
0.5395900011062622,
-0.7255719304084778,
-0.2836782932281494,
-0.3085828423500061,
-0.30083486437797546,
0.3170565366744995,
1.2894790172576904,
0.005046564154326916,
-1.0380536317825317,
0.7309505343437195,
-0.41909059882164,
0.17801609635353088,
1.9719865322113037,
0.055365242063999176,
-0.7785233855247498,
0.31352919340133667,
-0.7306753396987915,
1.8819197416305542,
1.7128357887268066,
1.3528496026992798,
-0.11599816381931305,
-1.0359101295471191,
0.6060245633125305,
-0.3465421795845032,
-0.3734567165374756,
0.8837769031524658,
0.428609699010849,
-0.25147825479507446,
-1.3312618732452393,
0.6301500201225281,
1.2654863595962524,
-0.8649445176124573,
-0.8188785314559937,
0.1726922243833542,
-0.8757833242416382,
1.142051100730896,
0.5889559388160706,
0.2680562734603882,
0.24110329151153564,
1.6448304653167725,
0.7320724725723267,
-0.4261080324649811,
0.6015611290931702,
0.5439496636390686,
-0.21874196827411652,
-1.968697428703308,
-1.1157941818237305,
0.33806395530700684,
-0.4690057933330536,
-1.5509817600250244,
1.337247610092163,
-1.1282992362976074,
-0.8622868657112122,
0.6043997406959534,
0.13626445829868317,
1.4838696718215942,
0.27034273743629456,
1.604896903038025,
2.08221697807312,
0.8831367492675781,
0.42038124799728394,
1.2013700008392334,
-0.1782398670911789,
-0.4712529182434082,
1.7618732452392578,
-0.47109144926071167,
0.5325593948364258,
1.0895317792892456,
-0.3884129822254181,
-0.9955461025238037,
-0.8526363968849182,
-1.243546724319458,
-0.704401969909668,
1.0673080682754517,
0.10433115810155869,
-1.099349021911621,
0.29448169469833374,
1.5725728273391724,
0.18233026564121246,
-0.22843238711357117,
0.6523735523223877,
0.37246838212013245,
-0.8175331950187683,
-0.07105723023414612,
-0.9378555417060852,
0.48154565691947937,
-0.24735477566719055,
-0.30712735652923584,
0.265720933675766,
0.407399982213974,
1.2490407228469849,
0.0828406885266304,
0.09701919555664062,
1.2676340341567993,
-1.3001314401626587,
1.4731556177139282,
-0.6983315348625183,
0.31423309445381165,
-2.3212742805480957,
1.4598032236099243,
-0.8638752698898315,
1.8389312028884888,
-2.616018295288086,
0.4243500232696533,
-0.6207602024078369,
-0.4184321463108063,
0.2646729350090027,
-0.39265531301498413,
0.15682752430438995,
-0.19299112260341644,
-1.1128928661346436,
-0.14150571823120117,
-0.8023045063018799,
0.646122932434082,
1.170093297958374,
1.3536937236785889,
-1.0043766498565674,
-0.3157925307750702,
-1.7530304193496704,
-0.11948691308498383,
-0.6592050194740295,
0.4708699584007263,
-1.8400931358337402,
-0.17816878855228424,
-1.9223406314849854,
-2.4495112895965576,
-1.243039608001709,
-0.7339222431182861,
1.0692121982574463,
0.06909630447626114,
-0.7873736619949341,
1.1455355882644653,
-0.3981856107711792,
-1.7926719188690186,
1.157633900642395,
-2.2426657676696777
] |
https://github.com/huggingface/datasets/issues/4610 | codeparrot/github-code failing to load | I believe the issue is in `codeparrot/github-code`. `base_path` param is missing - https://huggingface.co/datasets/codeparrot/github-code/blob/main/github-code.py#L169
Function definition has changed.
https://github.com/huggingface/datasets/blob/0e1c629cfb9f9ba124537ba294a0ec451584da5f/src/datasets/data_files.py#L547
@mariosasko could you please confirm my finding? And are there any changes that need to be done from my side? | ## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2 | 668 | 38 | codeparrot/github-code failing to load
## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
I believe the issue is in `codeparrot/github-code`. `base_path` param is missing - https://huggingface.co/datasets/codeparrot/github-code/blob/main/github-code.py#L169
Function definition has changed.
https://github.com/huggingface/datasets/blob/0e1c629cfb9f9ba124537ba294a0ec451584da5f/src/datasets/data_files.py#L547
@mariosasko could you please confirm my finding? And are there any changes that need to be done from my side? | [
-1.1611977815628052,
-0.851091206073761,
-0.5452695488929749,
1.3688067197799683,
0.00876366626471281,
-1.36588454246521,
0.1514788269996643,
-0.9522942304611206,
1.5589854717254639,
-0.863475501537323,
0.3053831458091736,
-1.746605634689331,
-0.0010000551119446754,
-0.6782383918762207,
-0.6969450116157532,
-0.6758303046226501,
-0.35504040122032166,
-0.7634244561195374,
1.1377356052398682,
2.402327537536621,
1.1769495010375977,
-1.2918647527694702,
2.863217830657959,
0.635192334651947,
-0.2832939922809601,
-0.7947933673858643,
0.3624645471572876,
-0.04392162710428238,
-1.4340533018112183,
-0.32104018330574036,
-0.9846137166023254,
-0.013937622308731079,
-0.6702309250831604,
-0.5088050961494446,
0.045712750405073166,
0.5170338153839111,
-0.17820748686790466,
-0.3522976338863373,
-0.42200523614883423,
-0.7426421642303467,
0.5569978952407837,
-0.2388867735862732,
0.8640202283859253,
-0.2251320630311966,
1.7595101594924927,
-0.6025450825691223,
0.543433666229248,
0.5158212780952454,
1.2147083282470703,
0.19963330030441284,
-0.047367729246616364,
0.3514469265937805,
0.21094338595867157,
0.0048444876447319984,
0.5309943556785583,
1.2931877374649048,
0.6358209848403931,
0.5568368434906006,
0.7055985927581787,
-2.1653807163238525,
1.4043408632278442,
-0.7356946468353271,
0.22000843286514282,
1.3763835430145264,
-1.0722049474716187,
0.4294488728046417,
-1.8804665803909302,
-0.14221766591072083,
0.3265288472175598,
-2.253497838973999,
0.21226204931735992,
-1.2700716257095337,
-0.6061474680900574,
0.9949198961257935,
0.3508222699165344,
-1.2740923166275024,
0.06274081766605377,
-0.46025145053863525,
0.9699844717979431,
0.388263076543808,
1.1038410663604736,
-1.6920435428619385,
0.05033173784613609,
-0.23638580739498138,
0.2930210828781128,
-1.1548213958740234,
-1.680673360824585,
0.6522969603538513,
0.648260772228241,
0.7288581728935242,
-0.24153554439544678,
0.9168302416801453,
-1.134513020515442,
0.8862113356590271,
-0.9743183255195618,
-1.699694037437439,
-1.2506537437438965,
-2.4732627868652344,
-2.4705262184143066,
0.773916482925415,
-0.5197468400001526,
-0.36933958530426025,
2.1527349948883057,
-1.1202671527862549,
-1.7105854749679565,
1.0171579122543335,
0.3891041576862335,
-0.10125380009412766,
2.377898931503296,
0.2737167179584503,
-0.9236670136451721,
0.7190743088722229,
-0.9106131792068481,
0.7183132767677307,
-0.4265894293785095,
1.307586908340454,
0.4609006941318512,
-1.1053146123886108,
1.5816388130187988,
-0.40820392966270447,
0.5545432567596436,
-0.7198746204376221,
-0.42123252153396606,
-0.5695700645446777,
0.20047461986541748,
1.93434476852417,
-0.1752515286207199,
1.494482159614563,
-0.14486195147037506,
-1.443765640258789,
-1.385585069656372,
0.8450739979743958,
0.48562392592430115,
-0.8967658281326294,
0.27595004439353943,
-0.4453093111515045,
0.09386108815670013,
0.13414360582828522,
1.0345370769500732,
1.3270351886749268,
0.7379271984100342,
-0.26671335101127625,
-0.8774941563606262,
0.05158577114343643,
-0.13125550746917725,
-0.515667200088501,
-1.7170100212097168,
-0.23967844247817993,
0.1787848323583603,
0.6107385754585266,
-1.1739598512649536,
1.991334080696106,
0.9068726301193237,
2.0888547897338867,
0.9317257404327393,
-0.41241398453712463,
1.5155736207962036,
0.06420489400625229,
1.862146019935608,
-0.3321509063243866,
0.641685962677002,
-0.5312319993972778,
-1.2301502227783203,
0.7689650058746338,
-0.3583501875400543,
-1.9430416822433472,
-0.4055846333503723,
-0.8686917424201965,
-0.225664883852005,
-0.8858634233474731,
1.0203402042388916,
-0.16988785564899445,
-1.4888919591903687,
0.2091253250837326,
-0.6121195554733276,
0.18715158104896545,
-1.4153887033462524,
0.23936395347118378,
0.7456544637680054,
-0.7443197965621948,
-0.011563219130039215,
-0.388562947511673,
-1.3944731950759888,
-0.6059310436248779,
0.5151119232177734,
1.7384026050567627,
-0.6245744824409485,
1.0387840270996094,
1.0519899129867554,
-0.5808465480804443,
-0.0826985314488411,
0.4732588529586792,
-0.35716792941093445,
0.8473893404006958,
-1.0400876998901367,
-0.41296157240867615,
1.1238503456115723,
-0.34043970704078674,
-0.47408995032310486,
1.305870771408081,
0.7573741674423218,
-1.0191848278045654,
-0.3129705786705017,
-0.0948575958609581,
-0.8632064461708069,
0.037648167461156845,
-1.598399043083191,
-0.05697443336248398,
0.31108760833740234,
-1.415358304977417,
-0.419037789106369,
-0.11838290095329285,
1.3055483102798462,
-0.07074515521526337,
1.3834575414657593,
-0.1557445228099823,
-0.08620624244213104,
-0.5256837606430054,
-0.5851455330848694,
0.1704309582710266,
-0.08411887288093567,
-0.5319223403930664,
0.24755091965198517,
-0.6895180940628052,
0.1914246380329132,
1.504176139831543,
0.14896415174007416,
0.1503830999135971,
0.4689313471317291,
1.2152037620544434,
0.3244205117225647,
-0.1631445437669754,
-0.8387845158576965,
-1.6638236045837402,
1.9937533140182495,
-1.6388838291168213,
1.9380664825439453,
0.8410115242004395,
-0.05187748745083809,
-1.8424880504608154,
-1.7952183485031128,
1.4791337251663208,
1.1486936807632446,
2.526885509490967,
0.5765179991722107,
0.41670334339141846,
-0.8854016065597534,
-0.7127459645271301,
0.4633478820323944,
-0.7353405952453613,
-0.8372697234153748,
0.16969458758831024,
2.33565616607666,
1.715570092201233,
-0.4048916697502136,
-0.21381981670856476,
-0.9277835488319397,
1.3494526147842407,
-0.3251934349536896,
0.2919924855232239,
1.9304159879684448,
-0.4745004177093506,
-0.9983265995979309,
1.3041105270385742,
-2.429487466812134,
0.31768593192100525,
2.0235085487365723,
0.33478420972824097,
0.10961858183145523,
-1.137284278869629,
-0.7023041844367981,
-0.18865197896957397,
-0.5033016800880432,
-1.2283538579940796,
0.43763530254364014,
-0.2486523538827896,
-0.8001439571380615,
-1.4096556901931763,
0.0605313777923584,
-1.1848132610321045,
-1.718407154083252,
0.37197908759117126,
1.7709565162658691,
2.198136806488037,
-0.7818360328674316,
1.3192819356918335,
-0.3221893608570099,
0.28845781087875366,
1.1401714086532593,
1.3111991882324219,
3.1326839923858643,
1.8289991617202759,
-1.2626603841781616,
0.726927638053894,
-0.20721176266670227,
-0.5461043119430542,
1.24288809299469,
-0.9380794167518616,
1.1845029592514038,
-0.26059967279434204,
-1.3459177017211914,
-1.2020294666290283,
0.9279182553291321,
0.4273257255554199,
-0.011791827157139778,
-0.5164701342582703,
1.090728998184204,
0.26269403100013733,
1.2860815525054932,
0.6435111165046692,
-0.33641940355300903,
0.4772889316082001,
-0.33869707584381104,
-0.6204607486724854,
1.5919967889785767,
0.06648533046245575,
-1.581408143043518,
-2.3762292861938477,
-0.22643627226352692,
-1.0441170930862427,
0.011262756772339344,
-0.9058089852333069,
-1.0627225637435913,
1.4409352540969849,
0.49926772713661194,
-0.9417400360107422,
-0.07648835331201553,
-0.3308410048484802,
-0.5145210027694702,
2.540292501449585,
-1.3308695554733276,
-0.2085288017988205,
-0.9033835530281067,
-0.5839871168136597,
1.5582313537597656,
-1.135704517364502,
-0.2860359251499176,
-1.100612998008728,
-0.5048316717147827,
-1.2504851818084717,
-0.3858664631843567,
-0.09530120342969894,
-0.8193186521530151,
0.7098442912101746,
-0.030494697391986847,
-1.3241804838180542,
-0.24699218571186066,
-1.0560187101364136,
0.9639979004859924,
-0.29531189799308777,
0.0611300989985466,
1.6352572441101074,
0.28328290581703186,
-0.4187697768211365,
0.8556715846061707,
1.2755646705627441,
0.6234312653541565,
-0.5658329725265503,
0.15016509592533112,
-0.6550554633140564,
0.5447947978973389,
-1.193398356437683,
0.3554894030094147,
-2.99285888671875,
0.7091729640960693,
0.02894679084420204,
-0.09924045950174332,
-0.15984351933002472,
-1.5464482307434082,
0.9376118779182434,
2.4404032230377197,
-1.154631495475769,
0.6289159059524536,
0.3406694829463959,
1.1869971752166748,
-1.6166503429412842,
-0.04107580706477165,
-0.7208141088485718,
2.088568687438965,
-0.04066554456949234,
1.0643208026885986,
-0.6019155979156494,
-2.380449056625366,
0.4990561902523041,
-1.2451354265213013,
-0.9535080790519714,
0.8468433618545532,
-0.8746622204780579,
0.25927960872650146,
-1.1112761497497559,
-0.09586230665445328,
-0.9196926951408386,
-1.1712327003479004,
0.5558843612670898,
0.037484344094991684,
0.6857653856277466,
-0.660559356212616,
0.31081560254096985,
-2.275109052658081,
-1.3520148992538452,
-0.1343647688627243,
-0.8694583773612976,
0.504667341709137,
-0.43197503685951233,
0.6765853762626648,
-0.06538443267345428,
0.09373217076063156,
0.3082430958747864,
1.5309120416641235,
3.1615867614746094,
-0.02338121458888054,
0.289265900850296,
-0.26453864574432373,
-1.0482275485992432,
1.5578138828277588,
0.9072574973106384,
-0.21440687775611877,
-0.6329219937324524,
-0.9170714020729065,
1.3509576320648193,
1.967649221420288,
1.087760090827942,
0.027245670557022095,
-0.9435643553733826,
-0.7666667103767395,
0.13315489888191223,
0.13436904549598694,
0.42274537682533264,
1.0109272003173828,
0.12369444221258163,
0.18344746530056,
1.3003419637680054,
1.0256839990615845,
-0.3415811061859131,
0.5342761278152466,
-0.8199165463447571,
-0.35239943861961365,
0.48334643244743347,
0.3295716941356659,
0.04048408940434456,
0.3181624114513397,
-1.0534919500350952,
-0.22139307856559753,
-0.27290406823158264,
-0.8100864887237549,
-0.7760083079338074,
-0.38995760679244995,
-0.4906470477581024,
1.758124589920044,
-0.17519228160381317,
-0.5437887907028198,
0.10256282240152359,
-0.7768285274505615,
-0.08187472075223923,
-1.054376244544983,
0.19815129041671753,
-0.09319151937961578,
0.09879599511623383,
-0.11109894514083862,
1.6762713193893433,
-1.0312650203704834,
-2.2560083866119385,
0.09698763489723206,
0.27867087721824646,
-0.34139320254325867,
-0.09836483001708984,
1.8295247554779053,
0.47218993306159973,
1.4280191659927368,
1.5172818899154663,
1.113288164138794,
-0.6746306419372559,
-1.2773436307907104,
0.8222349882125854,
0.8765648007392883,
-1.2907500267028809,
0.9841813445091248,
-0.2051386684179306,
-0.6180486083030701,
0.5835438370704651,
1.2802835702896118,
0.42025354504585266,
-1.9753799438476562,
0.9011847376823425,
-1.179165005683899,
0.9433842301368713,
0.799763023853302,
0.8463877439498901,
0.14484845101833344,
0.8970574140548706,
-1.2246421575546265,
-1.0372498035430908,
-0.5695925354957581,
-0.6203012466430664,
1.8419724702835083,
-0.2643668055534363,
0.29628825187683105,
-0.26744920015335083,
-1.2255173921585083,
0.15427790582180023,
0.789518415927887,
0.3572204113006592,
-0.32906463742256165,
0.6799824833869934,
-0.7007400393486023,
-1.0281611680984497,
-1.2916123867034912,
-0.48436737060546875,
-1.025081753730774,
-0.8869020938873291,
0.9939916133880615,
0.7527018189430237,
0.5687757730484009,
1.9684042930603027,
0.7319097518920898,
0.2344570904970169,
-2.480715036392212,
0.8023009896278381,
0.3491191267967224,
-0.1269858032464981,
0.8915754556655884,
0.343110591173172,
1.316664695739746,
-0.09736756235361099,
0.6274896860122681,
-2.3686723709106445,
2.1951732635498047,
-0.2240126132965088,
0.6811761856079102,
0.035437632352113724,
-0.03686448559165001,
1.0432597398757935,
0.5092666149139404,
0.46094682812690735,
-1.159796118736267,
0.9189459681510925,
-0.517935037612915,
1.1184329986572266,
0.8423366546630859,
-0.9617375135421753,
0.24516485631465912,
1.2399647235870361,
0.363728404045105,
-0.5058873295783997,
-1.034415364265442,
-0.8252852559089661,
0.938511848449707,
1.7239954471588135,
-0.04932700842618942,
0.11458136886358261,
0.7639656066894531,
0.8091575503349304,
-1.295993447303772,
0.024044465273618698,
-0.4878762364387512,
-0.7211205959320068,
1.8065942525863647,
2.0192434787750244,
-0.06341401487588882,
0.04062538966536522,
-0.7411458492279053,
-1.4502294063568115,
0.8901281952857971,
0.12768012285232544,
-0.13736778497695923,
0.762394368648529,
-0.6936531662940979,
1.1635838747024536,
0.7233654856681824,
0.8455812931060791,
0.18535016477108002,
-0.018855828791856766,
0.2889508903026581,
-0.27281928062438965,
-1.1457087993621826,
-0.3659134805202484,
-1.0110360383987427,
-2.650458812713623,
0.3613341152667999,
-0.24057269096374512,
-1.5073559284210205,
0.1492859125137329,
-0.9394926428794861,
0.7352731823921204,
-0.5259467363357544,
-1.2171638011932373,
-1.3449586629867554,
0.3240225613117218,
-0.18218347430229187,
0.8187311291694641,
-1.6086971759796143,
-0.18761247396469116,
1.1652048826217651,
0.9076664447784424,
-0.6537525653839111,
0.8990855813026428,
0.2697798013687134,
0.8418512344360352,
0.9280633926391602,
-0.4076088070869446,
0.5557721853256226,
0.2505247890949249,
-1.4083954095840454,
0.38139787316322327,
1.4690232276916504,
0.1485145092010498,
1.3259481191635132,
-0.3706507384777069,
-0.01669275388121605,
0.4219931960105896,
-0.3248063623905182,
-0.5551451444625854,
-0.6832690834999084,
0.5891004204750061,
-0.11470070481300354,
-0.9952646493911743,
-0.06751011312007904,
0.0398978628218174,
-0.22383388876914978,
0.33280834555625916,
-1.5034573078155518,
-0.13759109377861023,
-0.4261927902698517,
-0.5539251565933228,
-1.4692940711975098,
-0.05172339454293251,
1.3445475101470947,
-0.7786950469017029,
-0.10267610847949982,
0.5650305151939392,
0.25129589438438416,
0.4939511716365814,
0.6638404130935669,
-0.720198392868042,
-0.21639379858970642,
-0.22369889914989471,
-0.43535315990448,
0.3461308777332306,
1.2519309520721436,
-0.11579752713441849,
-0.9597184658050537,
0.48353639245033264,
-0.21904230117797852,
0.17852981388568878,
1.921981692314148,
0.04159493371844292,
-0.9028742909431458,
0.41442281007766724,
-0.6760297417640686,
1.8403798341751099,
1.6486382484436035,
1.2969939708709717,
-0.1312474012374878,
-0.9352561831474304,
0.600883424282074,
-0.3370423913002014,
-0.29802003502845764,
0.9812023639678955,
0.36611688137054443,
-0.2961868345737457,
-1.4496519565582275,
0.7620018720626831,
1.2740874290466309,
-0.6890035271644592,
-0.7785851955413818,
0.03575283661484718,
-0.8355581760406494,
1.267061710357666,
0.6519859433174133,
0.33571407198905945,
0.27674007415771484,
1.639264702796936,
0.7062200307846069,
-0.5989991426467896,
0.5432773232460022,
0.42894500494003296,
-0.14231273531913757,
-2.0135319232940674,
-1.1153804063796997,
0.2770397663116455,
-0.4348110258579254,
-1.4350507259368896,
1.4293242692947388,
-1.249848484992981,
-1.100792646408081,
0.5169438123703003,
0.16972914338111877,
1.2468352317810059,
0.33570796251296997,
1.716518521308899,
2.0393643379211426,
0.8925991058349609,
0.48683232069015503,
1.0962891578674316,
-0.2694542109966278,
-0.23392906785011292,
1.676628589630127,
-0.4674791395664215,
0.6240127682685852,
1.055017113685608,
-0.49633005261421204,
-1.2704805135726929,
-0.8797866702079773,
-1.1588619947433472,
-0.7347769141197205,
1.0290849208831787,
0.12566305696964264,
-1.1014559268951416,
0.4031909108161926,
1.6448341608047485,
0.04030696675181389,
-0.12086895853281021,
0.7789697647094727,
0.3378007709980011,
-0.6508357524871826,
-0.07639411836862564,
-1.0473835468292236,
0.5758737325668335,
-0.2953529357910156,
-0.3659776747226715,
0.21178896725177765,
0.658160924911499,
1.1912533044815063,
0.13497081398963928,
0.13275368511676788,
1.261098027229309,
-1.3983116149902344,
1.1382911205291748,
-0.9959938526153564,
0.36923089623451233,
-2.295332908630371,
1.4502567052841187,
-0.8459189534187317,
1.906611680984497,
-2.7183969020843506,
0.4633689820766449,
-0.4397698640823364,
-0.6340093612670898,
0.166838139295578,
-0.13733026385307312,
0.15641461312770844,
-0.07624122500419617,
-0.986510157585144,
-0.155936136841774,
-0.8591182231903076,
0.49161234498023987,
1.2254694700241089,
1.3554425239562988,
-0.915486216545105,
-0.24566584825515747,
-1.5710725784301758,
-0.1650131493806839,
-0.49269452691078186,
0.13220056891441345,
-1.7651728391647339,
-0.18398164212703705,
-2.0937583446502686,
-2.4616897106170654,
-1.357365608215332,
-1.0167721509933472,
1.3677959442138672,
0.21700124442577362,
-0.9242547154426575,
1.1555219888687134,
-0.46613481640815735,
-1.789891242980957,
1.208068609237671,
-2.1926870346069336
] |
https://github.com/huggingface/datasets/issues/4610 | codeparrot/github-code failing to load | Good catch ! We recently did a breaking change in `get_patterns_in_dataset_repository`, I think we can revert it | ## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2 | 668 | 17 | codeparrot/github-code failing to load
## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Good catch ! We recently did a breaking change in `get_patterns_in_dataset_repository`, I think we can revert it | [
-1.1611977815628052,
-0.851091206073761,
-0.5452695488929749,
1.3688067197799683,
0.00876366626471281,
-1.36588454246521,
0.1514788269996643,
-0.9522942304611206,
1.5589854717254639,
-0.863475501537323,
0.3053831458091736,
-1.746605634689331,
-0.0010000551119446754,
-0.6782383918762207,
-0.6969450116157532,
-0.6758303046226501,
-0.35504040122032166,
-0.7634244561195374,
1.1377356052398682,
2.402327537536621,
1.1769495010375977,
-1.2918647527694702,
2.863217830657959,
0.635192334651947,
-0.2832939922809601,
-0.7947933673858643,
0.3624645471572876,
-0.04392162710428238,
-1.4340533018112183,
-0.32104018330574036,
-0.9846137166023254,
-0.013937622308731079,
-0.6702309250831604,
-0.5088050961494446,
0.045712750405073166,
0.5170338153839111,
-0.17820748686790466,
-0.3522976338863373,
-0.42200523614883423,
-0.7426421642303467,
0.5569978952407837,
-0.2388867735862732,
0.8640202283859253,
-0.2251320630311966,
1.7595101594924927,
-0.6025450825691223,
0.543433666229248,
0.5158212780952454,
1.2147083282470703,
0.19963330030441284,
-0.047367729246616364,
0.3514469265937805,
0.21094338595867157,
0.0048444876447319984,
0.5309943556785583,
1.2931877374649048,
0.6358209848403931,
0.5568368434906006,
0.7055985927581787,
-2.1653807163238525,
1.4043408632278442,
-0.7356946468353271,
0.22000843286514282,
1.3763835430145264,
-1.0722049474716187,
0.4294488728046417,
-1.8804665803909302,
-0.14221766591072083,
0.3265288472175598,
-2.253497838973999,
0.21226204931735992,
-1.2700716257095337,
-0.6061474680900574,
0.9949198961257935,
0.3508222699165344,
-1.2740923166275024,
0.06274081766605377,
-0.46025145053863525,
0.9699844717979431,
0.388263076543808,
1.1038410663604736,
-1.6920435428619385,
0.05033173784613609,
-0.23638580739498138,
0.2930210828781128,
-1.1548213958740234,
-1.680673360824585,
0.6522969603538513,
0.648260772228241,
0.7288581728935242,
-0.24153554439544678,
0.9168302416801453,
-1.134513020515442,
0.8862113356590271,
-0.9743183255195618,
-1.699694037437439,
-1.2506537437438965,
-2.4732627868652344,
-2.4705262184143066,
0.773916482925415,
-0.5197468400001526,
-0.36933958530426025,
2.1527349948883057,
-1.1202671527862549,
-1.7105854749679565,
1.0171579122543335,
0.3891041576862335,
-0.10125380009412766,
2.377898931503296,
0.2737167179584503,
-0.9236670136451721,
0.7190743088722229,
-0.9106131792068481,
0.7183132767677307,
-0.4265894293785095,
1.307586908340454,
0.4609006941318512,
-1.1053146123886108,
1.5816388130187988,
-0.40820392966270447,
0.5545432567596436,
-0.7198746204376221,
-0.42123252153396606,
-0.5695700645446777,
0.20047461986541748,
1.93434476852417,
-0.1752515286207199,
1.494482159614563,
-0.14486195147037506,
-1.443765640258789,
-1.385585069656372,
0.8450739979743958,
0.48562392592430115,
-0.8967658281326294,
0.27595004439353943,
-0.4453093111515045,
0.09386108815670013,
0.13414360582828522,
1.0345370769500732,
1.3270351886749268,
0.7379271984100342,
-0.26671335101127625,
-0.8774941563606262,
0.05158577114343643,
-0.13125550746917725,
-0.515667200088501,
-1.7170100212097168,
-0.23967844247817993,
0.1787848323583603,
0.6107385754585266,
-1.1739598512649536,
1.991334080696106,
0.9068726301193237,
2.0888547897338867,
0.9317257404327393,
-0.41241398453712463,
1.5155736207962036,
0.06420489400625229,
1.862146019935608,
-0.3321509063243866,
0.641685962677002,
-0.5312319993972778,
-1.2301502227783203,
0.7689650058746338,
-0.3583501875400543,
-1.9430416822433472,
-0.4055846333503723,
-0.8686917424201965,
-0.225664883852005,
-0.8858634233474731,
1.0203402042388916,
-0.16988785564899445,
-1.4888919591903687,
0.2091253250837326,
-0.6121195554733276,
0.18715158104896545,
-1.4153887033462524,
0.23936395347118378,
0.7456544637680054,
-0.7443197965621948,
-0.011563219130039215,
-0.388562947511673,
-1.3944731950759888,
-0.6059310436248779,
0.5151119232177734,
1.7384026050567627,
-0.6245744824409485,
1.0387840270996094,
1.0519899129867554,
-0.5808465480804443,
-0.0826985314488411,
0.4732588529586792,
-0.35716792941093445,
0.8473893404006958,
-1.0400876998901367,
-0.41296157240867615,
1.1238503456115723,
-0.34043970704078674,
-0.47408995032310486,
1.305870771408081,
0.7573741674423218,
-1.0191848278045654,
-0.3129705786705017,
-0.0948575958609581,
-0.8632064461708069,
0.037648167461156845,
-1.598399043083191,
-0.05697443336248398,
0.31108760833740234,
-1.415358304977417,
-0.419037789106369,
-0.11838290095329285,
1.3055483102798462,
-0.07074515521526337,
1.3834575414657593,
-0.1557445228099823,
-0.08620624244213104,
-0.5256837606430054,
-0.5851455330848694,
0.1704309582710266,
-0.08411887288093567,
-0.5319223403930664,
0.24755091965198517,
-0.6895180940628052,
0.1914246380329132,
1.504176139831543,
0.14896415174007416,
0.1503830999135971,
0.4689313471317291,
1.2152037620544434,
0.3244205117225647,
-0.1631445437669754,
-0.8387845158576965,
-1.6638236045837402,
1.9937533140182495,
-1.6388838291168213,
1.9380664825439453,
0.8410115242004395,
-0.05187748745083809,
-1.8424880504608154,
-1.7952183485031128,
1.4791337251663208,
1.1486936807632446,
2.526885509490967,
0.5765179991722107,
0.41670334339141846,
-0.8854016065597534,
-0.7127459645271301,
0.4633478820323944,
-0.7353405952453613,
-0.8372697234153748,
0.16969458758831024,
2.33565616607666,
1.715570092201233,
-0.4048916697502136,
-0.21381981670856476,
-0.9277835488319397,
1.3494526147842407,
-0.3251934349536896,
0.2919924855232239,
1.9304159879684448,
-0.4745004177093506,
-0.9983265995979309,
1.3041105270385742,
-2.429487466812134,
0.31768593192100525,
2.0235085487365723,
0.33478420972824097,
0.10961858183145523,
-1.137284278869629,
-0.7023041844367981,
-0.18865197896957397,
-0.5033016800880432,
-1.2283538579940796,
0.43763530254364014,
-0.2486523538827896,
-0.8001439571380615,
-1.4096556901931763,
0.0605313777923584,
-1.1848132610321045,
-1.718407154083252,
0.37197908759117126,
1.7709565162658691,
2.198136806488037,
-0.7818360328674316,
1.3192819356918335,
-0.3221893608570099,
0.28845781087875366,
1.1401714086532593,
1.3111991882324219,
3.1326839923858643,
1.8289991617202759,
-1.2626603841781616,
0.726927638053894,
-0.20721176266670227,
-0.5461043119430542,
1.24288809299469,
-0.9380794167518616,
1.1845029592514038,
-0.26059967279434204,
-1.3459177017211914,
-1.2020294666290283,
0.9279182553291321,
0.4273257255554199,
-0.011791827157139778,
-0.5164701342582703,
1.090728998184204,
0.26269403100013733,
1.2860815525054932,
0.6435111165046692,
-0.33641940355300903,
0.4772889316082001,
-0.33869707584381104,
-0.6204607486724854,
1.5919967889785767,
0.06648533046245575,
-1.581408143043518,
-2.3762292861938477,
-0.22643627226352692,
-1.0441170930862427,
0.011262756772339344,
-0.9058089852333069,
-1.0627225637435913,
1.4409352540969849,
0.49926772713661194,
-0.9417400360107422,
-0.07648835331201553,
-0.3308410048484802,
-0.5145210027694702,
2.540292501449585,
-1.3308695554733276,
-0.2085288017988205,
-0.9033835530281067,
-0.5839871168136597,
1.5582313537597656,
-1.135704517364502,
-0.2860359251499176,
-1.100612998008728,
-0.5048316717147827,
-1.2504851818084717,
-0.3858664631843567,
-0.09530120342969894,
-0.8193186521530151,
0.7098442912101746,
-0.030494697391986847,
-1.3241804838180542,
-0.24699218571186066,
-1.0560187101364136,
0.9639979004859924,
-0.29531189799308777,
0.0611300989985466,
1.6352572441101074,
0.28328290581703186,
-0.4187697768211365,
0.8556715846061707,
1.2755646705627441,
0.6234312653541565,
-0.5658329725265503,
0.15016509592533112,
-0.6550554633140564,
0.5447947978973389,
-1.193398356437683,
0.3554894030094147,
-2.99285888671875,
0.7091729640960693,
0.02894679084420204,
-0.09924045950174332,
-0.15984351933002472,
-1.5464482307434082,
0.9376118779182434,
2.4404032230377197,
-1.154631495475769,
0.6289159059524536,
0.3406694829463959,
1.1869971752166748,
-1.6166503429412842,
-0.04107580706477165,
-0.7208141088485718,
2.088568687438965,
-0.04066554456949234,
1.0643208026885986,
-0.6019155979156494,
-2.380449056625366,
0.4990561902523041,
-1.2451354265213013,
-0.9535080790519714,
0.8468433618545532,
-0.8746622204780579,
0.25927960872650146,
-1.1112761497497559,
-0.09586230665445328,
-0.9196926951408386,
-1.1712327003479004,
0.5558843612670898,
0.037484344094991684,
0.6857653856277466,
-0.660559356212616,
0.31081560254096985,
-2.275109052658081,
-1.3520148992538452,
-0.1343647688627243,
-0.8694583773612976,
0.504667341709137,
-0.43197503685951233,
0.6765853762626648,
-0.06538443267345428,
0.09373217076063156,
0.3082430958747864,
1.5309120416641235,
3.1615867614746094,
-0.02338121458888054,
0.289265900850296,
-0.26453864574432373,
-1.0482275485992432,
1.5578138828277588,
0.9072574973106384,
-0.21440687775611877,
-0.6329219937324524,
-0.9170714020729065,
1.3509576320648193,
1.967649221420288,
1.087760090827942,
0.027245670557022095,
-0.9435643553733826,
-0.7666667103767395,
0.13315489888191223,
0.13436904549598694,
0.42274537682533264,
1.0109272003173828,
0.12369444221258163,
0.18344746530056,
1.3003419637680054,
1.0256839990615845,
-0.3415811061859131,
0.5342761278152466,
-0.8199165463447571,
-0.35239943861961365,
0.48334643244743347,
0.3295716941356659,
0.04048408940434456,
0.3181624114513397,
-1.0534919500350952,
-0.22139307856559753,
-0.27290406823158264,
-0.8100864887237549,
-0.7760083079338074,
-0.38995760679244995,
-0.4906470477581024,
1.758124589920044,
-0.17519228160381317,
-0.5437887907028198,
0.10256282240152359,
-0.7768285274505615,
-0.08187472075223923,
-1.054376244544983,
0.19815129041671753,
-0.09319151937961578,
0.09879599511623383,
-0.11109894514083862,
1.6762713193893433,
-1.0312650203704834,
-2.2560083866119385,
0.09698763489723206,
0.27867087721824646,
-0.34139320254325867,
-0.09836483001708984,
1.8295247554779053,
0.47218993306159973,
1.4280191659927368,
1.5172818899154663,
1.113288164138794,
-0.6746306419372559,
-1.2773436307907104,
0.8222349882125854,
0.8765648007392883,
-1.2907500267028809,
0.9841813445091248,
-0.2051386684179306,
-0.6180486083030701,
0.5835438370704651,
1.2802835702896118,
0.42025354504585266,
-1.9753799438476562,
0.9011847376823425,
-1.179165005683899,
0.9433842301368713,
0.799763023853302,
0.8463877439498901,
0.14484845101833344,
0.8970574140548706,
-1.2246421575546265,
-1.0372498035430908,
-0.5695925354957581,
-0.6203012466430664,
1.8419724702835083,
-0.2643668055534363,
0.29628825187683105,
-0.26744920015335083,
-1.2255173921585083,
0.15427790582180023,
0.789518415927887,
0.3572204113006592,
-0.32906463742256165,
0.6799824833869934,
-0.7007400393486023,
-1.0281611680984497,
-1.2916123867034912,
-0.48436737060546875,
-1.025081753730774,
-0.8869020938873291,
0.9939916133880615,
0.7527018189430237,
0.5687757730484009,
1.9684042930603027,
0.7319097518920898,
0.2344570904970169,
-2.480715036392212,
0.8023009896278381,
0.3491191267967224,
-0.1269858032464981,
0.8915754556655884,
0.343110591173172,
1.316664695739746,
-0.09736756235361099,
0.6274896860122681,
-2.3686723709106445,
2.1951732635498047,
-0.2240126132965088,
0.6811761856079102,
0.035437632352113724,
-0.03686448559165001,
1.0432597398757935,
0.5092666149139404,
0.46094682812690735,
-1.159796118736267,
0.9189459681510925,
-0.517935037612915,
1.1184329986572266,
0.8423366546630859,
-0.9617375135421753,
0.24516485631465912,
1.2399647235870361,
0.363728404045105,
-0.5058873295783997,
-1.034415364265442,
-0.8252852559089661,
0.938511848449707,
1.7239954471588135,
-0.04932700842618942,
0.11458136886358261,
0.7639656066894531,
0.8091575503349304,
-1.295993447303772,
0.024044465273618698,
-0.4878762364387512,
-0.7211205959320068,
1.8065942525863647,
2.0192434787750244,
-0.06341401487588882,
0.04062538966536522,
-0.7411458492279053,
-1.4502294063568115,
0.8901281952857971,
0.12768012285232544,
-0.13736778497695923,
0.762394368648529,
-0.6936531662940979,
1.1635838747024536,
0.7233654856681824,
0.8455812931060791,
0.18535016477108002,
-0.018855828791856766,
0.2889508903026581,
-0.27281928062438965,
-1.1457087993621826,
-0.3659134805202484,
-1.0110360383987427,
-2.650458812713623,
0.3613341152667999,
-0.24057269096374512,
-1.5073559284210205,
0.1492859125137329,
-0.9394926428794861,
0.7352731823921204,
-0.5259467363357544,
-1.2171638011932373,
-1.3449586629867554,
0.3240225613117218,
-0.18218347430229187,
0.8187311291694641,
-1.6086971759796143,
-0.18761247396469116,
1.1652048826217651,
0.9076664447784424,
-0.6537525653839111,
0.8990855813026428,
0.2697798013687134,
0.8418512344360352,
0.9280633926391602,
-0.4076088070869446,
0.5557721853256226,
0.2505247890949249,
-1.4083954095840454,
0.38139787316322327,
1.4690232276916504,
0.1485145092010498,
1.3259481191635132,
-0.3706507384777069,
-0.01669275388121605,
0.4219931960105896,
-0.3248063623905182,
-0.5551451444625854,
-0.6832690834999084,
0.5891004204750061,
-0.11470070481300354,
-0.9952646493911743,
-0.06751011312007904,
0.0398978628218174,
-0.22383388876914978,
0.33280834555625916,
-1.5034573078155518,
-0.13759109377861023,
-0.4261927902698517,
-0.5539251565933228,
-1.4692940711975098,
-0.05172339454293251,
1.3445475101470947,
-0.7786950469017029,
-0.10267610847949982,
0.5650305151939392,
0.25129589438438416,
0.4939511716365814,
0.6638404130935669,
-0.720198392868042,
-0.21639379858970642,
-0.22369889914989471,
-0.43535315990448,
0.3461308777332306,
1.2519309520721436,
-0.11579752713441849,
-0.9597184658050537,
0.48353639245033264,
-0.21904230117797852,
0.17852981388568878,
1.921981692314148,
0.04159493371844292,
-0.9028742909431458,
0.41442281007766724,
-0.6760297417640686,
1.8403798341751099,
1.6486382484436035,
1.2969939708709717,
-0.1312474012374878,
-0.9352561831474304,
0.600883424282074,
-0.3370423913002014,
-0.29802003502845764,
0.9812023639678955,
0.36611688137054443,
-0.2961868345737457,
-1.4496519565582275,
0.7620018720626831,
1.2740874290466309,
-0.6890035271644592,
-0.7785851955413818,
0.03575283661484718,
-0.8355581760406494,
1.267061710357666,
0.6519859433174133,
0.33571407198905945,
0.27674007415771484,
1.639264702796936,
0.7062200307846069,
-0.5989991426467896,
0.5432773232460022,
0.42894500494003296,
-0.14231273531913757,
-2.0135319232940674,
-1.1153804063796997,
0.2770397663116455,
-0.4348110258579254,
-1.4350507259368896,
1.4293242692947388,
-1.249848484992981,
-1.100792646408081,
0.5169438123703003,
0.16972914338111877,
1.2468352317810059,
0.33570796251296997,
1.716518521308899,
2.0393643379211426,
0.8925991058349609,
0.48683232069015503,
1.0962891578674316,
-0.2694542109966278,
-0.23392906785011292,
1.676628589630127,
-0.4674791395664215,
0.6240127682685852,
1.055017113685608,
-0.49633005261421204,
-1.2704805135726929,
-0.8797866702079773,
-1.1588619947433472,
-0.7347769141197205,
1.0290849208831787,
0.12566305696964264,
-1.1014559268951416,
0.4031909108161926,
1.6448341608047485,
0.04030696675181389,
-0.12086895853281021,
0.7789697647094727,
0.3378007709980011,
-0.6508357524871826,
-0.07639411836862564,
-1.0473835468292236,
0.5758737325668335,
-0.2953529357910156,
-0.3659776747226715,
0.21178896725177765,
0.658160924911499,
1.1912533044815063,
0.13497081398963928,
0.13275368511676788,
1.261098027229309,
-1.3983116149902344,
1.1382911205291748,
-0.9959938526153564,
0.36923089623451233,
-2.295332908630371,
1.4502567052841187,
-0.8459189534187317,
1.906611680984497,
-2.7183969020843506,
0.4633689820766449,
-0.4397698640823364,
-0.6340093612670898,
0.166838139295578,
-0.13733026385307312,
0.15641461312770844,
-0.07624122500419617,
-0.986510157585144,
-0.155936136841774,
-0.8591182231903076,
0.49161234498023987,
1.2254694700241089,
1.3554425239562988,
-0.915486216545105,
-0.24566584825515747,
-1.5710725784301758,
-0.1650131493806839,
-0.49269452691078186,
0.13220056891441345,
-1.7651728391647339,
-0.18398164212703705,
-2.0937583446502686,
-2.4616897106170654,
-1.357365608215332,
-1.0167721509933472,
1.3677959442138672,
0.21700124442577362,
-0.9242547154426575,
1.1555219888687134,
-0.46613481640815735,
-1.789891242980957,
1.208068609237671,
-2.1926870346069336
] |
https://github.com/huggingface/datasets/issues/4610 | codeparrot/github-code failing to load | > Good catch ! We recently did a breaking change in `get_patterns_in_dataset_repository`, I think we can revert it
I can't wait for that releasee. Broke my application | ## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2 | 668 | 27 | codeparrot/github-code failing to load
## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
> Good catch ! We recently did a breaking change in `get_patterns_in_dataset_repository`, I think we can revert it
I can't wait for that releasee. Broke my application | [
-1.1611977815628052,
-0.851091206073761,
-0.5452695488929749,
1.3688067197799683,
0.00876366626471281,
-1.36588454246521,
0.1514788269996643,
-0.9522942304611206,
1.5589854717254639,
-0.863475501537323,
0.3053831458091736,
-1.746605634689331,
-0.0010000551119446754,
-0.6782383918762207,
-0.6969450116157532,
-0.6758303046226501,
-0.35504040122032166,
-0.7634244561195374,
1.1377356052398682,
2.402327537536621,
1.1769495010375977,
-1.2918647527694702,
2.863217830657959,
0.635192334651947,
-0.2832939922809601,
-0.7947933673858643,
0.3624645471572876,
-0.04392162710428238,
-1.4340533018112183,
-0.32104018330574036,
-0.9846137166023254,
-0.013937622308731079,
-0.6702309250831604,
-0.5088050961494446,
0.045712750405073166,
0.5170338153839111,
-0.17820748686790466,
-0.3522976338863373,
-0.42200523614883423,
-0.7426421642303467,
0.5569978952407837,
-0.2388867735862732,
0.8640202283859253,
-0.2251320630311966,
1.7595101594924927,
-0.6025450825691223,
0.543433666229248,
0.5158212780952454,
1.2147083282470703,
0.19963330030441284,
-0.047367729246616364,
0.3514469265937805,
0.21094338595867157,
0.0048444876447319984,
0.5309943556785583,
1.2931877374649048,
0.6358209848403931,
0.5568368434906006,
0.7055985927581787,
-2.1653807163238525,
1.4043408632278442,
-0.7356946468353271,
0.22000843286514282,
1.3763835430145264,
-1.0722049474716187,
0.4294488728046417,
-1.8804665803909302,
-0.14221766591072083,
0.3265288472175598,
-2.253497838973999,
0.21226204931735992,
-1.2700716257095337,
-0.6061474680900574,
0.9949198961257935,
0.3508222699165344,
-1.2740923166275024,
0.06274081766605377,
-0.46025145053863525,
0.9699844717979431,
0.388263076543808,
1.1038410663604736,
-1.6920435428619385,
0.05033173784613609,
-0.23638580739498138,
0.2930210828781128,
-1.1548213958740234,
-1.680673360824585,
0.6522969603538513,
0.648260772228241,
0.7288581728935242,
-0.24153554439544678,
0.9168302416801453,
-1.134513020515442,
0.8862113356590271,
-0.9743183255195618,
-1.699694037437439,
-1.2506537437438965,
-2.4732627868652344,
-2.4705262184143066,
0.773916482925415,
-0.5197468400001526,
-0.36933958530426025,
2.1527349948883057,
-1.1202671527862549,
-1.7105854749679565,
1.0171579122543335,
0.3891041576862335,
-0.10125380009412766,
2.377898931503296,
0.2737167179584503,
-0.9236670136451721,
0.7190743088722229,
-0.9106131792068481,
0.7183132767677307,
-0.4265894293785095,
1.307586908340454,
0.4609006941318512,
-1.1053146123886108,
1.5816388130187988,
-0.40820392966270447,
0.5545432567596436,
-0.7198746204376221,
-0.42123252153396606,
-0.5695700645446777,
0.20047461986541748,
1.93434476852417,
-0.1752515286207199,
1.494482159614563,
-0.14486195147037506,
-1.443765640258789,
-1.385585069656372,
0.8450739979743958,
0.48562392592430115,
-0.8967658281326294,
0.27595004439353943,
-0.4453093111515045,
0.09386108815670013,
0.13414360582828522,
1.0345370769500732,
1.3270351886749268,
0.7379271984100342,
-0.26671335101127625,
-0.8774941563606262,
0.05158577114343643,
-0.13125550746917725,
-0.515667200088501,
-1.7170100212097168,
-0.23967844247817993,
0.1787848323583603,
0.6107385754585266,
-1.1739598512649536,
1.991334080696106,
0.9068726301193237,
2.0888547897338867,
0.9317257404327393,
-0.41241398453712463,
1.5155736207962036,
0.06420489400625229,
1.862146019935608,
-0.3321509063243866,
0.641685962677002,
-0.5312319993972778,
-1.2301502227783203,
0.7689650058746338,
-0.3583501875400543,
-1.9430416822433472,
-0.4055846333503723,
-0.8686917424201965,
-0.225664883852005,
-0.8858634233474731,
1.0203402042388916,
-0.16988785564899445,
-1.4888919591903687,
0.2091253250837326,
-0.6121195554733276,
0.18715158104896545,
-1.4153887033462524,
0.23936395347118378,
0.7456544637680054,
-0.7443197965621948,
-0.011563219130039215,
-0.388562947511673,
-1.3944731950759888,
-0.6059310436248779,
0.5151119232177734,
1.7384026050567627,
-0.6245744824409485,
1.0387840270996094,
1.0519899129867554,
-0.5808465480804443,
-0.0826985314488411,
0.4732588529586792,
-0.35716792941093445,
0.8473893404006958,
-1.0400876998901367,
-0.41296157240867615,
1.1238503456115723,
-0.34043970704078674,
-0.47408995032310486,
1.305870771408081,
0.7573741674423218,
-1.0191848278045654,
-0.3129705786705017,
-0.0948575958609581,
-0.8632064461708069,
0.037648167461156845,
-1.598399043083191,
-0.05697443336248398,
0.31108760833740234,
-1.415358304977417,
-0.419037789106369,
-0.11838290095329285,
1.3055483102798462,
-0.07074515521526337,
1.3834575414657593,
-0.1557445228099823,
-0.08620624244213104,
-0.5256837606430054,
-0.5851455330848694,
0.1704309582710266,
-0.08411887288093567,
-0.5319223403930664,
0.24755091965198517,
-0.6895180940628052,
0.1914246380329132,
1.504176139831543,
0.14896415174007416,
0.1503830999135971,
0.4689313471317291,
1.2152037620544434,
0.3244205117225647,
-0.1631445437669754,
-0.8387845158576965,
-1.6638236045837402,
1.9937533140182495,
-1.6388838291168213,
1.9380664825439453,
0.8410115242004395,
-0.05187748745083809,
-1.8424880504608154,
-1.7952183485031128,
1.4791337251663208,
1.1486936807632446,
2.526885509490967,
0.5765179991722107,
0.41670334339141846,
-0.8854016065597534,
-0.7127459645271301,
0.4633478820323944,
-0.7353405952453613,
-0.8372697234153748,
0.16969458758831024,
2.33565616607666,
1.715570092201233,
-0.4048916697502136,
-0.21381981670856476,
-0.9277835488319397,
1.3494526147842407,
-0.3251934349536896,
0.2919924855232239,
1.9304159879684448,
-0.4745004177093506,
-0.9983265995979309,
1.3041105270385742,
-2.429487466812134,
0.31768593192100525,
2.0235085487365723,
0.33478420972824097,
0.10961858183145523,
-1.137284278869629,
-0.7023041844367981,
-0.18865197896957397,
-0.5033016800880432,
-1.2283538579940796,
0.43763530254364014,
-0.2486523538827896,
-0.8001439571380615,
-1.4096556901931763,
0.0605313777923584,
-1.1848132610321045,
-1.718407154083252,
0.37197908759117126,
1.7709565162658691,
2.198136806488037,
-0.7818360328674316,
1.3192819356918335,
-0.3221893608570099,
0.28845781087875366,
1.1401714086532593,
1.3111991882324219,
3.1326839923858643,
1.8289991617202759,
-1.2626603841781616,
0.726927638053894,
-0.20721176266670227,
-0.5461043119430542,
1.24288809299469,
-0.9380794167518616,
1.1845029592514038,
-0.26059967279434204,
-1.3459177017211914,
-1.2020294666290283,
0.9279182553291321,
0.4273257255554199,
-0.011791827157139778,
-0.5164701342582703,
1.090728998184204,
0.26269403100013733,
1.2860815525054932,
0.6435111165046692,
-0.33641940355300903,
0.4772889316082001,
-0.33869707584381104,
-0.6204607486724854,
1.5919967889785767,
0.06648533046245575,
-1.581408143043518,
-2.3762292861938477,
-0.22643627226352692,
-1.0441170930862427,
0.011262756772339344,
-0.9058089852333069,
-1.0627225637435913,
1.4409352540969849,
0.49926772713661194,
-0.9417400360107422,
-0.07648835331201553,
-0.3308410048484802,
-0.5145210027694702,
2.540292501449585,
-1.3308695554733276,
-0.2085288017988205,
-0.9033835530281067,
-0.5839871168136597,
1.5582313537597656,
-1.135704517364502,
-0.2860359251499176,
-1.100612998008728,
-0.5048316717147827,
-1.2504851818084717,
-0.3858664631843567,
-0.09530120342969894,
-0.8193186521530151,
0.7098442912101746,
-0.030494697391986847,
-1.3241804838180542,
-0.24699218571186066,
-1.0560187101364136,
0.9639979004859924,
-0.29531189799308777,
0.0611300989985466,
1.6352572441101074,
0.28328290581703186,
-0.4187697768211365,
0.8556715846061707,
1.2755646705627441,
0.6234312653541565,
-0.5658329725265503,
0.15016509592533112,
-0.6550554633140564,
0.5447947978973389,
-1.193398356437683,
0.3554894030094147,
-2.99285888671875,
0.7091729640960693,
0.02894679084420204,
-0.09924045950174332,
-0.15984351933002472,
-1.5464482307434082,
0.9376118779182434,
2.4404032230377197,
-1.154631495475769,
0.6289159059524536,
0.3406694829463959,
1.1869971752166748,
-1.6166503429412842,
-0.04107580706477165,
-0.7208141088485718,
2.088568687438965,
-0.04066554456949234,
1.0643208026885986,
-0.6019155979156494,
-2.380449056625366,
0.4990561902523041,
-1.2451354265213013,
-0.9535080790519714,
0.8468433618545532,
-0.8746622204780579,
0.25927960872650146,
-1.1112761497497559,
-0.09586230665445328,
-0.9196926951408386,
-1.1712327003479004,
0.5558843612670898,
0.037484344094991684,
0.6857653856277466,
-0.660559356212616,
0.31081560254096985,
-2.275109052658081,
-1.3520148992538452,
-0.1343647688627243,
-0.8694583773612976,
0.504667341709137,
-0.43197503685951233,
0.6765853762626648,
-0.06538443267345428,
0.09373217076063156,
0.3082430958747864,
1.5309120416641235,
3.1615867614746094,
-0.02338121458888054,
0.289265900850296,
-0.26453864574432373,
-1.0482275485992432,
1.5578138828277588,
0.9072574973106384,
-0.21440687775611877,
-0.6329219937324524,
-0.9170714020729065,
1.3509576320648193,
1.967649221420288,
1.087760090827942,
0.027245670557022095,
-0.9435643553733826,
-0.7666667103767395,
0.13315489888191223,
0.13436904549598694,
0.42274537682533264,
1.0109272003173828,
0.12369444221258163,
0.18344746530056,
1.3003419637680054,
1.0256839990615845,
-0.3415811061859131,
0.5342761278152466,
-0.8199165463447571,
-0.35239943861961365,
0.48334643244743347,
0.3295716941356659,
0.04048408940434456,
0.3181624114513397,
-1.0534919500350952,
-0.22139307856559753,
-0.27290406823158264,
-0.8100864887237549,
-0.7760083079338074,
-0.38995760679244995,
-0.4906470477581024,
1.758124589920044,
-0.17519228160381317,
-0.5437887907028198,
0.10256282240152359,
-0.7768285274505615,
-0.08187472075223923,
-1.054376244544983,
0.19815129041671753,
-0.09319151937961578,
0.09879599511623383,
-0.11109894514083862,
1.6762713193893433,
-1.0312650203704834,
-2.2560083866119385,
0.09698763489723206,
0.27867087721824646,
-0.34139320254325867,
-0.09836483001708984,
1.8295247554779053,
0.47218993306159973,
1.4280191659927368,
1.5172818899154663,
1.113288164138794,
-0.6746306419372559,
-1.2773436307907104,
0.8222349882125854,
0.8765648007392883,
-1.2907500267028809,
0.9841813445091248,
-0.2051386684179306,
-0.6180486083030701,
0.5835438370704651,
1.2802835702896118,
0.42025354504585266,
-1.9753799438476562,
0.9011847376823425,
-1.179165005683899,
0.9433842301368713,
0.799763023853302,
0.8463877439498901,
0.14484845101833344,
0.8970574140548706,
-1.2246421575546265,
-1.0372498035430908,
-0.5695925354957581,
-0.6203012466430664,
1.8419724702835083,
-0.2643668055534363,
0.29628825187683105,
-0.26744920015335083,
-1.2255173921585083,
0.15427790582180023,
0.789518415927887,
0.3572204113006592,
-0.32906463742256165,
0.6799824833869934,
-0.7007400393486023,
-1.0281611680984497,
-1.2916123867034912,
-0.48436737060546875,
-1.025081753730774,
-0.8869020938873291,
0.9939916133880615,
0.7527018189430237,
0.5687757730484009,
1.9684042930603027,
0.7319097518920898,
0.2344570904970169,
-2.480715036392212,
0.8023009896278381,
0.3491191267967224,
-0.1269858032464981,
0.8915754556655884,
0.343110591173172,
1.316664695739746,
-0.09736756235361099,
0.6274896860122681,
-2.3686723709106445,
2.1951732635498047,
-0.2240126132965088,
0.6811761856079102,
0.035437632352113724,
-0.03686448559165001,
1.0432597398757935,
0.5092666149139404,
0.46094682812690735,
-1.159796118736267,
0.9189459681510925,
-0.517935037612915,
1.1184329986572266,
0.8423366546630859,
-0.9617375135421753,
0.24516485631465912,
1.2399647235870361,
0.363728404045105,
-0.5058873295783997,
-1.034415364265442,
-0.8252852559089661,
0.938511848449707,
1.7239954471588135,
-0.04932700842618942,
0.11458136886358261,
0.7639656066894531,
0.8091575503349304,
-1.295993447303772,
0.024044465273618698,
-0.4878762364387512,
-0.7211205959320068,
1.8065942525863647,
2.0192434787750244,
-0.06341401487588882,
0.04062538966536522,
-0.7411458492279053,
-1.4502294063568115,
0.8901281952857971,
0.12768012285232544,
-0.13736778497695923,
0.762394368648529,
-0.6936531662940979,
1.1635838747024536,
0.7233654856681824,
0.8455812931060791,
0.18535016477108002,
-0.018855828791856766,
0.2889508903026581,
-0.27281928062438965,
-1.1457087993621826,
-0.3659134805202484,
-1.0110360383987427,
-2.650458812713623,
0.3613341152667999,
-0.24057269096374512,
-1.5073559284210205,
0.1492859125137329,
-0.9394926428794861,
0.7352731823921204,
-0.5259467363357544,
-1.2171638011932373,
-1.3449586629867554,
0.3240225613117218,
-0.18218347430229187,
0.8187311291694641,
-1.6086971759796143,
-0.18761247396469116,
1.1652048826217651,
0.9076664447784424,
-0.6537525653839111,
0.8990855813026428,
0.2697798013687134,
0.8418512344360352,
0.9280633926391602,
-0.4076088070869446,
0.5557721853256226,
0.2505247890949249,
-1.4083954095840454,
0.38139787316322327,
1.4690232276916504,
0.1485145092010498,
1.3259481191635132,
-0.3706507384777069,
-0.01669275388121605,
0.4219931960105896,
-0.3248063623905182,
-0.5551451444625854,
-0.6832690834999084,
0.5891004204750061,
-0.11470070481300354,
-0.9952646493911743,
-0.06751011312007904,
0.0398978628218174,
-0.22383388876914978,
0.33280834555625916,
-1.5034573078155518,
-0.13759109377861023,
-0.4261927902698517,
-0.5539251565933228,
-1.4692940711975098,
-0.05172339454293251,
1.3445475101470947,
-0.7786950469017029,
-0.10267610847949982,
0.5650305151939392,
0.25129589438438416,
0.4939511716365814,
0.6638404130935669,
-0.720198392868042,
-0.21639379858970642,
-0.22369889914989471,
-0.43535315990448,
0.3461308777332306,
1.2519309520721436,
-0.11579752713441849,
-0.9597184658050537,
0.48353639245033264,
-0.21904230117797852,
0.17852981388568878,
1.921981692314148,
0.04159493371844292,
-0.9028742909431458,
0.41442281007766724,
-0.6760297417640686,
1.8403798341751099,
1.6486382484436035,
1.2969939708709717,
-0.1312474012374878,
-0.9352561831474304,
0.600883424282074,
-0.3370423913002014,
-0.29802003502845764,
0.9812023639678955,
0.36611688137054443,
-0.2961868345737457,
-1.4496519565582275,
0.7620018720626831,
1.2740874290466309,
-0.6890035271644592,
-0.7785851955413818,
0.03575283661484718,
-0.8355581760406494,
1.267061710357666,
0.6519859433174133,
0.33571407198905945,
0.27674007415771484,
1.639264702796936,
0.7062200307846069,
-0.5989991426467896,
0.5432773232460022,
0.42894500494003296,
-0.14231273531913757,
-2.0135319232940674,
-1.1153804063796997,
0.2770397663116455,
-0.4348110258579254,
-1.4350507259368896,
1.4293242692947388,
-1.249848484992981,
-1.100792646408081,
0.5169438123703003,
0.16972914338111877,
1.2468352317810059,
0.33570796251296997,
1.716518521308899,
2.0393643379211426,
0.8925991058349609,
0.48683232069015503,
1.0962891578674316,
-0.2694542109966278,
-0.23392906785011292,
1.676628589630127,
-0.4674791395664215,
0.6240127682685852,
1.055017113685608,
-0.49633005261421204,
-1.2704805135726929,
-0.8797866702079773,
-1.1588619947433472,
-0.7347769141197205,
1.0290849208831787,
0.12566305696964264,
-1.1014559268951416,
0.4031909108161926,
1.6448341608047485,
0.04030696675181389,
-0.12086895853281021,
0.7789697647094727,
0.3378007709980011,
-0.6508357524871826,
-0.07639411836862564,
-1.0473835468292236,
0.5758737325668335,
-0.2953529357910156,
-0.3659776747226715,
0.21178896725177765,
0.658160924911499,
1.1912533044815063,
0.13497081398963928,
0.13275368511676788,
1.261098027229309,
-1.3983116149902344,
1.1382911205291748,
-0.9959938526153564,
0.36923089623451233,
-2.295332908630371,
1.4502567052841187,
-0.8459189534187317,
1.906611680984497,
-2.7183969020843506,
0.4633689820766449,
-0.4397698640823364,
-0.6340093612670898,
0.166838139295578,
-0.13733026385307312,
0.15641461312770844,
-0.07624122500419617,
-0.986510157585144,
-0.155936136841774,
-0.8591182231903076,
0.49161234498023987,
1.2254694700241089,
1.3554425239562988,
-0.915486216545105,
-0.24566584825515747,
-1.5710725784301758,
-0.1650131493806839,
-0.49269452691078186,
0.13220056891441345,
-1.7651728391647339,
-0.18398164212703705,
-2.0937583446502686,
-2.4616897106170654,
-1.357365608215332,
-1.0167721509933472,
1.3677959442138672,
0.21700124442577362,
-0.9242547154426575,
1.1555219888687134,
-0.46613481640815735,
-1.789891242980957,
1.208068609237671,
-2.1926870346069336
] |
https://github.com/huggingface/datasets/issues/4610 | codeparrot/github-code failing to load | This simple workaround should fix: https://huggingface.co/datasets/codeparrot/github-code/discussions/2
`get_patterns_in_dataset_repository` can treat whether `base_path=None`, so we just need to make sure that codeparrot/github-code `_split_generators` calls with such an argument. | ## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2 | 668 | 26 | codeparrot/github-code failing to load
## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
This simple workaround should fix: https://huggingface.co/datasets/codeparrot/github-code/discussions/2
`get_patterns_in_dataset_repository` can treat whether `base_path=None`, so we just need to make sure that codeparrot/github-code `_split_generators` calls with such an argument. | [
-1.1611977815628052,
-0.851091206073761,
-0.5452695488929749,
1.3688067197799683,
0.00876366626471281,
-1.36588454246521,
0.1514788269996643,
-0.9522942304611206,
1.5589854717254639,
-0.863475501537323,
0.3053831458091736,
-1.746605634689331,
-0.0010000551119446754,
-0.6782383918762207,
-0.6969450116157532,
-0.6758303046226501,
-0.35504040122032166,
-0.7634244561195374,
1.1377356052398682,
2.402327537536621,
1.1769495010375977,
-1.2918647527694702,
2.863217830657959,
0.635192334651947,
-0.2832939922809601,
-0.7947933673858643,
0.3624645471572876,
-0.04392162710428238,
-1.4340533018112183,
-0.32104018330574036,
-0.9846137166023254,
-0.013937622308731079,
-0.6702309250831604,
-0.5088050961494446,
0.045712750405073166,
0.5170338153839111,
-0.17820748686790466,
-0.3522976338863373,
-0.42200523614883423,
-0.7426421642303467,
0.5569978952407837,
-0.2388867735862732,
0.8640202283859253,
-0.2251320630311966,
1.7595101594924927,
-0.6025450825691223,
0.543433666229248,
0.5158212780952454,
1.2147083282470703,
0.19963330030441284,
-0.047367729246616364,
0.3514469265937805,
0.21094338595867157,
0.0048444876447319984,
0.5309943556785583,
1.2931877374649048,
0.6358209848403931,
0.5568368434906006,
0.7055985927581787,
-2.1653807163238525,
1.4043408632278442,
-0.7356946468353271,
0.22000843286514282,
1.3763835430145264,
-1.0722049474716187,
0.4294488728046417,
-1.8804665803909302,
-0.14221766591072083,
0.3265288472175598,
-2.253497838973999,
0.21226204931735992,
-1.2700716257095337,
-0.6061474680900574,
0.9949198961257935,
0.3508222699165344,
-1.2740923166275024,
0.06274081766605377,
-0.46025145053863525,
0.9699844717979431,
0.388263076543808,
1.1038410663604736,
-1.6920435428619385,
0.05033173784613609,
-0.23638580739498138,
0.2930210828781128,
-1.1548213958740234,
-1.680673360824585,
0.6522969603538513,
0.648260772228241,
0.7288581728935242,
-0.24153554439544678,
0.9168302416801453,
-1.134513020515442,
0.8862113356590271,
-0.9743183255195618,
-1.699694037437439,
-1.2506537437438965,
-2.4732627868652344,
-2.4705262184143066,
0.773916482925415,
-0.5197468400001526,
-0.36933958530426025,
2.1527349948883057,
-1.1202671527862549,
-1.7105854749679565,
1.0171579122543335,
0.3891041576862335,
-0.10125380009412766,
2.377898931503296,
0.2737167179584503,
-0.9236670136451721,
0.7190743088722229,
-0.9106131792068481,
0.7183132767677307,
-0.4265894293785095,
1.307586908340454,
0.4609006941318512,
-1.1053146123886108,
1.5816388130187988,
-0.40820392966270447,
0.5545432567596436,
-0.7198746204376221,
-0.42123252153396606,
-0.5695700645446777,
0.20047461986541748,
1.93434476852417,
-0.1752515286207199,
1.494482159614563,
-0.14486195147037506,
-1.443765640258789,
-1.385585069656372,
0.8450739979743958,
0.48562392592430115,
-0.8967658281326294,
0.27595004439353943,
-0.4453093111515045,
0.09386108815670013,
0.13414360582828522,
1.0345370769500732,
1.3270351886749268,
0.7379271984100342,
-0.26671335101127625,
-0.8774941563606262,
0.05158577114343643,
-0.13125550746917725,
-0.515667200088501,
-1.7170100212097168,
-0.23967844247817993,
0.1787848323583603,
0.6107385754585266,
-1.1739598512649536,
1.991334080696106,
0.9068726301193237,
2.0888547897338867,
0.9317257404327393,
-0.41241398453712463,
1.5155736207962036,
0.06420489400625229,
1.862146019935608,
-0.3321509063243866,
0.641685962677002,
-0.5312319993972778,
-1.2301502227783203,
0.7689650058746338,
-0.3583501875400543,
-1.9430416822433472,
-0.4055846333503723,
-0.8686917424201965,
-0.225664883852005,
-0.8858634233474731,
1.0203402042388916,
-0.16988785564899445,
-1.4888919591903687,
0.2091253250837326,
-0.6121195554733276,
0.18715158104896545,
-1.4153887033462524,
0.23936395347118378,
0.7456544637680054,
-0.7443197965621948,
-0.011563219130039215,
-0.388562947511673,
-1.3944731950759888,
-0.6059310436248779,
0.5151119232177734,
1.7384026050567627,
-0.6245744824409485,
1.0387840270996094,
1.0519899129867554,
-0.5808465480804443,
-0.0826985314488411,
0.4732588529586792,
-0.35716792941093445,
0.8473893404006958,
-1.0400876998901367,
-0.41296157240867615,
1.1238503456115723,
-0.34043970704078674,
-0.47408995032310486,
1.305870771408081,
0.7573741674423218,
-1.0191848278045654,
-0.3129705786705017,
-0.0948575958609581,
-0.8632064461708069,
0.037648167461156845,
-1.598399043083191,
-0.05697443336248398,
0.31108760833740234,
-1.415358304977417,
-0.419037789106369,
-0.11838290095329285,
1.3055483102798462,
-0.07074515521526337,
1.3834575414657593,
-0.1557445228099823,
-0.08620624244213104,
-0.5256837606430054,
-0.5851455330848694,
0.1704309582710266,
-0.08411887288093567,
-0.5319223403930664,
0.24755091965198517,
-0.6895180940628052,
0.1914246380329132,
1.504176139831543,
0.14896415174007416,
0.1503830999135971,
0.4689313471317291,
1.2152037620544434,
0.3244205117225647,
-0.1631445437669754,
-0.8387845158576965,
-1.6638236045837402,
1.9937533140182495,
-1.6388838291168213,
1.9380664825439453,
0.8410115242004395,
-0.05187748745083809,
-1.8424880504608154,
-1.7952183485031128,
1.4791337251663208,
1.1486936807632446,
2.526885509490967,
0.5765179991722107,
0.41670334339141846,
-0.8854016065597534,
-0.7127459645271301,
0.4633478820323944,
-0.7353405952453613,
-0.8372697234153748,
0.16969458758831024,
2.33565616607666,
1.715570092201233,
-0.4048916697502136,
-0.21381981670856476,
-0.9277835488319397,
1.3494526147842407,
-0.3251934349536896,
0.2919924855232239,
1.9304159879684448,
-0.4745004177093506,
-0.9983265995979309,
1.3041105270385742,
-2.429487466812134,
0.31768593192100525,
2.0235085487365723,
0.33478420972824097,
0.10961858183145523,
-1.137284278869629,
-0.7023041844367981,
-0.18865197896957397,
-0.5033016800880432,
-1.2283538579940796,
0.43763530254364014,
-0.2486523538827896,
-0.8001439571380615,
-1.4096556901931763,
0.0605313777923584,
-1.1848132610321045,
-1.718407154083252,
0.37197908759117126,
1.7709565162658691,
2.198136806488037,
-0.7818360328674316,
1.3192819356918335,
-0.3221893608570099,
0.28845781087875366,
1.1401714086532593,
1.3111991882324219,
3.1326839923858643,
1.8289991617202759,
-1.2626603841781616,
0.726927638053894,
-0.20721176266670227,
-0.5461043119430542,
1.24288809299469,
-0.9380794167518616,
1.1845029592514038,
-0.26059967279434204,
-1.3459177017211914,
-1.2020294666290283,
0.9279182553291321,
0.4273257255554199,
-0.011791827157139778,
-0.5164701342582703,
1.090728998184204,
0.26269403100013733,
1.2860815525054932,
0.6435111165046692,
-0.33641940355300903,
0.4772889316082001,
-0.33869707584381104,
-0.6204607486724854,
1.5919967889785767,
0.06648533046245575,
-1.581408143043518,
-2.3762292861938477,
-0.22643627226352692,
-1.0441170930862427,
0.011262756772339344,
-0.9058089852333069,
-1.0627225637435913,
1.4409352540969849,
0.49926772713661194,
-0.9417400360107422,
-0.07648835331201553,
-0.3308410048484802,
-0.5145210027694702,
2.540292501449585,
-1.3308695554733276,
-0.2085288017988205,
-0.9033835530281067,
-0.5839871168136597,
1.5582313537597656,
-1.135704517364502,
-0.2860359251499176,
-1.100612998008728,
-0.5048316717147827,
-1.2504851818084717,
-0.3858664631843567,
-0.09530120342969894,
-0.8193186521530151,
0.7098442912101746,
-0.030494697391986847,
-1.3241804838180542,
-0.24699218571186066,
-1.0560187101364136,
0.9639979004859924,
-0.29531189799308777,
0.0611300989985466,
1.6352572441101074,
0.28328290581703186,
-0.4187697768211365,
0.8556715846061707,
1.2755646705627441,
0.6234312653541565,
-0.5658329725265503,
0.15016509592533112,
-0.6550554633140564,
0.5447947978973389,
-1.193398356437683,
0.3554894030094147,
-2.99285888671875,
0.7091729640960693,
0.02894679084420204,
-0.09924045950174332,
-0.15984351933002472,
-1.5464482307434082,
0.9376118779182434,
2.4404032230377197,
-1.154631495475769,
0.6289159059524536,
0.3406694829463959,
1.1869971752166748,
-1.6166503429412842,
-0.04107580706477165,
-0.7208141088485718,
2.088568687438965,
-0.04066554456949234,
1.0643208026885986,
-0.6019155979156494,
-2.380449056625366,
0.4990561902523041,
-1.2451354265213013,
-0.9535080790519714,
0.8468433618545532,
-0.8746622204780579,
0.25927960872650146,
-1.1112761497497559,
-0.09586230665445328,
-0.9196926951408386,
-1.1712327003479004,
0.5558843612670898,
0.037484344094991684,
0.6857653856277466,
-0.660559356212616,
0.31081560254096985,
-2.275109052658081,
-1.3520148992538452,
-0.1343647688627243,
-0.8694583773612976,
0.504667341709137,
-0.43197503685951233,
0.6765853762626648,
-0.06538443267345428,
0.09373217076063156,
0.3082430958747864,
1.5309120416641235,
3.1615867614746094,
-0.02338121458888054,
0.289265900850296,
-0.26453864574432373,
-1.0482275485992432,
1.5578138828277588,
0.9072574973106384,
-0.21440687775611877,
-0.6329219937324524,
-0.9170714020729065,
1.3509576320648193,
1.967649221420288,
1.087760090827942,
0.027245670557022095,
-0.9435643553733826,
-0.7666667103767395,
0.13315489888191223,
0.13436904549598694,
0.42274537682533264,
1.0109272003173828,
0.12369444221258163,
0.18344746530056,
1.3003419637680054,
1.0256839990615845,
-0.3415811061859131,
0.5342761278152466,
-0.8199165463447571,
-0.35239943861961365,
0.48334643244743347,
0.3295716941356659,
0.04048408940434456,
0.3181624114513397,
-1.0534919500350952,
-0.22139307856559753,
-0.27290406823158264,
-0.8100864887237549,
-0.7760083079338074,
-0.38995760679244995,
-0.4906470477581024,
1.758124589920044,
-0.17519228160381317,
-0.5437887907028198,
0.10256282240152359,
-0.7768285274505615,
-0.08187472075223923,
-1.054376244544983,
0.19815129041671753,
-0.09319151937961578,
0.09879599511623383,
-0.11109894514083862,
1.6762713193893433,
-1.0312650203704834,
-2.2560083866119385,
0.09698763489723206,
0.27867087721824646,
-0.34139320254325867,
-0.09836483001708984,
1.8295247554779053,
0.47218993306159973,
1.4280191659927368,
1.5172818899154663,
1.113288164138794,
-0.6746306419372559,
-1.2773436307907104,
0.8222349882125854,
0.8765648007392883,
-1.2907500267028809,
0.9841813445091248,
-0.2051386684179306,
-0.6180486083030701,
0.5835438370704651,
1.2802835702896118,
0.42025354504585266,
-1.9753799438476562,
0.9011847376823425,
-1.179165005683899,
0.9433842301368713,
0.799763023853302,
0.8463877439498901,
0.14484845101833344,
0.8970574140548706,
-1.2246421575546265,
-1.0372498035430908,
-0.5695925354957581,
-0.6203012466430664,
1.8419724702835083,
-0.2643668055534363,
0.29628825187683105,
-0.26744920015335083,
-1.2255173921585083,
0.15427790582180023,
0.789518415927887,
0.3572204113006592,
-0.32906463742256165,
0.6799824833869934,
-0.7007400393486023,
-1.0281611680984497,
-1.2916123867034912,
-0.48436737060546875,
-1.025081753730774,
-0.8869020938873291,
0.9939916133880615,
0.7527018189430237,
0.5687757730484009,
1.9684042930603027,
0.7319097518920898,
0.2344570904970169,
-2.480715036392212,
0.8023009896278381,
0.3491191267967224,
-0.1269858032464981,
0.8915754556655884,
0.343110591173172,
1.316664695739746,
-0.09736756235361099,
0.6274896860122681,
-2.3686723709106445,
2.1951732635498047,
-0.2240126132965088,
0.6811761856079102,
0.035437632352113724,
-0.03686448559165001,
1.0432597398757935,
0.5092666149139404,
0.46094682812690735,
-1.159796118736267,
0.9189459681510925,
-0.517935037612915,
1.1184329986572266,
0.8423366546630859,
-0.9617375135421753,
0.24516485631465912,
1.2399647235870361,
0.363728404045105,
-0.5058873295783997,
-1.034415364265442,
-0.8252852559089661,
0.938511848449707,
1.7239954471588135,
-0.04932700842618942,
0.11458136886358261,
0.7639656066894531,
0.8091575503349304,
-1.295993447303772,
0.024044465273618698,
-0.4878762364387512,
-0.7211205959320068,
1.8065942525863647,
2.0192434787750244,
-0.06341401487588882,
0.04062538966536522,
-0.7411458492279053,
-1.4502294063568115,
0.8901281952857971,
0.12768012285232544,
-0.13736778497695923,
0.762394368648529,
-0.6936531662940979,
1.1635838747024536,
0.7233654856681824,
0.8455812931060791,
0.18535016477108002,
-0.018855828791856766,
0.2889508903026581,
-0.27281928062438965,
-1.1457087993621826,
-0.3659134805202484,
-1.0110360383987427,
-2.650458812713623,
0.3613341152667999,
-0.24057269096374512,
-1.5073559284210205,
0.1492859125137329,
-0.9394926428794861,
0.7352731823921204,
-0.5259467363357544,
-1.2171638011932373,
-1.3449586629867554,
0.3240225613117218,
-0.18218347430229187,
0.8187311291694641,
-1.6086971759796143,
-0.18761247396469116,
1.1652048826217651,
0.9076664447784424,
-0.6537525653839111,
0.8990855813026428,
0.2697798013687134,
0.8418512344360352,
0.9280633926391602,
-0.4076088070869446,
0.5557721853256226,
0.2505247890949249,
-1.4083954095840454,
0.38139787316322327,
1.4690232276916504,
0.1485145092010498,
1.3259481191635132,
-0.3706507384777069,
-0.01669275388121605,
0.4219931960105896,
-0.3248063623905182,
-0.5551451444625854,
-0.6832690834999084,
0.5891004204750061,
-0.11470070481300354,
-0.9952646493911743,
-0.06751011312007904,
0.0398978628218174,
-0.22383388876914978,
0.33280834555625916,
-1.5034573078155518,
-0.13759109377861023,
-0.4261927902698517,
-0.5539251565933228,
-1.4692940711975098,
-0.05172339454293251,
1.3445475101470947,
-0.7786950469017029,
-0.10267610847949982,
0.5650305151939392,
0.25129589438438416,
0.4939511716365814,
0.6638404130935669,
-0.720198392868042,
-0.21639379858970642,
-0.22369889914989471,
-0.43535315990448,
0.3461308777332306,
1.2519309520721436,
-0.11579752713441849,
-0.9597184658050537,
0.48353639245033264,
-0.21904230117797852,
0.17852981388568878,
1.921981692314148,
0.04159493371844292,
-0.9028742909431458,
0.41442281007766724,
-0.6760297417640686,
1.8403798341751099,
1.6486382484436035,
1.2969939708709717,
-0.1312474012374878,
-0.9352561831474304,
0.600883424282074,
-0.3370423913002014,
-0.29802003502845764,
0.9812023639678955,
0.36611688137054443,
-0.2961868345737457,
-1.4496519565582275,
0.7620018720626831,
1.2740874290466309,
-0.6890035271644592,
-0.7785851955413818,
0.03575283661484718,
-0.8355581760406494,
1.267061710357666,
0.6519859433174133,
0.33571407198905945,
0.27674007415771484,
1.639264702796936,
0.7062200307846069,
-0.5989991426467896,
0.5432773232460022,
0.42894500494003296,
-0.14231273531913757,
-2.0135319232940674,
-1.1153804063796997,
0.2770397663116455,
-0.4348110258579254,
-1.4350507259368896,
1.4293242692947388,
-1.249848484992981,
-1.100792646408081,
0.5169438123703003,
0.16972914338111877,
1.2468352317810059,
0.33570796251296997,
1.716518521308899,
2.0393643379211426,
0.8925991058349609,
0.48683232069015503,
1.0962891578674316,
-0.2694542109966278,
-0.23392906785011292,
1.676628589630127,
-0.4674791395664215,
0.6240127682685852,
1.055017113685608,
-0.49633005261421204,
-1.2704805135726929,
-0.8797866702079773,
-1.1588619947433472,
-0.7347769141197205,
1.0290849208831787,
0.12566305696964264,
-1.1014559268951416,
0.4031909108161926,
1.6448341608047485,
0.04030696675181389,
-0.12086895853281021,
0.7789697647094727,
0.3378007709980011,
-0.6508357524871826,
-0.07639411836862564,
-1.0473835468292236,
0.5758737325668335,
-0.2953529357910156,
-0.3659776747226715,
0.21178896725177765,
0.658160924911499,
1.1912533044815063,
0.13497081398963928,
0.13275368511676788,
1.261098027229309,
-1.3983116149902344,
1.1382911205291748,
-0.9959938526153564,
0.36923089623451233,
-2.295332908630371,
1.4502567052841187,
-0.8459189534187317,
1.906611680984497,
-2.7183969020843506,
0.4633689820766449,
-0.4397698640823364,
-0.6340093612670898,
0.166838139295578,
-0.13733026385307312,
0.15641461312770844,
-0.07624122500419617,
-0.986510157585144,
-0.155936136841774,
-0.8591182231903076,
0.49161234498023987,
1.2254694700241089,
1.3554425239562988,
-0.915486216545105,
-0.24566584825515747,
-1.5710725784301758,
-0.1650131493806839,
-0.49269452691078186,
0.13220056891441345,
-1.7651728391647339,
-0.18398164212703705,
-2.0937583446502686,
-2.4616897106170654,
-1.357365608215332,
-1.0167721509933472,
1.3677959442138672,
0.21700124442577362,
-0.9242547154426575,
1.1555219888687134,
-0.46613481640815735,
-1.789891242980957,
1.208068609237671,
-2.1926870346069336
] |
https://github.com/huggingface/datasets/issues/4610 | codeparrot/github-code failing to load | I am afraid your suggested change @gugarosa will break compatibility with older datasets versions that don't have `base_path` argument in `get_patterns_in_dataset_repository`, as a workaround while the issue gets resolved in `datasets` can you downgrade your datasets version to `<=2.1.0` ?
@lvwerra do you think we should adapt the script to check the datasets version before calling `get_patterns_in_dataset_repository`? | ## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2 | 668 | 57 | codeparrot/github-code failing to load
## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
I am afraid your suggested change @gugarosa will break compatibility with older datasets versions that don't have `base_path` argument in `get_patterns_in_dataset_repository`, as a workaround while the issue gets resolved in `datasets` can you downgrade your datasets version to `<=2.1.0` ?
@lvwerra do you think we should adapt the script to check the datasets version before calling `get_patterns_in_dataset_repository`? | [
-1.1611977815628052,
-0.851091206073761,
-0.5452695488929749,
1.3688067197799683,
0.00876366626471281,
-1.36588454246521,
0.1514788269996643,
-0.9522942304611206,
1.5589854717254639,
-0.863475501537323,
0.3053831458091736,
-1.746605634689331,
-0.0010000551119446754,
-0.6782383918762207,
-0.6969450116157532,
-0.6758303046226501,
-0.35504040122032166,
-0.7634244561195374,
1.1377356052398682,
2.402327537536621,
1.1769495010375977,
-1.2918647527694702,
2.863217830657959,
0.635192334651947,
-0.2832939922809601,
-0.7947933673858643,
0.3624645471572876,
-0.04392162710428238,
-1.4340533018112183,
-0.32104018330574036,
-0.9846137166023254,
-0.013937622308731079,
-0.6702309250831604,
-0.5088050961494446,
0.045712750405073166,
0.5170338153839111,
-0.17820748686790466,
-0.3522976338863373,
-0.42200523614883423,
-0.7426421642303467,
0.5569978952407837,
-0.2388867735862732,
0.8640202283859253,
-0.2251320630311966,
1.7595101594924927,
-0.6025450825691223,
0.543433666229248,
0.5158212780952454,
1.2147083282470703,
0.19963330030441284,
-0.047367729246616364,
0.3514469265937805,
0.21094338595867157,
0.0048444876447319984,
0.5309943556785583,
1.2931877374649048,
0.6358209848403931,
0.5568368434906006,
0.7055985927581787,
-2.1653807163238525,
1.4043408632278442,
-0.7356946468353271,
0.22000843286514282,
1.3763835430145264,
-1.0722049474716187,
0.4294488728046417,
-1.8804665803909302,
-0.14221766591072083,
0.3265288472175598,
-2.253497838973999,
0.21226204931735992,
-1.2700716257095337,
-0.6061474680900574,
0.9949198961257935,
0.3508222699165344,
-1.2740923166275024,
0.06274081766605377,
-0.46025145053863525,
0.9699844717979431,
0.388263076543808,
1.1038410663604736,
-1.6920435428619385,
0.05033173784613609,
-0.23638580739498138,
0.2930210828781128,
-1.1548213958740234,
-1.680673360824585,
0.6522969603538513,
0.648260772228241,
0.7288581728935242,
-0.24153554439544678,
0.9168302416801453,
-1.134513020515442,
0.8862113356590271,
-0.9743183255195618,
-1.699694037437439,
-1.2506537437438965,
-2.4732627868652344,
-2.4705262184143066,
0.773916482925415,
-0.5197468400001526,
-0.36933958530426025,
2.1527349948883057,
-1.1202671527862549,
-1.7105854749679565,
1.0171579122543335,
0.3891041576862335,
-0.10125380009412766,
2.377898931503296,
0.2737167179584503,
-0.9236670136451721,
0.7190743088722229,
-0.9106131792068481,
0.7183132767677307,
-0.4265894293785095,
1.307586908340454,
0.4609006941318512,
-1.1053146123886108,
1.5816388130187988,
-0.40820392966270447,
0.5545432567596436,
-0.7198746204376221,
-0.42123252153396606,
-0.5695700645446777,
0.20047461986541748,
1.93434476852417,
-0.1752515286207199,
1.494482159614563,
-0.14486195147037506,
-1.443765640258789,
-1.385585069656372,
0.8450739979743958,
0.48562392592430115,
-0.8967658281326294,
0.27595004439353943,
-0.4453093111515045,
0.09386108815670013,
0.13414360582828522,
1.0345370769500732,
1.3270351886749268,
0.7379271984100342,
-0.26671335101127625,
-0.8774941563606262,
0.05158577114343643,
-0.13125550746917725,
-0.515667200088501,
-1.7170100212097168,
-0.23967844247817993,
0.1787848323583603,
0.6107385754585266,
-1.1739598512649536,
1.991334080696106,
0.9068726301193237,
2.0888547897338867,
0.9317257404327393,
-0.41241398453712463,
1.5155736207962036,
0.06420489400625229,
1.862146019935608,
-0.3321509063243866,
0.641685962677002,
-0.5312319993972778,
-1.2301502227783203,
0.7689650058746338,
-0.3583501875400543,
-1.9430416822433472,
-0.4055846333503723,
-0.8686917424201965,
-0.225664883852005,
-0.8858634233474731,
1.0203402042388916,
-0.16988785564899445,
-1.4888919591903687,
0.2091253250837326,
-0.6121195554733276,
0.18715158104896545,
-1.4153887033462524,
0.23936395347118378,
0.7456544637680054,
-0.7443197965621948,
-0.011563219130039215,
-0.388562947511673,
-1.3944731950759888,
-0.6059310436248779,
0.5151119232177734,
1.7384026050567627,
-0.6245744824409485,
1.0387840270996094,
1.0519899129867554,
-0.5808465480804443,
-0.0826985314488411,
0.4732588529586792,
-0.35716792941093445,
0.8473893404006958,
-1.0400876998901367,
-0.41296157240867615,
1.1238503456115723,
-0.34043970704078674,
-0.47408995032310486,
1.305870771408081,
0.7573741674423218,
-1.0191848278045654,
-0.3129705786705017,
-0.0948575958609581,
-0.8632064461708069,
0.037648167461156845,
-1.598399043083191,
-0.05697443336248398,
0.31108760833740234,
-1.415358304977417,
-0.419037789106369,
-0.11838290095329285,
1.3055483102798462,
-0.07074515521526337,
1.3834575414657593,
-0.1557445228099823,
-0.08620624244213104,
-0.5256837606430054,
-0.5851455330848694,
0.1704309582710266,
-0.08411887288093567,
-0.5319223403930664,
0.24755091965198517,
-0.6895180940628052,
0.1914246380329132,
1.504176139831543,
0.14896415174007416,
0.1503830999135971,
0.4689313471317291,
1.2152037620544434,
0.3244205117225647,
-0.1631445437669754,
-0.8387845158576965,
-1.6638236045837402,
1.9937533140182495,
-1.6388838291168213,
1.9380664825439453,
0.8410115242004395,
-0.05187748745083809,
-1.8424880504608154,
-1.7952183485031128,
1.4791337251663208,
1.1486936807632446,
2.526885509490967,
0.5765179991722107,
0.41670334339141846,
-0.8854016065597534,
-0.7127459645271301,
0.4633478820323944,
-0.7353405952453613,
-0.8372697234153748,
0.16969458758831024,
2.33565616607666,
1.715570092201233,
-0.4048916697502136,
-0.21381981670856476,
-0.9277835488319397,
1.3494526147842407,
-0.3251934349536896,
0.2919924855232239,
1.9304159879684448,
-0.4745004177093506,
-0.9983265995979309,
1.3041105270385742,
-2.429487466812134,
0.31768593192100525,
2.0235085487365723,
0.33478420972824097,
0.10961858183145523,
-1.137284278869629,
-0.7023041844367981,
-0.18865197896957397,
-0.5033016800880432,
-1.2283538579940796,
0.43763530254364014,
-0.2486523538827896,
-0.8001439571380615,
-1.4096556901931763,
0.0605313777923584,
-1.1848132610321045,
-1.718407154083252,
0.37197908759117126,
1.7709565162658691,
2.198136806488037,
-0.7818360328674316,
1.3192819356918335,
-0.3221893608570099,
0.28845781087875366,
1.1401714086532593,
1.3111991882324219,
3.1326839923858643,
1.8289991617202759,
-1.2626603841781616,
0.726927638053894,
-0.20721176266670227,
-0.5461043119430542,
1.24288809299469,
-0.9380794167518616,
1.1845029592514038,
-0.26059967279434204,
-1.3459177017211914,
-1.2020294666290283,
0.9279182553291321,
0.4273257255554199,
-0.011791827157139778,
-0.5164701342582703,
1.090728998184204,
0.26269403100013733,
1.2860815525054932,
0.6435111165046692,
-0.33641940355300903,
0.4772889316082001,
-0.33869707584381104,
-0.6204607486724854,
1.5919967889785767,
0.06648533046245575,
-1.581408143043518,
-2.3762292861938477,
-0.22643627226352692,
-1.0441170930862427,
0.011262756772339344,
-0.9058089852333069,
-1.0627225637435913,
1.4409352540969849,
0.49926772713661194,
-0.9417400360107422,
-0.07648835331201553,
-0.3308410048484802,
-0.5145210027694702,
2.540292501449585,
-1.3308695554733276,
-0.2085288017988205,
-0.9033835530281067,
-0.5839871168136597,
1.5582313537597656,
-1.135704517364502,
-0.2860359251499176,
-1.100612998008728,
-0.5048316717147827,
-1.2504851818084717,
-0.3858664631843567,
-0.09530120342969894,
-0.8193186521530151,
0.7098442912101746,
-0.030494697391986847,
-1.3241804838180542,
-0.24699218571186066,
-1.0560187101364136,
0.9639979004859924,
-0.29531189799308777,
0.0611300989985466,
1.6352572441101074,
0.28328290581703186,
-0.4187697768211365,
0.8556715846061707,
1.2755646705627441,
0.6234312653541565,
-0.5658329725265503,
0.15016509592533112,
-0.6550554633140564,
0.5447947978973389,
-1.193398356437683,
0.3554894030094147,
-2.99285888671875,
0.7091729640960693,
0.02894679084420204,
-0.09924045950174332,
-0.15984351933002472,
-1.5464482307434082,
0.9376118779182434,
2.4404032230377197,
-1.154631495475769,
0.6289159059524536,
0.3406694829463959,
1.1869971752166748,
-1.6166503429412842,
-0.04107580706477165,
-0.7208141088485718,
2.088568687438965,
-0.04066554456949234,
1.0643208026885986,
-0.6019155979156494,
-2.380449056625366,
0.4990561902523041,
-1.2451354265213013,
-0.9535080790519714,
0.8468433618545532,
-0.8746622204780579,
0.25927960872650146,
-1.1112761497497559,
-0.09586230665445328,
-0.9196926951408386,
-1.1712327003479004,
0.5558843612670898,
0.037484344094991684,
0.6857653856277466,
-0.660559356212616,
0.31081560254096985,
-2.275109052658081,
-1.3520148992538452,
-0.1343647688627243,
-0.8694583773612976,
0.504667341709137,
-0.43197503685951233,
0.6765853762626648,
-0.06538443267345428,
0.09373217076063156,
0.3082430958747864,
1.5309120416641235,
3.1615867614746094,
-0.02338121458888054,
0.289265900850296,
-0.26453864574432373,
-1.0482275485992432,
1.5578138828277588,
0.9072574973106384,
-0.21440687775611877,
-0.6329219937324524,
-0.9170714020729065,
1.3509576320648193,
1.967649221420288,
1.087760090827942,
0.027245670557022095,
-0.9435643553733826,
-0.7666667103767395,
0.13315489888191223,
0.13436904549598694,
0.42274537682533264,
1.0109272003173828,
0.12369444221258163,
0.18344746530056,
1.3003419637680054,
1.0256839990615845,
-0.3415811061859131,
0.5342761278152466,
-0.8199165463447571,
-0.35239943861961365,
0.48334643244743347,
0.3295716941356659,
0.04048408940434456,
0.3181624114513397,
-1.0534919500350952,
-0.22139307856559753,
-0.27290406823158264,
-0.8100864887237549,
-0.7760083079338074,
-0.38995760679244995,
-0.4906470477581024,
1.758124589920044,
-0.17519228160381317,
-0.5437887907028198,
0.10256282240152359,
-0.7768285274505615,
-0.08187472075223923,
-1.054376244544983,
0.19815129041671753,
-0.09319151937961578,
0.09879599511623383,
-0.11109894514083862,
1.6762713193893433,
-1.0312650203704834,
-2.2560083866119385,
0.09698763489723206,
0.27867087721824646,
-0.34139320254325867,
-0.09836483001708984,
1.8295247554779053,
0.47218993306159973,
1.4280191659927368,
1.5172818899154663,
1.113288164138794,
-0.6746306419372559,
-1.2773436307907104,
0.8222349882125854,
0.8765648007392883,
-1.2907500267028809,
0.9841813445091248,
-0.2051386684179306,
-0.6180486083030701,
0.5835438370704651,
1.2802835702896118,
0.42025354504585266,
-1.9753799438476562,
0.9011847376823425,
-1.179165005683899,
0.9433842301368713,
0.799763023853302,
0.8463877439498901,
0.14484845101833344,
0.8970574140548706,
-1.2246421575546265,
-1.0372498035430908,
-0.5695925354957581,
-0.6203012466430664,
1.8419724702835083,
-0.2643668055534363,
0.29628825187683105,
-0.26744920015335083,
-1.2255173921585083,
0.15427790582180023,
0.789518415927887,
0.3572204113006592,
-0.32906463742256165,
0.6799824833869934,
-0.7007400393486023,
-1.0281611680984497,
-1.2916123867034912,
-0.48436737060546875,
-1.025081753730774,
-0.8869020938873291,
0.9939916133880615,
0.7527018189430237,
0.5687757730484009,
1.9684042930603027,
0.7319097518920898,
0.2344570904970169,
-2.480715036392212,
0.8023009896278381,
0.3491191267967224,
-0.1269858032464981,
0.8915754556655884,
0.343110591173172,
1.316664695739746,
-0.09736756235361099,
0.6274896860122681,
-2.3686723709106445,
2.1951732635498047,
-0.2240126132965088,
0.6811761856079102,
0.035437632352113724,
-0.03686448559165001,
1.0432597398757935,
0.5092666149139404,
0.46094682812690735,
-1.159796118736267,
0.9189459681510925,
-0.517935037612915,
1.1184329986572266,
0.8423366546630859,
-0.9617375135421753,
0.24516485631465912,
1.2399647235870361,
0.363728404045105,
-0.5058873295783997,
-1.034415364265442,
-0.8252852559089661,
0.938511848449707,
1.7239954471588135,
-0.04932700842618942,
0.11458136886358261,
0.7639656066894531,
0.8091575503349304,
-1.295993447303772,
0.024044465273618698,
-0.4878762364387512,
-0.7211205959320068,
1.8065942525863647,
2.0192434787750244,
-0.06341401487588882,
0.04062538966536522,
-0.7411458492279053,
-1.4502294063568115,
0.8901281952857971,
0.12768012285232544,
-0.13736778497695923,
0.762394368648529,
-0.6936531662940979,
1.1635838747024536,
0.7233654856681824,
0.8455812931060791,
0.18535016477108002,
-0.018855828791856766,
0.2889508903026581,
-0.27281928062438965,
-1.1457087993621826,
-0.3659134805202484,
-1.0110360383987427,
-2.650458812713623,
0.3613341152667999,
-0.24057269096374512,
-1.5073559284210205,
0.1492859125137329,
-0.9394926428794861,
0.7352731823921204,
-0.5259467363357544,
-1.2171638011932373,
-1.3449586629867554,
0.3240225613117218,
-0.18218347430229187,
0.8187311291694641,
-1.6086971759796143,
-0.18761247396469116,
1.1652048826217651,
0.9076664447784424,
-0.6537525653839111,
0.8990855813026428,
0.2697798013687134,
0.8418512344360352,
0.9280633926391602,
-0.4076088070869446,
0.5557721853256226,
0.2505247890949249,
-1.4083954095840454,
0.38139787316322327,
1.4690232276916504,
0.1485145092010498,
1.3259481191635132,
-0.3706507384777069,
-0.01669275388121605,
0.4219931960105896,
-0.3248063623905182,
-0.5551451444625854,
-0.6832690834999084,
0.5891004204750061,
-0.11470070481300354,
-0.9952646493911743,
-0.06751011312007904,
0.0398978628218174,
-0.22383388876914978,
0.33280834555625916,
-1.5034573078155518,
-0.13759109377861023,
-0.4261927902698517,
-0.5539251565933228,
-1.4692940711975098,
-0.05172339454293251,
1.3445475101470947,
-0.7786950469017029,
-0.10267610847949982,
0.5650305151939392,
0.25129589438438416,
0.4939511716365814,
0.6638404130935669,
-0.720198392868042,
-0.21639379858970642,
-0.22369889914989471,
-0.43535315990448,
0.3461308777332306,
1.2519309520721436,
-0.11579752713441849,
-0.9597184658050537,
0.48353639245033264,
-0.21904230117797852,
0.17852981388568878,
1.921981692314148,
0.04159493371844292,
-0.9028742909431458,
0.41442281007766724,
-0.6760297417640686,
1.8403798341751099,
1.6486382484436035,
1.2969939708709717,
-0.1312474012374878,
-0.9352561831474304,
0.600883424282074,
-0.3370423913002014,
-0.29802003502845764,
0.9812023639678955,
0.36611688137054443,
-0.2961868345737457,
-1.4496519565582275,
0.7620018720626831,
1.2740874290466309,
-0.6890035271644592,
-0.7785851955413818,
0.03575283661484718,
-0.8355581760406494,
1.267061710357666,
0.6519859433174133,
0.33571407198905945,
0.27674007415771484,
1.639264702796936,
0.7062200307846069,
-0.5989991426467896,
0.5432773232460022,
0.42894500494003296,
-0.14231273531913757,
-2.0135319232940674,
-1.1153804063796997,
0.2770397663116455,
-0.4348110258579254,
-1.4350507259368896,
1.4293242692947388,
-1.249848484992981,
-1.100792646408081,
0.5169438123703003,
0.16972914338111877,
1.2468352317810059,
0.33570796251296997,
1.716518521308899,
2.0393643379211426,
0.8925991058349609,
0.48683232069015503,
1.0962891578674316,
-0.2694542109966278,
-0.23392906785011292,
1.676628589630127,
-0.4674791395664215,
0.6240127682685852,
1.055017113685608,
-0.49633005261421204,
-1.2704805135726929,
-0.8797866702079773,
-1.1588619947433472,
-0.7347769141197205,
1.0290849208831787,
0.12566305696964264,
-1.1014559268951416,
0.4031909108161926,
1.6448341608047485,
0.04030696675181389,
-0.12086895853281021,
0.7789697647094727,
0.3378007709980011,
-0.6508357524871826,
-0.07639411836862564,
-1.0473835468292236,
0.5758737325668335,
-0.2953529357910156,
-0.3659776747226715,
0.21178896725177765,
0.658160924911499,
1.1912533044815063,
0.13497081398963928,
0.13275368511676788,
1.261098027229309,
-1.3983116149902344,
1.1382911205291748,
-0.9959938526153564,
0.36923089623451233,
-2.295332908630371,
1.4502567052841187,
-0.8459189534187317,
1.906611680984497,
-2.7183969020843506,
0.4633689820766449,
-0.4397698640823364,
-0.6340093612670898,
0.166838139295578,
-0.13733026385307312,
0.15641461312770844,
-0.07624122500419617,
-0.986510157585144,
-0.155936136841774,
-0.8591182231903076,
0.49161234498023987,
1.2254694700241089,
1.3554425239562988,
-0.915486216545105,
-0.24566584825515747,
-1.5710725784301758,
-0.1650131493806839,
-0.49269452691078186,
0.13220056891441345,
-1.7651728391647339,
-0.18398164212703705,
-2.0937583446502686,
-2.4616897106170654,
-1.357365608215332,
-1.0167721509933472,
1.3677959442138672,
0.21700124442577362,
-0.9242547154426575,
1.1555219888687134,
-0.46613481640815735,
-1.789891242980957,
1.208068609237671,
-2.1926870346069336
] |
https://github.com/huggingface/datasets/issues/4610 | codeparrot/github-code failing to load | Actually I think it's just simpler to fix it in the dataset itself, let me open a PR
EDIT: PR opened here: https://huggingface.co/datasets/codeparrot/github-code/discussions/3 | ## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2 | 668 | 23 | codeparrot/github-code failing to load
## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Actually I think it's just simpler to fix it in the dataset itself, let me open a PR
EDIT: PR opened here: https://huggingface.co/datasets/codeparrot/github-code/discussions/3 | [
-1.1611977815628052,
-0.851091206073761,
-0.5452695488929749,
1.3688067197799683,
0.00876366626471281,
-1.36588454246521,
0.1514788269996643,
-0.9522942304611206,
1.5589854717254639,
-0.863475501537323,
0.3053831458091736,
-1.746605634689331,
-0.0010000551119446754,
-0.6782383918762207,
-0.6969450116157532,
-0.6758303046226501,
-0.35504040122032166,
-0.7634244561195374,
1.1377356052398682,
2.402327537536621,
1.1769495010375977,
-1.2918647527694702,
2.863217830657959,
0.635192334651947,
-0.2832939922809601,
-0.7947933673858643,
0.3624645471572876,
-0.04392162710428238,
-1.4340533018112183,
-0.32104018330574036,
-0.9846137166023254,
-0.013937622308731079,
-0.6702309250831604,
-0.5088050961494446,
0.045712750405073166,
0.5170338153839111,
-0.17820748686790466,
-0.3522976338863373,
-0.42200523614883423,
-0.7426421642303467,
0.5569978952407837,
-0.2388867735862732,
0.8640202283859253,
-0.2251320630311966,
1.7595101594924927,
-0.6025450825691223,
0.543433666229248,
0.5158212780952454,
1.2147083282470703,
0.19963330030441284,
-0.047367729246616364,
0.3514469265937805,
0.21094338595867157,
0.0048444876447319984,
0.5309943556785583,
1.2931877374649048,
0.6358209848403931,
0.5568368434906006,
0.7055985927581787,
-2.1653807163238525,
1.4043408632278442,
-0.7356946468353271,
0.22000843286514282,
1.3763835430145264,
-1.0722049474716187,
0.4294488728046417,
-1.8804665803909302,
-0.14221766591072083,
0.3265288472175598,
-2.253497838973999,
0.21226204931735992,
-1.2700716257095337,
-0.6061474680900574,
0.9949198961257935,
0.3508222699165344,
-1.2740923166275024,
0.06274081766605377,
-0.46025145053863525,
0.9699844717979431,
0.388263076543808,
1.1038410663604736,
-1.6920435428619385,
0.05033173784613609,
-0.23638580739498138,
0.2930210828781128,
-1.1548213958740234,
-1.680673360824585,
0.6522969603538513,
0.648260772228241,
0.7288581728935242,
-0.24153554439544678,
0.9168302416801453,
-1.134513020515442,
0.8862113356590271,
-0.9743183255195618,
-1.699694037437439,
-1.2506537437438965,
-2.4732627868652344,
-2.4705262184143066,
0.773916482925415,
-0.5197468400001526,
-0.36933958530426025,
2.1527349948883057,
-1.1202671527862549,
-1.7105854749679565,
1.0171579122543335,
0.3891041576862335,
-0.10125380009412766,
2.377898931503296,
0.2737167179584503,
-0.9236670136451721,
0.7190743088722229,
-0.9106131792068481,
0.7183132767677307,
-0.4265894293785095,
1.307586908340454,
0.4609006941318512,
-1.1053146123886108,
1.5816388130187988,
-0.40820392966270447,
0.5545432567596436,
-0.7198746204376221,
-0.42123252153396606,
-0.5695700645446777,
0.20047461986541748,
1.93434476852417,
-0.1752515286207199,
1.494482159614563,
-0.14486195147037506,
-1.443765640258789,
-1.385585069656372,
0.8450739979743958,
0.48562392592430115,
-0.8967658281326294,
0.27595004439353943,
-0.4453093111515045,
0.09386108815670013,
0.13414360582828522,
1.0345370769500732,
1.3270351886749268,
0.7379271984100342,
-0.26671335101127625,
-0.8774941563606262,
0.05158577114343643,
-0.13125550746917725,
-0.515667200088501,
-1.7170100212097168,
-0.23967844247817993,
0.1787848323583603,
0.6107385754585266,
-1.1739598512649536,
1.991334080696106,
0.9068726301193237,
2.0888547897338867,
0.9317257404327393,
-0.41241398453712463,
1.5155736207962036,
0.06420489400625229,
1.862146019935608,
-0.3321509063243866,
0.641685962677002,
-0.5312319993972778,
-1.2301502227783203,
0.7689650058746338,
-0.3583501875400543,
-1.9430416822433472,
-0.4055846333503723,
-0.8686917424201965,
-0.225664883852005,
-0.8858634233474731,
1.0203402042388916,
-0.16988785564899445,
-1.4888919591903687,
0.2091253250837326,
-0.6121195554733276,
0.18715158104896545,
-1.4153887033462524,
0.23936395347118378,
0.7456544637680054,
-0.7443197965621948,
-0.011563219130039215,
-0.388562947511673,
-1.3944731950759888,
-0.6059310436248779,
0.5151119232177734,
1.7384026050567627,
-0.6245744824409485,
1.0387840270996094,
1.0519899129867554,
-0.5808465480804443,
-0.0826985314488411,
0.4732588529586792,
-0.35716792941093445,
0.8473893404006958,
-1.0400876998901367,
-0.41296157240867615,
1.1238503456115723,
-0.34043970704078674,
-0.47408995032310486,
1.305870771408081,
0.7573741674423218,
-1.0191848278045654,
-0.3129705786705017,
-0.0948575958609581,
-0.8632064461708069,
0.037648167461156845,
-1.598399043083191,
-0.05697443336248398,
0.31108760833740234,
-1.415358304977417,
-0.419037789106369,
-0.11838290095329285,
1.3055483102798462,
-0.07074515521526337,
1.3834575414657593,
-0.1557445228099823,
-0.08620624244213104,
-0.5256837606430054,
-0.5851455330848694,
0.1704309582710266,
-0.08411887288093567,
-0.5319223403930664,
0.24755091965198517,
-0.6895180940628052,
0.1914246380329132,
1.504176139831543,
0.14896415174007416,
0.1503830999135971,
0.4689313471317291,
1.2152037620544434,
0.3244205117225647,
-0.1631445437669754,
-0.8387845158576965,
-1.6638236045837402,
1.9937533140182495,
-1.6388838291168213,
1.9380664825439453,
0.8410115242004395,
-0.05187748745083809,
-1.8424880504608154,
-1.7952183485031128,
1.4791337251663208,
1.1486936807632446,
2.526885509490967,
0.5765179991722107,
0.41670334339141846,
-0.8854016065597534,
-0.7127459645271301,
0.4633478820323944,
-0.7353405952453613,
-0.8372697234153748,
0.16969458758831024,
2.33565616607666,
1.715570092201233,
-0.4048916697502136,
-0.21381981670856476,
-0.9277835488319397,
1.3494526147842407,
-0.3251934349536896,
0.2919924855232239,
1.9304159879684448,
-0.4745004177093506,
-0.9983265995979309,
1.3041105270385742,
-2.429487466812134,
0.31768593192100525,
2.0235085487365723,
0.33478420972824097,
0.10961858183145523,
-1.137284278869629,
-0.7023041844367981,
-0.18865197896957397,
-0.5033016800880432,
-1.2283538579940796,
0.43763530254364014,
-0.2486523538827896,
-0.8001439571380615,
-1.4096556901931763,
0.0605313777923584,
-1.1848132610321045,
-1.718407154083252,
0.37197908759117126,
1.7709565162658691,
2.198136806488037,
-0.7818360328674316,
1.3192819356918335,
-0.3221893608570099,
0.28845781087875366,
1.1401714086532593,
1.3111991882324219,
3.1326839923858643,
1.8289991617202759,
-1.2626603841781616,
0.726927638053894,
-0.20721176266670227,
-0.5461043119430542,
1.24288809299469,
-0.9380794167518616,
1.1845029592514038,
-0.26059967279434204,
-1.3459177017211914,
-1.2020294666290283,
0.9279182553291321,
0.4273257255554199,
-0.011791827157139778,
-0.5164701342582703,
1.090728998184204,
0.26269403100013733,
1.2860815525054932,
0.6435111165046692,
-0.33641940355300903,
0.4772889316082001,
-0.33869707584381104,
-0.6204607486724854,
1.5919967889785767,
0.06648533046245575,
-1.581408143043518,
-2.3762292861938477,
-0.22643627226352692,
-1.0441170930862427,
0.011262756772339344,
-0.9058089852333069,
-1.0627225637435913,
1.4409352540969849,
0.49926772713661194,
-0.9417400360107422,
-0.07648835331201553,
-0.3308410048484802,
-0.5145210027694702,
2.540292501449585,
-1.3308695554733276,
-0.2085288017988205,
-0.9033835530281067,
-0.5839871168136597,
1.5582313537597656,
-1.135704517364502,
-0.2860359251499176,
-1.100612998008728,
-0.5048316717147827,
-1.2504851818084717,
-0.3858664631843567,
-0.09530120342969894,
-0.8193186521530151,
0.7098442912101746,
-0.030494697391986847,
-1.3241804838180542,
-0.24699218571186066,
-1.0560187101364136,
0.9639979004859924,
-0.29531189799308777,
0.0611300989985466,
1.6352572441101074,
0.28328290581703186,
-0.4187697768211365,
0.8556715846061707,
1.2755646705627441,
0.6234312653541565,
-0.5658329725265503,
0.15016509592533112,
-0.6550554633140564,
0.5447947978973389,
-1.193398356437683,
0.3554894030094147,
-2.99285888671875,
0.7091729640960693,
0.02894679084420204,
-0.09924045950174332,
-0.15984351933002472,
-1.5464482307434082,
0.9376118779182434,
2.4404032230377197,
-1.154631495475769,
0.6289159059524536,
0.3406694829463959,
1.1869971752166748,
-1.6166503429412842,
-0.04107580706477165,
-0.7208141088485718,
2.088568687438965,
-0.04066554456949234,
1.0643208026885986,
-0.6019155979156494,
-2.380449056625366,
0.4990561902523041,
-1.2451354265213013,
-0.9535080790519714,
0.8468433618545532,
-0.8746622204780579,
0.25927960872650146,
-1.1112761497497559,
-0.09586230665445328,
-0.9196926951408386,
-1.1712327003479004,
0.5558843612670898,
0.037484344094991684,
0.6857653856277466,
-0.660559356212616,
0.31081560254096985,
-2.275109052658081,
-1.3520148992538452,
-0.1343647688627243,
-0.8694583773612976,
0.504667341709137,
-0.43197503685951233,
0.6765853762626648,
-0.06538443267345428,
0.09373217076063156,
0.3082430958747864,
1.5309120416641235,
3.1615867614746094,
-0.02338121458888054,
0.289265900850296,
-0.26453864574432373,
-1.0482275485992432,
1.5578138828277588,
0.9072574973106384,
-0.21440687775611877,
-0.6329219937324524,
-0.9170714020729065,
1.3509576320648193,
1.967649221420288,
1.087760090827942,
0.027245670557022095,
-0.9435643553733826,
-0.7666667103767395,
0.13315489888191223,
0.13436904549598694,
0.42274537682533264,
1.0109272003173828,
0.12369444221258163,
0.18344746530056,
1.3003419637680054,
1.0256839990615845,
-0.3415811061859131,
0.5342761278152466,
-0.8199165463447571,
-0.35239943861961365,
0.48334643244743347,
0.3295716941356659,
0.04048408940434456,
0.3181624114513397,
-1.0534919500350952,
-0.22139307856559753,
-0.27290406823158264,
-0.8100864887237549,
-0.7760083079338074,
-0.38995760679244995,
-0.4906470477581024,
1.758124589920044,
-0.17519228160381317,
-0.5437887907028198,
0.10256282240152359,
-0.7768285274505615,
-0.08187472075223923,
-1.054376244544983,
0.19815129041671753,
-0.09319151937961578,
0.09879599511623383,
-0.11109894514083862,
1.6762713193893433,
-1.0312650203704834,
-2.2560083866119385,
0.09698763489723206,
0.27867087721824646,
-0.34139320254325867,
-0.09836483001708984,
1.8295247554779053,
0.47218993306159973,
1.4280191659927368,
1.5172818899154663,
1.113288164138794,
-0.6746306419372559,
-1.2773436307907104,
0.8222349882125854,
0.8765648007392883,
-1.2907500267028809,
0.9841813445091248,
-0.2051386684179306,
-0.6180486083030701,
0.5835438370704651,
1.2802835702896118,
0.42025354504585266,
-1.9753799438476562,
0.9011847376823425,
-1.179165005683899,
0.9433842301368713,
0.799763023853302,
0.8463877439498901,
0.14484845101833344,
0.8970574140548706,
-1.2246421575546265,
-1.0372498035430908,
-0.5695925354957581,
-0.6203012466430664,
1.8419724702835083,
-0.2643668055534363,
0.29628825187683105,
-0.26744920015335083,
-1.2255173921585083,
0.15427790582180023,
0.789518415927887,
0.3572204113006592,
-0.32906463742256165,
0.6799824833869934,
-0.7007400393486023,
-1.0281611680984497,
-1.2916123867034912,
-0.48436737060546875,
-1.025081753730774,
-0.8869020938873291,
0.9939916133880615,
0.7527018189430237,
0.5687757730484009,
1.9684042930603027,
0.7319097518920898,
0.2344570904970169,
-2.480715036392212,
0.8023009896278381,
0.3491191267967224,
-0.1269858032464981,
0.8915754556655884,
0.343110591173172,
1.316664695739746,
-0.09736756235361099,
0.6274896860122681,
-2.3686723709106445,
2.1951732635498047,
-0.2240126132965088,
0.6811761856079102,
0.035437632352113724,
-0.03686448559165001,
1.0432597398757935,
0.5092666149139404,
0.46094682812690735,
-1.159796118736267,
0.9189459681510925,
-0.517935037612915,
1.1184329986572266,
0.8423366546630859,
-0.9617375135421753,
0.24516485631465912,
1.2399647235870361,
0.363728404045105,
-0.5058873295783997,
-1.034415364265442,
-0.8252852559089661,
0.938511848449707,
1.7239954471588135,
-0.04932700842618942,
0.11458136886358261,
0.7639656066894531,
0.8091575503349304,
-1.295993447303772,
0.024044465273618698,
-0.4878762364387512,
-0.7211205959320068,
1.8065942525863647,
2.0192434787750244,
-0.06341401487588882,
0.04062538966536522,
-0.7411458492279053,
-1.4502294063568115,
0.8901281952857971,
0.12768012285232544,
-0.13736778497695923,
0.762394368648529,
-0.6936531662940979,
1.1635838747024536,
0.7233654856681824,
0.8455812931060791,
0.18535016477108002,
-0.018855828791856766,
0.2889508903026581,
-0.27281928062438965,
-1.1457087993621826,
-0.3659134805202484,
-1.0110360383987427,
-2.650458812713623,
0.3613341152667999,
-0.24057269096374512,
-1.5073559284210205,
0.1492859125137329,
-0.9394926428794861,
0.7352731823921204,
-0.5259467363357544,
-1.2171638011932373,
-1.3449586629867554,
0.3240225613117218,
-0.18218347430229187,
0.8187311291694641,
-1.6086971759796143,
-0.18761247396469116,
1.1652048826217651,
0.9076664447784424,
-0.6537525653839111,
0.8990855813026428,
0.2697798013687134,
0.8418512344360352,
0.9280633926391602,
-0.4076088070869446,
0.5557721853256226,
0.2505247890949249,
-1.4083954095840454,
0.38139787316322327,
1.4690232276916504,
0.1485145092010498,
1.3259481191635132,
-0.3706507384777069,
-0.01669275388121605,
0.4219931960105896,
-0.3248063623905182,
-0.5551451444625854,
-0.6832690834999084,
0.5891004204750061,
-0.11470070481300354,
-0.9952646493911743,
-0.06751011312007904,
0.0398978628218174,
-0.22383388876914978,
0.33280834555625916,
-1.5034573078155518,
-0.13759109377861023,
-0.4261927902698517,
-0.5539251565933228,
-1.4692940711975098,
-0.05172339454293251,
1.3445475101470947,
-0.7786950469017029,
-0.10267610847949982,
0.5650305151939392,
0.25129589438438416,
0.4939511716365814,
0.6638404130935669,
-0.720198392868042,
-0.21639379858970642,
-0.22369889914989471,
-0.43535315990448,
0.3461308777332306,
1.2519309520721436,
-0.11579752713441849,
-0.9597184658050537,
0.48353639245033264,
-0.21904230117797852,
0.17852981388568878,
1.921981692314148,
0.04159493371844292,
-0.9028742909431458,
0.41442281007766724,
-0.6760297417640686,
1.8403798341751099,
1.6486382484436035,
1.2969939708709717,
-0.1312474012374878,
-0.9352561831474304,
0.600883424282074,
-0.3370423913002014,
-0.29802003502845764,
0.9812023639678955,
0.36611688137054443,
-0.2961868345737457,
-1.4496519565582275,
0.7620018720626831,
1.2740874290466309,
-0.6890035271644592,
-0.7785851955413818,
0.03575283661484718,
-0.8355581760406494,
1.267061710357666,
0.6519859433174133,
0.33571407198905945,
0.27674007415771484,
1.639264702796936,
0.7062200307846069,
-0.5989991426467896,
0.5432773232460022,
0.42894500494003296,
-0.14231273531913757,
-2.0135319232940674,
-1.1153804063796997,
0.2770397663116455,
-0.4348110258579254,
-1.4350507259368896,
1.4293242692947388,
-1.249848484992981,
-1.100792646408081,
0.5169438123703003,
0.16972914338111877,
1.2468352317810059,
0.33570796251296997,
1.716518521308899,
2.0393643379211426,
0.8925991058349609,
0.48683232069015503,
1.0962891578674316,
-0.2694542109966278,
-0.23392906785011292,
1.676628589630127,
-0.4674791395664215,
0.6240127682685852,
1.055017113685608,
-0.49633005261421204,
-1.2704805135726929,
-0.8797866702079773,
-1.1588619947433472,
-0.7347769141197205,
1.0290849208831787,
0.12566305696964264,
-1.1014559268951416,
0.4031909108161926,
1.6448341608047485,
0.04030696675181389,
-0.12086895853281021,
0.7789697647094727,
0.3378007709980011,
-0.6508357524871826,
-0.07639411836862564,
-1.0473835468292236,
0.5758737325668335,
-0.2953529357910156,
-0.3659776747226715,
0.21178896725177765,
0.658160924911499,
1.1912533044815063,
0.13497081398963928,
0.13275368511676788,
1.261098027229309,
-1.3983116149902344,
1.1382911205291748,
-0.9959938526153564,
0.36923089623451233,
-2.295332908630371,
1.4502567052841187,
-0.8459189534187317,
1.906611680984497,
-2.7183969020843506,
0.4633689820766449,
-0.4397698640823364,
-0.6340093612670898,
0.166838139295578,
-0.13733026385307312,
0.15641461312770844,
-0.07624122500419617,
-0.986510157585144,
-0.155936136841774,
-0.8591182231903076,
0.49161234498023987,
1.2254694700241089,
1.3554425239562988,
-0.915486216545105,
-0.24566584825515747,
-1.5710725784301758,
-0.1650131493806839,
-0.49269452691078186,
0.13220056891441345,
-1.7651728391647339,
-0.18398164212703705,
-2.0937583446502686,
-2.4616897106170654,
-1.357365608215332,
-1.0167721509933472,
1.3677959442138672,
0.21700124442577362,
-0.9242547154426575,
1.1555219888687134,
-0.46613481640815735,
-1.789891242980957,
1.208068609237671,
-2.1926870346069336
] |
https://github.com/huggingface/datasets/issues/4610 | codeparrot/github-code failing to load | > I am afraid your suggested change @gugarosa will break compatibility with older datasets versions that don't have `base_path` argument in `get_patterns_in_dataset_repository`, as a workaround while the issue gets resolved in `datasets` can you downgrade your datasets version to `<=2.1.0` ?
> @lvwerra do you think we should adapt the script to check the datasets version before calling `get_patterns_in_dataset_repository`?
You are definitely right, sorry about it. I always keep forgetting that we need to keep in mind users from past versions, my bad. | ## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2 | 668 | 83 | codeparrot/github-code failing to load
## Describe the bug
codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'`
## Steps to reproduce the bug
```python
from datasets import load_dataset
```
## Expected results
loaded dataset object
## Actual results
```python
[3]: dataset = load_dataset("codeparrot/github-code")
No config specified, defaulting to: github-code/all-all
Downloading and preparing dataset github-code/all-all to /home/bebr/.cache/huggingface/datasets/codeparrot___github-code/all-all/0.0.0/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817...
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 dataset = load_dataset("codeparrot/github-code")
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/load.py:1679, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1676 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
1678 # Download and prepare data
-> 1679 builder_instance.download_and_prepare(
1680 download_config=download_config,
1681 download_mode=download_mode,
1682 ignore_verifications=ignore_verifications,
1683 try_from_hf_gcs=try_from_hf_gcs,
1684 use_auth_token=use_auth_token,
1685 )
1687 # Build dataset for splits
1688 keep_in_memory = (
1689 keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
1690 )
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:704, in DatasetBuilder.download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
702 logger.warning("HF google storage unreachable. Downloading and preparing it from source")
703 if not downloaded_from_gcs:
--> 704 self._download_and_prepare(
705 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
706 )
707 # Sync info
708 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:1221, in GeneratorBasedBuilder._download_and_prepare(self, dl_manager, verify_infos)
1220 def _download_and_prepare(self, dl_manager, verify_infos):
-> 1221 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File ~/miniconda3/envs/fastapi-kube/lib/python3.10/site-packages/datasets/builder.py:771, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
769 split_dict = SplitDict(dataset_name=self.name)
770 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 771 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
773 # Checksums verification
774 if verify_infos and dl_manager.record_checksums:
File ~/.cache/huggingface/modules/datasets_modules/datasets/codeparrot--github-code/a55513bc0f81db773f9896c7aac225af0cff5b323bb9d2f68124f0a8cc3fb817/github-code.py:169, in GithubCode._split_generators(self, dl_manager)
162 def _split_generators(self, dl_manager):
164 hfh_dataset_info = HfApi(datasets.config.HF_ENDPOINT).dataset_info(
165 _REPO_NAME,
166 timeout=100.0,
167 )
--> 169 patterns = datasets.data_files.get_patterns_in_dataset_repository(hfh_dataset_info)
170 data_files = datasets.data_files.DataFilesDict.from_hf_repo(
171 patterns,
172 dataset_info=hfh_dataset_info,
173 )
175 files = dl_manager.download_and_extract(data_files["train"])
TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.18.7-arch1-1-x86_64-with-glibc2.35
- Python version: 3.10.5
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
> I am afraid your suggested change @gugarosa will break compatibility with older datasets versions that don't have `base_path` argument in `get_patterns_in_dataset_repository`, as a workaround while the issue gets resolved in `datasets` can you downgrade your datasets version to `<=2.1.0` ?
> @lvwerra do you think we should adapt the script to check the datasets version before calling `get_patterns_in_dataset_repository`?
You are definitely right, sorry about it. I always keep forgetting that we need to keep in mind users from past versions, my bad. | [
-1.1611977815628052,
-0.851091206073761,
-0.5452695488929749,
1.3688067197799683,
0.00876366626471281,
-1.36588454246521,
0.1514788269996643,
-0.9522942304611206,
1.5589854717254639,
-0.863475501537323,
0.3053831458091736,
-1.746605634689331,
-0.0010000551119446754,
-0.6782383918762207,
-0.6969450116157532,
-0.6758303046226501,
-0.35504040122032166,
-0.7634244561195374,
1.1377356052398682,
2.402327537536621,
1.1769495010375977,
-1.2918647527694702,
2.863217830657959,
0.635192334651947,
-0.2832939922809601,
-0.7947933673858643,
0.3624645471572876,
-0.04392162710428238,
-1.4340533018112183,
-0.32104018330574036,
-0.9846137166023254,
-0.013937622308731079,
-0.6702309250831604,
-0.5088050961494446,
0.045712750405073166,
0.5170338153839111,
-0.17820748686790466,
-0.3522976338863373,
-0.42200523614883423,
-0.7426421642303467,
0.5569978952407837,
-0.2388867735862732,
0.8640202283859253,
-0.2251320630311966,
1.7595101594924927,
-0.6025450825691223,
0.543433666229248,
0.5158212780952454,
1.2147083282470703,
0.19963330030441284,
-0.047367729246616364,
0.3514469265937805,
0.21094338595867157,
0.0048444876447319984,
0.5309943556785583,
1.2931877374649048,
0.6358209848403931,
0.5568368434906006,
0.7055985927581787,
-2.1653807163238525,
1.4043408632278442,
-0.7356946468353271,
0.22000843286514282,
1.3763835430145264,
-1.0722049474716187,
0.4294488728046417,
-1.8804665803909302,
-0.14221766591072083,
0.3265288472175598,
-2.253497838973999,
0.21226204931735992,
-1.2700716257095337,
-0.6061474680900574,
0.9949198961257935,
0.3508222699165344,
-1.2740923166275024,
0.06274081766605377,
-0.46025145053863525,
0.9699844717979431,
0.388263076543808,
1.1038410663604736,
-1.6920435428619385,
0.05033173784613609,
-0.23638580739498138,
0.2930210828781128,
-1.1548213958740234,
-1.680673360824585,
0.6522969603538513,
0.648260772228241,
0.7288581728935242,
-0.24153554439544678,
0.9168302416801453,
-1.134513020515442,
0.8862113356590271,
-0.9743183255195618,
-1.699694037437439,
-1.2506537437438965,
-2.4732627868652344,
-2.4705262184143066,
0.773916482925415,
-0.5197468400001526,
-0.36933958530426025,
2.1527349948883057,
-1.1202671527862549,
-1.7105854749679565,
1.0171579122543335,
0.3891041576862335,
-0.10125380009412766,
2.377898931503296,
0.2737167179584503,
-0.9236670136451721,
0.7190743088722229,
-0.9106131792068481,
0.7183132767677307,
-0.4265894293785095,
1.307586908340454,
0.4609006941318512,
-1.1053146123886108,
1.5816388130187988,
-0.40820392966270447,
0.5545432567596436,
-0.7198746204376221,
-0.42123252153396606,
-0.5695700645446777,
0.20047461986541748,
1.93434476852417,
-0.1752515286207199,
1.494482159614563,
-0.14486195147037506,
-1.443765640258789,
-1.385585069656372,
0.8450739979743958,
0.48562392592430115,
-0.8967658281326294,
0.27595004439353943,
-0.4453093111515045,
0.09386108815670013,
0.13414360582828522,
1.0345370769500732,
1.3270351886749268,
0.7379271984100342,
-0.26671335101127625,
-0.8774941563606262,
0.05158577114343643,
-0.13125550746917725,
-0.515667200088501,
-1.7170100212097168,
-0.23967844247817993,
0.1787848323583603,
0.6107385754585266,
-1.1739598512649536,
1.991334080696106,
0.9068726301193237,
2.0888547897338867,
0.9317257404327393,
-0.41241398453712463,
1.5155736207962036,
0.06420489400625229,
1.862146019935608,
-0.3321509063243866,
0.641685962677002,
-0.5312319993972778,
-1.2301502227783203,
0.7689650058746338,
-0.3583501875400543,
-1.9430416822433472,
-0.4055846333503723,
-0.8686917424201965,
-0.225664883852005,
-0.8858634233474731,
1.0203402042388916,
-0.16988785564899445,
-1.4888919591903687,
0.2091253250837326,
-0.6121195554733276,
0.18715158104896545,
-1.4153887033462524,
0.23936395347118378,
0.7456544637680054,
-0.7443197965621948,
-0.011563219130039215,
-0.388562947511673,
-1.3944731950759888,
-0.6059310436248779,
0.5151119232177734,
1.7384026050567627,
-0.6245744824409485,
1.0387840270996094,
1.0519899129867554,
-0.5808465480804443,
-0.0826985314488411,
0.4732588529586792,
-0.35716792941093445,
0.8473893404006958,
-1.0400876998901367,
-0.41296157240867615,
1.1238503456115723,
-0.34043970704078674,
-0.47408995032310486,
1.305870771408081,
0.7573741674423218,
-1.0191848278045654,
-0.3129705786705017,
-0.0948575958609581,
-0.8632064461708069,
0.037648167461156845,
-1.598399043083191,
-0.05697443336248398,
0.31108760833740234,
-1.415358304977417,
-0.419037789106369,
-0.11838290095329285,
1.3055483102798462,
-0.07074515521526337,
1.3834575414657593,
-0.1557445228099823,
-0.08620624244213104,
-0.5256837606430054,
-0.5851455330848694,
0.1704309582710266,
-0.08411887288093567,
-0.5319223403930664,
0.24755091965198517,
-0.6895180940628052,
0.1914246380329132,
1.504176139831543,
0.14896415174007416,
0.1503830999135971,
0.4689313471317291,
1.2152037620544434,
0.3244205117225647,
-0.1631445437669754,
-0.8387845158576965,
-1.6638236045837402,
1.9937533140182495,
-1.6388838291168213,
1.9380664825439453,
0.8410115242004395,
-0.05187748745083809,
-1.8424880504608154,
-1.7952183485031128,
1.4791337251663208,
1.1486936807632446,
2.526885509490967,
0.5765179991722107,
0.41670334339141846,
-0.8854016065597534,
-0.7127459645271301,
0.4633478820323944,
-0.7353405952453613,
-0.8372697234153748,
0.16969458758831024,
2.33565616607666,
1.715570092201233,
-0.4048916697502136,
-0.21381981670856476,
-0.9277835488319397,
1.3494526147842407,
-0.3251934349536896,
0.2919924855232239,
1.9304159879684448,
-0.4745004177093506,
-0.9983265995979309,
1.3041105270385742,
-2.429487466812134,
0.31768593192100525,
2.0235085487365723,
0.33478420972824097,
0.10961858183145523,
-1.137284278869629,
-0.7023041844367981,
-0.18865197896957397,
-0.5033016800880432,
-1.2283538579940796,
0.43763530254364014,
-0.2486523538827896,
-0.8001439571380615,
-1.4096556901931763,
0.0605313777923584,
-1.1848132610321045,
-1.718407154083252,
0.37197908759117126,
1.7709565162658691,
2.198136806488037,
-0.7818360328674316,
1.3192819356918335,
-0.3221893608570099,
0.28845781087875366,
1.1401714086532593,
1.3111991882324219,
3.1326839923858643,
1.8289991617202759,
-1.2626603841781616,
0.726927638053894,
-0.20721176266670227,
-0.5461043119430542,
1.24288809299469,
-0.9380794167518616,
1.1845029592514038,
-0.26059967279434204,
-1.3459177017211914,
-1.2020294666290283,
0.9279182553291321,
0.4273257255554199,
-0.011791827157139778,
-0.5164701342582703,
1.090728998184204,
0.26269403100013733,
1.2860815525054932,
0.6435111165046692,
-0.33641940355300903,
0.4772889316082001,
-0.33869707584381104,
-0.6204607486724854,
1.5919967889785767,
0.06648533046245575,
-1.581408143043518,
-2.3762292861938477,
-0.22643627226352692,
-1.0441170930862427,
0.011262756772339344,
-0.9058089852333069,
-1.0627225637435913,
1.4409352540969849,
0.49926772713661194,
-0.9417400360107422,
-0.07648835331201553,
-0.3308410048484802,
-0.5145210027694702,
2.540292501449585,
-1.3308695554733276,
-0.2085288017988205,
-0.9033835530281067,
-0.5839871168136597,
1.5582313537597656,
-1.135704517364502,
-0.2860359251499176,
-1.100612998008728,
-0.5048316717147827,
-1.2504851818084717,
-0.3858664631843567,
-0.09530120342969894,
-0.8193186521530151,
0.7098442912101746,
-0.030494697391986847,
-1.3241804838180542,
-0.24699218571186066,
-1.0560187101364136,
0.9639979004859924,
-0.29531189799308777,
0.0611300989985466,
1.6352572441101074,
0.28328290581703186,
-0.4187697768211365,
0.8556715846061707,
1.2755646705627441,
0.6234312653541565,
-0.5658329725265503,
0.15016509592533112,
-0.6550554633140564,
0.5447947978973389,
-1.193398356437683,
0.3554894030094147,
-2.99285888671875,
0.7091729640960693,
0.02894679084420204,
-0.09924045950174332,
-0.15984351933002472,
-1.5464482307434082,
0.9376118779182434,
2.4404032230377197,
-1.154631495475769,
0.6289159059524536,
0.3406694829463959,
1.1869971752166748,
-1.6166503429412842,
-0.04107580706477165,
-0.7208141088485718,
2.088568687438965,
-0.04066554456949234,
1.0643208026885986,
-0.6019155979156494,
-2.380449056625366,
0.4990561902523041,
-1.2451354265213013,
-0.9535080790519714,
0.8468433618545532,
-0.8746622204780579,
0.25927960872650146,
-1.1112761497497559,
-0.09586230665445328,
-0.9196926951408386,
-1.1712327003479004,
0.5558843612670898,
0.037484344094991684,
0.6857653856277466,
-0.660559356212616,
0.31081560254096985,
-2.275109052658081,
-1.3520148992538452,
-0.1343647688627243,
-0.8694583773612976,
0.504667341709137,
-0.43197503685951233,
0.6765853762626648,
-0.06538443267345428,
0.09373217076063156,
0.3082430958747864,
1.5309120416641235,
3.1615867614746094,
-0.02338121458888054,
0.289265900850296,
-0.26453864574432373,
-1.0482275485992432,
1.5578138828277588,
0.9072574973106384,
-0.21440687775611877,
-0.6329219937324524,
-0.9170714020729065,
1.3509576320648193,
1.967649221420288,
1.087760090827942,
0.027245670557022095,
-0.9435643553733826,
-0.7666667103767395,
0.13315489888191223,
0.13436904549598694,
0.42274537682533264,
1.0109272003173828,
0.12369444221258163,
0.18344746530056,
1.3003419637680054,
1.0256839990615845,
-0.3415811061859131,
0.5342761278152466,
-0.8199165463447571,
-0.35239943861961365,
0.48334643244743347,
0.3295716941356659,
0.04048408940434456,
0.3181624114513397,
-1.0534919500350952,
-0.22139307856559753,
-0.27290406823158264,
-0.8100864887237549,
-0.7760083079338074,
-0.38995760679244995,
-0.4906470477581024,
1.758124589920044,
-0.17519228160381317,
-0.5437887907028198,
0.10256282240152359,
-0.7768285274505615,
-0.08187472075223923,
-1.054376244544983,
0.19815129041671753,
-0.09319151937961578,
0.09879599511623383,
-0.11109894514083862,
1.6762713193893433,
-1.0312650203704834,
-2.2560083866119385,
0.09698763489723206,
0.27867087721824646,
-0.34139320254325867,
-0.09836483001708984,
1.8295247554779053,
0.47218993306159973,
1.4280191659927368,
1.5172818899154663,
1.113288164138794,
-0.6746306419372559,
-1.2773436307907104,
0.8222349882125854,
0.8765648007392883,
-1.2907500267028809,
0.9841813445091248,
-0.2051386684179306,
-0.6180486083030701,
0.5835438370704651,
1.2802835702896118,
0.42025354504585266,
-1.9753799438476562,
0.9011847376823425,
-1.179165005683899,
0.9433842301368713,
0.799763023853302,
0.8463877439498901,
0.14484845101833344,
0.8970574140548706,
-1.2246421575546265,
-1.0372498035430908,
-0.5695925354957581,
-0.6203012466430664,
1.8419724702835083,
-0.2643668055534363,
0.29628825187683105,
-0.26744920015335083,
-1.2255173921585083,
0.15427790582180023,
0.789518415927887,
0.3572204113006592,
-0.32906463742256165,
0.6799824833869934,
-0.7007400393486023,
-1.0281611680984497,
-1.2916123867034912,
-0.48436737060546875,
-1.025081753730774,
-0.8869020938873291,
0.9939916133880615,
0.7527018189430237,
0.5687757730484009,
1.9684042930603027,
0.7319097518920898,
0.2344570904970169,
-2.480715036392212,
0.8023009896278381,
0.3491191267967224,
-0.1269858032464981,
0.8915754556655884,
0.343110591173172,
1.316664695739746,
-0.09736756235361099,
0.6274896860122681,
-2.3686723709106445,
2.1951732635498047,
-0.2240126132965088,
0.6811761856079102,
0.035437632352113724,
-0.03686448559165001,
1.0432597398757935,
0.5092666149139404,
0.46094682812690735,
-1.159796118736267,
0.9189459681510925,
-0.517935037612915,
1.1184329986572266,
0.8423366546630859,
-0.9617375135421753,
0.24516485631465912,
1.2399647235870361,
0.363728404045105,
-0.5058873295783997,
-1.034415364265442,
-0.8252852559089661,
0.938511848449707,
1.7239954471588135,
-0.04932700842618942,
0.11458136886358261,
0.7639656066894531,
0.8091575503349304,
-1.295993447303772,
0.024044465273618698,
-0.4878762364387512,
-0.7211205959320068,
1.8065942525863647,
2.0192434787750244,
-0.06341401487588882,
0.04062538966536522,
-0.7411458492279053,
-1.4502294063568115,
0.8901281952857971,
0.12768012285232544,
-0.13736778497695923,
0.762394368648529,
-0.6936531662940979,
1.1635838747024536,
0.7233654856681824,
0.8455812931060791,
0.18535016477108002,
-0.018855828791856766,
0.2889508903026581,
-0.27281928062438965,
-1.1457087993621826,
-0.3659134805202484,
-1.0110360383987427,
-2.650458812713623,
0.3613341152667999,
-0.24057269096374512,
-1.5073559284210205,
0.1492859125137329,
-0.9394926428794861,
0.7352731823921204,
-0.5259467363357544,
-1.2171638011932373,
-1.3449586629867554,
0.3240225613117218,
-0.18218347430229187,
0.8187311291694641,
-1.6086971759796143,
-0.18761247396469116,
1.1652048826217651,
0.9076664447784424,
-0.6537525653839111,
0.8990855813026428,
0.2697798013687134,
0.8418512344360352,
0.9280633926391602,
-0.4076088070869446,
0.5557721853256226,
0.2505247890949249,
-1.4083954095840454,
0.38139787316322327,
1.4690232276916504,
0.1485145092010498,
1.3259481191635132,
-0.3706507384777069,
-0.01669275388121605,
0.4219931960105896,
-0.3248063623905182,
-0.5551451444625854,
-0.6832690834999084,
0.5891004204750061,
-0.11470070481300354,
-0.9952646493911743,
-0.06751011312007904,
0.0398978628218174,
-0.22383388876914978,
0.33280834555625916,
-1.5034573078155518,
-0.13759109377861023,
-0.4261927902698517,
-0.5539251565933228,
-1.4692940711975098,
-0.05172339454293251,
1.3445475101470947,
-0.7786950469017029,
-0.10267610847949982,
0.5650305151939392,
0.25129589438438416,
0.4939511716365814,
0.6638404130935669,
-0.720198392868042,
-0.21639379858970642,
-0.22369889914989471,
-0.43535315990448,
0.3461308777332306,
1.2519309520721436,
-0.11579752713441849,
-0.9597184658050537,
0.48353639245033264,
-0.21904230117797852,
0.17852981388568878,
1.921981692314148,
0.04159493371844292,
-0.9028742909431458,
0.41442281007766724,
-0.6760297417640686,
1.8403798341751099,
1.6486382484436035,
1.2969939708709717,
-0.1312474012374878,
-0.9352561831474304,
0.600883424282074,
-0.3370423913002014,
-0.29802003502845764,
0.9812023639678955,
0.36611688137054443,
-0.2961868345737457,
-1.4496519565582275,
0.7620018720626831,
1.2740874290466309,
-0.6890035271644592,
-0.7785851955413818,
0.03575283661484718,
-0.8355581760406494,
1.267061710357666,
0.6519859433174133,
0.33571407198905945,
0.27674007415771484,
1.639264702796936,
0.7062200307846069,
-0.5989991426467896,
0.5432773232460022,
0.42894500494003296,
-0.14231273531913757,
-2.0135319232940674,
-1.1153804063796997,
0.2770397663116455,
-0.4348110258579254,
-1.4350507259368896,
1.4293242692947388,
-1.249848484992981,
-1.100792646408081,
0.5169438123703003,
0.16972914338111877,
1.2468352317810059,
0.33570796251296997,
1.716518521308899,
2.0393643379211426,
0.8925991058349609,
0.48683232069015503,
1.0962891578674316,
-0.2694542109966278,
-0.23392906785011292,
1.676628589630127,
-0.4674791395664215,
0.6240127682685852,
1.055017113685608,
-0.49633005261421204,
-1.2704805135726929,
-0.8797866702079773,
-1.1588619947433472,
-0.7347769141197205,
1.0290849208831787,
0.12566305696964264,
-1.1014559268951416,
0.4031909108161926,
1.6448341608047485,
0.04030696675181389,
-0.12086895853281021,
0.7789697647094727,
0.3378007709980011,
-0.6508357524871826,
-0.07639411836862564,
-1.0473835468292236,
0.5758737325668335,
-0.2953529357910156,
-0.3659776747226715,
0.21178896725177765,
0.658160924911499,
1.1912533044815063,
0.13497081398963928,
0.13275368511676788,
1.261098027229309,
-1.3983116149902344,
1.1382911205291748,
-0.9959938526153564,
0.36923089623451233,
-2.295332908630371,
1.4502567052841187,
-0.8459189534187317,
1.906611680984497,
-2.7183969020843506,
0.4633689820766449,
-0.4397698640823364,
-0.6340093612670898,
0.166838139295578,
-0.13733026385307312,
0.15641461312770844,
-0.07624122500419617,
-0.986510157585144,
-0.155936136841774,
-0.8591182231903076,
0.49161234498023987,
1.2254694700241089,
1.3554425239562988,
-0.915486216545105,
-0.24566584825515747,
-1.5710725784301758,
-0.1650131493806839,
-0.49269452691078186,
0.13220056891441345,
-1.7651728391647339,
-0.18398164212703705,
-2.0937583446502686,
-2.4616897106170654,
-1.357365608215332,
-1.0167721509933472,
1.3677959442138672,
0.21700124442577362,
-0.9242547154426575,
1.1555219888687134,
-0.46613481640815735,
-1.789891242980957,
1.208068609237671,
-2.1926870346069336
] |
https://github.com/huggingface/datasets/issues/4609 | librispeech dataset has to download whole subset when specifing the split to use | Hi! You can use streaming to fetch only a subset of the data:
```python
raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100", streaming=True)
```
Also, we plan to make it possible to download a particular split in the non-streaming mode, but this task is not easy due to how our dataset scripts are structured. | ## Describe the bug
librispeech dataset has to download whole subset when specifing the split to use
## Steps to reproduce the bug
see below
# Sample code to reproduce the bug
```
!pip install datasets
from datasets import load_dataset
raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100")
```
## Expected results
The split "train.clean.100" is downloaded.
## Actual results
All four splits in "clean" subset is downloaded.
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
| 669 | 51 | librispeech dataset has to download whole subset when specifing the split to use
## Describe the bug
librispeech dataset has to download whole subset when specifing the split to use
## Steps to reproduce the bug
see below
# Sample code to reproduce the bug
```
!pip install datasets
from datasets import load_dataset
raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100")
```
## Expected results
The split "train.clean.100" is downloaded.
## Actual results
All four splits in "clean" subset is downloaded.
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.13
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
Hi! You can use streaming to fetch only a subset of the data:
```python
raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100", streaming=True)
```
Also, we plan to make it possible to download a particular split in the non-streaming mode, but this task is not easy due to how our dataset scripts are structured. | [
-1.1628793478012085,
-0.8780815005302429,
-0.7078278064727783,
1.4032244682312012,
-0.15092341601848602,
-1.2194372415542603,
0.16948649287223816,
-1.1026760339736938,
1.6694611310958862,
-0.81368088722229,
0.3151269257068634,
-1.6724976301193237,
-0.018056590110063553,
-0.5308997631072998,
-0.7351554036140442,
-0.9328351020812988,
-0.5118682980537415,
-0.5771847367286682,
0.9782077670097351,
2.5181326866149902,
1.1462510824203491,
-1.3567954301834106,
2.645061492919922,
0.7331746220588684,
-0.08970745652914047,
-0.9667037129402161,
0.6163453459739685,
0.07770708948373795,
-1.3388941287994385,
-0.39651960134506226,
-0.8808544278144836,
-0.16199693083763123,
-0.5757612586021423,
-0.5394420623779297,
0.01838509738445282,
0.38055145740509033,
-0.39006924629211426,
-0.502463161945343,
-0.4861285090446472,
-0.794079065322876,
0.4456768333911896,
-0.42201298475265503,
0.9190472960472107,
-0.46295347809791565,
1.7558327913284302,
-0.6052141785621643,
0.5454409122467041,
0.8384127020835876,
1.2701644897460938,
0.23122639954090118,
0.008914119563996792,
0.35966116189956665,
0.4135313034057617,
-0.025240115821361542,
0.45212629437446594,
1.0948938131332397,
0.5768445730209351,
0.5246895551681519,
0.698548436164856,
-2.2106666564941406,
1.2859493494033813,
-0.9973489046096802,
0.2574402391910553,
1.436355471611023,
-0.9274293780326843,
0.4038352966308594,
-1.7526495456695557,
-0.08519576489925385,
0.5291147232055664,
-2.252910614013672,
0.31472423672676086,
-1.282405138015747,
-0.5247125029563904,
1.0601608753204346,
0.4609825313091278,
-1.1953212022781372,
0.08784747123718262,
-0.3771219849586487,
0.9565812349319458,
0.5539671182632446,
1.1741636991500854,
-1.6599912643432617,
-0.07077127695083618,
-0.25862279534339905,
0.029730714857578278,
-1.336634874343872,
-1.439468502998352,
0.514985978603363,
0.6238790154457092,
0.5322859287261963,
-0.05685611069202423,
0.8798062205314636,
-1.0253247022628784,
0.8091545701026917,
-0.9982275366783142,
-1.7322512865066528,
-1.4260257482528687,
-2.306600570678711,
-2.3413374423980713,
0.7980483174324036,
-0.4055839776992798,
-0.5056845545768738,
2.0815412998199463,
-1.0650261640548706,
-1.766162395477295,
1.186934232711792,
0.14866402745246887,
-0.04853203892707825,
2.3926851749420166,
0.2620042562484741,
-0.6905480623245239,
0.47203367948532104,
-0.7678751349449158,
0.7058259844779968,
-0.4960255026817322,
1.2987377643585205,
0.4424750506877899,
-1.0921528339385986,
1.5932527780532837,
-0.42798781394958496,
0.6384640336036682,
-0.6979678273200989,
-0.5243650674819946,
-0.7290040254592896,
0.3107086718082428,
1.8908683061599731,
-0.30598968267440796,
1.5689347982406616,
-0.27728721499443054,
-1.5093880891799927,
-1.6184918880462646,
0.8611751794815063,
0.4978199005126953,
-0.6562930941581726,
0.08529668301343918,
-0.30144980549812317,
0.10850831121206284,
-0.1472214162349701,
1.067062497138977,
1.2509939670562744,
0.766871452331543,
-0.383044570684433,
-0.8968772888183594,
0.20509585738182068,
-0.010721022263169289,
-0.7493365406990051,
-1.748553991317749,
-0.3387422561645508,
0.13532787561416626,
0.5804688334465027,
-1.2764649391174316,
1.7757893800735474,
0.937865138053894,
1.929364562034607,
0.9649196267127991,
-0.3899495601654053,
1.4548425674438477,
0.11436835676431656,
1.866830587387085,
-0.4203791916370392,
0.6903061866760254,
-0.3450847864151001,
-1.0703380107879639,
0.7970178127288818,
-0.2769363820552826,
-2.039149284362793,
-0.7811573147773743,
-0.9056719541549683,
-0.18381866812705994,
-0.764007568359375,
1.0355911254882812,
-0.21170401573181152,
-1.324511170387268,
0.21710287034511566,
-0.7729998826980591,
0.03643558919429779,
-1.312402367591858,
0.35262686014175415,
0.6909065246582031,
-0.6021854877471924,
0.10485765337944031,
-0.2244768738746643,
-1.303153395652771,
-0.413803368806839,
0.2673279941082001,
1.8491134643554688,
-0.8247441053390503,
0.9620140790939331,
0.9854969382286072,
-0.7560166120529175,
-0.09744351357221603,
0.4028742015361786,
-0.3261493146419525,
0.8540295958518982,
-1.0405597686767578,
-0.347243994474411,
1.2372078895568848,
-0.21950511634349823,
-0.601513147354126,
1.5517081022262573,
0.6905242204666138,
-1.005539894104004,
-0.18468792736530304,
-0.15086598694324493,
-0.7867395281791687,
0.048524342477321625,
-1.6595115661621094,
-0.07482900470495224,
0.3539394438266754,
-1.5382345914840698,
-0.5455458760261536,
-0.15115688741207123,
1.2439690828323364,
-0.1811458021402359,
1.409125804901123,
-0.3454490303993225,
-0.17248903214931488,
-0.45437660813331604,
-0.4268782436847687,
0.12285816669464111,
-0.22499896585941315,
-0.6266840100288391,
0.24824298918247223,
-0.7389340400695801,
0.33184581995010376,
1.4144325256347656,
0.33225756883621216,
0.11193402111530304,
0.5676778554916382,
1.0541108846664429,
0.34980151057243347,
-0.14226175844669342,
-0.9214301705360413,
-1.5729987621307373,
1.9914933443069458,
-1.4783185720443726,
2.008517265319824,
0.6740850806236267,
-0.0816158726811409,
-1.799005150794983,
-1.8994178771972656,
1.3238061666488647,
1.090079665184021,
2.3815221786499023,
0.5401638746261597,
0.4443126916885376,
-0.775397539138794,
-0.7177663445472717,
0.324372261762619,
-1.057647705078125,
-0.6633747816085815,
0.2502184510231018,
2.3091673851013184,
1.7190037965774536,
-0.4325523376464844,
-0.10223103314638138,
-1.1073859930038452,
1.444314956665039,
-0.15272973477840424,
0.27348947525024414,
1.9941402673721313,
-0.2529817223548889,
-1.032361388206482,
1.2911244630813599,
-2.291168689727783,
0.18402481079101562,
1.90350341796875,
0.23782086372375488,
0.09511741250753403,
-1.3406367301940918,
-0.6811532974243164,
-0.3319343030452728,
-0.3780454695224762,
-1.213602066040039,
0.5449463129043579,
-0.23246146738529205,
-0.7158084511756897,
-1.4026249647140503,
0.13763323426246643,
-1.114617943763733,
-1.7202281951904297,
0.20242102444171906,
1.8082765340805054,
2.013254165649414,
-0.7349976301193237,
1.5186227560043335,
-0.27725714445114136,
0.07942575961351395,
1.22227144241333,
1.1320853233337402,
3.1284289360046387,
1.9319182634353638,
-1.3222836256027222,
0.6989585161209106,
-0.05513247847557068,
-0.40994003415107727,
1.1657662391662598,
-1.1217305660247803,
1.3434685468673706,
-0.11760276556015015,
-1.1569087505340576,
-1.2302424907684326,
0.8934748768806458,
0.44255319237709045,
0.07616617530584335,
-0.48829975724220276,
1.2014144659042358,
0.03538186848163605,
1.446601152420044,
0.5541766881942749,
-0.3269903361797333,
0.7258105278015137,
-0.4191458821296692,
-0.4980982542037964,
1.5252562761306763,
0.21912826597690582,
-1.4739327430725098,
-2.341789484024048,
-0.3011993169784546,
-0.9341436624526978,
0.018891148269176483,
-0.6082159876823425,
-0.9904001951217651,
1.6767699718475342,
0.4433377981185913,
-1.2288035154342651,
-0.2729162275791168,
-0.30353844165802,
-0.6376186609268188,
2.7951152324676514,
-1.53688645362854,
-0.22674764692783356,
-1.0385313034057617,
-0.6828339695930481,
1.6317201852798462,
-1.246356725692749,
-0.1934499591588974,
-1.100236177444458,
-0.5480929613113403,
-1.3086810111999512,
-0.5595055818557739,
0.033045802265405655,
-1.004659652709961,
0.8792839050292969,
0.2094375193119049,
-1.1782771348953247,
-0.28494057059288025,
-0.9121292233467102,
0.8329476118087769,
-0.09249228984117508,
0.2978900074958801,
1.839056134223938,
0.5008483529090881,
-0.34352579712867737,
0.6264564394950867,
1.165657877922058,
0.6742322444915771,
-0.6867949366569519,
0.21982695162296295,
-0.7114751935005188,
0.272739052772522,
-1.22884202003479,
0.2381213903427124,
-2.778736114501953,
0.5767905116081238,
-0.13345901668071747,
-0.0666765421628952,
-0.06216850131750107,
-1.2721210718154907,
1.112230658531189,
2.557877540588379,
-1.239035964012146,
0.5414955615997314,
0.2743711769580841,
1.1864843368530273,
-1.571089267730713,
0.3253118693828583,
-0.3866969048976898,
2.0678515434265137,
0.2261005938053131,
1.1308605670928955,
-0.4335483908653259,
-2.236260175704956,
0.6889718770980835,
-1.2549742460250854,
-1.22463858127594,
0.8457368016242981,
-0.8090009093284607,
0.057232797145843506,
-1.3543670177459717,
-0.13139812648296356,
-0.7722306251525879,
-1.3043605089187622,
0.7027041912078857,
0.141161248087883,
0.5135737061500549,
-0.5486221313476562,
0.37955042719841003,
-2.302778720855713,
-1.3112900257110596,
-0.29914650321006775,
-0.8113136887550354,
0.425483763217926,
-0.2320282906293869,
0.7877504825592041,
-0.2389698326587677,
0.004105852916836739,
0.3730933666229248,
1.4137959480285645,
3.389075994491577,
0.1765715330839157,
0.35956016182899475,
-0.16711510717868805,
-1.0547301769256592,
1.4950296878814697,
1.0122573375701904,
-0.12825648486614227,
-0.599561333656311,
-1.0666303634643555,
1.2071716785430908,
1.9637597799301147,
1.0118595361709595,
0.0654645785689354,
-0.8629778623580933,
-0.7079638838768005,
0.01629890874028206,
0.08907967805862427,
0.3850097358226776,
0.9317420721054077,
0.09838925302028656,
0.1141381710767746,
1.5421698093414307,
1.2568292617797852,
-0.3432934582233429,
0.2977352738380432,
-0.7917430996894836,
-0.4489755630493164,
0.6047667860984802,
0.3653378188610077,
0.02704164758324623,
0.3164212107658386,
-0.9589911103248596,
-0.23786014318466187,
-0.4120835065841675,
-0.92714923620224,
-0.7043330073356628,
-0.4861065149307251,
-0.388485312461853,
1.6906592845916748,
-0.00360292661935091,
-0.47325366735458374,
-0.0069138891994953156,
-0.8742743730545044,
-0.07134687900543213,
-1.1025587320327759,
0.31967902183532715,
-0.09487323462963104,
-0.0725129097700119,
-0.03867526352405548,
1.7852892875671387,
-0.9534175395965576,
-2.0273571014404297,
0.3030656576156616,
0.24876706302165985,
-0.3937283158302307,
0.14021900296211243,
1.6338353157043457,
0.5980556011199951,
1.3416792154312134,
1.343329906463623,
0.9060729146003723,
-0.7035131454467773,
-1.3396927118301392,
0.5950040817260742,
1.0147303342819214,
-1.5106713771820068,
0.7847498655319214,
0.10564127564430237,
-0.5207010507583618,
0.5847063064575195,
1.223813772201538,
0.47537121176719666,
-1.8964996337890625,
0.7251068353652954,
-0.8352770805358887,
0.793758749961853,
0.7519926428794861,
0.6972955465316772,
0.18354222178459167,
0.8079069256782532,
-1.2472172975540161,
-1.119974970817566,
-0.6838810443878174,
-0.5957916975021362,
1.9387129545211792,
-0.23083198070526123,
0.5039147138595581,
-0.24928954243659973,
-1.3193011283874512,
-0.015889931470155716,
0.6148248910903931,
0.32686561346054077,
-0.44914939999580383,
0.7287642359733582,
-0.5995612144470215,
-1.1452783346176147,
-1.4050590991973877,
-0.40091726183891296,
-1.0140842199325562,
-0.9428767561912537,
1.1375144720077515,
0.7928082942962646,
0.2832125425338745,
1.8436870574951172,
0.6809372901916504,
0.24030590057373047,
-2.6859676837921143,
0.9464361667633057,
0.3013820946216583,
-0.03367224708199501,
0.8485435843467712,
0.33793920278549194,
1.0140836238861084,
-0.12020442634820938,
0.5646357536315918,
-2.5028254985809326,
2.3198957443237305,
-0.2656605839729309,
0.5926303267478943,
-0.007440659217536449,
-0.11157584190368652,
1.0388692617416382,
0.6407023668289185,
0.5163913369178772,
-1.0814945697784424,
0.6869934797286987,
-0.6093747019767761,
1.2749412059783936,
0.8431375026702881,
-0.8384277820587158,
-0.051082003861665726,
1.3057383298873901,
0.49679726362228394,
-0.42500442266464233,
-0.8985040187835693,
-0.9475101232528687,
0.9235888719558716,
1.7660776376724243,
-0.12002461403608322,
-0.001359439454972744,
0.9348630905151367,
0.6275991797447205,
-1.3298124074935913,
0.057667359709739685,
-0.7274401783943176,
-0.7646206617355347,
1.599106788635254,
2.0958242416381836,
-0.042134661227464676,
-0.1655919849872589,
-0.7714566588401794,
-1.264979362487793,
0.8476653695106506,
0.03423401713371277,
0.15453413128852844,
0.6399524211883545,
-0.5408574938774109,
1.0956436395645142,
0.8604258298873901,
0.9242889881134033,
0.2722320556640625,
0.19090281426906586,
0.3485933542251587,
-0.28098174929618835,
-1.1569719314575195,
-0.1542212814092636,
-0.9648981094360352,
-2.5731496810913086,
0.4902072250843048,
-0.271748811006546,
-1.4087340831756592,
-0.025897763669490814,
-1.0823336839675903,
0.8972635865211487,
-0.5162855982780457,
-1.1057531833648682,
-1.5585782527923584,
0.1418231725692749,
-0.12705522775650024,
0.8856104612350464,
-1.5516170263290405,
-0.14429058134555817,
1.224218726158142,
0.8836305737495422,
-0.6592165231704712,
1.0666354894638062,
0.1987743079662323,
1.0553189516067505,
0.7777647972106934,
-0.41251063346862793,
0.5455589294433594,
0.083321213722229,
-1.443843126296997,
0.44223418831825256,
1.151429533958435,
0.29245874285697937,
1.4428211450576782,
-0.6367380023002625,
0.10645916312932968,
0.34011614322662354,
-0.45024344325065613,
-0.4494584798812866,
-0.6041614413261414,
0.7730547189712524,
0.005556008778512478,
-0.9882479310035706,
0.036002397537231445,
-0.13074053823947906,
-0.16416727006435394,
0.21572253108024597,
-1.382890224456787,
-0.15858517587184906,
-0.3382404148578644,
-0.7015314698219299,
-1.1906256675720215,
-0.1544436514377594,
1.387687087059021,
-0.8301963210105896,
-0.15869367122650146,
0.4930030107498169,
0.33858129382133484,
0.551095724105835,
0.6599951982498169,
-0.6678632497787476,
-0.3141731917858124,
-0.2584787905216217,
-0.3457125425338745,
0.3545466661453247,
1.4300354719161987,
-0.14904022216796875,
-1.0305287837982178,
0.7048137187957764,
-0.4004042148590088,
0.14229801297187805,
1.943644642829895,
0.09935511648654938,
-0.8536054491996765,
0.3038221001625061,
-0.6205072402954102,
1.9371119737625122,
1.768885850906372,
1.4066184759140015,
-0.10516000539064407,
-0.9669992923736572,
0.5398436188697815,
-0.3654994070529938,
-0.39685773849487305,
0.8755585551261902,
0.4784378707408905,
-0.2724478542804718,
-1.376539707183838,
0.7452658414840698,
1.2431604862213135,
-0.8015124797821045,
-0.8411265015602112,
0.12253676354885101,
-0.858238935470581,
1.0316909551620483,
0.7436420917510986,
0.44583937525749207,
0.3591079115867615,
1.6172983646392822,
0.856055498123169,
-0.5941725969314575,
0.4700503945350647,
0.48573440313339233,
-0.19469024240970612,
-2.021686315536499,
-1.1378215551376343,
0.3891114592552185,
-0.5425539612770081,
-1.5610241889953613,
1.4643306732177734,
-1.1740870475769043,
-0.92155921459198,
0.5015778541564941,
0.1541578471660614,
1.413190245628357,
0.3634156286716461,
1.553276538848877,
1.9998382329940796,
0.9491154551506042,
0.34239330887794495,
1.302858591079712,
-0.1709592491388321,
-0.4574398100376129,
1.7654883861541748,
-0.46154093742370605,
0.41159358620643616,
1.1315237283706665,
-0.36439281702041626,
-1.0976513624191284,
-0.7257750630378723,
-1.190345287322998,
-0.7018114924430847,
1.2318016290664673,
0.12947766482830048,
-1.1428449153900146,
0.1983373910188675,
1.561503291130066,
0.00311288982629776,
-0.3017570674419403,
0.6369519233703613,
0.33890098333358765,
-0.6933067440986633,
-0.04408471658825874,
-0.9817621111869812,
0.5810397267341614,
-0.11445305496454239,
-0.31806299090385437,
0.2933509945869446,
0.4259471297264099,
1.3627907037734985,
0.023882761597633362,
0.20446157455444336,
1.1948270797729492,
-1.408876657485962,
1.4953973293304443,
-0.7113884687423706,
0.20407359302043915,
-2.3133277893066406,
1.3697878122329712,
-0.7726025581359863,
1.8329765796661377,
-2.6232340335845947,
0.39415574073791504,
-0.48853620886802673,
-0.4547981321811676,
0.2321004420518875,
-0.45073550939559937,
0.17252394556999207,
-0.1853458732366562,
-1.2659857273101807,
-0.07366196066141129,
-0.720761775970459,
0.6311171054840088,
1.086545467376709,
1.3835200071334839,
-1.17496657371521,
-0.34236544370651245,
-1.7215739488601685,
-0.10850901901721954,
-0.8395630121231079,
0.3669426441192627,
-1.9229518175125122,
-0.183356374502182,
-1.8314425945281982,
-2.3891689777374268,
-1.4018806219100952,
-0.7899882197380066,
1.187287449836731,
0.11755149066448212,
-0.8773873448371887,
1.1591770648956299,
-0.4177488386631012,
-1.8859314918518066,
1.1309969425201416,
-2.2466683387756348
] |
https://github.com/huggingface/datasets/issues/4606 | evaluation result changes after `datasets` version change | Hi! The GH/no-namespace datasets versioning is synced with the version of the `datasets` lib, which means that the `wikiann` script was modified between the two compared versions. In this scenario, you can ensure reproducibility by pinning the script version, which is done by passing `revision="x.y.z"` (e.g. `revision="2.2.0"`) to `load_dataset.`
| ## Describe the bug
evaluation result changes after `datasets` version change
## Steps to reproduce the bug
1. Train a model on WikiAnn
2. reload the ckpt -> test accuracy becomes same as eval accuracy
3. such behavior is gone after downgrading `datasets`
https://colab.research.google.com/drive/1kYz7-aZRGdayaq-gDTt30tyEgsKlpYOw?usp=sharing
## Expected results
evaluation result shouldn't change before/after `datasets` version changes
## Actual results
evaluation result changes before/after `datasets` version changes
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: colab
- Python version: 3.7.13
- PyArrow version: 6.0.1
Q. How could the evaluation result change before/after `datasets` version changes? | 670 | 49 | evaluation result changes after `datasets` version change
## Describe the bug
evaluation result changes after `datasets` version change
## Steps to reproduce the bug
1. Train a model on WikiAnn
2. reload the ckpt -> test accuracy becomes same as eval accuracy
3. such behavior is gone after downgrading `datasets`
https://colab.research.google.com/drive/1kYz7-aZRGdayaq-gDTt30tyEgsKlpYOw?usp=sharing
## Expected results
evaluation result shouldn't change before/after `datasets` version changes
## Actual results
evaluation result changes before/after `datasets` version changes
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.3.2
- Platform: colab
- Python version: 3.7.13
- PyArrow version: 6.0.1
Q. How could the evaluation result change before/after `datasets` version changes?
Hi! The GH/no-namespace datasets versioning is synced with the version of the `datasets` lib, which means that the `wikiann` script was modified between the two compared versions. In this scenario, you can ensure reproducibility by pinning the script version, which is done by passing `revision="x.y.z"` (e.g. `revision="2.2.0"`) to `load_dataset.`
| [
-1.1145949363708496,
-0.8017339706420898,
-0.7525081634521484,
1.445859670639038,
-0.1489378958940506,
-1.2826945781707764,
0.12733592092990875,
-1.0310635566711426,
1.7682018280029297,
-0.8476486802101135,
0.307710736989975,
-1.6360515356063843,
-0.0033244872465729713,
-0.5378782153129578,
-0.7276726961135864,
-0.906208872795105,
-0.36650940775871277,
-0.7454903721809387,
0.963222324848175,
2.486398458480835,
1.148302435874939,
-1.3150500059127808,
2.664520263671875,
0.6537613868713379,
-0.20887605845928192,
-0.9819523692131042,
0.5401626825332642,
-0.054048001766204834,
-1.373044490814209,
-0.359109103679657,
-0.8861538767814636,
-0.08580008894205093,
-0.6389508843421936,
-0.5990304350852966,
0.10599027574062347,
0.3451574742794037,
-0.3783131539821625,
-0.532695472240448,
-0.4479614496231079,
-0.8522434830665588,
0.3909779489040375,
-0.27006474137306213,
1.0023149251937866,
-0.34494876861572266,
1.8159208297729492,
-0.6215552687644958,
0.45180219411849976,
0.7397943139076233,
1.2763996124267578,
0.22659553587436676,
-0.004913222510367632,
0.3288068175315857,
0.3674199879169464,
0.06092638522386551,
0.45225781202316284,
1.156883716583252,
0.6415414810180664,
0.47346681356430054,
0.7515996694564819,
-2.2429633140563965,
1.2728947401046753,
-0.9812794923782349,
0.27770328521728516,
1.318520188331604,
-0.992978572845459,
0.33293095231056213,
-1.7703922986984253,
-0.03146268427371979,
0.49624791741371155,
-2.226369857788086,
0.21572096645832062,
-1.3224800825119019,
-0.4568394422531128,
0.973971962928772,
0.32119280099868774,
-1.2479677200317383,
0.08136223256587982,
-0.3949534296989441,
0.9897377490997314,
0.46831074357032776,
1.208114504814148,
-1.690915822982788,
-0.11021927744150162,
-0.36745360493659973,
0.16802014410495758,
-1.2946560382843018,
-1.5198967456817627,
0.5333161950111389,
0.7697441577911377,
0.5466573238372803,
-0.09065686911344528,
0.9975768327713013,
-0.8856238126754761,
0.7229625582695007,
-0.9490649104118347,
-1.808180332183838,
-1.390249252319336,
-2.177626371383667,
-2.257899761199951,
0.7347087860107422,
-0.4814920425415039,
-0.40068742632865906,
2.031585693359375,
-1.0644776821136475,
-1.9205907583236694,
1.1070301532745361,
0.3574385643005371,
-0.08389914035797119,
2.2959229946136475,
0.22644966840744019,
-0.7666970491409302,
0.44312891364097595,
-0.7078939080238342,
0.7219594120979309,
-0.3749065697193146,
1.2802643775939941,
0.4618818759918213,
-1.1446207761764526,
1.5263806581497192,
-0.4719718396663666,
0.6450884342193604,
-0.7115713953971863,
-0.4119246304035187,
-0.7811180353164673,
0.2192915976047516,
1.9005889892578125,
-0.3364177346229553,
1.5818289518356323,
-0.23587927222251892,
-1.5297956466674805,
-1.5345286130905151,
0.7750919461250305,
0.5289581418037415,
-0.6644281148910522,
0.1124822199344635,
-0.26026013493537903,
0.11206802725791931,
-0.03900498151779175,
1.1298891305923462,
1.2641855478286743,
0.7999763488769531,
-0.2232833355665207,
-0.9147534966468811,
0.2054368406534195,
-0.07393137365579605,
-0.7335184812545776,
-1.7949726581573486,
-0.39083269238471985,
0.13320066034793854,
0.6481753587722778,
-1.2182846069335938,
1.774696707725525,
0.837870717048645,
1.9066946506500244,
1.01472008228302,
-0.3523081839084625,
1.5816372632980347,
0.018316689878702164,
1.8572845458984375,
-0.3846805989742279,
0.7269046306610107,
-0.37601420283317566,
-1.209402084350586,
0.8352546691894531,
-0.2854967415332794,
-2.0631611347198486,
-0.6248987913131714,
-0.8613182306289673,
-0.10989712923765182,
-0.7012474536895752,
0.9572219252586365,
-0.27474817633628845,
-1.3776335716247559,
0.24678291380405426,
-0.7726506590843201,
0.047953665256500244,
-1.3307056427001953,
0.27378860116004944,
0.791035532951355,
-0.6218360662460327,
0.05866069346666336,
-0.2990727126598358,
-1.3065251111984253,
-0.5578705668449402,
0.22185030579566956,
1.8123779296875,
-0.8565077185630798,
1.1038081645965576,
0.9592077732086182,
-0.773409366607666,
-0.02937065251171589,
0.37954962253570557,
-0.358394056558609,
0.9032672643661499,
-1.0932495594024658,
-0.2964373826980591,
1.177789330482483,
-0.10501785576343536,
-0.6394232511520386,
1.4225468635559082,
0.674325704574585,
-1.0180158615112305,
-0.16546502709388733,
-0.19290222227573395,
-0.8018777966499329,
-0.047195591032505035,
-1.6152080297470093,
-0.11619257181882858,
0.2600661814212799,
-1.518985390663147,
-0.5151504278182983,
-0.20499855279922485,
1.3701870441436768,
-0.13857503235340118,
1.4306830167770386,
-0.3126829266548157,
-0.30486029386520386,
-0.5280249118804932,
-0.4098517894744873,
0.14753806591033936,
-0.2930012047290802,
-0.6820149421691895,
0.25659993290901184,
-0.8172279000282288,
0.3042140603065491,
1.376571774482727,
0.3072356581687927,
0.03923185169696808,
0.6029789447784424,
1.102170705795288,
0.3299637734889984,
-0.06414887309074402,
-0.9470621943473816,
-1.5378987789154053,
1.9752460718154907,
-1.3707581758499146,
1.9757630825042725,
0.6830219030380249,
-0.015217144042253494,
-1.746525526046753,
-2.02726149559021,
1.4809845685958862,
1.1997393369674683,
2.320563793182373,
0.616586446762085,
0.4725668430328369,
-0.7827398180961609,
-0.6193476319313049,
0.309591680765152,
-1.0139597654342651,
-0.8233203291893005,
0.1570797562599182,
2.4111595153808594,
1.6297273635864258,
-0.5235379338264465,
-0.19606681168079376,
-1.0556551218032837,
1.4266105890274048,
-0.19190619885921478,
0.21288061141967773,
1.996573805809021,
-0.2703772485256195,
-1.0518347024917603,
1.3092221021652222,
-2.292325258255005,
0.20980459451675415,
1.9957584142684937,
0.21056470274925232,
0.04511909931898117,
-1.434355616569519,
-0.7734315991401672,
-0.1602133959531784,
-0.4389500916004181,
-1.1999568939208984,
0.5655895471572876,
-0.20556512475013733,
-0.7798610329627991,
-1.461914300918579,
0.13836170732975006,
-1.0958315134048462,
-1.7550103664398193,
0.1821468472480774,
1.9009181261062622,
1.9106683731079102,
-0.7016502618789673,
1.499816656112671,
-0.31412288546562195,
0.1211712434887886,
1.2434744834899902,
1.2015124559402466,
3.209343433380127,
1.976449966430664,
-1.2842267751693726,
0.7248395681381226,
0.0002529313787817955,
-0.4797093868255615,
1.2091879844665527,
-1.2019035816192627,
1.2236446142196655,
-0.2573433518409729,
-1.2377036809921265,
-1.293893814086914,
0.8623331785202026,
0.43863770365715027,
0.04302746057510376,
-0.47082266211509705,
1.2830090522766113,
0.043233051896095276,
1.3769086599349976,
0.5700957179069519,
-0.31749817728996277,
0.708407998085022,
-0.4242035746574402,
-0.4764014184474945,
1.634831428527832,
0.17075790464878082,
-1.342348337173462,
-2.473818302154541,
-0.23130522668361664,
-0.8559199571609497,
0.003684207797050476,
-0.5663527846336365,
-0.9636620879173279,
1.6647226810455322,
0.5152093768119812,
-1.1988563537597656,
-0.2671017348766327,
-0.3309389650821686,
-0.5752983093261719,
2.671764612197876,
-1.485465168952942,
-0.18161098659038544,
-1.0073792934417725,
-0.5591917634010315,
1.5494258403778076,
-1.2125519514083862,
-0.21001587808132172,
-1.049647569656372,
-0.5270465612411499,
-1.335038661956787,
-0.5858849883079529,
-0.04249134659767151,
-0.9102102518081665,
0.8976770639419556,
0.17795531451702118,
-1.2736005783081055,
-0.27931368350982666,
-0.9428355693817139,
0.8438208103179932,
-0.03488346189260483,
0.2582075893878937,
1.9136775732040405,
0.4602426290512085,
-0.3510626554489136,
0.6587973833084106,
1.1255543231964111,
0.6857095956802368,
-0.6318858861923218,
0.34236037731170654,
-0.6847958564758301,
0.2270992547273636,
-1.4153517484664917,
0.1994248479604721,
-2.879514694213867,
0.6491342186927795,
-0.06253490597009659,
-0.017610231414437294,
-0.09116831421852112,
-1.2751517295837402,
1.0904239416122437,
2.570641279220581,
-1.1564488410949707,
0.4551622271537781,
0.23100273311138153,
1.1533132791519165,
-1.4999713897705078,
0.20038791000843048,
-0.45357781648635864,
2.1485435962677,
0.10418786108493805,
1.201361060142517,
-0.33563947677612305,
-2.212581157684326,
0.6018369793891907,
-1.248986005783081,
-1.1713449954986572,
0.9344544410705566,
-0.7403973937034607,
0.008453160524368286,
-1.3878360986709595,
-0.12991254031658173,
-0.7658092379570007,
-1.2326805591583252,
0.784992516040802,
0.020179344341158867,
0.5423810482025146,
-0.6590940952301025,
0.3864034116268158,
-2.147674083709717,
-1.3793492317199707,
-0.24052970111370087,
-0.9210655093193054,
0.4014493227005005,
-0.27271056175231934,
0.8092763423919678,
-0.1911136358976364,
0.03207751363515854,
0.2775670289993286,
1.3543146848678589,
3.350853681564331,
0.1633250117301941,
0.34348148107528687,
-0.1391521841287613,
-0.9906151294708252,
1.3896013498306274,
0.9662379622459412,
-0.24300244450569153,
-0.5201756954193115,
-1.0202974081039429,
1.1856013536453247,
1.8506851196289062,
1.067856788635254,
0.020599650219082832,
-0.8825452327728271,
-0.7185944318771362,
0.05416690558195114,
0.13805925846099854,
0.4740566313266754,
0.8672981858253479,
0.17773175239562988,
0.15002703666687012,
1.4249011278152466,
1.1590874195098877,
-0.30473193526268005,
0.3768679201602936,
-0.8630236387252808,
-0.5557531118392944,
0.629253089427948,
0.3571360111236572,
0.07548868656158447,
0.3292010724544525,
-1.074625015258789,
-0.23652026057243347,
-0.2943689823150635,
-1.0047993659973145,
-0.6952234506607056,
-0.5579259395599365,
-0.35136398673057556,
1.691237449645996,
-0.053734131157398224,
-0.4290003478527069,
-0.09547194093465805,
-0.7830977439880371,
0.029097268357872963,
-0.9871146082878113,
0.38195210695266724,
-0.2392605096101761,
-0.03299611061811447,
-0.08017591387033463,
1.6835530996322632,
-0.9942147135734558,
-1.9751425981521606,
0.31624263525009155,
0.30873674154281616,
-0.4161343574523926,
0.13709190487861633,
1.7135310173034668,
0.5849031805992126,
1.3873162269592285,
1.3422547578811646,
0.9916306734085083,
-0.6803218126296997,
-1.2346667051315308,
0.6114943623542786,
1.0193240642547607,
-1.4221880435943604,
0.7367717027664185,
0.053459055721759796,
-0.5886762142181396,
0.5804203152656555,
1.2779043912887573,
0.4262508153915405,
-1.9723045825958252,
0.7346530556678772,
-0.8173490762710571,
0.7453086376190186,
0.7497649192810059,
0.797147274017334,
0.11865032464265823,
0.7509914636611938,
-1.2714171409606934,
-1.0793275833129883,
-0.6329291462898254,
-0.5852068066596985,
1.909010410308838,
-0.2481599599123001,
0.4772580862045288,
-0.19831356406211853,
-1.3419650793075562,
-0.13512805104255676,
0.6633896231651306,
0.35487955808639526,
-0.4697287082672119,
0.7463304996490479,
-0.5971906185150146,
-1.0858092308044434,
-1.4115415811538696,
-0.46917393803596497,
-1.0506386756896973,
-0.8928036093711853,
1.0711742639541626,
0.8635087609291077,
0.34854191541671753,
1.8359535932540894,
0.6255181431770325,
0.1453540176153183,
-2.653385877609253,
0.8862662315368652,
0.43553388118743896,
-0.10767073929309845,
0.8700522780418396,
0.276641845703125,
1.0214262008666992,
-0.13233792781829834,
0.6349364519119263,
-2.3693666458129883,
2.2861416339874268,
-0.2414339929819107,
0.5993952751159668,
0.01955815963447094,
-0.1285279244184494,
1.0809787511825562,
0.49438926577568054,
0.5850986838340759,
-1.09506094455719,
0.7033225297927856,
-0.7145137786865234,
1.2073770761489868,
0.8763623237609863,
-0.8890789151191711,
-0.03591400384902954,
1.2824406623840332,
0.43677976727485657,
-0.49410974979400635,
-0.8001325726509094,
-1.0290789604187012,
0.9450773000717163,
1.8448004722595215,
-0.006351079326122999,
0.09944117814302444,
0.9010974168777466,
0.7204092144966125,
-1.384935736656189,
0.1112578958272934,
-0.7895153760910034,
-0.743625819683075,
1.5951640605926514,
1.9339858293533325,
-0.03796030580997467,
-0.19740420579910278,
-0.8326988220214844,
-1.1921336650848389,
0.7800838351249695,
0.16505849361419678,
0.06547103077173233,
0.7175251841545105,
-0.6147154569625854,
1.1736987829208374,
0.9024485349655151,
0.9954984188079834,
0.2347954511642456,
0.2745320498943329,
0.2463037520647049,
-0.23998792469501495,
-1.1856311559677124,
-0.16372117400169373,
-0.9555737972259521,
-2.5496826171875,
0.5149695873260498,
-0.23485736548900604,
-1.4408810138702393,
-0.09125165641307831,
-1.0301344394683838,
0.8472403883934021,
-0.5770622491836548,
-1.0685702562332153,
-1.557516098022461,
0.243752583861351,
-0.17346949875354767,
0.827487587928772,
-1.5579992532730103,
-0.02359163761138916,
1.299883246421814,
1.0053256750106812,
-0.7158957719802856,
1.0460612773895264,
0.24486134946346283,
0.9735264778137207,
1.0035324096679688,
-0.37034428119659424,
0.4917454421520233,
0.18864741921424866,
-1.3476028442382812,
0.4430283010005951,
1.1797491312026978,
0.28423452377319336,
1.572767734527588,
-0.7180643081665039,
0.032463639974594116,
0.37472808361053467,
-0.36005184054374695,
-0.5790081024169922,
-0.7975851893424988,
0.7059040665626526,
0.09385035187005997,
-0.9671823978424072,
0.059779711067676544,
-0.07288719713687897,
-0.09757013618946075,
0.21418702602386475,
-1.4950571060180664,
-0.07097439467906952,
-0.2724456787109375,
-0.6022928953170776,
-1.159703254699707,
-0.06602948904037476,
1.3631733655929565,
-0.7430009841918945,
-0.13309922814369202,
0.49131760001182556,
0.22799712419509888,
0.4836912155151367,
0.6292860507965088,
-0.618483304977417,
-0.42759817838668823,
-0.28316134214401245,
-0.3741614818572998,
0.3577006161212921,
1.3532977104187012,
-0.06406040489673615,
-0.9787271618843079,
0.7763879299163818,
-0.392706960439682,
0.0694606602191925,
1.9231094121932983,
0.09948891401290894,
-0.8860179781913757,
0.3276969790458679,
-0.6957639455795288,
1.9327030181884766,
1.7161809206008911,
1.3453617095947266,
-0.04522084444761276,
-1.0080021619796753,
0.6379705667495728,
-0.3108190596103668,
-0.4445226192474365,
0.9979913234710693,
0.4404081106185913,
-0.24763844907283783,
-1.3374475240707397,
0.6777565479278564,
1.3762319087982178,
-0.8686171174049377,
-0.9027061462402344,
0.14355584979057312,
-0.8524237871170044,
0.970617949962616,
0.7820810675621033,
0.41668254137039185,
0.2415129691362381,
1.5615787506103516,
0.7795107960700989,
-0.5027120113372803,
0.5568276047706604,
0.37078770995140076,
-0.082753024995327,
-1.9333950281143188,
-1.1431388854980469,
0.4237646758556366,
-0.44049450755119324,
-1.6242612600326538,
1.462619423866272,
-1.1855731010437012,
-0.903447151184082,
0.5720121264457703,
0.07459491491317749,
1.4097764492034912,
0.3450232744216919,
1.6068230867385864,
2.069554567337036,
0.8914477825164795,
0.2576559782028198,
1.3248112201690674,
-0.18900065124034882,
-0.3819618821144104,
1.7838655710220337,
-0.4573073983192444,
0.48775553703308105,
1.068589448928833,
-0.36590227484703064,
-1.033821940422058,
-0.8213707208633423,
-1.2600202560424805,
-0.6502134799957275,
1.148157000541687,
0.11210951954126358,
-1.1403130292892456,
0.27015408873558044,
1.548057198524475,
0.06485091149806976,
-0.25742843747138977,
0.7874126434326172,
0.4011691212654114,
-0.8091726303100586,
-0.0727672427892685,
-0.9672079086303711,
0.5597295165061951,
-0.17872454226016998,
-0.32301977276802063,
0.2987699806690216,
0.47082796692848206,
1.2873750925064087,
0.1040027067065239,
0.07151961326599121,
1.3047146797180176,
-1.3090475797653198,
1.5407309532165527,
-0.6689544916152954,
0.21913617849349976,
-2.4277281761169434,
1.4459654092788696,
-0.8602067828178406,
1.824875831604004,
-2.5856170654296875,
0.39625170826911926,
-0.563008189201355,
-0.353996604681015,
0.26267144083976746,
-0.37956729531288147,
0.17495965957641602,
-0.20259925723075867,
-1.2101727724075317,
-0.20665781199932098,
-0.806434154510498,
0.5542302131652832,
1.1926600933074951,
1.3800601959228516,
-1.1751750707626343,
-0.3331236243247986,
-1.7729976177215576,
-0.10366293042898178,
-0.5127958655357361,
0.4472999572753906,
-1.9389115571975708,
-0.2572445869445801,
-1.9169987440109253,
-2.4392168521881104,
-1.305647850036621,
-0.8218443989753723,
1.0877037048339844,
0.06843528151512146,
-0.9056978225708008,
1.038785457611084,
-0.34669896960258484,
-1.8830121755599976,
1.080128788948059,
-2.1998064517974854
] |
https://github.com/huggingface/datasets/issues/4605 | Dataset Viewer issue for boris/gis_filtered | Yes, this dataset is "gated": you first have to go to https://huggingface.co/datasets/boris/gis_filtered and click "Access repository" (if you accept to share your contact information with the repository authors). | ### Link
https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train
### Description
When I try to access this from the website I get this error:
Status code: 400
Exception: ClientResponseError
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/boris/gis_filtered/resolve/80b805053ce61d4eb487b6b8d9095d775c2c466e/data/train/0000.parquet')
If I try to load with code I also get the same issue:
```python
dataset2_train=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"],split="train",streaming=True)
dataset2_validation=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"], split="validation",streaming=True)
```
### Owner
No | 671 | 28 | Dataset Viewer issue for boris/gis_filtered
### Link
https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train
### Description
When I try to access this from the website I get this error:
Status code: 400
Exception: ClientResponseError
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/boris/gis_filtered/resolve/80b805053ce61d4eb487b6b8d9095d775c2c466e/data/train/0000.parquet')
If I try to load with code I also get the same issue:
```python
dataset2_train=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"],split="train",streaming=True)
dataset2_validation=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"], split="validation",streaming=True)
```
### Owner
No
Yes, this dataset is "gated": you first have to go to https://huggingface.co/datasets/boris/gis_filtered and click "Access repository" (if you accept to share your contact information with the repository authors). | [
-1.2619514465332031,
-0.8694745898246765,
-0.7881258130073547,
1.5060175657272339,
-0.14098002016544342,
-1.100008249282837,
0.10104373842477798,
-1.0602586269378662,
1.492297887802124,
-0.6960299611091614,
0.30935296416282654,
-1.636851191520691,
-0.11987871676683426,
-0.5536940693855286,
-0.6877791285514832,
-0.8848065733909607,
-0.36256352066993713,
-0.7415883541107178,
1.0042527914047241,
2.589226722717285,
1.2493574619293213,
-1.3801134824752808,
2.7413299083709717,
0.7316113710403442,
-0.14444880187511444,
-1.0673620700836182,
0.6081318259239197,
0.09116879105567932,
-1.1768851280212402,
-0.5304575562477112,
-0.9327760934829712,
-0.0221320241689682,
-0.529416024684906,
-0.4230336844921112,
-0.012318105436861515,
0.5375271439552307,
-0.26155224442481995,
-0.29773756861686707,
-0.6206218004226685,
-0.8125670552253723,
0.4951886832714081,
-0.3818739950656891,
0.8885859847068787,
-0.40883681178092957,
1.8591086864471436,
-0.5244318842887878,
0.44120579957962036,
0.6667554974555969,
1.2587991952896118,
0.1483921855688095,
0.07977061718702316,
0.20295117795467377,
0.3632736802101135,
0.014131277799606323,
0.5579513311386108,
1.2353180646896362,
0.6141748428344727,
0.5040076971054077,
0.626785397529602,
-2.13218092918396,
1.2616127729415894,
-1.0018229484558105,
0.2436511069536209,
1.5004632472991943,
-0.8698925971984863,
0.3702775835990906,
-1.8061935901641846,
-0.011348428204655647,
0.593579888343811,
-2.2538630962371826,
0.3227536678314209,
-1.360591173171997,
-0.552830696105957,
1.0155775547027588,
0.34471601247787476,
-1.277962565422058,
0.2099546492099762,
-0.4824843406677246,
1.1247203350067139,
0.49532875418663025,
1.1150684356689453,
-1.636550784111023,
0.022463252767920494,
-0.1987491250038147,
0.009379416704177856,
-1.3653547763824463,
-1.5078200101852417,
0.4874386787414551,
0.5200446248054504,
0.6847085356712341,
-0.04746081680059433,
1.006894588470459,
-1.1405236721038818,
0.8452295064926147,
-0.9585537314414978,
-1.539101481437683,
-1.4024592638015747,
-2.3814189434051514,
-2.3387928009033203,
0.8140989542007446,
-0.4727132320404053,
-0.5432038903236389,
1.9470105171203613,
-0.9752330183982849,
-1.6994458436965942,
1.1295135021209717,
0.35675036907196045,
0.013120874762535095,
2.462470293045044,
0.3041607439517975,
-0.7965607643127441,
0.33063676953315735,
-0.7537087202072144,
0.7978798747062683,
-0.305101603269577,
1.3649961948394775,
0.5768324732780457,
-0.9865518808364868,
1.61612069606781,
-0.47324222326278687,
0.5838834643363953,
-0.6033802628517151,
-0.5852855443954468,
-0.7987824082374573,
0.2624736428260803,
1.8898813724517822,
-0.3425513505935669,
1.6186699867248535,
-0.26718711853027344,
-1.5594593286514282,
-1.6013363599777222,
0.9027316570281982,
0.4429439902305603,
-0.808890163898468,
0.08673054724931717,
-0.3871927559375763,
0.10397261381149292,
-0.10522184520959854,
1.112558126449585,
1.2157968282699585,
0.7020136117935181,
-0.333551824092865,
-0.761788547039032,
0.14592529833316803,
-0.058199964463710785,
-0.7300670146942139,
-1.7663798332214355,
-0.3487650752067566,
0.16904863715171814,
0.5875231027603149,
-1.265097975730896,
1.7092926502227783,
0.8780851364135742,
1.9138562679290771,
1.0031245946884155,
-0.30519846081733704,
1.5617948770523071,
0.025570830330252647,
1.8248714208602905,
-0.6370680928230286,
0.6078835725784302,
-0.3411763608455658,
-1.2167942523956299,
0.8080209493637085,
-0.3203050494194031,
-2.0435640811920166,
-0.8826313018798828,
-0.8416147828102112,
-0.16016392409801483,
-0.715387225151062,
0.8880568146705627,
-0.3657113015651703,
-1.4407989978790283,
0.16286499798297882,
-0.674822986125946,
0.17822733521461487,
-1.2512341737747192,
0.27339616417884827,
0.7697157859802246,
-0.6211971640586853,
-0.06632208824157715,
-0.16323260962963104,
-1.1672489643096924,
-0.3963208496570587,
0.2754298448562622,
1.9698145389556885,
-0.6633442044258118,
0.866173267364502,
1.017562985420227,
-0.7924282550811768,
0.0886845514178276,
0.28012019395828247,
-0.33215269446372986,
0.8162000179290771,
-1.0546051263809204,
-0.4605928659439087,
1.2213293313980103,
-0.2468891590833664,
-0.6842492818832397,
1.4458407163619995,
0.8321312665939331,
-1.0007981061935425,
-0.2881107032299042,
-0.20357385277748108,
-0.7825666666030884,
0.018817238509655,
-1.4869612455368042,
-0.14819319546222687,
0.3458740711212158,
-1.4358160495758057,
-0.43050631880760193,
-0.1490577906370163,
1.3493890762329102,
-0.27375778555870056,
1.4408164024353027,
-0.37096136808395386,
-0.19748465716838837,
-0.26029810309410095,
-0.5335226058959961,
0.16604618728160858,
-0.24066250026226044,
-0.5954738855361938,
0.14854027330875397,
-0.8266878128051758,
0.24110950529575348,
1.4304629564285278,
0.4024678170681,
0.024643508717417717,
0.4786347448825836,
1.1330196857452393,
0.3755406141281128,
-0.010345698334276676,
-0.9066807627677917,
-1.5693410634994507,
1.9802908897399902,
-1.4168035984039307,
1.982216715812683,
0.816217839717865,
-0.07441890984773636,
-1.7970720529556274,
-1.8283979892730713,
1.344038486480713,
1.1962487697601318,
2.414447546005249,
0.46692171692848206,
0.42222845554351807,
-0.9327081441879272,
-0.8548768758773804,
0.30851730704307556,
-1.0713013410568237,
-0.6391744613647461,
0.1470111757516861,
2.368241786956787,
1.8860944509506226,
-0.5281200408935547,
-0.2748393714427948,
-1.0153311491012573,
1.2781310081481934,
-0.25443270802497864,
0.18452996015548706,
2.026545286178589,
-0.23476341366767883,
-0.9849636554718018,
1.2223280668258667,
-2.303208589553833,
0.21561913192272186,
2.0314013957977295,
0.31671231985092163,
0.140705406665802,
-1.4357938766479492,
-0.618540346622467,
-0.3015947639942169,
-0.45601585507392883,
-1.1687397956848145,
0.5809582471847534,
-0.27479293942451477,
-0.8354604840278625,
-1.4104608297348022,
0.03441137075424194,
-1.2024978399276733,
-1.6701922416687012,
0.333069771528244,
1.881210446357727,
2.067434310913086,
-0.7923892140388489,
1.5564417839050293,
-0.28678956627845764,
0.008595647290349007,
1.2456626892089844,
1.41993248462677,
3.052557945251465,
1.7578952312469482,
-1.2723217010498047,
0.7034925818443298,
-0.14084526896476746,
-0.503569483757019,
1.0879262685775757,
-1.1342415809631348,
1.294661045074463,
-0.16794413328170776,
-1.1375495195388794,
-1.2084020376205444,
0.9875497221946716,
0.5231791138648987,
0.06507553905248642,
-0.5786370038986206,
1.2314766645431519,
0.11763576418161392,
1.372570276260376,
0.6651611924171448,
-0.374142587184906,
0.5452272295951843,
-0.36293038725852966,
-0.5225794911384583,
1.4984880685806274,
0.1475362777709961,
-1.5459458827972412,
-2.2599711418151855,
-0.2170165479183197,
-0.8850412368774414,
-0.05627027899026871,
-0.6021484732627869,
-1.084555745124817,
1.6680207252502441,
0.40945884585380554,
-1.2118117809295654,
-0.2889610528945923,
-0.3980944752693176,
-0.6116712689399719,
2.6912107467651367,
-1.3047505617141724,
-0.1278134286403656,
-0.9889405369758606,
-0.6382338404655457,
1.6504508256912231,
-1.1109684705734253,
-0.08504670113325119,
-1.00516939163208,
-0.7127395868301392,
-1.395520806312561,
-0.543797492980957,
0.03399312496185303,
-0.9941795468330383,
0.7682510614395142,
0.1722232699394226,
-1.0913159847259521,
-0.23838496208190918,
-0.8571434020996094,
1.02640962600708,
-0.17592166364192963,
0.19784019887447357,
1.863219141960144,
0.31148508191108704,
-0.41220930218696594,
0.7856155633926392,
1.2610392570495605,
0.6167773008346558,
-0.6755598187446594,
0.17047791182994843,
-0.6704263687133789,
0.3090590536594391,
-1.4687490463256836,
0.15769703686237335,
-2.887035608291626,
0.6633856892585754,
-0.09768450260162354,
-0.17279982566833496,
-0.03604404628276825,
-1.2522810697555542,
1.153185248374939,
2.531287670135498,
-1.240490436553955,
0.47907769680023193,
0.4666345417499542,
1.11338472366333,
-1.6831390857696533,
0.36115244030952454,
-0.4798060357570648,
1.9971047639846802,
0.18636395037174225,
1.2169851064682007,
-0.522782564163208,
-2.173408031463623,
0.5852885246276855,
-1.3151994943618774,
-1.0647612810134888,
0.794577956199646,
-0.9299980998039246,
0.21182087063789368,
-1.424147605895996,
-0.1845022737979889,
-0.9150121212005615,
-1.312065601348877,
0.7258759140968323,
0.12210338562726974,
0.3477780520915985,
-0.49089953303337097,
0.40295809507369995,
-2.2038016319274902,
-1.412757158279419,
-0.16649258136749268,
-0.9005593061447144,
0.5223000645637512,
-0.43995165824890137,
0.7054364085197449,
-0.17451615631580353,
0.0446922704577446,
0.36371490359306335,
1.505571722984314,
3.364037275314331,
0.22025102376937866,
0.2589060962200165,
-0.13453923165798187,
-1.0154671669006348,
1.5065535306930542,
0.948925793170929,
-0.03562672436237335,
-0.56690913438797,
-1.0077834129333496,
1.2446696758270264,
1.9508416652679443,
1.1523560285568237,
0.042375415563583374,
-0.9052186608314514,
-0.7173353433609009,
-0.11372553557157516,
0.11355374753475189,
0.45873185992240906,
0.8770437240600586,
-0.0728909969329834,
0.14054134488105774,
1.406682014465332,
1.1936867237091064,
-0.39208683371543884,
0.3122573792934418,
-0.9242368936538696,
-0.36037465929985046,
0.5233802199363708,
0.17023108899593353,
-0.02037625014781952,
0.5186421871185303,
-1.0600899457931519,
-0.24679070711135864,
-0.3593476712703705,
-0.897875964641571,
-0.6621637344360352,
-0.48050642013549805,
-0.3247571885585785,
1.5704580545425415,
0.10410014539957047,
-0.5080838203430176,
0.07441966980695724,
-0.8746100664138794,
-0.24817179143428802,
-1.190808892250061,
0.18671436607837677,
-0.13086649775505066,
-0.0865854024887085,
-0.19380253553390503,
1.758735179901123,
-0.9679426550865173,
-2.149298906326294,
0.17971083521842957,
0.36074402928352356,
-0.3090796172618866,
0.13076616823673248,
1.7148991823196411,
0.5011589527130127,
1.3847105503082275,
1.1629607677459717,
0.9850438833236694,
-0.59376060962677,
-1.231737494468689,
0.7070830464363098,
1.066483497619629,
-1.3176571130752563,
0.8570324778556824,
-0.14641103148460388,
-0.49866700172424316,
0.6625999808311462,
1.280103087425232,
0.4886760413646698,
-1.8421639204025269,
0.8868230581283569,
-0.903275191783905,
0.7278533577919006,
0.6376060247421265,
0.6966879367828369,
0.264442503452301,
0.8866741061210632,
-1.261053442955017,
-1.162837266921997,
-0.7723712921142578,
-0.5644548535346985,
1.9611692428588867,
-0.2395613193511963,
0.616969645023346,
-0.1331620067358017,
-1.2157926559448242,
0.006798187270760536,
0.7910257577896118,
0.2929837107658386,
-0.4112444818019867,
0.9437646865844727,
-0.6348764300346375,
-0.9375057816505432,
-1.3475180864334106,
-0.3183523416519165,
-0.9917433261871338,
-0.9190371036529541,
1.0617011785507202,
0.7336794137954712,
0.315116822719574,
1.9029600620269775,
0.6526044607162476,
0.35807836055755615,
-2.561872959136963,
0.9103658199310303,
0.24515153467655182,
-0.011593760922551155,
0.8784177899360657,
0.2620549499988556,
1.1381295919418335,
0.019154658541083336,
0.5095197558403015,
-2.4167051315307617,
2.2393815517425537,
-0.16146448254585266,
0.5865799784660339,
0.02219712920486927,
-0.23188896477222443,
1.1697701215744019,
0.6259603500366211,
0.4998573958873749,
-1.1402838230133057,
0.6880401968955994,
-0.4687384366989136,
1.087893009185791,
0.9546434283256531,
-0.835008442401886,
0.04947802424430847,
1.491548776626587,
0.5005333423614502,
-0.49553975462913513,
-0.9552881121635437,
-0.7286143898963928,
0.9843105673789978,
1.6034992933273315,
-0.04356100410223007,
-0.012982300482690334,
0.8976941704750061,
0.5777376294136047,
-1.2587991952896118,
0.046843498945236206,
-0.6040617823600769,
-0.7005941271781921,
1.744061827659607,
2.1056833267211914,
-0.07732156664133072,
-0.2431928664445877,
-0.7298904061317444,
-1.181071400642395,
0.6795975565910339,
-0.07244329154491425,
0.18201960623264313,
0.6655516624450684,
-0.7264807820320129,
1.0025418996810913,
0.7160009741783142,
0.892193615436554,
0.04297833889722824,
0.2638334035873413,
0.45519548654556274,
-0.3455876410007477,
-1.2373912334442139,
-0.33109065890312195,
-1.112733244895935,
-2.618983745574951,
0.49869927763938904,
-0.26054710149765015,
-1.410520076751709,
-0.007517836056649685,
-1.0546956062316895,
1.0114542245864868,
-0.6405048370361328,
-1.0766284465789795,
-1.5033109188079834,
0.2851521670818329,
-0.0475882813334465,
0.923748254776001,
-1.6595778465270996,
-0.24218879640102386,
1.2370426654815674,
0.8954864740371704,
-0.6605011224746704,
1.0520848035812378,
0.2506204843521118,
1.1416759490966797,
0.6865161657333374,
-0.4185912609100342,
0.6346534490585327,
0.048631735146045685,
-1.4537396430969238,
0.40324684977531433,
1.1855405569076538,
0.2579886019229889,
1.4442139863967896,
-0.4300781190395355,
0.13669411838054657,
0.4640090763568878,
-0.6401014924049377,
-0.5817866921424866,
-0.3916204273700714,
0.6013539433479309,
0.10953254252672195,
-1.1044931411743164,
-0.06572958081960678,
-0.12439275532960892,
-0.24644528329372406,
0.1857580989599228,
-1.5075891017913818,
-0.26454880833625793,
-0.42833253741264343,
-0.5063184499740601,
-1.2697125673294067,
0.01883528009057045,
1.346642255783081,
-0.7748091816902161,
-0.2248312532901764,
0.5140807032585144,
0.30509164929389954,
0.5204358100891113,
0.5896209478378296,
-0.8032665252685547,
-0.2627183198928833,
-0.2989402711391449,
-0.34661343693733215,
0.32969895005226135,
1.27928626537323,
-0.16260769963264465,
-0.9445183277130127,
0.6843723058700562,
-0.3113771080970764,
0.1531878113746643,
1.9763009548187256,
0.08101492375135422,
-0.7680619955062866,
0.3615022599697113,
-0.7158594727516174,
1.8746718168258667,
1.6501736640930176,
1.3790308237075806,
-0.14809229969978333,
-0.7999584674835205,
0.5234732627868652,
-0.31906363368034363,
-0.37539243698120117,
0.9042267799377441,
0.42016515135765076,
-0.17024749517440796,
-1.5240983963012695,
0.6668657064437866,
1.2403720617294312,
-0.9254959225654602,
-0.7378343939781189,
0.16377010941505432,
-0.854762852191925,
1.0480427742004395,
0.5789826512336731,
0.3155367970466614,
0.31699061393737793,
1.6000423431396484,
0.7346628904342651,
-0.5029895305633545,
0.5228292942047119,
0.5256326794624329,
-0.22935470938682556,
-2.0676345825195312,
-1.0535975694656372,
0.34853631258010864,
-0.5380849838256836,
-1.5873925685882568,
1.350374460220337,
-1.0944416522979736,
-1.0574039220809937,
0.5606353282928467,
0.1323721557855606,
1.3284058570861816,
0.3968607485294342,
1.687070608139038,
2.0451693534851074,
0.8201141357421875,
0.3209666609764099,
1.2405534982681274,
-0.1496221274137497,
-0.4552000164985657,
1.8248708248138428,
-0.4198826253414154,
0.4567803144454956,
1.0365303754806519,
-0.3406542241573334,
-1.1055572032928467,
-0.8228706121444702,
-1.2926280498504639,
-0.6261475682258606,
1.170242428779602,
0.18895860016345978,
-1.1239254474639893,
0.13554418087005615,
1.6874730587005615,
0.07746504247188568,
-0.3719019889831543,
0.7442995309829712,
0.42195865511894226,
-0.7579415440559387,
0.029181448742747307,
-0.948955237865448,
0.5056636333465576,
-0.044463761150836945,
-0.3092874586582184,
0.2691196799278259,
0.5579237937927246,
1.3090832233428955,
-0.09883563220500946,
0.16090211272239685,
1.059782862663269,
-1.3207087516784668,
1.5161712169647217,
-0.664964497089386,
0.30093252658843994,
-2.3941240310668945,
1.3814805746078491,
-0.7647504806518555,
1.8967751264572144,
-2.526869058609009,
0.44114890694618225,
-0.619051456451416,
-0.47608304023742676,
0.25510215759277344,
-0.4671669602394104,
0.09718964993953705,
-0.0777616873383522,
-1.023750901222229,
-0.04852680861949921,
-0.6943605542182922,
0.6611218452453613,
1.1617481708526611,
1.439658761024475,
-1.1591556072235107,
-0.262894868850708,
-1.7963162660598755,
-0.14447978138923645,
-0.7984950542449951,
0.2915348410606384,
-2.031428098678589,
-0.2409612238407135,
-1.8718180656433105,
-2.34464430809021,
-1.4621187448501587,
-0.754416286945343,
1.086889624595642,
0.16782830655574799,
-0.9135000109672546,
1.1979528665542603,
-0.3265153467655182,
-1.7942014932632446,
1.0557761192321777,
-2.142681360244751
] |
https://github.com/huggingface/datasets/issues/4605 | Dataset Viewer issue for boris/gis_filtered | I could reproduce the error, even though I provided my token and accepted the gate form. It looks like an error from `datasets` | ### Link
https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train
### Description
When I try to access this from the website I get this error:
Status code: 400
Exception: ClientResponseError
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/boris/gis_filtered/resolve/80b805053ce61d4eb487b6b8d9095d775c2c466e/data/train/0000.parquet')
If I try to load with code I also get the same issue:
```python
dataset2_train=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"],split="train",streaming=True)
dataset2_validation=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"], split="validation",streaming=True)
```
### Owner
No | 671 | 23 | Dataset Viewer issue for boris/gis_filtered
### Link
https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train
### Description
When I try to access this from the website I get this error:
Status code: 400
Exception: ClientResponseError
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/boris/gis_filtered/resolve/80b805053ce61d4eb487b6b8d9095d775c2c466e/data/train/0000.parquet')
If I try to load with code I also get the same issue:
```python
dataset2_train=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"],split="train",streaming=True)
dataset2_validation=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"], split="validation",streaming=True)
```
### Owner
No
I could reproduce the error, even though I provided my token and accepted the gate form. It looks like an error from `datasets` | [
-1.2741044759750366,
-0.8711627721786499,
-0.7923892736434937,
1.4772013425827026,
-0.15644119679927826,
-1.1386330127716064,
0.14956134557724,
-1.060339093208313,
1.5327109098434448,
-0.7418788075447083,
0.28878870606422424,
-1.6408604383468628,
-0.10471413284540176,
-0.5492033958435059,
-0.714434802532196,
-0.8484352231025696,
-0.33621132373809814,
-0.7573778629302979,
1.0183364152908325,
2.5683469772338867,
1.2446973323822021,
-1.3696633577346802,
2.761249303817749,
0.7216294407844543,
-0.1630779504776001,
-1.0900661945343018,
0.6048116087913513,
0.07558651268482208,
-1.1760671138763428,
-0.5282384157180786,
-0.9278013110160828,
0.014847676269710064,
-0.5538711547851562,
-0.4516245424747467,
-0.016394343227148056,
0.512776792049408,
-0.26067715883255005,
-0.33319392800331116,
-0.57317054271698,
-0.8178287744522095,
0.4925875663757324,
-0.3512384295463562,
0.9056499600410461,
-0.3963609039783478,
1.8483576774597168,
-0.5078510046005249,
0.43522849678993225,
0.661571741104126,
1.2785441875457764,
0.155731663107872,
0.06909610331058502,
0.17852336168289185,
0.3869643211364746,
0.023405686020851135,
0.5131179094314575,
1.213315725326538,
0.5948790311813354,
0.526553213596344,
0.626151978969574,
-2.1431119441986084,
1.2600839138031006,
-1.0143561363220215,
0.21965466439723969,
1.4878501892089844,
-0.88675457239151,
0.3722139894962311,
-1.8067700862884521,
-0.006898907013237476,
0.5833556652069092,
-2.260791540145874,
0.3430384695529938,
-1.385567307472229,
-0.5478240251541138,
1.009661316871643,
0.3352090120315552,
-1.2958018779754639,
0.19133298099040985,
-0.49701595306396484,
1.1228446960449219,
0.5060023069381714,
1.1208640336990356,
-1.6523826122283936,
0.007029305212199688,
-0.2144227921962738,
0.0396411158144474,
-1.3888314962387085,
-1.4789091348648071,
0.5100452303886414,
0.5360565185546875,
0.673345148563385,
-0.07511520385742188,
1.0297136306762695,
-1.1453769207000732,
0.8266065716743469,
-0.9534326791763306,
-1.5421221256256104,
-1.410276174545288,
-2.3793113231658936,
-2.3505120277404785,
0.81630939245224,
-0.49387094378471375,
-0.5449262857437134,
1.9515341520309448,
-0.9815855622291565,
-1.730620265007019,
1.1310977935791016,
0.3458571434020996,
-0.014788880944252014,
2.4338393211364746,
0.3215816617012024,
-0.8068400025367737,
0.32800453901290894,
-0.781265377998352,
0.7869274020195007,
-0.33170557022094727,
1.3862258195877075,
0.5903574824333191,
-1.0054525136947632,
1.6149173974990845,
-0.47689709067344666,
0.5546799302101135,
-0.5922555327415466,
-0.5587173104286194,
-0.7959297895431519,
0.24555328488349915,
1.892466425895691,
-0.3227376937866211,
1.6336299180984497,
-0.2714131772518158,
-1.5326582193374634,
-1.5985063314437866,
0.8842805624008179,
0.4502265751361847,
-0.8109266757965088,
0.11271564662456512,
-0.39109933376312256,
0.1240241751074791,
-0.13442526757717133,
1.1191719770431519,
1.2160388231277466,
0.7293230891227722,
-0.3306565284729004,
-0.7586115002632141,
0.19887641072273254,
-0.05839959532022476,
-0.7410489916801453,
-1.7873163223266602,
-0.35385385155677795,
0.14814788103103638,
0.6217753291130066,
-1.2434169054031372,
1.7111738920211792,
0.8662219643592834,
1.9162575006484985,
0.9992687702178955,
-0.33457687497138977,
1.5292460918426514,
0.028042111545801163,
1.8225702047348022,
-0.6299011707305908,
0.6312140822410583,
-0.3438204228878021,
-1.1855838298797607,
0.8213133215904236,
-0.31391504406929016,
-2.0229249000549316,
-0.871484100818634,
-0.8704540133476257,
-0.16625040769577026,
-0.7475433349609375,
0.8829503655433655,
-0.35363414883613586,
-1.457247257232666,
0.19839252531528473,
-0.6511425971984863,
0.22538447380065918,
-1.2426749467849731,
0.28110089898109436,
0.7645110487937927,
-0.5705934166908264,
-0.033121127635240555,
-0.16835913062095642,
-1.1574772596359253,
-0.41071438789367676,
0.2551850974559784,
1.9605334997177124,
-0.6854273080825806,
0.8973082900047302,
0.9933453798294067,
-0.7811840176582336,
0.0702679455280304,
0.3126594126224518,
-0.31411468982696533,
0.806778609752655,
-1.0717496871948242,
-0.4540388882160187,
1.2152127027511597,
-0.29531437158584595,
-0.6316933631896973,
1.440110683441162,
0.839512288570404,
-0.9992974996566772,
-0.24953864514827728,
-0.21663877367973328,
-0.8098247051239014,
0.021740160882472992,
-1.4746896028518677,
-0.16933253407478333,
0.3688759505748749,
-1.4211136102676392,
-0.43231847882270813,
-0.13195163011550903,
1.3761478662490845,
-0.28327804803848267,
1.444074273109436,
-0.3692261278629303,
-0.21154193580150604,
-0.245077446103096,
-0.5220728516578674,
0.19258718192577362,
-0.22264447808265686,
-0.5754448175430298,
0.13656394183635712,
-0.8172146677970886,
0.2509908080101013,
1.3964077234268188,
0.3694780766963959,
0.011044387705624104,
0.5019224286079407,
1.141741156578064,
0.383673757314682,
-0.024792183190584183,
-0.9242558479309082,
-1.5448485612869263,
2.008880615234375,
-1.425795316696167,
1.9572306871414185,
0.7811682224273682,
-0.07962095737457275,
-1.7499475479125977,
-1.794765830039978,
1.3628337383270264,
1.2046761512756348,
2.3776493072509766,
0.5051223039627075,
0.42374637722969055,
-0.9025061726570129,
-0.842546820640564,
0.3169451951980591,
-1.0693283081054688,
-0.6123165488243103,
0.12852489948272705,
2.3297781944274902,
1.8726941347122192,
-0.5312350392341614,
-0.27716773748397827,
-1.0158793926239014,
1.2737901210784912,
-0.27382248640060425,
0.2075105458498001,
2.0131888389587402,
-0.27951890230178833,
-0.9897493124008179,
1.2066658735275269,
-2.3249733448028564,
0.22710095345973969,
2.0331180095672607,
0.2959185838699341,
0.11975035816431046,
-1.4356348514556885,
-0.6124273538589478,
-0.27803438901901245,
-0.4373554289340973,
-1.1711760759353638,
0.5930364727973938,
-0.2890724837779999,
-0.800020694732666,
-1.4460859298706055,
0.09138201922178268,
-1.168272614479065,
-1.7089169025421143,
0.30407822132110596,
1.9100091457366943,
2.0510311126708984,
-0.7853514552116394,
1.5434415340423584,
-0.30541113018989563,
0.033066682517528534,
1.2765852212905884,
1.3822108507156372,
3.052842140197754,
1.748367190361023,
-1.2809141874313354,
0.7339601516723633,
-0.1319293975830078,
-0.5236222743988037,
1.078881859779358,
-1.1163203716278076,
1.2880796194076538,
-0.12305999547243118,
-1.1635040044784546,
-1.2348302602767944,
0.9376741051673889,
0.5266171097755432,
0.07397735863924026,
-0.5596316456794739,
1.258683443069458,
0.11120209842920303,
1.3865115642547607,
0.6555266976356506,
-0.3586844205856323,
0.5551853775978088,
-0.3504175841808319,
-0.5067075490951538,
1.4938209056854248,
0.1465785801410675,
-1.5206291675567627,
-2.288771867752075,
-0.25078681111335754,
-0.8652538657188416,
-0.038337890058755875,
-0.6390016674995422,
-1.0896224975585938,
1.6700785160064697,
0.43519967794418335,
-1.179976463317871,
-0.28180161118507385,
-0.41584113240242004,
-0.6166905164718628,
2.6955978870391846,
-1.2922857999801636,
-0.1630648523569107,
-0.9940499663352966,
-0.6504327654838562,
1.6357793807983398,
-1.1347492933273315,
-0.0667387843132019,
-1.0413384437561035,
-0.7031617164611816,
-1.4271910190582275,
-0.5778877139091492,
0.026344407349824905,
-0.9581118822097778,
0.7493913769721985,
0.1832834780216217,
-1.1139031648635864,
-0.258355051279068,
-0.8447080254554749,
1.0052602291107178,
-0.15390276908874512,
0.2335527539253235,
1.860931396484375,
0.30189746618270874,
-0.42482250928878784,
0.7899793386459351,
1.2483030557632446,
0.6265137195587158,
-0.6623794436454773,
0.1591574102640152,
-0.6804357171058655,
0.30648404359817505,
-1.4700889587402344,
0.16555602848529816,
-2.8999669551849365,
0.6563670039176941,
-0.10840180516242981,
-0.16709789633750916,
-0.06237984821200371,
-1.2795652151107788,
1.1501737833023071,
2.516392707824707,
-1.249839425086975,
0.46186962723731995,
0.44856593012809753,
1.14180588722229,
-1.6630014181137085,
0.34155890345573425,
-0.44383731484413147,
2.040043592453003,
0.22230282425880432,
1.2421053647994995,
-0.4985288977622986,
-2.2019991874694824,
0.5819196105003357,
-1.2939687967300415,
-1.0704326629638672,
0.8220714926719666,
-0.8802985548973083,
0.17708665132522583,
-1.4407548904418945,
-0.18495477735996246,
-0.9016280174255371,
-1.3198192119598389,
0.7424314022064209,
0.1321474313735962,
0.3781306743621826,
-0.5482405424118042,
0.40650859475135803,
-2.183212995529175,
-1.4047613143920898,
-0.14341412484645844,
-0.8834040760993958,
0.49498945474624634,
-0.4374028146266937,
0.6970137357711792,
-0.19680030643939972,
0.022509858012199402,
0.3883002996444702,
1.5491602420806885,
3.386617422103882,
0.23270724713802338,
0.28816452622413635,
-0.13000236451625824,
-0.9811312556266785,
1.545052170753479,
0.9506747722625732,
-0.07170965522527695,
-0.5266300439834595,
-0.9911721348762512,
1.2435894012451172,
1.9549232721328735,
1.1143237352371216,
0.018975786864757538,
-0.8794069290161133,
-0.7023981213569641,
-0.11939085274934769,
0.10542157292366028,
0.4320923984050751,
0.8631254434585571,
-0.03797975927591324,
0.12664039433002472,
1.4051960706710815,
1.1599183082580566,
-0.4392014741897583,
0.36092159152030945,
-0.9126020669937134,
-0.36254069209098816,
0.5416364073753357,
0.19199106097221375,
-0.04648220166563988,
0.5025442838668823,
-1.0377600193023682,
-0.2286311686038971,
-0.3598668873310089,
-0.891659677028656,
-0.6679055690765381,
-0.47706618905067444,
-0.3412826955318451,
1.5703387260437012,
0.09165237843990326,
-0.5382276177406311,
0.047690968960523605,
-0.8841371536254883,
-0.2334030270576477,
-1.167710542678833,
0.1728484332561493,
-0.14576660096645355,
-0.0664968192577362,
-0.1643061637878418,
1.7481633424758911,
-0.9215106964111328,
-2.1185362339019775,
0.16752247512340546,
0.3914951980113983,
-0.30601614713668823,
0.13901716470718384,
1.7402691841125488,
0.490468829870224,
1.3695597648620605,
1.1885755062103271,
0.9727118611335754,
-0.5876026749610901,
-1.2450168132781982,
0.7313879132270813,
1.0172920227050781,
-1.34749436378479,
0.8650075793266296,
-0.11353743821382523,
-0.5243861675262451,
0.6672629714012146,
1.2882689237594604,
0.4832901656627655,
-1.853838562965393,
0.8549580574035645,
-0.9085652232170105,
0.6946361064910889,
0.6798374652862549,
0.7013038992881775,
0.2734891176223755,
0.8929402828216553,
-1.2302546501159668,
-1.1478850841522217,
-0.7638563513755798,
-0.5764380097389221,
1.9286925792694092,
-0.2503473460674286,
0.6039944887161255,
-0.14073361456394196,
-1.21660315990448,
-0.004766977392137051,
0.769986093044281,
0.2751387357711792,
-0.39331480860710144,
0.8965957760810852,
-0.6590551137924194,
-0.9375315308570862,
-1.3427809476852417,
-0.35371503233909607,
-0.9979939460754395,
-0.9762412905693054,
1.0533854961395264,
0.7388625741004944,
0.33339086174964905,
1.8931381702423096,
0.6353064775466919,
0.30581745505332947,
-2.5484824180603027,
0.9135592579841614,
0.25107085704803467,
-0.011525685898959637,
0.8833813667297363,
0.26914677023887634,
1.1760475635528564,
0.048185065388679504,
0.524910032749176,
-2.431298017501831,
2.2133736610412598,
-0.18908314406871796,
0.548673152923584,
0.011551852338016033,
-0.2378493994474411,
1.2095409631729126,
0.6402609348297119,
0.4614845812320709,
-1.1567820310592651,
0.7293624877929688,
-0.5164548754692078,
1.121810793876648,
0.9696049690246582,
-0.857855498790741,
0.04690254479646683,
1.4766596555709839,
0.5085697770118713,
-0.49027952551841736,
-0.9414517879486084,
-0.7571489810943604,
0.961643397808075,
1.5683352947235107,
-0.019236408174037933,
-0.03371035307645798,
0.8764638900756836,
0.5887998342514038,
-1.2464009523391724,
0.07933197915554047,
-0.5967907309532166,
-0.721919059753418,
1.7677534818649292,
2.0802271366119385,
-0.08210461586713791,
-0.23427890241146088,
-0.7241874933242798,
-1.1723179817199707,
0.6667069792747498,
-0.05934932082891464,
0.15531092882156372,
0.6558881998062134,
-0.76679927110672,
0.9780679941177368,
0.7224953770637512,
0.8562725186347961,
0.09222167730331421,
0.2503872513771057,
0.4189920127391815,
-0.3125567138195038,
-1.2446911334991455,
-0.29441285133361816,
-1.12003755569458,
-2.6288344860076904,
0.5033020973205566,
-0.26932623982429504,
-1.430594563484192,
0.005662229843437672,
-1.0691916942596436,
0.9993056058883667,
-0.6806324124336243,
-1.0730646848678589,
-1.5172505378723145,
0.28022491931915283,
-0.04325011372566223,
0.8833879232406616,
-1.6562323570251465,
-0.21151180565357208,
1.25459623336792,
0.8817055225372314,
-0.6548699140548706,
1.0963565111160278,
0.25422629714012146,
1.1641136407852173,
0.6950333118438721,
-0.40649428963661194,
0.6562697291374207,
0.0457601472735405,
-1.4581000804901123,
0.4494534134864807,
1.1766282320022583,
0.27326756715774536,
1.4928169250488281,
-0.4279877245426178,
0.1547657996416092,
0.4752289354801178,
-0.6124376654624939,
-0.5949306488037109,
-0.404080867767334,
0.6047922968864441,
0.12177608162164688,
-1.046380639076233,
-0.05951762944459915,
-0.11889573931694031,
-0.2479635328054428,
0.20612986385822296,
-1.529813289642334,
-0.24119195342063904,
-0.4242812693119049,
-0.5012746453285217,
-1.2824138402938843,
0.029876399785280228,
1.3828760385513306,
-0.760879635810852,
-0.2417866587638855,
0.5313708782196045,
0.33647385239601135,
0.49281346797943115,
0.5908285975456238,
-0.7980371117591858,
-0.26819777488708496,
-0.2932577431201935,
-0.36282679438591003,
0.31631261110305786,
1.290399193763733,
-0.1634371429681778,
-0.9632448554039001,
0.6475710868835449,
-0.2933323383331299,
0.14681632816791534,
1.9525994062423706,
0.08814195543527603,
-0.7827057838439941,
0.33054399490356445,
-0.7277029156684875,
1.9060364961624146,
1.6442296504974365,
1.3732157945632935,
-0.15764120221138,
-0.807772696018219,
0.5206285119056702,
-0.3163433074951172,
-0.3854789733886719,
0.8729507923126221,
0.420858234167099,
-0.14592190086841583,
-1.5246970653533936,
0.6914828419685364,
1.2508686780929565,
-0.9222442507743835,
-0.7615496516227722,
0.11671795696020126,
-0.8286371231079102,
1.0221483707427979,
0.595024824142456,
0.32752716541290283,
0.3462340831756592,
1.619000792503357,
0.7514345645904541,
-0.5009040236473083,
0.5447676777839661,
0.5198423862457275,
-0.20572718977928162,
-2.0734143257141113,
-1.0610203742980957,
0.3268878161907196,
-0.5414505004882812,
-1.593788743019104,
1.3696428537368774,
-1.0821161270141602,
-1.031217336654663,
0.5679981708526611,
0.1702093631029129,
1.3248971700668335,
0.3876936435699463,
1.6971805095672607,
2.000990152359009,
0.8301652669906616,
0.3001495599746704,
1.2120002508163452,
-0.18295365571975708,
-0.4670668840408325,
1.8110896348953247,
-0.4276566505432129,
0.4674823582172394,
1.0610729455947876,
-0.37377381324768066,
-1.0850367546081543,
-0.8142858743667603,
-1.2798151969909668,
-0.5981346964836121,
1.1647063493728638,
0.21637171506881714,
-1.149774193763733,
0.14272361993789673,
1.661580204963684,
0.062231969088315964,
-0.35931596159935,
0.7555734515190125,
0.44056469202041626,
-0.7546635270118713,
0.04521437734365463,
-0.9213183522224426,
0.5208078622817993,
-0.04461151361465454,
-0.35913270711898804,
0.27271026372909546,
0.5773664712905884,
1.3540960550308228,
-0.07043273746967316,
0.16494274139404297,
1.0820096731185913,
-1.3286726474761963,
1.4797933101654053,
-0.677268385887146,
0.30098992586135864,
-2.3526508808135986,
1.3631188869476318,
-0.8069170117378235,
1.9285370111465454,
-2.5205466747283936,
0.41208139061927795,
-0.6425071358680725,
-0.4750749170780182,
0.2687537372112274,
-0.4980204999446869,
0.12811565399169922,
-0.08368189632892609,
-1.0319627523422241,
-0.053820040076971054,
-0.7256762385368347,
0.6578948497772217,
1.1447359323501587,
1.4673247337341309,
-1.1587965488433838,
-0.25163212418556213,
-1.7811204195022583,
-0.15071921050548553,
-0.7696577310562134,
0.31972798705101013,
-2.0288078784942627,
-0.23000368475914001,
-1.9160642623901367,
-2.3403849601745605,
-1.4420667886734009,
-0.7536765933036804,
1.0481425523757935,
0.12127634137868881,
-0.8938810229301453,
1.1909774541854858,
-0.33220332860946655,
-1.782283902168274,
1.047437071800232,
-2.150141716003418
] |
https://github.com/huggingface/datasets/issues/4605 | Dataset Viewer issue for boris/gis_filtered | This is indeed a bug in `datasets`. Parquet datasets in gated/private repositories can't be streamed properly, which caused the viewer to fail. I opened a PR at https://github.com/huggingface/datasets/pull/4608 | ### Link
https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train
### Description
When I try to access this from the website I get this error:
Status code: 400
Exception: ClientResponseError
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/boris/gis_filtered/resolve/80b805053ce61d4eb487b6b8d9095d775c2c466e/data/train/0000.parquet')
If I try to load with code I also get the same issue:
```python
dataset2_train=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"],split="train",streaming=True)
dataset2_validation=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"], split="validation",streaming=True)
```
### Owner
No | 671 | 28 | Dataset Viewer issue for boris/gis_filtered
### Link
https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train
### Description
When I try to access this from the website I get this error:
Status code: 400
Exception: ClientResponseError
Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datasets/boris/gis_filtered/resolve/80b805053ce61d4eb487b6b8d9095d775c2c466e/data/train/0000.parquet')
If I try to load with code I also get the same issue:
```python
dataset2_train=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"],split="train",streaming=True)
dataset2_validation=load_dataset("boris/gis_filtered", use_auth_token=os.environ["HF_TOKEN"], split="validation",streaming=True)
```
### Owner
No
This is indeed a bug in `datasets`. Parquet datasets in gated/private repositories can't be streamed properly, which caused the viewer to fail. I opened a PR at https://github.com/huggingface/datasets/pull/4608 | [
-1.2578803300857544,
-0.880596399307251,
-0.7790340185165405,
1.483022928237915,
-0.1297544687986374,
-1.1600291728973389,
0.14425162971019745,
-1.038863182067871,
1.536180019378662,
-0.7008599042892456,
0.2813352346420288,
-1.6564170122146606,
-0.13750654458999634,
-0.580353319644928,
-0.698928713798523,
-0.8612250089645386,
-0.3470609188079834,
-0.7769612669944763,
1.0020591020584106,
2.5775349140167236,
1.2445937395095825,
-1.378082036972046,
2.7587339878082275,
0.720441997051239,
-0.1762390434741974,
-1.0639656782150269,
0.5938349962234497,
0.087525874376297,
-1.1785391569137573,
-0.4946589171886444,
-0.9165513515472412,
-0.006264152936637402,
-0.5555087327957153,
-0.4151047170162201,
0.00040647853165864944,
0.5385686755180359,
-0.2453925758600235,
-0.32248422503471375,
-0.580681324005127,
-0.7779755592346191,
0.46468091011047363,
-0.3426642119884491,
0.9170016050338745,
-0.36954501271247864,
1.8405632972717285,
-0.5318278074264526,
0.40664613246917725,
0.6685918569564819,
1.2870432138442993,
0.1455671191215515,
0.07352816313505173,
0.18727201223373413,
0.3415274918079376,
0.011616037227213383,
0.5653855204582214,
1.2359074354171753,
0.5903556942939758,
0.4948703944683075,
0.6113548874855042,
-2.1517724990844727,
1.264457106590271,
-0.965304434299469,
0.26219436526298523,
1.478289008140564,
-0.8729899525642395,
0.4032227694988251,
-1.824480652809143,
-0.0006965436041355133,
0.6050500869750977,
-2.2455437183380127,
0.2891180217266083,
-1.383983850479126,
-0.5381622910499573,
1.0157642364501953,
0.32780370116233826,
-1.2947226762771606,
0.2287777066230774,
-0.47685506939888,
1.1288840770721436,
0.5039564371109009,
1.1442744731903076,
-1.6461716890335083,
0.014601507224142551,
-0.17879027128219604,
0.053258903324604034,
-1.3422740697860718,
-1.5118697881698608,
0.4996180236339569,
0.5554735064506531,
0.7039833068847656,
-0.07913872599601746,
0.9975079894065857,
-1.0898643732070923,
0.8213496208190918,
-0.9364575147628784,
-1.56260085105896,
-1.4136022329330444,
-2.372364044189453,
-2.3623082637786865,
0.8212023377418518,
-0.4885489344596863,
-0.5235313177108765,
1.934643268585205,
-0.9781457185745239,
-1.7555092573165894,
1.0993496179580688,
0.36547040939331055,
0.02705688402056694,
2.432124376296997,
0.3130960464477539,
-0.8140135407447815,
0.3485247790813446,
-0.7667139768600464,
0.7682063579559326,
-0.32336053252220154,
1.3692066669464111,
0.5812886357307434,
-1.0121458768844604,
1.6169120073318481,
-0.49131548404693604,
0.5820699334144592,
-0.6317347288131714,
-0.5724802613258362,
-0.785455584526062,
0.2487073391675949,
1.9048521518707275,
-0.32533276081085205,
1.639938235282898,
-0.3042498826980591,
-1.5542172193527222,
-1.581142783164978,
0.8659940361976624,
0.4590994417667389,
-0.8180515170097351,
0.08322904258966446,
-0.41220444440841675,
0.11441405117511749,
-0.12093474715948105,
1.1155364513397217,
1.2234240770339966,
0.6836524605751038,
-0.34582701325416565,
-0.7856085300445557,
0.19626635313034058,
-0.04420214146375656,
-0.7101998925209045,
-1.8086063861846924,
-0.31805360317230225,
0.2143322378396988,
0.6108402013778687,
-1.2376534938812256,
1.6987102031707764,
0.8521689772605896,
1.919862985610962,
0.9934747815132141,
-0.3473418951034546,
1.5479034185409546,
0.014553331770002842,
1.8409721851348877,
-0.6060624122619629,
0.6081829071044922,
-0.31959113478660583,
-1.2024320363998413,
0.8088008761405945,
-0.33073586225509644,
-2.0459837913513184,
-0.8583940267562866,
-0.8442823886871338,
-0.15943123400211334,
-0.7156879305839539,
0.8449679613113403,
-0.3455422818660736,
-1.460411548614502,
0.18882426619529724,
-0.649594783782959,
0.2188677340745926,
-1.2442535161972046,
0.22843116521835327,
0.7881958484649658,
-0.5962085127830505,
-0.05827256292104721,
-0.20177553594112396,
-1.1884714365005493,
-0.41779017448425293,
0.27017340064048767,
1.9518616199493408,
-0.6575155258178711,
0.8720415234565735,
1.0276548862457275,
-0.7759299278259277,
0.08205585181713104,
0.2788882553577423,
-0.32268014550209045,
0.8429417610168457,
-1.0833021402359009,
-0.4246827960014343,
1.1823697090148926,
-0.23613741993904114,
-0.6585248708724976,
1.4329960346221924,
0.8888665437698364,
-1.0022729635238647,
-0.2613397240638733,
-0.20643697679042816,
-0.7949153184890747,
0.00972938071936369,
-1.511230707168579,
-0.1607857495546341,
0.3344586491584778,
-1.4430824518203735,
-0.4183349311351776,
-0.16143392026424408,
1.3794529438018799,
-0.2718820571899414,
1.4342200756072998,
-0.3480244278907776,
-0.1776447296142578,
-0.29858213663101196,
-0.5338379144668579,
0.18898364901542664,
-0.2319188416004181,
-0.5884243249893188,
0.1330409049987793,
-0.8244419693946838,
0.2501682639122009,
1.4239435195922852,
0.36976152658462524,
0.02489515393972397,
0.5049905180931091,
1.1487048864364624,
0.37828418612480164,
-0.01420619897544384,
-0.8841689825057983,
-1.5654233694076538,
1.9589543342590332,
-1.4180010557174683,
1.949917197227478,
0.7919723391532898,
-0.024821067228913307,
-1.781153678894043,
-1.8235042095184326,
1.355608582496643,
1.1991959810256958,
2.38556170463562,
0.47692233324050903,
0.4320601224899292,
-0.8873950242996216,
-0.8143427968025208,
0.31370458006858826,
-1.0357029438018799,
-0.6366403102874756,
0.16885094344615936,
2.341665506362915,
1.878496766090393,
-0.5679813027381897,
-0.2802138924598694,
-0.9956463575363159,
1.2801917791366577,
-0.2523307800292969,
0.18692755699157715,
2.047928810119629,
-0.23527327179908752,
-0.992625892162323,
1.2510629892349243,
-2.3381264209747314,
0.22504331171512604,
2.021810531616211,
0.28873202204704285,
0.13364294171333313,
-1.4387240409851074,
-0.6355642676353455,
-0.2875468134880066,
-0.46157753467559814,
-1.1814419031143188,
0.5919115543365479,
-0.27456653118133545,
-0.8176631927490234,
-1.4435511827468872,
0.06978101283311844,
-1.194348931312561,
-1.715553641319275,
0.3087039589881897,
1.8750770092010498,
2.0318806171417236,
-0.7941372990608215,
1.5266106128692627,
-0.30425652861595154,
0.0112151512876153,
1.2676407098770142,
1.3956810235977173,
3.0673699378967285,
1.7580082416534424,
-1.248718500137329,
0.7756400108337402,
-0.14350901544094086,
-0.5103374123573303,
1.0961987972259521,
-1.1411186456680298,
1.257307767868042,
-0.19098186492919922,
-1.1933718919754028,
-1.2350529432296753,
0.9516821503639221,
0.5409185886383057,
0.06836864352226257,
-0.5549849271774292,
1.240607500076294,
0.12630969285964966,
1.3933501243591309,
0.6401680111885071,
-0.3975121080875397,
0.5382407307624817,
-0.3599770963191986,
-0.5291198492050171,
1.5056742429733276,
0.13541452586650848,
-1.5103323459625244,
-2.2850794792175293,
-0.23722083866596222,
-0.882529079914093,
-0.08558610081672668,
-0.6464570164680481,
-1.087303638458252,
1.6523330211639404,
0.4425053298473358,
-1.1865607500076294,
-0.2692906856536865,
-0.3858853280544281,
-0.5772311091423035,
2.6531119346618652,
-1.3173837661743164,
-0.1464586853981018,
-0.9748266935348511,
-0.6311425566673279,
1.6708731651306152,
-1.0934653282165527,
-0.09836031496524811,
-1.0129376649856567,
-0.7267037630081177,
-1.416262149810791,
-0.5477926135063171,
0.009830431081354618,
-0.9561851024627686,
0.7572946548461914,
0.15050926804542542,
-1.1324702501296997,
-0.2260337620973587,
-0.8412706255912781,
1.035921335220337,
-0.14703401923179626,
0.2215217798948288,
1.9008960723876953,
0.327384889125824,
-0.42969638109207153,
0.7944112420082092,
1.2316313982009888,
0.5861902832984924,
-0.6797347068786621,
0.162430077791214,
-0.6897541880607605,
0.29956886172294617,
-1.4786676168441772,
0.15611505508422852,
-2.9007575511932373,
0.6842141151428223,
-0.08502572029829025,
-0.15293358266353607,
-0.05324259400367737,
-1.2871662378311157,
1.1378504037857056,
2.56052827835083,
-1.2532581090927124,
0.4469713866710663,
0.4958432614803314,
1.137315034866333,
-1.6595982313156128,
0.3200928568840027,
-0.44325414299964905,
2.0101845264434814,
0.17477752268314362,
1.241849422454834,
-0.4779455065727234,
-2.1882882118225098,
0.5518843531608582,
-1.2876657247543335,
-1.059605598449707,
0.8259482979774475,
-0.9036688804626465,
0.16845744848251343,
-1.4383186101913452,
-0.1802942007780075,
-0.9325471520423889,
-1.321416974067688,
0.7660462260246277,
0.10025031864643097,
0.36971116065979004,
-0.5324839353561401,
0.42284488677978516,
-2.183692455291748,
-1.394474744796753,
-0.15458345413208008,
-0.8955345749855042,
0.49346724152565,
-0.3982085883617401,
0.6773889064788818,
-0.15042659640312195,
0.049007296562194824,
0.3638080358505249,
1.484318733215332,
3.3758697509765625,
0.21696937084197998,
0.2624688446521759,
-0.10835473239421844,
-0.9996763467788696,
1.4809540510177612,
0.93336021900177,
-0.09157342463731766,
-0.5386059880256653,
-0.9896048307418823,
1.2497023344039917,
1.9677860736846924,
1.145967960357666,
0.06073768436908722,
-0.9064216613769531,
-0.7213202118873596,
-0.07803179323673248,
0.12627598643302917,
0.4283258616924286,
0.8881709575653076,
-0.06861717253923416,
0.1329108327627182,
1.38772451877594,
1.1485141515731812,
-0.4119563698768616,
0.3614865243434906,
-0.9527381062507629,
-0.36601126194000244,
0.5109484195709229,
0.18467265367507935,
-0.027143407613039017,
0.5247976779937744,
-1.044842004776001,
-0.2284296751022339,
-0.34312644600868225,
-0.8995093703269958,
-0.6775127053260803,
-0.49744361639022827,
-0.3114522397518158,
1.5505107641220093,
0.09791260957717896,
-0.5049484372138977,
0.06429977715015411,
-0.8489616513252258,
-0.23070426285266876,
-1.1610004901885986,
0.18014974892139435,
-0.12158118933439255,
-0.06471173465251923,
-0.1862330287694931,
1.7351043224334717,
-0.9488247036933899,
-2.11197829246521,
0.15772490203380585,
0.39950817823410034,
-0.33269381523132324,
0.13572625815868378,
1.7595436573028564,
0.4992430508136749,
1.3664871454238892,
1.174087405204773,
1.0018166303634644,
-0.5801486372947693,
-1.2328604459762573,
0.7016956806182861,
1.049925446510315,
-1.315232276916504,
0.8888165950775146,
-0.13594911992549896,
-0.4938800036907196,
0.667237401008606,
1.2915440797805786,
0.4752589464187622,
-1.8809069395065308,
0.8516229391098022,
-0.9124349355697632,
0.6963517069816589,
0.6418664455413818,
0.7116841673851013,
0.26466819643974304,
0.889331579208374,
-1.2345856428146362,
-1.180846929550171,
-0.7474491596221924,
-0.5724099278450012,
1.9354337453842163,
-0.22037188708782196,
0.6032885313034058,
-0.14505872130393982,
-1.2376210689544678,
-0.027128279209136963,
0.7887945771217346,
0.3050442934036255,
-0.44982680678367615,
0.941693127155304,
-0.6413628458976746,
-0.931605875492096,
-1.3264118432998657,
-0.34368354082107544,
-0.9839862585067749,
-0.919763445854187,
1.030693531036377,
0.7546606659889221,
0.35266920924186707,
1.8973770141601562,
0.610124945640564,
0.3324531614780426,
-2.5716300010681152,
0.9070895314216614,
0.27321869134902954,
-0.009825987741351128,
0.8827320337295532,
0.25079405307769775,
1.1628470420837402,
0.028019249439239502,
0.5350923538208008,
-2.3876380920410156,
2.197139024734497,
-0.18222808837890625,
0.5789213180541992,
0.014328979887068272,
-0.2400113344192505,
1.1442441940307617,
0.5851042866706848,
0.5021851658821106,
-1.1626840829849243,
0.726578414440155,
-0.5032581686973572,
1.0938055515289307,
0.938892662525177,
-0.8667863607406616,
0.03645310550928116,
1.4564671516418457,
0.4858453869819641,
-0.48230382800102234,
-0.9523535370826721,
-0.7698115706443787,
0.9864953756332397,
1.5851162672042847,
-0.02901560068130493,
-0.01591494493186474,
0.8941242694854736,
0.5800191760063171,
-1.2821331024169922,
0.049270983785390854,
-0.6263616681098938,
-0.7019129991531372,
1.765634536743164,
2.080347776412964,
-0.09301469475030899,
-0.22542420029640198,
-0.7624965310096741,
-1.184550166130066,
0.6670234799385071,
-0.06373322755098343,
0.124545618891716,
0.6876082420349121,
-0.7335188984870911,
1.0493184328079224,
0.6858212351799011,
0.8892157077789307,
0.06429047882556915,
0.2926853895187378,
0.4196946620941162,
-0.30700811743736267,
-1.2425779104232788,
-0.3138463497161865,
-1.0904064178466797,
-2.605227470397949,
0.5027942061424255,
-0.2617674171924591,
-1.424647569656372,
0.01687758043408394,
-1.0512351989746094,
0.9962136149406433,
-0.6725807785987854,
-1.0795948505401611,
-1.4754267930984497,
0.31149306893348694,
-0.058070436120033264,
0.887840986251831,
-1.632529616355896,
-0.1864640712738037,
1.2643836736679077,
0.8901351690292358,
-0.6536833047866821,
1.0708202123641968,
0.27491897344589233,
1.125919222831726,
0.7351172566413879,
-0.3993203043937683,
0.6381025910377502,
0.05083903670310974,
-1.4185316562652588,
0.42940473556518555,
1.1889524459838867,
0.27801260352134705,
1.4326571226119995,
-0.4536191523075104,
0.10678277909755707,
0.45637258887290955,
-0.6196556091308594,
-0.5698049068450928,
-0.4274226725101471,
0.6153387427330017,
0.11144126206636429,
-1.0819756984710693,
-0.03460054472088814,
-0.12811821699142456,
-0.22660450637340546,
0.21016329526901245,
-1.5370686054229736,
-0.2603141665458679,
-0.4004090428352356,
-0.48848962783813477,
-1.2629281282424927,
0.04344840347766876,
1.3526581525802612,
-0.783102810382843,
-0.24529460072517395,
0.523010790348053,
0.33421745896339417,
0.5168976783752441,
0.5915502309799194,
-0.7762513160705566,
-0.24939264357089996,
-0.3046242892742157,
-0.3555998206138611,
0.31211057305336,
1.30790376663208,
-0.13703669607639313,
-0.9600945711135864,
0.6950827836990356,
-0.3508246839046478,
0.1175713837146759,
1.9752014875411987,
0.1062580794095993,
-0.7976115942001343,
0.3454040288925171,
-0.7228692770004272,
1.8703919649124146,
1.6786675453186035,
1.401086688041687,
-0.15838104486465454,
-0.8065237998962402,
0.5380772948265076,
-0.3130272924900055,
-0.39482954144477844,
0.9311097860336304,
0.4276486933231354,
-0.16737978160381317,
-1.510963797569275,
0.6468449234962463,
1.260054349899292,
-0.8951802253723145,
-0.7463878989219666,
0.10694688558578491,
-0.8447433114051819,
1.0481175184249878,
0.6182724833488464,
0.29553988575935364,
0.3070220649242401,
1.5805106163024902,
0.7387202978134155,
-0.5154961347579956,
0.5260199308395386,
0.5224521160125732,
-0.21098794043064117,
-2.072563886642456,
-1.0580400228500366,
0.3126777112483978,
-0.48232942819595337,
-1.6037479639053345,
1.3322877883911133,
-1.0992450714111328,
-1.0654042959213257,
0.519802987575531,
0.12672892212867737,
1.3134781122207642,
0.3886827230453491,
1.6955634355545044,
2.0510153770446777,
0.8426209092140198,
0.2848636507987976,
1.2205073833465576,
-0.1478351354598999,
-0.46762174367904663,
1.8162895441055298,
-0.4315360486507416,
0.4712483584880829,
1.0329647064208984,
-0.35072535276412964,
-1.0807512998580933,
-0.8266311287879944,
-1.2640753984451294,
-0.6247247457504272,
1.1944280862808228,
0.2016039937734604,
-1.1378902196884155,
0.18569491803646088,
1.6719939708709717,
0.06875598430633545,
-0.34714746475219727,
0.7862206697463989,
0.4200233817100525,
-0.7797969579696655,
0.03234480693936348,
-0.9302800297737122,
0.5043509602546692,
-0.04238737002015114,
-0.29183220863342285,
0.26916059851646423,
0.5531957149505615,
1.3217992782592773,
-0.06398715823888779,
0.12762615084648132,
1.0717524290084839,
-1.3409887552261353,
1.5047072172164917,
-0.6772308349609375,
0.3164421319961548,
-2.418147087097168,
1.390172004699707,
-0.8049031496047974,
1.9266396760940552,
-2.5503182411193848,
0.43076586723327637,
-0.6045052409172058,
-0.45541828870773315,
0.2525610327720642,
-0.49353328347206116,
0.10113243013620377,
-0.08226899057626724,
-1.0393671989440918,
-0.0681382566690445,
-0.7138917446136475,
0.6603664755821228,
1.1514190435409546,
1.4383158683776855,
-1.162247657775879,
-0.25289273262023926,
-1.7915732860565186,
-0.17563138902187347,
-0.744347870349884,
0.31721386313438416,
-2.0178298950195312,
-0.2168705016374588,
-1.907392144203186,
-2.377732276916504,
-1.4285186529159546,
-0.7678213715553284,
1.0432647466659546,
0.15103194117546082,
-0.9319103956222534,
1.1723730564117432,
-0.32359546422958374,
-1.8059720993041992,
1.0666966438293457,
-2.1489901542663574
] |
https://github.com/huggingface/datasets/issues/4597 | Streaming issue for financial_phrasebank | cc @huggingface/datasets: it seems like https://www.researchgate.net/ is flaky for datasets hosting (I put the "hosted-on-google-drive" tag since it's the same kind of issue I think) | ### Link
https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train
### Description
As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dataset:
```
Server error
Status code: 400
Exception: Exception
Message: Give up after 5 attempts with ConnectionError
```
### Owner
No | 672 | 25 | Streaming issue for financial_phrasebank
### Link
https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train
### Description
As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dataset:
```
Server error
Status code: 400
Exception: Exception
Message: Give up after 5 attempts with ConnectionError
```
### Owner
No
cc @huggingface/datasets: it seems like https://www.researchgate.net/ is flaky for datasets hosting (I put the "hosted-on-google-drive" tag since it's the same kind of issue I think) | [
-1.1562414169311523,
-0.9039810299873352,
-0.9130083918571472,
1.4665169715881348,
-0.0789293646812439,
-1.325577974319458,
0.049745261669158936,
-1.0062472820281982,
1.5922249555587769,
-0.6271550059318542,
0.2806015908718109,
-1.7142258882522583,
-0.07395584881305695,
-0.6116073131561279,
-0.6958227753639221,
-0.7997682094573975,
-0.3017082214355469,
-0.738845944404602,
0.9875882267951965,
2.6366894245147705,
1.2380056381225586,
-1.2958412170410156,
2.797133445739746,
0.676949143409729,
-0.30547192692756653,
-1.0209674835205078,
0.5634500980377197,
-0.0187026746571064,
-1.3552055358886719,
-0.5343671441078186,
-0.9239092469215393,
-0.014222698286175728,
-0.4604374170303345,
-0.501821756362915,
0.04766888916492462,
0.45995813608169556,
-0.2255161851644516,
-0.2675182819366455,
-0.589422881603241,
-0.8392448425292969,
0.4364008605480194,
-0.31589752435684204,
0.9315819144248962,
-0.3305206894874573,
1.8333061933517456,
-0.644393265247345,
0.3135228455066681,
0.6272211074829102,
1.4337223768234253,
0.05654913932085037,
-0.06576913595199585,
0.27427101135253906,
0.45457398891448975,
-0.020876199007034302,
0.4608892798423767,
1.2061372995376587,
0.5506922602653503,
0.5186222195625305,
0.5272508859634399,
-2.2196688652038574,
1.2290031909942627,
-0.8999468684196472,
0.20746789872646332,
1.458667516708374,
-1.0112470388412476,
0.3339843153953552,
-1.7962862253189087,
-0.04581519961357117,
0.546642005443573,
-2.2404098510742188,
0.2367965430021286,
-1.2241202592849731,
-0.5232095122337341,
0.8798302412033081,
0.3603212535381317,
-1.3495700359344482,
0.06378081440925598,
-0.48169514536857605,
1.0699039697647095,
0.502273678779602,
1.1326473951339722,
-1.667102575302124,
-0.00450034998357296,
-0.28317588567733765,
0.037378355860710144,
-1.2955824136734009,
-1.5077406167984009,
0.5249459147453308,
0.6557404398918152,
0.7486190795898438,
-0.042093321681022644,
0.9196262359619141,
-1.0689918994903564,
0.8334141373634338,
-0.9016924500465393,
-1.6756893396377563,
-1.4120854139328003,
-2.352041006088257,
-2.2321665287017822,
0.8615854978561401,
-0.5108929872512817,
-0.48988038301467896,
1.9704910516738892,
-1.035272479057312,
-1.8055084943771362,
1.1102490425109863,
0.18324598670005798,
0.011745721101760864,
2.366931438446045,
0.3975561559200287,
-0.7108604311943054,
0.4099072217941284,
-0.7745169997215271,
0.7897246479988098,
-0.44695720076560974,
1.363446593284607,
0.4893156588077545,
-1.018728494644165,
1.6235719919204712,
-0.5158984065055847,
0.578447163105011,
-0.7679794430732727,
-0.5362979173660278,
-0.8061894774436951,
0.3865138590335846,
1.890049934387207,
-0.38535305857658386,
1.5848333835601807,
-0.3411206901073456,
-1.5040674209594727,
-1.4757061004638672,
0.8662266731262207,
0.45988574624061584,
-0.8385114669799805,
0.16503341495990753,
-0.477221816778183,
0.11072272807359695,
-0.03897426277399063,
1.112887978553772,
1.118465781211853,
0.6121135354042053,
-0.26669827103614807,
-0.8235903978347778,
0.368526428937912,
-0.01914054900407791,
-0.7278962135314941,
-1.7421071529388428,
-0.35281309485435486,
0.19189254939556122,
0.6153320074081421,
-1.2281640768051147,
1.7150111198425293,
0.7856168746948242,
2.0415101051330566,
1.0083452463150024,
-0.2616399824619293,
1.4751317501068115,
0.009521307423710823,
1.8827095031738281,
-0.5004010200500488,
0.6266096234321594,
-0.3255932927131653,
-1.229546308517456,
0.7941082715988159,
-0.43061313033103943,
-2.0024514198303223,
-0.7473066449165344,
-0.9376731514930725,
-0.12242300063371658,
-0.8128960132598877,
0.9637290835380554,
-0.33536598086357117,
-1.377548098564148,
0.1731051504611969,
-0.7141023874282837,
0.18308645486831665,
-1.330194354057312,
0.21363818645477295,
0.793723464012146,
-0.6437479257583618,
0.011979568749666214,
-0.1893768608570099,
-1.288814902305603,
-0.49428027868270874,
0.3058862090110779,
2.0083112716674805,
-0.7057193517684937,
0.8769162893295288,
0.9442433714866638,
-0.7061902284622192,
0.06838817149400711,
0.39316582679748535,
-0.39042651653289795,
0.9033470749855042,
-1.0742377042770386,
-0.3916116952896118,
1.192175030708313,
-0.1804966777563095,
-0.7299239039421082,
1.4800461530685425,
0.8264088034629822,
-1.045993685722351,
-0.24522028863430023,
-0.1893702745437622,
-0.7856571674346924,
0.020604031160473824,
-1.6079106330871582,
-0.08810970187187195,
0.23531799018383026,
-1.448715329170227,
-0.41844484210014343,
-0.13058994710445404,
1.3351020812988281,
-0.11632553488016129,
1.3692535161972046,
-0.2998419404029846,
-0.24786213040351868,
-0.31011322140693665,
-0.4355020225048065,
0.1869313269853592,
-0.22222456336021423,
-0.6599942445755005,
0.24686507880687714,
-0.784819483757019,
0.2987525463104248,
1.4377539157867432,
0.3615507185459137,
0.079678975045681,
0.5777478814125061,
1.0702346563339233,
0.27975010871887207,
-0.09665749222040176,
-0.9423543214797974,
-1.5533134937286377,
2.0755324363708496,
-1.4076168537139893,
1.9149850606918335,
0.8509107828140259,
-0.045665666460990906,
-1.844883918762207,
-1.9157164096832275,
1.3291828632354736,
1.246235728263855,
2.360769033432007,
0.6210146546363831,
0.4010443091392517,
-0.8337278366088867,
-0.7271711230278015,
0.2897026538848877,
-1.0492347478866577,
-0.7662535905838013,
0.12185483425855637,
2.3289146423339844,
1.7858949899673462,
-0.5055168271064758,
-0.28690946102142334,
-1.106451153755188,
1.1470983028411865,
-0.1698782593011856,
0.17425575852394104,
1.984460473060608,
-0.2837686240673065,
-0.9720650315284729,
1.2202730178833008,
-2.2723937034606934,
0.22532813251018524,
2.028430461883545,
0.2628448009490967,
0.10786675661802292,
-1.4549533128738403,
-0.682960033416748,
-0.23545898497104645,
-0.30312156677246094,
-1.2201886177062988,
0.6328463554382324,
-0.3463650345802307,
-0.9109504818916321,
-1.518733024597168,
0.0775080993771553,
-1.1024833917617798,
-1.6970033645629883,
0.3856508731842041,
1.7728711366653442,
2.009317636489868,
-0.7816454768180847,
1.4581845998764038,
-0.24653120338916779,
0.1549728810787201,
1.377550721168518,
1.2850828170776367,
3.117327928543091,
1.9412163496017456,
-1.2961076498031616,
0.8090100884437561,
-0.14287331700325012,
-0.45059099793434143,
1.2020888328552246,
-1.1037369966506958,
1.1463922262191772,
-0.3183271288871765,
-1.2409316301345825,
-1.2925686836242676,
0.9323025941848755,
0.5235211849212646,
-0.027003657072782516,
-0.5636109113693237,
1.2508370876312256,
0.05544751137495041,
1.3366007804870605,
0.650113582611084,
-0.3798063099384308,
0.5824839472770691,
-0.3398119807243347,
-0.4158565402030945,
1.5429989099502563,
0.2120097279548645,
-1.5595922470092773,
-2.404688596725464,
-0.16585849225521088,
-0.8846225738525391,
-0.10035158693790436,
-0.6932135820388794,
-1.0886731147766113,
1.5991129875183105,
0.4675852656364441,
-1.26530122756958,
-0.3755344748497009,
-0.3320920169353485,
-0.5302075147628784,
2.781191825866699,
-1.448116660118103,
-0.23420687019824982,
-0.9894722104072571,
-0.4731437563896179,
1.7554377317428589,
-1.2201697826385498,
-0.14145423471927643,
-1.126596450805664,
-0.6801224946975708,
-1.3127208948135376,
-0.5378319025039673,
-0.01416831649839878,
-0.928111732006073,
0.7506014704704285,
0.03604217618703842,
-1.083979606628418,
-0.23960323631763458,
-0.8637238144874573,
0.8818031549453735,
-0.19514814019203186,
0.27991947531700134,
1.997685432434082,
0.4657893776893616,
-0.4395802915096283,
0.7162654399871826,
1.2120500802993774,
0.5676367878913879,
-0.7096003293991089,
0.1897726207971573,
-0.6545892953872681,
0.2895844280719757,
-1.4479783773422241,
0.3084627389907837,
-2.912200689315796,
0.6585807800292969,
-0.0580466166138649,
-0.06385443359613419,
-0.05939776450395584,
-1.3145843744277954,
1.0869837999343872,
2.49631404876709,
-1.2557317018508911,
0.4574335515499115,
0.28560033440589905,
1.1707422733306885,
-1.630232572555542,
0.2980635464191437,
-0.4506949484348297,
2.0589771270751953,
0.11381026357412338,
1.2623202800750732,
-0.41428738832473755,
-2.0289697647094727,
0.6398493051528931,
-1.3548049926757812,
-1.0662111043930054,
0.7264052033424377,
-0.8081724047660828,
0.08809822797775269,
-1.3877078294754028,
-0.10354101657867432,
-0.8505529761314392,
-1.3261889219284058,
0.828663170337677,
0.12283768504858017,
0.4440823495388031,
-0.5316270589828491,
0.4064178466796875,
-2.104755163192749,
-1.454612135887146,
-0.12800736725330353,
-0.8903698325157166,
0.3946644067764282,
-0.3360152840614319,
0.6200334429740906,
-0.22445295751094818,
0.09053616225719452,
0.3583211898803711,
1.3910138607025146,
3.480069875717163,
0.23875728249549866,
0.36345067620277405,
-0.14580747485160828,
-0.9649969339370728,
1.4614124298095703,
0.9812489748001099,
-0.09272952377796173,
-0.5344792008399963,
-0.9195507168769836,
1.3989291191101074,
1.9265053272247314,
1.0933815240859985,
0.1634756475687027,
-0.882775068283081,
-0.7433488965034485,
-0.10675542056560516,
0.15598872303962708,
0.46072426438331604,
0.8632872700691223,
0.021966269239783287,
0.07719793170690536,
1.3091635704040527,
1.1340439319610596,
-0.4102347195148468,
0.4130115211009979,
-0.9086703658103943,
-0.3965623080730438,
0.4715985059738159,
0.3380221724510193,
0.01774638518691063,
0.43487146496772766,
-1.0268961191177368,
-0.38217946887016296,
-0.25791579484939575,
-0.945192277431488,
-0.7284865975379944,
-0.4153519570827484,
-0.2683042883872986,
1.5266169309616089,
0.11675208061933517,
-0.43195128440856934,
-0.07568399608135223,
-0.8092942237854004,
-0.1481204628944397,
-1.059161901473999,
0.21180446445941925,
-0.13043862581253052,
-0.05670362710952759,
-0.03864489495754242,
1.7434344291687012,
-0.997811496257782,
-2.242845058441162,
0.29947927594184875,
0.3212032914161682,
-0.44771772623062134,
0.15814551711082458,
1.6755660772323608,
0.5548732280731201,
1.3465021848678589,
1.3104612827301025,
1.025962233543396,
-0.6235718727111816,
-1.3036617040634155,
0.6747990250587463,
0.9995010495185852,
-1.4303343296051025,
0.8998115658760071,
-0.14101123809814453,
-0.45969340205192566,
0.6971055865287781,
1.3293380737304688,
0.450053870677948,
-1.8342207670211792,
0.7418026924133301,
-0.8278318047523499,
0.7994086146354675,
0.720920741558075,
0.8758949041366577,
0.34068629145622253,
0.8101003766059875,
-1.2967183589935303,
-1.1666842699050903,
-0.7505692839622498,
-0.5146207809448242,
1.857293725013733,
-0.18631748855113983,
0.545887291431427,
-0.14190389215946198,
-1.2825860977172852,
-0.10340853780508041,
0.7697566151618958,
0.27472180128097534,
-0.38333454728126526,
0.854017972946167,
-0.6636149883270264,
-1.0692501068115234,
-1.3710769414901733,
-0.40419140458106995,
-0.8763236999511719,
-0.9761658310890198,
1.007307529449463,
0.6997737288475037,
0.34337159991264343,
1.9634944200515747,
0.5842178463935852,
0.22793594002723694,
-2.6137053966522217,
0.891120970249176,
0.27460721135139465,
0.12424168735742569,
0.9052178859710693,
0.2661868929862976,
1.1242296695709229,
-0.03467399626970291,
0.4455168843269348,
-2.259117841720581,
2.230823040008545,
-0.21640340983867645,
0.6045096516609192,
-0.007322894874960184,
-0.13270699977874756,
1.1309175491333008,
0.5196717381477356,
0.5440149307250977,
-1.1289654970169067,
0.784055769443512,
-0.5520960688591003,
1.1224416494369507,
0.9407281279563904,
-0.8631422519683838,
0.03240174800157547,
1.348624587059021,
0.534878671169281,
-0.46592003107070923,
-0.9058389663696289,
-0.7749791741371155,
1.0220369100570679,
1.622941493988037,
0.08337143808603287,
0.012147590517997742,
0.8875647187232971,
0.5713490843772888,
-1.2098921537399292,
0.07465985417366028,
-0.6168004274368286,
-0.6361837387084961,
1.7999746799468994,
2.0768327713012695,
-0.03828328102827072,
-0.21832551062107086,
-0.8306372761726379,
-1.1728014945983887,
0.7567249536514282,
-0.09211547672748566,
0.10018207877874374,
0.7223727107048035,
-0.6340452432632446,
1.114738941192627,
0.6741691827774048,
0.9175427556037903,
0.0377986803650856,
0.34408295154571533,
0.42416486144065857,
-0.2874163091182709,
-1.270383596420288,
-0.3514332175254822,
-1.25680673122406,
-2.567784547805786,
0.5482891201972961,
-0.3178580403327942,
-1.4095691442489624,
0.16607765853405,
-1.146741509437561,
0.9775204658508301,
-0.6166888475418091,
-1.0526572465896606,
-1.3869119882583618,
0.23664413392543793,
-0.20097951591014862,
0.8220600485801697,
-1.611269474029541,
-0.11633755266666412,
1.2148243188858032,
0.9405416250228882,
-0.6469360589981079,
0.9163060188293457,
0.22713908553123474,
1.1108512878417969,
0.8399221897125244,
-0.3597441017627716,
0.5585858225822449,
0.1321951150894165,
-1.4122956991195679,
0.47783955931663513,
1.2510708570480347,
0.21984684467315674,
1.4591480493545532,
-0.42171546816825867,
0.06671032309532166,
0.5088179111480713,
-0.5159295797348022,
-0.5177823901176453,
-0.47885075211524963,
0.694838285446167,
0.17373940348625183,
-1.028399109840393,
-0.040968239307403564,
-0.09733258187770844,
-0.18391431868076324,
0.22783163189888,
-1.6066938638687134,
-0.22047112882137299,
-0.3157743215560913,
-0.5686981081962585,
-1.3128602504730225,
-0.014995818957686424,
1.333927869796753,
-0.7653462886810303,
-0.28351855278015137,
0.5970532894134521,
0.33019793033599854,
0.581801176071167,
0.6335036158561707,
-0.6905592083930969,
-0.26780733466148376,
-0.2949102818965912,
-0.37271615862846375,
0.3553659915924072,
1.286895990371704,
-0.14724740386009216,
-0.972836434841156,
0.6704407334327698,
-0.4228302836418152,
0.13584209978580475,
2.0051591396331787,
0.0817614421248436,
-0.8713690042495728,
0.25833138823509216,
-0.618572473526001,
1.9263379573822021,
1.5607112646102905,
1.1861791610717773,
-0.07758834213018417,
-0.8492281436920166,
0.6051310896873474,
-0.11003885418176651,
-0.3354070782661438,
0.8590062856674194,
0.3999767601490021,
-0.16683101654052734,
-1.42863929271698,
0.4470631778240204,
1.2241355180740356,
-0.912143349647522,
-0.8507347702980042,
0.050508007407188416,
-0.8950473070144653,
1.0681178569793701,
0.6970775723457336,
0.3510245382785797,
0.23093393445014954,
1.5034116506576538,
0.6750273704528809,
-0.43860146403312683,
0.48520728945732117,
0.41640087962150574,
-0.18811506032943726,
-2.071058750152588,
-0.9618368148803711,
0.39967697858810425,
-0.3572997748851776,
-1.5411194562911987,
1.3123176097869873,
-1.171673059463501,
-0.9252216815948486,
0.5541616082191467,
0.2537841200828552,
1.4044787883758545,
0.20263142883777618,
1.6377793550491333,
1.9806221723556519,
0.8948725461959839,
0.26031386852264404,
1.2649002075195312,
-0.050681859254837036,
-0.4570755660533905,
1.8368200063705444,
-0.4182682931423187,
0.6256884336471558,
1.0488349199295044,
-0.45418041944503784,
-1.1503535509109497,
-0.7442165613174438,
-1.1596794128417969,
-0.6492223739624023,
1.2410770654678345,
0.1886259764432907,
-1.2401461601257324,
0.14642482995986938,
1.5896791219711304,
0.1349816918373108,
-0.2153891921043396,
0.6330980658531189,
0.4478568732738495,
-0.7670873999595642,
0.06927432119846344,
-0.9160801768302917,
0.5494815111160278,
-0.08545408397912979,
-0.29744043946266174,
0.30370837450027466,
0.5081155300140381,
1.2238017320632935,
-0.00591933773830533,
0.13262149691581726,
1.2369489669799805,
-1.3526766300201416,
1.446608304977417,
-0.579278290271759,
0.23024429380893707,
-2.4610655307769775,
1.4559553861618042,
-0.8218830227851868,
1.7959858179092407,
-2.602221965789795,
0.39105546474456787,
-0.6176438331604004,
-0.4537014067173004,
0.27300602197647095,
-0.4220486581325531,
0.09750724583864212,
-0.12711571156978607,
-0.9989910125732422,
-0.036678120493888855,
-0.7895820736885071,
0.5884829163551331,
1.2334603071212769,
1.3528963327407837,
-1.0934802293777466,
-0.27088600397109985,
-1.8488575220108032,
-0.18462702631950378,
-0.6731947660446167,
0.24039076268672943,
-1.9923456907272339,
-0.14894607663154602,
-1.9545319080352783,
-2.366443634033203,
-1.3930414915084839,
-0.7461636662483215,
1.05808687210083,
0.3029671609401703,
-0.9054322242736816,
1.07528555393219,
-0.35638707876205444,
-1.7589735984802246,
1.0021677017211914,
-2.2627575397491455
] |
https://github.com/huggingface/datasets/issues/4597 | Streaming issue for financial_phrasebank | License is Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0).
We can host their data on the Hub. | ### Link
https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train
### Description
As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dataset:
```
Server error
Status code: 400
Exception: Exception
Message: Give up after 5 attempts with ConnectionError
```
### Owner
No | 672 | 18 | Streaming issue for financial_phrasebank
### Link
https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train
### Description
As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dataset:
```
Server error
Status code: 400
Exception: Exception
Message: Give up after 5 attempts with ConnectionError
```
### Owner
No
License is Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0).
We can host their data on the Hub. | [
-1.1093060970306396,
-0.9008699655532837,
-0.8105651140213013,
1.5152416229248047,
-0.10633355379104614,
-1.2831844091415405,
0.04728450998663902,
-1.00844144821167,
1.5553120374679565,
-0.6623945236206055,
0.26448309421539307,
-1.6879208087921143,
-0.0705559030175209,
-0.6060323119163513,
-0.6724080443382263,
-0.7902402877807617,
-0.32183822989463806,
-0.7685713171958923,
1.0434401035308838,
2.6682331562042236,
1.215125560760498,
-1.2812168598175049,
2.8140738010406494,
0.7516359686851501,
-0.37672480940818787,
-0.9940965175628662,
0.5214043855667114,
0.04194815829396248,
-1.374111294746399,
-0.5336310267448425,
-0.9416561722755432,
-0.02913043275475502,
-0.41748303174972534,
-0.4596211016178131,
0.05334135890007019,
0.4553881287574768,
-0.19553549587726593,
-0.29076477885246277,
-0.5303987860679626,
-0.8210662603378296,
0.4945862889289856,
-0.35017648339271545,
0.8940020799636841,
-0.33428099751472473,
1.746042013168335,
-0.6763083934783936,
0.3394072949886322,
0.6150939464569092,
1.4061293601989746,
0.08481194078922272,
-0.09002912044525146,
0.34357750415802,
0.4272631108760834,
-0.05640355125069618,
0.4765464961528778,
1.1628031730651855,
0.5724272131919861,
0.5674199461936951,
0.5442074537277222,
-2.21828556060791,
1.260785460472107,
-0.9197799563407898,
0.22721078991889954,
1.4641869068145752,
-1.084372639656067,
0.3244697153568268,
-1.7747061252593994,
-0.03713668882846832,
0.5809565782546997,
-2.2144973278045654,
0.2544340491294861,
-1.2481257915496826,
-0.5353354811668396,
0.8923379182815552,
0.37191876769065857,
-1.3720948696136475,
0.06322462111711502,
-0.4851714074611664,
1.0989537239074707,
0.44308820366859436,
1.0855149030685425,
-1.6671133041381836,
-0.059753481298685074,
-0.296019047498703,
0.029933229088783264,
-1.2811423540115356,
-1.507297396659851,
0.49218446016311646,
0.6338624954223633,
0.7423668503761292,
-0.04267698526382446,
0.8993083834648132,
-1.0393900871276855,
0.8349243998527527,
-0.9714998006820679,
-1.7536338567733765,
-1.406752347946167,
-2.3701610565185547,
-2.2127766609191895,
0.8700166940689087,
-0.4869486689567566,
-0.514612078666687,
2.0156002044677734,
-1.0332226753234863,
-1.7983266115188599,
1.147793173789978,
0.2594829797744751,
-0.034885529428720474,
2.3539509773254395,
0.3937014937400818,
-0.6674795150756836,
0.4487372934818268,
-0.8412312865257263,
0.7876411080360413,
-0.5252739191055298,
1.3513199090957642,
0.42774999141693115,
-1.0191413164138794,
1.6244827508926392,
-0.44477808475494385,
0.6259483098983765,
-0.7600564956665039,
-0.565664529800415,
-0.8281717300415039,
0.36546143889427185,
1.9141360521316528,
-0.30768439173698425,
1.5692025423049927,
-0.35487034916877747,
-1.5278979539871216,
-1.5098463296890259,
0.8379366397857666,
0.505576491355896,
-0.8717526793479919,
0.18354791402816772,
-0.45443642139434814,
0.09878871589899063,
-0.013972925022244453,
1.0834704637527466,
1.15315580368042,
0.6692805886268616,
-0.22555182874202728,
-0.8164928555488586,
0.31331682205200195,
0.02017783746123314,
-0.7250068783760071,
-1.7568542957305908,
-0.36554619669914246,
0.13340729475021362,
0.60704505443573,
-1.2220734357833862,
1.7193742990493774,
0.810707688331604,
2.0388402938842773,
0.9993801712989807,
-0.31311821937561035,
1.4946881532669067,
-0.0351654477417469,
1.8027266263961792,
-0.4580613076686859,
0.698991060256958,
-0.37375250458717346,
-1.2536380290985107,
0.7685795426368713,
-0.4197673499584198,
-1.9948359727859497,
-0.7173917293548584,
-0.8960323929786682,
-0.13696911931037903,
-0.8384696841239929,
0.9959650635719299,
-0.3490520417690277,
-1.343761682510376,
0.1898980587720871,
-0.7597078680992126,
0.22268171608448029,
-1.318627119064331,
0.2511562705039978,
0.7909484505653381,
-0.5409539937973022,
0.06440029293298721,
-0.2398277074098587,
-1.2935757637023926,
-0.45731157064437866,
0.293822318315506,
1.9251532554626465,
-0.7379746437072754,
0.9145632386207581,
0.941257119178772,
-0.6629605889320374,
0.018485691398382187,
0.3731488585472107,
-0.36938342452049255,
0.9152677059173584,
-1.0140045881271362,
-0.3883543312549591,
1.2216520309448242,
-0.19096772372722626,
-0.6893888711929321,
1.5094661712646484,
0.859108567237854,
-1.0242297649383545,
-0.24450770020484924,
-0.17330963909626007,
-0.7755877375602722,
0.04009848088026047,
-1.692097783088684,
-0.14871074259281158,
0.2775335907936096,
-1.461838722229004,
-0.4230301082134247,
-0.17146053910255432,
1.3289515972137451,
-0.15264460444450378,
1.383186936378479,
-0.307475209236145,
-0.23581083118915558,
-0.32255619764328003,
-0.4261222779750824,
0.2132609635591507,
-0.24689726531505585,
-0.6392629742622375,
0.2567668557167053,
-0.7337873578071594,
0.34397879242897034,
1.4705702066421509,
0.3062138557434082,
0.11353625357151031,
0.5707795023918152,
1.0395712852478027,
0.2689116597175598,
-0.1415848284959793,
-0.9442483186721802,
-1.542219638824463,
2.0745062828063965,
-1.3912343978881836,
1.912320852279663,
0.8776541352272034,
-0.01588987000286579,
-1.8333922624588013,
-1.9116294384002686,
1.317853331565857,
1.2656618356704712,
2.3278913497924805,
0.581213116645813,
0.4051635265350342,
-0.856504499912262,
-0.7155377864837646,
0.23733636736869812,
-1.090101718902588,
-0.7815241813659668,
0.12812687456607819,
2.376006603240967,
1.7583377361297607,
-0.4544084668159485,
-0.22217798233032227,
-1.1313800811767578,
1.1887158155441284,
-0.16906076669692993,
0.22408045828342438,
1.9584730863571167,
-0.24643674492835999,
-0.9701142907142639,
1.150879144668579,
-2.2719521522521973,
0.22634470462799072,
2.010253667831421,
0.23800092935562134,
0.1499103158712387,
-1.466575026512146,
-0.6983531713485718,
-0.3253087103366852,
-0.33281761407852173,
-1.2136266231536865,
0.6304476261138916,
-0.2895231544971466,
-0.8829240798950195,
-1.5371639728546143,
0.09498994797468185,
-1.0948978662490845,
-1.714840292930603,
0.31374868750572205,
1.8111189603805542,
1.9984725713729858,
-0.7278004884719849,
1.4774503707885742,
-0.2446274608373642,
0.10471697151660919,
1.3348824977874756,
1.2443957328796387,
3.1244871616363525,
1.922564148902893,
-1.2590773105621338,
0.7826889157295227,
-0.1382778137922287,
-0.3864855170249939,
1.161403775215149,
-1.119036078453064,
1.1862760782241821,
-0.2880173921585083,
-1.2227064371109009,
-1.3366388082504272,
0.9110180139541626,
0.4962678551673889,
-0.015361452475190163,
-0.5252603888511658,
1.2301666736602783,
0.08603938668966293,
1.3995426893234253,
0.629523515701294,
-0.3168039619922638,
0.6000767350196838,
-0.3117150664329529,
-0.3864259421825409,
1.5634626150131226,
0.22177112102508545,
-1.5173413753509521,
-2.4024510383605957,
-0.1917913854122162,
-0.8623051643371582,
-0.13364365696907043,
-0.7290311455726624,
-1.0754477977752686,
1.6026159524917603,
0.470569372177124,
-1.2516082525253296,
-0.35625508427619934,
-0.2661258578300476,
-0.5586874485015869,
2.80482816696167,
-1.4647092819213867,
-0.2610236704349518,
-0.991793692111969,
-0.4809648394584656,
1.7518004179000854,
-1.227429986000061,
-0.15454435348510742,
-1.0773723125457764,
-0.6411777138710022,
-1.2567538022994995,
-0.5156747102737427,
-0.07376962155103683,
-0.9965425729751587,
0.743855357170105,
-0.01342849526554346,
-1.1269737482070923,
-0.19291158020496368,
-0.8617249727249146,
0.9359238743782043,
-0.11259506642818451,
0.23775999248027802,
1.934952974319458,
0.43478360772132874,
-0.3544175624847412,
0.8073502779006958,
1.165176510810852,
0.5669950842857361,
-0.7182773351669312,
0.2135297656059265,
-0.6405255794525146,
0.3134668469429016,
-1.3964070081710815,
0.3045092225074768,
-2.9262824058532715,
0.6358181238174438,
-0.07572751492261887,
-0.08182919770479202,
-0.06840085238218307,
-1.3407834768295288,
1.0911753177642822,
2.480886459350586,
-1.2264496088027954,
0.4813285768032074,
0.24477940797805786,
1.1792799234390259,
-1.6151329278945923,
0.26723790168762207,
-0.44624677300453186,
2.1251657009124756,
0.13815303146839142,
1.266403317451477,
-0.42403286695480347,
-2.1081016063690186,
0.6707186698913574,
-1.353346824645996,
-1.0417650938034058,
0.6945620775222778,
-0.8234385848045349,
0.03687335550785065,
-1.3258044719696045,
-0.13319404423236847,
-0.8192489147186279,
-1.296195149421692,
0.7777525782585144,
0.1361968219280243,
0.4601798355579376,
-0.5700288414955139,
0.3735823929309845,
-2.1284825801849365,
-1.4271819591522217,
-0.14053969085216522,
-0.8722777366638184,
0.39971038699150085,
-0.34365594387054443,
0.5610698461532593,
-0.18696480989456177,
0.03374480828642845,
0.3799721896648407,
1.422763705253601,
3.4426932334899902,
0.2117989957332611,
0.35822394490242004,
-0.20624732971191406,
-0.9500712156295776,
1.4616390466690063,
0.9788088202476501,
-0.11133208870887756,
-0.5924100279808044,
-0.8931782841682434,
1.3767975568771362,
1.9150750637054443,
1.0648648738861084,
0.15791389346122742,
-0.8799777626991272,
-0.7223401069641113,
-0.11094492673873901,
0.1607276052236557,
0.42900732159614563,
0.8523997068405151,
0.008510452695190907,
0.07355429232120514,
1.3671823740005493,
1.1539465188980103,
-0.46048659086227417,
0.4178934097290039,
-0.8883067965507507,
-0.38568517565727234,
0.4501206576824188,
0.3561946153640747,
-0.03255539387464523,
0.36890625953674316,
-0.9982760548591614,
-0.33057209849357605,
-0.26426783204078674,
-0.8992399573326111,
-0.8088050484657288,
-0.38530564308166504,
-0.2818228304386139,
1.5367234945297241,
0.11210756003856659,
-0.4197959303855896,
-0.060448963195085526,
-0.7768997550010681,
-0.15208594501018524,
-1.0250420570373535,
0.2553931772708893,
-0.13462017476558685,
-0.03292761370539665,
-0.06203944608569145,
1.770781397819519,
-1.0711312294006348,
-2.239208698272705,
0.29625993967056274,
0.2338157743215561,
-0.4208201766014099,
0.14752277731895447,
1.7077265977859497,
0.5230985879898071,
1.4139070510864258,
1.3546090126037598,
1.0171663761138916,
-0.6541844010353088,
-1.3155136108398438,
0.6834469437599182,
0.9516782164573669,
-1.4254752397537231,
0.8147988319396973,
-0.126429483294487,
-0.47920462489128113,
0.692746639251709,
1.3330432176589966,
0.47288012504577637,
-1.9140175580978394,
0.7866302728652954,
-0.8843587040901184,
0.8283995389938354,
0.7935705184936523,
0.8218040466308594,
0.39590775966644287,
0.8148521780967712,
-1.290006160736084,
-1.1294751167297363,
-0.747512936592102,
-0.541236937046051,
1.9165856838226318,
-0.2291124165058136,
0.5611647963523865,
-0.14907829463481903,
-1.3052624464035034,
-0.047614168375730515,
0.7149476408958435,
0.31713733077049255,
-0.4288237988948822,
0.808786153793335,
-0.6541436314582825,
-1.1196115016937256,
-1.3768465518951416,
-0.4468783140182495,
-0.877644956111908,
-0.9437235593795776,
0.9985124468803406,
0.7026979327201843,
0.31968164443969727,
1.9827783107757568,
0.5349562168121338,
0.25351661443710327,
-2.6182563304901123,
0.9083109498023987,
0.25277701020240784,
0.07981213182210922,
0.8694182634353638,
0.2860771715641022,
1.0854328870773315,
-0.0013997433707118034,
0.40909597277641296,
-2.274061679840088,
2.2603747844696045,
-0.19780443608760834,
0.5962373614311218,
0.04162552207708359,
-0.06062507629394531,
1.1754558086395264,
0.48856350779533386,
0.5398961901664734,
-1.103501796722412,
0.7641944885253906,
-0.5541678071022034,
1.1961983442306519,
0.8891298174858093,
-0.8194046020507812,
0.0066120075061917305,
1.3105820417404175,
0.49941450357437134,
-0.534996509552002,
-0.9496673345565796,
-0.8016538023948669,
0.989657998085022,
1.6187522411346436,
-0.00016630906611680984,
-0.0014371415600180626,
0.8258162140846252,
0.5769702792167664,
-1.2225168943405151,
0.06762731820344925,
-0.5944569706916809,
-0.6954127550125122,
1.742349624633789,
2.090264320373535,
-0.10310741513967514,
-0.2474137395620346,
-0.8489333391189575,
-1.1643949747085571,
0.7683014273643494,
-0.08250528573989868,
0.06670169532299042,
0.6722728610038757,
-0.5505922436714172,
1.134187936782837,
0.7207863926887512,
0.9238684177398682,
0.06884018331766129,
0.3311394155025482,
0.37831297516822815,
-0.2918284833431244,
-1.252648115158081,
-0.3243159353733063,
-1.1761682033538818,
-2.589905261993408,
0.5531014800071716,
-0.3076631426811218,
-1.3287718296051025,
0.17558059096336365,
-1.2129141092300415,
0.960996687412262,
-0.6416555047035217,
-1.0331661701202393,
-1.4152162075042725,
0.21640081703662872,
-0.19302761554718018,
0.8016185760498047,
-1.5803669691085815,
-0.04993858560919762,
1.2112964391708374,
0.893047571182251,
-0.6266393661499023,
0.9513451457023621,
0.2168067991733551,
1.077575922012329,
0.9121928811073303,
-0.3306652307510376,
0.5558079481124878,
0.11999469250440598,
-1.3913829326629639,
0.47385373711586,
1.2557178735733032,
0.22675925493240356,
1.4602186679840088,
-0.5113424062728882,
0.02133139595389366,
0.4832978844642639,
-0.46022748947143555,
-0.5038551688194275,
-0.4762554168701172,
0.7584818601608276,
0.19573456048965454,
-1.0579437017440796,
-0.01564398594200611,
-0.11417502909898758,
-0.17617158591747284,
0.2195737510919571,
-1.5867478847503662,
-0.20211370289325714,
-0.3038465976715088,
-0.6072476506233215,
-1.329946517944336,
-0.03588729351758957,
1.363382339477539,
-0.7179102897644043,
-0.23613522946834564,
0.5723483562469482,
0.3201025128364563,
0.5935184955596924,
0.7060075998306274,
-0.7458458542823792,
-0.3542255759239197,
-0.26451900601387024,
-0.32571107149124146,
0.41511020064353943,
1.3043489456176758,
-0.08486545085906982,
-1.0037397146224976,
0.6330098509788513,
-0.4282627999782562,
0.16053080558776855,
2.041700601577759,
0.09898925572633743,
-0.8639693260192871,
0.2720852792263031,
-0.6168197989463806,
1.9737675189971924,
1.563944697380066,
1.1936477422714233,
-0.052375417202711105,
-0.8971733450889587,
0.6277667284011841,
-0.12331979721784592,
-0.33402934670448303,
0.8935350775718689,
0.4128466248512268,
-0.22693705558776855,
-1.3396271467208862,
0.46680307388305664,
1.2655229568481445,
-0.8706244230270386,
-0.8793595433235168,
0.1018780842423439,
-0.819129228591919,
1.0732613801956177,
0.7231824994087219,
0.33740919828414917,
0.20148076117038727,
1.5120583772659302,
0.6786599159240723,
-0.48094096779823303,
0.49323779344558716,
0.4016202390193939,
-0.21642592549324036,
-2.095288038253784,
-0.9790796041488647,
0.4372228682041168,
-0.35864028334617615,
-1.5905410051345825,
1.3707630634307861,
-1.140126347541809,
-0.870926022529602,
0.5491705536842346,
0.21588347852230072,
1.4423855543136597,
0.23288939893245697,
1.5945260524749756,
2.0307507514953613,
0.9406545758247375,
0.31053707003593445,
1.3049474954605103,
-0.14812226593494415,
-0.519690752029419,
1.7676409482955933,
-0.43802711367607117,
0.5629276633262634,
1.043432593345642,
-0.45592278242111206,
-1.1192350387573242,
-0.7416860461235046,
-1.1431432962417603,
-0.6850100159645081,
1.2485520839691162,
0.25613337755203247,
-1.239593744277954,
0.1992742270231247,
1.6004512310028076,
0.0855376273393631,
-0.21695059537887573,
0.602149486541748,
0.45960861444473267,
-0.7958598136901855,
0.07001972943544388,
-0.9434916377067566,
0.49620509147644043,
-0.11387338489294052,
-0.27385032176971436,
0.29809069633483887,
0.44861552119255066,
1.1880648136138916,
0.03417029604315758,
0.14395856857299805,
1.1628034114837646,
-1.3835880756378174,
1.4128499031066895,
-0.6141335964202881,
0.27498412132263184,
-2.460665225982666,
1.440869688987732,
-0.7862594127655029,
1.7902562618255615,
-2.6370761394500732,
0.3718462586402893,
-0.6349081993103027,
-0.4551161825656891,
0.23189043998718262,
-0.37793317437171936,
0.1395510733127594,
-0.16239380836486816,
-1.084731101989746,
-0.07627460360527039,
-0.8264903426170349,
0.5738458633422852,
1.157499074935913,
1.3018492460250854,
-1.0709104537963867,
-0.23703040182590485,
-1.812040090560913,
-0.14493651688098907,
-0.6385296583175659,
0.19886943697929382,
-2.0641002655029297,
-0.15103352069854736,
-1.9692083597183228,
-2.3252406120300293,
-1.3498220443725586,
-0.7261146903038025,
1.0572320222854614,
0.2474122941493988,
-0.8354473114013672,
1.0851346254348755,
-0.3507999777793884,
-1.7741327285766602,
1.042751431465149,
-2.240079879760742
] |
https://github.com/huggingface/datasets/issues/4596 | Dataset Viewer issue for universal_dependencies | Finally fixed! We updated the dataset viewer and it fixed the issue.
https://huggingface.co/datasets/universal_dependencies/viewer/aqz_tudet/train
<img width="1561" alt="Capture d’écran 2022-09-07 à 13 29 18" src="https://user-images.githubusercontent.com/1676121/188867795-4f7dd438-d4f2-46cd-8a92-20a37fb2d6bc.png">
| ### Link
https://huggingface.co/datasets/universal_dependencies
### Description
invalid json response body at https://datasets-server.huggingface.co/splits?dataset=universal_dependencies reason: Unexpected token I in JSON at position 0
### Owner
_No response_ | 673 | 23 | Dataset Viewer issue for universal_dependencies
### Link
https://huggingface.co/datasets/universal_dependencies
### Description
invalid json response body at https://datasets-server.huggingface.co/splits?dataset=universal_dependencies reason: Unexpected token I in JSON at position 0
### Owner
_No response_
Finally fixed! We updated the dataset viewer and it fixed the issue.
https://huggingface.co/datasets/universal_dependencies/viewer/aqz_tudet/train
<img width="1561" alt="Capture d’écran 2022-09-07 à 13 29 18" src="https://user-images.githubusercontent.com/1676121/188867795-4f7dd438-d4f2-46cd-8a92-20a37fb2d6bc.png">
| [
-1.189935326576233,
-0.8371029496192932,
-0.8077017068862915,
1.517710566520691,
-0.08240140229463577,
-1.3139744997024536,
0.09726472944021225,
-0.9638326168060303,
1.6074433326721191,
-0.7114813923835754,
0.274070680141449,
-1.6531822681427002,
-0.042335182428359985,
-0.5283533334732056,
-0.6729632019996643,
-0.9421361088752747,
-0.35481590032577515,
-0.7494728565216064,
1.0081754922866821,
2.572354793548584,
1.3253309726715088,
-1.321561574935913,
2.7819175720214844,
0.7258331179618835,
-0.29617902636528015,
-0.9474486708641052,
0.5368277430534363,
0.07288909703493118,
-1.2022324800491333,
-0.4145360589027405,
-0.8786529898643494,
-0.040856365114450455,
-0.5227131843566895,
-0.4494151175022125,
0.020348846912384033,
0.5760140419006348,
-0.21129730343818665,
-0.2968672811985016,
-0.5075921416282654,
-0.8289170861244202,
0.38425201177597046,
-0.36591556668281555,
0.8931735754013062,
-0.4146428108215332,
1.8696224689483643,
-0.6089470982551575,
0.3454568386077881,
0.6443722248077393,
1.2378137111663818,
0.1027337983250618,
-0.06389345973730087,
0.15557679533958435,
0.38747909665107727,
-0.060584165155887604,
0.46884459257125854,
1.28109610080719,
0.610932469367981,
0.5128121972084045,
0.674065887928009,
-2.1565043926239014,
1.3951561450958252,
-0.8707893490791321,
0.1802394688129425,
1.4913369417190552,
-1.0710045099258423,
0.4195123016834259,
-1.8449712991714478,
-0.06501634418964386,
0.48563429713249207,
-2.3516762256622314,
0.26353222131729126,
-1.3388949632644653,
-0.6879597306251526,
0.9828142523765564,
0.2766147255897522,
-1.259211778640747,
0.014792040921747684,
-0.5010824799537659,
1.0693236589431763,
0.5848767757415771,
1.1313103437423706,
-1.729095220565796,
-0.014660668559372425,
-0.19073626399040222,
-0.018662363290786743,
-1.4435758590698242,
-1.5103446245193481,
0.5133821964263916,
0.6087566614151001,
0.7861670851707458,
-0.0007542772218585014,
0.8813552260398865,
-0.9828487634658813,
0.7990869283676147,
-0.9210081100463867,
-1.6521828174591064,
-1.3328540325164795,
-2.3920958042144775,
-2.344893455505371,
0.7822325229644775,
-0.4115772545337677,
-0.5380021929740906,
1.9950624704360962,
-1.0231338739395142,
-1.663683295249939,
1.1046807765960693,
0.25989457964897156,
0.02137085422873497,
2.4884092807769775,
0.337721049785614,
-0.8083614110946655,
0.3680934011936188,
-0.821678876876831,
0.7961198091506958,
-0.4253596067428589,
1.3615957498550415,
0.6127269268035889,
-1.0002752542495728,
1.5292526483535767,
-0.4675237238407135,
0.5503820776939392,
-0.7206999659538269,
-0.5178353190422058,
-0.8251699209213257,
0.2548186779022217,
1.9643094539642334,
-0.33779531717300415,
1.5153467655181885,
-0.28567034006118774,
-1.5714863538742065,
-1.501985788345337,
0.8604558110237122,
0.4653675854206085,
-0.9341263771057129,
0.1466076821088791,
-0.4998489022254944,
0.08006680011749268,
-0.015548087656497955,
1.0769442319869995,
1.1768605709075928,
0.7066395282745361,
-0.34540846943855286,
-0.8627253174781799,
0.25216755270957947,
-0.035850901156663895,
-0.6771695017814636,
-1.7162339687347412,
-0.30326613783836365,
0.14562423527240753,
0.6345412135124207,
-1.274224042892456,
1.7373636960983276,
0.8703519105911255,
1.955350637435913,
0.935311496257782,
-0.35987588763237,
1.4532232284545898,
-0.05327540636062622,
1.8257330656051636,
-0.5576050281524658,
0.6958060264587402,
-0.2988990247249603,
-1.1575323343276978,
0.7693192958831787,
-0.3704807460308075,
-1.9710633754730225,
-0.855807363986969,
-0.859548032283783,
-0.1323155015707016,
-0.763435959815979,
0.9318773746490479,
-0.31032034754753113,
-1.3836866617202759,
0.1474435180425644,
-0.710090160369873,
0.19330580532550812,
-1.3774734735488892,
0.27704697847366333,
0.7792794108390808,
-0.6168535351753235,
-0.04631206765770912,
-0.23187540471553802,
-1.2428088188171387,
-0.4527147710323334,
0.34758883714675903,
1.9729344844818115,
-0.6490121483802795,
0.955342710018158,
0.9636740684509277,
-0.7057963609695435,
0.12920181453227997,
0.3634406328201294,
-0.284188449382782,
0.8803310394287109,
-1.1069716215133667,
-0.33742329478263855,
1.138301968574524,
-0.22012116014957428,
-0.6449611783027649,
1.4794809818267822,
0.8110717535018921,
-0.959674596786499,
-0.21854610741138458,
-0.21103811264038086,
-0.7309626340866089,
0.0074387891218066216,
-1.4971548318862915,
-0.09213317185640335,
0.30758020281791687,
-1.4482336044311523,
-0.4902273714542389,
-0.24960961937904358,
1.3754818439483643,
-0.20669002830982208,
1.3925299644470215,
-0.2892182767391205,
-0.17273934185504913,
-0.4212283194065094,
-0.3982066810131073,
0.15921597182750702,
-0.22388768196105957,
-0.6367591619491577,
0.2506568431854248,
-0.8087891936302185,
0.2155107706785202,
1.5030783414840698,
0.42540934681892395,
0.11964736133813858,
0.5326477289199829,
1.1182966232299805,
0.38228505849838257,
-0.1473487913608551,
-0.8526083827018738,
-1.5864263772964478,
1.9636880159378052,
-1.5335524082183838,
1.9241671562194824,
0.8213781118392944,
-0.05279899388551712,
-1.7266520261764526,
-1.9780714511871338,
1.2878607511520386,
1.2062135934829712,
2.3949129581451416,
0.5717280507087708,
0.39331376552581787,
-0.8240863084793091,
-0.7823508977890015,
0.26791179180145264,
-1.134507417678833,
-0.7321444153785706,
0.14533743262290955,
2.265031576156616,
1.7016223669052124,
-0.5275227427482605,
-0.2883966267108917,
-0.9674383401870728,
1.2387750148773193,
-0.15455465018749237,
0.20976684987545013,
2.0289244651794434,
-0.341607004404068,
-0.9464377760887146,
1.1894810199737549,
-2.329287528991699,
0.11591500788927078,
1.9953197240829468,
0.27535462379455566,
0.09987717866897583,
-1.4490149021148682,
-0.6934033036231995,
-0.31116023659706116,
-0.4593520164489746,
-1.2169674634933472,
0.5346393585205078,
-0.2983774244785309,
-0.9484689235687256,
-1.468796968460083,
0.09198801219463348,
-1.125035285949707,
-1.7137399911880493,
0.3778267800807953,
1.876365065574646,
1.981798768043518,
-0.848899781703949,
1.4503213167190552,
-0.19191646575927734,
0.07332620769739151,
1.2538022994995117,
1.3339375257492065,
3.173666000366211,
1.839121699333191,
-1.2902920246124268,
0.7689191699028015,
-0.14756567776203156,
-0.4084872901439667,
1.2117310762405396,
-1.1192927360534668,
1.1531411409378052,
-0.1922864317893982,
-1.2482593059539795,
-1.2863242626190186,
0.9326515197753906,
0.5536446571350098,
0.03706683963537216,
-0.4908595681190491,
1.296984076499939,
0.05374893173575401,
1.393456220626831,
0.5201539993286133,
-0.3762718439102173,
0.5616494417190552,
-0.4156190752983093,
-0.43354612588882446,
1.5229853391647339,
0.16463960707187653,
-1.5669078826904297,
-2.3026249408721924,
-0.26136451959609985,
-0.8845768570899963,
-0.15331308543682098,
-0.6591847538948059,
-1.0957543849945068,
1.6541392803192139,
0.5534895062446594,
-1.240612268447876,
-0.32111459970474243,
-0.3081708550453186,
-0.6029121279716492,
2.6909525394439697,
-1.3564776182174683,
-0.10506756603717804,
-0.9735040068626404,
-0.4832855761051178,
1.6651108264923096,
-1.2418155670166016,
-0.17260302603244781,
-0.9920730590820312,
-0.6398184299468994,
-1.4298558235168457,
-0.5394866466522217,
-0.014753801748156548,
-0.9196313619613647,
0.7461483478546143,
0.01097236666828394,
-1.0558862686157227,
-0.24420887231826782,
-0.8792688250541687,
0.9563260674476624,
-0.09729919582605362,
0.2687370777130127,
1.837561845779419,
0.35551366209983826,
-0.39472174644470215,
0.7752981185913086,
1.20426344871521,
0.5780311822891235,
-0.6701950430870056,
0.1176605150103569,
-0.6792021989822388,
0.29473477602005005,
-1.335847020149231,
0.2796115577220917,
-2.917023181915283,
0.6335452795028687,
-0.10544713586568832,
-0.1131933182477951,
-0.06036617234349251,
-1.3082115650177002,
1.24629807472229,
2.505955934524536,
-1.122092366218567,
0.5378508567810059,
0.3234579861164093,
1.2200005054473877,
-1.5882692337036133,
0.32593709230422974,
-0.5079056024551392,
2.0256764888763428,
0.1740642488002777,
1.2901554107666016,
-0.4819827973842621,
-2.15468168258667,
0.635013222694397,
-1.211235761642456,
-0.9923940896987915,
0.8223178386688232,
-0.8825002312660217,
0.14279292523860931,
-1.328939437866211,
-0.20363742113113403,
-0.9092910885810852,
-1.254654884338379,
0.7159680724143982,
0.1421186774969101,
0.4579732418060303,
-0.5932600498199463,
0.44763466715812683,
-2.1715450286865234,
-1.318474292755127,
-0.21976140141487122,
-0.8921383619308472,
0.48026055097579956,
-0.3680311441421509,
0.6084916591644287,
-0.07949133217334747,
0.11725681275129318,
0.3032130002975464,
1.4366395473480225,
3.3600175380706787,
0.18489041924476624,
0.30736473202705383,
-0.10043807327747345,
-1.0173261165618896,
1.5390018224716187,
0.9921863079071045,
-0.01754743978381157,
-0.6023386120796204,
-0.9416245818138123,
1.3412895202636719,
1.8978793621063232,
1.131535291671753,
0.033420369029045105,
-0.836149275302887,
-0.7093345522880554,
-0.02083936706185341,
0.19652871787548065,
0.4504501223564148,
0.9462335109710693,
-0.007475672289729118,
0.10459263622760773,
1.4272987842559814,
1.257949948310852,
-0.44659918546676636,
0.4157932996749878,
-0.9653766751289368,
-0.3709827959537506,
0.4752509891986847,
0.22712063789367676,
0.020770594477653503,
0.4557797908782959,
-1.1010698080062866,
-0.2598620653152466,
-0.2720142900943756,
-0.9631062150001526,
-0.738789439201355,
-0.40668272972106934,
-0.3451223075389862,
1.634592890739441,
0.039966799318790436,
-0.45996934175491333,
0.07277137041091919,
-0.8710637092590332,
-0.16387109458446503,
-1.1626116037368774,
0.2681557536125183,
-0.21238654851913452,
-0.07544123381376266,
-0.14582733809947968,
1.8302425146102905,
-1.02485191822052,
-2.268601894378662,
0.2749476134777069,
0.23268170654773712,
-0.46282652020454407,
0.13638462126255035,
1.7218272686004639,
0.5031825304031372,
1.3882962465286255,
1.2271728515625,
0.9870148301124573,
-0.7096346020698547,
-1.2878974676132202,
0.692532479763031,
0.9585737586021423,
-1.3271691799163818,
0.8966277241706848,
-0.1593679040670395,
-0.5123448371887207,
0.6775254607200623,
1.2153146266937256,
0.37177082896232605,
-1.8896174430847168,
0.8254742622375488,
-0.866368293762207,
0.7981958985328674,
0.6992785930633545,
0.8203510046005249,
0.2357463836669922,
0.8488155603408813,
-1.2785911560058594,
-1.138351559638977,
-0.7574096322059631,
-0.5356792211532593,
1.8609596490859985,
-0.19440722465515137,
0.5227200388908386,
-0.1383761614561081,
-1.1142979860305786,
0.01227771770209074,
0.7415702939033508,
0.31949925422668457,
-0.34670329093933105,
0.8977704644203186,
-0.629654049873352,
-1.0151311159133911,
-1.3055572509765625,
-0.4791966378688812,
-0.8833516240119934,
-0.9116328954696655,
1.0224459171295166,
0.7243441343307495,
0.3396989107131958,
1.9177862405776978,
0.652508020401001,
0.2824903428554535,
-2.694157600402832,
0.8703179955482483,
0.3024262487888336,
0.14733543992042542,
0.9318796992301941,
0.284440279006958,
1.2379604578018188,
0.036052875220775604,
0.4630378484725952,
-2.3874714374542236,
2.248352289199829,
-0.21276451647281647,
0.6773497462272644,
0.015769492834806442,
-0.15707279741764069,
1.098276138305664,
0.6027788519859314,
0.5083983540534973,
-1.1742687225341797,
0.785871148109436,
-0.5742036700248718,
1.1124299764633179,
0.8446769714355469,
-0.9175540804862976,
0.13393378257751465,
1.3364890813827515,
0.5433053374290466,
-0.4859268367290497,
-0.9181142449378967,
-0.8690986633300781,
0.8784285187721252,
1.6589200496673584,
0.04695617035031319,
0.062283698469400406,
0.8091304302215576,
0.5625307559967041,
-1.1781781911849976,
-0.03527633473277092,
-0.6481844782829285,
-0.6101750731468201,
1.7420868873596191,
2.0189409255981445,
-0.06419584900140762,
-0.23133978247642517,
-0.723264753818512,
-1.133558988571167,
0.6928123235702515,
-0.07771047204732895,
0.07762739807367325,
0.7642014622688293,
-0.7139866948127747,
1.100098967552185,
0.7202230095863342,
0.972820520401001,
0.008318130858242512,
0.36407047510147095,
0.43562978506088257,
-0.298617959022522,
-1.2520591020584106,
-0.339423269033432,
-1.182594895362854,
-2.5994906425476074,
0.4686799645423889,
-0.3875882923603058,
-1.3999844789505005,
0.05416553094983101,
-1.1279488801956177,
0.9849636554718018,
-0.629481852054596,
-1.1098357439041138,
-1.43581223487854,
0.2471955120563507,
-0.18434306979179382,
0.871911346912384,
-1.5372835397720337,
-0.1415800303220749,
1.3143353462219238,
0.9110860824584961,
-0.6481724977493286,
1.020380973815918,
0.22133056819438934,
1.0448375940322876,
0.763699471950531,
-0.35203248262405396,
0.4981687664985657,
0.09912638366222382,
-1.4967305660247803,
0.451971173286438,
1.2578707933425903,
0.20204176008701324,
1.3898053169250488,
-0.5207734107971191,
0.052905138581991196,
0.5522371530532837,
-0.46223917603492737,
-0.5213660001754761,
-0.4782449007034302,
0.7449832558631897,
0.14086347818374634,
-1.0378276109695435,
0.02346928045153618,
-0.2637210786342621,
-0.19734033942222595,
0.2602839171886444,
-1.4987612962722778,
-0.3149860203266144,
-0.4056883156299591,
-0.5866135954856873,
-1.3777377605438232,
0.013105166144669056,
1.2776110172271729,
-0.8579277396202087,
-0.1970246285200119,
0.5183622241020203,
0.3331051468849182,
0.5150492787361145,
0.5965401530265808,
-0.7305272817611694,
-0.24096707999706268,
-0.312270849943161,
-0.3242144286632538,
0.3016299605369568,
1.2060115337371826,
-0.13030698895454407,
-1.0548282861709595,
0.6545573472976685,
-0.30040720105171204,
0.22737513482570648,
2.0021872520446777,
0.044383469969034195,
-0.8073302507400513,
0.37180665135383606,
-0.6768157482147217,
1.8819875717163086,
1.5538811683654785,
1.3961715698242188,
-0.1979762613773346,
-0.8039475679397583,
0.5811739563941956,
-0.23671835660934448,
-0.3332124948501587,
0.8981838822364807,
0.4303695559501648,
-0.20683719217777252,
-1.397015929222107,
0.5445044636726379,
1.2617543935775757,
-1.0066372156143188,
-0.7969085574150085,
0.2048366516828537,
-0.8516160845756531,
1.160800814628601,
0.6969262361526489,
0.3639298975467682,
0.2678777873516083,
1.6103899478912354,
0.6700659990310669,
-0.5243833661079407,
0.4353783130645752,
0.430023729801178,
-0.11602595448493958,
-2.0650076866149902,
-0.912926435470581,
0.32923424243927,
-0.42673593759536743,
-1.4329099655151367,
1.3357495069503784,
-1.1612040996551514,
-0.983525276184082,
0.4891493618488312,
0.23254865407943726,
1.4328701496124268,
0.3042733669281006,
1.7224839925765991,
2.0468623638153076,
0.8754949569702148,
0.2570938467979431,
1.2738969326019287,
-0.13107000291347504,
-0.47046270966529846,
1.7599440813064575,
-0.4230071008205414,
0.5527966022491455,
1.0275102853775024,
-0.4638778269290924,
-1.1046377420425415,
-0.7894425988197327,
-1.1458772420883179,
-0.6713659763336182,
1.198696494102478,
0.2442423403263092,
-1.1050058603286743,
0.14125292003154755,
1.5521066188812256,
0.1038263663649559,
-0.23306392133235931,
0.609261691570282,
0.4287676215171814,
-0.736680269241333,
-0.0901944488286972,
-0.8944960832595825,
0.5254931449890137,
-0.06315141171216965,
-0.3999730944633484,
0.24653059244155884,
0.4911474585533142,
1.2090191841125488,
0.017847489565610886,
0.16540735960006714,
1.297744870185852,
-1.2864842414855957,
1.4821414947509766,
-0.6737046837806702,
0.1854148656129837,
-2.4129343032836914,
1.4322190284729004,
-0.7791736125946045,
1.9087375402450562,
-2.636833906173706,
0.39850765466690063,
-0.5003275871276855,
-0.462568998336792,
0.2226654440164566,
-0.42751798033714294,
0.0950031504034996,
-0.15424561500549316,
-0.9589013457298279,
-0.09189760684967041,
-0.7781787514686584,
0.6265668272972107,
1.2440451383590698,
1.3525965213775635,
-1.1270582675933838,
-0.20769666135311127,
-1.8008487224578857,
-0.06779063493013382,
-0.8103954792022705,
0.24906793236732483,
-2.0088138580322266,
-0.1378355324268341,
-1.9667003154754639,
-2.3487324714660645,
-1.4641571044921875,
-0.8486713171005249,
1.1103399991989136,
0.29463088512420654,
-0.8558251261711121,
1.1434181928634644,
-0.2890397906303406,
-1.6986122131347656,
1.1215519905090332,
-2.1731014251708984
] |
https://github.com/huggingface/datasets/issues/4595 | Dataset Viewer issue with False positive PII redaction | The value is in the data, it's not an issue with the "dataset-viewer".
<img width="1161" alt="Capture d’écran 2022-06-29 à 10 25 51" src="https://user-images.githubusercontent.com/1676121/176389325-4d2a9a7f-1583-45b8-aa7a-960ffaa6a36a.png">
Maybe open a PR: https://huggingface.co/datasets/cakiki/rosetta-code/discussions
| ### Link
https://huggingface.co/datasets/cakiki/rosetta-code
### Description
Hello, I just noticed an entry being redacted that shouldn't have been:
`RootMeanSquare@Range[10]` is being displayed as `[email protected][10]`
### Owner
_No response_ | 674 | 28 | Dataset Viewer issue with False positive PII redaction
### Link
https://huggingface.co/datasets/cakiki/rosetta-code
### Description
Hello, I just noticed an entry being redacted that shouldn't have been:
`RootMeanSquare@Range[10]` is being displayed as `[email protected][10]`
### Owner
_No response_
The value is in the data, it's not an issue with the "dataset-viewer".
<img width="1161" alt="Capture d’écran 2022-06-29 à 10 25 51" src="https://user-images.githubusercontent.com/1676121/176389325-4d2a9a7f-1583-45b8-aa7a-960ffaa6a36a.png">
Maybe open a PR: https://huggingface.co/datasets/cakiki/rosetta-code/discussions
| [
-1.1679298877716064,
-0.8601818680763245,
-0.8075669407844543,
1.4568439722061157,
-0.12274829298257828,
-1.2854361534118652,
0.07266354560852051,
-0.9385180473327637,
1.606716513633728,
-0.7329935431480408,
0.333931028842926,
-1.6106531620025635,
0.011929631233215332,
-0.6302456855773926,
-0.6245508193969727,
-0.8674860596656799,
-0.31879764795303345,
-0.8030940294265747,
1.035491943359375,
2.6258020401000977,
1.2143287658691406,
-1.2749451398849487,
2.835317611694336,
0.6948550343513489,
-0.24754756689071655,
-0.8721099495887756,
0.5598137974739075,
0.010065121576189995,
-1.2111095190048218,
-0.4386143982410431,
-0.9148945212364197,
-0.03904317319393158,
-0.4920161962509155,
-0.535880446434021,
0.05366356670856476,
0.40837550163269043,
-0.18286508321762085,
-0.35038095712661743,
-0.45567232370376587,
-0.8520283102989197,
0.36733585596084595,
-0.4354829490184784,
0.8831933736801147,
-0.4059774875640869,
1.8784167766571045,
-0.5767839550971985,
0.3406689465045929,
0.6298650503158569,
1.2879971265792847,
0.18001601099967957,
-0.04411636292934418,
0.29765599966049194,
0.35669875144958496,
-0.09874080866575241,
0.4373362362384796,
1.2256450653076172,
0.5918997526168823,
0.5275930166244507,
0.7507345080375671,
-2.2141287326812744,
1.2929505109786987,
-0.8757064938545227,
0.18457035720348358,
1.402584433555603,
-0.9658914804458618,
0.5082578063011169,
-1.831066608428955,
-0.01168622262775898,
0.5016734004020691,
-2.3409929275512695,
0.16929437220096588,
-1.299626350402832,
-0.6159127950668335,
0.9515299797058105,
0.22234870493412018,
-1.3023390769958496,
0.02559906803071499,
-0.46943002939224243,
1.0251587629318237,
0.5316702127456665,
1.193257451057434,
-1.6448262929916382,
-0.01810130849480629,
-0.26032644510269165,
0.053099483251571655,
-1.447021722793579,
-1.5435402393341064,
0.5159382224082947,
0.6236101388931274,
0.6888571381568909,
-0.08134358376264572,
0.9099848866462708,
-0.9600417017936707,
0.7890480160713196,
-0.8761273622512817,
-1.6215643882751465,
-1.3670949935913086,
-2.2726030349731445,
-2.319587230682373,
0.7912206053733826,
-0.4995952248573303,
-0.4709601402282715,
1.931294560432434,
-1.0344221591949463,
-1.7775524854660034,
1.1731325387954712,
0.27352097630500793,
0.04477551579475403,
2.477327346801758,
0.3148009479045868,
-0.8103720545768738,
0.40902847051620483,
-0.7228814363479614,
0.8394754528999329,
-0.45716047286987305,
1.425290584564209,
0.4591170847415924,
-0.9827841520309448,
1.6532357931137085,
-0.48793962597846985,
0.5200107097625732,
-0.7105913162231445,
-0.442951500415802,
-0.8375523090362549,
0.37215742468833923,
1.9212156534194946,
-0.3636285364627838,
1.6140446662902832,
-0.3334922194480896,
-1.5818920135498047,
-1.5020064115524292,
0.7852388620376587,
0.49943581223487854,
-0.8604856133460999,
0.15895725786685944,
-0.3186132311820984,
0.12137197703123093,
-0.06320036202669144,
1.0608127117156982,
1.2916849851608276,
0.6684564352035522,
-0.26163968443870544,
-0.9005404114723206,
0.21602188050746918,
-0.09558139741420746,
-0.6870448589324951,
-1.748069405555725,
-0.3915559947490692,
0.20354953408241272,
0.6204559803009033,
-1.3334892988204956,
1.780727505683899,
0.8444437980651855,
2.020116090774536,
0.9376977682113647,
-0.27726927399635315,
1.500747561454773,
0.026434196159243584,
1.88710355758667,
-0.49757125973701477,
0.6943626403808594,
-0.3529304265975952,
-1.1333376169204712,
0.7605935335159302,
-0.3710729479789734,
-1.972031593322754,
-0.8392550945281982,
-0.9291050434112549,
-0.23017655313014984,
-0.7985379099845886,
0.9322502017021179,
-0.3076039254665375,
-1.3683109283447266,
0.290002703666687,
-0.7818937301635742,
0.04305228590965271,
-1.3437167406082153,
0.2082105129957199,
0.7133932113647461,
-0.6141550540924072,
0.04095950722694397,
-0.19703005254268646,
-1.3090587854385376,
-0.4869018495082855,
0.3012867271900177,
2.0419485569000244,
-0.6916440725326538,
0.9437032341957092,
0.9858463406562805,
-0.6955444812774658,
0.06780730932950974,
0.3964672386646271,
-0.35876840353012085,
0.8029888272285461,
-1.144615650177002,
-0.3506939709186554,
1.1627365350723267,
-0.18380151689052582,
-0.6117091774940491,
1.3566840887069702,
0.8141166567802429,
-1.0041306018829346,
-0.23849181830883026,
-0.19297699630260468,
-0.7621088027954102,
0.03276115655899048,
-1.590253472328186,
-0.13961121439933777,
0.26913729310035706,
-1.3308429718017578,
-0.4957877993583679,
-0.16432611644268036,
1.3576269149780273,
-0.12146950513124466,
1.3348692655563354,
-0.36835718154907227,
-0.2967677414417267,
-0.4611513018608093,
-0.49958616495132446,
0.12034996598958969,
-0.2523684799671173,
-0.6630100607872009,
0.2927744388580322,
-0.773743748664856,
0.2739732563495636,
1.4023120403289795,
0.35686320066452026,
0.09307404607534409,
0.5076790452003479,
1.1150463819503784,
0.3609825074672699,
-0.01759997382760048,
-0.9231815338134766,
-1.5889686346054077,
1.9635206460952759,
-1.475425362586975,
1.9420511722564697,
0.778937578201294,
-0.027922427281737328,
-1.7725123167037964,
-1.9462895393371582,
1.377928614616394,
1.1901087760925293,
2.390011787414551,
0.6639119386672974,
0.4199085533618927,
-0.8058924078941345,
-0.791466474533081,
0.2512616217136383,
-1.1193022727966309,
-0.8256196975708008,
0.1422666609287262,
2.3585143089294434,
1.7243537902832031,
-0.5144718885421753,
-0.18925011157989502,
-0.9083248376846313,
1.1841561794281006,
-0.11017319560050964,
0.23744305968284607,
2.050928831100464,
-0.35006433725357056,
-1.0279170274734497,
1.1765329837799072,
-2.2839267253875732,
0.10585585981607437,
1.9572041034698486,
0.24572442471981049,
0.13959133625030518,
-1.3899431228637695,
-0.7730354070663452,
-0.24323773384094238,
-0.4656534790992737,
-1.1950865983963013,
0.5566177368164062,
-0.3227023780345917,
-0.9641279578208923,
-1.4281357526779175,
0.12043104320764542,
-1.1632024049758911,
-1.642565131187439,
0.31910163164138794,
1.8738055229187012,
2.0603926181793213,
-0.8646140694618225,
1.4455575942993164,
-0.21213504672050476,
0.11275012791156769,
1.2994359731674194,
1.281891107559204,
3.158097982406616,
1.8842164278030396,
-1.2194734811782837,
0.7319378852844238,
-0.16944512724876404,
-0.39420759677886963,
1.197205901145935,
-1.119106650352478,
1.2607563734054565,
-0.1663382649421692,
-1.2294368743896484,
-1.240715503692627,
0.8847227096557617,
0.550063967704773,
-0.07287321984767914,
-0.47704678773880005,
1.2987046241760254,
0.07518501579761505,
1.3607664108276367,
0.5421825647354126,
-0.2854125499725342,
0.5701180100440979,
-0.3982924818992615,
-0.45425301790237427,
1.56226646900177,
0.16948707401752472,
-1.5075020790100098,
-2.319735527038574,
-0.18434986472129822,
-0.8657946586608887,
-0.09477534890174866,
-0.7242043614387512,
-1.0996288061141968,
1.636870265007019,
0.48671919107437134,
-1.1440428495407104,
-0.2915646731853485,
-0.4003062844276428,
-0.607515811920166,
2.6199281215667725,
-1.4300899505615234,
-0.2238558530807495,
-0.9858981370925903,
-0.4535709321498871,
1.5748916864395142,
-1.2124378681182861,
-0.15145161747932434,
-1.0038481950759888,
-0.5343841910362244,
-1.3235012292861938,
-0.5531864762306213,
-0.03239452838897705,
-0.8349661231040955,
0.7663130164146423,
0.1241842582821846,
-1.041134238243103,
-0.23951761424541473,
-0.982522189617157,
0.8575412034988403,
-0.07527276873588562,
0.2638895511627197,
1.8734819889068604,
0.36384332180023193,
-0.3097527027130127,
0.6948426961898804,
1.162729263305664,
0.5884816646575928,
-0.7240767478942871,
0.2342330366373062,
-0.5896978974342346,
0.2788185477256775,
-1.404076099395752,
0.3228011429309845,
-2.9478116035461426,
0.6398148536682129,
-0.08849141001701355,
-0.1203313022851944,
0.02699299342930317,
-1.313401460647583,
1.2039910554885864,
2.5497820377349854,
-1.079350233078003,
0.4732573628425598,
0.28358182311058044,
1.2092550992965698,
-1.7448824644088745,
0.260113000869751,
-0.4922090470790863,
2.0993452072143555,
0.14951477944850922,
1.2340410947799683,
-0.44182607531547546,
-2.26906681060791,
0.6492707133293152,
-1.2248365879058838,
-1.0347485542297363,
0.770584762096405,
-0.8589951992034912,
0.1564343422651291,
-1.4365347623825073,
-0.18442539870738983,
-0.8338202834129333,
-1.243606686592102,
0.7848177552223206,
0.05392689257860184,
0.5010454058647156,
-0.5197209119796753,
0.37506502866744995,
-2.1343727111816406,
-1.378840684890747,
-0.17823916673660278,
-0.9032654166221619,
0.4121461808681488,
-0.29096922278404236,
0.7291876077651978,
-0.131070077419281,
0.10248886793851852,
0.29950249195098877,
1.4397311210632324,
3.362790107727051,
0.17579986155033112,
0.38478872179985046,
-0.11698295176029205,
-0.9621497988700867,
1.4329437017440796,
0.9987362027168274,
-0.04449353367090225,
-0.533300518989563,
-1.0175269842147827,
1.2824808359146118,
1.9938610792160034,
1.0941308736801147,
0.13247932493686676,
-0.8375488519668579,
-0.7360648512840271,
0.068024180829525,
0.1637059450149536,
0.4144093990325928,
0.9145288467407227,
0.052675582468509674,
0.08679588884115219,
1.4355288743972778,
1.203076720237732,
-0.45253944396972656,
0.4638111889362335,
-0.9184724688529968,
-0.42444396018981934,
0.4927496016025543,
0.24450351297855377,
0.10189419239759445,
0.3781593441963196,
-0.9775621891021729,
-0.2365269511938095,
-0.2853764593601227,
-0.9721208810806274,
-0.711943507194519,
-0.419410765171051,
-0.29818928241729736,
1.6252142190933228,
-0.010445832274854183,
-0.5015552639961243,
-0.01578320562839508,
-0.7931451201438904,
-0.10073311626911163,
-1.0901248455047607,
0.1311260163784027,
-0.1461898386478424,
-0.05994630604982376,
-0.11764344573020935,
1.781067132949829,
-0.9827002286911011,
-2.2605361938476562,
0.20683936774730682,
0.29322463274002075,
-0.41128769516944885,
0.09249676764011383,
1.7342290878295898,
0.5209391117095947,
1.4235551357269287,
1.2951977252960205,
1.0687222480773926,
-0.6763208508491516,
-1.3001751899719238,
0.6236094236373901,
0.9454225897789001,
-1.3252824544906616,
0.8823824524879456,
-0.1539240926504135,
-0.47882187366485596,
0.6206846833229065,
1.3130666017532349,
0.43430909514427185,
-1.862228512763977,
0.7924112677574158,
-0.8802552819252014,
0.8533455729484558,
0.674085259437561,
0.8358227014541626,
0.23151040077209473,
0.808723509311676,
-1.2550840377807617,
-1.1017650365829468,
-0.7462748289108276,
-0.556235134601593,
1.823959231376648,
-0.18717889487743378,
0.44620999693870544,
-0.17823117971420288,
-1.2838746309280396,
0.027513159438967705,
0.6955363750457764,
0.3514555096626282,
-0.3679055869579315,
0.7633938193321228,
-0.656827986240387,
-1.0219064950942993,
-1.4565516710281372,
-0.4766572415828705,
-0.9204548597335815,
-1.0124098062515259,
1.047482967376709,
0.7585980296134949,
0.3475809693336487,
1.9434579610824585,
0.6874995231628418,
0.3055514693260193,
-2.6349267959594727,
0.9149190187454224,
0.32611533999443054,
0.12699274718761444,
0.9631630182266235,
0.28344035148620605,
1.1991806030273438,
-0.08375003933906555,
0.3947469890117645,
-2.3682844638824463,
2.242170810699463,
-0.27727144956588745,
0.5959494113922119,
0.0006795823574066162,
-0.11415789276361465,
1.0644559860229492,
0.491346150636673,
0.5374760031700134,
-1.1626644134521484,
0.7453548312187195,
-0.5753517150878906,
1.0882160663604736,
0.9345032572746277,
-0.898695170879364,
0.1815171241760254,
1.308530569076538,
0.5067682862281799,
-0.5259942412376404,
-0.8122767806053162,
-0.8395828604698181,
0.9169355034828186,
1.6813900470733643,
0.04708313196897507,
-0.04746248573064804,
0.8455788493156433,
0.5630584955215454,
-1.283405065536499,
0.0423303097486496,
-0.6506869792938232,
-0.6444323658943176,
1.7645342350006104,
1.9781829118728638,
-0.02231816202402115,
-0.22968760132789612,
-0.6926893591880798,
-1.218274712562561,
0.7444677352905273,
-0.003555033355951309,
0.09162487089633942,
0.7452260851860046,
-0.6667613387107849,
1.1296378374099731,
0.7613499760627747,
0.919488787651062,
0.1294480711221695,
0.33248427510261536,
0.45489731431007385,
-0.363952100276947,
-1.2043105363845825,
-0.3493858873844147,
-1.1216996908187866,
-2.6163089275360107,
0.5161395072937012,
-0.2879045009613037,
-1.4613122940063477,
0.007506167516112328,
-1.0502885580062866,
0.9207768440246582,
-0.5249239206314087,
-1.0605816841125488,
-1.4397718906402588,
0.23880061507225037,
-0.19304729998111725,
0.8207114934921265,
-1.6336297988891602,
-0.15604299306869507,
1.3214699029922485,
0.9810500741004944,
-0.7177162170410156,
1.031319260597229,
0.2403150200843811,
1.0528379678726196,
0.8331714868545532,
-0.42228543758392334,
0.41723179817199707,
0.09702888876199722,
-1.389764428138733,
0.45354709029197693,
1.1869313716888428,
0.16996712982654572,
1.4831842184066772,
-0.5070380568504333,
0.008130896836519241,
0.45606064796447754,
-0.39275655150413513,
-0.5753634572029114,
-0.6545994281768799,
0.738065242767334,
0.06728200614452362,
-0.9846094846725464,
-0.016518205404281616,
-0.07985586673021317,
-0.2548336684703827,
0.2444194108247757,
-1.5327680110931396,
-0.19628643989562988,
-0.3419405221939087,
-0.5744093060493469,
-1.2847049236297607,
-0.025953887030482292,
1.272539496421814,
-0.8122268319129944,
-0.19316846132278442,
0.528684139251709,
0.2392459213733673,
0.5333806276321411,
0.6240090727806091,
-0.6786412596702576,
-0.3666556179523468,
-0.26797351241111755,
-0.3808285593986511,
0.29943588376045227,
1.2562192678451538,
-0.16783341765403748,
-1.1356686353683472,
0.6799421310424805,
-0.2665240466594696,
0.1396687924861908,
1.9688153266906738,
0.07266470789909363,
-0.9117646813392639,
0.30361297726631165,
-0.7093811631202698,
1.936220407485962,
1.5973320007324219,
1.325054407119751,
-0.15417347848415375,
-0.8984689116477966,
0.6539531946182251,
-0.1636216789484024,
-0.3805989921092987,
0.9211066961288452,
0.4981962740421295,
-0.20409296452999115,
-1.4820126295089722,
0.5442774295806885,
1.2300935983657837,
-0.9663659930229187,
-0.760880708694458,
0.14906051754951477,
-0.8197278380393982,
1.1141974925994873,
0.766154944896698,
0.3649243414402008,
0.29195982217788696,
1.6052188873291016,
0.7065833806991577,
-0.5862859487533569,
0.47673988342285156,
0.45277729630470276,
-0.01615247316658497,
-2.0392749309539795,
-0.966077983379364,
0.32623329758644104,
-0.39533403515815735,
-1.4427998065948486,
1.4067610502243042,
-1.1848437786102295,
-0.9417498707771301,
0.5882111191749573,
0.24228473007678986,
1.4391396045684814,
0.26874715089797974,
1.7538163661956787,
2.070016622543335,
0.8133887648582458,
0.24541346728801727,
1.1788384914398193,
-0.09827025234699249,
-0.3915611803531647,
1.7575714588165283,
-0.48586589097976685,
0.5557922124862671,
0.9656982421875,
-0.3421613574028015,
-1.1572078466415405,
-0.7568320631980896,
-1.2749954462051392,
-0.7001661062240601,
1.143742322921753,
0.20390963554382324,
-1.1771200895309448,
0.18412469327449799,
1.6180051565170288,
0.02658376656472683,
-0.35450032353401184,
0.5419427752494812,
0.5416063666343689,
-0.758617639541626,
-0.053352296352386475,
-0.9142122268676758,
0.5031741857528687,
-0.017696373164653778,
-0.2815742492675781,
0.27132973074913025,
0.5546694397926331,
1.302091121673584,
0.02014884538948536,
0.13134732842445374,
1.2540221214294434,
-1.3816543817520142,
1.51130211353302,
-0.6955904960632324,
0.1865379959344864,
-2.33720326423645,
1.3809562921524048,
-0.8309372663497925,
1.843658685684204,
-2.6373913288116455,
0.45180049538612366,
-0.5677357316017151,
-0.4498496949672699,
0.2899826467037201,
-0.363996297121048,
0.15743684768676758,
-0.1248798593878746,
-1.019152283668518,
-0.07648445665836334,
-0.7541013360023499,
0.6139132380485535,
1.2355366945266724,
1.315138339996338,
-1.1326041221618652,
-0.29743462800979614,
-1.7726233005523682,
-0.11413136124610901,
-0.750748872756958,
0.28938883543014526,
-1.964792251586914,
-0.19806306064128876,
-1.944510817527771,
-2.3342385292053223,
-1.518144965171814,
-0.8427768349647522,
1.1881442070007324,
0.21859507262706757,
-0.9861984848976135,
1.0901732444763184,
-0.37862712144851685,
-1.7314196825027466,
1.128158688545227,
-2.072340250015259
] |
https://github.com/huggingface/datasets/issues/4595 | Dataset Viewer issue with False positive PII redaction | This was indeed a scraping issue which I assumed was a display issue; sorry about that! | ### Link
https://huggingface.co/datasets/cakiki/rosetta-code
### Description
Hello, I just noticed an entry being redacted that shouldn't have been:
`RootMeanSquare@Range[10]` is being displayed as `[email protected][10]`
### Owner
_No response_ | 674 | 16 | Dataset Viewer issue with False positive PII redaction
### Link
https://huggingface.co/datasets/cakiki/rosetta-code
### Description
Hello, I just noticed an entry being redacted that shouldn't have been:
`RootMeanSquare@Range[10]` is being displayed as `[email protected][10]`
### Owner
_No response_
This was indeed a scraping issue which I assumed was a display issue; sorry about that! | [
-1.2143069505691528,
-0.8280001282691956,
-0.8234193325042725,
1.4624943733215332,
-0.19043464958667755,
-1.2479298114776611,
0.10952382534742355,
-0.9562252163887024,
1.622528314590454,
-0.7334867119789124,
0.3025279939174652,
-1.5906450748443604,
-0.05937790870666504,
-0.6433941721916199,
-0.5535513162612915,
-0.8943864107131958,
-0.3241034150123596,
-0.6952099204063416,
1.1485843658447266,
2.570084571838379,
1.1671631336212158,
-1.307693600654602,
2.8240160942077637,
0.7093037366867065,
-0.26673009991645813,
-0.9485496878623962,
0.49714958667755127,
-0.055653028190135956,
-1.2138519287109375,
-0.5494304299354553,
-0.9625889658927917,
-0.10219764709472656,
-0.44987690448760986,
-0.5095057487487793,
-0.032007839530706406,
0.4698505699634552,
-0.05222523212432861,
-0.5085611343383789,
-0.3978014290332794,
-0.8341279029846191,
0.2598525285720825,
-0.40475618839263916,
0.8266032934188843,
-0.3421649932861328,
1.9228278398513794,
-0.6275578737258911,
0.26761528849601746,
0.6007037162780762,
1.3170790672302246,
0.11516975611448288,
-0.03424672409892082,
0.2611921727657318,
0.484436959028244,
-0.25518298149108887,
0.3736223578453064,
1.1683800220489502,
0.5721846222877502,
0.731038510799408,
0.7122657895088196,
-2.1083502769470215,
1.2806202173233032,
-0.9653827548027039,
0.2477560192346573,
1.3889834880828857,
-1.0611588954925537,
0.5269462466239929,
-1.6767221689224243,
0.06384006887674332,
0.50551438331604,
-2.218308925628662,
0.21338234841823578,
-1.197913408279419,
-0.6709350943565369,
0.8295578360557556,
0.34513700008392334,
-1.467813491821289,
-0.00552179291844368,
-0.4736247956752777,
1.077963948249817,
0.44696345925331116,
1.1765861511230469,
-1.5914497375488281,
0.1467907726764679,
-0.37889790534973145,
-0.027785878628492355,
-1.3482266664505005,
-1.3894317150115967,
0.5782195925712585,
0.7411013841629028,
0.7073730230331421,
-0.0743047371506691,
0.9184896349906921,
-0.8806760311126709,
0.7101611495018005,
-0.8633642792701721,
-1.6063705682754517,
-1.451284408569336,
-2.3377199172973633,
-2.3497962951660156,
0.8082314729690552,
-0.4363101124763489,
-0.5777752995491028,
1.9028633832931519,
-0.9582269191741943,
-1.8583087921142578,
1.2304717302322388,
0.2233343869447708,
0.06836798787117004,
2.4611847400665283,
0.3397732675075531,
-0.723099410533905,
0.2675107717514038,
-0.7493739128112793,
0.9506145119667053,
-0.701587438583374,
1.4248924255371094,
0.3503984808921814,
-0.9755472540855408,
1.7126442193984985,
-0.4184739887714386,
0.6386070847511292,
-0.7256513833999634,
-0.4416714906692505,
-0.8270553350448608,
0.45567163825035095,
1.9793473482131958,
-0.3550369143486023,
1.6100834608078003,
-0.5190747380256653,
-1.5690746307373047,
-1.5024229288101196,
0.7380119562149048,
0.40122660994529724,
-0.8127136826515198,
0.29806649684906006,
-0.2964279353618622,
0.05936457961797714,
-0.10459155589342117,
1.0413745641708374,
1.3275396823883057,
0.520667314529419,
-0.26207104325294495,
-0.8577519655227661,
0.28711146116256714,
-0.023482143878936768,
-0.8017182350158691,
-1.7684506177902222,
-0.34687232971191406,
0.07066791504621506,
0.5876395106315613,
-1.3638381958007812,
1.7477918863296509,
0.7909562587738037,
2.056086301803589,
0.9844213128089905,
-0.2940569519996643,
1.3748291730880737,
-0.018258392810821533,
1.7966277599334717,
-0.4854474365711212,
0.6437861919403076,
-0.32883527874946594,
-1.1934492588043213,
0.8227392435073853,
-0.4352753758430481,
-1.9379220008850098,
-0.8528129458427429,
-0.9318382143974304,
-0.13929039239883423,
-0.7381061911582947,
0.9872522950172424,
-0.34648746252059937,
-1.3557605743408203,
0.2262469381093979,
-0.8257649540901184,
0.2076423168182373,
-1.3390324115753174,
0.14380939304828644,
0.702353298664093,
-0.4698493778705597,
0.04909644275903702,
-0.22612673044204712,
-1.3389570713043213,
-0.37842050194740295,
0.3070540130138397,
1.964011311531067,
-0.8060839772224426,
0.9564898014068604,
0.9455755352973938,
-0.6928496956825256,
0.09602946043014526,
0.31446701288223267,
-0.2873830497264862,
0.8416414260864258,
-1.0959177017211914,
-0.40203216671943665,
1.2225581407546997,
-0.17097273468971252,
-0.5522822141647339,
1.4747000932693481,
0.7580405473709106,
-0.9318621158599854,
-0.13617637753486633,
-0.24052934348583221,
-0.9437527656555176,
-0.04292340576648712,
-1.6827665567398071,
-0.11642279475927353,
0.2973981201648712,
-1.3284101486206055,
-0.4721357226371765,
-0.1825188845396042,
1.412850022315979,
-0.01934433914721012,
1.359250783920288,
-0.3746069371700287,
-0.27114468812942505,
-0.44814059138298035,
-0.4115923047065735,
0.14875231683254242,
-0.36354300379753113,
-0.5832792520523071,
0.22581477463245392,
-0.7058785557746887,
0.2866140305995941,
1.4198225736618042,
0.19522321224212646,
0.21540139615535736,
0.5041769742965698,
1.0522339344024658,
0.3331373333930969,
-0.05618717148900032,
-0.8836405277252197,
-1.5085800886154175,
1.843196988105774,
-1.399540901184082,
1.9892109632492065,
0.8241277933120728,
-0.06598638743162155,
-1.793518304824829,
-1.965602159500122,
1.411513328552246,
1.3152494430541992,
2.2803943157196045,
0.6784709095954895,
0.32232800126075745,
-0.868553638458252,
-0.783957839012146,
0.13195717334747314,
-1.2225360870361328,
-0.7892473340034485,
0.1858772486448288,
2.303403377532959,
1.7386620044708252,
-0.5578516125679016,
-0.1781422346830368,
-1.0062073469161987,
1.156308889389038,
-0.1946640908718109,
0.21548736095428467,
2.0131776332855225,
-0.41487810015678406,
-0.995158314704895,
1.1012077331542969,
-2.3493902683258057,
0.08348752558231354,
1.9541937112808228,
0.2186843454837799,
0.15983673930168152,
-1.4757139682769775,
-0.7784958481788635,
-0.22094281017780304,
-0.3234449625015259,
-1.2261704206466675,
0.699889600276947,
-0.3002566397190094,
-0.8971966505050659,
-1.4262148141860962,
0.27018019556999207,
-1.0320310592651367,
-1.5805870294570923,
0.3371608257293701,
1.8707013130187988,
1.8984743356704712,
-0.9145174622535706,
1.5691077709197998,
-0.25351470708847046,
0.07937944680452347,
1.3475055694580078,
1.146850824356079,
3.0628163814544678,
1.9973018169403076,
-1.0646544694900513,
0.7046468257904053,
-0.14097508788108826,
-0.38372504711151123,
1.1685001850128174,
-1.1584727764129639,
1.3159204721450806,
-0.2139744609594345,
-1.168732762336731,
-1.278226613998413,
0.7900071144104004,
0.4991052746772766,
-0.04995803162455559,
-0.4998719394207001,
1.4840896129608154,
0.0558999627828598,
1.310006856918335,
0.48418906331062317,
-0.27684223651885986,
0.5838986039161682,
-0.394308477640152,
-0.3127073645591736,
1.4475091695785522,
0.29341238737106323,
-1.5227279663085938,
-2.2217724323272705,
-0.057436633855104446,
-0.8684825897216797,
-0.06934785842895508,
-0.7330820560455322,
-1.1487360000610352,
1.618806004524231,
0.522169828414917,
-1.096037745475769,
-0.3609442114830017,
-0.4122571349143982,
-0.6427333354949951,
2.76016902923584,
-1.4338209629058838,
-0.34204569458961487,
-0.9426565170288086,
-0.3306915760040283,
1.7864636182785034,
-1.2491170167922974,
-0.17336541414260864,
-0.9776434898376465,
-0.47356435656547546,
-1.2697274684906006,
-0.5201825499534607,
-0.009614351205527782,
-0.9248738884925842,
0.7464540004730225,
0.08452236652374268,
-1.0973546504974365,
-0.2318614274263382,
-0.8048762083053589,
0.8953702449798584,
-0.08861792087554932,
0.35109639167785645,
1.9894766807556152,
0.3366735875606537,
-0.31026166677474976,
0.8112668395042419,
1.2550945281982422,
0.6544350981712341,
-0.7852647304534912,
0.2897840142250061,
-0.5394362211227417,
0.3374752402305603,
-1.45363187789917,
0.2778095006942749,
-2.970090866088867,
0.5655255913734436,
-0.004053314216434956,
-0.08410290628671646,
0.018175259232521057,
-1.3591824769973755,
1.1059976816177368,
2.505483627319336,
-1.078997015953064,
0.4015544652938843,
0.2553076446056366,
1.3350348472595215,
-1.5750627517700195,
0.2988242506980896,
-0.5780768394470215,
2.1524674892425537,
0.13625314831733704,
1.244441032409668,
-0.4148126244544983,
-2.2989654541015625,
0.6152698397636414,
-1.3259127140045166,
-1.0508182048797607,
0.7853791117668152,
-0.8521778583526611,
-0.030885688960552216,
-1.4645928144454956,
-0.13476307690143585,
-0.764326810836792,
-1.2847849130630493,
0.7289605736732483,
0.16634304821491241,
0.4079281687736511,
-0.638087809085846,
0.37344151735305786,
-2.0947682857513428,
-1.4466819763183594,
-0.2569335997104645,
-0.9610629677772522,
0.28922224044799805,
-0.3551086187362671,
0.7077852487564087,
-0.32035475969314575,
0.0941760241985321,
0.3092021644115448,
1.4392386674880981,
3.346518039703369,
0.1338939368724823,
0.4005156457424164,
-0.16435396671295166,
-0.8833001852035522,
1.4043055772781372,
1.0146147012710571,
-0.05140949785709381,
-0.5712721347808838,
-0.8875104784965515,
1.3898993730545044,
2.0575003623962402,
1.058091163635254,
0.08312293142080307,
-0.7769346833229065,
-0.700652003288269,
-0.03723185136914253,
0.23358193039894104,
0.2660714387893677,
0.8087651133537292,
0.15275564789772034,
0.15668684244155884,
1.3163667917251587,
1.092927098274231,
-0.5393171310424805,
0.4658164083957672,
-1.056289553642273,
-0.4162445366382599,
0.475302129983902,
0.3994942605495453,
0.097091443836689,
0.3041105568408966,
-0.8974889516830444,
-0.3349951207637787,
-0.1639678180217743,
-0.9060149788856506,
-0.7845231890678406,
-0.29251474142074585,
-0.31825879216194153,
1.6264936923980713,
0.02415803074836731,
-0.6187326908111572,
-0.07930191606283188,
-0.6975627541542053,
-0.013346278108656406,
-1.0094444751739502,
0.07321920245885849,
-0.07832600176334381,
-0.01934090256690979,
-0.07784731686115265,
1.8370641469955444,
-1.0524184703826904,
-2.301750898361206,
0.2861388325691223,
0.31157195568084717,
-0.30821752548217773,
0.02725830301642418,
1.6854987144470215,
0.5571845173835754,
1.532200574874878,
1.2987651824951172,
1.0960443019866943,
-0.6348626613616943,
-1.354211688041687,
0.6312927007675171,
1.1045658588409424,
-1.3751766681671143,
0.8499247431755066,
-0.06069296598434448,
-0.3651280105113983,
0.601266622543335,
1.2796355485916138,
0.4185355007648468,
-1.9100819826126099,
0.7374375462532043,
-0.9277936816215515,
0.8906073570251465,
0.7646931409835815,
0.860081672668457,
0.3300173282623291,
0.7476598024368286,
-1.190355658531189,
-1.188571572303772,
-0.7237244248390198,
-0.5922603607177734,
1.919149398803711,
-0.2772620618343353,
0.6288902759552002,
-0.22379741072654724,
-1.3059821128845215,
-0.01678886078298092,
0.6940093636512756,
0.24990205466747284,
-0.4579257667064667,
0.7220944762229919,
-0.6917794942855835,
-1.013658046722412,
-1.4673840999603271,
-0.5625238418579102,
-0.8925496339797974,
-1.0704514980316162,
0.9991271495819092,
0.8376817107200623,
0.39619922637939453,
1.9279145002365112,
0.6266229748725891,
0.32184791564941406,
-2.6077189445495605,
0.9341536164283752,
0.3201405107975006,
0.0986005961894989,
0.7966058254241943,
0.3212290108203888,
1.043969988822937,
-0.05074038729071617,
0.3202856183052063,
-2.408163070678711,
2.276866912841797,
-0.28308823704719543,
0.5333030223846436,
0.017096243798732758,
-0.020689409226179123,
1.1261571645736694,
0.556348443031311,
0.5984062552452087,
-1.1591426134109497,
0.7042750716209412,
-0.5500692129135132,
1.2739496231079102,
0.8703500032424927,
-0.7695159912109375,
0.10281799733638763,
1.373522400856018,
0.5691073536872864,
-0.5810792446136475,
-0.864859938621521,
-0.854558527469635,
0.9421918988227844,
1.667064905166626,
0.09518824517726898,
-0.04959135130047798,
0.7791771292686462,
0.4479372799396515,
-1.1852085590362549,
-0.00058033037930727,
-0.6497067809104919,
-0.6769803166389465,
1.6439555883407593,
2.013225793838501,
-0.17356325685977936,
-0.026450932025909424,
-0.6577070951461792,
-1.197327733039856,
0.7519338726997375,
-0.16419950127601624,
0.06489778310060501,
0.7909130454063416,
-0.6105497479438782,
1.0872173309326172,
0.6289476156234741,
0.8259727954864502,
0.18006286025047302,
0.35884833335876465,
0.4880290925502777,
-0.21705245971679688,
-1.328279733657837,
-0.36431413888931274,
-1.138533592224121,
-2.5235354900360107,
0.3648777902126312,
-0.3027300238609314,
-1.4110078811645508,
0.08848059922456741,
-1.1424027681350708,
0.890910267829895,
-0.5848484039306641,
-1.0578712224960327,
-1.5143535137176514,
0.2199639528989792,
-0.05503666773438454,
0.8365405797958374,
-1.587725281715393,
-0.007223897613584995,
1.3026437759399414,
0.9398979544639587,
-0.8273024559020996,
1.1035842895507812,
0.23609843850135803,
1.1400823593139648,
0.8714127540588379,
-0.3218036890029907,
0.42551282048225403,
-0.011103417724370956,
-1.3176438808441162,
0.5770655274391174,
1.1215851306915283,
0.10080789774656296,
1.4737375974655151,
-0.6133968234062195,
-0.13524383306503296,
0.458808571100235,
-0.49282482266426086,
-0.5131037831306458,
-0.6498920917510986,
0.669586718082428,
0.21579596400260925,
-0.923154890537262,
-0.13969121873378754,
-0.11695457994937897,
-0.21924127638339996,
0.3100622296333313,
-1.5889686346054077,
-0.1525609940290451,
-0.382510781288147,
-0.5194287896156311,
-1.2824070453643799,
0.08285243064165115,
1.3709372282028198,
-0.6599672436714172,
-0.3487934172153473,
0.5675903558731079,
0.2790990471839905,
0.5249077677726746,
0.7031913995742798,
-0.5835582613945007,
-0.29370856285095215,
-0.2607511579990387,
-0.2754579484462738,
0.36291465163230896,
1.4166555404663086,
-0.23858562111854553,
-1.015134572982788,
0.7153643369674683,
-0.38476449251174927,
0.11691366136074066,
2.042405366897583,
0.1970108151435852,
-0.9910084009170532,
0.25431469082832336,
-0.7851557731628418,
2.0532350540161133,
1.5577565431594849,
1.2187185287475586,
-0.11389508098363876,
-0.923389732837677,
0.6359456181526184,
-0.07612523436546326,
-0.45150697231292725,
0.7389551997184753,
0.47539588809013367,
-0.29166656732559204,
-1.5157485008239746,
0.5171248316764832,
1.2323960065841675,
-0.9241541624069214,
-0.9161438345909119,
0.02899371087551117,
-0.7518957257270813,
1.0003256797790527,
0.9072222113609314,
0.42607036232948303,
0.2436656504869461,
1.6127315759658813,
0.7621943354606628,
-0.5297035574913025,
0.4414632320404053,
0.4459506869316101,
0.2066386342048645,
-1.9986190795898438,
-0.9859080910682678,
0.31650790572166443,
-0.4034249782562256,
-1.5399972200393677,
1.3635311126708984,
-1.11497163772583,
-1.0165886878967285,
0.5438544750213623,
0.13469476997852325,
1.4385014772415161,
0.24403025209903717,
1.601128339767456,
2.021005868911743,
0.8063428997993469,
0.27304989099502563,
1.224276065826416,
-0.17706383764743805,
-0.4126754105091095,
1.8291999101638794,
-0.4909905195236206,
0.5077979564666748,
0.9643372297286987,
-0.32562100887298584,
-1.1420775651931763,
-0.7190988659858704,
-1.2680692672729492,
-0.5956866145133972,
1.1247358322143555,
0.2572300136089325,
-1.1884620189666748,
0.2793218791484833,
1.5234408378601074,
0.08137023448944092,
-0.4281361997127533,
0.44051840901374817,
0.5599067807197571,
-0.9089877009391785,
0.008954224176704884,
-0.9228559732437134,
0.5257325172424316,
0.07983050495386124,
-0.2942161560058594,
0.383116751909256,
0.5528967380523682,
1.330163598060608,
-0.007535403594374657,
0.14858928322792053,
1.1084762811660767,
-1.5037798881530762,
1.4672340154647827,
-0.6546444296836853,
0.16480661928653717,
-2.4180426597595215,
1.3955520391464233,
-0.603288471698761,
1.8040105104446411,
-2.763436794281006,
0.41514599323272705,
-0.52748042345047,
-0.48612040281295776,
0.3822166919708252,
-0.3095930218696594,
0.20949958264827728,
-0.22067666053771973,
-1.1740937232971191,
0.041375935077667236,
-0.7011165022850037,
0.6160627603530884,
1.1229926347732544,
1.2878377437591553,
-1.0797059535980225,
-0.2797582745552063,
-1.7730625867843628,
-0.027033794671297073,
-0.747528076171875,
0.31375300884246826,
-2.0871284008026123,
-0.15289504826068878,
-1.8700827360153198,
-2.2606592178344727,
-1.4534966945648193,
-0.7616273760795593,
1.092139482498169,
0.20202095806598663,
-0.979508638381958,
1.1770124435424805,
-0.3698059618473053,
-1.8180211782455444,
1.0469549894332886,
-1.9801493883132935
] |
Subsets and Splits