html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/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. | 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 ? | [
0.28042128682136536,
-0.11438897997140884,
-0.09566597640514374,
0.1052810400724411,
0.24284778535366058,
-0.04496185481548309,
0.2915063202381134,
0.1874726563692093,
0.02114611119031906,
0.3759722113609314,
0.05880950391292572,
0.3416837155818939,
0.3120458126068115,
0.060936711728572845,
-0.052173227071762085,
-0.21619772911071777,
0.037669889628887177,
0.08195757120847702,
-0.1807236671447754,
-0.13837257027626038,
-0.19058941304683685,
-0.18559588491916656,
-0.41831398010253906,
-0.13366837799549103,
0.104633629322052,
0.03563666716217995,
-0.12598761916160583,
0.1487940549850464,
-0.025535384193062782,
-0.1520315557718277,
0.009602366015315056,
0.08331385254859924,
0.045469339936971664,
0.37522614002227783,
-0.00010258321708533913,
-0.23470669984817505,
0.15204322338104248,
0.011291837319731712,
-0.10198882222175598,
-0.26639366149902344,
0.05939401686191559,
-0.16381226480007172,
0.025541938841342926,
-0.310744971036911,
-0.08079209178686142,
-0.1930372267961502,
-0.029373658820986748,
-0.09773284941911697,
0.3204311728477478,
0.14107319712638855,
0.3502197861671448,
-0.042140014469623566,
0.14547336101531982,
-0.12412970513105392,
0.05731261521577835,
0.06258196383714676,
0.00047372840344905853,
-0.08507759869098663,
0.14071708917617798,
0.13223281502723694,
0.17605993151664734,
0.09351690113544464,
-0.17141281068325043,
-0.09316694736480713,
-0.04896220564842224,
0.02522471360862255,
0.06513968855142593,
-0.07968369126319885,
0.26199883222579956,
0.10117794573307037,
0.32800740003585815,
-0.21720117330551147,
-0.531246542930603,
-0.06982868164777756,
0.08139894902706146,
-0.058158278465270996,
0.01699991151690483,
-0.25256794691085815,
0.05980287864804268,
-0.1396815925836563,
0.19133321940898895,
0.362199068069458,
0.014271251857280731,
0.2820753753185272,
-0.4040379822254181,
0.22043795883655548,
-0.2240278571844101,
-0.07512376457452774,
-0.2047906368970871,
-0.08882716298103333,
0.17018389701843262,
-0.10715074837207794,
0.334660142660141,
0.2791160047054291,
-0.3803301155567169,
-0.1970951110124588,
0.4611269533634186,
-0.25330451130867004,
-0.03673980012536049,
0.0681803971529007,
-0.043196890503168106,
0.034520965069532394,
0.1074809655547142,
-0.1707591712474823,
0.3789416253566742,
0.33876174688339233,
-0.015223152935504913,
0.28697893023490906,
0.07695955038070679,
0.01845121756196022,
-0.06828320771455765,
-0.1297932267189026,
0.45862895250320435,
-0.4277258515357971,
0.03207148239016533,
-0.09824719280004501,
0.23147602379322052,
-0.12093796581029892,
-0.3317372798919678,
-0.12205673009157181,
0.0004779547452926636,
-0.06611932069063187,
0.0019745398312807083,
0.34948885440826416,
0.05587123706936836,
0.22314003109931946,
-0.30872535705566406,
0.036405812948942184,
-0.03994009643793106,
0.31313273310661316,
-0.31126686930656433,
-0.07383137941360474,
-0.03010859340429306,
0.07722782343626022,
-0.1842636615037918,
0.01922890543937683,
0.11328037083148956,
0.40835216641426086,
0.05684218555688858,
-0.10264120250940323,
-0.07612845301628113,
-0.10411100089550018,
0.2591736614704132,
0.21612069010734558,
0.08438630402088165,
0.2998133599758148,
0.20741310715675354,
0.07506051659584045,
-0.14654819667339325,
0.3995765745639801,
-0.28723299503326416,
-0.2185458540916443,
-0.00781937874853611,
0.3165211081504822,
0.07355241477489471,
0.08472366631031036,
-0.0746864303946495,
-0.047899600118398666,
0.12531477212905884,
-0.29229313135147095,
0.031090974807739258,
-0.11274296045303345,
0.09613372385501862,
-0.309624046087265,
-0.0613410621881485,
-0.11473450064659119,
-0.35874301195144653,
0.3615676164627075,
-0.5802991390228271,
0.4676549732685089,
0.335976243019104,
0.026679232716560364,
-0.15616139769554138,
-0.05412457138299942,
-0.0033132974058389664,
0.1906914860010147,
0.35576292872428894,
-0.4084765613079071,
-0.2556721270084381,
0.10542817413806915,
-0.14653442800045013,
0.12767808139324188,
-0.03873994201421738,
0.11093653738498688,
0.2923535406589508,
-0.040609050542116165,
-0.0881696343421936,
0.04868045449256897,
0.008464012295007706,
0.0780954584479332,
-0.2818155884742737,
0.23926633596420288,
0.27126818895339966,
-0.04014672338962555,
-0.11279284954071045,
0.37649673223495483,
0.29318639636039734,
-0.20529115200042725,
0.31117191910743713,
0.0605318620800972,
-0.32396426796913147,
0.14435723423957825,
0.15747185051441193,
0.3117656707763672,
0.23301060497760773,
-0.12595775723457336,
0.13228511810302734,
0.1399405300617218,
0.27346447110176086,
-0.0946018397808075,
0.026955626904964447,
-0.23354597389698029,
-0.15634816884994507,
-0.30181828141212463,
-0.017188239842653275,
-0.04694709554314613,
0.27487295866012573,
-0.1099090725183487,
-0.06609213352203369,
-0.1883930116891861,
-0.2809600234031677,
0.09629856795072556,
-0.20380781590938568,
-0.042039670050144196,
-0.11484989523887634,
0.11692027747631073,
-0.166386678814888,
0.08207161724567413,
-0.014341749250888824,
0.07840601354837418,
0.20559284090995789,
0.03048691898584366,
-0.19390597939491272,
0.3547006845474243,
0.2970028817653656,
-0.3284868597984314,
-0.17548036575317383,
-0.1262456327676773,
-0.24035847187042236,
0.1257375329732895,
-0.10064522176980972,
0.2943408489227295,
0.13950039446353912,
-0.0353037565946579,
-0.13247767090797424,
0.419272243976593,
-0.18487179279327393,
0.2913037836551666,
0.058345042169094086,
0.009113367646932602,
0.1502097249031067,
0.12645861506462097,
0.1306878626346588,
-0.22164137661457062,
0.15518109500408173,
0.3102487027645111,
0.1407477855682373,
0.07379220426082611,
-0.25148123502731323,
0.39562270045280457,
0.4219872057437897,
-0.0989753007888794,
0.1288914829492569,
0.073358453810215,
0.187074676156044,
-0.1660217046737671,
0.05678307265043259,
0.323763906955719,
0.3955627679824829,
0.2754179835319519,
-0.020435359328985214,
-0.17457273602485657,
-0.01194059383124113,
-0.06262648850679398,
-0.03009120374917984,
0.05830519273877144,
-0.3016793131828308,
0.06697425246238708,
0.17362023890018463,
0.3366445302963257,
-0.15047918260097504,
0.14314714074134827,
0.01606898382306099,
0.23986326158046722,
-0.21376574039459229,
0.15164393186569214,
-0.3147154450416565,
-0.19227832555770874,
-0.058581724762916565,
-0.24716134369373322,
-0.12525016069412231,
-0.1867656409740448,
-0.007655180990695953,
-0.013840723782777786,
-0.13539423048496246,
-0.17463895678520203,
0.23221564292907715,
0.25522035360336304,
0.02107408083975315,
0.05586365610361099,
-0.1911502629518509,
0.08150603622198105,
-0.3698720932006836,
0.20332227647304535,
-0.018588263541460037,
0.4094735383987427,
0.33694344758987427,
0.08886135369539261,
-0.3219408392906189,
-0.07558782398700714,
-0.355588436126709,
-0.3128582537174225,
-0.13709783554077148,
0.16760234534740448,
0.08852138370275497,
0.18860992789268494,
-0.07698285579681396,
0.04182004556059837,
-0.09057904034852982,
-0.062061965465545654,
-0.213673397898674,
0.3299107551574707,
0.11345511674880981,
-0.24416902661323547,
-0.1498807668685913,
-0.20261698961257935,
-0.037240564823150635,
-0.18416564166545868,
-0.23827405273914337,
0.2366645187139511,
0.3251546621322632,
-0.17279356718063354,
-0.14124450087547302,
-0.07605709880590439,
0.24724240601062775,
0.35966137051582336,
-0.2560451030731201,
-0.012775465846061707,
0.20446932315826416,
-0.1605660766363144,
-0.34485289454460144,
-0.22592969238758087,
0.01569060981273651,
-0.10412102937698364,
-0.023321937769651413,
-0.0490720197558403,
-0.4100862145423889,
-0.3714052736759186,
-0.08972998708486557,
0.02636563405394554,
0.26283398270606995,
0.5917354822158813,
-0.18341393768787384,
-0.19037270545959473,
-0.04460076242685318,
-0.18301689624786377,
-0.11734995990991592,
0.33319786190986633,
0.14135190844535828,
-0.22420942783355713,
0.35773444175720215,
0.05806979909539223,
0.07266417890787125,
0.0036174226552248,
0.06508182734251022,
0.14330273866653442,
-0.09080798923969269,
0.25210875272750854,
-0.3350374698638916,
-0.20297688245773315,
0.0879446268081665,
0.21959811449050903,
-0.06590365618467331,
0.174899622797966,
0.16173014044761658,
0.13597434759140015,
-0.06982234120368958,
0.10242609679698944,
-0.19695642590522766,
-0.05536337196826935,
-0.16898995637893677,
-0.11122515797615051,
0.01615622267127037,
0.07328048348426819,
0.3237915337085724,
-0.2525235116481781,
-0.03131592273712158,
-0.10224457085132599,
0.06803329288959503,
-0.07769746333360672,
-0.03465493395924568,
-0.24303002655506134,
-0.2858177125453949,
-0.28708696365356445,
0.09005489945411682,
0.15952302515506744,
0.16910713911056519,
0.16076569259166718,
-0.18900075554847717,
0.28693485260009766,
-0.17018632590770721,
0.5935412049293518,
0.028728652745485306,
-0.13324566185474396,
0.20197610557079315,
-0.22375255823135376,
-0.3311541974544525,
-0.03246784955263138,
-0.10176553577184677,
0.008739028126001358,
-0.24361182749271393,
0.08861134201288223,
-0.23309233784675598,
-0.11117911338806152,
0.11977023631334305,
0.15109096467494965,
-0.06852352619171143,
-0.35531967878341675,
-0.4353938400745392,
-0.4224301874637604,
0.2193562537431717,
-0.25174108147621155,
0.0018487349152565002,
0.17009077966213226,
-0.3566834628582001,
-0.16528846323490143,
-0.08016271889209747,
-0.18234074115753174,
-0.01097484678030014,
0.08159634470939636,
0.2891104817390442,
-0.08487772196531296,
-0.1755697876214981,
0.23539820313453674,
0.1505131721496582,
-0.18581019341945648,
0.09533970057964325,
-0.057211752980947495,
0.01111757755279541,
-0.13395848870277405,
-0.275997519493103,
-0.14690536260604858,
0.19961918890476227,
-0.13843286037445068,
0.20398497581481934,
-0.5029817819595337,
-0.06477147340774536,
0.009482133202254772,
-0.20112226903438568,
0.5969739556312561,
-0.0158071406185627,
-0.11400309205055237,
-0.5072850584983826,
0.6220466494560242,
-0.013953625224530697,
-0.17963117361068726,
0.47280117869377136,
0.4681317210197449,
-0.10918096452951431,
0.44804859161376953,
0.16796943545341492,
0.7659392952919006,
-0.08614209294319153,
0.04416622593998909,
0.33966657519340515,
-0.23211602866649628,
0.45666709542274475,
0.31214845180511475,
0.3186942934989929,
-0.36649200320243835,
-0.27373433113098145,
-0.08376425504684448,
-0.03643129765987396,
-0.04884793609380722,
0.13571788370609283,
-0.046459097415208817,
0.19030532240867615,
-0.5338147282600403,
-0.024027977138757706,
-0.08257744461297989,
-0.07413069158792496,
0.189864382147789,
0.22622868418693542,
-0.30594509840011597,
0.2904832363128662,
0.2769543528556824,
0.13148002326488495,
-0.12262597680091858,
0.2710404396057129,
-0.12275724112987518,
-0.12410047650337219,
-0.05326816812157631,
-0.12689197063446045,
0.21688000857830048,
0.0915861576795578,
0.02428138256072998,
-0.060309965163469315,
-0.003644527867436409,
0.28421875834465027,
0.30319565534591675,
-0.061778631061315536,
0.01743469014763832,
0.10515522956848145,
0.36409932374954224,
0.5574554204940796,
0.2935001850128174,
-0.1356658786535263,
0.34558117389678955,
-0.020600207149982452,
0.07785939425230026,
0.08548843860626221,
0.19478070735931396,
-0.39178019762039185,
-0.5213358998298645,
0.16586700081825256,
-0.08963392674922943,
-0.14380642771720886,
-0.0325925350189209,
0.24239273369312286,
0.19973142445087433,
-0.2913399636745453,
0.3026115894317627,
-0.11981694400310516,
0.0014671331737190485,
0.49937304854393005,
-0.2884640693664551,
-0.15165208280086517,
0.019019840285182,
0.3208373486995697,
0.1623026728630066,
0.2323671579360962,
-0.016306232661008835,
-0.14464932680130005,
-0.34211868047714233,
-0.16152440011501312,
-0.2837669849395752,
-0.03414493426680565,
0.19978877902030945,
0.30558112263679504,
-0.15992338955402374,
0.07497894763946533,
0.15579645335674286,
0.19728198647499084,
0.10127800703048706,
0.01470799371600151,
-0.27818992733955383,
-0.25455090403556824,
0.0856313407421112,
-0.13366690278053284,
0.4317728877067566,
0.07855307310819626,
-0.22181636095046997,
0.3369526267051697,
-0.18988190591335297,
-0.010512450709939003,
-0.43745872378349304,
-0.0586908683180809,
0.010156644508242607,
0.13364356756210327,
-0.17376337945461273,
0.13409285247325897,
-0.22153261303901672,
0.003450639545917511,
0.26504436135292053,
-0.08391662687063217,
0.179600790143013,
-0.39366787672042847,
-0.06268729269504547,
0.011824250221252441,
0.11162402480840683,
-0.08892233669757843,
-0.00013852352276444435,
-0.310763418674469,
-0.14316248893737793,
-0.08968936651945114,
0.004193637520074844,
0.42981138825416565,
0.021505508571863174,
0.10524193942546844,
0.08454558998346329,
0.017071817070245743,
-0.03571673482656479,
0.293335884809494,
-0.22537899017333984,
-0.2675209641456604,
0.16718553006649017,
0.36099475622177124,
-0.01916825771331787,
0.1472518891096115,
-0.011032809503376484,
0.04701125994324684,
-0.11723119020462036,
-0.11026255041360855,
0.23706719279289246,
-0.3236806392669678,
0.1283748298883438,
0.07263380289077759,
0.42327120900154114,
0.47193002700805664,
-0.14921540021896362,
-0.24120567739009857,
0.12117452174425125,
0.3469456136226654,
-0.40538883209228516,
-0.14681436121463776,
-0.3029261827468872,
0.17969700694084167,
-0.024305477738380432,
0.046849124133586884,
-0.29061028361320496,
0.012244708836078644,
-0.08805491030216217,
-0.00877293385565281,
-0.018462486565113068,
-0.049274079501628876,
0.19931276142597198,
0.3460535407066345,
0.040341567248106,
-0.03327218070626259,
0.2029782086610794,
-0.29236066341400146,
-0.31430813670158386,
0.5803346633911133,
0.13607250154018402,
0.5960513949394226,
-0.19818472862243652,
-0.17835605144500732,
-0.2610260844230652,
-0.22005145251750946,
0.5217719078063965,
0.40763384103775024,
-0.15804234147071838,
-0.20784777402877808,
0.375846803188324,
-0.09847230464220047,
-0.27598676085472107,
-0.18996036052703857,
-0.18486976623535156,
-0.08524981141090393,
-0.14225861430168152,
0.18194842338562012,
-0.07179044932126999,
-0.19676566123962402,
0.055877685546875,
-0.13596566021442413,
-0.018751036375761032,
-0.0087943896651268,
0.13053441047668457,
-0.03926578164100647,
-0.10365709662437439,
-0.5120850205421448,
-0.13982975482940674,
-0.1962827742099762,
0.3981570899486542,
0.14516060054302216,
-0.11768224090337753,
0.03377295285463333,
0.07769513875246048,
0.20613834261894226,
0.08623416721820831,
0.053682852536439896,
0.4390219449996948,
0.07536190748214722,
-0.32746487855911255,
0.10056042671203613,
-0.1896369904279709,
0.15809768438339233,
0.057755082845687866,
-0.42375656962394714,
0.14423932135105133,
0.19390103220939636,
0.24476760625839233,
-0.3035803437232971,
0.0993533805012703,
0.1510128229856491,
0.09514525532722473,
-0.32508447766304016,
0.6320818662643433,
-0.18159064650535583,
-0.1911766529083252,
-0.025159981101751328,
0.09044648706912994,
-0.13641902804374695,
-0.20002323389053345,
-0.09137807786464691,
-0.13160867989063263,
-0.016705816611647606,
-0.26055192947387695,
0.17381593585014343,
0.15075433254241943,
0.16368821263313293,
0.1854836344718933,
0.10694901645183563,
-0.09760304540395737,
-0.2401069700717926,
-0.595004677772522,
0.2941349744796753,
0.16128356754779816,
0.0853523313999176,
0.07781612128019333,
0.06184861809015274,
-0.23446372151374817,
-0.25634872913360596,
0.21981486678123474,
-0.2752031683921814,
-0.17426100373268127,
0.21235238015651703,
-0.07698580622673035,
-0.07278572022914886,
-0.394808292388916,
-0.13627205789089203,
-0.3885037899017334,
-0.22455143928527832,
0.12967027723789215,
-0.09267634153366089,
0.29531246423721313,
-0.10068187862634659,
0.3354036808013916,
0.1636921465396881,
0.2598423957824707,
-0.17587576806545258,
0.2369937300682068,
0.2787320613861084,
-0.03503001853823662,
0.18017831444740295,
0.14256083965301514,
0.2072204351425171,
-0.494911253452301,
0.14252828061580658,
-0.1935882419347763,
-0.030833778902888298,
0.16714680194854736,
-0.08521828055381775,
-0.11473675817251205,
0.352236807346344,
0.1719910353422165,
-0.06193771958351135,
-0.44961225986480713,
0.07593990862369537,
-0.006089024245738983,
-0.002342280000448227,
0.07796484977006912,
0.17649075388908386,
0.11705569922924042,
0.18673349916934967,
-0.10717708617448807,
-0.15579597651958466,
0.3993716239929199,
-0.3535322844982147,
-0.20005561411380768,
-0.14353793859481812,
0.311937153339386,
0.03543167561292648,
-0.20276160538196564,
0.007900737226009369,
-0.3743060827255249,
0.243531733751297,
0.13577775657176971,
0.04313400760293007,
0.49791207909584045,
-0.21549631655216217,
-0.06660336256027222,
-0.0892450362443924,
0.11609403789043427,
0.19367888569831848,
-0.13852131366729736,
0.17094244062900543,
-0.17346419394016266
] |
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. | 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. | [
0.3292351961135864,
-0.11990857869386673,
-0.042574502527713776,
0.08674963563680649,
0.1433679312467575,
-0.13137592375278473,
0.26586341857910156,
0.07707978785037994,
0.11549831926822662,
0.33633139729499817,
0.020844804123044014,
0.3247247338294983,
0.1618967354297638,
0.13079890608787537,
0.1683751940727234,
-0.1730426400899887,
-0.04215044528245926,
0.06464394927024841,
-0.13405534625053406,
-0.13441985845565796,
-0.21389654278755188,
-0.10151863843202591,
-0.5624802112579346,
-0.29157179594039917,
0.0160718634724617,
-0.036719076335430145,
0.010524692013859749,
0.2147125005722046,
-0.1654348373413086,
-0.0993415042757988,
-0.20762822031974792,
0.07928291708230972,
-0.04103346914052963,
0.2829699218273163,
-0.00010899420158239082,
-0.07537928968667984,
0.12189691513776779,
-0.03595709055662155,
-0.027654822915792465,
-0.2129225879907608,
0.09110880643129349,
-0.11298750340938568,
-0.18768846988677979,
-0.19386428594589233,
0.03384154289960861,
-0.08505485206842422,
-0.125871941447258,
-0.014310654252767563,
0.25806084275245667,
0.3912217915058136,
0.27668994665145874,
0.0056223031133413315,
0.22235436737537384,
-0.0129139618948102,
0.22459676861763,
0.03966454789042473,
-0.09009172767400742,
-0.20061977207660675,
0.06662651151418686,
0.4390735328197479,
0.06678228825330734,
0.24023130536079407,
-0.06910431385040283,
-0.22221247851848602,
-0.025840312242507935,
-0.013197719119489193,
-0.004046149551868439,
-0.0849190354347229,
0.2628958821296692,
0.04938610643148422,
0.47021031379699707,
-0.04270821064710617,
-0.21413098275661469,
0.076444111764431,
0.18060791492462158,
-0.19851060211658478,
0.12872307002544403,
-0.2524741590023041,
0.0936417281627655,
-0.15630781650543213,
-0.05202903598546982,
0.1998751312494278,
-0.05267349258065224,
0.17322495579719543,
-0.28555649518966675,
0.32838356494903564,
-0.16252785921096802,
0.12520715594291687,
-0.14133238792419434,
-0.18204347789287567,
0.28779515624046326,
0.06101358309388161,
0.18675224483013153,
0.4025152027606964,
-0.3704436123371124,
-0.20759159326553345,
0.3403172791004181,
-0.193868488073349,
0.14593732357025146,
-0.013473141938447952,
-0.0841652899980545,
0.07302501052618027,
0.0799231231212616,
-0.2834004759788513,
0.12168736755847931,
0.578151524066925,
0.13105739653110504,
0.3799906373023987,
0.034203093498945236,
-0.11830709129571915,
-0.027193676680326462,
-0.06611471623182297,
0.3737245500087738,
-0.39989930391311646,
0.047061990946531296,
-0.07184777408838272,
0.08730285614728928,
-0.072153240442276,
-0.0897345319390297,
-0.049595218151807785,
0.11048638075590134,
-0.21822339296340942,
0.19329996407032013,
0.4952738583087921,
0.21731404960155487,
0.06792899966239929,
-0.3751591444015503,
-0.11896887421607971,
0.03132098913192749,
0.2707488536834717,
-0.2755281925201416,
-0.12887994945049286,
-0.08291342854499817,
0.1319359540939331,
-0.13432669639587402,
-0.018155142664909363,
0.15256483852863312,
0.3429374694824219,
-0.030329778790473938,
-0.113191157579422,
-0.09377545118331909,
-0.01979677751660347,
0.4936525523662567,
0.27343690395355225,
-0.114252969622612,
0.30996716022491455,
-0.03928890451788902,
0.03280169516801834,
-0.23619210720062256,
0.4301460385322571,
-0.632348895072937,
-0.3403395414352417,
0.11368098109960556,
0.20881417393684387,
0.1449076235294342,
0.08980198204517365,
0.26162153482437134,
-0.012770216912031174,
0.04126390069723129,
-0.35161808133125305,
0.06818026304244995,
-0.2124580442905426,
0.09045746922492981,
-0.230718731880188,
-0.11632592231035233,
-0.158408984541893,
-0.4397852420806885,
0.253927618265152,
-0.5545964241027832,
0.40505826473236084,
0.2544451951980591,
0.047048840671777725,
-0.06512777507305145,
-0.08513345569372177,
0.07149210572242737,
0.25314581394195557,
0.5120238661766052,
-0.3254944980144501,
-0.2900436222553253,
0.004566110670566559,
-0.11237336695194244,
-0.023511119186878204,
-0.14943158626556396,
0.25081172585487366,
0.24708859622478485,
0.053361497819423676,
-0.055111825466156006,
-0.0007237941026687622,
-0.024671806022524834,
-0.014332849532365799,
-0.24083121120929718,
0.3215068578720093,
0.1695750206708908,
0.025673020631074905,
-0.11834235489368439,
0.20223760604858398,
0.18301363289356232,
-0.10183870047330856,
0.1887153834104538,
0.061645232141017914,
-0.3381422162055969,
0.16699707508087158,
-0.03204166516661644,
0.07459650188684464,
0.34318503737449646,
-0.1049758642911911,
0.07257954776287079,
0.14152327179908752,
0.2444378137588501,
0.05881604179739952,
0.1637343168258667,
-0.043449874967336655,
-0.1708199381828308,
-0.17045962810516357,
0.04157184809446335,
-0.13236625492572784,
0.1687159538269043,
-0.002559281885623932,
-0.12545880675315857,
-0.2178698033094406,
-0.3856649696826935,
-0.039087869226932526,
-0.2640095353126526,
-0.07605984061956406,
-0.06691808998584747,
0.07270872592926025,
-0.22830264270305634,
0.2060879021883011,
-0.2838996648788452,
0.15481312572956085,
0.2762717604637146,
0.056626707315444946,
-0.22334009408950806,
0.47729194164276123,
0.3046952486038208,
-0.5460115671157837,
-0.2746197581291199,
-0.1913241297006607,
-0.21117126941680908,
0.07290300726890564,
-0.10274644941091537,
0.11214853823184967,
0.10446557402610779,
-0.027389392256736755,
-0.08820153027772903,
0.3088597059249878,
-0.2683430314064026,
0.31608152389526367,
0.07608242332935333,
-0.19005350768566132,
0.18935564160346985,
0.06798255443572998,
0.04835398495197296,
-0.21020102500915527,
0.2122102826833725,
0.06262300163507462,
0.2257751077413559,
0.11095594614744186,
-0.25423702597618103,
0.2847103178501129,
0.6749852895736694,
-0.17523635923862457,
0.05255760997533798,
0.15082690119743347,
0.09694511443376541,
-0.16767078638076782,
-0.04106510430574417,
0.3577670156955719,
0.45253998041152954,
0.22545969486236572,
0.05461949110031128,
-0.12125135213136673,
-0.048176538199186325,
-0.04073357209563255,
-0.010102353990077972,
-0.17269949615001678,
-0.22300609946250916,
0.30555567145347595,
0.23294778168201447,
0.16981755197048187,
-0.3652096688747406,
0.14372923970222473,
0.12805062532424927,
0.18696945905685425,
-0.26743394136428833,
0.03784991055727005,
-0.22416310012340546,
-0.1425129771232605,
-0.22327785193920135,
-0.24480010569095612,
-0.235027015209198,
0.022298062220215797,
0.11094269156455994,
-0.23419085144996643,
-0.030354242771863937,
-0.12933090329170227,
0.3659515082836151,
0.43165677785873413,
0.15132148563861847,
0.25517234206199646,
-0.2817171514034271,
0.13398924469947815,
-0.32760342955589294,
0.1457032859325409,
-0.13315951824188232,
0.3035268783569336,
0.24126970767974854,
0.14139604568481445,
-0.4152333736419678,
-0.10999787598848343,
-0.5746039152145386,
-0.13167844712734222,
-0.03452949970960617,
0.09912711381912231,
0.09027823805809021,
0.12528760731220245,
0.13280372321605682,
0.13288865983486176,
-0.051163747906684875,
-0.10865069180727005,
-0.12094815820455551,
0.3929082155227661,
0.029182784259319305,
-0.29057204723358154,
-0.2690306305885315,
-0.3756526708602905,
-0.05145256221294403,
-0.09768728911876678,
-0.11956177651882172,
0.2324172407388687,
0.3447534441947937,
-0.06355226784944534,
-0.23471306264400482,
-0.08380008488893509,
0.11087310314178467,
0.27986523509025574,
-0.25643229484558105,
-0.1499176174402237,
0.15074032545089722,
-0.2671353816986084,
-0.27248111367225647,
-0.13531790673732758,
0.08815154433250427,
-0.2914460599422455,
0.07621175050735474,
-0.02071482315659523,
-0.3945877254009247,
-0.32766860723495483,
-0.2649857997894287,
-0.020502865314483643,
0.22866591811180115,
0.6156398057937622,
-0.3139527440071106,
-0.0636463537812233,
-0.11297682672739029,
-0.3882479965686798,
0.10659976303577423,
0.21233803033828735,
0.2950945198535919,
-0.1806703805923462,
0.44138965010643005,
0.07674790918827057,
-0.11222133040428162,
-0.14917124807834625,
0.044132426381111145,
0.0798555389046669,
-0.08975642174482346,
0.2604880630970001,
-0.3675362467765808,
-0.05500639230012894,
0.24416853487491608,
0.3686631917953491,
-0.13851764798164368,
0.24057964980602264,
0.28598979115486145,
-0.1198536679148674,
0.01992648094892502,
0.15280784666538239,
-0.057899948209524155,
0.19243788719177246,
-0.016746224835515022,
0.35799846053123474,
0.10211347043514252,
0.14464741945266724,
0.34775063395500183,
-0.27493488788604736,
-0.23853492736816406,
-0.29272353649139404,
-0.03136704862117767,
-0.03971273452043533,
-0.058761026710271835,
-0.4129561185836792,
-0.2717415690422058,
-0.2538207769393921,
0.1109078973531723,
0.23743252456188202,
0.18885180354118347,
0.010880555957555771,
-0.13501876592636108,
0.3259727358818054,
-0.26824164390563965,
0.521648645401001,
-0.023163331672549248,
-0.10416193306446075,
0.1441740244626999,
0.10081939399242401,
-0.2109231799840927,
-0.02091040089726448,
-0.048195257782936096,
-0.12468214333057404,
-0.06920869648456573,
0.20860925316810608,
-0.09481460601091385,
-0.011686203069984913,
0.22463637590408325,
0.10646664351224899,
-0.11671870946884155,
-0.38795727491378784,
-0.2873799800872803,
-0.47392430901527405,
0.2648662030696869,
-0.16202107071876526,
-0.1624262034893036,
0.017957942560315132,
-0.22508946061134338,
-0.27041542530059814,
0.13707761466503143,
-0.21024784445762634,
-0.08199824392795563,
0.16593435406684875,
0.38480111956596375,
-0.07686170190572739,
-0.27888062596321106,
0.2035772204399109,
0.17883853614330292,
-0.21101537346839905,
0.0755237340927124,
-0.17325004935264587,
0.10514673590660095,
-0.12145069986581802,
-0.37907421588897705,
-0.08652479201555252,
0.2925196886062622,
-0.2577231526374817,
0.19446414709091187,
-0.5148864984512329,
0.09276815503835678,
0.030093427747488022,
-0.0501711405813694,
0.7096352577209473,
0.025909923017024994,
-0.47347891330718994,
-0.33811843395233154,
0.6330969929695129,
-0.13383831083774567,
-0.1823171079158783,
0.40128666162490845,
0.29615163803100586,
-0.23553451895713806,
0.45301389694213867,
0.19170251488685608,
0.7601495981216431,
-0.024799883365631104,
-0.09057514369487762,
0.1917942464351654,
-0.22537517547607422,
0.387151837348938,
0.1519925445318222,
0.44327259063720703,
-0.3586655557155609,
-0.45508718490600586,
-0.14538423717021942,
0.001361597329378128,
-0.07721183449029922,
0.2907238304615021,
-0.0986587256193161,
0.15298689901828766,
-0.3593735694885254,
-0.03848264738917351,
-0.13219061493873596,
0.033795177936553955,
0.1525578498840332,
0.18127042055130005,
-0.17902998626232147,
0.22790813446044922,
0.2516889274120331,
-0.03705257549881935,
-0.07713498175144196,
0.41044819355010986,
0.19531136751174927,
-0.3171083927154541,
-0.057601433247327805,
-0.1202048733830452,
0.14124272763729095,
-0.10409215837717056,
-0.044084858149290085,
0.2488967627286911,
-0.002456478774547577,
0.019598279148340225,
0.23104435205459595,
-0.09361854195594788,
0.13743051886558533,
0.21613378822803497,
0.47977152466773987,
0.6338158845901489,
0.335349977016449,
-0.05888530984520912,
0.26868411898612976,
-0.10916151851415634,
0.10224335640668869,
-0.04687034338712692,
0.17368173599243164,
-0.5736343264579773,
-0.6274158358573914,
0.2444046586751938,
0.15676358342170715,
-0.05901056155562401,
0.018800213932991028,
0.4104827046394348,
0.1314162313938141,
-0.21720126271247864,
0.21507644653320312,
-0.20936183631420135,
-0.0879669189453125,
0.5752496123313904,
-0.32286158204078674,
-0.13713255524635315,
0.052635855972766876,
0.16099724173545837,
0.26868876814842224,
0.28969165682792664,
-0.05348952114582062,
-0.06614527106285095,
-0.26328253746032715,
-0.1588340848684311,
-0.1790120005607605,
0.04179216921329498,
-0.045989856123924255,
0.2826381325721741,
-0.060144249349832535,
0.027251288294792175,
0.2744976282119751,
0.35257554054260254,
0.0072995759546756744,
0.062439776957035065,
-0.4710593819618225,
-0.22869352996349335,
0.1620403230190277,
-0.15470416843891144,
0.47482776641845703,
0.0915057361125946,
-0.16331015527248383,
0.5177384614944458,
-0.32259681820869446,
0.15988168120384216,
-0.3676553964614868,
-0.03479965031147003,
0.07532446831464767,
0.12611964344978333,
-0.0498114675283432,
0.2200377881526947,
-0.0988989770412445,
0.027610480785369873,
0.13955435156822205,
-0.011908747255802155,
0.06666411459445953,
-0.3173326849937439,
-0.05094646289944649,
0.032715871930122375,
0.08158819377422333,
-0.01721401885151863,
-0.12874172627925873,
-0.4371063709259033,
-0.19128136336803436,
-0.06889750808477402,
-0.041076209396123886,
0.3255280554294586,
-0.010302804410457611,
0.1385548859834671,
0.02198329195380211,
0.07004691660404205,
0.007553476840257645,
0.31566113233566284,
-0.027686789631843567,
-0.21940313279628754,
0.1963009238243103,
0.4580129384994507,
-0.1764480024576187,
0.19898170232772827,
-0.18727855384349823,
0.025775380432605743,
-0.0388251394033432,
-0.11619330197572708,
0.2214350700378418,
-0.3707442283630371,
0.08873218297958374,
-0.06010398268699646,
0.49620071053504944,
0.4563475549221039,
-0.07620276510715485,
-0.43720218539237976,
0.09079353511333466,
0.24667443335056305,
-0.3490425944328308,
-0.2704586982727051,
-0.3468196988105774,
0.2076169103384018,
-0.006083838641643524,
-0.12216769903898239,
-0.3031792640686035,
0.18402090668678284,
-0.18855266273021698,
0.07208089530467987,
0.09019114822149277,
-0.2002192586660385,
0.11952735483646393,
0.36812588572502136,
-0.03898097574710846,
-0.027691204100847244,
0.29909998178482056,
-0.43039509654045105,
-0.2792608439922333,
0.5483431816101074,
0.27859124541282654,
0.6047980785369873,
-0.08950520306825638,
-0.0374487079679966,
-0.12851041555404663,
-0.15556704998016357,
0.4853862524032593,
0.5320183038711548,
-0.09838077425956726,
0.03510626032948494,
0.518855631351471,
-0.08351580053567886,
-0.0680941790342331,
-0.3395983576774597,
-0.3031107783317566,
0.08477450907230377,
-0.16184595227241516,
0.16815409064292908,
-0.13831228017807007,
-0.3152848184108734,
-0.06699202954769135,
-0.030132228508591652,
-0.09167620539665222,
0.1575375348329544,
0.18218225240707397,
0.03823105990886688,
-0.09103287756443024,
-0.4735875129699707,
-0.3613572120666504,
-0.19708657264709473,
0.27635517716407776,
0.16351039707660675,
0.16726697981357574,
0.07692324370145798,
0.08400218188762665,
0.28147998452186584,
-0.03536447882652283,
-0.07342742383480072,
0.48565420508384705,
0.4159058630466461,
-0.24894776940345764,
0.09171469509601593,
-0.10419129580259323,
0.15493181347846985,
0.09158153086900711,
-0.19697260856628418,
-0.17542029917240143,
0.16600707173347473,
0.15001577138900757,
-0.26956984400749207,
0.3461361229419708,
0.1150180771946907,
0.25426506996154785,
-0.18591928482055664,
0.5928290486335754,
-0.08076390624046326,
-0.04953722655773163,
-0.10267636179924011,
-0.09824281185865402,
-0.11835813522338867,
-0.060428813099861145,
-0.06135834380984306,
-0.21373896300792694,
-0.0036362111568450928,
-0.25184834003448486,
0.13082236051559448,
0.03271227329969406,
0.23193740844726562,
0.08954031020402908,
-0.09644714742898941,
-0.03615281730890274,
-0.28807926177978516,
-0.5426168441772461,
0.22133919596672058,
0.13099321722984314,
0.1786603182554245,
0.04848652705550194,
0.016495922580361366,
-0.2168683111667633,
-0.36921852827072144,
0.33237430453300476,
-0.4139057695865631,
-0.03460552915930748,
0.1684631109237671,
-0.1215181052684784,
0.05669737607240677,
-0.3529857397079468,
-0.11393660306930542,
-0.36632007360458374,
-0.32201114296913147,
0.0828566625714302,
-0.14706088602542877,
0.16434359550476074,
-0.08930571377277374,
0.31865987181663513,
0.16116218268871307,
0.3135305643081665,
-0.13467714190483093,
0.2957019507884979,
0.38405856490135193,
-0.058662619441747665,
0.15921539068222046,
0.1722441017627716,
0.09605439752340317,
-0.6211970448493958,
-0.03271950036287308,
-0.02708323672413826,
0.052078016102313995,
0.17165525257587433,
-0.0580141581594944,
-0.10498161613941193,
0.23598316311836243,
-0.055252090096473694,
-0.07331826537847519,
-0.4918816387653351,
0.13841137290000916,
-0.0790075957775116,
-0.05523035302758217,
0.17310664057731628,
0.26781439781188965,
0.17881101369857788,
0.03439704328775406,
0.01348983496427536,
-0.03526083379983902,
0.4618121385574341,
-0.2308281511068344,
-0.17269447445869446,
-0.02881930023431778,
0.19208921492099762,
0.1528950035572052,
-0.19604527950286865,
-0.1417480856180191,
-0.4997907280921936,
0.22009417414665222,
0.21297377347946167,
0.032138701528310776,
0.5033703446388245,
-0.16160281002521515,
-0.11519321799278259,
-0.18205422163009644,
0.08647363632917404,
0.4311133921146393,
-0.43981754779815674,
0.07634228467941284,
-0.18774978816509247
] |
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
| 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 | [
-0.08833067119121552,
-0.09968702495098114,
0.01369825005531311,
0.1784951090812683,
0.29652881622314453,
-0.1651548445224762,
0.4545488953590393,
0.44875994324684143,
0.09683285653591156,
0.34280669689178467,
-0.03596876561641693,
0.7176253795623779,
-0.16904443502426147,
-0.14988894760608673,
0.08322174102067947,
-0.39327865839004517,
0.13254499435424805,
0.15248456597328186,
-0.18639925122261047,
-0.023090429604053497,
-0.2159062772989273,
0.09732165187597275,
-0.16389338672161102,
-0.0614202618598938,
-0.32179751992225647,
-0.06163056194782257,
0.08738517016172409,
0.13049861788749695,
-0.07394810020923615,
-0.3539278209209442,
-0.13288898766040802,
-0.37478601932525635,
-0.010025043040513992,
0.5299378633499146,
-0.00010851201659534127,
0.006952062249183655,
0.2739776074886322,
0.14382828772068024,
-0.0959470272064209,
-0.06793583929538727,
0.4601660668849945,
-0.20687659084796906,
0.09119653701782227,
-0.3106834590435028,
-0.11154566705226898,
-0.30442148447036743,
-0.12225358188152313,
-0.26128873229026794,
0.08176813274621964,
0.6358398795127869,
0.2833939492702484,
0.6389029026031494,
0.04525294527411461,
-0.04885057359933853,
0.3276051878929138,
0.006616972386837006,
-0.17210286855697632,
0.27764806151390076,
0.050942324101924896,
0.21123142540454865,
-0.29673531651496887,
0.5477721691131592,
-0.05047440156340599,
-0.05391639098525047,
0.04382006451487541,
0.13445401191711426,
0.22095105051994324,
-0.10808156430721283,
-0.010151039808988571,
0.12894193828105927,
0.035207267850637436,
-0.32024168968200684,
-0.03986512869596481,
-0.22912025451660156,
0.11847453564405441,
-0.12305724620819092,
0.07682593911886215,
0.011620886623859406,
-0.23199282586574554,
-0.05429946258664131,
0.08868677169084549,
0.15356174111366272,
-0.24356326460838318,
0.10130025446414948,
-0.21522477269172668,
0.1086956262588501,
-0.097491554915905,
0.08554623275995255,
0.18463963270187378,
-0.1814568191766739,
0.03803618252277374,
0.029835743829607964,
0.079025998711586,
-0.025233693420886993,
-0.2888319790363312,
-0.03399166464805603,
-0.08312010020017624,
-0.5302825570106506,
0.01709064096212387,
0.04576226323843002,
0.037718139588832855,
0.03394921123981476,
0.05713755264878273,
0.24566692113876343,
0.029178660362958908,
0.16179801523685455,
-0.28773006796836853,
0.09952104091644287,
0.13505512475967407,
0.12445627897977829,
-0.2016470581293106,
0.13456246256828308,
-0.12860926985740662,
-0.49654439091682434,
0.2139483094215393,
0.17964348196983337,
0.2924033999443054,
-0.10399620980024338,
-0.24862752854824066,
0.12108982354402542,
-0.061969030648469925,
0.30085593461990356,
0.05596572905778885,
0.47340965270996094,
-0.3252190351486206,
0.1966138482093811,
0.37115615606307983,
0.15262377262115479,
-0.2576497197151184,
0.00930167268961668,
-0.17904691398143768,
0.25624364614486694,
-0.2953907251358032,
-0.1855170577764511,
0.21629370748996735,
-0.06599436700344086,
0.1860460340976715,
0.05724860727787018,
0.3943042755126953,
-0.30267056822776794,
0.18807648122310638,
-0.07036440819501877,
0.41841527819633484,
0.2621675133705139,
-0.020765097811818123,
-0.006281541660428047,
0.2063654661178589,
0.3433225154876709,
-0.040517207235097885,
0.11891451478004456,
-0.16896340250968933,
-0.11631297320127487,
-0.3506130576133728,
0.29536280035972595,
0.2625122666358948,
-0.0012251250445842743,
-0.06892838329076767,
-0.21509988605976105,
0.24527508020401,
-0.16476058959960938,
0.3022748529911041,
-0.3554931879043579,
-0.05671316757798195,
-0.2770751416683197,
0.30896279215812683,
0.1583186686038971,
-0.003980565816164017,
0.022228002548217773,
0.18778614699840546,
-0.01677887886762619,
0.1365833729505539,
0.19940681755542755,
-0.12466922402381897,
0.2235143482685089,
-0.20483168959617615,
-0.10378760099411011,
0.3171962797641754,
-0.23956941068172455,
-0.22510699927806854,
-0.2263253778219223,
-0.4142584204673767,
0.04560083895921707,
0.16114646196365356,
0.10215193778276443,
0.024022527039051056,
0.15698426961898804,
0.3225756287574768,
0.06997020542621613,
0.06919831782579422,
0.17790499329566956,
-0.32997918128967285,
-0.13422910869121552,
0.08545969426631927,
0.29766204953193665,
0.126417338848114,
-0.0780918225646019,
0.11468663066625595,
-0.01109427958726883,
0.14611048996448517,
-0.1749511957168579,
-0.05246714502573013,
0.2273908108472824,
-0.24671514332294464,
-0.14681172370910645,
0.14666561782360077,
-0.1717246174812317,
-0.18348261713981628,
0.0850348100066185,
-0.199947327375412,
0.15560871362686157,
0.015500187873840332,
-0.0880780816078186,
-0.06761814653873444,
-0.032853804528713226,
-0.2799548804759979,
-0.2798956036567688,
0.3088549077510834,
0.16366076469421387,
-0.07583239674568176,
0.1646077036857605,
-0.11712385714054108,
-0.05893368273973465,
-0.18324916064739227,
0.146556094288826,
-0.40893664956092834,
0.06613002717494965,
-0.2801327705383301,
-0.2224288433790207,
-0.106528639793396,
0.38523387908935547,
0.30999755859375,
0.04475049674510956,
-0.09971773624420166,
0.1294407695531845,
0.230116069316864,
-0.024681873619556427,
-0.341235488653183,
-0.1503114253282547,
0.1724853366613388,
-0.27503353357315063,
0.21036039292812347,
0.30662107467651367,
0.11684112250804901,
-0.12234266102313995,
0.13399210572242737,
0.3342875838279724,
0.14175570011138916,
0.09808947145938873,
-0.05056940019130707,
0.01394013874232769,
0.027787653729319572,
0.08869291841983795,
0.10308767855167389,
-0.13518184423446655,
0.22375042736530304,
0.15633761882781982,
0.08146251738071442,
-0.1513984203338623,
-0.3559914529323578,
0.1519305258989334,
0.4333724081516266,
0.01809481903910637,
0.1470559686422348,
-0.08477989584207535,
-0.4130471348762512,
-0.0008210670202970505,
0.18985459208488464,
-0.19614186882972717,
0.31257641315460205,
0.1877315789461136,
0.1440029889345169,
0.2502554655075073,
-0.12261471897363663,
-0.11383870244026184,
0.1746986210346222,
0.06492888182401657,
0.25048649311065674,
0.23662489652633667,
0.2701963186264038,
0.11441588401794434,
-0.11719458550214767,
-0.18368276953697205,
-0.1263461858034134,
0.07937776297330856,
-0.424953818321228,
0.09803398698568344,
-0.19959180057048798,
-0.005355235189199448,
-0.34930774569511414,
0.18843983113765717,
0.029693547636270523,
-0.10740820318460464,
-0.029320456087589264,
0.38030803203582764,
-0.13399402797222137,
0.16133053600788116,
0.0801326185464859,
-0.06035216152667999,
0.10946820676326752,
-0.20364435017108917,
-0.046751417219638824,
-0.1441282033920288,
-0.428072065114975,
0.1206793338060379,
0.04188476502895355,
-0.28137052059173584,
0.4005632996559143,
-0.21364043653011322,
-0.013194186612963676,
-0.3101636469364166,
-0.18085411190986633,
0.16942042112350464,
0.05361436679959297,
-0.16331402957439423,
0.24518966674804688,
0.14554856717586517,
0.05114225298166275,
-0.011869506910443306,
0.19181792438030243,
-0.19416099786758423,
-0.2706056833267212,
0.30849331617355347,
-0.06321869790554047,
0.04681560769677162,
-0.09561104327440262,
-0.4962575137615204,
-0.26912036538124084,
-0.2442852258682251,
-0.07154527306556702,
-0.08345863223075867,
0.18498769402503967,
0.35989853739738464,
0.15036728978157043,
0.2981705963611603,
-0.3148205876350403,
0.3331102132797241,
-0.07881759107112885,
-0.23487427830696106,
0.19092591106891632,
-0.3984183669090271,
-0.48093125224113464,
-0.016324851661920547,
-0.0036692004650831223,
0.014412110671401024,
0.03428706154227257,
-0.30858901143074036,
-0.14243094623088837,
0.01602751761674881,
0.30557408928871155,
-0.23790737986564636,
0.05703360587358475,
0.36258643865585327,
0.1702818125486374,
-0.17362689971923828,
-0.3070805072784424,
0.0004845578223466873,
-0.011432498693466187,
-0.24280992150306702,
0.1215096265077591,
-0.1917024552822113,
0.16815733909606934,
0.1320047825574875,
0.4093111753463745,
0.10104236006736755,
-0.4635556638240814,
0.22714409232139587,
-0.4633002281188965,
0.14134573936462402,
-0.2300431728363037,
-0.3864854574203491,
0.20277568697929382,
-0.28923535346984863,
-0.008683616295456886,
-0.13577981293201447,
-0.21098214387893677,
-0.1823781430721283,
-0.021570993587374687,
0.13591614365577698,
-0.23806849122047424,
-0.20753486454486847,
0.17379286885261536,
-0.20929309725761414,
-0.002522282302379608,
-0.2262045294046402,
0.15838739275932312,
-0.13799956440925598,
0.06315774470567703,
0.2559429109096527,
0.345501184463501,
-0.17339032888412476,
0.008005781099200249,
-0.4251333773136139,
-0.30637139081954956,
-0.2566124200820923,
0.1781240999698639,
0.2156282365322113,
0.34032824635505676,
-0.011543549597263336,
-0.12544342875480652,
0.12479177862405777,
-0.08767119795084,
0.7068273425102234,
-0.06054200977087021,
0.11847157776355743,
0.29695597290992737,
-0.02277274616062641,
-0.2412504106760025,
-0.014581309631466866,
-0.15459656715393066,
-0.04966846480965614,
0.24697300791740417,
0.3029254972934723,
-0.025914691388607025,
-0.16446146368980408,
0.4219803214073181,
0.2716447114944458,
0.0011265575885772705,
-0.016838829964399338,
-0.3146449029445648,
-0.19507157802581787,
-0.258190393447876,
0.055639877915382385,
0.08126258850097656,
0.3450116515159607,
-0.17496463656425476,
-0.19998805224895477,
-0.12487480044364929,
0.002515425905585289,
-0.24741049110889435,
0.20097723603248596,
0.26854005455970764,
-0.1717604547739029,
0.17418424785137177,
0.21187683939933777,
0.5668294429779053,
0.564281702041626,
0.30674365162849426,
-0.27353933453559875,
-0.27964189648628235,
0.15876424312591553,
0.12346534430980682,
0.11935722082853317,
0.09703166782855988,
-0.12104035913944244,
-0.035479187965393066,
-0.2616121768951416,
0.06165347248315811,
0.005026176106184721,
0.3699713349342346,
0.3857082724571228,
0.01193989347666502,
-0.25386884808540344,
-0.2099933922290802,
0.45959001779556274,
0.09657521545886993,
0.15449458360671997,
0.22250813245773315,
-0.2578299641609192,
-0.23819684982299805,
-0.038629621267318726,
0.2254704236984253,
0.8553034663200378,
0.12411126494407654,
0.4296761155128479,
0.5422282814979553,
-0.3408992290496826,
0.43083474040031433,
-0.046248383820056915,
0.14264622330665588,
-0.6038039922714233,
0.09604906290769577,
0.07850571721792221,
-0.24632176756858826,
0.09001675993204117,
-0.3575047254562378,
-0.1288701593875885,
-0.011934606358408928,
-0.2633114457130432,
0.10663992166519165,
0.09587710350751877,
0.2169928252696991,
0.03340785950422287,
-0.3922894597053528,
-0.04804718494415283,
0.16253085434436798,
-0.08949820697307587,
0.24827489256858826,
-0.07309821248054504,
-0.10792260617017746,
-0.10552427172660828,
-0.13464441895484924,
-0.07505154609680176,
0.22647467255592346,
-0.4890376031398773,
0.04473003000020981,
-0.03940369561314583,
-0.4225810170173645,
-0.17326633632183075,
-0.02720598503947258,
0.16972985863685608,
-0.011010255664587021,
-0.017981288954615593,
0.0742630884051323,
0.26617348194122314,
0.10188225656747818,
0.19162441790103912,
-0.20223286747932434,
0.4187333583831787,
-0.23884454369544983,
-0.15869580209255219,
0.0979313850402832,
-0.14501531422138214,
-0.11710243672132492,
-0.1575728803873062,
0.011561103165149689,
0.29377514123916626,
-0.15284200012683868,
0.013180406764149666,
-0.11791077256202698,
-0.10586196184158325,
-0.33279842138290405,
0.21224984526634216,
-0.02306881546974182,
-0.18014667928218842,
0.016625143587589264,
-0.09703893959522247,
-0.26856720447540283,
0.08625857532024384,
0.3489968478679657,
-0.032609328627586365,
-0.09215463697910309,
0.3061850965023041,
0.19361090660095215,
-0.18564970791339874,
-0.2797275185585022,
0.265872985124588,
0.5903359055519104,
-0.4531952142715454,
0.02243114821612835,
-0.08638150244951248,
-0.06959683448076248,
-0.004252248909324408,
0.3810577988624573,
0.050449591130018234,
-0.09333885461091995,
-0.13391831517219543,
-0.2642430067062378,
-0.5383502244949341,
0.10467611253261566,
-0.15305455029010773,
0.283508837223053,
0.4840536415576935,
0.42952245473861694,
-0.2236994504928589,
-0.2122882902622223,
-0.3719525635242462,
-0.005447458475828171,
0.019329113885760307,
0.1298878788948059,
-0.21619157493114471,
-0.08983557671308517,
0.003518554614856839,
0.04832515865564346,
0.1979307234287262,
0.24282662570476532,
-0.05384629964828491,
-0.297488272190094,
-0.19329382479190826,
0.03595705330371857,
0.047981951385736465,
-0.07038837671279907,
-0.15851594507694244,
-0.1376415342092514,
-0.20347966253757477,
-0.010937102138996124,
0.26235708594322205,
0.07738373428583145,
-0.12556862831115723,
0.3259641230106354,
-0.08804775774478912,
0.20958763360977173,
0.08309534937143326,
0.02787635661661625,
-0.20166867971420288,
-0.12960757315158844,
-0.07501056045293808,
0.22698967158794403,
-0.14894753694534302,
-0.04979853704571724,
-0.03565915673971176,
0.0063322558999061584,
-0.11327557265758514,
0.20104005932807922,
0.26474815607070923,
-0.2628149390220642,
-0.2007657140493393,
-0.2836657166481018,
0.16498631238937378,
0.11483284831047058,
-0.4251522421836853,
-0.10196548700332642,
0.15272969007492065,
0.30404359102249146,
-0.24478797614574432,
-0.12687963247299194,
-0.12785747647285461,
-0.10033328086137772,
0.176109179854393,
0.19342459738254547,
-0.11182869970798492,
0.11402347683906555,
-0.01733727753162384,
0.06264834851026535,
0.18390963971614838,
-0.21721011400222778,
0.050360605120658875,
0.3519906997680664,
-0.08168170601129532,
0.038967207074165344,
0.3169998824596405,
0.19584988057613373,
0.17855516076087952,
0.4423961043357849,
0.12766744196414948,
0.7989436388015747,
0.4472307860851288,
-0.1607784628868103,
0.16401784121990204,
0.1065291166305542,
0.0229601189494133,
0.08918879926204681,
-0.020836472511291504,
0.1450924575328827,
-0.17993533611297607,
0.07202941924333572,
-0.25058168172836304,
-0.3207334578037262,
0.12256095558404922,
0.05798579752445221,
-0.35385388135910034,
0.08653584122657776,
-0.5893061757087708,
-0.10552475601434708,
0.061052411794662476,
-0.25604337453842163,
-0.02655618265271187,
0.09275215864181519,
0.1982652246952057,
0.3240155577659607,
-0.31948745250701904,
-0.16845855116844177,
-0.35373011231422424,
0.28939735889434814,
0.2580322027206421,
-0.16874895989894867,
0.20249953866004944,
0.3268684148788452,
0.12269966304302216,
-0.09429237246513367,
0.07339911162853241,
0.4691963195800781,
0.2695029377937317,
-0.40917056798934937,
-0.24168825149536133,
0.0007015056908130646,
-0.17144989967346191,
0.028852064162492752,
0.022710304707288742,
0.09357497096061707,
-0.14822430908679962,
0.31844982504844666,
0.17270871996879578,
-0.23657867312431335,
0.016995079815387726,
0.22849605977535248,
-0.1632331758737564,
-0.05980266258120537,
0.3138761818408966,
-0.1745770424604416,
-0.35948777198791504,
-0.19936063885688782,
-0.05556391924619675,
-0.3286151587963104,
-0.23928764462471008,
0.42515963315963745,
0.07117238640785217,
0.11256281286478043,
-0.10807864367961884,
0.13363198935985565,
0.1887083649635315,
0.29917997121810913,
0.06831074506044388,
0.14640454947948456,
-0.2301284819841385,
0.035375818610191345,
-0.3624051809310913,
0.40550851821899414,
0.09639784693717957,
-0.47710150480270386,
0.0073112668469548225,
-0.14164161682128906,
-0.028436698019504547,
0.11843786388635635,
0.4788801670074463,
0.18432530760765076,
0.46363359689712524,
0.3037227988243103,
-0.31750401854515076,
-0.110822394490242,
0.1405465304851532,
-0.16240575909614563,
0.10857129096984863,
-0.4290050268173218,
0.06629868596792221,
-0.08709161728620529,
0.2194526493549347,
-0.2315065711736679,
-0.1183544397354126,
0.004136890172958374,
-0.010477624833583832,
0.47400417923927307,
0.006574127823114395,
0.4039253294467926,
-0.10784662514925003,
-0.2339344024658203,
-0.11489781737327576,
0.08625837415456772,
-0.19906434416770935,
0.1219620332121849,
0.1236167699098587,
0.40891069173812866,
0.28578731417655945,
-0.12865427136421204,
-0.31120267510414124,
0.3142207860946655,
0.20716367661952972,
-0.2243802696466446,
-0.3223206698894501,
0.3559569716453552,
0.20537638664245605,
0.07041402906179428,
0.13666978478431702,
0.34112024307250977,
0.11810729652643204,
0.23842082917690277,
-0.48533838987350464,
-0.4701519012451172,
0.47597333788871765,
-0.36884772777557373,
-0.32875901460647583,
-0.10005639493465424,
0.33643364906311035,
-0.15199151635169983,
0.17669837176799774,
-0.6174044609069824,
-0.052238013595342636,
0.19160693883895874,
-0.019179701805114746,
-0.15420587360858917,
0.19147071242332458,
-0.0188923217356205,
0.0415119044482708,
-0.1311062127351761,
0.41797810792922974,
0.036335933953523636,
0.1277419924736023,
-0.01357729360461235,
-0.45855581760406494
] |
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
| 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]
``` | [
-0.08833067119121552,
-0.09968702495098114,
0.01369825005531311,
0.1784951090812683,
0.29652881622314453,
-0.1651548445224762,
0.4545488953590393,
0.44875994324684143,
0.09683285653591156,
0.34280669689178467,
-0.03596876561641693,
0.7176253795623779,
-0.16904443502426147,
-0.14988894760608673,
0.08322174102067947,
-0.39327865839004517,
0.13254499435424805,
0.15248456597328186,
-0.18639925122261047,
-0.023090429604053497,
-0.2159062772989273,
0.09732165187597275,
-0.16389338672161102,
-0.0614202618598938,
-0.32179751992225647,
-0.06163056194782257,
0.08738517016172409,
0.13049861788749695,
-0.07394810020923615,
-0.3539278209209442,
-0.13288898766040802,
-0.37478601932525635,
-0.010025043040513992,
0.5299378633499146,
-0.00010851201659534127,
0.006952062249183655,
0.2739776074886322,
0.14382828772068024,
-0.0959470272064209,
-0.06793583929538727,
0.4601660668849945,
-0.20687659084796906,
0.09119653701782227,
-0.3106834590435028,
-0.11154566705226898,
-0.30442148447036743,
-0.12225358188152313,
-0.26128873229026794,
0.08176813274621964,
0.6358398795127869,
0.2833939492702484,
0.6389029026031494,
0.04525294527411461,
-0.04885057359933853,
0.3276051878929138,
0.006616972386837006,
-0.17210286855697632,
0.27764806151390076,
0.050942324101924896,
0.21123142540454865,
-0.29673531651496887,
0.5477721691131592,
-0.05047440156340599,
-0.05391639098525047,
0.04382006451487541,
0.13445401191711426,
0.22095105051994324,
-0.10808156430721283,
-0.010151039808988571,
0.12894193828105927,
0.035207267850637436,
-0.32024168968200684,
-0.03986512869596481,
-0.22912025451660156,
0.11847453564405441,
-0.12305724620819092,
0.07682593911886215,
0.011620886623859406,
-0.23199282586574554,
-0.05429946258664131,
0.08868677169084549,
0.15356174111366272,
-0.24356326460838318,
0.10130025446414948,
-0.21522477269172668,
0.1086956262588501,
-0.097491554915905,
0.08554623275995255,
0.18463963270187378,
-0.1814568191766739,
0.03803618252277374,
0.029835743829607964,
0.079025998711586,
-0.025233693420886993,
-0.2888319790363312,
-0.03399166464805603,
-0.08312010020017624,
-0.5302825570106506,
0.01709064096212387,
0.04576226323843002,
0.037718139588832855,
0.03394921123981476,
0.05713755264878273,
0.24566692113876343,
0.029178660362958908,
0.16179801523685455,
-0.28773006796836853,
0.09952104091644287,
0.13505512475967407,
0.12445627897977829,
-0.2016470581293106,
0.13456246256828308,
-0.12860926985740662,
-0.49654439091682434,
0.2139483094215393,
0.17964348196983337,
0.2924033999443054,
-0.10399620980024338,
-0.24862752854824066,
0.12108982354402542,
-0.061969030648469925,
0.30085593461990356,
0.05596572905778885,
0.47340965270996094,
-0.3252190351486206,
0.1966138482093811,
0.37115615606307983,
0.15262377262115479,
-0.2576497197151184,
0.00930167268961668,
-0.17904691398143768,
0.25624364614486694,
-0.2953907251358032,
-0.1855170577764511,
0.21629370748996735,
-0.06599436700344086,
0.1860460340976715,
0.05724860727787018,
0.3943042755126953,
-0.30267056822776794,
0.18807648122310638,
-0.07036440819501877,
0.41841527819633484,
0.2621675133705139,
-0.020765097811818123,
-0.006281541660428047,
0.2063654661178589,
0.3433225154876709,
-0.040517207235097885,
0.11891451478004456,
-0.16896340250968933,
-0.11631297320127487,
-0.3506130576133728,
0.29536280035972595,
0.2625122666358948,
-0.0012251250445842743,
-0.06892838329076767,
-0.21509988605976105,
0.24527508020401,
-0.16476058959960938,
0.3022748529911041,
-0.3554931879043579,
-0.05671316757798195,
-0.2770751416683197,
0.30896279215812683,
0.1583186686038971,
-0.003980565816164017,
0.022228002548217773,
0.18778614699840546,
-0.01677887886762619,
0.1365833729505539,
0.19940681755542755,
-0.12466922402381897,
0.2235143482685089,
-0.20483168959617615,
-0.10378760099411011,
0.3171962797641754,
-0.23956941068172455,
-0.22510699927806854,
-0.2263253778219223,
-0.4142584204673767,
0.04560083895921707,
0.16114646196365356,
0.10215193778276443,
0.024022527039051056,
0.15698426961898804,
0.3225756287574768,
0.06997020542621613,
0.06919831782579422,
0.17790499329566956,
-0.32997918128967285,
-0.13422910869121552,
0.08545969426631927,
0.29766204953193665,
0.126417338848114,
-0.0780918225646019,
0.11468663066625595,
-0.01109427958726883,
0.14611048996448517,
-0.1749511957168579,
-0.05246714502573013,
0.2273908108472824,
-0.24671514332294464,
-0.14681172370910645,
0.14666561782360077,
-0.1717246174812317,
-0.18348261713981628,
0.0850348100066185,
-0.199947327375412,
0.15560871362686157,
0.015500187873840332,
-0.0880780816078186,
-0.06761814653873444,
-0.032853804528713226,
-0.2799548804759979,
-0.2798956036567688,
0.3088549077510834,
0.16366076469421387,
-0.07583239674568176,
0.1646077036857605,
-0.11712385714054108,
-0.05893368273973465,
-0.18324916064739227,
0.146556094288826,
-0.40893664956092834,
0.06613002717494965,
-0.2801327705383301,
-0.2224288433790207,
-0.106528639793396,
0.38523387908935547,
0.30999755859375,
0.04475049674510956,
-0.09971773624420166,
0.1294407695531845,
0.230116069316864,
-0.024681873619556427,
-0.341235488653183,
-0.1503114253282547,
0.1724853366613388,
-0.27503353357315063,
0.21036039292812347,
0.30662107467651367,
0.11684112250804901,
-0.12234266102313995,
0.13399210572242737,
0.3342875838279724,
0.14175570011138916,
0.09808947145938873,
-0.05056940019130707,
0.01394013874232769,
0.027787653729319572,
0.08869291841983795,
0.10308767855167389,
-0.13518184423446655,
0.22375042736530304,
0.15633761882781982,
0.08146251738071442,
-0.1513984203338623,
-0.3559914529323578,
0.1519305258989334,
0.4333724081516266,
0.01809481903910637,
0.1470559686422348,
-0.08477989584207535,
-0.4130471348762512,
-0.0008210670202970505,
0.18985459208488464,
-0.19614186882972717,
0.31257641315460205,
0.1877315789461136,
0.1440029889345169,
0.2502554655075073,
-0.12261471897363663,
-0.11383870244026184,
0.1746986210346222,
0.06492888182401657,
0.25048649311065674,
0.23662489652633667,
0.2701963186264038,
0.11441588401794434,
-0.11719458550214767,
-0.18368276953697205,
-0.1263461858034134,
0.07937776297330856,
-0.424953818321228,
0.09803398698568344,
-0.19959180057048798,
-0.005355235189199448,
-0.34930774569511414,
0.18843983113765717,
0.029693547636270523,
-0.10740820318460464,
-0.029320456087589264,
0.38030803203582764,
-0.13399402797222137,
0.16133053600788116,
0.0801326185464859,
-0.06035216152667999,
0.10946820676326752,
-0.20364435017108917,
-0.046751417219638824,
-0.1441282033920288,
-0.428072065114975,
0.1206793338060379,
0.04188476502895355,
-0.28137052059173584,
0.4005632996559143,
-0.21364043653011322,
-0.013194186612963676,
-0.3101636469364166,
-0.18085411190986633,
0.16942042112350464,
0.05361436679959297,
-0.16331402957439423,
0.24518966674804688,
0.14554856717586517,
0.05114225298166275,
-0.011869506910443306,
0.19181792438030243,
-0.19416099786758423,
-0.2706056833267212,
0.30849331617355347,
-0.06321869790554047,
0.04681560769677162,
-0.09561104327440262,
-0.4962575137615204,
-0.26912036538124084,
-0.2442852258682251,
-0.07154527306556702,
-0.08345863223075867,
0.18498769402503967,
0.35989853739738464,
0.15036728978157043,
0.2981705963611603,
-0.3148205876350403,
0.3331102132797241,
-0.07881759107112885,
-0.23487427830696106,
0.19092591106891632,
-0.3984183669090271,
-0.48093125224113464,
-0.016324851661920547,
-0.0036692004650831223,
0.014412110671401024,
0.03428706154227257,
-0.30858901143074036,
-0.14243094623088837,
0.01602751761674881,
0.30557408928871155,
-0.23790737986564636,
0.05703360587358475,
0.36258643865585327,
0.1702818125486374,
-0.17362689971923828,
-0.3070805072784424,
0.0004845578223466873,
-0.011432498693466187,
-0.24280992150306702,
0.1215096265077591,
-0.1917024552822113,
0.16815733909606934,
0.1320047825574875,
0.4093111753463745,
0.10104236006736755,
-0.4635556638240814,
0.22714409232139587,
-0.4633002281188965,
0.14134573936462402,
-0.2300431728363037,
-0.3864854574203491,
0.20277568697929382,
-0.28923535346984863,
-0.008683616295456886,
-0.13577981293201447,
-0.21098214387893677,
-0.1823781430721283,
-0.021570993587374687,
0.13591614365577698,
-0.23806849122047424,
-0.20753486454486847,
0.17379286885261536,
-0.20929309725761414,
-0.002522282302379608,
-0.2262045294046402,
0.15838739275932312,
-0.13799956440925598,
0.06315774470567703,
0.2559429109096527,
0.345501184463501,
-0.17339032888412476,
0.008005781099200249,
-0.4251333773136139,
-0.30637139081954956,
-0.2566124200820923,
0.1781240999698639,
0.2156282365322113,
0.34032824635505676,
-0.011543549597263336,
-0.12544342875480652,
0.12479177862405777,
-0.08767119795084,
0.7068273425102234,
-0.06054200977087021,
0.11847157776355743,
0.29695597290992737,
-0.02277274616062641,
-0.2412504106760025,
-0.014581309631466866,
-0.15459656715393066,
-0.04966846480965614,
0.24697300791740417,
0.3029254972934723,
-0.025914691388607025,
-0.16446146368980408,
0.4219803214073181,
0.2716447114944458,
0.0011265575885772705,
-0.016838829964399338,
-0.3146449029445648,
-0.19507157802581787,
-0.258190393447876,
0.055639877915382385,
0.08126258850097656,
0.3450116515159607,
-0.17496463656425476,
-0.19998805224895477,
-0.12487480044364929,
0.002515425905585289,
-0.24741049110889435,
0.20097723603248596,
0.26854005455970764,
-0.1717604547739029,
0.17418424785137177,
0.21187683939933777,
0.5668294429779053,
0.564281702041626,
0.30674365162849426,
-0.27353933453559875,
-0.27964189648628235,
0.15876424312591553,
0.12346534430980682,
0.11935722082853317,
0.09703166782855988,
-0.12104035913944244,
-0.035479187965393066,
-0.2616121768951416,
0.06165347248315811,
0.005026176106184721,
0.3699713349342346,
0.3857082724571228,
0.01193989347666502,
-0.25386884808540344,
-0.2099933922290802,
0.45959001779556274,
0.09657521545886993,
0.15449458360671997,
0.22250813245773315,
-0.2578299641609192,
-0.23819684982299805,
-0.038629621267318726,
0.2254704236984253,
0.8553034663200378,
0.12411126494407654,
0.4296761155128479,
0.5422282814979553,
-0.3408992290496826,
0.43083474040031433,
-0.046248383820056915,
0.14264622330665588,
-0.6038039922714233,
0.09604906290769577,
0.07850571721792221,
-0.24632176756858826,
0.09001675993204117,
-0.3575047254562378,
-0.1288701593875885,
-0.011934606358408928,
-0.2633114457130432,
0.10663992166519165,
0.09587710350751877,
0.2169928252696991,
0.03340785950422287,
-0.3922894597053528,
-0.04804718494415283,
0.16253085434436798,
-0.08949820697307587,
0.24827489256858826,
-0.07309821248054504,
-0.10792260617017746,
-0.10552427172660828,
-0.13464441895484924,
-0.07505154609680176,
0.22647467255592346,
-0.4890376031398773,
0.04473003000020981,
-0.03940369561314583,
-0.4225810170173645,
-0.17326633632183075,
-0.02720598503947258,
0.16972985863685608,
-0.011010255664587021,
-0.017981288954615593,
0.0742630884051323,
0.26617348194122314,
0.10188225656747818,
0.19162441790103912,
-0.20223286747932434,
0.4187333583831787,
-0.23884454369544983,
-0.15869580209255219,
0.0979313850402832,
-0.14501531422138214,
-0.11710243672132492,
-0.1575728803873062,
0.011561103165149689,
0.29377514123916626,
-0.15284200012683868,
0.013180406764149666,
-0.11791077256202698,
-0.10586196184158325,
-0.33279842138290405,
0.21224984526634216,
-0.02306881546974182,
-0.18014667928218842,
0.016625143587589264,
-0.09703893959522247,
-0.26856720447540283,
0.08625857532024384,
0.3489968478679657,
-0.032609328627586365,
-0.09215463697910309,
0.3061850965023041,
0.19361090660095215,
-0.18564970791339874,
-0.2797275185585022,
0.265872985124588,
0.5903359055519104,
-0.4531952142715454,
0.02243114821612835,
-0.08638150244951248,
-0.06959683448076248,
-0.004252248909324408,
0.3810577988624573,
0.050449591130018234,
-0.09333885461091995,
-0.13391831517219543,
-0.2642430067062378,
-0.5383502244949341,
0.10467611253261566,
-0.15305455029010773,
0.283508837223053,
0.4840536415576935,
0.42952245473861694,
-0.2236994504928589,
-0.2122882902622223,
-0.3719525635242462,
-0.005447458475828171,
0.019329113885760307,
0.1298878788948059,
-0.21619157493114471,
-0.08983557671308517,
0.003518554614856839,
0.04832515865564346,
0.1979307234287262,
0.24282662570476532,
-0.05384629964828491,
-0.297488272190094,
-0.19329382479190826,
0.03595705330371857,
0.047981951385736465,
-0.07038837671279907,
-0.15851594507694244,
-0.1376415342092514,
-0.20347966253757477,
-0.010937102138996124,
0.26235708594322205,
0.07738373428583145,
-0.12556862831115723,
0.3259641230106354,
-0.08804775774478912,
0.20958763360977173,
0.08309534937143326,
0.02787635661661625,
-0.20166867971420288,
-0.12960757315158844,
-0.07501056045293808,
0.22698967158794403,
-0.14894753694534302,
-0.04979853704571724,
-0.03565915673971176,
0.0063322558999061584,
-0.11327557265758514,
0.20104005932807922,
0.26474815607070923,
-0.2628149390220642,
-0.2007657140493393,
-0.2836657166481018,
0.16498631238937378,
0.11483284831047058,
-0.4251522421836853,
-0.10196548700332642,
0.15272969007492065,
0.30404359102249146,
-0.24478797614574432,
-0.12687963247299194,
-0.12785747647285461,
-0.10033328086137772,
0.176109179854393,
0.19342459738254547,
-0.11182869970798492,
0.11402347683906555,
-0.01733727753162384,
0.06264834851026535,
0.18390963971614838,
-0.21721011400222778,
0.050360605120658875,
0.3519906997680664,
-0.08168170601129532,
0.038967207074165344,
0.3169998824596405,
0.19584988057613373,
0.17855516076087952,
0.4423961043357849,
0.12766744196414948,
0.7989436388015747,
0.4472307860851288,
-0.1607784628868103,
0.16401784121990204,
0.1065291166305542,
0.0229601189494133,
0.08918879926204681,
-0.020836472511291504,
0.1450924575328827,
-0.17993533611297607,
0.07202941924333572,
-0.25058168172836304,
-0.3207334578037262,
0.12256095558404922,
0.05798579752445221,
-0.35385388135910034,
0.08653584122657776,
-0.5893061757087708,
-0.10552475601434708,
0.061052411794662476,
-0.25604337453842163,
-0.02655618265271187,
0.09275215864181519,
0.1982652246952057,
0.3240155577659607,
-0.31948745250701904,
-0.16845855116844177,
-0.35373011231422424,
0.28939735889434814,
0.2580322027206421,
-0.16874895989894867,
0.20249953866004944,
0.3268684148788452,
0.12269966304302216,
-0.09429237246513367,
0.07339911162853241,
0.4691963195800781,
0.2695029377937317,
-0.40917056798934937,
-0.24168825149536133,
0.0007015056908130646,
-0.17144989967346191,
0.028852064162492752,
0.022710304707288742,
0.09357497096061707,
-0.14822430908679962,
0.31844982504844666,
0.17270871996879578,
-0.23657867312431335,
0.016995079815387726,
0.22849605977535248,
-0.1632331758737564,
-0.05980266258120537,
0.3138761818408966,
-0.1745770424604416,
-0.35948777198791504,
-0.19936063885688782,
-0.05556391924619675,
-0.3286151587963104,
-0.23928764462471008,
0.42515963315963745,
0.07117238640785217,
0.11256281286478043,
-0.10807864367961884,
0.13363198935985565,
0.1887083649635315,
0.29917997121810913,
0.06831074506044388,
0.14640454947948456,
-0.2301284819841385,
0.035375818610191345,
-0.3624051809310913,
0.40550851821899414,
0.09639784693717957,
-0.47710150480270386,
0.0073112668469548225,
-0.14164161682128906,
-0.028436698019504547,
0.11843786388635635,
0.4788801670074463,
0.18432530760765076,
0.46363359689712524,
0.3037227988243103,
-0.31750401854515076,
-0.110822394490242,
0.1405465304851532,
-0.16240575909614563,
0.10857129096984863,
-0.4290050268173218,
0.06629868596792221,
-0.08709161728620529,
0.2194526493549347,
-0.2315065711736679,
-0.1183544397354126,
0.004136890172958374,
-0.010477624833583832,
0.47400417923927307,
0.006574127823114395,
0.4039253294467926,
-0.10784662514925003,
-0.2339344024658203,
-0.11489781737327576,
0.08625837415456772,
-0.19906434416770935,
0.1219620332121849,
0.1236167699098587,
0.40891069173812866,
0.28578731417655945,
-0.12865427136421204,
-0.31120267510414124,
0.3142207860946655,
0.20716367661952972,
-0.2243802696466446,
-0.3223206698894501,
0.3559569716453552,
0.20537638664245605,
0.07041402906179428,
0.13666978478431702,
0.34112024307250977,
0.11810729652643204,
0.23842082917690277,
-0.48533838987350464,
-0.4701519012451172,
0.47597333788871765,
-0.36884772777557373,
-0.32875901460647583,
-0.10005639493465424,
0.33643364906311035,
-0.15199151635169983,
0.17669837176799774,
-0.6174044609069824,
-0.052238013595342636,
0.19160693883895874,
-0.019179701805114746,
-0.15420587360858917,
0.19147071242332458,
-0.0188923217356205,
0.0415119044482708,
-0.1311062127351761,
0.41797810792922974,
0.036335933953523636,
0.1277419924736023,
-0.01357729360461235,
-0.45855581760406494
] |
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
| 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)
``` | [
-0.08833067119121552,
-0.09968702495098114,
0.01369825005531311,
0.1784951090812683,
0.29652881622314453,
-0.1651548445224762,
0.4545488953590393,
0.44875994324684143,
0.09683285653591156,
0.34280669689178467,
-0.03596876561641693,
0.7176253795623779,
-0.16904443502426147,
-0.14988894760608673,
0.08322174102067947,
-0.39327865839004517,
0.13254499435424805,
0.15248456597328186,
-0.18639925122261047,
-0.023090429604053497,
-0.2159062772989273,
0.09732165187597275,
-0.16389338672161102,
-0.0614202618598938,
-0.32179751992225647,
-0.06163056194782257,
0.08738517016172409,
0.13049861788749695,
-0.07394810020923615,
-0.3539278209209442,
-0.13288898766040802,
-0.37478601932525635,
-0.010025043040513992,
0.5299378633499146,
-0.00010851201659534127,
0.006952062249183655,
0.2739776074886322,
0.14382828772068024,
-0.0959470272064209,
-0.06793583929538727,
0.4601660668849945,
-0.20687659084796906,
0.09119653701782227,
-0.3106834590435028,
-0.11154566705226898,
-0.30442148447036743,
-0.12225358188152313,
-0.26128873229026794,
0.08176813274621964,
0.6358398795127869,
0.2833939492702484,
0.6389029026031494,
0.04525294527411461,
-0.04885057359933853,
0.3276051878929138,
0.006616972386837006,
-0.17210286855697632,
0.27764806151390076,
0.050942324101924896,
0.21123142540454865,
-0.29673531651496887,
0.5477721691131592,
-0.05047440156340599,
-0.05391639098525047,
0.04382006451487541,
0.13445401191711426,
0.22095105051994324,
-0.10808156430721283,
-0.010151039808988571,
0.12894193828105927,
0.035207267850637436,
-0.32024168968200684,
-0.03986512869596481,
-0.22912025451660156,
0.11847453564405441,
-0.12305724620819092,
0.07682593911886215,
0.011620886623859406,
-0.23199282586574554,
-0.05429946258664131,
0.08868677169084549,
0.15356174111366272,
-0.24356326460838318,
0.10130025446414948,
-0.21522477269172668,
0.1086956262588501,
-0.097491554915905,
0.08554623275995255,
0.18463963270187378,
-0.1814568191766739,
0.03803618252277374,
0.029835743829607964,
0.079025998711586,
-0.025233693420886993,
-0.2888319790363312,
-0.03399166464805603,
-0.08312010020017624,
-0.5302825570106506,
0.01709064096212387,
0.04576226323843002,
0.037718139588832855,
0.03394921123981476,
0.05713755264878273,
0.24566692113876343,
0.029178660362958908,
0.16179801523685455,
-0.28773006796836853,
0.09952104091644287,
0.13505512475967407,
0.12445627897977829,
-0.2016470581293106,
0.13456246256828308,
-0.12860926985740662,
-0.49654439091682434,
0.2139483094215393,
0.17964348196983337,
0.2924033999443054,
-0.10399620980024338,
-0.24862752854824066,
0.12108982354402542,
-0.061969030648469925,
0.30085593461990356,
0.05596572905778885,
0.47340965270996094,
-0.3252190351486206,
0.1966138482093811,
0.37115615606307983,
0.15262377262115479,
-0.2576497197151184,
0.00930167268961668,
-0.17904691398143768,
0.25624364614486694,
-0.2953907251358032,
-0.1855170577764511,
0.21629370748996735,
-0.06599436700344086,
0.1860460340976715,
0.05724860727787018,
0.3943042755126953,
-0.30267056822776794,
0.18807648122310638,
-0.07036440819501877,
0.41841527819633484,
0.2621675133705139,
-0.020765097811818123,
-0.006281541660428047,
0.2063654661178589,
0.3433225154876709,
-0.040517207235097885,
0.11891451478004456,
-0.16896340250968933,
-0.11631297320127487,
-0.3506130576133728,
0.29536280035972595,
0.2625122666358948,
-0.0012251250445842743,
-0.06892838329076767,
-0.21509988605976105,
0.24527508020401,
-0.16476058959960938,
0.3022748529911041,
-0.3554931879043579,
-0.05671316757798195,
-0.2770751416683197,
0.30896279215812683,
0.1583186686038971,
-0.003980565816164017,
0.022228002548217773,
0.18778614699840546,
-0.01677887886762619,
0.1365833729505539,
0.19940681755542755,
-0.12466922402381897,
0.2235143482685089,
-0.20483168959617615,
-0.10378760099411011,
0.3171962797641754,
-0.23956941068172455,
-0.22510699927806854,
-0.2263253778219223,
-0.4142584204673767,
0.04560083895921707,
0.16114646196365356,
0.10215193778276443,
0.024022527039051056,
0.15698426961898804,
0.3225756287574768,
0.06997020542621613,
0.06919831782579422,
0.17790499329566956,
-0.32997918128967285,
-0.13422910869121552,
0.08545969426631927,
0.29766204953193665,
0.126417338848114,
-0.0780918225646019,
0.11468663066625595,
-0.01109427958726883,
0.14611048996448517,
-0.1749511957168579,
-0.05246714502573013,
0.2273908108472824,
-0.24671514332294464,
-0.14681172370910645,
0.14666561782360077,
-0.1717246174812317,
-0.18348261713981628,
0.0850348100066185,
-0.199947327375412,
0.15560871362686157,
0.015500187873840332,
-0.0880780816078186,
-0.06761814653873444,
-0.032853804528713226,
-0.2799548804759979,
-0.2798956036567688,
0.3088549077510834,
0.16366076469421387,
-0.07583239674568176,
0.1646077036857605,
-0.11712385714054108,
-0.05893368273973465,
-0.18324916064739227,
0.146556094288826,
-0.40893664956092834,
0.06613002717494965,
-0.2801327705383301,
-0.2224288433790207,
-0.106528639793396,
0.38523387908935547,
0.30999755859375,
0.04475049674510956,
-0.09971773624420166,
0.1294407695531845,
0.230116069316864,
-0.024681873619556427,
-0.341235488653183,
-0.1503114253282547,
0.1724853366613388,
-0.27503353357315063,
0.21036039292812347,
0.30662107467651367,
0.11684112250804901,
-0.12234266102313995,
0.13399210572242737,
0.3342875838279724,
0.14175570011138916,
0.09808947145938873,
-0.05056940019130707,
0.01394013874232769,
0.027787653729319572,
0.08869291841983795,
0.10308767855167389,
-0.13518184423446655,
0.22375042736530304,
0.15633761882781982,
0.08146251738071442,
-0.1513984203338623,
-0.3559914529323578,
0.1519305258989334,
0.4333724081516266,
0.01809481903910637,
0.1470559686422348,
-0.08477989584207535,
-0.4130471348762512,
-0.0008210670202970505,
0.18985459208488464,
-0.19614186882972717,
0.31257641315460205,
0.1877315789461136,
0.1440029889345169,
0.2502554655075073,
-0.12261471897363663,
-0.11383870244026184,
0.1746986210346222,
0.06492888182401657,
0.25048649311065674,
0.23662489652633667,
0.2701963186264038,
0.11441588401794434,
-0.11719458550214767,
-0.18368276953697205,
-0.1263461858034134,
0.07937776297330856,
-0.424953818321228,
0.09803398698568344,
-0.19959180057048798,
-0.005355235189199448,
-0.34930774569511414,
0.18843983113765717,
0.029693547636270523,
-0.10740820318460464,
-0.029320456087589264,
0.38030803203582764,
-0.13399402797222137,
0.16133053600788116,
0.0801326185464859,
-0.06035216152667999,
0.10946820676326752,
-0.20364435017108917,
-0.046751417219638824,
-0.1441282033920288,
-0.428072065114975,
0.1206793338060379,
0.04188476502895355,
-0.28137052059173584,
0.4005632996559143,
-0.21364043653011322,
-0.013194186612963676,
-0.3101636469364166,
-0.18085411190986633,
0.16942042112350464,
0.05361436679959297,
-0.16331402957439423,
0.24518966674804688,
0.14554856717586517,
0.05114225298166275,
-0.011869506910443306,
0.19181792438030243,
-0.19416099786758423,
-0.2706056833267212,
0.30849331617355347,
-0.06321869790554047,
0.04681560769677162,
-0.09561104327440262,
-0.4962575137615204,
-0.26912036538124084,
-0.2442852258682251,
-0.07154527306556702,
-0.08345863223075867,
0.18498769402503967,
0.35989853739738464,
0.15036728978157043,
0.2981705963611603,
-0.3148205876350403,
0.3331102132797241,
-0.07881759107112885,
-0.23487427830696106,
0.19092591106891632,
-0.3984183669090271,
-0.48093125224113464,
-0.016324851661920547,
-0.0036692004650831223,
0.014412110671401024,
0.03428706154227257,
-0.30858901143074036,
-0.14243094623088837,
0.01602751761674881,
0.30557408928871155,
-0.23790737986564636,
0.05703360587358475,
0.36258643865585327,
0.1702818125486374,
-0.17362689971923828,
-0.3070805072784424,
0.0004845578223466873,
-0.011432498693466187,
-0.24280992150306702,
0.1215096265077591,
-0.1917024552822113,
0.16815733909606934,
0.1320047825574875,
0.4093111753463745,
0.10104236006736755,
-0.4635556638240814,
0.22714409232139587,
-0.4633002281188965,
0.14134573936462402,
-0.2300431728363037,
-0.3864854574203491,
0.20277568697929382,
-0.28923535346984863,
-0.008683616295456886,
-0.13577981293201447,
-0.21098214387893677,
-0.1823781430721283,
-0.021570993587374687,
0.13591614365577698,
-0.23806849122047424,
-0.20753486454486847,
0.17379286885261536,
-0.20929309725761414,
-0.002522282302379608,
-0.2262045294046402,
0.15838739275932312,
-0.13799956440925598,
0.06315774470567703,
0.2559429109096527,
0.345501184463501,
-0.17339032888412476,
0.008005781099200249,
-0.4251333773136139,
-0.30637139081954956,
-0.2566124200820923,
0.1781240999698639,
0.2156282365322113,
0.34032824635505676,
-0.011543549597263336,
-0.12544342875480652,
0.12479177862405777,
-0.08767119795084,
0.7068273425102234,
-0.06054200977087021,
0.11847157776355743,
0.29695597290992737,
-0.02277274616062641,
-0.2412504106760025,
-0.014581309631466866,
-0.15459656715393066,
-0.04966846480965614,
0.24697300791740417,
0.3029254972934723,
-0.025914691388607025,
-0.16446146368980408,
0.4219803214073181,
0.2716447114944458,
0.0011265575885772705,
-0.016838829964399338,
-0.3146449029445648,
-0.19507157802581787,
-0.258190393447876,
0.055639877915382385,
0.08126258850097656,
0.3450116515159607,
-0.17496463656425476,
-0.19998805224895477,
-0.12487480044364929,
0.002515425905585289,
-0.24741049110889435,
0.20097723603248596,
0.26854005455970764,
-0.1717604547739029,
0.17418424785137177,
0.21187683939933777,
0.5668294429779053,
0.564281702041626,
0.30674365162849426,
-0.27353933453559875,
-0.27964189648628235,
0.15876424312591553,
0.12346534430980682,
0.11935722082853317,
0.09703166782855988,
-0.12104035913944244,
-0.035479187965393066,
-0.2616121768951416,
0.06165347248315811,
0.005026176106184721,
0.3699713349342346,
0.3857082724571228,
0.01193989347666502,
-0.25386884808540344,
-0.2099933922290802,
0.45959001779556274,
0.09657521545886993,
0.15449458360671997,
0.22250813245773315,
-0.2578299641609192,
-0.23819684982299805,
-0.038629621267318726,
0.2254704236984253,
0.8553034663200378,
0.12411126494407654,
0.4296761155128479,
0.5422282814979553,
-0.3408992290496826,
0.43083474040031433,
-0.046248383820056915,
0.14264622330665588,
-0.6038039922714233,
0.09604906290769577,
0.07850571721792221,
-0.24632176756858826,
0.09001675993204117,
-0.3575047254562378,
-0.1288701593875885,
-0.011934606358408928,
-0.2633114457130432,
0.10663992166519165,
0.09587710350751877,
0.2169928252696991,
0.03340785950422287,
-0.3922894597053528,
-0.04804718494415283,
0.16253085434436798,
-0.08949820697307587,
0.24827489256858826,
-0.07309821248054504,
-0.10792260617017746,
-0.10552427172660828,
-0.13464441895484924,
-0.07505154609680176,
0.22647467255592346,
-0.4890376031398773,
0.04473003000020981,
-0.03940369561314583,
-0.4225810170173645,
-0.17326633632183075,
-0.02720598503947258,
0.16972985863685608,
-0.011010255664587021,
-0.017981288954615593,
0.0742630884051323,
0.26617348194122314,
0.10188225656747818,
0.19162441790103912,
-0.20223286747932434,
0.4187333583831787,
-0.23884454369544983,
-0.15869580209255219,
0.0979313850402832,
-0.14501531422138214,
-0.11710243672132492,
-0.1575728803873062,
0.011561103165149689,
0.29377514123916626,
-0.15284200012683868,
0.013180406764149666,
-0.11791077256202698,
-0.10586196184158325,
-0.33279842138290405,
0.21224984526634216,
-0.02306881546974182,
-0.18014667928218842,
0.016625143587589264,
-0.09703893959522247,
-0.26856720447540283,
0.08625857532024384,
0.3489968478679657,
-0.032609328627586365,
-0.09215463697910309,
0.3061850965023041,
0.19361090660095215,
-0.18564970791339874,
-0.2797275185585022,
0.265872985124588,
0.5903359055519104,
-0.4531952142715454,
0.02243114821612835,
-0.08638150244951248,
-0.06959683448076248,
-0.004252248909324408,
0.3810577988624573,
0.050449591130018234,
-0.09333885461091995,
-0.13391831517219543,
-0.2642430067062378,
-0.5383502244949341,
0.10467611253261566,
-0.15305455029010773,
0.283508837223053,
0.4840536415576935,
0.42952245473861694,
-0.2236994504928589,
-0.2122882902622223,
-0.3719525635242462,
-0.005447458475828171,
0.019329113885760307,
0.1298878788948059,
-0.21619157493114471,
-0.08983557671308517,
0.003518554614856839,
0.04832515865564346,
0.1979307234287262,
0.24282662570476532,
-0.05384629964828491,
-0.297488272190094,
-0.19329382479190826,
0.03595705330371857,
0.047981951385736465,
-0.07038837671279907,
-0.15851594507694244,
-0.1376415342092514,
-0.20347966253757477,
-0.010937102138996124,
0.26235708594322205,
0.07738373428583145,
-0.12556862831115723,
0.3259641230106354,
-0.08804775774478912,
0.20958763360977173,
0.08309534937143326,
0.02787635661661625,
-0.20166867971420288,
-0.12960757315158844,
-0.07501056045293808,
0.22698967158794403,
-0.14894753694534302,
-0.04979853704571724,
-0.03565915673971176,
0.0063322558999061584,
-0.11327557265758514,
0.20104005932807922,
0.26474815607070923,
-0.2628149390220642,
-0.2007657140493393,
-0.2836657166481018,
0.16498631238937378,
0.11483284831047058,
-0.4251522421836853,
-0.10196548700332642,
0.15272969007492065,
0.30404359102249146,
-0.24478797614574432,
-0.12687963247299194,
-0.12785747647285461,
-0.10033328086137772,
0.176109179854393,
0.19342459738254547,
-0.11182869970798492,
0.11402347683906555,
-0.01733727753162384,
0.06264834851026535,
0.18390963971614838,
-0.21721011400222778,
0.050360605120658875,
0.3519906997680664,
-0.08168170601129532,
0.038967207074165344,
0.3169998824596405,
0.19584988057613373,
0.17855516076087952,
0.4423961043357849,
0.12766744196414948,
0.7989436388015747,
0.4472307860851288,
-0.1607784628868103,
0.16401784121990204,
0.1065291166305542,
0.0229601189494133,
0.08918879926204681,
-0.020836472511291504,
0.1450924575328827,
-0.17993533611297607,
0.07202941924333572,
-0.25058168172836304,
-0.3207334578037262,
0.12256095558404922,
0.05798579752445221,
-0.35385388135910034,
0.08653584122657776,
-0.5893061757087708,
-0.10552475601434708,
0.061052411794662476,
-0.25604337453842163,
-0.02655618265271187,
0.09275215864181519,
0.1982652246952057,
0.3240155577659607,
-0.31948745250701904,
-0.16845855116844177,
-0.35373011231422424,
0.28939735889434814,
0.2580322027206421,
-0.16874895989894867,
0.20249953866004944,
0.3268684148788452,
0.12269966304302216,
-0.09429237246513367,
0.07339911162853241,
0.4691963195800781,
0.2695029377937317,
-0.40917056798934937,
-0.24168825149536133,
0.0007015056908130646,
-0.17144989967346191,
0.028852064162492752,
0.022710304707288742,
0.09357497096061707,
-0.14822430908679962,
0.31844982504844666,
0.17270871996879578,
-0.23657867312431335,
0.016995079815387726,
0.22849605977535248,
-0.1632331758737564,
-0.05980266258120537,
0.3138761818408966,
-0.1745770424604416,
-0.35948777198791504,
-0.19936063885688782,
-0.05556391924619675,
-0.3286151587963104,
-0.23928764462471008,
0.42515963315963745,
0.07117238640785217,
0.11256281286478043,
-0.10807864367961884,
0.13363198935985565,
0.1887083649635315,
0.29917997121810913,
0.06831074506044388,
0.14640454947948456,
-0.2301284819841385,
0.035375818610191345,
-0.3624051809310913,
0.40550851821899414,
0.09639784693717957,
-0.47710150480270386,
0.0073112668469548225,
-0.14164161682128906,
-0.028436698019504547,
0.11843786388635635,
0.4788801670074463,
0.18432530760765076,
0.46363359689712524,
0.3037227988243103,
-0.31750401854515076,
-0.110822394490242,
0.1405465304851532,
-0.16240575909614563,
0.10857129096984863,
-0.4290050268173218,
0.06629868596792221,
-0.08709161728620529,
0.2194526493549347,
-0.2315065711736679,
-0.1183544397354126,
0.004136890172958374,
-0.010477624833583832,
0.47400417923927307,
0.006574127823114395,
0.4039253294467926,
-0.10784662514925003,
-0.2339344024658203,
-0.11489781737327576,
0.08625837415456772,
-0.19906434416770935,
0.1219620332121849,
0.1236167699098587,
0.40891069173812866,
0.28578731417655945,
-0.12865427136421204,
-0.31120267510414124,
0.3142207860946655,
0.20716367661952972,
-0.2243802696466446,
-0.3223206698894501,
0.3559569716453552,
0.20537638664245605,
0.07041402906179428,
0.13666978478431702,
0.34112024307250977,
0.11810729652643204,
0.23842082917690277,
-0.48533838987350464,
-0.4701519012451172,
0.47597333788871765,
-0.36884772777557373,
-0.32875901460647583,
-0.10005639493465424,
0.33643364906311035,
-0.15199151635169983,
0.17669837176799774,
-0.6174044609069824,
-0.052238013595342636,
0.19160693883895874,
-0.019179701805114746,
-0.15420587360858917,
0.19147071242332458,
-0.0188923217356205,
0.0415119044482708,
-0.1311062127351761,
0.41797810792922974,
0.036335933953523636,
0.1277419924736023,
-0.01357729360461235,
-0.45855581760406494
] |
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
| 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! | [
-0.08833067119121552,
-0.09968702495098114,
0.01369825005531311,
0.1784951090812683,
0.29652881622314453,
-0.1651548445224762,
0.4545488953590393,
0.44875994324684143,
0.09683285653591156,
0.34280669689178467,
-0.03596876561641693,
0.7176253795623779,
-0.16904443502426147,
-0.14988894760608673,
0.08322174102067947,
-0.39327865839004517,
0.13254499435424805,
0.15248456597328186,
-0.18639925122261047,
-0.023090429604053497,
-0.2159062772989273,
0.09732165187597275,
-0.16389338672161102,
-0.0614202618598938,
-0.32179751992225647,
-0.06163056194782257,
0.08738517016172409,
0.13049861788749695,
-0.07394810020923615,
-0.3539278209209442,
-0.13288898766040802,
-0.37478601932525635,
-0.010025043040513992,
0.5299378633499146,
-0.00010851201659534127,
0.006952062249183655,
0.2739776074886322,
0.14382828772068024,
-0.0959470272064209,
-0.06793583929538727,
0.4601660668849945,
-0.20687659084796906,
0.09119653701782227,
-0.3106834590435028,
-0.11154566705226898,
-0.30442148447036743,
-0.12225358188152313,
-0.26128873229026794,
0.08176813274621964,
0.6358398795127869,
0.2833939492702484,
0.6389029026031494,
0.04525294527411461,
-0.04885057359933853,
0.3276051878929138,
0.006616972386837006,
-0.17210286855697632,
0.27764806151390076,
0.050942324101924896,
0.21123142540454865,
-0.29673531651496887,
0.5477721691131592,
-0.05047440156340599,
-0.05391639098525047,
0.04382006451487541,
0.13445401191711426,
0.22095105051994324,
-0.10808156430721283,
-0.010151039808988571,
0.12894193828105927,
0.035207267850637436,
-0.32024168968200684,
-0.03986512869596481,
-0.22912025451660156,
0.11847453564405441,
-0.12305724620819092,
0.07682593911886215,
0.011620886623859406,
-0.23199282586574554,
-0.05429946258664131,
0.08868677169084549,
0.15356174111366272,
-0.24356326460838318,
0.10130025446414948,
-0.21522477269172668,
0.1086956262588501,
-0.097491554915905,
0.08554623275995255,
0.18463963270187378,
-0.1814568191766739,
0.03803618252277374,
0.029835743829607964,
0.079025998711586,
-0.025233693420886993,
-0.2888319790363312,
-0.03399166464805603,
-0.08312010020017624,
-0.5302825570106506,
0.01709064096212387,
0.04576226323843002,
0.037718139588832855,
0.03394921123981476,
0.05713755264878273,
0.24566692113876343,
0.029178660362958908,
0.16179801523685455,
-0.28773006796836853,
0.09952104091644287,
0.13505512475967407,
0.12445627897977829,
-0.2016470581293106,
0.13456246256828308,
-0.12860926985740662,
-0.49654439091682434,
0.2139483094215393,
0.17964348196983337,
0.2924033999443054,
-0.10399620980024338,
-0.24862752854824066,
0.12108982354402542,
-0.061969030648469925,
0.30085593461990356,
0.05596572905778885,
0.47340965270996094,
-0.3252190351486206,
0.1966138482093811,
0.37115615606307983,
0.15262377262115479,
-0.2576497197151184,
0.00930167268961668,
-0.17904691398143768,
0.25624364614486694,
-0.2953907251358032,
-0.1855170577764511,
0.21629370748996735,
-0.06599436700344086,
0.1860460340976715,
0.05724860727787018,
0.3943042755126953,
-0.30267056822776794,
0.18807648122310638,
-0.07036440819501877,
0.41841527819633484,
0.2621675133705139,
-0.020765097811818123,
-0.006281541660428047,
0.2063654661178589,
0.3433225154876709,
-0.040517207235097885,
0.11891451478004456,
-0.16896340250968933,
-0.11631297320127487,
-0.3506130576133728,
0.29536280035972595,
0.2625122666358948,
-0.0012251250445842743,
-0.06892838329076767,
-0.21509988605976105,
0.24527508020401,
-0.16476058959960938,
0.3022748529911041,
-0.3554931879043579,
-0.05671316757798195,
-0.2770751416683197,
0.30896279215812683,
0.1583186686038971,
-0.003980565816164017,
0.022228002548217773,
0.18778614699840546,
-0.01677887886762619,
0.1365833729505539,
0.19940681755542755,
-0.12466922402381897,
0.2235143482685089,
-0.20483168959617615,
-0.10378760099411011,
0.3171962797641754,
-0.23956941068172455,
-0.22510699927806854,
-0.2263253778219223,
-0.4142584204673767,
0.04560083895921707,
0.16114646196365356,
0.10215193778276443,
0.024022527039051056,
0.15698426961898804,
0.3225756287574768,
0.06997020542621613,
0.06919831782579422,
0.17790499329566956,
-0.32997918128967285,
-0.13422910869121552,
0.08545969426631927,
0.29766204953193665,
0.126417338848114,
-0.0780918225646019,
0.11468663066625595,
-0.01109427958726883,
0.14611048996448517,
-0.1749511957168579,
-0.05246714502573013,
0.2273908108472824,
-0.24671514332294464,
-0.14681172370910645,
0.14666561782360077,
-0.1717246174812317,
-0.18348261713981628,
0.0850348100066185,
-0.199947327375412,
0.15560871362686157,
0.015500187873840332,
-0.0880780816078186,
-0.06761814653873444,
-0.032853804528713226,
-0.2799548804759979,
-0.2798956036567688,
0.3088549077510834,
0.16366076469421387,
-0.07583239674568176,
0.1646077036857605,
-0.11712385714054108,
-0.05893368273973465,
-0.18324916064739227,
0.146556094288826,
-0.40893664956092834,
0.06613002717494965,
-0.2801327705383301,
-0.2224288433790207,
-0.106528639793396,
0.38523387908935547,
0.30999755859375,
0.04475049674510956,
-0.09971773624420166,
0.1294407695531845,
0.230116069316864,
-0.024681873619556427,
-0.341235488653183,
-0.1503114253282547,
0.1724853366613388,
-0.27503353357315063,
0.21036039292812347,
0.30662107467651367,
0.11684112250804901,
-0.12234266102313995,
0.13399210572242737,
0.3342875838279724,
0.14175570011138916,
0.09808947145938873,
-0.05056940019130707,
0.01394013874232769,
0.027787653729319572,
0.08869291841983795,
0.10308767855167389,
-0.13518184423446655,
0.22375042736530304,
0.15633761882781982,
0.08146251738071442,
-0.1513984203338623,
-0.3559914529323578,
0.1519305258989334,
0.4333724081516266,
0.01809481903910637,
0.1470559686422348,
-0.08477989584207535,
-0.4130471348762512,
-0.0008210670202970505,
0.18985459208488464,
-0.19614186882972717,
0.31257641315460205,
0.1877315789461136,
0.1440029889345169,
0.2502554655075073,
-0.12261471897363663,
-0.11383870244026184,
0.1746986210346222,
0.06492888182401657,
0.25048649311065674,
0.23662489652633667,
0.2701963186264038,
0.11441588401794434,
-0.11719458550214767,
-0.18368276953697205,
-0.1263461858034134,
0.07937776297330856,
-0.424953818321228,
0.09803398698568344,
-0.19959180057048798,
-0.005355235189199448,
-0.34930774569511414,
0.18843983113765717,
0.029693547636270523,
-0.10740820318460464,
-0.029320456087589264,
0.38030803203582764,
-0.13399402797222137,
0.16133053600788116,
0.0801326185464859,
-0.06035216152667999,
0.10946820676326752,
-0.20364435017108917,
-0.046751417219638824,
-0.1441282033920288,
-0.428072065114975,
0.1206793338060379,
0.04188476502895355,
-0.28137052059173584,
0.4005632996559143,
-0.21364043653011322,
-0.013194186612963676,
-0.3101636469364166,
-0.18085411190986633,
0.16942042112350464,
0.05361436679959297,
-0.16331402957439423,
0.24518966674804688,
0.14554856717586517,
0.05114225298166275,
-0.011869506910443306,
0.19181792438030243,
-0.19416099786758423,
-0.2706056833267212,
0.30849331617355347,
-0.06321869790554047,
0.04681560769677162,
-0.09561104327440262,
-0.4962575137615204,
-0.26912036538124084,
-0.2442852258682251,
-0.07154527306556702,
-0.08345863223075867,
0.18498769402503967,
0.35989853739738464,
0.15036728978157043,
0.2981705963611603,
-0.3148205876350403,
0.3331102132797241,
-0.07881759107112885,
-0.23487427830696106,
0.19092591106891632,
-0.3984183669090271,
-0.48093125224113464,
-0.016324851661920547,
-0.0036692004650831223,
0.014412110671401024,
0.03428706154227257,
-0.30858901143074036,
-0.14243094623088837,
0.01602751761674881,
0.30557408928871155,
-0.23790737986564636,
0.05703360587358475,
0.36258643865585327,
0.1702818125486374,
-0.17362689971923828,
-0.3070805072784424,
0.0004845578223466873,
-0.011432498693466187,
-0.24280992150306702,
0.1215096265077591,
-0.1917024552822113,
0.16815733909606934,
0.1320047825574875,
0.4093111753463745,
0.10104236006736755,
-0.4635556638240814,
0.22714409232139587,
-0.4633002281188965,
0.14134573936462402,
-0.2300431728363037,
-0.3864854574203491,
0.20277568697929382,
-0.28923535346984863,
-0.008683616295456886,
-0.13577981293201447,
-0.21098214387893677,
-0.1823781430721283,
-0.021570993587374687,
0.13591614365577698,
-0.23806849122047424,
-0.20753486454486847,
0.17379286885261536,
-0.20929309725761414,
-0.002522282302379608,
-0.2262045294046402,
0.15838739275932312,
-0.13799956440925598,
0.06315774470567703,
0.2559429109096527,
0.345501184463501,
-0.17339032888412476,
0.008005781099200249,
-0.4251333773136139,
-0.30637139081954956,
-0.2566124200820923,
0.1781240999698639,
0.2156282365322113,
0.34032824635505676,
-0.011543549597263336,
-0.12544342875480652,
0.12479177862405777,
-0.08767119795084,
0.7068273425102234,
-0.06054200977087021,
0.11847157776355743,
0.29695597290992737,
-0.02277274616062641,
-0.2412504106760025,
-0.014581309631466866,
-0.15459656715393066,
-0.04966846480965614,
0.24697300791740417,
0.3029254972934723,
-0.025914691388607025,
-0.16446146368980408,
0.4219803214073181,
0.2716447114944458,
0.0011265575885772705,
-0.016838829964399338,
-0.3146449029445648,
-0.19507157802581787,
-0.258190393447876,
0.055639877915382385,
0.08126258850097656,
0.3450116515159607,
-0.17496463656425476,
-0.19998805224895477,
-0.12487480044364929,
0.002515425905585289,
-0.24741049110889435,
0.20097723603248596,
0.26854005455970764,
-0.1717604547739029,
0.17418424785137177,
0.21187683939933777,
0.5668294429779053,
0.564281702041626,
0.30674365162849426,
-0.27353933453559875,
-0.27964189648628235,
0.15876424312591553,
0.12346534430980682,
0.11935722082853317,
0.09703166782855988,
-0.12104035913944244,
-0.035479187965393066,
-0.2616121768951416,
0.06165347248315811,
0.005026176106184721,
0.3699713349342346,
0.3857082724571228,
0.01193989347666502,
-0.25386884808540344,
-0.2099933922290802,
0.45959001779556274,
0.09657521545886993,
0.15449458360671997,
0.22250813245773315,
-0.2578299641609192,
-0.23819684982299805,
-0.038629621267318726,
0.2254704236984253,
0.8553034663200378,
0.12411126494407654,
0.4296761155128479,
0.5422282814979553,
-0.3408992290496826,
0.43083474040031433,
-0.046248383820056915,
0.14264622330665588,
-0.6038039922714233,
0.09604906290769577,
0.07850571721792221,
-0.24632176756858826,
0.09001675993204117,
-0.3575047254562378,
-0.1288701593875885,
-0.011934606358408928,
-0.2633114457130432,
0.10663992166519165,
0.09587710350751877,
0.2169928252696991,
0.03340785950422287,
-0.3922894597053528,
-0.04804718494415283,
0.16253085434436798,
-0.08949820697307587,
0.24827489256858826,
-0.07309821248054504,
-0.10792260617017746,
-0.10552427172660828,
-0.13464441895484924,
-0.07505154609680176,
0.22647467255592346,
-0.4890376031398773,
0.04473003000020981,
-0.03940369561314583,
-0.4225810170173645,
-0.17326633632183075,
-0.02720598503947258,
0.16972985863685608,
-0.011010255664587021,
-0.017981288954615593,
0.0742630884051323,
0.26617348194122314,
0.10188225656747818,
0.19162441790103912,
-0.20223286747932434,
0.4187333583831787,
-0.23884454369544983,
-0.15869580209255219,
0.0979313850402832,
-0.14501531422138214,
-0.11710243672132492,
-0.1575728803873062,
0.011561103165149689,
0.29377514123916626,
-0.15284200012683868,
0.013180406764149666,
-0.11791077256202698,
-0.10586196184158325,
-0.33279842138290405,
0.21224984526634216,
-0.02306881546974182,
-0.18014667928218842,
0.016625143587589264,
-0.09703893959522247,
-0.26856720447540283,
0.08625857532024384,
0.3489968478679657,
-0.032609328627586365,
-0.09215463697910309,
0.3061850965023041,
0.19361090660095215,
-0.18564970791339874,
-0.2797275185585022,
0.265872985124588,
0.5903359055519104,
-0.4531952142715454,
0.02243114821612835,
-0.08638150244951248,
-0.06959683448076248,
-0.004252248909324408,
0.3810577988624573,
0.050449591130018234,
-0.09333885461091995,
-0.13391831517219543,
-0.2642430067062378,
-0.5383502244949341,
0.10467611253261566,
-0.15305455029010773,
0.283508837223053,
0.4840536415576935,
0.42952245473861694,
-0.2236994504928589,
-0.2122882902622223,
-0.3719525635242462,
-0.005447458475828171,
0.019329113885760307,
0.1298878788948059,
-0.21619157493114471,
-0.08983557671308517,
0.003518554614856839,
0.04832515865564346,
0.1979307234287262,
0.24282662570476532,
-0.05384629964828491,
-0.297488272190094,
-0.19329382479190826,
0.03595705330371857,
0.047981951385736465,
-0.07038837671279907,
-0.15851594507694244,
-0.1376415342092514,
-0.20347966253757477,
-0.010937102138996124,
0.26235708594322205,
0.07738373428583145,
-0.12556862831115723,
0.3259641230106354,
-0.08804775774478912,
0.20958763360977173,
0.08309534937143326,
0.02787635661661625,
-0.20166867971420288,
-0.12960757315158844,
-0.07501056045293808,
0.22698967158794403,
-0.14894753694534302,
-0.04979853704571724,
-0.03565915673971176,
0.0063322558999061584,
-0.11327557265758514,
0.20104005932807922,
0.26474815607070923,
-0.2628149390220642,
-0.2007657140493393,
-0.2836657166481018,
0.16498631238937378,
0.11483284831047058,
-0.4251522421836853,
-0.10196548700332642,
0.15272969007492065,
0.30404359102249146,
-0.24478797614574432,
-0.12687963247299194,
-0.12785747647285461,
-0.10033328086137772,
0.176109179854393,
0.19342459738254547,
-0.11182869970798492,
0.11402347683906555,
-0.01733727753162384,
0.06264834851026535,
0.18390963971614838,
-0.21721011400222778,
0.050360605120658875,
0.3519906997680664,
-0.08168170601129532,
0.038967207074165344,
0.3169998824596405,
0.19584988057613373,
0.17855516076087952,
0.4423961043357849,
0.12766744196414948,
0.7989436388015747,
0.4472307860851288,
-0.1607784628868103,
0.16401784121990204,
0.1065291166305542,
0.0229601189494133,
0.08918879926204681,
-0.020836472511291504,
0.1450924575328827,
-0.17993533611297607,
0.07202941924333572,
-0.25058168172836304,
-0.3207334578037262,
0.12256095558404922,
0.05798579752445221,
-0.35385388135910034,
0.08653584122657776,
-0.5893061757087708,
-0.10552475601434708,
0.061052411794662476,
-0.25604337453842163,
-0.02655618265271187,
0.09275215864181519,
0.1982652246952057,
0.3240155577659607,
-0.31948745250701904,
-0.16845855116844177,
-0.35373011231422424,
0.28939735889434814,
0.2580322027206421,
-0.16874895989894867,
0.20249953866004944,
0.3268684148788452,
0.12269966304302216,
-0.09429237246513367,
0.07339911162853241,
0.4691963195800781,
0.2695029377937317,
-0.40917056798934937,
-0.24168825149536133,
0.0007015056908130646,
-0.17144989967346191,
0.028852064162492752,
0.022710304707288742,
0.09357497096061707,
-0.14822430908679962,
0.31844982504844666,
0.17270871996879578,
-0.23657867312431335,
0.016995079815387726,
0.22849605977535248,
-0.1632331758737564,
-0.05980266258120537,
0.3138761818408966,
-0.1745770424604416,
-0.35948777198791504,
-0.19936063885688782,
-0.05556391924619675,
-0.3286151587963104,
-0.23928764462471008,
0.42515963315963745,
0.07117238640785217,
0.11256281286478043,
-0.10807864367961884,
0.13363198935985565,
0.1887083649635315,
0.29917997121810913,
0.06831074506044388,
0.14640454947948456,
-0.2301284819841385,
0.035375818610191345,
-0.3624051809310913,
0.40550851821899414,
0.09639784693717957,
-0.47710150480270386,
0.0073112668469548225,
-0.14164161682128906,
-0.028436698019504547,
0.11843786388635635,
0.4788801670074463,
0.18432530760765076,
0.46363359689712524,
0.3037227988243103,
-0.31750401854515076,
-0.110822394490242,
0.1405465304851532,
-0.16240575909614563,
0.10857129096984863,
-0.4290050268173218,
0.06629868596792221,
-0.08709161728620529,
0.2194526493549347,
-0.2315065711736679,
-0.1183544397354126,
0.004136890172958374,
-0.010477624833583832,
0.47400417923927307,
0.006574127823114395,
0.4039253294467926,
-0.10784662514925003,
-0.2339344024658203,
-0.11489781737327576,
0.08625837415456772,
-0.19906434416770935,
0.1219620332121849,
0.1236167699098587,
0.40891069173812866,
0.28578731417655945,
-0.12865427136421204,
-0.31120267510414124,
0.3142207860946655,
0.20716367661952972,
-0.2243802696466446,
-0.3223206698894501,
0.3559569716453552,
0.20537638664245605,
0.07041402906179428,
0.13666978478431702,
0.34112024307250977,
0.11810729652643204,
0.23842082917690277,
-0.48533838987350464,
-0.4701519012451172,
0.47597333788871765,
-0.36884772777557373,
-0.32875901460647583,
-0.10005639493465424,
0.33643364906311035,
-0.15199151635169983,
0.17669837176799774,
-0.6174044609069824,
-0.052238013595342636,
0.19160693883895874,
-0.019179701805114746,
-0.15420587360858917,
0.19147071242332458,
-0.0188923217356205,
0.0415119044482708,
-0.1311062127351761,
0.41797810792922974,
0.036335933953523636,
0.1277419924736023,
-0.01357729360461235,
-0.45855581760406494
] |
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
| 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])
``` | [
0.1432117521762848,
-0.08071322739124298,
-0.051935769617557526,
0.08374571800231934,
0.3818095326423645,
0.12156004458665848,
0.3182193338871002,
0.20185120403766632,
0.3359062969684601,
0.1461300551891327,
-0.0025853863917291164,
0.6777687668800354,
0.1720501333475113,
-0.08346504718065262,
0.03939571976661682,
0.08072273433208466,
0.1729065477848053,
0.2838839590549469,
0.12714771926403046,
-0.12408458441495895,
-0.2768239974975586,
0.027164194732904434,
-0.06305661797523499,
0.1419527530670166,
-0.050067681819200516,
-0.2749341130256653,
0.2675236761569977,
-0.2801792025566101,
-0.14333879947662354,
-0.2824617922306061,
-0.06908945739269257,
-0.3966939449310303,
-0.07662476599216461,
-0.15275314450263977,
-0.0001191806368296966,
-0.12882640957832336,
0.31080228090286255,
0.1762869507074356,
-0.15949712693691254,
0.24731877446174622,
0.17458954453468323,
-0.6445024013519287,
0.42789599299430847,
-0.19974389672279358,
0.03613355755805969,
-0.31300216913223267,
-0.007681919261813164,
-0.6730507612228394,
-0.1064484566450119,
0.2569389343261719,
0.17298302054405212,
0.3516577482223511,
0.37269073724746704,
0.25620007514953613,
-0.016619160771369934,
-0.043354399502277374,
-0.2608150839805603,
-0.026543818414211273,
-0.09819471836090088,
-0.020097292959690094,
0.2729899287223816,
-0.07683178782463074,
-0.22825129330158234,
-0.0822293758392334,
0.402188241481781,
0.42055800557136536,
0.29815101623535156,
-0.4303377866744995,
-0.21701285243034363,
-0.06773770600557327,
0.10880914330482483,
-0.1369505226612091,
-0.1589241623878479,
-0.19252422451972961,
-0.005811136215925217,
-0.16972576081752777,
-0.12048975378274918,
0.350831538438797,
-0.10432961583137512,
0.2737756669521332,
-0.0844513326883316,
0.1252753585577011,
-0.15009504556655884,
0.3437536358833313,
-0.13406327366828918,
-0.0549250990152359,
0.08766916394233704,
0.23390957713127136,
0.02640146017074585,
-0.0756836086511612,
0.22148767113685608,
-0.26572638750076294,
0.1736985296010971,
0.04266907274723053,
-0.03413303568959236,
-0.16588789224624634,
-0.0037300363183021545,
-0.18333777785301208,
-0.14072203636169434,
-0.3234001398086548,
0.17304863035678864,
0.1125851571559906,
-0.34467482566833496,
0.18961754441261292,
0.23039382696151733,
0.10502862930297852,
0.12086696922779083,
0.011754839681088924,
-0.03375321626663208,
-0.32324784994125366,
0.28615865111351013,
0.15276563167572021,
0.5880305767059326,
0.3886154592037201,
0.3194567561149597,
-0.17846843600273132,
0.27679580450057983,
-0.0785759910941124,
-0.29851973056793213,
0.34303662180900574,
-0.34382012486457825,
0.38339176774024963,
-0.19888761639595032,
-0.32395270466804504,
-0.08566836267709732,
0.2701067328453064,
0.1414402574300766,
0.2795889973640442,
0.13328208029270172,
-0.07946154475212097,
-0.017220472916960716,
-0.2576669752597809,
-0.021274447441101074,
-0.052097611129283905,
-0.300351083278656,
0.13020901381969452,
-0.050626784563064575,
0.30055859684944153,
-0.12039965391159058,
-0.06195419281721115,
-0.1702631562948227,
-0.012744205072522163,
0.139828622341156,
0.23095418512821198,
0.03437824174761772,
0.21429309248924255,
0.1706249713897705,
-0.6216282248497009,
-0.055805061012506485,
0.2727613151073456,
-0.17219460010528564,
0.28140610456466675,
-0.26507189869880676,
0.099307581782341,
0.025313861668109894,
0.00857536494731903,
0.12194369733333588,
-0.08114185929298401,
0.44590216875076294,
-0.07708708196878433,
0.20153477787971497,
-0.5377985239028931,
-0.03309834748506546,
-0.30475184321403503,
-0.2533394992351532,
-0.21650545299053192,
-0.14472231268882751,
0.24793773889541626,
-0.013446411117911339,
-0.03879360482096672,
0.10579078644514084,
0.534253716468811,
0.20946970582008362,
0.05609060078859329,
-0.35099485516548157,
0.14745140075683594,
0.0446421280503273,
0.20539088547229767,
-0.15813471376895905,
-0.06592272967100143,
-0.41341543197631836,
0.27907174825668335,
-0.43249160051345825,
0.48874637484550476,
-0.2617758512496948,
-0.12493708729743958,
0.05642437934875488,
0.4950608015060425,
-0.0921834334731102,
-0.04454103857278824,
-0.33535411953926086,
-0.12066531926393509,
0.39632606506347656,
-0.1280456781387329,
-0.2617768347263336,
0.42213231325149536,
0.07409340888261795,
-0.1610390543937683,
0.06880266964435577,
-0.1783170998096466,
-0.0523025244474411,
0.10562501847743988,
0.4045221209526062,
0.1053648442029953,
-0.11534767597913742,
-0.19626349210739136,
-0.4288274645805359,
-0.027774080634117126,
-0.35095998644828796,
-0.07028906792402267,
-0.012113705277442932,
-0.38470888137817383,
-0.02873941697180271,
0.17754997313022614,
0.10404165089130402,
0.3295566737651825,
0.0804135873913765,
0.23597675561904907,
-0.27639859914779663,
0.14100323617458344,
0.060388412326574326,
-0.1187950149178505,
-0.05588638782501221,
0.09515663981437683,
-0.5458003878593445,
0.09367119520902634,
-0.003404783084988594,
-0.22238115966320038,
-0.6118648648262024,
0.2667026221752167,
0.11425383388996124,
0.003161563305184245,
0.045658715069293976,
0.4446350038051605,
0.28008827567100525,
-0.16568611562252045,
-0.32668107748031616,
0.2547847330570221,
0.07049072533845901,
-0.18827494978904724,
-0.1771196871995926,
0.7327632308006287,
-0.06739598512649536,
-0.23847851157188416,
0.15171369910240173,
0.4048606753349304,
-0.048995982855558395,
0.11250732839107513,
-0.3827866315841675,
0.20030614733695984,
0.18593092262744904,
0.18361322581768036,
-0.21279673278331757,
-0.09743666648864746,
-0.3402933180332184,
-0.01651853695511818,
-0.0583878830075264,
0.026206057518720627,
-0.3648958206176758,
0.3829304873943329,
0.17970700562000275,
0.007196150720119476,
0.33562883734703064,
0.11732078343629837,
0.0604880265891552,
-0.03341821953654289,
-0.14566117525100708,
-0.2629329562187195,
0.4326929450035095,
0.09611580520868301,
0.177320659160614,
0.1866813451051712,
-0.08428704738616943,
-0.206970676779747,
0.2062932550907135,
0.34759819507598877,
0.25824591517448425,
0.009015213698148727,
0.3090537488460541,
0.11408618092536926,
-0.09246370196342468,
0.3882134258747101,
-0.4453478455543518,
0.07347459346055984,
-0.3222087621688843,
0.285194993019104,
-0.42533478140830994,
0.16984149813652039,
-0.29501721262931824,
-0.36225736141204834,
-0.006132312119007111,
-0.22789405286312103,
-0.05373355746269226,
0.22989656031131744,
-0.1454828828573227,
-0.10399317741394043,
0.28195151686668396,
0.30489999055862427,
0.25642046332359314,
0.2877868413925171,
-0.06799439340829849,
0.10330916196107864,
-0.4261462390422821,
-0.021409880369901657,
0.19175110757350922,
-0.20642176270484924,
0.1796828657388687,
0.09118220210075378,
-0.015102853067219257,
-0.30311155319213867,
-0.4087821841239929,
-0.1902807652950287,
-0.0879642516374588,
0.2935875952243805,
0.1510993391275406,
0.22544176876544952,
-0.18503107130527496,
-0.0794701799750328,
0.012769307941198349,
-0.044428084045648575,
-0.04361983388662338,
0.2316398322582245,
0.018399590626358986,
-0.25139808654785156,
-0.3430686891078949,
-0.13175082206726074,
-0.379413902759552,
-0.13685603439807892,
0.3446189761161804,
0.16430822014808655,
0.014720022678375244,
0.36531516909599304,
0.12336061894893646,
0.036617305129766464,
-0.016246795654296875,
-0.16638965904712677,
-0.14560873806476593,
0.4278738796710968,
0.2704657018184662,
-0.0992136299610138,
-0.4834398329257965,
-0.07478201389312744,
-0.13583150506019592,
-0.2236771583557129,
0.03289776295423508,
-0.1658751666545868,
-0.18153202533721924,
0.006333528086543083,
0.13303323090076447,
0.061416082084178925,
0.02544441819190979,
0.06402149796485901,
0.02152855321764946,
0.044656895101070404,
0.10865647345781326,
-0.06674361228942871,
0.1799788475036621,
0.10369943082332611,
0.4018385112285614,
0.13121578097343445,
0.15238884091377258,
0.13274963200092316,
0.18211983144283295,
0.3355936110019684,
-0.25231310725212097,
0.11161058396100998,
-0.28693369030952454,
0.38495495915412903,
-0.3150310814380646,
-0.19646885991096497,
-0.3506429195404053,
-0.1875017285346985,
-0.46991270780563354,
0.1306838095188141,
-0.16304615139961243,
-0.3827194273471832,
0.23005595803260803,
0.43865203857421875,
0.029275082051753998,
-0.05832591652870178,
0.05811379849910736,
-0.0497833788394928,
0.09661492705345154,
0.20652280747890472,
0.11080003529787064,
-0.05115531012415886,
-0.4188555181026459,
-0.0936967134475708,
-0.18651174008846283,
0.0783294141292572,
-0.07909485697746277,
-0.7364056706428528,
-0.5758572220802307,
0.3301146626472473,
0.3062349557876587,
0.06041892617940903,
0.651970386505127,
0.05602681264281273,
-0.23488792777061462,
0.30475711822509766,
0.33261990547180176,
0.4946237802505493,
-0.022891385480761528,
-0.40043574571609497,
-0.003931352868676186,
0.4534367322921753,
-0.414962500333786,
-0.26870661973953247,
-0.15221603214740753,
-0.12017001956701279,
0.5024757385253906,
0.2905803918838501,
-0.10441048443317413,
0.26160135865211487,
-0.07779352366924286,
0.22289405763149261,
-0.061946261674165726,
0.13630133867263794,
-0.2859102189540863,
-0.26071301102638245,
0.18520590662956238,
0.03549843654036522,
-0.0050849225372076035,
0.13395161926746368,
0.03594305366277695,
-0.4013778269290924,
-0.08397690206766129,
0.07186862826347351,
-0.07997347414493561,
-0.2095806747674942,
0.23899391293525696,
0.06625824421644211,
-0.2150644212961197,
-0.09925277531147003,
0.007345244288444519,
-0.15482310950756073,
0.08837217092514038,
-0.06636020541191101,
0.22511568665504456,
-0.27016520500183105,
-0.18079547584056854,
0.20722326636314392,
0.13426527380943298,
0.085284024477005,
-0.19314616918563843,
-0.24596598744392395,
0.031708117574453354,
0.13425929844379425,
-0.22654882073402405,
0.2880716919898987,
-0.17363344132900238,
0.08886068314313889,
-0.12220541387796402,
0.5642897486686707,
-0.021119069308042526,
-0.16375738382339478,
0.212688148021698,
-0.04514378309249878,
-0.06336034834384918,
0.3722848892211914,
0.4421449601650238,
0.8516247272491455,
-0.029538214206695557,
-0.011411130428314209,
0.45397481322288513,
-0.513970673084259,
0.6154937744140625,
-0.059385985136032104,
-0.0045224931091070175,
-0.5543864965438843,
-0.11467494070529938,
-0.07590746134519577,
-0.28464069962501526,
0.15990249812602997,
0.09570761024951935,
-0.0937194675207138,
-0.04667540267109871,
-0.12456302344799042,
0.39664480090141296,
0.1732553243637085,
-0.06570522487163544,
0.26696884632110596,
-0.18334513902664185,
-0.16211053729057312,
0.09351974725723267,
-0.17802409827709198,
0.04618462920188904,
-0.08378826826810837,
-0.22278687357902527,
-0.11882194876670837,
-0.01689760573208332,
0.09159356355667114,
0.1281260848045349,
0.16375435888767242,
0.1738317459821701,
0.4557332694530487,
-0.10692193359136581,
-0.29424339532852173,
0.42420676350593567,
0.2456543743610382,
0.13240016996860504,
-0.10884836316108704,
-0.3542081117630005,
0.27841800451278687,
0.20575302839279175,
0.35409268736839294,
-0.10288083553314209,
0.18452386558055878,
0.09200908988714218,
0.23903876543045044,
-0.1353510618209839,
0.030654069036245346,
-0.04790099337697029,
-0.4127332866191864,
0.11760902404785156,
0.13803142309188843,
-0.2725406885147095,
-0.2253948152065277,
-0.17655473947525024,
0.19498172402381897,
0.04190463945269585,
0.07657849788665771,
-0.09727813303470612,
-0.08150625973939896,
0.44334983825683594,
0.06499332934617996,
-0.14522799849510193,
0.078854501247406,
0.3514949083328247,
0.2842421531677246,
-0.32516852021217346,
0.027619466185569763,
-0.030914785340428352,
-0.308927059173584,
-0.0644863173365593,
0.30929771065711975,
-0.22985884547233582,
0.14299717545509338,
0.25987398624420166,
-0.18252761662006378,
0.019484132528305054,
-0.15882731974124908,
-0.1555585116147995,
0.009237691760063171,
0.09756813943386078,
-0.4891848862171173,
-0.1803831160068512,
-0.31333044171333313,
0.005372405052185059,
0.3316141664981842,
0.3037983775138855,
0.1264369785785675,
-0.26256200671195984,
-0.1737598180770874,
-0.01890558935701847,
-0.19959351420402527,
-0.15751375257968903,
0.041202276945114136,
0.1736360788345337,
0.09741957485675812,
0.024919815361499786,
-0.44101232290267944,
-0.06117083877325058,
0.0770164206624031,
0.049519360065460205,
-0.1361251026391983,
-0.17168280482292175,
0.18734948337078094,
0.10978013277053833,
0.14493368566036224,
-0.1516331285238266,
0.12049362808465958,
-0.26926255226135254,
-0.04704560711979866,
-0.15094006061553955,
-0.16236594319343567,
-0.018826842308044434,
-0.07601791620254517,
0.09111730754375458,
0.18429604172706604,
0.32361480593681335,
0.39186352491378784,
-0.07103906571865082,
-0.41838327050209045,
-0.06547665596008301,
0.07970842719078064,
0.10179455578327179,
-0.126116544008255,
0.001025959849357605,
-0.24631719291210175,
0.08484235405921936,
0.2703962028026581,
0.0334646999835968,
0.47621405124664307,
-0.5851919651031494,
-0.05801982432603836,
0.09029281139373779,
0.2028869390487671,
0.006126571446657181,
-0.48075544834136963,
-0.12513142824172974,
-0.17764174938201904,
0.171332448720932,
-0.11790794879198074,
-0.10257606953382492,
0.5436737537384033,
0.32300522923469543,
-0.2340383380651474,
0.35806775093078613,
0.38153398036956787,
-0.42183005809783936,
0.09070439636707306,
-0.01492326520383358,
0.349892795085907,
-0.2204367071390152,
-0.12845611572265625,
0.6234000325202942,
0.034206416457891464,
-0.1248101145029068,
0.014696592465043068,
-0.25802353024482727,
-0.024321727454662323,
0.5617187023162842,
0.2174406349658966,
0.2766890525817871,
0.4380021095275879,
-0.0017187893390655518,
0.006651587784290314,
0.11658583581447601,
0.1755632907152176,
0.3467879295349121,
-0.040201976895332336,
0.16538786888122559,
0.7208479046821594,
-0.06096646934747696,
-0.16059409081935883,
-0.2678205370903015,
-0.07123304158449173,
0.31261196732521057,
-0.36436769366264343,
0.2593625783920288,
0.03256019949913025,
0.17869886755943298,
-0.061473678797483444,
-0.2751941680908203,
-0.10360024869441986,
-0.16340069472789764,
-0.1182929277420044,
0.10177398473024368,
-0.24799425899982452,
-0.043419137597084045,
0.11006205528974533,
0.07370461523532867,
0.2417713701725006,
-0.20743706822395325,
-0.03037329949438572,
-0.15785519778728485,
0.16673614084720612,
-0.2221982479095459,
0.0802282989025116,
0.18265707790851593,
0.5288417339324951,
-0.02648117020726204,
0.14851869642734528,
-0.04413662105798721,
-0.31035587191581726,
0.027578100562095642,
0.1883644163608551,
-0.19107699394226074,
0.1886516511440277,
0.01498487964272499,
0.06358804553747177,
-0.0824022889137268,
0.1638030707836151,
0.1211499273777008,
0.4635918140411377,
-0.3241853713989258,
0.5793676972389221,
-0.1506613790988922,
-0.45058372616767883,
-0.15298889577388763,
-0.2825435698032379,
-0.18456706404685974,
-0.08868047595024109,
0.22685539722442627,
0.10027746856212616,
0.23798999190330505,
-0.05816873908042908,
0.06352992355823517,
-0.1588609367609024,
0.1997036635875702,
0.08729714155197144,
-0.12562590837478638,
0.011001715436577797,
-0.053262822329998016,
-0.2865836024284363,
0.49169108271598816,
0.0035131052136421204,
0.17063754796981812,
0.30905207991600037,
-0.021239900961518288,
0.06557658314704895,
0.3760039806365967,
-0.16131915152072906,
0.1326923668384552,
-0.15665552020072937,
0.36987531185150146,
-0.03408639878034592,
-0.0599202997982502,
-0.11306731402873993,
-0.03111160360276699,
-0.07907312363386154,
-0.11927760392427444,
0.43584954738616943,
-0.21773460507392883,
0.0479612722992897,
-0.1590697318315506,
0.13494761288166046,
-0.23293396830558777,
0.2605782151222229,
0.26187968254089355,
0.24487406015396118,
-0.05298672616481781,
0.157724529504776,
-0.05709369480609894,
-0.16996482014656067,
-0.12714911997318268,
-0.1659012734889984,
0.4996120035648346,
-0.2555142939090729,
0.33784565329551697,
-0.09348655492067337,
-0.16432537138462067,
-0.09215479344129562,
0.06699471920728683,
0.22836165130138397,
0.07909811288118362,
-0.2637495994567871,
0.21156227588653564,
-0.48156967759132385,
0.2843165695667267,
-0.04830234497785568,
-0.0833272710442543,
0.38005897402763367,
0.41318750381469727,
-0.12587063014507294,
-0.3225986957550049,
0.32116127014160156,
0.2601771354675293,
-0.35667479038238525,
0.20067645609378815,
0.15828828513622284,
-0.161014586687088,
-0.4333449602127075,
-0.15232908725738525,
-0.5054689049720764,
0.4179742932319641,
-0.4892641603946686,
0.0009194947779178619,
0.10369046032428741,
-0.37397709488868713,
0.15176747739315033,
-0.23315876722335815,
0.11723524332046509,
0.006278868764638901,
0.16527512669563293,
0.15576031804084778,
-0.3942199945449829
] |
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
| 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? | [
0.0756758600473404,
-0.06403491646051407,
-0.04665675759315491,
0.016813814640045166,
0.369318425655365,
0.0984451100230217,
0.3085053563117981,
0.158713236451149,
0.2478821575641632,
0.1558501273393631,
0.03274393826723099,
0.6403751373291016,
0.18294264376163483,
-0.10110799968242645,
0.012697198428213596,
0.05268920958042145,
0.27374956011772156,
0.20070406794548035,
0.0662195160984993,
-0.1437162607908249,
-0.3662460744380951,
0.04841380566358566,
-0.08686552941799164,
0.1144619807600975,
-0.016864249482750893,
-0.24002805352210999,
0.25288718938827515,
-0.22183912992477417,
-0.11929910629987717,
-0.2297421097755432,
-0.16946850717067719,
-0.39874711632728577,
-0.038063377141952515,
-0.21484914422035217,
-0.00011989447375526652,
-0.120893694460392,
0.30735456943511963,
0.18380233645439148,
-0.11270803213119507,
0.23283377289772034,
0.21447992324829102,
-0.7001848816871643,
0.4618375599384308,
-0.2036454975605011,
0.099269337952137,
-0.15620246529579163,
0.007323017343878746,
-0.6879832148551941,
-0.08598046004772186,
0.24717414379119873,
0.18089596927165985,
0.3604844808578491,
0.32247915863990784,
0.23567013442516327,
-0.03222225606441498,
-0.024893194437026978,
-0.2545458972454071,
0.011192172765731812,
-0.07340191304683685,
0.02386477030813694,
0.2201712727546692,
-0.10002274811267853,
-0.1610807627439499,
-0.10983164608478546,
0.43323376774787903,
0.42910048365592957,
0.3379494249820709,
-0.3895852565765381,
-0.22761791944503784,
-0.03394808620214462,
0.0731031745672226,
-0.12984082102775574,
-0.23135049641132355,
-0.23221245408058167,
-0.017407558858394623,
-0.22760668396949768,
-0.15147873759269714,
0.3683929741382599,
-0.1659918874502182,
0.22286108136177063,
-0.11558345705270767,
0.09672845900058746,
-0.12105340510606766,
0.28404712677001953,
-0.17025956511497498,
-0.07412290573120117,
0.0860101655125618,
0.22475183010101318,
-0.002136223018169403,
-0.11676706373691559,
0.19969823956489563,
-0.21235929429531097,
0.23952530324459076,
0.01565862074494362,
-0.020554210990667343,
-0.14343927800655365,
0.0005707144737243652,
-0.14268478751182556,
-0.11800520867109299,
-0.3564106225967407,
0.18028199672698975,
0.16855168342590332,
-0.30517759919166565,
0.16424739360809326,
0.25054246187210083,
0.09328003227710724,
0.07236295938491821,
0.008164660073816776,
0.012776758521795273,
-0.2540079653263092,
0.33892107009887695,
0.17223089933395386,
0.5936076641082764,
0.38761603832244873,
0.3095700144767761,
-0.20861828327178955,
0.3852928876876831,
-0.11296761780977249,
-0.3370111882686615,
0.31128576397895813,
-0.3081052601337433,
0.4004652798175812,
-0.23102833330631256,
-0.31307393312454224,
-0.004883036948740482,
0.3451918065547943,
0.15135876834392548,
0.3539852499961853,
0.09902457147836685,
-0.11660473048686981,
-0.046434223651885986,
-0.25627169013023376,
0.016791876405477524,
-0.0861947238445282,
-0.33851349353790283,
0.23729094862937927,
-0.05023764818906784,
0.2812439799308777,
0.018817763775587082,
-0.011636950075626373,
-0.18083219230175018,
-0.00475207157433033,
0.09504302591085434,
0.24205905199050903,
0.00604856014251709,
0.19462467730045319,
0.155819833278656,
-0.5479447245597839,
-0.04172148182988167,
0.34719884395599365,
-0.1879786252975464,
0.3162645101547241,
-0.19216229021549225,
0.10093338787555695,
0.08703391253948212,
0.0043739378452301025,
0.12992961704730988,
-0.03385482355952263,
0.48389074206352234,
-0.07651150971651077,
0.19595232605934143,
-0.6353442668914795,
-0.026584535837173462,
-0.37053245306015015,
-0.31658169627189636,
-0.19331659376621246,
-0.16089370846748352,
0.18721741437911987,
0.06090636923909187,
-0.059847939759492874,
0.16226451098918915,
0.6275058388710022,
0.16905981302261353,
-0.05942476540803909,
-0.2535742521286011,
0.16807827353477478,
0.01566888391971588,
0.17369112372398376,
-0.15667150914669037,
-0.09609238803386688,
-0.3797306418418884,
0.276093453168869,
-0.39805760979652405,
0.46443843841552734,
-0.215895876288414,
-0.2258353978395462,
0.02809421345591545,
0.44270527362823486,
-0.1600312739610672,
0.029377182945609093,
-0.36576977372169495,
-0.14495591819286346,
0.4014732241630554,
-0.09954617917537689,
-0.21180228888988495,
0.40153318643569946,
0.017875544726848602,
-0.08618713915348053,
0.03670274838805199,
-0.18845896422863007,
-0.05712657421827316,
0.13907647132873535,
0.29492923617362976,
-0.010877043008804321,
-0.11229334771633148,
-0.1196589544415474,
-0.33864474296569824,
-0.04953538626432419,
-0.3963090777397156,
0.013822376728057861,
0.0023283734917640686,
-0.3722038269042969,
-0.0032699601724743843,
0.2515905201435089,
0.13811197876930237,
0.3695603311061859,
0.07998690009117126,
0.18985313177108765,
-0.2884926497936249,
0.120417520403862,
0.08013273775577545,
-0.10153336077928543,
-0.09886398166418076,
0.14908467233181,
-0.47595682740211487,
0.035227783024311066,
-0.01990549825131893,
-0.2380737066268921,
-0.6095253825187683,
0.24566692113876343,
0.1204785630106926,
-0.01038412842899561,
0.006406507454812527,
0.4790826439857483,
0.27809035778045654,
-0.17571596801280975,
-0.32773497700691223,
0.3170049786567688,
0.16014644503593445,
-0.1707378327846527,
-0.02293010987341404,
0.6859741806983948,
-0.0834287479519844,
-0.19824784994125366,
0.1045500785112381,
0.35154932737350464,
-0.024396788328886032,
0.08159596472978592,
-0.37279248237609863,
0.18357180058956146,
0.17318081855773926,
0.192801371216774,
-0.1839183121919632,
-0.09894901514053345,
-0.3198947012424469,
0.0359031967818737,
-0.09190738201141357,
0.02939617447555065,
-0.3923376500606537,
0.3694058060646057,
0.17312480509281158,
-0.06184476986527443,
0.3564530313014984,
0.18696945905685425,
0.044637925922870636,
-0.08831144869327545,
-0.12523064017295837,
-0.2875034213066101,
0.4735693335533142,
0.08097749203443527,
0.21902304887771606,
0.23216547071933746,
-0.09997344762086868,
-0.21615730226039886,
0.20786267518997192,
0.3489477038383484,
0.2442183643579483,
-0.09693063050508499,
0.29663315415382385,
0.12326928973197937,
-0.07887310534715652,
0.4807073771953583,
-0.4157882034778595,
0.06860297918319702,
-0.31778332591056824,
0.27245575189590454,
-0.39261168241500854,
0.26041752099990845,
-0.25985071063041687,
-0.3060043454170227,
-0.03553824499249458,
-0.30532756447792053,
-0.049974434077739716,
0.17512822151184082,
-0.1542486995458603,
-0.13154076039791107,
0.27150779962539673,
0.25854381918907166,
0.2595422565937042,
0.28829047083854675,
-0.10283049941062927,
0.07778662443161011,
-0.4228014647960663,
-0.019516918808221817,
0.2077707052230835,
-0.21439102292060852,
0.13594341278076172,
0.04011089354753494,
-0.027713200077414513,
-0.261919230222702,
-0.40192079544067383,
-0.23741558194160461,
-0.038435354828834534,
0.2967533767223358,
0.14813359081745148,
0.210024893283844,
-0.18509389460086823,
0.0016633188351988792,
0.034060508012771606,
-0.04091084748506546,
-0.02774425595998764,
0.22516226768493652,
-0.007953301072120667,
-0.2944797873497009,
-0.30390655994415283,
-0.020611844956874847,
-0.438630610704422,
-0.0845504105091095,
0.29640382528305054,
0.1872367560863495,
-0.02640499919652939,
0.2569928765296936,
0.10176649689674377,
-0.07300818711519241,
0.03995451331138611,
-0.11265730112791061,
-0.15352553129196167,
0.41371411085128784,
0.22439999878406525,
-0.06163368374109268,
-0.4705250561237335,
-0.13217459619045258,
-0.10036654770374298,
-0.22159820795059204,
0.06793396919965744,
-0.1385505497455597,
-0.14072760939598083,
0.008656833320856094,
0.22689956426620483,
0.021319005638360977,
0.0061951614916324615,
0.0915146991610527,
0.03993222489953041,
0.051944538950920105,
0.11321408301591873,
-0.06499055027961731,
0.1601652354001999,
0.09470752626657486,
0.38192301988601685,
0.13363416492938995,
0.1242734044790268,
0.1416117548942566,
0.22226113080978394,
0.3082175850868225,
-0.24977315962314606,
0.12932461500167847,
-0.1874164193868637,
0.3968040347099304,
-0.2837861180305481,
-0.12648479640483856,
-0.30065685510635376,
-0.18836426734924316,
-0.45244139432907104,
0.09303458034992218,
-0.15377026796340942,
-0.4104021489620209,
0.23319560289382935,
0.396805077791214,
-0.033498458564281464,
-0.1165267676115036,
0.07779159396886826,
-0.04789687693119049,
0.13825249671936035,
0.23383459448814392,
0.1061360165476799,
-0.027993308380246162,
-0.3846510052680969,
-0.04004565626382828,
-0.18347619473934174,
0.015940554440021515,
-0.12699273228645325,
-0.704936146736145,
-0.5911009907722473,
0.25183820724487305,
0.3271802067756653,
0.07116471976041794,
0.6930453777313232,
0.04614555463194847,
-0.30351924896240234,
0.2598069906234741,
0.3094632625579834,
0.5241777300834656,
-0.01622079871594906,
-0.4004921317100525,
0.014411967247724533,
0.461039662361145,
-0.3285359740257263,
-0.2837611436843872,
-0.16793309152126312,
-0.10650872439146042,
0.5434180498123169,
0.2510960102081299,
-0.12697626650333405,
0.22647225856781006,
-0.07574634253978729,
0.22452589869499207,
-0.009093832224607468,
0.20883698761463165,
-0.26902836561203003,
-0.2613307535648346,
0.20293323695659637,
0.012195222079753876,
-0.047406457364559174,
0.1583508551120758,
0.0032429660204797983,
-0.30938124656677246,
-0.09312130510807037,
0.074195995926857,
-0.0775061696767807,
-0.20960213243961334,
0.22682848572731018,
0.01581704616546631,
-0.2505173087120056,
-0.1332620084285736,
0.02192084491252899,
-0.12353184819221497,
0.04264581948518753,
-0.09163115918636322,
0.13378721475601196,
-0.24226760864257812,
-0.1300143450498581,
0.1387258917093277,
0.17706012725830078,
0.07898935675621033,
-0.2554585039615631,
-0.23898175358772278,
0.0263967365026474,
0.15740565955638885,
-0.2481536716222763,
0.23339226841926575,
-0.10012039542198181,
0.05236530303955078,
0.023605091497302055,
0.509376585483551,
-0.0019767042249441147,
-0.16869716346263885,
0.14191344380378723,
-0.11711613833904266,
-0.10012920945882797,
0.39524340629577637,
0.4583333134651184,
0.8701232075691223,
-0.056695811450481415,
0.025891249999403954,
0.4235960841178894,
-0.529272735118866,
0.5746254324913025,
-0.01960478536784649,
-0.0036606397479772568,
-0.5689294934272766,
-0.1134410947561264,
-0.06405094265937805,
-0.3019348978996277,
0.2226073145866394,
0.09218171238899231,
-0.07654376327991486,
-0.014923347160220146,
-0.15467596054077148,
0.378609299659729,
0.18666382133960724,
-0.1274873912334442,
0.211806058883667,
-0.19606252014636993,
-0.20853020250797272,
0.10691562294960022,
-0.14182844758033752,
0.011407777667045593,
-0.10869617015123367,
-0.25291645526885986,
-0.1975204348564148,
-0.0337379053235054,
0.07664985954761505,
0.07809320837259293,
0.08221302926540375,
0.15119735896587372,
0.4774878919124603,
-0.12366834282875061,
-0.27774280309677124,
0.423639178276062,
0.34072065353393555,
0.09927888214588165,
-0.12869033217430115,
-0.34355244040489197,
0.25607213377952576,
0.214069202542305,
0.46172675490379333,
-0.033037468791007996,
0.15227541327476501,
0.06542585045099258,
0.30106568336486816,
-0.14096128940582275,
-0.05804532393813133,
0.01843801885843277,
-0.4251961410045624,
0.050595853477716446,
0.14648333191871643,
-0.3220588266849518,
-0.23560304939746857,
-0.19545426964759827,
0.181121364235878,
0.03619229421019554,
0.07140572369098663,
-0.08336754143238068,
-0.03809647634625435,
0.4626334607601166,
-0.018510933965444565,
-0.14566467702388763,
0.06157222017645836,
0.3317761719226837,
0.32856398820877075,
-0.41284722089767456,
0.03358108177781105,
-0.11274904012680054,
-0.31413859128952026,
-0.024240642786026,
0.40251803398132324,
-0.2724398970603943,
0.14747202396392822,
0.340219110250473,
-0.16345258057117462,
-0.03870246559381485,
-0.18931064009666443,
-0.15267372131347656,
0.016679376363754272,
0.13068287074565887,
-0.4853317141532898,
-0.17458471655845642,
-0.31271636486053467,
0.05216643586754799,
0.349972665309906,
0.23323595523834229,
0.13103839755058289,
-0.23637984693050385,
-0.19100816547870636,
-0.13286983966827393,
-0.1875617951154709,
-0.12049011886119843,
0.027499182149767876,
0.15482547879219055,
0.13709640502929688,
0.02751351147890091,
-0.43161675333976746,
-0.007541997823864222,
0.08535090833902359,
0.05792587995529175,
-0.08114244788885117,
-0.16313469409942627,
0.24031418561935425,
0.12381461262702942,
0.1296658217906952,
-0.18213465809822083,
0.17778527736663818,
-0.23680905997753143,
-0.012276705354452133,
-0.15674425661563873,
-0.15326860547065735,
-0.060550838708877563,
-0.11121654510498047,
0.10775619000196457,
0.19209501147270203,
0.36158183217048645,
0.4775116443634033,
-0.012788847088813782,
-0.4028100371360779,
-0.017553389072418213,
0.0008167806081473827,
0.16940289735794067,
-0.06833258271217346,
-0.02595265582203865,
-0.21467797458171844,
0.11770694702863693,
0.22928522527217865,
0.007346440106630325,
0.4481928050518036,
-0.5916996002197266,
-0.06910780817270279,
0.1302984207868576,
0.16440449655056,
0.022817157208919525,
-0.5176754593849182,
-0.10215683281421661,
-0.2109689712524414,
0.16012915968894958,
-0.17555968463420868,
-0.17008362710475922,
0.5249291062355042,
0.26547688245773315,
-0.22951190173625946,
0.34081655740737915,
0.3979378342628479,
-0.42124760150909424,
0.13658811151981354,
-0.026162782683968544,
0.30804505944252014,
-0.2579799294471741,
-0.11844560503959656,
0.6745035648345947,
0.04305729642510414,
-0.02561972662806511,
-0.0019752588123083115,
-0.22866833209991455,
-0.03286043554544449,
0.5869026184082031,
0.160420224070549,
0.3256765305995941,
0.37090593576431274,
-0.05627688392996788,
-0.026913277804851532,
0.07187049090862274,
0.1540689319372177,
0.38840365409851074,
-0.06429070234298706,
0.16629093885421753,
0.678193986415863,
-0.05964116007089615,
-0.15989704430103302,
-0.28309160470962524,
-0.06722705066204071,
0.37938860058784485,
-0.4208715558052063,
0.22616079449653625,
0.031951338052749634,
0.16456976532936096,
-0.04033030569553375,
-0.29331687092781067,
-0.1907522827386856,
-0.11529189348220825,
-0.09554636478424072,
0.10128961503505707,
-0.1940653771162033,
-0.017604252323508263,
0.10988818109035492,
-0.06738816946744919,
0.1850517988204956,
-0.2302727848291397,
-0.09689468890428543,
-0.11018803715705872,
0.15043224394321442,
-0.16659051179885864,
0.06466034054756165,
0.25733649730682373,
0.5412881970405579,
-0.08537182211875916,
0.1234067752957344,
0.028821947053074837,
-0.32028502225875854,
0.06438504904508591,
0.15180788934230804,
-0.0832703560590744,
0.2556019425392151,
0.00542948953807354,
0.032391585409641266,
-0.06259768456220627,
0.15678980946540833,
0.12112569808959961,
0.4151172637939453,
-0.30506739020347595,
0.5777739882469177,
-0.20671044290065765,
-0.4498765766620636,
-0.12125477194786072,
-0.2897431552410126,
-0.1535765528678894,
-0.11005106568336487,
0.1803198903799057,
0.1032310426235199,
0.22016900777816772,
-0.019122082740068436,
0.056895650923252106,
-0.05884251371026039,
0.17719052731990814,
0.040383581072092056,
-0.13105198740959167,
-0.0654696375131607,
-0.07262569665908813,
-0.2867724895477295,
0.42565199732780457,
0.0585315078496933,
0.16566723585128784,
0.31715860962867737,
-0.002958308905363083,
0.12002920359373093,
0.4378105401992798,
-0.13261865079402924,
0.1612824648618698,
-0.12164392322301865,
0.4560898244380951,
0.04958682879805565,
-0.04762829467654228,
-0.08831748366355896,
-0.10057296603918076,
-0.08423986285924911,
-0.13927358388900757,
0.5025854706764221,
-0.18069668114185333,
0.04048775136470795,
-0.21765202283859253,
0.1657736450433731,
-0.2330591380596161,
0.3349842429161072,
0.20583082735538483,
0.25304239988327026,
-0.06235937774181366,
0.15907755494117737,
-0.1212737038731575,
-0.037008900195360184,
-0.14523248374462128,
-0.20497536659240723,
0.530073881149292,
-0.3675634562969208,
0.29669564962387085,
-0.06516704708337784,
-0.13316230475902557,
-0.0255570188164711,
0.010877085849642754,
0.2488674372434616,
0.02675747126340866,
-0.3068530857563019,
0.21670423448085785,
-0.3966800570487976,
0.28343504667282104,
-0.028116375207901,
-0.12475665658712387,
0.38908183574676514,
0.4189145863056183,
-0.17503386735916138,
-0.29928064346313477,
0.31566351652145386,
0.2480790913105011,
-0.3316565155982971,
0.11974046379327774,
0.07895687967538834,
-0.3174770772457123,
-0.4433232843875885,
-0.13983367383480072,
-0.4769301116466522,
0.40305811166763306,
-0.43929317593574524,
-0.029283398762345314,
0.14878883957862854,
-0.362392395734787,
0.09468293190002441,
-0.268742173910141,
0.19231578707695007,
-0.010295085608959198,
0.12519270181655884,
0.16241224110126495,
-0.4063578248023987
] |
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
| 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. | [
0.08610011637210846,
-0.04592133313417435,
-0.05543023347854614,
0.03548063337802887,
0.3768509030342102,
0.09786156564950943,
0.27538272738456726,
0.1547374129295349,
0.1943834275007248,
0.1570320874452591,
0.01732492446899414,
0.6573179364204407,
0.1881696730852127,
-0.07049423456192017,
0.050393134355545044,
0.05624640733003616,
0.19994962215423584,
0.23844093084335327,
0.15617364645004272,
-0.11353760957717896,
-0.2811276912689209,
-0.012498000636696815,
-0.08904320001602173,
0.1087079793214798,
-0.04649064317345619,
-0.2962925434112549,
0.2506802976131439,
-0.251479834318161,
-0.15248283743858337,
-0.2937346398830414,
-0.11645667999982834,
-0.36667636036872864,
-0.03869207948446274,
-0.1689225733280182,
-0.00011879811063408852,
-0.12483187019824982,
0.3189281225204468,
0.20986615121364594,
-0.13372871279716492,
0.25365543365478516,
0.18412047624588013,
-0.6648393869400024,
0.38761165738105774,
-0.1973818838596344,
0.08101122081279755,
-0.27051985263824463,
-0.00991823710501194,
-0.6327696442604065,
-0.09258191287517548,
0.22711355984210968,
0.18553033471107483,
0.4296877086162567,
0.3702467978000641,
0.24874892830848694,
-0.003910809755325317,
-0.027172625064849854,
-0.26532912254333496,
0.0028685135766863823,
-0.10670934617519379,
-0.027961747720837593,
0.27146634459495544,
-0.09855443239212036,
-0.21794132888317108,
-0.12345631420612335,
0.42245417833328247,
0.4033619165420532,
0.307941734790802,
-0.3829915523529053,
-0.23106291890144348,
-0.057069823145866394,
0.10696209967136383,
-0.16629555821418762,
-0.19636788964271545,
-0.22931352257728577,
0.011292514391243458,
-0.19738197326660156,
-0.15428897738456726,
0.383259654045105,
-0.1054115742444992,
0.2478029876947403,
-0.12837707996368408,
0.11598647385835648,
-0.16059234738349915,
0.33960044384002686,
-0.08611297607421875,
-0.05052445828914642,
0.12490684539079666,
0.2599615156650543,
0.014282386749982834,
-0.05046170949935913,
0.2642223536968231,
-0.17149297893047333,
0.21263745427131653,
0.036976248025894165,
-0.030902158468961716,
-0.1453780233860016,
-0.010659374296665192,
-0.09478878229856491,
-0.10024336725473404,
-0.32188546657562256,
0.18917885422706604,
0.14077334105968475,
-0.2934306263923645,
0.19113251566886902,
0.23114480078220367,
0.06980210542678833,
0.08531177043914795,
0.007427842356264591,
0.027739955112338066,
-0.2717514634132385,
0.2994856834411621,
0.18080276250839233,
0.5810064673423767,
0.3569830358028412,
0.35905781388282776,
-0.19364821910858154,
0.38423866033554077,
-0.09513118118047714,
-0.32267194986343384,
0.3411064147949219,
-0.3624829649925232,
0.377890408039093,
-0.2222093790769577,
-0.2951398491859436,
-0.05445054545998573,
0.2839883863925934,
0.15648362040519714,
0.2728937864303589,
0.10814512521028519,
-0.1177479699254036,
-0.03382779657840729,
-0.24034257233142853,
0.0010216906666755676,
-0.04688107967376709,
-0.34674152731895447,
0.1402319371700287,
-0.034889861941337585,
0.3036888539791107,
-0.07853476703166962,
-0.02675490453839302,
-0.19133296608924866,
0.02254791185259819,
0.07564012706279755,
0.24384473264217377,
0.021750427782535553,
0.2011176347732544,
0.10070937126874924,
-0.6340092420578003,
-0.041494011878967285,
0.2987349331378937,
-0.17854291200637817,
0.27738213539123535,
-0.2488441914319992,
0.10453144460916519,
-0.024486340582370758,
-0.040430307388305664,
0.14051982760429382,
-0.059300389140844345,
0.45431768894195557,
-0.0518711693584919,
0.22340495884418488,
-0.5516583323478699,
-0.059962544590234756,
-0.3591024875640869,
-0.3097350299358368,
-0.25102007389068604,
-0.17580200731754303,
0.22208857536315918,
0.027707282453775406,
-0.025746341794729233,
0.13791802525520325,
0.5646443963050842,
0.1940235197544098,
0.09780474007129669,
-0.3220750689506531,
0.16026191413402557,
0.03468939661979675,
0.19337593019008636,
-0.2155284434556961,
-0.10489260405302048,
-0.39862239360809326,
0.2752086818218231,
-0.4255862832069397,
0.4655400812625885,
-0.24059511721134186,
-0.1447962075471878,
0.03549277037382126,
0.47766268253326416,
-0.12623225152492523,
-0.04367319494485855,
-0.3731120526790619,
-0.11705096811056137,
0.41801154613494873,
-0.11596615612506866,
-0.2188347727060318,
0.36737045645713806,
0.08671494573354721,
-0.12485308200120926,
0.11947967112064362,
-0.16732382774353027,
-0.04985814541578293,
0.13604548573493958,
0.4092836380004883,
0.058790262788534164,
-0.11377987265586853,
-0.2068483531475067,
-0.4135490953922272,
-0.0003007426857948303,
-0.39846116304397583,
-0.009657010436058044,
-0.03336872160434723,
-0.4238438606262207,
-0.028609810397028923,
0.2395615428686142,
0.131077378988266,
0.3230702877044678,
0.07948650419712067,
0.18946969509124756,
-0.2704976797103882,
0.0976739376783371,
0.06889970600605011,
-0.10911604017019272,
-0.02368752844631672,
0.1164630651473999,
-0.5390716195106506,
0.08663257211446762,
-0.024877237156033516,
-0.2440207302570343,
-0.6128324866294861,
0.2544375956058502,
0.14024728536605835,
-0.004231656901538372,
0.03429819643497467,
0.4858812093734741,
0.23881109058856964,
-0.16058312356472015,
-0.3258603513240814,
0.29454347491264343,
0.09981976449489594,
-0.18491588532924652,
-0.14037911593914032,
0.6606169939041138,
-0.07218734174966812,
-0.1839074194431305,
0.16992810368537903,
0.3804389238357544,
-0.02855360135436058,
0.06656594574451447,
-0.4083401560783386,
0.1747771054506302,
0.15151263773441315,
0.17253172397613525,
-0.1897403448820114,
-0.05653129890561104,
-0.29405710101127625,
0.021243847906589508,
-0.05121370032429695,
0.03091922402381897,
-0.37023216485977173,
0.4353417456150055,
0.1742497682571411,
-0.033584948629140854,
0.3264521658420563,
0.13002142310142517,
0.04310263693332672,
-0.043528079986572266,
-0.13943855464458466,
-0.24835307896137238,
0.45498520135879517,
0.12368585914373398,
0.18170472979545593,
0.2295720875263214,
-0.09072330594062805,
-0.19329588115215302,
0.20325055718421936,
0.3955501317977905,
0.26857471466064453,
-0.06028636544942856,
0.3188589811325073,
0.15549159049987793,
-0.09514589607715607,
0.4278208911418915,
-0.4545401930809021,
0.10945959389209747,
-0.33938512206077576,
0.2717299461364746,
-0.44539153575897217,
0.23190152645111084,
-0.3097194731235504,
-0.38717037439346313,
-0.05814572051167488,
-0.24386022984981537,
-0.016526974737644196,
0.19731226563453674,
-0.17318567633628845,
-0.09932918101549149,
0.30654793977737427,
0.32362332940101624,
0.22964106500148773,
0.31212669610977173,
-0.07968806475400925,
0.09357424080371857,
-0.4223666489124298,
-0.017626486718654633,
0.2147294282913208,
-0.20668038725852966,
0.1965501457452774,
0.09679502993822098,
-0.011956403031945229,
-0.3039071261882782,
-0.4339849650859833,
-0.2367079257965088,
-0.10370692610740662,
0.3356645405292511,
0.14983093738555908,
0.21294699609279633,
-0.17429965734481812,
-0.04894021153450012,
0.027705200016498566,
-0.08716467022895813,
-0.034687597304582596,
0.20402850210666656,
-0.001853850786574185,
-0.27363166213035583,
-0.29519161581993103,
-0.05585972219705582,
-0.39002296328544617,
-0.11319242417812347,
0.3629336953163147,
0.18245577812194824,
-0.008664503693580627,
0.3222629725933075,
0.13001084327697754,
-0.039248909801244736,
-0.00022506341338157654,
-0.1647862046957016,
-0.17346003651618958,
0.3758741617202759,
0.25393110513687134,
-0.07586220651865005,
-0.5110283493995667,
-0.07209429144859314,
-0.1357496678829193,
-0.19182062149047852,
0.0345885306596756,
-0.15322469174861908,
-0.16597478091716766,
0.011649264954030514,
0.2011130452156067,
0.039072196930646896,
0.027447327971458435,
0.10988083481788635,
0.010585306212306023,
0.05133157968521118,
0.10406825691461563,
-0.09195151925086975,
0.14592106640338898,
0.11516426503658295,
0.4243181645870209,
0.08751692622900009,
0.12583321332931519,
0.1582220494747162,
0.2048814594745636,
0.28943586349487305,
-0.2496805638074875,
0.11731423437595367,
-0.2283766269683838,
0.3702824115753174,
-0.26798221468925476,
-0.17773564159870148,
-0.30810949206352234,
-0.20541265606880188,
-0.4781370759010315,
0.129416823387146,
-0.15466806292533875,
-0.3602128326892853,
0.2581249177455902,
0.3587794601917267,
-0.02713879942893982,
-0.07584553211927414,
0.08312072604894638,
-0.002819295972585678,
0.11381784081459045,
0.24731895327568054,
0.08251368254423141,
-0.04237882420420647,
-0.41431981325149536,
-0.022948386147618294,
-0.21403296291828156,
0.0196165069937706,
-0.09750757366418839,
-0.7038151025772095,
-0.5822164416313171,
0.2594224214553833,
0.369057297706604,
0.05443930998444557,
0.6397964954376221,
0.08910693228244781,
-0.2776463031768799,
0.29341694712638855,
0.30688145756721497,
0.5033816695213318,
-0.02095245011150837,
-0.38446831703186035,
-0.006443461403250694,
0.4846603274345398,
-0.3921438157558441,
-0.3059024214744568,
-0.11828921735286713,
-0.11906889826059341,
0.48323720693588257,
0.2529810070991516,
-0.10912689566612244,
0.27431392669677734,
-0.05802619457244873,
0.23810690641403198,
-0.07262040674686432,
0.12189800292253494,
-0.32021281123161316,
-0.2946487069129944,
0.19399090111255646,
0.05497860163450241,
-0.014920800924301147,
0.15019255876541138,
0.030309807509183884,
-0.3691067099571228,
-0.09039447456598282,
0.07725638896226883,
-0.1153273731470108,
-0.18946348130702972,
0.22668194770812988,
0.06461909413337708,
-0.21032121777534485,
-0.10231766104698181,
0.012365669012069702,
-0.15948545932769775,
0.13861620426177979,
-0.0424145869910717,
0.13693353533744812,
-0.298691987991333,
-0.12505874037742615,
0.2257857769727707,
0.17575815320014954,
0.08745571970939636,
-0.22370564937591553,
-0.21815574169158936,
0.0814916267991066,
0.14061018824577332,
-0.2136414498090744,
0.2529701590538025,
-0.12902970612049103,
0.0446220338344574,
-0.06568565964698792,
0.5679650902748108,
-0.01909429207444191,
-0.1705802083015442,
0.14881646633148193,
-0.029535897076129913,
-0.07017956674098969,
0.3981579542160034,
0.4347172677516937,
0.9330227375030518,
-0.04505118727684021,
-0.03640884533524513,
0.454190194606781,
-0.5226890444755554,
0.5922459363937378,
-0.0819130539894104,
-0.05284445732831955,
-0.5672709345817566,
-0.12228398025035858,
-0.0510910302400589,
-0.27772828936576843,
0.19167181849479675,
0.0848880410194397,
-0.060599759221076965,
-0.027121849358081818,
-0.08363134413957596,
0.36666932702064514,
0.20434679090976715,
-0.08413765579462051,
0.2935125529766083,
-0.1807359904050827,
-0.17582161724567413,
0.09241490066051483,
-0.1860499531030655,
0.03128202632069588,
-0.136447474360466,
-0.22022227942943573,
-0.1497885286808014,
-0.06066014617681503,
0.08840630948543549,
0.06289909780025482,
0.09240734577178955,
0.14985695481300354,
0.46340522170066833,
-0.1477637141942978,
-0.3027273714542389,
0.39753392338752747,
0.2667309641838074,
0.10926921665668488,
-0.1182456910610199,
-0.2950459122657776,
0.278544545173645,
0.1681557446718216,
0.4039269685745239,
-0.09370986372232437,
0.1599610596895218,
0.07634524255990982,
0.24374830722808838,
-0.13549283146858215,
-0.006854138802736998,
-0.012349143624305725,
-0.37688151001930237,
0.09232581406831741,
0.15644681453704834,
-0.3132001459598541,
-0.17629767954349518,
-0.20656830072402954,
0.2539360523223877,
-0.009177904576063156,
0.07874603569507599,
-0.05737753212451935,
-0.056836847215890884,
0.4420100450515747,
0.04666755348443985,
-0.13614647090435028,
0.0532190166413784,
0.335519403219223,
0.2917073965072632,
-0.3512676954269409,
-0.004209581762552261,
-0.03342914581298828,
-0.30997759103775024,
-0.04505831375718117,
0.35107356309890747,
-0.26615527272224426,
0.11601484566926956,
0.2714661955833435,
-0.1566440463066101,
0.04301752150058746,
-0.18989938497543335,
-0.13127054274082184,
0.025012047961354256,
0.043349094688892365,
-0.46943438053131104,
-0.1911512315273285,
-0.3437976837158203,
0.05613929033279419,
0.352643758058548,
0.25783154368400574,
0.1823994219303131,
-0.21850433945655823,
-0.18400640785694122,
-0.0022118501365184784,
-0.2108837068080902,
-0.16449712216854095,
0.04921945929527283,
0.14388048648834229,
0.09740259498357773,
0.02488965168595314,
-0.4112156927585602,
-0.07616475224494934,
0.08654864877462387,
0.04813694953918457,
-0.09238658100366592,
-0.18388542532920837,
0.18517561256885529,
0.11446365714073181,
0.14420416951179504,
-0.13662855327129364,
0.1470969170331955,
-0.2312718629837036,
0.012835167348384857,
-0.12344585359096527,
-0.14707978069782257,
-0.017508327960968018,
-0.06872284412384033,
0.1364603340625763,
0.2206398993730545,
0.33789128065109253,
0.39665842056274414,
-0.03640962392091751,
-0.3927418887615204,
-0.04348379373550415,
0.056000787764787674,
0.13011738657951355,
-0.13695330917835236,
-0.017344653606414795,
-0.1621449738740921,
0.04792891442775726,
0.2422686517238617,
0.03975255787372589,
0.4670185148715973,
-0.6308375597000122,
-0.09177769720554352,
0.08354167640209198,
0.21035917103290558,
0.004363749176263809,
-0.48366719484329224,
-0.1239299327135086,
-0.17389753460884094,
0.1743306666612625,
-0.187429279088974,
-0.12812234461307526,
0.523888885974884,
0.32447949051856995,
-0.2329835146665573,
0.34560108184814453,
0.3804176151752472,
-0.42595601081848145,
0.036571502685546875,
-0.00004566460847854614,
0.35588306188583374,
-0.18142223358154297,
-0.17617112398147583,
0.5873467922210693,
0.030792292207479477,
-0.10938139259815216,
0.035521626472473145,
-0.23432791233062744,
-0.01729782670736313,
0.5308658480644226,
0.1675349771976471,
0.29170235991477966,
0.38309621810913086,
-0.01202346757054329,
-0.009663105010986328,
0.09824468195438385,
0.15925607085227966,
0.34947580099105835,
0.006277322769165039,
0.12651510536670685,
0.717540979385376,
-0.026314496994018555,
-0.0516902320086956,
-0.2927144765853882,
-0.04897146299481392,
0.34603527188301086,
-0.37508425116539,
0.25562435388565063,
0.011830110102891922,
0.1837562620639801,
-0.05694280564785004,
-0.2970188856124878,
-0.12193925678730011,
-0.21316750347614288,
-0.07260555028915405,
0.07357584685087204,
-0.25015610456466675,
-0.03486800938844681,
0.09683355689048767,
0.03315741568803787,
0.2356744110584259,
-0.24409954249858856,
-0.07957868278026581,
-0.12886810302734375,
0.10105981677770615,
-0.2379375696182251,
0.06171353906393051,
0.23943543434143066,
0.4621807634830475,
-0.09343589842319489,
0.18163760006427765,
-0.05487949773669243,
-0.29034173488616943,
0.02201208844780922,
0.18432974815368652,
-0.1568320095539093,
0.22142858803272247,
0.0006870105862617493,
0.05546402931213379,
-0.08812522143125534,
0.187460258603096,
0.13316957652568817,
0.4695394039154053,
-0.327280193567276,
0.5456991195678711,
-0.18566790223121643,
-0.5053430199623108,
-0.15169143676757812,
-0.2814513146877289,
-0.14524565637111664,
-0.09476883709430695,
0.22677288949489594,
0.10166756063699722,
0.20939505100250244,
-0.10462300479412079,
0.06546390056610107,
-0.14551575481891632,
0.2346329540014267,
0.11150896549224854,
-0.07731669396162033,
-0.044672559946775436,
-0.07594989985227585,
-0.3128969371318817,
0.49677130579948425,
-0.0060105957090854645,
0.13080479204654694,
0.31501632928848267,
-0.021002644672989845,
0.08723515272140503,
0.40654295682907104,
-0.12358473241329193,
0.19816474616527557,
-0.18788468837738037,
0.4551076292991638,
-0.012430049479007721,
-0.01642632484436035,
-0.15372924506664276,
-0.0801694393157959,
-0.078375905752182,
-0.09934769570827484,
0.4763070344924927,
-0.2386794090270996,
0.04186943918466568,
-0.19504263997077942,
0.1387733519077301,
-0.1852114498615265,
0.2731212377548218,
0.3092120885848999,
0.21611154079437256,
-0.07094013690948486,
0.13811638951301575,
-0.05036958307027817,
-0.15537910163402557,
-0.12610584497451782,
-0.20175692439079285,
0.5359254479408264,
-0.3038449287414551,
0.3119581937789917,
-0.057322412729263306,
-0.10925860702991486,
-0.04812438040971756,
0.03477878123521805,
0.2055729180574417,
0.05054362118244171,
-0.25772956013679504,
0.21344655752182007,
-0.43879610300064087,
0.2985195517539978,
-0.08677218109369278,
-0.10946574062108994,
0.37217140197753906,
0.3751257658004761,
-0.16911473870277405,
-0.3430001139640808,
0.35398319363594055,
0.23150385916233063,
-0.3398755192756653,
0.1821063905954361,
0.14738833904266357,
-0.22975781559944153,
-0.46040841937065125,
-0.2111237645149231,
-0.491465300321579,
0.39926865696907043,
-0.4480610191822052,
-0.014692537486553192,
0.14560070633888245,
-0.401740700006485,
0.15871663391590118,
-0.21636207401752472,
0.20282082259655,
-0.03995705395936966,
0.13957907259464264,
0.1656079888343811,
-0.43410050868988037
] |
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 😄
| 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? | [
-0.19951283931732178,
-0.22327779233455658,
0.030088167637586594,
0.22801147401332855,
0.002493320032954216,
-0.1767904907464981,
0.3969922959804535,
0.3359566926956177,
0.7367866635322571,
0.016155928373336792,
-0.36364102363586426,
-0.009577297605574131,
-0.22434969246387482,
0.5552823543548584,
0.007382310461252928,
-0.14888973534107208,
-0.023459769785404205,
0.2577055096626282,
-0.640387773513794,
-0.04239938035607338,
-0.22197037935256958,
-0.08365967124700546,
0.0917520523071289,
0.07720582187175751,
-0.33441266417503357,
0.20567569136619568,
-0.3095688819885254,
-0.005758926272392273,
-0.3214322030544281,
-0.36719202995300293,
0.11872918903827667,
0.44226008653640747,
0.31304705142974854,
0.3566703796386719,
-0.00011130135681014508,
0.042574018239974976,
0.17521855235099792,
-0.14807967841625214,
-0.06349842250347137,
-0.12860368192195892,
-0.17873352766036987,
-0.31092095375061035,
0.02117435820400715,
0.018168233335018158,
-0.18120652437210083,
-0.08054676651954651,
0.07542689144611359,
0.06611289829015732,
0.24299515783786774,
0.06241801753640175,
0.210200235247612,
0.020353347063064575,
0.20972178876399994,
-0.01914307475090027,
0.4026886224746704,
0.6604143381118774,
-0.24337714910507202,
0.29471686482429504,
0.37275102734565735,
-0.2618582844734192,
-0.3195565342903137,
0.2965257465839386,
0.026270901784300804,
-0.10655699670314789,
0.4940086603164673,
0.005728875752538443,
0.17925572395324707,
-0.21881908178329468,
-0.171492338180542,
0.19263270497322083,
0.26794520020484924,
-0.22727739810943604,
-0.30506834387779236,
-0.19388091564178467,
0.1471472978591919,
-0.21200759708881378,
-0.10964927822351456,
0.10094741731882095,
-0.11933468282222748,
0.18020279705524445,
-0.1981913298368454,
-0.32766562700271606,
-0.23000311851501465,
0.046045318245887756,
-0.012702371925115585,
0.09586501121520996,
-0.1548975557088852,
0.05827682465314865,
0.0012640058994293213,
0.1441272497177124,
-0.1425987184047699,
-0.13257524371147156,
-0.046354543417692184,
0.09181908518075943,
-0.11872977018356323,
-0.24256084859371185,
-0.09226664155721664,
0.2300628125667572,
0.5034394264221191,
0.008400237187743187,
0.1423034965991974,
0.13230827450752258,
-0.4621131420135498,
0.11882692575454712,
0.28865697979927063,
0.19306400418281555,
0.1483689248561859,
-0.17391471564769745,
0.0075159333646297455,
0.37445884943008423,
-0.17030058801174164,
-0.15388309955596924,
-0.2568528652191162,
0.10403238236904144,
0.2248758226633072,
-0.20671269297599792,
0.07911950349807739,
-0.30512678623199463,
0.06352420896291733,
-0.1256123185157776,
0.3208017945289612,
-0.09694435447454453,
0.12180470675230026,
0.5021313428878784,
-0.03174842894077301,
0.25144413113594055,
0.051481083035469055,
0.03478511422872543,
0.007065998390316963,
-0.3060823380947113,
-0.06515409052371979,
0.2472752183675766,
-0.1752719283103943,
0.3918641209602356,
0.26527658104896545,
-0.2741881012916565,
-0.016080275177955627,
-0.02117576077580452,
0.3062670826911926,
0.002444356679916382,
-0.11718237400054932,
-0.18008220195770264,
0.15768620371818542,
0.0229007788002491,
-0.3592505156993866,
-0.29085567593574524,
0.2532578408718109,
0.17196771502494812,
-0.37795090675354004,
0.18919789791107178,
-0.3678004741668701,
-0.1903616189956665,
-0.25987300276756287,
0.10454840958118439,
-0.34382516145706177,
-0.05552469938993454,
-0.12728726863861084,
0.3707325756549835,
-0.643126904964447,
-0.23137570917606354,
0.057818640023469925,
0.043187424540519714,
-0.17137062549591064,
-0.17955796420574188,
0.17215050756931305,
0.5673238039016724,
-0.09825320541858673,
-0.33335453271865845,
-0.19061978161334991,
-0.13979129493236542,
0.00941949337720871,
-0.1418607383966446,
-0.1935250163078308,
0.07917572557926178,
-0.1786455363035202,
-0.1308850347995758,
-0.1680670976638794,
-0.4874003827571869,
-0.1763213872909546,
0.19384658336639404,
0.012723132967948914,
0.26833805441856384,
0.18890267610549927,
0.3751024305820465,
0.21893741190433502,
-0.30825579166412354,
-0.2074965238571167,
0.5352800488471985,
-0.16626165807247162,
0.001491023227572441,
-0.011929109692573547,
-0.48712918162345886,
-0.07753848284482956,
0.5921030640602112,
0.16463710367679596,
-0.018329456448554993,
0.10021048039197922,
-0.14350488781929016,
-0.018419884145259857,
-0.12301774322986603,
-0.01106098759919405,
-0.1559298038482666,
0.2554855942726135,
0.012018878012895584,
0.08758734911680222,
-0.06162160262465477,
-0.3997839391231537,
0.22370967268943787,
0.18749140202999115,
0.17097842693328857,
-0.2007928341627121,
0.005469042807817459,
-0.12302327901124954,
0.17464745044708252,
-0.26931634545326233,
-0.05884960666298866,
0.03955206274986267,
-0.3115077018737793,
-0.04230169951915741,
-0.1315602958202362,
-0.16973087191581726,
0.5919158458709717,
0.007535947486758232,
0.2635995149612427,
0.2526632845401764,
0.4930506944656372,
0.28281259536743164,
0.2236797958612442,
0.16943345963954926,
0.27534571290016174,
-0.039338819682598114,
-0.08678131550550461,
0.00016399379819631577,
0.22259601950645447,
0.015276782214641571,
0.22397054731845856,
0.43600189685821533,
0.16190651059150696,
0.3049323856830597,
-0.16814176738262177,
0.4235711991786957,
-0.25057774782180786,
0.21959856152534485,
-0.15235039591789246,
-0.11669758707284927,
0.5446098446846008,
-0.2686518430709839,
0.19185106456279755,
-0.0061346739530563354,
-0.2380974292755127,
-0.016578948125243187,
-0.2584684491157532,
-0.12664467096328735,
-0.2413073033094406,
0.1614106148481369,
0.07530246675014496,
0.3202035427093506,
0.246789813041687,
-0.16352561116218567,
-0.07534535974264145,
0.4787744879722595,
-0.09807939827442169,
0.0654824823141098,
0.5757865309715271,
-0.3048139214515686,
0.087629534304142,
0.08036249876022339,
-0.18755657970905304,
0.3976687788963318,
0.18377703428268433,
-0.31569400429725647,
0.03581928834319115,
0.020406510680913925,
0.18121375143527985,
0.15440179407596588,
-0.07681959867477417,
0.47358861565589905,
0.2522120773792267,
0.07529015094041824,
0.030657166615128517,
-0.2700444459915161,
-0.2646298408508301,
-0.11209471523761749,
-0.10557090491056442,
-0.0019121766090393066,
-0.2811130881309509,
-0.012203508988022804,
-0.06267223507165909,
-0.016900446265935898,
-0.26811739802360535,
-0.3266640305519104,
0.05385404825210571,
0.2067556232213974,
0.030284110456705093,
0.14231665432453156,
-0.09405067563056946,
-0.2629440426826477,
0.6354262232780457,
-0.2725668251514435,
-0.011475970968604088,
-0.0860505923628807,
-0.08421081304550171,
0.16135886311531067,
0.026201684027910233,
0.25723522901535034,
0.12566310167312622,
0.5120484828948975,
-0.17022083699703217,
0.35562074184417725,
-0.16960562765598297,
-0.3629355728626251,
0.26138991117477417,
-0.1432921141386032,
0.28285419940948486,
0.06066920608282089,
0.22527512907981873,
0.19901983439922333,
-0.19293375313282013,
0.31315162777900696,
-0.35339266061782837,
-0.19996263086795807,
0.0027181319892406464,
-0.23024781048297882,
0.221070796251297,
-0.20726385712623596,
0.08994346112012863,
-0.26699480414390564,
-0.2782514691352844,
0.1236552745103836,
0.313383013010025,
0.19811159372329712,
-0.148546040058136,
0.1587626338005066,
-0.10688143223524094,
0.16494181752204895,
-0.03140457719564438,
-0.05680511146783829,
-0.5828292369842529,
0.22899948060512543,
-0.35380351543426514,
-0.10603117942810059,
-0.14448146522045135,
-0.06340491026639938,
0.0221816748380661,
-0.05088623985648155,
-0.5603370666503906,
-0.5640179514884949,
-0.05637732893228531,
-0.13620227575302124,
0.1217314749956131,
-0.13030889630317688,
0.1069134920835495,
0.2511752247810364,
0.005174694582819939,
-0.15737295150756836,
-0.11418013274669647,
-0.013609617948532104,
-0.12655892968177795,
0.04934065043926239,
0.21995770931243896,
0.2959558963775635,
0.12190838158130646,
0.38062453269958496,
-0.11409728229045868,
-0.14563681185245514,
0.5437875986099243,
0.2721068263053894,
0.3695297837257385,
-0.4373386800289154,
-0.2470303177833557,
0.03578142821788788,
-0.2790065109729767,
0.0200035497546196,
0.31891942024230957,
0.21761798858642578,
0.05319475382566452,
-0.29648420214653015,
-0.12340286374092102,
-0.20306071639060974,
-0.3058270812034607,
0.24949513375759125,
0.3223569691181183,
0.007591351866722107,
-0.45868414640426636,
-0.36112332344055176,
-0.534501314163208,
-0.21762430667877197,
0.3878239691257477,
0.47192299365997314,
0.40011265873908997,
-0.11985878646373749,
-0.2669246792793274,
-0.13185417652130127,
-0.47297948598861694,
0.20547157526016235,
0.014963960275053978,
-0.19989041984081268,
-0.11047539114952087,
-0.07899253070354462,
0.05093967542052269,
-0.05812656134366989,
0.2791866660118103,
0.09720207005739212,
0.07239359617233276,
-0.0350341759622097,
-0.3724963366985321,
0.3487866222858429,
-0.09111182391643524,
-0.09224516153335571,
0.003867482300847769,
-0.07499074935913086,
0.6037237048149109,
-0.5204907655715942,
-0.49752599000930786,
0.3106694519519806,
-0.039159972220659256,
-0.22037921845912933,
-0.5050875544548035,
0.026671435683965683,
0.050038814544677734,
-0.46518459916114807,
-0.2654351592063904,
0.015588117763400078,
0.07521361112594604,
-0.29822707176208496,
-0.08841556310653687,
0.008255472406744957,
0.16020861268043518,
0.43304508924484253,
-0.17150862514972687,
-0.20612207055091858,
0.2079148143529892,
0.37733596563339233,
0.3102853000164032,
0.3549008369445801,
0.2667994499206543,
0.5427948832511902,
0.16350263357162476,
-0.45850032567977905,
-0.3007267117500305,
0.07326614856719971,
0.16461801528930664,
0.3993275463581085,
0.3395366370677948,
0.12102807313203812,
-0.4010116159915924,
0.17982998490333557,
-0.6445974111557007,
0.1907896101474762,
0.05011383444070816,
-0.13777334988117218,
-0.6878975033760071,
-0.019263509660959244,
0.572370171546936,
0.15261276066303253,
-0.13050393760204315,
0.38496991991996765,
0.3451926112174988,
-0.22970065474510193,
0.25298285484313965,
0.3483906388282776,
1.073063850402832,
-0.5181863307952881,
0.22413429617881775,
0.0032932646572589874,
-0.1755983978509903,
0.07598883658647537,
0.07663828879594803,
-0.1866713911294937,
-0.3685571253299713,
-0.4837381839752197,
-0.10907243192195892,
0.004185900092124939,
0.22500759363174438,
0.04469680041074753,
0.004278998821973801,
0.11665451526641846,
-0.08738211542367935,
0.15639567375183105,
-0.025456523522734642,
0.3264842629432678,
0.12929531931877136,
-0.6293960809707642,
0.2133481353521347,
0.11326271295547485,
-0.12208063900470734,
0.24855022132396698,
-0.11239691823720932,
-0.3328414559364319,
0.08220857381820679,
0.15872280299663544,
-0.18455550074577332,
-0.05680163577198982,
0.2694562077522278,
-0.12497816979885101,
-0.11261425912380219,
0.017289668321609497,
0.1534881442785263,
0.08703844249248505,
0.15450364351272583,
-0.03965262696146965,
-0.041048564016819,
0.23068848252296448,
-0.22517797350883484,
0.12664169073104858,
-0.15296471118927002,
0.004843615926802158,
0.32054394483566284,
-0.08822840452194214,
-0.1927969604730606,
0.0020031556487083435,
-0.12275858223438263,
-0.42366766929626465,
-0.0743580311536789,
-0.3313978314399719,
0.15974639356136322,
-0.13725408911705017,
-0.27441826462745667,
-0.06824541091918945,
-0.1070343554019928,
-0.05235449969768524,
0.11739371716976166,
0.1654493808746338,
0.08593812584877014,
0.11556020379066467,
0.3089394271373749,
-0.3428264856338501,
-0.11801832914352417,
0.11091151833534241,
-0.055078744888305664,
-0.17251046001911163,
0.3076147735118866,
0.05670483782887459,
-0.06327314674854279,
-0.13826867938041687,
0.022653400897979736,
0.5477660894393921,
-0.2512810230255127,
-0.09684217721223831,
0.15357476472854614,
0.032357022166252136,
0.17337718605995178,
0.1487119197845459,
0.3196716904640198,
-0.36676791310310364,
0.1299617439508438,
-0.35298317670822144,
-0.21745029091835022,
0.5169601440429688,
-0.42020824551582336,
0.08870512992143631,
-0.13699626922607422,
0.07662823796272278,
-0.112973153591156,
0.4256899058818817,
-0.3302375376224518,
0.056814633309841156,
-0.01689443364739418,
0.01529379840940237,
0.024215389043092728,
0.17663225531578064,
-0.07837764173746109,
0.1251562535762787,
0.1044379323720932,
-0.024418458342552185,
-0.1987648904323578,
-0.08559474349021912,
-0.34586408734321594,
0.2168378382921219,
0.00099891796708107,
0.1781475841999054,
-0.10783757269382477,
-0.021692510694265366,
-0.04370032623410225,
-0.21429845690727234,
0.13338333368301392,
0.05413845181465149,
-0.21230439841747284,
0.05383317545056343,
0.2871783375740051,
-0.00671406090259552,
-0.1573328971862793,
0.23698684573173523,
0.3774273991584778,
0.607731819152832,
0.06878886371850967,
-0.14737066626548767,
-0.3327174484729767,
-0.07574146240949631,
0.1291384994983673,
0.25700294971466064,
0.3394421637058258,
0.04343537986278534,
0.5221886038780212,
0.30204617977142334,
0.3115745484828949,
0.3711034953594208,
0.29474443197250366,
-0.2111969292163849,
-0.23565582931041718,
0.30728840827941895,
0.015269473195075989,
0.18231309950351715,
-0.13043904304504395,
-0.20505906641483307,
0.06765498965978622,
-0.30684763193130493,
0.05838185176253319,
0.1856454610824585,
0.342695415019989,
0.48239630460739136,
0.16660121083259583,
-0.17229071259498596,
0.028896428644657135,
0.23449565470218658,
-0.1866370141506195,
0.26050859689712524,
-0.07989347726106644,
0.0034943372011184692,
0.49085912108421326,
0.24915853142738342,
0.18783468008041382,
0.288240522146225,
-0.22321152687072754,
0.20968717336654663,
0.009314440190792084,
0.3943411707878113,
0.3262818157672882,
-0.35581174492836,
-0.09591104090213776,
0.4394785761833191,
0.23311084508895874,
0.04382955655455589,
-0.07299457490444183,
0.2062370777130127,
0.07024360448122025,
-0.2214757651090622,
-0.36476919054985046,
0.20560762286186218,
0.22386115789413452,
0.17006723582744598,
-0.21144171059131622,
-0.20786452293395996,
-0.5977259874343872,
0.14805537462234497,
-0.05655274912714958,
-0.454728364944458,
0.2504914402961731,
0.1560359001159668,
0.08309204131364822,
-0.09409363567829132,
-0.21849870681762695,
0.16596782207489014,
0.44437840580940247,
-0.2677195072174072,
-0.05263621360063553,
0.07374027371406555,
0.09694920480251312,
0.5732111930847168,
0.038006771355867386,
0.011461768299341202,
0.21037277579307556,
0.026542169973254204,
0.10367248952388763,
-0.29723596572875977,
-0.056333016604185104,
0.07064161449670792,
0.1543208211660385,
0.15785914659500122,
-0.04073483869433403,
0.1528751701116562,
0.12882991135120392,
-0.025340549647808075,
-0.06050712987780571,
-0.11859071254730225,
-0.16901308298110962,
-0.32289978861808777,
0.43407511711120605,
0.06719399988651276,
-0.045420482754707336,
-0.14467087388038635,
-0.03974428027868271,
-0.22778993844985962,
-0.2669826149940491,
0.22614020109176636,
-0.13621896505355835,
-0.08218555897474289,
0.010359122417867184,
0.05435677617788315,
-0.055290039628744125,
0.07994168251752853,
0.19998478889465332,
-0.08953780680894852,
-0.23268629610538483,
-0.3906533718109131,
-0.48734018206596375,
-0.04311927407979965,
0.2070007175207138,
0.03088236041367054,
0.27685919404029846,
-0.32988137006759644,
0.14122721552848816,
0.24025456607341766,
-0.12012000381946564,
-0.2999718487262726,
0.4759523868560791,
0.21385538578033447,
-0.37706297636032104,
0.3555753529071808,
-0.019269652664661407,
0.35640597343444824,
-0.06748798489570618,
-0.26656079292297363,
0.176908478140831,
-0.11351767927408218,
0.006925452500581741,
-0.0823245495557785,
0.2963317036628723,
0.01665949448943138,
-0.08577495813369751,
0.5637125968933105,
-0.1259394884109497,
0.33293646574020386,
-0.21840548515319824,
0.025031080469489098,
0.10480178892612457,
-0.20208746194839478,
-0.07897381484508514,
0.086649090051651,
-0.07661321759223938,
0.2589797079563141,
-0.03257926553487778,
-0.076317697763443,
0.04887649789452553,
0.07599817216396332,
-0.22475388646125793,
-0.10965190082788467,
-0.368709534406662,
-0.10072320699691772,
-0.15211881697177887,
-0.22441348433494568,
0.0914146825671196,
0.4789654612541199,
0.21561019122600555,
-0.21193957328796387,
-0.18746818602085114,
0.06225539743900299,
0.3020218312740326,
-0.215366393327713,
-0.197214275598526,
0.06984025239944458,
0.051878467202186584,
0.1120874434709549,
-0.0752447247505188,
-0.3559063673019409,
0.17825955152511597,
0.029312394559383392,
0.11552067846059799,
0.018107984215021133,
0.3128623962402344,
0.19405241310596466,
-0.000093117356300354,
-0.12945497035980225,
0.09006613492965698,
-0.1635502278804779,
0.005856296047568321,
-0.1717999130487442,
-0.026523858308792114
] |
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 😄
| 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 | [
-0.08097722381353378,
-0.0058672428131103516,
0.01908848062157631,
0.14947840571403503,
-0.14927737414836884,
-0.057615093886852264,
0.4828805923461914,
0.22512643039226532,
0.6821538805961609,
0.06522554159164429,
-0.3322116434574127,
-0.11917440593242645,
-0.2263093888759613,
0.4968556761741638,
0.0718371793627739,
-0.08718228340148926,
-0.18003711104393005,
0.1826847642660141,
-0.538004994392395,
-0.0693264976143837,
-0.17614305019378662,
-0.22998486459255219,
0.07498839497566223,
0.15360619127750397,
-0.15971986949443817,
0.13603678345680237,
-0.25268444418907166,
0.07294685393571854,
-0.21868018805980682,
-0.41225677728652954,
0.14555217325687408,
0.5783151388168335,
0.31156599521636963,
0.5155310034751892,
-0.00011522864224389195,
-0.03102526068687439,
0.15564870834350586,
-0.1296558678150177,
0.001331397332251072,
-0.20890165865421295,
-0.18050947785377502,
-0.22358374297618866,
-0.03571967035531998,
-0.021171078085899353,
-0.2437344491481781,
-0.0031881649047136307,
0.13864360749721527,
-0.0944167822599411,
0.24023829400539398,
0.09544743597507477,
0.16695985198020935,
0.017851490527391434,
0.1481388956308365,
0.0152285136282444,
0.41405120491981506,
0.7638003826141357,
-0.23161248862743378,
0.3981366455554962,
0.3981707990169525,
-0.2400277853012085,
-0.22681838274002075,
0.23574240505695343,
0.05110717564821243,
-0.1637277603149414,
0.5210187435150146,
-0.018675033003091812,
0.05072907358407974,
-0.28430885076522827,
-0.1263103187084198,
0.10669631510972977,
0.36886292695999146,
-0.2432337999343872,
-0.3045854866504669,
-0.19028174877166748,
0.13028974831104279,
-0.20377573370933533,
-0.211503803730011,
0.022144008427858353,
-0.10665346682071686,
0.15329179167747498,
-0.20122645795345306,
-0.2434166967868805,
-0.3668319880962372,
0.05164305120706558,
0.12092922627925873,
0.03957803547382355,
-0.1787986010313034,
0.0901651456952095,
-0.08219733834266663,
0.23379087448120117,
-0.12667317688465118,
-0.23187929391860962,
0.06644362211227417,
0.1997927576303482,
0.0023103095591068268,
-0.17618107795715332,
-0.03418593853712082,
0.0867217406630516,
0.4904611110687256,
-0.0011301003396511078,
0.19703660905361176,
0.09409428387880325,
-0.5337784886360168,
0.018464256078004837,
0.255646288394928,
0.09607559442520142,
0.1409948170185089,
-0.07858441025018692,
0.008703988045454025,
0.4332424998283386,
-0.1266019493341446,
-0.13388818502426147,
-0.23411715030670166,
0.1220194473862648,
0.24265028536319733,
-0.07675836980342865,
0.22467635571956635,
-0.3375389873981476,
0.05377740412950516,
-0.0888662040233612,
0.3082730770111084,
-0.14370958507061005,
0.09562979638576508,
0.3905796706676483,
-0.02349938452243805,
0.14755088090896606,
0.1571023017168045,
0.02088559791445732,
0.012454384937882423,
-0.35189181566238403,
0.001787660177797079,
0.2654924690723419,
-0.17897547781467438,
0.46527618169784546,
0.22101260721683502,
-0.2996247112751007,
-0.11164187639951706,
-0.07726184278726578,
0.3622831106185913,
-0.052405647933483124,
-0.10888631641864777,
-0.1365063637495041,
0.11240052431821823,
-0.10988341271877289,
-0.32834047079086304,
-0.2663864195346832,
0.29978489875793457,
0.12894226610660553,
-0.3043833076953888,
0.15146103501319885,
-0.2345448136329651,
-0.2271115779876709,
-0.20615749061107635,
0.048820968717336655,
-0.3465237021446228,
0.0327882282435894,
-0.1847488284111023,
0.336260050535202,
-0.6134406924247742,
-0.2185000628232956,
0.10359519720077515,
0.04622575640678406,
-0.1593170017004013,
-0.17070432007312775,
0.1799580603837967,
0.6464157700538635,
-0.1971324235200882,
-0.17500194907188416,
-0.31955403089523315,
-0.1315341293811798,
0.11685211956501007,
-0.25712481141090393,
-0.19453325867652893,
0.2853468358516693,
-0.18264064192771912,
-0.15494585037231445,
-0.007974900305271149,
-0.49825674295425415,
-0.15286192297935486,
0.16015993058681488,
-0.11077728867530823,
0.2795129716396332,
0.24356210231781006,
0.3271285891532898,
0.25989672541618347,
-0.35793545842170715,
-0.2582588791847229,
0.5100528001785278,
-0.16766643524169922,
-0.12576094269752502,
-0.05667886137962341,
-0.369892418384552,
-0.07380690425634384,
0.6391167044639587,
0.16091592609882355,
0.09962182492017746,
0.2896274924278259,
-0.283071905374527,
-0.017398744821548462,
-0.17213523387908936,
-0.016121739521622658,
-0.2052949219942093,
0.2543550133705139,
0.13723069429397583,
0.06494203209877014,
-0.027543023228645325,
-0.3605114817619324,
0.1740604043006897,
0.18098223209381104,
0.06876036524772644,
-0.09086388349533081,
-0.0793895497918129,
-0.3412237763404846,
0.24296383559703827,
-0.2855132520198822,
-0.013690154999494553,
-0.008433923125267029,
-0.1618080586194992,
-0.02099546045064926,
-0.20656484365463257,
-0.21412083506584167,
0.5047940611839294,
-0.1353157013654709,
0.14306485652923584,
0.12443765997886658,
0.4195108413696289,
0.2501232922077179,
0.3118421137332916,
0.15139316022396088,
0.3581918776035309,
-0.040090061724185944,
-0.11766892671585083,
-0.04614655673503876,
0.24064454436302185,
-0.07758735865354538,
0.14168041944503784,
0.4151017665863037,
0.21042537689208984,
0.1592564880847931,
-0.2776695191860199,
0.4778134226799011,
-0.21893629431724548,
0.3000713884830475,
-0.12945455312728882,
-0.0626407340168953,
0.5487108826637268,
-0.44944873452186584,
0.24629279971122742,
-0.1333857625722885,
-0.2541290521621704,
-0.1242763102054596,
-0.22209109365940094,
-0.22575141489505768,
-0.11851775646209717,
0.17722022533416748,
-0.017221525311470032,
0.37740597128868103,
0.15145230293273926,
-0.16852732002735138,
-0.05095025151968002,
0.3490408957004547,
-0.17866629362106323,
-0.0718187466263771,
0.5108696222305298,
-0.2290070652961731,
0.12073937803506851,
0.0015996750444173813,
-0.17287781834602356,
0.4424525499343872,
0.13988061249256134,
-0.2603282034397125,
0.05514053255319595,
0.055670443922281265,
0.1955048143863678,
0.030739597976207733,
-0.06621821224689484,
0.45305824279785156,
0.21089467406272888,
0.017707981169223785,
0.16860367357730865,
-0.03620712459087372,
-0.3712051808834076,
-0.1110249012708664,
-0.12764573097229004,
-0.12762880325317383,
-0.17037369310855865,
0.14433923363685608,
-0.09065695106983185,
0.031769510358572006,
-0.2454390674829483,
-0.14700810611248016,
0.04705265909433365,
0.1660216748714447,
-0.07742823660373688,
0.10518237948417664,
-0.0573076531291008,
-0.2962932288646698,
0.6737087368965149,
-0.3695146441459656,
-0.03886256366968155,
-0.12520408630371094,
-0.10298570245504379,
0.17105984687805176,
0.0077872611582279205,
0.32534801959991455,
0.11467838287353516,
0.5847882032394409,
-0.1588895171880722,
0.3762763738632202,
-0.16555939614772797,
-0.3153199851512909,
0.15082412958145142,
-0.03863351047039032,
0.24755673110485077,
0.11503595858812332,
0.2133302390575409,
0.299031138420105,
-0.20806017518043518,
0.18029721081256866,
-0.3161415457725525,
-0.1614721268415451,
-0.026810582727193832,
-0.30658015608787537,
0.16058897972106934,
-0.1808382272720337,
0.08650188148021698,
-0.33445367217063904,
-0.3116224706172943,
0.18881285190582275,
0.31940463185310364,
0.259706050157547,
-0.1052936464548111,
0.1108294129371643,
0.058056946843862534,
0.2603417634963989,
0.061463624238967896,
-0.07925437390804291,
-0.5290060639381409,
0.24956820905208588,
-0.3541465103626251,
-0.138444721698761,
-0.09432350099086761,
-0.04872297868132591,
0.00314442440867424,
-0.06237193942070007,
-0.5136352181434631,
-0.5076445937156677,
0.01865878328680992,
-0.11058063805103302,
0.08949904143810272,
-0.07993258535861969,
0.13282574713230133,
0.16441720724105835,
0.09299882501363754,
-0.15388435125350952,
-0.17661310732364655,
-0.06075874716043472,
-0.1609461009502411,
0.013878852128982544,
0.2999023497104645,
0.43465983867645264,
0.09452006220817566,
0.5529271960258484,
-0.18298771977424622,
-0.15885001420974731,
0.4830234944820404,
0.310482919216156,
0.41062670946121216,
-0.34139418601989746,
-0.267558753490448,
-0.0019234890351071954,
-0.20047244429588318,
0.020586248487234116,
0.29114237427711487,
0.034325502812862396,
0.0648823156952858,
-0.18077397346496582,
-0.23051105439662933,
-0.260499507188797,
-0.2700382173061371,
0.23013699054718018,
0.2763627767562866,
0.05941552668809891,
-0.44470080733299255,
-0.4090723693370819,
-0.6814848780632019,
-0.25277820229530334,
0.3768451511859894,
0.5339183807373047,
0.5233319997787476,
-0.05684672296047211,
-0.2154449075460434,
-0.11448654532432556,
-0.28477758169174194,
0.32365715503692627,
-0.034313514828681946,
-0.2122587412595749,
-0.12195059657096863,
-0.0819668173789978,
0.1947944462299347,
-0.06781689077615738,
0.2499825358390808,
0.05102614313364029,
0.10212107002735138,
0.03185192123055458,
-0.302234947681427,
0.44163385033607483,
-0.1371280550956726,
-0.07555093616247177,
0.03956925496459007,
-0.12396247684955597,
0.47650402784347534,
-0.48227056860923767,
-0.41213569045066833,
0.36295071244239807,
-0.14844585955142975,
-0.1672375649213791,
-0.45548388361930847,
0.1321725845336914,
-0.04570482671260834,
-0.47524207830429077,
-0.18819659948349,
0.0755845233798027,
0.11264970898628235,
-0.3033435642719269,
0.051735322922468185,
0.015472682192921638,
0.2707478106021881,
0.5052648186683655,
-0.20753465592861176,
-0.2751288115978241,
0.3786156475543976,
0.28966838121414185,
0.2559454143047333,
0.21587879955768585,
0.31157201528549194,
0.4568459689617157,
0.2042052447795868,
-0.3418348729610443,
-0.1583520770072937,
0.03758851811289787,
0.2860738933086395,
0.4912000298500061,
0.3224518299102783,
0.09310851246118546,
-0.328387588262558,
0.2118433564901352,
-0.5722025632858276,
0.24200113117694855,
-0.07628484070301056,
-0.18133072555065155,
-0.6636823415756226,
-0.19388101994991302,
0.4610840380191803,
0.08148413896560669,
-0.17802263796329498,
0.31722986698150635,
0.3500211238861084,
-0.2597726285457611,
0.24309632182121277,
0.2889438569545746,
1.1813596487045288,
-0.4999310374259949,
0.31289446353912354,
-0.12367580085992813,
-0.22067028284072876,
0.09118153899908066,
-0.020867805927991867,
-0.3202725648880005,
-0.36645084619522095,
-0.4341965317726135,
-0.139295294880867,
-0.05252288281917572,
0.2132629156112671,
-0.04908221960067749,
0.043532002717256546,
0.0871768444776535,
-0.08646553009748459,
0.11616842448711395,
-0.02490714006125927,
0.3738577961921692,
0.23674778640270233,
-0.6526700258255005,
0.26333165168762207,
0.07117395848035812,
-0.11667391657829285,
0.24236147105693817,
-0.1112561896443367,
-0.36935216188430786,
-0.038323868066072464,
0.21299035847187042,
-0.21019110083580017,
-0.07998581975698471,
0.14954133331775665,
-0.2741481065750122,
-0.10287034511566162,
0.02388089895248413,
0.48743322491645813,
0.16778790950775146,
0.17324477434158325,
0.05179120600223541,
-0.020497871562838554,
0.13130351901054382,
-0.18991008400917053,
0.21302716434001923,
-0.0798223689198494,
0.03514076769351959,
0.3691013753414154,
-0.11694566905498505,
-0.1952652633190155,
0.09017421305179596,
-0.141917884349823,
-0.47038012742996216,
-0.1550886631011963,
-0.3654080629348755,
0.2501220703125,
-0.24676844477653503,
-0.24748355150222778,
-0.07351025938987732,
-0.08387444913387299,
0.0561741404235363,
0.07472902536392212,
0.1523492932319641,
0.014927709475159645,
0.027117326855659485,
0.2364581674337387,
-0.3146858215332031,
-0.06948146224021912,
-0.1194320097565651,
0.024459272623062134,
-0.16247142851352692,
0.35197579860687256,
0.020207811146974564,
0.020944636315107346,
-0.10082195699214935,
-0.04739261418581009,
0.6487699747085571,
-0.28026506304740906,
-0.23035290837287903,
0.2219344973564148,
0.03599928319454193,
0.15453380346298218,
0.120761439204216,
0.36778104305267334,
-0.32003509998321533,
0.0815357118844986,
-0.3773292601108551,
-0.23196722567081451,
0.40610557794570923,
-0.3223686218261719,
0.12945319712162018,
-0.2563830316066742,
0.1227513998746872,
-0.06928440928459167,
0.4406242370605469,
-0.2997511625289917,
-0.024502495303750038,
-0.08040186017751694,
-0.002387676388025284,
0.28053033351898193,
0.2581370770931244,
-0.10271245986223221,
0.167795330286026,
0.03888598829507828,
0.0630645751953125,
-0.23454472422599792,
-0.058748163282871246,
-0.29854974150657654,
0.260938435792923,
-0.0081062912940979,
0.12913088500499725,
-0.05627216398715973,
-0.034890804439783096,
-0.0924220085144043,
-0.12332414090633392,
0.07557252049446106,
-0.07683771848678589,
-0.13343732059001923,
-0.05300880968570709,
0.20867757499217987,
0.15903443098068237,
-0.1681346446275711,
0.2945309579372406,
0.31328290700912476,
0.6852061152458191,
0.0036979024298489094,
-0.07106226682662964,
-0.316154807806015,
-0.11595451831817627,
0.012126761488616467,
0.19630414247512817,
0.4326789975166321,
0.14190950989723206,
0.4441486895084381,
0.35386770963668823,
0.37059059739112854,
0.29352283477783203,
0.2150065302848816,
-0.29474782943725586,
-0.2568660080432892,
0.3132645785808563,
0.019058937206864357,
0.13039064407348633,
-0.024093974381685257,
-0.008543248288333416,
0.10646718740463257,
-0.39644625782966614,
-0.0034922510385513306,
0.23576544225215912,
0.35942623019218445,
0.541612446308136,
0.12313953042030334,
-0.23097780346870422,
0.010271597653627396,
0.2904921770095825,
-0.08763886988162994,
0.1949857771396637,
-0.1354839950799942,
0.04163031280040741,
0.4620048403739929,
0.3639577627182007,
0.033922165632247925,
0.16118557751178741,
-0.20227107405662537,
0.14213795959949493,
-0.027078382670879364,
0.3307807743549347,
0.2145213782787323,
-0.32115045189857483,
0.11528933048248291,
0.49572044610977173,
0.35182857513427734,
0.10610252618789673,
-0.08244265615940094,
0.23573121428489685,
0.045568373054265976,
-0.09358250349760056,
-0.2616676390171051,
0.20142732560634613,
0.40190041065216064,
0.21852558851242065,
-0.34807077050209045,
-0.16156020760536194,
-0.6667766571044922,
0.00031440332531929016,
-0.008995361626148224,
-0.43871229887008667,
0.1347409039735794,
0.09641346335411072,
0.024123482406139374,
-0.007926620543003082,
-0.17909899353981018,
0.13196760416030884,
0.4121938943862915,
-0.24980080127716064,
-0.018360616639256477,
-0.07583639025688171,
0.2117553949356079,
0.6223011612892151,
0.007355082780122757,
-0.020677518099546432,
0.20016461610794067,
0.06581659615039825,
0.1557064950466156,
-0.23753510415554047,
-0.0997471734881401,
0.2047887146472931,
0.1575377881526947,
0.1556728035211563,
-0.06353868544101715,
0.10247854888439178,
0.07657439261674881,
0.008308871649205685,
-0.14710046350955963,
-0.20311789214611053,
-0.22392576932907104,
-0.391944944858551,
0.455308735370636,
0.03372238948941231,
-0.15661492943763733,
-0.13801999390125275,
-0.021687619388103485,
-0.18315152823925018,
-0.31465598940849304,
0.2264462560415268,
-0.08519261330366135,
-0.03652327507734299,
0.041982509195804596,
0.019862879067659378,
-0.021176446229219437,
-0.06470072269439697,
0.16111484169960022,
-0.06227196007966995,
-0.22830207645893097,
-0.32282334566116333,
-0.6096112728118896,
-0.022402815520763397,
0.3340994119644165,
-0.21777944266796112,
0.24342451989650726,
-0.3628953993320465,
0.20199516415596008,
0.11272089183330536,
-0.022092893719673157,
-0.4665549695491791,
0.4362427890300751,
0.2837144732475281,
-0.2424643486738205,
0.27803903818130493,
-0.06958110630512238,
0.3557749390602112,
-0.13332146406173706,
-0.1612221747636795,
0.08133794367313385,
-0.07556150108575821,
-0.02933833934366703,
-0.04591074585914612,
0.32299891114234924,
0.07789336144924164,
-0.09250515699386597,
0.47400254011154175,
-0.1948445439338684,
0.3904002904891968,
-0.10795575380325317,
0.02658742479979992,
0.07514972984790802,
-0.08825954794883728,
-0.041525762528181076,
0.12307031452655792,
-0.0950145572423935,
0.3083328902721405,
-0.031005922704935074,
-0.17562206089496613,
-0.0016853242414072156,
-0.004735215567052364,
-0.18160171806812286,
-0.15041236579418182,
-0.24819155037403107,
-0.09065978974103928,
-0.2938712537288666,
-0.1554097682237625,
0.22069256007671356,
0.36195406317710876,
0.2975504398345947,
-0.15499086678028107,
-0.2665249705314636,
0.1433173567056656,
0.2802700698375702,
-0.26838624477386475,
-0.2826574146747589,
0.11084356158971786,
0.1386032998561859,
0.07002580910921097,
-0.029749134555459023,
-0.3935055136680603,
0.23899677395820618,
0.07703602313995361,
0.09108231961727142,
0.16117794811725616,
0.3279993534088135,
0.1051577478647232,
0.11149071156978607,
-0.12799929082393646,
-0.005607694387435913,
-0.3138836920261383,
0.03370750695466995,
-0.21101920306682587,
-0.01384916715323925
] |
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 😄
| 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. | [
-0.18556027114391327,
-0.03586704283952713,
0.03169272840023041,
0.21702206134796143,
-0.050836190581321716,
-0.15607544779777527,
0.4227236807346344,
0.3171769976615906,
0.5954245924949646,
0.0406724289059639,
-0.3604072332382202,
-0.0022463675122708082,
-0.19751162827014923,
0.4584817588329315,
-0.02548227831721306,
-0.20416054129600525,
-0.07333698123693466,
0.26880505681037903,
-0.5325930118560791,
-0.044683996587991714,
-0.22232000529766083,
-0.17234507203102112,
0.16902104020118713,
0.07166603952646255,
-0.19234995543956757,
0.20024564862251282,
-0.3058100640773773,
-0.020543381571769714,
-0.2797831892967224,
-0.4364822804927826,
0.09044207632541656,
0.4745956361293793,
0.25262191891670227,
0.47284477949142456,
-0.00010873388964682817,
0.044709302484989166,
0.17361417412757874,
-0.08730651438236237,
-0.0799541175365448,
-0.18889771401882172,
-0.17640164494514465,
-0.37801095843315125,
-0.026060830801725388,
0.02969861775636673,
-0.2500022351741791,
-0.2141197770833969,
0.03767739608883858,
0.029100440442562103,
0.28561607003211975,
0.1074136272072792,
0.22494862973690033,
-0.00817552488297224,
0.20512889325618744,
-0.07096552848815918,
0.3703624904155731,
0.7315405011177063,
-0.30414655804634094,
0.311246395111084,
0.33473220467567444,
-0.20987749099731445,
-0.2543777525424957,
0.27064111828804016,
0.013668814674019814,
-0.06455250084400177,
0.4210134446620941,
-0.02845950424671173,
0.17731615900993347,
-0.2179916799068451,
-0.10953942686319351,
0.2496357560157776,
0.3453781008720398,
-0.15976840257644653,
-0.31257638335227966,
-0.16861246526241302,
0.168157696723938,
-0.20481878519058228,
-0.17505908012390137,
0.10012750327587128,
-0.1262863725423813,
0.10261692106723785,
-0.2152247279882431,
-0.2864154577255249,
-0.23239295184612274,
0.029909297823905945,
-0.03375794738531113,
-0.013602480292320251,
-0.15937286615371704,
0.04368294030427933,
-0.027748268097639084,
0.11498785763978958,
-0.20439058542251587,
-0.12992000579833984,
-0.04567722603678703,
0.09531784802675247,
-0.12475599348545074,
-0.17575742304325104,
-0.08674221485853195,
0.06779524683952332,
0.5560739636421204,
-0.012292928993701935,
0.13149596750736237,
0.09940005093812943,
-0.5331767201423645,
0.11770142614841461,
0.29821306467056274,
0.11413086950778961,
0.13557538390159607,
-0.13174770772457123,
-0.07764795422554016,
0.3509137034416199,
-0.1965891569852829,
-0.14063140749931335,
-0.2364167422056198,
0.0964677557349205,
0.22591198980808258,
-0.2485453486442566,
0.1340896487236023,
-0.35764625668525696,
0.04759543389081955,
-0.118271104991436,
0.2124764621257782,
-0.08525653928518295,
0.031828802078962326,
0.5192722082138062,
-0.031601618975400925,
0.17708143591880798,
0.0707896426320076,
0.002283623442053795,
0.07499853521585464,
-0.3397073447704315,
-0.07051084190607071,
0.1633104681968689,
-0.1793394386768341,
0.41624361276626587,
0.24573393166065216,
-0.3082050085067749,
-0.023583458736538887,
-0.026285886764526367,
0.3428420424461365,
-0.007787961512804031,
-0.09431977570056915,
-0.13312779366970062,
0.1460978388786316,
0.0008346065878868103,
-0.4168757498264313,
-0.28878694772720337,
0.32169848680496216,
0.11638478934764862,
-0.36064258217811584,
0.20285040140151978,
-0.3762906491756439,
-0.14957167208194733,
-0.3047567307949066,
0.12392446398735046,
-0.2874802350997925,
-0.03575100749731064,
-0.16266238689422607,
0.416181355714798,
-0.6275473237037659,
-0.22970367968082428,
0.06443281471729279,
-0.018659386783838272,
-0.15483075380325317,
-0.1904701441526413,
0.25201132893562317,
0.5567681789398193,
-0.16779503226280212,
-0.33241525292396545,
-0.25537601113319397,
-0.12386880815029144,
0.05837256461381912,
-0.10400107502937317,
-0.1964566558599472,
0.059845030307769775,
-0.1500622183084488,
-0.17561766505241394,
-0.07773736864328384,
-0.4072466492652893,
-0.15924707055091858,
0.2412368506193161,
-0.013769194483757019,
0.2681784927845001,
0.18035054206848145,
0.31758588552474976,
0.18418742716312408,
-0.293817937374115,
-0.2365962266921997,
0.5355961918830872,
-0.18386796116828918,
-0.036841392517089844,
-0.028325170278549194,
-0.44725972414016724,
-0.038495562970638275,
0.6111927032470703,
0.0725741982460022,
0.04365864768624306,
0.16972225904464722,
-0.22863368690013885,
-0.03747944533824921,
-0.10754702985286713,
-0.0617307648062706,
-0.13441267609596252,
0.3425484001636505,
0.0732308104634285,
0.05474519357085228,
-0.007475290447473526,
-0.27588772773742676,
0.20585188269615173,
0.17245054244995117,
0.19721052050590515,
-0.07265126705169678,
0.006777726113796234,
-0.23706060647964478,
0.2174357920885086,
-0.2740916609764099,
-0.07864148914813995,
0.060966119170188904,
-0.2541957199573517,
-0.025556758046150208,
-0.050382815301418304,
-0.0958489179611206,
0.5323331356048584,
-0.0836445689201355,
0.2147194892168045,
0.3424243628978729,
0.40498098731040955,
0.266152948141098,
0.24364420771598816,
0.1793006956577301,
0.25023409724235535,
-0.03741785138845444,
-0.04693176969885826,
-0.04440347105264664,
0.22342148423194885,
-0.012229224666953087,
0.1539316326379776,
0.34742510318756104,
0.16966457664966583,
0.28355422616004944,
-0.20491176843643188,
0.40532365441322327,
-0.19169363379478455,
0.21127407252788544,
-0.09645606577396393,
-0.16429156064987183,
0.5399535298347473,
-0.22486914694309235,
0.23586124181747437,
-0.026501907035708427,
-0.22144803404808044,
0.046325117349624634,
-0.2536196708679199,
-0.16558100283145905,
-0.1882249116897583,
0.14436599612236023,
-0.00041979365050792694,
0.3400944173336029,
0.2101682424545288,
-0.20374494791030884,
-0.0707077905535698,
0.4153845012187958,
-0.04725392907857895,
0.0060633644461631775,
0.5505231022834778,
-0.32514965534210205,
0.12342318147420883,
0.10015576332807541,
-0.15439732372760773,
0.3775549530982971,
0.21249815821647644,
-0.25428932905197144,
0.007957817986607552,
-0.05343591421842575,
0.1954726278781891,
0.08808403462171555,
-0.13854138553142548,
0.47369927167892456,
0.2233428657054901,
0.1468835324048996,
0.09930393844842911,
-0.20857810974121094,
-0.24130623042583466,
-0.10784228146076202,
-0.11001633107662201,
0.03394501283764839,
-0.197008416056633,
0.016093989834189415,
-0.11768508702516556,
-0.02772936224937439,
-0.2670043706893921,
-0.23660898208618164,
0.04950209707021713,
0.23830106854438782,
-0.05832147225737572,
0.16278620064258575,
-0.004040363244712353,
-0.3333606719970703,
0.5867733955383301,
-0.24210473895072937,
-0.04246555268764496,
-0.05807020142674446,
-0.014945708215236664,
0.08949847519397736,
0.06269590556621552,
0.22644035518169403,
0.07885608822107315,
0.6019868850708008,
-0.11338600516319275,
0.3676793575286865,
-0.21686279773712158,
-0.3992984890937805,
0.21462544798851013,
-0.06867888569831848,
0.3349537253379822,
0.03459787741303444,
0.20831751823425293,
0.20451277494430542,
-0.22126100957393646,
0.39538341760635376,
-0.37432318925857544,
-0.20499776303768158,
0.0025958996266126633,
-0.27483588457107544,
0.23931896686553955,
-0.19330166280269623,
0.05274203047156334,
-0.22516420483589172,
-0.33556559681892395,
0.15358814597129822,
0.3226085603237152,
0.2179158627986908,
-0.04235066473484039,
0.23010291159152985,
-0.02872374653816223,
0.19481143355369568,
0.039500556886196136,
-0.10386161506175995,
-0.5229998826980591,
0.203888937830925,
-0.40445172786712646,
-0.1157681792974472,
-0.14412114024162292,
-0.02591516636312008,
-0.0051049888134002686,
0.00962879415601492,
-0.5308175683021545,
-0.5184599757194519,
-0.048483192920684814,
-0.11867654323577881,
0.11499503254890442,
-0.1897500604391098,
0.030323833227157593,
0.25693994760513306,
-0.023103032261133194,
-0.11294582486152649,
-0.11884884536266327,
-0.021109506487846375,
-0.13996446132659912,
0.06305967271327972,
0.21197989583015442,
0.34617385268211365,
0.15627777576446533,
0.5109024047851562,
-0.12336589395999908,
-0.21643416583538055,
0.5303107500076294,
0.2844768464565277,
0.3809925317764282,
-0.42552635073661804,
-0.27567094564437866,
0.01230013556778431,
-0.26273179054260254,
0.06400985270738602,
0.2900671660900116,
0.16577133536338806,
-0.06270705908536911,
-0.2261684089899063,
-0.07509967684745789,
-0.17886430025100708,
-0.2657392919063568,
0.23730656504631042,
0.30533137917518616,
0.10799048840999603,
-0.4884507358074188,
-0.38828957080841064,
-0.5060950517654419,
-0.2266724407672882,
0.36474040150642395,
0.5213955044746399,
0.4237869679927826,
-0.08573497831821442,
-0.3025984764099121,
-0.12311028689146042,
-0.39011693000793457,
0.20541688799858093,
0.016575144603848457,
-0.1787872016429901,
-0.20450066030025482,
-0.05317375808954239,
0.03734062239527702,
-0.059124190360307693,
0.2733726501464844,
0.09991667419672012,
0.024618981406092644,
0.07848608493804932,
-0.33714088797569275,
0.4185315668582916,
-0.10941159725189209,
-0.019731679931282997,
-0.005648863036185503,
-0.09809635579586029,
0.5559543967247009,
-0.5010911822319031,
-0.42722591757774353,
0.28891199827194214,
-0.03036026656627655,
-0.24747785925865173,
-0.48721057176589966,
0.05125560984015465,
0.013059671968221664,
-0.4524565637111664,
-0.3028471767902374,
0.02280077151954174,
0.1358679085969925,
-0.26874905824661255,
-0.11584779620170593,
-0.05149319767951965,
0.2268141508102417,
0.44538700580596924,
-0.18137183785438538,
-0.2279324233531952,
0.28679218888282776,
0.3719542324542999,
0.2487151175737381,
0.3226175010204315,
0.31872522830963135,
0.476495623588562,
0.1838933527469635,
-0.4711158275604248,
-0.3039999008178711,
0.08359098434448242,
0.15870659053325653,
0.3835383951663971,
0.3280871510505676,
0.149761363863945,
-0.3378779888153076,
0.18047378957271576,
-0.5659116506576538,
0.26445987820625305,
0.03838628903031349,
-0.2075253576040268,
-0.6553073525428772,
-0.18800346553325653,
0.5677021741867065,
0.17994093894958496,
-0.12313147634267807,
0.40875327587127686,
0.355762779712677,
-0.17012695968151093,
0.21487879753112793,
0.3115290701389313,
1.0682965517044067,
-0.49217212200164795,
0.1831660121679306,
-0.021872464567422867,
-0.198514923453331,
0.12641096115112305,
0.05577301234006882,
-0.25628578662872314,
-0.3235609829425812,
-0.5344048142433167,
-0.06298944354057312,
-0.04609731584787369,
0.28264790773391724,
0.024143273010849953,
0.04573934152722359,
0.06434796750545502,
-0.0763317346572876,
0.09986341744661331,
0.02840573899447918,
0.33353614807128906,
0.2288251370191574,
-0.6018491983413696,
0.18818530440330505,
0.15297283232212067,
-0.1127890944480896,
0.17667466402053833,
-0.08069328218698502,
-0.35008013248443604,
0.08306637406349182,
0.2556880712509155,
-0.2096972018480301,
-0.06761913001537323,
0.23342446982860565,
-0.1394786387681961,
-0.06264455616474152,
-0.028408240526914597,
0.2671801447868347,
0.08619460463523865,
0.08682534843683243,
-0.031708408147096634,
-0.04203350841999054,
0.24964435398578644,
-0.14657512307167053,
0.10773325711488724,
-0.18266762793064117,
0.0007113590836524963,
0.34951475262641907,
-0.0919433981180191,
-0.13374336063861847,
0.10816946625709534,
-0.14522597193717957,
-0.46239954233169556,
-0.08151596039533615,
-0.3797246217727661,
0.19656477868556976,
-0.14220628142356873,
-0.21304523944854736,
-0.09836366772651672,
-0.03565654158592224,
-0.059912364929914474,
0.13632084429264069,
0.1800105720758438,
0.04285600408911705,
0.0012022480368614197,
0.3421391248703003,
-0.3050863742828369,
-0.10104373097419739,
0.04795365408062935,
-0.04924122244119644,
-0.15949323773384094,
0.3611065149307251,
0.047527115792036057,
0.03681901842355728,
-0.12755629420280457,
0.009915925562381744,
0.5129973292350769,
-0.22896736860275269,
-0.16498079895973206,
0.15976834297180176,
0.06163738667964935,
0.16587065160274506,
0.19307498633861542,
0.3459842801094055,
-0.38888904452323914,
0.11352509260177612,
-0.3265075981616974,
-0.1995934098958969,
0.39588284492492676,
-0.467969685792923,
0.12486922740936279,
-0.20210933685302734,
0.09358935058116913,
-0.10087238252162933,
0.42114078998565674,
-0.3497118353843689,
-0.006236028857529163,
-0.06114397943019867,
-0.01127558946609497,
0.1240786537528038,
0.24271950125694275,
-0.11217886954545975,
0.15084142982959747,
0.11130329966545105,
-0.040520623326301575,
-0.2008817195892334,
-0.10962339490652084,
-0.3406314551830292,
0.21682539582252502,
0.01982707716524601,
0.19014155864715576,
-0.06888661533594131,
-0.020245032384991646,
-0.09032277762889862,
-0.1540433168411255,
0.10281692445278168,
-0.08040039241313934,
-0.21204261481761932,
0.003895365633070469,
0.100115105509758,
0.04674993455410004,
-0.17159304022789001,
0.2449434995651245,
0.3736925721168518,
0.5727781057357788,
0.11392887681722641,
-0.16315491497516632,
-0.322414755821228,
-0.1041124165058136,
-0.0006198329501785338,
0.23698890209197998,
0.2701369524002075,
0.014717413112521172,
0.5232062935829163,
0.3159031867980957,
0.30880722403526306,
0.3414402902126312,
0.2564287483692169,
-0.2610596716403961,
-0.2604801654815674,
0.3790249824523926,
0.0754326581954956,
0.20728185772895813,
-0.07570049911737442,
-0.1659216582775116,
0.10087218880653381,
-0.33369675278663635,
0.08101329207420349,
0.17476138472557068,
0.3582298457622528,
0.5292118191719055,
0.15204313397407532,
-0.17813405394554138,
-0.006082507781684399,
0.20018179714679718,
-0.14819906651973724,
0.3179433047771454,
-0.034868039190769196,
0.05110500007867813,
0.49176058173179626,
0.2687491178512573,
0.17959852516651154,
0.18780961632728577,
-0.1659882664680481,
0.19564570486545563,
-0.0007999390363693237,
0.32090792059898376,
0.31511059403419495,
-0.32158511877059937,
-0.0009647160768508911,
0.46237170696258545,
0.22158819437026978,
0.0928092747926712,
-0.09898093342781067,
0.22279158234596252,
0.04343380406498909,
-0.22805379331111908,
-0.3739475905895233,
0.19174940884113312,
0.28309401869773865,
0.144875168800354,
-0.23701809346675873,
-0.2177574634552002,
-0.6156713962554932,
0.1143312156200409,
-0.01763196662068367,
-0.43785184621810913,
0.2035624384880066,
0.06781405955553055,
0.06993897259235382,
-0.17023374140262604,
-0.1824880838394165,
0.22483423352241516,
0.3801366090774536,
-0.2559894621372223,
-0.06927792727947235,
0.00008129328489303589,
0.06495370715856552,
0.5804300904273987,
0.04091072082519531,
0.0013611018657684326,
0.22507505118846893,
0.059119366109371185,
0.07471273839473724,
-0.27569228410720825,
-0.07595613598823547,
0.0853213220834732,
0.12822586297988892,
0.13826081156730652,
-0.12444686889648438,
0.17898701131343842,
0.12491835653781891,
-0.04660273343324661,
-0.05215391144156456,
-0.16484801471233368,
-0.08818906545639038,
-0.45259904861450195,
0.4256010353565216,
-0.015820901840925217,
-0.042289912700653076,
-0.11674907803535461,
-0.06225088983774185,
-0.17010065913200378,
-0.23773114383220673,
0.23359708487987518,
-0.039042841643095016,
-0.08783964067697525,
0.02574971690773964,
0.06807883828878403,
-0.06912516057491302,
-0.012472983449697495,
0.14099153876304626,
-0.04389527440071106,
-0.16955821216106415,
-0.36696857213974,
-0.5895619988441467,
-0.04510711878538132,
0.22456565499305725,
-0.03789340704679489,
0.27083224058151245,
-0.3096935749053955,
0.20654118061065674,
0.2510209381580353,
-0.15407370030879974,
-0.4215732514858246,
0.536670446395874,
0.28608328104019165,
-0.3217824101448059,
0.2567458748817444,
-0.015648141503334045,
0.3670926094055176,
-0.1387176215648651,
-0.20448511838912964,
0.08406057953834534,
-0.13607363402843475,
0.04299566149711609,
-0.0741807073354721,
0.18716755509376526,
0.06194813922047615,
0.028290675953030586,
0.5949411988258362,
-0.12253135442733765,
0.2686195373535156,
-0.1500394493341446,
-0.052649371325969696,
0.13633447885513306,
-0.1778763085603714,
-0.06258805841207504,
0.06458427011966705,
-0.09674312174320221,
0.34218138456344604,
-0.025899291038513184,
-0.04196071997284889,
-0.0016209128079935908,
0.09706465154886246,
-0.14295001327991486,
-0.20300643146038055,
-0.36304065585136414,
-0.09556954354047775,
-0.14257174730300903,
-0.26759862899780273,
0.10620764642953873,
0.40070903301239014,
0.2670403718948364,
-0.24146981537342072,
-0.20474597811698914,
0.06438922137022018,
0.2232232689857483,
-0.2975192368030548,
-0.1986807882785797,
0.08976440131664276,
0.0448920801281929,
0.11286011338233948,
-0.013672715052962303,
-0.3562285304069519,
0.1606934368610382,
0.13476033508777618,
0.11141932010650635,
0.0386374406516552,
0.28723764419555664,
0.16278354823589325,
0.06202438101172447,
-0.12441259622573853,
0.11463116109371185,
-0.24898147583007812,
0.036870867013931274,
-0.17107263207435608,
0.014072470366954803
] |
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
| 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`. | [
-0.2921886742115021,
-0.13219138979911804,
-0.06178423762321472,
0.08947064727544785,
-0.027991287410259247,
-0.06942635774612427,
0.4363798201084137,
0.08186624944210052,
-0.10973890125751495,
0.03781239688396454,
0.07510139048099518,
0.42103448510169983,
-0.2893877327442169,
0.15376915037631989,
-0.2554008364677429,
0.199366956949234,
0.060944169759750366,
0.01461801677942276,
-0.15711846947669983,
0.08623363077640533,
-0.3209352195262909,
0.47637492418289185,
-0.1904507279396057,
-0.2192106992006302,
-0.02549182064831257,
-0.08094886690378189,
-0.08621490001678467,
0.14340224862098694,
0.19461575150489807,
-0.6517432332038879,
0.4014676511287689,
0.14100486040115356,
0.06714988499879837,
0.5283257365226746,
-0.00011470939352875575,
-0.1543406844139099,
0.18147306144237518,
-0.09603224694728851,
-0.2789209187030792,
-0.2570640444755554,
0.18816903233528137,
0.04199225455522537,
0.24434512853622437,
-0.037249691784381866,
-0.05387704074382782,
-0.07760486751794815,
-0.14027386903762817,
-0.5151377320289612,
0.0620298758149147,
0.3700474798679352,
0.2394711971282959,
0.22674314677715302,
-0.12322083115577698,
-0.09628146886825562,
0.3876717686653137,
0.048646390438079834,
-0.28644058108329773,
-0.03090720623731613,
0.42979738116264343,
0.018416889011859894,
0.08965365588665009,
0.03428465127944946,
-0.021847544237971306,
0.2253989726305008,
0.34375470876693726,
-0.2219463586807251,
-0.17103871703147888,
-0.2634071111679077,
-0.09723081439733505,
0.12552322447299957,
0.25888150930404663,
-0.17344993352890015,
-0.5103395581245422,
-0.4795115292072296,
-0.03856322914361954,
-0.34417346119880676,
0.14773277938365936,
0.09502450376749039,
-0.059859052300453186,
-0.04648208245635033,
0.2395371049642563,
0.17582182586193085,
-0.1140514463186264,
0.04737523943185806,
0.16524028778076172,
0.11163807660341263,
-0.28772321343421936,
0.15890175104141235,
0.1748494952917099,
-0.22723226249217987,
0.48233938217163086,
0.13254404067993164,
-0.30248087644577026,
0.07669426500797272,
-0.3460906445980072,
-0.145395889878273,
0.4343551695346832,
-0.14730677008628845,
-0.020629417151212692,
0.15738746523857117,
-0.17240555584430695,
0.03908400610089302,
0.1176232099533081,
0.021287932991981506,
0.11048603057861328,
-0.03343573585152626,
0.10033988207578659,
0.25641027092933655,
0.053251784294843674,
0.11049334704875946,
0.12119026482105255,
-0.27350685000419617,
0.11103354394435883,
-0.3214952349662781,
-0.3129774034023285,
0.2933911681175232,
0.2581745982170105,
-0.11946042627096176,
-0.17683278024196625,
0.0207488015294075,
0.27351510524749756,
0.06777577102184296,
0.02368081547319889,
0.23342880606651306,
0.16646188497543335,
0.3298377990722656,
-0.051014043390750885,
0.23783427476882935,
-0.0978953018784523,
0.06617624312639236,
-0.01751425489783287,
0.021170523017644882,
-0.13630564510822296,
0.15052823722362518,
0.1517373025417328,
0.019801808521151543,
0.2342103272676468,
-0.14797140657901764,
0.057612720876932144,
0.0938715934753418,
-0.14233146607875824,
-0.3159814178943634,
0.40235570073127747,
0.29810741543769836,
-0.07581162452697754,
0.19020694494247437,
0.08830684423446655,
0.06927049160003662,
-0.2986714243888855,
-0.27418023347854614,
0.007541976869106293,
-0.30129608511924744,
-0.3183765709400177,
0.1456378549337387,
-0.29796719551086426,
-0.06666514277458191,
-0.13523313403129578,
0.09839877486228943,
0.07280994951725006,
-0.33357521891593933,
0.2729646861553192,
-0.1961672157049179,
-0.28105852007865906,
-0.13619861006736755,
-0.29639434814453125,
0.46969902515411377,
-0.17167045176029205,
0.015575550496578217,
0.09369013458490372,
0.22520825266838074,
-0.03891178220510483,
0.018333159387111664,
-0.06792999058961868,
0.053173646330833435,
-0.42768484354019165,
-0.15628978610038757,
0.21636518836021423,
-0.12706337869167328,
-0.32295721769332886,
0.4967361092567444,
0.20707814395427704,
0.021578310057520866,
0.27134430408477783,
-0.2980937659740448,
0.37600070238113403,
-0.1839941442012787,
-0.21917057037353516,
0.18109871447086334,
-0.09343010932207108,
-0.04836999624967575,
-0.05982935428619385,
-0.33987998962402344,
0.012410584837198257,
-0.07624880969524384,
0.14967045187950134,
0.24064913392066956,
0.2026231437921524,
-0.38103151321411133,
0.35921090841293335,
-0.33054211735725403,
0.01979614794254303,
0.31951677799224854,
0.5320174098014832,
0.21932269632816315,
0.21325866878032684,
-0.4511934816837311,
-0.41224169731140137,
0.35802462697029114,
-0.0772901177406311,
-0.19645237922668457,
-0.233210489153862,
0.013115350157022476,
-0.0010332241654396057,
-0.055792905390262604,
-0.1204204261302948,
-0.4804016649723053,
0.08110252022743225,
0.43211662769317627,
0.12311175465583801,
-0.11454179883003235,
-0.38029107451438904,
0.16537784039974213,
-0.0849187895655632,
-0.17947997152805328,
-0.277864933013916,
0.20930291712284088,
0.1451038122177124,
-0.4424320459365845,
0.05191118270158768,
0.3314107060432434,
0.33506453037261963,
-0.2783980667591095,
-0.1680169403553009,
0.2758779227733612,
0.26839199662208557,
0.26601123809814453,
-0.12184833735227585,
0.2716447710990906,
0.0825079008936882,
-0.07937535643577576,
-0.01505945809185505,
0.060316987335681915,
0.06025479733943939,
0.0010550692677497864,
0.04345908761024475,
0.4714301824569702,
0.013527171686291695,
0.38320475816726685,
0.13497214019298553,
0.1698789894580841,
0.23381295800209045,
-0.03321737423539162,
-0.1137169599533081,
-0.07718945294618607,
0.20568537712097168,
0.171212300658226,
0.3020155429840088,
-0.11433450877666473,
-0.3351301848888397,
0.26342645287513733,
0.3781980276107788,
0.11805550754070282,
-0.1098058894276619,
0.08121638000011444,
-0.11276141554117203,
0.014562293887138367,
0.40173086524009705,
0.0633811503648758,
0.3502485156059265,
0.12052833288908005,
-0.056919392198324203,
-0.005095593631267548,
0.02239513024687767,
-0.02504025585949421,
0.20121733844280243,
-0.0802435576915741,
0.48622578382492065,
0.25842830538749695,
0.1325686126947403,
0.1240626722574234,
-0.29764148592948914,
-0.5871667265892029,
-0.1717609018087387,
0.20194466412067413,
-0.2880971431732178,
0.3558424115180969,
-0.16670042276382446,
0.16975432634353638,
-0.06670957058668137,
-0.02750074863433838,
-0.06710377335548401,
-0.2898540496826172,
-0.31042563915252686,
0.6717426776885986,
-0.0733586847782135,
0.04252966493368149,
-0.012682071886956692,
0.14954636991024017,
0.32455870509147644,
-0.006120229139924049,
-0.24725015461444855,
-0.09567827731370926,
-0.08590087294578552,
0.01986582577228546,
0.10717963427305222,
-0.3378646969795227,
0.1567234843969345,
-0.015613071620464325,
-0.20000654458999634,
-0.347024142742157,
0.07639939337968826,
0.18267613649368286,
-0.11551937460899353,
0.17291975021362305,
0.5132633447647095,
-0.08692078292369843,
0.531443178653717,
-0.12763847410678864,
-0.015174392610788345,
-0.5379770994186401,
0.06430065631866455,
0.12079593539237976,
-0.20353709161281586,
-0.020830577239394188,
-0.2373500019311905,
-0.2587360143661499,
-0.03724385052919388,
-0.31501519680023193,
0.42939770221710205,
0.03478379175066948,
0.2628379762172699,
0.42049282789230347,
0.2266617864370346,
0.09666301310062408,
-0.141985222697258,
-0.007937898859381676,
-0.18560165166854858,
-0.43161875009536743,
0.2559533417224884,
-0.37562164664268494,
-0.40746980905532837,
0.04864722117781639,
-0.17016354203224182,
0.07343275845050812,
-0.1987716108560562,
-0.35198384523391724,
-0.18414361774921417,
-0.2120537906885147,
0.15460965037345886,
-0.19387082755565643,
-0.04906890541315079,
0.3099544644355774,
-0.03920317068696022,
-0.10578238219022751,
-0.23251807689666748,
-0.11219829320907593,
-0.07284597307443619,
0.2937769591808319,
0.024370938539505005,
0.22396963834762573,
0.2815307676792145,
0.3920649290084839,
0.711260974407196,
0.38613682985305786,
-0.03381066396832466,
0.3078755736351013,
-0.2642849385738373,
0.2142629772424698,
0.034727681428194046,
-0.5634349584579468,
0.16251042485237122,
-0.24098747968673706,
-0.11723583936691284,
0.0423697754740715,
-0.2131119966506958,
-0.3110682964324951,
0.10859724879264832,
0.4983542859554291,
-0.055625833570957184,
-0.10024005174636841,
-0.11265227198600769,
-0.40324127674102783,
0.33555805683135986,
-0.19800660014152527,
0.3483878970146179,
-0.28146177530288696,
0.10422646999359131,
0.06558792293071747,
-0.02744343876838684,
0.14499813318252563,
-0.17891909182071686,
0.09675385057926178,
0.009671993553638458,
-0.47174423933029175,
0.32595646381378174,
0.10978416353464127,
0.4439835250377655,
-0.015102162957191467,
-0.1502622365951538,
0.028730161488056183,
-0.023374632000923157,
0.7541704177856445,
-0.2171725034713745,
-0.04979311674833298,
0.4810555875301361,
-0.172658309340477,
-0.7217597365379333,
-0.2444232553243637,
-0.034638628363609314,
0.22436556220054626,
0.2372264862060547,
0.1253528594970703,
-0.00994158536195755,
-0.2845841944217682,
0.005751803517341614,
-0.18827232718467712,
-0.0031444355845451355,
-0.06518618762493134,
-0.026373974978923798,
-0.059916235506534576,
-0.13750486075878143,
-0.07592449337244034,
0.09554152190685272,
0.13835836946964264,
-0.25790566205978394,
-0.01304950937628746,
-0.200398787856102,
-0.10874465107917786,
0.01617307960987091,
0.12951019406318665,
0.04158729687333107,
0.1770337074995041,
0.0741441398859024,
0.25833162665367126,
0.03835678845643997,
0.35959064960479736,
0.6000948548316956,
0.2157989740371704,
0.016861245036125183,
0.31047260761260986,
-0.1651596873998642,
0.08104674518108368,
0.42259785532951355,
-0.2557571828365326,
0.14415998756885529,
-0.33750247955322266,
0.11470052599906921,
-0.25743964314460754,
-0.11393072456121445,
0.3352102041244507,
-0.0677155926823616,
0.031932953745126724,
-0.3362900912761688,
0.18938255310058594,
-0.08423034846782684,
-0.05711513012647629,
-0.036274418234825134,
-0.1890399307012558,
-0.13066478073596954,
0.30288875102996826,
0.02785443142056465,
0.563963770866394,
0.1253940612077713,
0.05224762111902237,
0.33910420536994934,
-0.10601232945919037,
0.1861286163330078,
-0.12623624503612518,
0.059858597815036774,
-0.28309354186058044,
-0.18813307583332062,
-0.08150818198919296,
-0.24651303887367249,
0.6083459854125977,
0.03564947843551636,
-0.06876227259635925,
0.40258997678756714,
0.3063116669654846,
-0.1098821759223938,
-0.019438406452536583,
0.025477267801761627,
-0.24205079674720764,
-0.2831200659275055,
-0.06898391991853714,
0.1991288959980011,
0.19583997130393982,
0.12559886276721954,
0.08570758998394012,
-0.11196069419384003,
0.1834932565689087,
-0.024519670754671097,
-0.5292788147926331,
0.1562717854976654,
-0.12926460802555084,
-0.139267697930336,
0.11033344268798828,
-0.5403976440429688,
0.2800610363483429,
0.0884895995259285,
0.15443246066570282,
-0.28602176904678345,
-0.2517659366130829,
-0.058618079870939255,
0.14994338154792786,
0.07407408207654953,
-0.23629681766033173,
-0.11724480986595154,
0.21607008576393127,
-0.025164706632494926,
-0.10034521669149399,
0.14450295269489288,
-0.03861360624432564,
-0.2132292240858078,
0.47903281450271606,
0.16095036268234253,
0.03441234678030014,
-0.274349570274353,
0.04457196220755577,
0.04448665305972099,
0.06850191950798035,
-0.3416123390197754,
0.11664023995399475,
0.127492755651474,
-0.32117873430252075,
0.25998321175575256,
-0.40208566188812256,
-0.24036091566085815,
-0.18236686289310455,
0.31969988346099854,
-0.21131759881973267,
0.4044434428215027,
0.3986157476902008,
0.2329442948102951,
-0.09999726712703705,
-0.2286941409111023,
-0.016650356352329254,
-0.06456949561834335,
-0.4599633514881134,
0.12466201931238174,
-0.22206628322601318,
-0.05390077084302902,
0.08398813754320145,
0.4215587079524994,
0.14977097511291504,
0.13344593346118927,
-0.27061113715171814,
-0.07821635901927948,
-0.1460295468568802,
-0.233852818608284,
-0.32597294449806213,
0.31002911925315857,
-0.22066038846969604,
0.11902765929698944,
-0.1099727600812912,
-0.09567847102880478,
-0.32189035415649414,
0.2317502647638321,
-0.20518085360527039,
0.031950827687978745,
-0.011377740651369095,
-0.1902691125869751,
0.1819906383752823,
-0.08683569729328156,
0.0786518007516861,
0.13681498169898987,
-0.09107617288827896,
-0.23316529393196106,
-0.33594366908073425,
0.05007302761077881,
0.1578206717967987,
-0.11539570242166519,
-0.16976359486579895,
-0.1462293267250061,
-0.28463995456695557,
-0.2134055495262146,
0.13496091961860657,
0.2832776606082916,
-0.05981411039829254,
0.6287599205970764,
0.0821823701262474,
-0.05546162277460098,
0.11466850340366364,
0.0471654012799263,
-0.04008045047521591,
0.2134205847978592,
0.05974199250340462,
0.3289852440357208,
-0.17623130977153778,
0.0806507021188736,
0.20967580378055573,
0.12265007197856903,
-0.09098778665065765,
-0.009107783436775208,
0.3940853476524353,
-0.1738124042749405,
-0.09382987767457962,
0.2058495432138443,
0.3702697157859802,
0.2788097858428955,
-0.049294184893369675,
0.032683879137039185,
0.25242385268211365,
0.14780814945697784,
-0.17224864661693573,
-0.06307920068502426,
-0.18193402886390686,
0.2136203646659851,
0.2543568015098572,
0.32814231514930725,
0.4274881184101105,
-0.08250192552804947,
0.481590211391449,
0.1783876121044159,
-0.03962210938334465,
0.17829570174217224,
0.3018735647201538,
-0.19035160541534424,
0.0013430751860141754,
-0.01362006738781929,
0.46231263875961304,
0.03547222167253494,
0.21143785119056702,
0.3144627809524536,
0.16354495286941528,
0.22286295890808105,
0.026398714631795883,
-0.07863913476467133,
0.2360667586326599,
-0.5830240249633789,
0.19457721710205078,
-0.5994447469711304,
0.2710762619972229,
0.022632677108049393,
0.06509824097156525,
0.14379988610744476,
-0.32767772674560547,
-0.10930602252483368,
-0.11126189678907394,
0.18739095330238342,
-0.0815555527806282,
-0.3028183579444885,
0.24192401766777039,
0.059283532202243805,
0.0424644872546196,
-0.13893628120422363,
-0.08532673120498657,
-0.3791232109069824,
0.4909067153930664,
-0.014833502471446991,
-0.06374691426753998,
-0.3560658097267151,
0.011302996426820755,
0.07168048620223999,
0.390611469745636,
-0.1326831430196762,
0.14133396744728088,
-0.2643129229545593,
-0.05009757727384567,
-0.20019584894180298,
0.46517911553382874,
0.37421396374702454,
0.098389632999897,
-0.33375367522239685,
-0.06873571127653122,
0.020941972732543945,
-0.013125312514603138,
-0.02920284867286682,
0.2096288800239563,
-0.43137940764427185,
0.321573942899704,
0.30364862084388733,
0.11191001534461975,
-0.08302535861730576,
0.13133759796619415,
-0.16794414818286896,
0.33424803614616394,
-0.5150201916694641,
0.40290769934654236,
-0.10480411350727081,
0.2101348340511322,
0.07351011037826538,
0.2824274003505707,
-0.48120415210723877,
-0.2469681054353714,
0.3531254529953003,
-0.24104732275009155,
0.3091002106666565,
0.01828688010573387,
0.08981198072433472,
-0.19164079427719116,
0.18419325351715088,
0.4533548057079315,
0.28253668546676636,
-0.05856812000274658,
-0.10585304349660873,
-0.058804042637348175,
0.03122783452272415,
-0.02905723825097084,
0.018659228459000587,
0.0464671365916729,
0.4846497178077698,
-0.08311944454908371,
-0.1695273518562317,
0.2884882092475891,
-0.1088317260146141,
0.04545067250728607,
0.6678786277770996,
-0.2926567792892456,
-0.08625072240829468,
-0.3242725133895874,
0.020721307024359703,
0.17876489460468292,
-0.29521945118904114,
-0.15909917652606964,
-0.059328656643629074,
0.10875005275011063,
-0.018872398883104324,
-0.34885403513908386,
0.05589674040675163,
-0.3120388984680176,
0.4832652807235718,
0.028286896646022797,
-0.05251249670982361,
-0.14485670626163483,
-0.2004200518131256,
-0.48386043310165405,
-0.397234171628952,
0.0017607500776648521,
0.007678728550672531,
-0.20647870004177094,
0.398761510848999,
-0.16324222087860107,
-0.03005475178360939,
-0.258253276348114,
0.1326548457145691,
0.15593791007995605,
0.09873921424150467,
-0.31134289503097534,
0.6981194615364075,
-0.40562766790390015,
0.26541757583618164,
-0.1774033010005951,
0.2659125030040741,
-0.13036778569221497,
0.2202797830104828,
-0.15642009675502777,
-0.17042118310928345,
0.4247819781303406,
-0.34874865412712097,
-0.42260318994522095,
-0.025372155010700226,
0.20029526948928833,
0.04987730830907822,
-0.09015166014432907,
-0.26901450753211975,
0.010130494832992554,
0.25777551531791687,
-0.06510316580533981,
0.020797643810510635,
-0.027999702841043472,
-0.19998201727867126,
-0.08859874308109283,
-0.11352333426475525,
0.5537083745002747,
0.15826016664505005,
0.015940161421895027,
0.10242496430873871,
-0.18996712565422058
] |
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
| 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? | [
-0.29491984844207764,
-0.20614497363567352,
-0.09534762799739838,
0.046741463243961334,
-0.0868976041674614,
-0.041585780680179596,
0.4108291268348694,
0.09821152687072754,
-0.09093771874904633,
0.013974092900753021,
0.0952100083231926,
0.3712005317211151,
-0.28548166155815125,
0.19110189378261566,
-0.2655847668647766,
0.16596084833145142,
0.17131778597831726,
0.09015221148729324,
-0.12808704376220703,
0.08315010368824005,
-0.3377145230770111,
0.4761885404586792,
-0.16174235939979553,
-0.20634929835796356,
0.05019204318523407,
-0.10335715860128403,
-0.12855969369411469,
0.19549673795700073,
0.15107831358909607,
-0.631488025188446,
0.46503353118896484,
0.19635973870754242,
0.09276048094034195,
0.5777621865272522,
-0.00011326317326165736,
-0.1780800223350525,
0.1949903517961502,
-0.09940439462661743,
-0.16069360077381134,
-0.23896531760692596,
0.14647328853607178,
-0.045060865581035614,
0.19945339858531952,
-0.05604608356952667,
-0.04863699525594711,
-0.09591513872146606,
-0.14504656195640564,
-0.5004400014877319,
0.12916770577430725,
0.3072710335254669,
0.25931674242019653,
0.20203261077404022,
-0.16931602358818054,
-0.08927565813064575,
0.3402247428894043,
0.00298134982585907,
-0.2244751751422882,
-0.009439520537853241,
0.33921149373054504,
0.025034019723534584,
0.10698750615119934,
0.12183952331542969,
-0.05906299874186516,
0.1501011848449707,
0.2747754156589508,
-0.21231026947498322,
-0.22284367680549622,
-0.2755284309387207,
-0.1711568832397461,
0.07759788632392883,
0.2708287537097931,
-0.21401798725128174,
-0.4873979389667511,
-0.4360292851924896,
-0.06003944203257561,
-0.41549602150917053,
0.10729573667049408,
0.04875081032514572,
-0.07172702252864838,
-0.053968142718076706,
0.25292280316352844,
0.09823858737945557,
-0.14121708273887634,
-0.0033486559987068176,
0.09656572341918945,
0.12704938650131226,
-0.2766493856906891,
0.14053301513195038,
0.12184551358222961,
-0.2201584130525589,
0.5197932720184326,
0.12905359268188477,
-0.2910696566104889,
-0.026154186576604843,
-0.35972923040390015,
-0.23907841742038727,
0.38882502913475037,
-0.14897340536117554,
-0.00450674444437027,
0.16490058600902557,
-0.14633888006210327,
0.04279303178191185,
0.06414525955915451,
-0.028621003031730652,
0.1219722330570221,
-0.07242648303508759,
0.0684429332613945,
0.294823557138443,
0.06068209931254387,
0.13474828004837036,
0.1678876131772995,
-0.23892748355865479,
0.17841941118240356,
-0.3342791795730591,
-0.2930352985858917,
0.31671392917633057,
0.27135610580444336,
-0.13677547872066498,
-0.17651192843914032,
0.07528228312730789,
0.2925565540790558,
0.001891227439045906,
-0.08960066735744476,
0.22281953692436218,
0.10816007107496262,
0.4014805853366852,
-0.10098834335803986,
0.15915809571743011,
-0.0329858660697937,
0.10096114873886108,
-0.02081947587430477,
0.04152563959360123,
-0.14542840421199799,
0.15555070340633392,
0.0524783693253994,
-0.008239701390266418,
0.2729782462120056,
-0.14725692570209503,
0.02064630761742592,
0.18390588462352753,
-0.19054284691810608,
-0.33856573700904846,
0.42150425910949707,
0.26894325017929077,
-0.07697714120149612,
0.15914691984653473,
0.10364879667758942,
0.11500012874603271,
-0.3269968032836914,
-0.23911285400390625,
0.02724757418036461,
-0.2868445813655853,
-0.3871031701564789,
0.16794662177562714,
-0.26140648126602173,
-0.05443783104419708,
-0.09638085216283798,
0.10695318877696991,
0.0023401007056236267,
-0.408951997756958,
0.3213714361190796,
-0.19404639303684235,
-0.22949865460395813,
-0.15179093182086945,
-0.341848760843277,
0.4532219171524048,
-0.22608201205730438,
0.05161965638399124,
0.09545565396547318,
0.22796699404716492,
0.05967685580253601,
0.08670404553413391,
-0.022878561168909073,
0.08868011832237244,
-0.4292928874492645,
-0.09224239736795425,
0.24897578358650208,
-0.1847870945930481,
-0.2861185371875763,
0.4956683814525604,
0.18132193386554718,
0.06973649561405182,
0.28678688406944275,
-0.2521112561225891,
0.3538755476474762,
-0.13072891533374786,
-0.21913722157478333,
0.1287461668252945,
-0.150173157453537,
-0.052545785903930664,
-0.10146546363830566,
-0.3457699120044708,
0.04424136132001877,
-0.10367707908153534,
0.19707860052585602,
0.20286786556243896,
0.14323978126049042,
-0.38212355971336365,
0.3907983601093292,
-0.32623305916786194,
-0.03535846620798111,
0.31188422441482544,
0.5982446670532227,
0.1979312151670456,
0.1266355961561203,
-0.4162125289440155,
-0.39970558881759644,
0.30111008882522583,
-0.04834599047899246,
-0.20822668075561523,
-0.19309277832508087,
-0.020733952522277832,
-0.07144451141357422,
-0.06814633309841156,
-0.07729868590831757,
-0.4284064471721649,
0.0828312337398529,
0.423585444688797,
0.17212627828121185,
-0.15609890222549438,
-0.3714430034160614,
0.16786351799964905,
-0.14049193263053894,
-0.12351738661527634,
-0.2789422869682312,
0.24428902566432953,
0.11739137768745422,
-0.39647793769836426,
0.09560136497020721,
0.3067888021469116,
0.34805914759635925,
-0.2675514817237854,
-0.12470965832471848,
0.31448638439178467,
0.17757071554660797,
0.25239747762680054,
-0.06995631754398346,
0.23966006934642792,
0.07929122447967529,
-0.08751954138278961,
0.0028273239731788635,
0.08669896423816681,
0.06365460157394409,
0.03154752403497696,
0.0038103051483631134,
0.4890345335006714,
0.015148866921663284,
0.36322811245918274,
0.08157914876937866,
0.09808926284313202,
0.18386660516262054,
-0.04497598111629486,
-0.13598942756652832,
-0.08540437370538712,
0.13535378873348236,
0.1610575169324875,
0.2878458797931671,
-0.09997488558292389,
-0.3618277907371521,
0.2626342475414276,
0.4165690839290619,
0.0701109766960144,
-0.16056209802627563,
0.16494016349315643,
-0.062338508665561676,
-0.02894076518714428,
0.42512205243110657,
0.03677168861031532,
0.4127581715583801,
0.16424599289894104,
-0.09877738356590271,
-0.003648141399025917,
0.08788720518350601,
-0.06928879022598267,
0.22799566388130188,
-0.04071549326181412,
0.47775015234947205,
0.29800620675086975,
0.1210884377360344,
0.13179610669612885,
-0.23513448238372803,
-0.5725512504577637,
-0.3001147508621216,
0.1597384512424469,
-0.21985936164855957,
0.2925506830215454,
-0.14052198827266693,
0.019778426736593246,
-0.10966461896896362,
0.033215854316949844,
-0.04010022059082985,
-0.2757715582847595,
-0.2996911406517029,
0.5630038380622864,
-0.09732131659984589,
0.06398007273674011,
0.025726743042469025,
0.1976507306098938,
0.30615273118019104,
0.01191562507301569,
-0.2536342740058899,
-0.050204455852508545,
-0.06535612791776657,
0.04752467945218086,
0.06447748094797134,
-0.29472097754478455,
0.2075796127319336,
-0.05353265255689621,
-0.20299017429351807,
-0.44332394003868103,
0.06515716761350632,
0.21047694981098175,
-0.12084047496318817,
0.10365346074104309,
0.5557451248168945,
-0.07726627588272095,
0.5239049792289734,
-0.1807849109172821,
-0.0769004225730896,
-0.5247784852981567,
0.06312180310487747,
-0.004822079092264175,
-0.26052799820899963,
0.07928052544593811,
-0.1237151175737381,
-0.26826512813568115,
-0.09211721271276474,
-0.3091411292552948,
0.4481803774833679,
0.0314638651907444,
0.24470141530036926,
0.33969980478286743,
0.1947610229253769,
0.035341691225767136,
-0.17810949683189392,
-0.059947893023490906,
-0.17236672341823578,
-0.4659614562988281,
0.20437435805797577,
-0.34792613983154297,
-0.330159991979599,
0.020383600145578384,
-0.20413868129253387,
0.0903320387005806,
-0.2504037022590637,
-0.38946884870529175,
-0.16574470698833466,
-0.22011958062648773,
0.23680728673934937,
-0.17714986205101013,
0.02656550705432892,
0.33548420667648315,
-0.015023108571767807,
-0.15158872306346893,
-0.1953471601009369,
-0.13498838245868683,
-0.1331576108932495,
0.24558141827583313,
0.04166841506958008,
0.2816644310951233,
0.3594833016395569,
0.3570219874382019,
0.8020180463790894,
0.3718354403972626,
-0.02436477318406105,
0.30094969272613525,
-0.2631164789199829,
0.2583010792732239,
0.04364947974681854,
-0.5752668976783752,
0.13449594378471375,
-0.24495315551757812,
-0.14614072442054749,
0.08889932185411453,
-0.22802570462226868,
-0.29384317994117737,
0.14144836366176605,
0.45522749423980713,
-0.10900867730379105,
-0.09325087070465088,
-0.1147703230381012,
-0.3169592320919037,
0.312656044960022,
-0.16109193861484528,
0.24009662866592407,
-0.2791660726070404,
0.1102880910038948,
0.08575712144374847,
-0.043164968490600586,
0.1543099582195282,
-0.20372165739536285,
0.09759092330932617,
0.025451209396123886,
-0.534629225730896,
0.3466086983680725,
0.11850664764642715,
0.39821943640708923,
0.012561503797769547,
-0.16791784763336182,
-0.06562666594982147,
-0.02631348744034767,
0.7554696798324585,
-0.22545906901359558,
-0.1465141922235489,
0.461660236120224,
-0.14411601424217224,
-0.6542223691940308,
-0.2772729694843292,
-0.04806935042142868,
0.2960452437400818,
0.3429851233959198,
0.1685425043106079,
0.015352614223957062,
-0.26683512330055237,
0.12609317898750305,
-0.13615325093269348,
-0.030827857553958893,
-0.09552884101867676,
-0.03761611133813858,
-0.10184332728385925,
-0.09362909942865372,
-0.04550812393426895,
0.08592583984136581,
0.1382286548614502,
-0.26306745409965515,
-0.04290086403489113,
-0.17015425860881805,
-0.13829341530799866,
0.04704437032341957,
0.11462900042533875,
0.06878497451543808,
0.21615608036518097,
0.02909911423921585,
0.18363474309444427,
0.1203712746500969,
0.3242163360118866,
0.5703001022338867,
0.1760510951280594,
0.05537291616201401,
0.28714659810066223,
-0.09501127153635025,
0.1089012399315834,
0.4478769302368164,
-0.24432668089866638,
0.16184201836585999,
-0.355535089969635,
0.2269773632287979,
-0.20066961646080017,
-0.1061859056353569,
0.2772410213947296,
-0.01779404655098915,
-0.049996886402368546,
-0.34310081601142883,
0.20060034096240997,
0.03816140815615654,
-0.08015536516904831,
-0.003069177269935608,
-0.16257214546203613,
-0.14369237422943115,
0.32470792531967163,
0.07416477054357529,
0.6372488141059875,
0.11450518667697906,
0.07438668608665466,
0.35241615772247314,
-0.08708544075489044,
0.24821336567401886,
-0.17598024010658264,
-0.007583215832710266,
-0.29549333453178406,
-0.26177722215652466,
-0.08921793103218079,
-0.2210531085729599,
0.6354674696922302,
0.025886984542012215,
-0.12268136441707611,
0.5394663214683533,
0.31485694646835327,
-0.12418055534362793,
0.03605792298913002,
0.05808404088020325,
-0.2257813662290573,
-0.31774675846099854,
-0.10365279018878937,
0.18684029579162598,
0.23043526709079742,
0.07865996658802032,
0.006112845614552498,
-0.07742235064506531,
0.23432961106300354,
-0.05635633319616318,
-0.5703977942466736,
0.053413085639476776,
-0.13183307647705078,
-0.17308348417282104,
0.05624784901738167,
-0.5750944018363953,
0.2605593502521515,
0.14532609283924103,
0.1914222240447998,
-0.28823837637901306,
-0.2175004631280899,
-0.08406928181648254,
0.18704454600811005,
0.07246952503919601,
-0.18354783952236176,
-0.10392050445079803,
0.22618374228477478,
-0.05240292102098465,
-0.11444512754678726,
0.19229617714881897,
-0.034995004534721375,
-0.24965086579322815,
0.417782723903656,
0.16797351837158203,
0.05655014142394066,
-0.32538241147994995,
-0.06166654825210571,
0.09441174566745758,
0.10398022830486298,
-0.33227306604385376,
0.11690887808799744,
0.12792064249515533,
-0.23851679265499115,
0.28859564661979675,
-0.35601940751075745,
-0.22455257177352905,
-0.22282950580120087,
0.2772015929222107,
-0.1486145257949829,
0.3517296016216278,
0.3072715997695923,
0.19757290184497833,
-0.09415417164564133,
-0.2483401596546173,
0.010955333709716797,
-0.04996431991457939,
-0.3632594048976898,
0.09170230478048325,
-0.2642940282821655,
-0.034930698573589325,
0.02417895384132862,
0.43408286571502686,
0.22573183476924896,
0.1617732048034668,
-0.21574874222278595,
-0.013283178210258484,
-0.11936978995800018,
-0.17464156448841095,
-0.23638524115085602,
0.34335455298423767,
-0.17062509059906006,
0.09503281116485596,
-0.1330583542585373,
-0.1612500250339508,
-0.34843751788139343,
0.19974999129772186,
-0.22034628689289093,
-0.0068747177720069885,
-0.03262535482645035,
-0.11702736467123032,
0.11038438975811005,
-0.11757206916809082,
0.10859671235084534,
0.1605265736579895,
-0.020471666008234024,
-0.2562834918498993,
-0.260383278131485,
0.05610501766204834,
0.12291008234024048,
-0.09607826918363571,
-0.12172150611877441,
-0.04984587803483009,
-0.2511481046676636,
-0.18987053632736206,
0.12166531383991241,
0.2557045817375183,
0.008086111396551132,
0.5875719785690308,
0.06500298529863358,
-0.0955444946885109,
0.029766574501991272,
0.0680113285779953,
-0.019708342850208282,
0.2551846504211426,
0.034096017479896545,
0.3783210515975952,
-0.19456778466701508,
0.013718575239181519,
0.2784198820590973,
0.13054458796977997,
0.05353282392024994,
0.037613168358802795,
0.31005534529685974,
-0.15491972863674164,
-0.1780092865228653,
0.27165132761001587,
0.4359768331050873,
0.2764928340911865,
-0.11150600016117096,
0.05206941068172455,
0.29407939314842224,
0.19888296723365784,
-0.23706628382205963,
-0.060111645609140396,
-0.17778083682060242,
0.1454530656337738,
0.26226624846458435,
0.32956501841545105,
0.42583587765693665,
-0.03803649917244911,
0.484332799911499,
0.1798936128616333,
-0.01001761108636856,
0.19876401126384735,
0.34817105531692505,
-0.22958382964134216,
-0.0011477023363113403,
0.023109320551156998,
0.44550803303718567,
0.026583509519696236,
0.18578395247459412,
0.2714272737503052,
0.182345911860466,
0.27826789021492004,
-0.028442367911338806,
-0.011744406074285507,
0.17630405724048615,
-0.600644588470459,
0.261048287153244,
-0.6001137495040894,
0.23871681094169617,
0.03902465105056763,
0.12630118429660797,
0.08375654369592667,
-0.2935679256916046,
-0.1819610893726349,
-0.08128733187913895,
0.2067418098449707,
-0.04839285463094711,
-0.2879960834980011,
0.26057636737823486,
0.07869043201208115,
0.056723639369010925,
-0.08895990252494812,
-0.1117938756942749,
-0.37384408712387085,
0.40092024207115173,
-0.014357827603816986,
-0.051560550928115845,
-0.32058456540107727,
0.023741569370031357,
-0.0009269490838050842,
0.4598211944103241,
-0.14454655349254608,
0.12594011425971985,
-0.23880209028720856,
-0.05106385052204132,
-0.24739325046539307,
0.5271715521812439,
0.386495977640152,
0.07403324544429779,
-0.25475314259529114,
-0.11820390075445175,
0.007458881475031376,
-0.01136497501283884,
0.014527928084135056,
0.10169453173875809,
-0.47990551590919495,
0.3530064523220062,
0.30299457907676697,
0.1533757895231247,
-0.11333569139242172,
0.16275420784950256,
-0.10110816359519958,
0.3381580114364624,
-0.5910335183143616,
0.3898480534553528,
-0.1068163812160492,
0.18227618932724,
0.07514610141515732,
0.32973548769950867,
-0.556321918964386,
-0.22364600002765656,
0.3641146123409271,
-0.23246453702449799,
0.31126612424850464,
0.01307701412588358,
0.10294999927282333,
-0.1694580614566803,
0.161725252866745,
0.387322336435318,
0.2898377478122711,
-0.11283435672521591,
-0.15537673234939575,
-0.089545339345932,
-0.015033088624477386,
-0.000013597309589385986,
-0.013538599014282227,
0.03881119564175606,
0.44667184352874756,
-0.057769425213336945,
-0.10252828896045685,
0.2878102660179138,
-0.09663712978363037,
-0.031524866819381714,
0.6352744102478027,
-0.3162185847759247,
-0.06456848978996277,
-0.35387349128723145,
-0.005853855982422829,
0.20890246331691742,
-0.3031177222728729,
-0.16344377398490906,
-0.01656009629368782,
0.12518855929374695,
-0.0755709558725357,
-0.3082827627658844,
0.08519604802131653,
-0.38680940866470337,
0.4775632619857788,
0.054380595684051514,
-0.10881975293159485,
-0.2140078842639923,
-0.23250597715377808,
-0.38898351788520813,
-0.4144222140312195,
-0.05672255530953407,
0.10459814965724945,
-0.20024898648262024,
0.3977127969264984,
-0.15636783838272095,
-0.06915721297264099,
-0.23606958985328674,
0.10999451577663422,
0.22807471454143524,
0.13743235170841217,
-0.35228803753852844,
0.6618530750274658,
-0.3128383457660675,
0.21554619073867798,
-0.1983724683523178,
0.3205251693725586,
-0.13521938025951385,
0.2383139580488205,
-0.18430334329605103,
-0.18932917714118958,
0.44420212507247925,
-0.3490692973136902,
-0.3517688512802124,
-0.04565565660595894,
0.219893217086792,
0.0682341605424881,
-0.06300400197505951,
-0.2795758545398712,
0.0009026005864143372,
0.28006553649902344,
-0.010182518512010574,
0.05909230187535286,
-0.0010602008551359177,
-0.20361290872097015,
-0.10862793028354645,
-0.11910347640514374,
0.5351954698562622,
0.16687732934951782,
-0.04830080270767212,
0.08451242744922638,
-0.21369823813438416
] |
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 | 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? | [
-0.21699845790863037,
-0.06861083209514618,
-0.08182676136493683,
0.21229784190654755,
0.22685489058494568,
0.02494252473115921,
0.42694762349128723,
0.5157313346862793,
0.07178185880184174,
-0.03193691372871399,
0.2613385021686554,
0.543058454990387,
-0.08034840226173401,
0.21459496021270752,
0.2113286852836609,
0.05113040655851364,
-0.10132233053445816,
0.22473865747451782,
-0.08972510695457458,
0.17588916420936584,
-0.09670110046863556,
0.28047269582748413,
-0.20129846036434174,
0.023714333772659302,
-0.17523424327373505,
-0.03522060066461563,
-0.004236252978444099,
0.4233063757419586,
-0.08968979120254517,
-0.538083016872406,
0.46554866433143616,
-0.05531889572739601,
0.23342415690422058,
0.672951877117157,
-0.00011354772868799046,
0.22957409918308258,
0.3864312171936035,
-0.20295633375644684,
-0.5747056603431702,
-0.27285999059677124,
-0.6309577822685242,
-0.0821213498711586,
0.0028608583379536867,
-0.3504936397075653,
-0.2567759156227112,
0.24367958307266235,
-0.0602470263838768,
-0.3184722065925598,
0.49225282669067383,
0.507375955581665,
0.19498060643672943,
0.3396490216255188,
0.03114933893084526,
-0.28612449765205383,
0.06215358525514603,
0.12005948275327682,
-0.1905907392501831,
0.52586829662323,
0.10393786430358887,
-0.12607520818710327,
0.144137442111969,
0.05974549427628517,
-0.10019624978303909,
-0.07304482161998749,
0.24762433767318726,
-0.09910760074853897,
0.3479306399822235,
-0.15664441883563995,
0.2766368091106415,
-0.062155745923519135,
0.17318463325500488,
-0.4357229173183441,
-0.1563977301120758,
-0.16240036487579346,
-0.1204901784658432,
-0.2071826457977295,
0.06616353988647461,
0.159918412566185,
-0.22108633816242218,
0.27460673451423645,
-0.12665612995624542,
0.04779041185975075,
-0.12531879544258118,
-0.0673929750919342,
0.00249461829662323,
0.17155003547668457,
-0.12196734547615051,
-0.10615234822034836,
-0.037843164056539536,
0.09750452637672424,
-0.13656388223171234,
-0.30351126194000244,
-0.10475991666316986,
0.14943157136440277,
0.07926377654075623,
0.0774395763874054,
0.16461612284183502,
-0.061839498579502106,
0.19293546676635742,
0.39457815885543823,
0.059925779700279236,
0.12895485758781433,
0.06863069534301758,
0.12694445252418518,
0.06491172313690186,
0.11586225032806396,
-0.024153530597686768,
0.2681928277015686,
0.38912445306777954,
0.39122843742370605,
0.07129670679569244,
-0.031694136559963226,
-0.2134537249803543,
-0.030740775167942047,
0.05462131276726723,
0.010450602509081364,
0.5441199541091919,
-0.19061899185180664,
-0.24704276025295258,
-0.07335903495550156,
0.00575382262468338,
-0.09354427456855774,
0.21478210389614105,
0.4276276230812073,
0.06742726266384125,
0.04271313548088074,
0.08377821743488312,
0.3162097930908203,
0.06044591963291168,
0.1086575835943222,
-0.25617384910583496,
-0.08092924952507019,
-0.12055374681949615,
0.06255599111318588,
0.164304718375206,
-0.4302118420600891,
0.42366892099380493,
0.22054988145828247,
0.041807688772678375,
-0.26799851655960083,
-0.06568624824285507,
0.003077828325331211,
-0.22800463438034058,
0.11645135283470154,
-0.04906979203224182,
0.055801160633563995,
0.2630631625652313,
-0.47336435317993164,
-0.09442400187253952,
0.0457465834915638,
-0.345973938703537,
-0.5064621567726135,
0.016907792538404465,
0.2109142690896988,
-0.2352408766746521,
0.03420756012201309,
-0.7249212861061096,
-0.1575404703617096,
0.26731929183006287,
-0.01083444058895111,
-0.12478383630514145,
-0.14075304567813873,
-0.07831871509552002,
-0.13800793886184692,
0.4682033360004425,
0.5949926376342773,
0.014067422598600388,
-0.07514820992946625,
0.10217549651861191,
0.08337409049272537,
0.2408108413219452,
-0.008574489504098892,
-0.35540804266929626,
0.3678346872329712,
-0.4717828631401062,
0.08437980711460114,
0.25839370489120483,
-0.3019835352897644,
-0.12702058255672455,
0.32081425189971924,
-0.12273240834474564,
0.08720514178276062,
0.16029715538024902,
-0.29060494899749756,
-0.02079993486404419,
-0.16193069517612457,
0.160752534866333,
0.23495078086853027,
0.1504218578338623,
0.10712290555238724,
-0.3048707842826843,
-0.11707846075296402,
-0.14809541404247284,
0.19434024393558502,
0.14398038387298584,
0.13917821645736694,
0.12022844702005386,
0.12895892560482025,
0.29064369201660156,
-0.2268088459968567,
-0.12830819189548492,
0.3758434057235718,
0.40984293818473816,
-0.09550614655017853,
-0.0976443663239479,
-0.12834924459457397,
-0.21052533388137817,
0.2670111358165741,
0.1499147117137909,
-0.06875049322843552,
-0.22216437757015228,
0.0013498105108737946,
-0.5367097854614258,
0.09959211200475693,
-0.2541083097457886,
-0.08902855217456818,
0.12227766215801239,
0.2756505310535431,
-0.10884295403957367,
-0.14265888929367065,
-0.27473095059394836,
0.7404264807701111,
-0.2727469801902771,
-0.0009563720668666065,
-0.1247514933347702,
0.725227415561676,
-0.19863376021385193,
-0.2572709321975708,
0.30374470353126526,
0.3262370526790619,
0.34957078099250793,
-0.19909441471099854,
-0.04249102249741554,
0.2540804147720337,
0.162802055478096,
-0.0031858235597610474,
0.15264400839805603,
-0.1842278689146042,
0.12693090736865997,
-0.3235970437526703,
-0.045654818415641785,
0.11207899451255798,
0.17039257287979126,
0.05745919793844223,
-0.0004593208432197571,
0.30869442224502563,
0.13566075265407562,
0.23796331882476807,
0.08686375617980957,
-0.010293344967067242,
0.23215574026107788,
-0.18577714264392853,
-0.14410656690597534,
-0.029257752001285553,
0.20114733278751373,
0.04865482449531555,
0.44142335653305054,
0.0483611598610878,
0.07617232203483582,
-0.022915996611118317,
0.31040242314338684,
-0.04910026490688324,
0.12079054862260818,
0.022896593436598778,
-0.11715536564588547,
-0.1048634722828865,
-0.23311874270439148,
0.17344921827316284,
0.38710343837738037,
0.20406170189380646,
-0.3451324701309204,
-0.11166086047887802,
0.013420866802334785,
-0.08355347812175751,
0.2316899597644806,
0.005353085696697235,
0.0022929857950657606,
-0.04812318831682205,
0.09172723442316055,
-0.0714014321565628,
0.030726358294487,
-0.46865105628967285,
0.07603047043085098,
0.1556701511144638,
-0.4280252754688263,
0.14077161252498627,
-0.2582572400569916,
0.1483774483203888,
-0.23812046647071838,
-0.021542727947235107,
-0.04815855249762535,
-0.06632312387228012,
-0.15769131481647491,
0.05404865741729736,
-0.018775753676891327,
0.1475733369588852,
-0.05888840928673744,
0.22762075066566467,
-0.031517766416072845,
-0.45202067494392395,
-0.25710856914520264,
-0.18857978284358978,
-0.19573646783828735,
0.01396556943655014,
0.361784428358078,
-0.06517688184976578,
0.20191137492656708,
-0.309858500957489,
-0.24788926541805267,
-0.26091891527175903,
-0.16754837334156036,
0.063881054520607,
-0.0223945751786232,
0.3427661061286926,
0.15470056235790253,
0.36596357822418213,
0.26884597539901733,
-0.35049328207969666,
0.2628447115421295,
0.17698244750499725,
-0.017673231661319733,
0.14629220962524414,
-0.15648715198040009,
-0.20049050450325012,
-0.12654827535152435,
-0.008117467164993286,
-0.10800168663263321,
-0.4948783218860626,
-0.10966697335243225,
0.20817668735980988,
0.009257737547159195,
0.3041785955429077,
0.18839266896247864,
0.16177822649478912,
0.17024919390678406,
-0.13958774507045746,
-0.08834846317768097,
-0.19715629518032074,
0.3070194721221924,
-0.16210044920444489,
-0.27373719215393066,
-0.15263186395168304,
0.06251536309719086,
0.42759376764297485,
-0.13018913567066193,
-0.5123218894004822,
-0.3921584188938141,
-0.006824856624007225,
0.6115943193435669,
-0.009913802146911621,
-0.0569278821349144,
0.03614700585603714,
0.0804571881890297,
-0.04680865630507469,
-0.11963670700788498,
-0.46361806988716125,
0.2152136266231537,
0.041023656725883484,
0.0928654670715332,
0.3086799681186676,
0.2023318111896515,
-0.010006356984376907,
0.6984027028083801,
0.3154526948928833,
-0.21329040825366974,
0.3980475962162018,
-0.012865850701928139,
0.33119913935661316,
-0.15399757027626038,
-0.26258522272109985,
-0.2107182890176773,
-0.026873990893363953,
-0.06225531920790672,
0.12634965777397156,
0.005453864112496376,
-0.3261236846446991,
-0.1705092191696167,
-0.09422232210636139,
-0.1349790245294571,
-0.0980381965637207,
0.017513861879706383,
-0.05513039231300354,
0.286069393157959,
-0.05713410675525665,
0.08811789005994797,
-0.324101060628891,
0.16410744190216064,
0.05966651812195778,
0.3696877360343933,
0.009960494935512543,
0.050560131669044495,
-0.42526301741600037,
-0.08017589151859283,
-0.12229723483324051,
0.20486658811569214,
0.036928415298461914,
0.04785889387130737,
-0.07462641596794128,
0.21709445118904114,
-0.12588462233543396,
-0.19812916219234467,
0.015317186713218689,
0.1726258546113968,
0.42651569843292236,
0.19140033423900604,
-0.09929517656564713,
-0.40689170360565186,
-0.1285550594329834,
0.10174113512039185,
0.27847325801849365,
0.1616751253604889,
0.48429468274116516,
-0.478403776884079,
-0.18576166033744812,
0.2541249990463257,
0.16145867109298706,
0.022617455571889877,
0.1553235650062561,
-0.35579243302345276,
-0.7447224855422974,
-0.29682615399360657,
0.1103539988398552,
0.27393820881843567,
0.2059495598077774,
0.11710525304079056,
-0.0066476427018642426,
-0.03968106955289841,
-0.430547833442688,
-0.1689109355211258,
0.20748257637023926,
0.37889254093170166,
-0.08559536188840866,
0.09863753616809845,
-0.14011116325855255,
-0.1402766853570938,
0.2285837084054947,
0.39823946356773376,
0.0019058026373386383,
-0.058026522397994995,
0.12112888693809509,
0.022441066801548004,
0.19187268614768982,
0.3786850571632385,
-0.2532842755317688,
-0.13466507196426392,
0.21646177768707275,
0.10527829080820084,
-0.26776987314224243,
0.013875296339392662,
0.28003349900245667,
-0.19009363651275635,
-0.3829425871372223,
-0.6253344416618347,
0.4859091639518738,
-0.1382434368133545,
0.0038551613688468933,
0.06184631958603859,
0.07650209963321686,
-0.33935579657554626,
0.3723180294036865,
-0.10518575459718704,
0.8214064836502075,
0.21751075983047485,
-0.04354892298579216,
0.4398545026779175,
-0.387808620929718,
-0.06341466307640076,
-0.2971135973930359,
0.032623931765556335,
-0.23474577069282532,
-0.12506362795829773,
0.0481964647769928,
-0.2724829316139221,
0.09319577366113663,
-0.02364189177751541,
-0.22188450396060944,
0.021130220964550972,
-0.10103917866945267,
0.2882639169692993,
0.27559494972229004,
0.10103601217269897,
0.011730826459825039,
0.08566050231456757,
-0.7085355520248413,
0.13858942687511444,
-0.12400239706039429,
0.22606948018074036,
-0.08147915452718735,
-0.1582469791173935,
-0.15665653347969055,
-0.37469297647476196,
-0.5349578857421875,
0.22741428017616272,
-0.31877401471138,
0.213850736618042,
-0.1821802705526352,
-0.2951471209526062,
0.035159338265657425,
0.2423878014087677,
0.3479490876197815,
0.2520563006401062,
-0.23328912258148193,
0.3488054573535919,
-0.24054598808288574,
0.029120279476046562,
-0.16462288796901703,
0.14714036881923676,
0.005389880388975143,
-0.2588062882423401,
-0.061809226870536804,
0.05599389225244522,
-0.2179597169160843,
-0.48859357833862305,
0.0008536875247955322,
0.18903040885925293,
-0.10012330114841461,
-0.21097713708877563,
-0.2015291303396225,
0.13800647854804993,
0.2726317346096039,
-0.34724923968315125,
0.17758634686470032,
0.1384921669960022,
-0.21059055626392365,
-0.0351356640458107,
-0.02303333953022957,
-0.2737721800804138,
-0.1358015090227127,
0.2166675627231598,
-0.13005557656288147,
0.15117856860160828,
0.5720551013946533,
0.028088901191949844,
-0.011574793606996536,
-0.24908792972564697,
0.01051872968673706,
0.36119747161865234,
-0.38382190465927124,
0.23870199918746948,
-0.16955387592315674,
-0.03165087848901749,
-0.12153380364179611,
0.24253815412521362,
0.18700188398361206,
-0.2155751883983612,
0.09456653892993927,
-0.42239370942115784,
-0.10700958222150803,
0.09301450848579407,
-0.002225983887910843,
0.20542539656162262,
0.07460617274045944,
0.2208656668663025,
-0.19579032063484192,
0.03865571320056915,
-0.3272407352924347,
0.2660551965236664,
-0.35846424102783203,
0.12118979543447495,
0.4388751983642578,
-0.2382165789604187,
0.3543813228607178,
-0.022005416452884674,
0.17192582786083221,
0.008426854386925697,
-0.11204943805932999,
-0.24806758761405945,
-0.17881695926189423,
0.06999213993549347,
-0.11273232847452164,
-0.015561992302536964,
-0.01889735460281372,
-0.0640069842338562,
0.01586771197617054,
-0.12465529143810272,
0.29751521348953247,
0.11025134474039078,
0.056531425565481186,
-0.02520434930920601,
0.06474509090185165,
0.08524123579263687,
-0.2671075463294983,
0.024681396782398224,
-0.25355711579322815,
0.40012985467910767,
0.23314565420150757,
0.2295524626970291,
-0.03726667910814285,
-0.10748574137687683,
-0.05951901525259018,
0.06854867190122604,
0.10431492328643799,
0.3957138657569885,
0.30083614587783813,
-0.4244508743286133,
0.01616550236940384,
0.2585149109363556,
-0.10653741657733917,
0.18230509757995605,
-0.27760905027389526,
0.1948218196630478,
0.043976325541734695,
0.1707150936126709,
-0.13777847588062286,
-0.192750483751297,
0.2347525805234909,
-0.25594663619995117,
0.06964370608329773,
0.3191137909889221,
0.15579649806022644,
-0.0727914571762085,
-0.10050460696220398,
0.0681224837899208,
0.6314305067062378,
0.20859435200691223,
0.2742532789707184,
0.3170742392539978,
0.10632750391960144,
0.007212433964014053,
-0.26398301124572754,
0.18446926772594452,
0.1645270138978958,
0.3289508819580078,
-0.3135349154472351,
0.4106318950653076,
0.12092194706201553,
0.054003097116947174,
0.10479913651943207,
-0.2058165967464447,
0.1527545303106308,
0.24663805961608887,
-0.00807681679725647,
0.09649883210659027,
-0.01673438400030136,
0.14272591471672058,
-0.4825272262096405,
0.13422466814517975,
-0.1952827125787735,
-0.12088599801063538,
-0.1004636213183403,
0.10443969070911407,
-0.19551894068717957,
-0.21266448497772217,
-0.3696012794971466,
-0.07764804363250732,
-0.0689597874879837,
0.0722293108701706,
0.19905614852905273,
0.06624840945005417,
-0.10714627802371979,
0.0741150751709938,
-0.03748159855604172,
0.3358444571495056,
0.13820073008537292,
-0.27885791659355164,
0.4219970107078552,
0.08418398350477219,
-0.1854325532913208,
0.04080178588628769,
0.19232504069805145,
0.6868112683296204,
0.3264051675796509,
0.12538179755210876,
-0.20975032448768616,
0.18548206984996796,
-0.1815427988767624,
-0.13430970907211304,
0.0408783033490181,
-0.09398582577705383,
0.2579249441623688,
0.15108656883239746,
0.2679654657840729,
-0.18706193566322327,
-0.10585232079029083,
-0.00008929893374443054,
-0.21929576992988586,
-0.28976234793663025,
0.5580735206604004,
-0.12223146855831146,
-0.36896857619285583,
-0.08289569616317749,
-0.1019195094704628,
0.001373380422592163,
0.03634263202548027,
0.22633305191993713,
0.15618222951889038,
-0.03431106358766556,
0.09477883577346802,
0.10810358822345734,
0.10852383077144623,
0.4726184010505676,
0.24114760756492615,
-0.11102081090211868,
-0.3880901336669922,
-0.36145710945129395,
-0.3379994034767151,
0.005516059696674347,
-0.14070460200309753,
-0.2692480683326721,
0.22197002172470093,
-0.043902091681957245,
-0.02551424503326416,
0.14709502458572388,
0.2950381636619568,
-0.19122521579265594,
0.13222277164459229,
0.10578612238168716,
-0.40625208616256714,
-0.05506749823689461,
-0.08816148340702057,
0.1412333995103836,
0.03388394042849541,
-0.382242888212204,
0.011004358530044556,
0.23810464143753052,
0.14864149689674377,
0.07033172249794006,
-0.11101491004228592,
0.13018643856048584,
-0.7128452062606812,
0.38158494234085083,
-0.08155224472284317,
0.16211272776126862,
-0.07520867884159088,
-0.32693707942962646,
-0.18492788076400757,
-0.20958378911018372,
-0.01162555068731308,
0.1481730341911316,
-0.048580434173345566,
0.44349485635757446,
-0.07550673931837082,
-0.30861523747444153,
-0.46283283829689026,
0.3745400607585907,
0.2511618137359619,
-0.08699706196784973,
-0.027063172310590744,
-0.0007318397983908653,
-0.22135230898857117,
-0.07950196415185928,
0.1490948498249054,
0.11044977605342865,
-0.12837526202201843,
0.13260462880134583,
-0.2615555226802826,
-0.28827348351478577,
0.41958868503570557,
-0.3508787155151367,
-0.3608841001987457,
-0.08346858620643616,
0.36087581515312195,
-0.08901598304510117,
0.2179589569568634,
-0.23092755675315857,
0.17149507999420166,
0.38374239206314087,
0.08547656238079071,
-0.33614373207092285,
0.26422521471977234,
0.07754863798618317,
0.12074759602546692,
0.04437660798430443,
0.2150428742170334,
-0.04598984122276306,
-0.2682962119579315,
0.1492232382297516,
-0.25478997826576233
] |
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 | 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 | [
-0.21699845790863037,
-0.06861083209514618,
-0.08182676136493683,
0.21229784190654755,
0.22685489058494568,
0.02494252473115921,
0.42694762349128723,
0.5157313346862793,
0.07178185880184174,
-0.03193691372871399,
0.2613385021686554,
0.543058454990387,
-0.08034840226173401,
0.21459496021270752,
0.2113286852836609,
0.05113040655851364,
-0.10132233053445816,
0.22473865747451782,
-0.08972510695457458,
0.17588916420936584,
-0.09670110046863556,
0.28047269582748413,
-0.20129846036434174,
0.023714333772659302,
-0.17523424327373505,
-0.03522060066461563,
-0.004236252978444099,
0.4233063757419586,
-0.08968979120254517,
-0.538083016872406,
0.46554866433143616,
-0.05531889572739601,
0.23342415690422058,
0.672951877117157,
-0.00011354772868799046,
0.22957409918308258,
0.3864312171936035,
-0.20295633375644684,
-0.5747056603431702,
-0.27285999059677124,
-0.6309577822685242,
-0.0821213498711586,
0.0028608583379536867,
-0.3504936397075653,
-0.2567759156227112,
0.24367958307266235,
-0.0602470263838768,
-0.3184722065925598,
0.49225282669067383,
0.507375955581665,
0.19498060643672943,
0.3396490216255188,
0.03114933893084526,
-0.28612449765205383,
0.06215358525514603,
0.12005948275327682,
-0.1905907392501831,
0.52586829662323,
0.10393786430358887,
-0.12607520818710327,
0.144137442111969,
0.05974549427628517,
-0.10019624978303909,
-0.07304482161998749,
0.24762433767318726,
-0.09910760074853897,
0.3479306399822235,
-0.15664441883563995,
0.2766368091106415,
-0.062155745923519135,
0.17318463325500488,
-0.4357229173183441,
-0.1563977301120758,
-0.16240036487579346,
-0.1204901784658432,
-0.2071826457977295,
0.06616353988647461,
0.159918412566185,
-0.22108633816242218,
0.27460673451423645,
-0.12665612995624542,
0.04779041185975075,
-0.12531879544258118,
-0.0673929750919342,
0.00249461829662323,
0.17155003547668457,
-0.12196734547615051,
-0.10615234822034836,
-0.037843164056539536,
0.09750452637672424,
-0.13656388223171234,
-0.30351126194000244,
-0.10475991666316986,
0.14943157136440277,
0.07926377654075623,
0.0774395763874054,
0.16461612284183502,
-0.061839498579502106,
0.19293546676635742,
0.39457815885543823,
0.059925779700279236,
0.12895485758781433,
0.06863069534301758,
0.12694445252418518,
0.06491172313690186,
0.11586225032806396,
-0.024153530597686768,
0.2681928277015686,
0.38912445306777954,
0.39122843742370605,
0.07129670679569244,
-0.031694136559963226,
-0.2134537249803543,
-0.030740775167942047,
0.05462131276726723,
0.010450602509081364,
0.5441199541091919,
-0.19061899185180664,
-0.24704276025295258,
-0.07335903495550156,
0.00575382262468338,
-0.09354427456855774,
0.21478210389614105,
0.4276276230812073,
0.06742726266384125,
0.04271313548088074,
0.08377821743488312,
0.3162097930908203,
0.06044591963291168,
0.1086575835943222,
-0.25617384910583496,
-0.08092924952507019,
-0.12055374681949615,
0.06255599111318588,
0.164304718375206,
-0.4302118420600891,
0.42366892099380493,
0.22054988145828247,
0.041807688772678375,
-0.26799851655960083,
-0.06568624824285507,
0.003077828325331211,
-0.22800463438034058,
0.11645135283470154,
-0.04906979203224182,
0.055801160633563995,
0.2630631625652313,
-0.47336435317993164,
-0.09442400187253952,
0.0457465834915638,
-0.345973938703537,
-0.5064621567726135,
0.016907792538404465,
0.2109142690896988,
-0.2352408766746521,
0.03420756012201309,
-0.7249212861061096,
-0.1575404703617096,
0.26731929183006287,
-0.01083444058895111,
-0.12478383630514145,
-0.14075304567813873,
-0.07831871509552002,
-0.13800793886184692,
0.4682033360004425,
0.5949926376342773,
0.014067422598600388,
-0.07514820992946625,
0.10217549651861191,
0.08337409049272537,
0.2408108413219452,
-0.008574489504098892,
-0.35540804266929626,
0.3678346872329712,
-0.4717828631401062,
0.08437980711460114,
0.25839370489120483,
-0.3019835352897644,
-0.12702058255672455,
0.32081425189971924,
-0.12273240834474564,
0.08720514178276062,
0.16029715538024902,
-0.29060494899749756,
-0.02079993486404419,
-0.16193069517612457,
0.160752534866333,
0.23495078086853027,
0.1504218578338623,
0.10712290555238724,
-0.3048707842826843,
-0.11707846075296402,
-0.14809541404247284,
0.19434024393558502,
0.14398038387298584,
0.13917821645736694,
0.12022844702005386,
0.12895892560482025,
0.29064369201660156,
-0.2268088459968567,
-0.12830819189548492,
0.3758434057235718,
0.40984293818473816,
-0.09550614655017853,
-0.0976443663239479,
-0.12834924459457397,
-0.21052533388137817,
0.2670111358165741,
0.1499147117137909,
-0.06875049322843552,
-0.22216437757015228,
0.0013498105108737946,
-0.5367097854614258,
0.09959211200475693,
-0.2541083097457886,
-0.08902855217456818,
0.12227766215801239,
0.2756505310535431,
-0.10884295403957367,
-0.14265888929367065,
-0.27473095059394836,
0.7404264807701111,
-0.2727469801902771,
-0.0009563720668666065,
-0.1247514933347702,
0.725227415561676,
-0.19863376021385193,
-0.2572709321975708,
0.30374470353126526,
0.3262370526790619,
0.34957078099250793,
-0.19909441471099854,
-0.04249102249741554,
0.2540804147720337,
0.162802055478096,
-0.0031858235597610474,
0.15264400839805603,
-0.1842278689146042,
0.12693090736865997,
-0.3235970437526703,
-0.045654818415641785,
0.11207899451255798,
0.17039257287979126,
0.05745919793844223,
-0.0004593208432197571,
0.30869442224502563,
0.13566075265407562,
0.23796331882476807,
0.08686375617980957,
-0.010293344967067242,
0.23215574026107788,
-0.18577714264392853,
-0.14410656690597534,
-0.029257752001285553,
0.20114733278751373,
0.04865482449531555,
0.44142335653305054,
0.0483611598610878,
0.07617232203483582,
-0.022915996611118317,
0.31040242314338684,
-0.04910026490688324,
0.12079054862260818,
0.022896593436598778,
-0.11715536564588547,
-0.1048634722828865,
-0.23311874270439148,
0.17344921827316284,
0.38710343837738037,
0.20406170189380646,
-0.3451324701309204,
-0.11166086047887802,
0.013420866802334785,
-0.08355347812175751,
0.2316899597644806,
0.005353085696697235,
0.0022929857950657606,
-0.04812318831682205,
0.09172723442316055,
-0.0714014321565628,
0.030726358294487,
-0.46865105628967285,
0.07603047043085098,
0.1556701511144638,
-0.4280252754688263,
0.14077161252498627,
-0.2582572400569916,
0.1483774483203888,
-0.23812046647071838,
-0.021542727947235107,
-0.04815855249762535,
-0.06632312387228012,
-0.15769131481647491,
0.05404865741729736,
-0.018775753676891327,
0.1475733369588852,
-0.05888840928673744,
0.22762075066566467,
-0.031517766416072845,
-0.45202067494392395,
-0.25710856914520264,
-0.18857978284358978,
-0.19573646783828735,
0.01396556943655014,
0.361784428358078,
-0.06517688184976578,
0.20191137492656708,
-0.309858500957489,
-0.24788926541805267,
-0.26091891527175903,
-0.16754837334156036,
0.063881054520607,
-0.0223945751786232,
0.3427661061286926,
0.15470056235790253,
0.36596357822418213,
0.26884597539901733,
-0.35049328207969666,
0.2628447115421295,
0.17698244750499725,
-0.017673231661319733,
0.14629220962524414,
-0.15648715198040009,
-0.20049050450325012,
-0.12654827535152435,
-0.008117467164993286,
-0.10800168663263321,
-0.4948783218860626,
-0.10966697335243225,
0.20817668735980988,
0.009257737547159195,
0.3041785955429077,
0.18839266896247864,
0.16177822649478912,
0.17024919390678406,
-0.13958774507045746,
-0.08834846317768097,
-0.19715629518032074,
0.3070194721221924,
-0.16210044920444489,
-0.27373719215393066,
-0.15263186395168304,
0.06251536309719086,
0.42759376764297485,
-0.13018913567066193,
-0.5123218894004822,
-0.3921584188938141,
-0.006824856624007225,
0.6115943193435669,
-0.009913802146911621,
-0.0569278821349144,
0.03614700585603714,
0.0804571881890297,
-0.04680865630507469,
-0.11963670700788498,
-0.46361806988716125,
0.2152136266231537,
0.041023656725883484,
0.0928654670715332,
0.3086799681186676,
0.2023318111896515,
-0.010006356984376907,
0.6984027028083801,
0.3154526948928833,
-0.21329040825366974,
0.3980475962162018,
-0.012865850701928139,
0.33119913935661316,
-0.15399757027626038,
-0.26258522272109985,
-0.2107182890176773,
-0.026873990893363953,
-0.06225531920790672,
0.12634965777397156,
0.005453864112496376,
-0.3261236846446991,
-0.1705092191696167,
-0.09422232210636139,
-0.1349790245294571,
-0.0980381965637207,
0.017513861879706383,
-0.05513039231300354,
0.286069393157959,
-0.05713410675525665,
0.08811789005994797,
-0.324101060628891,
0.16410744190216064,
0.05966651812195778,
0.3696877360343933,
0.009960494935512543,
0.050560131669044495,
-0.42526301741600037,
-0.08017589151859283,
-0.12229723483324051,
0.20486658811569214,
0.036928415298461914,
0.04785889387130737,
-0.07462641596794128,
0.21709445118904114,
-0.12588462233543396,
-0.19812916219234467,
0.015317186713218689,
0.1726258546113968,
0.42651569843292236,
0.19140033423900604,
-0.09929517656564713,
-0.40689170360565186,
-0.1285550594329834,
0.10174113512039185,
0.27847325801849365,
0.1616751253604889,
0.48429468274116516,
-0.478403776884079,
-0.18576166033744812,
0.2541249990463257,
0.16145867109298706,
0.022617455571889877,
0.1553235650062561,
-0.35579243302345276,
-0.7447224855422974,
-0.29682615399360657,
0.1103539988398552,
0.27393820881843567,
0.2059495598077774,
0.11710525304079056,
-0.0066476427018642426,
-0.03968106955289841,
-0.430547833442688,
-0.1689109355211258,
0.20748257637023926,
0.37889254093170166,
-0.08559536188840866,
0.09863753616809845,
-0.14011116325855255,
-0.1402766853570938,
0.2285837084054947,
0.39823946356773376,
0.0019058026373386383,
-0.058026522397994995,
0.12112888693809509,
0.022441066801548004,
0.19187268614768982,
0.3786850571632385,
-0.2532842755317688,
-0.13466507196426392,
0.21646177768707275,
0.10527829080820084,
-0.26776987314224243,
0.013875296339392662,
0.28003349900245667,
-0.19009363651275635,
-0.3829425871372223,
-0.6253344416618347,
0.4859091639518738,
-0.1382434368133545,
0.0038551613688468933,
0.06184631958603859,
0.07650209963321686,
-0.33935579657554626,
0.3723180294036865,
-0.10518575459718704,
0.8214064836502075,
0.21751075983047485,
-0.04354892298579216,
0.4398545026779175,
-0.387808620929718,
-0.06341466307640076,
-0.2971135973930359,
0.032623931765556335,
-0.23474577069282532,
-0.12506362795829773,
0.0481964647769928,
-0.2724829316139221,
0.09319577366113663,
-0.02364189177751541,
-0.22188450396060944,
0.021130220964550972,
-0.10103917866945267,
0.2882639169692993,
0.27559494972229004,
0.10103601217269897,
0.011730826459825039,
0.08566050231456757,
-0.7085355520248413,
0.13858942687511444,
-0.12400239706039429,
0.22606948018074036,
-0.08147915452718735,
-0.1582469791173935,
-0.15665653347969055,
-0.37469297647476196,
-0.5349578857421875,
0.22741428017616272,
-0.31877401471138,
0.213850736618042,
-0.1821802705526352,
-0.2951471209526062,
0.035159338265657425,
0.2423878014087677,
0.3479490876197815,
0.2520563006401062,
-0.23328912258148193,
0.3488054573535919,
-0.24054598808288574,
0.029120279476046562,
-0.16462288796901703,
0.14714036881923676,
0.005389880388975143,
-0.2588062882423401,
-0.061809226870536804,
0.05599389225244522,
-0.2179597169160843,
-0.48859357833862305,
0.0008536875247955322,
0.18903040885925293,
-0.10012330114841461,
-0.21097713708877563,
-0.2015291303396225,
0.13800647854804993,
0.2726317346096039,
-0.34724923968315125,
0.17758634686470032,
0.1384921669960022,
-0.21059055626392365,
-0.0351356640458107,
-0.02303333953022957,
-0.2737721800804138,
-0.1358015090227127,
0.2166675627231598,
-0.13005557656288147,
0.15117856860160828,
0.5720551013946533,
0.028088901191949844,
-0.011574793606996536,
-0.24908792972564697,
0.01051872968673706,
0.36119747161865234,
-0.38382190465927124,
0.23870199918746948,
-0.16955387592315674,
-0.03165087848901749,
-0.12153380364179611,
0.24253815412521362,
0.18700188398361206,
-0.2155751883983612,
0.09456653892993927,
-0.42239370942115784,
-0.10700958222150803,
0.09301450848579407,
-0.002225983887910843,
0.20542539656162262,
0.07460617274045944,
0.2208656668663025,
-0.19579032063484192,
0.03865571320056915,
-0.3272407352924347,
0.2660551965236664,
-0.35846424102783203,
0.12118979543447495,
0.4388751983642578,
-0.2382165789604187,
0.3543813228607178,
-0.022005416452884674,
0.17192582786083221,
0.008426854386925697,
-0.11204943805932999,
-0.24806758761405945,
-0.17881695926189423,
0.06999213993549347,
-0.11273232847452164,
-0.015561992302536964,
-0.01889735460281372,
-0.0640069842338562,
0.01586771197617054,
-0.12465529143810272,
0.29751521348953247,
0.11025134474039078,
0.056531425565481186,
-0.02520434930920601,
0.06474509090185165,
0.08524123579263687,
-0.2671075463294983,
0.024681396782398224,
-0.25355711579322815,
0.40012985467910767,
0.23314565420150757,
0.2295524626970291,
-0.03726667910814285,
-0.10748574137687683,
-0.05951901525259018,
0.06854867190122604,
0.10431492328643799,
0.3957138657569885,
0.30083614587783813,
-0.4244508743286133,
0.01616550236940384,
0.2585149109363556,
-0.10653741657733917,
0.18230509757995605,
-0.27760905027389526,
0.1948218196630478,
0.043976325541734695,
0.1707150936126709,
-0.13777847588062286,
-0.192750483751297,
0.2347525805234909,
-0.25594663619995117,
0.06964370608329773,
0.3191137909889221,
0.15579649806022644,
-0.0727914571762085,
-0.10050460696220398,
0.0681224837899208,
0.6314305067062378,
0.20859435200691223,
0.2742532789707184,
0.3170742392539978,
0.10632750391960144,
0.007212433964014053,
-0.26398301124572754,
0.18446926772594452,
0.1645270138978958,
0.3289508819580078,
-0.3135349154472351,
0.4106318950653076,
0.12092194706201553,
0.054003097116947174,
0.10479913651943207,
-0.2058165967464447,
0.1527545303106308,
0.24663805961608887,
-0.00807681679725647,
0.09649883210659027,
-0.01673438400030136,
0.14272591471672058,
-0.4825272262096405,
0.13422466814517975,
-0.1952827125787735,
-0.12088599801063538,
-0.1004636213183403,
0.10443969070911407,
-0.19551894068717957,
-0.21266448497772217,
-0.3696012794971466,
-0.07764804363250732,
-0.0689597874879837,
0.0722293108701706,
0.19905614852905273,
0.06624840945005417,
-0.10714627802371979,
0.0741150751709938,
-0.03748159855604172,
0.3358444571495056,
0.13820073008537292,
-0.27885791659355164,
0.4219970107078552,
0.08418398350477219,
-0.1854325532913208,
0.04080178588628769,
0.19232504069805145,
0.6868112683296204,
0.3264051675796509,
0.12538179755210876,
-0.20975032448768616,
0.18548206984996796,
-0.1815427988767624,
-0.13430970907211304,
0.0408783033490181,
-0.09398582577705383,
0.2579249441623688,
0.15108656883239746,
0.2679654657840729,
-0.18706193566322327,
-0.10585232079029083,
-0.00008929893374443054,
-0.21929576992988586,
-0.28976234793663025,
0.5580735206604004,
-0.12223146855831146,
-0.36896857619285583,
-0.08289569616317749,
-0.1019195094704628,
0.001373380422592163,
0.03634263202548027,
0.22633305191993713,
0.15618222951889038,
-0.03431106358766556,
0.09477883577346802,
0.10810358822345734,
0.10852383077144623,
0.4726184010505676,
0.24114760756492615,
-0.11102081090211868,
-0.3880901336669922,
-0.36145710945129395,
-0.3379994034767151,
0.005516059696674347,
-0.14070460200309753,
-0.2692480683326721,
0.22197002172470093,
-0.043902091681957245,
-0.02551424503326416,
0.14709502458572388,
0.2950381636619568,
-0.19122521579265594,
0.13222277164459229,
0.10578612238168716,
-0.40625208616256714,
-0.05506749823689461,
-0.08816148340702057,
0.1412333995103836,
0.03388394042849541,
-0.382242888212204,
0.011004358530044556,
0.23810464143753052,
0.14864149689674377,
0.07033172249794006,
-0.11101491004228592,
0.13018643856048584,
-0.7128452062606812,
0.38158494234085083,
-0.08155224472284317,
0.16211272776126862,
-0.07520867884159088,
-0.32693707942962646,
-0.18492788076400757,
-0.20958378911018372,
-0.01162555068731308,
0.1481730341911316,
-0.048580434173345566,
0.44349485635757446,
-0.07550673931837082,
-0.30861523747444153,
-0.46283283829689026,
0.3745400607585907,
0.2511618137359619,
-0.08699706196784973,
-0.027063172310590744,
-0.0007318397983908653,
-0.22135230898857117,
-0.07950196415185928,
0.1490948498249054,
0.11044977605342865,
-0.12837526202201843,
0.13260462880134583,
-0.2615555226802826,
-0.28827348351478577,
0.41958868503570557,
-0.3508787155151367,
-0.3608841001987457,
-0.08346858620643616,
0.36087581515312195,
-0.08901598304510117,
0.2179589569568634,
-0.23092755675315857,
0.17149507999420166,
0.38374239206314087,
0.08547656238079071,
-0.33614373207092285,
0.26422521471977234,
0.07754863798618317,
0.12074759602546692,
0.04437660798430443,
0.2150428742170334,
-0.04598984122276306,
-0.2682962119579315,
0.1492232382297516,
-0.25478997826576233
] |
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 | 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 | [
-0.21699845790863037,
-0.06861083209514618,
-0.08182676136493683,
0.21229784190654755,
0.22685489058494568,
0.02494252473115921,
0.42694762349128723,
0.5157313346862793,
0.07178185880184174,
-0.03193691372871399,
0.2613385021686554,
0.543058454990387,
-0.08034840226173401,
0.21459496021270752,
0.2113286852836609,
0.05113040655851364,
-0.10132233053445816,
0.22473865747451782,
-0.08972510695457458,
0.17588916420936584,
-0.09670110046863556,
0.28047269582748413,
-0.20129846036434174,
0.023714333772659302,
-0.17523424327373505,
-0.03522060066461563,
-0.004236252978444099,
0.4233063757419586,
-0.08968979120254517,
-0.538083016872406,
0.46554866433143616,
-0.05531889572739601,
0.23342415690422058,
0.672951877117157,
-0.00011354772868799046,
0.22957409918308258,
0.3864312171936035,
-0.20295633375644684,
-0.5747056603431702,
-0.27285999059677124,
-0.6309577822685242,
-0.0821213498711586,
0.0028608583379536867,
-0.3504936397075653,
-0.2567759156227112,
0.24367958307266235,
-0.0602470263838768,
-0.3184722065925598,
0.49225282669067383,
0.507375955581665,
0.19498060643672943,
0.3396490216255188,
0.03114933893084526,
-0.28612449765205383,
0.06215358525514603,
0.12005948275327682,
-0.1905907392501831,
0.52586829662323,
0.10393786430358887,
-0.12607520818710327,
0.144137442111969,
0.05974549427628517,
-0.10019624978303909,
-0.07304482161998749,
0.24762433767318726,
-0.09910760074853897,
0.3479306399822235,
-0.15664441883563995,
0.2766368091106415,
-0.062155745923519135,
0.17318463325500488,
-0.4357229173183441,
-0.1563977301120758,
-0.16240036487579346,
-0.1204901784658432,
-0.2071826457977295,
0.06616353988647461,
0.159918412566185,
-0.22108633816242218,
0.27460673451423645,
-0.12665612995624542,
0.04779041185975075,
-0.12531879544258118,
-0.0673929750919342,
0.00249461829662323,
0.17155003547668457,
-0.12196734547615051,
-0.10615234822034836,
-0.037843164056539536,
0.09750452637672424,
-0.13656388223171234,
-0.30351126194000244,
-0.10475991666316986,
0.14943157136440277,
0.07926377654075623,
0.0774395763874054,
0.16461612284183502,
-0.061839498579502106,
0.19293546676635742,
0.39457815885543823,
0.059925779700279236,
0.12895485758781433,
0.06863069534301758,
0.12694445252418518,
0.06491172313690186,
0.11586225032806396,
-0.024153530597686768,
0.2681928277015686,
0.38912445306777954,
0.39122843742370605,
0.07129670679569244,
-0.031694136559963226,
-0.2134537249803543,
-0.030740775167942047,
0.05462131276726723,
0.010450602509081364,
0.5441199541091919,
-0.19061899185180664,
-0.24704276025295258,
-0.07335903495550156,
0.00575382262468338,
-0.09354427456855774,
0.21478210389614105,
0.4276276230812073,
0.06742726266384125,
0.04271313548088074,
0.08377821743488312,
0.3162097930908203,
0.06044591963291168,
0.1086575835943222,
-0.25617384910583496,
-0.08092924952507019,
-0.12055374681949615,
0.06255599111318588,
0.164304718375206,
-0.4302118420600891,
0.42366892099380493,
0.22054988145828247,
0.041807688772678375,
-0.26799851655960083,
-0.06568624824285507,
0.003077828325331211,
-0.22800463438034058,
0.11645135283470154,
-0.04906979203224182,
0.055801160633563995,
0.2630631625652313,
-0.47336435317993164,
-0.09442400187253952,
0.0457465834915638,
-0.345973938703537,
-0.5064621567726135,
0.016907792538404465,
0.2109142690896988,
-0.2352408766746521,
0.03420756012201309,
-0.7249212861061096,
-0.1575404703617096,
0.26731929183006287,
-0.01083444058895111,
-0.12478383630514145,
-0.14075304567813873,
-0.07831871509552002,
-0.13800793886184692,
0.4682033360004425,
0.5949926376342773,
0.014067422598600388,
-0.07514820992946625,
0.10217549651861191,
0.08337409049272537,
0.2408108413219452,
-0.008574489504098892,
-0.35540804266929626,
0.3678346872329712,
-0.4717828631401062,
0.08437980711460114,
0.25839370489120483,
-0.3019835352897644,
-0.12702058255672455,
0.32081425189971924,
-0.12273240834474564,
0.08720514178276062,
0.16029715538024902,
-0.29060494899749756,
-0.02079993486404419,
-0.16193069517612457,
0.160752534866333,
0.23495078086853027,
0.1504218578338623,
0.10712290555238724,
-0.3048707842826843,
-0.11707846075296402,
-0.14809541404247284,
0.19434024393558502,
0.14398038387298584,
0.13917821645736694,
0.12022844702005386,
0.12895892560482025,
0.29064369201660156,
-0.2268088459968567,
-0.12830819189548492,
0.3758434057235718,
0.40984293818473816,
-0.09550614655017853,
-0.0976443663239479,
-0.12834924459457397,
-0.21052533388137817,
0.2670111358165741,
0.1499147117137909,
-0.06875049322843552,
-0.22216437757015228,
0.0013498105108737946,
-0.5367097854614258,
0.09959211200475693,
-0.2541083097457886,
-0.08902855217456818,
0.12227766215801239,
0.2756505310535431,
-0.10884295403957367,
-0.14265888929367065,
-0.27473095059394836,
0.7404264807701111,
-0.2727469801902771,
-0.0009563720668666065,
-0.1247514933347702,
0.725227415561676,
-0.19863376021385193,
-0.2572709321975708,
0.30374470353126526,
0.3262370526790619,
0.34957078099250793,
-0.19909441471099854,
-0.04249102249741554,
0.2540804147720337,
0.162802055478096,
-0.0031858235597610474,
0.15264400839805603,
-0.1842278689146042,
0.12693090736865997,
-0.3235970437526703,
-0.045654818415641785,
0.11207899451255798,
0.17039257287979126,
0.05745919793844223,
-0.0004593208432197571,
0.30869442224502563,
0.13566075265407562,
0.23796331882476807,
0.08686375617980957,
-0.010293344967067242,
0.23215574026107788,
-0.18577714264392853,
-0.14410656690597534,
-0.029257752001285553,
0.20114733278751373,
0.04865482449531555,
0.44142335653305054,
0.0483611598610878,
0.07617232203483582,
-0.022915996611118317,
0.31040242314338684,
-0.04910026490688324,
0.12079054862260818,
0.022896593436598778,
-0.11715536564588547,
-0.1048634722828865,
-0.23311874270439148,
0.17344921827316284,
0.38710343837738037,
0.20406170189380646,
-0.3451324701309204,
-0.11166086047887802,
0.013420866802334785,
-0.08355347812175751,
0.2316899597644806,
0.005353085696697235,
0.0022929857950657606,
-0.04812318831682205,
0.09172723442316055,
-0.0714014321565628,
0.030726358294487,
-0.46865105628967285,
0.07603047043085098,
0.1556701511144638,
-0.4280252754688263,
0.14077161252498627,
-0.2582572400569916,
0.1483774483203888,
-0.23812046647071838,
-0.021542727947235107,
-0.04815855249762535,
-0.06632312387228012,
-0.15769131481647491,
0.05404865741729736,
-0.018775753676891327,
0.1475733369588852,
-0.05888840928673744,
0.22762075066566467,
-0.031517766416072845,
-0.45202067494392395,
-0.25710856914520264,
-0.18857978284358978,
-0.19573646783828735,
0.01396556943655014,
0.361784428358078,
-0.06517688184976578,
0.20191137492656708,
-0.309858500957489,
-0.24788926541805267,
-0.26091891527175903,
-0.16754837334156036,
0.063881054520607,
-0.0223945751786232,
0.3427661061286926,
0.15470056235790253,
0.36596357822418213,
0.26884597539901733,
-0.35049328207969666,
0.2628447115421295,
0.17698244750499725,
-0.017673231661319733,
0.14629220962524414,
-0.15648715198040009,
-0.20049050450325012,
-0.12654827535152435,
-0.008117467164993286,
-0.10800168663263321,
-0.4948783218860626,
-0.10966697335243225,
0.20817668735980988,
0.009257737547159195,
0.3041785955429077,
0.18839266896247864,
0.16177822649478912,
0.17024919390678406,
-0.13958774507045746,
-0.08834846317768097,
-0.19715629518032074,
0.3070194721221924,
-0.16210044920444489,
-0.27373719215393066,
-0.15263186395168304,
0.06251536309719086,
0.42759376764297485,
-0.13018913567066193,
-0.5123218894004822,
-0.3921584188938141,
-0.006824856624007225,
0.6115943193435669,
-0.009913802146911621,
-0.0569278821349144,
0.03614700585603714,
0.0804571881890297,
-0.04680865630507469,
-0.11963670700788498,
-0.46361806988716125,
0.2152136266231537,
0.041023656725883484,
0.0928654670715332,
0.3086799681186676,
0.2023318111896515,
-0.010006356984376907,
0.6984027028083801,
0.3154526948928833,
-0.21329040825366974,
0.3980475962162018,
-0.012865850701928139,
0.33119913935661316,
-0.15399757027626038,
-0.26258522272109985,
-0.2107182890176773,
-0.026873990893363953,
-0.06225531920790672,
0.12634965777397156,
0.005453864112496376,
-0.3261236846446991,
-0.1705092191696167,
-0.09422232210636139,
-0.1349790245294571,
-0.0980381965637207,
0.017513861879706383,
-0.05513039231300354,
0.286069393157959,
-0.05713410675525665,
0.08811789005994797,
-0.324101060628891,
0.16410744190216064,
0.05966651812195778,
0.3696877360343933,
0.009960494935512543,
0.050560131669044495,
-0.42526301741600037,
-0.08017589151859283,
-0.12229723483324051,
0.20486658811569214,
0.036928415298461914,
0.04785889387130737,
-0.07462641596794128,
0.21709445118904114,
-0.12588462233543396,
-0.19812916219234467,
0.015317186713218689,
0.1726258546113968,
0.42651569843292236,
0.19140033423900604,
-0.09929517656564713,
-0.40689170360565186,
-0.1285550594329834,
0.10174113512039185,
0.27847325801849365,
0.1616751253604889,
0.48429468274116516,
-0.478403776884079,
-0.18576166033744812,
0.2541249990463257,
0.16145867109298706,
0.022617455571889877,
0.1553235650062561,
-0.35579243302345276,
-0.7447224855422974,
-0.29682615399360657,
0.1103539988398552,
0.27393820881843567,
0.2059495598077774,
0.11710525304079056,
-0.0066476427018642426,
-0.03968106955289841,
-0.430547833442688,
-0.1689109355211258,
0.20748257637023926,
0.37889254093170166,
-0.08559536188840866,
0.09863753616809845,
-0.14011116325855255,
-0.1402766853570938,
0.2285837084054947,
0.39823946356773376,
0.0019058026373386383,
-0.058026522397994995,
0.12112888693809509,
0.022441066801548004,
0.19187268614768982,
0.3786850571632385,
-0.2532842755317688,
-0.13466507196426392,
0.21646177768707275,
0.10527829080820084,
-0.26776987314224243,
0.013875296339392662,
0.28003349900245667,
-0.19009363651275635,
-0.3829425871372223,
-0.6253344416618347,
0.4859091639518738,
-0.1382434368133545,
0.0038551613688468933,
0.06184631958603859,
0.07650209963321686,
-0.33935579657554626,
0.3723180294036865,
-0.10518575459718704,
0.8214064836502075,
0.21751075983047485,
-0.04354892298579216,
0.4398545026779175,
-0.387808620929718,
-0.06341466307640076,
-0.2971135973930359,
0.032623931765556335,
-0.23474577069282532,
-0.12506362795829773,
0.0481964647769928,
-0.2724829316139221,
0.09319577366113663,
-0.02364189177751541,
-0.22188450396060944,
0.021130220964550972,
-0.10103917866945267,
0.2882639169692993,
0.27559494972229004,
0.10103601217269897,
0.011730826459825039,
0.08566050231456757,
-0.7085355520248413,
0.13858942687511444,
-0.12400239706039429,
0.22606948018074036,
-0.08147915452718735,
-0.1582469791173935,
-0.15665653347969055,
-0.37469297647476196,
-0.5349578857421875,
0.22741428017616272,
-0.31877401471138,
0.213850736618042,
-0.1821802705526352,
-0.2951471209526062,
0.035159338265657425,
0.2423878014087677,
0.3479490876197815,
0.2520563006401062,
-0.23328912258148193,
0.3488054573535919,
-0.24054598808288574,
0.029120279476046562,
-0.16462288796901703,
0.14714036881923676,
0.005389880388975143,
-0.2588062882423401,
-0.061809226870536804,
0.05599389225244522,
-0.2179597169160843,
-0.48859357833862305,
0.0008536875247955322,
0.18903040885925293,
-0.10012330114841461,
-0.21097713708877563,
-0.2015291303396225,
0.13800647854804993,
0.2726317346096039,
-0.34724923968315125,
0.17758634686470032,
0.1384921669960022,
-0.21059055626392365,
-0.0351356640458107,
-0.02303333953022957,
-0.2737721800804138,
-0.1358015090227127,
0.2166675627231598,
-0.13005557656288147,
0.15117856860160828,
0.5720551013946533,
0.028088901191949844,
-0.011574793606996536,
-0.24908792972564697,
0.01051872968673706,
0.36119747161865234,
-0.38382190465927124,
0.23870199918746948,
-0.16955387592315674,
-0.03165087848901749,
-0.12153380364179611,
0.24253815412521362,
0.18700188398361206,
-0.2155751883983612,
0.09456653892993927,
-0.42239370942115784,
-0.10700958222150803,
0.09301450848579407,
-0.002225983887910843,
0.20542539656162262,
0.07460617274045944,
0.2208656668663025,
-0.19579032063484192,
0.03865571320056915,
-0.3272407352924347,
0.2660551965236664,
-0.35846424102783203,
0.12118979543447495,
0.4388751983642578,
-0.2382165789604187,
0.3543813228607178,
-0.022005416452884674,
0.17192582786083221,
0.008426854386925697,
-0.11204943805932999,
-0.24806758761405945,
-0.17881695926189423,
0.06999213993549347,
-0.11273232847452164,
-0.015561992302536964,
-0.01889735460281372,
-0.0640069842338562,
0.01586771197617054,
-0.12465529143810272,
0.29751521348953247,
0.11025134474039078,
0.056531425565481186,
-0.02520434930920601,
0.06474509090185165,
0.08524123579263687,
-0.2671075463294983,
0.024681396782398224,
-0.25355711579322815,
0.40012985467910767,
0.23314565420150757,
0.2295524626970291,
-0.03726667910814285,
-0.10748574137687683,
-0.05951901525259018,
0.06854867190122604,
0.10431492328643799,
0.3957138657569885,
0.30083614587783813,
-0.4244508743286133,
0.01616550236940384,
0.2585149109363556,
-0.10653741657733917,
0.18230509757995605,
-0.27760905027389526,
0.1948218196630478,
0.043976325541734695,
0.1707150936126709,
-0.13777847588062286,
-0.192750483751297,
0.2347525805234909,
-0.25594663619995117,
0.06964370608329773,
0.3191137909889221,
0.15579649806022644,
-0.0727914571762085,
-0.10050460696220398,
0.0681224837899208,
0.6314305067062378,
0.20859435200691223,
0.2742532789707184,
0.3170742392539978,
0.10632750391960144,
0.007212433964014053,
-0.26398301124572754,
0.18446926772594452,
0.1645270138978958,
0.3289508819580078,
-0.3135349154472351,
0.4106318950653076,
0.12092194706201553,
0.054003097116947174,
0.10479913651943207,
-0.2058165967464447,
0.1527545303106308,
0.24663805961608887,
-0.00807681679725647,
0.09649883210659027,
-0.01673438400030136,
0.14272591471672058,
-0.4825272262096405,
0.13422466814517975,
-0.1952827125787735,
-0.12088599801063538,
-0.1004636213183403,
0.10443969070911407,
-0.19551894068717957,
-0.21266448497772217,
-0.3696012794971466,
-0.07764804363250732,
-0.0689597874879837,
0.0722293108701706,
0.19905614852905273,
0.06624840945005417,
-0.10714627802371979,
0.0741150751709938,
-0.03748159855604172,
0.3358444571495056,
0.13820073008537292,
-0.27885791659355164,
0.4219970107078552,
0.08418398350477219,
-0.1854325532913208,
0.04080178588628769,
0.19232504069805145,
0.6868112683296204,
0.3264051675796509,
0.12538179755210876,
-0.20975032448768616,
0.18548206984996796,
-0.1815427988767624,
-0.13430970907211304,
0.0408783033490181,
-0.09398582577705383,
0.2579249441623688,
0.15108656883239746,
0.2679654657840729,
-0.18706193566322327,
-0.10585232079029083,
-0.00008929893374443054,
-0.21929576992988586,
-0.28976234793663025,
0.5580735206604004,
-0.12223146855831146,
-0.36896857619285583,
-0.08289569616317749,
-0.1019195094704628,
0.001373380422592163,
0.03634263202548027,
0.22633305191993713,
0.15618222951889038,
-0.03431106358766556,
0.09477883577346802,
0.10810358822345734,
0.10852383077144623,
0.4726184010505676,
0.24114760756492615,
-0.11102081090211868,
-0.3880901336669922,
-0.36145710945129395,
-0.3379994034767151,
0.005516059696674347,
-0.14070460200309753,
-0.2692480683326721,
0.22197002172470093,
-0.043902091681957245,
-0.02551424503326416,
0.14709502458572388,
0.2950381636619568,
-0.19122521579265594,
0.13222277164459229,
0.10578612238168716,
-0.40625208616256714,
-0.05506749823689461,
-0.08816148340702057,
0.1412333995103836,
0.03388394042849541,
-0.382242888212204,
0.011004358530044556,
0.23810464143753052,
0.14864149689674377,
0.07033172249794006,
-0.11101491004228592,
0.13018643856048584,
-0.7128452062606812,
0.38158494234085083,
-0.08155224472284317,
0.16211272776126862,
-0.07520867884159088,
-0.32693707942962646,
-0.18492788076400757,
-0.20958378911018372,
-0.01162555068731308,
0.1481730341911316,
-0.048580434173345566,
0.44349485635757446,
-0.07550673931837082,
-0.30861523747444153,
-0.46283283829689026,
0.3745400607585907,
0.2511618137359619,
-0.08699706196784973,
-0.027063172310590744,
-0.0007318397983908653,
-0.22135230898857117,
-0.07950196415185928,
0.1490948498249054,
0.11044977605342865,
-0.12837526202201843,
0.13260462880134583,
-0.2615555226802826,
-0.28827348351478577,
0.41958868503570557,
-0.3508787155151367,
-0.3608841001987457,
-0.08346858620643616,
0.36087581515312195,
-0.08901598304510117,
0.2179589569568634,
-0.23092755675315857,
0.17149507999420166,
0.38374239206314087,
0.08547656238079071,
-0.33614373207092285,
0.26422521471977234,
0.07754863798618317,
0.12074759602546692,
0.04437660798430443,
0.2150428742170334,
-0.04598984122276306,
-0.2682962119579315,
0.1492232382297516,
-0.25478997826576233
] |
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 | 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. | [
-0.21699845790863037,
-0.06861083209514618,
-0.08182676136493683,
0.21229784190654755,
0.22685489058494568,
0.02494252473115921,
0.42694762349128723,
0.5157313346862793,
0.07178185880184174,
-0.03193691372871399,
0.2613385021686554,
0.543058454990387,
-0.08034840226173401,
0.21459496021270752,
0.2113286852836609,
0.05113040655851364,
-0.10132233053445816,
0.22473865747451782,
-0.08972510695457458,
0.17588916420936584,
-0.09670110046863556,
0.28047269582748413,
-0.20129846036434174,
0.023714333772659302,
-0.17523424327373505,
-0.03522060066461563,
-0.004236252978444099,
0.4233063757419586,
-0.08968979120254517,
-0.538083016872406,
0.46554866433143616,
-0.05531889572739601,
0.23342415690422058,
0.672951877117157,
-0.00011354772868799046,
0.22957409918308258,
0.3864312171936035,
-0.20295633375644684,
-0.5747056603431702,
-0.27285999059677124,
-0.6309577822685242,
-0.0821213498711586,
0.0028608583379536867,
-0.3504936397075653,
-0.2567759156227112,
0.24367958307266235,
-0.0602470263838768,
-0.3184722065925598,
0.49225282669067383,
0.507375955581665,
0.19498060643672943,
0.3396490216255188,
0.03114933893084526,
-0.28612449765205383,
0.06215358525514603,
0.12005948275327682,
-0.1905907392501831,
0.52586829662323,
0.10393786430358887,
-0.12607520818710327,
0.144137442111969,
0.05974549427628517,
-0.10019624978303909,
-0.07304482161998749,
0.24762433767318726,
-0.09910760074853897,
0.3479306399822235,
-0.15664441883563995,
0.2766368091106415,
-0.062155745923519135,
0.17318463325500488,
-0.4357229173183441,
-0.1563977301120758,
-0.16240036487579346,
-0.1204901784658432,
-0.2071826457977295,
0.06616353988647461,
0.159918412566185,
-0.22108633816242218,
0.27460673451423645,
-0.12665612995624542,
0.04779041185975075,
-0.12531879544258118,
-0.0673929750919342,
0.00249461829662323,
0.17155003547668457,
-0.12196734547615051,
-0.10615234822034836,
-0.037843164056539536,
0.09750452637672424,
-0.13656388223171234,
-0.30351126194000244,
-0.10475991666316986,
0.14943157136440277,
0.07926377654075623,
0.0774395763874054,
0.16461612284183502,
-0.061839498579502106,
0.19293546676635742,
0.39457815885543823,
0.059925779700279236,
0.12895485758781433,
0.06863069534301758,
0.12694445252418518,
0.06491172313690186,
0.11586225032806396,
-0.024153530597686768,
0.2681928277015686,
0.38912445306777954,
0.39122843742370605,
0.07129670679569244,
-0.031694136559963226,
-0.2134537249803543,
-0.030740775167942047,
0.05462131276726723,
0.010450602509081364,
0.5441199541091919,
-0.19061899185180664,
-0.24704276025295258,
-0.07335903495550156,
0.00575382262468338,
-0.09354427456855774,
0.21478210389614105,
0.4276276230812073,
0.06742726266384125,
0.04271313548088074,
0.08377821743488312,
0.3162097930908203,
0.06044591963291168,
0.1086575835943222,
-0.25617384910583496,
-0.08092924952507019,
-0.12055374681949615,
0.06255599111318588,
0.164304718375206,
-0.4302118420600891,
0.42366892099380493,
0.22054988145828247,
0.041807688772678375,
-0.26799851655960083,
-0.06568624824285507,
0.003077828325331211,
-0.22800463438034058,
0.11645135283470154,
-0.04906979203224182,
0.055801160633563995,
0.2630631625652313,
-0.47336435317993164,
-0.09442400187253952,
0.0457465834915638,
-0.345973938703537,
-0.5064621567726135,
0.016907792538404465,
0.2109142690896988,
-0.2352408766746521,
0.03420756012201309,
-0.7249212861061096,
-0.1575404703617096,
0.26731929183006287,
-0.01083444058895111,
-0.12478383630514145,
-0.14075304567813873,
-0.07831871509552002,
-0.13800793886184692,
0.4682033360004425,
0.5949926376342773,
0.014067422598600388,
-0.07514820992946625,
0.10217549651861191,
0.08337409049272537,
0.2408108413219452,
-0.008574489504098892,
-0.35540804266929626,
0.3678346872329712,
-0.4717828631401062,
0.08437980711460114,
0.25839370489120483,
-0.3019835352897644,
-0.12702058255672455,
0.32081425189971924,
-0.12273240834474564,
0.08720514178276062,
0.16029715538024902,
-0.29060494899749756,
-0.02079993486404419,
-0.16193069517612457,
0.160752534866333,
0.23495078086853027,
0.1504218578338623,
0.10712290555238724,
-0.3048707842826843,
-0.11707846075296402,
-0.14809541404247284,
0.19434024393558502,
0.14398038387298584,
0.13917821645736694,
0.12022844702005386,
0.12895892560482025,
0.29064369201660156,
-0.2268088459968567,
-0.12830819189548492,
0.3758434057235718,
0.40984293818473816,
-0.09550614655017853,
-0.0976443663239479,
-0.12834924459457397,
-0.21052533388137817,
0.2670111358165741,
0.1499147117137909,
-0.06875049322843552,
-0.22216437757015228,
0.0013498105108737946,
-0.5367097854614258,
0.09959211200475693,
-0.2541083097457886,
-0.08902855217456818,
0.12227766215801239,
0.2756505310535431,
-0.10884295403957367,
-0.14265888929367065,
-0.27473095059394836,
0.7404264807701111,
-0.2727469801902771,
-0.0009563720668666065,
-0.1247514933347702,
0.725227415561676,
-0.19863376021385193,
-0.2572709321975708,
0.30374470353126526,
0.3262370526790619,
0.34957078099250793,
-0.19909441471099854,
-0.04249102249741554,
0.2540804147720337,
0.162802055478096,
-0.0031858235597610474,
0.15264400839805603,
-0.1842278689146042,
0.12693090736865997,
-0.3235970437526703,
-0.045654818415641785,
0.11207899451255798,
0.17039257287979126,
0.05745919793844223,
-0.0004593208432197571,
0.30869442224502563,
0.13566075265407562,
0.23796331882476807,
0.08686375617980957,
-0.010293344967067242,
0.23215574026107788,
-0.18577714264392853,
-0.14410656690597534,
-0.029257752001285553,
0.20114733278751373,
0.04865482449531555,
0.44142335653305054,
0.0483611598610878,
0.07617232203483582,
-0.022915996611118317,
0.31040242314338684,
-0.04910026490688324,
0.12079054862260818,
0.022896593436598778,
-0.11715536564588547,
-0.1048634722828865,
-0.23311874270439148,
0.17344921827316284,
0.38710343837738037,
0.20406170189380646,
-0.3451324701309204,
-0.11166086047887802,
0.013420866802334785,
-0.08355347812175751,
0.2316899597644806,
0.005353085696697235,
0.0022929857950657606,
-0.04812318831682205,
0.09172723442316055,
-0.0714014321565628,
0.030726358294487,
-0.46865105628967285,
0.07603047043085098,
0.1556701511144638,
-0.4280252754688263,
0.14077161252498627,
-0.2582572400569916,
0.1483774483203888,
-0.23812046647071838,
-0.021542727947235107,
-0.04815855249762535,
-0.06632312387228012,
-0.15769131481647491,
0.05404865741729736,
-0.018775753676891327,
0.1475733369588852,
-0.05888840928673744,
0.22762075066566467,
-0.031517766416072845,
-0.45202067494392395,
-0.25710856914520264,
-0.18857978284358978,
-0.19573646783828735,
0.01396556943655014,
0.361784428358078,
-0.06517688184976578,
0.20191137492656708,
-0.309858500957489,
-0.24788926541805267,
-0.26091891527175903,
-0.16754837334156036,
0.063881054520607,
-0.0223945751786232,
0.3427661061286926,
0.15470056235790253,
0.36596357822418213,
0.26884597539901733,
-0.35049328207969666,
0.2628447115421295,
0.17698244750499725,
-0.017673231661319733,
0.14629220962524414,
-0.15648715198040009,
-0.20049050450325012,
-0.12654827535152435,
-0.008117467164993286,
-0.10800168663263321,
-0.4948783218860626,
-0.10966697335243225,
0.20817668735980988,
0.009257737547159195,
0.3041785955429077,
0.18839266896247864,
0.16177822649478912,
0.17024919390678406,
-0.13958774507045746,
-0.08834846317768097,
-0.19715629518032074,
0.3070194721221924,
-0.16210044920444489,
-0.27373719215393066,
-0.15263186395168304,
0.06251536309719086,
0.42759376764297485,
-0.13018913567066193,
-0.5123218894004822,
-0.3921584188938141,
-0.006824856624007225,
0.6115943193435669,
-0.009913802146911621,
-0.0569278821349144,
0.03614700585603714,
0.0804571881890297,
-0.04680865630507469,
-0.11963670700788498,
-0.46361806988716125,
0.2152136266231537,
0.041023656725883484,
0.0928654670715332,
0.3086799681186676,
0.2023318111896515,
-0.010006356984376907,
0.6984027028083801,
0.3154526948928833,
-0.21329040825366974,
0.3980475962162018,
-0.012865850701928139,
0.33119913935661316,
-0.15399757027626038,
-0.26258522272109985,
-0.2107182890176773,
-0.026873990893363953,
-0.06225531920790672,
0.12634965777397156,
0.005453864112496376,
-0.3261236846446991,
-0.1705092191696167,
-0.09422232210636139,
-0.1349790245294571,
-0.0980381965637207,
0.017513861879706383,
-0.05513039231300354,
0.286069393157959,
-0.05713410675525665,
0.08811789005994797,
-0.324101060628891,
0.16410744190216064,
0.05966651812195778,
0.3696877360343933,
0.009960494935512543,
0.050560131669044495,
-0.42526301741600037,
-0.08017589151859283,
-0.12229723483324051,
0.20486658811569214,
0.036928415298461914,
0.04785889387130737,
-0.07462641596794128,
0.21709445118904114,
-0.12588462233543396,
-0.19812916219234467,
0.015317186713218689,
0.1726258546113968,
0.42651569843292236,
0.19140033423900604,
-0.09929517656564713,
-0.40689170360565186,
-0.1285550594329834,
0.10174113512039185,
0.27847325801849365,
0.1616751253604889,
0.48429468274116516,
-0.478403776884079,
-0.18576166033744812,
0.2541249990463257,
0.16145867109298706,
0.022617455571889877,
0.1553235650062561,
-0.35579243302345276,
-0.7447224855422974,
-0.29682615399360657,
0.1103539988398552,
0.27393820881843567,
0.2059495598077774,
0.11710525304079056,
-0.0066476427018642426,
-0.03968106955289841,
-0.430547833442688,
-0.1689109355211258,
0.20748257637023926,
0.37889254093170166,
-0.08559536188840866,
0.09863753616809845,
-0.14011116325855255,
-0.1402766853570938,
0.2285837084054947,
0.39823946356773376,
0.0019058026373386383,
-0.058026522397994995,
0.12112888693809509,
0.022441066801548004,
0.19187268614768982,
0.3786850571632385,
-0.2532842755317688,
-0.13466507196426392,
0.21646177768707275,
0.10527829080820084,
-0.26776987314224243,
0.013875296339392662,
0.28003349900245667,
-0.19009363651275635,
-0.3829425871372223,
-0.6253344416618347,
0.4859091639518738,
-0.1382434368133545,
0.0038551613688468933,
0.06184631958603859,
0.07650209963321686,
-0.33935579657554626,
0.3723180294036865,
-0.10518575459718704,
0.8214064836502075,
0.21751075983047485,
-0.04354892298579216,
0.4398545026779175,
-0.387808620929718,
-0.06341466307640076,
-0.2971135973930359,
0.032623931765556335,
-0.23474577069282532,
-0.12506362795829773,
0.0481964647769928,
-0.2724829316139221,
0.09319577366113663,
-0.02364189177751541,
-0.22188450396060944,
0.021130220964550972,
-0.10103917866945267,
0.2882639169692993,
0.27559494972229004,
0.10103601217269897,
0.011730826459825039,
0.08566050231456757,
-0.7085355520248413,
0.13858942687511444,
-0.12400239706039429,
0.22606948018074036,
-0.08147915452718735,
-0.1582469791173935,
-0.15665653347969055,
-0.37469297647476196,
-0.5349578857421875,
0.22741428017616272,
-0.31877401471138,
0.213850736618042,
-0.1821802705526352,
-0.2951471209526062,
0.035159338265657425,
0.2423878014087677,
0.3479490876197815,
0.2520563006401062,
-0.23328912258148193,
0.3488054573535919,
-0.24054598808288574,
0.029120279476046562,
-0.16462288796901703,
0.14714036881923676,
0.005389880388975143,
-0.2588062882423401,
-0.061809226870536804,
0.05599389225244522,
-0.2179597169160843,
-0.48859357833862305,
0.0008536875247955322,
0.18903040885925293,
-0.10012330114841461,
-0.21097713708877563,
-0.2015291303396225,
0.13800647854804993,
0.2726317346096039,
-0.34724923968315125,
0.17758634686470032,
0.1384921669960022,
-0.21059055626392365,
-0.0351356640458107,
-0.02303333953022957,
-0.2737721800804138,
-0.1358015090227127,
0.2166675627231598,
-0.13005557656288147,
0.15117856860160828,
0.5720551013946533,
0.028088901191949844,
-0.011574793606996536,
-0.24908792972564697,
0.01051872968673706,
0.36119747161865234,
-0.38382190465927124,
0.23870199918746948,
-0.16955387592315674,
-0.03165087848901749,
-0.12153380364179611,
0.24253815412521362,
0.18700188398361206,
-0.2155751883983612,
0.09456653892993927,
-0.42239370942115784,
-0.10700958222150803,
0.09301450848579407,
-0.002225983887910843,
0.20542539656162262,
0.07460617274045944,
0.2208656668663025,
-0.19579032063484192,
0.03865571320056915,
-0.3272407352924347,
0.2660551965236664,
-0.35846424102783203,
0.12118979543447495,
0.4388751983642578,
-0.2382165789604187,
0.3543813228607178,
-0.022005416452884674,
0.17192582786083221,
0.008426854386925697,
-0.11204943805932999,
-0.24806758761405945,
-0.17881695926189423,
0.06999213993549347,
-0.11273232847452164,
-0.015561992302536964,
-0.01889735460281372,
-0.0640069842338562,
0.01586771197617054,
-0.12465529143810272,
0.29751521348953247,
0.11025134474039078,
0.056531425565481186,
-0.02520434930920601,
0.06474509090185165,
0.08524123579263687,
-0.2671075463294983,
0.024681396782398224,
-0.25355711579322815,
0.40012985467910767,
0.23314565420150757,
0.2295524626970291,
-0.03726667910814285,
-0.10748574137687683,
-0.05951901525259018,
0.06854867190122604,
0.10431492328643799,
0.3957138657569885,
0.30083614587783813,
-0.4244508743286133,
0.01616550236940384,
0.2585149109363556,
-0.10653741657733917,
0.18230509757995605,
-0.27760905027389526,
0.1948218196630478,
0.043976325541734695,
0.1707150936126709,
-0.13777847588062286,
-0.192750483751297,
0.2347525805234909,
-0.25594663619995117,
0.06964370608329773,
0.3191137909889221,
0.15579649806022644,
-0.0727914571762085,
-0.10050460696220398,
0.0681224837899208,
0.6314305067062378,
0.20859435200691223,
0.2742532789707184,
0.3170742392539978,
0.10632750391960144,
0.007212433964014053,
-0.26398301124572754,
0.18446926772594452,
0.1645270138978958,
0.3289508819580078,
-0.3135349154472351,
0.4106318950653076,
0.12092194706201553,
0.054003097116947174,
0.10479913651943207,
-0.2058165967464447,
0.1527545303106308,
0.24663805961608887,
-0.00807681679725647,
0.09649883210659027,
-0.01673438400030136,
0.14272591471672058,
-0.4825272262096405,
0.13422466814517975,
-0.1952827125787735,
-0.12088599801063538,
-0.1004636213183403,
0.10443969070911407,
-0.19551894068717957,
-0.21266448497772217,
-0.3696012794971466,
-0.07764804363250732,
-0.0689597874879837,
0.0722293108701706,
0.19905614852905273,
0.06624840945005417,
-0.10714627802371979,
0.0741150751709938,
-0.03748159855604172,
0.3358444571495056,
0.13820073008537292,
-0.27885791659355164,
0.4219970107078552,
0.08418398350477219,
-0.1854325532913208,
0.04080178588628769,
0.19232504069805145,
0.6868112683296204,
0.3264051675796509,
0.12538179755210876,
-0.20975032448768616,
0.18548206984996796,
-0.1815427988767624,
-0.13430970907211304,
0.0408783033490181,
-0.09398582577705383,
0.2579249441623688,
0.15108656883239746,
0.2679654657840729,
-0.18706193566322327,
-0.10585232079029083,
-0.00008929893374443054,
-0.21929576992988586,
-0.28976234793663025,
0.5580735206604004,
-0.12223146855831146,
-0.36896857619285583,
-0.08289569616317749,
-0.1019195094704628,
0.001373380422592163,
0.03634263202548027,
0.22633305191993713,
0.15618222951889038,
-0.03431106358766556,
0.09477883577346802,
0.10810358822345734,
0.10852383077144623,
0.4726184010505676,
0.24114760756492615,
-0.11102081090211868,
-0.3880901336669922,
-0.36145710945129395,
-0.3379994034767151,
0.005516059696674347,
-0.14070460200309753,
-0.2692480683326721,
0.22197002172470093,
-0.043902091681957245,
-0.02551424503326416,
0.14709502458572388,
0.2950381636619568,
-0.19122521579265594,
0.13222277164459229,
0.10578612238168716,
-0.40625208616256714,
-0.05506749823689461,
-0.08816148340702057,
0.1412333995103836,
0.03388394042849541,
-0.382242888212204,
0.011004358530044556,
0.23810464143753052,
0.14864149689674377,
0.07033172249794006,
-0.11101491004228592,
0.13018643856048584,
-0.7128452062606812,
0.38158494234085083,
-0.08155224472284317,
0.16211272776126862,
-0.07520867884159088,
-0.32693707942962646,
-0.18492788076400757,
-0.20958378911018372,
-0.01162555068731308,
0.1481730341911316,
-0.048580434173345566,
0.44349485635757446,
-0.07550673931837082,
-0.30861523747444153,
-0.46283283829689026,
0.3745400607585907,
0.2511618137359619,
-0.08699706196784973,
-0.027063172310590744,
-0.0007318397983908653,
-0.22135230898857117,
-0.07950196415185928,
0.1490948498249054,
0.11044977605342865,
-0.12837526202201843,
0.13260462880134583,
-0.2615555226802826,
-0.28827348351478577,
0.41958868503570557,
-0.3508787155151367,
-0.3608841001987457,
-0.08346858620643616,
0.36087581515312195,
-0.08901598304510117,
0.2179589569568634,
-0.23092755675315857,
0.17149507999420166,
0.38374239206314087,
0.08547656238079071,
-0.33614373207092285,
0.26422521471977234,
0.07754863798618317,
0.12074759602546692,
0.04437660798430443,
0.2150428742170334,
-0.04598984122276306,
-0.2682962119579315,
0.1492232382297516,
-0.25478997826576233
] |
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 | 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`? | [
-0.21699845790863037,
-0.06861083209514618,
-0.08182676136493683,
0.21229784190654755,
0.22685489058494568,
0.02494252473115921,
0.42694762349128723,
0.5157313346862793,
0.07178185880184174,
-0.03193691372871399,
0.2613385021686554,
0.543058454990387,
-0.08034840226173401,
0.21459496021270752,
0.2113286852836609,
0.05113040655851364,
-0.10132233053445816,
0.22473865747451782,
-0.08972510695457458,
0.17588916420936584,
-0.09670110046863556,
0.28047269582748413,
-0.20129846036434174,
0.023714333772659302,
-0.17523424327373505,
-0.03522060066461563,
-0.004236252978444099,
0.4233063757419586,
-0.08968979120254517,
-0.538083016872406,
0.46554866433143616,
-0.05531889572739601,
0.23342415690422058,
0.672951877117157,
-0.00011354772868799046,
0.22957409918308258,
0.3864312171936035,
-0.20295633375644684,
-0.5747056603431702,
-0.27285999059677124,
-0.6309577822685242,
-0.0821213498711586,
0.0028608583379536867,
-0.3504936397075653,
-0.2567759156227112,
0.24367958307266235,
-0.0602470263838768,
-0.3184722065925598,
0.49225282669067383,
0.507375955581665,
0.19498060643672943,
0.3396490216255188,
0.03114933893084526,
-0.28612449765205383,
0.06215358525514603,
0.12005948275327682,
-0.1905907392501831,
0.52586829662323,
0.10393786430358887,
-0.12607520818710327,
0.144137442111969,
0.05974549427628517,
-0.10019624978303909,
-0.07304482161998749,
0.24762433767318726,
-0.09910760074853897,
0.3479306399822235,
-0.15664441883563995,
0.2766368091106415,
-0.062155745923519135,
0.17318463325500488,
-0.4357229173183441,
-0.1563977301120758,
-0.16240036487579346,
-0.1204901784658432,
-0.2071826457977295,
0.06616353988647461,
0.159918412566185,
-0.22108633816242218,
0.27460673451423645,
-0.12665612995624542,
0.04779041185975075,
-0.12531879544258118,
-0.0673929750919342,
0.00249461829662323,
0.17155003547668457,
-0.12196734547615051,
-0.10615234822034836,
-0.037843164056539536,
0.09750452637672424,
-0.13656388223171234,
-0.30351126194000244,
-0.10475991666316986,
0.14943157136440277,
0.07926377654075623,
0.0774395763874054,
0.16461612284183502,
-0.061839498579502106,
0.19293546676635742,
0.39457815885543823,
0.059925779700279236,
0.12895485758781433,
0.06863069534301758,
0.12694445252418518,
0.06491172313690186,
0.11586225032806396,
-0.024153530597686768,
0.2681928277015686,
0.38912445306777954,
0.39122843742370605,
0.07129670679569244,
-0.031694136559963226,
-0.2134537249803543,
-0.030740775167942047,
0.05462131276726723,
0.010450602509081364,
0.5441199541091919,
-0.19061899185180664,
-0.24704276025295258,
-0.07335903495550156,
0.00575382262468338,
-0.09354427456855774,
0.21478210389614105,
0.4276276230812073,
0.06742726266384125,
0.04271313548088074,
0.08377821743488312,
0.3162097930908203,
0.06044591963291168,
0.1086575835943222,
-0.25617384910583496,
-0.08092924952507019,
-0.12055374681949615,
0.06255599111318588,
0.164304718375206,
-0.4302118420600891,
0.42366892099380493,
0.22054988145828247,
0.041807688772678375,
-0.26799851655960083,
-0.06568624824285507,
0.003077828325331211,
-0.22800463438034058,
0.11645135283470154,
-0.04906979203224182,
0.055801160633563995,
0.2630631625652313,
-0.47336435317993164,
-0.09442400187253952,
0.0457465834915638,
-0.345973938703537,
-0.5064621567726135,
0.016907792538404465,
0.2109142690896988,
-0.2352408766746521,
0.03420756012201309,
-0.7249212861061096,
-0.1575404703617096,
0.26731929183006287,
-0.01083444058895111,
-0.12478383630514145,
-0.14075304567813873,
-0.07831871509552002,
-0.13800793886184692,
0.4682033360004425,
0.5949926376342773,
0.014067422598600388,
-0.07514820992946625,
0.10217549651861191,
0.08337409049272537,
0.2408108413219452,
-0.008574489504098892,
-0.35540804266929626,
0.3678346872329712,
-0.4717828631401062,
0.08437980711460114,
0.25839370489120483,
-0.3019835352897644,
-0.12702058255672455,
0.32081425189971924,
-0.12273240834474564,
0.08720514178276062,
0.16029715538024902,
-0.29060494899749756,
-0.02079993486404419,
-0.16193069517612457,
0.160752534866333,
0.23495078086853027,
0.1504218578338623,
0.10712290555238724,
-0.3048707842826843,
-0.11707846075296402,
-0.14809541404247284,
0.19434024393558502,
0.14398038387298584,
0.13917821645736694,
0.12022844702005386,
0.12895892560482025,
0.29064369201660156,
-0.2268088459968567,
-0.12830819189548492,
0.3758434057235718,
0.40984293818473816,
-0.09550614655017853,
-0.0976443663239479,
-0.12834924459457397,
-0.21052533388137817,
0.2670111358165741,
0.1499147117137909,
-0.06875049322843552,
-0.22216437757015228,
0.0013498105108737946,
-0.5367097854614258,
0.09959211200475693,
-0.2541083097457886,
-0.08902855217456818,
0.12227766215801239,
0.2756505310535431,
-0.10884295403957367,
-0.14265888929367065,
-0.27473095059394836,
0.7404264807701111,
-0.2727469801902771,
-0.0009563720668666065,
-0.1247514933347702,
0.725227415561676,
-0.19863376021385193,
-0.2572709321975708,
0.30374470353126526,
0.3262370526790619,
0.34957078099250793,
-0.19909441471099854,
-0.04249102249741554,
0.2540804147720337,
0.162802055478096,
-0.0031858235597610474,
0.15264400839805603,
-0.1842278689146042,
0.12693090736865997,
-0.3235970437526703,
-0.045654818415641785,
0.11207899451255798,
0.17039257287979126,
0.05745919793844223,
-0.0004593208432197571,
0.30869442224502563,
0.13566075265407562,
0.23796331882476807,
0.08686375617980957,
-0.010293344967067242,
0.23215574026107788,
-0.18577714264392853,
-0.14410656690597534,
-0.029257752001285553,
0.20114733278751373,
0.04865482449531555,
0.44142335653305054,
0.0483611598610878,
0.07617232203483582,
-0.022915996611118317,
0.31040242314338684,
-0.04910026490688324,
0.12079054862260818,
0.022896593436598778,
-0.11715536564588547,
-0.1048634722828865,
-0.23311874270439148,
0.17344921827316284,
0.38710343837738037,
0.20406170189380646,
-0.3451324701309204,
-0.11166086047887802,
0.013420866802334785,
-0.08355347812175751,
0.2316899597644806,
0.005353085696697235,
0.0022929857950657606,
-0.04812318831682205,
0.09172723442316055,
-0.0714014321565628,
0.030726358294487,
-0.46865105628967285,
0.07603047043085098,
0.1556701511144638,
-0.4280252754688263,
0.14077161252498627,
-0.2582572400569916,
0.1483774483203888,
-0.23812046647071838,
-0.021542727947235107,
-0.04815855249762535,
-0.06632312387228012,
-0.15769131481647491,
0.05404865741729736,
-0.018775753676891327,
0.1475733369588852,
-0.05888840928673744,
0.22762075066566467,
-0.031517766416072845,
-0.45202067494392395,
-0.25710856914520264,
-0.18857978284358978,
-0.19573646783828735,
0.01396556943655014,
0.361784428358078,
-0.06517688184976578,
0.20191137492656708,
-0.309858500957489,
-0.24788926541805267,
-0.26091891527175903,
-0.16754837334156036,
0.063881054520607,
-0.0223945751786232,
0.3427661061286926,
0.15470056235790253,
0.36596357822418213,
0.26884597539901733,
-0.35049328207969666,
0.2628447115421295,
0.17698244750499725,
-0.017673231661319733,
0.14629220962524414,
-0.15648715198040009,
-0.20049050450325012,
-0.12654827535152435,
-0.008117467164993286,
-0.10800168663263321,
-0.4948783218860626,
-0.10966697335243225,
0.20817668735980988,
0.009257737547159195,
0.3041785955429077,
0.18839266896247864,
0.16177822649478912,
0.17024919390678406,
-0.13958774507045746,
-0.08834846317768097,
-0.19715629518032074,
0.3070194721221924,
-0.16210044920444489,
-0.27373719215393066,
-0.15263186395168304,
0.06251536309719086,
0.42759376764297485,
-0.13018913567066193,
-0.5123218894004822,
-0.3921584188938141,
-0.006824856624007225,
0.6115943193435669,
-0.009913802146911621,
-0.0569278821349144,
0.03614700585603714,
0.0804571881890297,
-0.04680865630507469,
-0.11963670700788498,
-0.46361806988716125,
0.2152136266231537,
0.041023656725883484,
0.0928654670715332,
0.3086799681186676,
0.2023318111896515,
-0.010006356984376907,
0.6984027028083801,
0.3154526948928833,
-0.21329040825366974,
0.3980475962162018,
-0.012865850701928139,
0.33119913935661316,
-0.15399757027626038,
-0.26258522272109985,
-0.2107182890176773,
-0.026873990893363953,
-0.06225531920790672,
0.12634965777397156,
0.005453864112496376,
-0.3261236846446991,
-0.1705092191696167,
-0.09422232210636139,
-0.1349790245294571,
-0.0980381965637207,
0.017513861879706383,
-0.05513039231300354,
0.286069393157959,
-0.05713410675525665,
0.08811789005994797,
-0.324101060628891,
0.16410744190216064,
0.05966651812195778,
0.3696877360343933,
0.009960494935512543,
0.050560131669044495,
-0.42526301741600037,
-0.08017589151859283,
-0.12229723483324051,
0.20486658811569214,
0.036928415298461914,
0.04785889387130737,
-0.07462641596794128,
0.21709445118904114,
-0.12588462233543396,
-0.19812916219234467,
0.015317186713218689,
0.1726258546113968,
0.42651569843292236,
0.19140033423900604,
-0.09929517656564713,
-0.40689170360565186,
-0.1285550594329834,
0.10174113512039185,
0.27847325801849365,
0.1616751253604889,
0.48429468274116516,
-0.478403776884079,
-0.18576166033744812,
0.2541249990463257,
0.16145867109298706,
0.022617455571889877,
0.1553235650062561,
-0.35579243302345276,
-0.7447224855422974,
-0.29682615399360657,
0.1103539988398552,
0.27393820881843567,
0.2059495598077774,
0.11710525304079056,
-0.0066476427018642426,
-0.03968106955289841,
-0.430547833442688,
-0.1689109355211258,
0.20748257637023926,
0.37889254093170166,
-0.08559536188840866,
0.09863753616809845,
-0.14011116325855255,
-0.1402766853570938,
0.2285837084054947,
0.39823946356773376,
0.0019058026373386383,
-0.058026522397994995,
0.12112888693809509,
0.022441066801548004,
0.19187268614768982,
0.3786850571632385,
-0.2532842755317688,
-0.13466507196426392,
0.21646177768707275,
0.10527829080820084,
-0.26776987314224243,
0.013875296339392662,
0.28003349900245667,
-0.19009363651275635,
-0.3829425871372223,
-0.6253344416618347,
0.4859091639518738,
-0.1382434368133545,
0.0038551613688468933,
0.06184631958603859,
0.07650209963321686,
-0.33935579657554626,
0.3723180294036865,
-0.10518575459718704,
0.8214064836502075,
0.21751075983047485,
-0.04354892298579216,
0.4398545026779175,
-0.387808620929718,
-0.06341466307640076,
-0.2971135973930359,
0.032623931765556335,
-0.23474577069282532,
-0.12506362795829773,
0.0481964647769928,
-0.2724829316139221,
0.09319577366113663,
-0.02364189177751541,
-0.22188450396060944,
0.021130220964550972,
-0.10103917866945267,
0.2882639169692993,
0.27559494972229004,
0.10103601217269897,
0.011730826459825039,
0.08566050231456757,
-0.7085355520248413,
0.13858942687511444,
-0.12400239706039429,
0.22606948018074036,
-0.08147915452718735,
-0.1582469791173935,
-0.15665653347969055,
-0.37469297647476196,
-0.5349578857421875,
0.22741428017616272,
-0.31877401471138,
0.213850736618042,
-0.1821802705526352,
-0.2951471209526062,
0.035159338265657425,
0.2423878014087677,
0.3479490876197815,
0.2520563006401062,
-0.23328912258148193,
0.3488054573535919,
-0.24054598808288574,
0.029120279476046562,
-0.16462288796901703,
0.14714036881923676,
0.005389880388975143,
-0.2588062882423401,
-0.061809226870536804,
0.05599389225244522,
-0.2179597169160843,
-0.48859357833862305,
0.0008536875247955322,
0.18903040885925293,
-0.10012330114841461,
-0.21097713708877563,
-0.2015291303396225,
0.13800647854804993,
0.2726317346096039,
-0.34724923968315125,
0.17758634686470032,
0.1384921669960022,
-0.21059055626392365,
-0.0351356640458107,
-0.02303333953022957,
-0.2737721800804138,
-0.1358015090227127,
0.2166675627231598,
-0.13005557656288147,
0.15117856860160828,
0.5720551013946533,
0.028088901191949844,
-0.011574793606996536,
-0.24908792972564697,
0.01051872968673706,
0.36119747161865234,
-0.38382190465927124,
0.23870199918746948,
-0.16955387592315674,
-0.03165087848901749,
-0.12153380364179611,
0.24253815412521362,
0.18700188398361206,
-0.2155751883983612,
0.09456653892993927,
-0.42239370942115784,
-0.10700958222150803,
0.09301450848579407,
-0.002225983887910843,
0.20542539656162262,
0.07460617274045944,
0.2208656668663025,
-0.19579032063484192,
0.03865571320056915,
-0.3272407352924347,
0.2660551965236664,
-0.35846424102783203,
0.12118979543447495,
0.4388751983642578,
-0.2382165789604187,
0.3543813228607178,
-0.022005416452884674,
0.17192582786083221,
0.008426854386925697,
-0.11204943805932999,
-0.24806758761405945,
-0.17881695926189423,
0.06999213993549347,
-0.11273232847452164,
-0.015561992302536964,
-0.01889735460281372,
-0.0640069842338562,
0.01586771197617054,
-0.12465529143810272,
0.29751521348953247,
0.11025134474039078,
0.056531425565481186,
-0.02520434930920601,
0.06474509090185165,
0.08524123579263687,
-0.2671075463294983,
0.024681396782398224,
-0.25355711579322815,
0.40012985467910767,
0.23314565420150757,
0.2295524626970291,
-0.03726667910814285,
-0.10748574137687683,
-0.05951901525259018,
0.06854867190122604,
0.10431492328643799,
0.3957138657569885,
0.30083614587783813,
-0.4244508743286133,
0.01616550236940384,
0.2585149109363556,
-0.10653741657733917,
0.18230509757995605,
-0.27760905027389526,
0.1948218196630478,
0.043976325541734695,
0.1707150936126709,
-0.13777847588062286,
-0.192750483751297,
0.2347525805234909,
-0.25594663619995117,
0.06964370608329773,
0.3191137909889221,
0.15579649806022644,
-0.0727914571762085,
-0.10050460696220398,
0.0681224837899208,
0.6314305067062378,
0.20859435200691223,
0.2742532789707184,
0.3170742392539978,
0.10632750391960144,
0.007212433964014053,
-0.26398301124572754,
0.18446926772594452,
0.1645270138978958,
0.3289508819580078,
-0.3135349154472351,
0.4106318950653076,
0.12092194706201553,
0.054003097116947174,
0.10479913651943207,
-0.2058165967464447,
0.1527545303106308,
0.24663805961608887,
-0.00807681679725647,
0.09649883210659027,
-0.01673438400030136,
0.14272591471672058,
-0.4825272262096405,
0.13422466814517975,
-0.1952827125787735,
-0.12088599801063538,
-0.1004636213183403,
0.10443969070911407,
-0.19551894068717957,
-0.21266448497772217,
-0.3696012794971466,
-0.07764804363250732,
-0.0689597874879837,
0.0722293108701706,
0.19905614852905273,
0.06624840945005417,
-0.10714627802371979,
0.0741150751709938,
-0.03748159855604172,
0.3358444571495056,
0.13820073008537292,
-0.27885791659355164,
0.4219970107078552,
0.08418398350477219,
-0.1854325532913208,
0.04080178588628769,
0.19232504069805145,
0.6868112683296204,
0.3264051675796509,
0.12538179755210876,
-0.20975032448768616,
0.18548206984996796,
-0.1815427988767624,
-0.13430970907211304,
0.0408783033490181,
-0.09398582577705383,
0.2579249441623688,
0.15108656883239746,
0.2679654657840729,
-0.18706193566322327,
-0.10585232079029083,
-0.00008929893374443054,
-0.21929576992988586,
-0.28976234793663025,
0.5580735206604004,
-0.12223146855831146,
-0.36896857619285583,
-0.08289569616317749,
-0.1019195094704628,
0.001373380422592163,
0.03634263202548027,
0.22633305191993713,
0.15618222951889038,
-0.03431106358766556,
0.09477883577346802,
0.10810358822345734,
0.10852383077144623,
0.4726184010505676,
0.24114760756492615,
-0.11102081090211868,
-0.3880901336669922,
-0.36145710945129395,
-0.3379994034767151,
0.005516059696674347,
-0.14070460200309753,
-0.2692480683326721,
0.22197002172470093,
-0.043902091681957245,
-0.02551424503326416,
0.14709502458572388,
0.2950381636619568,
-0.19122521579265594,
0.13222277164459229,
0.10578612238168716,
-0.40625208616256714,
-0.05506749823689461,
-0.08816148340702057,
0.1412333995103836,
0.03388394042849541,
-0.382242888212204,
0.011004358530044556,
0.23810464143753052,
0.14864149689674377,
0.07033172249794006,
-0.11101491004228592,
0.13018643856048584,
-0.7128452062606812,
0.38158494234085083,
-0.08155224472284317,
0.16211272776126862,
-0.07520867884159088,
-0.32693707942962646,
-0.18492788076400757,
-0.20958378911018372,
-0.01162555068731308,
0.1481730341911316,
-0.048580434173345566,
0.44349485635757446,
-0.07550673931837082,
-0.30861523747444153,
-0.46283283829689026,
0.3745400607585907,
0.2511618137359619,
-0.08699706196784973,
-0.027063172310590744,
-0.0007318397983908653,
-0.22135230898857117,
-0.07950196415185928,
0.1490948498249054,
0.11044977605342865,
-0.12837526202201843,
0.13260462880134583,
-0.2615555226802826,
-0.28827348351478577,
0.41958868503570557,
-0.3508787155151367,
-0.3608841001987457,
-0.08346858620643616,
0.36087581515312195,
-0.08901598304510117,
0.2179589569568634,
-0.23092755675315857,
0.17149507999420166,
0.38374239206314087,
0.08547656238079071,
-0.33614373207092285,
0.26422521471977234,
0.07754863798618317,
0.12074759602546692,
0.04437660798430443,
0.2150428742170334,
-0.04598984122276306,
-0.2682962119579315,
0.1492232382297516,
-0.25478997826576233
] |
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 | 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 | [
-0.21699845790863037,
-0.06861083209514618,
-0.08182676136493683,
0.21229784190654755,
0.22685489058494568,
0.02494252473115921,
0.42694762349128723,
0.5157313346862793,
0.07178185880184174,
-0.03193691372871399,
0.2613385021686554,
0.543058454990387,
-0.08034840226173401,
0.21459496021270752,
0.2113286852836609,
0.05113040655851364,
-0.10132233053445816,
0.22473865747451782,
-0.08972510695457458,
0.17588916420936584,
-0.09670110046863556,
0.28047269582748413,
-0.20129846036434174,
0.023714333772659302,
-0.17523424327373505,
-0.03522060066461563,
-0.004236252978444099,
0.4233063757419586,
-0.08968979120254517,
-0.538083016872406,
0.46554866433143616,
-0.05531889572739601,
0.23342415690422058,
0.672951877117157,
-0.00011354772868799046,
0.22957409918308258,
0.3864312171936035,
-0.20295633375644684,
-0.5747056603431702,
-0.27285999059677124,
-0.6309577822685242,
-0.0821213498711586,
0.0028608583379536867,
-0.3504936397075653,
-0.2567759156227112,
0.24367958307266235,
-0.0602470263838768,
-0.3184722065925598,
0.49225282669067383,
0.507375955581665,
0.19498060643672943,
0.3396490216255188,
0.03114933893084526,
-0.28612449765205383,
0.06215358525514603,
0.12005948275327682,
-0.1905907392501831,
0.52586829662323,
0.10393786430358887,
-0.12607520818710327,
0.144137442111969,
0.05974549427628517,
-0.10019624978303909,
-0.07304482161998749,
0.24762433767318726,
-0.09910760074853897,
0.3479306399822235,
-0.15664441883563995,
0.2766368091106415,
-0.062155745923519135,
0.17318463325500488,
-0.4357229173183441,
-0.1563977301120758,
-0.16240036487579346,
-0.1204901784658432,
-0.2071826457977295,
0.06616353988647461,
0.159918412566185,
-0.22108633816242218,
0.27460673451423645,
-0.12665612995624542,
0.04779041185975075,
-0.12531879544258118,
-0.0673929750919342,
0.00249461829662323,
0.17155003547668457,
-0.12196734547615051,
-0.10615234822034836,
-0.037843164056539536,
0.09750452637672424,
-0.13656388223171234,
-0.30351126194000244,
-0.10475991666316986,
0.14943157136440277,
0.07926377654075623,
0.0774395763874054,
0.16461612284183502,
-0.061839498579502106,
0.19293546676635742,
0.39457815885543823,
0.059925779700279236,
0.12895485758781433,
0.06863069534301758,
0.12694445252418518,
0.06491172313690186,
0.11586225032806396,
-0.024153530597686768,
0.2681928277015686,
0.38912445306777954,
0.39122843742370605,
0.07129670679569244,
-0.031694136559963226,
-0.2134537249803543,
-0.030740775167942047,
0.05462131276726723,
0.010450602509081364,
0.5441199541091919,
-0.19061899185180664,
-0.24704276025295258,
-0.07335903495550156,
0.00575382262468338,
-0.09354427456855774,
0.21478210389614105,
0.4276276230812073,
0.06742726266384125,
0.04271313548088074,
0.08377821743488312,
0.3162097930908203,
0.06044591963291168,
0.1086575835943222,
-0.25617384910583496,
-0.08092924952507019,
-0.12055374681949615,
0.06255599111318588,
0.164304718375206,
-0.4302118420600891,
0.42366892099380493,
0.22054988145828247,
0.041807688772678375,
-0.26799851655960083,
-0.06568624824285507,
0.003077828325331211,
-0.22800463438034058,
0.11645135283470154,
-0.04906979203224182,
0.055801160633563995,
0.2630631625652313,
-0.47336435317993164,
-0.09442400187253952,
0.0457465834915638,
-0.345973938703537,
-0.5064621567726135,
0.016907792538404465,
0.2109142690896988,
-0.2352408766746521,
0.03420756012201309,
-0.7249212861061096,
-0.1575404703617096,
0.26731929183006287,
-0.01083444058895111,
-0.12478383630514145,
-0.14075304567813873,
-0.07831871509552002,
-0.13800793886184692,
0.4682033360004425,
0.5949926376342773,
0.014067422598600388,
-0.07514820992946625,
0.10217549651861191,
0.08337409049272537,
0.2408108413219452,
-0.008574489504098892,
-0.35540804266929626,
0.3678346872329712,
-0.4717828631401062,
0.08437980711460114,
0.25839370489120483,
-0.3019835352897644,
-0.12702058255672455,
0.32081425189971924,
-0.12273240834474564,
0.08720514178276062,
0.16029715538024902,
-0.29060494899749756,
-0.02079993486404419,
-0.16193069517612457,
0.160752534866333,
0.23495078086853027,
0.1504218578338623,
0.10712290555238724,
-0.3048707842826843,
-0.11707846075296402,
-0.14809541404247284,
0.19434024393558502,
0.14398038387298584,
0.13917821645736694,
0.12022844702005386,
0.12895892560482025,
0.29064369201660156,
-0.2268088459968567,
-0.12830819189548492,
0.3758434057235718,
0.40984293818473816,
-0.09550614655017853,
-0.0976443663239479,
-0.12834924459457397,
-0.21052533388137817,
0.2670111358165741,
0.1499147117137909,
-0.06875049322843552,
-0.22216437757015228,
0.0013498105108737946,
-0.5367097854614258,
0.09959211200475693,
-0.2541083097457886,
-0.08902855217456818,
0.12227766215801239,
0.2756505310535431,
-0.10884295403957367,
-0.14265888929367065,
-0.27473095059394836,
0.7404264807701111,
-0.2727469801902771,
-0.0009563720668666065,
-0.1247514933347702,
0.725227415561676,
-0.19863376021385193,
-0.2572709321975708,
0.30374470353126526,
0.3262370526790619,
0.34957078099250793,
-0.19909441471099854,
-0.04249102249741554,
0.2540804147720337,
0.162802055478096,
-0.0031858235597610474,
0.15264400839805603,
-0.1842278689146042,
0.12693090736865997,
-0.3235970437526703,
-0.045654818415641785,
0.11207899451255798,
0.17039257287979126,
0.05745919793844223,
-0.0004593208432197571,
0.30869442224502563,
0.13566075265407562,
0.23796331882476807,
0.08686375617980957,
-0.010293344967067242,
0.23215574026107788,
-0.18577714264392853,
-0.14410656690597534,
-0.029257752001285553,
0.20114733278751373,
0.04865482449531555,
0.44142335653305054,
0.0483611598610878,
0.07617232203483582,
-0.022915996611118317,
0.31040242314338684,
-0.04910026490688324,
0.12079054862260818,
0.022896593436598778,
-0.11715536564588547,
-0.1048634722828865,
-0.23311874270439148,
0.17344921827316284,
0.38710343837738037,
0.20406170189380646,
-0.3451324701309204,
-0.11166086047887802,
0.013420866802334785,
-0.08355347812175751,
0.2316899597644806,
0.005353085696697235,
0.0022929857950657606,
-0.04812318831682205,
0.09172723442316055,
-0.0714014321565628,
0.030726358294487,
-0.46865105628967285,
0.07603047043085098,
0.1556701511144638,
-0.4280252754688263,
0.14077161252498627,
-0.2582572400569916,
0.1483774483203888,
-0.23812046647071838,
-0.021542727947235107,
-0.04815855249762535,
-0.06632312387228012,
-0.15769131481647491,
0.05404865741729736,
-0.018775753676891327,
0.1475733369588852,
-0.05888840928673744,
0.22762075066566467,
-0.031517766416072845,
-0.45202067494392395,
-0.25710856914520264,
-0.18857978284358978,
-0.19573646783828735,
0.01396556943655014,
0.361784428358078,
-0.06517688184976578,
0.20191137492656708,
-0.309858500957489,
-0.24788926541805267,
-0.26091891527175903,
-0.16754837334156036,
0.063881054520607,
-0.0223945751786232,
0.3427661061286926,
0.15470056235790253,
0.36596357822418213,
0.26884597539901733,
-0.35049328207969666,
0.2628447115421295,
0.17698244750499725,
-0.017673231661319733,
0.14629220962524414,
-0.15648715198040009,
-0.20049050450325012,
-0.12654827535152435,
-0.008117467164993286,
-0.10800168663263321,
-0.4948783218860626,
-0.10966697335243225,
0.20817668735980988,
0.009257737547159195,
0.3041785955429077,
0.18839266896247864,
0.16177822649478912,
0.17024919390678406,
-0.13958774507045746,
-0.08834846317768097,
-0.19715629518032074,
0.3070194721221924,
-0.16210044920444489,
-0.27373719215393066,
-0.15263186395168304,
0.06251536309719086,
0.42759376764297485,
-0.13018913567066193,
-0.5123218894004822,
-0.3921584188938141,
-0.006824856624007225,
0.6115943193435669,
-0.009913802146911621,
-0.0569278821349144,
0.03614700585603714,
0.0804571881890297,
-0.04680865630507469,
-0.11963670700788498,
-0.46361806988716125,
0.2152136266231537,
0.041023656725883484,
0.0928654670715332,
0.3086799681186676,
0.2023318111896515,
-0.010006356984376907,
0.6984027028083801,
0.3154526948928833,
-0.21329040825366974,
0.3980475962162018,
-0.012865850701928139,
0.33119913935661316,
-0.15399757027626038,
-0.26258522272109985,
-0.2107182890176773,
-0.026873990893363953,
-0.06225531920790672,
0.12634965777397156,
0.005453864112496376,
-0.3261236846446991,
-0.1705092191696167,
-0.09422232210636139,
-0.1349790245294571,
-0.0980381965637207,
0.017513861879706383,
-0.05513039231300354,
0.286069393157959,
-0.05713410675525665,
0.08811789005994797,
-0.324101060628891,
0.16410744190216064,
0.05966651812195778,
0.3696877360343933,
0.009960494935512543,
0.050560131669044495,
-0.42526301741600037,
-0.08017589151859283,
-0.12229723483324051,
0.20486658811569214,
0.036928415298461914,
0.04785889387130737,
-0.07462641596794128,
0.21709445118904114,
-0.12588462233543396,
-0.19812916219234467,
0.015317186713218689,
0.1726258546113968,
0.42651569843292236,
0.19140033423900604,
-0.09929517656564713,
-0.40689170360565186,
-0.1285550594329834,
0.10174113512039185,
0.27847325801849365,
0.1616751253604889,
0.48429468274116516,
-0.478403776884079,
-0.18576166033744812,
0.2541249990463257,
0.16145867109298706,
0.022617455571889877,
0.1553235650062561,
-0.35579243302345276,
-0.7447224855422974,
-0.29682615399360657,
0.1103539988398552,
0.27393820881843567,
0.2059495598077774,
0.11710525304079056,
-0.0066476427018642426,
-0.03968106955289841,
-0.430547833442688,
-0.1689109355211258,
0.20748257637023926,
0.37889254093170166,
-0.08559536188840866,
0.09863753616809845,
-0.14011116325855255,
-0.1402766853570938,
0.2285837084054947,
0.39823946356773376,
0.0019058026373386383,
-0.058026522397994995,
0.12112888693809509,
0.022441066801548004,
0.19187268614768982,
0.3786850571632385,
-0.2532842755317688,
-0.13466507196426392,
0.21646177768707275,
0.10527829080820084,
-0.26776987314224243,
0.013875296339392662,
0.28003349900245667,
-0.19009363651275635,
-0.3829425871372223,
-0.6253344416618347,
0.4859091639518738,
-0.1382434368133545,
0.0038551613688468933,
0.06184631958603859,
0.07650209963321686,
-0.33935579657554626,
0.3723180294036865,
-0.10518575459718704,
0.8214064836502075,
0.21751075983047485,
-0.04354892298579216,
0.4398545026779175,
-0.387808620929718,
-0.06341466307640076,
-0.2971135973930359,
0.032623931765556335,
-0.23474577069282532,
-0.12506362795829773,
0.0481964647769928,
-0.2724829316139221,
0.09319577366113663,
-0.02364189177751541,
-0.22188450396060944,
0.021130220964550972,
-0.10103917866945267,
0.2882639169692993,
0.27559494972229004,
0.10103601217269897,
0.011730826459825039,
0.08566050231456757,
-0.7085355520248413,
0.13858942687511444,
-0.12400239706039429,
0.22606948018074036,
-0.08147915452718735,
-0.1582469791173935,
-0.15665653347969055,
-0.37469297647476196,
-0.5349578857421875,
0.22741428017616272,
-0.31877401471138,
0.213850736618042,
-0.1821802705526352,
-0.2951471209526062,
0.035159338265657425,
0.2423878014087677,
0.3479490876197815,
0.2520563006401062,
-0.23328912258148193,
0.3488054573535919,
-0.24054598808288574,
0.029120279476046562,
-0.16462288796901703,
0.14714036881923676,
0.005389880388975143,
-0.2588062882423401,
-0.061809226870536804,
0.05599389225244522,
-0.2179597169160843,
-0.48859357833862305,
0.0008536875247955322,
0.18903040885925293,
-0.10012330114841461,
-0.21097713708877563,
-0.2015291303396225,
0.13800647854804993,
0.2726317346096039,
-0.34724923968315125,
0.17758634686470032,
0.1384921669960022,
-0.21059055626392365,
-0.0351356640458107,
-0.02303333953022957,
-0.2737721800804138,
-0.1358015090227127,
0.2166675627231598,
-0.13005557656288147,
0.15117856860160828,
0.5720551013946533,
0.028088901191949844,
-0.011574793606996536,
-0.24908792972564697,
0.01051872968673706,
0.36119747161865234,
-0.38382190465927124,
0.23870199918746948,
-0.16955387592315674,
-0.03165087848901749,
-0.12153380364179611,
0.24253815412521362,
0.18700188398361206,
-0.2155751883983612,
0.09456653892993927,
-0.42239370942115784,
-0.10700958222150803,
0.09301450848579407,
-0.002225983887910843,
0.20542539656162262,
0.07460617274045944,
0.2208656668663025,
-0.19579032063484192,
0.03865571320056915,
-0.3272407352924347,
0.2660551965236664,
-0.35846424102783203,
0.12118979543447495,
0.4388751983642578,
-0.2382165789604187,
0.3543813228607178,
-0.022005416452884674,
0.17192582786083221,
0.008426854386925697,
-0.11204943805932999,
-0.24806758761405945,
-0.17881695926189423,
0.06999213993549347,
-0.11273232847452164,
-0.015561992302536964,
-0.01889735460281372,
-0.0640069842338562,
0.01586771197617054,
-0.12465529143810272,
0.29751521348953247,
0.11025134474039078,
0.056531425565481186,
-0.02520434930920601,
0.06474509090185165,
0.08524123579263687,
-0.2671075463294983,
0.024681396782398224,
-0.25355711579322815,
0.40012985467910767,
0.23314565420150757,
0.2295524626970291,
-0.03726667910814285,
-0.10748574137687683,
-0.05951901525259018,
0.06854867190122604,
0.10431492328643799,
0.3957138657569885,
0.30083614587783813,
-0.4244508743286133,
0.01616550236940384,
0.2585149109363556,
-0.10653741657733917,
0.18230509757995605,
-0.27760905027389526,
0.1948218196630478,
0.043976325541734695,
0.1707150936126709,
-0.13777847588062286,
-0.192750483751297,
0.2347525805234909,
-0.25594663619995117,
0.06964370608329773,
0.3191137909889221,
0.15579649806022644,
-0.0727914571762085,
-0.10050460696220398,
0.0681224837899208,
0.6314305067062378,
0.20859435200691223,
0.2742532789707184,
0.3170742392539978,
0.10632750391960144,
0.007212433964014053,
-0.26398301124572754,
0.18446926772594452,
0.1645270138978958,
0.3289508819580078,
-0.3135349154472351,
0.4106318950653076,
0.12092194706201553,
0.054003097116947174,
0.10479913651943207,
-0.2058165967464447,
0.1527545303106308,
0.24663805961608887,
-0.00807681679725647,
0.09649883210659027,
-0.01673438400030136,
0.14272591471672058,
-0.4825272262096405,
0.13422466814517975,
-0.1952827125787735,
-0.12088599801063538,
-0.1004636213183403,
0.10443969070911407,
-0.19551894068717957,
-0.21266448497772217,
-0.3696012794971466,
-0.07764804363250732,
-0.0689597874879837,
0.0722293108701706,
0.19905614852905273,
0.06624840945005417,
-0.10714627802371979,
0.0741150751709938,
-0.03748159855604172,
0.3358444571495056,
0.13820073008537292,
-0.27885791659355164,
0.4219970107078552,
0.08418398350477219,
-0.1854325532913208,
0.04080178588628769,
0.19232504069805145,
0.6868112683296204,
0.3264051675796509,
0.12538179755210876,
-0.20975032448768616,
0.18548206984996796,
-0.1815427988767624,
-0.13430970907211304,
0.0408783033490181,
-0.09398582577705383,
0.2579249441623688,
0.15108656883239746,
0.2679654657840729,
-0.18706193566322327,
-0.10585232079029083,
-0.00008929893374443054,
-0.21929576992988586,
-0.28976234793663025,
0.5580735206604004,
-0.12223146855831146,
-0.36896857619285583,
-0.08289569616317749,
-0.1019195094704628,
0.001373380422592163,
0.03634263202548027,
0.22633305191993713,
0.15618222951889038,
-0.03431106358766556,
0.09477883577346802,
0.10810358822345734,
0.10852383077144623,
0.4726184010505676,
0.24114760756492615,
-0.11102081090211868,
-0.3880901336669922,
-0.36145710945129395,
-0.3379994034767151,
0.005516059696674347,
-0.14070460200309753,
-0.2692480683326721,
0.22197002172470093,
-0.043902091681957245,
-0.02551424503326416,
0.14709502458572388,
0.2950381636619568,
-0.19122521579265594,
0.13222277164459229,
0.10578612238168716,
-0.40625208616256714,
-0.05506749823689461,
-0.08816148340702057,
0.1412333995103836,
0.03388394042849541,
-0.382242888212204,
0.011004358530044556,
0.23810464143753052,
0.14864149689674377,
0.07033172249794006,
-0.11101491004228592,
0.13018643856048584,
-0.7128452062606812,
0.38158494234085083,
-0.08155224472284317,
0.16211272776126862,
-0.07520867884159088,
-0.32693707942962646,
-0.18492788076400757,
-0.20958378911018372,
-0.01162555068731308,
0.1481730341911316,
-0.048580434173345566,
0.44349485635757446,
-0.07550673931837082,
-0.30861523747444153,
-0.46283283829689026,
0.3745400607585907,
0.2511618137359619,
-0.08699706196784973,
-0.027063172310590744,
-0.0007318397983908653,
-0.22135230898857117,
-0.07950196415185928,
0.1490948498249054,
0.11044977605342865,
-0.12837526202201843,
0.13260462880134583,
-0.2615555226802826,
-0.28827348351478577,
0.41958868503570557,
-0.3508787155151367,
-0.3608841001987457,
-0.08346858620643616,
0.36087581515312195,
-0.08901598304510117,
0.2179589569568634,
-0.23092755675315857,
0.17149507999420166,
0.38374239206314087,
0.08547656238079071,
-0.33614373207092285,
0.26422521471977234,
0.07754863798618317,
0.12074759602546692,
0.04437660798430443,
0.2150428742170334,
-0.04598984122276306,
-0.2682962119579315,
0.1492232382297516,
-0.25478997826576233
] |
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 | 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. | [
-0.21699845790863037,
-0.06861083209514618,
-0.08182676136493683,
0.21229784190654755,
0.22685489058494568,
0.02494252473115921,
0.42694762349128723,
0.5157313346862793,
0.07178185880184174,
-0.03193691372871399,
0.2613385021686554,
0.543058454990387,
-0.08034840226173401,
0.21459496021270752,
0.2113286852836609,
0.05113040655851364,
-0.10132233053445816,
0.22473865747451782,
-0.08972510695457458,
0.17588916420936584,
-0.09670110046863556,
0.28047269582748413,
-0.20129846036434174,
0.023714333772659302,
-0.17523424327373505,
-0.03522060066461563,
-0.004236252978444099,
0.4233063757419586,
-0.08968979120254517,
-0.538083016872406,
0.46554866433143616,
-0.05531889572739601,
0.23342415690422058,
0.672951877117157,
-0.00011354772868799046,
0.22957409918308258,
0.3864312171936035,
-0.20295633375644684,
-0.5747056603431702,
-0.27285999059677124,
-0.6309577822685242,
-0.0821213498711586,
0.0028608583379536867,
-0.3504936397075653,
-0.2567759156227112,
0.24367958307266235,
-0.0602470263838768,
-0.3184722065925598,
0.49225282669067383,
0.507375955581665,
0.19498060643672943,
0.3396490216255188,
0.03114933893084526,
-0.28612449765205383,
0.06215358525514603,
0.12005948275327682,
-0.1905907392501831,
0.52586829662323,
0.10393786430358887,
-0.12607520818710327,
0.144137442111969,
0.05974549427628517,
-0.10019624978303909,
-0.07304482161998749,
0.24762433767318726,
-0.09910760074853897,
0.3479306399822235,
-0.15664441883563995,
0.2766368091106415,
-0.062155745923519135,
0.17318463325500488,
-0.4357229173183441,
-0.1563977301120758,
-0.16240036487579346,
-0.1204901784658432,
-0.2071826457977295,
0.06616353988647461,
0.159918412566185,
-0.22108633816242218,
0.27460673451423645,
-0.12665612995624542,
0.04779041185975075,
-0.12531879544258118,
-0.0673929750919342,
0.00249461829662323,
0.17155003547668457,
-0.12196734547615051,
-0.10615234822034836,
-0.037843164056539536,
0.09750452637672424,
-0.13656388223171234,
-0.30351126194000244,
-0.10475991666316986,
0.14943157136440277,
0.07926377654075623,
0.0774395763874054,
0.16461612284183502,
-0.061839498579502106,
0.19293546676635742,
0.39457815885543823,
0.059925779700279236,
0.12895485758781433,
0.06863069534301758,
0.12694445252418518,
0.06491172313690186,
0.11586225032806396,
-0.024153530597686768,
0.2681928277015686,
0.38912445306777954,
0.39122843742370605,
0.07129670679569244,
-0.031694136559963226,
-0.2134537249803543,
-0.030740775167942047,
0.05462131276726723,
0.010450602509081364,
0.5441199541091919,
-0.19061899185180664,
-0.24704276025295258,
-0.07335903495550156,
0.00575382262468338,
-0.09354427456855774,
0.21478210389614105,
0.4276276230812073,
0.06742726266384125,
0.04271313548088074,
0.08377821743488312,
0.3162097930908203,
0.06044591963291168,
0.1086575835943222,
-0.25617384910583496,
-0.08092924952507019,
-0.12055374681949615,
0.06255599111318588,
0.164304718375206,
-0.4302118420600891,
0.42366892099380493,
0.22054988145828247,
0.041807688772678375,
-0.26799851655960083,
-0.06568624824285507,
0.003077828325331211,
-0.22800463438034058,
0.11645135283470154,
-0.04906979203224182,
0.055801160633563995,
0.2630631625652313,
-0.47336435317993164,
-0.09442400187253952,
0.0457465834915638,
-0.345973938703537,
-0.5064621567726135,
0.016907792538404465,
0.2109142690896988,
-0.2352408766746521,
0.03420756012201309,
-0.7249212861061096,
-0.1575404703617096,
0.26731929183006287,
-0.01083444058895111,
-0.12478383630514145,
-0.14075304567813873,
-0.07831871509552002,
-0.13800793886184692,
0.4682033360004425,
0.5949926376342773,
0.014067422598600388,
-0.07514820992946625,
0.10217549651861191,
0.08337409049272537,
0.2408108413219452,
-0.008574489504098892,
-0.35540804266929626,
0.3678346872329712,
-0.4717828631401062,
0.08437980711460114,
0.25839370489120483,
-0.3019835352897644,
-0.12702058255672455,
0.32081425189971924,
-0.12273240834474564,
0.08720514178276062,
0.16029715538024902,
-0.29060494899749756,
-0.02079993486404419,
-0.16193069517612457,
0.160752534866333,
0.23495078086853027,
0.1504218578338623,
0.10712290555238724,
-0.3048707842826843,
-0.11707846075296402,
-0.14809541404247284,
0.19434024393558502,
0.14398038387298584,
0.13917821645736694,
0.12022844702005386,
0.12895892560482025,
0.29064369201660156,
-0.2268088459968567,
-0.12830819189548492,
0.3758434057235718,
0.40984293818473816,
-0.09550614655017853,
-0.0976443663239479,
-0.12834924459457397,
-0.21052533388137817,
0.2670111358165741,
0.1499147117137909,
-0.06875049322843552,
-0.22216437757015228,
0.0013498105108737946,
-0.5367097854614258,
0.09959211200475693,
-0.2541083097457886,
-0.08902855217456818,
0.12227766215801239,
0.2756505310535431,
-0.10884295403957367,
-0.14265888929367065,
-0.27473095059394836,
0.7404264807701111,
-0.2727469801902771,
-0.0009563720668666065,
-0.1247514933347702,
0.725227415561676,
-0.19863376021385193,
-0.2572709321975708,
0.30374470353126526,
0.3262370526790619,
0.34957078099250793,
-0.19909441471099854,
-0.04249102249741554,
0.2540804147720337,
0.162802055478096,
-0.0031858235597610474,
0.15264400839805603,
-0.1842278689146042,
0.12693090736865997,
-0.3235970437526703,
-0.045654818415641785,
0.11207899451255798,
0.17039257287979126,
0.05745919793844223,
-0.0004593208432197571,
0.30869442224502563,
0.13566075265407562,
0.23796331882476807,
0.08686375617980957,
-0.010293344967067242,
0.23215574026107788,
-0.18577714264392853,
-0.14410656690597534,
-0.029257752001285553,
0.20114733278751373,
0.04865482449531555,
0.44142335653305054,
0.0483611598610878,
0.07617232203483582,
-0.022915996611118317,
0.31040242314338684,
-0.04910026490688324,
0.12079054862260818,
0.022896593436598778,
-0.11715536564588547,
-0.1048634722828865,
-0.23311874270439148,
0.17344921827316284,
0.38710343837738037,
0.20406170189380646,
-0.3451324701309204,
-0.11166086047887802,
0.013420866802334785,
-0.08355347812175751,
0.2316899597644806,
0.005353085696697235,
0.0022929857950657606,
-0.04812318831682205,
0.09172723442316055,
-0.0714014321565628,
0.030726358294487,
-0.46865105628967285,
0.07603047043085098,
0.1556701511144638,
-0.4280252754688263,
0.14077161252498627,
-0.2582572400569916,
0.1483774483203888,
-0.23812046647071838,
-0.021542727947235107,
-0.04815855249762535,
-0.06632312387228012,
-0.15769131481647491,
0.05404865741729736,
-0.018775753676891327,
0.1475733369588852,
-0.05888840928673744,
0.22762075066566467,
-0.031517766416072845,
-0.45202067494392395,
-0.25710856914520264,
-0.18857978284358978,
-0.19573646783828735,
0.01396556943655014,
0.361784428358078,
-0.06517688184976578,
0.20191137492656708,
-0.309858500957489,
-0.24788926541805267,
-0.26091891527175903,
-0.16754837334156036,
0.063881054520607,
-0.0223945751786232,
0.3427661061286926,
0.15470056235790253,
0.36596357822418213,
0.26884597539901733,
-0.35049328207969666,
0.2628447115421295,
0.17698244750499725,
-0.017673231661319733,
0.14629220962524414,
-0.15648715198040009,
-0.20049050450325012,
-0.12654827535152435,
-0.008117467164993286,
-0.10800168663263321,
-0.4948783218860626,
-0.10966697335243225,
0.20817668735980988,
0.009257737547159195,
0.3041785955429077,
0.18839266896247864,
0.16177822649478912,
0.17024919390678406,
-0.13958774507045746,
-0.08834846317768097,
-0.19715629518032074,
0.3070194721221924,
-0.16210044920444489,
-0.27373719215393066,
-0.15263186395168304,
0.06251536309719086,
0.42759376764297485,
-0.13018913567066193,
-0.5123218894004822,
-0.3921584188938141,
-0.006824856624007225,
0.6115943193435669,
-0.009913802146911621,
-0.0569278821349144,
0.03614700585603714,
0.0804571881890297,
-0.04680865630507469,
-0.11963670700788498,
-0.46361806988716125,
0.2152136266231537,
0.041023656725883484,
0.0928654670715332,
0.3086799681186676,
0.2023318111896515,
-0.010006356984376907,
0.6984027028083801,
0.3154526948928833,
-0.21329040825366974,
0.3980475962162018,
-0.012865850701928139,
0.33119913935661316,
-0.15399757027626038,
-0.26258522272109985,
-0.2107182890176773,
-0.026873990893363953,
-0.06225531920790672,
0.12634965777397156,
0.005453864112496376,
-0.3261236846446991,
-0.1705092191696167,
-0.09422232210636139,
-0.1349790245294571,
-0.0980381965637207,
0.017513861879706383,
-0.05513039231300354,
0.286069393157959,
-0.05713410675525665,
0.08811789005994797,
-0.324101060628891,
0.16410744190216064,
0.05966651812195778,
0.3696877360343933,
0.009960494935512543,
0.050560131669044495,
-0.42526301741600037,
-0.08017589151859283,
-0.12229723483324051,
0.20486658811569214,
0.036928415298461914,
0.04785889387130737,
-0.07462641596794128,
0.21709445118904114,
-0.12588462233543396,
-0.19812916219234467,
0.015317186713218689,
0.1726258546113968,
0.42651569843292236,
0.19140033423900604,
-0.09929517656564713,
-0.40689170360565186,
-0.1285550594329834,
0.10174113512039185,
0.27847325801849365,
0.1616751253604889,
0.48429468274116516,
-0.478403776884079,
-0.18576166033744812,
0.2541249990463257,
0.16145867109298706,
0.022617455571889877,
0.1553235650062561,
-0.35579243302345276,
-0.7447224855422974,
-0.29682615399360657,
0.1103539988398552,
0.27393820881843567,
0.2059495598077774,
0.11710525304079056,
-0.0066476427018642426,
-0.03968106955289841,
-0.430547833442688,
-0.1689109355211258,
0.20748257637023926,
0.37889254093170166,
-0.08559536188840866,
0.09863753616809845,
-0.14011116325855255,
-0.1402766853570938,
0.2285837084054947,
0.39823946356773376,
0.0019058026373386383,
-0.058026522397994995,
0.12112888693809509,
0.022441066801548004,
0.19187268614768982,
0.3786850571632385,
-0.2532842755317688,
-0.13466507196426392,
0.21646177768707275,
0.10527829080820084,
-0.26776987314224243,
0.013875296339392662,
0.28003349900245667,
-0.19009363651275635,
-0.3829425871372223,
-0.6253344416618347,
0.4859091639518738,
-0.1382434368133545,
0.0038551613688468933,
0.06184631958603859,
0.07650209963321686,
-0.33935579657554626,
0.3723180294036865,
-0.10518575459718704,
0.8214064836502075,
0.21751075983047485,
-0.04354892298579216,
0.4398545026779175,
-0.387808620929718,
-0.06341466307640076,
-0.2971135973930359,
0.032623931765556335,
-0.23474577069282532,
-0.12506362795829773,
0.0481964647769928,
-0.2724829316139221,
0.09319577366113663,
-0.02364189177751541,
-0.22188450396060944,
0.021130220964550972,
-0.10103917866945267,
0.2882639169692993,
0.27559494972229004,
0.10103601217269897,
0.011730826459825039,
0.08566050231456757,
-0.7085355520248413,
0.13858942687511444,
-0.12400239706039429,
0.22606948018074036,
-0.08147915452718735,
-0.1582469791173935,
-0.15665653347969055,
-0.37469297647476196,
-0.5349578857421875,
0.22741428017616272,
-0.31877401471138,
0.213850736618042,
-0.1821802705526352,
-0.2951471209526062,
0.035159338265657425,
0.2423878014087677,
0.3479490876197815,
0.2520563006401062,
-0.23328912258148193,
0.3488054573535919,
-0.24054598808288574,
0.029120279476046562,
-0.16462288796901703,
0.14714036881923676,
0.005389880388975143,
-0.2588062882423401,
-0.061809226870536804,
0.05599389225244522,
-0.2179597169160843,
-0.48859357833862305,
0.0008536875247955322,
0.18903040885925293,
-0.10012330114841461,
-0.21097713708877563,
-0.2015291303396225,
0.13800647854804993,
0.2726317346096039,
-0.34724923968315125,
0.17758634686470032,
0.1384921669960022,
-0.21059055626392365,
-0.0351356640458107,
-0.02303333953022957,
-0.2737721800804138,
-0.1358015090227127,
0.2166675627231598,
-0.13005557656288147,
0.15117856860160828,
0.5720551013946533,
0.028088901191949844,
-0.011574793606996536,
-0.24908792972564697,
0.01051872968673706,
0.36119747161865234,
-0.38382190465927124,
0.23870199918746948,
-0.16955387592315674,
-0.03165087848901749,
-0.12153380364179611,
0.24253815412521362,
0.18700188398361206,
-0.2155751883983612,
0.09456653892993927,
-0.42239370942115784,
-0.10700958222150803,
0.09301450848579407,
-0.002225983887910843,
0.20542539656162262,
0.07460617274045944,
0.2208656668663025,
-0.19579032063484192,
0.03865571320056915,
-0.3272407352924347,
0.2660551965236664,
-0.35846424102783203,
0.12118979543447495,
0.4388751983642578,
-0.2382165789604187,
0.3543813228607178,
-0.022005416452884674,
0.17192582786083221,
0.008426854386925697,
-0.11204943805932999,
-0.24806758761405945,
-0.17881695926189423,
0.06999213993549347,
-0.11273232847452164,
-0.015561992302536964,
-0.01889735460281372,
-0.0640069842338562,
0.01586771197617054,
-0.12465529143810272,
0.29751521348953247,
0.11025134474039078,
0.056531425565481186,
-0.02520434930920601,
0.06474509090185165,
0.08524123579263687,
-0.2671075463294983,
0.024681396782398224,
-0.25355711579322815,
0.40012985467910767,
0.23314565420150757,
0.2295524626970291,
-0.03726667910814285,
-0.10748574137687683,
-0.05951901525259018,
0.06854867190122604,
0.10431492328643799,
0.3957138657569885,
0.30083614587783813,
-0.4244508743286133,
0.01616550236940384,
0.2585149109363556,
-0.10653741657733917,
0.18230509757995605,
-0.27760905027389526,
0.1948218196630478,
0.043976325541734695,
0.1707150936126709,
-0.13777847588062286,
-0.192750483751297,
0.2347525805234909,
-0.25594663619995117,
0.06964370608329773,
0.3191137909889221,
0.15579649806022644,
-0.0727914571762085,
-0.10050460696220398,
0.0681224837899208,
0.6314305067062378,
0.20859435200691223,
0.2742532789707184,
0.3170742392539978,
0.10632750391960144,
0.007212433964014053,
-0.26398301124572754,
0.18446926772594452,
0.1645270138978958,
0.3289508819580078,
-0.3135349154472351,
0.4106318950653076,
0.12092194706201553,
0.054003097116947174,
0.10479913651943207,
-0.2058165967464447,
0.1527545303106308,
0.24663805961608887,
-0.00807681679725647,
0.09649883210659027,
-0.01673438400030136,
0.14272591471672058,
-0.4825272262096405,
0.13422466814517975,
-0.1952827125787735,
-0.12088599801063538,
-0.1004636213183403,
0.10443969070911407,
-0.19551894068717957,
-0.21266448497772217,
-0.3696012794971466,
-0.07764804363250732,
-0.0689597874879837,
0.0722293108701706,
0.19905614852905273,
0.06624840945005417,
-0.10714627802371979,
0.0741150751709938,
-0.03748159855604172,
0.3358444571495056,
0.13820073008537292,
-0.27885791659355164,
0.4219970107078552,
0.08418398350477219,
-0.1854325532913208,
0.04080178588628769,
0.19232504069805145,
0.6868112683296204,
0.3264051675796509,
0.12538179755210876,
-0.20975032448768616,
0.18548206984996796,
-0.1815427988767624,
-0.13430970907211304,
0.0408783033490181,
-0.09398582577705383,
0.2579249441623688,
0.15108656883239746,
0.2679654657840729,
-0.18706193566322327,
-0.10585232079029083,
-0.00008929893374443054,
-0.21929576992988586,
-0.28976234793663025,
0.5580735206604004,
-0.12223146855831146,
-0.36896857619285583,
-0.08289569616317749,
-0.1019195094704628,
0.001373380422592163,
0.03634263202548027,
0.22633305191993713,
0.15618222951889038,
-0.03431106358766556,
0.09477883577346802,
0.10810358822345734,
0.10852383077144623,
0.4726184010505676,
0.24114760756492615,
-0.11102081090211868,
-0.3880901336669922,
-0.36145710945129395,
-0.3379994034767151,
0.005516059696674347,
-0.14070460200309753,
-0.2692480683326721,
0.22197002172470093,
-0.043902091681957245,
-0.02551424503326416,
0.14709502458572388,
0.2950381636619568,
-0.19122521579265594,
0.13222277164459229,
0.10578612238168716,
-0.40625208616256714,
-0.05506749823689461,
-0.08816148340702057,
0.1412333995103836,
0.03388394042849541,
-0.382242888212204,
0.011004358530044556,
0.23810464143753052,
0.14864149689674377,
0.07033172249794006,
-0.11101491004228592,
0.13018643856048584,
-0.7128452062606812,
0.38158494234085083,
-0.08155224472284317,
0.16211272776126862,
-0.07520867884159088,
-0.32693707942962646,
-0.18492788076400757,
-0.20958378911018372,
-0.01162555068731308,
0.1481730341911316,
-0.048580434173345566,
0.44349485635757446,
-0.07550673931837082,
-0.30861523747444153,
-0.46283283829689026,
0.3745400607585907,
0.2511618137359619,
-0.08699706196784973,
-0.027063172310590744,
-0.0007318397983908653,
-0.22135230898857117,
-0.07950196415185928,
0.1490948498249054,
0.11044977605342865,
-0.12837526202201843,
0.13260462880134583,
-0.2615555226802826,
-0.28827348351478577,
0.41958868503570557,
-0.3508787155151367,
-0.3608841001987457,
-0.08346858620643616,
0.36087581515312195,
-0.08901598304510117,
0.2179589569568634,
-0.23092755675315857,
0.17149507999420166,
0.38374239206314087,
0.08547656238079071,
-0.33614373207092285,
0.26422521471977234,
0.07754863798618317,
0.12074759602546692,
0.04437660798430443,
0.2150428742170334,
-0.04598984122276306,
-0.2682962119579315,
0.1492232382297516,
-0.25478997826576233
] |
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
| 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. | [
-0.49825435876846313,
-0.36330586671829224,
-0.023367539048194885,
0.420921266078949,
0.11685515195131302,
0.11956607550382614,
0.21420486271381378,
0.34216219186782837,
0.1499776989221573,
0.17393366992473602,
-0.174717977643013,
0.13586130738258362,
0.07201629877090454,
0.33009982109069824,
0.022401204332709312,
-0.06821829825639725,
-0.09362227469682693,
0.33549264073371887,
-0.11564901471138,
-0.08089464157819748,
-0.2449655383825302,
0.019791211932897568,
-0.35523802042007446,
-0.14642678201198578,
-0.07282879948616028,
0.08433761447668076,
0.061822324991226196,
0.05845249816775322,
-0.13484442234039307,
-0.1733124554157257,
0.42766448855400085,
-0.21301522850990295,
0.2506575286388397,
0.2815653085708618,
-0.0001142162800533697,
-0.06607636064291,
0.260897696018219,
-0.152724489569664,
-0.224384143948555,
-0.26637136936187744,
-0.40059471130371094,
-0.05850948393344879,
0.29923295974731445,
-0.1608181744813919,
-0.1811847984790802,
0.14375656843185425,
-0.1350570023059845,
-0.3060033917427063,
0.35937583446502686,
0.29560136795043945,
0.20498895645141602,
0.2609767019748688,
-0.3273676335811615,
0.026233339682221413,
0.4034228026866913,
-0.11535261571407318,
-0.15805403888225555,
-0.07724376022815704,
0.07081504166126251,
0.1995444893836975,
-0.08572336286306381,
0.11321619153022766,
-0.032396458089351654,
0.27999234199523926,
0.053100790828466415,
-0.03965812548995018,
-0.343779981136322,
-0.5227094888687134,
0.1472223550081253,
0.5512369871139526,
0.46390020847320557,
-0.15159103274345398,
-0.320380836725235,
-0.1447577029466629,
-0.2005567103624344,
-0.3740544021129608,
0.12731118500232697,
0.5705656409263611,
-0.208666130900383,
0.18749351799488068,
-0.07662173360586166,
-0.09062483161687851,
-0.07498594373464584,
0.1980210840702057,
-0.2640863060951233,
0.3791382312774658,
-0.09910178184509277,
0.1513824760913849,
0.15357349812984467,
0.26999616622924805,
0.343794047832489,
-0.14585669338703156,
-0.06693398952484131,
0.0934593603014946,
-0.40709230303764343,
-0.03713957220315933,
-0.24247458577156067,
0.1992163360118866,
0.02788328379392624,
0.3369448781013489,
0.05727732926607132,
0.04310344532132149,
0.002682657912373543,
0.07964432239532471,
0.3362954258918762,
-0.006596645340323448,
0.06190955638885498,
0.4027074873447418,
0.22822119295597076,
0.25122344493865967,
0.1436464488506317,
-0.0725753903388977,
0.14145883917808533,
0.10661756247282028,
-0.2530406415462494,
-0.11333029717206955,
0.0488373264670372,
-0.35377073287963867,
-0.490464448928833,
-0.08607766032218933,
-0.38392534852027893,
-0.045887939631938934,
0.21186892688274384,
0.20379066467285156,
-0.25723662972450256,
0.11379033327102661,
-0.04262245073914528,
0.20582804083824158,
-0.137087881565094,
-0.06370710581541061,
-0.2795029878616333,
0.03685912862420082,
-0.17033971846103668,
-0.06226590275764465,
0.07806587219238281,
-0.42746448516845703,
0.44596123695373535,
0.07503960281610489,
-0.04586731642484665,
0.003931052982807159,
-0.0962027981877327,
-0.10778336226940155,
-0.03582300990819931,
0.45607754588127136,
0.13562357425689697,
0.18548206984996796,
-0.021070290356874466,
0.2417776733636856,
-0.15508215129375458,
0.1580723226070404,
0.10464192926883698,
-0.13765139877796173,
-0.019160768017172813,
0.20155510306358337,
-0.33917832374572754,
-0.04741354286670685,
-0.06086944788694382,
0.019735731184482574,
0.17997431755065918,
0.028384264558553696,
0.03218090534210205,
-0.10292226076126099,
-0.2547527551651001,
-0.14018553495407104,
0.3513443171977997,
0.2777502238750458,
-0.24123434722423553,
-0.11161239445209503,
-0.27638474106788635,
-0.29246196150779724,
0.6841021180152893,
0.21109040081501007,
-0.12170219421386719,
-0.03699636459350586,
-0.08627296984195709,
0.272208034992218,
0.4257034659385681,
-0.056654930114746094,
-0.6799618601799011,
0.5244802236557007,
-0.1040482297539711,
0.014394650235772133,
0.13753974437713623,
0.09389889240264893,
0.43027517199516296,
0.06432226300239563,
-0.3042377531528473,
0.6874911785125732,
-0.05326809734106064,
0.06250593811273575,
-0.34260183572769165,
-0.24152836203575134,
-0.0039239078760147095,
0.14412856101989746,
0.11205986142158508,
0.18034863471984863,
0.22963449358940125,
0.40689900517463684,
0.42701947689056396,
0.15779905021190643,
0.3548138737678528,
-0.17065240442752838,
0.14093591272830963,
0.072480708360672,
-0.05053379759192467,
-0.3317750096321106,
-0.4354945421218872,
0.12894338369369507,
0.09163855761289597,
-0.38588738441467285,
-0.017749562859535217,
-0.22633621096611023,
-0.2735441327095032,
-0.13928209245204926,
-0.17739780247211456,
-0.38634341955184937,
-0.030007697641849518,
0.12016817182302475,
0.24672919511795044,
-0.10147067904472351,
-0.09973622858524323,
0.17993561923503876,
0.12952879071235657,
0.17185388505458832,
-0.0851275622844696,
0.2909014821052551,
0.051051557064056396,
-0.07869873940944672,
0.05643419921398163,
0.10067439079284668,
0.16076520085334778,
-0.15672755241394043,
-0.22748667001724243,
0.5509997010231018,
0.1506471037864685,
-0.008893027901649475,
-0.22357818484306335,
-0.26339811086654663,
0.20726799964904785,
-0.007315605878829956,
-0.05217641592025757,
0.13123491406440735,
0.10778114944696426,
-0.011516254395246506,
-0.2124728560447693,
-0.0061261653900146484,
-0.16282060742378235,
0.3208184838294983,
0.14303094148635864,
0.3155578076839447,
0.15980952978134155,
-0.34728819131851196,
-0.013221627101302147,
-0.2808314561843872,
0.17540311813354492,
-0.37439852952957153,
0.2546430230140686,
0.039977557957172394,
-0.4373088479042053,
-0.14529559016227722,
0.3640905022621155,
-0.05380633473396301,
-0.0015941709280014038,
0.09837359189987183,
-0.17771372199058533,
0.0533650740981102,
0.1569431871175766,
0.21660904586315155,
0.28097787499427795,
0.18292014300823212,
0.360930860042572,
-0.14567287266254425,
0.2014845907688141,
-0.3535819351673126,
0.2075655162334442,
0.2277015745639801,
-0.011300547979772091,
-0.0966254249215126,
-0.08576402068138123,
-0.23609472811222076,
-0.10259848833084106,
0.0014375708997249603,
0.2126760631799698,
0.2678392231464386,
-0.1771964579820633,
-0.09920048713684082,
-0.4850228428840637,
-0.04664904251694679,
-0.265875905752182,
-0.24423493444919586,
0.13285338878631592,
-0.2023680955171585,
-0.11391542851924896,
0.23418889939785004,
-0.045239340513944626,
0.19384965300559998,
-0.2380029410123825,
-0.05671299993991852,
-0.008877541869878769,
-0.1608552485704422,
-0.03230710327625275,
0.06014557555317879,
-0.40098774433135986,
0.15507090091705322,
0.14599855244159698,
0.24845731258392334,
0.22487317025661469,
0.0022331420332193375,
-0.1403692662715912,
-0.30352845788002014,
0.02193155139684677,
0.13200360536575317,
-0.04595240205526352,
0.2542257308959961,
0.2573760747909546,
0.07541336864233017,
-0.006330274045467377,
-0.21217994391918182,
0.04477778449654579,
-0.03143340349197388,
-0.046972356736660004,
0.05638408660888672,
-0.009477755054831505,
0.21317243576049805,
-0.1877526491880417,
-0.5557447671890259,
-0.26389235258102417,
-0.4663145840167999,
0.24986852705478668,
0.1269916296005249,
0.13785886764526367,
-0.2490091770887375,
0.04513655602931976,
-0.1408192217350006,
-0.06365752220153809,
-0.26051610708236694,
-0.08297427743673325,
-0.12176579236984253,
0.20919837057590485,
-0.08437094837427139,
-0.32278957962989807,
-0.007006391882896423,
-0.06279756128787994,
0.18685387074947357,
0.48729753494262695,
-0.4944642186164856,
0.14916537702083588,
-0.4231759309768677,
0.34732139110565186,
-0.1534116119146347,
0.03519224375486374,
0.09935680031776428,
-0.323687344789505,
0.02556983195245266,
-0.194642573595047,
0.16921447217464447,
0.048033710569143295,
-0.37567317485809326,
0.219522625207901,
-0.044408202171325684,
0.3776768147945404,
0.3303661346435547,
0.5566641092300415,
0.2591541111469269,
-0.0720929205417633,
0.23635993897914886,
-0.11775011569261551,
0.05420438200235367,
-0.1832285225391388,
-0.3651827573776245,
0.234845370054245,
0.02292431890964508,
0.04155338555574417,
0.2922976016998291,
-0.09465199708938599,
-0.23378364741802216,
-0.18462207913398743,
0.05266324803233147,
-0.112037293612957,
-0.2951134443283081,
-0.2042664885520935,
-0.058838069438934326,
0.22045236825942993,
0.15566912293434143,
0.2897512912750244,
0.37532803416252136,
-0.22523057460784912,
-0.11943167448043823,
0.07713866233825684,
0.03560347110033035,
0.0727933868765831,
-0.0076303668320178986,
0.05075030028820038,
-0.23518043756484985,
0.12909480929374695,
-0.07160671055316925,
0.2153492271900177,
0.10990329086780548,
-0.13006913661956787,
0.30000853538513184,
0.2633485198020935,
0.5099023580551147,
-0.07771645486354828,
0.02680741623044014,
-0.11359624564647675,
0.043487124145030975,
-0.491362988948822,
0.05051901564002037,
-0.1522735357284546,
0.45809701085090637,
0.6418753862380981,
-0.03074641525745392,
-0.44041889905929565,
-0.09124398976564407,
0.5732642412185669,
0.2951187193393707,
0.03834155574440956,
-0.10589061677455902,
-0.18922525644302368,
-0.22853201627731323,
-0.1687982678413391,
0.3229318857192993,
-0.0391298308968544,
0.1823047399520874,
0.09044191241264343,
-0.1138087660074234,
-0.09387771785259247,
-0.1725952923297882,
-0.05107314884662628,
0.10212314128875732,
0.30494001507759094,
-0.06895790994167328,
0.4671151340007782,
0.07153204083442688,
-0.08943907916545868,
0.28652438521385193,
0.6323867440223694,
-0.1941797137260437,
-0.24558410048484802,
0.21558144688606262,
-0.031114183366298676,
0.1700240820646286,
0.19463364779949188,
-0.24864885210990906,
-0.03371596336364746,
0.058678630739450455,
0.20639517903327942,
0.011739671230316162,
0.37368056178092957,
-0.09893561154603958,
-0.20573778450489044,
-0.12310843169689178,
-0.645168125629425,
0.41920557618141174,
0.16190063953399658,
0.02222535014152527,
0.2546164393424988,
-0.3338814377784729,
-0.14291886985301971,
0.255706250667572,
0.024723440408706665,
0.723997950553894,
0.019309628754854202,
-0.0344478078186512,
0.11931974440813065,
-0.11244240403175354,
0.3942900002002716,
-0.029816290363669395,
0.11059685796499252,
-0.4026288688182831,
-0.23221629858016968,
-0.026131536811590195,
-0.11218073964118958,
0.110261470079422,
0.03227876126766205,
-0.25132253766059875,
0.2878294289112091,
-0.10153956711292267,
0.264400452375412,
0.17167916893959045,
0.27325889468193054,
-0.3659055531024933,
-0.37031081318855286,
0.0985313355922699,
0.08405285328626633,
-0.04028516262769699,
0.3572288453578949,
0.19379180669784546,
-0.012862205505371094,
-0.13614459335803986,
-0.157884880900383,
-0.23850542306900024,
0.25189095735549927,
-0.4212105870246887,
0.10554675757884979,
-0.3807304799556732,
-0.3903082609176636,
0.06712019443511963,
0.21619580686092377,
-0.23926286399364471,
0.28611835837364197,
-0.11722023785114288,
0.22542762756347656,
0.19849050045013428,
-0.03877763822674751,
0.1306568682193756,
0.01693282276391983,
0.057564619928598404,
0.043863505125045776,
-0.15667647123336792,
-0.1365014910697937,
0.023436281830072403,
-0.10862985998392105,
0.21306312084197998,
0.2930818498134613,
0.20861299335956573,
-0.44678038358688354,
-0.21079480648040771,
-0.12548910081386566,
0.19662146270275116,
-0.3960321545600891,
0.12917372584342957,
0.0992850512266159,
-0.18758392333984375,
0.244090735912323,
-0.11182358860969543,
-0.39414504170417786,
-0.3167109787464142,
0.294390469789505,
0.15663784742355347,
0.15178470313549042,
0.3451685309410095,
0.05863441899418831,
-0.23786233365535736,
-0.30235350131988525,
0.04693368822336197,
-0.03287583589553833,
-0.4500344693660736,
0.23532827198505402,
-0.3565825819969177,
0.07808186113834381,
-0.14780829846858978,
0.18439503014087677,
-0.06442704796791077,
-0.04195038974285126,
-0.21783779561519623,
-0.42819809913635254,
-0.03356524556875229,
0.03352748975157738,
-0.11263549327850342,
0.28352200984954834,
-0.18215268850326538,
0.4459037184715271,
-0.022387320175766945,
0.0731118693947792,
-0.23821446299552917,
0.21032372117042542,
-0.11047042161226273,
0.295937716960907,
0.08272534608840942,
0.059890687465667725,
0.3500663936138153,
-0.07201547920703888,
0.1116129457950592,
0.2584766149520874,
-0.12411080300807953,
-0.16616058349609375,
-0.23466306924819946,
0.13993066549301147,
0.08206592500209808,
-0.1846507489681244,
-0.1477441042661667,
-0.020279981195926666,
-0.28353264927864075,
-0.14905495941638947,
0.2523054778575897,
0.15393197536468506,
0.04490213096141815,
-0.05973847582936287,
0.4573676288127899,
-0.004633195698261261,
-0.21206650137901306,
0.03629127889871597,
-0.4483611285686493,
0.1188943088054657,
0.003022425342351198,
0.4379933178424835,
0.2387913018465042,
-0.005513980984687805,
0.12179345637559891,
-0.39320889115333557,
0.1826304942369461,
0.06035400554537773,
0.12824243307113647,
-0.12953831255435944,
0.04744087532162666,
0.4261728525161743,
0.39774104952812195,
0.6233176589012146,
0.1109960675239563,
-0.12532512843608856,
0.17206275463104248,
0.1965510994195938,
-0.2678094208240509,
0.025915037840604782,
0.177317813038826,
-0.06068146228790283,
0.12062084674835205,
0.29313158988952637,
0.12104541063308716,
0.010402895510196686,
-0.04516369104385376,
-0.03981199115514755,
0.32121196389198303,
0.13982994854450226,
0.32128432393074036,
0.7439118027687073,
-0.2419659048318863,
0.11605857312679291,
0.07475611567497253,
-0.05760801210999489,
0.06122500076889992,
0.488919198513031,
-0.036582157015800476,
0.28054895997047424,
-0.034120842814445496,
-0.010969098657369614,
-0.12063095718622208,
-0.6058768033981323,
-0.020965751260519028,
0.006900951266288757,
-0.06174488365650177,
0.10155276209115982,
-0.06082071363925934,
0.4986747205257416,
-0.27006420493125916,
0.058240555226802826,
-0.13075906038284302,
0.06682547926902771,
-0.06576582044363022,
-0.11843731999397278,
0.03168415278196335,
-0.11748659610748291,
-0.15206488966941833,
0.13629095256328583,
0.05953587219119072,
-0.12273401021957397,
0.33355194330215454,
0.07547758519649506,
-0.15119428932666779,
-0.21596674621105194,
-0.17208898067474365,
0.15628579258918762,
-0.18365949392318726,
-0.37975600361824036,
0.10548610985279083,
-0.07123833894729614,
-0.052668496966362,
-0.010187968611717224,
0.05744248256087303,
0.06362631916999817,
0.22169752418994904,
0.06483188271522522,
-0.3334890902042389,
0.11647653579711914,
-0.008188936859369278,
-0.13626180589199066,
0.21159270405769348,
0.18588018417358398,
0.5565017461776733,
0.4256335496902466,
0.0932522565126419,
-0.2008557915687561,
0.1646876335144043,
0.009753525257110596,
0.0744679719209671,
-0.5181636214256287,
0.41728124022483826,
0.040215425193309784,
-0.034046560525894165,
-0.20783773064613342,
-0.12649127840995789,
-0.19520562887191772,
0.05437828600406647,
-0.10790251195430756,
-0.20742478966712952,
0.05843321979045868,
-0.2539299428462982,
0.03109075501561165,
0.07329867780208588,
0.369940847158432,
0.11854004859924316,
0.1614401936531067,
-0.34942367672920227,
-0.14524592459201813,
-0.4724295437335968,
0.08732827752828598,
-0.40051987767219543,
-0.0991923063993454,
0.014139149338006973,
0.5180474519729614,
-0.25192001461982727,
0.28834009170532227,
0.013705618679523468,
0.20898737013339996,
0.259298175573349,
0.2552089989185333,
0.07738615572452545,
-0.1521037518978119,
-0.029178231954574585,
-0.0034299027174711227,
0.04562343657016754,
-0.5615600943565369,
0.24927665293216705,
-0.14006775617599487,
0.014477916061878204,
-0.0013411957770586014,
-0.46142974495887756,
0.49912333488464355,
-0.22956636548042297,
0.3678923547267914,
0.2070164978504181,
0.3847745954990387,
-0.10605944693088531,
-0.034132346510887146,
-0.36620819568634033,
-0.21852827072143555,
-0.5283229947090149,
0.13558128476142883,
0.03726283460855484,
0.38328036665916443,
-0.09154437482357025,
-0.24056319892406464,
-0.5060834884643555,
0.42639777064323425,
0.20682962238788605,
0.10373971611261368,
0.1377105861902237,
-0.08050591498613358,
-0.14899009466171265,
0.12209012359380722,
0.3464684784412384,
0.38050276041030884,
-0.2951086759567261,
-0.05067366361618042,
-0.23621191084384918,
-0.6126601696014404,
0.4302642345428467,
-0.27342918515205383,
-0.16914555430412292,
-0.22635741531848907,
0.25312262773513794,
0.5184563994407654,
-0.16450656950473785,
-0.47196269035339355,
-0.05993126705288887,
0.3833751380443573,
-0.25336140394210815,
0.0016925744712352753,
0.010826477780938148,
0.14645574986934662,
0.05888010933995247,
-0.046625956892967224,
0.3047161400318146,
0.25140079855918884,
-0.6498928666114807,
0.29788559675216675,
-0.38829880952835083
] |
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? | 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.`
| [
-0.3407287299633026,
0.09586314857006073,
0.020146872848272324,
-0.01970648020505905,
-0.04399851709604263,
-0.23062801361083984,
0.2176782339811325,
0.22050531208515167,
-0.3871918022632599,
0.3351339101791382,
-0.11347246915102005,
0.53521728515625,
0.14174818992614746,
0.08867251873016357,
-0.20317195355892181,
0.1049024909734726,
0.23621413111686707,
0.23997081816196442,
-0.24056819081306458,
-0.038869623094797134,
-0.3274393677711487,
-0.08374538272619247,
-0.543146550655365,
-0.08017405867576599,
0.03825574740767479,
-0.3126029372215271,
-0.052249256521463394,
-0.3268464505672455,
-0.35112324357032776,
-0.5081194043159485,
0.44028520584106445,
0.08132945001125336,
0.20888373255729675,
0.46822646260261536,
-0.00012007453187834471,
-0.09463971108198166,
0.2804914116859436,
0.19081079959869385,
-0.528661847114563,
0.0385102704167366,
0.030535951256752014,
-0.2849622070789337,
0.3648337125778198,
-0.23372820019721985,
0.05033773183822632,
-0.10750938206911087,
-0.2007056474685669,
-0.08106407523155212,
0.2294459491968155,
0.20339946448802948,
0.10674875974655151,
0.48175910115242004,
-0.39581456780433655,
-0.05251077935099602,
-0.10072063654661179,
-0.41280221939086914,
-0.14566028118133545,
-0.13121384382247925,
0.20996372401714325,
-0.040350839495658875,
-0.12016312032938004,
0.3816956579685211,
0.11175276339054108,
-0.144318625330925,
0.1828632354736328,
0.21686457097530365,
0.12247087061405182,
-0.13061083853244781,
0.10993841290473938,
-0.07348186522722244,
0.5511658191680908,
-0.15366235375404358,
-0.3213226795196533,
-0.013090446591377258,
0.2710423469543457,
-0.34545448422431946,
0.0694473385810852,
-0.21045807003974915,
0.12383627891540527,
-0.18340356647968292,
-0.3953874409198761,
0.11685510724782944,
-0.29189032316207886,
0.043071575462818146,
-0.17351895570755005,
0.6761929988861084,
-0.05397014692425728,
0.23830652236938477,
-0.19091355800628662,
0.023148460313677788,
0.4162938892841339,
-0.27700507640838623,
-0.4394727051258087,
0.08091144263744354,
-0.1885320097208023,
-0.14932245016098022,
0.054571956396102905,
0.6267896890640259,
-0.08148591220378876,
-0.2817956805229187,
0.04213602468371391,
-0.05936764180660248,
-0.007463842164725065,
-0.002876240760087967,
0.0098732216283679,
0.6803567409515381,
0.2883837819099426,
0.252688467502594,
0.09202761948108673,
0.2342337816953659,
-0.21001870930194855,
-0.02844230830669403,
0.3794037699699402,
-0.2080865353345871,
0.24472390115261078,
0.09592963010072708,
-0.14614203572273254,
-0.4739620089530945,
-0.06251201033592224,
0.12325722724199295,
-0.16573457419872284,
0.22395974397659302,
-0.01939627155661583,
0.3236624002456665,
-0.454439252614975,
0.36475327610969543,
0.06905844062566757,
0.1818402111530304,
-0.16336673498153687,
-0.08367352932691574,
-0.17592523992061615,
-0.08484494686126709,
-0.2047642022371292,
0.02856353484094143,
-0.038942743092775345,
-0.052775923162698746,
0.009552014991641045,
0.3359440863132477,
0.17472881078720093,
-0.2086106687784195,
-0.13012000918388367,
0.0344250425696373,
0.28431347012519836,
0.016711175441741943,
-0.06947720795869827,
0.09709067642688751,
-0.067067950963974,
-0.4485630989074707,
0.025097616016864777,
0.14953100681304932,
-0.17763486504554749,
-0.0863455981016159,
0.11171147227287292,
0.10253100097179413,
-0.06872670352458954,
0.10330339521169662,
-0.2900964617729187,
0.07947979867458344,
0.03529275208711624,
-0.269866406917572,
0.3079952895641327,
-0.7406336069107056,
-0.46574118733406067,
-0.2854090631008148,
0.23189300298690796,
0.04679088294506073,
-0.3065967559814453,
0.1717643141746521,
-0.0817285105586052,
0.09479960799217224,
0.09585969150066376,
0.1646788865327835,
-0.18323197960853577,
0.02756691724061966,
-0.0006795600056648254,
0.10103102028369904,
0.46707767248153687,
-0.33555397391319275,
-0.5235202312469482,
-0.059104956686496735,
0.1834097057580948,
0.2624158263206482,
-0.21925026178359985,
-0.14656949043273926,
0.2765994668006897,
-0.01723579876124859,
-0.25164446234703064,
0.07654263079166412,
0.31833669543266296,
-0.1443227231502533,
-0.49661993980407715,
0.15237951278686523,
0.24079908430576324,
-0.3675806224346161,
0.047085054218769073,
-0.005511857569217682,
0.007895037531852722,
-0.09027469158172607,
0.4845699667930603,
-0.19629770517349243,
-0.11060360819101334,
-0.21924252808094025,
0.5257369875907898,
-0.040243953466415405,
0.09108749777078629,
0.10519454628229141,
-0.3134966194629669,
0.33134013414382935,
-0.17084084451198578,
-0.0760224461555481,
0.002802431583404541,
-0.2973911762237549,
-0.19413435459136963,
0.2957974374294281,
-0.22233591973781586,
-0.35445117950439453,
0.12337367236614227,
0.20879198610782623,
0.04562515392899513,
0.13125082850456238,
0.2076786905527115,
0.37957608699798584,
0.01590581424534321,
-0.1194610595703125,
0.036666858941316605,
-0.026147780939936638,
-0.07939066737890244,
-0.1908147931098938,
-0.21079955995082855,
0.059515442699193954,
0.09782226383686066,
0.0686795562505722,
-0.38140609860420227,
0.474222332239151,
-0.03996962308883667,
0.0725514218211174,
0.10955780744552612,
-0.3132070302963257,
-0.14300234615802765,
-0.0078217051923275,
0.14202281832695007,
0.04067066311836243,
0.057075679302215576,
0.22036585211753845,
0.17314857244491577,
0.579052746295929,
0.37449532747268677,
0.13813303411006927,
-0.20483097434043884,
-0.3890319764614105,
-0.034926824271678925,
-0.02041766047477722,
0.08769620209932327,
-0.1930113583803177,
0.013602569699287415,
0.04103079438209534,
0.34372782707214355,
-0.1347716748714447,
-0.043862439692020416,
0.2098347395658493,
0.21204021573066711,
-0.13231825828552246,
-0.08044625073671341,
-0.1282435655593872,
-0.04673846811056137,
-0.2977059483528137,
0.24269241094589233,
0.1929149180650711,
0.4415316581726074,
-0.020921215415000916,
0.004586517810821533,
0.25366416573524475,
-0.30857619643211365,
0.03500646725296974,
0.12130120396614075,
0.07736178487539291,
0.24923759698867798,
0.3962172567844391,
0.5058239698410034,
0.13473325967788696,
-0.04918203130364418,
0.1432277262210846,
-0.22275008261203766,
0.34777167439460754,
-0.31084367632865906,
0.36402228474617004,
-0.2481456696987152,
0.1659771203994751,
-0.12313754856586456,
0.20771609246730804,
-0.24651873111724854,
-0.24279971420764923,
0.06057177484035492,
0.1537063717842102,
0.31677770614624023,
0.007890298962593079,
-0.09371022880077362,
0.09162411093711853,
-0.10636850446462631,
0.16560807824134827,
-0.11855760216712952,
-0.18364837765693665,
-0.5358704924583435,
0.015085849910974503,
0.05157468467950821,
-0.03543361648917198,
0.08676411956548691,
0.03342311084270477,
-0.23604188859462738,
-0.0917072519659996,
-0.556489884853363,
-0.09647808969020844,
-0.17307338118553162,
0.6260454058647156,
0.06964651495218277,
-0.16555161774158478,
-0.36294102668762207,
-0.20403726398944855,
0.11869297176599503,
-0.3280603885650635,
-0.19651827216148376,
-0.08205647766590118,
-0.1514008492231369,
-0.18959268927574158,
-0.18531246483325958,
-0.3551510274410248,
-0.032406285405159,
-0.12040860950946808,
0.09254373610019684,
-0.109988272190094,
-0.08908174932003021,
0.2157287746667862,
-0.010807362385094166,
-0.11583411693572998,
0.011978507041931152,
-0.10260943323373795,
-0.1645551472902298,
0.16900619864463806,
0.22991640865802765,
-0.08417736738920212,
-0.17830948531627655,
-0.14081580936908722,
-0.0611589141190052,
0.083427295088768,
0.2424772083759308,
-0.4206598997116089,
-0.13244403898715973,
0.0974031537771225,
0.5735931396484375,
-0.1341758817434311,
-0.21195076406002045,
0.3274683952331543,
0.04004393145442009,
0.16102208197116852,
-0.3465433120727539,
-0.18096280097961426,
0.04642489179968834,
0.14568448066711426,
0.3119826912879944,
-0.046289585530757904,
0.2540567219257355,
0.07646149396896362,
0.45482194423675537,
0.3066437542438507,
-0.336328387260437,
0.06259959936141968,
0.17640653252601624,
0.2902878224849701,
-0.313813179731369,
-0.029810551553964615,
0.002050423761829734,
-0.23780781030654907,
-0.32668548822402954,
0.4817732572555542,
-0.04909580945968628,
-0.2946670651435852,
-0.055630456656217575,
-0.25904032588005066,
-0.3538505733013153,
-0.20782983303070068,
0.03157526254653931,
0.2630327641963959,
0.24440881609916687,
0.13923907279968262,
0.1654694378376007,
-0.26403331756591797,
-0.0548921637237072,
0.14556433260440826,
0.21311712265014648,
-0.06024513393640518,
-0.010963921435177326,
-0.14293980598449707,
-0.10921698808670044,
-0.21450600028038025,
0.4562336802482605,
0.22824802994728088,
0.2691197097301483,
0.46514692902565,
0.008252259343862534,
0.2363271564245224,
-0.04086269065737724,
0.23841255903244019,
-0.4981730580329895,
0.24161460995674133,
0.1284242868423462,
0.013960078358650208,
-0.35214748978614807,
-0.413528710603714,
-0.4418821632862091,
-0.30866068601608276,
0.08082619309425354,
0.5009602308273315,
0.033961035311222076,
-0.14635728299617767,
0.1423518806695938,
0.13428044319152832,
-0.07174907624721527,
0.0080428970977664,
-0.22811932861804962,
0.00402485579252243,
0.315079927444458,
-0.010583452880382538,
-0.3792238235473633,
0.20854517817497253,
-0.41885945200920105,
0.18106426298618317,
-0.1743132770061493,
0.17214101552963257,
-0.26838773488998413,
0.42368730902671814,
0.3804582953453064,
-0.08207184821367264,
0.12358488142490387,
-0.224344402551651,
0.049680937081575394,
0.24076315760612488,
0.08496437966823578,
-0.18449315428733826,
-0.2994627058506012,
-0.39718469977378845,
0.11810170114040375,
0.2443636655807495,
0.1492834836244583,
-0.217850923538208,
-0.001311078667640686,
-0.1491265743970871,
0.09674771875143051,
0.12705682218074799,
0.3347141146659851,
0.611024796962738,
0.16766588389873505,
-0.3250797390937805,
0.024688860401511192,
0.5451251864433289,
0.10982146859169006,
-0.5237116813659668,
0.31961336731910706,
-0.13675710558891296,
-0.13119429349899292,
0.345101535320282,
0.20790033042430878,
0.5773249268531799,
0.3770318031311035,
0.01943720132112503,
0.3511909544467926,
-0.10225485265254974,
0.04953082278370857,
0.21036182343959808,
0.30168259143829346,
-0.560112714767456,
-0.17531251907348633,
0.0033195000141859055,
-0.12353034317493439,
0.22514113783836365,
-0.41505950689315796,
-0.4307829737663269,
0.1788148581981659,
-0.048122137784957886,
0.20654112100601196,
-0.0077955275774002075,
-0.1147194355726242,
-0.06728509813547134,
0.22895582020282745,
-0.03155592828989029,
0.07289373129606247,
0.002071753144264221,
0.09130696952342987,
-0.3067057132720947,
0.059037335216999054,
-0.168654203414917,
-0.09935291111469269,
-0.22661782801151276,
0.20481529831886292,
-0.5656272768974304,
0.02256498485803604,
0.16404791176319122,
-0.609951376914978,
0.14631827175617218,
0.44099509716033936,
0.38953471183776855,
0.4060218334197998,
0.05654492229223251,
0.1726568043231964,
-0.1098920926451683,
0.42969727516174316,
0.3066689074039459,
-0.24396882951259613,
0.2377219796180725,
-0.1496572196483612,
-0.3509676456451416,
-0.22931379079818726,
-0.1297564059495926,
-0.046246424317359924,
0.03808741271495819,
0.08853485435247421,
-0.06542100012302399,
-0.27746298909187317,
0.17146822810173035,
0.1725098192691803,
0.2097303867340088,
-0.21555103361606598,
0.11852647364139557,
-0.34687066078186035,
-0.14576581120491028,
0.4411408007144928,
-0.2583320438861847,
-0.37919726967811584,
0.023189008235931396,
0.2323479950428009,
0.14762726426124573,
0.27859604358673096,
0.45972731709480286,
-0.2049037516117096,
-0.15234994888305664,
-0.10484476387500763,
-0.3147144913673401,
-0.023090120404958725,
-0.21673938632011414,
0.028790559619665146,
-0.012349537573754787,
0.1785406917333603,
0.16913819313049316,
0.6543970704078674,
0.10329067707061768,
0.18224544823169708,
-0.2982068657875061,
-0.05164369195699692,
0.11724769324064255,
0.05210597440600395,
0.01961623877286911,
0.08533011376857758,
0.2314545214176178,
0.3444781005382538,
-0.04146452248096466,
0.004567952826619148,
-0.2541135549545288,
-0.05542995035648346,
0.28986430168151855,
0.22358585894107819,
-0.18869267404079437,
0.03327767550945282,
0.1170879527926445,
0.11593712866306305,
0.034516945481300354,
0.23708932101726532,
-0.27332955598831177,
-0.1604657769203186,
-0.25937163829803467,
0.10383273661136627,
0.162213534116745,
0.09257551282644272,
-0.018271850422024727,
0.026577651500701904,
0.10642930865287781,
-0.29316428303718567,
0.1557692140340805,
0.018096916377544403,
-0.0641973465681076,
0.38032668828964233,
0.3984218239784241,
0.47610610723495483,
0.012778334319591522,
0.27989888191223145,
0.028262954205274582,
-0.13461144268512726,
0.0021840562112629414,
0.26313409209251404,
-0.007643328048288822,
-0.1921149045228958,
-0.018322033807635307,
-0.06497486680746078,
-0.3295801281929016,
0.36249035596847534,
0.25057893991470337,
-0.09909364581108093,
0.005495470017194748,
-0.23989498615264893,
0.2780991792678833,
0.4625728130340576,
0.26968422532081604,
-0.5488235950469971,
0.17409613728523254,
0.06853168457746506,
-0.06285355985164642,
-0.06550481170415878,
0.12775036692619324,
0.10583706200122833,
-0.032042667269706726,
0.3218315541744232,
0.24326780438423157,
-0.3446704149246216,
0.09346890449523926,
0.07838679105043411,
0.15819191932678223,
-0.2510124444961548,
0.14277906715869904,
0.49154841899871826,
0.06841710209846497,
0.1309804469347,
0.12007240951061249,
-0.2511835992336273,
-0.07219360023736954,
0.13292661309242249,
0.10111521184444427,
0.37254026532173157,
-0.004431102424860001,
0.06133295223116875,
-0.02596902847290039,
-0.04210825264453888,
0.19627834856510162,
-0.012396544218063354,
-0.11816085875034332,
0.2980307638645172,
0.27345141768455505,
-0.022763118147850037,
-0.07235568016767502,
-0.2876741588115692,
-0.2197556495666504,
0.0623558834195137,
-0.25987619161605835,
-0.2434258759021759,
-0.39538392424583435,
-0.09513663500547409,
0.02094966173171997,
0.17783978581428528,
-0.11425434052944183,
0.22031956911087036,
0.1312725841999054,
0.3372005224227905,
-0.2224421352148056,
-0.1135721504688263,
-0.2805321216583252,
0.19298702478408813,
0.4984028935432434,
-0.029347343370318413,
0.3801839053630829,
0.10854202508926392,
0.17202956974506378,
0.00012472644448280334,
0.13632319867610931,
0.49268755316734314,
0.18975882232189178,
-0.1999732404947281,
-0.13787944614887238,
0.01750609278678894,
0.1679355651140213,
0.16526685655117035,
-0.07836972922086716,
-0.007361002266407013,
-0.22868601977825165,
0.08934265375137329,
0.127144917845726,
-0.11767999827861786,
0.42456698417663574,
-0.27771836519241333,
0.2326337844133377,
-0.3526996076107025,
-0.07879962772130966,
0.3497602641582489,
-0.1669943928718567,
-0.15288108587265015,
0.2594544589519501,
-0.04330676794052124,
0.48026418685913086,
0.10740698873996735,
0.23872601985931396,
0.014522721990942955,
-0.09689866751432419,
0.05360874533653259,
-0.0008018314838409424,
0.5113343000411987,
0.35460877418518066,
-0.2064843773841858,
-0.09246467053890228,
-0.3650376796722412,
-0.35685789585113525,
0.2962130904197693,
0.09176306426525116,
0.0327465683221817,
-0.09371854364871979,
-0.09760517627000809,
-0.3033277690410614,
-0.09738630056381226,
0.5924322009086609,
-0.15761792659759521,
0.21042121946811676,
0.17103222012519836,
-0.44420182704925537,
-0.01288926973938942,
-0.09014594554901123,
-0.3463606834411621,
0.06069883704185486,
-0.2360573709011078,
-0.046593669801950455,
0.007123841904103756,
0.014179117977619171,
0.2160274088382721,
-0.057736173272132874,
0.20840349793434143,
-0.18739067018032074,
0.5839202404022217,
0.2628248333930969,
0.20659025013446808,
-0.07097747921943665,
-0.05141928791999817,
-0.09178082644939423,
-0.06317252665758133,
-0.24580702185630798,
0.1767822802066803,
-0.12259261310100555,
0.3994283080101013,
0.08196426928043365,
-0.017570529133081436,
0.14149920642375946,
0.18741866946220398,
0.38278424739837646,
0.0315910167992115,
-0.03921275585889816,
-0.16732953488826752,
0.05079597979784012,
-0.12744417786598206,
0.14309197664260864,
0.3633792996406555,
0.08016514033079147,
0.41312775015830994,
-0.501255989074707,
-0.4333030879497528,
0.4433519244194031,
-0.34204602241516113,
-0.1933707445859909,
-0.28733059763908386,
0.21275824308395386,
-0.1689903438091278,
-0.3034555912017822,
-0.7309067845344543,
-0.11462792754173279,
0.3374921679496765,
-0.05704684555530548,
0.0783059149980545,
0.23800969123840332,
-0.04907658323645592,
0.18756945431232452,
-0.02830987423658371,
0.5207922458648682,
-0.0390443280339241,
-0.24160675704479218,
0.12060551345348358,
-0.33389246463775635
] |
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 | 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). | [
-0.05149029195308685,
0.05963234603404999,
-0.0058195143938064575,
0.38931983709335327,
0.31956732273101807,
-0.06691604852676392,
0.355448842048645,
0.21970373392105103,
-0.0030774977058172226,
0.0706980973482132,
-0.39205777645111084,
-0.05367268621921539,
-0.12292274087667465,
0.24705003201961517,
0.22455748915672302,
-0.14153499901294708,
-0.1298777163028717,
-0.10220761597156525,
-0.04672599583864212,
0.08585651218891144,
0.034008994698524475,
0.04293912649154663,
-0.3607788681983948,
0.23800618946552277,
0.07146266102790833,
0.07048775255680084,
0.2224087417125702,
0.12886694073677063,
-0.2752273380756378,
-0.5534103512763977,
0.3333449959754944,
0.1885947436094284,
0.11927284300327301,
0.5462345480918884,
-0.00011583066952880472,
0.24421732127666473,
0.39349067211151123,
0.16857276856899261,
-0.07284693419933319,
-0.38083428144454956,
-0.24767380952835083,
-0.22861629724502563,
0.18918459117412567,
-0.09227417409420013,
-0.3205201029777527,
-0.29461270570755005,
0.06822500377893448,
-0.07210682332515717,
0.5810770988464355,
0.4117332398891449,
0.15055972337722778,
0.309689462184906,
0.2156849056482315,
0.1324983686208725,
-0.007463544607162476,
-0.056022778153419495,
-0.06731098145246506,
0.2791619598865509,
0.11993007361888885,
0.10766725242137909,
-0.025601334869861603,
0.23383456468582153,
-0.11265100538730621,
-0.0973178893327713,
0.23694416880607605,
-0.17838183045387268,
-0.1541288197040558,
-0.38907232880592346,
0.21170461177825928,
0.2867969870567322,
0.5581984519958496,
0.041375789791345596,
-0.24066706001758575,
-0.1640159785747528,
-0.14165978133678436,
-0.1963203251361847,
0.35017895698547363,
0.47464171051979065,
-0.1774430125951767,
0.4512957036495209,
-0.7093986868858337,
-0.1753552258014679,
-0.5136407613754272,
0.08768001943826675,
-0.32906943559646606,
0.2919461131095886,
-0.16305264830589294,
0.27144190669059753,
-0.036280740052461624,
-0.1527380496263504,
0.306328684091568,
-0.08110552281141281,
0.023065371438860893,
0.2466161698102951,
-0.16764390468597412,
0.04714534431695938,
0.054923806339502335,
0.40860891342163086,
0.08682479709386826,
0.27441418170928955,
-0.031511008739471436,
0.1527988612651825,
0.08587761223316193,
0.13976708054542542,
0.3015269935131073,
-0.010598785243928432,
-0.007215574383735657,
0.31095969676971436,
0.4992300271987915,
0.4368622303009033,
-0.19999387860298157,
0.13236156105995178,
-0.14904360473155975,
-0.41329076886177063,
-0.02304493635892868,
-0.39142197370529175,
0.3491755723953247,
-0.3434738516807556,
-0.12088276445865631,
0.379290372133255,
-0.1956111192703247,
-0.11615854501724243,
0.3091535270214081,
0.40186914801597595,
-0.22244147956371307,
-0.04857569932937622,
-0.1620418131351471,
-0.05667982995510101,
-0.15331368148326874,
-0.32681867480278015,
-0.08618361502885818,
-0.11045977473258972,
-0.17251920700073242,
-0.11110249906778336,
0.011711791157722473,
-0.44269469380378723,
0.18416059017181396,
-0.11480750888586044,
-0.04412676393985748,
-0.14149025082588196,
0.03417477011680603,
-0.0026438585482537746,
0.02613617479801178,
0.41073310375213623,
0.2713213264942169,
-0.07141106575727463,
0.11477884650230408,
-0.23228882253170013,
0.09181978553533554,
0.05244549736380577,
-0.07992210239171982,
-0.4040246605873108,
-0.01477079652249813,
0.07933341711759567,
-0.35769206285476685,
-0.07823628932237625,
-0.0346423014998436,
0.16799284517765045,
-0.23167505860328674,
-0.2271403968334198,
-0.3150966763496399,
0.1231679916381836,
0.008633162826299667,
-0.13926158845424652,
0.2256251722574234,
0.4096745252609253,
-0.2674056589603424,
-0.061301618814468384,
-0.009309672750532627,
-0.16355949640274048,
0.24923601746559143,
0.29143625497817993,
-0.392426460981369,
0.0399806834757328,
-0.11204632371664047,
-0.0010862946510314941,
0.47526973485946655,
-0.24198119342327118,
-0.6556892395019531,
0.3509367108345032,
-0.04908967763185501,
0.3627772033214569,
0.17426323890686035,
-0.1537747085094452,
0.42159122228622437,
0.0036356323398649693,
-0.10994237661361694,
0.19466640055179596,
0.2538757622241974,
-0.14217089116573334,
-0.1731509119272232,
-0.04867270216345787,
0.2630132734775543,
0.13062283396720886,
0.34340670704841614,
0.04826650395989418,
0.35794565081596375,
-0.2852781116962433,
0.4496738314628601,
-0.024554375559091568,
0.06781064718961716,
-0.009364262223243713,
0.23888835310935974,
0.5230962634086609,
-0.09375956654548645,
-0.09569264948368073,
0.14144323766231537,
0.08174920827150345,
-0.07856430858373642,
-0.08429723978042603,
-0.10241883993148804,
-0.08573400229215622,
-0.404682457447052,
0.0430019274353981,
-0.42710739374160767,
-0.4443725645542145,
0.10292714834213257,
0.06251051276922226,
-0.1409675031900406,
0.053625281900167465,
-0.12452539801597595,
0.3101072609424591,
0.0694289356470108,
0.1656421720981598,
0.04127116501331329,
0.28157171607017517,
-0.011861087754368782,
0.15226095914840698,
0.06886518746614456,
0.06979075074195862,
0.41183707118034363,
-0.07920458167791367,
-0.12405426055192947,
0.36449941992759705,
0.09825127571821213,
0.06798701733350754,
0.29848891496658325,
0.021005094051361084,
0.18327437341213226,
-0.44001853466033936,
-0.12547731399536133,
0.06523317098617554,
0.10447430610656738,
0.3434318006038666,
-0.10141821950674057,
0.25128433108329773,
0.1285201460123062,
0.16836582124233246,
0.08535805344581604,
0.4719163477420807,
0.35747456550598145,
0.0495174266397953,
-0.21528509259223938,
0.04224110394716263,
0.16053283214569092,
-0.1180010586977005,
-0.053052276372909546,
0.11790657043457031,
-0.5142337083816528,
0.014971539378166199,
0.030630698427557945,
-0.1439536064863205,
-0.16092202067375183,
0.1007278710603714,
-0.07244298607110977,
-0.13871392607688904,
0.19741377234458923,
0.29491907358169556,
-0.07208499312400818,
0.1298460066318512,
-0.046413179486989975,
0.281491219997406,
-0.044743862003088,
-0.04733819514513016,
0.3560692071914673,
0.08835820853710175,
-0.013937719166278839,
-0.0461542084813118,
0.004082547500729561,
-0.0371180921792984,
-0.18941912055015564,
-0.03974459320306778,
0.02989174611866474,
0.08368772268295288,
-0.4590227007865906,
0.04893997311592102,
-0.18994799256324768,
0.05930604785680771,
0.025549661368131638,
-0.1038840189576149,
-0.301628053188324,
-0.2137134075164795,
-0.09151272475719452,
0.47220057249069214,
-0.052567221224308014,
0.1317344456911087,
-0.5188707113265991,
0.16150835156440735,
-0.0519990548491478,
0.17236028611660004,
-0.0025845766067504883,
-0.17854006588459015,
-0.3058960437774658,
0.03474171832203865,
0.4378187358379364,
-0.1643330603837967,
0.2727321982383728,
-0.11205575615167618,
0.1683015078306198,
-0.6520441770553589,
-0.47890418767929077,
0.06764642894268036,
-0.14883725345134735,
0.632670521736145,
-0.0859573483467102,
0.2290070503950119,
-0.21389997005462646,
0.1621759980916977,
0.1594163328409195,
0.11068150401115417,
0.039704903960227966,
0.0721467137336731,
-0.09217487275600433,
-0.07324045896530151,
0.2248764932155609,
-0.09275638312101364,
-0.2802937924861908,
-0.1897561252117157,
0.0698995515704155,
-0.023101944476366043,
0.15414011478424072,
-0.061697185039520264,
0.09432034939527512,
0.0020413403399288654,
-0.015996741130948067,
0.149274542927742,
-0.24131286144256592,
-0.7867956757545471,
0.47782114148139954,
-0.4469048082828522,
-0.48848477005958557,
0.20779737830162048,
0.22529451549053192,
0.431818425655365,
0.18665993213653564,
-0.6206120252609253,
0.27514970302581787,
-0.14852173626422882,
-0.11780314147472382,
0.07476121932268143,
-0.1415432244539261,
0.1915924847126007,
-0.11258488893508911,
0.09342630207538605,
-0.07516224682331085,
-0.1908561736345291,
0.019189506769180298,
-0.3180193603038788,
0.18125830590724945,
0.07998181134462357,
0.3910180628299713,
0.26956823468208313,
0.6325617432594299,
0.19504700601100922,
0.301393061876297,
0.3365153670310974,
-0.10801617056131363,
0.4192522466182709,
0.22164222598075867,
-0.2922488749027252,
0.021579282358288765,
0.05354557931423187,
-0.022774554789066315,
0.20742401480674744,
0.1345103681087494,
-0.15260767936706543,
-0.36801281571388245,
-0.4291262626647949,
-0.5981094837188721,
-0.2545727491378784,
-0.36454644799232483,
0.1360257863998413,
0.35912585258483887,
0.28944236040115356,
0.1539919674396515,
-0.17438077926635742,
-0.26504236459732056,
-0.10637998580932617,
0.46711981296539307,
0.27261972427368164,
0.0837690532207489,
-0.07209914177656174,
-0.05647946521639824,
-0.35414308309555054,
0.27720844745635986,
-0.1690492182970047,
0.16219714283943176,
-0.08266999572515488,
0.01928463578224182,
0.48557353019714355,
-0.08373754471540451,
0.5764980316162109,
-0.061037398874759674,
0.20236004889011383,
-0.11513067781925201,
-0.21822717785835266,
-0.3102176785469055,
-0.06948523968458176,
0.13037292659282684,
0.14679460227489471,
-0.05168802663683891,
-0.026949703693389893,
-0.33362603187561035,
-0.12428832799196243,
0.2518489360809326,
-0.4763892590999603,
-0.34444019198417664,
-0.19579970836639404,
-0.15406450629234314,
-0.25598588585853577,
-0.2400200366973877,
0.05263927951455116,
-0.015298324637115002,
0.2708742618560791,
-0.08027039468288422,
-0.035023756325244904,
-0.06686431169509888,
0.15705645084381104,
0.21662038564682007,
0.3210083246231079,
0.2294250726699829,
0.09774605929851532,
0.1294851452112198,
0.500896692276001,
0.3827550411224365,
0.1982777863740921,
0.5831164717674255,
0.2534812092781067,
-0.5556368827819824,
0.0463460236787796,
0.10195490717887878,
0.09549224376678467,
0.3671305179595947,
-0.19406527280807495,
-0.15369033813476562,
0.37131670117378235,
0.18850839138031006,
-0.041486527770757675,
0.22649435698986053,
0.36461591720581055,
0.04301038756966591,
-0.5318036079406738,
-0.5570957660675049,
0.07946708798408508,
-0.1723136007785797,
-0.10308842360973358,
0.2115982174873352,
0.5157075524330139,
-0.19332702457904816,
0.07281193882226944,
-0.009740255773067474,
0.9512138962745667,
-0.12323573231697083,
0.16760525107383728,
0.47042909264564514,
-0.4189184308052063,
-0.04996371269226074,
-0.21021519601345062,
0.20569388568401337,
-0.1087135374546051,
0.07306908071041107,
-0.23947088420391083,
-0.1913696825504303,
0.2644786238670349,
-0.1430066078901291,
0.1196969598531723,
0.20329196751117706,
-0.2686687111854553,
0.2018648386001587,
0.09352554380893707,
0.11337828636169434,
0.04461926966905594,
0.1937091201543808,
-0.4395713210105896,
0.07801971584558487,
-0.20921273529529572,
0.06755617260932922,
-0.04435868188738823,
-0.4690898060798645,
-0.2027401328086853,
-0.05834413319826126,
-0.1331055462360382,
0.11508386582136154,
-0.055841103196144104,
0.0996919795870781,
-0.11408640444278717,
-0.07658830285072327,
0.09608855843544006,
0.4859609305858612,
-0.06179402768611908,
0.25788018107414246,
-0.40059494972229004,
0.38469699025154114,
-0.09486322849988937,
-0.08898260444402695,
-0.056606922298669815,
0.16509991884231567,
0.27596426010131836,
-0.21594664454460144,
-0.37731003761291504,
0.2868819236755371,
0.010725465603172779,
-0.32653331756591797,
-0.14238852262496948,
0.13357405364513397,
0.3114483952522278,
-0.2946452796459198,
0.1183810830116272,
-0.31685906648635864,
-0.11275455355644226,
-0.13184472918510437,
0.08065368980169296,
-0.04447704553604126,
-0.12935972213745117,
-0.27828750014305115,
0.07038532942533493,
-0.21924063563346863,
0.0015189014375209808,
0.379982590675354,
-0.014678798615932465,
0.24822193384170532,
0.5556950569152832,
-0.003733329474925995,
-0.3104206919670105,
-0.04090074822306633,
-0.03679438680410385,
0.1135418564081192,
-0.09086373448371887,
0.015069111250340939,
-0.07341072708368301,
0.3006479740142822,
-0.22703902423381805,
-0.12748566269874573,
0.13369697332382202,
-0.13879892230033875,
0.041532885283231735,
-0.3836643695831299,
-0.154913991689682,
0.0476524643599987,
-0.303721159696579,
-0.06431905925273895,
0.1258505880832672,
0.30318519473075867,
-0.107771135866642,
-0.2794440984725952,
-0.25085312128067017,
0.09692757576704025,
-0.09598173946142197,
-0.17565606534481049,
0.05874531343579292,
-0.01781558245420456,
0.006563786417245865,
-0.05816050246357918,
0.040854714810848236,
0.04350178688764572,
-0.24842512607574463,
-0.11843973398208618,
-0.18285322189331055,
0.19046065211296082,
0.16800647974014282,
-0.4619516134262085,
-0.11599735170602798,
-0.09143095463514328,
-0.13622404634952545,
0.06513096392154694,
0.07056580483913422,
0.3596176505088806,
0.2763325870037079,
-0.4600377380847931,
0.250749409198761,
-0.22193580865859985,
-0.19737467169761658,
0.1449592113494873,
-0.12690703570842743,
0.26946622133255005,
-0.02526053972542286,
-0.07457347214221954,
-0.020495349541306496,
-0.16850072145462036,
-0.026084663346409798,
0.05459693819284439,
0.2829782962799072,
0.07033535838127136,
0.5508358478546143,
-0.3337506055831909,
0.2494935393333435,
0.28869515657424927,
0.40298521518707275,
0.369140625,
-0.22779472172260284,
-0.008423472754657269,
0.2994801104068756,
0.09306756407022476,
-0.20062434673309326,
-0.02767094224691391,
0.15562890470027924,
-0.07678266614675522,
-0.18040905892848969,
-0.20044460892677307,
0.12411792576313019,
0.1496320217847824,
-0.22536005079746246,
0.1654146909713745,
0.1531956046819687,
0.1973891258239746,
0.21327778697013855,
0.24200177192687988,
-0.24628989398479462,
0.024996373802423477,
0.14650622010231018,
0.14363661408424377,
-0.1026507094502449,
0.34943073987960815,
-0.3766319453716278,
-0.05057214945554733,
-0.2463318109512329,
0.14073336124420166,
0.05421144887804985,
-0.3340492248535156,
-0.1271064579486847,
-0.08152851462364197,
-0.22078615427017212,
-0.023120209574699402,
-0.15039044618606567,
0.25366857647895813,
0.2823708951473236,
-0.13281026482582092,
-0.38869768381118774,
0.3442901074886322,
0.038100481033325195,
-0.0059145367704331875,
-0.22795532643795013,
-0.3858073055744171,
-0.07977119833230972,
0.17878948152065277,
0.009389720857143402,
-0.27424025535583496,
-0.30782660841941833,
0.012407071888446808,
-0.23647718131542206,
-0.5350944399833679,
-0.05244194716215134,
0.12704935669898987,
0.10236398130655289,
-0.13537858426570892,
0.19059383869171143,
0.1371121108531952,
-0.11753058433532715,
0.3751726746559143,
0.15080717206001282,
0.3315006494522095,
0.1374625861644745,
0.11498002707958221,
-0.14252789318561554,
0.1056193858385086,
-0.06609760224819183,
-0.0034878263249993324,
0.29079827666282654,
0.2302679717540741,
0.22362473607063293,
0.226613387465477,
0.012314748018980026,
-0.045785561203956604,
0.1220797449350357,
-0.07106560468673706,
0.3082226514816284,
-0.3330519199371338,
-0.030361942946910858,
-0.20249523222446442,
-0.005824033170938492,
-0.17023277282714844,
-0.2542972266674042,
-0.467236191034317,
-0.01198528055101633,
0.40714728832244873,
0.059059906750917435,
0.2081872522830963,
-0.5607494115829468,
0.009122278541326523,
0.08509886264801025,
0.5037987232208252,
0.13679076731204987,
-0.04390165954828262,
-0.17897213995456696,
-0.22248691320419312,
-0.6608114838600159,
0.2155560404062271,
-0.03445906564593315,
-0.11059055477380753,
0.11221033334732056,
-0.12901100516319275,
-0.36875709891319275,
0.10248640179634094,
0.2588880658149719,
0.16593116521835327,
-0.07146071642637253,
0.16929741203784943,
-0.10774669051170349,
0.03733748570084572,
0.2039281129837036,
0.2249111384153366,
-0.1530153751373291,
-0.035851411521434784,
0.6027414202690125,
-0.38469254970550537,
0.019716836512088776,
0.17273908853530884,
0.2752605676651001,
-0.2029624581336975,
-0.07298775017261505,
0.2307141125202179,
0.22075210511684418,
0.45993515849113464,
0.12208539992570877,
0.169864222407341,
-0.47783613204956055,
-0.11530091613531113,
-0.11063975095748901,
0.28321000933647156,
0.09029647707939148,
0.37274646759033203,
-0.06920111924409866,
-0.35692840814590454,
-0.10324855148792267,
0.31289127469062805,
-0.02566351927816868,
-0.1140255406498909,
-0.04564008116722107,
-0.3900378942489624,
0.017570123076438904,
0.17945782840251923,
0.1741567999124527,
0.17863541841506958,
-0.015295460820198059,
0.07374229282140732,
-0.2061750292778015,
-0.3581252694129944,
0.8480265736579895,
-0.9680496454238892,
-0.24743154644966125,
0.06261112540960312,
0.006449587643146515,
0.5273226499557495,
-0.1759922355413437,
-0.19156494736671448,
0.24615636467933655,
0.29632532596588135,
-0.12274939566850662,
0.13069187104701996,
0.2009785920381546,
-0.20648053288459778,
0.21587099134922028,
-0.004687666893005371,
-0.025995582342147827,
0.054950498044490814,
-0.17298364639282227,
0.09299394488334656,
-0.07037880271673203
] |
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 | 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` | [
-0.05710578337311745,
0.05060245096683502,
0.023847457021474838,
0.37848860025405884,
0.28513962030410767,
-0.09058096259832382,
0.34150850772857666,
0.21559298038482666,
0.024247795343399048,
0.0655883252620697,
-0.2898719012737274,
-0.04889508709311485,
-0.045673105865716934,
0.2738201320171356,
0.2618887424468994,
-0.15722274780273438,
-0.13199704885482788,
-0.06893554329872131,
-0.099363774061203,
0.08883586525917053,
0.040113210678100586,
-0.005465816706418991,
-0.3383442163467407,
0.3271986246109009,
-0.0403665192425251,
0.0952674075961113,
0.16554436087608337,
0.10777702927589417,
-0.20289842784404755,
-0.5745078921318054,
0.26400312781333923,
0.043693847954273224,
0.18937724828720093,
0.4840076267719269,
-0.00011988158075837418,
0.26631784439086914,
0.4685904383659363,
0.2417062520980835,
-0.10469059646129608,
-0.3137374520301819,
-0.34987470507621765,
-0.1583610326051712,
0.09123647212982178,
-0.08039073646068573,
-0.22276610136032104,
-0.2533586621284485,
0.07938987761735916,
-0.060046520084142685,
0.5080716609954834,
0.46373340487480164,
0.08650289475917816,
0.24800068140029907,
0.18938346207141876,
0.1357305645942688,
0.07258599251508713,
-0.02547960728406906,
0.03325207531452179,
0.09861889481544495,
0.04979657381772995,
-0.026899471879005432,
-0.04136005789041519,
0.2173933982849121,
-0.09581198543310165,
-0.13083551824092865,
0.22415819764137268,
-0.19025984406471252,
-0.03699024021625519,
-0.30838534235954285,
0.21533453464508057,
0.20489785075187683,
0.5680017471313477,
0.090057373046875,
-0.2530305087566376,
-0.10034814476966858,
-0.05451977625489235,
-0.23990224301815033,
0.43208321928977966,
0.49469324946403503,
-0.13107018172740936,
0.4045763313770294,
-0.7203863859176636,
-0.17306795716285706,
-0.5222617387771606,
0.09817036241292953,
-0.37088578939437866,
0.22907671332359314,
-0.12988077104091644,
0.30874255299568176,
-0.03272215649485588,
-0.1465526819229126,
0.43674328923225403,
-0.13167314231395721,
-0.06543728709220886,
0.23145151138305664,
-0.3499804735183716,
0.08576755225658417,
0.06574937701225281,
0.5105646848678589,
0.04086552560329437,
0.14175450801849365,
-0.03450533375144005,
0.10829433053731918,
0.08701973408460617,
0.12844866514205933,
0.34845560789108276,
-0.02921989932656288,
0.03542562946677208,
0.3438170254230499,
0.38599491119384766,
0.4066561460494995,
-0.18394970893859863,
0.14857614040374756,
-0.1750481128692627,
-0.49197423458099365,
0.007915034890174866,
-0.32981207966804504,
0.3374367356300354,
-0.2792592942714691,
-0.14958332479000092,
0.45237255096435547,
-0.1783926784992218,
-0.09443832188844681,
0.3362119495868683,
0.3589531481266022,
-0.33356234431266785,
-0.058353304862976074,
-0.10217329859733582,
-0.06583224982023239,
-0.11202748119831085,
-0.3610898554325104,
-0.06302612274885178,
-0.0644771009683609,
-0.14853200316429138,
-0.1631678342819214,
-0.028326621279120445,
-0.4303613007068634,
0.06627591699361801,
-0.060785844922065735,
-0.027546033263206482,
-0.17906594276428223,
0.057678669691085815,
0.03683559224009514,
-0.0645856186747551,
0.39944323897361755,
0.2846284508705139,
-0.06431944668292999,
0.09883786737918854,
-0.23786436021327972,
0.1318168342113495,
0.11720801889896393,
-0.14926469326019287,
-0.4132995009422302,
-0.03866605460643768,
0.05159325897693634,
-0.28194695711135864,
-0.07029767334461212,
-0.08164814859628677,
0.06982798129320145,
-0.26479214429855347,
-0.16913560032844543,
-0.34511950612068176,
0.02383529022336006,
0.024870198220014572,
-0.049158137291669846,
0.17235897481441498,
0.3789099454879761,
-0.3018273711204529,
-0.05545585975050926,
-0.020703444257378578,
-0.1285266876220703,
0.24488943815231323,
0.2933841347694397,
-0.40704989433288574,
0.10460464656352997,
-0.07188604772090912,
0.02920319139957428,
0.48788684606552124,
-0.29951563477516174,
-0.636816143989563,
0.33491602540016174,
-0.02591138705611229,
0.2418086677789688,
0.12400992959737778,
-0.1222478523850441,
0.4204576015472412,
0.04626400023698807,
0.0016722679138183594,
0.1519964337348938,
0.2738880515098572,
-0.08539584279060364,
-0.16653896868228912,
-0.08530989289283752,
0.25318455696105957,
0.258372038602829,
0.4027624726295471,
0.019471213221549988,
0.32518765330314636,
-0.3132686913013458,
0.3812904953956604,
-0.06551040709018707,
0.10853622853755951,
-0.009118717163801193,
0.2477131187915802,
0.4964739680290222,
-0.09195583313703537,
-0.0580822192132473,
0.24399754405021667,
0.08320305496454239,
-0.058171436190605164,
-0.10705439746379852,
-0.013134680688381195,
-0.060518354177474976,
-0.3948298692703247,
0.07287316024303436,
-0.46975043416023254,
-0.2533651888370514,
0.05702780932188034,
0.0008627846837043762,
-0.20083536207675934,
0.10784882307052612,
-0.09533976018428802,
0.3550560176372528,
0.029953109100461006,
0.17700394988059998,
0.05521909520030022,
0.23564513027668,
-0.05196648836135864,
0.16302059590816498,
0.09700079262256622,
0.010191671550273895,
0.46498212218284607,
0.01998624950647354,
-0.14640066027641296,
0.33406350016593933,
0.13722391426563263,
-0.0025175362825393677,
0.3044404089450836,
-0.06772655248641968,
0.172444686293602,
-0.47339972853660583,
-0.19482262432575226,
0.03589196130633354,
0.05502554401755333,
0.34688448905944824,
0.06897714734077454,
0.11820623278617859,
0.07443097233772278,
0.09447123855352402,
-0.010709017515182495,
0.5096613764762878,
0.25114375352859497,
0.04183122143149376,
-0.16048824787139893,
0.10816873610019684,
0.18317383527755737,
-0.15016259253025055,
-0.11368748545646667,
0.03613331541419029,
-0.4684488773345947,
-0.06129416078329086,
0.04339215159416199,
-0.221445232629776,
-0.1212141141295433,
0.13378211855888367,
-0.06318115442991257,
-0.03889895975589752,
0.23095788061618805,
0.299788236618042,
-0.054654836654663086,
0.05046364292502403,
-0.1420826017856598,
0.2780710756778717,
-0.07877437025308609,
-0.0022392794489860535,
0.4200778901576996,
0.12542685866355896,
-0.03588642179965973,
-0.02735304832458496,
-0.05245886370539665,
-0.039285577833652496,
-0.15179792046546936,
-0.08776743710041046,
0.027650261297822,
0.15393222868442535,
-0.4926811456680298,
0.026012016460299492,
-0.19918251037597656,
0.08447500318288803,
0.0903206542134285,
-0.17690005898475647,
-0.2419271469116211,
-0.16702909767627716,
-0.04479805380105972,
0.4116016924381256,
-0.033449992537498474,
0.11594051867723465,
-0.4718780219554901,
0.14369359612464905,
0.07000402361154556,
0.18770043551921844,
0.02971581369638443,
-0.20238614082336426,
-0.3094164729118347,
-0.011912893503904343,
0.4066717028617859,
-0.14765679836273193,
0.1819138526916504,
-0.19980843365192413,
0.18682406842708588,
-0.7353715300559998,
-0.4100257456302643,
0.08768799901008606,
-0.12394101917743683,
0.7051805853843689,
-0.03890785574913025,
0.19755810499191284,
-0.28025510907173157,
0.14007630944252014,
0.16976870596408844,
0.1773369461297989,
0.04176677018404007,
0.18998132646083832,
-0.06007622182369232,
-0.1231975257396698,
0.1951829344034195,
0.04586957395076752,
-0.17004215717315674,
-0.15285199880599976,
0.10075418651103973,
-0.10866501927375793,
0.2049085646867752,
-0.08299873769283295,
0.09729744493961334,
0.10162168741226196,
-0.10092882066965103,
0.18802279233932495,
-0.28194916248321533,
-0.7601712346076965,
0.5106884837150574,
-0.34369349479675293,
-0.5008929371833801,
0.225540429353714,
0.21685786545276642,
0.4145927131175995,
0.246416375041008,
-0.6145159006118774,
0.22591683268547058,
-0.10448403656482697,
-0.20274488627910614,
-0.02355353534221649,
-0.07088129222393036,
0.13364428281784058,
-0.11706998944282532,
0.13625840842723846,
-0.05790378525853157,
-0.2057805061340332,
-0.053330741822719574,
-0.2338601052761078,
0.253400981426239,
0.06828908622264862,
0.41257038712501526,
0.21262109279632568,
0.5983738899230957,
0.18171752989292145,
0.2988182604312897,
0.33718112111091614,
-0.0986187681555748,
0.38380518555641174,
0.2786614000797272,
-0.30648767948150635,
-0.019771354272961617,
0.08566713333129883,
-0.03130607679486275,
0.15928936004638672,
0.04967218637466431,
-0.1395983248949051,
-0.3314502239227295,
-0.44373565912246704,
-0.6789403557777405,
-0.3167067766189575,
-0.38738563656806946,
0.09395217895507812,
0.34751981496810913,
0.33887290954589844,
0.14845010638237,
-0.14666657149791718,
-0.19295448064804077,
-0.09963829815387726,
0.5513822436332703,
0.22812506556510925,
0.07330594956874847,
-0.17084361612796783,
-0.15577633678913116,
-0.23799598217010498,
0.3073899447917938,
-0.1730319857597351,
0.2602677345275879,
-0.09174889326095581,
0.09032667428255081,
0.45911943912506104,
-0.06812983006238937,
0.6738244891166687,
-0.17072343826293945,
0.11120744794607162,
-0.18150955438613892,
-0.08584263920783997,
-0.3161119818687439,
-0.1016928032040596,
0.08759817481040955,
0.13571707904338837,
-0.07305434346199036,
-0.09266722202301025,
-0.2727276086807251,
-0.10774317383766174,
0.18641626834869385,
-0.48205623030662537,
-0.2763415277004242,
-0.24245280027389526,
-0.20302462577819824,
-0.2998848557472229,
-0.20660272240638733,
0.0703919380903244,
0.00967593677341938,
0.2471708506345749,
-0.0248560830950737,
-0.022608395665884018,
-0.15938903391361237,
0.18986162543296814,
0.24926935136318207,
0.19346801936626434,
0.23729538917541504,
0.0829341933131218,
0.133224219083786,
0.4307016432285309,
0.3538346290588379,
0.21068009734153748,
0.4586503207683563,
0.2692725360393524,
-0.5531942844390869,
0.09431928396224976,
0.1382710039615631,
0.14962375164031982,
0.3420470952987671,
-0.1570289582014084,
-0.1258365511894226,
0.37057843804359436,
0.2194291055202484,
0.0248420350253582,
0.27867457270622253,
0.34342285990715027,
0.10531274229288101,
-0.6168556213378906,
-0.5214956998825073,
0.019672196358442307,
-0.1862318217754364,
-0.1279621422290802,
0.2528381943702698,
0.6019319891929626,
-0.22406455874443054,
0.03719252347946167,
-0.05375567823648453,
0.9312850832939148,
-0.07420326769351959,
0.17543929815292358,
0.41257965564727783,
-0.3819659948348999,
-0.019183393567800522,
-0.1035730242729187,
0.23160141706466675,
-0.16951103508472443,
0.012463896535336971,
-0.25766852498054504,
-0.20507973432540894,
0.30122655630111694,
-0.06390887498855591,
0.10802780091762543,
0.2622775435447693,
-0.24791988730430603,
0.2333008199930191,
0.10360830277204514,
0.07826883345842361,
-0.0952988713979721,
0.2340719997882843,
-0.40906867384910583,
0.04631892591714859,
-0.24463020265102386,
0.037244170904159546,
-0.0705680325627327,
-0.4172446131706238,
-0.184016615152359,
-0.09107930213212967,
-0.11007340252399445,
0.17244568467140198,
-0.08439956605434418,
0.1250891387462616,
-0.048983145505189896,
0.05500464141368866,
0.14153213798999786,
0.4883323311805725,
-0.019104711711406708,
0.2618638277053833,
-0.37339815497398376,
0.368289589881897,
-0.13293349742889404,
-0.05957658961415291,
-0.07907827198505402,
0.10099485516548157,
0.2770562171936035,
-0.18768510222434998,
-0.451083242893219,
0.3243420422077179,
-0.04748153313994408,
-0.24193134903907776,
-0.2026064395904541,
0.18741360306739807,
0.3367844820022583,
-0.30533555150032043,
0.09322912991046906,
-0.4257735013961792,
-0.11002905666828156,
-0.06473635882139206,
0.050445862114429474,
-0.09381616115570068,
-0.09183167666196823,
-0.1483917236328125,
0.04018475115299225,
-0.19382944703102112,
0.0631650984287262,
0.2887088358402252,
-0.07029446959495544,
0.3120150566101074,
0.51572585105896,
-0.10931931436061859,
-0.27264320850372314,
0.0003155246376991272,
-0.07901044189929962,
0.05892563983798027,
-0.0886649340391159,
-0.08610014617443085,
-0.11713679879903793,
0.28713560104370117,
-0.1674736887216568,
-0.24277281761169434,
0.12572039663791656,
-0.09302573651075363,
0.1405412256717682,
-0.37377721071243286,
-0.07808418571949005,
0.09564787149429321,
-0.246287539601326,
-0.05509654060006142,
0.1968638002872467,
0.31915244460105896,
-0.14815667271614075,
-0.3485935628414154,
-0.18578699231147766,
0.17570506036281586,
-0.030689213424921036,
-0.11774128675460815,
0.013373061083257198,
-0.06466587632894516,
0.028057556599378586,
-0.11153234541416168,
0.015831297263503075,
0.0742838978767395,
-0.20479536056518555,
-0.08644300699234009,
-0.17472514510154724,
0.20380999147891998,
0.27081015706062317,
-0.4587642550468445,
-0.11712676286697388,
-0.1886855959892273,
-0.10939492285251617,
0.08989599347114563,
0.0017852336168289185,
0.34279438853263855,
0.24043190479278564,
-0.44677111506462097,
0.3493785858154297,
-0.22341781854629517,
-0.23497815430164337,
0.13884711265563965,
-0.10322122275829315,
0.2820148169994354,
-0.06324685364961624,
-0.03302479535341263,
-0.05932820960879326,
-0.12644025683403015,
-0.0820598229765892,
0.12375940382480621,
0.2975562512874603,
0.04827761650085449,
0.48923471570014954,
-0.36941391229629517,
0.2705823481082916,
0.23596344888210297,
0.3662736713886261,
0.34177419543266296,
-0.28540027141571045,
-0.10978174209594727,
0.2995172441005707,
0.07893376797437668,
-0.12901684641838074,
-0.07639043778181076,
0.17567473649978638,
-0.10288432985544205,
-0.21845757961273193,
-0.21601256728172302,
0.08446983993053436,
0.08687613904476166,
-0.2588351368904114,
0.22638922929763794,
0.10005642473697662,
0.14888018369674683,
0.16042202711105347,
0.21274985373020172,
-0.3091978132724762,
0.019052330404520035,
0.17754977941513062,
0.07338164001703262,
-0.16600552201271057,
0.4046814441680908,
-0.45640385150909424,
-0.10462813079357147,
-0.25369614362716675,
0.1272517293691635,
0.0012505054473876953,
-0.34705036878585815,
-0.041117701679468155,
-0.04941315948963165,
-0.27915462851524353,
-0.037652142345905304,
-0.10209766030311584,
0.3147262930870056,
0.2407122254371643,
-0.02722245454788208,
-0.4313434064388275,
0.37204018235206604,
0.019531670957803726,
0.016368404030799866,
-0.3064494729042053,
-0.3476021885871887,
-0.044449206441640854,
0.15281714498996735,
0.03460469841957092,
-0.21325699985027313,
-0.31453993916511536,
0.08232857286930084,
-0.2422976940870285,
-0.5061898231506348,
-0.055432043969631195,
0.2850077152252197,
0.13248556852340698,
-0.1403963416814804,
0.16300144791603088,
0.18894138932228088,
-0.14263460040092468,
0.3628596365451813,
0.13462691009044647,
0.39037975668907166,
0.21088792383670807,
0.06292843818664551,
-0.10446490347385406,
0.20735706388950348,
-0.01264062151312828,
0.04442374408245087,
0.2352372705936432,
0.2758828401565552,
0.20570369064807892,
0.24249379336833954,
-0.0023585567250847816,
-0.023022186011075974,
0.07335006445646286,
-0.09511728584766388,
0.3605189621448517,
-0.3495163321495056,
-0.03006119281053543,
-0.19474320113658905,
0.018336772918701172,
-0.15630173683166504,
-0.19350972771644592,
-0.5497865080833435,
-0.0026021618396043777,
0.5612546801567078,
0.07933293282985687,
0.16433024406433105,
-0.5113652348518372,
-0.018969986587762833,
0.011529897339642048,
0.4256644546985626,
0.13901357352733612,
-0.10533774644136429,
-0.23017579317092896,
-0.13150736689567566,
-0.6470248699188232,
0.26177018880844116,
-0.06075013801455498,
-0.03742389380931854,
0.20669902861118317,
-0.1445237249135971,
-0.47808799147605896,
0.055282898247241974,
0.30805960297584534,
0.14687001705169678,
-0.11525849252939224,
0.12713855504989624,
-0.13769756257534027,
0.04817136004567146,
0.21777917444705963,
0.1848166137933731,
-0.10137605667114258,
-0.1406116634607315,
0.6088427305221558,
-0.3188621997833252,
-0.020423730835318565,
0.12684981524944305,
0.3163208067417145,
-0.20242197811603546,
-0.11516685783863068,
0.20989707112312317,
0.20577272772789001,
0.4840039312839508,
0.12421593815088272,
0.16291162371635437,
-0.42254555225372314,
-0.1897774338722229,
-0.06632930040359497,
0.30789893865585327,
0.047864798456430435,
0.3732462525367737,
0.012145914137363434,
-0.3953857421875,
-0.10605072975158691,
0.33762606978416443,
0.046930789947509766,
-0.16023048758506775,
-0.13699641823768616,
-0.2998499870300293,
-0.027291029691696167,
0.2379516214132309,
0.1757804900407791,
0.1907985806465149,
0.011633709073066711,
0.2191985696554184,
-0.22033809125423431,
-0.43340352177619934,
0.8791195750236511,
-0.9788333773612976,
-0.26711881160736084,
0.0671059712767601,
0.03424371778964996,
0.5766273736953735,
-0.20582491159439087,
-0.1810823529958725,
0.145309180021286,
0.3122093081474304,
-0.15951129794120789,
0.1499698907136917,
0.20575405657291412,
-0.20323486626148224,
0.3188047409057617,
-0.007629316300153732,
-0.02133399248123169,
0.06659476459026337,
-0.24472489953041077,
0.17501714825630188,
-0.06900549679994583
] |
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 | 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 | [
-0.14007112383842468,
0.04953332245349884,
0.04688606038689613,
0.3444433808326721,
0.29429692029953003,
-0.07629621773958206,
0.27279728651046753,
0.17340967059135437,
0.020985424518585205,
-0.004625663161277771,
-0.27167198061943054,
0.023459542542696,
-0.12111867219209671,
0.33108198642730713,
0.23928900063037872,
-0.09951458871364594,
-0.008617714047431946,
-0.06458266079425812,
-0.00112876296043396,
0.06969989836215973,
0.00981784239411354,
0.07263435423374176,
-0.3147144913673401,
0.1528228521347046,
0.1531415581703186,
0.08132832497358322,
0.23520946502685547,
0.13973239064216614,
-0.22737479209899902,
-0.5157926678657532,
0.35790589451789856,
0.14701783657073975,
0.1229219138622284,
0.530565083026886,
-0.00011970671766903251,
0.23099158704280853,
0.5041328072547913,
0.15476487576961517,
-0.12070149183273315,
-0.32334059476852417,
-0.2769814729690552,
-0.18758946657180786,
0.20044563710689545,
-0.011246144771575928,
-0.26425519585609436,
-0.3023790121078491,
0.021838076412677765,
-0.1415317952632904,
0.4942953586578369,
0.40686339139938354,
0.11204732954502106,
0.3333224654197693,
0.10983309149742126,
0.1688159704208374,
0.10111808776855469,
0.027939442545175552,
-0.09431994706392288,
0.12200166285037994,
0.14329764246940613,
0.16946403682231903,
0.04524402692914009,
0.19068454205989838,
-0.09875646233558655,
-0.08194926381111145,
0.20332735776901245,
-0.14030680060386658,
-0.21763473749160767,
-0.3031768798828125,
0.19737723469734192,
0.3119175434112549,
0.5023000240325928,
-0.03850153833627701,
-0.3034653961658478,
-0.2402110993862152,
-0.07096521556377411,
-0.3753357529640198,
0.3548933267593384,
0.459600567817688,
-0.07440576702356339,
0.3876836895942688,
-0.6942287683486938,
-0.15729112923145294,
-0.3946787118911743,
0.08278968185186386,
-0.28187769651412964,
0.2236836552619934,
-0.18013426661491394,
0.2536538541316986,
-0.13401687145233154,
-0.16410782933235168,
0.27702996134757996,
-0.11573655903339386,
-0.056293945759534836,
0.16787542402744293,
-0.1991742104291916,
0.019003361463546753,
0.04470198601484299,
0.5039536356925964,
0.12777647376060486,
0.21951161324977875,
-0.06831063330173492,
0.166617751121521,
0.14949089288711548,
0.11740398406982422,
0.3869134187698364,
-0.12146660685539246,
-0.01675717532634735,
0.3543284833431244,
0.41808539628982544,
0.4676804840564728,
-0.2069416642189026,
0.10311641544103622,
-0.036319244652986526,
-0.2978098392486572,
-0.09853294491767883,
-0.48362085223197937,
0.35479867458343506,
-0.4154945909976959,
-0.15686678886413574,
0.5006647109985352,
-0.19937852025032043,
-0.04594030976295471,
0.21756258606910706,
0.32036298513412476,
-0.2492952197790146,
-0.04647456109523773,
-0.16433404386043549,
-0.01005326583981514,
-0.1012534573674202,
-0.36009085178375244,
-0.11131630092859268,
-0.18103711307048798,
-0.15187005698680878,
-0.06423838436603546,
-0.005313795059919357,
-0.46692949533462524,
0.20531024038791656,
-0.012056316249072552,
-0.037660203874111176,
-0.14350725710391998,
-0.019974635913968086,
0.07251769304275513,
-0.021491028368473053,
0.40930208563804626,
0.2211689054965973,
-0.07719597965478897,
0.08106841146945953,
-0.19373087584972382,
0.07487621158361435,
-0.0348760187625885,
-0.11683148890733719,
-0.33472228050231934,
0.014199556782841682,
0.05635403096675873,
-0.41038978099823,
-0.017034709453582764,
-0.1634785532951355,
0.1735023707151413,
-0.24621394276618958,
-0.27471762895584106,
-0.32511651515960693,
-0.013332616537809372,
0.03126772120594978,
-0.018780773505568504,
0.21815398335456848,
0.40963250398635864,
-0.2786825895309448,
-0.09622202813625336,
-0.08331767469644547,
-0.09056693315505981,
0.41759657859802246,
0.21052522957324982,
-0.37356045842170715,
-0.0696592852473259,
-0.0886603593826294,
-0.009599849581718445,
0.4904405176639557,
-0.1307736039161682,
-0.6297282576560974,
0.39861902594566345,
-0.011122338473796844,
0.41447657346725464,
0.20014557242393494,
-0.2327432483434677,
0.5368610620498657,
0.001841763616539538,
-0.1328410655260086,
0.18577945232391357,
0.17103953659534454,
-0.05535803362727165,
-0.2558005750179291,
-0.06681334227323532,
0.23904724419116974,
0.167718768119812,
0.3296959400177002,
-0.04483320564031601,
0.3667408227920532,
-0.1066012978553772,
0.39720597863197327,
0.018653877079486847,
0.07813023030757904,
-0.03545919060707092,
0.19766832888126373,
0.5563728213310242,
-0.06210842356085777,
-0.06397290527820587,
0.05089537426829338,
0.12621241807937622,
-0.10181128233671188,
-0.10621073842048645,
-0.04683159291744232,
-0.0606829933822155,
-0.2647078335285187,
-0.03951828181743622,
-0.36661896109580994,
-0.4991714656352997,
0.07160259783267975,
0.13304643332958221,
-0.148115873336792,
0.11198621988296509,
-0.1585533171892166,
0.3373202085494995,
-0.017544295638799667,
0.152703195810318,
0.025096876546740532,
0.3322460651397705,
0.10038497298955917,
0.008616757579147816,
0.1658664047718048,
0.032433636486530304,
0.37516725063323975,
-0.06777170300483704,
-0.16545435786247253,
0.42557650804519653,
0.11627714335918427,
0.12586688995361328,
0.26215723156929016,
-0.030863657593727112,
0.16516350209712982,
-0.36073949933052063,
-0.15867476165294647,
0.11460644006729126,
0.04394601285457611,
0.3868738114833832,
-0.1862548291683197,
0.17772576212882996,
0.11967650055885315,
0.2085261195898056,
-0.03959168493747711,
0.41403037309646606,
0.28650689125061035,
0.11820425093173981,
-0.31550952792167664,
-0.006696287542581558,
0.19784961640834808,
-0.2046082317829132,
-0.06743483245372772,
0.12884938716888428,
-0.5948736667633057,
0.019036129117012024,
0.06325370818376541,
-0.08247873187065125,
-0.16759824752807617,
0.12208086252212524,
-0.08865893632173538,
-0.1241738423705101,
0.2664385139942169,
0.3333629071712494,
-0.01812833547592163,
0.10391591489315033,
-0.09537781774997711,
0.24635998904705048,
-0.09653184562921524,
-0.07727445662021637,
0.26735368371009827,
0.1579698622226715,
-0.050635918974876404,
-0.03778926283121109,
0.05321047082543373,
0.007609843276441097,
-0.17794817686080933,
0.09276221692562103,
0.043102703988552094,
0.11236926168203354,
-0.41558101773262024,
0.08366865664720535,
-0.3033449351787567,
0.20566806197166443,
-0.029535219073295593,
-0.028496604412794113,
-0.27024325728416443,
-0.18211886286735535,
-0.06642802804708481,
0.4399813413619995,
-0.09827502071857452,
0.1288376748561859,
-0.49177104234695435,
0.21288734674453735,
-0.03367085009813309,
0.05293375998735428,
-0.017934277653694153,
-0.17813503742218018,
-0.34229958057403564,
-0.001063235104084015,
0.4288029074668884,
-0.06558375060558319,
0.25937318801879883,
-0.17659734189510345,
0.050016529858112335,
-0.7287342548370361,
-0.46489039063453674,
0.09069804847240448,
-0.18747036159038544,
0.642669141292572,
-0.07753744721412659,
0.10207590460777283,
-0.18473075330257416,
0.16666749119758606,
0.11803602427244186,
0.05184227228164673,
0.06674838811159134,
0.1315249502658844,
-0.07651765644550323,
-0.11311592161655426,
0.18697671592235565,
-0.0643991157412529,
-0.13218100368976593,
-0.1911163479089737,
0.1811828315258026,
0.06788000464439392,
0.039995625615119934,
-0.2544841468334198,
0.06782162934541702,
-0.034191884100437164,
-0.09946827590465546,
0.1201859638094902,
-0.2340131253004074,
-0.7951534390449524,
0.48755645751953125,
-0.41250720620155334,
-0.5165849328041077,
0.22117328643798828,
0.24957378208637238,
0.357949435710907,
0.32628583908081055,
-0.6464919447898865,
0.2954423129558563,
-0.10290184617042542,
-0.2336350828409195,
0.12939554452896118,
-0.17630498111248016,
0.1794801950454712,
-0.13638657331466675,
0.16446352005004883,
-0.14198097586631775,
-0.2493346631526947,
-0.036639951169490814,
-0.19972863793373108,
0.19358810782432556,
0.10614597797393799,
0.44773104786872864,
0.219288170337677,
0.5525516271591187,
0.20804893970489502,
0.24170929193496704,
0.33161869645118713,
-0.10543283075094223,
0.5386810302734375,
0.17663004994392395,
-0.15829218924045563,
0.057396482676267624,
0.06936261802911758,
-0.0875997319817543,
0.27076905965805054,
0.10089351236820221,
-0.24761591851711273,
-0.31547409296035767,
-0.2693807780742645,
-0.5076143145561218,
-0.24752327799797058,
-0.33970972895622253,
0.07081548124551773,
0.34651580452919006,
0.35451456904411316,
0.22537153959274292,
-0.055848948657512665,
-0.22162583470344543,
-0.07908746600151062,
0.35521918535232544,
0.33555683493614197,
0.1382281631231308,
0.013892848044633865,
0.01731555536389351,
-0.31984245777130127,
0.16824555397033691,
-0.2357661873102188,
0.27881336212158203,
-0.14588505029678345,
0.047362178564071655,
0.47111910581588745,
-0.11208800971508026,
0.5191250443458557,
-0.12323429435491562,
0.22935377061367035,
-0.06667540967464447,
-0.1917557716369629,
-0.3837868869304657,
-0.18381419777870178,
-0.004164550453424454,
0.08571433275938034,
-0.10077005624771118,
0.17463558912277222,
-0.3601163923740387,
-0.08405541628599167,
0.23821206390857697,
-0.4298127591609955,
-0.2376032918691635,
-0.1451500654220581,
-0.2137826681137085,
-0.14344875514507294,
-0.2167789787054062,
0.13689564168453217,
0.0025248583406209946,
0.19001880288124084,
-0.14859865605831146,
0.042382579296827316,
-0.0981626883149147,
0.19475007057189941,
0.17101356387138367,
0.220705047249794,
0.3011717200279236,
0.07603538781404495,
0.25540855526924133,
0.4955863952636719,
0.39619287848472595,
0.1935497373342514,
0.6445470452308655,
0.2553861439228058,
-0.6498569250106812,
0.08888249099254608,
0.08532389253377914,
0.10614234954118729,
0.37335920333862305,
-0.16958776116371155,
-0.23138481378555298,
0.29396241903305054,
0.20443448424339294,
0.01035850029438734,
0.3182942569255829,
0.4253673851490021,
-0.020266041159629822,
-0.514917254447937,
-0.5230462551116943,
0.10417412221431732,
-0.09893195331096649,
-0.08548629283905029,
0.17407065629959106,
0.6383543610572815,
-0.1924518644809723,
0.1328877955675125,
0.08949314057826996,
0.831193745136261,
-0.03986489027738571,
0.0805075392127037,
0.3687596023082733,
-0.4399985074996948,
0.06597298383712769,
-0.2558448910713196,
0.09171610325574875,
-0.13296745717525482,
0.0477762334048748,
-0.21933087706565857,
-0.15763002634048462,
0.2876501679420471,
-0.2230580598115921,
0.09705771505832672,
0.30172526836395264,
-0.15962272882461548,
0.2999219298362732,
0.14683830738067627,
0.017227306962013245,
0.020473118871450424,
0.19894422590732574,
-0.41516393423080444,
0.062298618257045746,
-0.17538189888000488,
0.02864030748605728,
0.012949103489518166,
-0.39337921142578125,
-0.1587589681148529,
-0.04851631820201874,
-0.2569890022277832,
0.13741722702980042,
0.01758481375873089,
-0.08699088543653488,
-0.03095940127968788,
-0.2147018313407898,
0.10137960314750671,
0.4830907881259918,
-0.08195275068283081,
0.2309228777885437,
-0.46691426634788513,
0.371157705783844,
-0.14643877744674683,
-0.07990282028913498,
-0.05092832073569298,
0.1274392157793045,
0.20675650238990784,
-0.16419357061386108,
-0.2015654295682907,
0.17600229382514954,
-0.08201469480991364,
-0.2849666476249695,
-0.13786837458610535,
0.12790843844413757,
0.4310677647590637,
-0.29482269287109375,
0.10024061799049377,
-0.39313358068466187,
-0.0728609561920166,
-0.1805316060781479,
0.06030549108982086,
-0.10615724325180054,
-0.1062445268034935,
-0.24660837650299072,
0.06782259792089462,
-0.16519199311733246,
-0.04869770631194115,
0.3924637734889984,
-0.1545862853527069,
0.29495617747306824,
0.41987505555152893,
-0.008215993642807007,
-0.2888948321342468,
0.008513569831848145,
-0.10655738413333893,
0.19280853867530823,
-0.05708771198987961,
-0.022515740245580673,
-0.16602644324302673,
0.24283181130886078,
-0.17728908360004425,
-0.22730177640914917,
0.08487354218959808,
-0.2252068817615509,
0.04282958433032036,
-0.37456172704696655,
-0.013435976579785347,
0.07209274172782898,
-0.28942832350730896,
-0.07079041004180908,
0.187016099691391,
0.20392920076847076,
-0.1501542627811432,
-0.39708393812179565,
-0.20262275636196136,
0.1259136199951172,
-0.02039577066898346,
-0.10009284317493439,
0.15527506172657013,
0.045133691281080246,
0.018624598160386086,
-0.076928049325943,
-0.007750664837658405,
0.11440865695476532,
-0.176315039396286,
-0.0791424959897995,
-0.16742025315761566,
0.1912892609834671,
0.20684731006622314,
-0.3545030951499939,
-0.09126175940036774,
-0.05111171305179596,
-0.22099988162517548,
-0.022076435387134552,
0.14016912877559662,
0.3103179633617401,
0.23278933763504028,
-0.5242574214935303,
0.49018773436546326,
-0.17197686433792114,
-0.22200848162174225,
0.14684760570526123,
-0.07972829043865204,
0.19944512844085693,
-0.1272778958082199,
-0.06186102330684662,
-0.014751018024981022,
-0.17029869556427002,
0.035384658724069595,
0.1127169132232666,
0.2510371804237366,
0.22971007227897644,
0.6488519310951233,
-0.41510164737701416,
0.2602890133857727,
0.3042404353618622,
0.4844074547290802,
0.4487176537513733,
-0.2302274852991104,
-0.13788989186286926,
0.3372310996055603,
0.06248747557401657,
-0.14928433299064636,
-0.12258322536945343,
0.19070467352867126,
0.09238998591899872,
-0.19433879852294922,
-0.19967201352119446,
0.18102650344371796,
0.052492350339889526,
-0.3394763469696045,
0.2620401084423065,
0.2917395234107971,
0.09816713631153107,
0.27760598063468933,
0.30041730403900146,
-0.1974315047264099,
0.11858826875686646,
0.0813206359744072,
0.08318035304546356,
-0.14763924479484558,
0.384296178817749,
-0.32777151465415955,
-0.003223910927772522,
-0.07385602593421936,
0.11886127293109894,
-0.005350247025489807,
-0.3872642517089844,
-0.10654763877391815,
-0.05592995882034302,
-0.16334936022758484,
0.0432683601975441,
-0.12281888723373413,
0.25607120990753174,
0.2625962495803833,
-0.16272999346256256,
-0.4020538926124573,
0.24616681039333344,
0.026332244277000427,
0.03192982077598572,
-0.1743234395980835,
-0.35579460859298706,
-0.0844583734869957,
0.27612343430519104,
-0.028462115675210953,
-0.18272291123867035,
-0.29119813442230225,
0.012717977166175842,
-0.2500869035720825,
-0.5496588945388794,
-0.19387274980545044,
0.08392786979675293,
0.14699621498584747,
-0.13656069338321686,
0.2771225571632385,
0.05787486582994461,
-0.15724508464336395,
0.3216921389102936,
0.0944875180721283,
0.3379596471786499,
0.17458100616931915,
0.1555849015712738,
-0.20721833407878876,
0.19300919771194458,
-0.011713278479874134,
0.02404133975505829,
0.3343414068222046,
0.09436940401792526,
0.17040537297725677,
0.16776999831199646,
0.0077948905527591705,
-0.050680700689554214,
0.10948829352855682,
-0.11704859137535095,
0.32659557461738586,
-0.3047123849391937,
-0.043399594724178314,
-0.2043454796075821,
0.04180339723825455,
-0.15787629783153534,
-0.22039133310317993,
-0.3821970820426941,
-0.07913323491811752,
0.3367302715778351,
0.14371755719184875,
0.15816915035247803,
-0.4130682349205017,
-0.003966806456446648,
0.09264324605464935,
0.4798494577407837,
0.1351012885570526,
-0.23341816663742065,
-0.08838321268558502,
-0.19131743907928467,
-0.656247079372406,
0.27400267124176025,
-0.07232701778411865,
-0.10242431610822678,
0.19349060952663422,
-0.05969071388244629,
-0.3893892467021942,
0.1659328043460846,
0.17616331577301025,
0.24335551261901855,
-0.14531251788139343,
0.09974261373281479,
-0.127717524766922,
-0.03288205340504646,
0.12483146786689758,
0.12886928021907806,
-0.12342953681945801,
-0.01684945821762085,
0.6835995316505432,
-0.40908971428871155,
0.005455672740936279,
0.20748266577720642,
0.16152459383010864,
-0.2255561798810959,
-0.14826178550720215,
0.2066383808851242,
0.22566449642181396,
0.315487265586853,
0.10588372498750687,
0.06307400017976761,
-0.6109322309494019,
-0.14220045506954193,
-0.12771448493003845,
0.2874806523323059,
-0.17580609023571014,
0.37225887179374695,
-0.0679781585931778,
-0.4161872863769531,
-0.1494724303483963,
0.22256825864315033,
0.006589606404304504,
-0.05925687775015831,
-0.09244826436042786,
-0.3131771683692932,
0.009468726813793182,
0.22356361150741577,
0.11406277120113373,
0.12051379680633545,
-0.06868383288383484,
0.018640706315636635,
-0.12958627939224243,
-0.4014151692390442,
0.8323550224304199,
-0.9512708187103271,
-0.2254909873008728,
0.08438220620155334,
-0.027243271470069885,
0.6329081058502197,
-0.2487996518611908,
-0.11369218677282333,
0.223974347114563,
0.24491722881793976,
-0.15130287408828735,
0.16726544499397278,
0.1304817795753479,
-0.16990821063518524,
0.23679061233997345,
-0.00022010132670402527,
-0.04300189018249512,
0.09356847405433655,
-0.1855035275220871,
0.2329389750957489,
-0.04578545689582825
] |
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 | 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) | [
-0.2937469482421875,
0.2318277657032013,
0.024344317615032196,
0.15282395482063293,
0.20251834392547607,
0.07448122650384903,
0.25727370381355286,
0.04684041440486908,
-0.1045924574136734,
-0.0768115222454071,
0.08009576052427292,
-0.2597599923610687,
-0.04459284618496895,
0.5198470950126648,
0.14449448883533478,
-0.11083489656448364,
0.13163363933563232,
-0.09146395325660706,
0.22748835384845734,
-0.11681708693504333,
0.06757987290620804,
0.015563765540719032,
-0.4016704559326172,
-0.15287548303604126,
-0.4129374623298645,
-0.16654333472251892,
0.1484525352716446,
-0.2525954842567444,
-0.08957282453775406,
-0.11482080817222595,
0.12369534373283386,
0.29789167642593384,
0.046243686228990555,
0.38633331656455994,
-0.00012148008681833744,
-0.10536399483680725,
0.2756280303001404,
0.011572388932108879,
-0.4807305335998535,
-0.16351281106472015,
-0.04349952191114426,
0.35551023483276367,
0.1237630620598793,
0.3142296373844147,
-0.23015928268432617,
0.08096678555011749,
0.22926416993141174,
-0.2984955906867981,
0.3683810830116272,
0.32052549719810486,
0.1086999699473381,
0.31455376744270325,
-0.1561243087053299,
-0.030894417315721512,
-0.17482319474220276,
-0.16442732512950897,
-0.09612343460321426,
0.396290123462677,
-0.09410269558429718,
0.11554570496082306,
-0.19329220056533813,
0.3256126642227173,
0.05493348836898804,
-0.16181504726409912,
0.2078721821308136,
-0.24791426956653595,
-0.43345576524734497,
-0.304715096950531,
0.04500475525856018,
0.3118334710597992,
0.2965986430644989,
0.1852813959121704,
-0.4676242172718048,
-0.24682629108428955,
0.27305811643600464,
-0.005881337448954582,
0.12479032576084137,
0.18787643313407898,
-0.1340882033109665,
0.24188558757305145,
-0.4439438283443451,
-0.21801689267158508,
-0.4331788420677185,
0.08474566042423248,
-0.3335748016834259,
0.3162141442298889,
-0.21858245134353638,
0.09544812887907028,
0.17223326861858368,
-0.07162590324878693,
0.09627216309309006,
-0.052132874727249146,
-0.1472252607345581,
-0.07037290930747986,
-0.48125410079956055,
-0.02834676019847393,
0.11681969463825226,
0.4161660373210907,
0.08295051008462906,
0.3560051918029785,
0.25567761063575745,
0.25580790638923645,
-0.18081770837306976,
0.03551280498504639,
0.2964293360710144,
0.25507020950317383,
0.08416660875082016,
-0.1457788646221161,
0.44902974367141724,
0.4704514741897583,
-0.017564520239830017,
0.011158306151628494,
-0.1931150108575821,
0.17865051329135895,
-0.22729268670082092,
-0.36669424176216125,
0.19215168058872223,
-0.20781680941581726,
-0.550609290599823,
0.46704187989234924,
-0.49899283051490784,
-0.040297944098711014,
0.3489406704902649,
0.18045687675476074,
-0.18771888315677643,
0.09843756258487701,
-0.11130394786596298,
0.15330684185028076,
0.007279781624674797,
-0.5687190294265747,
-0.2878071367740631,
-0.31554627418518066,
-0.1197957992553711,
0.08452840894460678,
0.22022534906864166,
-0.6433836817741394,
0.09719724953174591,
-0.04373946785926819,
0.14659713208675385,
-0.0473238080739975,
-0.271911084651947,
-0.241840660572052,
-0.06611021608114243,
0.09572002291679382,
0.24019289016723633,
0.08371790498495102,
-0.1137075424194336,
0.05598263442516327,
0.22371873259544373,
-0.27432799339294434,
0.03847057372331619,
-0.35155001282691956,
0.007590176537632942,
0.14086833596229553,
-0.27593761682510376,
-0.28418993949890137,
-0.31415021419525146,
0.4273355007171631,
-0.3095574378967285,
-0.018712060526013374,
-0.3059905171394348,
0.1434917151927948,
-0.1807357519865036,
0.02347969077527523,
0.37662723660469055,
0.4840691089630127,
-0.21897687017917633,
-0.1411331593990326,
-0.1625281721353531,
0.23082074522972107,
0.3423129916191101,
0.44541460275650024,
-0.09011685848236084,
0.18451188504695892,
-0.12348431348800659,
0.36140358448028564,
0.3626832067966461,
0.09749019145965576,
-0.42848458886146545,
0.5161522030830383,
-0.13094906508922577,
-0.15790671110153198,
0.03578455001115799,
-0.017080627381801605,
0.10104576498270035,
0.08353403955698013,
0.12681728601455688,
0.4275457262992859,
-0.08641880750656128,
-0.10414250940084457,
-0.10288490355014801,
-0.1363101750612259,
-0.3903380036354065,
0.15236705541610718,
-0.042827922850847244,
-0.10164103657007217,
-0.04849124699831009,
0.0009026303887367249,
0.2068561315536499,
0.08537863194942474,
0.10330434143543243,
0.0390537828207016,
0.6078804731369019,
0.031857386231422424,
-0.19169184565544128,
0.07784560322761536,
-0.21128156781196594,
0.01792658120393753,
0.31273460388183594,
0.12475522607564926,
-0.13397985696792603,
-0.08874313533306122,
-0.24447402358055115,
0.05269095301628113,
-0.11143709719181061,
-0.08886508643627167,
0.044142089784145355,
0.21915429830551147,
-0.18861351907253265,
0.32531487941741943,
-0.2018287032842636,
0.24200373888015747,
-0.008848784491419792,
0.031113317236304283,
-0.03599795699119568,
0.4391198456287384,
0.04602018743753433,
-0.19970475137233734,
-0.022379111498594284,
-0.0874975398182869,
0.18484744429588318,
0.1234952062368393,
-0.09221164137125015,
0.32048895955085754,
-0.4289572238922119,
0.4458003044128418,
0.2417742908000946,
0.1796131134033203,
0.25613152980804443,
-0.3903202414512634,
0.10128021985292435,
0.09202075004577637,
-0.03152093663811684,
0.0054461658000946045,
-0.050486356019973755,
0.06119498237967491,
0.08246546238660812,
0.11348365247249603,
0.10822555422782898,
0.2393040955066681,
0.17642824351787567,
0.1652601659297943,
-0.01945025473833084,
-0.21654899418354034,
0.42472678422927856,
-0.3977127969264984,
0.418489009141922,
-0.21810197830200195,
-0.5020509958267212,
0.1338953971862793,
-0.12619338929653168,
-0.010788749903440475,
-0.02715267986059189,
0.19487646222114563,
-0.3300554156303406,
-0.2934248447418213,
0.1035117655992508,
0.4441111385822296,
0.14846289157867432,
0.13377606868743896,
0.3044782876968384,
0.23231716454029083,
-0.03906290605664253,
-0.44482478499412537,
0.2940407693386078,
0.11522015184164047,
-0.14068631827831268,
0.17613670229911804,
0.23438356816768646,
-0.034587547183036804,
-0.4742538630962372,
-0.17268387973308563,
0.027579886838793755,
0.08090932667255402,
-0.3402874171733856,
0.21641846001148224,
-0.09161510318517685,
-0.3657471537590027,
-0.11864909529685974,
-0.20872709155082703,
-0.30745649337768555,
-0.5408505201339722,
-0.01106749102473259,
0.5421439409255981,
-0.16165967285633087,
0.05584760755300522,
-0.08452865481376648,
0.4217982292175293,
0.11192373931407928,
0.12747247517108917,
-0.24801796674728394,
-0.014055585488677025,
-0.2976047396659851,
-0.019519653171300888,
0.2022688388824463,
-0.23441816866397858,
0.3715808093547821,
-0.17350271344184875,
-0.09377945959568024,
-0.579194962978363,
-0.22411543130874634,
0.28349632024765015,
-0.09647759795188904,
0.5055080652236938,
0.03495391085743904,
0.24544544517993927,
-0.1780087649822235,
-0.0033033997751772404,
0.10128027200698853,
-0.12340842187404633,
0.04995034635066986,
0.05327530950307846,
0.09217528253793716,
0.14042118191719055,
0.07250683009624481,
0.02866372838616371,
0.00915782991796732,
-0.26896727085113525,
0.25264573097229004,
-0.3502366840839386,
-0.16388633847236633,
0.3172142505645752,
-0.022885911166667938,
0.12353132665157318,
-0.03449239954352379,
-0.021734556183218956,
-0.3133195638656616,
-0.4162113070487976,
0.41006073355674744,
0.0909254401922226,
-0.3671325445175171,
0.150821253657341,
0.3794231414794922,
0.07376950979232788,
0.2607354521751404,
-0.5639035105705261,
0.24751122295856476,
-0.0022736508399248123,
-0.11966376006603241,
-0.0006462112069129944,
-0.14448367059230804,
-0.04945152997970581,
-0.22529169917106628,
0.009016996249556541,
-0.017480600625276566,
-0.10974512994289398,
0.14246010780334473,
0.09926626086235046,
0.2436511218547821,
-0.04056166857481003,
0.36150410771369934,
0.039348240941762924,
0.5687649250030518,
0.3838506042957306,
0.008319303393363953,
0.4826717972755432,
0.005431812256574631,
0.20759129524230957,
0.07463151216506958,
-0.0881844162940979,
0.05011307820677757,
0.05518641322851181,
-0.4345373511314392,
0.30133211612701416,
0.12825849652290344,
-0.053281232714653015,
-0.4153655171394348,
-0.21691946685314178,
-0.0904889851808548,
-0.2447909563779831,
-0.049236178398132324,
-0.2528032660484314,
0.4669463336467743,
0.009667806327342987,
0.27026697993278503,
0.39214158058166504,
-0.3530196249485016,
-0.23124535381793976,
0.006473436951637268,
0.18031644821166992,
-0.15011510252952576,
0.2186000794172287,
0.04832080379128456,
-0.5031128525733948,
0.2495250403881073,
-0.36673757433891296,
0.43370601534843445,
-0.31726473569869995,
-0.023518305271863937,
0.3255529999732971,
0.014499761164188385,
0.26781797409057617,
-0.335249125957489,
0.11109989881515503,
-0.3341171145439148,
0.06302833557128906,
0.02725561521947384,
-0.02850460819900036,
-0.17414304614067078,
-0.23753485083580017,
0.03368445113301277,
0.3874458074569702,
-0.2094215303659439,
-0.03254235163331032,
0.23029391467571259,
-0.24482928216457367,
-0.1642829328775406,
-0.01969987154006958,
-0.08707975596189499,
-0.09131616353988647,
0.17166320979595184,
0.026445135474205017,
-0.008628102019429207,
0.015476057305932045,
0.13308778405189514,
0.03815513476729393,
0.06987880170345306,
0.06665574759244919,
0.3357430100440979,
-0.013994119130074978,
0.205030620098114,
-0.015624412335455418,
0.21520987153053284,
0.5681943893432617,
0.1393224000930786,
0.5278102159500122,
0.4869433641433716,
0.2784676253795624,
-0.03872852027416229,
0.25718218088150024,
0.12072184681892395,
0.37901660799980164,
0.6873472929000854,
-0.12563736736774445,
-0.08836448937654495,
0.6550436019897461,
0.2678912878036499,
-0.3680782914161682,
0.29283514618873596,
0.5967206358909607,
0.03268849849700928,
-0.35450616478919983,
-0.35094785690307617,
0.3767574727535248,
-0.017749803140759468,
-0.06236868351697922,
-0.07268837094306946,
0.29865115880966187,
-0.11801733076572418,
0.2985537648200989,
-0.0248725488781929,
1.0770858526229858,
0.21699026226997375,
0.19753381609916687,
0.3151969015598297,
-0.35041606426239014,
0.3207269012928009,
-0.27423641085624695,
0.04845700412988663,
-0.27387985587120056,
-0.07437609881162643,
-0.3183104693889618,
-0.014981560409069061,
-0.11268632858991623,
-0.21442468464374542,
-0.19319763779640198,
0.32386019825935364,
-0.1583457887172699,
0.3757789731025696,
0.036219190806150436,
0.14493805170059204,
-0.4338013529777527,
0.1304548680782318,
-0.23217281699180603,
0.06392903625965118,
-0.2534228563308716,
0.2662487328052521,
-0.035609327256679535,
-0.23957295715808868,
0.28313615918159485,
-0.08937662094831467,
-0.7247473001480103,
0.07300055772066116,
-0.15307742357254028,
-0.19145312905311584,
-0.2126578688621521,
-0.2271394431591034,
0.18780894577503204,
0.08575165271759033,
0.10491491854190826,
0.011253777891397476,
-0.5394358038902283,
0.22551755607128143,
-0.09368792921304703,
-0.05114760994911194,
0.08000190556049347,
-0.0624176524579525,
0.39995473623275757,
-0.1263626515865326,
-0.14037135243415833,
0.19279521703720093,
0.173558309674263,
-0.020016878843307495,
-0.39491039514541626,
-0.2142242044210434,
-0.2206241339445114,
-0.35669681429862976,
-0.07697772979736328,
-0.17596536874771118,
0.07296408712863922,
-0.260408490896225,
0.07935822010040283,
-0.03824448585510254,
-0.01703583262860775,
-0.35994118452072144,
0.3834149241447449,
-0.11101849377155304,
-0.27725476026535034,
0.46315670013427734,
-0.076197549700737,
0.21540474891662598,
0.39630743861198425,
0.22214339673519135,
-0.24884478747844696,
-0.18413937091827393,
-0.045233353972435,
0.08219233900308609,
-0.6199303269386292,
0.13422255218029022,
-0.12670749425888062,
-0.09659584611654282,
-0.04403141885995865,
0.15678799152374268,
0.1300121545791626,
-0.029200874269008636,
-0.12246045470237732,
-0.1663457155227661,
0.06441844254732132,
0.15163162350654602,
-0.10365431010723114,
0.15296413004398346,
-0.1391272097826004,
0.04322173073887825,
0.04147534817457199,
-0.19667722284793854,
-0.2266542911529541,
-0.15526291728019714,
-0.21619659662246704,
-0.255577027797699,
-0.4081299602985382,
-0.020199820399284363,
0.46489185094833374,
-0.025653820484876633,
0.022003738209605217,
-0.031230159103870392,
-0.2891067564487457,
-0.04327864199876785,
-0.16011035442352295,
0.19163978099822998,
0.2997780442237854,
-0.08920082449913025,
-0.042175643146038055,
-0.16212685406208038,
-0.19818173348903656,
0.018684599548578262,
0.027103707194328308,
-0.00017120689153671265,
0.2792429029941559,
-0.13491815328598022,
0.38707226514816284,
0.19955319166183472,
-0.1253669261932373,
-0.02427564561367035,
0.05939532816410065,
0.4521189332008362,
-0.08757523447275162,
-0.07547730207443237,
0.09001071006059647,
-0.18837547302246094,
-0.29555416107177734,
0.1546836495399475,
0.20059171319007874,
0.0007896572351455688,
0.2923654615879059,
-0.28510892391204834,
-0.04225140064954758,
0.06164278835058212,
0.6162402629852295,
0.4859910309314728,
-0.1843000203371048,
-0.33374470472335815,
0.08920163661241531,
0.12246663868427277,
-0.10140147060155869,
-0.1271851509809494,
-0.15757493674755096,
0.08640339225530624,
-0.04178708419203758,
-0.07619073241949081,
0.25879281759262085,
0.03942400962114334,
-0.4188339114189148,
0.2143242359161377,
0.2349533587694168,
0.22133934497833252,
0.14500491321086884,
0.13736523687839508,
0.012449782341718674,
0.28600332140922546,
-0.04647267609834671,
-0.06303715705871582,
-0.060928814113140106,
0.021809734404087067,
-0.19060960412025452,
0.035792965441942215,
0.10866335034370422,
0.20772700011730194,
-0.018840551376342773,
-0.17239058017730713,
-0.021698791533708572,
0.26095569133758545,
-0.28414246439933777,
0.15701070427894592,
-0.06561149656772614,
0.5303359627723694,
-0.09290395677089691,
-0.0010299477726221085,
-0.30423709750175476,
0.23837244510650635,
-0.07802986353635788,
-0.06560881435871124,
-0.06498044729232788,
-0.2828504741191864,
-0.29852432012557983,
0.2752329111099243,
-0.03752465173602104,
0.12032674252986908,
-0.07316349446773529,
0.024968735873699188,
-0.09008437395095825,
-0.4882643222808838,
-0.09713675826787949,
0.06626282632350922,
0.33902230858802795,
-0.21332386136054993,
0.38483619689941406,
0.08510596305131912,
0.070913165807724,
0.26960858702659607,
0.48643818497657776,
0.45820152759552,
0.015455309301614761,
0.09464679658412933,
0.20560327172279358,
-0.023516010493040085,
-0.016736648976802826,
0.06511356681585312,
0.1327631175518036,
0.3324662446975708,
0.08335709571838379,
0.2257552593946457,
0.06252047419548035,
-0.04611324518918991,
0.45286762714385986,
-0.16486309468746185,
0.41814011335372925,
-0.28148484230041504,
0.3164671063423157,
-0.2370481789112091,
0.16771569848060608,
-0.2025498002767563,
-0.3775944709777832,
-0.3544735312461853,
0.4508417844772339,
0.470315158367157,
-0.012035817839205265,
-0.03247305750846863,
-0.13614104688167572,
0.013824425637722015,
0.11307923495769501,
0.7692564129829407,
0.4961586594581604,
0.10929390788078308,
-0.1646045744419098,
-0.32280251383781433,
-0.49579355120658875,
0.10290882736444473,
0.07351061701774597,
0.22833237051963806,
-0.06078112870454788,
-0.05168497562408447,
-0.04604581743478775,
-0.05612168461084366,
0.18440216779708862,
0.07549925893545151,
-0.4297463297843933,
0.13723425567150116,
-0.4024087190628052,
-0.0062475502490997314,
-0.23081941902637482,
0.15888221561908722,
-0.22402596473693848,
0.02805311232805252,
0.41808709502220154,
-0.08858003467321396,
-0.07210841774940491,
0.16893260180950165,
-0.1094672679901123,
-0.1886506825685501,
-0.04982689768075943,
0.27103596925735474,
0.007567413151264191,
0.28911063075065613,
0.05268825590610504,
-0.06287631392478943,
-0.36106592416763306,
-0.1484706848859787,
-0.1843183934688568,
-0.07051555067300797,
0.033027298748493195,
0.2683074176311493,
0.14116577804088593,
-0.21055488288402557,
-0.21570894122123718,
0.2483648955821991,
0.1267016977071762,
-0.31351158022880554,
-0.46894025802612305,
-0.06700651347637177,
-0.07824894785881042,
0.0845755860209465,
0.2145371288061142,
0.26622501015663147,
-0.14627261459827423,
-0.20566609501838684,
-0.18742722272872925,
-0.44109630584716797,
0.6571071147918701,
-0.1919672042131424,
-0.07742181420326233,
-0.06807073950767517,
0.17690442502498627,
0.7661358714103699,
-0.011117113754153252,
-0.8356457352638245,
0.0819796696305275,
0.20810411870479584,
-0.11425911635160446,
-0.1950472593307495,
0.29067564010620117,
0.19893872737884521,
0.11607150733470917,
0.017738621681928635,
0.11339429020881653,
0.2943422794342041,
-0.4339141249656677,
0.30566543340682983,
-0.019346285611391068
] |
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 | 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. | [
-0.4084222614765167,
-0.05966586619615555,
0.04682924225926399,
0.19916777312755585,
0.36410027742385864,
-0.008550085127353668,
0.2073410451412201,
0.13552851974964142,
-0.3094407916069031,
0.007971175014972687,
-0.06648747622966766,
0.07511910051107407,
0.014804861508309841,
0.5022214651107788,
0.025789979845285416,
-0.2223297357559204,
0.019526951014995575,
-0.083887979388237,
0.35575997829437256,
-0.15008480846881866,
0.20217536389827728,
0.06537066400051117,
-0.2994374930858612,
-0.07058727741241455,
-0.48635298013687134,
-0.015448721125721931,
0.11964544653892517,
-0.33537915349006653,
-0.19354210793972015,
-0.17788103222846985,
0.048687584698200226,
0.2325020581483841,
0.1387258917093277,
0.2784731984138489,
-0.00011949527106480673,
-0.23614801466464996,
0.3101379871368408,
-0.022373121231794357,
-0.3408620059490204,
-0.23197244107723236,
-0.03663594275712967,
0.4155794382095337,
0.20712165534496307,
0.2761761248111725,
-0.2228514850139618,
0.3271096646785736,
0.21331550180912018,
-0.08251193165779114,
0.6704245805740356,
0.2767195701599121,
0.09136664867401123,
0.13009074330329895,
-0.09833267331123352,
-0.02702651545405388,
-0.3140272796154022,
-0.20103700459003448,
-0.09329281002283096,
0.26527684926986694,
-0.009731896221637726,
0.11454115808010101,
-0.3034480810165405,
0.3736516833305359,
0.1251576691865921,
-0.19488461315631866,
0.12720990180969238,
-0.30936163663864136,
-0.30102214217185974,
-0.3166106939315796,
0.01753360964357853,
0.38880959153175354,
0.44732773303985596,
0.15100307762622833,
-0.4104081094264984,
-0.15954682230949402,
0.3956766426563263,
-0.04968874901533127,
0.08286835253238678,
0.20057359337806702,
-0.30926641821861267,
0.2515585422515869,
-0.36944860219955444,
-0.20297813415527344,
-0.6022760272026062,
0.07414869964122772,
-0.22975856065750122,
0.16941331326961517,
-0.18313799798488617,
0.09672269225120544,
0.257292240858078,
-0.01534062996506691,
0.06500572711229324,
-0.0033646579831838608,
-0.1844562590122223,
0.028716526925563812,
-0.43651100993156433,
-0.11192665994167328,
-0.08900903910398483,
0.42995646595954895,
-0.055086128413677216,
0.268460750579834,
0.37937498092651367,
0.3826959729194641,
-0.019496940076351166,
0.12548333406448364,
0.2688524127006531,
0.16608169674873352,
0.09984049946069717,
-0.18999706208705902,
0.31991928815841675,
0.5046942830085754,
-0.21155166625976562,
-0.08523822575807571,
-0.38548243045806885,
0.33697736263275146,
-0.17467635869979858,
-0.268478661775589,
0.05357135832309723,
-0.2229943871498108,
-0.5664664506912231,
0.29858189821243286,
-0.4106469452381134,
-0.019874054938554764,
0.38131284713745117,
0.2134120762348175,
-0.18137118220329285,
0.2002968192100525,
-0.16775688529014587,
0.15150479972362518,
-0.059814050793647766,
-0.5345542430877686,
-0.2147524356842041,
-0.07293954491615295,
-0.11842519044876099,
0.024235084652900696,
0.1515391767024994,
-0.623557448387146,
0.1004168689250946,
-0.17514283955097198,
0.30867451429367065,
-0.03760390728712082,
-0.2505476474761963,
-0.31945836544036865,
-0.16194233298301697,
0.043350182473659515,
0.10258226096630096,
0.16129185259342194,
-0.015740659087896347,
0.15459421277046204,
0.22684603929519653,
-0.22409608960151672,
-0.13174691796302795,
-0.5201719403266907,
0.09722196310758591,
0.11427725851535797,
-0.3219035267829895,
-0.27386656403541565,
-0.05100701004266739,
0.33074337244033813,
-0.1557912528514862,
-0.07281320542097092,
-0.21501237154006958,
0.04318886995315552,
-0.15814068913459778,
-0.008720705285668373,
0.25041189789772034,
0.3832574486732483,
-0.32684996724128723,
-0.14701002836227417,
-0.0877007469534874,
0.3534289598464966,
0.4680502712726593,
0.31572189927101135,
-0.21908564865589142,
0.02588273212313652,
-0.012789810076355934,
0.4599984884262085,
0.5609857439994812,
-0.1378331333398819,
-0.4193902611732483,
0.46705034375190735,
-0.039152391254901886,
-0.14085662364959717,
0.13515658676624298,
0.03685801476240158,
0.23019833862781525,
0.03120107389986515,
0.2115405648946762,
0.3118824362754822,
-0.08860661834478378,
-0.21466155350208282,
-0.22158323228359222,
-0.24498796463012695,
-0.34279584884643555,
0.07035791873931885,
0.000513862818479538,
-0.19121581315994263,
-0.02735821157693863,
0.3233659565448761,
0.24778759479522705,
0.22635698318481445,
0.09282642602920532,
-0.01627451553940773,
0.6345220804214478,
0.10688123106956482,
-0.08828452974557877,
0.0748606026172638,
0.09975861757993698,
0.00011053681373596191,
0.16692079603672028,
0.10655421018600464,
-0.018154211342334747,
-0.10932838916778564,
-0.2719586193561554,
0.014351917430758476,
-0.18318819999694824,
-0.15034398436546326,
0.0784628838300705,
0.07866811752319336,
-0.16241490840911865,
0.21360516548156738,
-0.36453869938850403,
0.3685017228126526,
-0.07175619155168533,
0.003546088933944702,
-0.08572092652320862,
0.49800509214401245,
0.046636033803224564,
-0.20588485896587372,
-0.029865356162190437,
-0.04402438551187515,
0.19902744889259338,
0.1905825138092041,
-0.13767573237419128,
0.3104444444179535,
-0.4612460732460022,
0.41137778759002686,
0.024549955502152443,
0.17802272737026215,
0.2940087616443634,
-0.4141099154949188,
0.012209659442305565,
-0.051613930612802505,
0.00687005277723074,
0.0030969753861427307,
0.05163702368736267,
-0.005193069577217102,
0.1698145866394043,
-0.044389717280864716,
0.13044902682304382,
0.2705298960208893,
0.21433883905410767,
0.15994888544082642,
-0.15152686834335327,
-0.21139785647392273,
0.4649449288845062,
-0.5265743136405945,
0.35589858889579773,
-0.21211718022823334,
-0.4597136378288269,
0.34679219126701355,
0.07486522942781448,
0.11181657016277313,
-0.015818171203136444,
0.2373657524585724,
-0.25551143288612366,
-0.1887265145778656,
0.06925861537456512,
0.31210145354270935,
0.18354558944702148,
0.07812553644180298,
0.21172261238098145,
0.1618562936782837,
-0.06543470174074173,
-0.45975369215011597,
0.19895261526107788,
0.17205128073692322,
0.11914265155792236,
0.24981513619422913,
0.25950923562049866,
0.023991260677576065,
-0.5087791085243225,
-0.08958655595779419,
0.156089186668396,
0.17132562398910522,
-0.2401241511106491,
0.15170173346996307,
-0.09260154515504837,
-0.35913923382759094,
-0.008900673128664494,
-0.42875516414642334,
-0.24525713920593262,
-0.48508721590042114,
0.1285252720117569,
0.5597004890441895,
-0.03458007797598839,
0.1618032455444336,
0.036081861704587936,
0.3898637294769287,
0.029232310131192207,
0.24591656029224396,
-0.27670878171920776,
-0.008493348956108093,
-0.30267855525016785,
-0.00785035453736782,
0.1020684689283371,
-0.20695258677005768,
0.28260329365730286,
-0.10197268426418304,
-0.026071645319461823,
-0.23297788202762604,
-0.17589476704597473,
0.2958158254623413,
-0.15112721920013428,
0.37791794538497925,
0.08865316212177277,
0.261790931224823,
-0.3438704013824463,
-0.11983201652765274,
0.1901104599237442,
-0.08122018724679947,
0.06630697846412659,
0.17774415016174316,
0.1763734370470047,
0.17405559122562408,
0.08177362382411957,
0.12499845027923584,
-0.08827099949121475,
-0.358146607875824,
0.20708875358104706,
-0.28549647331237793,
-0.1354392021894455,
0.23191450536251068,
-0.0499667190015316,
0.17610742151737213,
-0.15559889376163483,
-0.01598452962934971,
-0.3172968626022339,
-0.48756253719329834,
0.41300448775291443,
0.09633012115955353,
-0.35149243474006653,
0.16229890286922455,
0.4515610933303833,
0.1883540153503418,
0.2236405909061432,
-0.4221680760383606,
-0.06836286187171936,
0.12530897557735443,
-0.13053125143051147,
-0.11452911794185638,
-0.26261061429977417,
0.035367559641599655,
-0.2852398157119751,
0.015946408733725548,
-0.0001701153814792633,
0.16144703328609467,
0.22962751984596252,
0.23474180698394775,
0.3329417407512665,
-0.17809152603149414,
0.2881186306476593,
0.2253347933292389,
0.4452296495437622,
0.4658306837081909,
0.07875393331050873,
0.48625439405441284,
0.01961413025856018,
0.016444142907857895,
0.04536840692162514,
-0.0805850625038147,
0.026470979675650597,
-0.03194226324558258,
-0.41836923360824585,
0.2944573163986206,
0.14566588401794434,
0.03882773593068123,
-0.38632744550704956,
-0.17137901484966278,
-0.09298685938119888,
-0.2359059602022171,
0.02933778241276741,
-0.3823114037513733,
0.33011355996131897,
0.03816172108054161,
0.26387831568717957,
0.337711364030838,
-0.3571821451187134,
-0.10466556251049042,
0.042674873024225235,
0.2158929407596588,
-0.18011093139648438,
0.1668631136417389,
-0.14529100060462952,
-0.5263549089431763,
0.19795942306518555,
-0.2582452893257141,
0.5135028958320618,
-0.4373480975627899,
-0.02994426339864731,
0.39425498247146606,
-0.0522044338285923,
0.280034601688385,
-0.36129114031791687,
0.0245222058147192,
-0.2440624237060547,
-0.011209769174456596,
-0.07513151317834854,
-0.03525255247950554,
-0.18484485149383545,
-0.10779832303524017,
0.02847382239997387,
0.27412253618240356,
-0.22695454955101013,
-0.02864193543791771,
0.12758642435073853,
-0.23100173473358154,
-0.1740190088748932,
-0.06031745299696922,
-0.09704719483852386,
0.014677852392196655,
0.019295962527394295,
-0.02570848912000656,
-0.03613957762718201,
0.08609110116958618,
0.10634399950504303,
0.02711581066250801,
0.14098258316516876,
0.03625275939702988,
0.3514082431793213,
-0.05382606387138367,
0.14747220277786255,
-0.01250446867197752,
0.13738416135311127,
0.35462072491645813,
-0.0038125142455101013,
0.33312082290649414,
0.3418855667114258,
0.3020798861980438,
-0.3659329116344452,
0.18776744604110718,
0.020287394523620605,
0.2930606007575989,
0.6604108810424805,
-0.1871507614850998,
-0.009858176112174988,
0.5320476293563843,
0.21058128774166107,
-0.21135860681533813,
0.2212347835302353,
0.42804813385009766,
0.05967564880847931,
-0.39041662216186523,
-0.2765856385231018,
0.28974127769470215,
-0.1605648249387741,
-0.07594442367553711,
0.03570938855409622,
0.14641256630420685,
-0.08454399555921555,
0.4335733652114868,
0.002927534282207489,
1.2231143712997437,
0.2737494707107544,
0.11731776595115662,
0.29051750898361206,
-0.10604235529899597,
0.2370944619178772,
-0.45459985733032227,
0.21823914349079132,
-0.2332041710615158,
-0.04811083525419235,
-0.3380555808544159,
0.08534599840641022,
0.08747601509094238,
-0.20462949573993683,
-0.2305813878774643,
0.19580647349357605,
-0.02395625039935112,
0.4180956780910492,
-0.04406847804784775,
-0.011219184845685959,
-0.5904755592346191,
0.02545943856239319,
-0.35867932438850403,
0.04926972836256027,
-0.32880139350891113,
0.39475131034851074,
0.017560914158821106,
-0.3308563232421875,
0.18964867293834686,
-0.12705466151237488,
-0.6705079674720764,
0.10679594427347183,
-0.27293795347213745,
-0.15633875131607056,
-0.2534750699996948,
-0.14322620630264282,
0.18128803372383118,
0.03282088786363602,
0.20739518105983734,
-0.08132115006446838,
-0.5002474188804626,
0.2800873816013336,
-0.007239177823066711,
-0.1753578633069992,
0.052361197769641876,
-0.0927114486694336,
0.3947971761226654,
-0.27085909247398376,
-0.13309407234191895,
0.4386763572692871,
0.18096031248569489,
0.0043898820877075195,
-0.15741786360740662,
-0.1795029491186142,
0.15329661965370178,
-0.29805988073349,
-0.08422249555587769,
-0.14922575652599335,
-0.082093745470047,
-0.21562761068344116,
0.07029658555984497,
-0.01616419106721878,
-0.2813977897167206,
-0.23050040006637573,
0.2978348135948181,
-0.11576001346111298,
-0.13454213738441467,
0.4792661666870117,
0.04301699250936508,
0.11376313865184784,
0.4531596302986145,
0.1287168562412262,
-0.26250773668289185,
-0.21371027827262878,
-0.11836887896060944,
0.10542970895767212,
-0.8323944211006165,
0.004337547346949577,
0.03599076345562935,
-0.1317117065191269,
0.004440228454768658,
0.09126381576061249,
0.04921148344874382,
-0.03145981580018997,
-0.20177514851093292,
-0.30499643087387085,
-0.10070163011550903,
0.23054131865501404,
0.07479861378669739,
0.056878697127103806,
-0.11504841595888138,
0.09242545068264008,
0.18556424975395203,
-0.09555219858884811,
-0.24044087529182434,
-0.10410536825656891,
-0.2552725672721863,
-0.14038093388080597,
-0.41992393136024475,
-0.06176061928272247,
0.3735583424568176,
-0.03808736056089401,
-0.008569953963160515,
0.20242923498153687,
-0.4559158980846405,
-0.04969662427902222,
-0.05590999871492386,
0.19049255549907684,
0.28716039657592773,
-0.0005904864519834518,
-0.15565429627895355,
-0.1659214347600937,
-0.25635993480682373,
0.13727588951587677,
-0.08383211493492126,
0.05856279283761978,
0.19641710817813873,
-0.11423008888959885,
0.48958897590637207,
0.30045178532600403,
0.005713414400815964,
-0.06123858690261841,
0.05761503800749779,
0.588621973991394,
0.0014433781616389751,
-0.11834552884101868,
0.11203048378229141,
-0.15691699087619781,
-0.28490257263183594,
0.15575507283210754,
0.09160658717155457,
-0.07986579835414886,
0.23179534077644348,
-0.34073972702026367,
0.11921647191047668,
-0.12313680350780487,
0.39972206950187683,
0.40606263279914856,
-0.17384661734104156,
-0.36197713017463684,
0.15350812673568726,
0.07787883281707764,
-0.11117883026599884,
-0.06020632013678551,
-0.16541965305805206,
-0.030270397663116455,
-0.10355570912361145,
-0.10924268513917923,
0.377232164144516,
-0.032411616295576096,
-0.25599145889282227,
0.1966823935508728,
0.30888301134109497,
0.12866997718811035,
0.2142694890499115,
0.29235920310020447,
-0.03434755653142929,
0.2125122994184494,
-0.23477861285209656,
0.022725600749254227,
-0.13360059261322021,
-0.12443898618221283,
-0.31738901138305664,
0.19553321599960327,
0.12866859138011932,
0.13543856143951416,
-0.03491102159023285,
-0.1613946110010147,
-0.21832092106342316,
0.175050750374794,
-0.23960593342781067,
0.25981783866882324,
0.035344745963811874,
0.603995144367218,
0.12897203862667084,
-0.12371306866407394,
-0.28129667043685913,
0.20736382901668549,
-0.09674949198961258,
-0.05861346423625946,
-0.17054924368858337,
-0.22904613614082336,
-0.3021307587623596,
0.19093872606754303,
0.04829335957765579,
0.32889384031295776,
0.05990809202194214,
0.07594212144613266,
-0.0018511787056922913,
-0.35492658615112305,
-0.14862042665481567,
0.23598745465278625,
0.35340842604637146,
-0.19601260125637054,
0.35420212149620056,
0.06127593293786049,
0.18215429782867432,
0.3011598587036133,
0.30543795228004456,
0.3957843482494354,
-0.047367990016937256,
0.0700141042470932,
0.2731463313102722,
-0.08186949789524078,
0.07727403193712234,
0.18697784841060638,
0.13365516066551208,
0.47265639901161194,
0.11436983942985535,
0.2201305478811264,
0.025440821424126625,
-0.08665589988231659,
0.4046364426612854,
-0.20632626116275787,
0.41958582401275635,
-0.2731306850910187,
0.29597193002700806,
-0.13400548696517944,
0.19225859642028809,
-0.19227692484855652,
-0.2697393000125885,
-0.44417300820350647,
0.48479485511779785,
0.35735705494880676,
-0.10405971109867096,
-0.09693281352519989,
-0.1534683257341385,
0.03242744132876396,
-0.006284784525632858,
0.7087132930755615,
0.4533463418483734,
-0.01032605767250061,
-0.15915149450302124,
-0.24273791909217834,
-0.48859691619873047,
0.09357301145792007,
0.11805801093578339,
0.3063848316669464,
-0.10734578967094421,
-0.031955230981111526,
0.014807507395744324,
-0.053682826459407806,
0.15390363335609436,
0.30097392201423645,
-0.34912893176078796,
0.2605762183666229,
-0.3321591913700104,
0.04423123970627785,
-0.05344691127538681,
0.23185838758945465,
-0.22803141176700592,
0.0822429284453392,
0.4198293387889862,
0.045299261808395386,
-0.06024916097521782,
0.3241179585456848,
-0.2607323229312897,
-0.1847078949213028,
-0.25233837962150574,
0.17226234078407288,
-0.05647657811641693,
0.0946565493941307,
0.018350664526224136,
0.09015028178691864,
-0.1834719479084015,
-0.22190417349338531,
-0.07047253102064133,
-0.09262777119874954,
0.1484043002128601,
0.2448599636554718,
0.16814464330673218,
-0.1567191332578659,
-0.20354440808296204,
-0.004666279070079327,
0.022611767053604126,
-0.3446361720561981,
-0.3959283232688904,
-0.041090842336416245,
-0.00932009145617485,
0.241899311542511,
0.135677307844162,
0.28402793407440186,
-0.06077365577220917,
-0.2181628942489624,
-0.2163439393043518,
-0.36336833238601685,
0.7346004843711853,
-0.29887861013412476,
-0.23591066896915436,
-0.08639374375343323,
0.21091261506080627,
0.8371973037719727,
-0.006129298359155655,
-0.9534918665885925,
0.016875557601451874,
0.11308322101831436,
-0.1529056429862976,
-0.13874660432338715,
0.3116165101528168,
0.12284824252128601,
0.12567536532878876,
-0.03488986939191818,
0.06686023622751236,
0.3261476755142212,
-0.24159657955169678,
0.25170016288757324,
-0.04540606215596199
] |
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_ | 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">
| [
-0.09011424332857132,
-0.10586247593164444,
0.0025288015604019165,
0.2226160317659378,
0.22986696660518646,
-0.08204885572195053,
0.12817791104316711,
0.41559115052223206,
-0.0217602401971817,
0.07179193943738937,
0.05254892259836197,
0.21133314073085785,
-0.061486609280109406,
0.1281215101480484,
-0.19123247265815735,
-0.1338696926832199,
-0.03764023631811142,
0.20322789251804352,
-0.21037018299102783,
-0.08671341091394424,
-0.03656335175037384,
0.39818957448005676,
-0.2061927318572998,
0.06523388624191284,
-0.6453298926353455,
-0.0981418564915657,
0.00473676435649395,
0.06103956326842308,
-0.3912607431411743,
-0.3343745768070221,
0.2915009558200836,
0.18254557251930237,
-0.026495173573493958,
0.32421350479125977,
-0.0001106130366679281,
0.2230987697839737,
0.3443325161933899,
-0.05961373448371887,
-0.08937403559684753,
-0.24632973968982697,
-0.2463683784008026,
-0.21842828392982483,
0.24825066328048706,
-0.11059488356113434,
-0.14940166473388672,
-0.2692110538482666,
0.14314492046833038,
-0.22280395030975342,
0.5926157236099243,
0.11854662746191025,
0.2354978770017624,
0.33326399326324463,
0.25468453764915466,
-0.1298612356185913,
-0.007043793797492981,
0.17152297496795654,
0.0470159575343132,
0.024522077292203903,
0.018665753304958344,
0.240442156791687,
-0.1615663766860962,
0.45062798261642456,
0.15944351255893707,
-0.07710950076580048,
0.0771094486117363,
-0.09797003120183945,
-0.3154674172401428,
-0.26534685492515564,
0.15440905094146729,
0.1905745267868042,
0.4908498525619507,
0.003825172781944275,
-0.21044310927391052,
-0.06685331463813782,
-0.055438246577978134,
0.13310733437538147,
0.2597625255584717,
0.2387416958808899,
0.05324661359190941,
0.2786310911178589,
-0.4064406454563141,
0.002423137193545699,
-0.32227426767349243,
-0.05389026552438736,
-0.4667854905128479,
0.08680451661348343,
-0.19667251408100128,
0.025770388543605804,
0.21833111345767975,
-0.3007045388221741,
-0.05850844457745552,
0.08659907430410385,
-0.22483393549919128,
0.027563124895095825,
-0.2759266495704651,
-0.27572110295295715,
-0.05247852951288223,
0.11001026630401611,
0.08862882107496262,
0.2721015512943268,
-0.16196975111961365,
0.14257171750068665,
-0.3006893992424011,
0.18237105011940002,
0.2280372679233551,
0.19077423214912415,
-0.0021908804774284363,
0.027585439383983612,
0.321236789226532,
0.14870363473892212,
-0.0382220596075058,
-0.07556409388780594,
0.04419292137026787,
-0.18210870027542114,
-0.3396157920360565,
-0.2180047333240509,
0.19046595692634583,
0.03209001198410988,
-0.2289947271347046,
0.0092379841953516,
-0.44535160064697266,
-0.01906011812388897,
0.1025199145078659,
0.40680891275405884,
-0.08082716166973114,
0.1638120412826538,
0.022681433707475662,
0.12935474514961243,
-0.13572588562965393,
-0.41067934036254883,
-0.20852673053741455,
-0.08761405944824219,
-0.03255021944642067,
-0.0900721624493599,
0.1498253345489502,
-0.056831855326890945,
0.2373487502336502,
-0.055171478539705276,
0.0808081105351448,
-0.09646767377853394,
-0.002243851311504841,
0.006011234596371651,
-0.07163245230913162,
0.3132329285144806,
0.2291683852672577,
0.061406172811985016,
0.18862394988536835,
-0.05783059820532799,
0.02369803935289383,
-0.15088731050491333,
-0.21594825387001038,
-0.2946113348007202,
-0.223185732960701,
0.2866113483905792,
-0.5313979983329773,
-0.11682932078838348,
-0.09330742806196213,
-0.0006454549729824066,
-0.2760760486125946,
0.044405486434698105,
0.08159057050943375,
0.15306463837623596,
0.010515611618757248,
-0.020469464361667633,
0.09141310304403305,
0.23522523045539856,
-0.22204844653606415,
-0.3874841034412384,
-0.015605717897415161,
-0.3278254270553589,
-0.1307031512260437,
0.39569664001464844,
-0.1328582912683487,
0.0024806633591651917,
-0.30508753657341003,
0.22627772390842438,
0.17499908804893494,
-0.27591606974601746,
-0.45983263850212097,
0.48074084520339966,
-0.24927054345607758,
0.014334900304675102,
0.12838095426559448,
-0.04099459573626518,
0.29189109802246094,
0.02960910089313984,
-0.0691618025302887,
0.0695876032114029,
0.181879922747612,
0.0785316526889801,
-0.18610942363739014,
-0.428974449634552,
-0.12078940868377686,
0.3809625506401062,
0.17407217621803284,
-0.17025086283683777,
0.05614478141069412,
0.00540084857493639,
0.27745717763900757,
-0.05999832972884178,
0.2511061131954193,
0.24756315350532532,
0.6883561015129089,
0.28798431158065796,
0.06209710240364075,
-0.12465015053749084,
-0.41022470593452454,
0.20575031638145447,
0.055254556238651276,
0.14764118194580078,
-0.23818637430667877,
-0.11818458884954453,
-0.2668647766113281,
0.044426411390304565,
-0.3517719805240631,
-0.1640620082616806,
0.22060275077819824,
0.1747385561466217,
-0.13123387098312378,
0.26132071018218994,
-0.3014204204082489,
0.39628246426582336,
0.06742909550666809,
0.2409573644399643,
-0.1978718340396881,
0.38901546597480774,
-0.10187200456857681,
0.08257190138101578,
0.3149482309818268,
0.05866941437125206,
0.1513432264328003,
-0.35451698303222656,
0.021237429231405258,
0.278094619512558,
-0.0501500628888607,
0.2986462116241455,
0.02596326917409897,
-0.08984152972698212,
0.20164448022842407,
-0.7486502528190613,
0.051851727068424225,
0.14603693783283234,
-0.014515385963022709,
-0.05906497687101364,
-0.3652920126914978,
0.3634727895259857,
-0.14997293055057526,
0.15968185663223267,
-0.08885855227708817,
0.19396555423736572,
0.44298693537712097,
-0.2659943997859955,
-0.14810924232006073,
-0.40638720989227295,
0.016019996255636215,
-0.23580504953861237,
0.21798278391361237,
0.009687092155218124,
-0.33689457178115845,
-0.08888412266969681,
0.5885574817657471,
0.0013394597917795181,
-0.08530550450086594,
0.228766530752182,
-0.023949414491653442,
0.12320923060178757,
0.2463238537311554,
0.0677722692489624,
0.36084139347076416,
0.24387583136558533,
-0.26737281680107117,
0.13591398298740387,
0.20806919038295746,
-0.3381926715373993,
0.1736794114112854,
-0.06966575980186462,
-0.09030653536319733,
0.09584024548530579,
0.3374694287776947,
-0.20360738039016724,
-0.4284021854400635,
-0.1300753951072693,
0.0168080385774374,
0.18459740281105042,
-0.24209202826023102,
-0.0957762748003006,
-0.4341878294944763,
-0.16209399700164795,
0.033219095319509506,
-0.326953649520874,
-0.2791883647441864,
-0.31707629561424255,
0.16742414236068726,
0.1384269744157791,
0.07819853723049164,
0.29584261775016785,
-0.022760014981031418,
0.22863340377807617,
-0.06956680864095688,
0.13973268866539001,
-0.3689507246017456,
-0.1740112155675888,
-0.2626216411590576,
0.13024087250232697,
0.1959652304649353,
-0.10943657159805298,
0.34787049889564514,
-0.3836723566055298,
0.09361004829406738,
-0.1401829868555069,
-0.45090213418006897,
0.28627437353134155,
-0.20106297731399536,
-0.05843280255794525,
0.35910794138908386,
0.05699008330702782,
0.13713377714157104,
-0.033469073474407196,
0.29581671953201294,
-0.036861222237348557,
-0.24233689904212952,
-0.016831835731863976,
0.082608163356781,
-0.09270606935024261,
-0.10530813038349152,
-0.09309280663728714,
-0.10024195164442062,
-0.28005221486091614,
0.4889943599700928,
-0.0636199489235878,
-0.07351581752300262,
-0.129999577999115,
0.25706368684768677,
0.12943270802497864,
-0.12845593690872192,
-0.1696057766675949,
-0.15813802182674408,
-0.4017581343650818,
0.20415739715099335,
-0.17726390063762665,
-0.22728990018367767,
0.35607096552848816,
0.19259455800056458,
0.33870404958724976,
-0.13432064652442932,
-0.5954018235206604,
-0.11859047412872314,
-0.25596240162849426,
0.24021223187446594,
-0.007755205035209656,
-0.035385288298130035,
0.17264258861541748,
0.14364506304264069,
-0.03978924825787544,
-0.171211838722229,
-0.19549131393432617,
0.10569774359464645,
-0.18160110712051392,
0.0484892912209034,
0.013182462193071842,
0.45509326457977295,
0.1729888617992401,
0.689365029335022,
0.604468584060669,
-0.21925966441631317,
0.2045963853597641,
0.03425199165940285,
0.5025172829627991,
0.012722402811050415,
-0.4039287567138672,
0.059436921030282974,
0.23538728058338165,
0.2129271924495697,
0.18238845467567444,
0.02330273576080799,
0.1955466866493225,
-0.13706853985786438,
0.020740117877721786,
-0.2785900831222534,
-0.4449172019958496,
-0.1720452606678009,
0.1250959187746048,
0.02331314980983734,
-0.007892193272709846,
0.04264957457780838,
-0.021468978375196457,
-0.027047932147979736,
0.08207467198371887,
0.4259909391403198,
-0.11651799827814102,
0.027621636167168617,
-0.445262610912323,
0.04195452108979225,
-0.16188165545463562,
0.29915639758110046,
-0.23568885028362274,
0.20730142295360565,
-0.05292578786611557,
0.21035820245742798,
0.22098125517368317,
-0.04889002442359924,
0.8133090734481812,
-0.05800994485616684,
-0.006038665771484375,
-0.07699526846408844,
-0.35636746883392334,
-0.17421290278434753,
0.13517023622989655,
-0.1006888821721077,
0.12760397791862488,
0.3212275505065918,
0.6672537326812744,
-0.3334786891937256,
-0.35447248816490173,
0.298358291387558,
-0.4209192991256714,
-0.13419342041015625,
-0.48293009400367737,
-0.08695751428604126,
-0.29102805256843567,
-0.2762880325317383,
0.025015152990818024,
-0.047459814697504044,
0.037313997745513916,
-0.04182665795087814,
-0.15968307852745056,
-0.17298589646816254,
-0.4171344041824341,
0.026048272848129272,
0.10852530598640442,
-0.075339674949646,
-0.09762831032276154,
0.23099330067634583,
0.3293191194534302,
0.2141464799642563,
0.5089461207389832,
0.594652533531189,
-0.017724327743053436,
-0.4563518762588501,
-0.007426632568240166,
-0.008707457222044468,
0.04001856595277786,
0.391357958316803,
-0.04454689472913742,
0.046260446310043335,
0.26749303936958313,
0.3627837300300598,
-0.09944316744804382,
0.18230782449245453,
0.46977105736732483,
-0.1827784925699234,
-0.13036814332008362,
-0.06627074629068375,
0.34355780482292175,
0.04287790134549141,
0.08466729521751404,
0.010106012225151062,
0.5729581713676453,
-0.28979673981666565,
0.1359274983406067,
0.055646274238824844,
0.8076465129852295,
0.19643914699554443,
0.0013912618160247803,
0.3161185383796692,
-0.41447150707244873,
0.6280925869941711,
-0.3110271692276001,
0.169797882437706,
-0.26061251759529114,
0.026075439527630806,
-0.16326108574867249,
-0.06839760392904282,
0.08318756520748138,
-0.029281288385391235,
-0.140371173620224,
0.12556642293930054,
0.1918848305940628,
0.31966090202331543,
0.03386836126446724,
0.2072926163673401,
-0.37066027522087097,
-0.049794476479291916,
-0.44411322474479675,
0.2055443674325943,
-0.04592183977365494,
0.26820892095565796,
-0.08063184469938278,
-0.4309389591217041,
-0.05645552650094032,
-0.19761782884597778,
-0.3132004737854004,
-0.07262922823429108,
-0.2165001630783081,
0.07025223970413208,
0.2712865471839905,
0.07861177623271942,
0.41305217146873474,
0.16836540400981903,
0.21400360763072968,
0.11025452613830566,
-0.2713437080383301,
0.3175237774848938,
-0.0948791578412056,
-0.0676863044500351,
-0.19212067127227783,
0.1333714723587036,
0.06892223656177521,
-0.07511227577924728,
-0.24313142895698547,
-0.05590396374464035,
-0.03512610122561455,
0.16643944382667542,
-0.23997762799263,
0.10288158059120178,
-0.10961587727069855,
-0.2548374533653259,
-0.09450265765190125,
-0.2482447326183319,
0.11680974066257477,
-0.15041151642799377,
0.1648126095533371,
-0.10577884316444397,
0.08483466506004333,
-0.04163995385169983,
0.13188663125038147,
-0.2025531530380249,
-0.03926932439208031,
0.5263850092887878,
-0.09904617816209793,
-0.010997949168086052,
0.3639305830001831,
0.06444226205348969,
-0.15607748925685883,
-0.2565704882144928,
0.141277015209198,
0.3393523693084717,
-0.6916915774345398,
0.14491097629070282,
0.20767368376255035,
-0.04439019411802292,
0.05623877793550491,
0.13181345164775848,
0.18957224488258362,
-0.06822928041219711,
0.12857453525066376,
-0.24826979637145996,
-0.14374327659606934,
0.33926600217819214,
-0.3277575671672821,
0.1264716237783432,
0.04619274288415909,
0.2968960404396057,
-0.058102987706661224,
0.050692275166511536,
-0.3748049736022949,
0.295030802488327,
-0.23895640671253204,
-0.21398945152759552,
-0.06539763510227203,
-0.23719525337219238,
0.17883285880088806,
0.07103070616722107,
0.12194640934467316,
0.33760517835617065,
-0.3448783755302429,
-0.20779672265052795,
-0.13272491097450256,
0.12239256501197815,
0.2383066713809967,
-0.1480216234922409,
0.08776333183050156,
-0.05177737772464752,
-0.25919923186302185,
0.0786595568060875,
0.07767045497894287,
0.22938475012779236,
0.05079364776611328,
0.02534373849630356,
0.04712233692407608,
-0.019034601747989655,
-0.15082883834838867,
-0.06478984653949738,
0.1917589008808136,
0.32462555170059204,
-0.0549146942794323,
-0.017418555915355682,
-0.12511977553367615,
0.026020541787147522,
0.17108598351478577,
0.2762613296508789,
0.4272899627685547,
-0.04545729607343674,
0.3090704083442688,
-0.3445994257926941,
-0.004173025488853455,
-0.012146572582423687,
0.33954280614852905,
0.12507294118404388,
-0.3091273605823517,
-0.11632750183343887,
0.2738710641860962,
0.23190651834011078,
-0.1694621443748474,
-0.031472016125917435,
0.4006604254245758,
0.13357079029083252,
0.0518634207546711,
0.07046226412057877,
0.13151995837688446,
-0.18282121419906616,
0.2804049253463745,
0.137202650308609,
0.4997771382331848,
0.10276544094085693,
0.15965233743190765,
0.11334900557994843,
-0.3571532964706421,
-0.00122031569480896,
0.23880572617053986,
0.17255833745002747,
0.4757575988769531,
0.2833652198314667,
-0.18136751651763916,
0.20977820456027985,
-0.35882246494293213,
0.22965748608112335,
0.13414523005485535,
-0.23706066608428955,
-0.15129077434539795,
0.17523805797100067,
-0.027123600244522095,
-0.05995047837495804,
-0.14646457135677338,
0.5642099380493164,
-0.09898564219474792,
0.004165802150964737,
-0.2932108938694,
0.4031734764575958,
-0.07798656821250916,
0.018122054636478424,
-0.3230385184288025,
-0.27294862270355225,
-0.48069635033607483,
0.15243779122829437,
-0.16137492656707764,
-0.1808079034090042,
-0.12309658527374268,
0.19111718237400055,
-0.2283623367547989,
-0.5351571440696716,
-0.09417622536420822,
0.1743788719177246,
0.10502784699201584,
-0.18919692933559418,
0.30379408597946167,
0.3347153961658478,
-0.11003802716732025,
0.3189077079296112,
0.28862521052360535,
0.40391799807548523,
0.10569867491722107,
0.22039511799812317,
-0.05398372933268547,
0.024306003004312515,
-0.09438870847225189,
0.03565414622426033,
0.20472657680511475,
0.11872393637895584,
-0.10480490326881409,
0.3180398643016815,
0.2174098938703537,
-0.24141116440296173,
-0.14669139683246613,
-0.02282204106450081,
0.30658286809921265,
-0.31923937797546387,
0.12322220206260681,
-0.5725876092910767,
0.05975410342216492,
-0.21319645643234253,
-0.30127450823783875,
-0.5181150436401367,
-0.023009732365608215,
-0.0677018016576767,
0.03460652008652687,
-0.003424433059990406,
-0.2636544406414032,
0.08590421080589294,
-0.11760278046131134,
0.29705116152763367,
0.27354130148887634,
-0.19373446702957153,
-0.029249243438243866,
-0.4962955117225647,
-0.37020593881607056,
0.20123058557510376,
-0.05528884008526802,
0.2515873610973358,
0.06461107730865479,
0.09595711529254913,
0.014105841517448425,
-0.2582935094833374,
0.08266176283359528,
0.24546147882938385,
0.03404834493994713,
0.09288112819194794,
-0.2526930570602417,
0.18420007824897766,
0.11244876682758331,
-0.1352398544549942,
0.08843657374382019,
-0.011216361075639725,
0.09335337579250336,
-0.05583571270108223,
0.07031257450580597,
-0.10078642517328262,
0.3049653172492981,
-0.34733617305755615,
-0.4508329927921295,
0.19050145149230957,
0.30084308981895447,
0.25888144969940186,
0.09786999970674515,
-0.08828973025083542,
-0.18558615446090698,
-0.24864499270915985,
-0.33554014563560486,
0.2986310124397278,
0.3025977909564972,
0.5556386709213257,
-0.14127933979034424,
-0.2347600907087326,
-0.32674354314804077,
0.04318733513355255,
0.035344190895557404,
-0.057091761380434036,
-0.277144193649292,
0.15602053701877594,
-0.3829606771469116,
0.09577994793653488,
0.3366628885269165,
0.3624776005744934,
0.011470820754766464,
0.14962618052959442,
-0.4121059775352478,
-0.3872264325618744,
0.3854230046272278,
-0.29183369874954224,
-0.19137021899223328,
0.317597359418869,
0.2175338715314865,
0.3165767192840576,
-0.3201451599597931,
-0.2703736424446106,
0.1883528232574463,
0.3671749532222748,
-0.12146607786417007,
0.047296810895204544,
0.20547626912593842,
0.22675690054893494,
-0.06167184188961983,
-0.08641760051250458,
0.12745067477226257,
0.4350470304489136,
-0.248864084482193,
0.3588826060295105,
-0.03732502833008766
] |
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_ | 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
| [
-0.11811712384223938,
-0.08623331040143967,
-0.10206471383571625,
0.35337501764297485,
0.058472007513046265,
-0.22175273299217224,
0.5019266605377197,
0.25943246483802795,
-0.08828498423099518,
0.018016092479228973,
-0.006201356649398804,
0.37329521775245667,
0.26952117681503296,
0.6419990658760071,
-0.40657833218574524,
0.32953953742980957,
0.17387226223945618,
0.4084326922893524,
0.26486122608184814,
-0.02258400246500969,
-0.14128011465072632,
-0.07968339323997498,
-0.29007530212402344,
0.09437789767980576,
-0.03334127366542816,
-0.0912868082523346,
0.05051935464143753,
-0.06080783158540726,
-0.038080327212810516,
-0.35071325302124023,
0.11596934497356415,
0.3345664441585541,
-0.08624257147312164,
0.3530385494232178,
-0.0001160288811661303,
0.055719271302223206,
0.3488473892211914,
0.1285376250743866,
-0.021710895001888275,
0.004194438457489014,
-0.5752316117286682,
-0.20773154497146606,
0.04545201361179352,
-0.18990159034729004,
-0.17654365301132202,
-0.23835742473602295,
-0.17332260310649872,
0.19690576195716858,
0.21524089574813843,
0.30299702286720276,
0.15822257101535797,
-0.07855738699436188,
0.11974909901618958,
0.46117809414863586,
-0.062161095440387726,
0.49012064933776855,
0.17672096192836761,
-0.004212729632854462,
-0.04772225022315979,
0.30582714080810547,
0.1696045994758606,
0.5389162302017212,
0.018535172566771507,
-0.003243725746870041,
-0.03414243459701538,
0.02747056633234024,
0.027759741991758347,
-0.14442767202854156,
0.37578144669532776,
0.14838343858718872,
0.3593917191028595,
-0.030201323330402374,
-0.26160064339637756,
0.06679891794919968,
0.09770547598600388,
-0.20292693376541138,
0.29050213098526,
0.1560537964105606,
-0.12431612610816956,
0.359689325094223,
-0.25092417001724243,
-0.010150683112442493,
-0.228795126080513,
0.02032908797264099,
-0.31540587544441223,
-0.14824870228767395,
-0.2015022188425064,
0.12438297271728516,
-0.2354082614183426,
-0.1747519075870514,
0.44666919112205505,
-0.13202233612537384,
-0.017339427024126053,
-0.03520791232585907,
0.058287087827920914,
-0.25742626190185547,
-0.24506640434265137,
0.3499371111392975,
-0.0006078872829675674,
0.09406585991382599,
-0.2581813335418701,
0.2758287489414215,
-0.19329141080379486,
-0.06559222936630249,
0.29864948987960815,
-0.1283637136220932,
0.03362204134464264,
0.29382452368736267,
0.3124309778213501,
-0.007265537511557341,
0.170362189412117,
-0.001737162470817566,
0.05509870871901512,
0.02165074646472931,
0.11741381883621216,
-0.16810160875320435,
0.1852191537618637,
-0.4083727300167084,
-0.7270360589027405,
0.14882290363311768,
-0.2696247100830078,
-0.05200985074043274,
0.014980729669332504,
0.09123886376619339,
0.14054086804389954,
0.2849352955818176,
0.22242633998394012,
0.21673044562339783,
-0.08161333948373795,
-0.3334619700908661,
-0.03891485556960106,
-0.12892086803913116,
-0.13602426648139954,
-0.5757230520248413,
-0.08679668605327606,
-0.42926299571990967,
0.09042589366436005,
0.1143326684832573,
0.01529000699520111,
-0.26802730560302734,
-0.0539805144071579,
-0.16534452140331268,
0.3228165805339813,
0.3727613687515259,
-0.35989946126937866,
-0.22877837717533112,
0.029709044843912125,
-0.17596417665481567,
0.2422911822795868,
0.3503221571445465,
-0.09776351600885391,
0.3750390112400055,
-0.25676092505455017,
0.14174385368824005,
-0.2091006189584732,
-0.06678005307912827,
0.030589640140533447,
0.13315549492835999,
0.07098636031150818,
-0.16345566511154175,
0.04995904862880707,
-0.32667362689971924,
-0.06424687802791595,
-0.08806253224611282,
0.3225022852420807,
0.5120552778244019,
-0.31222862005233765,
0.28233882784843445,
-0.4776820242404938,
-0.1930641531944275,
0.03123297542333603,
0.17807497084140778,
-0.016344286501407623,
0.17642547190189362,
-0.3715763986110687,
0.0071817487478256226,
-0.04017946869134903,
-0.5005767941474915,
-0.3982970118522644,
0.297503799200058,
-0.24362550675868988,
-0.12448970228433609,
0.15823698043823242,
0.05518601834774017,
-0.26248469948768616,
-0.20670966804027557,
-0.21998447179794312,
-0.2630407214164734,
0.18874165415763855,
0.053302086889743805,
-0.2523635923862457,
-0.2815755009651184,
0.24539409577846527,
-0.001330370083451271,
-0.013274382799863815,
0.058135293424129486,
0.14710430800914764,
-0.3499148190021515,
0.4927128553390503,
0.05976491421461105,
0.06087455153465271,
-0.13267956674098969,
0.1328187882900238,
-0.018750473856925964,
-0.041829437017440796,
0.12240377813577652,
0.12455794215202332,
-0.18657004833221436,
0.1530369520187378,
0.020642079412937164,
-0.42413759231567383,
-0.11777987331151962,
-0.29425689578056335,
0.1598501354455948,
-0.28730693459510803,
-0.473193496465683,
0.16235114634037018,
0.2609434723854065,
-0.31576237082481384,
-0.03959155082702637,
0.047357093542814255,
0.13999013602733612,
-0.25675350427627563,
0.02809153124690056,
0.01631215773522854,
0.04124753177165985,
0.01754373125731945,
0.2958175837993622,
-0.06557109951972961,
0.3530644178390503,
0.28479835391044617,
0.022110654041171074,
-0.03348603844642639,
0.4119998514652252,
0.19199109077453613,
0.0754779502749443,
0.21421456336975098,
-0.10728834569454193,
0.29500436782836914,
-0.6522093415260315,
0.003787679597735405,
0.35008707642555237,
0.14775227010250092,
0.10211151093244553,
-0.6314719915390015,
0.5215479731559753,
-0.26610875129699707,
0.0005152449011802673,
-0.4678952693939209,
0.1939544528722763,
0.20160244405269623,
-0.13121287524700165,
0.01175551488995552,
-0.32490283250808716,
-0.13693498075008392,
0.3543715178966522,
-0.13571318984031677,
0.2283755987882614,
-0.3471658527851105,
0.3244963586330414,
-0.3924728035926819,
-0.12303479015827179,
-0.017916470766067505,
-0.011877134442329407,
-0.15955644845962524,
0.021486490964889526,
0.33611980080604553,
0.5352346301078796,
0.2281631976366043,
0.22266621887683868,
-0.5004904270172119,
-0.02094637043774128,
-0.030485544353723526,
-0.03323692828416824,
0.3175588548183441,
0.18139764666557312,
-0.3712502419948578,
0.06517843902111053,
0.2632691562175751,
-0.04830268397927284,
-0.3099572956562042,
-0.20124666392803192,
0.06190658360719681,
0.15847676992416382,
-0.580908477306366,
-0.08605469018220901,
-0.17676536738872528,
-0.5030131936073303,
-0.023028124123811722,
0.1866065263748169,
0.15148526430130005,
0.006564108654856682,
-0.16595888137817383,
0.034077323973178864,
0.013614919036626816,
-0.024720801040530205,
-0.5353481769561768,
-0.006601497530937195,
-0.07425593584775925,
-0.03379688411951065,
-0.2604019045829773,
-0.02081301622092724,
-0.01754046604037285,
0.0941537469625473,
0.25891149044036865,
0.050773292779922485,
0.22127686440944672,
-0.28882572054862976,
-0.02565367892384529,
-0.24022206664085388,
-0.5222702622413635,
0.0011622346937656403,
-0.20347756147384644,
0.07217005640268326,
-0.022610150277614594,
0.08497071266174316,
0.013586122542619705,
0.15300670266151428,
-0.043694332242012024,
0.14015941321849823,
-0.17456449568271637,
-0.15021631121635437,
0.2632139325141907,
0.1309661567211151,
-0.015217037871479988,
-0.18886765837669373,
-0.08612003922462463,
0.020460985600948334,
0.06150124967098236,
0.09039510786533356,
-0.008703276515007019,
0.22765357792377472,
0.2916009724140167,
-0.030658472329378128,
0.28654786944389343,
-0.12770135700702667,
-0.4034530222415924,
-0.12980103492736816,
0.1693456470966339,
0.1868862807750702,
-0.3984123468399048,
-0.04905100539326668,
-0.036557938903570175,
0.047013528645038605,
0.12159760296344757,
-0.5084836483001709,
-0.29328829050064087,
0.011333550326526165,
0.13917222619056702,
0.007000528275966644,
-0.2526197135448456,
0.0435011200606823,
0.31571611762046814,
-0.06811156868934631,
-0.12168847769498825,
-0.2847071886062622,
-0.03363967686891556,
-0.23771202564239502,
0.1362663209438324,
0.22684597969055176,
0.10142599046230316,
-0.10957914590835571,
0.27826765179634094,
0.23051464557647705,
-0.0823633223772049,
0.09622465074062347,
-0.12389785796403885,
0.5780022144317627,
0.3901202082633972,
-0.2565912902355194,
0.15529151260852814,
0.24375012516975403,
-0.1366693377494812,
0.21822261810302734,
0.05855041369795799,
-0.042862869799137115,
-0.07834866642951965,
-0.1413000077009201,
-0.6188904047012329,
-0.09837062656879425,
-0.2252655327320099,
-0.24117979407310486,
0.09745393693447113,
0.07148289680480957,
0.2157042920589447,
-0.07787243276834488,
-0.43966713547706604,
-0.20715171098709106,
-0.08684620261192322,
-0.07729866355657578,
-0.18452559411525726,
-0.3193501830101013,
-0.37159156799316406,
-0.10796531289815903,
0.13985416293144226,
0.09148519486188889,
0.4452073276042938,
-0.04301895201206207,
0.21361491084098816,
0.5629717707633972,
-0.028640691190958023,
0.6245456337928772,
-0.32899367809295654,
0.24586893618106842,
0.08329905569553375,
0.006108403205871582,
-0.2252831757068634,
0.052767615765333176,
-0.2907237410545349,
0.2851673364639282,
-0.15261416137218475,
0.1796836405992508,
-0.1109565868973732,
-0.26475006341934204,
0.5003632307052612,
-0.3354767858982086,
-0.14957855641841888,
-0.05357034504413605,
-0.14630109071731567,
-0.22811686992645264,
-0.21131043136119843,
0.15982195734977722,
0.22666271030902863,
0.07977211475372314,
0.026765719056129456,
0.09942372143268585,
-0.13279269635677338,
0.14458835124969482,
0.015165895223617554,
0.1281009465456009,
0.20540094375610352,
0.054406799376010895,
-0.04314650967717171,
0.6870681047439575,
0.1915602684020996,
0.4928271770477295,
0.4154185950756073,
0.13518105447292328,
-0.035499513149261475,
-0.10347912460565567,
-0.4109160602092743,
0.22435086965560913,
0.24586540460586548,
0.022241346538066864,
-0.07511892169713974,
0.06955583393573761,
0.018972381949424744,
-0.04765671119093895,
-0.013354439288377762,
0.3027111887931824,
0.18536533415317535,
-0.09173865616321564,
-0.1790664941072464,
0.28936126828193665,
-0.18236438930034637,
-0.2645363211631775,
0.0225507952272892,
0.41134339570999146,
-0.047739043831825256,
0.3553931713104248,
0.4061354994773865,
0.865766704082489,
0.1466880738735199,
-0.08561679720878601,
-0.09006011486053467,
-0.6223448514938354,
0.4682404100894928,
-0.09071573615074158,
0.03591088950634003,
-0.21368740499019623,
0.1076318621635437,
-0.008796973153948784,
-0.03181672841310501,
-0.11348634213209152,
0.023988882079720497,
0.03917467221617699,
0.04340929165482521,
-0.15320898592472076,
-0.22052699327468872,
0.3908742070198059,
0.2681902050971985,
0.22718445956707,
0.1587093025445938,
0.12939992547035217,
0.08564804494380951,
-0.017122909426689148,
-0.058332379907369614,
-0.10060017555952072,
-0.18996824324131012,
-0.1407097727060318,
0.07094519585371017,
-0.278879851102829,
-0.001843273639678955,
-0.24824932217597961,
-0.023726601153612137,
0.024734195321798325,
-0.6326965689659119,
0.21421286463737488,
0.6613579988479614,
0.07912580668926239,
0.04582881182432175,
-0.24075376987457275,
0.28947213292121887,
0.154635488986969,
0.3618505299091339,
0.2268896847963333,
0.06239882856607437,
0.22148527204990387,
0.12109383195638657,
-0.30796703696250916,
-0.1259242594242096,
0.0232522115111351,
-0.22466036677360535,
-0.17605383694171906,
0.25651657581329346,
0.39684706926345825,
-0.1458512246608734,
0.4889814257621765,
-0.22604194283485413,
0.03265628591179848,
-0.19720673561096191,
0.06206761673092842,
0.18542301654815674,
0.05388008430600166,
0.1564381718635559,
0.37113338708877563,
-0.40392792224884033,
-0.07358412444591522,
0.538087785243988,
0.26007384061813354,
-0.08767981827259064,
0.6423012018203735,
-0.35935506224632263,
-0.07940054684877396,
-0.20075219869613647,
0.2439539134502411,
-0.2766095995903015,
0.005675062537193298,
-0.005331254564225674,
-0.21358922123908997,
-0.06330712139606476,
-0.10879071801900864,
-0.08844617009162903,
-0.08360666036605835,
0.048050038516521454,
-0.06047142297029495,
-0.571024477481842,
-0.2443845421075821,
-0.2515188455581665,
-0.21000845730304718,
0.0859001874923706,
0.09617029875516891,
0.02926257625222206,
0.11637464165687561,
-0.3691318929195404,
-0.24104729294776917,
0.1709415316581726,
-0.0763372853398323,
0.10131938755512238,
0.20747783780097961,
0.0701950192451477,
0.3784048557281494,
-0.06047055125236511,
0.15601611137390137,
0.006247170269489288,
0.026076719164848328,
-0.11529500037431717,
-0.031498730182647705,
0.15266989171504974,
0.27653390169143677,
-0.4939180314540863,
-0.18269944190979004,
-0.006872942671179771,
0.08246096968650818,
0.16641265153884888,
-0.2545918822288513,
-0.0057029761373996735,
0.08562716096639633,
-0.07777778804302216,
-0.34141167998313904,
-0.13204941153526306,
-0.2937389612197876,
-0.18664106726646423,
0.2401428371667862,
-0.07726731896400452,
0.09943556040525436,
0.224314346909523,
-0.11647924780845642,
-0.11025316268205643,
0.12432600557804108,
0.11531354486942291,
0.08140392601490021,
0.043613649904727936,
0.20428183674812317,
-0.19205887615680695,
0.19842171669006348,
0.1326814889907837,
0.43683046102523804,
-0.036816395819187164,
-0.41887977719306946,
-0.17465519905090332,
0.08566760271787643,
0.12208197265863419,
-0.21968765556812286,
0.1741986870765686,
0.2404281198978424,
-0.12919311225414276,
0.01603033021092415,
0.1553213894367218,
0.10377921164035797,
-0.1667996644973755,
0.1287413239479065,
0.12077803164720535,
0.2923479974269867,
-0.39176642894744873,
-0.3923703134059906,
0.2664717137813568,
-0.3895812928676605,
0.18538229167461395,
0.7389957904815674,
0.2274167388677597,
0.022340580821037292,
0.8837754726409912,
0.40495938062667847,
0.22509407997131348,
0.05890677869319916,
0.15220244228839874,
-0.25545448064804077,
-0.06321220844984055,
0.49913153052330017,
0.16164150834083557,
-0.04748344421386719,
-0.004095263779163361,
0.27095192670822144,
0.08086340129375458,
0.001807534135878086,
-0.016095345839858055,
0.038235120475292206,
-0.25931909680366516,
-0.2313995659351349,
-0.035675644874572754,
-0.40183907747268677,
-0.04703959450125694,
-0.12584827840328217,
0.00869685411453247,
-0.08024819195270538,
-0.20907361805438995,
0.21580079197883606,
0.33755481243133545,
-0.4575563073158264,
-0.5052697658538818,
0.0024012289941310883,
0.1136336624622345,
0.27131369709968567,
-0.43044406175613403,
0.16852732002735138,
0.02263277769088745,
0.06607838720083237,
0.7080217599868774,
0.4957628846168518,
0.45400190353393555,
0.009204654023051262,
0.0882667601108551,
-0.3145960867404938,
0.0501871332526207,
-0.039246805012226105,
-0.014417403377592564,
0.15169118344783783,
-0.005372986197471619,
0.5268940925598145,
0.1316785216331482,
0.13820578157901764,
-0.08851911127567291,
0.09416262805461884,
0.4579227566719055,
0.16777093708515167,
-0.3108186721801758,
0.046936288475990295,
-0.19732627272605896,
-0.4463413655757904,
-0.09412643313407898,
-0.45811572670936584,
0.14606907963752747,
0.19968955218791962,
0.24896860122680664,
-0.12093247473239899,
0.19437235593795776,
-0.152610182762146,
0.05607810616493225,
0.24424803256988525,
-0.03697529062628746,
0.641823410987854,
-0.17560330033302307,
-0.1975504755973816,
0.05325569212436676,
-0.5332154035568237,
0.11502046138048172,
0.20066264271736145,
-0.1642158031463623,
0.11324647814035416,
-0.08504187315702438,
-0.20673128962516785,
0.19587159156799316,
0.41851645708084106,
0.19224950671195984,
-0.02662712335586548,
0.26484519243240356,
-0.004034008830785751,
0.011197824031114578,
0.15689226984977722,
0.07826448231935501,
0.09261936694383621,
-0.2480563521385193,
0.48655104637145996,
-0.302170068025589,
0.11980236321687698,
0.043415918946266174,
0.023002788424491882,
-0.18926216661930084,
-0.23932793736457825,
0.26370006799697876,
0.20245090126991272,
0.5616201758384705,
0.05039233714342117,
0.048427313566207886,
-0.05391646549105644,
0.16711845993995667,
-0.5718779563903809,
0.6102503538131714,
0.08212476968765259,
0.13320526480674744,
-0.022980280220508575,
-0.27378126978874207,
0.22540952265262604,
0.17058135569095612,
-0.065744549036026,
0.012577589601278305,
-0.2799319922924042,
0.0316249281167984,
-0.2216324508190155,
-0.17453627288341522,
-0.13986745476722717,
0.03454145789146423,
-0.038148462772369385,
0.1565551906824112,
-0.5700502395629883,
-0.389257550239563,
0.016165047883987427,
-0.6984135508537292,
-0.0433647520840168,
0.17647843062877655,
0.35376739501953125,
-0.1832178235054016,
-0.08506231755018234,
-0.05606810003519058,
0.20016807317733765,
0.1725906878709793,
-0.30100736021995544,
-0.4249921143054962,
-0.15077224373817444,
-0.06331679224967957,
0.09639304876327515,
0.07634720206260681,
0.2972082495689392,
0.15721654891967773,
0.008487911894917488,
0.4108603596687317,
-0.04606913775205612
] |
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_ | 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! | [
-0.22150667011737823,
-0.1319754272699356,
-0.07619376480579376,
0.3510569930076599,
0.10179245471954346,
-0.28258123993873596,
0.42188581824302673,
0.26795342564582825,
-0.015597673133015633,
0.01566368341445923,
0.03597968816757202,
0.3285611867904663,
0.21663859486579895,
0.7738282680511475,
-0.24688801169395447,
0.26165634393692017,
0.24236899614334106,
0.3796512186527252,
0.2148457169532776,
-0.017873961478471756,
-0.1172729954123497,
-0.08067767322063446,
-0.24021519720554352,
0.05508659407496452,
-0.04032832384109497,
-0.11006099730730057,
0.08751225471496582,
0.0010095499455928802,
-0.0027570929378271103,
-0.2702222764492035,
0.10590887069702148,
0.3546574115753174,
0.03615294769406319,
0.3612307906150818,
-0.00011525124864419922,
0.007482282817363739,
0.29264456033706665,
0.07060977816581726,
-0.07089006155729294,
0.07966245710849762,
-0.5542481541633606,
-0.3019399642944336,
0.21915914118289948,
-0.14591668546199799,
-0.18968051671981812,
-0.1498250812292099,
-0.18717479705810547,
0.11119434237480164,
0.36743754148483276,
0.3626178503036499,
0.19568060338497162,
-0.012802699580788612,
0.02861693874001503,
0.37809062004089355,
-0.00413329154253006,
0.38149523735046387,
0.13129577040672302,
-0.04968280717730522,
-0.011106692254543304,
0.2771609425544739,
0.17589205503463745,
0.5624517202377319,
-0.008795728906989098,
-0.013622719794511795,
-0.05677834898233414,
-0.0049988878890872,
-0.014042876660823822,
-0.14750012755393982,
0.3541952967643738,
0.1461779773235321,
0.4088476896286011,
-0.07585834711790085,
-0.3047795593738556,
0.12815025448799133,
0.05150632560253143,
-0.22981786727905273,
0.32472920417785645,
0.10103876143693924,
-0.12990081310272217,
0.42888668179512024,
-0.1956232190132141,
-0.01067411620169878,
-0.11346136033535004,
-0.021284371614456177,
-0.2322193831205368,
-0.1203669011592865,
-0.12349310517311096,
0.014774680137634277,
-0.29534676671028137,
-0.28497785329818726,
0.5392900109291077,
-0.06872325390577316,
-0.03768773749470711,
0.0207071453332901,
0.015719100832939148,
-0.1973230391740799,
-0.07342884689569473,
0.29249414801597595,
0.01660306379199028,
0.20649531483650208,
-0.1943095624446869,
0.4492091238498688,
-0.1672605723142624,
-0.09476598352193832,
0.38164716958999634,
0.01316845417022705,
0.07631105184555054,
0.24332194030284882,
0.4060954451560974,
-0.0020629470236599445,
0.11393950879573822,
0.028366701677441597,
0.08849088102579117,
0.12627831101417542,
0.10415521264076233,
-0.18190321326255798,
0.22233207523822784,
-0.44630149006843567,
-0.648226797580719,
0.17837826907634735,
-0.239345520734787,
-0.15912306308746338,
0.012100430205464363,
0.11387938261032104,
0.15929019451141357,
0.1457560509443283,
0.20263147354125977,
0.23213204741477966,
-0.12138592451810837,
-0.32267090678215027,
-0.11904796212911606,
-0.17314693331718445,
-0.09641103446483612,
-0.45080530643463135,
-0.0650273859500885,
-0.48310863971710205,
0.14168569445610046,
0.02696451172232628,
0.021888859570026398,
-0.21393007040023804,
-0.04854639619588852,
-0.04335326328873634,
0.2719021737575531,
0.4052807092666626,
-0.29224854707717896,
-0.22900934517383575,
0.09585603326559067,
-0.22912436723709106,
0.21995821595191956,
0.23444396257400513,
0.034950513392686844,
0.16291670501232147,
-0.231066033244133,
0.15878356993198395,
-0.219443678855896,
-0.05642958730459213,
-0.07850825041532516,
0.1526786834001541,
0.04249512404203415,
-0.19581910967826843,
0.06736714392900467,
-0.330776572227478,
0.02792978659272194,
-0.05406222119927406,
0.31912145018577576,
0.5733440518379211,
-0.27211999893188477,
0.28586921095848083,
-0.4216625392436981,
-0.22139599919319153,
0.14928694069385529,
0.18117283284664154,
0.00790605042129755,
0.04767517000436783,
-0.36299023032188416,
-0.05191410705447197,
0.07375399768352509,
-0.4562278687953949,
-0.3589099943637848,
0.2895071804523468,
-0.2854394316673279,
-0.02964925952255726,
0.21346503496170044,
-0.05282604321837425,
-0.29412686824798584,
-0.18241991102695465,
-0.07290126383304596,
-0.2454461008310318,
0.2760186195373535,
0.08173027634620667,
-0.3475117087364197,
-0.2716447412967682,
0.17564710974693298,
-0.004118349403142929,
0.012393727898597717,
0.1283433884382248,
0.10871440172195435,
-0.4729256331920624,
0.6291264295578003,
0.061963845044374466,
0.07265415787696838,
-0.2479054182767868,
0.21684111654758453,
-0.056322574615478516,
0.024731500074267387,
0.042153432965278625,
0.16478213667869568,
-0.1688019335269928,
0.18075641989707947,
0.06121910363435745,
-0.3294374346733093,
-0.1703348308801651,
-0.20518091320991516,
0.1062128022313118,
-0.3558252155780792,
-0.4056520462036133,
0.15814106166362762,
0.17329561710357666,
-0.2861398756504059,
-0.0691739171743393,
-0.07084165513515472,
-0.028694389387965202,
-0.28466668725013733,
0.036646660417318344,
0.03354959934949875,
0.11903922259807587,
0.010596193373203278,
0.14765073359012604,
-0.06002939119935036,
0.3405560255050659,
0.2772964835166931,
0.05060442537069321,
-0.02009035460650921,
0.255935937166214,
0.19701163470745087,
-0.0739295482635498,
0.2084573209285736,
-0.0902533084154129,
0.25330850481987,
-0.5667425394058228,
0.056567709892988205,
0.40054476261138916,
0.07115728408098221,
0.10119409114122391,
-0.5045853853225708,
0.4164888262748718,
-0.14401912689208984,
-0.00010059773921966553,
-0.44349807500839233,
0.1840309500694275,
0.3697531819343567,
-0.01964443176984787,
0.10772721469402313,
-0.4065013825893402,
-0.030646760016679764,
0.45256322622299194,
-0.07503392547369003,
0.07637232542037964,
-0.4099489152431488,
0.5264102816581726,
-0.4284817576408386,
-0.057777728885412216,
0.10221461206674576,
-0.10345890372991562,
-0.17105954885482788,
-0.04589403420686722,
0.31505244970321655,
0.5065422058105469,
0.10197775810956955,
0.22395563125610352,
-0.45828911662101746,
-0.009843522682785988,
-0.00002632196992635727,
-0.1190420463681221,
0.3278721272945404,
0.2014152705669403,
-0.4237152934074402,
0.00892578437924385,
0.2630796730518341,
-0.09516292810440063,
-0.3796713054180145,
-0.2523961663246155,
-0.04999225586652756,
0.24088811874389648,
-0.6299213171005249,
-0.12421058118343353,
-0.20897231996059418,
-0.5786194205284119,
-0.06954675912857056,
0.31116586923599243,
0.17354784905910492,
-0.03272975981235504,
-0.14718042314052582,
0.0905386433005333,
-0.10918024182319641,
0.0057763149961829185,
-0.4000340700149536,
0.0035670697689056396,
-0.10548340529203415,
0.062159739434719086,
-0.26581984758377075,
-0.1172187402844429,
-0.006196599453687668,
0.11331850290298462,
0.25299251079559326,
0.1610698699951172,
0.12750500440597534,
-0.3233765959739685,
0.004175800830125809,
-0.35113781690597534,
-0.43454742431640625,
0.025863276794552803,
-0.14373184740543365,
0.16468222439289093,
-0.023224174976348877,
0.09777755290269852,
-0.0018171891570091248,
0.0940546840429306,
-0.10798653215169907,
0.1547381579875946,
-0.25911957025527954,
-0.1409911811351776,
0.2745021879673004,
0.15726011991500854,
0.013792168349027634,
-0.11776449531316757,
-0.09059236198663712,
-0.08680731058120728,
0.10341894626617432,
0.11511655151844025,
-0.021394357085227966,
0.14133352041244507,
0.206314355134964,
-0.03587501868605614,
0.2501889169216156,
-0.11143893748521805,
-0.44956326484680176,
-0.19378264248371124,
0.18926982581615448,
0.12894093990325928,
-0.41114044189453125,
-0.037864089012145996,
-0.12238285690546036,
-0.12034621834754944,
0.12070731073617935,
-0.38199383020401,
-0.4064083397388458,
0.05662503093481064,
0.07312192022800446,
0.14392679929733276,
-0.26867496967315674,
0.1670212298631668,
0.3597898483276367,
-0.07239164412021637,
-0.025209447368979454,
-0.3341613709926605,
-0.15306612849235535,
-0.2425658106803894,
0.09329196810722351,
0.10726315528154373,
0.15471887588500977,
-0.25035685300827026,
0.424206018447876,
0.2355363965034485,
0.031074387952685356,
0.14733654260635376,
-0.08833114057779312,
0.5341135859489441,
0.3344484865665436,
-0.22511449456214905,
0.007191029377281666,
0.11425533890724182,
-0.31108951568603516,
0.30444926023483276,
0.07338547706604004,
-0.11256397515535355,
-0.046371012926101685,
-0.1868550330400467,
-0.6318315267562866,
-0.15678110718727112,
-0.22926177084445953,
-0.18295727670192719,
0.1275213211774826,
0.17343604564666748,
0.36398378014564514,
-0.007037658244371414,
-0.3969060182571411,
-0.19806677103042603,
-0.03224508464336395,
-0.08721069246530533,
-0.2129165083169937,
-0.4164840281009674,
-0.4796118140220642,
-0.23399138450622559,
0.21566006541252136,
0.15975679457187653,
0.3588034212589264,
-0.042143553495407104,
0.036632195115089417,
0.4951933026313782,
-0.016574233770370483,
0.5209603309631348,
-0.5045452117919922,
0.2557544708251953,
0.10095083713531494,
-0.07928711175918579,
-0.1173742413520813,
-0.04668266326189041,
-0.3043433427810669,
0.18685759603977203,
-0.1094275712966919,
0.14644953608512878,
-0.04247669130563736,
-0.20032939314842224,
0.5263689756393433,
-0.32888221740722656,
-0.14879097044467926,
-0.031003810465335846,
-0.20438562333583832,
-0.30583587288856506,
-0.16274583339691162,
0.2615695297718048,
0.12833325564861298,
0.10217592120170593,
-0.07173961400985718,
0.137119859457016,
-0.1604836881160736,
0.1204097643494606,
-0.020593583583831787,
0.15301582217216492,
0.2954517900943756,
0.13470874726772308,
0.013978440314531326,
0.7199693918228149,
0.1648152470588684,
0.4285486042499542,
0.4644449055194855,
0.02577696554362774,
-0.07297475636005402,
-0.11930311471223831,
-0.3688511252403259,
0.2130729854106903,
0.28528890013694763,
0.01060324814170599,
0.003708764910697937,
0.07692784816026688,
-0.02801540493965149,
0.056270986795425415,
-0.12556803226470947,
0.17482760548591614,
0.2521708905696869,
-0.06809082627296448,
-0.2650461792945862,
0.3410606384277344,
-0.16711096465587616,
-0.31587207317352295,
-0.036087244749069214,
0.41799473762512207,
0.015125632286071777,
0.42771095037460327,
0.2860219478607178,
0.8921778798103333,
0.1904529184103012,
-0.07859547436237335,
0.00246586836874485,
-0.4925430417060852,
0.4056207537651062,
-0.014352530241012573,
0.14486052095890045,
-0.3022722899913788,
-0.019115932285785675,
0.013128241524100304,
-0.02001434564590454,
-0.17329978942871094,
-0.053197525441646576,
0.010108884423971176,
0.08600557595491409,
-0.26980337500572205,
-0.1842704564332962,
0.3800833225250244,
0.2251989245414734,
0.24724890291690826,
0.17171286046504974,
-0.03816418722271919,
0.08690271526575089,
-0.027282826602458954,
-0.061783578246831894,
-0.1081206351518631,
-0.095120370388031,
-0.013062790036201477,
0.03712873160839081,
-0.3495197892189026,
0.0334957018494606,
-0.06799483299255371,
0.04007592424750328,
0.04042428359389305,
-0.7616722583770752,
0.14844021201133728,
0.5553345084190369,
0.08293993026018143,
0.020246483385562897,
-0.24392923712730408,
0.2840982675552368,
0.2380094826221466,
0.2925197184085846,
0.21641211211681366,
0.11961089074611664,
0.20943056046962738,
0.11092875152826309,
-0.3086199164390564,
-0.13877573609352112,
-0.017470065504312515,
-0.2645832896232605,
-0.2956199049949646,
0.30115586519241333,
0.22482475638389587,
-0.20559634268283844,
0.5803418755531311,
-0.09117691218852997,
0.07626359164714813,
-0.3342965841293335,
0.07341017574071884,
0.2432202398777008,
0.10593100637197495,
0.16829511523246765,
0.401702880859375,
-0.3509048521518707,
-0.09172751009464264,
0.5730817914009094,
0.3340793550014496,
-0.1262741982936859,
0.6262458562850952,
-0.28304457664489746,
-0.13603204488754272,
-0.22502633929252625,
0.1404033601284027,
-0.24380309879779816,
0.16984063386917114,
0.12925170361995697,
-0.3282710015773773,
-0.1656794548034668,
0.003894726512953639,
0.075611412525177,
-0.07572153210639954,
-0.014021240174770355,
-0.1015724390745163,
-0.5114718675613403,
-0.21585269272327423,
-0.13452419638633728,
-0.11142350733280182,
0.07689300179481506,
0.06402906030416489,
-0.008320065215229988,
0.06770369410514832,
-0.328235387802124,
-0.2623017728328705,
0.11249537765979767,
-0.125230610370636,
0.017979703843593597,
0.2084702104330063,
0.03302372992038727,
0.37951675057411194,
-0.05939282476902008,
0.1403484046459198,
-0.013180240988731384,
-0.09296194463968277,
-0.14167654514312744,
0.03765435144305229,
0.13870777189731598,
0.22731563448905945,
-0.5061380863189697,
-0.11583513766527176,
0.05257444083690643,
0.18732215464115143,
0.06534050405025482,
-0.25824642181396484,
-0.007806908339262009,
0.08934883028268814,
-0.2507644593715668,
-0.22483988106250763,
-0.08931715041399002,
-0.3166555166244507,
-0.11576607823371887,
0.24778151512145996,
-0.09771232306957245,
0.1088983565568924,
0.1016598641872406,
-0.12508384883403778,
-0.1835590898990631,
0.33291393518447876,
0.11084040999412537,
0.19868245720863342,
0.22715461254119873,
0.12710267305374146,
-0.20029740035533905,
0.06278234720230103,
0.11048425734043121,
0.40584778785705566,
0.06802863627672195,
-0.34509193897247314,
-0.21953830122947693,
0.1217772513628006,
0.15158630907535553,
-0.2863912880420685,
0.15812860429286957,
0.23020219802856445,
-0.012953241355717182,
0.027650516480207443,
0.12117894738912582,
0.07485049962997437,
-0.26003190875053406,
0.2414143681526184,
0.18616318702697754,
0.3254060447216034,
-0.32166457176208496,
-0.3555962145328522,
-0.012339409440755844,
-0.44604435563087463,
0.1485040783882141,
0.6812843680381775,
0.0957956612110138,
0.12912361323833466,
0.9054867029190063,
0.3667474687099457,
0.2343442589044571,
0.07647807896137238,
0.19498535990715027,
-0.27627626061439514,
-0.17210501432418823,
0.47435346245765686,
0.031529299914836884,
-0.14552080631256104,
-0.025793977081775665,
0.27774137258529663,
0.13383659720420837,
-0.05953441932797432,
0.0712553933262825,
-0.05399307608604431,
-0.2675832509994507,
-0.2629256248474121,
-0.02711925283074379,
-0.2996973991394043,
-0.07797952741384506,
0.03004668653011322,
0.03348409757018089,
-0.10183882713317871,
-0.13706624507904053,
0.25161170959472656,
0.1608138382434845,
-0.4252628684043884,
-0.4400091767311096,
0.08849892020225525,
0.02321687340736389,
0.3024086356163025,
-0.3973819315433502,
0.1952427327632904,
0.08542420715093613,
0.0602116696536541,
0.6579378247261047,
0.5068610310554504,
0.425664484500885,
-0.022910751402378082,
0.0620882585644722,
-0.3397858142852783,
-0.013541333377361298,
-0.045513004064559937,
-0.07847226411104202,
0.10088036954402924,
-0.01746908575296402,
0.5307227373123169,
0.13426323235034943,
0.15194876492023468,
-0.09645630419254303,
0.08244475722312927,
0.4682708978652954,
0.18968640267848969,
-0.2506565749645233,
0.10712401568889618,
-0.23665004968643188,
-0.3948690891265869,
-0.06440778076648712,
-0.4873690903186798,
0.138412743806839,
0.23867441713809967,
0.2970144748687744,
-0.04088740050792694,
0.1559610366821289,
-0.1433255970478058,
0.07009725272655487,
0.3219558000564575,
0.04825178533792496,
0.6135380268096924,
-0.11065932363271713,
-0.18446195125579834,
0.047222524881362915,
-0.5902335047721863,
0.18703696131706238,
0.09763355553150177,
-0.12027053534984589,
0.04866873845458031,
0.0246258657425642,
-0.19042691588401794,
0.2043498009443283,
0.33557868003845215,
0.29613399505615234,
-0.08623534440994263,
0.1862926334142685,
-0.1289638727903366,
0.07440844178199768,
0.13264739513397217,
-0.011671483516693115,
0.1071823239326477,
-0.3105272352695465,
0.5669761896133423,
-0.3917330503463745,
0.15082797408103943,
0.08045840263366699,
-0.05458199605345726,
-0.1269121766090393,
-0.41453251242637634,
0.35288864374160767,
0.17730668187141418,
0.6444275379180908,
0.14286693930625916,
0.06530199944972992,
-0.10908456146717072,
0.059842195361852646,
-0.4733499586582184,
0.7054581046104431,
0.13401034474372864,
0.11526167392730713,
0.013971719890832901,
-0.14179225265979767,
0.3113030791282654,
0.3424590528011322,
-0.06712906062602997,
0.08553985506296158,
-0.2556830942630768,
0.06639482080936432,
-0.2287570834159851,
-0.21422992646694183,
-0.16946618258953094,
0.03923439979553223,
-0.0790976732969284,
0.07263358682394028,
-0.5132828950881958,
-0.36609095335006714,
0.08303530514240265,
-0.7213978171348572,
-0.0927918553352356,
-0.06888037174940109,
0.3763675391674042,
-0.0995820090174675,
-0.1576157510280609,
-0.07234889268875122,
0.10293056815862656,
0.10945326089859009,
-0.3103836178779602,
-0.3424268364906311,
-0.09438195824623108,
-0.06002349033951759,
0.028598729521036148,
-0.02107211947441101,
0.18354931473731995,
0.1660812497138977,
-0.0626102089881897,
0.28459250926971436,
-0.04359879344701767
] |
https://github.com/huggingface/datasets/issues/4592 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test | Hi @faizankshaikh
Please note that we have recently launched the Community feature, specifically targeted to create Discussions (about issues/questions/asking-for-help) on each Dataset on the Hub:
- Blog post: https://huggingface.co/blog/community-update
- Docs: https://huggingface.co/docs/hub/repositories-pull-requests-discussions
The Discussion tab for your "jalFaizy/detect_chess_pieces" dataset is here: https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions
You can use it to ask for help by pinging the Datasets maintainers: see our docs here: https://huggingface.co/docs/datasets/master/en/share#ask-for-a-help-and-reviews
I'm transferring this discussion to your Discussion tab and trying to address it: https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/1 | ### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py)
When I run the command
`$ datasets-cli test "D:\workspace\HF\detect_chess_pieces" --save_infos --all_configs`
It gives the following error
```
Using custom data configuration default
Traceback (most recent call last):
File "c:\users\faiza\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\faiza\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\faiza\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 7, in <module>
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 132, in run
for j, builder in enumerate(get_builders()):
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 125, in get_builders
yield builder_cls(
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 1148, in __init__
super().__init__(*args, **kwargs)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 306, in __init__
info = self.get_exported_dataset_info()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 405, in get_exported_dataset_info
return self.get_all_exported_dataset_infos().get(self.config.name, DatasetInfo())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 390, in get_all_exported_dataset_infos
return DatasetInfosDict.from_directory(cls.get_imported_module_dir())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 309, in from_directory
dataset_infos_dict = {
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 310, in <dictcomp>
config_name: DatasetInfo.from_dict(dataset_info_dict)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 272, in from_dict
return cls(**{k: v for k, v in dataset_info_dict.items() if k in field_names})
File "<string>", line 20, in __init__
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 160, in __post_init__
templates = [
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 161, in <listcomp>
template if isinstance(template, TaskTemplate) else task_template_from_dict(template)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\tasks\__init__.py", line 43, in task_template_from_dict
return template.from_dict(task_template_dict)
AttributeError: 'NoneType' object has no attribute 'from_dict'
```
My assumption is that there is some kind of issue in how the "task_templates" are read, because even if I keep them as None, or not include the argument at all, the same error occurs
### Owner
Yes | 74 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py)
When I run the command
`$ datasets-cli test "D:\workspace\HF\detect_chess_pieces" --save_infos --all_configs`
It gives the following error
```
Using custom data configuration default
Traceback (most recent call last):
File "c:\users\faiza\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\faiza\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\faiza\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 7, in <module>
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 132, in run
for j, builder in enumerate(get_builders()):
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 125, in get_builders
yield builder_cls(
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 1148, in __init__
super().__init__(*args, **kwargs)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 306, in __init__
info = self.get_exported_dataset_info()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 405, in get_exported_dataset_info
return self.get_all_exported_dataset_infos().get(self.config.name, DatasetInfo())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 390, in get_all_exported_dataset_infos
return DatasetInfosDict.from_directory(cls.get_imported_module_dir())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 309, in from_directory
dataset_infos_dict = {
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 310, in <dictcomp>
config_name: DatasetInfo.from_dict(dataset_info_dict)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 272, in from_dict
return cls(**{k: v for k, v in dataset_info_dict.items() if k in field_names})
File "<string>", line 20, in __init__
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 160, in __post_init__
templates = [
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 161, in <listcomp>
template if isinstance(template, TaskTemplate) else task_template_from_dict(template)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\tasks\__init__.py", line 43, in task_template_from_dict
return template.from_dict(task_template_dict)
AttributeError: 'NoneType' object has no attribute 'from_dict'
```
My assumption is that there is some kind of issue in how the "task_templates" are read, because even if I keep them as None, or not include the argument at all, the same error occurs
### Owner
Yes
Hi @faizankshaikh
Please note that we have recently launched the Community feature, specifically targeted to create Discussions (about issues/questions/asking-for-help) on each Dataset on the Hub:
- Blog post: https://huggingface.co/blog/community-update
- Docs: https://huggingface.co/docs/hub/repositories-pull-requests-discussions
The Discussion tab for your "jalFaizy/detect_chess_pieces" dataset is here: https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions
You can use it to ask for help by pinging the Datasets maintainers: see our docs here: https://huggingface.co/docs/datasets/master/en/share#ask-for-a-help-and-reviews
I'm transferring this discussion to your Discussion tab and trying to address it: https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/discussions/1 | [
-0.32051923871040344,
0.07623693346977234,
0.006530933082103729,
0.5506225228309631,
0.24864014983177185,
-0.1461583971977234,
0.5403976440429688,
0.4607197642326355,
0.33619260787963867,
0.08060021698474884,
0.06632126867771149,
0.05398640036582947,
-0.29010137915611267,
0.12756526470184326,
-0.07348431646823883,
0.35375088453292847,
0.03892479091882706,
0.3511612117290497,
0.05809911713004112,
0.08292016386985779,
-0.21847575902938843,
0.24397945404052734,
-0.0987199991941452,
0.23649826645851135,
-0.13992266356945038,
0.14740121364593506,
0.23779550194740295,
0.29824966192245483,
-0.24360154569149017,
-0.3514796197414398,
0.414608895778656,
0.09527888894081116,
0.14651329815387726,
0.6180729866027832,
-0.00012475311814341694,
0.0941963791847229,
0.221300408244133,
-0.31040334701538086,
-0.45048972964286804,
-0.0046192556619644165,
-0.4284096360206604,
-0.2628023624420166,
0.13278985023498535,
-0.3596540093421936,
-0.03870303928852081,
-0.03404340147972107,
-0.3397221565246582,
-0.2985023260116577,
0.12166569381952286,
0.3706977963447571,
0.1310710608959198,
0.051983654499053955,
-0.25376448035240173,
-0.07789336144924164,
0.24499726295471191,
0.14408966898918152,
-0.14924655854701996,
0.054337333887815475,
0.4759850800037384,
0.15701645612716675,
0.13059791922569275,
0.15429262816905975,
-0.10870818048715591,
0.025092337280511856,
0.07113444805145264,
-0.058859050273895264,
0.35493195056915283,
0.04183468595147133,
0.09549437463283539,
0.1164746880531311,
0.34274402260780334,
-0.6524118781089783,
-0.09564100205898285,
-0.5012494325637817,
0.17879603803157806,
-0.22757606208324432,
0.22224360704421997,
0.06929777562618256,
-0.30061760544776917,
-0.03537953272461891,
0.011258539743721485,
0.07333434373140335,
-0.02670910581946373,
-0.11405766010284424,
0.09866741299629211,
0.08044818788766861,
-0.11715486645698547,
0.2007875144481659,
0.13330459594726562,
-0.19872382283210754,
0.15525871515274048,
-0.236805260181427,
-0.2773144543170929,
0.25258520245552063,
-0.5357624888420105,
-0.18501178920269012,
-0.13854756951332092,
0.22509902715682983,
0.35902222990989685,
0.12975019216537476,
0.24045652151107788,
0.08318580687046051,
0.033300746232271194,
0.2975781261920929,
0.21089960634708405,
0.33525413274765015,
0.20526090264320374,
0.17975983023643494,
0.19736547768115997,
0.55144202709198,
-0.07078950852155685,
-0.06335636973381042,
-0.06401742249727249,
-0.45530232787132263,
0.14043109118938446,
0.029669824987649918,
0.18469402194023132,
-0.3377807140350342,
-0.3036462068557739,
0.23240752518177032,
-0.010538540780544281,
-0.1206267699599266,
0.5332759022712708,
0.48818615078926086,
0.07240427285432816,
0.12157250195741653,
-0.08919677138328552,
0.1560031920671463,
-0.043857231736183167,
-0.2271036058664322,
-0.13550910353660583,
0.006617162376642227,
-0.18417476117610931,
-0.12418022006750107,
0.44769176840782166,
0.008443114347755909,
0.2593049705028534,
-0.010449708439409733,
0.40574973821640015,
-0.03455686196684837,
0.020965909585356712,
-0.21209169924259186,
-0.00022014230489730835,
0.20180046558380127,
-0.21297550201416016,
-0.020030051469802856,
0.19702930748462677,
-0.29609549045562744,
-0.29735979437828064,
0.24210426211357117,
-0.12378057092428207,
-0.4547276198863983,
0.270067423582077,
0.000914430245757103,
-0.3708123564720154,
0.1697995513677597,
-0.016902528703212738,
-0.03909948095679283,
0.0306989923119545,
-0.24737989902496338,
0.07091633975505829,
-0.2223970741033554,
0.18032534420490265,
-0.23424537479877472,
0.40536126494407654,
0.5238663554191589,
-0.6002221703529358,
-0.037894874811172485,
-0.13032987713813782,
-0.31335753202438354,
0.031356170773506165,
-0.09665131568908691,
-0.18398132920265198,
0.3622591495513916,
-0.39651742577552795,
-0.1397286206483841,
0.4793086051940918,
-0.16198261082172394,
-0.33518555760383606,
0.13514716923236847,
0.02244710922241211,
0.27393558621406555,
0.29374462366104126,
0.07425922155380249,
-0.07168170064687729,
-0.18433089554309845,
-0.2892515957355499,
0.14657214283943176,
0.010036787018179893,
0.13258157670497894,
-0.020977983251214027,
-0.14982067048549652,
-0.043151721358299255,
0.26719218492507935,
0.08194997906684875,
-0.16321420669555664,
0.18170541524887085,
-0.17405541241168976,
0.13195328414440155,
-0.14119890332221985,
0.32469144463539124,
-0.2184852808713913,
0.0765376016497612,
0.020986132323741913,
0.1374235600233078,
0.1430787444114685,
-0.324010968208313,
0.49853459000587463,
-0.1421695053577423,
0.04648096486926079,
-0.5054439902305603,
0.058061517775058746,
-0.40625712275505066,
0.3108966648578644,
-0.5153334140777588,
-0.25197234749794006,
0.07350725680589676,
0.2457633912563324,
-0.022131893783807755,
-0.19923490285873413,
-0.08504834026098251,
0.5004076361656189,
-0.12424556910991669,
0.07275115698575974,
-0.20328417420387268,
0.20841175317764282,
-0.0191288311034441,
-0.13752587139606476,
-0.23781748116016388,
0.26636871695518494,
0.005584821105003357,
-0.13300123810768127,
-0.2015005350112915,
0.45290836691856384,
0.21842767298221588,
0.027141496539115906,
0.47174838185310364,
0.1696910262107849,
-0.15848156809806824,
0.2326529324054718,
0.4260720908641815,
0.14667290449142456,
0.1975775808095932,
-0.13490858674049377,
-0.025348976254463196,
0.35373014211654663,
0.13168969750404358,
0.472555935382843,
-0.04939940571784973,
-0.08860960602760315,
0.3841847777366638,
0.005359414964914322,
-0.051326945424079895,
-0.30766230821609497,
-0.020399387925863266,
0.16769316792488098,
0.07339058816432953,
0.055132534354925156,
-0.5193963050842285,
-0.27048343420028687,
0.26207292079925537,
-0.08031926304101944,
0.016019389033317566,
0.28594499826431274,
0.05486045405268669,
0.06191504746675491,
0.22253187000751495,
0.37299197912216187,
0.566317617893219,
0.03071000427007675,
-0.4098368287086487,
0.07293795794248581,
0.1282108575105667,
-0.05009385570883751,
0.2724837064743042,
-0.13644486665725708,
0.34301576018333435,
0.27582836151123047,
-0.05766382813453674,
-0.18148750066757202,
-0.03500432148575783,
-0.17337380349636078,
-0.03251896798610687,
0.32865533232688904,
-0.39762359857559204,
-0.020514070987701416,
-0.09243548661470413,
-0.11190098524093628,
-0.2464662492275238,
-0.011382500641047955,
-0.23706886172294617,
-0.13073302805423737,
-0.06341294199228287,
-0.06344683468341827,
0.12351389229297638,
0.03399345651268959,
-0.28453636169433594,
0.5013405084609985,
0.11966708302497864,
-0.5546419024467468,
-0.3336203098297119,
-0.17710644006729126,
-0.23757734894752502,
-0.04443475604057312,
0.38156354427337646,
0.23648425936698914,
0.17192085087299347,
-0.18156178295612335,
0.0840064287185669,
-0.3375745117664337,
-0.23069888353347778,
0.23739232122898102,
-0.092890664935112,
0.3575817048549652,
0.415524423122406,
0.16889852285385132,
0.1527276635169983,
-0.11339083313941956,
0.3709629774093628,
-0.0381125770509243,
-0.07181984931230545,
0.41576674580574036,
-0.08977638185024261,
-0.013367733918130398,
0.014077827334403992,
-0.07171357423067093,
-0.21490027010440826,
-0.23700815439224243,
0.19582417607307434,
0.446508526802063,
0.1785842925310135,
-0.008553355000913143,
0.27073144912719727,
-0.019445447251200676,
-0.02267288975417614,
0.1811113804578781,
-0.1078321635723114,
-0.6051468849182129,
0.132027730345726,
-0.30546748638153076,
-0.13715703785419464,
0.00303669273853302,
0.08250079303979874,
0.37851855158805847,
-0.10126200318336487,
-0.4493061900138855,
0.18969447910785675,
-0.16153192520141602,
0.12843453884124756,
0.06484057009220123,
-0.0723060667514801,
0.3317996859550476,
0.18205605447292328,
0.15230104327201843,
-0.36154595017433167,
-0.3591286838054657,
0.2913345396518707,
-0.24051275849342346,
0.49065300822257996,
0.17342734336853027,
0.16632914543151855,
0.0073251985013484955,
0.12070728838443756,
0.2479703426361084,
-0.20932219922542572,
0.25588059425354004,
0.045819781720638275,
0.36365896463394165,
-0.3258056342601776,
-0.2786300480365753,
0.07990596443414688,
0.20873406529426575,
-0.21735168993473053,
0.2724342346191406,
0.01866994798183441,
0.036658257246017456,
-0.41352149844169617,
0.21642620861530304,
-0.2312888503074646,
-0.3340770900249481,
0.06481118500232697,
-0.29859355092048645,
0.010274305939674377,
-0.08132046461105347,
-0.12152045965194702,
-0.35243427753448486,
0.09156065434217453,
-0.04602311551570892,
0.37672239542007446,
-0.0921054407954216,
0.025860868394374847,
-0.0775781199336052,
-0.003704835893586278,
-0.3207382559776306,
0.3552931249141693,
-0.2877994775772095,
0.3520880937576294,
-0.06881687790155411,
-0.1286090612411499,
0.0970727950334549,
-0.2485692948102951,
0.4859718084335327,
-0.41034960746765137,
0.1053173691034317,
0.25289756059646606,
0.33201152086257935,
-0.38315656781196594,
-0.22102069854736328,
-0.17885085940361023,
0.18810148537158966,
0.29236939549446106,
0.5435680150985718,
-0.2652815878391266,
-0.32773569226264954,
0.20334872603416443,
0.18574915826320648,
-0.14468471705913544,
-0.38922008872032166,
-0.23657259345054626,
-0.047280535101890564,
-0.6017162203788757,
-0.05306611210107803,
-0.21381697058677673,
0.3422486484050751,
0.0025268513709306717,
-0.00011113286018371582,
0.208974227309227,
-0.06986956298351288,
0.13103854656219482,
0.2518918216228485,
0.2601669728755951,
0.18274709582328796,
0.3102791905403137,
0.0642445832490921,
0.182492196559906,
0.09517031908035278,
0.5300078392028809,
-0.09464965760707855,
-0.2783205211162567,
-0.16840147972106934,
-0.022871412336826324,
0.2652978003025055,
0.230045884847641,
-0.26491034030914307,
0.070248082280159,
-0.5421493053436279,
0.2066524624824524,
-0.012910894118249416,
0.1270260512828827,
0.3200940191745758,
0.059975892305374146,
-0.4467816650867462,
-0.46947145462036133,
0.10404200851917267,
-0.07892203330993652,
-0.13578613102436066,
0.2045159935951233,
-0.16259895265102386,
-0.3225914537906647,
0.09897579997777939,
0.29905542731285095,
0.8561326861381531,
-0.030489444732666016,
-0.039774198085069656,
0.3781448006629944,
-0.2362307757139206,
0.024007881060242653,
-0.18841473758220673,
-0.24552656710147858,
-0.40438446402549744,
-0.058683887124061584,
0.027557166293263435,
-0.24144698679447174,
0.43587198853492737,
0.08935777097940445,
-0.13173502683639526,
0.1425957828760147,
-0.2798214256763458,
0.09471824765205383,
0.010283460840582848,
0.19406969845294952,
-0.24058282375335693,
-0.346085786819458,
-0.19373254477977753,
0.11460961401462555,
-0.1157957911491394,
0.00822983868420124,
-0.1708453893661499,
0.02275799587368965,
-0.36009955406188965,
-0.2841057777404785,
-0.0901079773902893,
0.13263878226280212,
-0.11296207457780838,
0.017646996304392815,
-0.24742022156715393,
-0.42791950702667236,
0.19414497911930084,
0.3614218533039093,
0.41382622718811035,
0.2088329792022705,
-0.09531593322753906,
0.3079235255718231,
-0.028234519064426422,
0.06256028264760971,
0.02869017794728279,
-0.030969683080911636,
0.2021808922290802,
0.029240623116493225,
-0.38409900665283203,
-0.2186145782470703,
-0.22160416841506958,
-0.3296459913253784,
0.29719945788383484,
-0.12803314626216888,
0.19100849330425262,
-0.2575978934764862,
-0.38656267523765564,
-0.2386561930179596,
-0.12746892869472504,
-0.03516223654150963,
0.09281626343727112,
0.12804175913333893,
-0.18380464613437653,
0.26511332392692566,
-0.5486037731170654,
-0.2521502375602722,
-0.12556420266628265,
0.09859845042228699,
-0.09361083060503006,
-0.007415469735860825,
0.38507452607154846,
0.09121657907962799,
0.00030935928225517273,
-0.17350482940673828,
0.05619746446609497,
0.4675479829311371,
-0.3279854655265808,
0.006409360561519861,
0.10742256045341492,
-0.21092331409454346,
0.1081646978855133,
0.2644568979740143,
0.18349817395210266,
0.029115863144397736,
0.21206332743167877,
-0.7256148457527161,
-0.48346349596977234,
0.03802509978413582,
-0.1252516657114029,
0.20988410711288452,
0.0063149407505989075,
0.05650906264781952,
0.03600696474313736,
-0.19821645319461823,
-0.20698538422584534,
0.046791933476924896,
-0.14388321340084076,
0.08245716989040375,
0.4504835903644562,
0.20730265974998474,
0.2226894348859787,
0.07299171388149261,
0.018387554213404655,
0.10717153549194336,
-0.24519702792167664,
-0.12079112976789474,
0.042506035417318344,
0.193451389670372,
0.08088193088769913,
0.040005624294281006,
-0.1052289754152298,
-0.2068244069814682,
-0.11195608973503113,
-0.2931424677371979,
0.09000346064567566,
-0.007077749818563461,
-0.12018243968486786,
-0.02920880913734436,
0.2477843165397644,
0.009546961635351181,
-0.13399061560630798,
0.015154924243688583,
-0.04368671774864197,
0.05545705184340477,
-0.023488061502575874,
0.1754908412694931,
-0.36206623911857605,
-0.11961141228675842,
0.011086872778832912,
0.2806141972541809,
-0.06124614179134369,
0.34878891706466675,
0.4772351086139679,
-0.15238089859485626,
0.25020456314086914,
0.25661659240722656,
0.4559646248817444,
0.2577875554561615,
-0.34235715866088867,
0.01477721519768238,
0.27323079109191895,
0.08076129853725433,
-0.33228799700737,
-0.12110153585672379,
0.2659243643283844,
-0.17235229909420013,
-0.07350189238786697,
0.33288246393203735,
0.32769033312797546,
-0.024869266897439957,
0.008582599461078644,
-0.03837491571903229,
0.23046734929084778,
0.11451899260282516,
0.12417528033256531,
0.7828136086463928,
-0.2638528347015381,
-0.03717672452330589,
0.3927065432071686,
0.17851483821868896,
0.11747816950082779,
0.5954545140266418,
-0.4919193387031555,
0.2631476819515228,
0.018874114379286766,
0.07796373963356018,
-0.17694991827011108,
-0.584636926651001,
0.6327646374702454,
0.22542613744735718,
0.02150137722492218,
-0.19050902128219604,
-0.00006163865327835083,
0.6631759405136108,
-0.06211109086871147,
0.0986061692237854,
-0.2812601923942566,
0.013054128736257553,
-0.028724849224090576,
0.2536455988883972,
-0.22887344658374786,
-0.2938031852245331,
-0.11526614427566528,
-0.30523449182510376,
-0.04370785877108574,
-0.18823347985744476,
-0.2105954885482788,
-0.008851006627082825,
-0.19002480804920197,
-0.25102487206459045,
0.11481023579835892,
0.18130823969841003,
-0.04637404531240463,
-0.3543022572994232,
0.2501092255115509,
0.1998424232006073,
0.04083739221096039,
0.27054738998413086,
0.07222844660282135,
0.4468074142932892,
0.5378345251083374,
0.19721777737140656,
0.04386909678578377,
-0.04516012594103813,
-0.03825833648443222,
-0.1698778122663498,
0.09007903933525085,
0.08892807364463806,
0.11402598023414612,
0.3672754764556885,
0.077504463493824,
-0.03319753333926201,
-0.22699658572673798,
0.28819289803504944,
0.29876959323883057,
-0.026637231931090355,
0.14941994845867157,
0.1433524191379547,
-0.07388234883546829,
-0.1966937929391861,
0.04575514420866966,
-0.40236565470695496,
-0.07018544524908066,
0.06386390328407288,
0.06479667872190475,
0.2850821614265442,
-0.12411228567361832,
0.03324264660477638,
0.04512043297290802,
0.3705785274505615,
-0.3131568431854248,
-0.2926926910877228,
-0.3578835129737854,
-0.4539346694946289,
-0.8173182010650635,
-0.021330080926418304,
0.1849285066127777,
-0.005503565073013306,
0.12279161065816879,
-0.04645815119147301,
-0.06848915666341782,
-0.14485786855220795,
0.24357369542121887,
0.09360624849796295,
0.299993634223938,
0.12964051961898804,
-0.10331588983535767,
-0.2593133747577667,
0.08444035053253174,
0.02883211150765419,
0.1357649862766266,
-0.2427157759666443,
0.1201440691947937,
0.05288643762469292,
0.02517857402563095,
-0.05018971860408783,
0.09732107818126678,
0.12307178974151611,
-0.2979791760444641,
0.5932875871658325,
-0.029301395639777184,
0.6812338829040527,
-0.02270045131444931,
0.15160317718982697,
-0.4088020324707031,
-0.03165549412369728,
-0.08650680631399155,
0.18789276480674744,
-0.1388249695301056,
0.3380846083164215,
-0.10129892081022263,
0.03506659343838692,
-0.43198513984680176,
-0.22239363193511963,
0.024590641260147095,
-0.2584227919578552,
-0.2911706268787384,
-0.09660089015960693,
-0.10436198115348816,
0.3252016007900238,
-0.04891491308808327,
0.04626602679491043,
0.0061880722641944885,
0.1439248025417328,
-0.32376402616500854,
-0.12072114646434784,
0.6402020454406738,
0.11468669027090073,
-0.2500045597553253,
0.07586754113435745,
0.06889492273330688,
-0.6422573328018188,
-0.20318852365016937,
-0.5313290953636169,
0.44573113322257996,
0.31759998202323914,
-0.0869591236114502,
0.04989413544535637,
0.08872950077056885,
-0.1442723125219345,
0.16269974410533905,
0.04311357066035271,
-0.1758582890033722,
0.28204259276390076,
0.08056319504976273,
0.09408044815063477,
0.004197414964437485
] |
https://github.com/huggingface/datasets/issues/4592 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test | Thank you @albertvillanova , I will keep that in mind.
Just a quick note - I posted the issue on Github because the dataset viewer suggested me to "open an issue for direct support". Maybe it can be updated with your suggestion

| ### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py)
When I run the command
`$ datasets-cli test "D:\workspace\HF\detect_chess_pieces" --save_infos --all_configs`
It gives the following error
```
Using custom data configuration default
Traceback (most recent call last):
File "c:\users\faiza\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\faiza\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\faiza\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 7, in <module>
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 132, in run
for j, builder in enumerate(get_builders()):
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 125, in get_builders
yield builder_cls(
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 1148, in __init__
super().__init__(*args, **kwargs)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 306, in __init__
info = self.get_exported_dataset_info()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 405, in get_exported_dataset_info
return self.get_all_exported_dataset_infos().get(self.config.name, DatasetInfo())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 390, in get_all_exported_dataset_infos
return DatasetInfosDict.from_directory(cls.get_imported_module_dir())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 309, in from_directory
dataset_infos_dict = {
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 310, in <dictcomp>
config_name: DatasetInfo.from_dict(dataset_info_dict)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 272, in from_dict
return cls(**{k: v for k, v in dataset_info_dict.items() if k in field_names})
File "<string>", line 20, in __init__
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 160, in __post_init__
templates = [
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 161, in <listcomp>
template if isinstance(template, TaskTemplate) else task_template_from_dict(template)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\tasks\__init__.py", line 43, in task_template_from_dict
return template.from_dict(task_template_dict)
AttributeError: 'NoneType' object has no attribute 'from_dict'
```
My assumption is that there is some kind of issue in how the "task_templates" are read, because even if I keep them as None, or not include the argument at all, the same error occurs
### Owner
Yes | 43 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py)
When I run the command
`$ datasets-cli test "D:\workspace\HF\detect_chess_pieces" --save_infos --all_configs`
It gives the following error
```
Using custom data configuration default
Traceback (most recent call last):
File "c:\users\faiza\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\faiza\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\faiza\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 7, in <module>
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 132, in run
for j, builder in enumerate(get_builders()):
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 125, in get_builders
yield builder_cls(
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 1148, in __init__
super().__init__(*args, **kwargs)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 306, in __init__
info = self.get_exported_dataset_info()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 405, in get_exported_dataset_info
return self.get_all_exported_dataset_infos().get(self.config.name, DatasetInfo())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 390, in get_all_exported_dataset_infos
return DatasetInfosDict.from_directory(cls.get_imported_module_dir())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 309, in from_directory
dataset_infos_dict = {
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 310, in <dictcomp>
config_name: DatasetInfo.from_dict(dataset_info_dict)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 272, in from_dict
return cls(**{k: v for k, v in dataset_info_dict.items() if k in field_names})
File "<string>", line 20, in __init__
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 160, in __post_init__
templates = [
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 161, in <listcomp>
template if isinstance(template, TaskTemplate) else task_template_from_dict(template)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\tasks\__init__.py", line 43, in task_template_from_dict
return template.from_dict(task_template_dict)
AttributeError: 'NoneType' object has no attribute 'from_dict'
```
My assumption is that there is some kind of issue in how the "task_templates" are read, because even if I keep them as None, or not include the argument at all, the same error occurs
### Owner
Yes
Thank you @albertvillanova , I will keep that in mind.
Just a quick note - I posted the issue on Github because the dataset viewer suggested me to "open an issue for direct support". Maybe it can be updated with your suggestion

| [
-0.32051923871040344,
0.07623693346977234,
0.006530933082103729,
0.5506225228309631,
0.24864014983177185,
-0.1461583971977234,
0.5403976440429688,
0.4607197642326355,
0.33619260787963867,
0.08060021698474884,
0.06632126867771149,
0.05398640036582947,
-0.29010137915611267,
0.12756526470184326,
-0.07348431646823883,
0.35375088453292847,
0.03892479091882706,
0.3511612117290497,
0.05809911713004112,
0.08292016386985779,
-0.21847575902938843,
0.24397945404052734,
-0.0987199991941452,
0.23649826645851135,
-0.13992266356945038,
0.14740121364593506,
0.23779550194740295,
0.29824966192245483,
-0.24360154569149017,
-0.3514796197414398,
0.414608895778656,
0.09527888894081116,
0.14651329815387726,
0.6180729866027832,
-0.00012475311814341694,
0.0941963791847229,
0.221300408244133,
-0.31040334701538086,
-0.45048972964286804,
-0.0046192556619644165,
-0.4284096360206604,
-0.2628023624420166,
0.13278985023498535,
-0.3596540093421936,
-0.03870303928852081,
-0.03404340147972107,
-0.3397221565246582,
-0.2985023260116577,
0.12166569381952286,
0.3706977963447571,
0.1310710608959198,
0.051983654499053955,
-0.25376448035240173,
-0.07789336144924164,
0.24499726295471191,
0.14408966898918152,
-0.14924655854701996,
0.054337333887815475,
0.4759850800037384,
0.15701645612716675,
0.13059791922569275,
0.15429262816905975,
-0.10870818048715591,
0.025092337280511856,
0.07113444805145264,
-0.058859050273895264,
0.35493195056915283,
0.04183468595147133,
0.09549437463283539,
0.1164746880531311,
0.34274402260780334,
-0.6524118781089783,
-0.09564100205898285,
-0.5012494325637817,
0.17879603803157806,
-0.22757606208324432,
0.22224360704421997,
0.06929777562618256,
-0.30061760544776917,
-0.03537953272461891,
0.011258539743721485,
0.07333434373140335,
-0.02670910581946373,
-0.11405766010284424,
0.09866741299629211,
0.08044818788766861,
-0.11715486645698547,
0.2007875144481659,
0.13330459594726562,
-0.19872382283210754,
0.15525871515274048,
-0.236805260181427,
-0.2773144543170929,
0.25258520245552063,
-0.5357624888420105,
-0.18501178920269012,
-0.13854756951332092,
0.22509902715682983,
0.35902222990989685,
0.12975019216537476,
0.24045652151107788,
0.08318580687046051,
0.033300746232271194,
0.2975781261920929,
0.21089960634708405,
0.33525413274765015,
0.20526090264320374,
0.17975983023643494,
0.19736547768115997,
0.55144202709198,
-0.07078950852155685,
-0.06335636973381042,
-0.06401742249727249,
-0.45530232787132263,
0.14043109118938446,
0.029669824987649918,
0.18469402194023132,
-0.3377807140350342,
-0.3036462068557739,
0.23240752518177032,
-0.010538540780544281,
-0.1206267699599266,
0.5332759022712708,
0.48818615078926086,
0.07240427285432816,
0.12157250195741653,
-0.08919677138328552,
0.1560031920671463,
-0.043857231736183167,
-0.2271036058664322,
-0.13550910353660583,
0.006617162376642227,
-0.18417476117610931,
-0.12418022006750107,
0.44769176840782166,
0.008443114347755909,
0.2593049705028534,
-0.010449708439409733,
0.40574973821640015,
-0.03455686196684837,
0.020965909585356712,
-0.21209169924259186,
-0.00022014230489730835,
0.20180046558380127,
-0.21297550201416016,
-0.020030051469802856,
0.19702930748462677,
-0.29609549045562744,
-0.29735979437828064,
0.24210426211357117,
-0.12378057092428207,
-0.4547276198863983,
0.270067423582077,
0.000914430245757103,
-0.3708123564720154,
0.1697995513677597,
-0.016902528703212738,
-0.03909948095679283,
0.0306989923119545,
-0.24737989902496338,
0.07091633975505829,
-0.2223970741033554,
0.18032534420490265,
-0.23424537479877472,
0.40536126494407654,
0.5238663554191589,
-0.6002221703529358,
-0.037894874811172485,
-0.13032987713813782,
-0.31335753202438354,
0.031356170773506165,
-0.09665131568908691,
-0.18398132920265198,
0.3622591495513916,
-0.39651742577552795,
-0.1397286206483841,
0.4793086051940918,
-0.16198261082172394,
-0.33518555760383606,
0.13514716923236847,
0.02244710922241211,
0.27393558621406555,
0.29374462366104126,
0.07425922155380249,
-0.07168170064687729,
-0.18433089554309845,
-0.2892515957355499,
0.14657214283943176,
0.010036787018179893,
0.13258157670497894,
-0.020977983251214027,
-0.14982067048549652,
-0.043151721358299255,
0.26719218492507935,
0.08194997906684875,
-0.16321420669555664,
0.18170541524887085,
-0.17405541241168976,
0.13195328414440155,
-0.14119890332221985,
0.32469144463539124,
-0.2184852808713913,
0.0765376016497612,
0.020986132323741913,
0.1374235600233078,
0.1430787444114685,
-0.324010968208313,
0.49853459000587463,
-0.1421695053577423,
0.04648096486926079,
-0.5054439902305603,
0.058061517775058746,
-0.40625712275505066,
0.3108966648578644,
-0.5153334140777588,
-0.25197234749794006,
0.07350725680589676,
0.2457633912563324,
-0.022131893783807755,
-0.19923490285873413,
-0.08504834026098251,
0.5004076361656189,
-0.12424556910991669,
0.07275115698575974,
-0.20328417420387268,
0.20841175317764282,
-0.0191288311034441,
-0.13752587139606476,
-0.23781748116016388,
0.26636871695518494,
0.005584821105003357,
-0.13300123810768127,
-0.2015005350112915,
0.45290836691856384,
0.21842767298221588,
0.027141496539115906,
0.47174838185310364,
0.1696910262107849,
-0.15848156809806824,
0.2326529324054718,
0.4260720908641815,
0.14667290449142456,
0.1975775808095932,
-0.13490858674049377,
-0.025348976254463196,
0.35373014211654663,
0.13168969750404358,
0.472555935382843,
-0.04939940571784973,
-0.08860960602760315,
0.3841847777366638,
0.005359414964914322,
-0.051326945424079895,
-0.30766230821609497,
-0.020399387925863266,
0.16769316792488098,
0.07339058816432953,
0.055132534354925156,
-0.5193963050842285,
-0.27048343420028687,
0.26207292079925537,
-0.08031926304101944,
0.016019389033317566,
0.28594499826431274,
0.05486045405268669,
0.06191504746675491,
0.22253187000751495,
0.37299197912216187,
0.566317617893219,
0.03071000427007675,
-0.4098368287086487,
0.07293795794248581,
0.1282108575105667,
-0.05009385570883751,
0.2724837064743042,
-0.13644486665725708,
0.34301576018333435,
0.27582836151123047,
-0.05766382813453674,
-0.18148750066757202,
-0.03500432148575783,
-0.17337380349636078,
-0.03251896798610687,
0.32865533232688904,
-0.39762359857559204,
-0.020514070987701416,
-0.09243548661470413,
-0.11190098524093628,
-0.2464662492275238,
-0.011382500641047955,
-0.23706886172294617,
-0.13073302805423737,
-0.06341294199228287,
-0.06344683468341827,
0.12351389229297638,
0.03399345651268959,
-0.28453636169433594,
0.5013405084609985,
0.11966708302497864,
-0.5546419024467468,
-0.3336203098297119,
-0.17710644006729126,
-0.23757734894752502,
-0.04443475604057312,
0.38156354427337646,
0.23648425936698914,
0.17192085087299347,
-0.18156178295612335,
0.0840064287185669,
-0.3375745117664337,
-0.23069888353347778,
0.23739232122898102,
-0.092890664935112,
0.3575817048549652,
0.415524423122406,
0.16889852285385132,
0.1527276635169983,
-0.11339083313941956,
0.3709629774093628,
-0.0381125770509243,
-0.07181984931230545,
0.41576674580574036,
-0.08977638185024261,
-0.013367733918130398,
0.014077827334403992,
-0.07171357423067093,
-0.21490027010440826,
-0.23700815439224243,
0.19582417607307434,
0.446508526802063,
0.1785842925310135,
-0.008553355000913143,
0.27073144912719727,
-0.019445447251200676,
-0.02267288975417614,
0.1811113804578781,
-0.1078321635723114,
-0.6051468849182129,
0.132027730345726,
-0.30546748638153076,
-0.13715703785419464,
0.00303669273853302,
0.08250079303979874,
0.37851855158805847,
-0.10126200318336487,
-0.4493061900138855,
0.18969447910785675,
-0.16153192520141602,
0.12843453884124756,
0.06484057009220123,
-0.0723060667514801,
0.3317996859550476,
0.18205605447292328,
0.15230104327201843,
-0.36154595017433167,
-0.3591286838054657,
0.2913345396518707,
-0.24051275849342346,
0.49065300822257996,
0.17342734336853027,
0.16632914543151855,
0.0073251985013484955,
0.12070728838443756,
0.2479703426361084,
-0.20932219922542572,
0.25588059425354004,
0.045819781720638275,
0.36365896463394165,
-0.3258056342601776,
-0.2786300480365753,
0.07990596443414688,
0.20873406529426575,
-0.21735168993473053,
0.2724342346191406,
0.01866994798183441,
0.036658257246017456,
-0.41352149844169617,
0.21642620861530304,
-0.2312888503074646,
-0.3340770900249481,
0.06481118500232697,
-0.29859355092048645,
0.010274305939674377,
-0.08132046461105347,
-0.12152045965194702,
-0.35243427753448486,
0.09156065434217453,
-0.04602311551570892,
0.37672239542007446,
-0.0921054407954216,
0.025860868394374847,
-0.0775781199336052,
-0.003704835893586278,
-0.3207382559776306,
0.3552931249141693,
-0.2877994775772095,
0.3520880937576294,
-0.06881687790155411,
-0.1286090612411499,
0.0970727950334549,
-0.2485692948102951,
0.4859718084335327,
-0.41034960746765137,
0.1053173691034317,
0.25289756059646606,
0.33201152086257935,
-0.38315656781196594,
-0.22102069854736328,
-0.17885085940361023,
0.18810148537158966,
0.29236939549446106,
0.5435680150985718,
-0.2652815878391266,
-0.32773569226264954,
0.20334872603416443,
0.18574915826320648,
-0.14468471705913544,
-0.38922008872032166,
-0.23657259345054626,
-0.047280535101890564,
-0.6017162203788757,
-0.05306611210107803,
-0.21381697058677673,
0.3422486484050751,
0.0025268513709306717,
-0.00011113286018371582,
0.208974227309227,
-0.06986956298351288,
0.13103854656219482,
0.2518918216228485,
0.2601669728755951,
0.18274709582328796,
0.3102791905403137,
0.0642445832490921,
0.182492196559906,
0.09517031908035278,
0.5300078392028809,
-0.09464965760707855,
-0.2783205211162567,
-0.16840147972106934,
-0.022871412336826324,
0.2652978003025055,
0.230045884847641,
-0.26491034030914307,
0.070248082280159,
-0.5421493053436279,
0.2066524624824524,
-0.012910894118249416,
0.1270260512828827,
0.3200940191745758,
0.059975892305374146,
-0.4467816650867462,
-0.46947145462036133,
0.10404200851917267,
-0.07892203330993652,
-0.13578613102436066,
0.2045159935951233,
-0.16259895265102386,
-0.3225914537906647,
0.09897579997777939,
0.29905542731285095,
0.8561326861381531,
-0.030489444732666016,
-0.039774198085069656,
0.3781448006629944,
-0.2362307757139206,
0.024007881060242653,
-0.18841473758220673,
-0.24552656710147858,
-0.40438446402549744,
-0.058683887124061584,
0.027557166293263435,
-0.24144698679447174,
0.43587198853492737,
0.08935777097940445,
-0.13173502683639526,
0.1425957828760147,
-0.2798214256763458,
0.09471824765205383,
0.010283460840582848,
0.19406969845294952,
-0.24058282375335693,
-0.346085786819458,
-0.19373254477977753,
0.11460961401462555,
-0.1157957911491394,
0.00822983868420124,
-0.1708453893661499,
0.02275799587368965,
-0.36009955406188965,
-0.2841057777404785,
-0.0901079773902893,
0.13263878226280212,
-0.11296207457780838,
0.017646996304392815,
-0.24742022156715393,
-0.42791950702667236,
0.19414497911930084,
0.3614218533039093,
0.41382622718811035,
0.2088329792022705,
-0.09531593322753906,
0.3079235255718231,
-0.028234519064426422,
0.06256028264760971,
0.02869017794728279,
-0.030969683080911636,
0.2021808922290802,
0.029240623116493225,
-0.38409900665283203,
-0.2186145782470703,
-0.22160416841506958,
-0.3296459913253784,
0.29719945788383484,
-0.12803314626216888,
0.19100849330425262,
-0.2575978934764862,
-0.38656267523765564,
-0.2386561930179596,
-0.12746892869472504,
-0.03516223654150963,
0.09281626343727112,
0.12804175913333893,
-0.18380464613437653,
0.26511332392692566,
-0.5486037731170654,
-0.2521502375602722,
-0.12556420266628265,
0.09859845042228699,
-0.09361083060503006,
-0.007415469735860825,
0.38507452607154846,
0.09121657907962799,
0.00030935928225517273,
-0.17350482940673828,
0.05619746446609497,
0.4675479829311371,
-0.3279854655265808,
0.006409360561519861,
0.10742256045341492,
-0.21092331409454346,
0.1081646978855133,
0.2644568979740143,
0.18349817395210266,
0.029115863144397736,
0.21206332743167877,
-0.7256148457527161,
-0.48346349596977234,
0.03802509978413582,
-0.1252516657114029,
0.20988410711288452,
0.0063149407505989075,
0.05650906264781952,
0.03600696474313736,
-0.19821645319461823,
-0.20698538422584534,
0.046791933476924896,
-0.14388321340084076,
0.08245716989040375,
0.4504835903644562,
0.20730265974998474,
0.2226894348859787,
0.07299171388149261,
0.018387554213404655,
0.10717153549194336,
-0.24519702792167664,
-0.12079112976789474,
0.042506035417318344,
0.193451389670372,
0.08088193088769913,
0.040005624294281006,
-0.1052289754152298,
-0.2068244069814682,
-0.11195608973503113,
-0.2931424677371979,
0.09000346064567566,
-0.007077749818563461,
-0.12018243968486786,
-0.02920880913734436,
0.2477843165397644,
0.009546961635351181,
-0.13399061560630798,
0.015154924243688583,
-0.04368671774864197,
0.05545705184340477,
-0.023488061502575874,
0.1754908412694931,
-0.36206623911857605,
-0.11961141228675842,
0.011086872778832912,
0.2806141972541809,
-0.06124614179134369,
0.34878891706466675,
0.4772351086139679,
-0.15238089859485626,
0.25020456314086914,
0.25661659240722656,
0.4559646248817444,
0.2577875554561615,
-0.34235715866088867,
0.01477721519768238,
0.27323079109191895,
0.08076129853725433,
-0.33228799700737,
-0.12110153585672379,
0.2659243643283844,
-0.17235229909420013,
-0.07350189238786697,
0.33288246393203735,
0.32769033312797546,
-0.024869266897439957,
0.008582599461078644,
-0.03837491571903229,
0.23046734929084778,
0.11451899260282516,
0.12417528033256531,
0.7828136086463928,
-0.2638528347015381,
-0.03717672452330589,
0.3927065432071686,
0.17851483821868896,
0.11747816950082779,
0.5954545140266418,
-0.4919193387031555,
0.2631476819515228,
0.018874114379286766,
0.07796373963356018,
-0.17694991827011108,
-0.584636926651001,
0.6327646374702454,
0.22542613744735718,
0.02150137722492218,
-0.19050902128219604,
-0.00006163865327835083,
0.6631759405136108,
-0.06211109086871147,
0.0986061692237854,
-0.2812601923942566,
0.013054128736257553,
-0.028724849224090576,
0.2536455988883972,
-0.22887344658374786,
-0.2938031852245331,
-0.11526614427566528,
-0.30523449182510376,
-0.04370785877108574,
-0.18823347985744476,
-0.2105954885482788,
-0.008851006627082825,
-0.19002480804920197,
-0.25102487206459045,
0.11481023579835892,
0.18130823969841003,
-0.04637404531240463,
-0.3543022572994232,
0.2501092255115509,
0.1998424232006073,
0.04083739221096039,
0.27054738998413086,
0.07222844660282135,
0.4468074142932892,
0.5378345251083374,
0.19721777737140656,
0.04386909678578377,
-0.04516012594103813,
-0.03825833648443222,
-0.1698778122663498,
0.09007903933525085,
0.08892807364463806,
0.11402598023414612,
0.3672754764556885,
0.077504463493824,
-0.03319753333926201,
-0.22699658572673798,
0.28819289803504944,
0.29876959323883057,
-0.026637231931090355,
0.14941994845867157,
0.1433524191379547,
-0.07388234883546829,
-0.1966937929391861,
0.04575514420866966,
-0.40236565470695496,
-0.07018544524908066,
0.06386390328407288,
0.06479667872190475,
0.2850821614265442,
-0.12411228567361832,
0.03324264660477638,
0.04512043297290802,
0.3705785274505615,
-0.3131568431854248,
-0.2926926910877228,
-0.3578835129737854,
-0.4539346694946289,
-0.8173182010650635,
-0.021330080926418304,
0.1849285066127777,
-0.005503565073013306,
0.12279161065816879,
-0.04645815119147301,
-0.06848915666341782,
-0.14485786855220795,
0.24357369542121887,
0.09360624849796295,
0.299993634223938,
0.12964051961898804,
-0.10331588983535767,
-0.2593133747577667,
0.08444035053253174,
0.02883211150765419,
0.1357649862766266,
-0.2427157759666443,
0.1201440691947937,
0.05288643762469292,
0.02517857402563095,
-0.05018971860408783,
0.09732107818126678,
0.12307178974151611,
-0.2979791760444641,
0.5932875871658325,
-0.029301395639777184,
0.6812338829040527,
-0.02270045131444931,
0.15160317718982697,
-0.4088020324707031,
-0.03165549412369728,
-0.08650680631399155,
0.18789276480674744,
-0.1388249695301056,
0.3380846083164215,
-0.10129892081022263,
0.03506659343838692,
-0.43198513984680176,
-0.22239363193511963,
0.024590641260147095,
-0.2584227919578552,
-0.2911706268787384,
-0.09660089015960693,
-0.10436198115348816,
0.3252016007900238,
-0.04891491308808327,
0.04626602679491043,
0.0061880722641944885,
0.1439248025417328,
-0.32376402616500854,
-0.12072114646434784,
0.6402020454406738,
0.11468669027090073,
-0.2500045597553253,
0.07586754113435745,
0.06889492273330688,
-0.6422573328018188,
-0.20318852365016937,
-0.5313290953636169,
0.44573113322257996,
0.31759998202323914,
-0.0869591236114502,
0.04989413544535637,
0.08872950077056885,
-0.1442723125219345,
0.16269974410533905,
0.04311357066035271,
-0.1758582890033722,
0.28204259276390076,
0.08056319504976273,
0.09408044815063477,
0.004197414964437485
] |
https://github.com/huggingface/datasets/issues/4592 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test | Thank you pointing this out: yes, definitely, we should fix the error message. We are working on this. | ### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py)
When I run the command
`$ datasets-cli test "D:\workspace\HF\detect_chess_pieces" --save_infos --all_configs`
It gives the following error
```
Using custom data configuration default
Traceback (most recent call last):
File "c:\users\faiza\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\faiza\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\faiza\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 7, in <module>
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 132, in run
for j, builder in enumerate(get_builders()):
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 125, in get_builders
yield builder_cls(
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 1148, in __init__
super().__init__(*args, **kwargs)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 306, in __init__
info = self.get_exported_dataset_info()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 405, in get_exported_dataset_info
return self.get_all_exported_dataset_infos().get(self.config.name, DatasetInfo())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 390, in get_all_exported_dataset_infos
return DatasetInfosDict.from_directory(cls.get_imported_module_dir())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 309, in from_directory
dataset_infos_dict = {
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 310, in <dictcomp>
config_name: DatasetInfo.from_dict(dataset_info_dict)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 272, in from_dict
return cls(**{k: v for k, v in dataset_info_dict.items() if k in field_names})
File "<string>", line 20, in __init__
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 160, in __post_init__
templates = [
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 161, in <listcomp>
template if isinstance(template, TaskTemplate) else task_template_from_dict(template)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\tasks\__init__.py", line 43, in task_template_from_dict
return template.from_dict(task_template_dict)
AttributeError: 'NoneType' object has no attribute 'from_dict'
```
My assumption is that there is some kind of issue in how the "task_templates" are read, because even if I keep them as None, or not include the argument at all, the same error occurs
### Owner
Yes | 18 | Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link
https://huggingface.co/datasets/jalFaizy/detect_chess_pieces
### Description
I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_chess_pieces.py)
When I run the command
`$ datasets-cli test "D:\workspace\HF\detect_chess_pieces" --save_infos --all_configs`
It gives the following error
```
Using custom data configuration default
Traceback (most recent call last):
File "c:\users\faiza\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\faiza\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\faiza\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 7, in <module>
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\datasets_cli.py", line 39, in main
service.run()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 132, in run
for j, builder in enumerate(get_builders()):
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\commands\test.py", line 125, in get_builders
yield builder_cls(
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 1148, in __init__
super().__init__(*args, **kwargs)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 306, in __init__
info = self.get_exported_dataset_info()
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 405, in get_exported_dataset_info
return self.get_all_exported_dataset_infos().get(self.config.name, DatasetInfo())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\builder.py", line 390, in get_all_exported_dataset_infos
return DatasetInfosDict.from_directory(cls.get_imported_module_dir())
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 309, in from_directory
dataset_infos_dict = {
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 310, in <dictcomp>
config_name: DatasetInfo.from_dict(dataset_info_dict)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 272, in from_dict
return cls(**{k: v for k, v in dataset_info_dict.items() if k in field_names})
File "<string>", line 20, in __init__
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 160, in __post_init__
templates = [
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\info.py", line 161, in <listcomp>
template if isinstance(template, TaskTemplate) else task_template_from_dict(template)
File "c:\users\faiza\anaconda3\lib\site-packages\datasets\tasks\__init__.py", line 43, in task_template_from_dict
return template.from_dict(task_template_dict)
AttributeError: 'NoneType' object has no attribute 'from_dict'
```
My assumption is that there is some kind of issue in how the "task_templates" are read, because even if I keep them as None, or not include the argument at all, the same error occurs
### Owner
Yes
Thank you pointing this out: yes, definitely, we should fix the error message. We are working on this. | [
-0.32051923871040344,
0.07623693346977234,
0.006530933082103729,
0.5506225228309631,
0.24864014983177185,
-0.1461583971977234,
0.5403976440429688,
0.4607197642326355,
0.33619260787963867,
0.08060021698474884,
0.06632126867771149,
0.05398640036582947,
-0.29010137915611267,
0.12756526470184326,
-0.07348431646823883,
0.35375088453292847,
0.03892479091882706,
0.3511612117290497,
0.05809911713004112,
0.08292016386985779,
-0.21847575902938843,
0.24397945404052734,
-0.0987199991941452,
0.23649826645851135,
-0.13992266356945038,
0.14740121364593506,
0.23779550194740295,
0.29824966192245483,
-0.24360154569149017,
-0.3514796197414398,
0.414608895778656,
0.09527888894081116,
0.14651329815387726,
0.6180729866027832,
-0.00012475311814341694,
0.0941963791847229,
0.221300408244133,
-0.31040334701538086,
-0.45048972964286804,
-0.0046192556619644165,
-0.4284096360206604,
-0.2628023624420166,
0.13278985023498535,
-0.3596540093421936,
-0.03870303928852081,
-0.03404340147972107,
-0.3397221565246582,
-0.2985023260116577,
0.12166569381952286,
0.3706977963447571,
0.1310710608959198,
0.051983654499053955,
-0.25376448035240173,
-0.07789336144924164,
0.24499726295471191,
0.14408966898918152,
-0.14924655854701996,
0.054337333887815475,
0.4759850800037384,
0.15701645612716675,
0.13059791922569275,
0.15429262816905975,
-0.10870818048715591,
0.025092337280511856,
0.07113444805145264,
-0.058859050273895264,
0.35493195056915283,
0.04183468595147133,
0.09549437463283539,
0.1164746880531311,
0.34274402260780334,
-0.6524118781089783,
-0.09564100205898285,
-0.5012494325637817,
0.17879603803157806,
-0.22757606208324432,
0.22224360704421997,
0.06929777562618256,
-0.30061760544776917,
-0.03537953272461891,
0.011258539743721485,
0.07333434373140335,
-0.02670910581946373,
-0.11405766010284424,
0.09866741299629211,
0.08044818788766861,
-0.11715486645698547,
0.2007875144481659,
0.13330459594726562,
-0.19872382283210754,
0.15525871515274048,
-0.236805260181427,
-0.2773144543170929,
0.25258520245552063,
-0.5357624888420105,
-0.18501178920269012,
-0.13854756951332092,
0.22509902715682983,
0.35902222990989685,
0.12975019216537476,
0.24045652151107788,
0.08318580687046051,
0.033300746232271194,
0.2975781261920929,
0.21089960634708405,
0.33525413274765015,
0.20526090264320374,
0.17975983023643494,
0.19736547768115997,
0.55144202709198,
-0.07078950852155685,
-0.06335636973381042,
-0.06401742249727249,
-0.45530232787132263,
0.14043109118938446,
0.029669824987649918,
0.18469402194023132,
-0.3377807140350342,
-0.3036462068557739,
0.23240752518177032,
-0.010538540780544281,
-0.1206267699599266,
0.5332759022712708,
0.48818615078926086,
0.07240427285432816,
0.12157250195741653,
-0.08919677138328552,
0.1560031920671463,
-0.043857231736183167,
-0.2271036058664322,
-0.13550910353660583,
0.006617162376642227,
-0.18417476117610931,
-0.12418022006750107,
0.44769176840782166,
0.008443114347755909,
0.2593049705028534,
-0.010449708439409733,
0.40574973821640015,
-0.03455686196684837,
0.020965909585356712,
-0.21209169924259186,
-0.00022014230489730835,
0.20180046558380127,
-0.21297550201416016,
-0.020030051469802856,
0.19702930748462677,
-0.29609549045562744,
-0.29735979437828064,
0.24210426211357117,
-0.12378057092428207,
-0.4547276198863983,
0.270067423582077,
0.000914430245757103,
-0.3708123564720154,
0.1697995513677597,
-0.016902528703212738,
-0.03909948095679283,
0.0306989923119545,
-0.24737989902496338,
0.07091633975505829,
-0.2223970741033554,
0.18032534420490265,
-0.23424537479877472,
0.40536126494407654,
0.5238663554191589,
-0.6002221703529358,
-0.037894874811172485,
-0.13032987713813782,
-0.31335753202438354,
0.031356170773506165,
-0.09665131568908691,
-0.18398132920265198,
0.3622591495513916,
-0.39651742577552795,
-0.1397286206483841,
0.4793086051940918,
-0.16198261082172394,
-0.33518555760383606,
0.13514716923236847,
0.02244710922241211,
0.27393558621406555,
0.29374462366104126,
0.07425922155380249,
-0.07168170064687729,
-0.18433089554309845,
-0.2892515957355499,
0.14657214283943176,
0.010036787018179893,
0.13258157670497894,
-0.020977983251214027,
-0.14982067048549652,
-0.043151721358299255,
0.26719218492507935,
0.08194997906684875,
-0.16321420669555664,
0.18170541524887085,
-0.17405541241168976,
0.13195328414440155,
-0.14119890332221985,
0.32469144463539124,
-0.2184852808713913,
0.0765376016497612,
0.020986132323741913,
0.1374235600233078,
0.1430787444114685,
-0.324010968208313,
0.49853459000587463,
-0.1421695053577423,
0.04648096486926079,
-0.5054439902305603,
0.058061517775058746,
-0.40625712275505066,
0.3108966648578644,
-0.5153334140777588,
-0.25197234749794006,
0.07350725680589676,
0.2457633912563324,
-0.022131893783807755,
-0.19923490285873413,
-0.08504834026098251,
0.5004076361656189,
-0.12424556910991669,
0.07275115698575974,
-0.20328417420387268,
0.20841175317764282,
-0.0191288311034441,
-0.13752587139606476,
-0.23781748116016388,
0.26636871695518494,
0.005584821105003357,
-0.13300123810768127,
-0.2015005350112915,
0.45290836691856384,
0.21842767298221588,
0.027141496539115906,
0.47174838185310364,
0.1696910262107849,
-0.15848156809806824,
0.2326529324054718,
0.4260720908641815,
0.14667290449142456,
0.1975775808095932,
-0.13490858674049377,
-0.025348976254463196,
0.35373014211654663,
0.13168969750404358,
0.472555935382843,
-0.04939940571784973,
-0.08860960602760315,
0.3841847777366638,
0.005359414964914322,
-0.051326945424079895,
-0.30766230821609497,
-0.020399387925863266,
0.16769316792488098,
0.07339058816432953,
0.055132534354925156,
-0.5193963050842285,
-0.27048343420028687,
0.26207292079925537,
-0.08031926304101944,
0.016019389033317566,
0.28594499826431274,
0.05486045405268669,
0.06191504746675491,
0.22253187000751495,
0.37299197912216187,
0.566317617893219,
0.03071000427007675,
-0.4098368287086487,
0.07293795794248581,
0.1282108575105667,
-0.05009385570883751,
0.2724837064743042,
-0.13644486665725708,
0.34301576018333435,
0.27582836151123047,
-0.05766382813453674,
-0.18148750066757202,
-0.03500432148575783,
-0.17337380349636078,
-0.03251896798610687,
0.32865533232688904,
-0.39762359857559204,
-0.020514070987701416,
-0.09243548661470413,
-0.11190098524093628,
-0.2464662492275238,
-0.011382500641047955,
-0.23706886172294617,
-0.13073302805423737,
-0.06341294199228287,
-0.06344683468341827,
0.12351389229297638,
0.03399345651268959,
-0.28453636169433594,
0.5013405084609985,
0.11966708302497864,
-0.5546419024467468,
-0.3336203098297119,
-0.17710644006729126,
-0.23757734894752502,
-0.04443475604057312,
0.38156354427337646,
0.23648425936698914,
0.17192085087299347,
-0.18156178295612335,
0.0840064287185669,
-0.3375745117664337,
-0.23069888353347778,
0.23739232122898102,
-0.092890664935112,
0.3575817048549652,
0.415524423122406,
0.16889852285385132,
0.1527276635169983,
-0.11339083313941956,
0.3709629774093628,
-0.0381125770509243,
-0.07181984931230545,
0.41576674580574036,
-0.08977638185024261,
-0.013367733918130398,
0.014077827334403992,
-0.07171357423067093,
-0.21490027010440826,
-0.23700815439224243,
0.19582417607307434,
0.446508526802063,
0.1785842925310135,
-0.008553355000913143,
0.27073144912719727,
-0.019445447251200676,
-0.02267288975417614,
0.1811113804578781,
-0.1078321635723114,
-0.6051468849182129,
0.132027730345726,
-0.30546748638153076,
-0.13715703785419464,
0.00303669273853302,
0.08250079303979874,
0.37851855158805847,
-0.10126200318336487,
-0.4493061900138855,
0.18969447910785675,
-0.16153192520141602,
0.12843453884124756,
0.06484057009220123,
-0.0723060667514801,
0.3317996859550476,
0.18205605447292328,
0.15230104327201843,
-0.36154595017433167,
-0.3591286838054657,
0.2913345396518707,
-0.24051275849342346,
0.49065300822257996,
0.17342734336853027,
0.16632914543151855,
0.0073251985013484955,
0.12070728838443756,
0.2479703426361084,
-0.20932219922542572,
0.25588059425354004,
0.045819781720638275,
0.36365896463394165,
-0.3258056342601776,
-0.2786300480365753,
0.07990596443414688,
0.20873406529426575,
-0.21735168993473053,
0.2724342346191406,
0.01866994798183441,
0.036658257246017456,
-0.41352149844169617,
0.21642620861530304,
-0.2312888503074646,
-0.3340770900249481,
0.06481118500232697,
-0.29859355092048645,
0.010274305939674377,
-0.08132046461105347,
-0.12152045965194702,
-0.35243427753448486,
0.09156065434217453,
-0.04602311551570892,
0.37672239542007446,
-0.0921054407954216,
0.025860868394374847,
-0.0775781199336052,
-0.003704835893586278,
-0.3207382559776306,
0.3552931249141693,
-0.2877994775772095,
0.3520880937576294,
-0.06881687790155411,
-0.1286090612411499,
0.0970727950334549,
-0.2485692948102951,
0.4859718084335327,
-0.41034960746765137,
0.1053173691034317,
0.25289756059646606,
0.33201152086257935,
-0.38315656781196594,
-0.22102069854736328,
-0.17885085940361023,
0.18810148537158966,
0.29236939549446106,
0.5435680150985718,
-0.2652815878391266,
-0.32773569226264954,
0.20334872603416443,
0.18574915826320648,
-0.14468471705913544,
-0.38922008872032166,
-0.23657259345054626,
-0.047280535101890564,
-0.6017162203788757,
-0.05306611210107803,
-0.21381697058677673,
0.3422486484050751,
0.0025268513709306717,
-0.00011113286018371582,
0.208974227309227,
-0.06986956298351288,
0.13103854656219482,
0.2518918216228485,
0.2601669728755951,
0.18274709582328796,
0.3102791905403137,
0.0642445832490921,
0.182492196559906,
0.09517031908035278,
0.5300078392028809,
-0.09464965760707855,
-0.2783205211162567,
-0.16840147972106934,
-0.022871412336826324,
0.2652978003025055,
0.230045884847641,
-0.26491034030914307,
0.070248082280159,
-0.5421493053436279,
0.2066524624824524,
-0.012910894118249416,
0.1270260512828827,
0.3200940191745758,
0.059975892305374146,
-0.4467816650867462,
-0.46947145462036133,
0.10404200851917267,
-0.07892203330993652,
-0.13578613102436066,
0.2045159935951233,
-0.16259895265102386,
-0.3225914537906647,
0.09897579997777939,
0.29905542731285095,
0.8561326861381531,
-0.030489444732666016,
-0.039774198085069656,
0.3781448006629944,
-0.2362307757139206,
0.024007881060242653,
-0.18841473758220673,
-0.24552656710147858,
-0.40438446402549744,
-0.058683887124061584,
0.027557166293263435,
-0.24144698679447174,
0.43587198853492737,
0.08935777097940445,
-0.13173502683639526,
0.1425957828760147,
-0.2798214256763458,
0.09471824765205383,
0.010283460840582848,
0.19406969845294952,
-0.24058282375335693,
-0.346085786819458,
-0.19373254477977753,
0.11460961401462555,
-0.1157957911491394,
0.00822983868420124,
-0.1708453893661499,
0.02275799587368965,
-0.36009955406188965,
-0.2841057777404785,
-0.0901079773902893,
0.13263878226280212,
-0.11296207457780838,
0.017646996304392815,
-0.24742022156715393,
-0.42791950702667236,
0.19414497911930084,
0.3614218533039093,
0.41382622718811035,
0.2088329792022705,
-0.09531593322753906,
0.3079235255718231,
-0.028234519064426422,
0.06256028264760971,
0.02869017794728279,
-0.030969683080911636,
0.2021808922290802,
0.029240623116493225,
-0.38409900665283203,
-0.2186145782470703,
-0.22160416841506958,
-0.3296459913253784,
0.29719945788383484,
-0.12803314626216888,
0.19100849330425262,
-0.2575978934764862,
-0.38656267523765564,
-0.2386561930179596,
-0.12746892869472504,
-0.03516223654150963,
0.09281626343727112,
0.12804175913333893,
-0.18380464613437653,
0.26511332392692566,
-0.5486037731170654,
-0.2521502375602722,
-0.12556420266628265,
0.09859845042228699,
-0.09361083060503006,
-0.007415469735860825,
0.38507452607154846,
0.09121657907962799,
0.00030935928225517273,
-0.17350482940673828,
0.05619746446609497,
0.4675479829311371,
-0.3279854655265808,
0.006409360561519861,
0.10742256045341492,
-0.21092331409454346,
0.1081646978855133,
0.2644568979740143,
0.18349817395210266,
0.029115863144397736,
0.21206332743167877,
-0.7256148457527161,
-0.48346349596977234,
0.03802509978413582,
-0.1252516657114029,
0.20988410711288452,
0.0063149407505989075,
0.05650906264781952,
0.03600696474313736,
-0.19821645319461823,
-0.20698538422584534,
0.046791933476924896,
-0.14388321340084076,
0.08245716989040375,
0.4504835903644562,
0.20730265974998474,
0.2226894348859787,
0.07299171388149261,
0.018387554213404655,
0.10717153549194336,
-0.24519702792167664,
-0.12079112976789474,
0.042506035417318344,
0.193451389670372,
0.08088193088769913,
0.040005624294281006,
-0.1052289754152298,
-0.2068244069814682,
-0.11195608973503113,
-0.2931424677371979,
0.09000346064567566,
-0.007077749818563461,
-0.12018243968486786,
-0.02920880913734436,
0.2477843165397644,
0.009546961635351181,
-0.13399061560630798,
0.015154924243688583,
-0.04368671774864197,
0.05545705184340477,
-0.023488061502575874,
0.1754908412694931,
-0.36206623911857605,
-0.11961141228675842,
0.011086872778832912,
0.2806141972541809,
-0.06124614179134369,
0.34878891706466675,
0.4772351086139679,
-0.15238089859485626,
0.25020456314086914,
0.25661659240722656,
0.4559646248817444,
0.2577875554561615,
-0.34235715866088867,
0.01477721519768238,
0.27323079109191895,
0.08076129853725433,
-0.33228799700737,
-0.12110153585672379,
0.2659243643283844,
-0.17235229909420013,
-0.07350189238786697,
0.33288246393203735,
0.32769033312797546,
-0.024869266897439957,
0.008582599461078644,
-0.03837491571903229,
0.23046734929084778,
0.11451899260282516,
0.12417528033256531,
0.7828136086463928,
-0.2638528347015381,
-0.03717672452330589,
0.3927065432071686,
0.17851483821868896,
0.11747816950082779,
0.5954545140266418,
-0.4919193387031555,
0.2631476819515228,
0.018874114379286766,
0.07796373963356018,
-0.17694991827011108,
-0.584636926651001,
0.6327646374702454,
0.22542613744735718,
0.02150137722492218,
-0.19050902128219604,
-0.00006163865327835083,
0.6631759405136108,
-0.06211109086871147,
0.0986061692237854,
-0.2812601923942566,
0.013054128736257553,
-0.028724849224090576,
0.2536455988883972,
-0.22887344658374786,
-0.2938031852245331,
-0.11526614427566528,
-0.30523449182510376,
-0.04370785877108574,
-0.18823347985744476,
-0.2105954885482788,
-0.008851006627082825,
-0.19002480804920197,
-0.25102487206459045,
0.11481023579835892,
0.18130823969841003,
-0.04637404531240463,
-0.3543022572994232,
0.2501092255115509,
0.1998424232006073,
0.04083739221096039,
0.27054738998413086,
0.07222844660282135,
0.4468074142932892,
0.5378345251083374,
0.19721777737140656,
0.04386909678578377,
-0.04516012594103813,
-0.03825833648443222,
-0.1698778122663498,
0.09007903933525085,
0.08892807364463806,
0.11402598023414612,
0.3672754764556885,
0.077504463493824,
-0.03319753333926201,
-0.22699658572673798,
0.28819289803504944,
0.29876959323883057,
-0.026637231931090355,
0.14941994845867157,
0.1433524191379547,
-0.07388234883546829,
-0.1966937929391861,
0.04575514420866966,
-0.40236565470695496,
-0.07018544524908066,
0.06386390328407288,
0.06479667872190475,
0.2850821614265442,
-0.12411228567361832,
0.03324264660477638,
0.04512043297290802,
0.3705785274505615,
-0.3131568431854248,
-0.2926926910877228,
-0.3578835129737854,
-0.4539346694946289,
-0.8173182010650635,
-0.021330080926418304,
0.1849285066127777,
-0.005503565073013306,
0.12279161065816879,
-0.04645815119147301,
-0.06848915666341782,
-0.14485786855220795,
0.24357369542121887,
0.09360624849796295,
0.299993634223938,
0.12964051961898804,
-0.10331588983535767,
-0.2593133747577667,
0.08444035053253174,
0.02883211150765419,
0.1357649862766266,
-0.2427157759666443,
0.1201440691947937,
0.05288643762469292,
0.02517857402563095,
-0.05018971860408783,
0.09732107818126678,
0.12307178974151611,
-0.2979791760444641,
0.5932875871658325,
-0.029301395639777184,
0.6812338829040527,
-0.02270045131444931,
0.15160317718982697,
-0.4088020324707031,
-0.03165549412369728,
-0.08650680631399155,
0.18789276480674744,
-0.1388249695301056,
0.3380846083164215,
-0.10129892081022263,
0.03506659343838692,
-0.43198513984680176,
-0.22239363193511963,
0.024590641260147095,
-0.2584227919578552,
-0.2911706268787384,
-0.09660089015960693,
-0.10436198115348816,
0.3252016007900238,
-0.04891491308808327,
0.04626602679491043,
0.0061880722641944885,
0.1439248025417328,
-0.32376402616500854,
-0.12072114646434784,
0.6402020454406738,
0.11468669027090073,
-0.2500045597553253,
0.07586754113435745,
0.06889492273330688,
-0.6422573328018188,
-0.20318852365016937,
-0.5313290953636169,
0.44573113322257996,
0.31759998202323914,
-0.0869591236114502,
0.04989413544535637,
0.08872950077056885,
-0.1442723125219345,
0.16269974410533905,
0.04311357066035271,
-0.1758582890033722,
0.28204259276390076,
0.08056319504976273,
0.09408044815063477,
0.004197414964437485
] |
https://github.com/huggingface/datasets/issues/4591 | Can't push Images to hub with manual Dataset | Hi, thanks for reporting! This issue stems from the changes introduced in https://github.com/huggingface/datasets/pull/4282 (cc @lhoestq), in which list casts are ignored if they don't change the list type (required to preserve `null` values). And `push_to_hub` does a special cast to embed external image files but doesn't change the types, hence the failure. | ## Describe the bug
If I create a dataset including an 'Image' feature manually, when pushing to hub decoded images are not pushed,
instead it looks for image where image local path is/used to be.
This doesn't (at least didn't used to) happen with imagefolder. I want to build dataset manually because it is complicated.
This happens even though the dataset is looking like decoded images:

and I use `embed_external_files=True` while `push_to_hub` (same with false)
## Steps to reproduce the bug
```python
from PIL import Image
from datasets import Image as ImageFeature
from datasets import Features,Dataset
#manually create dataset
feats=Features(
{
"images": [ImageFeature()], #same even if explicitly ImageFeature(decode=True)
"input_image": ImageFeature(),
}
)
test_data={"images":[[Image.open("test.jpg"),Image.open("test.jpg"),Image.open("test.jpg")]], "input_image":[Image.open("test.jpg")]}
test_dataset=Dataset.from_dict(test_data,features=feats)
print(test_dataset)
test_dataset.push_to_hub("ceyda/image_test_public",private=False,token="",embed_external_files=True)
# clear cache rm -r ~/.cache/huggingface
# remove "test.jpg" # remove to see that it is looking for image on the local path
test_dataset=load_dataset("ceyda/image_test_public",use_auth_token="")
print(test_dataset)
print(test_dataset['train'][0])
```
## Expected results
should be able to push image bytes if dataset has `Image(decode=True)`
## Actual results
errors because it is trying to decode file from the non existing local path.
```
----> print(test_dataset['train'][0])
File ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py:2154, in Dataset.__getitem__(self, key)
2152 def __getitem__(self, key): # noqa: F811
2153 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools)."""
-> 2154 return self._getitem(
2155 key,
2156 )
File ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py:2139, in Dataset._getitem(self, key, decoded, **kwargs)
2137 formatter = get_formatter(format_type, features=self.features, decoded=decoded, **format_kwargs)
2138 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None)
-> 2139 formatted_output = format_table(
2140 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns
2141 )
2142 return formatted_output
File ~/.local/lib/python3.8/site-packages/datasets/formatting/formatting.py:532, in format_table(table, key, formatter, format_columns, output_all_columns)
530 python_formatter = PythonFormatter(features=None)
531 if format_columns is None:
...
-> 3068 fp = builtins.open(filename, "rb")
3069 exclusive_fp = True
3071 try:
FileNotFoundError: [Errno 2] No such file or directory: 'test.jpg'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 52 | Can't push Images to hub with manual Dataset
## Describe the bug
If I create a dataset including an 'Image' feature manually, when pushing to hub decoded images are not pushed,
instead it looks for image where image local path is/used to be.
This doesn't (at least didn't used to) happen with imagefolder. I want to build dataset manually because it is complicated.
This happens even though the dataset is looking like decoded images:

and I use `embed_external_files=True` while `push_to_hub` (same with false)
## Steps to reproduce the bug
```python
from PIL import Image
from datasets import Image as ImageFeature
from datasets import Features,Dataset
#manually create dataset
feats=Features(
{
"images": [ImageFeature()], #same even if explicitly ImageFeature(decode=True)
"input_image": ImageFeature(),
}
)
test_data={"images":[[Image.open("test.jpg"),Image.open("test.jpg"),Image.open("test.jpg")]], "input_image":[Image.open("test.jpg")]}
test_dataset=Dataset.from_dict(test_data,features=feats)
print(test_dataset)
test_dataset.push_to_hub("ceyda/image_test_public",private=False,token="",embed_external_files=True)
# clear cache rm -r ~/.cache/huggingface
# remove "test.jpg" # remove to see that it is looking for image on the local path
test_dataset=load_dataset("ceyda/image_test_public",use_auth_token="")
print(test_dataset)
print(test_dataset['train'][0])
```
## Expected results
should be able to push image bytes if dataset has `Image(decode=True)`
## Actual results
errors because it is trying to decode file from the non existing local path.
```
----> print(test_dataset['train'][0])
File ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py:2154, in Dataset.__getitem__(self, key)
2152 def __getitem__(self, key): # noqa: F811
2153 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools)."""
-> 2154 return self._getitem(
2155 key,
2156 )
File ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py:2139, in Dataset._getitem(self, key, decoded, **kwargs)
2137 formatter = get_formatter(format_type, features=self.features, decoded=decoded, **format_kwargs)
2138 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None)
-> 2139 formatted_output = format_table(
2140 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns
2141 )
2142 return formatted_output
File ~/.local/lib/python3.8/site-packages/datasets/formatting/formatting.py:532, in format_table(table, key, formatter, format_columns, output_all_columns)
530 python_formatter = PythonFormatter(features=None)
531 if format_columns is None:
...
-> 3068 fp = builtins.open(filename, "rb")
3069 exclusive_fp = True
3071 try:
FileNotFoundError: [Errno 2] No such file or directory: 'test.jpg'
```
## Environment info
- `datasets` version: 2.3.2
- Platform: Linux-5.4.0-1074-azure-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Hi, thanks for reporting! This issue stems from the changes introduced in https://github.com/huggingface/datasets/pull/4282 (cc @lhoestq), in which list casts are ignored if they don't change the list type (required to preserve `null` values). And `push_to_hub` does a special cast to embed external image files but doesn't change the types, hence the failure. | [
-0.20560722053050995,
-0.46868687868118286,
0.04066668078303337,
0.185354083776474,
0.12482734769582748,
0.027340427041053772,
0.48910850286483765,
0.07770438492298126,
0.16731096804141998,
0.2342737913131714,
0.14223827421665192,
0.45452797412872314,
-0.15583676099777222,
-0.02336883544921875,
0.028816821053624153,
0.45989978313446045,
0.2769533097743988,
0.21433395147323608,
0.3118358254432678,
-0.3628801107406616,
-0.4475453197956085,
-0.1208716481924057,
-0.03794481232762337,
0.025031574070453644,
-0.5436898469924927,
0.03718186914920807,
-0.14571809768676758,
0.39719390869140625,
-0.032529041171073914,
0.09620051085948944,
0.24193577468395233,
0.08349384367465973,
0.027351107448339462,
0.48397156596183777,
-0.00012834624794777483,
0.1651613414287567,
0.3365434408187866,
-0.10518860816955566,
-0.22405703365802765,
-0.4182109236717224,
-0.6210432052612305,
-0.044813819229602814,
0.16714900732040405,
-0.29735228419303894,
-0.013558080419898033,
-0.0377100333571434,
0.17475105822086334,
-0.008714202791452408,
0.29930105805397034,
0.1270740032196045,
0.08819170296192169,
0.11264602839946747,
-0.12015481293201447,
0.025868335738778114,
0.23309111595153809,
0.706203818321228,
-0.46315422654151917,
0.093202143907547,
-0.05298443138599396,
0.10359109938144684,
0.08657653629779816,
0.06425590813159943,
0.11321048438549042,
0.018244346603751183,
0.2596178352832794,
0.14656201004981995,
-0.21419161558151245,
-0.3903202414512634,
0.1028861254453659,
-0.14722967147827148,
0.1214957982301712,
-0.3859224319458008,
-0.31383609771728516,
-0.4736625552177429,
-0.2932294011116028,
0.04509826749563217,
0.3485075831413269,
0.2965054214000702,
-0.16985248029232025,
0.034512218087911606,
-0.3323418200016022,
-0.3741947114467621,
-0.11864098161458969,
0.08789065480232239,
-0.0909738764166832,
-0.1454986035823822,
0.1409146785736084,
0.03318044915795326,
-0.036895494908094406,
0.2576734125614166,
0.6357617378234863,
-0.2830968499183655,
0.11973980069160461,
-0.18765075504779816,
0.1570804864168167,
0.060184650123119354,
0.03029695153236389,
0.045101724565029144,
-0.04375675320625305,
0.1161380484700203,
-0.21577158570289612,
0.07967881113290787,
-0.49033066630363464,
0.16974018514156342,
0.22021006047725677,
0.22076036036014557,
-0.024740993976593018,
0.5719971656799316,
0.20665308833122253,
0.39238592982292175,
-0.33678916096687317,
-0.08500510454177856,
-0.1205998882651329,
-0.20814183354377747,
0.3100627660751343,
0.016878364607691765,
0.28029823303222656,
-0.07810575515031815,
-0.1768292933702469,
-0.2668018937110901,
-0.036961738020181656,
0.3023427426815033,
0.0181746706366539,
0.023290123790502548,
0.1740633249282837,
0.15494611859321594,
-0.12451067566871643,
0.2929816246032715,
-0.15349510312080383,
0.3830711245536804,
-0.19112518429756165,
0.014928254298865795,
-0.05752667412161827,
0.11673587560653687,
-0.05959150195121765,
-0.1956232637166977,
0.31849315762519836,
0.13861019909381866,
0.0029001384973526,
-0.08392848819494247,
-0.022258751094341278,
-0.3072817921638489,
0.3322921097278595,
0.2587954103946686,
0.22461330890655518,
0.2064991593360901,
-0.0037155896425247192,
-0.19268454611301422,
-0.13887035846710205,
0.2439783811569214,
-0.6241620182991028,
-0.31595221161842346,
0.121843121945858,
0.05061735585331917,
-0.3598099946975708,
0.0321916863322258,
-0.4344419538974762,
-0.15537871420383453,
-0.11054060608148575,
0.05761401727795601,
0.0005773007869720459,
-0.10765272378921509,
-0.1509585678577423,
-0.08958066999912262,
0.19670870900154114,
0.40786564350128174,
-0.19122640788555145,
0.19383209943771362,
0.011973394080996513,
0.20075546205043793,
0.08749443292617798,
0.1545562595129013,
-0.255536288022995,
0.29725542664527893,
-0.3827819228172302,
0.057903990149497986,
0.006645917892456055,
-0.8133549690246582,
-0.4553513526916504,
0.17712059617042542,
0.1381879597902298,
0.14569397270679474,
-0.1542719304561615,
0.14799433946609497,
0.21666841208934784,
-0.041121628135442734,
-0.1898222267627716,
0.516960084438324,
-0.055427730083465576,
0.18008774518966675,
-0.14516562223434448,
-0.4046473801136017,
-0.14151643216609955,
0.2280205339193344,
0.27463045716285706,
0.2967064380645752,
0.4004373848438263,
0.326835036277771,
0.00022479891777038574,
-0.04832886531949043,
0.1940370798110962,
0.10278477519750595,
0.6499316692352295,
-0.25225257873535156,
0.1353127509355545,
0.07702349126338959,
-0.393215537071228,
0.31775766611099243,
-0.0919937938451767,
0.12367025017738342,
-0.6230723261833191,
0.1342889964580536,
-0.4072393476963043,
-0.06823883950710297,
-0.6641529202461243,
0.019351225346326828,
-0.024952126666903496,
0.004548914730548859,
-0.22820672392845154,
0.19433143734931946,
-0.08477127552032471,
0.3742050230503082,
-0.11173350363969803,
0.22170782089233398,
-0.22790534794330597,
0.6419615745544434,
0.11864271014928818,
-0.18142972886562347,
-0.3179772198200226,
0.25702568888664246,
0.1626158207654953,
-0.23552478849887848,
-0.18210193514823914,
0.2587684988975525,
0.2873198091983795,
0.43278151750564575,
0.1355891227722168,
-0.051093339920043945,
0.45159056782722473,
-0.5028343200683594,
0.038366831839084625,
0.07847099006175995,
0.2113707810640335,
-0.03965511545538902,
-0.34973353147506714,
0.0006174221634864807,
-0.028789754956960678,
0.37296655774116516,
-0.10056610405445099,
0.09034526348114014,
-0.17253348231315613,
-0.05531635880470276,
0.014557043090462685,
-0.17871609330177307,
-0.20018897950649261,
0.2875560224056244,
0.1753857284784317,
-0.06416407972574234,
0.1427718549966812,
0.005747959017753601,
0.37213134765625,
0.3946584165096283,
0.2001948058605194,
0.32145410776138306,
-0.2572925090789795,
0.08108240365982056,
0.17598697543144226,
0.26226311922073364,
-0.03621327877044678,
-0.0674581304192543,
-0.20543798804283142,
0.2552216947078705,
-0.17103223502635956,
-0.08452153950929642,
0.03215944766998291,
0.12378519773483276,
0.3133190870285034,
0.036030709743499756,
0.28329581022262573,
0.1277899146080017,
-0.34279802441596985,
0.02138344570994377,
0.07135274261236191,
0.2776632308959961,
-0.20186103880405426,
-0.10239361226558685,
-0.339988112449646,
0.13640958070755005,
-0.1614963412284851,
-0.04588660970330238,
-0.2395692765712738,
-0.3533777892589569,
-0.061999671161174774,
0.2521831691265106,
-0.0254103671759367,
0.08949799090623856,
-0.01966390386223793,
0.005593404173851013,
-0.07183880358934402,
-0.6075325012207031,
-0.19042135775089264,
0.0032230657525360584,
-0.1839236617088318,
-0.10294383764266968,
0.2535574734210968,
0.10786310583353043,
0.24242852628231049,
-0.09843764454126358,
0.1857033371925354,
-0.35235726833343506,
-0.10416421294212341,
0.10685878247022629,
0.07745100557804108,
0.390578031539917,
0.014854468405246735,
-0.0060795024037361145,
0.15175174176692963,
-0.15036320686340332,
0.3602377772331238,
0.011582547798752785,
-0.22468416392803192,
-0.30193427205085754,
-0.20595745742321014,
-0.0997893214225769,
-0.18779204785823822,
-0.06758152693510056,
-0.07242142409086227,
-0.09254248440265656,
0.05835031345486641,
0.32001152634620667,
0.07676570117473602,
0.3958357274532318,
0.3510099947452545,
-0.23401139676570892,
0.3527350425720215,
-0.5362909436225891,
0.03806617483496666,
-0.2551801800727844,
0.2510571777820587,
-0.06610462069511414,
-0.08203589916229248,
-0.10424236208200455,
-0.2805051803588867,
0.06096012517809868,
0.4348670244216919,
-0.6030871868133545,
-0.589835524559021,
-0.37287554144859314,
0.3788972496986389,
0.26697254180908203,
0.012464412488043308,
0.18291743099689484,
0.10053332149982452,
0.1155884712934494,
-0.16973742842674255,
-0.2813063859939575,
0.3789725601673126,
0.3900834918022156,
0.05292795971035957,
0.21010234951972961,
0.2134481966495514,
0.14059510827064514,
0.21616989374160767,
-0.1932051032781601,
-0.1568416953086853,
0.6677720546722412,
-0.1659926176071167,
0.4367711842060089,
-0.43490228056907654,
-0.29913076758384705,
0.13577912747859955,
0.2508333921432495,
-0.15320998430252075,
0.020065031945705414,
0.18658024072647095,
-0.20448996126651764,
-0.06305410712957382,
-0.2552712857723236,
-0.46943801641464233,
-0.13655361533164978,
-0.15328878164291382,
0.022050324827432632,
0.01786557212471962,
0.14924903213977814,
-0.05930456146597862,
-0.31582191586494446,
-0.273963987827301,
0.23748040199279785,
-0.0782148540019989,
0.5127756595611572,
0.015299816615879536,
-0.09751498699188232,
-0.033802296966314316,
-0.13455432653427124,
-0.17460642755031586,
0.10962440818548203,
0.3596859872341156,
-0.09944891184568405,
0.23571044206619263,
0.22052469849586487,
-0.15614119172096252,
0.4547457695007324,
-0.5000109076499939,
0.22174523770809174,
-0.25001928210258484,
-0.10008427500724792,
-0.5692446827888489,
-0.1182904988527298,
0.058138538151979446,
0.21675193309783936,
-0.30336135625839233,
0.9159644246101379,
0.029846765100955963,
-0.1146635115146637,
-0.12032878398895264,
0.07575926184654236,
-0.25238221883773804,
-0.1955527365207672,
-0.15724341571331024,
-0.43781423568725586,
-0.16594932973384857,
-0.14228713512420654,
0.06974848359823227,
0.08349835127592087,
0.004111742600798607,
-0.3281216025352478,
-0.2514079809188843,
-0.05011959373950958,
-0.07748034596443176,
-0.04538211226463318,
0.3176209032535553,
-0.12000340223312378,
0.130568265914917,
0.2633965015411377,
0.43446293473243713,
0.11478741466999054,
0.5802620053291321,
0.054148029536008835,
-0.31696707010269165,
0.10196778923273087,
-0.33144137263298035,
-0.09742756932973862,
0.38842618465423584,
0.05188126862049103,
0.08208062499761581,
-0.20833224058151245,
-0.07717062532901764,
-0.5129071474075317,
0.08057264983654022,
0.3471556305885315,
-0.3008972704410553,
0.06500016897916794,
-0.24748259782791138,
0.36296796798706055,
0.08596165478229523,
-0.023000866174697876,
0.10722644627094269,
0.18242314457893372,
-0.4451524317264557,
0.38361579179763794,
0.26281675696372986,
0.7598748207092285,
-0.006770014762878418,
-0.026359502226114273,
0.19217190146446228,
-0.16709987819194794,
0.09350674599409103,
-0.21186532080173492,
-0.06861057877540588,
-0.3069576025009155,
-0.09800254553556442,
-0.06470031291246414,
-0.17638471722602844,
0.0635966882109642,
0.1400122344493866,
0.06909535825252533,
0.28341296315193176,
-0.273310124874115,
0.5093767046928406,
0.08874630928039551,
0.23004907369613647,
-0.2388891577720642,
-0.24562683701515198,
0.29058837890625,
0.067910335958004,
0.22899937629699707,
0.2943289279937744,
0.12598532438278198,
-0.13896384835243225,
-0.3450676500797272,
-0.07970654219388962,
-0.15118709206581116,
0.22100195288658142,
-0.07015258818864822,
0.15232712030410767,
-0.14646218717098236,
-0.18266259133815765,
0.05680636689066887,
0.2536145746707916,
0.6522932648658752,
-0.060235876590013504,
-0.2713410556316376,
0.2547142505645752,
0.11073919385671616,
0.22504137456417084,
0.03212760388851166,
-0.13654857873916626,
0.13068118691444397,
-0.06410277634859085,
-0.22809642553329468,
-0.30978789925575256,
-0.07109429687261581,
-0.43303269147872925,
-0.21827560663223267,
0.07593853771686554,
0.04243115708231926,
0.11947259306907654,
-0.2531985640525818,
-0.11093828082084656,
0.060583505779504776,
-0.14115506410598755,
0.006528012454509735,
-0.12510953843593597,
0.28988030552864075,
0.3912612199783325,
-0.11000536382198334,
-0.3161545991897583,
-0.0014422256499528885,
0.23954537510871887,
0.011404866352677345,
-0.06871463358402252,
0.3710172176361084,
-0.4368278980255127,
0.051766179502010345,
-0.07119107991456985,
0.4331096410751343,
0.2554749846458435,
-0.5851864218711853,
0.09798160195350647,
-0.2609114646911621,
-0.025353573262691498,
-0.1235775500535965,
-0.054373908787965775,
0.02142065390944481,
-0.08071241527795792,
-0.27075856924057007,
-0.25873225927352905,
0.0996619313955307,
-0.03143225610256195,
-0.14649008214473724,
0.18799372017383575,
-0.39980241656303406,
0.023612432181835175,
0.42721185088157654,
-0.1561688333749771,
-0.14220331609249115,
0.5200577974319458,
-0.13980098068714142,
0.2218085378408432,
-0.5388782024383545,
0.11478059738874435,
0.06626517325639725,
-0.30458560585975647,
0.014218179509043694,
0.13874836266040802,
-0.058085449039936066,
-0.010851658880710602,
-0.25732454657554626,
0.21818077564239502,
0.2200244665145874,
0.09792409837245941,
-0.16814817488193512,
-0.2177233099937439,
-0.23232367634773254,
-0.2881315350532532,
-0.02877137064933777,
0.2726198732852936,
-0.12880873680114746,
-0.12606284022331238,
0.58729487657547,
0.1984037458896637,
-0.12121454626321793,
0.3262644410133362,
-0.0853072851896286,
0.46507179737091064,
-0.04881099984049797,
0.002740621566772461,
-0.08151578158140182,
0.18299034237861633,
-0.06200601905584335,
0.016998395323753357,
0.1024288609623909,
0.3545572757720947,
0.2540895640850067,
-0.34267616271972656,
0.24425342679023743,
0.0149912778288126,
0.3790004253387451,
0.02393915131688118,
-0.20119966566562653,
-0.3014092445373535,
0.3463950455188751,
0.10418909788131714,
-0.01164713129401207,
-0.04367298260331154,
0.44888368248939514,
0.04839102178812027,
-0.018858596682548523,
0.13469968736171722,
0.648903489112854,
0.011626653373241425,
-0.142473965883255,
-0.11347644031047821,
0.6539130210876465,
-0.23230139911174774,
0.09756143391132355,
0.1888285130262375,
-0.16116371750831604,
0.186398446559906,
-0.10035223513841629,
-0.09693047404289246,
-0.09088828414678574,
0.6873268485069275,
0.029344312846660614,
0.1278133988380432,
0.3275795578956604,
-0.028659459203481674,
0.5232722759246826,
-0.2234085500240326,
-0.12357556819915771,
-0.1348268687725067,
0.034697987139225006,
0.0721331313252449,
-0.20531228184700012,
0.26395443081855774,
-0.1542288362979889,
0.018704816699028015,
-0.3088970482349396,
0.00007936358451843262,
-0.05825870484113693,
0.16683267056941986,
-0.22054840624332428,
-0.1590636670589447,
-0.38012588024139404,
-0.0035615041851997375,
-0.013782232999801636,
-0.3357895016670227,
-0.11695350706577301,
0.04425041377544403,
-0.1338462233543396,
0.365547776222229,
-0.10272184759378433,
0.20325198769569397,
0.21844905614852905,
-0.0637919008731842,
0.32725754380226135,
-0.026291847229003906,
-0.09460392594337463,
-0.012009657919406891,
0.35266438126564026,
0.08868123590946198,
0.48769909143447876,
-0.24245554208755493,
0.008083661086857319,
0.34653720259666443,
-0.0320165790617466,
-0.04788076877593994,
0.06431077420711517,
-0.34095439314842224,
0.213745579123497,
0.08853261172771454,
0.09618175774812698,
-0.11347818374633789,
-0.08527301251888275,
-0.04692522808909416,
0.30930835008621216,
0.021605776622891426,
0.46290507912635803,
0.010188840329647064,
-0.02861551195383072,
0.21179306507110596,
-0.11166224628686905,
-0.0810372531414032,
-0.1347683221101761,
0.38096657395362854,
-0.1885669231414795,
0.19782623648643494,
-0.02566562592983246,
-0.033049069344997406,
-0.3276776671409607,
0.27274447679519653,
0.38521289825439453,
-0.021524742245674133,
-0.14928580820560455,
-0.2180541604757309,
-0.44078731536865234,
0.2090451717376709,
-0.23391059041023254,
-0.3289097547531128,
0.1521018147468567,
0.27879616618156433,
-0.18011265993118286,
-0.0979042798280716,
-0.04068078100681305,
0.295559287071228,
0.24476799368858337,
0.2785201072692871,
-0.21404124796390533,
0.13696043193340302,
0.07956452667713165,
0.019922513514757156,
-0.12285985052585602,
-0.473916620016098,
0.25827527046203613,
-0.08694199472665787,
-0.023390527814626694,
0.20524048805236816,
0.1912584900856018,
-0.01746656931936741,
-0.2568280100822449,
0.33214324712753296,
0.029083291068673134,
0.040761783719062805,
-0.06157701462507248,
0.06578555703163147,
-0.3008729815483093,
-0.2801743447780609,
-0.26313158869743347,
-0.1634971797466278,
-0.008780296891927719,
0.4348772168159485,
-0.13760098814964294,
-0.08805127441883087,
-0.3499666452407837,
0.16598767042160034,
0.19464534521102905,
0.1791955530643463,
0.025931408628821373,
0.09014080464839935,
-0.28891485929489136,
0.06500177085399628,
0.1804969608783722,
0.07269234210252762,
-0.008897259831428528,
0.06721825897693634,
-0.1685115098953247,
-0.4311613142490387,
0.3798902630805969,
-0.18813028931617737,
-0.206339031457901,
0.16121436655521393,
0.12408976256847382,
0.0024853572249412537,
0.006457900628447533,
0.12256989628076553,
-0.06611952930688858,
0.3461766242980957,
0.003945985808968544,
-0.04016818106174469,
0.0766235738992691,
0.30921709537506104,
0.1201680451631546,
0.07527588307857513,
0.05485479533672333,
-0.039384111762046814,
-0.11560477316379547,
0.1735237091779709,
0.010765645653009415
] |
https://github.com/huggingface/datasets/issues/4581 | Dataset Viewer issue for pn_summary | Note that I refreshed twice this dataset, and I still have (another) error on one of the splits
```
Status code: 400
Exception: ClientResponseError
Message: 403, message='Forbidden', url=URL('https://doc-14-4c-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/pgotjmcuh77q0lk7p44rparfrhv459kp/1656403650000/11771870722949762109/*/16OgJ_OrfzUF_i3ftLjFn9kpcyoi7UJeO?e=download')
```
Like the three splits are processed in parallel by the workers, I imagine that the Google hosting is rate-limiting us.
cc @albertvillanova
| ### Link
https://huggingface.co/datasets/pn_summary/viewer/1.0.0/validation
### Description
Getting an index error on the `validation` and `test` splits:
```
Server error
Status code: 400
Exception: IndexError
Message: list index out of range
```
### Owner
No | 51 | Dataset Viewer issue for pn_summary
### Link
https://huggingface.co/datasets/pn_summary/viewer/1.0.0/validation
### Description
Getting an index error on the `validation` and `test` splits:
```
Server error
Status code: 400
Exception: IndexError
Message: list index out of range
```
### Owner
No
Note that I refreshed twice this dataset, and I still have (another) error on one of the splits
```
Status code: 400
Exception: ClientResponseError
Message: 403, message='Forbidden', url=URL('https://doc-14-4c-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/pgotjmcuh77q0lk7p44rparfrhv459kp/1656403650000/11771870722949762109/*/16OgJ_OrfzUF_i3ftLjFn9kpcyoi7UJeO?e=download')
```
Like the three splits are processed in parallel by the workers, I imagine that the Google hosting is rate-limiting us.
cc @albertvillanova
| [
-0.2351139485836029,
0.13610345125198364,
-0.07504594326019287,
0.5219371318817139,
-0.1526188999414444,
0.10366693884134293,
0.15769927203655243,
0.2575743794441223,
0.06413610279560089,
0.12530608475208282,
-0.40464234352111816,
-0.283712774515152,
0.19132331013679504,
0.34746354818344116,
-0.1478431224822998,
-0.5061289072036743,
-0.2866167426109314,
0.27217090129852295,
0.19528385996818542,
0.22359599173069,
0.013259172439575195,
0.014992485754191875,
-0.48791033029556274,
0.04184337332844734,
-0.05180683359503746,
-0.26357221603393555,
-0.012865889817476273,
-0.17385238409042358,
-0.20634683966636658,
-0.6381925940513611,
-0.026731055229902267,
0.14753340184688568,
0.03172709792852402,
0.5636587142944336,
-0.00012023261660942808,
0.014795355498790741,
0.3858122229576111,
0.17923584580421448,
-0.1682431399822235,
0.08487768471240997,
-0.21780654788017273,
-0.0874597355723381,
0.0745692178606987,
0.06805791705846786,
-0.1737194061279297,
-0.33414891362190247,
0.11858916282653809,
0.19724386930465698,
0.2866550087928772,
0.2558346092700958,
0.10819954425096512,
0.20719295740127563,
-0.07966893166303635,
0.08663225173950195,
0.09619084745645523,
-0.20877449214458466,
-0.16600394248962402,
0.20521526038646698,
0.03127346187829971,
0.11485058069229126,
-0.3155056834220886,
0.2839358150959015,
0.07359232753515244,
0.07910853624343872,
-0.22250542044639587,
-0.17211692035198212,
-0.24801132082939148,
-0.39406818151474,
0.05156516283750534,
0.3105984926223755,
0.731961190700531,
0.18750452995300293,
-0.33077606558799744,
-0.17980240285396576,
-0.08266757428646088,
-0.09574972838163376,
0.2791728675365448,
0.330064594745636,
0.06543414294719696,
0.29410260915756226,
-0.48532333970069885,
0.08804051578044891,
-0.15731710195541382,
-0.08176100254058838,
-0.48226431012153625,
0.08146080374717712,
-0.10203815251588821,
0.05112816020846367,
0.4541066884994507,
0.024096205830574036,
0.1398598700761795,
-0.11946985125541687,
-0.01851734146475792,
-0.12159267067909241,
-0.39950689673423767,
-0.19534461200237274,
0.05832758918404579,
-0.05028102546930313,
-0.0016995593905448914,
0.32250773906707764,
-0.13768745958805084,
0.14193332195281982,
0.04975108057260513,
-0.012050367891788483,
0.3879062235355377,
0.15390920639038086,
0.0476713627576828,
0.5088419914245605,
0.5043916702270508,
0.09075802564620972,
0.18299433588981628,
0.12145867943763733,
0.15220175683498383,
-0.23263949155807495,
-0.3098062574863434,
-0.10090406984090805,
-0.11621642857789993,
-0.1113061010837555,
-0.4318717420101166,
0.4161761701107025,
-0.24358725547790527,
-0.26590511202812195,
0.06892185658216476,
0.48842358589172363,
-0.09717366844415665,
-0.18510815501213074,
-0.26096904277801514,
0.060113973915576935,
-0.26283663511276245,
-0.2275925874710083,
-0.1666334718465805,
0.05154896900057793,
-0.07986912131309509,
0.15794353187084198,
0.21974731981754303,
-0.352440744638443,
0.018874261528253555,
-0.007889267057180405,
0.21562279760837555,
-0.3113662302494049,
-0.025399262085556984,
-0.30166855454444885,
-0.26090869307518005,
0.5473193526268005,
0.2675771415233612,
-0.06158524006605148,
-0.17478832602500916,
0.01068039983510971,
-0.04859485104680061,
-0.07339548319578171,
-0.04164648801088333,
-0.37188485264778137,
0.13912758231163025,
0.10138363391160965,
-0.12378379702568054,
0.09352277219295502,
-0.17105063796043396,
0.19691595435142517,
0.11522578448057175,
-0.028291970491409302,
-0.14100521802902222,
0.04486943408846855,
-0.30737221240997314,
-0.021632445976138115,
0.10336737334728241,
0.6082614660263062,
-0.31455785036087036,
-0.018075931817293167,
-0.13599823415279388,
-0.2231253981590271,
-0.19338184595108032,
0.652991533279419,
-0.028582919389009476,
0.09882508963346481,
-0.35674721002578735,
0.4911690354347229,
0.11744792014360428,
-0.014983123168349266,
-0.5172006487846375,
0.27069970965385437,
-0.2794896364212036,
-0.251821905374527,
0.3812193274497986,
-0.20804360508918762,
0.5975350141525269,
-0.19011728465557098,
-0.019528254866600037,
0.03293061628937721,
-0.14219442009925842,
-0.07247816026210785,
-0.23775289952754974,
-0.031942591071128845,
0.18231870234012604,
0.10462477803230286,
0.36473581194877625,
-0.13670900464057922,
0.05587829649448395,
-0.4334183633327484,
0.23035931587219238,
0.06962015479803085,
0.06390932202339172,
0.30028969049453735,
0.06879431754350662,
-0.03291645646095276,
0.0832383930683136,
-0.14591321349143982,
-0.09522049874067307,
-0.0776829943060875,
-0.19002121686935425,
0.10402092337608337,
-0.07075147330760956,
-0.03357619419693947,
-0.5309188961982727,
-0.2681027948856354,
-0.1613667607307434,
-0.18387825787067413,
0.06521948426961899,
0.20789407193660736,
0.0017026737332344055,
-0.011938774958252907,
0.11785386502742767,
-0.08363139629364014,
-0.10521362721920013,
0.10058102011680603,
-0.06648872792720795,
0.4541676342487335,
-0.4388692378997803,
-0.050130292773246765,
0.21320661902427673,
0.02082417905330658,
0.3732471466064453,
-0.24507804214954376,
0.09541946649551392,
0.17034286260604858,
0.3011014461517334,
0.3527417778968811,
0.3361583352088928,
-0.02827213704586029,
0.37241530418395996,
-0.6632888913154602,
0.087465301156044,
0.022221645340323448,
-0.11617337912321091,
-0.1580205261707306,
-0.1842537522315979,
0.47409772872924805,
-0.16644848883152008,
0.14439739286899567,
0.05246736854314804,
0.20107150077819824,
0.1789790689945221,
-0.06638912111520767,
0.19201506674289703,
-0.3362649083137512,
0.3155112862586975,
0.22767773270606995,
0.058102983981370926,
0.000029610469937324524,
-0.36852017045021057,
0.2185974270105362,
0.2852844297885895,
-0.2122766524553299,
-0.0598490908741951,
0.02672366239130497,
0.1301242709159851,
-0.20085737109184265,
0.05188420042395592,
-0.1926199197769165,
0.04297107458114624,
0.08136599510908127,
0.17540685832500458,
0.14997848868370056,
0.2962667644023895,
-0.3158993422985077,
0.2426721751689911,
0.0016578063368797302,
-0.23147417604923248,
0.2494964599609375,
0.127879336476326,
-0.1209016665816307,
-0.19413119554519653,
-0.003513950854539871,
0.5323684215545654,
0.17821820080280304,
-0.4306623339653015,
0.05724823474884033,
-0.11580251902341843,
-0.1332545280456543,
0.006344034802168608,
-0.0487041175365448,
-0.2628743052482605,
-0.3462112247943878,
0.23376043140888214,
0.4256027638912201,
-0.15045511722564697,
0.18188270926475525,
-0.17215397953987122,
0.07774236798286438,
0.02785838209092617,
0.18317687511444092,
-0.1915406584739685,
0.01667194440960884,
-0.20560824871063232,
0.016619686037302017,
0.37257954478263855,
0.05286591127514839,
0.3883329927921295,
-0.23990000784397125,
-0.2262234389781952,
-0.27113839983940125,
-0.29944348335266113,
0.30273643136024475,
-0.19330169260501862,
0.0951867625117302,
-0.017858929932117462,
0.12280875444412231,
0.03667127341032028,
0.26102063059806824,
-0.11375893652439117,
0.10753297805786133,
-0.21651071310043335,
0.25725942850112915,
0.1692601591348648,
0.16271202266216278,
0.09139464795589447,
-0.40481218695640564,
-0.2813158631324768,
-0.37090691924095154,
0.23510003089904785,
-0.2510779798030853,
0.20942097902297974,
-0.1509638875722885,
-0.13965313136577606,
0.0017459387890994549,
-0.19999255239963531,
0.027220414951443672,
-0.30046871304512024,
0.3087654411792755,
0.2983323931694031,
-0.32855725288391113,
-0.3887522518634796,
0.06506583094596863,
0.1817324012517929,
-0.13202521204948425,
0.026585500687360764,
-0.5151017308235168,
0.14164918661117554,
-0.11249615252017975,
0.16118481755256653,
0.11307629197835922,
-0.15393029153347015,
0.5119367837905884,
-0.18926265835762024,
-0.03934977948665619,
-0.012340366840362549,
-0.2335829734802246,
-0.13697803020477295,
0.07818497717380524,
-0.0697554275393486,
-0.2745867371559143,
0.2668708562850952,
0.1100122481584549,
0.8642011880874634,
0.4821600317955017,
0.36398324370384216,
0.30971968173980713,
-0.08380033820867538,
0.241378515958786,
0.04418931528925896,
-0.08530481159687042,
0.14338497817516327,
0.02806255966424942,
-0.21098342537879944,
0.23675072193145752,
-0.11427051573991776,
-0.12714950740337372,
-0.2435884177684784,
-0.37788036465644836,
-0.3246923089027405,
-0.2042294591665268,
0.03350621834397316,
0.07570657879114151,
0.42621296644210815,
0.001032741740345955,
0.36786484718322754,
0.17962466180324554,
-0.20397010445594788,
-0.29006946086883545,
0.20553404092788696,
0.18112123012542725,
-0.2611308693885803,
0.0046986863017082214,
-0.07733875513076782,
-0.320624977350235,
0.2522258162498474,
0.14650671184062958,
0.4640839099884033,
-0.1324622482061386,
0.2793312966823578,
0.292612761259079,
0.07656417042016983,
0.5666611790657043,
-0.1663029044866562,
0.2966708540916443,
0.02360641211271286,
-0.24767425656318665,
0.09610477834939957,
-0.055957596749067307,
-0.24677225947380066,
0.13308125734329224,
0.29355090856552124,
0.27018022537231445,
-0.38062426447868347,
-0.13803905248641968,
0.35310912132263184,
-0.09881477057933807,
-0.16063876450061798,
-0.047493185847997665,
-0.06279425323009491,
-0.28526628017425537,
0.08202140033245087,
0.39437389373779297,
0.12005627900362015,
0.1486378163099289,
-0.21794308722019196,
-0.009808175265789032,
0.24192096292972565,
-0.3690631091594696,
-0.07271425426006317,
0.09312817454338074,
0.2646108865737915,
-0.11617358773946762,
0.22388842701911926,
0.3217231333255768,
-0.1433180421590805,
0.6905204653739929,
0.5700951218605042,
-0.02344999834895134,
0.04901467636227608,
0.3421074151992798,
-0.07243861258029938,
0.11140160262584686,
0.5431353449821472,
0.0934380367398262,
-0.12152061611413956,
0.3325262665748596,
0.5215824246406555,
-0.16970212757587433,
-0.3503081202507019,
0.3880406320095062,
-0.2637104094028473,
-0.4678007662296295,
-0.1990860253572464,
0.49138563871383667,
-0.01759391650557518,
-0.14766713976860046,
0.15948288142681122,
0.3462902307510376,
-0.09455221146345139,
0.0690171867609024,
0.0330035574734211,
0.9671002626419067,
0.050274305045604706,
-0.1287781149148941,
0.3340110182762146,
-0.3866034746170044,
0.12799857556819916,
-0.20554137229919434,
0.3415079116821289,
-0.4462074041366577,
-0.4037517011165619,
-0.23914898931980133,
-0.2649807333946228,
-0.05482061952352524,
-0.23140858113765717,
-0.30294153094291687,
0.17573262751102448,
-0.2952549457550049,
0.16614367067813873,
0.09749102592468262,
0.5235557556152344,
-0.22225429117679596,
0.2665550112724304,
-0.08964842557907104,
0.010432641953229904,
-0.04182063043117523,
0.1441245675086975,
-0.1031704917550087,
-0.24187426269054413,
0.017832133919000626,
-0.11958746612071991,
-0.6306002736091614,
0.007388226687908173,
0.27082666754722595,
0.1082419604063034,
-0.28983864188194275,
-0.33397623896598816,
0.2924886643886566,
-0.2670559883117676,
-0.1732892543077469,
-0.055509623140096664,
-0.23691415786743164,
0.09948994219303131,
-0.2698040306568146,
-0.00018386573356110603,
0.07483886927366257,
-0.06581795960664749,
0.20121727883815765,
-0.11924748122692108,
-0.24677804112434387,
-0.07713086158037186,
0.06259337812662125,
-0.32160860300064087,
-0.16489626467227936,
0.251575767993927,
-0.4494673013687134,
-0.4141688942909241,
0.44613116979599,
-0.39794671535491943,
-0.22719472646713257,
-0.2170829325914383,
0.03166349604725838,
-0.07357467710971832,
-0.2247602939605713,
0.1611924171447754,
0.14574940502643585,
-0.2533722519874573,
-0.15378683805465698,
0.37830838561058044,
0.4120924472808838,
0.22578850388526917,
0.369055837392807,
0.40590330958366394,
-0.3657914400100708,
-0.27505776286125183,
-0.25588494539260864,
0.016170721501111984,
-0.2788403034210205,
0.3174436688423157,
-0.5030751824378967,
-0.057527221739292145,
0.006841545924544334,
0.20623181760311127,
0.07676950842142105,
0.1860799640417099,
-0.33337751030921936,
-0.44154947996139526,
0.10518478602170944,
0.056659504771232605,
-0.15713496506214142,
0.10319167375564575,
-0.13478708267211914,
0.36776095628738403,
0.08009713888168335,
0.14407454431056976,
-0.2270505279302597,
-0.06625883281230927,
-0.3963353931903839,
0.10475599020719528,
-0.1367340087890625,
-0.2137811779975891,
0.08080477267503738,
0.030455946922302246,
-0.07156763225793839,
0.28451675176620483,
-0.3902549743652344,
-0.025519272312521935,
0.1756615787744522,
0.21060951054096222,
0.016959426924586296,
-0.17629988491535187,
-0.18708935379981995,
-0.005486976355314255,
-0.3033190369606018,
0.028578363358974457,
-0.12991690635681152,
-0.014175854623317719,
0.10486400127410889,
-0.07455714792013168,
0.0055047571659088135,
-0.23741987347602844,
0.07033102959394455,
0.16265125572681427,
-0.2788558006286621,
0.47933143377304077,
-0.0239414069801569,
0.49156320095062256,
0.15013788640499115,
0.01634715497493744,
-0.31854188442230225,
0.12730973958969116,
0.09458564221858978,
-0.15108522772789001,
0.17111188173294067,
-0.19787611067295074,
-0.049704939126968384,
0.028095608577132225,
0.5687909126281738,
0.6291226744651794,
-0.03511741757392883,
-0.1308140754699707,
-0.02217540144920349,
0.08767390251159668,
-0.22217771410942078,
-0.1344093233346939,
0.22567418217658997,
0.10733342170715332,
0.003104429692029953,
0.24859169125556946,
0.4646919071674347,
0.08392946422100067,
-0.11695052683353424,
0.23064804077148438,
0.31634604930877686,
0.2190326750278473,
0.2869843542575836,
0.4045434892177582,
-0.07633689790964127,
-0.019321385771036148,
0.5570166707038879,
-0.030130647122859955,
0.13245972990989685,
-0.012475289404392242,
-0.0886252298951149,
0.2562654912471771,
-0.24924179911613464,
0.19838856160640717,
0.198300302028656,
-0.2412460446357727,
0.2393762469291687,
0.2690976560115814,
-0.03568631410598755,
-0.14572250843048096,
0.017315760254859924,
0.33797982335090637,
-0.13712261617183685,
0.018387993797659874,
-0.3779567778110504,
0.4386039674282074,
-0.13764116168022156,
0.2811543941497803,
-0.05878951773047447,
-0.26282885670661926,
-0.1854822039604187,
0.303477942943573,
0.19193010032176971,
-0.04129458963871002,
0.21033839881420135,
0.08263859152793884,
-0.49328792095184326,
-0.33874595165252686,
0.029757944867014885,
0.1717865765094757,
0.3109457194805145,
-0.4097045958042145,
0.23047444224357605,
0.12306880950927734,
0.05210788547992706,
0.22995789349079132,
0.4798268675804138,
0.2566373348236084,
-0.08250490576028824,
-0.10954219102859497,
-0.18204328417778015,
0.13915087282657623,
-0.09335046261548996,
0.16048237681388855,
0.2491496354341507,
0.06360600888729095,
0.058628104627132416,
0.3999696969985962,
-0.020152682438492775,
-0.06054322421550751,
0.13530021905899048,
0.21757349371910095,
-0.03608841076493263,
-0.41647717356681824,
0.18088366091251373,
-0.14505308866500854,
-0.16946056485176086,
-0.014455799013376236,
-0.4000207781791687,
-0.15216213464736938,
0.3280567228794098,
0.31826651096343994,
-0.2360616773366928,
0.15751150250434875,
-0.08999521285295486,
0.02810480445623398,
0.04435146227478981,
0.48273780941963196,
0.43914973735809326,
0.09066611528396606,
-0.1538422852754593,
-0.1569739282131195,
-0.3672957718372345,
0.31389784812927246,
-0.23992300033569336,
0.052623309195041656,
0.24627472460269928,
0.26023396849632263,
-0.24084419012069702,
0.21289914846420288,
0.49460190534591675,
0.3121700584888458,
-0.04801904037594795,
0.48780950903892517,
-0.16040731966495514,
-0.02884213998913765,
0.0865182876586914,
0.0206475667655468,
-0.33994320034980774,
-0.14613504707813263,
0.443040132522583,
-0.14456456899642944,
0.009945426136255264,
-0.21006490290164948,
0.057985059916973114,
0.033748894929885864,
-0.2933706045150757,
0.44219473004341125,
0.3217921853065491,
0.5210052728652954,
0.162554532289505,
0.08813276886940002,
-0.13786981999874115,
0.058035094290971756,
-0.37529894709587097,
0.07420589029788971,
0.3928011655807495,
0.07623017579317093,
-0.035798922181129456,
-0.21641846001148224,
-0.261842280626297,
0.48437413573265076,
-0.09562960267066956,
0.4215499758720398,
-0.04517492651939392,
-0.11005751043558121,
-0.16025066375732422,
0.0068930527195334435,
0.28700876235961914,
0.13286522030830383,
0.1923479437828064,
-0.06205973029136658,
-0.42733877897262573,
-0.5517825484275818,
0.20624807476997375,
-0.47037824988365173,
-0.13869968056678772,
-0.04742280766367912,
0.2582261264324188,
0.3664180338382721,
-0.21535152196884155,
-0.347245454788208,
0.004822336137294769,
0.25672826170921326,
-0.13788190484046936,
-0.002552838996052742,
-0.0037317946553230286,
0.0519685335457325,
-0.08667445182800293,
-0.0015261918306350708,
0.17682048678398132,
0.3386674225330353,
-0.3482110798358917,
-0.1258605420589447,
-0.038904231041669846
] |
https://github.com/huggingface/datasets/issues/4580 | Dataset Viewer issue for multi_news | Thanks for reporting, @lewtun.
I forced the refreshing of the preview and it worked OK for train and validation splits.
I guess the error has to do with the data files being hosted at Google Drive: this gives errors when requested automatically using scripts.
We should host them to fix the error. Let's see if the license allows that. | ### Link
https://huggingface.co/datasets/multi_news
### Description
Not sure what the index error is referring to here:
```
Status code: 400
Exception: IndexError
Message: list index out of range
```
### Owner
No | 59 | Dataset Viewer issue for multi_news
### Link
https://huggingface.co/datasets/multi_news
### Description
Not sure what the index error is referring to here:
```
Status code: 400
Exception: IndexError
Message: list index out of range
```
### Owner
No
Thanks for reporting, @lewtun.
I forced the refreshing of the preview and it worked OK for train and validation splits.
I guess the error has to do with the data files being hosted at Google Drive: this gives errors when requested automatically using scripts.
We should host them to fix the error. Let's see if the license allows that. | [
-0.3764558434486389,
0.062172845005989075,
-0.00379360094666481,
0.3940582871437073,
0.07749432325363159,
0.26052284240722656,
0.5084827542304993,
0.5233292579650879,
0.2843765616416931,
0.22748655080795288,
-0.20431534945964813,
0.1423681080341339,
-0.11377085000276566,
0.3871573209762573,
-0.2802978456020355,
-0.33034956455230713,
-0.07453017681837082,
-0.010529503226280212,
0.15711551904678345,
0.1580393761396408,
-0.13354983925819397,
0.05828435719013214,
-0.36086803674697876,
-0.002582237124443054,
-0.3561914265155792,
-0.1675281673669815,
-0.08905214071273804,
0.09680363535881042,
-0.04188802093267441,
-0.36111098527908325,
-0.23006393015384674,
0.016874175518751144,
0.297223836183548,
0.6533505320549011,
-0.0001069190984708257,
0.14750975370407104,
0.22865259647369385,
0.0469844788312912,
-0.07404494285583496,
-0.053961217403411865,
-0.12865397334098816,
-0.1228964552283287,
0.14682848751544952,
-0.18551293015480042,
-0.22168010473251343,
-0.30897220969200134,
-0.06450329720973969,
-0.15880197286605835,
0.41898787021636963,
0.4972324073314667,
0.22440874576568604,
0.2676219642162323,
0.15079817175865173,
-0.15905524790287018,
0.14469748735427856,
-0.1556328535079956,
-0.146991565823555,
0.10404571890830994,
-0.05481967329978943,
0.04438130557537079,
-0.34938520193099976,
0.42054662108421326,
0.14252491295337677,
0.08238166570663452,
-0.27216845750808716,
0.02929239720106125,
-0.012390807271003723,
-0.39100831747055054,
0.006661754101514816,
0.29422226548194885,
0.5356866121292114,
0.02615926042199135,
-0.25265029072761536,
-0.17533782124519348,
0.05141131207346916,
0.026410913094878197,
0.22886639833450317,
0.36748069524765015,
0.007962826639413834,
0.32872894406318665,
-0.4099177122116089,
-0.03246688470244408,
-0.24922075867652893,
0.025817647576332092,
-0.4765881896018982,
0.4129195213317871,
-0.06676103174686432,
0.18538063764572144,
0.5011553168296814,
-0.10018247365951538,
0.3509460389614105,
0.08309817314147949,
-0.11550910770893097,
-0.20107632875442505,
-0.4111230671405792,
-0.1547573208808899,
-0.010006427764892578,
-0.2221631109714508,
-0.1763463318347931,
0.1032942533493042,
-0.05706091225147247,
0.20566332340240479,
-0.09170233458280563,
0.13123120367527008,
0.4501999616622925,
-0.06182650849223137,
-0.040606334805488586,
0.4320400059223175,
0.5577641725540161,
0.09377266466617584,
0.16025914251804352,
0.02502063475549221,
-0.044548701494932175,
-0.35721513628959656,
-0.3778299391269684,
-0.014723867177963257,
0.17879383265972137,
-0.07486242800951004,
-0.48579880595207214,
0.3119417428970337,
-0.2290869653224945,
-0.19324174523353577,
0.17792780697345734,
0.36074087023735046,
0.06092562898993492,
0.08501657843589783,
-0.16414643824100494,
0.21065928041934967,
-0.11425112187862396,
-0.2683042287826538,
-0.10937343537807465,
0.02650747448205948,
-0.1932530701160431,
0.09119999408721924,
0.33233147859573364,
-0.12575355172157288,
-0.03731958568096161,
-0.007514258846640587,
0.20625123381614685,
-0.36463662981987,
-0.028306324034929276,
-0.22978441417217255,
-0.07053113728761673,
0.4008162021636963,
0.1624724566936493,
0.051255494356155396,
0.2003573626279831,
-0.23743963241577148,
0.11294885724782944,
0.13330155611038208,
-0.25697797536849976,
-0.4581054151058197,
-0.2735975980758667,
0.19806420803070068,
-0.08915025740861893,
0.12184804677963257,
0.05602547153830528,
0.2744300663471222,
0.03379721939563751,
-0.10863780975341797,
-0.07886715978384018,
-0.0570138543844223,
-0.09639860689640045,
-0.03313101828098297,
0.08627089858055115,
0.31885385513305664,
-0.4566912353038788,
0.18821364641189575,
-0.3810955584049225,
-0.047699134796857834,
-0.1866130530834198,
0.3736555278301239,
-0.2756316065788269,
0.15731504559516907,
-0.38458988070487976,
0.19769008457660675,
0.2829599380493164,
-0.10514819622039795,
-0.1612550914287567,
0.23512879014015198,
-0.33773964643478394,
-0.20654673874378204,
0.14605091512203217,
0.00033789733424782753,
0.2964789867401123,
-0.15924794971942902,
-0.011873200535774231,
0.1232491210103035,
-0.06841827183961868,
0.0452488511800766,
-0.1476229727268219,
-0.03588300570845604,
0.07393807917833328,
0.3006989359855652,
0.3438202142715454,
-0.11449431627988815,
0.17905133962631226,
-0.3471643626689911,
0.19694441556930542,
-0.013551939278841019,
0.09241171181201935,
0.37714534997940063,
0.0580778606235981,
0.06823273003101349,
0.09927673637866974,
-0.22250893712043762,
-0.3092935085296631,
0.08548831194639206,
0.09548436105251312,
-0.15891008079051971,
0.08925656974315643,
-0.17099247872829437,
-0.38260921835899353,
-0.17000287771224976,
-0.15755988657474518,
-0.13021250069141388,
0.15700514614582062,
-0.01000194251537323,
-0.3697492480278015,
0.08325468003749847,
-0.18615949153900146,
-0.11660685390233994,
0.15889687836170197,
0.10422320663928986,
-0.21126116812229156,
0.46750524640083313,
-0.41011273860931396,
-0.03521602600812912,
0.06381376087665558,
-0.06764999777078629,
0.19655045866966248,
-0.23344016075134277,
-0.016016611829400063,
0.43455958366394043,
0.22165879607200623,
-0.021264515817165375,
0.39177024364471436,
0.061824552714824677,
0.29794979095458984,
-0.6650927066802979,
0.22411544620990753,
0.21037277579307556,
-0.15006375312805176,
-0.11191532760858536,
-0.5264129638671875,
0.31933459639549255,
-0.2949371337890625,
0.09225135296583176,
-0.19554436206817627,
0.325443297624588,
0.2181202471256256,
-0.12633131444454193,
0.2354375422000885,
-0.26370930671691895,
0.008324757218360901,
0.022507375106215477,
-0.10000661015510559,
-0.09336869418621063,
-0.37900906801223755,
0.12855669856071472,
0.23166771233081818,
0.03184480220079422,
0.09766922891139984,
0.2039484679698944,
-0.09026875346899033,
-0.08289185166358948,
-0.060060106217861176,
0.14206744730472565,
0.24831248819828033,
0.1290096938610077,
0.017811104655265808,
0.10344520211219788,
0.40346378087997437,
-0.387076735496521,
0.08961455523967743,
0.009120211005210876,
0.05941055715084076,
0.3340965509414673,
0.07032885402441025,
-0.13770657777786255,
-0.10292720794677734,
-0.03515920788049698,
0.546336829662323,
0.29221585392951965,
-0.445485383272171,
0.11100827902555466,
-0.10919619351625443,
-0.2679106593132019,
-0.1165945827960968,
-0.13830511271953583,
-0.32660984992980957,
-0.30340176820755005,
0.16181519627571106,
0.5131426453590393,
-0.2991558909416199,
0.22280064225196838,
0.010673459619283676,
0.20014703273773193,
0.23793475329875946,
0.33813613653182983,
0.07178904116153717,
-0.043737221509218216,
-0.18175449967384338,
0.1363598257303238,
0.4212195575237274,
0.012141009792685509,
0.036332953721284866,
0.045570433139801025,
0.014862585812807083,
-0.6325135231018066,
-0.2165561318397522,
0.06300368905067444,
-0.24234049022197723,
0.31436848640441895,
0.05576803907752037,
0.10742395371198654,
-0.07657124102115631,
-0.008962210267782211,
0.18931995332241058,
0.03754062205553055,
0.10033052414655685,
0.1797260344028473,
0.23989513516426086,
0.13604828715324402,
0.03960435464978218,
-0.3488306403160095,
-0.16518747806549072,
-0.4232281446456909,
0.20020850002765656,
-0.3216839134693146,
0.06306171417236328,
-0.16057971119880676,
0.10824708640575409,
-0.020107824355363846,
0.05316374450922012,
-0.21180905401706696,
-0.19110290706157684,
0.21365144848823547,
0.330003947019577,
-0.38996070623397827,
-0.5615310668945312,
0.08401115238666534,
0.26109665632247925,
-0.2347874641418457,
-0.1092105433344841,
-0.5738492608070374,
0.007483464665710926,
-0.054722487926483154,
0.055514369159936905,
0.03485267236828804,
-0.12090681493282318,
0.34198832511901855,
-0.04763719066977501,
-0.17042513191699982,
-0.033889204263687134,
-0.13219726085662842,
-0.028142131865024567,
-0.010006144642829895,
0.04390408471226692,
-0.06706855446100235,
0.2418825328350067,
-0.015329640358686447,
0.6898971199989319,
0.37290021777153015,
0.1451558619737625,
0.3215120732784271,
-0.13067321479320526,
0.45808640122413635,
-0.012800700962543488,
-0.2762194871902466,
0.12301243096590042,
-0.0912884920835495,
-0.19372998178005219,
0.2732784152030945,
-0.05391770601272583,
-0.3583500385284424,
-0.23845022916793823,
0.05378173664212227,
-0.3008591830730438,
-0.27913030982017517,
0.3222578167915344,
-0.09760043025016785,
0.06469422578811646,
-0.07317420840263367,
0.1962607502937317,
0.15104299783706665,
-0.3338155150413513,
-0.03619122505187988,
0.14916753768920898,
0.0034740641713142395,
-0.2857319712638855,
0.006908010691404343,
-0.12953674793243408,
-0.11687257140874863,
0.3530615568161011,
0.029033372178673744,
0.29606491327285767,
-0.14258140325546265,
0.0031092241406440735,
0.19923695921897888,
0.10176485776901245,
0.6248714327812195,
-0.255935400724411,
-0.026083029806613922,
0.18864642083644867,
0.024658173322677612,
-0.14656348526477814,
-0.2826143801212311,
-0.40777909755706787,
0.49448442459106445,
-0.08433203399181366,
0.4455231726169586,
-0.06386366486549377,
-0.1830250471830368,
0.4646904170513153,
-0.14795662462711334,
-0.1887636035680771,
-0.24789221584796906,
-0.07969214022159576,
0.18361029028892517,
-0.14549970626831055,
0.12367838621139526,
0.13892808556556702,
0.0025687976740300655,
-0.38418176770210266,
-0.11692149937152863,
0.162090465426445,
-0.2640114426612854,
-0.11630821228027344,
0.0664258599281311,
0.2551274001598358,
-0.022768614813685417,
0.14475315809249878,
0.404461532831192,
0.08640464395284653,
0.5206326842308044,
0.558789849281311,
-0.03455817326903343,
-0.10304194688796997,
0.34133073687553406,
-0.3077836036682129,
0.09914042800664902,
0.4024375081062317,
0.0011711763218045235,
-0.00017189234495162964,
0.22656428813934326,
0.4141753911972046,
-0.2760332524776459,
-0.05959206447005272,
0.45625776052474976,
-0.14658237993717194,
-0.3447868227958679,
-0.15435834228992462,
0.30662256479263306,
-0.04104259982705116,
-0.1484600305557251,
0.2704557180404663,
0.03672551363706589,
-0.09039032459259033,
0.0032958509400486946,
-0.1080574169754982,
0.7496221661567688,
-0.1560107320547104,
-0.12118928134441376,
-0.08880236744880676,
-0.07329288125038147,
0.012810003012418747,
-0.3061624765396118,
0.32317209243774414,
-0.5259135961532593,
-0.4215824604034424,
-0.14568880200386047,
-0.06838877499103546,
-0.01954454928636551,
0.07181093841791153,
-0.34453579783439636,
0.04691563919186592,
-0.07744935154914856,
0.09890797734260559,
-0.1701493114233017,
0.3709460496902466,
-0.09620939940214157,
0.06502978503704071,
0.04530804976820946,
0.10464726388454437,
-0.11574205756187439,
-0.08122527599334717,
-0.13229034841060638,
-0.1419309824705124,
-0.04537001624703407,
-0.12381865829229355,
-0.5633766055107117,
-0.07368433475494385,
0.15795636177062988,
0.36129385232925415,
-0.15323637425899506,
-0.31638091802597046,
0.2781701683998108,
0.26082098484039307,
-0.12720955908298492,
-0.03489208593964577,
-0.3641623258590698,
0.026722677052021027,
-0.18007636070251465,
-0.1824800968170166,
-0.10118194669485092,
-0.0369541235268116,
0.28473830223083496,
0.09561661630868912,
-0.44534799456596375,
0.1968110203742981,
0.042807672172784805,
-0.2150738388299942,
-0.10266917198896408,
0.26005974411964417,
-0.04930340498685837,
-0.4864805042743683,
0.3215419054031372,
-0.33705243468284607,
-0.21781466901302338,
-0.23956751823425293,
0.16055765748023987,
-0.04546757787466049,
-0.0721353068947792,
0.1626339703798294,
0.10751007497310638,
-0.23952838778495789,
-0.013108216226100922,
0.4199145436286926,
0.13212332129478455,
0.1197013109922409,
0.3280138373374939,
0.5188379287719727,
-0.14940834045410156,
-0.3351185619831085,
0.27702265977859497,
0.3494585156440735,
-0.3541729152202606,
0.24104192852973938,
-0.2566007077693939,
-0.05926864594221115,
0.3771708309650421,
0.14034928381443024,
0.18082720041275024,
0.09522471576929092,
-0.2820759415626526,
-0.5346914529800415,
0.028631197288632393,
0.10003897547721863,
-0.136533722281456,
0.13472667336463928,
-0.29287469387054443,
-0.14707887172698975,
0.21985723078250885,
-0.09802500903606415,
-0.34588122367858887,
0.10994988679885864,
-0.3375976085662842,
0.10433490574359894,
-0.1420522779226303,
-0.17527350783348083,
0.0352870337665081,
-0.0071077728644013405,
0.006765894591808319,
-0.05559859424829483,
-0.22301681339740753,
-0.19933924078941345,
0.12924456596374512,
0.12622715532779694,
0.009483537636697292,
-0.12023162096738815,
-0.18564867973327637,
-0.28522366285324097,
-0.46404463052749634,
-0.12765799462795258,
0.011637754738330841,
-0.02335977926850319,
0.1515323370695114,
-0.12013977020978928,
0.23603682219982147,
-0.3160705268383026,
0.037033773958683014,
-0.079857237637043,
-0.09079228341579437,
0.5648566484451294,
-0.10074470192193985,
0.24321776628494263,
-0.007814356125891209,
0.022977255284786224,
-0.2797588109970093,
0.20718947052955627,
0.23411734402179718,
0.09199079126119614,
0.21084678173065186,
-0.3652820587158203,
-0.06345707923173904,
0.11593113839626312,
0.7576632499694824,
0.3996254801750183,
-0.3721903860569,
-0.053863294422626495,
0.3097574710845947,
0.21650287508964539,
-0.22298525273799896,
-0.12984204292297363,
0.28778013586997986,
-0.043750979006290436,
0.14052654802799225,
0.21861231327056885,
0.3516613245010376,
0.0690966546535492,
-0.13154463469982147,
0.14786255359649658,
0.35735583305358887,
0.1908450722694397,
0.2285742461681366,
0.2113448828458786,
-0.14130288362503052,
-0.042333152145147324,
0.3328135311603546,
-0.13732647895812988,
0.23622459173202515,
0.43077999353408813,
-0.0805210992693901,
0.1900101751089096,
0.16854670643806458,
0.17135271430015564,
0.3902515769004822,
-0.37337538599967957,
0.32901087403297424,
-0.06644630432128906,
-0.11393333971500397,
-0.2249940037727356,
-0.09225292503833771,
0.38486942648887634,
-0.3861072063446045,
-0.03108590468764305,
-0.5464268922805786,
0.2540092170238495,
-0.10973083227872849,
0.35389840602874756,
0.1640544980764389,
-0.1533765345811844,
-0.2088577151298523,
0.22664296627044678,
0.06311863660812378,
0.2057678997516632,
0.3393823206424713,
0.10470879077911377,
-0.19915051758289337,
-0.2275879979133606,
0.08559055626392365,
0.1741851568222046,
0.31270474195480347,
-0.40685778856277466,
0.24712754786014557,
0.31389278173446655,
-0.14706186950206757,
0.24836501479148865,
0.5268663763999939,
0.3770277202129364,
0.08304284512996674,
-0.041440751403570175,
-0.015637647360563278,
-0.08592404425144196,
-0.08311224728822708,
0.12879428267478943,
0.16935096681118011,
0.13849245011806488,
-0.00540594756603241,
0.3157975971698761,
0.10616327822208405,
-0.1719348132610321,
0.14056797325611115,
0.18894003331661224,
0.2474938929080963,
-0.14198461174964905,
-0.3157971501350403,
-0.06975038349628448,
-0.20175155997276306,
-0.05512559413909912,
-0.5200846195220947,
-0.31211477518081665,
0.05472107231616974,
0.3886946439743042,
-0.2195451855659485,
0.14218592643737793,
0.05099805071949959,
0.10125312954187393,
0.22207076847553253,
0.5995473861694336,
0.19940292835235596,
0.14036034047603607,
-0.2217206060886383,
-0.2706107497215271,
-0.5612105131149292,
0.3422015905380249,
-0.22873574495315552,
0.10573725402355194,
0.16274909675121307,
0.13308584690093994,
-0.07363135367631912,
0.3023560047149658,
0.5604807138442993,
0.0616275779902935,
0.16862167418003082,
0.4157721698284149,
-0.45052090287208557,
-0.03992268815636635,
0.117882139980793,
0.05778985470533371,
-0.15357038378715515,
-0.02304018661379814,
0.4648154675960541,
0.029030989855527878,
0.002235196530818939,
-0.06113233417272568,
-0.006669186055660248,
-0.1478123962879181,
-0.17075493931770325,
0.2890504002571106,
0.010173145681619644,
0.3638361394405365,
0.0759715735912323,
0.128657266497612,
-0.20055487751960754,
-0.0573660247027874,
-0.24150855839252472,
0.23029935359954834,
0.5023837685585022,
0.2997071444988251,
-0.2058791071176529,
-0.21547220647335052,
-0.2438989132642746,
0.2061002403497696,
0.004586048424243927,
0.20525363087654114,
-0.28237009048461914,
-0.08710108697414398,
-0.12587642669677734,
-0.003942012786865234,
0.39613279700279236,
0.1287931203842163,
0.1205194815993309,
-0.052198708057403564,
-0.1154073104262352,
-0.47635433077812195,
0.308602899312973,
-0.2770828306674957,
-0.22679199278354645,
-0.15509411692619324,
0.2308523952960968,
0.00016814470291137695,
0.07208751142024994,
-0.6060618758201599,
-0.055845826864242554,
0.26763102412223816,
0.02194088324904442,
-0.18396823108196259,
-0.09192867577075958,
-0.08022114634513855,
-0.2354421615600586,
-0.052338212728500366,
0.05115576088428497,
0.26793915033340454,
-0.2619660794734955,
0.1428152620792389,
0.06856513768434525
] |
https://github.com/huggingface/datasets/issues/4578 | [Multi Configs] Use directories to differentiate between subsets/configurations | How to set new split names, instead of train/test/validation? For example, I have a local dataset, consists of several subsets, named "A", "B", and "C". How can I create a huggingface dataset, with splits A/B/C ?
The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets with subsets that is hosted on another server. How to do it if my datasets are local? | Currently to define several subsets/configurations of your dataset, you need to use a dataset script.
However it would be nice to have a no-code way to to this.
For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per configuration.
These structures are not supported right now, but would be nice to have:
```
my_dataset_repository/
├── README.md
├── en/
│ ├── train.csv
│ └── test.csv
└── fr/
├── train.csv
└── test.csv
```
Or with one directory per split:
```
my_dataset_repository/
├── README.md
├── en/
│ ├── train/
│ │ ├── shard_0.csv
│ │ └── shard_1.csv
│ └── test/
│ ├── shard_0.csv
│ └── shard_1.csv
└── fr/
├── train/
│ ├── shard_0.csv
│ └── shard_1.csv
└── test/
├── shard_0.csv
└── shard_1.csv
```
cc @stevhliu @albertvillanova
This can be specified in the README as YAML with
```
configs:
- config_name: en
data_dir: en
- config_name: fr
data_dir: fr
``` | 64 | [Multi Configs] Use directories to differentiate between subsets/configurations
Currently to define several subsets/configurations of your dataset, you need to use a dataset script.
However it would be nice to have a no-code way to to this.
For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per configuration.
These structures are not supported right now, but would be nice to have:
```
my_dataset_repository/
├── README.md
├── en/
│ ├── train.csv
│ └── test.csv
└── fr/
├── train.csv
└── test.csv
```
Or with one directory per split:
```
my_dataset_repository/
├── README.md
├── en/
│ ├── train/
│ │ ├── shard_0.csv
│ │ └── shard_1.csv
│ └── test/
│ ├── shard_0.csv
│ └── shard_1.csv
└── fr/
├── train/
│ ├── shard_0.csv
│ └── shard_1.csv
└── test/
├── shard_0.csv
└── shard_1.csv
```
cc @stevhliu @albertvillanova
This can be specified in the README as YAML with
```
configs:
- config_name: en
data_dir: en
- config_name: fr
data_dir: fr
```
How to set new split names, instead of train/test/validation? For example, I have a local dataset, consists of several subsets, named "A", "B", and "C". How can I create a huggingface dataset, with splits A/B/C ?
The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets with subsets that is hosted on another server. How to do it if my datasets are local? | [
-0.23412667214870453,
-0.324768602848053,
0.02036118507385254,
0.10792143642902374,
0.03106473758816719,
0.026850387454032898,
0.4918360710144043,
-0.024805400520563126,
0.018607832491397858,
0.2816470265388489,
-0.2329690307378769,
-0.11118800938129425,
-0.18601039052009583,
0.5638315081596375,
0.21298189461231232,
-0.07998920977115631,
0.16068384051322937,
-0.03785121440887451,
-0.07606001198291779,
-0.028395460918545723,
-0.10849650204181671,
0.017732039093971252,
0.046341732144355774,
-0.16502468287944794,
-0.4376400411128998,
-0.1900199055671692,
-0.5069758296012878,
0.27957722544670105,
-0.018962470814585686,
-0.09821265190839767,
0.2113942801952362,
0.16744370758533478,
-0.13461154699325562,
0.46830907464027405,
-0.00012484431499615312,
0.012000754475593567,
-0.046640604734420776,
-0.19762477278709412,
-0.19175145030021667,
-0.27620476484298706,
-0.443744421005249,
-0.36544743180274963,
0.20106230676174164,
-0.3091816306114197,
0.20834776759147644,
0.0744553655385971,
0.07649710774421692,
-0.3699930012226105,
0.31682461500167847,
-0.005753207951784134,
0.03272668272256851,
-0.0016352329403162003,
-0.29618486762046814,
-0.19779962301254272,
-0.048694707453250885,
0.6673867106437683,
-0.3536542057991028,
0.13962483406066895,
0.12016969174146652,
-0.18715479969978333,
-0.017591916024684906,
-0.10326609015464783,
-0.006399480625987053,
0.15809795260429382,
0.2969702184200287,
0.28051090240478516,
-0.32740622758865356,
-0.3444729149341583,
-0.06863535940647125,
0.5523079037666321,
0.3066025376319885,
-0.3870142996311188,
-0.5057594776153564,
-0.5575496554374695,
-0.11954236030578613,
-0.21011920273303986,
0.06980696320533752,
0.4046534597873688,
-0.09851261973381042,
0.21241000294685364,
-0.5787847638130188,
-0.3413664400577545,
-0.17917978763580322,
0.12345751374959946,
0.2309069037437439,
0.3404328227043152,
0.05848962068557739,
0.1544770896434784,
0.2825583815574646,
0.056494951248168945,
-0.138401061296463,
-0.21280717849731445,
0.0008125118911266327,
0.1619032770395279,
-0.2795005440711975,
-0.20069704949855804,
-0.3683943450450897,
0.09204892069101334,
0.3548715114593506,
0.42074722051620483,
-0.07305404543876648,
-0.018967371433973312,
-0.07778915017843246,
0.09266310930252075,
0.07680033147335052,
0.062103744596242905,
0.307282030582428,
0.273348867893219,
0.19658546149730682,
-0.04364384338259697,
0.2860904633998871,
0.024088982492685318,
0.0760856568813324,
-0.3253239095211029,
-0.3224465548992157,
0.030341673642396927,
0.05424047261476517,
0.1900838017463684,
0.18564757704734802,
-0.19427989423274994,
-0.04725603386759758,
-0.24410083889961243,
0.2674335241317749,
0.1961694210767746,
-0.017059072852134705,
-0.38617953658103943,
-0.3505186438560486,
0.4047803282737732,
-0.24597886204719543,
-0.021726813167333603,
-0.0821392834186554,
0.17254763841629028,
-0.05170968919992447,
0.39206361770629883,
0.12326493859291077,
-0.22606460750102997,
0.2065659463405609,
0.10251088440418243,
0.46130436658859253,
-0.04717109724879265,
-0.046320535242557526,
-0.05088285356760025,
-0.060776449739933014,
0.20517386496067047,
-0.02504856139421463,
0.026863014325499535,
0.089434914290905,
-0.30908578634262085,
-0.27471306920051575,
-0.33703330159187317,
-0.22276079654693604,
-0.40975221991539,
-0.08784942328929901,
-0.08344271034002304,
-0.15861649811267853,
0.17149294912815094,
-0.2208518087863922,
0.4845549762248993,
0.049335360527038574,
0.24332305788993835,
0.1128273606300354,
0.36038118600845337,
-0.20914584398269653,
-0.27194565534591675,
0.30048614740371704,
0.6565503478050232,
-0.22051198780536652,
-0.3736797273159027,
-0.008334035985171795,
-0.1967160403728485,
-0.0886208787560463,
0.17510546743869781,
-0.17378433048725128,
0.14775630831718445,
-0.0838688537478447,
0.3352345824241638,
0.3931213617324829,
-0.12587870657444,
0.28125229477882385,
0.2054305523633957,
-0.057977061718702316,
-0.20888227224349976,
0.43083247542381287,
-0.012336630374193192,
0.12204403430223465,
-0.05025727301836014,
-0.1323826164007187,
0.3278694152832031,
-0.22041310369968414,
-0.12489299476146698,
0.22783108055591583,
-0.3239658772945404,
-0.2501884698867798,
0.12283843755722046,
-0.06018182262778282,
-0.08980274945497513,
0.44288843870162964,
-0.17922332882881165,
0.22004878520965576,
-0.29452478885650635,
0.2561209797859192,
0.28272873163223267,
0.14857669174671173,
0.525235116481781,
-0.26058122515678406,
-0.2450532615184784,
-0.7303609848022461,
0.2480817437171936,
0.10458053648471832,
0.06301343441009521,
0.27352267503738403,
-0.3160642385482788,
-0.06858977675437927,
-0.25541287660598755,
-0.18268270790576935,
-0.23104611039161682,
-0.12035851925611496,
0.23912684619426727,
0.23001402616500854,
-0.1856115609407425,
-0.5528432130813599,
0.21457399427890778,
0.30590251088142395,
0.319823294878006,
-0.5035218596458435,
0.2094804048538208,
0.008778471499681473,
0.014297752641141415,
-0.16950510442256927,
0.21499216556549072,
-0.055493056774139404,
-0.45942291617393494,
0.17176923155784607,
0.6743789315223694,
0.243831604719162,
0.05475715175271034,
0.3312928378582001,
0.32868492603302,
0.2867566645145416,
0.14050190150737762,
0.2276199609041214,
-0.43421271443367004,
-0.15200640261173248,
-0.06802918016910553,
-0.36822620034217834,
0.5962910652160645,
-0.2270415872335434,
0.26722535490989685,
-0.0622088648378849,
0.0544215589761734,
0.08996972441673279,
-0.16448047757148743,
-0.1882587969303131,
-0.4633115828037262,
0.17191565036773682,
-0.10972586274147034,
0.219461128115654,
-0.05113985389471054,
-0.2989357113838196,
-0.2737369239330292,
0.06897242367267609,
-0.20027852058410645,
0.15434113144874573,
0.01301385834813118,
0.2716669738292694,
0.11727491766214371,
0.015051443129777908,
0.5214888453483582,
0.26421624422073364,
-0.012113641947507858,
-0.03950667008757591,
0.1718299835920334,
-0.17038685083389282,
-0.19454839825630188,
0.17166951298713684,
-0.047857850790023804,
0.08451034128665924,
-0.06238298863172531,
-0.2416248917579651,
-0.37495896220207214,
-0.08742240071296692,
-0.3013601005077362,
0.23186717927455902,
-0.20499348640441895,
-0.25071820616722107,
0.12191305309534073,
-0.42759785056114197,
0.025624170899391174,
-0.41013357043266296,
-0.25521090626716614,
-0.39855098724365234,
-0.02692977711558342,
-0.006375789642333984,
-0.06756232678890228,
-0.04857529699802399,
0.22926902770996094,
0.11838415265083313,
0.1833406388759613,
-0.23092807829380035,
-0.17786362767219543,
0.12494684755802155,
-0.09619175642728806,
0.0972638726234436,
-0.07589490711688995,
0.11151699721813202,
0.09665706753730774,
0.23594772815704346,
-0.1641407161951065,
-0.20489920675754547,
-0.43453001976013184,
-0.07356784492731094,
0.22905278205871582,
-0.1893213540315628,
0.3725414574146271,
0.491834431886673,
0.051785796880722046,
0.07717982679605484,
-0.26839393377304077,
0.3073931634426117,
0.3651341497898102,
-0.0953405499458313,
-0.15719327330589294,
0.14391584694385529,
0.02051362209022045,
-0.11276222765445709,
-0.3384931981563568,
-0.3825168013572693,
-0.11749285459518433,
0.41796934604644775,
-0.02316313609480858,
0.29063114523887634,
0.3812079429626465,
0.1307222694158554,
-0.12525427341461182,
-0.397764652967453,
-0.09912070631980896,
0.18063977360725403,
-0.2413334846496582,
0.22822734713554382,
-0.31658241152763367,
0.0924859344959259,
0.05739797279238701,
0.0022478383034467697,
-0.07931549847126007,
0.18448947370052338,
-0.09710719436407089,
-0.031137928366661072,
-0.1321791261434555,
0.23925000429153442,
0.28569912910461426,
0.29091504216194153,
0.35470861196517944,
0.13582473993301392,
0.14800919592380524,
-0.10439688712358475,
-0.21195201575756073,
0.2335812747478485,
0.19031763076782227,
0.058260608464479446,
0.1436350792646408,
0.16290047764778137,
-0.18892580270767212,
0.44719570875167847,
0.0922301709651947,
0.1969517022371292,
0.12920692563056946,
-0.2697363495826721,
0.29961010813713074,
-0.007090255618095398,
-0.15755213797092438,
0.22227561473846436,
0.14938901364803314,
-0.05023268610239029,
0.28697866201400757,
0.276981920003891,
0.24788132309913635,
-0.2632216215133667,
0.041621360927820206,
-0.10205376893281937,
-0.3248681426048279,
0.05912493169307709,
-0.10003902018070221,
0.2603931427001953,
-0.32912078499794006,
-0.2715548574924469,
0.06404845416545868,
0.15008556842803955,
-0.28098803758621216,
0.6078440546989441,
-0.11078942567110062,
0.16208642721176147,
-0.6733850240707397,
0.14700107276439667,
0.12068402767181396,
0.17384357750415802,
0.1569489985704422,
-0.17237921059131622,
-0.0864853784441948,
-0.08897245675325394,
0.041350629180669785,
0.2483319342136383,
0.5871595144271851,
-0.2700510621070862,
-0.23255525529384613,
-0.15059323608875275,
-0.2905595302581787,
-0.15592090785503387,
-0.06870964169502258,
-0.08189380913972855,
0.16247282922267914,
-0.009379357099533081,
0.5214820504188538,
-0.4144814610481262,
-0.40826836228370667,
0.19356656074523926,
0.47620007395744324,
-0.23567065596580505,
0.0537356398999691,
-0.11150304228067398,
-0.23506155610084534,
-0.2781829237937927,
-0.12804901599884033,
-0.1856798678636551,
-0.03771504759788513,
0.25625696778297424,
0.01995868608355522,
0.101779043674469,
-0.007323119789361954,
0.10599493980407715,
0.18417267501354218,
-0.012567101046442986,
0.008003010414540768,
0.021791204810142517,
0.2476285845041275,
0.16046851873397827,
0.4851464629173279,
0.349339097738266,
-0.5696817636489868,
-0.3304799199104309,
-0.0817783996462822,
0.05709081515669823,
0.6447615027427673,
0.23035648465156555,
0.18199138343334198,
0.19616253674030304,
0.2121535688638687,
0.2845637798309326,
-0.27662622928619385,
0.04574215039610863,
0.046649664640426636,
-0.04540238901972771,
-0.23024100065231323,
-0.6090314984321594,
0.3977096378803253,
0.1289328932762146,
-0.04518405348062515,
0.18763744831085205,
0.38072365522384644,
-0.30450573563575745,
0.07139106839895248,
0.049050312489271164,
0.7370535135269165,
-0.1877625733613968,
0.056001532822847366,
-0.0691281110048294,
-0.047783348709344864,
0.4314691722393036,
-0.1268584430217743,
0.04126952588558197,
-0.19020654261112213,
0.023973874747753143,
-0.2056647688150406,
-0.11655046790838242,
0.6872880458831787,
0.4540812373161316,
-0.09848999232053757,
0.4649142920970917,
-0.11896905303001404,
0.2804275155067444,
-0.28137052059173584,
0.08308358490467072,
-0.2384415566921234,
-0.36990436911582947,
0.05052529275417328,
-0.06920899450778961,
0.07402466982603073,
-0.01823630928993225,
0.19646695256233215,
0.03813029080629349,
-0.24687246978282928,
0.033384330570697784,
-0.23961831629276276,
-0.3903307318687439,
-0.3249441683292389,
0.04644663631916046,
0.217903733253479,
-0.18765096366405487,
0.11382190883159637,
0.5602807402610779,
0.33893901109695435,
0.1733521670103073,
0.02965819649398327,
0.06384187936782837,
-0.2775252163410187,
0.08230690658092499,
-0.36264634132385254,
-0.25454020500183105,
0.07664023339748383,
0.20495012402534485,
-0.31714117527008057,
-0.33404675126075745,
-0.04852442443370819,
-0.031691618263721466,
-0.13565999269485474,
0.09836146235466003,
-0.13984781503677368,
-0.24007679522037506,
0.22401320934295654,
-0.07574814558029175,
0.14532005786895752,
-0.1780502051115036,
-0.08689168095588684,
0.06618206202983856,
0.006949072703719139,
0.07840001583099365,
-0.1581001728773117,
-0.0315224751830101,
-0.282779723405838,
-0.15126651525497437,
-0.20322221517562866,
-0.04896348714828491,
0.06067446619272232,
0.02581707015633583,
0.04752122610807419,
-0.167513906955719,
0.5094000101089478,
0.1804112195968628,
-0.16241122782230377,
0.024360064417123795,
0.09483698755502701,
-0.23396560549736023,
-0.0006977632874622941,
0.1984819918870926,
0.21112307906150818,
0.35830947756767273,
-0.09175453335046768,
-0.22011804580688477,
-0.04223429411649704,
0.21158446371555328,
0.08208030462265015,
0.23396308720111847,
0.03343974053859711,
0.10886383056640625,
0.022386135533452034,
0.39968112111091614,
-0.08574724942445755,
0.004557264037430286,
-0.06701717525720596,
0.1567331701517105,
0.28753671050071716,
0.19056013226509094,
0.2019362449645996,
-0.10014325380325317,
-0.039295412600040436,
-0.37891507148742676,
-0.12316954135894775,
0.045289717614650726,
-0.3563198447227478,
0.2518834173679352,
-0.10040377825498581,
0.03999488055706024,
-0.05776657164096832,
-0.058122385293245316,
-0.04139233008027077,
-0.4483858644962311,
0.1829683780670166,
0.3590165078639984,
-0.03995991498231888,
0.17278596758842468,
0.4100126028060913,
-0.3076016306877136,
-0.2347063422203064,
-0.2191072702407837,
0.014886319637298584,
0.2664274573326111,
0.017522212117910385,
0.05320527404546738,
-0.150718554854393,
-0.23576876521110535,
0.14216499030590057,
0.22781825065612793,
0.3332032859325409,
-0.07397338002920151,
-0.16730192303657532,
0.23229587078094482,
-0.057642072439193726,
0.1503218114376068,
0.5142147541046143,
0.29559406638145447,
0.13116998970508575,
0.30804702639579773,
0.465252161026001,
-0.06123388558626175,
0.017083708196878433,
-0.19873033463954926,
0.21958225965499878,
-0.09645438939332962,
0.2212633490562439,
0.8008595108985901,
0.156821146607399,
0.1732933521270752,
-0.3762670159339905,
-0.3143247663974762,
0.17103271186351776,
0.20018239319324493,
0.40467801690101624,
0.6910620927810669,
-0.17741906642913818,
0.026194728910923004,
0.39985746145248413,
0.0013958048075437546,
0.3523835837841034,
0.13564500212669373,
-0.1997247040271759,
0.40326544642448425,
-0.015480376780033112,
0.04784499481320381,
0.37148338556289673,
-0.35729727149009705,
0.0842905044555664,
-0.24379488825798035,
0.13212503492832184,
-0.19121798872947693,
-0.29148054122924805,
0.6219744086265564,
-0.35902565717697144,
-0.07547485828399658,
-0.04216060787439346,
0.2938876748085022,
0.1527784764766693,
-0.27604350447654724,
-0.18040981888771057,
-0.16622498631477356,
-0.13564839959144592,
0.03615384176373482,
0.1198323667049408,
-0.5556977391242981,
0.6551655530929565,
-0.030891671776771545,
0.4568541646003723,
0.014059025794267654,
0.41672807931900024,
0.07517154514789581,
0.07102429121732712,
-0.19728747010231018,
0.06573635339736938,
0.39739662408828735,
-0.2571572959423065,
-0.02017413079738617,
0.22240152955055237,
0.18796078860759735,
-0.081422820687294,
0.14941972494125366,
0.1839190125465393,
-0.05954374000430107,
0.014341944828629494,
0.07537513971328735,
-0.04846614599227905,
-0.1616881787776947,
0.011209124699234962,
0.22719283401966095,
-0.049919307231903076,
0.05719836801290512,
0.052383504807949066,
0.04353943094611168,
-0.024464216083288193,
-0.3408741056919098,
0.2931503355503082,
-0.03524355590343475,
0.08363249152898788,
0.10761533677577972,
0.25606024265289307,
-0.42111271619796753,
-0.25287938117980957,
0.646948516368866,
-0.12182126194238663,
0.07787738740444183,
0.0785580649971962,
-0.06181713566184044,
0.2473740577697754,
0.6671821475028992,
-0.18966664373874664,
-0.07444072514772415,
-0.16926036775112152,
-0.16823166608810425,
-0.19034482538700104,
-0.3372575044631958,
-0.2213185429573059,
-0.2011057287454605,
-0.3292105197906494,
0.010986680164933205,
0.038514915853738785,
0.12399737536907196,
0.0209396630525589,
0.05529431626200676,
0.35426902770996094,
0.2714271545410156,
-0.15410645306110382,
-0.12190333008766174,
0.014562033116817474,
0.24687013030052185,
0.19659437239170074,
-0.2163597047328949,
0.1522197723388672,
0.17791931331157684,
-0.2711341083049774,
-0.0035190824419260025,
0.32879915833473206,
0.38858234882354736,
-0.23826411366462708,
-0.0945265144109726,
0.020438281819224358,
0.3200453519821167,
-0.0515035018324852,
-0.16670548915863037,
-0.1687028557062149,
0.02807493880391121,
-0.13359612226486206,
0.36047935485839844,
-0.06463894248008728,
0.171773299574852,
-0.48210445046424866,
-0.10149016976356506,
-0.29990237951278687,
0.22812005877494812,
0.06846360862255096,
0.06105345860123634,
0.11114092916250229,
-0.019738610833883286,
-0.08681344985961914,
-0.23762336373329163,
0.48299339413642883,
0.2829461395740509,
-0.30579355359077454,
0.1418152004480362,
0.16968126595020294,
-0.21921861171722412,
0.37996941804885864,
0.17209511995315552,
-0.09418946504592896,
-0.10940802097320557,
0.0388798788189888,
0.2562241852283478,
0.0995766818523407,
-0.3164319694042206,
0.10562586039304733,
0.31499433517456055,
0.0555717796087265,
-0.2468429058790207,
0.12132005393505096,
-0.05410904809832573,
-0.5742112398147583,
0.0983574390411377,
0.13334453105926514,
0.13504281640052795,
-0.24334187805652618,
0.04090846702456474,
-0.1566459834575653
] |
https://github.com/huggingface/datasets/issues/4578 | [Multi Configs] Use directories to differentiate between subsets/configurations | > The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets with subsets that is hosted on another server. How to do it if my datasets are local?
It works the same - you just need to use local paths instead of URLs | Currently to define several subsets/configurations of your dataset, you need to use a dataset script.
However it would be nice to have a no-code way to to this.
For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per configuration.
These structures are not supported right now, but would be nice to have:
```
my_dataset_repository/
├── README.md
├── en/
│ ├── train.csv
│ └── test.csv
└── fr/
├── train.csv
└── test.csv
```
Or with one directory per split:
```
my_dataset_repository/
├── README.md
├── en/
│ ├── train/
│ │ ├── shard_0.csv
│ │ └── shard_1.csv
│ └── test/
│ ├── shard_0.csv
│ └── shard_1.csv
└── fr/
├── train/
│ ├── shard_0.csv
│ └── shard_1.csv
└── test/
├── shard_0.csv
└── shard_1.csv
```
cc @stevhliu @albertvillanova
This can be specified in the README as YAML with
```
configs:
- config_name: en
data_dir: en
- config_name: fr
data_dir: fr
``` | 44 | [Multi Configs] Use directories to differentiate between subsets/configurations
Currently to define several subsets/configurations of your dataset, you need to use a dataset script.
However it would be nice to have a no-code way to to this.
For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per configuration.
These structures are not supported right now, but would be nice to have:
```
my_dataset_repository/
├── README.md
├── en/
│ ├── train.csv
│ └── test.csv
└── fr/
├── train.csv
└── test.csv
```
Or with one directory per split:
```
my_dataset_repository/
├── README.md
├── en/
│ ├── train/
│ │ ├── shard_0.csv
│ │ └── shard_1.csv
│ └── test/
│ ├── shard_0.csv
│ └── shard_1.csv
└── fr/
├── train/
│ ├── shard_0.csv
│ └── shard_1.csv
└── test/
├── shard_0.csv
└── shard_1.csv
```
cc @stevhliu @albertvillanova
This can be specified in the README as YAML with
```
configs:
- config_name: en
data_dir: en
- config_name: fr
data_dir: fr
```
> The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets with subsets that is hosted on another server. How to do it if my datasets are local?
It works the same - you just need to use local paths instead of URLs | [
-0.3164813220500946,
-0.3242611885070801,
0.0012742448598146439,
0.04537622630596161,
0.015546109527349472,
-0.05239991098642349,
0.37209489941596985,
-0.055787112563848495,
0.04607052728533745,
0.3564247488975525,
-0.12246962636709213,
0.01523202657699585,
-0.1700369417667389,
0.513029932975769,
0.34782472252845764,
0.1152389794588089,
0.08360041677951813,
-0.04096806049346924,
-0.2544320523738861,
-0.0303508173674345,
-0.03940616175532341,
0.0299808531999588,
0.006533406674861908,
-0.18397633731365204,
-0.275364488363266,
-0.09900850802659988,
-0.41379326581954956,
0.30805161595344543,
0.04442806541919708,
-0.09132860600948334,
0.29299870133399963,
0.12540598213672638,
0.0031674765050411224,
0.34258899092674255,
-0.00011060121323680505,
0.14578501880168915,
-0.1233339011669159,
-0.20237880945205688,
-0.28461313247680664,
-0.27327847480773926,
-0.43718063831329346,
-0.39743271470069885,
0.183432474732399,
-0.3144831955432892,
0.12002798169851303,
0.17464622855186462,
0.1737188696861267,
-0.27436429262161255,
0.2264389991760254,
0.030727479606866837,
0.17848007380962372,
0.07604938745498657,
-0.3171670138835907,
-0.12859170138835907,
-0.057836808264255524,
0.5462682247161865,
-0.2845265865325928,
0.14397498965263367,
0.12123718857765198,
-0.09490646421909332,
-0.12250956147909164,
0.07275483012199402,
-0.10404909402132034,
0.2036728858947754,
0.28791043162345886,
0.312820166349411,
-0.2045358419418335,
-0.2761865258216858,
-0.03370795398950577,
0.4779212474822998,
0.3872394561767578,
-0.4107787013053894,
-0.42554882168769836,
-0.41752496361732483,
-0.09632755815982819,
-0.21285778284072876,
0.12216348946094513,
0.4876704514026642,
-0.16472391784191132,
0.366769015789032,
-0.5935983657836914,
-0.30446043610572815,
-0.18240609765052795,
0.19215846061706543,
0.1393917351961136,
0.26951882243156433,
0.06440547108650208,
0.079086072742939,
0.23749133944511414,
0.08442522585391998,
-0.23958666622638702,
-0.26575297117233276,
0.0753493383526802,
0.1366015523672104,
-0.2451988309621811,
-0.13927388191223145,
-0.18293508887290955,
0.032292407006025314,
0.5008825063705444,
0.3572201728820801,
0.17137384414672852,
0.05703195184469223,
-0.11386387050151825,
0.18545320630073547,
0.06816503405570984,
0.09186653792858124,
0.16510137915611267,
0.2154848724603653,
0.3095605969429016,
-0.020763451233506203,
0.27768298983573914,
0.05129459872841835,
0.12129753082990646,
-0.31877198815345764,
-0.341835081577301,
-0.0609143003821373,
0.17502044141292572,
0.1754569113254547,
0.1783633530139923,
-0.22077937424182892,
-0.04335854947566986,
-0.20427332818508148,
0.1865604966878891,
0.30548450350761414,
0.13326610624790192,
-0.291855126619339,
-0.22432345151901245,
0.33626699447631836,
-0.20527546107769012,
-0.0030960459262132645,
-0.15975069999694824,
0.19571197032928467,
-0.06806138157844543,
0.42733868956565857,
0.06639166176319122,
-0.2329181432723999,
0.21873678267002106,
0.12656305730342865,
0.39165228605270386,
0.03728511184453964,
0.02033769153058529,
0.007701124995946884,
0.04976610094308853,
0.24791717529296875,
-0.028562556952238083,
0.06518270820379257,
0.11200748383998871,
-0.3127530813217163,
-0.4157159924507141,
-0.21136659383773804,
-0.3003059923648834,
-0.48977839946746826,
-0.04855795204639435,
0.05586317554116249,
-0.2121417075395584,
0.07472439855337143,
-0.2716781497001648,
0.5205137133598328,
-0.02147698402404785,
0.23571854829788208,
0.07702648639678955,
0.30165398120880127,
-0.27889660000801086,
-0.3545708656311035,
0.3546459376811981,
0.7186897397041321,
-0.24364997446537018,
-0.2617719769477844,
0.17360496520996094,
-0.23784470558166504,
-0.1514701247215271,
0.1347474306821823,
-0.3644255995750427,
0.12745237350463867,
-0.09828346967697144,
0.3043462634086609,
0.41721078753471375,
-0.2710171937942505,
0.19754783809185028,
0.3090125322341919,
-0.10151636600494385,
-0.11326660960912704,
0.34426289796829224,
-0.031309839338064194,
0.09034718573093414,
0.0028176475316286087,
-0.0807640552520752,
0.38586658239364624,
-0.014650901779532433,
0.12636558711528778,
0.12102881073951721,
-0.33912748098373413,
-0.33653366565704346,
0.15117083489894867,
-0.09229068458080292,
-0.1469140350818634,
0.40768513083457947,
-0.31654924154281616,
0.2746429145336151,
-0.3488655388355255,
0.3286592662334442,
0.35582971572875977,
0.1295970231294632,
0.38590288162231445,
-0.36272376775741577,
-0.2460961639881134,
-0.6997149586677551,
0.24978357553482056,
0.17269760370254517,
0.14977020025253296,
0.2296064794063568,
-0.3425833582878113,
0.09360342472791672,
-0.23512579500675201,
-0.2672669589519501,
-0.3722888231277466,
0.07558868825435638,
0.21794964373111725,
0.1295323222875595,
-0.11658424139022827,
-0.5627591013908386,
0.17161794006824493,
0.2675732374191284,
0.1056906059384346,
-0.5204607844352722,
0.27450481057167053,
-0.08316664397716522,
0.07134390622377396,
-0.0647997334599495,
0.10745782405138016,
-0.19981050491333008,
-0.44265735149383545,
0.20943650603294373,
0.5712085366249084,
0.09188109636306763,
0.020662806928157806,
0.4188953638076782,
0.35438424348831177,
0.36340126395225525,
0.07555776834487915,
0.24093398451805115,
-0.36569806933403015,
-0.15212611854076385,
0.10937663167715073,
-0.44165870547294617,
0.6309425830841064,
-0.098621666431427,
0.23556268215179443,
-0.034289371222257614,
0.004425961524248123,
0.3390549123287201,
-0.18384891748428345,
-0.2622467875480652,
-0.38916680216789246,
0.08872693032026291,
0.02651527337729931,
0.15412598848342896,
0.11478183418512344,
-0.36906659603118896,
-0.07863568514585495,
-0.03995957598090172,
-0.1808444857597351,
0.16204258799552917,
0.12298780679702759,
0.15703129768371582,
0.031096339225769043,
0.02465708553791046,
0.4970175325870514,
0.35374748706817627,
0.17972274124622345,
0.003452349454164505,
0.123723104596138,
-0.18146511912345886,
-0.19944903254508972,
0.22535017132759094,
-0.2453310638666153,
0.09423992782831192,
-0.03893269598484039,
-0.17302356660366058,
-0.28909924626350403,
-0.13576415181159973,
-0.36163565516471863,
0.13545483350753784,
-0.15788534283638,
-0.30062487721443176,
0.06654822826385498,
-0.6172352433204651,
0.03335634618997574,
-0.36992624402046204,
-0.10822075605392456,
-0.4033500850200653,
0.04520334303379059,
0.04677274823188782,
-0.04528196528553963,
-0.13530117273330688,
0.2099897563457489,
0.08443979918956757,
0.24290020763874054,
-0.11787336319684982,
-0.3237188458442688,
0.20326370000839233,
-0.10397119075059891,
0.02823333814740181,
0.00866226851940155,
0.2376573532819748,
0.20488093793392181,
0.12555734813213348,
-0.1779083013534546,
-0.23388247191905975,
-0.5495476126670837,
0.03517628461122513,
0.29920968413352966,
-0.04021596163511276,
0.3825438618659973,
0.33239805698394775,
0.1294369101524353,
-0.01958571933209896,
-0.10075085610151291,
0.30884629487991333,
0.46999695897102356,
-0.1492280662059784,
-0.040076397359371185,
0.09676465392112732,
-0.02097022905945778,
-0.14943207800388336,
-0.4233979880809784,
-0.34481173753738403,
-0.23093174397945404,
0.21674460172653198,
0.045299235731363297,
0.4212411046028137,
0.3085058927536011,
0.3139864206314087,
-0.11525040119886398,
-0.4170163571834564,
0.01241235714405775,
0.08607957512140274,
-0.3302225172519684,
0.3457505404949188,
-0.371011346578598,
-0.06076459214091301,
0.0774555504322052,
0.0161081962287426,
-0.009518567472696304,
0.23811352252960205,
-0.27558502554893494,
-0.1103292778134346,
-0.09824308753013611,
0.24969589710235596,
0.18445704877376556,
0.34418985247612,
0.4670740067958832,
0.10778467357158661,
-0.01050286553800106,
0.02336367964744568,
-0.22045518457889557,
0.2527967691421509,
0.13379275798797607,
0.043441418558359146,
0.14733830094337463,
0.1572282463312149,
-0.10351838171482086,
0.5359228253364563,
0.1050214171409607,
0.19231437146663666,
0.1924053281545639,
-0.25243985652923584,
0.39803168177604675,
-0.045447997748851776,
0.02123306505382061,
0.14289520680904388,
0.18074741959571838,
-0.0942225307226181,
0.3624584674835205,
0.3048207461833954,
0.22956432402133942,
-0.21395260095596313,
-0.12364161014556885,
-0.21301761269569397,
-0.3794911205768585,
0.22164493799209595,
-0.07939482480287552,
0.23120436072349548,
-0.21629805862903595,
-0.4552617371082306,
0.11847937107086182,
0.2835786044597626,
-0.32617753744125366,
0.6747817397117615,
-0.05812125653028488,
0.24763347208499908,
-0.5488936305046082,
0.05905010178685188,
0.09132273495197296,
0.21907730400562286,
0.04236024618148804,
-0.2096436619758606,
-0.06382335722446442,
-0.19713521003723145,
0.0004004538059234619,
0.1804361790418625,
0.37403786182403564,
-0.3052888810634613,
-0.1690916270017624,
-0.16360197961330414,
-0.32646405696868896,
-0.23411700129508972,
-0.10635676980018616,
0.06521953642368317,
0.16671599447727203,
-0.09664885699748993,
0.532408595085144,
-0.3873733878135681,
-0.4349338710308075,
0.13548412919044495,
0.42617249488830566,
-0.24333488941192627,
-0.05205162987112999,
-0.2369910627603531,
-0.33394232392311096,
-0.4240659475326538,
-0.17106592655181885,
-0.20171858370304108,
-0.08172455430030823,
0.24151611328125,
-0.10703425109386444,
0.16184069216251373,
0.04744865745306015,
-0.06327053904533386,
0.17110157012939453,
0.007178683299571276,
-0.0663156509399414,
-0.04234079271554947,
0.21251577138900757,
0.1464332938194275,
0.44770169258117676,
0.3427773714065552,
-0.3914722204208374,
-0.34987086057662964,
-0.03241180628538132,
0.0010375725105404854,
0.48846200108528137,
0.1299966275691986,
0.10506440699100494,
0.1980748176574707,
0.21422140300273895,
0.12077109515666962,
-0.2215014398097992,
-0.14543014764785767,
-0.04402736574411392,
0.0063211750239133835,
-0.14933492243289948,
-0.5197604894638062,
0.44826367497444153,
0.04495925083756447,
-0.10759858042001724,
0.14543727040290833,
0.20427651703357697,
-0.37343838810920715,
0.12231399118900299,
0.14115306735038757,
0.6340381503105164,
-0.2378838211297989,
0.17897415161132812,
0.06094168871641159,
0.08361582458019257,
0.3585222661495209,
-0.2417314052581787,
0.12469922751188278,
-0.13844034075737,
0.04841388016939163,
-0.19355571269989014,
-0.18955841660499573,
0.5118567943572998,
0.4161115884780884,
-0.1935270130634308,
0.4431210160255432,
-0.09985321760177612,
0.3179120719432831,
-0.2914687395095825,
0.010682683438062668,
-0.1872672438621521,
-0.33890658617019653,
-0.12742164731025696,
0.058935754001140594,
0.06355822831392288,
-0.040649089962244034,
0.10795507580041885,
-0.0619649663567543,
-0.25189968943595886,
0.018872689455747604,
-0.08563026785850525,
-0.3701396584510803,
-0.33500176668167114,
0.1514190286397934,
0.10469833016395569,
-0.1446922868490219,
-0.06196964159607887,
0.6316892504692078,
0.18635079264640808,
0.09321412444114685,
-0.09819585829973221,
-0.052422475069761276,
-0.24702224135398865,
0.1368429809808731,
-0.4126163423061371,
-0.39205318689346313,
0.03591412305831909,
0.06940094381570816,
-0.35235849022865295,
-0.2449491024017334,
-0.06694278120994568,
-0.13302269577980042,
0.11476528644561768,
0.16468285024166107,
-0.17144961655139923,
0.02357672154903412,
0.09738725423812866,
0.0067712292075157166,
0.13282890617847443,
-0.12041614949703217,
0.030917441472411156,
0.016174566000699997,
0.04295080527663231,
0.03384815528988838,
-0.03214763477444649,
-0.05296828970313072,
-0.23518888652324677,
-0.059759460389614105,
-0.1515074372291565,
-0.020813824608922005,
-0.016625672578811646,
-0.03885161504149437,
-0.0587041862308979,
-0.2680119276046753,
0.5208753347396851,
0.09446149319410324,
0.00022114068269729614,
0.01897077076137066,
0.1008116602897644,
-0.06998816132545471,
-0.05828347057104111,
0.23764203488826752,
0.2034585177898407,
0.3508720099925995,
-0.11685580015182495,
-0.33911392092704773,
-0.00805113185197115,
0.2847888767719269,
-0.018654178828001022,
0.13388118147850037,
0.049914002418518066,
0.08885475993156433,
0.14289873838424683,
0.26938435435295105,
-0.255918025970459,
0.00009100371971726418,
-0.12894096970558167,
0.09208382666110992,
0.42061376571655273,
0.3076569437980652,
0.14610278606414795,
-0.011729966849088669,
0.028569230809807777,
-0.4411349296569824,
-0.231076180934906,
-0.12592169642448425,
-0.24164530634880066,
0.16642841696739197,
-0.1016344502568245,
0.09830810129642487,
0.04866707697510719,
-0.04375051334500313,
0.03213992714881897,
-0.45858582854270935,
0.1995604783296585,
0.394286572933197,
-0.1266292780637741,
0.032126203179359436,
0.1977621167898178,
-0.362655907869339,
-0.23977269232273102,
-0.16971689462661743,
-0.0874919444322586,
0.1411428302526474,
0.06583260744810104,
0.055398907512426376,
-0.18966345489025116,
-0.24570642411708832,
0.1276378631591797,
0.25791242718696594,
0.17470857501029968,
0.03458969295024872,
-0.18007025122642517,
0.2042783498764038,
-0.11304856836795807,
0.23787982761859894,
0.4962604343891144,
0.0653572827577591,
-0.11938579380512238,
0.3274417817592621,
0.3686801791191101,
0.09671269357204437,
-0.06811634451150894,
-0.25795507431030273,
0.19080430269241333,
-0.22437238693237305,
0.22580477595329285,
0.643739640712738,
0.2718036472797394,
-0.045399948954582214,
-0.16364043951034546,
-0.20436540246009827,
0.19658637046813965,
-0.010575950145721436,
0.28702908754348755,
0.4170810878276825,
-0.24220943450927734,
-0.0281057246029377,
0.28013548254966736,
0.029028914868831635,
0.46792590618133545,
0.1597200632095337,
-0.31154099106788635,
0.2750418186187744,
0.06066902354359627,
0.008036099374294281,
0.10090909153223038,
-0.5609663128852844,
0.28573134541511536,
-0.11489921808242798,
0.023388192057609558,
-0.3534127473831177,
-0.21165084838867188,
0.44734111428260803,
-0.2740267813205719,
0.04569964110851288,
-0.06270290911197662,
0.4064854681491852,
0.10435900837182999,
-0.21488554775714874,
-0.14282143115997314,
-0.20600488781929016,
0.023600608110427856,
-0.007260818034410477,
0.11229874193668365,
-0.5132787227630615,
0.6995023488998413,
-0.013749286532402039,
0.36217427253723145,
-0.056422553956508636,
0.6400589346885681,
0.04927494749426842,
-0.07579397410154343,
-0.11169138550758362,
0.09768205136060715,
0.33759912848472595,
-0.2250911295413971,
-0.0629776269197464,
0.244177907705307,
0.25759923458099365,
0.05115806311368942,
0.3041907548904419,
0.24463370442390442,
-0.13883212208747864,
0.09090649336576462,
-0.07684029638767242,
-0.17474845051765442,
-0.15532268583774567,
-0.09399895370006561,
0.31612730026245117,
0.0839766263961792,
-0.022973814979195595,
0.15669456124305725,
0.07652399688959122,
-0.032083336263895035,
-0.3065233826637268,
0.0037440136075019836,
0.04261066019535065,
0.08039283007383347,
0.2090224176645279,
0.29980364441871643,
-0.37422993779182434,
-0.2036151885986328,
0.7107316255569458,
-0.07601001113653183,
0.16326788067817688,
0.07005147635936737,
0.05096586048603058,
0.3856074810028076,
0.5889132618904114,
-0.13994359970092773,
-0.12202558666467667,
-0.17282508313655853,
-0.1049010157585144,
-0.4441865384578705,
-0.33527249097824097,
-0.25171682238578796,
-0.08689432591199875,
-0.35983991622924805,
0.26318618655204773,
0.11021699756383896,
0.23861932754516602,
0.04051019996404648,
0.07849293202161789,
0.30636999011039734,
0.2670529782772064,
-0.08299623429775238,
-0.11077722907066345,
-0.021886371076107025,
0.22764280438423157,
0.1369142085313797,
-0.2886844873428345,
0.23526819050312042,
0.06764017790555954,
-0.058743610978126526,
-0.011266849935054779,
0.45239752531051636,
0.3004876375198364,
-0.32480841875076294,
0.12534843385219574,
0.020502464845776558,
0.2759819030761719,
-0.13240647315979004,
-0.13117951154708862,
-0.24378350377082825,
0.10218697786331177,
-0.15069806575775146,
0.2837449908256531,
-0.05169152095913887,
0.04583147168159485,
-0.5536390542984009,
-0.10985663533210754,
-0.3248789608478546,
0.20125621557235718,
0.1164739727973938,
-0.07074037939310074,
0.1826842874288559,
-0.04975328594446182,
-0.018848218023777008,
-0.21926060318946838,
0.25438544154167175,
0.16461005806922913,
-0.26707595586776733,
0.06758733093738556,
0.10941018164157867,
-0.25434938073158264,
0.3905027508735657,
0.09512842446565628,
-0.0262021292001009,
-0.026391401886940002,
0.1440279334783554,
0.12729087471961975,
0.20989646017551422,
-0.2930228114128113,
0.17796704173088074,
0.37524649500846863,
0.15421849489212036,
-0.3240012526512146,
0.16497915983200073,
-0.16009965538978577,
-0.45108065009117126,
-0.018459828570485115,
0.0695987418293953,
0.018736794590950012,
-0.282118558883667,
-0.14250850677490234,
-0.3647892475128174
] |
https://github.com/huggingface/datasets/issues/4575 | Problem about wmt17 zh-en dataset | @winterfell2021 Hi, I wonder where the code you provided should be added. I tried to add them in the `datasets/table.py` in `array_cast` function, however, the 'zh' item is none. | It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`.
So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception:
```
Traceback (most recent call last):
File "train.py", line 78, in <module>
data = load_dataset(args.dataset, "zh-en")
File "/usr/local/lib/python3.7/dist-packages/datasets/load.py", line 1684, in load_dataset
use_auth_token=use_auth_token,
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 705, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1221, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1215, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 533, in finalize
self.write_examples_on_file()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 410, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 503, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 198, in __arrow_array__
out = cast_array_to_feature(out, type, allow_number_to_str=not self.trying_type)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1846, in cast_array_to_feature
return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1756, in array_cast
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}")
TypeError: Couldn't cast array of type
struct<c[hn]: string, en: string, zh: string>
to
struct<en: string, zh: string>
```
So the solution of this problem is to change the original array manually:
```
if 'c[hn]' in str(array.type):
py_array = array.to_pylist()
data_list = []
for vo in py_array:
tmp = {
'en': vo['en'],
}
if 'zh' not in vo:
tmp['zh'] = vo['c[hn]']
else:
tmp['zh'] = vo['zh']
data_list.append(tmp)
array = pa.array(data_list, type=pa.struct([
pa.field('en', pa.string()),
pa.field('zh', pa.string()),
]))
```
Therefore, maybe a correct version of original casia2015 file need to be updated | 29 | Problem about wmt17 zh-en dataset
It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`.
So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception:
```
Traceback (most recent call last):
File "train.py", line 78, in <module>
data = load_dataset(args.dataset, "zh-en")
File "/usr/local/lib/python3.7/dist-packages/datasets/load.py", line 1684, in load_dataset
use_auth_token=use_auth_token,
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 705, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1221, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1215, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 533, in finalize
self.write_examples_on_file()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 410, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 503, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 198, in __arrow_array__
out = cast_array_to_feature(out, type, allow_number_to_str=not self.trying_type)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1846, in cast_array_to_feature
return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1756, in array_cast
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}")
TypeError: Couldn't cast array of type
struct<c[hn]: string, en: string, zh: string>
to
struct<en: string, zh: string>
```
So the solution of this problem is to change the original array manually:
```
if 'c[hn]' in str(array.type):
py_array = array.to_pylist()
data_list = []
for vo in py_array:
tmp = {
'en': vo['en'],
}
if 'zh' not in vo:
tmp['zh'] = vo['c[hn]']
else:
tmp['zh'] = vo['zh']
data_list.append(tmp)
array = pa.array(data_list, type=pa.struct([
pa.field('en', pa.string()),
pa.field('zh', pa.string()),
]))
```
Therefore, maybe a correct version of original casia2015 file need to be updated
@winterfell2021 Hi, I wonder where the code you provided should be added. I tried to add them in the `datasets/table.py` in `array_cast` function, however, the 'zh' item is none. | [
-0.3377845883369446,
-0.467081218957901,
0.042393047362565994,
0.32191354036331177,
0.3430138826370239,
0.13319173455238342,
0.2732115089893341,
0.07307456433773041,
0.004815666005015373,
0.0498819500207901,
0.11882953345775604,
0.1963013857603073,
0.06979179382324219,
0.09495574235916138,
0.023968461900949478,
-0.017927877604961395,
0.07348471879959106,
0.15306538343429565,
-0.03831797093153,
-0.23917461931705475,
-0.38474997878074646,
0.07737961411476135,
-0.32771897315979004,
0.3936987519264221,
-0.0633823573589325,
0.040247585624456406,
0.11137405037879944,
0.11107504367828369,
-0.0740835964679718,
-0.39036741852760315,
0.40851178765296936,
0.12093678116798401,
0.12289690971374512,
0.14673325419425964,
-0.00011645352060440928,
0.06536395847797394,
0.3447014093399048,
-0.1725253164768219,
-0.4521762728691101,
-0.4375850558280945,
-0.4569055736064911,
-0.1757201850414276,
-0.12418277561664581,
0.009444400668144226,
0.015181668102741241,
-0.7989673018455505,
-0.0731506422162056,
-0.13965922594070435,
0.3159068822860718,
0.16534601151943207,
0.13103020191192627,
0.21947742998600006,
-0.1688266396522522,
-0.38009530305862427,
0.19230705499649048,
0.31032583117485046,
0.012293031439185143,
0.005616690032184124,
0.3634284734725952,
-0.0009244652464985847,
0.17128711938858032,
0.32253798842430115,
0.14581653475761414,
-0.014035362750291824,
0.03738485276699066,
0.06784594058990479,
0.6765218377113342,
0.028594858944416046,
0.137451171875,
0.28046348690986633,
0.8635320663452148,
-0.15284180641174316,
-0.258048415184021,
0.03289592266082764,
-0.014304506592452526,
-0.5694239139556885,
0.06400138139724731,
0.5117596983909607,
-0.42018795013427734,
0.15098950266838074,
-0.01643001101911068,
0.044286515563726425,
-0.18375468254089355,
0.2688910961151123,
-0.23633815348148346,
0.6082727909088135,
-0.06501755118370056,
0.224023699760437,
-0.06346094608306885,
-0.06813085824251175,
0.4670790433883667,
-0.04518374055624008,
-0.12134237587451935,
-0.13548991084098816,
-0.18928302824497223,
0.13735899329185486,
-0.2512485086917877,
0.03946750611066818,
0.23174268007278442,
0.031698234379291534,
0.12116392701864243,
0.2325185239315033,
0.12392190098762512,
0.24969518184661865,
0.20939326286315918,
0.007798405364155769,
0.1239313930273056,
0.04365573450922966,
0.22245679795742035,
0.12751178443431854,
-0.11759218573570251,
-0.10522925108671188,
-0.14514848589897156,
-0.18820525705814362,
0.002856999635696411,
0.2467600405216217,
0.2198711484670639,
-0.1759379357099533,
-0.2786453068256378,
-0.11210629343986511,
-0.11361932754516602,
-0.24442417919635773,
0.06192104518413544,
0.6118229031562805,
0.19812080264091492,
0.18130043148994446,
-0.11320613324642181,
0.30704665184020996,
-0.03392617404460907,
-0.05459947511553764,
-0.2538650333881378,
-0.06571872532367706,
-0.19008448719978333,
-0.13546708226203918,
-0.05989489704370499,
0.24683791399002075,
0.2463293969631195,
0.1666593700647354,
-0.11514881253242493,
-0.09746262431144714,
0.17899315059185028,
0.02046862430870533,
0.3411898910999298,
0.2788458466529846,
-0.06738381087779999,
0.19410285353660583,
0.20383550226688385,
-0.12059857696294785,
-0.1635449230670929,
0.286817729473114,
-0.29125311970710754,
-0.30290332436561584,
-0.27594104409217834,
0.15629136562347412,
0.10918572545051575,
0.08757846057415009,
0.08089914172887802,
-0.057863909751176834,
0.17213252186775208,
0.0050645992159843445,
-0.0929386243224144,
-0.22274111211299896,
-0.26602092385292053,
-0.08373195677995682,
0.29048725962638855,
0.11302988231182098,
-0.5776785016059875,
-0.01831652969121933,
-0.15101556479930878,
-0.0034364350140094757,
0.48250335454940796,
0.42527562379837036,
-0.545210599899292,
0.22550228238105774,
-0.3694884777069092,
-0.28321218490600586,
0.4358467757701874,
-0.5007727146148682,
-0.09561404585838318,
-0.01613665744662285,
0.062334656715393066,
0.12332048267126083,
0.1721268594264984,
-0.10571227222681046,
-0.2861859202384949,
-0.1949136108160019,
-0.024393871426582336,
0.07799698412418365,
-0.11570781469345093,
-0.10026701539754868,
-0.08069893717765808,
-0.13505081832408905,
0.6236283183097839,
-0.025856751948595047,
-0.1393282115459442,
-0.10071953386068344,
0.12244606763124466,
0.1336323469877243,
0.38904818892478943,
-0.38935017585754395,
-0.0191506277769804,
-0.046801790595054626,
0.3313990831375122,
-0.03601294010877609,
0.2145659625530243,
0.3880467712879181,
-0.07790292054414749,
0.22400158643722534,
0.00738900899887085,
0.08061274886131287,
-0.30656617879867554,
-0.10522406548261642,
-0.29958558082580566,
0.17995335161685944,
-0.42031756043434143,
-0.03240165486931801,
0.0588870570063591,
0.15873634815216064,
-0.2320602983236313,
-0.0932631865143776,
0.2077486664056778,
0.21851077675819397,
-0.30143412947654724,
-0.0434914156794548,
-0.043600812554359436,
0.1874983012676239,
-0.06770499795675278,
0.06091930344700813,
-0.21696782112121582,
0.18380656838417053,
0.21467313170433044,
-0.12997792661190033,
-0.28211966156959534,
0.07461737096309662,
0.35250943899154663,
-0.09357476234436035,
-0.28023308515548706,
-0.1999765783548355,
0.21512427926063538,
-0.3449278175830841,
0.21794041991233826,
-0.05682336911559105,
0.3373585045337677,
-0.05178981274366379,
-0.19145134091377258,
0.2566453814506531,
0.19271190464496613,
0.06737612187862396,
0.0947628915309906,
-0.05075529217720032,
0.590083122253418,
0.15323200821876526,
0.12838977575302124,
-0.34937524795532227,
0.09037461876869202,
-0.30100783705711365,
-0.11474157869815826,
0.09691499173641205,
-0.10577747225761414,
0.024766847491264343,
0.5597338080406189,
0.10184682905673981,
0.27101805806159973,
0.03878430277109146,
-0.18161869049072266,
-0.014366100542247295,
-0.011568756774067879,
0.27045807242393494,
0.3801366090774536,
0.0619780458509922,
-0.06917884945869446,
0.0041776616126298904,
0.03769601881504059,
-0.18528734147548676,
0.3187333345413208,
0.21335908770561218,
0.17337508499622345,
0.2884103059768677,
0.1049128845334053,
-0.13580268621444702,
-0.21888479590415955,
-0.0009259209036827087,
0.17433878779411316,
0.1986171454191208,
-0.294264018535614,
0.10180162638425827,
-0.4942147135734558,
-0.34615737199783325,
-0.35673218965530396,
0.14117221534252167,
0.055160410702228546,
-0.1872355043888092,
-0.06664979457855225,
0.02429431490600109,
-0.08508609235286713,
0.3275420665740967,
0.13639599084854126,
0.2553243339061737,
-0.050191085785627365,
0.1963919699192047,
0.05328638106584549,
-0.43730366230010986,
-0.2480151653289795,
-0.012325379997491837,
0.16724467277526855,
0.12994244694709778,
0.12918926775455475,
-0.21616801619529724,
-0.10262644290924072,
-0.09023978561162949,
-0.29749956727027893,
0.29613614082336426,
0.11363391578197479,
0.13970066606998444,
0.22621802985668182,
0.1776503026485443,
-0.011061020195484161,
-0.29113197326660156,
0.36351048946380615,
0.07185421139001846,
-0.14470738172531128,
0.24132511019706726,
-0.11663824319839478,
-0.23486101627349854,
-0.22494105994701385,
-0.26038646697998047,
-0.7596336603164673,
-0.3693675100803375,
-0.2758355140686035,
-0.029461754485964775,
0.019667387008666992,
0.4062572717666626,
-0.11672643572092056,
-0.23918655514717102,
-0.03713594749569893,
-0.08808135986328125,
-0.21508479118347168,
-0.11834534257650375,
0.32676345109939575,
-0.1581702083349228,
-0.34431132674217224,
0.055041003972291946,
-0.15898293256759644,
0.3081013560295105,
0.02646806836128235,
-0.2107197344303131,
-0.12851651012897491,
0.11740031093358994,
-0.0584183968603611,
-0.06230230629444122,
0.12634976208209991,
0.10520049184560776,
0.11800745874643326,
-0.053484171628952026,
-0.24760761857032776,
-0.17519676685333252,
0.3063231408596039,
0.11404062062501907,
0.4077616035938263,
-0.29196998476982117,
0.11984512954950333,
-0.040134403854608536,
0.3664965033531189,
0.17748761177062988,
-0.13411350548267365,
0.38092902302742004,
-0.05039500445127487,
0.13344267010688782,
-0.054186902940273285,
-0.2824591100215912,
-0.06626005470752716,
0.11653979122638702,
0.030280422419309616,
0.37426483631134033,
-0.10971272736787796,
-0.26281315088272095,
0.06505514681339264,
-0.2011966109275818,
-0.007323987782001495,
-0.46657997369766235,
0.050078555941581726,
0.0837346613407135,
0.1833982914686203,
0.06022690609097481,
0.028079934418201447,
-0.2726823091506958,
-0.20213329792022705,
0.004859264940023422,
0.24226650595664978,
-0.06209469586610794,
0.031512293964624405,
-0.35058706998825073,
-0.37227118015289307,
-0.023590676486492157,
0.169407919049263,
0.23107744753360748,
0.7745785713195801,
-0.2196330577135086,
-0.07622817158699036,
0.10760851949453354,
-0.14143389463424683,
0.6628496050834656,
-0.3299980163574219,
0.23588767647743225,
0.1155354380607605,
0.09995703399181366,
-0.4302084743976593,
-0.33611854910850525,
-0.020349973812699318,
0.1584402322769165,
-0.20723772048950195,
0.07680409401655197,
-0.0031716004014015198,
-0.2849236726760864,
0.01225314848124981,
0.5078946948051453,
-0.3595191538333893,
-0.054027821868658066,
-0.33810189366340637,
-0.4371708929538727,
-0.42916253209114075,
-0.13628065586090088,
0.11734283715486526,
0.10102829337120056,
-0.09040731191635132,
-0.2531672418117523,
0.1415589451789856,
-0.004208028316497803,
0.13144229352474213,
0.365174263715744,
0.3206692934036255,
0.08260893821716309,
0.15152789652347565,
-0.17838512361049652,
0.38708359003067017,
0.33259108662605286,
0.5522764325141907,
0.044508710503578186,
-0.7035053372383118,
-0.03488805890083313,
-0.28406867384910583,
0.3198297321796417,
0.12218081951141357,
-0.25825637578964233,
0.2722054421901703,
0.04763057455420494,
-0.07648123800754547,
-0.23527327179908752,
0.114786297082901,
0.2568323612213135,
0.1281142681837082,
-0.6447304487228394,
-0.21413688361644745,
0.12417544424533844,
-0.06322221457958221,
-0.012871995568275452,
0.18184147775173187,
-0.11247308552265167,
-0.44157952070236206,
0.46505826711654663,
-0.011938251554965973,
0.6561327576637268,
0.10985018312931061,
0.09025794267654419,
-0.023653153330087662,
0.34468549489974976,
0.25899016857147217,
0.028289899230003357,
0.10324550420045853,
-0.38093826174736023,
-0.2709801197052002,
-0.03051382303237915,
-0.1941090077161789,
0.3490884602069855,
0.2009592205286026,
-0.1819540560245514,
0.18295936286449432,
-0.20478036999702454,
0.2768193185329437,
0.035331349819898605,
0.22662600874900818,
-0.1563590168952942,
-0.18730832636356354,
0.011322411708533764,
0.054996006190776825,
0.008873071521520615,
-0.036156851798295975,
-0.09963008016347885,
-0.1050495058298111,
-0.09061598032712936,
-0.2063925862312317,
-0.28086480498313904,
0.06875892728567123,
-0.3103071451187134,
0.4094385504722595,
0.024021457880735397,
-0.08097842335700989,
0.6383905410766602,
-0.07073390483856201,
0.4963694214820862,
0.2369714230298996,
-0.01854061894118786,
0.4019712805747986,
-0.1372864842414856,
0.303434818983078,
-0.07453978061676025,
0.05733858048915863,
0.22181062400341034,
-0.05974527820944786,
-0.36664503812789917,
-0.11490156501531601,
0.03279447183012962,
0.06390631943941116,
0.10803094506263733,
-0.3144100308418274,
0.3039652109146118,
-0.10337356477975845,
-0.13445211946964264,
-0.1546441912651062,
0.09579439461231232,
-0.32223713397979736,
0.057929422706365585,
0.02400258556008339,
-0.42442482709884644,
0.26357078552246094,
-0.08709177374839783,
-0.27124178409576416,
0.037723150104284286,
-0.010026417672634125,
0.029623741284012794,
0.3054671883583069,
0.5597823858261108,
0.13676151633262634,
0.014883354306221008,
-0.29996901750564575,
0.10116612166166306,
0.07617130130529404,
-0.6981866359710693,
0.12384742498397827,
0.23410239815711975,
0.0236283540725708,
0.024222681298851967,
0.6538472175598145,
0.0671745091676712,
-0.2796173393726349,
0.00919501855969429,
-0.6785138845443726,
-0.19520145654678345,
-0.032726772129535675,
-0.06321907043457031,
0.08155973255634308,
0.05222772806882858,
0.16859140992164612,
-0.2319682091474533,
0.054793830960989,
-0.2701309323310852,
-0.11846543103456497,
-0.2223798632621765,
0.35954341292381287,
0.053310297429561615,
0.06112358719110489,
-0.02478904090821743,
-0.014231258071959019,
0.10420870780944824,
-0.03522636741399765,
-0.26172029972076416,
-0.19070571660995483,
-0.2443317025899887,
0.13796989619731903,
-0.02112630009651184,
-0.23035211861133575,
0.12560056149959564,
-0.07536691427230835,
0.018248872831463814,
-0.18184584379196167,
0.19707347452640533,
-0.23912766575813293,
-0.020189866423606873,
0.4959176778793335,
0.149338036775589,
0.13264423608779907,
-0.32610905170440674,
0.2046334445476532,
0.027426060289144516,
0.12406660616397858,
0.24038803577423096,
0.1404344141483307,
-0.04635147750377655,
-0.11215725541114807,
-0.14092668890953064,
-0.10567475110292435,
-0.20550884306430817,
0.12865862250328064,
0.1318548619747162,
-0.28417789936065674,
0.07567642629146576,
0.1577647179365158,
0.17607153952121735,
0.37358078360557556,
-0.18446741998195648,
-0.023422975093126297,
0.36452654004096985,
0.11164051294326782,
-0.45558974146842957,
-0.2869925796985626,
0.38191303610801697,
-0.0391535721719265,
-0.005776841193437576,
0.20533953607082367,
0.5703571438789368,
-0.16899046301841736,
-0.03868045657873154,
-0.17759963870048523,
0.5879212617874146,
-0.11984807252883911,
0.22425314784049988,
0.6006403565406799,
-0.07254882901906967,
0.2684133052825928,
-0.23259368538856506,
0.3050079941749573,
0.1707708239555359,
0.5635701417922974,
-0.07682817429304123,
0.20132513344287872,
0.313560426235199,
0.15720103681087494,
0.059755947440862656,
-0.6442468762397766,
0.42157265543937683,
-0.08454649150371552,
-0.0001291409134864807,
-0.08280523866415024,
0.06356455385684967,
-0.00429844856262207,
0.24131032824516296,
-0.23722854256629944,
-0.16863642632961273,
0.07614882290363312,
-0.19118231534957886,
-0.25442954897880554,
-0.338266521692276,
-0.009872771799564362,
-0.11745777726173401,
-0.11448721587657928,
0.04193517565727234,
-0.2317022830247879,
-0.4978172481060028,
0.21839869022369385,
0.14489534497261047,
-0.14379705488681793,
-0.0002378113567829132,
0.06757606565952301,
-0.16232720017433167,
-0.26087552309036255,
0.3504614233970642,
0.3511757254600525,
-0.24559009075164795,
0.23003049194812775,
-0.2465275377035141,
0.3479960858821869,
0.35746821761131287,
-0.03411313518881798,
0.0565178282558918,
-0.09386131167411804,
0.0934184342622757,
-0.023508887737989426,
0.09522728621959686,
0.16881389915943146,
0.13753722608089447,
0.29495078325271606,
0.10288235545158386,
0.033980488777160645,
-0.25040215253829956,
0.42805567383766174,
-0.22225293517112732,
0.08529575169086456,
0.17482313513755798,
0.08550988137722015,
0.07138723880052567,
-0.22106614708900452,
0.17466428875923157,
-0.10050545632839203,
0.08008083701133728,
0.6772449016571045,
0.16855952143669128,
0.25950971245765686,
0.027528047561645508,
0.06313075125217438,
-0.1522282361984253,
0.6817135214805603,
0.10793977975845337,
-0.06269065290689468,
-0.17013762891292572,
-0.004863277077674866,
-0.6639935970306396,
0.11958042532205582,
-0.10690408945083618,
0.023061787709593773,
0.1099826917052269,
0.006933912634849548,
0.41601893305778503,
0.07666605710983276,
0.09543894231319427,
0.5521391034126282,
0.20659193396568298,
0.25644057989120483,
-0.26813703775405884,
-0.30668535828590393,
0.19489118456840515,
0.052455827593803406,
-0.21236582100391388,
-0.4125497043132782,
0.12384766340255737,
-0.4491448700428009,
0.040551938116550446,
-0.21887099742889404,
-0.33323657512664795,
-0.008337141945958138,
0.003328368067741394,
0.1487603783607483,
0.18859155476093292,
0.4723273515701294,
-0.03820909932255745,
0.35412245988845825,
-0.08834892511367798,
-0.43835023045539856,
-0.0942467525601387,
0.3164360523223877,
0.22325599193572998,
0.17027445137500763,
-0.03469884768128395,
0.3704994022846222,
-0.4470806121826172,
0.07778217643499374,
0.02111242711544037,
-0.2746872901916504,
-0.1879153698682785,
0.47595879435539246,
-0.024371769279241562,
-0.06623999029397964,
0.34036943316459656,
-0.150919109582901,
0.07092706114053726,
-0.09287620335817337,
-0.09452566504478455,
-0.3275434672832489,
0.5750367641448975,
-0.24636077880859375,
-0.44693803787231445,
-0.17533890902996063,
0.30998754501342773,
-0.07455980032682419,
0.03995702043175697,
-0.21243146061897278,
0.24028944969177246,
0.3031342625617981,
-0.10321501642465591,
-0.02398558333516121,
0.1866740733385086,
0.27568313479423523,
0.03908215090632439,
-0.12350380420684814,
-0.1688860058784485,
0.04163597524166107,
-0.3620379567146301,
-0.10860927402973175,
-0.19426898658275604
] |
https://github.com/huggingface/datasets/issues/4575 | Problem about wmt17 zh-en dataset | I found some 'zh' item is none while 'c[hn]' is not.
So the code may change to:
```python
if 'c[hn]' in str(array.type):
py_array = array.to_pylist()
data_list = []
for vo in py_array:
tmp = {
'en': vo['en'],
}
if vo.get('zh'):
tmp['zh'] = vo['zh']
else:
tmp['zh'] = vo['c[hn]']
data_list.append(tmp)
array = pa.array(data_list, type=pa.struct([
pa.field('en', pa.string()),
pa.field('zh', pa.string()),
]))
``` | It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`.
So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception:
```
Traceback (most recent call last):
File "train.py", line 78, in <module>
data = load_dataset(args.dataset, "zh-en")
File "/usr/local/lib/python3.7/dist-packages/datasets/load.py", line 1684, in load_dataset
use_auth_token=use_auth_token,
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 705, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1221, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1215, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 533, in finalize
self.write_examples_on_file()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 410, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 503, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 198, in __arrow_array__
out = cast_array_to_feature(out, type, allow_number_to_str=not self.trying_type)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1846, in cast_array_to_feature
return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1756, in array_cast
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}")
TypeError: Couldn't cast array of type
struct<c[hn]: string, en: string, zh: string>
to
struct<en: string, zh: string>
```
So the solution of this problem is to change the original array manually:
```
if 'c[hn]' in str(array.type):
py_array = array.to_pylist()
data_list = []
for vo in py_array:
tmp = {
'en': vo['en'],
}
if 'zh' not in vo:
tmp['zh'] = vo['c[hn]']
else:
tmp['zh'] = vo['zh']
data_list.append(tmp)
array = pa.array(data_list, type=pa.struct([
pa.field('en', pa.string()),
pa.field('zh', pa.string()),
]))
```
Therefore, maybe a correct version of original casia2015 file need to be updated | 58 | Problem about wmt17 zh-en dataset
It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`.
So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception:
```
Traceback (most recent call last):
File "train.py", line 78, in <module>
data = load_dataset(args.dataset, "zh-en")
File "/usr/local/lib/python3.7/dist-packages/datasets/load.py", line 1684, in load_dataset
use_auth_token=use_auth_token,
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 705, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1221, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1215, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 533, in finalize
self.write_examples_on_file()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 410, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 503, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 198, in __arrow_array__
out = cast_array_to_feature(out, type, allow_number_to_str=not self.trying_type)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1846, in cast_array_to_feature
return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1756, in array_cast
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}")
TypeError: Couldn't cast array of type
struct<c[hn]: string, en: string, zh: string>
to
struct<en: string, zh: string>
```
So the solution of this problem is to change the original array manually:
```
if 'c[hn]' in str(array.type):
py_array = array.to_pylist()
data_list = []
for vo in py_array:
tmp = {
'en': vo['en'],
}
if 'zh' not in vo:
tmp['zh'] = vo['c[hn]']
else:
tmp['zh'] = vo['zh']
data_list.append(tmp)
array = pa.array(data_list, type=pa.struct([
pa.field('en', pa.string()),
pa.field('zh', pa.string()),
]))
```
Therefore, maybe a correct version of original casia2015 file need to be updated
I found some 'zh' item is none while 'c[hn]' is not.
So the code may change to:
```python
if 'c[hn]' in str(array.type):
py_array = array.to_pylist()
data_list = []
for vo in py_array:
tmp = {
'en': vo['en'],
}
if vo.get('zh'):
tmp['zh'] = vo['zh']
else:
tmp['zh'] = vo['c[hn]']
data_list.append(tmp)
array = pa.array(data_list, type=pa.struct([
pa.field('en', pa.string()),
pa.field('zh', pa.string()),
]))
``` | [
-0.3377845883369446,
-0.467081218957901,
0.042393047362565994,
0.32191354036331177,
0.3430138826370239,
0.13319173455238342,
0.2732115089893341,
0.07307456433773041,
0.004815666005015373,
0.0498819500207901,
0.11882953345775604,
0.1963013857603073,
0.06979179382324219,
0.09495574235916138,
0.023968461900949478,
-0.017927877604961395,
0.07348471879959106,
0.15306538343429565,
-0.03831797093153,
-0.23917461931705475,
-0.38474997878074646,
0.07737961411476135,
-0.32771897315979004,
0.3936987519264221,
-0.0633823573589325,
0.040247585624456406,
0.11137405037879944,
0.11107504367828369,
-0.0740835964679718,
-0.39036741852760315,
0.40851178765296936,
0.12093678116798401,
0.12289690971374512,
0.14673325419425964,
-0.00011645352060440928,
0.06536395847797394,
0.3447014093399048,
-0.1725253164768219,
-0.4521762728691101,
-0.4375850558280945,
-0.4569055736064911,
-0.1757201850414276,
-0.12418277561664581,
0.009444400668144226,
0.015181668102741241,
-0.7989673018455505,
-0.0731506422162056,
-0.13965922594070435,
0.3159068822860718,
0.16534601151943207,
0.13103020191192627,
0.21947742998600006,
-0.1688266396522522,
-0.38009530305862427,
0.19230705499649048,
0.31032583117485046,
0.012293031439185143,
0.005616690032184124,
0.3634284734725952,
-0.0009244652464985847,
0.17128711938858032,
0.32253798842430115,
0.14581653475761414,
-0.014035362750291824,
0.03738485276699066,
0.06784594058990479,
0.6765218377113342,
0.028594858944416046,
0.137451171875,
0.28046348690986633,
0.8635320663452148,
-0.15284180641174316,
-0.258048415184021,
0.03289592266082764,
-0.014304506592452526,
-0.5694239139556885,
0.06400138139724731,
0.5117596983909607,
-0.42018795013427734,
0.15098950266838074,
-0.01643001101911068,
0.044286515563726425,
-0.18375468254089355,
0.2688910961151123,
-0.23633815348148346,
0.6082727909088135,
-0.06501755118370056,
0.224023699760437,
-0.06346094608306885,
-0.06813085824251175,
0.4670790433883667,
-0.04518374055624008,
-0.12134237587451935,
-0.13548991084098816,
-0.18928302824497223,
0.13735899329185486,
-0.2512485086917877,
0.03946750611066818,
0.23174268007278442,
0.031698234379291534,
0.12116392701864243,
0.2325185239315033,
0.12392190098762512,
0.24969518184661865,
0.20939326286315918,
0.007798405364155769,
0.1239313930273056,
0.04365573450922966,
0.22245679795742035,
0.12751178443431854,
-0.11759218573570251,
-0.10522925108671188,
-0.14514848589897156,
-0.18820525705814362,
0.002856999635696411,
0.2467600405216217,
0.2198711484670639,
-0.1759379357099533,
-0.2786453068256378,
-0.11210629343986511,
-0.11361932754516602,
-0.24442417919635773,
0.06192104518413544,
0.6118229031562805,
0.19812080264091492,
0.18130043148994446,
-0.11320613324642181,
0.30704665184020996,
-0.03392617404460907,
-0.05459947511553764,
-0.2538650333881378,
-0.06571872532367706,
-0.19008448719978333,
-0.13546708226203918,
-0.05989489704370499,
0.24683791399002075,
0.2463293969631195,
0.1666593700647354,
-0.11514881253242493,
-0.09746262431144714,
0.17899315059185028,
0.02046862430870533,
0.3411898910999298,
0.2788458466529846,
-0.06738381087779999,
0.19410285353660583,
0.20383550226688385,
-0.12059857696294785,
-0.1635449230670929,
0.286817729473114,
-0.29125311970710754,
-0.30290332436561584,
-0.27594104409217834,
0.15629136562347412,
0.10918572545051575,
0.08757846057415009,
0.08089914172887802,
-0.057863909751176834,
0.17213252186775208,
0.0050645992159843445,
-0.0929386243224144,
-0.22274111211299896,
-0.26602092385292053,
-0.08373195677995682,
0.29048725962638855,
0.11302988231182098,
-0.5776785016059875,
-0.01831652969121933,
-0.15101556479930878,
-0.0034364350140094757,
0.48250335454940796,
0.42527562379837036,
-0.545210599899292,
0.22550228238105774,
-0.3694884777069092,
-0.28321218490600586,
0.4358467757701874,
-0.5007727146148682,
-0.09561404585838318,
-0.01613665744662285,
0.062334656715393066,
0.12332048267126083,
0.1721268594264984,
-0.10571227222681046,
-0.2861859202384949,
-0.1949136108160019,
-0.024393871426582336,
0.07799698412418365,
-0.11570781469345093,
-0.10026701539754868,
-0.08069893717765808,
-0.13505081832408905,
0.6236283183097839,
-0.025856751948595047,
-0.1393282115459442,
-0.10071953386068344,
0.12244606763124466,
0.1336323469877243,
0.38904818892478943,
-0.38935017585754395,
-0.0191506277769804,
-0.046801790595054626,
0.3313990831375122,
-0.03601294010877609,
0.2145659625530243,
0.3880467712879181,
-0.07790292054414749,
0.22400158643722534,
0.00738900899887085,
0.08061274886131287,
-0.30656617879867554,
-0.10522406548261642,
-0.29958558082580566,
0.17995335161685944,
-0.42031756043434143,
-0.03240165486931801,
0.0588870570063591,
0.15873634815216064,
-0.2320602983236313,
-0.0932631865143776,
0.2077486664056778,
0.21851077675819397,
-0.30143412947654724,
-0.0434914156794548,
-0.043600812554359436,
0.1874983012676239,
-0.06770499795675278,
0.06091930344700813,
-0.21696782112121582,
0.18380656838417053,
0.21467313170433044,
-0.12997792661190033,
-0.28211966156959534,
0.07461737096309662,
0.35250943899154663,
-0.09357476234436035,
-0.28023308515548706,
-0.1999765783548355,
0.21512427926063538,
-0.3449278175830841,
0.21794041991233826,
-0.05682336911559105,
0.3373585045337677,
-0.05178981274366379,
-0.19145134091377258,
0.2566453814506531,
0.19271190464496613,
0.06737612187862396,
0.0947628915309906,
-0.05075529217720032,
0.590083122253418,
0.15323200821876526,
0.12838977575302124,
-0.34937524795532227,
0.09037461876869202,
-0.30100783705711365,
-0.11474157869815826,
0.09691499173641205,
-0.10577747225761414,
0.024766847491264343,
0.5597338080406189,
0.10184682905673981,
0.27101805806159973,
0.03878430277109146,
-0.18161869049072266,
-0.014366100542247295,
-0.011568756774067879,
0.27045807242393494,
0.3801366090774536,
0.0619780458509922,
-0.06917884945869446,
0.0041776616126298904,
0.03769601881504059,
-0.18528734147548676,
0.3187333345413208,
0.21335908770561218,
0.17337508499622345,
0.2884103059768677,
0.1049128845334053,
-0.13580268621444702,
-0.21888479590415955,
-0.0009259209036827087,
0.17433878779411316,
0.1986171454191208,
-0.294264018535614,
0.10180162638425827,
-0.4942147135734558,
-0.34615737199783325,
-0.35673218965530396,
0.14117221534252167,
0.055160410702228546,
-0.1872355043888092,
-0.06664979457855225,
0.02429431490600109,
-0.08508609235286713,
0.3275420665740967,
0.13639599084854126,
0.2553243339061737,
-0.050191085785627365,
0.1963919699192047,
0.05328638106584549,
-0.43730366230010986,
-0.2480151653289795,
-0.012325379997491837,
0.16724467277526855,
0.12994244694709778,
0.12918926775455475,
-0.21616801619529724,
-0.10262644290924072,
-0.09023978561162949,
-0.29749956727027893,
0.29613614082336426,
0.11363391578197479,
0.13970066606998444,
0.22621802985668182,
0.1776503026485443,
-0.011061020195484161,
-0.29113197326660156,
0.36351048946380615,
0.07185421139001846,
-0.14470738172531128,
0.24132511019706726,
-0.11663824319839478,
-0.23486101627349854,
-0.22494105994701385,
-0.26038646697998047,
-0.7596336603164673,
-0.3693675100803375,
-0.2758355140686035,
-0.029461754485964775,
0.019667387008666992,
0.4062572717666626,
-0.11672643572092056,
-0.23918655514717102,
-0.03713594749569893,
-0.08808135986328125,
-0.21508479118347168,
-0.11834534257650375,
0.32676345109939575,
-0.1581702083349228,
-0.34431132674217224,
0.055041003972291946,
-0.15898293256759644,
0.3081013560295105,
0.02646806836128235,
-0.2107197344303131,
-0.12851651012897491,
0.11740031093358994,
-0.0584183968603611,
-0.06230230629444122,
0.12634976208209991,
0.10520049184560776,
0.11800745874643326,
-0.053484171628952026,
-0.24760761857032776,
-0.17519676685333252,
0.3063231408596039,
0.11404062062501907,
0.4077616035938263,
-0.29196998476982117,
0.11984512954950333,
-0.040134403854608536,
0.3664965033531189,
0.17748761177062988,
-0.13411350548267365,
0.38092902302742004,
-0.05039500445127487,
0.13344267010688782,
-0.054186902940273285,
-0.2824591100215912,
-0.06626005470752716,
0.11653979122638702,
0.030280422419309616,
0.37426483631134033,
-0.10971272736787796,
-0.26281315088272095,
0.06505514681339264,
-0.2011966109275818,
-0.007323987782001495,
-0.46657997369766235,
0.050078555941581726,
0.0837346613407135,
0.1833982914686203,
0.06022690609097481,
0.028079934418201447,
-0.2726823091506958,
-0.20213329792022705,
0.004859264940023422,
0.24226650595664978,
-0.06209469586610794,
0.031512293964624405,
-0.35058706998825073,
-0.37227118015289307,
-0.023590676486492157,
0.169407919049263,
0.23107744753360748,
0.7745785713195801,
-0.2196330577135086,
-0.07622817158699036,
0.10760851949453354,
-0.14143389463424683,
0.6628496050834656,
-0.3299980163574219,
0.23588767647743225,
0.1155354380607605,
0.09995703399181366,
-0.4302084743976593,
-0.33611854910850525,
-0.020349973812699318,
0.1584402322769165,
-0.20723772048950195,
0.07680409401655197,
-0.0031716004014015198,
-0.2849236726760864,
0.01225314848124981,
0.5078946948051453,
-0.3595191538333893,
-0.054027821868658066,
-0.33810189366340637,
-0.4371708929538727,
-0.42916253209114075,
-0.13628065586090088,
0.11734283715486526,
0.10102829337120056,
-0.09040731191635132,
-0.2531672418117523,
0.1415589451789856,
-0.004208028316497803,
0.13144229352474213,
0.365174263715744,
0.3206692934036255,
0.08260893821716309,
0.15152789652347565,
-0.17838512361049652,
0.38708359003067017,
0.33259108662605286,
0.5522764325141907,
0.044508710503578186,
-0.7035053372383118,
-0.03488805890083313,
-0.28406867384910583,
0.3198297321796417,
0.12218081951141357,
-0.25825637578964233,
0.2722054421901703,
0.04763057455420494,
-0.07648123800754547,
-0.23527327179908752,
0.114786297082901,
0.2568323612213135,
0.1281142681837082,
-0.6447304487228394,
-0.21413688361644745,
0.12417544424533844,
-0.06322221457958221,
-0.012871995568275452,
0.18184147775173187,
-0.11247308552265167,
-0.44157952070236206,
0.46505826711654663,
-0.011938251554965973,
0.6561327576637268,
0.10985018312931061,
0.09025794267654419,
-0.023653153330087662,
0.34468549489974976,
0.25899016857147217,
0.028289899230003357,
0.10324550420045853,
-0.38093826174736023,
-0.2709801197052002,
-0.03051382303237915,
-0.1941090077161789,
0.3490884602069855,
0.2009592205286026,
-0.1819540560245514,
0.18295936286449432,
-0.20478036999702454,
0.2768193185329437,
0.035331349819898605,
0.22662600874900818,
-0.1563590168952942,
-0.18730832636356354,
0.011322411708533764,
0.054996006190776825,
0.008873071521520615,
-0.036156851798295975,
-0.09963008016347885,
-0.1050495058298111,
-0.09061598032712936,
-0.2063925862312317,
-0.28086480498313904,
0.06875892728567123,
-0.3103071451187134,
0.4094385504722595,
0.024021457880735397,
-0.08097842335700989,
0.6383905410766602,
-0.07073390483856201,
0.4963694214820862,
0.2369714230298996,
-0.01854061894118786,
0.4019712805747986,
-0.1372864842414856,
0.303434818983078,
-0.07453978061676025,
0.05733858048915863,
0.22181062400341034,
-0.05974527820944786,
-0.36664503812789917,
-0.11490156501531601,
0.03279447183012962,
0.06390631943941116,
0.10803094506263733,
-0.3144100308418274,
0.3039652109146118,
-0.10337356477975845,
-0.13445211946964264,
-0.1546441912651062,
0.09579439461231232,
-0.32223713397979736,
0.057929422706365585,
0.02400258556008339,
-0.42442482709884644,
0.26357078552246094,
-0.08709177374839783,
-0.27124178409576416,
0.037723150104284286,
-0.010026417672634125,
0.029623741284012794,
0.3054671883583069,
0.5597823858261108,
0.13676151633262634,
0.014883354306221008,
-0.29996901750564575,
0.10116612166166306,
0.07617130130529404,
-0.6981866359710693,
0.12384742498397827,
0.23410239815711975,
0.0236283540725708,
0.024222681298851967,
0.6538472175598145,
0.0671745091676712,
-0.2796173393726349,
0.00919501855969429,
-0.6785138845443726,
-0.19520145654678345,
-0.032726772129535675,
-0.06321907043457031,
0.08155973255634308,
0.05222772806882858,
0.16859140992164612,
-0.2319682091474533,
0.054793830960989,
-0.2701309323310852,
-0.11846543103456497,
-0.2223798632621765,
0.35954341292381287,
0.053310297429561615,
0.06112358719110489,
-0.02478904090821743,
-0.014231258071959019,
0.10420870780944824,
-0.03522636741399765,
-0.26172029972076416,
-0.19070571660995483,
-0.2443317025899887,
0.13796989619731903,
-0.02112630009651184,
-0.23035211861133575,
0.12560056149959564,
-0.07536691427230835,
0.018248872831463814,
-0.18184584379196167,
0.19707347452640533,
-0.23912766575813293,
-0.020189866423606873,
0.4959176778793335,
0.149338036775589,
0.13264423608779907,
-0.32610905170440674,
0.2046334445476532,
0.027426060289144516,
0.12406660616397858,
0.24038803577423096,
0.1404344141483307,
-0.04635147750377655,
-0.11215725541114807,
-0.14092668890953064,
-0.10567475110292435,
-0.20550884306430817,
0.12865862250328064,
0.1318548619747162,
-0.28417789936065674,
0.07567642629146576,
0.1577647179365158,
0.17607153952121735,
0.37358078360557556,
-0.18446741998195648,
-0.023422975093126297,
0.36452654004096985,
0.11164051294326782,
-0.45558974146842957,
-0.2869925796985626,
0.38191303610801697,
-0.0391535721719265,
-0.005776841193437576,
0.20533953607082367,
0.5703571438789368,
-0.16899046301841736,
-0.03868045657873154,
-0.17759963870048523,
0.5879212617874146,
-0.11984807252883911,
0.22425314784049988,
0.6006403565406799,
-0.07254882901906967,
0.2684133052825928,
-0.23259368538856506,
0.3050079941749573,
0.1707708239555359,
0.5635701417922974,
-0.07682817429304123,
0.20132513344287872,
0.313560426235199,
0.15720103681087494,
0.059755947440862656,
-0.6442468762397766,
0.42157265543937683,
-0.08454649150371552,
-0.0001291409134864807,
-0.08280523866415024,
0.06356455385684967,
-0.00429844856262207,
0.24131032824516296,
-0.23722854256629944,
-0.16863642632961273,
0.07614882290363312,
-0.19118231534957886,
-0.25442954897880554,
-0.338266521692276,
-0.009872771799564362,
-0.11745777726173401,
-0.11448721587657928,
0.04193517565727234,
-0.2317022830247879,
-0.4978172481060028,
0.21839869022369385,
0.14489534497261047,
-0.14379705488681793,
-0.0002378113567829132,
0.06757606565952301,
-0.16232720017433167,
-0.26087552309036255,
0.3504614233970642,
0.3511757254600525,
-0.24559009075164795,
0.23003049194812775,
-0.2465275377035141,
0.3479960858821869,
0.35746821761131287,
-0.03411313518881798,
0.0565178282558918,
-0.09386131167411804,
0.0934184342622757,
-0.023508887737989426,
0.09522728621959686,
0.16881389915943146,
0.13753722608089447,
0.29495078325271606,
0.10288235545158386,
0.033980488777160645,
-0.25040215253829956,
0.42805567383766174,
-0.22225293517112732,
0.08529575169086456,
0.17482313513755798,
0.08550988137722015,
0.07138723880052567,
-0.22106614708900452,
0.17466428875923157,
-0.10050545632839203,
0.08008083701133728,
0.6772449016571045,
0.16855952143669128,
0.25950971245765686,
0.027528047561645508,
0.06313075125217438,
-0.1522282361984253,
0.6817135214805603,
0.10793977975845337,
-0.06269065290689468,
-0.17013762891292572,
-0.004863277077674866,
-0.6639935970306396,
0.11958042532205582,
-0.10690408945083618,
0.023061787709593773,
0.1099826917052269,
0.006933912634849548,
0.41601893305778503,
0.07666605710983276,
0.09543894231319427,
0.5521391034126282,
0.20659193396568298,
0.25644057989120483,
-0.26813703775405884,
-0.30668535828590393,
0.19489118456840515,
0.052455827593803406,
-0.21236582100391388,
-0.4125497043132782,
0.12384766340255737,
-0.4491448700428009,
0.040551938116550446,
-0.21887099742889404,
-0.33323657512664795,
-0.008337141945958138,
0.003328368067741394,
0.1487603783607483,
0.18859155476093292,
0.4723273515701294,
-0.03820909932255745,
0.35412245988845825,
-0.08834892511367798,
-0.43835023045539856,
-0.0942467525601387,
0.3164360523223877,
0.22325599193572998,
0.17027445137500763,
-0.03469884768128395,
0.3704994022846222,
-0.4470806121826172,
0.07778217643499374,
0.02111242711544037,
-0.2746872901916504,
-0.1879153698682785,
0.47595879435539246,
-0.024371769279241562,
-0.06623999029397964,
0.34036943316459656,
-0.150919109582901,
0.07092706114053726,
-0.09287620335817337,
-0.09452566504478455,
-0.3275434672832489,
0.5750367641448975,
-0.24636077880859375,
-0.44693803787231445,
-0.17533890902996063,
0.30998754501342773,
-0.07455980032682419,
0.03995702043175697,
-0.21243146061897278,
0.24028944969177246,
0.3031342625617981,
-0.10321501642465591,
-0.02398558333516121,
0.1866740733385086,
0.27568313479423523,
0.03908215090632439,
-0.12350380420684814,
-0.1688860058784485,
0.04163597524166107,
-0.3620379567146301,
-0.10860927402973175,
-0.19426898658275604
] |
https://github.com/huggingface/datasets/issues/4575 | Problem about wmt17 zh-en dataset | I just pushed a fix, we'll do a new release of `datasets` soon to include this fix. In the meantime you can use the fixed dataset by passing `revision="main"` to `load_dataset` | It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`.
So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception:
```
Traceback (most recent call last):
File "train.py", line 78, in <module>
data = load_dataset(args.dataset, "zh-en")
File "/usr/local/lib/python3.7/dist-packages/datasets/load.py", line 1684, in load_dataset
use_auth_token=use_auth_token,
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 705, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1221, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1215, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 533, in finalize
self.write_examples_on_file()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 410, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 503, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 198, in __arrow_array__
out = cast_array_to_feature(out, type, allow_number_to_str=not self.trying_type)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1846, in cast_array_to_feature
return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1756, in array_cast
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}")
TypeError: Couldn't cast array of type
struct<c[hn]: string, en: string, zh: string>
to
struct<en: string, zh: string>
```
So the solution of this problem is to change the original array manually:
```
if 'c[hn]' in str(array.type):
py_array = array.to_pylist()
data_list = []
for vo in py_array:
tmp = {
'en': vo['en'],
}
if 'zh' not in vo:
tmp['zh'] = vo['c[hn]']
else:
tmp['zh'] = vo['zh']
data_list.append(tmp)
array = pa.array(data_list, type=pa.struct([
pa.field('en', pa.string()),
pa.field('zh', pa.string()),
]))
```
Therefore, maybe a correct version of original casia2015 file need to be updated | 31 | Problem about wmt17 zh-en dataset
It seems that in subset casia2015, some samples are like `{'c[hn]':'xxx', 'en': 'aa'}`.
So when using `data = load_dataset('wmt17', "zh-en")` to load the wmt17 zh-en dataset, which will raise the exception:
```
Traceback (most recent call last):
File "train.py", line 78, in <module>
data = load_dataset(args.dataset, "zh-en")
File "/usr/local/lib/python3.7/dist-packages/datasets/load.py", line 1684, in load_dataset
use_auth_token=use_auth_token,
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 705, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1221, in _download_and_prepare
super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 793, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/builder.py", line 1215, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 533, in finalize
self.write_examples_on_file()
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 410, in write_examples_on_file
self.write_batch(batch_examples=batch_examples)
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 503, in write_batch
arrays.append(pa.array(typed_sequence))
File "pyarrow/array.pxi", line 230, in pyarrow.lib.array
File "pyarrow/array.pxi", line 110, in pyarrow.lib._handle_arrow_array_protocol
File "/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py", line 198, in __arrow_array__
out = cast_array_to_feature(out, type, allow_number_to_str=not self.trying_type)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1846, in cast_array_to_feature
return array_cast(array, feature(), allow_number_to_str=allow_number_to_str)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1675, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/datasets/table.py", line 1756, in array_cast
raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}")
TypeError: Couldn't cast array of type
struct<c[hn]: string, en: string, zh: string>
to
struct<en: string, zh: string>
```
So the solution of this problem is to change the original array manually:
```
if 'c[hn]' in str(array.type):
py_array = array.to_pylist()
data_list = []
for vo in py_array:
tmp = {
'en': vo['en'],
}
if 'zh' not in vo:
tmp['zh'] = vo['c[hn]']
else:
tmp['zh'] = vo['zh']
data_list.append(tmp)
array = pa.array(data_list, type=pa.struct([
pa.field('en', pa.string()),
pa.field('zh', pa.string()),
]))
```
Therefore, maybe a correct version of original casia2015 file need to be updated
I just pushed a fix, we'll do a new release of `datasets` soon to include this fix. In the meantime you can use the fixed dataset by passing `revision="main"` to `load_dataset` | [
-0.3377845883369446,
-0.467081218957901,
0.042393047362565994,
0.32191354036331177,
0.3430138826370239,
0.13319173455238342,
0.2732115089893341,
0.07307456433773041,
0.004815666005015373,
0.0498819500207901,
0.11882953345775604,
0.1963013857603073,
0.06979179382324219,
0.09495574235916138,
0.023968461900949478,
-0.017927877604961395,
0.07348471879959106,
0.15306538343429565,
-0.03831797093153,
-0.23917461931705475,
-0.38474997878074646,
0.07737961411476135,
-0.32771897315979004,
0.3936987519264221,
-0.0633823573589325,
0.040247585624456406,
0.11137405037879944,
0.11107504367828369,
-0.0740835964679718,
-0.39036741852760315,
0.40851178765296936,
0.12093678116798401,
0.12289690971374512,
0.14673325419425964,
-0.00011645352060440928,
0.06536395847797394,
0.3447014093399048,
-0.1725253164768219,
-0.4521762728691101,
-0.4375850558280945,
-0.4569055736064911,
-0.1757201850414276,
-0.12418277561664581,
0.009444400668144226,
0.015181668102741241,
-0.7989673018455505,
-0.0731506422162056,
-0.13965922594070435,
0.3159068822860718,
0.16534601151943207,
0.13103020191192627,
0.21947742998600006,
-0.1688266396522522,
-0.38009530305862427,
0.19230705499649048,
0.31032583117485046,
0.012293031439185143,
0.005616690032184124,
0.3634284734725952,
-0.0009244652464985847,
0.17128711938858032,
0.32253798842430115,
0.14581653475761414,
-0.014035362750291824,
0.03738485276699066,
0.06784594058990479,
0.6765218377113342,
0.028594858944416046,
0.137451171875,
0.28046348690986633,
0.8635320663452148,
-0.15284180641174316,
-0.258048415184021,
0.03289592266082764,
-0.014304506592452526,
-0.5694239139556885,
0.06400138139724731,
0.5117596983909607,
-0.42018795013427734,
0.15098950266838074,
-0.01643001101911068,
0.044286515563726425,
-0.18375468254089355,
0.2688910961151123,
-0.23633815348148346,
0.6082727909088135,
-0.06501755118370056,
0.224023699760437,
-0.06346094608306885,
-0.06813085824251175,
0.4670790433883667,
-0.04518374055624008,
-0.12134237587451935,
-0.13548991084098816,
-0.18928302824497223,
0.13735899329185486,
-0.2512485086917877,
0.03946750611066818,
0.23174268007278442,
0.031698234379291534,
0.12116392701864243,
0.2325185239315033,
0.12392190098762512,
0.24969518184661865,
0.20939326286315918,
0.007798405364155769,
0.1239313930273056,
0.04365573450922966,
0.22245679795742035,
0.12751178443431854,
-0.11759218573570251,
-0.10522925108671188,
-0.14514848589897156,
-0.18820525705814362,
0.002856999635696411,
0.2467600405216217,
0.2198711484670639,
-0.1759379357099533,
-0.2786453068256378,
-0.11210629343986511,
-0.11361932754516602,
-0.24442417919635773,
0.06192104518413544,
0.6118229031562805,
0.19812080264091492,
0.18130043148994446,
-0.11320613324642181,
0.30704665184020996,
-0.03392617404460907,
-0.05459947511553764,
-0.2538650333881378,
-0.06571872532367706,
-0.19008448719978333,
-0.13546708226203918,
-0.05989489704370499,
0.24683791399002075,
0.2463293969631195,
0.1666593700647354,
-0.11514881253242493,
-0.09746262431144714,
0.17899315059185028,
0.02046862430870533,
0.3411898910999298,
0.2788458466529846,
-0.06738381087779999,
0.19410285353660583,
0.20383550226688385,
-0.12059857696294785,
-0.1635449230670929,
0.286817729473114,
-0.29125311970710754,
-0.30290332436561584,
-0.27594104409217834,
0.15629136562347412,
0.10918572545051575,
0.08757846057415009,
0.08089914172887802,
-0.057863909751176834,
0.17213252186775208,
0.0050645992159843445,
-0.0929386243224144,
-0.22274111211299896,
-0.26602092385292053,
-0.08373195677995682,
0.29048725962638855,
0.11302988231182098,
-0.5776785016059875,
-0.01831652969121933,
-0.15101556479930878,
-0.0034364350140094757,
0.48250335454940796,
0.42527562379837036,
-0.545210599899292,
0.22550228238105774,
-0.3694884777069092,
-0.28321218490600586,
0.4358467757701874,
-0.5007727146148682,
-0.09561404585838318,
-0.01613665744662285,
0.062334656715393066,
0.12332048267126083,
0.1721268594264984,
-0.10571227222681046,
-0.2861859202384949,
-0.1949136108160019,
-0.024393871426582336,
0.07799698412418365,
-0.11570781469345093,
-0.10026701539754868,
-0.08069893717765808,
-0.13505081832408905,
0.6236283183097839,
-0.025856751948595047,
-0.1393282115459442,
-0.10071953386068344,
0.12244606763124466,
0.1336323469877243,
0.38904818892478943,
-0.38935017585754395,
-0.0191506277769804,
-0.046801790595054626,
0.3313990831375122,
-0.03601294010877609,
0.2145659625530243,
0.3880467712879181,
-0.07790292054414749,
0.22400158643722534,
0.00738900899887085,
0.08061274886131287,
-0.30656617879867554,
-0.10522406548261642,
-0.29958558082580566,
0.17995335161685944,
-0.42031756043434143,
-0.03240165486931801,
0.0588870570063591,
0.15873634815216064,
-0.2320602983236313,
-0.0932631865143776,
0.2077486664056778,
0.21851077675819397,
-0.30143412947654724,
-0.0434914156794548,
-0.043600812554359436,
0.1874983012676239,
-0.06770499795675278,
0.06091930344700813,
-0.21696782112121582,
0.18380656838417053,
0.21467313170433044,
-0.12997792661190033,
-0.28211966156959534,
0.07461737096309662,
0.35250943899154663,
-0.09357476234436035,
-0.28023308515548706,
-0.1999765783548355,
0.21512427926063538,
-0.3449278175830841,
0.21794041991233826,
-0.05682336911559105,
0.3373585045337677,
-0.05178981274366379,
-0.19145134091377258,
0.2566453814506531,
0.19271190464496613,
0.06737612187862396,
0.0947628915309906,
-0.05075529217720032,
0.590083122253418,
0.15323200821876526,
0.12838977575302124,
-0.34937524795532227,
0.09037461876869202,
-0.30100783705711365,
-0.11474157869815826,
0.09691499173641205,
-0.10577747225761414,
0.024766847491264343,
0.5597338080406189,
0.10184682905673981,
0.27101805806159973,
0.03878430277109146,
-0.18161869049072266,
-0.014366100542247295,
-0.011568756774067879,
0.27045807242393494,
0.3801366090774536,
0.0619780458509922,
-0.06917884945869446,
0.0041776616126298904,
0.03769601881504059,
-0.18528734147548676,
0.3187333345413208,
0.21335908770561218,
0.17337508499622345,
0.2884103059768677,
0.1049128845334053,
-0.13580268621444702,
-0.21888479590415955,
-0.0009259209036827087,
0.17433878779411316,
0.1986171454191208,
-0.294264018535614,
0.10180162638425827,
-0.4942147135734558,
-0.34615737199783325,
-0.35673218965530396,
0.14117221534252167,
0.055160410702228546,
-0.1872355043888092,
-0.06664979457855225,
0.02429431490600109,
-0.08508609235286713,
0.3275420665740967,
0.13639599084854126,
0.2553243339061737,
-0.050191085785627365,
0.1963919699192047,
0.05328638106584549,
-0.43730366230010986,
-0.2480151653289795,
-0.012325379997491837,
0.16724467277526855,
0.12994244694709778,
0.12918926775455475,
-0.21616801619529724,
-0.10262644290924072,
-0.09023978561162949,
-0.29749956727027893,
0.29613614082336426,
0.11363391578197479,
0.13970066606998444,
0.22621802985668182,
0.1776503026485443,
-0.011061020195484161,
-0.29113197326660156,
0.36351048946380615,
0.07185421139001846,
-0.14470738172531128,
0.24132511019706726,
-0.11663824319839478,
-0.23486101627349854,
-0.22494105994701385,
-0.26038646697998047,
-0.7596336603164673,
-0.3693675100803375,
-0.2758355140686035,
-0.029461754485964775,
0.019667387008666992,
0.4062572717666626,
-0.11672643572092056,
-0.23918655514717102,
-0.03713594749569893,
-0.08808135986328125,
-0.21508479118347168,
-0.11834534257650375,
0.32676345109939575,
-0.1581702083349228,
-0.34431132674217224,
0.055041003972291946,
-0.15898293256759644,
0.3081013560295105,
0.02646806836128235,
-0.2107197344303131,
-0.12851651012897491,
0.11740031093358994,
-0.0584183968603611,
-0.06230230629444122,
0.12634976208209991,
0.10520049184560776,
0.11800745874643326,
-0.053484171628952026,
-0.24760761857032776,
-0.17519676685333252,
0.3063231408596039,
0.11404062062501907,
0.4077616035938263,
-0.29196998476982117,
0.11984512954950333,
-0.040134403854608536,
0.3664965033531189,
0.17748761177062988,
-0.13411350548267365,
0.38092902302742004,
-0.05039500445127487,
0.13344267010688782,
-0.054186902940273285,
-0.2824591100215912,
-0.06626005470752716,
0.11653979122638702,
0.030280422419309616,
0.37426483631134033,
-0.10971272736787796,
-0.26281315088272095,
0.06505514681339264,
-0.2011966109275818,
-0.007323987782001495,
-0.46657997369766235,
0.050078555941581726,
0.0837346613407135,
0.1833982914686203,
0.06022690609097481,
0.028079934418201447,
-0.2726823091506958,
-0.20213329792022705,
0.004859264940023422,
0.24226650595664978,
-0.06209469586610794,
0.031512293964624405,
-0.35058706998825073,
-0.37227118015289307,
-0.023590676486492157,
0.169407919049263,
0.23107744753360748,
0.7745785713195801,
-0.2196330577135086,
-0.07622817158699036,
0.10760851949453354,
-0.14143389463424683,
0.6628496050834656,
-0.3299980163574219,
0.23588767647743225,
0.1155354380607605,
0.09995703399181366,
-0.4302084743976593,
-0.33611854910850525,
-0.020349973812699318,
0.1584402322769165,
-0.20723772048950195,
0.07680409401655197,
-0.0031716004014015198,
-0.2849236726760864,
0.01225314848124981,
0.5078946948051453,
-0.3595191538333893,
-0.054027821868658066,
-0.33810189366340637,
-0.4371708929538727,
-0.42916253209114075,
-0.13628065586090088,
0.11734283715486526,
0.10102829337120056,
-0.09040731191635132,
-0.2531672418117523,
0.1415589451789856,
-0.004208028316497803,
0.13144229352474213,
0.365174263715744,
0.3206692934036255,
0.08260893821716309,
0.15152789652347565,
-0.17838512361049652,
0.38708359003067017,
0.33259108662605286,
0.5522764325141907,
0.044508710503578186,
-0.7035053372383118,
-0.03488805890083313,
-0.28406867384910583,
0.3198297321796417,
0.12218081951141357,
-0.25825637578964233,
0.2722054421901703,
0.04763057455420494,
-0.07648123800754547,
-0.23527327179908752,
0.114786297082901,
0.2568323612213135,
0.1281142681837082,
-0.6447304487228394,
-0.21413688361644745,
0.12417544424533844,
-0.06322221457958221,
-0.012871995568275452,
0.18184147775173187,
-0.11247308552265167,
-0.44157952070236206,
0.46505826711654663,
-0.011938251554965973,
0.6561327576637268,
0.10985018312931061,
0.09025794267654419,
-0.023653153330087662,
0.34468549489974976,
0.25899016857147217,
0.028289899230003357,
0.10324550420045853,
-0.38093826174736023,
-0.2709801197052002,
-0.03051382303237915,
-0.1941090077161789,
0.3490884602069855,
0.2009592205286026,
-0.1819540560245514,
0.18295936286449432,
-0.20478036999702454,
0.2768193185329437,
0.035331349819898605,
0.22662600874900818,
-0.1563590168952942,
-0.18730832636356354,
0.011322411708533764,
0.054996006190776825,
0.008873071521520615,
-0.036156851798295975,
-0.09963008016347885,
-0.1050495058298111,
-0.09061598032712936,
-0.2063925862312317,
-0.28086480498313904,
0.06875892728567123,
-0.3103071451187134,
0.4094385504722595,
0.024021457880735397,
-0.08097842335700989,
0.6383905410766602,
-0.07073390483856201,
0.4963694214820862,
0.2369714230298996,
-0.01854061894118786,
0.4019712805747986,
-0.1372864842414856,
0.303434818983078,
-0.07453978061676025,
0.05733858048915863,
0.22181062400341034,
-0.05974527820944786,
-0.36664503812789917,
-0.11490156501531601,
0.03279447183012962,
0.06390631943941116,
0.10803094506263733,
-0.3144100308418274,
0.3039652109146118,
-0.10337356477975845,
-0.13445211946964264,
-0.1546441912651062,
0.09579439461231232,
-0.32223713397979736,
0.057929422706365585,
0.02400258556008339,
-0.42442482709884644,
0.26357078552246094,
-0.08709177374839783,
-0.27124178409576416,
0.037723150104284286,
-0.010026417672634125,
0.029623741284012794,
0.3054671883583069,
0.5597823858261108,
0.13676151633262634,
0.014883354306221008,
-0.29996901750564575,
0.10116612166166306,
0.07617130130529404,
-0.6981866359710693,
0.12384742498397827,
0.23410239815711975,
0.0236283540725708,
0.024222681298851967,
0.6538472175598145,
0.0671745091676712,
-0.2796173393726349,
0.00919501855969429,
-0.6785138845443726,
-0.19520145654678345,
-0.032726772129535675,
-0.06321907043457031,
0.08155973255634308,
0.05222772806882858,
0.16859140992164612,
-0.2319682091474533,
0.054793830960989,
-0.2701309323310852,
-0.11846543103456497,
-0.2223798632621765,
0.35954341292381287,
0.053310297429561615,
0.06112358719110489,
-0.02478904090821743,
-0.014231258071959019,
0.10420870780944824,
-0.03522636741399765,
-0.26172029972076416,
-0.19070571660995483,
-0.2443317025899887,
0.13796989619731903,
-0.02112630009651184,
-0.23035211861133575,
0.12560056149959564,
-0.07536691427230835,
0.018248872831463814,
-0.18184584379196167,
0.19707347452640533,
-0.23912766575813293,
-0.020189866423606873,
0.4959176778793335,
0.149338036775589,
0.13264423608779907,
-0.32610905170440674,
0.2046334445476532,
0.027426060289144516,
0.12406660616397858,
0.24038803577423096,
0.1404344141483307,
-0.04635147750377655,
-0.11215725541114807,
-0.14092668890953064,
-0.10567475110292435,
-0.20550884306430817,
0.12865862250328064,
0.1318548619747162,
-0.28417789936065674,
0.07567642629146576,
0.1577647179365158,
0.17607153952121735,
0.37358078360557556,
-0.18446741998195648,
-0.023422975093126297,
0.36452654004096985,
0.11164051294326782,
-0.45558974146842957,
-0.2869925796985626,
0.38191303610801697,
-0.0391535721719265,
-0.005776841193437576,
0.20533953607082367,
0.5703571438789368,
-0.16899046301841736,
-0.03868045657873154,
-0.17759963870048523,
0.5879212617874146,
-0.11984807252883911,
0.22425314784049988,
0.6006403565406799,
-0.07254882901906967,
0.2684133052825928,
-0.23259368538856506,
0.3050079941749573,
0.1707708239555359,
0.5635701417922974,
-0.07682817429304123,
0.20132513344287872,
0.313560426235199,
0.15720103681087494,
0.059755947440862656,
-0.6442468762397766,
0.42157265543937683,
-0.08454649150371552,
-0.0001291409134864807,
-0.08280523866415024,
0.06356455385684967,
-0.00429844856262207,
0.24131032824516296,
-0.23722854256629944,
-0.16863642632961273,
0.07614882290363312,
-0.19118231534957886,
-0.25442954897880554,
-0.338266521692276,
-0.009872771799564362,
-0.11745777726173401,
-0.11448721587657928,
0.04193517565727234,
-0.2317022830247879,
-0.4978172481060028,
0.21839869022369385,
0.14489534497261047,
-0.14379705488681793,
-0.0002378113567829132,
0.06757606565952301,
-0.16232720017433167,
-0.26087552309036255,
0.3504614233970642,
0.3511757254600525,
-0.24559009075164795,
0.23003049194812775,
-0.2465275377035141,
0.3479960858821869,
0.35746821761131287,
-0.03411313518881798,
0.0565178282558918,
-0.09386131167411804,
0.0934184342622757,
-0.023508887737989426,
0.09522728621959686,
0.16881389915943146,
0.13753722608089447,
0.29495078325271606,
0.10288235545158386,
0.033980488777160645,
-0.25040215253829956,
0.42805567383766174,
-0.22225293517112732,
0.08529575169086456,
0.17482313513755798,
0.08550988137722015,
0.07138723880052567,
-0.22106614708900452,
0.17466428875923157,
-0.10050545632839203,
0.08008083701133728,
0.6772449016571045,
0.16855952143669128,
0.25950971245765686,
0.027528047561645508,
0.06313075125217438,
-0.1522282361984253,
0.6817135214805603,
0.10793977975845337,
-0.06269065290689468,
-0.17013762891292572,
-0.004863277077674866,
-0.6639935970306396,
0.11958042532205582,
-0.10690408945083618,
0.023061787709593773,
0.1099826917052269,
0.006933912634849548,
0.41601893305778503,
0.07666605710983276,
0.09543894231319427,
0.5521391034126282,
0.20659193396568298,
0.25644057989120483,
-0.26813703775405884,
-0.30668535828590393,
0.19489118456840515,
0.052455827593803406,
-0.21236582100391388,
-0.4125497043132782,
0.12384766340255737,
-0.4491448700428009,
0.040551938116550446,
-0.21887099742889404,
-0.33323657512664795,
-0.008337141945958138,
0.003328368067741394,
0.1487603783607483,
0.18859155476093292,
0.4723273515701294,
-0.03820909932255745,
0.35412245988845825,
-0.08834892511367798,
-0.43835023045539856,
-0.0942467525601387,
0.3164360523223877,
0.22325599193572998,
0.17027445137500763,
-0.03469884768128395,
0.3704994022846222,
-0.4470806121826172,
0.07778217643499374,
0.02111242711544037,
-0.2746872901916504,
-0.1879153698682785,
0.47595879435539246,
-0.024371769279241562,
-0.06623999029397964,
0.34036943316459656,
-0.150919109582901,
0.07092706114053726,
-0.09287620335817337,
-0.09452566504478455,
-0.3275434672832489,
0.5750367641448975,
-0.24636077880859375,
-0.44693803787231445,
-0.17533890902996063,
0.30998754501342773,
-0.07455980032682419,
0.03995702043175697,
-0.21243146061897278,
0.24028944969177246,
0.3031342625617981,
-0.10321501642465591,
-0.02398558333516121,
0.1866740733385086,
0.27568313479423523,
0.03908215090632439,
-0.12350380420684814,
-0.1688860058784485,
0.04163597524166107,
-0.3620379567146301,
-0.10860927402973175,
-0.19426898658275604
] |
https://github.com/huggingface/datasets/issues/4572 | Dataset Viewer issue for mlsum | Thanks for reporting, @lewtun.
After investigation, it seems that the server https://gitlab.lip6.fr does not allow HTTP Range requests.
We are trying to find a workaround... | ### Link
https://huggingface.co/datasets/mlsum/viewer/de/train
### Description
There's seems to be a problem with the download / streaming of this dataset:
```
Server error
Status code: 400
Exception: BadZipFile
Message: File is not a zip file
```
### Owner
No | 25 | Dataset Viewer issue for mlsum
### Link
https://huggingface.co/datasets/mlsum/viewer/de/train
### Description
There's seems to be a problem with the download / streaming of this dataset:
```
Server error
Status code: 400
Exception: BadZipFile
Message: File is not a zip file
```
### Owner
No
Thanks for reporting, @lewtun.
After investigation, it seems that the server https://gitlab.lip6.fr does not allow HTTP Range requests.
We are trying to find a workaround... | [
-0.35809168219566345,
-0.02585393190383911,
0.009452801197767258,
0.3169584274291992,
0.4466959238052368,
-0.05746515095233917,
0.17195793986320496,
0.09539017081260681,
-0.32190221548080444,
0.04269435256719589,
-0.26268523931503296,
0.11927293241024017,
0.007780604064464569,
0.04323059320449829,
0.14463920891284943,
-0.10742436349391937,
-0.186672180891037,
-0.09508857131004333,
-0.2859799563884735,
0.12023913860321045,
0.05563770979642868,
-0.14490963518619537,
-0.24296343326568604,
-0.1021679937839508,
-0.004988831002265215,
-0.15756641328334808,
0.16419367492198944,
0.16985929012298584,
-0.4117872416973114,
-0.2535988390445709,
0.17038987576961517,
0.1247810423374176,
0.28233233094215393,
0.46790146827697754,
-0.00011963630095124245,
0.12696708738803864,
0.2578313946723938,
-0.058547861874103546,
-0.2932380437850952,
-0.1635083705186844,
0.4450971484184265,
-0.11198198050260544,
0.05021153390407562,
-0.0888085588812828,
-0.08530574291944504,
0.3131771981716156,
0.07203742861747742,
-0.42773279547691345,
0.3338916003704071,
0.3126186430454254,
0.16750966012477875,
0.1851053237915039,
-0.08826383948326111,
0.10814004391431808,
0.40771815180778503,
-0.13837026059627533,
-0.174797922372818,
0.2551066279411316,
0.44715261459350586,
0.3318907618522644,
-0.1979280710220337,
0.24963615834712982,
0.05798543244600296,
0.01931832544505596,
0.12384667992591858,
-0.16744616627693176,
-0.24284493923187256,
-0.3067210614681244,
0.08389690518379211,
0.24030688405036926,
0.9705922603607178,
-0.15025770664215088,
-0.32552510499954224,
0.2261187732219696,
0.1603512018918991,
0.004969393834471703,
0.4691254198551178,
0.4641629755496979,
-0.23609422147274017,
0.3143828809261322,
-0.5030544400215149,
-0.06334947794675827,
-0.290941059589386,
0.14386188983917236,
-0.3874253034591675,
0.385968416929245,
-0.1472136378288269,
-0.01052027940750122,
0.181149423122406,
-0.13031214475631714,
0.08398137241601944,
-0.0030775554478168488,
-0.14717674255371094,
0.009942768141627312,
-0.189533069729805,
-0.14114585518836975,
-0.25482088327407837,
0.247646301984787,
0.09946823865175247,
0.28529417514801025,
-0.05305192619562149,
0.21320688724517822,
-0.1704210638999939,
0.03531111031770706,
0.45446261763572693,
-0.16142703592777252,
0.07429032027721405,
0.1992052048444748,
0.3170579671859741,
0.2972848117351532,
0.23574376106262207,
-0.13814634084701538,
-0.2172694206237793,
-0.18125420808792114,
-0.20330923795700073,
-0.03783901408314705,
0.13836617767810822,
-0.2711583375930786,
-0.19240789115428925,
0.2251511961221695,
-0.18583911657333374,
-0.06815452873706818,
0.23594912886619568,
0.2083650529384613,
-0.3557546138763428,
0.12039737403392792,
-0.20646578073501587,
0.24203409254550934,
0.09478212147951126,
-0.41385430097579956,
0.008661963045597076,
-0.09260064363479614,
-0.1329587697982788,
-0.07138947397470474,
0.08140721917152405,
-0.34605446457862854,
0.02838762290775776,
0.1454913318157196,
0.21213427186012268,
-0.08143874257802963,
0.1062445417046547,
-0.3389904797077179,
0.0681581050157547,
0.4002715051174164,
0.18729859590530396,
0.07621864229440689,
0.045785728842020035,
-0.3139380216598511,
0.12948575615882874,
0.0890859067440033,
-0.2613811790943146,
-0.13780859112739563,
-0.14180988073349,
0.06355289369821548,
0.009835749864578247,
0.2273942083120346,
-0.32717859745025635,
0.10669729113578796,
-0.25155961513519287,
-0.17208606004714966,
-0.0029889121651649475,
0.07962723821401596,
-0.12011241912841797,
-0.1076725646853447,
0.24007177352905273,
0.42874306440353394,
-0.37689197063446045,
-0.09513033181428909,
-0.6373995542526245,
0.036807239055633545,
0.14687186479568481,
0.14433611929416656,
-0.26604753732681274,
-0.2118789255619049,
-0.2528060972690582,
0.22103570401668549,
0.6286981701850891,
-0.11652778089046478,
-0.7571059465408325,
0.43893688917160034,
-0.22857926785945892,
-0.0356653556227684,
0.0815490335226059,
0.00009063459583558142,
0.2724526822566986,
-0.20249594748020172,
0.14649885892868042,
-0.07530965656042099,
-0.11785730719566345,
-0.07429361343383789,
-0.17772039771080017,
-0.25598910450935364,
0.2661862373352051,
0.21619932353496552,
0.1027783676981926,
-0.03736724704504013,
0.40058326721191406,
-0.15096524357795715,
0.37145674228668213,
0.14228373765945435,
-0.004191923420876265,
0.23538801074028015,
0.035368166863918304,
0.1011686772108078,
-0.09697998315095901,
-0.03824644535779953,
-0.4083118736743927,
-0.0775606632232666,
0.1864800900220871,
-0.02497052401304245,
-0.18852011859416962,
0.014880042523145676,
-0.21627166867256165,
-0.2035447657108307,
0.006952401250600815,
-0.06759330630302429,
0.08366537094116211,
0.12509585916996002,
-0.44695425033569336,
0.021516669541597366,
-0.07825988531112671,
-0.04149125516414642,
0.014918902888894081,
0.16744986176490784,
0.0642576664686203,
0.40308934450149536,
-0.10041307657957077,
0.018278926610946655,
0.15876342356204987,
-0.2989845275878906,
0.29193314909935,
-0.11286495625972748,
-0.22979497909545898,
0.17816555500030518,
-0.0977596566081047,
0.08931069076061249,
0.2806848883628845,
0.022121384739875793,
0.4580078721046448,
-0.49693039059638977,
-0.07845477759838104,
0.1466343253850937,
-0.0704430341720581,
0.04242570698261261,
-0.20260602235794067,
0.09217633306980133,
-0.06815755367279053,
-0.1579188108444214,
-0.05872775614261627,
0.3449414074420929,
0.4158134460449219,
0.046852048486471176,
-0.07888457179069519,
-0.0963602140545845,
0.26375120878219604,
0.36141735315322876,
0.49058997631073,
-0.1040874719619751,
-0.1027306318283081,
0.15622848272323608,
0.11052586138248444,
-0.10316264629364014,
0.17617718875408173,
0.16741353273391724,
-0.0889507308602333,
0.022175878286361694,
0.21780642867088318,
0.1808784306049347,
0.24630796909332275,
0.03938714787364006,
0.15107642114162445,
0.22276374697685242,
0.12623906135559082,
-0.20000682771205902,
0.07489220052957535,
0.10544443875551224,
0.03330839425325394,
0.0549163781106472,
-0.06167522817850113,
-0.03863946348428726,
-0.2947152853012085,
-0.07695552706718445,
0.12698611617088318,
0.1821933537721634,
-0.1508529782295227,
0.07469438016414642,
-0.4098544716835022,
-0.3561352491378784,
-0.013004622422158718,
-0.019551310688257217,
-0.6501237154006958,
-0.031526997685432434,
-0.2120402455329895,
0.27335265278816223,
-0.19409243762493134,
-0.021928193047642708,
-0.17940901219844818,
0.20666633546352386,
0.2320253998041153,
0.41693055629730225,
0.005410745739936829,
-0.1321335732936859,
-0.21313712000846863,
0.06083715334534645,
0.4496360421180725,
-0.3809647560119629,
0.14143145084381104,
-0.3127237856388092,
0.08117798715829849,
-0.5002120733261108,
-0.051215969026088715,
0.2960515320301056,
0.22070591151714325,
0.2691837549209595,
-0.03370444476604462,
0.2406066209077835,
-0.041205570101737976,
0.32116830348968506,
0.0991695299744606,
0.045716769993305206,
0.12505072355270386,
0.0011510159820318222,
0.21085403859615326,
0.01599203236401081,
-0.03700881451368332,
-0.004047021269798279,
-0.46876710653305054,
-0.3513874411582947,
-0.004081495106220245,
0.05132802203297615,
0.11863717436790466,
-0.09990451484918594,
-0.026802200824022293,
-0.1793145388364792,
0.12402842193841934,
0.007096217013895512,
-0.21423198282718658,
-0.6844285130500793,
0.3917149603366852,
-0.17138059437274933,
-0.626822829246521,
0.1570989340543747,
0.2535856366157532,
0.04222820699214935,
0.3596288561820984,
-0.4949159026145935,
-0.032398343086242676,
0.13770413398742676,
-0.07758288085460663,
-0.07259892672300339,
-0.1627952754497528,
-0.019881032407283783,
-0.23433272540569305,
0.09464403241872787,
-0.22601595520973206,
-0.13313362002372742,
-0.12525752186775208,
0.03488116338849068,
0.17414721846580505,
-0.02620711550116539,
0.25083988904953003,
0.1769561916589737,
0.10450177639722824,
0.45485183596611023,
0.1137012392282486,
0.47225838899612427,
-0.0031967274844646454,
0.39937737584114075,
0.3007749915122986,
-0.09456980973482132,
0.14665214717388153,
-0.08972248435020447,
-0.10343141108751297,
0.45392143726348877,
0.22439807653427124,
-0.3003291189670563,
-0.35249537229537964,
-0.20375730097293854,
-0.036285679787397385,
-0.37100455164909363,
-0.05659342557191849,
-0.22254133224487305,
-0.06788476556539536,
0.1277802586555481,
0.2628086507320404,
-0.0332699716091156,
-0.2170460820198059,
0.15037499368190765,
0.41321444511413574,
-0.11561652272939682,
0.01509418897330761,
-0.14231228828430176,
-0.051154740154743195,
-0.13665086030960083,
0.19876661896705627,
0.35637080669403076,
0.4313538670539856,
-0.22079016268253326,
0.17118710279464722,
0.09647100418806076,
0.12417422980070114,
0.46206551790237427,
-0.5305308699607849,
0.3417028784751892,
0.2239435613155365,
0.2300185263156891,
0.06719397008419037,
-0.15904875099658966,
-0.07801938056945801,
0.27450498938560486,
0.3901490271091461,
0.32415738701820374,
-0.3414417803287506,
0.06056074798107147,
-0.05533876270055771,
-0.17785537242889404,
-0.02950097993016243,
-0.04354561120271683,
-0.13019482791423798,
-0.1425299048423767,
0.030840935185551643,
0.005032934248447418,
0.025081945583224297,
-0.11988232284784317,
-0.03977718949317932,
-0.01619233377277851,
0.2857922315597534,
-0.015152608044445515,
-0.0047151148319244385,
-0.0066442424431443214,
0.300260066986084,
0.0030429840553551912,
-0.13764075934886932,
0.4044022858142853,
0.47423309087753296,
0.47778162360191345,
0.8710386753082275,
0.20200274884700775,
-0.11325773596763611,
0.4160531759262085,
-0.22388175129890442,
0.012016549706459045,
0.3246760964393616,
0.00808852817863226,
0.04414524883031845,
0.365304559469223,
0.35692471265792847,
-0.17570418119430542,
0.07554589956998825,
0.5213291049003601,
-0.297509104013443,
-0.41866812109947205,
-0.4551069140434265,
0.3412712514400482,
-0.1722724884748459,
0.08393135666847229,
0.623301088809967,
-0.2919059991836548,
0.10449296236038208,
-0.3825387954711914,
0.13622567057609558,
1.052735447883606,
0.05112653970718384,
-0.07837997376918793,
-0.03142885863780975,
-0.2653927206993103,
0.11944454163312912,
-0.49430644512176514,
0.1300467550754547,
-0.19085325300693512,
-0.25646132230758667,
-0.23016811907291412,
-0.13742731511592865,
0.3606542944908142,
0.11224274337291718,
-0.2751266658306122,
0.00022088224068284035,
0.07959860563278198,
0.5256608724594116,
0.28175079822540283,
-0.1438004970550537,
-0.4433160126209259,
0.1852504014968872,
-0.33858388662338257,
0.08560628443956375,
-0.1365043818950653,
0.09240876883268356,
-0.1618555188179016,
-0.4151774048805237,
-0.2081841677427292,
-0.09399709105491638,
-0.4797409176826477,
0.24457666277885437,
-0.3254838287830353,
0.036339424550533295,
-0.028908681124448776,
-0.08730708062648773,
0.21746502816677094,
-0.18596740067005157,
-0.03342735022306442,
0.06278306990861893,
-0.2972235381603241,
0.22020848095417023,
-0.011133655905723572,
0.06792981922626495,
0.037000421434640884,
0.26567989587783813,
0.24414634704589844,
-0.13791333138942719,
-0.06564690172672272,
0.3338674306869507,
0.0781136229634285,
-0.11272846162319183,
0.1888614296913147,
-0.09286767244338989,
0.3870418667793274,
-0.42508774995803833,
0.5035707950592041,
-0.3217787444591522,
0.06914977729320526,
-0.1375427544116974,
0.057517364621162415,
0.024037104099988937,
-0.00313449720852077,
-0.07218340784311295,
0.30327388644218445,
-0.148116335272789,
-0.07770343124866486,
0.42802301049232483,
-0.12549859285354614,
0.3352823853492737,
0.0846506804227829,
0.1614445596933365,
-0.2956238389015198,
-0.14769095182418823,
0.1601332128047943,
-0.28000786900520325,
-0.5200567841529846,
0.13992919027805328,
-0.2812732756137848,
-0.024735786020755768,
-0.06351182609796524,
-0.10701815783977509,
0.05579027533531189,
-0.06978970021009445,
-0.1554955244064331,
-0.43315890431404114,
-0.15458297729492188,
-0.1842663735151291,
-0.23944829404354095,
-0.03638440743088722,
-0.0014311522245407104,
0.04404672980308533,
0.1658792495727539,
-0.17212025821208954,
-0.2172354757785797,
-0.0924636647105217,
-0.1982114166021347,
0.008264094591140747,
-0.12857872247695923,
-0.1617146134376526,
-0.0826229676604271,
-0.06375560164451599,
-0.048128798604011536,
0.09957890212535858,
-0.4335085153579712,
-0.06553810834884644,
-0.025466006249189377,
0.18791218101978302,
0.04047081992030144,
-0.520690381526947,
-0.10447875410318375,
-0.09251415729522705,
-0.2893834710121155,
0.11615027487277985,
-0.07783761620521545,
-0.1574384570121765,
0.2684445381164551,
-0.1573602557182312,
0.5075334906578064,
-0.32592180371284485,
-0.566360592842102,
0.11876383423805237,
0.006980791687965393,
0.6514155864715576,
-0.19906644523143768,
0.07608752697706223,
-0.014628716744482517,
-0.19098353385925293,
-0.3137011229991913,
0.06102035194635391,
0.07300230115652084,
-0.12830331921577454,
0.39573726058006287,
-0.23956115543842316,
0.3258616328239441,
0.2758735418319702,
0.3918616771697998,
0.32408803701400757,
-0.17076024413108826,
-0.20968115329742432,
0.24846431612968445,
0.09550955146551132,
-0.16491132974624634,
-0.3336462080478668,
0.296665757894516,
0.02672150731086731,
0.03105926886200905,
-0.021818391978740692,
0.08448921144008636,
0.03137621283531189,
-0.08176857233047485,
-0.02148871123790741,
0.46987560391426086,
0.3536031246185303,
0.26263755559921265,
0.6924147009849548,
0.02001255378127098,
0.16131363809108734,
-0.02006748504936695,
0.05125788226723671,
0.11857731640338898,
0.13113512098789215,
-0.03284966200590134,
-0.12377487123012543,
-0.09276276081800461,
-0.12444759905338287,
0.06143121421337128,
-0.694644033908844,
0.1975967139005661,
0.2985692024230957,
-0.16622799634933472,
-0.028914228081703186,
0.228781059384346,
0.07849349081516266,
0.1347499042749405,
-0.2322705090045929,
-0.29157042503356934,
0.24254915118217468,
-0.17432036995887756,
0.3315024971961975,
-0.1298428475856781,
-0.2431929111480713,
-0.44544005393981934,
0.43309417366981506,
-0.22393682599067688,
0.24867211282253265,
0.14792026579380035,
0.33399498462677,
-0.03842991590499878,
-0.2922840416431427,
-0.05252920836210251,
-0.020977750420570374,
0.092106893658638,
-0.43853476643562317,
0.23433983325958252,
0.40087664127349854,
-0.07714629173278809,
0.22866138815879822,
0.17695502936840057,
0.3072461187839508,
0.13507884740829468,
0.23669764399528503,
-0.1427038460969925,
0.2784827947616577,
-0.0404980331659317,
-0.21817611157894135,
-0.0989718958735466,
0.2887400984764099,
-0.07803691923618317,
0.2114274501800537,
0.05790425091981888,
-0.103081114590168,
0.4416329860687256,
-0.09535090625286102,
0.04451069235801697,
-0.06180908530950546,
0.23236894607543945,
-0.15445195138454437,
-0.10258176177740097,
-0.2442149519920349,
-0.527329683303833,
-0.2708001136779785,
0.20013974606990814,
0.3287176489830017,
-0.2517794966697693,
0.16552159190177917,
-0.5293601155281067,
0.03056098148226738,
0.27383843064308167,
0.5153414011001587,
0.35106247663497925,
-0.017558611929416656,
0.0265057273209095,
-0.5159925818443298,
-0.7235504388809204,
0.3606501519680023,
-0.02507682517170906,
-0.10194956511259079,
0.3505323529243469,
-0.09809978306293488,
0.06813716888427734,
0.4639943242073059,
0.5536432266235352,
0.20425057411193848,
0.13427285850048065,
0.1438557356595993,
-0.406933456659317,
-0.0065210796892642975,
0.3358367085456848,
0.39857834577560425,
-0.22369369864463806,
-0.36492475867271423,
0.6280044317245483,
-0.3532654047012329,
0.08453138917684555,
-0.024780474603176117,
-0.12198200821876526,
-0.28028038144111633,
-0.11187735199928284,
0.22493769228458405,
-0.03745593875646591,
0.21863216161727905,
0.025229543447494507,
-0.02636059559881687,
-0.07787445187568665,
0.15327350795269012,
-0.039613403379917145,
-0.10140319913625717,
0.16385436058044434,
0.30948224663734436,
-0.1568203717470169,
-0.10889831185340881,
-0.3403385281562805,
0.14185094833374023,
-0.12491040676832199,
0.3974427282810211,
-0.20059534907341003,
-0.13446836173534393,
-0.13317331671714783,
-0.12516964972019196,
0.14642205834388733,
-0.016020961105823517,
-0.08509567379951477,
0.037896111607551575,
-0.17199990153312683,
-0.28505590558052063,
0.6035584807395935,
-0.4144350290298462,
-0.14129631221294403,
-0.23134678602218628,
0.07254466414451599,
0.30804166197776794,
-0.07106074690818787,
-0.07731994241476059,
0.11686476320028305,
0.3265680968761444,
-0.01022731140255928,
-0.015033431351184845,
0.13228848576545715,
-0.1139889657497406,
0.012337524443864822,
-0.0018556192517280579,
0.35910096764564514,
0.13018181920051575,
-0.3635263741016388,
0.19765645265579224,
-0.07105442881584167
] |
https://github.com/huggingface/datasets/issues/4571 | move under the facebook org? | I'm just wondering why we don't have this dataset under:
- the `facebook` namespace
- or the canonical dataset `flores`: why does this only have 2 languages? | ### Link
https://huggingface.co/datasets/gsarti/flores_101
### Description
It seems like streaming isn't supported for this dataset:
```
Server Error
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://dl.fbaipublicfiles.com/flores101/dataset/flores101_dataset.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
### Owner
No | 27 | move under the facebook org?
### Link
https://huggingface.co/datasets/gsarti/flores_101
### Description
It seems like streaming isn't supported for this dataset:
```
Server Error
Status code: 400
Exception: NotImplementedError
Message: Extraction protocol for TAR archives like 'https://dl.fbaipublicfiles.com/flores101/dataset/flores101_dataset.tar.gz' is not implemented in streaming mode. Please use `dl_manager.iter_archive` instead.
```
### Owner
No
I'm just wondering why we don't have this dataset under:
- the `facebook` namespace
- or the canonical dataset `flores`: why does this only have 2 languages? | [
-0.14406871795654297,
-0.047828659415245056,
-0.07658962905406952,
0.3923361897468567,
0.26025283336639404,
-0.10837806016206741,
-0.03830387070775032,
0.1519559770822525,
-0.05295983701944351,
0.35567304491996765,
-0.1331866830587387,
-0.42659792304039,
0.1303248554468155,
0.42473480105400085,
-0.15808779001235962,
-0.2205299735069275,
0.18676890432834625,
0.06319041550159454,
-0.10562296211719513,
-0.08798415213823318,
0.011184439063072205,
0.19153311848640442,
0.15208949148654938,
-0.1833045333623886,
0.12914377450942993,
0.3797295391559601,
-0.1366366744041443,
-0.12061237543821335,
-0.6194655895233154,
0.2319713979959488,
-0.02252950146794319,
0.19405239820480347,
0.22682832181453705,
1.0379502773284912,
-0.00012707081623375416,
0.005754590034484863,
0.2156684547662735,
-0.1574167013168335,
-0.12974236905574799,
-0.3168236017227173,
-0.23481306433677673,
-0.18895788490772247,
-0.22386866807937622,
-0.0712328553199768,
-0.3589870035648346,
-0.2620180547237396,
0.22981351613998413,
-0.5426216125488281,
0.10063403099775314,
0.090879887342453,
0.03772551938891411,
-0.20768333971500397,
-0.19764992594718933,
-0.1625196933746338,
0.31477898359298706,
0.23379172384738922,
-0.3973320424556732,
-0.24128127098083496,
0.284807413816452,
0.05671088397502899,
0.27209001779556274,
0.3580475449562073,
0.0637219250202179,
-0.09184105694293976,
0.1539064645767212,
-0.1037164106965065,
-0.14560189843177795,
-0.5227639675140381,
0.22634518146514893,
0.44014763832092285,
0.5522488951683044,
0.28145086765289307,
-0.33853286504745483,
0.2502112090587616,
-0.05213424190878868,
-0.008502747863531113,
-0.033445924520492554,
0.17610867321491241,
0.021601133048534393,
0.19008632004261017,
-0.12958240509033203,
-0.12377613037824631,
-0.3666396737098694,
0.23355676233768463,
-0.01543237641453743,
0.2722460627555847,
-0.0946444422006607,
0.14945930242538452,
0.20925219357013702,
0.1264735758304596,
0.3362835943698883,
0.005739724263548851,
0.12149541079998016,
-0.04921303689479828,
-0.1250515729188919,
0.1590726524591446,
-0.09634452313184738,
0.3971627652645111,
0.13787925243377686,
0.22364541888237,
0.18457607924938202,
0.1037275567650795,
-0.040355272591114044,
0.08884168416261673,
0.22970373928546906,
-0.130637526512146,
0.1130206435918808,
-0.3173457384109497,
0.2994362413883209,
0.1924605369567871,
0.025870908051729202,
-0.2632814943790436,
-0.12039598077535629,
0.013224701397120953,
-0.36793166399002075,
-0.16810619831085205,
0.20608729124069214,
-0.08713236451148987,
-0.02056092396378517,
-0.15115685760974884,
-0.34167540073394775,
-0.30327531695365906,
0.16654668748378754,
0.2916783392429352,
0.0251518152654171,
0.2947002947330475,
-0.08755704760551453,
0.3000286817550659,
0.23745210468769073,
-0.5715299248695374,
-0.13893629610538483,
-0.02301187440752983,
-0.3433350920677185,
-0.09532175213098526,
-0.046901095658540726,
-0.34472811222076416,
0.10583947598934174,
-0.1183665543794632,
0.5213140249252319,
0.17162738740444183,
0.029470326378941536,
-0.22665464878082275,
0.2256549596786499,
0.3680446445941925,
0.0615667961537838,
0.3111966848373413,
0.17705991864204407,
0.2508167624473572,
-0.13267385959625244,
-0.038589298725128174,
-0.003992512822151184,
-0.2820056676864624,
-0.15105219185352325,
0.07092612236738205,
0.009545955806970596,
0.14853838086128235,
-0.33425238728523254,
0.3858497738838196,
-0.32806119322776794,
-0.471567839384079,
0.017563708126544952,
0.1588662713766098,
-0.2525239586830139,
-0.11233030259609222,
0.008366569876670837,
0.12706077098846436,
-0.3914189636707306,
0.03290337324142456,
-0.3241268992424011,
0.06676925718784332,
0.7509716153144836,
0.3474416136741638,
-0.19763848185539246,
-0.35117119550704956,
-0.12422136217355728,
0.3095273971557617,
0.5642420649528503,
-0.13551437854766846,
-0.3271218240261078,
0.44650307297706604,
-0.023183729499578476,
-0.07716485857963562,
0.7000938057899475,
0.12913502752780914,
0.08519205451011658,
-0.18286718428134918,
-0.14870668947696686,
0.23286457359790802,
-0.16763953864574432,
-0.11662101000547409,
0.014393862336874008,
-0.31988170742988586,
0.661327064037323,
-0.02970377542078495,
-0.0394645519554615,
0.07034812867641449,
0.09373789280653,
0.24604959785938263,
0.13141506910324097,
-0.037430789321660995,
0.1576450765132904,
0.06192126125097275,
0.1630721092224121,
0.31349581480026245,
0.053641777485609055,
-0.11501047015190125,
0.04266539588570595,
0.05893046408891678,
0.1062593013048172,
0.48100554943084717,
0.45053333044052124,
-0.24511800706386566,
-0.26207485795021057,
-0.11503557860851288,
-0.07031701505184174,
-0.29146355390548706,
0.03308786451816559,
0.3489261567592621,
0.009025774896144867,
-0.3557952642440796,
-0.5068604350090027,
0.13706688582897186,
-0.31590545177459717,
-0.04893006384372711,
-0.12241348624229431,
0.3281214237213135,
-0.31129077076911926,
0.05547836050391197,
-0.1572713702917099,
0.03343845158815384,
0.22810229659080505,
-0.24630287289619446,
0.07813356816768646,
0.19476252794265747,
-0.09629445523023605,
0.1369834840297699,
0.3445507287979126,
0.48598629236221313,
0.34621426463127136,
-0.2927820682525635,
0.0067770518362522125,
0.5964174270629883,
-0.02536456659436226,
-0.12228496372699738,
0.05737239122390747,
-0.16882579028606415,
0.03232496976852417,
0.4076581299304962,
0.12498177587985992,
-0.07777661830186844,
0.35599029064178467,
0.2747202515602112,
-0.3583759069442749,
-0.23358739912509918,
0.27263954281806946,
-0.18236424028873444,
-0.00017723813652992249,
0.20161527395248413,
-0.2225714474916458,
0.31021472811698914,
0.20658211410045624,
0.06877392530441284,
-0.08047055453062057,
0.11750146746635437,
-0.11400439590215683,
-0.24692803621292114,
0.3075289726257324,
0.2760305404663086,
0.3526636064052582,
0.18920069932937622,
0.3890604078769684,
-0.038054049015045166,
0.4648042917251587,
-0.23498940467834473,
0.22987818717956543,
0.1226850301027298,
0.30175068974494934,
-0.16564932465553284,
0.1476004272699356,
0.05143054202198982,
-0.4168083965778351,
-0.21363936364650726,
-0.038187675178050995,
0.12004847824573517,
0.044217776507139206,
0.15527930855751038,
-0.331470251083374,
-0.8344043493270874,
-0.07769057154655457,
-0.36989763379096985,
-0.4460363984107971,
-0.26302799582481384,
0.14420738816261292,
0.28147661685943604,
0.15777182579040527,
-0.04178711771965027,
-0.06407082080841064,
0.36256980895996094,
-0.07445675134658813,
0.18341130018234253,
-0.5047162771224976,
0.07145725935697556,
-0.06549537181854248,
-0.013235791586339474,
0.030026279389858246,
-0.12216082215309143,
0.24029605090618134,
-0.009772206656634808,
-0.07012417912483215,
-0.600995659828186,
-0.40033218264579773,
0.2781030535697937,
-0.21079488098621368,
0.00786550436168909,
0.08645685762166977,
0.5304903388023376,
0.1947484165430069,
-0.10804720968008041,
0.11018084734678268,
-0.16061677038669586,
-0.2061118334531784,
0.10934188961982727,
-0.061525847762823105,
0.28090858459472656,
-0.03907885402441025,
0.09767384827136993,
-0.3888312876224518,
-0.4725431501865387,
0.19987787306308746,
-0.08166872709989548,
-0.00761248916387558,
0.14181239902973175,
-0.13842932879924774,
-0.09308565407991409,
0.283718466758728,
0.16614745557308197,
-0.3559299111366272,
-0.3784600496292114,
0.20647180080413818,
-0.01770123466849327,
-0.2546479403972626,
0.16216470301151276,
0.436445415019989,
0.020122429355978966,
0.12030714005231857,
-0.20286016166210175,
-0.4935266971588135,
0.0013215932995080948,
-0.17309455573558807,
0.31370702385902405,
0.1360403597354889,
0.4046717584133148,
-0.11184153705835342,
-0.09843359887599945,
-0.11543247848749161,
-0.06577205657958984,
-0.1710917353630066,
0.10691705346107483,
0.17691883444786072,
0.09289856255054474,
0.12180958688259125,
0.05171770229935646,
0.36755847930908203,
0.4487733840942383,
0.2417619377374649,
0.551272988319397,
0.11590135842561722,
0.32605767250061035,
-0.2903723120689392,
-0.47199052572250366,
0.30565863847732544,
-0.07522881031036377,
-0.17987962067127228,
0.37388938665390015,
0.04366200789809227,
-0.039734870195388794,
-0.28626519441604614,
0.13258130848407745,
-0.09782613068819046,
-0.019263725727796555,
0.009956154972314835,
-0.11174842715263367,
0.19455817341804504,
-0.11897873878479004,
-0.12377993762493134,
0.0817345678806305,
-0.12075822055339813,
0.024308200925588608,
0.29043540358543396,
0.0026994943618774414,
0.2867959439754486,
-0.1853867769241333,
-0.011059854179620743,
-0.39415442943573,
0.2631566524505615,
-0.004020575433969498,
0.23126912117004395,
-0.3941028118133545,
0.03766274452209473,
0.3395305871963501,
0.19030962884426117,
0.5313905477523804,
-0.570178210735321,
-0.23024572432041168,
-0.09534592926502228,
-0.18599866330623627,
0.1883159875869751,
-0.06004171445965767,
-0.05611219257116318,
0.0830143466591835,
0.3236142694950104,
0.29470786452293396,
-0.4562308192253113,
-0.16001607477664948,
0.40665167570114136,
0.11570265889167786,
0.11337880790233612,
0.019778162240982056,
-0.3094508945941925,
-0.20563897490501404,
-0.13036492466926575,
-0.40772271156311035,
0.2714553773403168,
0.041058894246816635,
-0.11453190445899963,
0.3004973530769348,
0.2470857948064804,
-0.0023485999554395676,
0.18069276213645935,
0.09970723092556,
-0.09196143597364426,
0.06827011704444885,
-0.48697230219841003,
0.28769659996032715,
0.11556725203990936,
0.1443691849708557,
0.47483116388320923,
0.21877224743366241,
-0.8321716785430908,
0.4569764733314514,
0.17594031989574432,
0.29480862617492676,
0.5533397197723389,
0.15057815611362457,
0.09478849917650223,
0.5000135898590088,
0.018666468560695648,
-0.06540894508361816,
0.1395791620016098,
0.6000246405601501,
-0.2677616477012634,
-0.23668134212493896,
-0.4997827112674713,
0.31561729311943054,
0.1466325968503952,
0.03780104219913483,
0.3278588652610779,
0.6496638059616089,
-0.0238704364746809,
0.3646624684333801,
-0.24875333905220032,
1.5196512937545776,
0.005074203014373779,
0.005406200885772705,
-0.061333708465099335,
-0.011025473475456238,
0.5402021408081055,
-0.46143126487731934,
-0.0009859353303909302,
0.035610396414995193,
-0.30765897035598755,
-0.33146318793296814,
0.025357995182275772,
0.25007158517837524,
0.03447812795639038,
-0.17041824758052826,
0.3571445643901825,
0.05763454735279083,
0.3726016581058502,
0.2264133095741272,
0.08802422881126404,
-0.31472212076187134,
-0.057872090488672256,
-0.35923027992248535,
0.056781426072120667,
-0.20966173708438873,
0.2757757902145386,
-0.02882559783756733,
-0.06816492974758148,
-0.23060521483421326,
0.2713705897331238,
-0.4474760890007019,
-0.00499284453690052,
-0.44247710704803467,
-0.03511836752295494,
-0.4412357807159424,
-0.6077152490615845,
0.04295879974961281,
0.024665700271725655,
0.38185858726501465,
-0.18012942373752594,
-0.2992764711380005,
0.05046042427420616,
0.20677441358566284,
-0.2245802879333496,
-0.01159751322120428,
-0.3122216463088989,
0.21563023328781128,
-0.20888805389404297,
-0.1957055777311325,
0.22994306683540344,
0.013828854076564312,
-0.4935804009437561,
-0.11283889412879944,
0.08194368332624435,
0.01954641565680504,
0.02164752595126629,
-0.02553427591919899,
0.37377944588661194,
-0.06649170815944672,
-0.25031840801239014,
-0.0011301692575216293,
-0.012551411986351013,
-0.20492959022521973,
-0.49846574664115906,
0.2175903171300888,
-0.18965168297290802,
-0.2768596112728119,
0.3349476456642151,
0.07879352569580078,
-0.04761294275522232,
0.2610360383987427,
0.08174335956573486,
-0.27847036719322205,
-0.05397389456629753,
-0.097752645611763,
0.20143331587314606,
-0.3057335615158081,
-0.25710925459861755,
-0.008167960681021214,
-0.3768202066421509,
-0.12685494124889374,
0.3574897348880768,
0.023611942306160927,
-0.12515103816986084,
-0.43264874815940857,
-0.23643656075000763,
0.12305773049592972,
0.3296101689338684,
-0.22756977379322052,
0.03658755123615265,
0.09815558046102524,
-0.023890748620033264,
0.15365959703922272,
-0.2169538289308548,
-0.18583081662654877,
-0.0028322706930339336,
-0.05264260992407799,
-0.053734488785266876,
0.18406109511852264,
-0.15868020057678223,
0.14945070445537567,
-0.04489032179117203,
-0.09522859752178192,
-0.1260107308626175,
-0.20251767337322235,
-0.035713281482458115,
0.042791400104761124,
0.2623831033706665,
0.27580299973487854,
-0.04074959456920624,
-0.3023025691509247,
-0.3236531615257263,
-0.2580748200416565,
-0.044110994786024094,
-0.06382066756486893,
0.05436398833990097,
0.16797450184822083,
-0.08462053537368774,
0.16019879281520844,
-0.17924198508262634,
-0.228964701294899,
-0.011260677129030228,
0.25312182307243347,
0.5260102152824402,
-0.08758294582366943,
-0.06152985244989395,
0.13195928931236267,
-0.25504863262176514,
-0.059472858905792236,
0.17579716444015503,
0.34586310386657715,
0.11695791035890579,
0.4200146794319153,
-0.06773708760738373,
0.47765496373176575,
0.09322407096624374,
0.5418839454650879,
0.19477854669094086,
0.03576773405075073,
-0.035220660269260406,
0.060709092766046524,
0.0355825275182724,
-0.1025305688381195,
-0.09420130401849747,
0.43035373091697693,
0.09915482252836227,
0.053618814796209335,
0.4210163950920105,
0.3699043095111847,
0.3508155941963196,
0.2299918830394745,
-0.1066461056470871,
0.013250753283500671,
-0.0981740728020668,
0.24095165729522705,
-0.11052596569061279,
-0.016872122883796692,
0.3142571747303009,
0.16130474209785461,
0.03906265273690224,
0.1622091680765152,
-0.04833433777093887,
0.16681618988513947,
0.5038055777549744,
0.1338125467300415,
-0.15712739527225494,
0.09422432631254196,
-0.16399800777435303,
-0.21379278600215912,
-0.1511593759059906,
0.259812593460083,
0.12824028730392456,
0.12488974630832672,
0.5298004150390625,
-0.5914004445075989,
-0.15508334338665009,
-0.034456655383110046,
-0.0089084692299366,
0.12760545313358307,
0.18544383347034454,
-0.19017693400382996,
-0.05519122630357742,
-0.3568572402000427,
-0.014087548479437828,
-0.13292373716831207,
0.277563214302063,
0.022447168827056885,
0.07111115753650665,
-0.008525319397449493,
-0.15974478423595428,
-0.2247530221939087,
-0.09274505823850632,
0.24291321635246277,
-0.16707904636859894,
0.22197328507900238,
0.022600628435611725,
0.004423350095748901,
0.14945609867572784,
0.6600485444068909,
0.33385753631591797,
0.047685980796813965,
0.12108714878559113,
-0.13989315927028656,
0.0612468421459198,
-0.19190432131290436,
-0.2832801342010498,
0.029298454523086548,
0.3876670002937317,
-0.0688314139842987,
0.013744944706559181,
-0.004866492934525013,
-0.08823759108781815,
0.2039213478565216,
0.04056640714406967,
0.18528802692890167,
-0.21968615055084229,
-0.05612962692975998,
-0.41267129778862,
-0.06587988883256912,
-0.19651667773723602,
-0.04694917052984238,
-0.4032583236694336,
0.3086625635623932,
0.07097864151000977,
-0.2131185382604599,
0.0004781503230333328,
-0.2595059871673584,
-0.02241092175245285,
0.3076469302177429,
0.2491699606180191,
0.432548850774765,
0.10252022743225098,
-0.24100279808044434,
-0.4585942029953003,
-0.3329043984413147,
0.17777401208877563,
-0.1111275851726532,
0.49275442957878113,
-0.2300768345594406,
0.28114810585975647,
0.4854150414466858,
0.3238948583602905,
0.3130728602409363,
-0.5633406639099121,
-0.11213651299476624,
0.1780596375465393,
-0.34869933128356934,
-0.0936652272939682,
0.13633042573928833,
0.20182742178440094,
-0.08359111845493317,
0.038630835711956024,
0.3756603002548218,
-0.1192479282617569,
-0.08751355856657028,
0.13857531547546387,
-0.3323158621788025,
0.041918616741895676,
-0.2333742082118988,
0.1775377094745636,
0.08294732123613358,
-0.05794534087181091,
-0.06855538487434387,
-0.2397984266281128,
-0.1588718742132187,
-0.02173423022031784,
-0.19233211874961853,
0.2334960699081421,
-0.06115013733506203,
0.03326498717069626,
-0.26411697268486023,
-0.20743675529956818,
-0.2677505612373352,
0.18275736272335052,
-0.20241205394268036,
0.08718030899763107,
-0.4358776807785034,
0.053817734122276306,
-0.4127182066440582,
0.06402444839477539,
-0.1174553856253624,
0.12318184226751328,
-0.01737816631793976,
-0.3998689353466034,
-0.3391956090927124,
-0.16417443752288818,
0.4840005338191986,
-0.12404663115739822,
-0.28670477867126465,
0.05280742049217224,
-0.24370428919792175,
0.5473653078079224,
0.275756299495697,
-0.3437771797180176,
-0.023350581526756287,
-0.11330986768007278,
0.13501553237438202,
-0.006488049402832985,
0.04226749390363693,
-0.29590967297554016,
-0.06904339045286179,
0.056051257997751236,
0.18178042769432068,
0.1843160092830658,
-0.0689927488565445,
0.06867286562919617,
0.12149956822395325
] |
https://github.com/huggingface/datasets/issues/4570 | Dataset sharding non-contiguous? | This was silly; I was sure I'd looked for a `contiguous` argument, and was certain there wasn't one the first time I looked :smile:
Sorry about that. | ## Describe the bug
I'm not sure if this is a bug; more likely normal behavior but i wanted to double check.
Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset?
This might be related to this pull request (https://github.com/huggingface/datasets/pull/4466) but I have to admit I did not properly look into the changes made.
## Steps to reproduce the bug
```python
max_shard_size = convert_file_size_to_int('300MB')
dataset_nbytes = dataset.data.nbytes
num_shards = int(dataset_nbytes / max_shard_size) + 1
num_shards = max(num_shards, 1)
print(f"{num_shards=}")
for shard_index in range(num_shards):
shard = dataset.shard(num_shards=num_shards, index=shard_index)
shard.to_parquet(f"tokenized/tokenized-{shard_index:03d}.parquet")
os.listdir('tokenized/')
```
## Expected results
I expected the shards to match the order of the data of the original dataset; i.e. `dataset[10]` being the same as `shard_1[10]` for example
## Actual results
Only the first element is the same; i.e. `dataset[0]` is the same as `shard_1[0]`
## 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.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 27 | Dataset sharding non-contiguous?
## Describe the bug
I'm not sure if this is a bug; more likely normal behavior but i wanted to double check.
Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset?
This might be related to this pull request (https://github.com/huggingface/datasets/pull/4466) but I have to admit I did not properly look into the changes made.
## Steps to reproduce the bug
```python
max_shard_size = convert_file_size_to_int('300MB')
dataset_nbytes = dataset.data.nbytes
num_shards = int(dataset_nbytes / max_shard_size) + 1
num_shards = max(num_shards, 1)
print(f"{num_shards=}")
for shard_index in range(num_shards):
shard = dataset.shard(num_shards=num_shards, index=shard_index)
shard.to_parquet(f"tokenized/tokenized-{shard_index:03d}.parquet")
os.listdir('tokenized/')
```
## Expected results
I expected the shards to match the order of the data of the original dataset; i.e. `dataset[10]` being the same as `shard_1[10]` for example
## Actual results
Only the first element is the same; i.e. `dataset[0]` is the same as `shard_1[0]`
## 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.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
This was silly; I was sure I'd looked for a `contiguous` argument, and was certain there wasn't one the first time I looked :smile:
Sorry about that. | [
0.046326231211423874,
-0.2496725171804428,
0.015279624611139297,
0.20713412761688232,
0.06308206915855408,
-0.04221672937273979,
0.4303715229034424,
0.027586719021201134,
-0.5185225009918213,
-0.03165164589881897,
0.07158948481082916,
-0.06453613936901093,
0.289346307516098,
-0.10150031000375748,
-0.0327792651951313,
-0.1082952618598938,
0.1757824718952179,
-0.14042122662067413,
0.052218958735466,
-0.2207203060388565,
-0.19466930627822876,
0.3275035321712494,
-0.26557642221450806,
-0.1996680647134781,
-0.3643791973590851,
0.2068912535905838,
-0.4897380769252777,
0.16977331042289734,
-0.007848650217056274,
-0.08981587737798691,
0.32719847559928894,
0.04250926524400711,
-0.1600666046142578,
0.2308252602815628,
-0.00012171376874903217,
-0.16643354296684265,
0.3019495904445648,
-0.05975966900587082,
-0.06138592213392258,
-0.020633190870285034,
-0.30134981870651245,
-0.2825509309768677,
-0.2415831834077835,
-0.09918435662984848,
-0.09251068532466888,
0.052046261727809906,
-0.1850716769695282,
-0.047738172113895416,
0.08116995543241501,
0.027002185583114624,
0.0944448783993721,
-0.138405442237854,
0.12437452375888824,
-0.08256469666957855,
0.12224997580051422,
0.11611118912696838,
0.002824271097779274,
-0.12924359738826752,
-0.03472370654344559,
0.24778124690055847,
0.04022703319787979,
-0.26934248208999634,
-0.04261240363121033,
0.10789895057678223,
-0.03678099811077118,
0.2639738619327545,
-0.2726067900657654,
-0.12636829912662506,
0.125862717628479,
0.3286353051662445,
0.1833362877368927,
-0.13752543926239014,
-0.2625507414340973,
-0.4276409447193146,
-0.08465511351823807,
-0.47202473878860474,
0.1716383695602417,
0.47608837485313416,
0.13227123022079468,
0.09838617593050003,
-0.17761923372745514,
0.11033924669027328,
0.045240022242069244,
0.004464402794837952,
-0.1619071066379547,
0.06449016183614731,
0.07788641005754471,
-0.015553131699562073,
-0.24175257980823517,
-0.11554932594299316,
-0.30794909596443176,
-0.4568175673484802,
-0.30122384428977966,
-0.015544098801910877,
-0.4017654359340668,
0.004322391003370285,
-0.07996246963739395,
0.32232192158699036,
0.39382341504096985,
0.21199771761894226,
-0.3213745355606079,
-0.049820296466350555,
0.16772609949111938,
-0.23270639777183533,
0.20007799565792084,
-0.09888860583305359,
0.033897049725055695,
0.2739490568637848,
-0.24031151831150055,
0.20428703725337982,
-0.020157745108008385,
0.06331761181354523,
0.2662512958049774,
-0.21673524379730225,
-0.11298257112503052,
-0.04678952693939209,
0.11232854425907135,
-0.029882382601499557,
0.013985088095068932,
0.1855122596025467,
0.027005799114704132,
0.06675044447183609,
-0.20305614173412323,
-0.055235303938388824,
0.058199260383844376,
-0.34773099422454834,
-0.2609313428401947,
0.09868960827589035,
-0.08383005112409592,
-0.18677918612957,
-0.1887037307024002,
-0.2267530858516693,
-0.24597173929214478,
-0.057543836534023285,
-0.15357312560081482,
-0.01617787778377533,
-0.22576603293418884,
0.32603931427001953,
0.3563995957374573,
0.19836850464344025,
-0.28309398889541626,
0.060688529163599014,
0.4033275544643402,
0.16525931656360626,
-0.07934897392988205,
0.24539141356945038,
-0.068916454911232,
-0.2795693874359131,
-0.10558608174324036,
0.05616021901369095,
-0.31019285321235657,
-0.19000233709812164,
-0.22158347070217133,
0.07779861241579056,
-0.32778024673461914,
0.18041236698627472,
-0.14708521962165833,
0.12671132385730743,
0.5198808312416077,
-0.07862699031829834,
0.019664257764816284,
-0.20946460962295532,
-0.41163715720176697,
-0.294962614774704,
0.3124220669269562,
0.2564619779586792,
-0.4368639886379242,
0.042952775955200195,
-0.3028346598148346,
0.17464900016784668,
0.23606443405151367,
0.5916887521743774,
0.28965452313423157,
-0.32126808166503906,
-0.534087061882019,
0.5964287519454956,
-0.12437080591917038,
0.20448800921440125,
-0.5143576264381409,
0.12862004339694977,
-0.3211372494697571,
0.4382396340370178,
-0.0025291815400123596,
-0.21344970166683197,
0.5392322540283203,
0.05249743536114693,
0.17250648140907288,
0.2764251232147217,
0.057844601571559906,
-0.15578176081180573,
-0.4578744173049927,
0.061270736157894135,
0.11936547607183456,
-0.2326125204563141,
0.03126535564661026,
0.08467143028974533,
0.12790703773498535,
-0.3742855489253998,
0.31344854831695557,
0.04385422542691231,
0.3038727343082428,
0.16723771393299103,
0.45260077714920044,
0.05941310524940491,
0.42267441749572754,
-0.15648174285888672,
-0.24419665336608887,
0.24772852659225464,
0.1968088001012802,
-0.022268928587436676,
-0.19511978328227997,
-0.2562630772590637,
0.23506775498390198,
-0.22281600534915924,
-0.0526692159473896,
-0.07439860701560974,
0.050735652446746826,
-0.005548298358917236,
0.11479522287845612,
0.0037107542157173157,
-0.02720954641699791,
0.2904738783836365,
-0.1725478619337082,
0.24560929834842682,
-0.4813288748264313,
0.6405594348907471,
0.11385107040405273,
-0.1672777533531189,
-0.14927822351455688,
0.21150338649749756,
0.17848682403564453,
-0.165279358625412,
0.211085706949234,
0.4045587182044983,
0.10731428116559982,
0.09856998920440674,
-0.06610211730003357,
0.1179123967885971,
0.12578092515468597,
0.19693219661712646,
-0.13414832949638367,
-0.2271847426891327,
-0.23744232952594757,
-0.22507554292678833,
0.014860555529594421,
0.5035054683685303,
-0.20084340870380402,
0.3695021867752075,
-0.08037180453538895,
0.1312924027442932,
0.3138977885246277,
-0.15928751230239868,
-0.2862399220466614,
-0.1683150827884674,
0.3846062421798706,
0.20277008414268494,
-0.2706776559352875,
0.20397895574569702,
-0.30446696281433105,
0.42457589507102966,
0.48711898922920227,
-0.1836777776479721,
-0.16897180676460266,
0.24259760975837708,
0.05903712660074234,
-0.022385012358427048,
0.1914798617362976,
0.587749183177948,
0.3702595829963684,
0.1490357667207718,
0.2617725133895874,
0.07059112936258316,
-0.1131925955414772,
-0.24406267702579498,
-0.02942497283220291,
0.22797325253486633,
-0.33687373995780945,
0.41398754715919495,
0.22269709408283234,
0.12188288569450378,
-0.2218458354473114,
0.08911946415901184,
-0.05912136286497116,
-0.1135491132736206,
-0.3477090001106262,
0.05981065332889557,
-0.5515546202659607,
0.061247944831848145,
-0.19044911861419678,
-0.10063143819570541,
-0.5766339898109436,
-0.3485828936100006,
-0.07153535634279251,
-0.004900485277175903,
0.07619351148605347,
0.19167150557041168,
0.4682525098323822,
0.33815932273864746,
0.08818367123603821,
0.0198398157954216,
-0.23312662541866302,
-0.05346676707267761,
-0.06582068651914597,
0.06194375082850456,
0.009561724029481411,
0.24687856435775757,
0.06817302852869034,
-0.3166297674179077,
-0.149575337767601,
-0.39008522033691406,
-0.24761494994163513,
-0.05696258693933487,
-0.23526789247989655,
0.4228574335575104,
0.20925389230251312,
-0.08792415261268616,
-0.3196268081665039,
0.1533462554216385,
0.22540433704853058,
0.23887446522712708,
-0.22128908336162567,
0.35400405526161194,
0.05481502041220665,
-0.12922854721546173,
-0.08278302848339081,
0.20168426632881165,
-0.09680381417274475,
-0.06761755049228668,
0.46392184495925903,
0.2570434808731079,
0.015723366290330887,
-0.2282690405845642,
-0.15513329207897186,
-0.37100276350975037,
-0.22748017311096191,
-0.10584215074777603,
-0.3458366394042969,
-0.4487750232219696,
0.41485053300857544,
-0.20998573303222656,
-0.374583899974823,
-0.07744129747152328,
-0.23474456369876862,
0.10480286926031113,
0.45059263706207275,
-0.2636704444885254,
0.25053688883781433,
-0.1884833127260208,
0.0812341570854187,
0.12501315772533417,
-0.05213647335767746,
0.1733340471982956,
-0.24359363317489624,
0.15161412954330444,
-0.05841642990708351,
-0.03196778893470764,
0.06244779750704765,
0.3187302052974701,
0.24353620409965515,
0.010726600885391235,
0.4711216688156128,
0.41343772411346436,
0.8143981099128723,
0.43820708990097046,
-0.09346902370452881,
-0.06417033076286316,
-0.2030351310968399,
0.2105933129787445,
-0.13659724593162537,
-0.2512708306312561,
0.18737541139125824,
0.006231024861335754,
-0.17175015807151794,
0.0956711694598198,
0.15154936909675598,
0.413290798664093,
0.3846668303012848,
0.09807240962982178,
-0.23954558372497559,
-0.26727059483528137,
-0.12262226641178131,
-0.08629177510738373,
0.08388625085353851,
0.22478151321411133,
-0.1440182626247406,
0.19265787303447723,
-0.27214089035987854,
-0.23149222135543823,
0.46722710132598877,
0.26972392201423645,
-0.034339845180511475,
-0.08942098915576935,
0.26284879446029663,
-0.2716827094554901,
0.22324100136756897,
0.05547518655657768,
0.17687146365642548,
0.05516549572348595,
-0.09599219262599945,
0.10938699543476105,
0.11773322522640228,
0.8317965865135193,
-0.1664966493844986,
-0.09701888263225555,
0.20745626091957092,
-0.08760486543178558,
-0.2741274833679199,
-0.18570710718631744,
0.1244392842054367,
0.08341316878795624,
0.33986636996269226,
0.3091731667518616,
-0.38931015133857727,
0.2978695333003998,
0.04192851856350899,
0.28015318512916565,
-0.09784305095672607,
-0.23524218797683716,
-0.2680070400238037,
0.15409836173057556,
-0.07898633927106857,
0.06619681417942047,
-0.05094607174396515,
0.17836888134479523,
-0.30316901206970215,
-0.20947062969207764,
-0.05828857421875,
-0.25216156244277954,
-0.01644914597272873,
-0.3651511073112488,
0.33457499742507935,
-0.20803947746753693,
0.4147416949272156,
0.01005067303776741,
0.060980357229709625,
0.32982781529426575,
0.31644341349601746,
0.24623356759548187,
-0.10237810015678406,
-0.21532684564590454,
-0.2637234628200531,
0.17273738980293274,
0.09822175651788712,
-0.1584312915802002,
0.14538124203681946,
-0.18217068910598755,
0.17932528257369995,
-0.2564643323421478,
-0.28964847326278687,
0.3420424461364746,
0.05290425568819046,
-0.3865813910961151,
0.03287439048290253,
0.23951706290245056,
-0.02204209566116333,
-0.011151149868965149,
0.5147212743759155,
0.3856205940246582,
-0.3354954719543457,
0.22212561964988708,
0.16116547584533691,
0.804015040397644,
0.02508564665913582,
0.15112914144992828,
0.04573153704404831,
-0.020643487572669983,
0.36927273869514465,
-0.011720459908246994,
0.23516429960727692,
-0.35880646109580994,
-0.30642735958099365,
-0.13839474320411682,
-0.2864893972873688,
0.072823666036129,
0.22266645729541779,
-0.04294033348560333,
0.21366162598133087,
-0.1419142484664917,
0.27658811211586,
-0.14478769898414612,
-0.12120183557271957,
-0.008756116032600403,
-0.016320664435625076,
0.16059529781341553,
0.02499261498451233,
0.13577507436275482,
-0.07536213099956512,
-0.11388945579528809,
0.07384753972291946,
-0.1613655835390091,
-0.09005281329154968,
-0.3184542655944824,
0.09098680317401886,
0.4079080820083618,
-0.04806111007928848,
0.3274846374988556,
-0.360720157623291,
-0.21848277747631073,
0.12914034724235535,
0.1922946572303772,
0.00006472691893577576,
-0.0006912350654602051,
0.19186672568321228,
0.19735732674598694,
-0.03051263652741909,
0.1824917495250702,
-0.24058009684085846,
0.07301577925682068,
0.2652945816516876,
0.07314995676279068,
-0.43761372566223145,
0.25401902198791504,
-0.1839858889579773,
-0.31971248984336853,
-0.06325128674507141,
-0.05696225166320801,
-0.3043248653411865,
0.04286566004157066,
0.029820114374160767,
0.10695153474807739,
-0.16175347566604614,
0.05230230838060379,
0.1351684331893921,
-0.1950167566537857,
0.18708716332912445,
-0.16552668809890747,
-0.07036995887756348,
-0.34240055084228516,
0.5975745916366577,
-0.054262153804302216,
0.10151560604572296,
0.014258477836847305,
0.1907268911600113,
-0.22144104540348053,
-0.013111190870404243,
-0.025612853467464447,
-0.20950043201446533,
-0.27876803278923035,
0.06948942691087723,
-0.5086087584495544,
0.5177387595176697,
-0.03660483658313751,
-0.15883152186870575,
0.21729134023189545,
-0.10488966852426529,
-0.24360129237174988,
-0.3094889521598816,
0.10629768669605255,
0.07380684465169907,
-0.1791917234659195,
0.2313663810491562,
-0.1462569385766983,
0.03851417079567909,
-0.0492626428604126,
0.0923362672328949,
-0.18140989542007446,
0.2639997601509094,
0.14993101358413696,
0.11509094387292862,
0.022534379735589027,
-0.035573795437812805,
-0.141219362616539,
-0.3160982131958008,
0.04086217284202576,
0.28955525159835815,
0.044351790100336075,
-0.07379910349845886,
-0.08180902898311615,
0.11036228388547897,
0.151506245136261,
0.06934376806020737,
0.06443637609481812,
0.03930732607841492,
-0.23106840252876282,
-0.33277150988578796,
-0.0006384775042533875,
0.13772296905517578,
-0.01270044595003128,
-0.0459880568087101,
0.7081328630447388,
-0.053759798407554626,
-0.288344144821167,
0.04597432538866997,
-0.06842981278896332,
0.08915442228317261,
-0.12157535552978516,
0.28938210010528564,
-0.23812374472618103,
0.1991744041442871,
-0.1023414358496666,
0.11023280024528503,
-0.14582960307598114,
-0.08887505531311035,
0.617993950843811,
-0.16543196141719818,
-0.1718200296163559,
-0.009742189198732376,
0.8931094408035278,
0.28798264265060425,
-0.19736242294311523,
-0.2766377329826355,
0.0758114755153656,
0.156279519200325,
-0.12856855988502502,
-0.19492821395397186,
0.526511549949646,
0.6016442775726318,
-0.12005284428596497,
0.07289141416549683,
0.11026866734027863,
-0.24353474378585815,
-0.2637175917625427,
0.1349477767944336,
0.47304242849349976,
-0.24332992732524872,
0.3962858021259308,
0.26768726110458374,
-0.03205876797437668,
0.280974805355072,
0.31122785806655884,
-0.03978382423520088,
0.011593610048294067,
0.6298835873603821,
0.26643767952919006,
0.4822414219379425,
0.027594417333602905,
-0.18791945278644562,
0.09900978207588196,
-0.3672158420085907,
0.12191158533096313,
0.31803399324417114,
0.1295064240694046,
0.05719411373138428,
0.21392974257469177,
0.16106078028678894,
0.06214885786175728,
-0.31679674983024597,
-0.4543818533420563,
0.1516527533531189,
-0.14297330379486084,
0.15130755305290222,
0.12356933951377869,
-0.084691621363163,
-0.0842788964509964,
-0.01818668283522129,
0.06471149623394012,
0.05177757516503334,
0.5625209212303162,
-0.1415373831987381,
0.28655052185058594,
-0.26970621943473816,
0.19204571843147278,
-0.2802506387233734,
0.3110376298427582,
-0.24385914206504822,
0.08666325360536575,
0.026741355657577515,
-0.008621759712696075,
0.19039012491703033,
-0.0019424259662628174,
0.3622151017189026,
0.16778655350208282,
0.09906384348869324,
-0.0034096427261829376,
0.052407313138246536,
-0.018577449023723602,
0.0880417451262474,
0.7921050190925598,
-0.28720611333847046,
-0.03943191096186638,
0.25875911116600037,
0.13886475563049316,
-0.08112548291683197,
0.26052019000053406,
0.3817604184150696,
0.1024223119020462,
-0.6184677481651306,
0.30470308661460876,
-0.30415046215057373,
-0.21046605706214905,
0.15816357731819153,
-0.20327028632164001,
-0.1296222060918808,
-0.3115725517272949,
0.3602782189846039,
-0.10334805399179459,
0.11333995312452316,
-0.0753321498632431,
0.04104261100292206,
0.0028155967593193054,
0.08269362151622772,
0.3454483151435852,
-0.05249982327222824,
-0.18407489359378815,
-0.3613097667694092,
-0.49119794368743896,
0.1711440235376358,
-0.2500736713409424,
0.2166205644607544,
0.06212545558810234,
0.3682157099246979,
-0.08059816807508469,
-0.02417680248618126,
-0.04737083613872528,
-0.07602323591709137,
-0.6434485912322998,
0.1984976828098297,
-0.10637685656547546,
-0.15886682271957397,
-0.2020900994539261,
-0.35920655727386475,
-0.3111397922039032,
-0.12937015295028687,
0.3324029743671417,
0.055314186960458755,
-0.05716703087091446,
0.2578849196434021,
0.02717132866382599,
0.23043668270111084,
-0.2653236985206604,
-0.10973067581653595,
0.3897891044616699,
0.1286143958568573,
-0.15403130650520325,
-0.1050025224685669,
-0.3711604177951813,
-0.18091385066509247,
-0.11064828187227249,
0.699342668056488,
-0.3716776967048645,
0.22850677371025085,
-0.015537913888692856,
-0.05106263980269432,
-0.14857715368270874,
-0.17598706483840942,
0.21108503639698029,
0.2693080008029938,
-0.29582589864730835,
0.20914910733699799,
-0.006344843655824661,
0.07833777368068695,
0.0963396281003952,
0.3659997284412384,
-0.041520871222019196,
0.295632004737854,
0.3266567587852478,
-0.41857531666755676,
0.2184901088476181,
-0.5597155094146729,
-0.12646955251693726,
-0.155334010720253,
0.09934406727552414,
0.3345315158367157,
-0.3230849802494049,
-0.20665401220321655,
-0.27836838364601135,
0.588931679725647,
-0.04488053917884827,
0.19044730067253113,
0.01669900119304657,
0.10259823501110077,
-0.13093231618404388,
-0.17660556733608246,
0.05088245868682861,
0.1601068377494812,
-0.39908087253570557,
0.470043808221817,
-0.31674081087112427
] |
https://github.com/huggingface/datasets/issues/4570 | Dataset sharding non-contiguous? | Hi! You can pass `contiguous=True` to `.shard()` get contiguous shards. More info on this and the default behavior can be found in the [docs](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.shard).
EDIT: Answered as you closed the thread 😄 | ## Describe the bug
I'm not sure if this is a bug; more likely normal behavior but i wanted to double check.
Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset?
This might be related to this pull request (https://github.com/huggingface/datasets/pull/4466) but I have to admit I did not properly look into the changes made.
## Steps to reproduce the bug
```python
max_shard_size = convert_file_size_to_int('300MB')
dataset_nbytes = dataset.data.nbytes
num_shards = int(dataset_nbytes / max_shard_size) + 1
num_shards = max(num_shards, 1)
print(f"{num_shards=}")
for shard_index in range(num_shards):
shard = dataset.shard(num_shards=num_shards, index=shard_index)
shard.to_parquet(f"tokenized/tokenized-{shard_index:03d}.parquet")
os.listdir('tokenized/')
```
## Expected results
I expected the shards to match the order of the data of the original dataset; i.e. `dataset[10]` being the same as `shard_1[10]` for example
## Actual results
Only the first element is the same; i.e. `dataset[0]` is the same as `shard_1[0]`
## 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.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 32 | Dataset sharding non-contiguous?
## Describe the bug
I'm not sure if this is a bug; more likely normal behavior but i wanted to double check.
Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset?
This might be related to this pull request (https://github.com/huggingface/datasets/pull/4466) but I have to admit I did not properly look into the changes made.
## Steps to reproduce the bug
```python
max_shard_size = convert_file_size_to_int('300MB')
dataset_nbytes = dataset.data.nbytes
num_shards = int(dataset_nbytes / max_shard_size) + 1
num_shards = max(num_shards, 1)
print(f"{num_shards=}")
for shard_index in range(num_shards):
shard = dataset.shard(num_shards=num_shards, index=shard_index)
shard.to_parquet(f"tokenized/tokenized-{shard_index:03d}.parquet")
os.listdir('tokenized/')
```
## Expected results
I expected the shards to match the order of the data of the original dataset; i.e. `dataset[10]` being the same as `shard_1[10]` for example
## Actual results
Only the first element is the same; i.e. `dataset[0]` is the same as `shard_1[0]`
## 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.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Hi! You can pass `contiguous=True` to `.shard()` get contiguous shards. More info on this and the default behavior can be found in the [docs](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.shard).
EDIT: Answered as you closed the thread 😄 | [
0.03986923024058342,
-0.2767412066459656,
0.018833663314580917,
0.2221575379371643,
0.08324537426233292,
-0.04516338184475899,
0.4172833561897278,
0.02987079881131649,
-0.535105288028717,
-0.012742787599563599,
0.03597630560398102,
-0.05815023183822632,
0.2801959812641144,
-0.08864372223615646,
-0.05023860186338425,
-0.10040275752544403,
0.16632229089736938,
-0.12766216695308685,
0.050421133637428284,
-0.2337038666009903,
-0.18158839643001556,
0.3125779926776886,
-0.26180529594421387,
-0.18371127545833588,
-0.38395246863365173,
0.21938852965831757,
-0.4725453853607178,
0.15812140703201294,
0.0005452604964375496,
-0.07171264290809631,
0.3396080732345581,
0.02765081450343132,
-0.15777342021465302,
0.22355490922927856,
-0.00012130184768466279,
-0.16161435842514038,
0.31963926553726196,
-0.054339274764060974,
-0.02333279326558113,
-0.033141180872917175,
-0.3394458293914795,
-0.2944873571395874,
-0.23827596008777618,
-0.09357760101556778,
-0.11899194866418839,
0.08087577670812607,
-0.18555471301078796,
-0.03856745362281799,
0.06470903754234314,
0.02185869961977005,
0.0980144590139389,
-0.1328699290752411,
0.14835044741630554,
-0.07927515357732773,
0.1471908688545227,
0.11242768168449402,
-0.012002060189843178,
-0.12363734841346741,
-0.04905666410923004,
0.2571684420108795,
0.04869452863931656,
-0.2580222189426422,
-0.02805810607969761,
0.10726812481880188,
-0.05979827046394348,
0.26547011733055115,
-0.2706812620162964,
-0.16301202774047852,
0.13149350881576538,
0.3376401960849762,
0.18655675649642944,
-0.14168477058410645,
-0.26804855465888977,
-0.42327332496643066,
-0.06310277432203293,
-0.45497167110443115,
0.1705286204814911,
0.4935212731361389,
0.146187424659729,
0.09716002643108368,
-0.18463070690631866,
0.12700125575065613,
0.03506917506456375,
-0.009127922356128693,
-0.1616474986076355,
0.061995454132556915,
0.07507043331861496,
-0.03219820559024811,
-0.24497677385807037,
-0.11679784953594208,
-0.31382349133491516,
-0.45284736156463623,
-0.3213939964771271,
-0.01630391925573349,
-0.4265701174736023,
-0.02245313860476017,
-0.10618408769369125,
0.33971071243286133,
0.39985328912734985,
0.22291795909404755,
-0.3445223569869995,
-0.031126193702220917,
0.16506120562553406,
-0.23444056510925293,
0.1783495545387268,
-0.10618375241756439,
0.04140353575348854,
0.2676714062690735,
-0.20304520428180695,
0.1904180347919464,
-0.02578917145729065,
0.06441313028335571,
0.2786506414413452,
-0.2252274751663208,
-0.10758931934833527,
-0.05331999808549881,
0.10654723644256592,
-0.044154755771160126,
0.02843846194446087,
0.20197276771068573,
0.027448974549770355,
0.08031219989061356,
-0.21726801991462708,
-0.03181374818086624,
0.046280600130558014,
-0.3438170850276947,
-0.26775479316711426,
0.08237005770206451,
-0.08820328116416931,
-0.2062286138534546,
-0.18452002108097076,
-0.23191185295581818,
-0.24410854279994965,
-0.06557629257440567,
-0.14207673072814941,
-0.02966630458831787,
-0.21787062287330627,
0.3155689835548401,
0.36581921577453613,
0.18636874854564667,
-0.2772009074687958,
0.04524354264140129,
0.37472259998321533,
0.1834075152873993,
-0.06987611949443817,
0.2409709244966507,
-0.09283033013343811,
-0.2714860439300537,
-0.08876056969165802,
0.058882541954517365,
-0.31051716208457947,
-0.18271826207637787,
-0.20921632647514343,
0.08400996774435043,
-0.33589446544647217,
0.17183096706867218,
-0.17212000489234924,
0.1212780624628067,
0.525907576084137,
-0.052543915808200836,
0.02216416597366333,
-0.19835086166858673,
-0.42459389567375183,
-0.29321128129959106,
0.32220250368118286,
0.2647641897201538,
-0.43419215083122253,
0.061184704303741455,
-0.28790053725242615,
0.1382460594177246,
0.22832712531089783,
0.5658137202262878,
0.31289148330688477,
-0.31571200489997864,
-0.5216965675354004,
0.5860654711723328,
-0.12463697046041489,
0.21642109751701355,
-0.5268718004226685,
0.1326155662536621,
-0.2873717248439789,
0.41952893137931824,
-0.0038488954305648804,
-0.19541844725608826,
0.5204492807388306,
0.07527115941047668,
0.13397233188152313,
0.2964845299720764,
0.05994100123643875,
-0.1488642692565918,
-0.46711206436157227,
0.05496685206890106,
0.10557366162538528,
-0.20515872538089752,
0.0617268942296505,
0.1081637442111969,
0.1524507701396942,
-0.35827451944351196,
0.3182505965232849,
0.057082485407590866,
0.310240238904953,
0.17330239713191986,
0.46548527479171753,
0.05561963468790054,
0.42236658930778503,
-0.18932294845581055,
-0.24106508493423462,
0.26412153244018555,
0.1462876945734024,
-0.02412334829568863,
-0.18969140946865082,
-0.23871183395385742,
0.22875350713729858,
-0.23126326501369476,
-0.07868693768978119,
-0.07452596724033356,
0.05369413644075394,
-0.02689933031797409,
0.13508637249469757,
0.022593557834625244,
-0.0010261014103889465,
0.28545325994491577,
-0.17271043360233307,
0.24761007726192474,
-0.5058818459510803,
0.6652578115463257,
0.11235134303569794,
-0.17636904120445251,
-0.16085278987884521,
0.2110610008239746,
0.16703201830387115,
-0.14989420771598816,
0.2013877034187317,
0.4065084755420685,
0.09875532239675522,
0.13473352789878845,
-0.06883329153060913,
0.10178124159574509,
0.1403668373823166,
0.17769768834114075,
-0.15197846293449402,
-0.20858612656593323,
-0.2414146512746811,
-0.21249648928642273,
0.019816692918539047,
0.5295345187187195,
-0.16597118973731995,
0.34670281410217285,
-0.0988694429397583,
0.1278274953365326,
0.33461761474609375,
-0.169111967086792,
-0.2663763761520386,
-0.17644205689430237,
0.37588953971862793,
0.19829793274402618,
-0.2882916331291199,
0.2092229723930359,
-0.30130845308303833,
0.42059949040412903,
0.4911600351333618,
-0.199729323387146,
-0.15807127952575684,
0.24213099479675293,
0.07443837076425552,
-0.011148335412144661,
0.18690676987171173,
0.6148858666419983,
0.37807220220565796,
0.14626282453536987,
0.24624349176883698,
0.0674579069018364,
-0.09472166001796722,
-0.24758462607860565,
-0.024049706757068634,
0.21611489355564117,
-0.3212485611438751,
0.4268973767757416,
0.22373422980308533,
0.10990386456251144,
-0.21404016017913818,
0.09940896928310394,
-0.045889005064964294,
-0.10358380526304245,
-0.33234378695487976,
0.03220052272081375,
-0.5579376220703125,
0.057140596210956573,
-0.18290379643440247,
-0.09920019656419754,
-0.5826081037521362,
-0.32792744040489197,
-0.08474213629961014,
0.0020524784922599792,
0.06762911379337311,
0.19533486664295197,
0.4813290536403656,
0.2969968616962433,
0.10020509362220764,
0.02256925031542778,
-0.24988053739070892,
-0.03554448485374451,
-0.05241625756025314,
0.07041233777999878,
0.008669872768223286,
0.22998549044132233,
0.06483566761016846,
-0.31835734844207764,
-0.15079094469547272,
-0.39233458042144775,
-0.23374399542808533,
-0.06019648164510727,
-0.23627819120883942,
0.41336894035339355,
0.17495886981487274,
-0.09869316220283508,
-0.32558107376098633,
0.18515093624591827,
0.23768070340156555,
0.23115304112434387,
-0.24608413875102997,
0.3725801706314087,
0.05451428145170212,
-0.10157269984483719,
-0.07842756807804108,
0.1869293451309204,
-0.1234724149107933,
-0.06239565834403038,
0.4480823278427124,
0.2635117471218109,
0.0264134481549263,
-0.23821860551834106,
-0.1527106910943985,
-0.36569488048553467,
-0.22586365044116974,
-0.10037948936223984,
-0.3481643497943878,
-0.44632264971733093,
0.43657243251800537,
-0.2157202512025833,
-0.40242037177085876,
-0.06200282275676727,
-0.24153552949428558,
0.09974449872970581,
0.4422091245651245,
-0.2679249942302704,
0.2534409165382385,
-0.20013584196567535,
0.07481645047664642,
0.1351279616355896,
-0.07356816530227661,
0.17482127249240875,
-0.24923312664031982,
0.14115580916404724,
-0.048376940190792084,
-0.004106992855668068,
0.07547123730182648,
0.2882847189903259,
0.24004730582237244,
0.0140069629997015,
0.49453005194664,
0.40095391869544983,
0.7879648208618164,
0.42686060070991516,
-0.06664396822452545,
-0.08045990765094757,
-0.20117466151714325,
0.19919711351394653,
-0.14054352045059204,
-0.23353053629398346,
0.16544824838638306,
-0.000011205673217773438,
-0.1242050975561142,
0.09481164813041687,
0.15886223316192627,
0.4227146506309509,
0.36388057470321655,
0.07090182602405548,
-0.2304762899875641,
-0.25108715891838074,
-0.1552543193101883,
-0.09146423637866974,
0.09245765954256058,
0.23354819416999817,
-0.1405232697725296,
0.24213430285453796,
-0.2911161184310913,
-0.23606784641742706,
0.4732271432876587,
0.23743897676467896,
-0.028153179213404655,
-0.07696782797574997,
0.26424530148506165,
-0.2614125907421112,
0.2169221192598343,
0.05595026910305023,
0.1891534924507141,
0.05809059366583824,
-0.07152870297431946,
0.12274745106697083,
0.12700115144252777,
0.7777464389801025,
-0.15709786117076874,
-0.04529581218957901,
0.19034802913665771,
-0.12041529268026352,
-0.2645714282989502,
-0.19885416328907013,
0.11369042098522186,
0.05353626236319542,
0.32657748460769653,
0.32025325298309326,
-0.3687521815299988,
0.2848917245864868,
0.04156698286533356,
0.2625298798084259,
-0.12301009893417358,
-0.23661214113235474,
-0.2795790433883667,
0.16922730207443237,
-0.09396945685148239,
0.07602588087320328,
-0.06695596128702164,
0.18890215456485748,
-0.32578906416893005,
-0.23569412529468536,
-0.06947644054889679,
-0.26199647784233093,
0.0026849210262298584,
-0.3838256299495697,
0.3409108817577362,
-0.19593003392219543,
0.4422481954097748,
-0.006564423441886902,
0.04848935082554817,
0.30440717935562134,
0.2945837378501892,
0.2606498897075653,
-0.09219232201576233,
-0.2152700126171112,
-0.2654307186603546,
0.14829684793949127,
0.04886891692876816,
-0.1828336864709854,
0.1715468019247055,
-0.18031199276447296,
0.17129278182983398,
-0.27202701568603516,
-0.31429821252822876,
0.31781917810440063,
0.0632263571023941,
-0.3736458122730255,
0.038788311183452606,
0.2656267583370209,
-0.04631984978914261,
0.004061795771121979,
0.4767214357852936,
0.3847017288208008,
-0.3312908113002777,
0.2174544632434845,
0.15554621815681458,
0.7706831693649292,
0.0383661612868309,
0.13173049688339233,
0.021765680983662605,
-0.03332708030939102,
0.352321594953537,
-0.011145204305648804,
0.23237060010433197,
-0.3695172369480133,
-0.30396297574043274,
-0.12992621958255768,
-0.267792284488678,
0.08692865818738937,
0.22827710211277008,
-0.045214954763650894,
0.19956214725971222,
-0.12755969166755676,
0.2733088731765747,
-0.13184785842895508,
-0.11683272570371628,
0.000008882954716682434,
-0.033957358449697495,
0.15258079767227173,
0.027497965842485428,
0.12736575305461884,
-0.06292702257633209,
-0.10486266016960144,
0.06883752346038818,
-0.16244971752166748,
-0.04616985470056534,
-0.3028966784477234,
0.11002220958471298,
0.4265671670436859,
-0.002399241551756859,
0.3263271450996399,
-0.38148969411849976,
-0.21344688534736633,
0.1364046037197113,
0.1832280457019806,
0.03789478912949562,
-0.016269749030470848,
0.1929532140493393,
0.1950538456439972,
-0.03320319578051567,
0.19158935546875,
-0.21622873842716217,
0.05544723570346832,
0.24146205186843872,
0.04123557358980179,
-0.4288802444934845,
0.2529895305633545,
-0.17293930053710938,
-0.3143129348754883,
-0.06320023536682129,
-0.06583555042743683,
-0.29431432485580444,
0.057609375566244125,
0.010898739099502563,
0.09991031885147095,
-0.17167751491069794,
0.06162911280989647,
0.16182135045528412,
-0.21765312552452087,
0.19555449485778809,
-0.16431406140327454,
-0.09006057679653168,
-0.34814339876174927,
0.6177605390548706,
-0.027065210044384003,
0.12332072854042053,
0.025715667754411697,
0.17498213052749634,
-0.22188055515289307,
-0.024286262691020966,
0.02195919305086136,
-0.22593028843402863,
-0.28193438053131104,
0.06123393774032593,
-0.47707924246788025,
0.5154041051864624,
-0.039666835218667984,
-0.1756988763809204,
0.2012997716665268,
-0.11785801500082016,
-0.22305089235305786,
-0.33076828718185425,
0.08926955610513687,
0.05341842770576477,
-0.1682598888874054,
0.23131835460662842,
-0.15145567059516907,
0.03862348943948746,
-0.03802652657032013,
0.10665170103311539,
-0.1845521330833435,
0.255795419216156,
0.1245337501168251,
0.10865756124258041,
0.01639416441321373,
-0.03467894345521927,
-0.13490761816501617,
-0.30857762694358826,
0.04596777260303497,
0.29921454191207886,
0.04095982760190964,
-0.07680121064186096,
-0.07920011132955551,
0.10522404313087463,
0.14990243315696716,
0.07286012917757034,
0.05367479845881462,
0.03643233701586723,
-0.24809008836746216,
-0.29926103353500366,
-0.010920563712716103,
0.14877793192863464,
0.0023368969559669495,
-0.030228465795516968,
0.718641996383667,
-0.05557917803525925,
-0.29466789960861206,
0.047955408692359924,
-0.07301908731460571,
0.06323851644992828,
-0.14282657206058502,
0.27414923906326294,
-0.21952183544635773,
0.21071982383728027,
-0.11171112954616547,
0.07413280010223389,
-0.15831904113292694,
-0.10263218730688095,
0.6361504793167114,
-0.1880342811346054,
-0.15953370928764343,
0.006169396918267012,
0.8929457664489746,
0.24562180042266846,
-0.19850318133831024,
-0.2708909511566162,
0.0817573145031929,
0.15950870513916016,
-0.14444391429424286,
-0.19854600727558136,
0.5241521596908569,
0.5747692584991455,
-0.13149301707744598,
0.03995335102081299,
0.11383287608623505,
-0.23849208652973175,
-0.2519989013671875,
0.16023343801498413,
0.44209545850753784,
-0.2541270852088928,
0.38751664757728577,
0.25136876106262207,
-0.015185102820396423,
0.26856333017349243,
0.33758026361465454,
-0.03903273120522499,
-0.025763340294361115,
0.6391761302947998,
0.2731298506259918,
0.493847519159317,
-0.005571428686380386,
-0.18324525654315948,
0.10637302696704865,
-0.3792424201965332,
0.11810649931430817,
0.3178776502609253,
0.08510531485080719,
0.04677813500165939,
0.1837807148694992,
0.15660914778709412,
0.061725158244371414,
-0.3191283345222473,
-0.44901686906814575,
0.14389880001544952,
-0.14626872539520264,
0.14702336490154266,
0.16255371272563934,
-0.06282997876405716,
-0.06981994956731796,
-0.014431856572628021,
0.091939777135849,
0.04823487997055054,
0.5555888414382935,
-0.13364282250404358,
0.2644757032394409,
-0.252793550491333,
0.22224166989326477,
-0.2595084607601166,
0.3107736110687256,
-0.24709591269493103,
0.07046088576316833,
0.014684610068798065,
0.003216959536075592,
0.1804192066192627,
-0.004713596776127815,
0.3246428966522217,
0.1734996736049652,
0.09999565780162811,
0.023630063980817795,
0.06251402199268341,
-0.02162911742925644,
0.09427446871995926,
0.8168367743492126,
-0.2724449932575226,
-0.04377024993300438,
0.2662341296672821,
0.13811101019382477,
-0.09364188462495804,
0.22577796876430511,
0.4021369516849518,
0.11613532900810242,
-0.6193073987960815,
0.3268078863620758,
-0.2963827848434448,
-0.2250264585018158,
0.15761663019657135,
-0.1995863914489746,
-0.14251776039600372,
-0.3002748191356659,
0.37755411863327026,
-0.10494395345449448,
0.09325996041297913,
-0.10113517194986343,
0.043389350175857544,
-0.0029324181377887726,
0.0959305539727211,
0.31666290760040283,
-0.0445794016122818,
-0.17320220172405243,
-0.3580971360206604,
-0.48737096786499023,
0.17860788106918335,
-0.21550685167312622,
0.25044938921928406,
0.0644630566239357,
0.3832748234272003,
-0.12066330760717392,
-0.03294507414102554,
-0.05917277932167053,
-0.07723615318536758,
-0.6337089538574219,
0.19415415823459625,
-0.08648049831390381,
-0.14951585233211517,
-0.2354300171136856,
-0.35652226209640503,
-0.30858972668647766,
-0.14783453941345215,
0.35908743739128113,
0.055603157728910446,
-0.052785176783800125,
0.27132779359817505,
0.028377696871757507,
0.23456203937530518,
-0.2653892934322357,
-0.10770057141780853,
0.4040520489215851,
0.11888334155082703,
-0.14329499006271362,
-0.08750143647193909,
-0.3539169728755951,
-0.1969304084777832,
-0.09420722723007202,
0.6844736337661743,
-0.35673102736473083,
0.23007312417030334,
0.010321378707885742,
-0.04913942888379097,
-0.1481856405735016,
-0.1406058520078659,
0.2092985063791275,
0.25660523772239685,
-0.2850263714790344,
0.18383879959583282,
0.017005324363708496,
0.08088178932666779,
0.08152227103710175,
0.34287887811660767,
-0.051371052861213684,
0.2938992977142334,
0.3076243996620178,
-0.4278309643268585,
0.21170483529567719,
-0.5628194212913513,
-0.10982829332351685,
-0.17363061010837555,
0.11394519358873367,
0.33536496758461,
-0.3241371512413025,
-0.21325209736824036,
-0.26094263792037964,
0.5966582894325256,
-0.05090411752462387,
0.2216622233390808,
0.008494343608617783,
0.10074758529663086,
-0.12211759388446808,
-0.18405970931053162,
0.047648295760154724,
0.16025465726852417,
-0.38471123576164246,
0.48801079392433167,
-0.31872886419296265
] |
https://github.com/huggingface/datasets/issues/4570 | Dataset sharding non-contiguous? | Hahaha I'm sorry; my excuse is: it's Sunday. (Which makes me all the more grateful for your response :smiley: | ## Describe the bug
I'm not sure if this is a bug; more likely normal behavior but i wanted to double check.
Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset?
This might be related to this pull request (https://github.com/huggingface/datasets/pull/4466) but I have to admit I did not properly look into the changes made.
## Steps to reproduce the bug
```python
max_shard_size = convert_file_size_to_int('300MB')
dataset_nbytes = dataset.data.nbytes
num_shards = int(dataset_nbytes / max_shard_size) + 1
num_shards = max(num_shards, 1)
print(f"{num_shards=}")
for shard_index in range(num_shards):
shard = dataset.shard(num_shards=num_shards, index=shard_index)
shard.to_parquet(f"tokenized/tokenized-{shard_index:03d}.parquet")
os.listdir('tokenized/')
```
## Expected results
I expected the shards to match the order of the data of the original dataset; i.e. `dataset[10]` being the same as `shard_1[10]` for example
## Actual results
Only the first element is the same; i.e. `dataset[0]` is the same as `shard_1[0]`
## 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.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 19 | Dataset sharding non-contiguous?
## Describe the bug
I'm not sure if this is a bug; more likely normal behavior but i wanted to double check.
Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset?
This might be related to this pull request (https://github.com/huggingface/datasets/pull/4466) but I have to admit I did not properly look into the changes made.
## Steps to reproduce the bug
```python
max_shard_size = convert_file_size_to_int('300MB')
dataset_nbytes = dataset.data.nbytes
num_shards = int(dataset_nbytes / max_shard_size) + 1
num_shards = max(num_shards, 1)
print(f"{num_shards=}")
for shard_index in range(num_shards):
shard = dataset.shard(num_shards=num_shards, index=shard_index)
shard.to_parquet(f"tokenized/tokenized-{shard_index:03d}.parquet")
os.listdir('tokenized/')
```
## Expected results
I expected the shards to match the order of the data of the original dataset; i.e. `dataset[10]` being the same as `shard_1[10]` for example
## Actual results
Only the first element is the same; i.e. `dataset[0]` is the same as `shard_1[0]`
## 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.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Hahaha I'm sorry; my excuse is: it's Sunday. (Which makes me all the more grateful for your response :smiley: | [
0.043960053473711014,
-0.2885074019432068,
0.01620539277791977,
0.22780950367450714,
0.07851532101631165,
-0.04400944709777832,
0.44279545545578003,
0.02506532520055771,
-0.5470185875892639,
-0.02623714506626129,
0.01898418553173542,
-0.061626043170690536,
0.2754443883895874,
-0.027583139017224312,
-0.014456045813858509,
-0.10453622043132782,
0.1707507073879242,
-0.1613747775554657,
0.05248238146305084,
-0.22842249274253845,
-0.19016270339488983,
0.31793057918548584,
-0.2599301338195801,
-0.1659165769815445,
-0.3454413414001465,
0.21566662192344666,
-0.4758906960487366,
0.18854480981826782,
0.011962209828197956,
-0.07207844406366348,
0.30449724197387695,
-0.018651410937309265,
-0.15997831523418427,
0.24512985348701477,
-0.00012095729471184313,
-0.18835526704788208,
0.3061274290084839,
-0.053175188601017,
-0.03964978829026222,
-0.06208755075931549,
-0.32440316677093506,
-0.31989240646362305,
-0.21228723227977753,
-0.08462820947170258,
-0.08929497748613358,
0.06403462588787079,
-0.189373180270195,
-0.0586276538670063,
0.10152788460254669,
0.028176307678222656,
0.10108019411563873,
-0.10931569337844849,
0.11950498819351196,
-0.07131913304328918,
0.13225801289081573,
0.12337125837802887,
-0.016615040600299835,
-0.13635404407978058,
-0.06268441677093506,
0.28832536935806274,
0.06977739930152893,
-0.2715999484062195,
-0.03567531704902649,
0.10109788179397583,
-0.06428509950637817,
0.2797335982322693,
-0.2818472385406494,
-0.19381511211395264,
0.11814317852258682,
0.37080734968185425,
0.1765165627002716,
-0.1447831392288208,
-0.25353747606277466,
-0.41936805844306946,
-0.06209797412157059,
-0.44873031973838806,
0.18503817915916443,
0.5136394500732422,
0.17797380685806274,
0.1130804568529129,
-0.1752566695213318,
0.11534649133682251,
0.02696499228477478,
-0.005655907094478607,
-0.15522512793540955,
0.04223347827792168,
0.0617375373840332,
-0.028290413320064545,
-0.28708574175834656,
-0.12840436398983002,
-0.3303474187850952,
-0.46682092547416687,
-0.3292154371738434,
-0.04524514824151993,
-0.3904731273651123,
-0.028754007071256638,
-0.12729695439338684,
0.3279570937156677,
0.38769906759262085,
0.24050651490688324,
-0.3485282063484192,
-0.034557804465293884,
0.1690511554479599,
-0.22175651788711548,
0.21477936208248138,
-0.14788620173931122,
0.029412738978862762,
0.2946498394012451,
-0.21898262202739716,
0.16887237131595612,
-0.03132941573858261,
0.056421734392642975,
0.2726341485977173,
-0.20423497259616852,
-0.11672736704349518,
-0.07296916842460632,
0.08339889347553253,
-0.03336333483457565,
0.02902453951537609,
0.17837375402450562,
0.05788278579711914,
0.0867478996515274,
-0.21361716091632843,
-0.03421081602573395,
0.0616091750562191,
-0.3557794690132141,
-0.2919144630432129,
0.10635076463222504,
-0.072156623005867,
-0.2081175148487091,
-0.17887356877326965,
-0.24419446289539337,
-0.25361689925193787,
-0.03698963671922684,
-0.15160095691680908,
-0.033453330397605896,
-0.21304433047771454,
0.3268314301967621,
0.344889760017395,
0.17577263712882996,
-0.28631505370140076,
0.04909099265933037,
0.3971908986568451,
0.177338644862175,
-0.046555206179618835,
0.2584246098995209,
-0.07336553931236267,
-0.24639326333999634,
-0.10990510880947113,
0.053940046578645706,
-0.3225250542163849,
-0.1780862957239151,
-0.2350531965494156,
0.07764538377523422,
-0.3214961290359497,
0.1734316647052765,
-0.162392258644104,
0.11451190710067749,
0.5186982154846191,
-0.0602366104722023,
0.029947198927402496,
-0.2332584112882614,
-0.38301074504852295,
-0.29193103313446045,
0.3139178156852722,
0.2491268515586853,
-0.4269707202911377,
0.04995119571685791,
-0.29876795411109924,
0.15682336688041687,
0.27995988726615906,
0.5871211886405945,
0.29585278034210205,
-0.316802978515625,
-0.539104700088501,
0.5900382995605469,
-0.08267197757959366,
0.24438554048538208,
-0.5069066286087036,
0.15122920274734497,
-0.31415218114852905,
0.4050585627555847,
-0.004100129008293152,
-0.1947399377822876,
0.49774280190467834,
0.09632515907287598,
0.14131292700767517,
0.30270493030548096,
0.07216136157512665,
-0.14301393926143646,
-0.453934907913208,
0.06362508237361908,
0.11332689970731735,
-0.23769550025463104,
0.04542635381221771,
0.11912888288497925,
0.13732683658599854,
-0.3808138966560364,
0.31358760595321655,
0.0411754846572876,
0.29030513763427734,
0.16982199251651764,
0.46818095445632935,
0.07660628110170364,
0.44893380999565125,
-0.21896600723266602,
-0.22160369157791138,
0.23390671610832214,
0.15307314693927765,
-0.041027650237083435,
-0.18121083080768585,
-0.23396679759025574,
0.1966264545917511,
-0.2285677045583725,
-0.06800824403762817,
-0.05967302992939949,
0.03873835504055023,
-0.006820060312747955,
0.11173616349697113,
0.01480245590209961,
-0.04132327809929848,
0.2803235948085785,
-0.1846114844083786,
0.25354012846946716,
-0.4767495393753052,
0.6511359810829163,
0.10996368527412415,
-0.1713622510433197,
-0.14443613588809967,
0.22138524055480957,
0.15282273292541504,
-0.15663522481918335,
0.22406065464019775,
0.40480178594589233,
0.13040800392627716,
0.0967419371008873,
-0.08666423708200455,
0.0932224839925766,
0.13291072845458984,
0.17792752385139465,
-0.1415318250656128,
-0.19492430984973907,
-0.22673213481903076,
-0.2274543046951294,
0.03557351976633072,
0.5577245950698853,
-0.17411410808563232,
0.35056641697883606,
-0.06221394240856171,
0.1215251013636589,
0.31377920508384705,
-0.15817637741565704,
-0.27223145961761475,
-0.19310811161994934,
0.36958712339401245,
0.16869713366031647,
-0.2662688195705414,
0.18960538506507874,
-0.2941012978553772,
0.4145790636539459,
0.47941192984580994,
-0.17414098978042603,
-0.14393076300621033,
0.2533394396305084,
0.019191790372133255,
0.0011070258915424347,
0.13677415251731873,
0.6142204403877258,
0.3391081988811493,
0.15114742517471313,
0.24151396751403809,
0.07714133709669113,
-0.09337038546800613,
-0.25005677342414856,
-0.03537046164274216,
0.22986425459384918,
-0.3033582270145416,
0.4170370101928711,
0.24246728420257568,
0.13630199432373047,
-0.22986221313476562,
0.11809071898460388,
-0.06340883672237396,
-0.11029504239559174,
-0.34396469593048096,
0.06173267215490341,
-0.5411272644996643,
0.07130434364080429,
-0.19299528002738953,
-0.08052314072847366,
-0.5822408199310303,
-0.3452959954738617,
-0.10353825986385345,
0.004185568541288376,
0.07908083498477936,
0.1884188950061798,
0.46881166100502014,
0.2838054299354553,
0.07746110111474991,
0.032756783068180084,
-0.22372165322303772,
-0.011641517281532288,
-0.06323137134313583,
0.06956593692302704,
0.03618907928466797,
0.23608072102069855,
0.0658140704035759,
-0.328445166349411,
-0.13097822666168213,
-0.4203614890575409,
-0.2459196150302887,
-0.05822156369686127,
-0.21723268926143646,
0.4282589852809906,
0.17899632453918457,
-0.10689903795719147,
-0.33101576566696167,
0.14530602097511292,
0.23720227181911469,
0.23784801363945007,
-0.2590499818325043,
0.3751079738140106,
0.04739631339907646,
-0.09665799140930176,
-0.07483714818954468,
0.17105498909950256,
-0.10544384270906448,
-0.055699627846479416,
0.4607851505279541,
0.2643855810165405,
0.03536289185285568,
-0.21645905077457428,
-0.1901593804359436,
-0.3851749002933502,
-0.24753138422966003,
-0.11484533548355103,
-0.32918426394462585,
-0.4342897832393646,
0.4386880695819855,
-0.22572970390319824,
-0.39736372232437134,
-0.049087170511484146,
-0.23937417566776276,
0.09329887479543686,
0.43632441759109497,
-0.2868042588233948,
0.2726861834526062,
-0.19650404155254364,
0.0526161827147007,
0.12630191445350647,
-0.07964126765727997,
0.14021222293376923,
-0.24151651561260223,
0.13989819586277008,
-0.033552136272192,
0.004912953823804855,
0.06063076853752136,
0.32815924286842346,
0.2407316267490387,
-0.020207777619361877,
0.48582661151885986,
0.3863230347633362,
0.7616443634033203,
0.42461293935775757,
-0.06892155110836029,
-0.06571833789348602,
-0.2017228901386261,
0.21814310550689697,
-0.17212095856666565,
-0.2205338031053543,
0.17824901640415192,
0.008058920502662659,
-0.14121127128601074,
0.12816056609153748,
0.1677584946155548,
0.4130423069000244,
0.37426236271858215,
0.0989454984664917,
-0.2553166449069977,
-0.24598239362239838,
-0.13949717581272125,
-0.07318701595067978,
0.08514748513698578,
0.2392754852771759,
-0.16759532690048218,
0.21439479291439056,
-0.3072184920310974,
-0.23754853010177612,
0.4654565453529358,
0.26652660965919495,
-0.038800112903118134,
-0.12781621515750885,
0.23313091695308685,
-0.22894638776779175,
0.2110578715801239,
0.047458548098802567,
0.17803604900836945,
0.051788415759801865,
-0.10643994808197021,
0.12082095444202423,
0.14075684547424316,
0.7878922820091248,
-0.14429058134555817,
-0.0836571604013443,
0.19651417434215546,
-0.08412368595600128,
-0.26592394709587097,
-0.18017837405204773,
0.10335619747638702,
0.06128084659576416,
0.37691977620124817,
0.32340797781944275,
-0.33388227224349976,
0.2928721010684967,
0.037169087678194046,
0.2987188398838043,
-0.11174526810646057,
-0.24435606598854065,
-0.2646603286266327,
0.18814325332641602,
-0.07807669788599014,
0.06302599608898163,
-0.08028330653905869,
0.1774483025074005,
-0.33449193835258484,
-0.24764543771743774,
-0.08628005534410477,
-0.2624977231025696,
0.004101522266864777,
-0.37528276443481445,
0.33605584502220154,
-0.1917143315076828,
0.42966321110725403,
-0.0019178390502929688,
0.10569459944963455,
0.32388848066329956,
0.2826745808124542,
0.2651878893375397,
-0.12259067595005035,
-0.2160497009754181,
-0.2787136733531952,
0.19024141132831573,
0.06391268968582153,
-0.1541314423084259,
0.16023483872413635,
-0.17227041721343994,
0.18038290739059448,
-0.2474992573261261,
-0.33047357201576233,
0.3435101807117462,
0.06187756359577179,
-0.3875121772289276,
0.02513291873037815,
0.25733011960983276,
-0.04443437233567238,
-0.0012117549777030945,
0.468549519777298,
0.3860064744949341,
-0.3125426173210144,
0.22310294210910797,
0.10981497168540955,
0.7984215617179871,
0.00907137244939804,
0.14597077667713165,
0.019294138997793198,
0.000635586678981781,
0.36846426129341125,
0.014481917023658752,
0.24289895594120026,
-0.3880075514316559,
-0.25812584161758423,
-0.1256222426891327,
-0.27746859192848206,
0.09674710780382156,
0.2548168897628784,
-0.031247204169631004,
0.21076466143131256,
-0.20005328953266144,
0.2905222177505493,
-0.18124160170555115,
-0.12400928139686584,
0.004393690265715122,
-0.026785068213939667,
0.13463416695594788,
0.0250546894967556,
0.13633859157562256,
-0.055645015090703964,
-0.10175862163305283,
0.08552379906177521,
-0.16663560271263123,
-0.027378512546420097,
-0.308984637260437,
0.1099020466208458,
0.4170796275138855,
-0.04497738182544708,
0.3132897913455963,
-0.3835386037826538,
-0.20388861000537872,
0.15329435467720032,
0.22946985065937042,
0.025889776647090912,
-0.008694211021065712,
0.20633237063884735,
0.18028372526168823,
-0.04086015000939369,
0.17699432373046875,
-0.21840187907218933,
0.04690305143594742,
0.24252372980117798,
0.035086385905742645,
-0.4385054111480713,
0.2666947841644287,
-0.168080672621727,
-0.2994442284107208,
-0.034849993884563446,
-0.006850935518741608,
-0.3265663683414459,
0.05943351611495018,
0.01748424768447876,
0.11560972034931183,
-0.16777510941028595,
0.062489256262779236,
0.14335618913173676,
-0.18070010840892792,
0.1883617639541626,
-0.13558296859264374,
-0.07921160757541656,
-0.36737242341041565,
0.6100727319717407,
-0.027115631848573685,
0.12197054922580719,
0.03597188740968704,
0.18241563439369202,
-0.22115188837051392,
-0.032775282859802246,
0.05572374165058136,
-0.2274886518716812,
-0.22820031642913818,
0.046222712844610214,
-0.4437785744667053,
0.5323404669761658,
-0.019982917234301567,
-0.1815720796585083,
0.20954737067222595,
-0.11261559277772903,
-0.25133225321769714,
-0.3224591612815857,
0.12235168367624283,
0.04857964813709259,
-0.19334672391414642,
0.19420023262500763,
-0.16776719689369202,
0.04815947264432907,
-0.03885293006896973,
0.10719700902700424,
-0.185918390750885,
0.27118539810180664,
0.12227434664964676,
0.11084944009780884,
0.014998190104961395,
-0.02637563645839691,
-0.14681927859783173,
-0.3199504613876343,
0.05221480131149292,
0.27722617983818054,
0.030376123264431953,
-0.08302978426218033,
-0.06787559390068054,
0.10564076155424118,
0.14796540141105652,
0.08360601216554642,
0.044939637184143066,
0.04774312674999237,
-0.2826639413833618,
-0.29776135087013245,
-0.02897784858942032,
0.13773834705352783,
0.01760639250278473,
-0.05677540972828865,
0.6907816529273987,
-0.06533389538526535,
-0.2746846079826355,
0.04912188649177551,
-0.10106836259365082,
0.1168263778090477,
-0.1417606621980667,
0.2664100229740143,
-0.21287085115909576,
0.21476566791534424,
-0.12126412987709045,
0.07485431432723999,
-0.11667364835739136,
-0.08590584993362427,
0.625700831413269,
-0.18306191265583038,
-0.1804988980293274,
-0.004128164611756802,
0.8668146133422852,
0.29976120591163635,
-0.17579041421413422,
-0.264225572347641,
0.10361342877149582,
0.15975618362426758,
-0.13849590718746185,
-0.1884375512599945,
0.5235982537269592,
0.543386697769165,
-0.1408422291278839,
0.050872474908828735,
0.12162022292613983,
-0.21055246889591217,
-0.26274019479751587,
0.13681694865226746,
0.46391695737838745,
-0.27049559354782104,
0.41592076420783997,
0.2535535395145416,
-0.002205643802881241,
0.259190171957016,
0.3427863121032715,
-0.013369560241699219,
-0.023993246257305145,
0.6454049348831177,
0.30170688033103943,
0.4874705970287323,
0.01251840591430664,
-0.16904203593730927,
0.13084787130355835,
-0.38933447003364563,
0.10119093954563141,
0.3202488422393799,
0.08704748004674911,
0.029976606369018555,
0.18755218386650085,
0.1337672770023346,
0.045851368457078934,
-0.3247968852519989,
-0.45956674218177795,
0.1074296236038208,
-0.11694585531949997,
0.1356857270002365,
0.1504625678062439,
-0.08086210489273071,
-0.059902843087911606,
-0.03976045921444893,
0.08932116627693176,
0.04105763882398605,
0.5147030353546143,
-0.13687437772750854,
0.2851915955543518,
-0.2681635320186615,
0.17491737008094788,
-0.24800431728363037,
0.30779868364334106,
-0.25498077273368835,
0.07086512446403503,
-0.005424268543720245,
0.013487633317708969,
0.1744239330291748,
0.003407461568713188,
0.31992852687835693,
0.17435625195503235,
0.09027750790119171,
-0.001493227668106556,
0.03792337328195572,
-0.02778700180351734,
0.0926663875579834,
0.7825056314468384,
-0.2831547260284424,
-0.06756831705570221,
0.27137890458106995,
0.1413852572441101,
-0.08416713029146194,
0.20662471652030945,
0.3946440517902374,
0.12387441098690033,
-0.609977662563324,
0.3317112326622009,
-0.34526386857032776,
-0.22506621479988098,
0.1367637813091278,
-0.22374778985977173,
-0.15148788690567017,
-0.31018826365470886,
0.3965362012386322,
-0.11727495491504669,
0.10163277387619019,
-0.0687100887298584,
0.045894935727119446,
-0.017950039356946945,
0.09928344190120697,
0.34717994928359985,
-0.04785227030515671,
-0.14461570978164673,
-0.358445942401886,
-0.4479556977748871,
0.19624170660972595,
-0.23404625058174133,
0.2344053089618683,
0.041612789034843445,
0.3870273232460022,
-0.10882557183504105,
-0.015912577509880066,
-0.0664316862821579,
-0.05073832347989082,
-0.6436518430709839,
0.21176399290561676,
-0.09728662669658661,
-0.15875327587127686,
-0.24834538996219635,
-0.33692169189453125,
-0.3270929157733917,
-0.12949815392494202,
0.36479124426841736,
0.04662751406431198,
-0.06439796835184097,
0.2870742082595825,
0.039925046265125275,
0.22063785791397095,
-0.26364317536354065,
-0.07629860937595367,
0.3963982164859772,
0.10629463940858841,
-0.1446390151977539,
-0.12350060045719147,
-0.33863866329193115,
-0.2532748878002167,
-0.08045046031475067,
0.7187924385070801,
-0.3557449281215668,
0.20894916355609894,
-0.0008778832852840424,
-0.05027348920702934,
-0.12618644535541534,
-0.14550764858722687,
0.21262289583683014,
0.2626602053642273,
-0.27752524614334106,
0.16861632466316223,
0.023730024695396423,
0.05677584186196327,
0.07213088870048523,
0.36012741923332214,
-0.06206916272640228,
0.27138692140579224,
0.35186129808425903,
-0.4078702926635742,
0.19589951634407043,
-0.538981556892395,
-0.137664332985878,
-0.16489407420158386,
0.1328933984041214,
0.3377341628074646,
-0.2897937595844269,
-0.19317752122879028,
-0.26293709874153137,
0.6125978827476501,
-0.061002910137176514,
0.2217872440814972,
0.00038640107959508896,
0.07009324431419373,
-0.15448647737503052,
-0.17767395079135895,
0.02410121262073517,
0.1502097249031067,
-0.387216180562973,
0.46965810656547546,
-0.29952090978622437
] |
https://github.com/huggingface/datasets/issues/4570 | Dataset sharding non-contiguous? | @mariosasko Sorry for reviving this, but I was curious as to why `contiguous=False` was the default. This might be a personal bias, but I feel that a user would expect the opposite to be the default. :thinking: | ## Describe the bug
I'm not sure if this is a bug; more likely normal behavior but i wanted to double check.
Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset?
This might be related to this pull request (https://github.com/huggingface/datasets/pull/4466) but I have to admit I did not properly look into the changes made.
## Steps to reproduce the bug
```python
max_shard_size = convert_file_size_to_int('300MB')
dataset_nbytes = dataset.data.nbytes
num_shards = int(dataset_nbytes / max_shard_size) + 1
num_shards = max(num_shards, 1)
print(f"{num_shards=}")
for shard_index in range(num_shards):
shard = dataset.shard(num_shards=num_shards, index=shard_index)
shard.to_parquet(f"tokenized/tokenized-{shard_index:03d}.parquet")
os.listdir('tokenized/')
```
## Expected results
I expected the shards to match the order of the data of the original dataset; i.e. `dataset[10]` being the same as `shard_1[10]` for example
## Actual results
Only the first element is the same; i.e. `dataset[0]` is the same as `shard_1[0]`
## 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.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 37 | Dataset sharding non-contiguous?
## Describe the bug
I'm not sure if this is a bug; more likely normal behavior but i wanted to double check.
Is it normal that `datasets.shard` does not produce chunks that, when concatenated produce the original ordering of the sharded dataset?
This might be related to this pull request (https://github.com/huggingface/datasets/pull/4466) but I have to admit I did not properly look into the changes made.
## Steps to reproduce the bug
```python
max_shard_size = convert_file_size_to_int('300MB')
dataset_nbytes = dataset.data.nbytes
num_shards = int(dataset_nbytes / max_shard_size) + 1
num_shards = max(num_shards, 1)
print(f"{num_shards=}")
for shard_index in range(num_shards):
shard = dataset.shard(num_shards=num_shards, index=shard_index)
shard.to_parquet(f"tokenized/tokenized-{shard_index:03d}.parquet")
os.listdir('tokenized/')
```
## Expected results
I expected the shards to match the order of the data of the original dataset; i.e. `dataset[10]` being the same as `shard_1[10]` for example
## Actual results
Only the first element is the same; i.e. `dataset[0]` is the same as `shard_1[0]`
## 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.4
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
@mariosasko Sorry for reviving this, but I was curious as to why `contiguous=False` was the default. This might be a personal bias, but I feel that a user would expect the opposite to be the default. :thinking: | [
0.015164632350206375,
-0.28071820735931396,
0.009299837052822113,
0.1995406448841095,
0.06202252581715584,
-0.04880893975496292,
0.4298073351383209,
0.01510808989405632,
-0.5076970458030701,
-0.009925439953804016,
0.02195538952946663,
-0.09410683065652847,
0.3282988965511322,
-0.13154342770576477,
-0.11967460811138153,
-0.04165205359458923,
0.21213753521442413,
-0.06908896565437317,
0.010919108986854553,
-0.28290385007858276,
-0.21790029108524323,
0.31338077783584595,
-0.3155131936073303,
-0.19425608217716217,
-0.40846070647239685,
0.22476918995380402,
-0.4645679295063019,
0.14462676644325256,
-0.021274523809552193,
-0.051088929176330566,
0.3151451349258423,
0.05094563588500023,
-0.22378231585025787,
0.20574551820755005,
-0.00012202028301544487,
-0.15101024508476257,
0.2881537079811096,
-0.02881621941924095,
-0.06521879881620407,
-0.030069544911384583,
-0.36444512009620667,
-0.2670762538909912,
-0.20712460577487946,
-0.09838283061981201,
-0.06335842609405518,
0.06895364075899124,
-0.1790079027414322,
-0.062034301459789276,
0.10272868722677231,
0.01403259951621294,
0.0849827229976654,
-0.09261921048164368,
0.10829398036003113,
-0.08636841922998428,
0.1326604038476944,
0.12749098241329193,
-0.009482797235250473,
-0.11118707060813904,
-0.09553895890712738,
0.24726176261901855,
0.05988248810172081,
-0.2818974256515503,
-0.0523562878370285,
0.16805380582809448,
-0.03644387423992157,
0.2847978472709656,
-0.2576151490211487,
-0.18228988349437714,
0.15058307349681854,
0.35142016410827637,
0.21565628051757812,
-0.13992244005203247,
-0.24453681707382202,
-0.3970791697502136,
-0.09382900595664978,
-0.4477302134037018,
0.22172942757606506,
0.4876346290111542,
0.15162315964698792,
0.11345851421356201,
-0.21288810670375824,
0.14494171738624573,
0.049571700394153595,
0.0174226313829422,
-0.16673733294010162,
0.07277263700962067,
0.08958660811185837,
0.000840112566947937,
-0.26413148641586304,
-0.04766499996185303,
-0.31930768489837646,
-0.5029192566871643,
-0.3001251816749573,
-0.020994696766138077,
-0.43971341848373413,
-0.02861103229224682,
-0.10210444778203964,
0.3302622139453888,
0.3909742534160614,
0.19569969177246094,
-0.2821883261203766,
-0.04755903780460358,
0.1844315528869629,
-0.1941451132297516,
0.17387649416923523,
-0.07842718064785004,
0.011630259454250336,
0.2709023654460907,
-0.23489899933338165,
0.19157332181930542,
-0.04672077298164368,
0.08564269542694092,
0.3092508614063263,
-0.24004709720611572,
-0.05115748941898346,
-0.028033606708049774,
0.1429670751094818,
-0.00997164100408554,
-0.006927091628313065,
0.22090022265911102,
0.01701415330171585,
0.04924101009964943,
-0.2192809283733368,
-0.07580939680337906,
0.05418509989976883,
-0.3682520091533661,
-0.2878493368625641,
0.1190449595451355,
-0.09775806218385696,
-0.16606371104717255,
-0.16949382424354553,
-0.23952697217464447,
-0.22765415906906128,
-0.0747392475605011,
-0.15795554220676422,
-0.05198531970381737,
-0.20074312388896942,
0.34809669852256775,
0.33203160762786865,
0.22208744287490845,
-0.23645946383476257,
-0.01774868741631508,
0.4552485942840576,
0.19112645089626312,
-0.09418788552284241,
0.24251951277256012,
-0.08723752200603485,
-0.25383883714675903,
-0.08495400100946426,
0.09881393611431122,
-0.3204123377799988,
-0.18519939482212067,
-0.18341580033302307,
0.07422889024019241,
-0.318556010723114,
0.18759240210056305,
-0.10885605961084366,
0.09631948173046112,
0.49351030588150024,
-0.08490999788045883,
0.09970466047525406,
-0.2232317179441452,
-0.4555250108242035,
-0.302387535572052,
0.3079882264137268,
0.2552340030670166,
-0.47390684485435486,
0.04639154672622681,
-0.2696002125740051,
0.08353984355926514,
0.20124825835227966,
0.5907151103019714,
0.3181355893611908,
-0.30729109048843384,
-0.5309746861457825,
0.5634418725967407,
-0.12383916229009628,
0.2102910876274109,
-0.5480457544326782,
0.11623244732618332,
-0.28690969944000244,
0.4380840063095093,
-0.024883374571800232,
-0.17573724687099457,
0.4947523772716522,
0.07830050587654114,
0.16636034846305847,
0.25790345668792725,
0.09470247477293015,
-0.18120545148849487,
-0.4414232671260834,
0.05285836011171341,
0.15474694967269897,
-0.24090105295181274,
0.0038025975227355957,
0.10110664367675781,
0.16037416458129883,
-0.39109426736831665,
0.2923184633255005,
0.06838051229715347,
0.3150360584259033,
0.16620029509067535,
0.44523075222969055,
0.0059218257665634155,
0.4013221561908722,
-0.13366848230361938,
-0.2929139733314514,
0.2729225754737854,
0.1816733479499817,
-0.0013954304158687592,
-0.131691113114357,
-0.2514575719833374,
0.28867393732070923,
-0.2378895878791809,
-0.09568615257740021,
-0.043994154781103134,
0.0531393364071846,
-0.018360234797000885,
0.1555097997188568,
0.03721526637673378,
-0.024719078093767166,
0.294675350189209,
-0.15135034918785095,
0.23571741580963135,
-0.49259597063064575,
0.6400389671325684,
0.10764283686876297,
-0.10449902713298798,
-0.21469049155712128,
0.23545777797698975,
0.15859854221343994,
-0.14196279644966125,
0.1956866979598999,
0.39810091257095337,
0.09531229734420776,
0.10074392706155777,
-0.08777797967195511,
0.11918352544307709,
0.14577347040176392,
0.2044728696346283,
-0.13857974112033844,
-0.19950948655605316,
-0.2326483279466629,
-0.18461322784423828,
0.050550080835819244,
0.4804454445838928,
-0.17722512781620026,
0.3520814776420593,
-0.07100220024585724,
0.07858289033174515,
0.35108286142349243,
-0.15621694922447205,
-0.2863864600658417,
-0.22925356030464172,
0.417659729719162,
0.2708054780960083,
-0.22979971766471863,
0.2588732838630676,
-0.2790127992630005,
0.4005967974662781,
0.5050661563873291,
-0.2032121866941452,
-0.13985580205917358,
0.26019996404647827,
0.08850102126598358,
-0.04698669910430908,
0.20060789585113525,
0.6027485132217407,
0.4303619861602783,
0.13183137774467468,
0.2710878551006317,
0.0863611251115799,
-0.1290772706270218,
-0.26983842253685,
-0.026662148535251617,
0.24908660352230072,
-0.3131336569786072,
0.4862334728240967,
0.22164158523082733,
0.12834709882736206,
-0.23541060090065002,
0.07278242707252502,
-0.027520572766661644,
-0.1118251383304596,
-0.3035707175731659,
0.030527157709002495,
-0.5505701899528503,
0.07071754336357117,
-0.17784886062145233,
-0.06746021658182144,
-0.5950544476509094,
-0.29371485114097595,
-0.006874632090330124,
-0.004669178277254105,
0.06624557077884674,
0.18965499103069305,
0.4634445011615753,
0.324673593044281,
0.028922105208039284,
-0.015404021367430687,
-0.25814560055732727,
-0.03315167501568794,
-0.058789774775505066,
0.06787629425525665,
-0.03524678200483322,
0.23222193121910095,
0.05644996464252472,
-0.3301966190338135,
-0.17279481887817383,
-0.3883935213088989,
-0.20691260695457458,
-0.05438520014286041,
-0.2535436153411865,
0.39631739258766174,
0.21264830231666565,
-0.11078695952892303,
-0.29348695278167725,
0.20554116368293762,
0.2577211856842041,
0.20029838383197784,
-0.24522700905799866,
0.34716761112213135,
0.05750548094511032,
-0.1712804138660431,
-0.10073749721050262,
0.20375415682792664,
-0.13085125386714935,
-0.04500221088528633,
0.4386618733406067,
0.2573238015174866,
0.034063562750816345,
-0.23732596635818481,
-0.14149793982505798,
-0.39840051531791687,
-0.2173980176448822,
-0.07451163977384567,
-0.3992578089237213,
-0.46815770864486694,
0.3798413574695587,
-0.19124814867973328,
-0.37606191635131836,
-0.06741251796483994,
-0.274563729763031,
0.12315776944160461,
0.44705522060394287,
-0.26436978578567505,
0.24683620035648346,
-0.1922038197517395,
0.08893236517906189,
0.1528204083442688,
-0.04091683775186539,
0.18087103962898254,
-0.2477489411830902,
0.12686830759048462,
-0.09747384488582611,
0.001508692279458046,
0.09376098215579987,
0.3058529496192932,
0.21357931196689606,
0.05039504915475845,
0.4318670928478241,
0.3770938515663147,
0.756911039352417,
0.479982852935791,
-0.08226807415485382,
-0.05797167122364044,
-0.21420954167842865,
0.2663235068321228,
-0.16861432790756226,
-0.23467805981636047,
0.13311505317687988,
-0.0010593980550765991,
-0.1887989342212677,
0.10456816852092743,
0.14351585507392883,
0.40310728549957275,
0.3369120955467224,
0.08940501511096954,
-0.21644511818885803,
-0.21649068593978882,
-0.1434747874736786,
-0.05675642937421799,
0.07474233210086823,
0.25140273571014404,
-0.16484695672988892,
0.2502135932445526,
-0.3188435137271881,
-0.2607952058315277,
0.466286838054657,
0.23321065306663513,
-0.05887099727988243,
-0.10885503888130188,
0.18874084949493408,
-0.294048547744751,
0.23608791828155518,
0.10418588668107986,
0.18494975566864014,
0.04692814126610756,
-0.05141596496105194,
0.13121339678764343,
0.17490656673908234,
0.818701446056366,
-0.22599579393863678,
-0.07674013078212738,
0.19304777681827545,
-0.11414742469787598,
-0.23924888670444489,
-0.2008763998746872,
0.08852723240852356,
0.03723770007491112,
0.30896565318107605,
0.30915337800979614,
-0.3515801429748535,
0.25194641947746277,
0.02607441321015358,
0.26611533761024475,
-0.09442465007305145,
-0.26110756397247314,
-0.33277076482772827,
0.2134467363357544,
-0.11285004019737244,
0.031859155744314194,
-0.06924837827682495,
0.12594856321811676,
-0.31432729959487915,
-0.26389631628990173,
-0.016260555014014244,
-0.20709389448165894,
-0.026467397809028625,
-0.37023574113845825,
0.3052705228328705,
-0.20313403010368347,
0.4209430515766144,
0.012251686304807663,
0.05127386376261711,
0.35066139698028564,
0.3413887321949005,
0.21102374792099,
-0.08519476652145386,
-0.2493080496788025,
-0.26396873593330383,
0.1402731090784073,
0.06028377264738083,
-0.1658937931060791,
0.15871375799179077,
-0.1688515543937683,
0.15483994781970978,
-0.25244733691215515,
-0.3529907763004303,
0.34668827056884766,
0.05268557742238045,
-0.3487051725387573,
0.08317876607179642,
0.2352306842803955,
-0.023364916443824768,
0.010222665965557098,
0.470522403717041,
0.3328622281551361,
-0.29459819197654724,
0.1584828794002533,
0.14703217148780823,
0.7579441666603088,
0.07556264847517014,
0.18721050024032593,
0.03984140232205391,
-0.02318321354687214,
0.37690269947052,
-0.00988059863448143,
0.25604498386383057,
-0.34844154119491577,
-0.3285721242427826,
-0.17959249019622803,
-0.26530957221984863,
0.12341044843196869,
0.19087135791778564,
-0.059562813490629196,
0.22121784090995789,
-0.08913978934288025,
0.2730585038661957,
-0.16754277050495148,
-0.15975503623485565,
0.0018280856311321259,
0.018051989376544952,
0.20568102598190308,
0.002368483692407608,
0.1895311325788498,
-0.03395489975810051,
-0.14035627245903015,
0.1070704236626625,
-0.16657891869544983,
-0.08925820887088776,
-0.2616192102432251,
0.07880108803510666,
0.40459516644477844,
-0.012414570897817612,
0.30477166175842285,
-0.32039880752563477,
-0.2518845498561859,
0.11251390725374222,
0.1997135877609253,
0.017871364951133728,
-0.010982932522892952,
0.16335564851760864,
0.23165345191955566,
0.006896360777318478,
0.18822979927062988,
-0.2107188105583191,
0.025248557329177856,
0.2529416084289551,
0.04706520587205887,
-0.42647913098335266,
0.20659156143665314,
-0.162995845079422,
-0.3067694902420044,
-0.0810234546661377,
-0.033322252333164215,
-0.3020551800727844,
0.05585431680083275,
0.015374250710010529,
0.042500074952840805,
-0.14981237053871155,
0.04083173722028732,
0.12697850167751312,
-0.16898688673973083,
0.17952340841293335,
-0.19538401067256927,
-0.12831775844097137,
-0.35396432876586914,
0.6278712749481201,
-0.026229973882436752,
0.13223104178905487,
-0.029006585478782654,
0.12769249081611633,
-0.24763011932373047,
-0.026748307049274445,
-0.01547086238861084,
-0.20520848035812378,
-0.2865464389324188,
0.045104701071977615,
-0.46626564860343933,
0.5013382434844971,
-0.06997410953044891,
-0.13206778466701508,
0.18306438624858856,
-0.07161559909582138,
-0.23701339960098267,
-0.30980169773101807,
0.09383979439735413,
0.05554024875164032,
-0.17886771261692047,
0.282461553812027,
-0.09538721293210983,
-0.010775662958621979,
0.02695390023291111,
0.08868885040283203,
-0.166410893201828,
0.22780758142471313,
0.12676982581615448,
0.09496946632862091,
-0.028386887162923813,
-0.003876015543937683,
-0.12898597121238708,
-0.2992405891418457,
0.023358723148703575,
0.28150445222854614,
0.011952368542551994,
-0.07370240241289139,
-0.02917308732867241,
0.12310019135475159,
0.164287269115448,
0.032983288168907166,
0.05054795742034912,
0.016854044049978256,
-0.24561545252799988,
-0.33182060718536377,
-0.009809637442231178,
0.1264924705028534,
-0.026729732751846313,
-0.019572032615542412,
0.6701514720916748,
-0.07788508385419846,
-0.36370331048965454,
0.046888455748558044,
-0.06695540249347687,
0.032689109444618225,
-0.17154785990715027,
0.25346502661705017,
-0.27527037262916565,
0.17546796798706055,
-0.1516459733247757,
0.08750969171524048,
-0.1280079334974289,
-0.06837102770805359,
0.5680758953094482,
-0.17551270127296448,
-0.14479541778564453,
-0.06562899798154831,
0.9502341747283936,
0.2343500554561615,
-0.18632063269615173,
-0.26779332756996155,
0.03759799897670746,
0.13283340632915497,
-0.18055835366249084,
-0.24255236983299255,
0.5396303534507751,
0.6187532544136047,
-0.06950460374355316,
0.06742368638515472,
0.13418827950954437,
-0.24389702081680298,
-0.21422331035137177,
0.14840450882911682,
0.40762537717819214,
-0.2668163776397705,
0.36924055218696594,
0.291358083486557,
-0.016723480075597763,
0.3276241719722748,
0.33414724469184875,
-0.0065045543015003204,
-0.016525141894817352,
0.6368399262428284,
0.2625001072883606,
0.48142045736312866,
0.04362839087843895,
-0.18252108991146088,
0.064667709171772,
-0.356342077255249,
0.19602729380130768,
0.31877484917640686,
0.08543363958597183,
0.016029659658670425,
0.22063764929771423,
0.07895617187023163,
0.04959205538034439,
-0.3005397915840149,
-0.45615634322166443,
0.08760183304548264,
-0.16915062069892883,
0.177237406373024,
0.15531590580940247,
-0.06596159934997559,
-0.06002652645111084,
-0.049611855298280716,
0.07683149725198746,
0.061451300978660583,
0.6083246469497681,
-0.15050815045833588,
0.2776910662651062,
-0.22698810696601868,
0.27210739254951477,
-0.2747856676578522,
0.2736097276210785,
-0.22568660974502563,
0.0767010748386383,
0.03202846646308899,
0.03769705817103386,
0.19767847657203674,
0.0523601695895195,
0.3470109701156616,
0.16499446332454681,
0.12897339463233948,
0.013380426913499832,
0.06269638240337372,
-0.0374654084444046,
0.09079700708389282,
0.8145250678062439,
-0.26817283034324646,
-0.09107503294944763,
0.26486581563949585,
0.1277501881122589,
-0.0771535113453865,
0.32609042525291443,
0.4110163748264313,
0.1403898149728775,
-0.6345846652984619,
0.2847934663295746,
-0.2613660991191864,
-0.22614383697509766,
0.19780084490776062,
-0.20869305729866028,
-0.15343603491783142,
-0.2596420645713806,
0.35201242566108704,
-0.137782484292984,
0.10434041172266006,
-0.10807659476995468,
0.04247382655739784,
-0.025791045278310776,
0.07044253498315811,
0.32707124948501587,
-0.05456893891096115,
-0.1938338726758957,
-0.31207162141799927,
-0.5148969888687134,
0.1832074522972107,
-0.2510851323604584,
0.2565508186817169,
0.08202264457941055,
0.3719262480735779,
-0.13440537452697754,
0.01675012893974781,
0.013096369802951813,
-0.09475253522396088,
-0.6445955038070679,
0.1695760190486908,
-0.06295396387577057,
-0.12323373556137085,
-0.19996289908885956,
-0.3908807039260864,
-0.34051287174224854,
-0.18328171968460083,
0.3746398389339447,
0.010443893261253834,
-0.08330049365758896,
0.2949869632720947,
0.03805585205554962,
0.2558080554008484,
-0.251077800989151,
-0.11973083019256592,
0.38970720767974854,
0.13755525648593903,
-0.17542767524719238,
-0.05039994418621063,
-0.3334765136241913,
-0.15166664123535156,
-0.10071668028831482,
0.6934076547622681,
-0.32181116938591003,
0.1972680240869522,
-0.02985439822077751,
-0.029079724103212357,
-0.10692161321640015,
-0.16773180663585663,
0.22515691816806793,
0.3227041959762573,
-0.28180739283561707,
0.20363102853298187,
0.02138599008321762,
0.08786534518003464,
0.07639990746974945,
0.312874972820282,
-0.021578028798103333,
0.2743118405342102,
0.2867245674133301,
-0.4194374978542328,
0.20027132332324982,
-0.5367035865783691,
-0.05776479095220566,
-0.22038547694683075,
0.11539504677057266,
0.38043445348739624,
-0.3358718454837799,
-0.22202253341674805,
-0.23520535230636597,
0.5983309149742126,
-0.036216847598552704,
0.19273462891578674,
0.031162748113274574,
0.06723897159099579,
-0.11508636921644211,
-0.166709765791893,
0.07192210108041763,
0.16301730275154114,
-0.38061758875846863,
0.5458641052246094,
-0.3152223229408264
] |
https://github.com/huggingface/datasets/issues/4569 | Dataset Viewer issue for sst2 | Hi @lewtun, thanks for reporting.
I have checked locally and refreshed the preview and it seems working smooth now:
```python
In [8]: ds
Out[8]:
DatasetDict({
train: Dataset({
features: ['idx', 'sentence', 'label'],
num_rows: 67349
})
validation: Dataset({
features: ['idx', 'sentence', 'label'],
num_rows: 872
})
test: Dataset({
features: ['idx', 'sentence', 'label'],
num_rows: 1821
})
})
```
Could you confirm? | ### Link
https://huggingface.co/datasets/sst2
### Description
Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem):
```
Status code: 400
Exception: Exception
Message: Give up after 5 attempts with ConnectionError
```
### Owner
No | 57 | Dataset Viewer issue for sst2
### Link
https://huggingface.co/datasets/sst2
### Description
Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem):
```
Status code: 400
Exception: Exception
Message: Give up after 5 attempts with ConnectionError
```
### Owner
No
Hi @lewtun, thanks for reporting.
I have checked locally and refreshed the preview and it seems working smooth now:
```python
In [8]: ds
Out[8]:
DatasetDict({
train: Dataset({
features: ['idx', 'sentence', 'label'],
num_rows: 67349
})
validation: Dataset({
features: ['idx', 'sentence', 'label'],
num_rows: 872
})
test: Dataset({
features: ['idx', 'sentence', 'label'],
num_rows: 1821
})
})
```
Could you confirm? | [
-0.33056482672691345,
0.08098076283931732,
-0.036532819271087646,
0.4152414798736572,
0.323622465133667,
0.05482601374387741,
0.2566252052783966,
0.2366028130054474,
0.158323273062706,
-0.027765780687332153,
-0.06476853042840958,
0.14777663350105286,
0.08745720982551575,
0.2538834512233734,
-0.2032957673072815,
-0.2057400643825531,
0.09255217015743256,
0.09143175929784775,
-0.33342015743255615,
0.27071064710617065,
0.08151020109653473,
0.18042129278182983,
-0.19002479314804077,
-0.10731548070907593,
-0.2328418493270874,
0.25030437111854553,
0.15787211060523987,
-0.12569108605384827,
-0.15488778054714203,
-0.5109164118766785,
0.1900566667318344,
0.3440871238708496,
0.2994285523891449,
0.7540045380592346,
-0.00011413452739361674,
0.18978331983089447,
0.2959960103034973,
0.1317809373140335,
-0.3662998676300049,
-0.1658584624528885,
0.09988846629858017,
-0.16140460968017578,
0.41494303941726685,
0.055402614176273346,
-0.3730381429195404,
0.048256609588861465,
0.06637900322675705,
-0.17640841007232666,
0.5259902477264404,
-0.015008929185569286,
0.18671230971813202,
0.26072096824645996,
0.21055178344249725,
-0.2971135377883911,
-0.20635399222373962,
-0.12343437969684601,
-0.15064272284507751,
0.16131789982318878,
-0.030028365552425385,
0.0438695102930069,
-0.07605018466711044,
0.1373136341571808,
0.19128161668777466,
0.025867488235235214,
0.15678247809410095,
-0.15603172779083252,
0.12706518173217773,
-0.3240167796611786,
0.2816734313964844,
0.2613465487957001,
0.9496740698814392,
0.009622480720281601,
-0.10045697540044785,
-0.11094073951244354,
0.13241693377494812,
0.25126078724861145,
0.33523979783058167,
-0.05107589066028595,
-0.24879087507724762,
0.30548712611198425,
-0.16978445649147034,
-0.19374346733093262,
-0.4232144355773926,
-0.06417737901210785,
-0.3119716942310333,
-0.08137673139572144,
-0.07331764698028564,
0.16704314947128296,
0.3372862935066223,
-0.17469874024391174,
0.0829370766878128,
-0.0006947778165340424,
-0.19819825887680054,
-0.11878541111946106,
-0.6081193685531616,
0.2346164882183075,
0.024029728025197983,
-0.21834489703178406,
-0.27462297677993774,
0.07185159623622894,
0.0435335673391819,
0.0747293159365654,
0.11996789276599884,
-0.004441861063241959,
0.4300090968608856,
-0.08562453091144562,
-0.016888022422790527,
0.1309037059545517,
0.366774320602417,
0.10748039186000824,
0.041146498173475266,
-0.04464311897754669,
-0.33011242747306824,
-0.4209485352039337,
-0.042628318071365356,
-0.3715873062610626,
0.38792091608047485,
-0.25799864530563354,
-0.20077066123485565,
0.47957906126976013,
-0.2064574956893921,
0.0676230937242508,
0.18913957476615906,
0.4992722272872925,
-0.26323631405830383,
0.27449753880500793,
0.22454281151294708,
-0.18880745768547058,
-0.1546556055545807,
-0.19827689230442047,
-0.11423885822296143,
-0.29234158992767334,
-0.017761342227458954,
-0.10845045000314713,
0.24115879833698273,
-0.1608240008354187,
0.08512713760137558,
-0.0670403242111206,
0.0664593055844307,
-0.019096801057457924,
-0.11419039219617844,
-0.2759401202201843,
-0.047838203608989716,
0.4425893723964691,
0.17217010259628296,
0.17384935915470123,
-0.07465749979019165,
-0.2925141453742981,
0.25183430314064026,
0.11819596588611603,
0.05041118711233139,
-0.07644442468881607,
-0.2994650900363922,
0.1524180769920349,
-0.21215589344501495,
-0.06250305473804474,
-0.12211111932992935,
0.013844197615981102,
-0.013580307364463806,
-0.14398175477981567,
-0.11434639245271683,
-0.29971063137054443,
-0.08282549679279327,
0.033978305757045746,
0.3751705288887024,
0.4302353858947754,
-0.578748345375061,
0.004594191908836365,
-0.012406453490257263,
-0.23895898461341858,
-0.16898462176322937,
0.3490212559700012,
-0.1810360550880432,
0.03594651073217392,
-0.3145325481891632,
0.08291247487068176,
0.35422036051750183,
-0.09545931220054626,
-0.42032590508461,
0.5054325461387634,
-0.20659346878528595,
0.21161580085754395,
0.22632145881652832,
0.09916544705629349,
0.28314533829689026,
-0.10751593858003616,
-0.1488913744688034,
-0.14109165966510773,
0.022382427006959915,
-0.04134383052587509,
-0.11469843983650208,
0.005320899188518524,
0.3179682493209839,
0.4020487666130066,
0.04407528415322304,
-0.3064177334308624,
-0.19350117444992065,
0.07243658602237701,
0.382222443819046,
0.11689841747283936,
-0.02604198269546032,
0.17323017120361328,
0.3199074864387512,
0.36359256505966187,
-0.018869414925575256,
0.055958956480026245,
-0.3511773943901062,
0.19025397300720215,
0.46724605560302734,
0.024980556219816208,
-0.07580539584159851,
0.0224507674574852,
-0.2362084686756134,
0.028233950957655907,
-0.3261265158653259,
-0.085039421916008,
0.08900152891874313,
0.017493702471256256,
-0.2001989185810089,
0.21541550755500793,
0.03900210186839104,
0.13031598925590515,
-0.10424266010522842,
0.22098781168460846,
-0.0698051005601883,
0.3192523717880249,
0.04688595235347748,
-0.19405055046081543,
0.02889852225780487,
-0.12271539121866226,
-0.08984845131635666,
-0.20310407876968384,
-0.20770525932312012,
0.40621837973594666,
0.06900210678577423,
0.254813551902771,
-0.14876624941825867,
0.08245164155960083,
0.06873881816864014,
-0.3459107577800751,
-0.13818058371543884,
0.23612068593502045,
0.04304952919483185,
-0.08060195297002792,
-0.31216228008270264,
-0.11039850115776062,
-0.043872375041246414,
0.22663083672523499,
-0.019555408507585526,
0.07879269123077393,
0.20248235762119293,
0.0958767831325531,
-0.24293798208236694,
0.1442735344171524,
0.29146090149879456,
-0.2554517090320587,
0.179062157869339,
0.062366873025894165,
-0.3471006751060486,
0.2884470224380493,
0.11675602197647095,
-0.04487612843513489,
-0.14658376574516296,
0.15374401211738586,
0.0024352744221687317,
-0.06019219011068344,
0.03700330853462219,
0.11510808765888214,
0.18389204144477844,
0.09130392968654633,
0.09147410094738007,
0.058507271111011505,
-0.017498355358839035,
-0.2430584728717804,
0.08789321035146713,
0.04509211704134941,
0.05305895581841469,
0.25863638520240784,
0.030809666961431503,
-0.1312578022480011,
-0.06791435182094574,
0.11984892189502716,
0.05383346974849701,
0.25197046995162964,
-0.3714814782142639,
0.03711124509572983,
-0.07274167239665985,
-0.2969422936439514,
0.057995397597551346,
0.2939879894256592,
-0.19182607531547546,
-0.17758290469646454,
-0.22926275432109833,
0.5640798807144165,
0.06007876619696617,
0.18079721927642822,
-0.2494848668575287,
0.15813691914081573,
0.382754385471344,
0.04467175155878067,
0.008478887379169464,
-0.16604556143283844,
-0.10790709406137466,
0.06413014233112335,
0.46536991000175476,
-0.007264073006808758,
0.2226238250732422,
0.03651582449674606,
-0.14835554361343384,
-0.35161009430885315,
-0.2594418227672577,
0.01730922982096672,
-0.21120940148830414,
0.3422492444515228,
0.2609357237815857,
0.48365575075149536,
-0.07627622783184052,
0.07125821709632874,
0.165578231215477,
-0.03267032280564308,
0.03833239525556564,
0.10743696987628937,
0.08974388241767883,
-0.19188661873340607,
0.024345826357603073,
-0.2816312313079834,
-0.11379484087228775,
-0.46165740489959717,
0.40071970224380493,
-0.2291525900363922,
-0.19530077278614044,
-0.11080849170684814,
0.20636114478111267,
0.029134754091501236,
0.1708512157201767,
0.08797065913677216,
-0.1633564978837967,
-0.4243643283843994,
0.27520260214805603,
-0.15661267936229706,
-0.4647385776042938,
0.21481221914291382,
0.4153299927711487,
0.11475276947021484,
-0.3824650049209595,
-0.81805419921875,
0.007595180533826351,
-0.2653529942035675,
0.3220584988594055,
-0.11782272160053253,
-0.34110867977142334,
0.2725794315338135,
0.027921799570322037,
-0.000773923471570015,
-0.060756828635931015,
-0.15166470408439636,
0.4417705237865448,
-0.044221192598342896,
0.044576436281204224,
-0.2209346890449524,
0.4896836280822754,
0.1335962563753128,
0.33273595571517944,
0.3259897828102112,
0.06118879094719887,
0.015711884945631027,
0.027110686525702477,
0.2950671315193176,
-0.14737805724143982,
-0.2693057358264923,
0.15517018735408783,
-0.11037728190422058,
-0.10413987189531326,
0.37583744525909424,
0.020365025848150253,
-0.06802868098020554,
-0.3663922846317291,
-0.041185539215803146,
-0.1742745041847229,
-0.3354299068450928,
-0.06017898768186569,
-0.20521068572998047,
0.1719306856393814,
-0.07217814028263092,
0.16391927003860474,
0.05952875688672066,
-0.14214712381362915,
0.02949780970811844,
0.2537328600883484,
0.32334375381469727,
-0.22922104597091675,
-0.5110579133033752,
0.2034761756658554,
-0.385505348443985,
0.11920610070228577,
-0.07051131129264832,
0.48038819432258606,
-0.32932379841804504,
-0.1993086040019989,
0.1980535387992859,
-0.2655137777328491,
0.8081687688827515,
0.21714262664318085,
0.21837404370307922,
0.0767786055803299,
-0.10216459631919861,
-0.47956016659736633,
-0.1555500030517578,
0.12258005142211914,
0.15958665311336517,
0.20162418484687805,
-0.014628596603870392,
-0.30596569180488586,
-0.41745027899742126,
0.324735164642334,
-0.0995558425784111,
-0.23655375838279724,
-0.29853853583335876,
-0.1316339373588562,
0.05267978459596634,
0.21329356729984283,
-0.20299988985061646,
-0.09351031482219696,
0.043555498123168945,
-0.2928290367126465,
0.02642269805073738,
-0.10399550199508667,
-0.3804744482040405,
0.07774388790130615,
0.2535465657711029,
0.003899598028510809,
0.035086099058389664,
0.6250251531600952,
0.4857226312160492,
0.08053985238075256,
0.31438183784484863,
0.497545063495636,
-0.04497065022587776,
-0.6152603030204773,
0.2975514233112335,
-0.042171284556388855,
0.04498377442359924,
0.3145490884780884,
-0.09967688471078873,
0.09934188425540924,
-0.10960657894611359,
0.3550835847854614,
-0.38530129194259644,
0.20657259225845337,
0.6093875765800476,
0.1722251921892166,
-0.4150499701499939,
-0.3086129426956177,
0.20559421181678772,
-0.10981957614421844,
-0.06849763542413712,
-0.16066278517246246,
0.030489731580018997,
-0.1392873227596283,
0.002206980250775814,
-0.4297247529029846,
0.6609593629837036,
0.08346894383430481,
0.12755133211612701,
0.331707239151001,
-0.15566489100456238,
0.1596756875514984,
-0.2900952994823456,
-0.06304006278514862,
-0.23576205968856812,
-0.3236408829689026,
-0.03772673010826111,
-0.08919987827539444,
0.3006897568702698,
-0.32415133714675903,
-0.19188685715198517,
0.11464478075504303,
-0.10308392345905304,
0.15184248983860016,
-0.06829323619604111,
0.27127698063850403,
0.02355961501598358,
0.17120438814163208,
-0.17522108554840088,
0.1949860155582428,
-0.14670905470848083,
-0.09606429934501648,
-0.12696436047554016,
-0.23303832113742828,
0.04652034118771553,
-0.019497880712151527,
-0.40831702947616577,
-0.030167702585458755,
-0.07760956138372421,
0.04192604124546051,
0.03079468384385109,
-0.2663118839263916,
0.3137262463569641,
0.32879912853240967,
-0.006211504340171814,
0.20076288282871246,
-0.31711873412132263,
0.4344053864479065,
-0.2129364013671875,
0.025366511195898056,
0.16143891215324402,
0.08602391183376312,
0.08944754302501678,
0.07443094998598099,
-0.17356392741203308,
0.3833906650543213,
0.011957895942032337,
-0.09612175822257996,
0.04975713789463043,
-0.19136925041675568,
0.13958898186683655,
-0.5842272043228149,
0.08625876903533936,
-0.2189871370792389,
-0.12634184956550598,
-0.1929011195898056,
0.12233266234397888,
0.004831224679946899,
-0.19693201780319214,
0.015244752168655396,
0.15545296669006348,
-0.1389463096857071,
-0.06488201022148132,
0.6227648258209229,
-0.43574315309524536,
0.08553218841552734,
0.5412458181381226,
0.49367696046829224,
-0.24389149248600006,
-0.2691972255706787,
0.33133411407470703,
-0.21291851997375488,
-0.4837746024131775,
0.11449624598026276,
0.0837525874376297,
0.08830121159553528,
0.055896397680044174,
0.14118075370788574,
0.11649416387081146,
-0.3451271653175354,
0.0368850938975811,
-0.17267240583896637,
-0.059065960347652435,
-0.08325876295566559,
0.08761164546012878,
0.3364049196243286,
-0.12764900922775269,
0.09727393090724945,
-0.1288379728794098,
-0.04309350997209549,
-0.2948873043060303,
0.09843948483467102,
-0.34922659397125244,
0.10605310648679733,
0.24191667139530182,
-0.2776642143726349,
0.013785463757812977,
-0.3600221574306488,
0.1626763939857483,
0.06823153793811798,
-0.254544734954834,
-0.18570226430892944,
-0.030100122094154358,
0.11345695704221725,
-0.07473374158143997,
-0.11095947027206421,
-0.13881638646125793,
-0.2882377505302429,
-0.05281010642647743,
0.02821977436542511,
0.09390786290168762,
-0.06643445789813995,
-0.026097774505615234,
-0.030802752822637558,
0.25788018107414246,
0.018859069794416428,
0.1890161633491516,
0.44702887535095215,
-0.07182154059410095,
0.4287278652191162,
0.0610014908015728,
0.09193635731935501,
0.004186395555734634,
-0.027942653745412827,
-0.13283318281173706,
0.29675599932670593,
0.15348517894744873,
-0.10175081342458725,
0.44734179973602295,
-0.31599873304367065,
0.14771142601966858,
-0.04130956903100014,
0.5391676425933838,
0.5821709036827087,
-0.23069269955158234,
-0.12202826887369156,
0.33166295289993286,
0.24458269774913788,
-0.13752241432666779,
0.05119119957089424,
0.08094985783100128,
0.06707356125116348,
0.07948663830757141,
-0.029272280633449554,
-0.1439187079668045,
-0.03951913118362427,
-0.10977864265441895,
0.5788065195083618,
0.4938320517539978,
0.24149642884731293,
0.2926768362522125,
0.471381813287735,
-0.21567335724830627,
-0.198020800948143,
-0.000857209786772728,
0.010698417201638222,
-0.09566912800073624,
0.38300418853759766,
-0.20880120992660522,
0.02130218595266342,
0.07981039583683014,
0.4515908360481262,
-0.058047108352184296,
-0.09588208794593811,
-0.06242674961686134,
0.17143023014068604,
-0.5389463305473328,
-0.12268617004156113,
-0.03474539518356323,
0.3298594355583191,
-0.06119965389370918,
-0.35261523723602295,
-0.5138425827026367,
0.4116755425930023,
-0.10871737450361252,
-0.12972606718540192,
0.0634627491235733,
-0.1398313194513321,
-0.14933344721794128,
0.17087508738040924,
-0.06365157663822174,
0.00010481476783752441,
-0.09735411405563354,
0.2925197184085846,
0.03434664383530617,
-0.4633169174194336,
-0.24958747625350952,
-0.0994420126080513,
0.1304522156715393,
-0.17390678822994232,
0.1565096378326416,
0.34388411045074463,
-0.14637088775634766,
0.045515235513448715,
0.4477553069591522,
0.2523270547389984,
0.1370614916086197,
-0.22677645087242126,
0.015361601486802101,
0.0888516902923584,
-0.03754061460494995,
0.12310044467449188,
0.08173689991235733,
-0.08655761182308197,
-0.15536165237426758,
0.2834969460964203,
0.09646620601415634,
-0.1436203420162201,
0.30857014656066895,
-0.17299555242061615,
0.13691379129886627,
-0.7341734766960144,
0.23240917921066284,
-0.16019299626350403,
-0.05823170766234398,
-0.0011217407882213593,
-0.30391061305999756,
-0.4819764792919159,
-0.16910172998905182,
0.31465137004852295,
-0.15708954632282257,
0.09824936091899872,
-0.20013202726840973,
0.0825909897685051,
-0.07007594406604767,
0.7807462215423584,
0.018464479595422745,
0.42010003328323364,
-0.14963148534297943,
-0.3109838664531708,
-0.3938497006893158,
-0.04444717615842819,
-0.03924741968512535,
-0.09448093920946121,
-0.055177681148052216,
0.037320539355278015,
0.11125347763299942,
0.31765514612197876,
0.0885857492685318,
0.11278613656759262,
0.02044706419110298,
0.47751501202583313,
-0.30801528692245483,
0.07018738985061646,
0.1651855856180191,
0.12868137657642365,
-0.23588119447231293,
-0.19275295734405518,
0.2910943329334259,
-0.15347442030906677,
0.10341302305459976,
0.04927222430706024,
0.13465379178524017,
-0.07076583802700043,
-0.11755040287971497,
0.321932852268219,
0.07467345893383026,
0.24718095362186432,
0.258205771446228,
0.01596873439848423,
-0.16638514399528503,
-0.4495750367641449,
0.05567662790417671,
0.07925835996866226,
0.14303065836429596,
0.4097089171409607,
-0.17345336079597473,
-0.01718459278345108,
0.018175797536969185,
-0.22105158865451813,
-0.04762446507811546,
0.2541986405849457,
-0.4323616027832031,
-0.18921492993831635,
-0.029880983754992485,
0.12096438556909561,
-0.01763329654932022,
0.0033988729119300842,
0.009330593049526215,
0.022605517879128456,
-0.21299825608730316,
-0.1992534101009369,
0.5532324314117432,
-0.30688029527664185,
0.008671525865793228,
-0.18455617129802704,
0.0856548324227333,
-0.09280545264482498,
-0.09607797116041183,
-0.37975943088531494,
0.07646235078573227,
0.3378368020057678,
0.017383623868227005,
-0.16731104254722595,
0.43285271525382996,
0.04830818250775337,
0.07302923500537872,
-0.04783695191144943,
0.3341352939605713,
0.040769755840301514,
-0.08359020203351974,
0.005723211914300919,
-0.1554172784090042
] |
https://github.com/huggingface/datasets/issues/4569 | Dataset Viewer issue for sst2 | Thanks @albertvillanova - it is indeed working now (not sure what caused the error in the first place). Closing this :) | ### Link
https://huggingface.co/datasets/sst2
### Description
Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem):
```
Status code: 400
Exception: Exception
Message: Give up after 5 attempts with ConnectionError
```
### Owner
No | 21 | Dataset Viewer issue for sst2
### Link
https://huggingface.co/datasets/sst2
### Description
Not sure what is causing this, however it seems that `load_dataset("sst2")` also hangs (even though it downloads the files without problem):
```
Status code: 400
Exception: Exception
Message: Give up after 5 attempts with ConnectionError
```
### Owner
No
Thanks @albertvillanova - it is indeed working now (not sure what caused the error in the first place). Closing this :) | [
-0.5275052785873413,
0.003740087151527405,
-0.06523788720369339,
0.36791014671325684,
0.20841823518276215,
-0.02099015563726425,
0.21451550722122192,
0.2552020847797394,
0.14038358628749847,
0.13036814332008362,
-0.06094881147146225,
0.09275010973215103,
0.17426402866840363,
0.25401315093040466,
-0.1410447359085083,
-0.04508291929960251,
0.11361159384250641,
0.1651514768600464,
-0.3017067015171051,
0.23905472457408905,
0.061709947884082794,
0.2481779307126999,
-0.09461207687854767,
-0.05855117738246918,
-0.0010273836087435484,
0.29563063383102417,
0.10898368060588837,
-0.007081925868988037,
-0.1859029233455658,
-0.3510284423828125,
0.18655045330524445,
0.298770010471344,
0.20515663921833038,
0.6667309403419495,
-0.00010250692866975442,
0.22098980844020844,
0.24206063151359558,
0.14669446647167206,
-0.3127816617488861,
0.012983135879039764,
-0.047527797520160675,
-0.12195181101560593,
0.2650468051433563,
0.04114852100610733,
-0.2809215486049652,
0.01995830051600933,
0.16607284545898438,
-0.16977474093437195,
0.42100346088409424,
-0.16314254701137543,
0.2872183322906494,
0.2544768750667572,
0.16156932711601257,
-0.40514013171195984,
-0.14447525143623352,
-0.09008732438087463,
-0.14575591683387756,
0.02844223566353321,
0.049693185836076736,
0.19841456413269043,
-0.10671799629926682,
0.29366326332092285,
0.15394315123558044,
0.11297041177749634,
0.16296952962875366,
-0.0880059152841568,
0.013938069343566895,
-0.18914338946342468,
0.36493104696273804,
0.10990399122238159,
0.847075879573822,
0.06494505703449249,
0.11042951047420502,
-0.05031244084239006,
0.08433131873607635,
0.26629090309143066,
0.3843558430671692,
-0.11843106150627136,
-0.18105275928974152,
0.28429123759269714,
-0.11244197189807892,
-0.16899466514587402,
-0.37434807419776917,
-0.10031814873218536,
-0.3548445999622345,
-0.11042170226573944,
-0.16361461579799652,
0.10494956374168396,
0.2571108937263489,
-0.21747229993343353,
0.08293889462947845,
0.04320335015654564,
-0.22433388233184814,
-0.1526571661233902,
-0.42983612418174744,
0.1889890730381012,
0.11247879266738892,
0.0418047159910202,
-0.15807601809501648,
0.08522602170705795,
0.05901661887764931,
0.1430276334285736,
0.14989538490772247,
0.03699976205825806,
0.2841039299964905,
-0.19848807156085968,
0.01590452343225479,
-0.04267289116978645,
0.4796387553215027,
0.05200009420514107,
0.04505617544054985,
-0.022490762174129486,
-0.18431678414344788,
-0.30219563841819763,
-0.20357145369052887,
-0.3583712577819824,
0.3260030746459961,
-0.3271956145763397,
-0.12599283456802368,
0.20833218097686768,
0.0692606046795845,
0.06961403042078018,
0.0847434252500534,
0.5330953001976013,
-0.2550131380558014,
0.1559339165687561,
0.17671608924865723,
-0.24840353429317474,
-0.17913341522216797,
-0.1974221020936966,
-0.14061015844345093,
-0.31121620535850525,
0.00641665980219841,
-0.21151141822338104,
0.32753485441207886,
-0.19596059620380402,
0.09561547636985779,
-0.12581689655780792,
0.11054026335477829,
0.16443444788455963,
-0.023268617689609528,
-0.19655494391918182,
0.013170771300792694,
0.40148794651031494,
0.1938684582710266,
0.08269984275102615,
-0.13487021625041962,
-0.13854670524597168,
0.27410420775413513,
0.022951312363147736,
-0.04007715731859207,
-0.06898221373558044,
-0.28844717144966125,
0.2686642110347748,
-0.07354839891195297,
-0.07197149097919464,
-0.006256073713302612,
0.022330492734909058,
-0.17143291234970093,
-0.37746965885162354,
-0.25434714555740356,
-0.15323306620121002,
-0.026906058192253113,
0.04155830293893814,
0.3952319920063019,
0.39150792360305786,
-0.5686571598052979,
0.021159686148166656,
-0.16590872406959534,
-0.3721546530723572,
-0.24465417861938477,
0.21255098283290863,
-0.07977862656116486,
-0.11815812438726425,
-0.4151742458343506,
0.2189262956380844,
0.2594122886657715,
-0.056325532495975494,
-0.3460713028907776,
0.4985348880290985,
-0.19954785704612732,
0.01173502765595913,
0.1670265644788742,
0.16589012742042542,
0.31981396675109863,
-0.19372156262397766,
-0.2581767439842224,
-0.10050114244222641,
0.004983287304639816,
0.0038735587149858475,
-0.056889861822128296,
-0.08835039287805557,
0.036974288523197174,
0.37527766823768616,
0.07999925315380096,
-0.17653897404670715,
0.010130427777767181,
-0.013026832602918148,
0.30491894483566284,
-0.012863028794527054,
0.07565588504076004,
0.21834464371204376,
0.23233436048030853,
0.2651108503341675,
-0.06140892207622528,
0.0022645145654678345,
-0.4956875443458557,
0.1696803867816925,
0.2820681035518646,
-0.02389337122440338,
0.003827907145023346,
0.029300548136234283,
-0.15113192796707153,
-0.0830153301358223,
-0.1880064606666565,
-0.008730709552764893,
0.22642415761947632,
0.26679718494415283,
-0.25501352548599243,
0.10766763985157013,
0.028744015842676163,
0.07158195972442627,
0.11636589467525482,
0.17703747749328613,
-0.20164240896701813,
0.3301108777523041,
-0.06299861520528793,
-0.18072068691253662,
0.0051113516092300415,
-0.21617823839187622,
-0.0882379338145256,
-0.2690969705581665,
-0.05434095859527588,
0.3548615276813507,
-0.08470749855041504,
0.3931317925453186,
0.10237212479114532,
0.048641353845596313,
0.031160328537225723,
-0.26075947284698486,
0.0025193169713020325,
0.1768663078546524,
0.06342064589262009,
-0.06666713953018188,
-0.40336379408836365,
-0.12455163896083832,
-0.0342053584754467,
0.11852879822254181,
-0.023724481463432312,
-0.01906965859234333,
0.2597283124923706,
0.034689661115407944,
-0.04770282655954361,
0.1366519182920456,
0.2245778739452362,
0.008630046620965004,
0.10706202685832977,
-0.014745032414793968,
-0.44588854908943176,
0.4002467691898346,
0.17882081866264343,
0.06644749641418457,
-0.15133827924728394,
0.18261569738388062,
-0.04831429570913315,
-0.02329270914196968,
0.14542755484580994,
0.21597377955913544,
0.25114938616752625,
0.23486752808094025,
0.2663768231868744,
0.00015572644770145416,
0.0485537126660347,
-0.28371354937553406,
0.10064557939767838,
-0.07780122756958008,
-0.08517630398273468,
0.2702382504940033,
-0.022480767220258713,
-0.22643978893756866,
-0.17166584730148315,
0.0025071650743484497,
0.06097292900085449,
0.14938516914844513,
-0.24703308939933777,
-0.04410871863365173,
-0.11084771901369095,
-0.3696262240409851,
0.1654120236635208,
0.34347569942474365,
-0.17691946029663086,
-0.2763074040412903,
-0.14307060837745667,
0.5540352463722229,
0.01624263823032379,
0.14129188656806946,
-0.12003625929355621,
0.31221023201942444,
0.2682911455631256,
0.14020127058029175,
-0.23027731478214264,
-0.1155218854546547,
-0.09750082343816757,
0.18140047788619995,
0.4106956422328949,
0.07597928494215012,
0.27146491408348083,
0.003061821684241295,
-0.008096208795905113,
-0.4449045658111572,
-0.31254491209983826,
0.07090770453214645,
-0.19108141958713531,
0.24359478056430817,
0.29826122522354126,
0.4748654365539551,
-0.09588027745485306,
0.08154689520597458,
0.11698435246944427,
-0.0852750837802887,
-0.08224236220121384,
0.08727284520864487,
0.02954534813761711,
-0.1662386804819107,
-0.1624804139137268,
-0.22592559456825256,
-0.08385561406612396,
-0.5017802119255066,
0.42406952381134033,
-0.12143149971961975,
-0.19118089973926544,
-0.16934233903884888,
0.2608131766319275,
0.04594516381621361,
0.05761559307575226,
0.011973310261964798,
-0.24113865196704865,
-0.5379573106765747,
0.2904908359050751,
-0.24914897978305817,
-0.47743991017341614,
0.33438950777053833,
0.5563981533050537,
0.1908097118139267,
-0.33090078830718994,
-0.7517858743667603,
-0.04652709513902664,
-0.16894222795963287,
0.3176453113555908,
-0.1310635507106781,
-0.23447953164577484,
0.2693609595298767,
0.035414066165685654,
-0.14081025123596191,
-0.11911461502313614,
-0.20184119045734406,
0.32731926441192627,
-0.15335330367088318,
-0.016436338424682617,
-0.20311012864112854,
0.383450448513031,
0.07487243413925171,
0.2821105718612671,
0.08279521763324738,
0.009512897580862045,
-0.011045567691326141,
-0.045824386179447174,
0.4001223146915436,
-0.17627695202827454,
-0.21030081808567047,
0.3098553717136383,
-0.03165191411972046,
-0.04279652610421181,
0.4672330617904663,
0.05786193907260895,
-0.03959641605615616,
-0.4113484025001526,
0.030284352600574493,
-0.1402198225259781,
-0.26930317282676697,
-0.11090381443500519,
0.033571019768714905,
0.05481627583503723,
-0.011755228973925114,
0.1477126181125641,
-0.004261154681444168,
-0.19323045015335083,
0.0873359739780426,
0.22292974591255188,
0.14023181796073914,
-0.14088046550750732,
-0.3561417758464813,
0.27374571561813354,
-0.4502817392349243,
0.2548072338104248,
-0.11861208826303482,
0.23466800153255463,
-0.4486158490180969,
-0.07039637863636017,
0.1645144522190094,
-0.3387358486652374,
0.6727861166000366,
0.14300043880939484,
0.26172924041748047,
0.12288181483745575,
-0.04376298934221268,
-0.31870827078819275,
0.011744830757379532,
0.023375969380140305,
0.1032925620675087,
0.17904946208000183,
0.010903231799602509,
-0.34060320258140564,
-0.2940669655799866,
0.2572197914123535,
-0.09251371026039124,
-0.2010648250579834,
-0.16940288245677948,
-0.09354439377784729,
0.06946339458227158,
0.12964017689228058,
-0.2358250916004181,
-0.19468800723552704,
-0.054315973073244095,
-0.1962428241968155,
-0.05937659367918968,
-0.12621456384658813,
-0.42012643814086914,
-0.0412573516368866,
0.3593747913837433,
0.08407474309206009,
0.00998806580901146,
0.5265335440635681,
0.4169224798679352,
0.2061600387096405,
0.31066542863845825,
0.4769849181175232,
-0.057586733251810074,
-0.5024175047874451,
0.4093315899372101,
-0.23412682116031647,
-0.03638293594121933,
0.291134238243103,
-0.11945277452468872,
0.11275652050971985,
-0.004811210557818413,
0.39886391162872314,
-0.2659638822078705,
0.14007991552352905,
0.5160362720489502,
0.1733705699443817,
-0.19828464090824127,
-0.1567220389842987,
0.15330711007118225,
-0.13181522488594055,
-0.10106492042541504,
-0.016440585255622864,
0.05913469195365906,
-0.11744540929794312,
-0.10681004077196121,
-0.38356080651283264,
0.6315277218818665,
0.14777590334415436,
0.07185277342796326,
0.36861497163772583,
-0.22695712745189667,
0.17459920048713684,
-0.23170621693134308,
-0.008876604959368706,
-0.19394174218177795,
-0.2916841506958008,
0.014859100803732872,
0.004328656941652298,
0.26464301347732544,
-0.17782801389694214,
-0.30376356840133667,
-0.08479578793048859,
0.0849776566028595,
0.16831155121326447,
-0.075963594019413,
0.22785940766334534,
-0.0356573686003685,
0.0481826551258564,
-0.1372097283601761,
0.3106488287448883,
-0.1807045042514801,
-0.12505120038986206,
-0.22354060411453247,
-0.1981882005929947,
0.13693934679031372,
-0.006218016147613525,
-0.20834550261497498,
0.034300513565540314,
-0.02010866068303585,
-0.016405116766691208,
-0.00913926586508751,
-0.22109760344028473,
0.24840137362480164,
0.2023250162601471,
0.07196783274412155,
0.1453690379858017,
-0.4314037561416626,
0.4000365138053894,
-0.3136850595474243,
0.014126880094408989,
0.03178165480494499,
0.01661606878042221,
-0.07922831177711487,
-0.06436064094305038,
-0.07348774373531342,
0.28366026282310486,
0.013377365656197071,
-0.13402283191680908,
0.12749776244163513,
-0.09054118394851685,
0.09711151570081711,
-0.38389837741851807,
0.1469171941280365,
-0.1294386088848114,
-0.1894494742155075,
-0.20143869519233704,
0.19556349515914917,
0.06261181831359863,
-0.16968931257724762,
0.04648176580667496,
0.15731149911880493,
-0.11095650494098663,
-0.11455783247947693,
0.6134783029556274,
-0.4535379409790039,
-0.03349203243851662,
0.43362414836883545,
0.44628003239631653,
-0.2692558169364929,
-0.3923749327659607,
0.2531038522720337,
-0.17158252000808716,
-0.4671878516674042,
0.0647658035159111,
0.04070392623543739,
0.03654327988624573,
0.20262306928634644,
0.10834236443042755,
0.028370512649416924,
-0.3081013560295105,
0.01553243026137352,
-0.14028646051883698,
-0.061466798186302185,
-0.1115649938583374,
-0.014381781220436096,
0.348732590675354,
-0.038386862725019455,
0.04083879292011261,
0.035380952060222626,
-0.14032047986984253,
-0.4261398911476135,
0.1779457926750183,
-0.2992275059223175,
-0.006148345768451691,
0.1672113686800003,
-0.17612332105636597,
0.05738129839301109,
-0.27402034401893616,
0.21091584861278534,
0.03941424936056137,
-0.3674263656139374,
-0.2569635510444641,
0.06276144087314606,
0.06215844303369522,
-0.11823486536741257,
-0.059873633086681366,
-0.0853448137640953,
-0.222807839512825,
-0.12882404029369354,
0.07532904297113419,
0.14711450040340424,
-0.19118201732635498,
-0.04137827455997467,
-0.19796337187290192,
0.15637041628360748,
0.040245842188596725,
0.18671667575836182,
0.31521040201187134,
0.09753838181495667,
0.3934985399246216,
-0.10207417607307434,
0.10635966807603836,
-0.11751273274421692,
-0.09877403825521469,
0.12033306807279587,
0.3732430040836334,
0.1956927478313446,
0.08940070867538452,
0.5223113894462585,
-0.2379545420408249,
0.09901393949985504,
-0.012913228943943977,
0.49423643946647644,
0.43494927883148193,
-0.05924281105399132,
-0.11046471446752548,
0.28291454911231995,
0.362024188041687,
-0.15223416686058044,
0.07884544879198074,
0.030840132385492325,
-0.03154562786221504,
0.18971528112888336,
-0.09699846059083939,
-0.10533216595649719,
-0.044316694140434265,
0.047453299164772034,
0.5319469571113586,
0.5150355100631714,
0.07354146242141724,
0.06201615557074547,
0.36503031849861145,
-0.22981855273246765,
-0.1293828785419464,
0.07709202915430069,
-0.02919958531856537,
-0.13396728038787842,
0.5332527756690979,
-0.20237845182418823,
0.12159070372581482,
0.09918612241744995,
0.42888620495796204,
0.018223173916339874,
-0.20624372363090515,
0.02521050162613392,
0.1370740532875061,
-0.43591469526290894,
-0.19297343492507935,
-0.008114434778690338,
0.17521809041500092,
-0.22769351303577423,
-0.28706252574920654,
-0.49710461497306824,
0.39950981736183167,
-0.10149503499269485,
-0.02628619782626629,
-0.08400016278028488,
-0.1780511736869812,
-0.06224928796291351,
0.10489119589328766,
-0.02313392236828804,
0.036859676241874695,
0.049442119896411896,
0.1967683881521225,
0.05532030016183853,
-0.403280109167099,
-0.24483513832092285,
-0.18330508470535278,
0.008381329476833344,
-0.12469762563705444,
0.20349107682704926,
0.23623916506767273,
-0.1035832017660141,
0.12545330822467804,
0.5425271987915039,
0.17385871708393097,
0.03465074300765991,
-0.06273855268955231,
-0.004607897251844406,
-0.01718193292617798,
-0.09664099663496017,
-0.19315068423748016,
0.06370528042316437,
-0.05065937340259552,
-0.11634297668933868,
0.33879703283309937,
0.2270328253507614,
-0.2155526876449585,
0.21507620811462402,
-0.03831638768315315,
0.0422847718000412,
-0.4960772693157196,
0.012300699949264526,
-0.15903151035308838,
-0.04526086151599884,
-0.03753984719514847,
-0.34500694274902344,
-0.5053332448005676,
-0.1316569447517395,
0.20712172985076904,
-0.2855304479598999,
0.1356666386127472,
-0.22195856273174286,
0.15447701513767242,
0.02275005728006363,
0.8024318218231201,
-0.008979175239801407,
0.24792549014091492,
-0.0561588779091835,
-0.4100834131240845,
-0.4542390704154968,
0.11474189162254333,
0.02157539129257202,
-0.11139766871929169,
-0.2615653872489929,
0.13345269858837128,
0.21181465685367584,
0.16958171129226685,
0.19661061465740204,
0.10125849395990372,
0.16647545993328094,
0.269985169172287,
-0.31812962889671326,
0.049133654683828354,
0.29661989212036133,
0.08552076667547226,
-0.20480649173259735,
-0.22972917556762695,
0.3633091151714325,
-0.1603115051984787,
0.2339549958705902,
0.13755923509597778,
0.1715312898159027,
-0.17288875579833984,
-0.29946160316467285,
0.3743165135383606,
0.08446165174245834,
0.154329314827919,
0.0724857822060585,
-0.04414738342165947,
-0.17801319062709808,
-0.4182218611240387,
0.02419307455420494,
0.006617598235607147,
0.23073984682559967,
0.262050598859787,
-0.10085107386112213,
-0.003048218786716461,
-0.05006348714232445,
-0.16974695026874542,
-0.02535703405737877,
0.5035407543182373,
-0.33601605892181396,
0.01951674185693264,
-0.07345059514045715,
0.15968354046344757,
-0.044947490096092224,
-0.03891041874885559,
0.02110932394862175,
-0.0965426042675972,
-0.3134426474571228,
-0.1935466080904007,
0.4183236360549927,
-0.23193399608135223,
-0.10155414044857025,
-0.14772088825702667,
0.04377734661102295,
-0.1456000804901123,
-0.1318366825580597,
-0.23294112086296082,
0.16427993774414062,
0.22284643352031708,
0.027529368177056313,
-0.0802605152130127,
0.279238760471344,
-0.02694091945886612,
0.016682889312505722,
-0.07823844254016876,
0.17462432384490967,
0.19546246528625488,
-0.1267380714416504,
0.033775899559259415,
-0.07782270014286041
] |
https://github.com/huggingface/datasets/issues/4568 | XNLI cache reload is very slow | Hi,
Could you tell us how you are running this code?
I tested on my machine (M1 Mac). And it is running fine both on and off internet.
<img width="1033" alt="Screen Shot 2022-07-03 at 1 32 25 AM" src="https://user-images.githubusercontent.com/8711912/177026364-4ad7cedb-e524-4513-97f7-7961bbb34c90.png">
Tested on both stable and dev version. | ### Reproduce
Using `2.3.3.dev0`
`from datasets import load_dataset`
`load_dataset("xnli", "en")`
Turn off Internet
`load_dataset("xnli", "en")`
I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the library trying to download when there is no Internet. If I leave it running it works but takes way longer than when there is Internet. I would expect loading from cache to take the same amount of time regardless of whether there is Internet.
```
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
/opt/conda/lib/python3.7/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
71
---> 72 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
73 af, socktype, proto, canonname, sa = res
/opt/conda/lib/python3.7/socket.py in getaddrinfo(host, port, family, type, proto, flags)
751 addrlist = []
--> 752 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
753 af, socktype, proto, canonname, sa = res
gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
/tmp/ipykernel_33/3594208039.py in <module>
----> 1 load_dataset("xnli", "en")
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1673 revision=revision,
1674 use_auth_token=use_auth_token,
-> 1675 **config_kwargs,
1676 )
1677
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
1494 download_mode=download_mode,
1495 data_dir=data_dir,
-> 1496 data_files=data_files,
1497 )
1498
/opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1182 download_config=download_config,
1183 download_mode=download_mode,
-> 1184 dynamic_modules_path=dynamic_modules_path,
1185 ).get_module()
1186 elif path.count("/") == 1: # community dataset on the Hub
/opt/conda/lib/python3.7/site-packages/datasets/load.py in __init__(self, name, revision, download_config, download_mode, dynamic_modules_path)
506 self.dynamic_modules_path = dynamic_modules_path
507 assert self.name.count("/") == 0
--> 508 increase_load_count(name, resource_type="dataset")
509
510 def download_loading_script(self, revision: Optional[str]) -> str:
/opt/conda/lib/python3.7/site-packages/datasets/load.py in increase_load_count(name, resource_type)
166 if not config.HF_DATASETS_OFFLINE and config.HF_UPDATE_DOWNLOAD_COUNTS:
167 try:
--> 168 head_hf_s3(name, filename=name + ".py", dataset=(resource_type == "dataset"))
169 except Exception:
170 pass
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in head_hf_s3(identifier, filename, use_cdn, dataset, max_retries)
93 return http_head(
94 hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset),
---> 95 max_retries=max_retries,
96 )
97
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries)
445 allow_redirects=allow_redirects,
446 timeout=timeout,
--> 447 max_retries=max_retries,
448 )
449 return response
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params)
366 tries += 1
367 try:
--> 368 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
369 success = True
370 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err:
/opt/conda/lib/python3.7/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
527 }
528 send_kwargs.update(settings)
--> 529 resp = self.send(prep, **send_kwargs)
530
531 return resp
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in send(self, request, **kwargs)
643
644 # Send the request
--> 645 r = adapter.send(request, **kwargs)
646
647 # Total elapsed time of the request (approximately)
/opt/conda/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 decode_content=False,
449 retries=self.max_retries,
--> 450 timeout=timeout
451 )
452
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
708 body=body,
709 headers=headers,
--> 710 chunked=chunked,
711 )
712
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
384 # Trigger any extra validation we need to do.
385 try:
--> 386 self._validate_conn(conn)
387 except (SocketTimeout, BaseSSLError) as e:
388 # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
1038 # Force connect early to allow us to validate the connection.
1039 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
-> 1040 conn.connect()
1041
1042 if not conn.is_verified:
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
356 def connect(self):
357 # Add certificate verification
--> 358 self.sock = conn = self._new_conn()
359 hostname = self.host
360 tls_in_tls = False
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
173 try:
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
177
KeyboardInterrupt:
``` | 46 | XNLI cache reload is very slow
### Reproduce
Using `2.3.3.dev0`
`from datasets import load_dataset`
`load_dataset("xnli", "en")`
Turn off Internet
`load_dataset("xnli", "en")`
I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the library trying to download when there is no Internet. If I leave it running it works but takes way longer than when there is Internet. I would expect loading from cache to take the same amount of time regardless of whether there is Internet.
```
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
/opt/conda/lib/python3.7/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
71
---> 72 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
73 af, socktype, proto, canonname, sa = res
/opt/conda/lib/python3.7/socket.py in getaddrinfo(host, port, family, type, proto, flags)
751 addrlist = []
--> 752 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
753 af, socktype, proto, canonname, sa = res
gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
/tmp/ipykernel_33/3594208039.py in <module>
----> 1 load_dataset("xnli", "en")
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1673 revision=revision,
1674 use_auth_token=use_auth_token,
-> 1675 **config_kwargs,
1676 )
1677
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
1494 download_mode=download_mode,
1495 data_dir=data_dir,
-> 1496 data_files=data_files,
1497 )
1498
/opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1182 download_config=download_config,
1183 download_mode=download_mode,
-> 1184 dynamic_modules_path=dynamic_modules_path,
1185 ).get_module()
1186 elif path.count("/") == 1: # community dataset on the Hub
/opt/conda/lib/python3.7/site-packages/datasets/load.py in __init__(self, name, revision, download_config, download_mode, dynamic_modules_path)
506 self.dynamic_modules_path = dynamic_modules_path
507 assert self.name.count("/") == 0
--> 508 increase_load_count(name, resource_type="dataset")
509
510 def download_loading_script(self, revision: Optional[str]) -> str:
/opt/conda/lib/python3.7/site-packages/datasets/load.py in increase_load_count(name, resource_type)
166 if not config.HF_DATASETS_OFFLINE and config.HF_UPDATE_DOWNLOAD_COUNTS:
167 try:
--> 168 head_hf_s3(name, filename=name + ".py", dataset=(resource_type == "dataset"))
169 except Exception:
170 pass
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in head_hf_s3(identifier, filename, use_cdn, dataset, max_retries)
93 return http_head(
94 hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset),
---> 95 max_retries=max_retries,
96 )
97
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries)
445 allow_redirects=allow_redirects,
446 timeout=timeout,
--> 447 max_retries=max_retries,
448 )
449 return response
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params)
366 tries += 1
367 try:
--> 368 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
369 success = True
370 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err:
/opt/conda/lib/python3.7/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
527 }
528 send_kwargs.update(settings)
--> 529 resp = self.send(prep, **send_kwargs)
530
531 return resp
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in send(self, request, **kwargs)
643
644 # Send the request
--> 645 r = adapter.send(request, **kwargs)
646
647 # Total elapsed time of the request (approximately)
/opt/conda/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 decode_content=False,
449 retries=self.max_retries,
--> 450 timeout=timeout
451 )
452
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
708 body=body,
709 headers=headers,
--> 710 chunked=chunked,
711 )
712
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
384 # Trigger any extra validation we need to do.
385 try:
--> 386 self._validate_conn(conn)
387 except (SocketTimeout, BaseSSLError) as e:
388 # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
1038 # Force connect early to allow us to validate the connection.
1039 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
-> 1040 conn.connect()
1041
1042 if not conn.is_verified:
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
356 def connect(self):
357 # Add certificate verification
--> 358 self.sock = conn = self._new_conn()
359 hostname = self.host
360 tls_in_tls = False
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
173 try:
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
177
KeyboardInterrupt:
```
Hi,
Could you tell us how you are running this code?
I tested on my machine (M1 Mac). And it is running fine both on and off internet.
<img width="1033" alt="Screen Shot 2022-07-03 at 1 32 25 AM" src="https://user-images.githubusercontent.com/8711912/177026364-4ad7cedb-e524-4513-97f7-7961bbb34c90.png">
Tested on both stable and dev version. | [
-0.14584548771381378,
0.058431729674339294,
0.006329108029603958,
-0.04914678633213043,
0.02681650221347809,
-0.23214468359947205,
0.19745635986328125,
0.2437468022108078,
0.18252934515476227,
-0.08453693985939026,
0.04058806598186493,
0.3258123993873596,
0.08739824593067169,
-0.19389866292476654,
-0.24720534682273865,
0.3096849322319031,
-0.006662540137767792,
0.3069881200790405,
0.3138149380683899,
0.051395490765571594,
-0.17268377542495728,
0.1520869880914688,
-0.15480655431747437,
-0.2129465490579605,
-0.3084140717983246,
0.18944396078586578,
0.3437804579734802,
0.12138383090496063,
-0.2170298546552658,
-0.6112734079360962,
0.5828165411949158,
0.19080695509910583,
0.3191511929035187,
-0.1953018605709076,
-0.00011689400707837194,
-0.14540648460388184,
0.2965843081474304,
-0.07832898944616318,
-0.4636756181716919,
0.31586819887161255,
-0.20570623874664307,
-0.2111395001411438,
0.37102460861206055,
-0.21810567378997803,
-0.04071899503469467,
0.10184786468744278,
-0.08247776329517365,
-0.24365052580833435,
-0.023293882608413696,
0.25644734501838684,
0.11295464634895325,
0.03501342236995697,
-0.30775031447410583,
-0.019832143560051918,
0.30565473437309265,
-0.2346799224615097,
-0.19306163489818573,
0.5117231011390686,
0.3434138596057892,
0.1927444040775299,
0.05164647102355957,
0.32190367579460144,
-0.4376545250415802,
-0.0566432811319828,
0.33490753173828125,
-0.04469253495335579,
0.10322298854589462,
-0.045901790261268616,
-0.037088312208652496,
0.3366515338420868,
0.3314463794231415,
-0.09947919100522995,
-0.1357077658176422,
-0.2525230646133423,
-0.047928329557180405,
-0.4666859805583954,
0.21786469221115112,
-0.2177700251340866,
-0.2167014330625534,
-0.1832396537065506,
-0.15586917102336884,
-0.2101266086101532,
0.06416712701320648,
-0.03126998990774155,
-0.21003201603889465,
0.59745192527771,
0.032667431980371475,
0.09728182852268219,
0.1222972720861435,
0.172913059592247,
-0.018090948462486267,
0.04739338904619217,
-0.17235592007637024,
0.15814928710460663,
-0.5800164341926575,
0.006675798445940018,
0.0762028619647026,
0.2090645730495453,
0.05309322476387024,
0.6343860030174255,
-0.10733538120985031,
-0.017783574759960175,
0.11693206429481506,
-0.013663806021213531,
0.011020258069038391,
0.5390040278434753,
0.10941863059997559,
-0.25346511602401733,
0.4687650203704834,
0.06470031291246414,
0.023142632097005844,
-0.15098732709884644,
0.159982368350029,
-0.01678502932190895,
0.448569655418396,
0.07068780064582825,
0.08066178113222122,
-0.2623237073421478,
-0.03558949753642082,
-0.3097251355648041,
-0.03072747029364109,
0.02561531774699688,
0.13992801308631897,
0.16950398683547974,
-0.29814329743385315,
0.6651458740234375,
0.1151292622089386,
0.08628787845373154,
-0.22022831439971924,
-0.38034167885780334,
0.03283952176570892,
-0.15222537517547607,
-0.13991568982601166,
0.2547723054885864,
0.2932281494140625,
-0.10678012669086456,
0.14142945408821106,
0.05609891563653946,
-0.016666844487190247,
0.06580155342817307,
0.08447601646184921,
-0.11238305270671844,
-0.0808517262339592,
0.40751147270202637,
0.01732410490512848,
0.11998309940099716,
0.2742170989513397,
0.036248765885829926,
-0.35495635867118835,
0.11082824319601059,
0.015227321535348892,
-0.3585983216762543,
0.07073915004730225,
0.12807954847812653,
-0.15874461829662323,
-0.08736439049243927,
-0.03189746290445328,
-0.2338918000459671,
0.09754212945699692,
-0.061696164309978485,
0.16726554930210114,
0.07177070528268814,
0.09851634502410889,
-0.1770446002483368,
0.3743506669998169,
0.49068766832351685,
0.03535712882876396,
0.08105988800525665,
-0.23178735375404358,
-0.12140333652496338,
0.27494311332702637,
0.22751523554325104,
-0.17880912125110626,
0.25466617941856384,
-0.2944909334182739,
-0.39852672815322876,
0.3670620024204254,
-0.45489490032196045,
-0.3134419918060303,
0.2761624753475189,
-0.28013595938682556,
0.21167150139808655,
0.23825517296791077,
0.7126069664955139,
0.12442263960838318,
0.13729771971702576,
-0.19416853785514832,
0.46997177600860596,
-0.04880061000585556,
0.1795428842306137,
-0.30250564217567444,
-0.37205803394317627,
0.13020774722099304,
0.31058090925216675,
-0.07413123548030853,
0.2812896966934204,
-0.2513272762298584,
-0.10945810377597809,
0.2009115219116211,
-0.0528668574988842,
-0.11515332013368607,
0.07137079536914825,
0.28470519185066223,
0.08233793824911118,
-0.07252069562673569,
0.22948098182678223,
-0.5079026818275452,
0.38527190685272217,
0.07409443706274033,
-0.01861996203660965,
-0.28741931915283203,
0.07328365743160248,
-0.1951988935470581,
-0.22181929647922516,
-0.32444000244140625,
-0.3200107216835022,
0.06823046505451202,
0.2085171341896057,
0.3504102826118469,
0.27876490354537964,
-0.2110823690891266,
0.739979088306427,
-0.14553214609622955,
-0.03144123777747154,
-0.29648759961128235,
-0.12625478208065033,
0.2737412452697754,
0.0036052879877388477,
-0.31999626755714417,
-0.35864657163619995,
-0.009467773139476776,
0.04740041866898537,
-0.18394145369529724,
0.19566580653190613,
-0.011054767295718193,
0.06587910652160645,
0.166473388671875,
0.05241572856903076,
-0.05027242749929428,
-0.00416593998670578,
0.4764861464500427,
-0.0469546876847744,
0.034543585032224655,
-0.13016930222511292,
0.002123534679412842,
0.4006636142730713,
0.07178648561239243,
0.2882385551929474,
-0.0036186911165714264,
-0.041877731680870056,
0.15667524933815002,
-0.20929233729839325,
0.05110762268304825,
-0.08828143775463104,
0.11730146408081055,
0.18874908983707428,
0.5320579409599304,
0.11391066014766693,
-0.18144747614860535,
0.0611933171749115,
0.14528551697731018,
0.1185951828956604,
-0.09571089595556259,
0.21846505999565125,
0.010214671492576599,
-0.006014060229063034,
-0.07025360316038132,
0.09979197382926941,
0.19254997372627258,
0.03351658582687378,
-0.1498432755470276,
-0.11674594134092331,
-0.034412894397974014,
-0.32863011956214905,
0.19417786598205566,
-0.3633454442024231,
0.1620953381061554,
-0.11059712618589401,
0.025445623323321342,
-0.14644671976566315,
-0.39862772822380066,
-0.29081249237060547,
-0.03717648983001709,
0.14820539951324463,
-0.037867993116378784,
-0.023617105558514595,
0.003924494609236717,
-0.5099948644638062,
0.10439762473106384,
-0.12400399893522263,
-0.47512418031692505,
-0.5236689448356628,
-0.04649668186903,
0.43275582790374756,
0.22105202078819275,
0.04411332309246063,
-0.26519232988357544,
0.17721150815486908,
-0.03258618339896202,
-0.8295242786407471,
-0.25674140453338623,
-0.4585855305194855,
-0.36394912004470825,
-0.029508521780371666,
0.03829256072640419,
-0.1716698408126831,
0.3360700011253357,
-0.24287761747837067,
-0.054837848991155624,
-0.33339592814445496,
-0.21783092617988586,
-0.19051478803157806,
0.2602616548538208,
-0.0007234029471874237,
-0.06799368560314178,
0.20953528583049774,
0.1357077658176422,
0.19023030996322632,
0.349783331155777,
-0.17768827080726624,
0.05595662444829941,
0.3131863474845886,
-0.2551089823246002,
0.4037918448448181,
-0.05732366442680359,
-0.31330394744873047,
-0.14913100004196167,
-0.25309351086616516,
-0.04360909014940262,
-0.27492332458496094,
0.08861205726861954,
0.27025043964385986,
-0.04323216527700424,
-0.12558650970458984,
-0.00497415428981185,
0.18881358206272125,
0.03711093217134476,
-0.36802351474761963,
0.2697691321372986,
0.15749762952327728,
0.009111074730753899,
0.09299512207508087,
0.11363431811332703,
0.3108486235141754,
0.315280020236969,
-0.63457852602005,
-0.10863280296325684,
-0.3764103353023529,
0.5060794353485107,
-0.11181414127349854,
-0.3215656876564026,
0.39905446767807007,
-0.15741972625255585,
-0.05888943374156952,
0.156469464302063,
0.21169288456439972,
0.14837972819805145,
-0.26745176315307617,
0.09998433291912079,
0.20490983128547668,
0.20109239220619202,
-0.0909527838230133,
0.440146803855896,
0.17713870108127594,
0.12417271733283997,
0.43930256366729736,
0.10346727818250656,
0.33325642347335815,
-0.21980121731758118,
0.028931809589266777,
-0.09505143761634827,
0.07168345898389816,
-0.3384298086166382,
-0.19159670174121857,
0.05399823561310768,
-0.2890104055404663,
-0.4553425908088684,
0.11857447028160095,
0.24294674396514893,
-0.14969977736473083,
0.028515998274087906,
-0.2805411219596863,
-0.010978274047374725,
-0.1697334200143814,
0.08013936132192612,
-0.27616044878959656,
-0.14797723293304443,
0.009956743568181992,
0.20666071772575378,
0.16218364238739014,
-0.05719509720802307,
-0.07467614114284515,
0.1205451637506485,
-0.5658160448074341,
0.08486460894346237,
-0.0256511140614748,
0.4518124461174011,
0.15629254281520844,
-0.028133932501077652,
0.07476155459880829,
-0.03188077732920647,
0.4254608750343323,
-0.25834137201309204,
0.061685819178819656,
0.36072424054145813,
-0.06847715377807617,
-0.510585367679596,
-0.09393663704395294,
0.21830976009368896,
-0.4383457601070404,
0.5081843733787537,
0.08289509266614914,
-0.0723707526922226,
-0.09886349737644196,
-0.3000575602054596,
0.19536304473876953,
-0.16085824370384216,
-0.30801934003829956,
-0.3353312909603119,
-0.24748000502586365,
-0.2061523199081421,
0.019720204174518585,
-0.3204556405544281,
-0.1781655251979828,
0.15021111071109772,
0.08757996559143066,
-0.08556385338306427,
0.17552977800369263,
-0.27439194917678833,
0.08211569488048553,
0.11966820806264877,
-0.21573509275913239,
0.24558639526367188,
-0.1312221884727478,
-0.018752075731754303,
-0.14057551324367523,
0.3511110246181488,
0.07583705335855484,
-0.2090984284877777,
-0.1822895109653473,
0.23188327252864838,
-0.012276746332645416,
0.29985007643699646,
0.05352810025215149,
0.24011239409446716,
-0.090455561876297,
0.2837327718734741,
-0.04022926092147827,
-0.11433180421590805,
0.0629408210515976,
-0.3597993552684784,
0.018936101347208023,
-0.272024005651474,
0.45447367429733276,
0.4892292618751526,
0.03317292034626007,
0.4425284266471863,
-0.5472683310508728,
0.05313955992460251,
-0.05154605582356453,
0.39993050694465637,
0.8958640694618225,
-0.17285320162773132,
0.050706323236227036,
0.21159550547599792,
-0.1307341754436493,
0.5927459597587585,
-0.34162795543670654,
0.21614931523799896,
-0.2544422447681427,
0.05154794827103615,
0.12897028028964996,
-0.09211476892232895,
0.019825715571641922,
-0.2598910331726074,
-0.0956394225358963,
0.2201966792345047,
-0.5183281898498535,
0.3759436011314392,
0.010100964456796646,
0.17549288272857666,
-0.47710248827934265,
-0.2426508665084839,
-0.18646714091300964,
0.06222151964902878,
-0.02440246194601059,
0.0330098532140255,
0.004448032006621361,
0.004603513050824404,
-0.011729668825864792,
0.06765097379684448,
-0.19619148969650269,
0.3398173451423645,
0.023708008229732513,
-0.00564613938331604,
-0.33029308915138245,
0.12714265286922455,
-0.5295199751853943,
0.23429803550243378,
0.16958840191364288,
-0.266453355550766,
-0.1794862300157547,
0.2702508866786957,
0.0029924586415290833,
0.19615116715431213,
0.17079541087150574,
-0.12656304240226746,
0.1022672951221466,
-0.1687754988670349,
-0.2822171151638031,
0.09138964116573334,
-0.3235566020011902,
-0.3372570276260376,
0.1994800567626953,
-0.0017578601837158203,
0.07683733850717545,
0.27031561732292175,
0.28040722012519836,
0.17986921966075897,
0.2317066788673401,
0.013721581548452377,
0.08284389972686768,
0.18122805655002594,
0.20233669877052307,
0.15963084995746613,
-0.4283212721347809,
-0.3426187336444855,
-0.22341464459896088,
0.41943132877349854,
0.3809356093406677,
0.10030318796634674,
0.10584639757871628,
-0.04583878442645073,
-0.10113559663295746,
-0.0872509554028511,
-0.27115556597709656,
-0.23477403819561005,
-0.30792197585105896,
0.25731927156448364,
0.029627090319991112,
0.06352169811725616,
0.06272445619106293,
-0.00904618576169014,
-0.13431990146636963,
0.12574449181556702,
-0.09739231318235397,
-0.30153435468673706,
-0.3135850131511688,
-0.1923922449350357,
-0.0946778804063797,
0.16597513854503632,
-0.16633695363998413,
-0.25422656536102295,
0.11164753139019012,
-0.28854233026504517,
-0.23486445844173431,
-0.1970144659280777,
-0.30830827355384827,
0.15270297229290009,
-0.05792263150215149,
-0.05732080340385437,
0.4003380537033081,
0.0036107059568166733,
-0.00709923543035984,
-0.027148637920618057,
-0.06659529358148575,
-0.1346910297870636,
0.2607863247394562,
0.2096603512763977,
0.019768299534916878,
-0.4650174379348755,
-0.010996711440384388,
-0.46774715185165405,
-0.09298895299434662,
-0.15591491758823395,
0.24576827883720398,
0.19453489780426025,
-0.141048863530159,
-0.12081684172153473,
-0.3066520392894745,
0.1862388253211975,
-0.24581854045391083,
0.15193068981170654,
-0.22572413086891174,
0.17499327659606934,
0.17609579861164093,
0.14273416996002197,
-0.1738908886909485,
0.043787114322185516,
-0.136747345328331,
-0.000004217028617858887,
-0.10439297556877136,
-0.19027692079544067,
0.08752455562353134,
-0.18690329790115356,
-0.043648120015859604,
0.11137129366397858,
0.10429106652736664,
0.3776066303253174,
0.09141983836889267,
-0.23875945806503296,
0.16270047426223755,
0.13527393341064453,
-0.05526268854737282,
-0.08756538480520248,
-0.0250854454934597,
0.20404838025569916,
-0.10741032660007477,
0.3068386912345886,
0.31366902589797974,
-0.1637880951166153,
0.5570256114006042,
-0.20934221148490906,
0.44467729330062866,
-0.11815905570983887,
0.12460225820541382,
0.0692087933421135,
0.28969573974609375,
-0.08992896974086761,
-0.03366807848215103,
0.21496818959712982,
0.17398327589035034,
0.2606831192970276,
-0.1974964737892151,
0.19400441646575928,
-0.1936783492565155,
0.40071728825569153,
-0.4610048234462738,
-0.2974484860897064,
0.22909308969974518,
0.5941737294197083,
-0.27390894293785095,
-0.210389643907547,
-0.07795971632003784,
0.006452061235904694,
-0.07943987846374512,
-0.0607992447912693,
-0.278332382440567,
0.4153035581111908,
-0.0201856791973114,
0.16853392124176025,
-0.12321703135967255,
0.003915734589099884,
-0.009098976850509644,
0.2198682725429535,
0.17813852429389954,
0.043146051466464996,
-0.05305942893028259,
0.4009590744972229,
-0.1733926385641098,
-0.49456191062927246,
0.04932290315628052,
0.11015047132968903,
0.4466829001903534,
-0.1924620419740677,
0.056518424302339554,
0.24817055463790894,
-0.12408484518527985,
0.16530682146549225,
0.3474888503551483,
0.31613293290138245,
0.48342257738113403,
0.2733990550041199,
0.2951676845550537,
0.27978357672691345,
-0.08031466603279114,
-0.01652488298714161,
0.021067433059215546,
0.17820382118225098,
0.3526720702648163,
0.07835137844085693,
0.08809554576873779,
-0.1311326026916504,
0.11381831765174866,
-0.2640015780925751,
0.38904908299446106,
0.09500382840633392,
0.156211256980896,
0.3271004855632782,
0.21067029237747192,
-0.23824205994606018,
0.19131159782409668,
-0.2921554744243622,
0.1962890774011612,
0.023947902023792267,
0.08740398287773132,
-0.03563906252384186,
-0.007421152666211128,
0.018687624484300613,
-0.13553361594676971,
0.37503066658973694,
0.26416322588920593,
0.2891286015510559,
-0.201745867729187,
-0.45859968662261963,
-0.26923325657844543,
-0.11410314589738846,
-0.31650510430336,
-0.13111336529254913,
0.24722523987293243,
0.22530943155288696,
-0.17655593156814575,
0.05091618373990059,
-0.005021125078201294,
0.3114989995956421,
0.23542442917823792,
-0.09115199744701385,
-0.1602981835603714,
-0.18464559316635132,
0.06306853145360947,
-0.0690750777721405,
-0.19034947454929352,
-0.5126153230667114,
0.16551317274570465,
-0.022159412503242493,
0.09877265244722366,
0.08514387160539627,
-0.20701521635055542,
0.31006965041160583,
0.678413987159729,
0.6373438835144043,
0.21922652423381805,
0.38797131180763245,
0.3137272894382477,
-0.5190879702568054,
-0.17263589799404144,
0.26608383655548096,
-0.1597263216972351,
-0.47071680426597595,
-0.05648625269532204,
0.15921485424041748,
-0.14221547544002533,
0.21469977498054504,
-0.5282477736473083,
0.7069826722145081,
0.12000301480293274,
-0.07916194945573807,
0.001169644296169281,
-0.21647347509860992,
0.14158564805984497,
0.2294345498085022,
-0.11227282881736755,
0.0636095479130745,
0.04767075181007385,
0.2943412661552429,
-0.5477544069290161,
0.07188894599676132,
0.3706740736961365,
0.03715042397379875,
0.16431471705436707,
-0.006197521463036537,
0.33429425954818726,
-0.25281476974487305,
0.1873793751001358,
-0.30833736062049866,
0.17692628502845764,
0.1652759611606598,
0.0681203305721283,
-0.10848097503185272,
0.23804612457752228,
0.28737542033195496,
0.0937037467956543,
-0.03845023363828659,
-0.13821077346801758,
-0.06862454861402512,
-0.17766007781028748,
-0.19345737993717194,
-0.13677185773849487
] |
https://github.com/huggingface/datasets/issues/4568 | XNLI cache reload is very slow | Sure, I was running it on a Linux machine.
I found that if I turn the Internet off, it would still try to make a HTTPS call which would slow down the cache loading. If you can't reproduce then we can close the issue. | ### Reproduce
Using `2.3.3.dev0`
`from datasets import load_dataset`
`load_dataset("xnli", "en")`
Turn off Internet
`load_dataset("xnli", "en")`
I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the library trying to download when there is no Internet. If I leave it running it works but takes way longer than when there is Internet. I would expect loading from cache to take the same amount of time regardless of whether there is Internet.
```
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
/opt/conda/lib/python3.7/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
71
---> 72 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
73 af, socktype, proto, canonname, sa = res
/opt/conda/lib/python3.7/socket.py in getaddrinfo(host, port, family, type, proto, flags)
751 addrlist = []
--> 752 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
753 af, socktype, proto, canonname, sa = res
gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
/tmp/ipykernel_33/3594208039.py in <module>
----> 1 load_dataset("xnli", "en")
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1673 revision=revision,
1674 use_auth_token=use_auth_token,
-> 1675 **config_kwargs,
1676 )
1677
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
1494 download_mode=download_mode,
1495 data_dir=data_dir,
-> 1496 data_files=data_files,
1497 )
1498
/opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1182 download_config=download_config,
1183 download_mode=download_mode,
-> 1184 dynamic_modules_path=dynamic_modules_path,
1185 ).get_module()
1186 elif path.count("/") == 1: # community dataset on the Hub
/opt/conda/lib/python3.7/site-packages/datasets/load.py in __init__(self, name, revision, download_config, download_mode, dynamic_modules_path)
506 self.dynamic_modules_path = dynamic_modules_path
507 assert self.name.count("/") == 0
--> 508 increase_load_count(name, resource_type="dataset")
509
510 def download_loading_script(self, revision: Optional[str]) -> str:
/opt/conda/lib/python3.7/site-packages/datasets/load.py in increase_load_count(name, resource_type)
166 if not config.HF_DATASETS_OFFLINE and config.HF_UPDATE_DOWNLOAD_COUNTS:
167 try:
--> 168 head_hf_s3(name, filename=name + ".py", dataset=(resource_type == "dataset"))
169 except Exception:
170 pass
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in head_hf_s3(identifier, filename, use_cdn, dataset, max_retries)
93 return http_head(
94 hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset),
---> 95 max_retries=max_retries,
96 )
97
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries)
445 allow_redirects=allow_redirects,
446 timeout=timeout,
--> 447 max_retries=max_retries,
448 )
449 return response
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params)
366 tries += 1
367 try:
--> 368 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
369 success = True
370 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err:
/opt/conda/lib/python3.7/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
527 }
528 send_kwargs.update(settings)
--> 529 resp = self.send(prep, **send_kwargs)
530
531 return resp
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in send(self, request, **kwargs)
643
644 # Send the request
--> 645 r = adapter.send(request, **kwargs)
646
647 # Total elapsed time of the request (approximately)
/opt/conda/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 decode_content=False,
449 retries=self.max_retries,
--> 450 timeout=timeout
451 )
452
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
708 body=body,
709 headers=headers,
--> 710 chunked=chunked,
711 )
712
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
384 # Trigger any extra validation we need to do.
385 try:
--> 386 self._validate_conn(conn)
387 except (SocketTimeout, BaseSSLError) as e:
388 # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
1038 # Force connect early to allow us to validate the connection.
1039 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
-> 1040 conn.connect()
1041
1042 if not conn.is_verified:
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
356 def connect(self):
357 # Add certificate verification
--> 358 self.sock = conn = self._new_conn()
359 hostname = self.host
360 tls_in_tls = False
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
173 try:
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
177
KeyboardInterrupt:
``` | 44 | XNLI cache reload is very slow
### Reproduce
Using `2.3.3.dev0`
`from datasets import load_dataset`
`load_dataset("xnli", "en")`
Turn off Internet
`load_dataset("xnli", "en")`
I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the library trying to download when there is no Internet. If I leave it running it works but takes way longer than when there is Internet. I would expect loading from cache to take the same amount of time regardless of whether there is Internet.
```
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
/opt/conda/lib/python3.7/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
71
---> 72 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
73 af, socktype, proto, canonname, sa = res
/opt/conda/lib/python3.7/socket.py in getaddrinfo(host, port, family, type, proto, flags)
751 addrlist = []
--> 752 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
753 af, socktype, proto, canonname, sa = res
gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
/tmp/ipykernel_33/3594208039.py in <module>
----> 1 load_dataset("xnli", "en")
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1673 revision=revision,
1674 use_auth_token=use_auth_token,
-> 1675 **config_kwargs,
1676 )
1677
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
1494 download_mode=download_mode,
1495 data_dir=data_dir,
-> 1496 data_files=data_files,
1497 )
1498
/opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1182 download_config=download_config,
1183 download_mode=download_mode,
-> 1184 dynamic_modules_path=dynamic_modules_path,
1185 ).get_module()
1186 elif path.count("/") == 1: # community dataset on the Hub
/opt/conda/lib/python3.7/site-packages/datasets/load.py in __init__(self, name, revision, download_config, download_mode, dynamic_modules_path)
506 self.dynamic_modules_path = dynamic_modules_path
507 assert self.name.count("/") == 0
--> 508 increase_load_count(name, resource_type="dataset")
509
510 def download_loading_script(self, revision: Optional[str]) -> str:
/opt/conda/lib/python3.7/site-packages/datasets/load.py in increase_load_count(name, resource_type)
166 if not config.HF_DATASETS_OFFLINE and config.HF_UPDATE_DOWNLOAD_COUNTS:
167 try:
--> 168 head_hf_s3(name, filename=name + ".py", dataset=(resource_type == "dataset"))
169 except Exception:
170 pass
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in head_hf_s3(identifier, filename, use_cdn, dataset, max_retries)
93 return http_head(
94 hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset),
---> 95 max_retries=max_retries,
96 )
97
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries)
445 allow_redirects=allow_redirects,
446 timeout=timeout,
--> 447 max_retries=max_retries,
448 )
449 return response
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params)
366 tries += 1
367 try:
--> 368 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
369 success = True
370 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err:
/opt/conda/lib/python3.7/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
527 }
528 send_kwargs.update(settings)
--> 529 resp = self.send(prep, **send_kwargs)
530
531 return resp
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in send(self, request, **kwargs)
643
644 # Send the request
--> 645 r = adapter.send(request, **kwargs)
646
647 # Total elapsed time of the request (approximately)
/opt/conda/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 decode_content=False,
449 retries=self.max_retries,
--> 450 timeout=timeout
451 )
452
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
708 body=body,
709 headers=headers,
--> 710 chunked=chunked,
711 )
712
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
384 # Trigger any extra validation we need to do.
385 try:
--> 386 self._validate_conn(conn)
387 except (SocketTimeout, BaseSSLError) as e:
388 # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
1038 # Force connect early to allow us to validate the connection.
1039 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
-> 1040 conn.connect()
1041
1042 if not conn.is_verified:
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
356 def connect(self):
357 # Add certificate verification
--> 358 self.sock = conn = self._new_conn()
359 hostname = self.host
360 tls_in_tls = False
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
173 try:
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
177
KeyboardInterrupt:
```
Sure, I was running it on a Linux machine.
I found that if I turn the Internet off, it would still try to make a HTTPS call which would slow down the cache loading. If you can't reproduce then we can close the issue. | [
-0.14584548771381378,
0.058431729674339294,
0.006329108029603958,
-0.04914678633213043,
0.02681650221347809,
-0.23214468359947205,
0.19745635986328125,
0.2437468022108078,
0.18252934515476227,
-0.08453693985939026,
0.04058806598186493,
0.3258123993873596,
0.08739824593067169,
-0.19389866292476654,
-0.24720534682273865,
0.3096849322319031,
-0.006662540137767792,
0.3069881200790405,
0.3138149380683899,
0.051395490765571594,
-0.17268377542495728,
0.1520869880914688,
-0.15480655431747437,
-0.2129465490579605,
-0.3084140717983246,
0.18944396078586578,
0.3437804579734802,
0.12138383090496063,
-0.2170298546552658,
-0.6112734079360962,
0.5828165411949158,
0.19080695509910583,
0.3191511929035187,
-0.1953018605709076,
-0.00011689400707837194,
-0.14540648460388184,
0.2965843081474304,
-0.07832898944616318,
-0.4636756181716919,
0.31586819887161255,
-0.20570623874664307,
-0.2111395001411438,
0.37102460861206055,
-0.21810567378997803,
-0.04071899503469467,
0.10184786468744278,
-0.08247776329517365,
-0.24365052580833435,
-0.023293882608413696,
0.25644734501838684,
0.11295464634895325,
0.03501342236995697,
-0.30775031447410583,
-0.019832143560051918,
0.30565473437309265,
-0.2346799224615097,
-0.19306163489818573,
0.5117231011390686,
0.3434138596057892,
0.1927444040775299,
0.05164647102355957,
0.32190367579460144,
-0.4376545250415802,
-0.0566432811319828,
0.33490753173828125,
-0.04469253495335579,
0.10322298854589462,
-0.045901790261268616,
-0.037088312208652496,
0.3366515338420868,
0.3314463794231415,
-0.09947919100522995,
-0.1357077658176422,
-0.2525230646133423,
-0.047928329557180405,
-0.4666859805583954,
0.21786469221115112,
-0.2177700251340866,
-0.2167014330625534,
-0.1832396537065506,
-0.15586917102336884,
-0.2101266086101532,
0.06416712701320648,
-0.03126998990774155,
-0.21003201603889465,
0.59745192527771,
0.032667431980371475,
0.09728182852268219,
0.1222972720861435,
0.172913059592247,
-0.018090948462486267,
0.04739338904619217,
-0.17235592007637024,
0.15814928710460663,
-0.5800164341926575,
0.006675798445940018,
0.0762028619647026,
0.2090645730495453,
0.05309322476387024,
0.6343860030174255,
-0.10733538120985031,
-0.017783574759960175,
0.11693206429481506,
-0.013663806021213531,
0.011020258069038391,
0.5390040278434753,
0.10941863059997559,
-0.25346511602401733,
0.4687650203704834,
0.06470031291246414,
0.023142632097005844,
-0.15098732709884644,
0.159982368350029,
-0.01678502932190895,
0.448569655418396,
0.07068780064582825,
0.08066178113222122,
-0.2623237073421478,
-0.03558949753642082,
-0.3097251355648041,
-0.03072747029364109,
0.02561531774699688,
0.13992801308631897,
0.16950398683547974,
-0.29814329743385315,
0.6651458740234375,
0.1151292622089386,
0.08628787845373154,
-0.22022831439971924,
-0.38034167885780334,
0.03283952176570892,
-0.15222537517547607,
-0.13991568982601166,
0.2547723054885864,
0.2932281494140625,
-0.10678012669086456,
0.14142945408821106,
0.05609891563653946,
-0.016666844487190247,
0.06580155342817307,
0.08447601646184921,
-0.11238305270671844,
-0.0808517262339592,
0.40751147270202637,
0.01732410490512848,
0.11998309940099716,
0.2742170989513397,
0.036248765885829926,
-0.35495635867118835,
0.11082824319601059,
0.015227321535348892,
-0.3585983216762543,
0.07073915004730225,
0.12807954847812653,
-0.15874461829662323,
-0.08736439049243927,
-0.03189746290445328,
-0.2338918000459671,
0.09754212945699692,
-0.061696164309978485,
0.16726554930210114,
0.07177070528268814,
0.09851634502410889,
-0.1770446002483368,
0.3743506669998169,
0.49068766832351685,
0.03535712882876396,
0.08105988800525665,
-0.23178735375404358,
-0.12140333652496338,
0.27494311332702637,
0.22751523554325104,
-0.17880912125110626,
0.25466617941856384,
-0.2944909334182739,
-0.39852672815322876,
0.3670620024204254,
-0.45489490032196045,
-0.3134419918060303,
0.2761624753475189,
-0.28013595938682556,
0.21167150139808655,
0.23825517296791077,
0.7126069664955139,
0.12442263960838318,
0.13729771971702576,
-0.19416853785514832,
0.46997177600860596,
-0.04880061000585556,
0.1795428842306137,
-0.30250564217567444,
-0.37205803394317627,
0.13020774722099304,
0.31058090925216675,
-0.07413123548030853,
0.2812896966934204,
-0.2513272762298584,
-0.10945810377597809,
0.2009115219116211,
-0.0528668574988842,
-0.11515332013368607,
0.07137079536914825,
0.28470519185066223,
0.08233793824911118,
-0.07252069562673569,
0.22948098182678223,
-0.5079026818275452,
0.38527190685272217,
0.07409443706274033,
-0.01861996203660965,
-0.28741931915283203,
0.07328365743160248,
-0.1951988935470581,
-0.22181929647922516,
-0.32444000244140625,
-0.3200107216835022,
0.06823046505451202,
0.2085171341896057,
0.3504102826118469,
0.27876490354537964,
-0.2110823690891266,
0.739979088306427,
-0.14553214609622955,
-0.03144123777747154,
-0.29648759961128235,
-0.12625478208065033,
0.2737412452697754,
0.0036052879877388477,
-0.31999626755714417,
-0.35864657163619995,
-0.009467773139476776,
0.04740041866898537,
-0.18394145369529724,
0.19566580653190613,
-0.011054767295718193,
0.06587910652160645,
0.166473388671875,
0.05241572856903076,
-0.05027242749929428,
-0.00416593998670578,
0.4764861464500427,
-0.0469546876847744,
0.034543585032224655,
-0.13016930222511292,
0.002123534679412842,
0.4006636142730713,
0.07178648561239243,
0.2882385551929474,
-0.0036186911165714264,
-0.041877731680870056,
0.15667524933815002,
-0.20929233729839325,
0.05110762268304825,
-0.08828143775463104,
0.11730146408081055,
0.18874908983707428,
0.5320579409599304,
0.11391066014766693,
-0.18144747614860535,
0.0611933171749115,
0.14528551697731018,
0.1185951828956604,
-0.09571089595556259,
0.21846505999565125,
0.010214671492576599,
-0.006014060229063034,
-0.07025360316038132,
0.09979197382926941,
0.19254997372627258,
0.03351658582687378,
-0.1498432755470276,
-0.11674594134092331,
-0.034412894397974014,
-0.32863011956214905,
0.19417786598205566,
-0.3633454442024231,
0.1620953381061554,
-0.11059712618589401,
0.025445623323321342,
-0.14644671976566315,
-0.39862772822380066,
-0.29081249237060547,
-0.03717648983001709,
0.14820539951324463,
-0.037867993116378784,
-0.023617105558514595,
0.003924494609236717,
-0.5099948644638062,
0.10439762473106384,
-0.12400399893522263,
-0.47512418031692505,
-0.5236689448356628,
-0.04649668186903,
0.43275582790374756,
0.22105202078819275,
0.04411332309246063,
-0.26519232988357544,
0.17721150815486908,
-0.03258618339896202,
-0.8295242786407471,
-0.25674140453338623,
-0.4585855305194855,
-0.36394912004470825,
-0.029508521780371666,
0.03829256072640419,
-0.1716698408126831,
0.3360700011253357,
-0.24287761747837067,
-0.054837848991155624,
-0.33339592814445496,
-0.21783092617988586,
-0.19051478803157806,
0.2602616548538208,
-0.0007234029471874237,
-0.06799368560314178,
0.20953528583049774,
0.1357077658176422,
0.19023030996322632,
0.349783331155777,
-0.17768827080726624,
0.05595662444829941,
0.3131863474845886,
-0.2551089823246002,
0.4037918448448181,
-0.05732366442680359,
-0.31330394744873047,
-0.14913100004196167,
-0.25309351086616516,
-0.04360909014940262,
-0.27492332458496094,
0.08861205726861954,
0.27025043964385986,
-0.04323216527700424,
-0.12558650970458984,
-0.00497415428981185,
0.18881358206272125,
0.03711093217134476,
-0.36802351474761963,
0.2697691321372986,
0.15749762952327728,
0.009111074730753899,
0.09299512207508087,
0.11363431811332703,
0.3108486235141754,
0.315280020236969,
-0.63457852602005,
-0.10863280296325684,
-0.3764103353023529,
0.5060794353485107,
-0.11181414127349854,
-0.3215656876564026,
0.39905446767807007,
-0.15741972625255585,
-0.05888943374156952,
0.156469464302063,
0.21169288456439972,
0.14837972819805145,
-0.26745176315307617,
0.09998433291912079,
0.20490983128547668,
0.20109239220619202,
-0.0909527838230133,
0.440146803855896,
0.17713870108127594,
0.12417271733283997,
0.43930256366729736,
0.10346727818250656,
0.33325642347335815,
-0.21980121731758118,
0.028931809589266777,
-0.09505143761634827,
0.07168345898389816,
-0.3384298086166382,
-0.19159670174121857,
0.05399823561310768,
-0.2890104055404663,
-0.4553425908088684,
0.11857447028160095,
0.24294674396514893,
-0.14969977736473083,
0.028515998274087906,
-0.2805411219596863,
-0.010978274047374725,
-0.1697334200143814,
0.08013936132192612,
-0.27616044878959656,
-0.14797723293304443,
0.009956743568181992,
0.20666071772575378,
0.16218364238739014,
-0.05719509720802307,
-0.07467614114284515,
0.1205451637506485,
-0.5658160448074341,
0.08486460894346237,
-0.0256511140614748,
0.4518124461174011,
0.15629254281520844,
-0.028133932501077652,
0.07476155459880829,
-0.03188077732920647,
0.4254608750343323,
-0.25834137201309204,
0.061685819178819656,
0.36072424054145813,
-0.06847715377807617,
-0.510585367679596,
-0.09393663704395294,
0.21830976009368896,
-0.4383457601070404,
0.5081843733787537,
0.08289509266614914,
-0.0723707526922226,
-0.09886349737644196,
-0.3000575602054596,
0.19536304473876953,
-0.16085824370384216,
-0.30801934003829956,
-0.3353312909603119,
-0.24748000502586365,
-0.2061523199081421,
0.019720204174518585,
-0.3204556405544281,
-0.1781655251979828,
0.15021111071109772,
0.08757996559143066,
-0.08556385338306427,
0.17552977800369263,
-0.27439194917678833,
0.08211569488048553,
0.11966820806264877,
-0.21573509275913239,
0.24558639526367188,
-0.1312221884727478,
-0.018752075731754303,
-0.14057551324367523,
0.3511110246181488,
0.07583705335855484,
-0.2090984284877777,
-0.1822895109653473,
0.23188327252864838,
-0.012276746332645416,
0.29985007643699646,
0.05352810025215149,
0.24011239409446716,
-0.090455561876297,
0.2837327718734741,
-0.04022926092147827,
-0.11433180421590805,
0.0629408210515976,
-0.3597993552684784,
0.018936101347208023,
-0.272024005651474,
0.45447367429733276,
0.4892292618751526,
0.03317292034626007,
0.4425284266471863,
-0.5472683310508728,
0.05313955992460251,
-0.05154605582356453,
0.39993050694465637,
0.8958640694618225,
-0.17285320162773132,
0.050706323236227036,
0.21159550547599792,
-0.1307341754436493,
0.5927459597587585,
-0.34162795543670654,
0.21614931523799896,
-0.2544422447681427,
0.05154794827103615,
0.12897028028964996,
-0.09211476892232895,
0.019825715571641922,
-0.2598910331726074,
-0.0956394225358963,
0.2201966792345047,
-0.5183281898498535,
0.3759436011314392,
0.010100964456796646,
0.17549288272857666,
-0.47710248827934265,
-0.2426508665084839,
-0.18646714091300964,
0.06222151964902878,
-0.02440246194601059,
0.0330098532140255,
0.004448032006621361,
0.004603513050824404,
-0.011729668825864792,
0.06765097379684448,
-0.19619148969650269,
0.3398173451423645,
0.023708008229732513,
-0.00564613938331604,
-0.33029308915138245,
0.12714265286922455,
-0.5295199751853943,
0.23429803550243378,
0.16958840191364288,
-0.266453355550766,
-0.1794862300157547,
0.2702508866786957,
0.0029924586415290833,
0.19615116715431213,
0.17079541087150574,
-0.12656304240226746,
0.1022672951221466,
-0.1687754988670349,
-0.2822171151638031,
0.09138964116573334,
-0.3235566020011902,
-0.3372570276260376,
0.1994800567626953,
-0.0017578601837158203,
0.07683733850717545,
0.27031561732292175,
0.28040722012519836,
0.17986921966075897,
0.2317066788673401,
0.013721581548452377,
0.08284389972686768,
0.18122805655002594,
0.20233669877052307,
0.15963084995746613,
-0.4283212721347809,
-0.3426187336444855,
-0.22341464459896088,
0.41943132877349854,
0.3809356093406677,
0.10030318796634674,
0.10584639757871628,
-0.04583878442645073,
-0.10113559663295746,
-0.0872509554028511,
-0.27115556597709656,
-0.23477403819561005,
-0.30792197585105896,
0.25731927156448364,
0.029627090319991112,
0.06352169811725616,
0.06272445619106293,
-0.00904618576169014,
-0.13431990146636963,
0.12574449181556702,
-0.09739231318235397,
-0.30153435468673706,
-0.3135850131511688,
-0.1923922449350357,
-0.0946778804063797,
0.16597513854503632,
-0.16633695363998413,
-0.25422656536102295,
0.11164753139019012,
-0.28854233026504517,
-0.23486445844173431,
-0.1970144659280777,
-0.30830827355384827,
0.15270297229290009,
-0.05792263150215149,
-0.05732080340385437,
0.4003380537033081,
0.0036107059568166733,
-0.00709923543035984,
-0.027148637920618057,
-0.06659529358148575,
-0.1346910297870636,
0.2607863247394562,
0.2096603512763977,
0.019768299534916878,
-0.4650174379348755,
-0.010996711440384388,
-0.46774715185165405,
-0.09298895299434662,
-0.15591491758823395,
0.24576827883720398,
0.19453489780426025,
-0.141048863530159,
-0.12081684172153473,
-0.3066520392894745,
0.1862388253211975,
-0.24581854045391083,
0.15193068981170654,
-0.22572413086891174,
0.17499327659606934,
0.17609579861164093,
0.14273416996002197,
-0.1738908886909485,
0.043787114322185516,
-0.136747345328331,
-0.000004217028617858887,
-0.10439297556877136,
-0.19027692079544067,
0.08752455562353134,
-0.18690329790115356,
-0.043648120015859604,
0.11137129366397858,
0.10429106652736664,
0.3776066303253174,
0.09141983836889267,
-0.23875945806503296,
0.16270047426223755,
0.13527393341064453,
-0.05526268854737282,
-0.08756538480520248,
-0.0250854454934597,
0.20404838025569916,
-0.10741032660007477,
0.3068386912345886,
0.31366902589797974,
-0.1637880951166153,
0.5570256114006042,
-0.20934221148490906,
0.44467729330062866,
-0.11815905570983887,
0.12460225820541382,
0.0692087933421135,
0.28969573974609375,
-0.08992896974086761,
-0.03366807848215103,
0.21496818959712982,
0.17398327589035034,
0.2606831192970276,
-0.1974964737892151,
0.19400441646575928,
-0.1936783492565155,
0.40071728825569153,
-0.4610048234462738,
-0.2974484860897064,
0.22909308969974518,
0.5941737294197083,
-0.27390894293785095,
-0.210389643907547,
-0.07795971632003784,
0.006452061235904694,
-0.07943987846374512,
-0.0607992447912693,
-0.278332382440567,
0.4153035581111908,
-0.0201856791973114,
0.16853392124176025,
-0.12321703135967255,
0.003915734589099884,
-0.009098976850509644,
0.2198682725429535,
0.17813852429389954,
0.043146051466464996,
-0.05305942893028259,
0.4009590744972229,
-0.1733926385641098,
-0.49456191062927246,
0.04932290315628052,
0.11015047132968903,
0.4466829001903534,
-0.1924620419740677,
0.056518424302339554,
0.24817055463790894,
-0.12408484518527985,
0.16530682146549225,
0.3474888503551483,
0.31613293290138245,
0.48342257738113403,
0.2733990550041199,
0.2951676845550537,
0.27978357672691345,
-0.08031466603279114,
-0.01652488298714161,
0.021067433059215546,
0.17820382118225098,
0.3526720702648163,
0.07835137844085693,
0.08809554576873779,
-0.1311326026916504,
0.11381831765174866,
-0.2640015780925751,
0.38904908299446106,
0.09500382840633392,
0.156211256980896,
0.3271004855632782,
0.21067029237747192,
-0.23824205994606018,
0.19131159782409668,
-0.2921554744243622,
0.1962890774011612,
0.023947902023792267,
0.08740398287773132,
-0.03563906252384186,
-0.007421152666211128,
0.018687624484300613,
-0.13553361594676971,
0.37503066658973694,
0.26416322588920593,
0.2891286015510559,
-0.201745867729187,
-0.45859968662261963,
-0.26923325657844543,
-0.11410314589738846,
-0.31650510430336,
-0.13111336529254913,
0.24722523987293243,
0.22530943155288696,
-0.17655593156814575,
0.05091618373990059,
-0.005021125078201294,
0.3114989995956421,
0.23542442917823792,
-0.09115199744701385,
-0.1602981835603714,
-0.18464559316635132,
0.06306853145360947,
-0.0690750777721405,
-0.19034947454929352,
-0.5126153230667114,
0.16551317274570465,
-0.022159412503242493,
0.09877265244722366,
0.08514387160539627,
-0.20701521635055542,
0.31006965041160583,
0.678413987159729,
0.6373438835144043,
0.21922652423381805,
0.38797131180763245,
0.3137272894382477,
-0.5190879702568054,
-0.17263589799404144,
0.26608383655548096,
-0.1597263216972351,
-0.47071680426597595,
-0.05648625269532204,
0.15921485424041748,
-0.14221547544002533,
0.21469977498054504,
-0.5282477736473083,
0.7069826722145081,
0.12000301480293274,
-0.07916194945573807,
0.001169644296169281,
-0.21647347509860992,
0.14158564805984497,
0.2294345498085022,
-0.11227282881736755,
0.0636095479130745,
0.04767075181007385,
0.2943412661552429,
-0.5477544069290161,
0.07188894599676132,
0.3706740736961365,
0.03715042397379875,
0.16431471705436707,
-0.006197521463036537,
0.33429425954818726,
-0.25281476974487305,
0.1873793751001358,
-0.30833736062049866,
0.17692628502845764,
0.1652759611606598,
0.0681203305721283,
-0.10848097503185272,
0.23804612457752228,
0.28737542033195496,
0.0937037467956543,
-0.03845023363828659,
-0.13821077346801758,
-0.06862454861402512,
-0.17766007781028748,
-0.19345737993717194,
-0.13677185773849487
] |
https://github.com/huggingface/datasets/issues/4568 | XNLI cache reload is very slow | Hi @Muennighoff! You can set the env variable `HF_DATASETS_OFFLINE` to `1` to avoid this behavior in offline mode. More info is available [here](https://huggingface.co/docs/datasets/master/en/loading#offline). | ### Reproduce
Using `2.3.3.dev0`
`from datasets import load_dataset`
`load_dataset("xnli", "en")`
Turn off Internet
`load_dataset("xnli", "en")`
I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the library trying to download when there is no Internet. If I leave it running it works but takes way longer than when there is Internet. I would expect loading from cache to take the same amount of time regardless of whether there is Internet.
```
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
/opt/conda/lib/python3.7/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
71
---> 72 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
73 af, socktype, proto, canonname, sa = res
/opt/conda/lib/python3.7/socket.py in getaddrinfo(host, port, family, type, proto, flags)
751 addrlist = []
--> 752 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
753 af, socktype, proto, canonname, sa = res
gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
/tmp/ipykernel_33/3594208039.py in <module>
----> 1 load_dataset("xnli", "en")
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1673 revision=revision,
1674 use_auth_token=use_auth_token,
-> 1675 **config_kwargs,
1676 )
1677
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
1494 download_mode=download_mode,
1495 data_dir=data_dir,
-> 1496 data_files=data_files,
1497 )
1498
/opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1182 download_config=download_config,
1183 download_mode=download_mode,
-> 1184 dynamic_modules_path=dynamic_modules_path,
1185 ).get_module()
1186 elif path.count("/") == 1: # community dataset on the Hub
/opt/conda/lib/python3.7/site-packages/datasets/load.py in __init__(self, name, revision, download_config, download_mode, dynamic_modules_path)
506 self.dynamic_modules_path = dynamic_modules_path
507 assert self.name.count("/") == 0
--> 508 increase_load_count(name, resource_type="dataset")
509
510 def download_loading_script(self, revision: Optional[str]) -> str:
/opt/conda/lib/python3.7/site-packages/datasets/load.py in increase_load_count(name, resource_type)
166 if not config.HF_DATASETS_OFFLINE and config.HF_UPDATE_DOWNLOAD_COUNTS:
167 try:
--> 168 head_hf_s3(name, filename=name + ".py", dataset=(resource_type == "dataset"))
169 except Exception:
170 pass
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in head_hf_s3(identifier, filename, use_cdn, dataset, max_retries)
93 return http_head(
94 hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset),
---> 95 max_retries=max_retries,
96 )
97
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries)
445 allow_redirects=allow_redirects,
446 timeout=timeout,
--> 447 max_retries=max_retries,
448 )
449 return response
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params)
366 tries += 1
367 try:
--> 368 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
369 success = True
370 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err:
/opt/conda/lib/python3.7/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
527 }
528 send_kwargs.update(settings)
--> 529 resp = self.send(prep, **send_kwargs)
530
531 return resp
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in send(self, request, **kwargs)
643
644 # Send the request
--> 645 r = adapter.send(request, **kwargs)
646
647 # Total elapsed time of the request (approximately)
/opt/conda/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 decode_content=False,
449 retries=self.max_retries,
--> 450 timeout=timeout
451 )
452
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
708 body=body,
709 headers=headers,
--> 710 chunked=chunked,
711 )
712
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
384 # Trigger any extra validation we need to do.
385 try:
--> 386 self._validate_conn(conn)
387 except (SocketTimeout, BaseSSLError) as e:
388 # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
1038 # Force connect early to allow us to validate the connection.
1039 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
-> 1040 conn.connect()
1041
1042 if not conn.is_verified:
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
356 def connect(self):
357 # Add certificate verification
--> 358 self.sock = conn = self._new_conn()
359 hostname = self.host
360 tls_in_tls = False
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
173 try:
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
177
KeyboardInterrupt:
``` | 23 | XNLI cache reload is very slow
### Reproduce
Using `2.3.3.dev0`
`from datasets import load_dataset`
`load_dataset("xnli", "en")`
Turn off Internet
`load_dataset("xnli", "en")`
I cancelled the second `load_dataset` eventually cuz it took super long. It would be great to have something to specify e.g. `only_load_from_cache` and avoid the library trying to download when there is no Internet. If I leave it running it works but takes way longer than when there is Internet. I would expect loading from cache to take the same amount of time regardless of whether there is Internet.
```
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
/opt/conda/lib/python3.7/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
71
---> 72 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
73 af, socktype, proto, canonname, sa = res
/opt/conda/lib/python3.7/socket.py in getaddrinfo(host, port, family, type, proto, flags)
751 addrlist = []
--> 752 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
753 af, socktype, proto, canonname, sa = res
gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
/tmp/ipykernel_33/3594208039.py in <module>
----> 1 load_dataset("xnli", "en")
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
1673 revision=revision,
1674 use_auth_token=use_auth_token,
-> 1675 **config_kwargs,
1676 )
1677
/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs)
1494 download_mode=download_mode,
1495 data_dir=data_dir,
-> 1496 data_files=data_files,
1497 )
1498
/opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs)
1182 download_config=download_config,
1183 download_mode=download_mode,
-> 1184 dynamic_modules_path=dynamic_modules_path,
1185 ).get_module()
1186 elif path.count("/") == 1: # community dataset on the Hub
/opt/conda/lib/python3.7/site-packages/datasets/load.py in __init__(self, name, revision, download_config, download_mode, dynamic_modules_path)
506 self.dynamic_modules_path = dynamic_modules_path
507 assert self.name.count("/") == 0
--> 508 increase_load_count(name, resource_type="dataset")
509
510 def download_loading_script(self, revision: Optional[str]) -> str:
/opt/conda/lib/python3.7/site-packages/datasets/load.py in increase_load_count(name, resource_type)
166 if not config.HF_DATASETS_OFFLINE and config.HF_UPDATE_DOWNLOAD_COUNTS:
167 try:
--> 168 head_hf_s3(name, filename=name + ".py", dataset=(resource_type == "dataset"))
169 except Exception:
170 pass
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in head_hf_s3(identifier, filename, use_cdn, dataset, max_retries)
93 return http_head(
94 hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset),
---> 95 max_retries=max_retries,
96 )
97
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries)
445 allow_redirects=allow_redirects,
446 timeout=timeout,
--> 447 max_retries=max_retries,
448 )
449 return response
/opt/conda/lib/python3.7/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params)
366 tries += 1
367 try:
--> 368 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params)
369 success = True
370 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err:
/opt/conda/lib/python3.7/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
527 }
528 send_kwargs.update(settings)
--> 529 resp = self.send(prep, **send_kwargs)
530
531 return resp
/opt/conda/lib/python3.7/site-packages/requests/sessions.py in send(self, request, **kwargs)
643
644 # Send the request
--> 645 r = adapter.send(request, **kwargs)
646
647 # Total elapsed time of the request (approximately)
/opt/conda/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 decode_content=False,
449 retries=self.max_retries,
--> 450 timeout=timeout
451 )
452
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
708 body=body,
709 headers=headers,
--> 710 chunked=chunked,
711 )
712
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
384 # Trigger any extra validation we need to do.
385 try:
--> 386 self._validate_conn(conn)
387 except (SocketTimeout, BaseSSLError) as e:
388 # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.
/opt/conda/lib/python3.7/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
1038 # Force connect early to allow us to validate the connection.
1039 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
-> 1040 conn.connect()
1041
1042 if not conn.is_verified:
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
356 def connect(self):
357 # Add certificate verification
--> 358 self.sock = conn = self._new_conn()
359 hostname = self.host
360 tls_in_tls = False
/opt/conda/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
173 try:
174 conn = connection.create_connection(
--> 175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
177
KeyboardInterrupt:
```
Hi @Muennighoff! You can set the env variable `HF_DATASETS_OFFLINE` to `1` to avoid this behavior in offline mode. More info is available [here](https://huggingface.co/docs/datasets/master/en/loading#offline). | [
-0.14584548771381378,
0.058431729674339294,
0.006329108029603958,
-0.04914678633213043,
0.02681650221347809,
-0.23214468359947205,
0.19745635986328125,
0.2437468022108078,
0.18252934515476227,
-0.08453693985939026,
0.04058806598186493,
0.3258123993873596,
0.08739824593067169,
-0.19389866292476654,
-0.24720534682273865,
0.3096849322319031,
-0.006662540137767792,
0.3069881200790405,
0.3138149380683899,
0.051395490765571594,
-0.17268377542495728,
0.1520869880914688,
-0.15480655431747437,
-0.2129465490579605,
-0.3084140717983246,
0.18944396078586578,
0.3437804579734802,
0.12138383090496063,
-0.2170298546552658,
-0.6112734079360962,
0.5828165411949158,
0.19080695509910583,
0.3191511929035187,
-0.1953018605709076,
-0.00011689400707837194,
-0.14540648460388184,
0.2965843081474304,
-0.07832898944616318,
-0.4636756181716919,
0.31586819887161255,
-0.20570623874664307,
-0.2111395001411438,
0.37102460861206055,
-0.21810567378997803,
-0.04071899503469467,
0.10184786468744278,
-0.08247776329517365,
-0.24365052580833435,
-0.023293882608413696,
0.25644734501838684,
0.11295464634895325,
0.03501342236995697,
-0.30775031447410583,
-0.019832143560051918,
0.30565473437309265,
-0.2346799224615097,
-0.19306163489818573,
0.5117231011390686,
0.3434138596057892,
0.1927444040775299,
0.05164647102355957,
0.32190367579460144,
-0.4376545250415802,
-0.0566432811319828,
0.33490753173828125,
-0.04469253495335579,
0.10322298854589462,
-0.045901790261268616,
-0.037088312208652496,
0.3366515338420868,
0.3314463794231415,
-0.09947919100522995,
-0.1357077658176422,
-0.2525230646133423,
-0.047928329557180405,
-0.4666859805583954,
0.21786469221115112,
-0.2177700251340866,
-0.2167014330625534,
-0.1832396537065506,
-0.15586917102336884,
-0.2101266086101532,
0.06416712701320648,
-0.03126998990774155,
-0.21003201603889465,
0.59745192527771,
0.032667431980371475,
0.09728182852268219,
0.1222972720861435,
0.172913059592247,
-0.018090948462486267,
0.04739338904619217,
-0.17235592007637024,
0.15814928710460663,
-0.5800164341926575,
0.006675798445940018,
0.0762028619647026,
0.2090645730495453,
0.05309322476387024,
0.6343860030174255,
-0.10733538120985031,
-0.017783574759960175,
0.11693206429481506,
-0.013663806021213531,
0.011020258069038391,
0.5390040278434753,
0.10941863059997559,
-0.25346511602401733,
0.4687650203704834,
0.06470031291246414,
0.023142632097005844,
-0.15098732709884644,
0.159982368350029,
-0.01678502932190895,
0.448569655418396,
0.07068780064582825,
0.08066178113222122,
-0.2623237073421478,
-0.03558949753642082,
-0.3097251355648041,
-0.03072747029364109,
0.02561531774699688,
0.13992801308631897,
0.16950398683547974,
-0.29814329743385315,
0.6651458740234375,
0.1151292622089386,
0.08628787845373154,
-0.22022831439971924,
-0.38034167885780334,
0.03283952176570892,
-0.15222537517547607,
-0.13991568982601166,
0.2547723054885864,
0.2932281494140625,
-0.10678012669086456,
0.14142945408821106,
0.05609891563653946,
-0.016666844487190247,
0.06580155342817307,
0.08447601646184921,
-0.11238305270671844,
-0.0808517262339592,
0.40751147270202637,
0.01732410490512848,
0.11998309940099716,
0.2742170989513397,
0.036248765885829926,
-0.35495635867118835,
0.11082824319601059,
0.015227321535348892,
-0.3585983216762543,
0.07073915004730225,
0.12807954847812653,
-0.15874461829662323,
-0.08736439049243927,
-0.03189746290445328,
-0.2338918000459671,
0.09754212945699692,
-0.061696164309978485,
0.16726554930210114,
0.07177070528268814,
0.09851634502410889,
-0.1770446002483368,
0.3743506669998169,
0.49068766832351685,
0.03535712882876396,
0.08105988800525665,
-0.23178735375404358,
-0.12140333652496338,
0.27494311332702637,
0.22751523554325104,
-0.17880912125110626,
0.25466617941856384,
-0.2944909334182739,
-0.39852672815322876,
0.3670620024204254,
-0.45489490032196045,
-0.3134419918060303,
0.2761624753475189,
-0.28013595938682556,
0.21167150139808655,
0.23825517296791077,
0.7126069664955139,
0.12442263960838318,
0.13729771971702576,
-0.19416853785514832,
0.46997177600860596,
-0.04880061000585556,
0.1795428842306137,
-0.30250564217567444,
-0.37205803394317627,
0.13020774722099304,
0.31058090925216675,
-0.07413123548030853,
0.2812896966934204,
-0.2513272762298584,
-0.10945810377597809,
0.2009115219116211,
-0.0528668574988842,
-0.11515332013368607,
0.07137079536914825,
0.28470519185066223,
0.08233793824911118,
-0.07252069562673569,
0.22948098182678223,
-0.5079026818275452,
0.38527190685272217,
0.07409443706274033,
-0.01861996203660965,
-0.28741931915283203,
0.07328365743160248,
-0.1951988935470581,
-0.22181929647922516,
-0.32444000244140625,
-0.3200107216835022,
0.06823046505451202,
0.2085171341896057,
0.3504102826118469,
0.27876490354537964,
-0.2110823690891266,
0.739979088306427,
-0.14553214609622955,
-0.03144123777747154,
-0.29648759961128235,
-0.12625478208065033,
0.2737412452697754,
0.0036052879877388477,
-0.31999626755714417,
-0.35864657163619995,
-0.009467773139476776,
0.04740041866898537,
-0.18394145369529724,
0.19566580653190613,
-0.011054767295718193,
0.06587910652160645,
0.166473388671875,
0.05241572856903076,
-0.05027242749929428,
-0.00416593998670578,
0.4764861464500427,
-0.0469546876847744,
0.034543585032224655,
-0.13016930222511292,
0.002123534679412842,
0.4006636142730713,
0.07178648561239243,
0.2882385551929474,
-0.0036186911165714264,
-0.041877731680870056,
0.15667524933815002,
-0.20929233729839325,
0.05110762268304825,
-0.08828143775463104,
0.11730146408081055,
0.18874908983707428,
0.5320579409599304,
0.11391066014766693,
-0.18144747614860535,
0.0611933171749115,
0.14528551697731018,
0.1185951828956604,
-0.09571089595556259,
0.21846505999565125,
0.010214671492576599,
-0.006014060229063034,
-0.07025360316038132,
0.09979197382926941,
0.19254997372627258,
0.03351658582687378,
-0.1498432755470276,
-0.11674594134092331,
-0.034412894397974014,
-0.32863011956214905,
0.19417786598205566,
-0.3633454442024231,
0.1620953381061554,
-0.11059712618589401,
0.025445623323321342,
-0.14644671976566315,
-0.39862772822380066,
-0.29081249237060547,
-0.03717648983001709,
0.14820539951324463,
-0.037867993116378784,
-0.023617105558514595,
0.003924494609236717,
-0.5099948644638062,
0.10439762473106384,
-0.12400399893522263,
-0.47512418031692505,
-0.5236689448356628,
-0.04649668186903,
0.43275582790374756,
0.22105202078819275,
0.04411332309246063,
-0.26519232988357544,
0.17721150815486908,
-0.03258618339896202,
-0.8295242786407471,
-0.25674140453338623,
-0.4585855305194855,
-0.36394912004470825,
-0.029508521780371666,
0.03829256072640419,
-0.1716698408126831,
0.3360700011253357,
-0.24287761747837067,
-0.054837848991155624,
-0.33339592814445496,
-0.21783092617988586,
-0.19051478803157806,
0.2602616548538208,
-0.0007234029471874237,
-0.06799368560314178,
0.20953528583049774,
0.1357077658176422,
0.19023030996322632,
0.349783331155777,
-0.17768827080726624,
0.05595662444829941,
0.3131863474845886,
-0.2551089823246002,
0.4037918448448181,
-0.05732366442680359,
-0.31330394744873047,
-0.14913100004196167,
-0.25309351086616516,
-0.04360909014940262,
-0.27492332458496094,
0.08861205726861954,
0.27025043964385986,
-0.04323216527700424,
-0.12558650970458984,
-0.00497415428981185,
0.18881358206272125,
0.03711093217134476,
-0.36802351474761963,
0.2697691321372986,
0.15749762952327728,
0.009111074730753899,
0.09299512207508087,
0.11363431811332703,
0.3108486235141754,
0.315280020236969,
-0.63457852602005,
-0.10863280296325684,
-0.3764103353023529,
0.5060794353485107,
-0.11181414127349854,
-0.3215656876564026,
0.39905446767807007,
-0.15741972625255585,
-0.05888943374156952,
0.156469464302063,
0.21169288456439972,
0.14837972819805145,
-0.26745176315307617,
0.09998433291912079,
0.20490983128547668,
0.20109239220619202,
-0.0909527838230133,
0.440146803855896,
0.17713870108127594,
0.12417271733283997,
0.43930256366729736,
0.10346727818250656,
0.33325642347335815,
-0.21980121731758118,
0.028931809589266777,
-0.09505143761634827,
0.07168345898389816,
-0.3384298086166382,
-0.19159670174121857,
0.05399823561310768,
-0.2890104055404663,
-0.4553425908088684,
0.11857447028160095,
0.24294674396514893,
-0.14969977736473083,
0.028515998274087906,
-0.2805411219596863,
-0.010978274047374725,
-0.1697334200143814,
0.08013936132192612,
-0.27616044878959656,
-0.14797723293304443,
0.009956743568181992,
0.20666071772575378,
0.16218364238739014,
-0.05719509720802307,
-0.07467614114284515,
0.1205451637506485,
-0.5658160448074341,
0.08486460894346237,
-0.0256511140614748,
0.4518124461174011,
0.15629254281520844,
-0.028133932501077652,
0.07476155459880829,
-0.03188077732920647,
0.4254608750343323,
-0.25834137201309204,
0.061685819178819656,
0.36072424054145813,
-0.06847715377807617,
-0.510585367679596,
-0.09393663704395294,
0.21830976009368896,
-0.4383457601070404,
0.5081843733787537,
0.08289509266614914,
-0.0723707526922226,
-0.09886349737644196,
-0.3000575602054596,
0.19536304473876953,
-0.16085824370384216,
-0.30801934003829956,
-0.3353312909603119,
-0.24748000502586365,
-0.2061523199081421,
0.019720204174518585,
-0.3204556405544281,
-0.1781655251979828,
0.15021111071109772,
0.08757996559143066,
-0.08556385338306427,
0.17552977800369263,
-0.27439194917678833,
0.08211569488048553,
0.11966820806264877,
-0.21573509275913239,
0.24558639526367188,
-0.1312221884727478,
-0.018752075731754303,
-0.14057551324367523,
0.3511110246181488,
0.07583705335855484,
-0.2090984284877777,
-0.1822895109653473,
0.23188327252864838,
-0.012276746332645416,
0.29985007643699646,
0.05352810025215149,
0.24011239409446716,
-0.090455561876297,
0.2837327718734741,
-0.04022926092147827,
-0.11433180421590805,
0.0629408210515976,
-0.3597993552684784,
0.018936101347208023,
-0.272024005651474,
0.45447367429733276,
0.4892292618751526,
0.03317292034626007,
0.4425284266471863,
-0.5472683310508728,
0.05313955992460251,
-0.05154605582356453,
0.39993050694465637,
0.8958640694618225,
-0.17285320162773132,
0.050706323236227036,
0.21159550547599792,
-0.1307341754436493,
0.5927459597587585,
-0.34162795543670654,
0.21614931523799896,
-0.2544422447681427,
0.05154794827103615,
0.12897028028964996,
-0.09211476892232895,
0.019825715571641922,
-0.2598910331726074,
-0.0956394225358963,
0.2201966792345047,
-0.5183281898498535,
0.3759436011314392,
0.010100964456796646,
0.17549288272857666,
-0.47710248827934265,
-0.2426508665084839,
-0.18646714091300964,
0.06222151964902878,
-0.02440246194601059,
0.0330098532140255,
0.004448032006621361,
0.004603513050824404,
-0.011729668825864792,
0.06765097379684448,
-0.19619148969650269,
0.3398173451423645,
0.023708008229732513,
-0.00564613938331604,
-0.33029308915138245,
0.12714265286922455,
-0.5295199751853943,
0.23429803550243378,
0.16958840191364288,
-0.266453355550766,
-0.1794862300157547,
0.2702508866786957,
0.0029924586415290833,
0.19615116715431213,
0.17079541087150574,
-0.12656304240226746,
0.1022672951221466,
-0.1687754988670349,
-0.2822171151638031,
0.09138964116573334,
-0.3235566020011902,
-0.3372570276260376,
0.1994800567626953,
-0.0017578601837158203,
0.07683733850717545,
0.27031561732292175,
0.28040722012519836,
0.17986921966075897,
0.2317066788673401,
0.013721581548452377,
0.08284389972686768,
0.18122805655002594,
0.20233669877052307,
0.15963084995746613,
-0.4283212721347809,
-0.3426187336444855,
-0.22341464459896088,
0.41943132877349854,
0.3809356093406677,
0.10030318796634674,
0.10584639757871628,
-0.04583878442645073,
-0.10113559663295746,
-0.0872509554028511,
-0.27115556597709656,
-0.23477403819561005,
-0.30792197585105896,
0.25731927156448364,
0.029627090319991112,
0.06352169811725616,
0.06272445619106293,
-0.00904618576169014,
-0.13431990146636963,
0.12574449181556702,
-0.09739231318235397,
-0.30153435468673706,
-0.3135850131511688,
-0.1923922449350357,
-0.0946778804063797,
0.16597513854503632,
-0.16633695363998413,
-0.25422656536102295,
0.11164753139019012,
-0.28854233026504517,
-0.23486445844173431,
-0.1970144659280777,
-0.30830827355384827,
0.15270297229290009,
-0.05792263150215149,
-0.05732080340385437,
0.4003380537033081,
0.0036107059568166733,
-0.00709923543035984,
-0.027148637920618057,
-0.06659529358148575,
-0.1346910297870636,
0.2607863247394562,
0.2096603512763977,
0.019768299534916878,
-0.4650174379348755,
-0.010996711440384388,
-0.46774715185165405,
-0.09298895299434662,
-0.15591491758823395,
0.24576827883720398,
0.19453489780426025,
-0.141048863530159,
-0.12081684172153473,
-0.3066520392894745,
0.1862388253211975,
-0.24581854045391083,
0.15193068981170654,
-0.22572413086891174,
0.17499327659606934,
0.17609579861164093,
0.14273416996002197,
-0.1738908886909485,
0.043787114322185516,
-0.136747345328331,
-0.000004217028617858887,
-0.10439297556877136,
-0.19027692079544067,
0.08752455562353134,
-0.18690329790115356,
-0.043648120015859604,
0.11137129366397858,
0.10429106652736664,
0.3776066303253174,
0.09141983836889267,
-0.23875945806503296,
0.16270047426223755,
0.13527393341064453,
-0.05526268854737282,
-0.08756538480520248,
-0.0250854454934597,
0.20404838025569916,
-0.10741032660007477,
0.3068386912345886,
0.31366902589797974,
-0.1637880951166153,
0.5570256114006042,
-0.20934221148490906,
0.44467729330062866,
-0.11815905570983887,
0.12460225820541382,
0.0692087933421135,
0.28969573974609375,
-0.08992896974086761,
-0.03366807848215103,
0.21496818959712982,
0.17398327589035034,
0.2606831192970276,
-0.1974964737892151,
0.19400441646575928,
-0.1936783492565155,
0.40071728825569153,
-0.4610048234462738,
-0.2974484860897064,
0.22909308969974518,
0.5941737294197083,
-0.27390894293785095,
-0.210389643907547,
-0.07795971632003784,
0.006452061235904694,
-0.07943987846374512,
-0.0607992447912693,
-0.278332382440567,
0.4153035581111908,
-0.0201856791973114,
0.16853392124176025,
-0.12321703135967255,
0.003915734589099884,
-0.009098976850509644,
0.2198682725429535,
0.17813852429389954,
0.043146051466464996,
-0.05305942893028259,
0.4009590744972229,
-0.1733926385641098,
-0.49456191062927246,
0.04932290315628052,
0.11015047132968903,
0.4466829001903534,
-0.1924620419740677,
0.056518424302339554,
0.24817055463790894,
-0.12408484518527985,
0.16530682146549225,
0.3474888503551483,
0.31613293290138245,
0.48342257738113403,
0.2733990550041199,
0.2951676845550537,
0.27978357672691345,
-0.08031466603279114,
-0.01652488298714161,
0.021067433059215546,
0.17820382118225098,
0.3526720702648163,
0.07835137844085693,
0.08809554576873779,
-0.1311326026916504,
0.11381831765174866,
-0.2640015780925751,
0.38904908299446106,
0.09500382840633392,
0.156211256980896,
0.3271004855632782,
0.21067029237747192,
-0.23824205994606018,
0.19131159782409668,
-0.2921554744243622,
0.1962890774011612,
0.023947902023792267,
0.08740398287773132,
-0.03563906252384186,
-0.007421152666211128,
0.018687624484300613,
-0.13553361594676971,
0.37503066658973694,
0.26416322588920593,
0.2891286015510559,
-0.201745867729187,
-0.45859968662261963,
-0.26923325657844543,
-0.11410314589738846,
-0.31650510430336,
-0.13111336529254913,
0.24722523987293243,
0.22530943155288696,
-0.17655593156814575,
0.05091618373990059,
-0.005021125078201294,
0.3114989995956421,
0.23542442917823792,
-0.09115199744701385,
-0.1602981835603714,
-0.18464559316635132,
0.06306853145360947,
-0.0690750777721405,
-0.19034947454929352,
-0.5126153230667114,
0.16551317274570465,
-0.022159412503242493,
0.09877265244722366,
0.08514387160539627,
-0.20701521635055542,
0.31006965041160583,
0.678413987159729,
0.6373438835144043,
0.21922652423381805,
0.38797131180763245,
0.3137272894382477,
-0.5190879702568054,
-0.17263589799404144,
0.26608383655548096,
-0.1597263216972351,
-0.47071680426597595,
-0.05648625269532204,
0.15921485424041748,
-0.14221547544002533,
0.21469977498054504,
-0.5282477736473083,
0.7069826722145081,
0.12000301480293274,
-0.07916194945573807,
0.001169644296169281,
-0.21647347509860992,
0.14158564805984497,
0.2294345498085022,
-0.11227282881736755,
0.0636095479130745,
0.04767075181007385,
0.2943412661552429,
-0.5477544069290161,
0.07188894599676132,
0.3706740736961365,
0.03715042397379875,
0.16431471705436707,
-0.006197521463036537,
0.33429425954818726,
-0.25281476974487305,
0.1873793751001358,
-0.30833736062049866,
0.17692628502845764,
0.1652759611606598,
0.0681203305721283,
-0.10848097503185272,
0.23804612457752228,
0.28737542033195496,
0.0937037467956543,
-0.03845023363828659,
-0.13821077346801758,
-0.06862454861402512,
-0.17766007781028748,
-0.19345737993717194,
-0.13677185773849487
] |
https://github.com/huggingface/datasets/issues/4566 | Document link #load_dataset_enhancing_performance points to nowhere | Hi! This is indeed the link the docstring should point to. Are you interested in submitting a PR to fix this? | ## Describe the bug
A clear and concise description of what the bug is.

The [load_dataset_enhancing_performance](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#load_dataset_enhancing_performance) link [here](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.load_from_disk.keep_in_memory) points to nowhere, I guess it should point to https://huggingface.co/docs/datasets/v2.3.2/en/cache#improve-performance?
| 21 | Document link #load_dataset_enhancing_performance points to nowhere
## Describe the bug
A clear and concise description of what the bug is.

The [load_dataset_enhancing_performance](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#load_dataset_enhancing_performance) link [here](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.load_from_disk.keep_in_memory) points to nowhere, I guess it should point to https://huggingface.co/docs/datasets/v2.3.2/en/cache#improve-performance?
Hi! This is indeed the link the docstring should point to. Are you interested in submitting a PR to fix this? | [
-0.02718716859817505,
-0.4029790461063385,
-0.0349782332777977,
0.5097891092300415,
0.22108270227909088,
0.2674890160560608,
-0.04379759356379509,
0.26350343227386475,
0.029088251292705536,
0.066148541867733,
0.18902206420898438,
0.17872244119644165,
0.14725759625434875,
-0.163204625248909,
0.49515482783317566,
-0.17150984704494476,
0.1749689131975174,
-0.14650943875312805,
0.1492653787136078,
0.045345745980739594,
-0.2126987725496292,
0.15270118415355682,
-0.12587884068489075,
-0.06712545454502106,
-0.3737489879131317,
0.021029340103268623,
0.12129616737365723,
0.35657113790512085,
-0.04582900553941727,
-0.31722405552864075,
0.09592489898204803,
0.11999140679836273,
-0.07605618238449097,
0.36544275283813477,
-0.00010886356903938577,
-0.05211804062128067,
0.4500665068626404,
0.19309000670909882,
-0.4877640902996063,
-0.24837754666805267,
-0.2606143355369568,
0.09598993510007858,
-0.14638468623161316,
-0.048248231410980225,
-0.04876161366701126,
0.24651117622852325,
0.019724277779459953,
-0.16329681873321533,
0.004715904593467712,
0.30309587717056274,
0.24301309883594513,
0.3623325824737549,
-0.07279663532972336,
-0.14170010387897491,
0.2086292803287506,
0.1635322868824005,
-0.12637920677661896,
0.39890360832214355,
0.3088206648826599,
0.11233615130186081,
-0.0894559696316719,
0.5638490915298462,
0.025102028623223305,
-0.015191089361906052,
0.4411100745201111,
0.279230535030365,
-0.24169468879699707,
-0.012991633266210556,
0.2708173394203186,
-0.08929421752691269,
0.44047144055366516,
-0.29404905438423157,
-0.29295411705970764,
-0.31713470816612244,
-0.05126936361193657,
-0.1361154168844223,
0.38359686732292175,
-0.029673179611563683,
0.05069990083575249,
0.08964721113443375,
-0.27859100699424744,
-0.4180219769477844,
-0.17713230848312378,
0.04738662391901016,
0.06266282498836517,
-0.4038578271865845,
-0.21317610144615173,
-0.09460843354463577,
0.48646610975265503,
0.05344901978969574,
-0.10432635247707367,
0.06317631900310516,
-0.04133845493197441,
0.12416043132543564,
0.10768751800060272,
0.07916192710399628,
0.09264755249023438,
0.38749995827674866,
0.31331712007522583,
-0.005386821925640106,
0.04091964662075043,
0.07855859398841858,
-0.04019054397940636,
0.15117117762565613,
0.09165720641613007,
0.24129749834537506,
-0.11617449671030045,
0.06774257123470306,
0.22674867510795593,
0.48416703939437866,
0.01886620745062828,
-0.1292409598827362,
0.009843488223850727,
-0.21776609122753143,
-0.0824907198548317,
-0.5020649433135986,
-0.03946997970342636,
-0.1881123036146164,
-0.46003368496894836,
0.3032127618789673,
0.11463595181703568,
0.050940483808517456,
0.08031610399484634,
0.51937335729599,
0.033073779195547104,
0.07363327592611313,
0.27377617359161377,
-0.04296882450580597,
-0.36202535033226013,
-0.07933899015188217,
-0.23865759372711182,
0.28796783089637756,
-0.4960241913795471,
0.45302334427833557,
-0.043783873319625854,
-0.017055127769708633,
0.27047860622406006,
-0.014741598628461361,
0.05381769314408302,
-0.18733282387256622,
-0.17245961725711823,
0.03530065715312958,
0.09523230791091919,
0.18129245936870575,
-0.3106457591056824,
0.13513053953647614,
0.23306356370449066,
0.0725112110376358,
-0.09944900870323181,
0.047945596277713776,
-0.41500914096832275,
-0.20496702194213867,
-0.1408662050962448,
0.1842568963766098,
-0.04648323357105255,
-0.049663983285427094,
-0.3761483132839203,
0.1766868233680725,
-0.03820691257715225,
-0.20498192310333252,
0.20058289170265198,
0.20077957212924957,
-0.5278407335281372,
-0.014537788927555084,
0.2199670523405075,
0.5105413198471069,
0.3038107752799988,
-0.18552538752555847,
0.1306675225496292,
0.10486219823360443,
-0.10863957554101944,
0.16347043216228485,
-0.07806731015443802,
0.08997512608766556,
-0.467863529920578,
0.2313019186258316,
0.13928912580013275,
-0.6683372259140015,
-0.3309062719345093,
0.15476715564727783,
-0.3823186159133911,
-0.010217584669589996,
-0.07980646938085556,
-0.05849088728427887,
-0.06383422017097473,
-0.004686756059527397,
0.13314297795295715,
0.0019786879420280457,
0.1473843902349472,
0.08149124681949615,
-0.5369028449058533,
-0.10114271193742752,
-0.3137814402580261,
0.05780172720551491,
-0.17568793892860413,
0.14103907346725464,
0.000522911548614502,
0.17357894778251648,
0.1359517127275467,
0.050490546971559525,
0.07445430755615234,
0.4648202657699585,
0.06679372489452362,
0.25395524501800537,
-0.09096895903348923,
-0.09061795473098755,
-0.5300150513648987,
0.052913449704647064,
0.2129937708377838,
-0.059685781598091125,
0.004816241562366486,
-0.11210993677377701,
-0.36902880668640137,
-0.054235197603702545,
-0.03297610953450203,
-0.3635900020599365,
0.06663184612989426,
0.10278093069791794,
0.07670097053050995,
0.25888440012931824,
-0.2550552487373352,
0.3400943875312805,
-0.1951667219400406,
0.20898999273777008,
-0.2494620531797409,
0.21961946785449982,
-0.013420211151242256,
0.14008288085460663,
-0.06186036020517349,
0.15787306427955627,
0.05838548392057419,
-0.0014069804456084967,
-0.07868708670139313,
0.5035974979400635,
0.12642380595207214,
0.42808032035827637,
0.25453421473503113,
0.23966345191001892,
0.29488545656204224,
-0.3373836576938629,
0.024393413215875626,
-0.07313071191310883,
0.1587883085012436,
0.06873441487550735,
-0.38286271691322327,
0.10609853267669678,
-0.18138639628887177,
0.17665162682533264,
0.29146653413772583,
-0.08928994834423065,
-0.06054433435201645,
-0.09419809281826019,
0.06570633500814438,
-0.2872016429901123,
0.266277939081192,
0.22360417246818542,
0.5114378333091736,
0.1842450201511383,
-0.428876668214798,
0.3006158471107483,
0.3295381963253021,
0.012013714760541916,
-0.17669960856437683,
0.3946893513202667,
-0.11134577542543411,
-0.20098665356636047,
0.053697407245635986,
0.17014794051647186,
0.33551549911499023,
0.19862893223762512,
0.1555739939212799,
0.1250350922346115,
0.04708331450819969,
-0.18188057839870453,
0.24743247032165527,
-0.08989356458187103,
0.06671401113271713,
0.11090008169412613,
-0.17588266730308533,
0.017070988193154335,
-0.3401665985584259,
-0.041953086853027344,
-0.18493172526359558,
0.13018424808979034,
-0.425250768661499,
0.022100811824202538,
0.06089732050895691,
-0.264243483543396,
-0.3072856664657593,
-0.19883690774440765,
-0.271546870470047,
-0.15532879531383514,
0.023477312177419662,
0.3511665463447571,
-0.05415012314915657,
-0.03012276254594326,
-0.21678362786769867,
0.44332247972488403,
-0.10038675367832184,
-0.028127731755375862,
-0.34402167797088623,
0.09212163090705872,
-0.3064369857311249,
-0.012367026880383492,
0.13979089260101318,
0.047609567642211914,
0.24952073395252228,
-0.34260082244873047,
0.06406045705080032,
-0.4449335038661957,
-0.2489425539970398,
0.16231492161750793,
0.007088448852300644,
0.28846636414527893,
0.15286904573440552,
0.15450578927993774,
-0.3392399549484253,
-0.10657833516597748,
0.30606502294540405,
-0.21678826212882996,
-0.24971705675125122,
-0.3153769075870514,
0.14797435700893402,
0.18217013776302338,
-0.06743482500314713,
-0.21291226148605347,
0.27674445509910583,
-0.3843204975128174,
0.20543189346790314,
-0.18466031551361084,
-0.058567531406879425,
0.11578404903411865,
0.14735868573188782,
0.3545149862766266,
-0.08718946576118469,
0.33372506499290466,
-0.36910495162010193,
-0.6611673831939697,
0.11211398243904114,
-0.19592919945716858,
-0.520096480846405,
-0.08484598994255066,
0.16298644244670868,
0.1982889324426651,
-0.004354790784418583,
-0.6499151587486267,
-0.31214120984077454,
-0.03904637694358826,
0.02265743538737297,
-0.08539716899394989,
0.16646583378314972,
0.18106961250305176,
-0.037157218903303146,
-0.2333265244960785,
-0.22362291812896729,
-0.33763131499290466,
0.08160591870546341,
-0.3221365213394165,
0.276075154542923,
-0.03657657653093338,
0.14812782406806946,
0.22552385926246643,
0.5764536261558533,
0.1966651976108551,
-0.06161460652947426,
0.37464237213134766,
-0.12221746891736984,
0.44972628355026245,
-0.1754644215106964,
-0.22153916954994202,
-0.04078736901283264,
-0.06943398714065552,
-0.17411372065544128,
0.3297719359397888,
0.35157740116119385,
0.15092435479164124,
-0.09242768585681915,
-0.104363352060318,
-0.2861352562904358,
-0.225453719496727,
-0.07204102724790573,
-0.021265260875225067,
0.05512720346450806,
-0.008591976016759872,
-0.07731108367443085,
-0.1608983874320984,
-0.024495741352438927,
0.21056298911571503,
0.3642687201499939,
0.4037751853466034,
0.000809319200925529,
-0.10772828757762909,
0.16491973400115967,
-0.3976075053215027,
0.12788179516792297,
0.18895947933197021,
0.0646645799279213,
-0.3717121481895447,
-0.16710355877876282,
0.26373445987701416,
-0.10567223280668259,
0.8022725582122803,
0.0698123350739479,
0.1320992112159729,
0.04236883297562599,
-0.21929587423801422,
-0.27802276611328125,
0.29364725947380066,
0.2737099230289459,
0.032310597598552704,
0.20968270301818848,
0.3860430419445038,
-0.31711825728416443,
-0.26215851306915283,
0.1991548389196396,
-0.19764302670955658,
-0.04392583668231964,
-0.08107378333806992,
-0.2357780635356903,
-0.32128483057022095,
-0.04957558587193489,
0.07825252413749695,
0.20606377720832825,
0.16074000298976898,
0.0773700699210167,
0.00821138545870781,
0.2197583168745041,
-0.1638433337211609,
-0.08868548274040222,
-0.030895188450813293,
0.4258342385292053,
-0.05266490951180458,
0.07961535453796387,
0.4932672679424286,
0.3256813883781433,
0.40231239795684814,
0.4770543575286865,
-0.253946989774704,
-0.07330979406833649,
-0.006811104714870453,
0.13623648881912231,
0.04928937554359436,
0.46500080823898315,
0.1551242619752884,
0.033978212624788284,
0.09001199156045914,
0.11514294147491455,
-0.4292243719100952,
0.04737181216478348,
0.3060542047023773,
0.07899908721446991,
-0.08784021437168121,
-0.2645246386528015,
0.6752867698669434,
0.29285308718681335,
-0.1244182288646698,
0.4305564761161804,
0.3748251795768738,
-0.3364724814891815,
-0.11054937541484833,
0.147168830037117,
1.09237539768219,
-0.1255475878715515,
0.39274153113365173,
0.02893218770623207,
-0.1955062747001648,
0.3780522346496582,
-0.23916584253311157,
0.026583649218082428,
-0.314592570066452,
-0.25562962889671326,
-0.035542406141757965,
-0.13985365629196167,
-0.12572512030601501,
-0.2366468459367752,
-0.008820027112960815,
-0.01631874218583107,
-0.10165758430957794,
0.22957295179367065,
0.03132070600986481,
0.1300174444913864,
-0.3199501633644104,
-0.06661665439605713,
-0.2590126097202301,
0.11284813284873962,
0.062311068177223206,
0.3530600368976593,
-0.1627192199230194,
-0.03145604953169823,
-0.22082775831222534,
-0.1659211665391922,
-0.3420969843864441,
-0.13543784618377686,
-0.10411543399095535,
0.020785441622138023,
-0.020457632839679718,
-0.22543399035930634,
-0.060240622609853745,
0.49533316493034363,
0.09508655965328217,
-0.178699791431427,
-0.5373786091804504,
0.2579164206981659,
-0.08844508975744247,
-0.019060950726270676,
0.05487078055739403,
-0.21064740419387817,
0.33801162242889404,
-0.11032190918922424,
0.023357950150966644,
-0.11052054911851883,
-0.09259674698114395,
-0.372367799282074,
-0.07799427956342697,
-0.02585858851671219,
-0.1475326269865036,
-0.17595432698726654,
-0.3259010314941406,
0.07180291414260864,
0.15825596451759338,
-0.17835770547389984,
0.17837977409362793,
0.13545027375221252,
0.020591141656041145,
-0.18944847583770752,
0.26604893803596497,
-0.21793770790100098,
-0.005302153527736664,
0.7707136273384094,
-0.4088396728038788,
-0.21517802774906158,
0.048805415630340576,
0.00004780292510986328,
-0.3314287066459656,
-0.24694684147834778,
-0.03358074277639389,
0.28830185532569885,
-0.27719956636428833,
0.2459692358970642,
0.05268188565969467,
0.1529839187860489,
-0.24024495482444763,
0.10851604491472244,
0.24410265684127808,
-0.20908135175704956,
0.07425388693809509,
-0.27504533529281616,
-0.36773958802223206,
0.3113616704940796,
-0.375196635723114,
0.31090211868286133,
-0.09361808001995087,
-0.05404190346598625,
0.2677631378173828,
-0.2343454360961914,
-0.3654443919658661,
0.20109595358371735,
-0.20995670557022095,
-0.17344358563423157,
0.32350555062294006,
0.06673275679349899,
0.36561402678489685,
-0.14786627888679504,
0.0984724685549736,
0.024531956762075424,
-0.218327134847641,
-0.1812070608139038,
-0.19711297750473022,
0.15597862005233765,
-0.12842032313346863,
-0.12968768179416656,
0.00862692017108202,
0.017549801617860794,
0.007494140416383743,
-0.11841477453708649,
0.18169696629047394,
0.21106794476509094,
-0.029657118022441864,
-0.06103082746267319,
-0.141885444521904,
0.18130454421043396,
0.17567607760429382,
0.11627624928951263,
0.0788077786564827,
0.40949302911758423,
-0.01826726458966732,
-0.18117594718933105,
-0.431118369102478,
-0.15579017996788025,
0.02514738030731678,
0.2815612852573395,
0.17052702605724335,
-0.0004636496305465698,
0.18813464045524597,
-0.16814486682415009,
-0.00016794353723526,
0.16192804276943207,
0.31604400277137756,
0.3069606423377991,
-0.2900364100933075,
0.017873531207442284,
-0.03168807178735733,
0.25592726469039917,
0.11445192992687225,
-0.09377873688936234,
-0.13253097236156464,
-0.28878045082092285,
-0.01715874671936035,
0.11304889619350433,
0.38481277227401733,
-0.11971761286258698,
-0.06374962627887726,
0.08582714200019836,
0.4796752333641052,
-0.18332581222057343,
-0.03213844075798988,
0.10396043956279755,
-0.08650043606758118,
0.23396293818950653,
0.3249623775482178,
0.2709193229675293,
0.2504821717739105,
0.023077189922332764,
0.026405323296785355,
0.3871070146560669,
-0.00525733083486557,
0.5753282904624939,
-0.25145265460014343,
-0.17326605319976807,
0.1995922327041626,
0.3722957968711853,
-0.06530089676380157,
-0.10096021741628647,
-0.23272326588630676,
0.3206195533275604,
-0.14554466307163239,
-0.1522999107837677,
-0.0660502091050148,
0.0037204697728157043,
-0.1561887264251709,
-0.2238597422838211,
0.12676919996738434,
-0.22526931762695312,
-0.05832779034972191,
0.18059812486171722,
-0.039642367511987686,
-0.19697143137454987,
0.3730783760547638,
-0.09693747758865356,
-0.03787149488925934,
-0.26359033584594727,
-0.13471221923828125,
0.14584428071975708,
0.23778855800628662,
-0.1585216522216797,
0.23727665841579437,
-0.25580066442489624,
0.055666908621788025,
0.21409308910369873,
0.42566347122192383,
0.3507401943206787,
0.17927519977092743,
0.1795678585767746,
-0.34598323702812195,
-0.1937427818775177,
0.04654832184314728,
-0.0810672789812088,
0.2914034426212311,
0.022726640105247498,
-0.25853225588798523,
0.17700907588005066,
0.1743851751089096,
-0.2159069925546646,
0.32099753618240356,
-0.0968407392501831,
0.32800236344337463,
-0.22109949588775635,
-0.00936318188905716,
-0.29530033469200134,
-0.00938645750284195,
-0.3802502751350403,
-0.03711768239736557,
-0.2306930124759674,
0.15143299102783203,
0.2141946703195572,
-0.32732194662094116,
0.043992411345243454,
-0.013927397318184376,
0.11508975923061371,
0.4525544345378876,
0.36505940556526184,
0.3891716003417969,
0.14296142756938934,
-0.24924975633621216,
-0.4095761179924011,
-0.5151455402374268,
0.1625751405954361,
0.23891767859458923,
0.0797855406999588,
0.1323780119419098,
0.11708669364452362,
-0.5330884456634521,
0.03720278665423393,
0.20667055249214172,
-0.11100874841213226,
-0.0281742662191391,
0.02051369845867157,
-0.0761653482913971,
0.0771719291806221,
-0.14882341027259827,
0.12916362285614014,
-0.004969185218214989,
-0.13166680932044983,
0.1081671267747879,
-0.07942093908786774,
0.03477329760789871,
-0.2669364809989929,
0.4192088842391968,
-0.3605024516582489,
0.23213201761245728,
0.48742586374282837,
0.08700007945299149,
0.11014782637357712,
-0.1413404941558838,
-0.30529364943504333,
-0.38564547896385193,
-0.21596303582191467,
-0.1432427018880844,
0.039840199053287506,
-0.09689684212207794,
0.09581756591796875,
-0.09259392321109772,
-0.42974013090133667,
-0.1708221584558487,
0.29900649189949036,
0.24183644354343414,
0.1294996589422226,
-0.2267177253961563,
-0.09308966249227524,
-0.08602170646190643,
-0.010141153819859028,
0.25691887736320496,
0.46511006355285645,
-0.050198011100292206,
0.11648352444171906,
-0.4033660292625427,
-0.4097605347633362,
0.5628839731216431,
-0.43752729892730713,
-0.055949561297893524,
0.34040921926498413,
0.4013065695762634,
0.21840885281562805,
-0.3562221825122833,
-0.7817869186401367,
-0.11075866967439651,
0.2573375999927521,
0.22731849551200867,
-0.4554859697818756,
0.41196244955062866,
-0.2968796491622925,
0.06864255666732788,
0.06386011838912964,
0.6875876188278198,
0.07712021470069885,
-0.10054895281791687,
0.24418801069259644,
-0.2742244303226471
] |
https://github.com/huggingface/datasets/issues/4566 | Document link #load_dataset_enhancing_performance points to nowhere | https://github.com/huggingface/datasets/blame/master/docs/source/cache.mdx#L93
There seems already an anchor here. Somehow it doesn't work. I am not very familiar with how this online documentation works. | ## Describe the bug
A clear and concise description of what the bug is.

The [load_dataset_enhancing_performance](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#load_dataset_enhancing_performance) link [here](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.load_from_disk.keep_in_memory) points to nowhere, I guess it should point to https://huggingface.co/docs/datasets/v2.3.2/en/cache#improve-performance?
| 22 | Document link #load_dataset_enhancing_performance points to nowhere
## Describe the bug
A clear and concise description of what the bug is.

The [load_dataset_enhancing_performance](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#load_dataset_enhancing_performance) link [here](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datasets.Dataset.load_from_disk.keep_in_memory) points to nowhere, I guess it should point to https://huggingface.co/docs/datasets/v2.3.2/en/cache#improve-performance?
https://github.com/huggingface/datasets/blame/master/docs/source/cache.mdx#L93
There seems already an anchor here. Somehow it doesn't work. I am not very familiar with how this online documentation works. | [
0.1365206241607666,
-0.38280370831489563,
-0.01797308772802353,
0.29911839962005615,
0.16445033252239227,
0.22764623165130615,
0.12776066362857819,
0.10991497337818146,
-0.04557114094495773,
0.07462498545646667,
0.09591522812843323,
0.052384138107299805,
0.24965134263038635,
-0.1814272254705429,
0.4979407489299774,
0.008015736937522888,
0.12171480804681778,
-0.0952553004026413,
-0.045395851135253906,
-0.048014312982559204,
-0.18048721551895142,
0.10220588743686676,
-0.22847609221935272,
-0.05890627205371857,
-0.3301812708377838,
0.03879643231630325,
0.0033159982413053513,
0.16804566979408264,
-0.09418148547410965,
-0.3742885887622833,
0.222945898771286,
0.12397675216197968,
-0.18771891295909882,
0.37243518233299255,
-0.00011346147221047431,
-0.08806698769330978,
0.4307557940483093,
0.18968160450458527,
-0.5019834637641907,
-0.2203971892595291,
-0.41995683312416077,
-0.035164494067430496,
-0.027231860905885696,
-0.25855883955955505,
0.1529981791973114,
0.11221253126859665,
0.15911522507667542,
-0.08853106200695038,
0.03933947533369064,
0.30324700474739075,
0.18002650141716003,
0.2723773121833801,
-0.0437447652220726,
-0.1798647940158844,
0.21122056245803833,
0.16434741020202637,
-0.13840600848197937,
0.6991829872131348,
0.1010046973824501,
0.2048478126525879,
-0.09470031410455704,
0.532224178314209,
0.019455375149846077,
-0.026896696537733078,
0.49574151635169983,
0.20453612506389618,
-0.312480628490448,
-0.061661578714847565,
0.20372319221496582,
0.05621008574962616,
0.5332030653953552,
-0.11869872361421585,
-0.23165693879127502,
-0.23225173354148865,
-0.10225814580917358,
0.17286154627799988,
0.33595508337020874,
0.08559142798185349,
0.150690957903862,
0.11723464727401733,
-0.1681501716375351,
-0.4531518518924713,
-0.15461111068725586,
0.15144029259681702,
0.09363849461078644,
0.07180652022361755,
-0.29044201970100403,
-0.01678302139043808,
0.5713062882423401,
0.17472690343856812,
-0.24811089038848877,
0.11104372143745422,
-0.03835121914744377,
0.15678884088993073,
0.06288919597864151,
0.1199379414319992,
0.21716096997261047,
0.4717191159725189,
0.3410516381263733,
0.056355319917201996,
0.1368543654680252,
0.06832758337259293,
-0.10574868321418762,
0.22365248203277588,
0.027746928855776787,
0.4066835045814514,
-0.08833887428045273,
-0.04664485529065132,
0.34411299228668213,
0.6386008858680725,
-0.03577544540166855,
-0.14482513070106506,
-0.035556893795728683,
-0.15290910005569458,
-0.09329825639724731,
-0.4699175953865051,
0.09500293433666229,
-0.12356789410114288,
-0.454179048538208,
0.3334203362464905,
-0.17053528130054474,
-0.056257180869579315,
0.04212123528122902,
0.5335613489151001,
-0.08438649028539658,
0.12410104274749756,
0.30765146017074585,
0.014113634824752808,
-0.31356456875801086,
-0.18994084000587463,
-0.1934223175048828,
0.41377949714660645,
-0.4835624098777771,
0.39081496000289917,
-0.15576891601085663,
-0.0480557419359684,
0.26794788241386414,
-0.01948663219809532,
0.13804122805595398,
-0.3728955090045929,
-0.08878782391548157,
0.018237758427858353,
0.10936430841684341,
0.11290927976369858,
-0.24642251431941986,
0.11308174580335617,
0.21174073219299316,
0.1570960283279419,
-0.07215210795402527,
0.033212658017873764,
-0.3850032687187195,
-0.28333351016044617,
-0.0007921513170003891,
0.14793355762958527,
-0.047357842326164246,
-0.005586486309766769,
-0.23077517747879028,
0.18105396628379822,
-0.17368200421333313,
-0.18367670476436615,
0.24944859743118286,
0.449609637260437,
-0.4785018861293793,
-0.0669013187289238,
0.33908671140670776,
0.4610896110534668,
0.32955509424209595,
-0.23181945085525513,
0.016860678791999817,
0.27512669563293457,
-0.15038692951202393,
-0.013188540935516357,
-0.1231367364525795,
0.34213554859161377,
-0.5557922720909119,
0.13582193851470947,
0.21563485264778137,
-0.6572386622428894,
-0.34353840351104736,
0.30483192205429077,
-0.33065080642700195,
-0.09259401261806488,
-0.004190914332866669,
-0.010536999441683292,
-0.12109147012233734,
-0.01670612022280693,
-0.05044931173324585,
-0.11184434592723846,
0.14858531951904297,
-0.04904083162546158,
-0.39292535185813904,
-0.007394682615995407,
-0.45160454511642456,
-0.03352530673146248,
-0.26623106002807617,
0.06324502825737,
0.01241978257894516,
0.18500669300556183,
0.11436034739017487,
0.08982342481613159,
0.05116957426071167,
0.49624764919281006,
0.16483430564403534,
0.1461838185787201,
-0.05298576503992081,
0.12510693073272705,
-0.6039266586303711,
0.014112375676631927,
0.18337364494800568,
0.02317320741713047,
-0.1034795343875885,
-0.17877918481826782,
-0.4903596341609955,
0.02658039517700672,
-0.047024618834257126,
-0.5074325203895569,
0.014894850552082062,
0.0864492729306221,
0.15020643174648285,
0.3243611454963684,
-0.2683682143688202,
0.2733515202999115,
-0.05356239527463913,
0.277458131313324,
-0.1904786229133606,
0.17383798956871033,
-0.08474622666835785,
0.23843275010585785,
-0.21338751912117004,
0.1966254562139511,
0.10238443315029144,
-0.15004803240299225,
-0.11800075322389603,
0.6504547595977783,
-0.0015351860783994198,
0.3339749574661255,
0.17177444696426392,
0.2213847041130066,
0.28486067056655884,
-0.41928040981292725,
0.0248858779668808,
-0.030845921486616135,
0.15626563131809235,
0.028124161064624786,
-0.4203953444957733,
0.1757863312959671,
-0.19118647277355194,
0.30066314339637756,
0.2176664024591446,
-0.050645265728235245,
0.020099172368645668,
-0.06846433132886887,
-0.03928496688604355,
-0.321266233921051,
0.24565766751766205,
0.13830605149269104,
0.6110121011734009,
0.0862099677324295,
-0.32837527990341187,
0.23693519830703735,
0.06343596428632736,
0.023529380559921265,
-0.044626571238040924,
0.2534041106700897,
-0.18100765347480774,
-0.18879568576812744,
0.13350248336791992,
0.2797495424747467,
0.4163166284561157,
0.1403370052576065,
0.31124240159988403,
0.15376408398151398,
-0.023062288761138916,
-0.2068345546722412,
0.1409802883863449,
-0.08206397294998169,
-0.059197865426540375,
0.014342188835144043,
-0.13719433546066284,
0.018880266696214676,
-0.20533928275108337,
-0.07021181285381317,
-0.14467750489711761,
-0.0073449499905109406,
-0.3555751144886017,
0.1776355504989624,
0.035144299268722534,
-0.4513753652572632,
-0.3474571406841278,
-0.26713433861732483,
-0.2783028185367584,
-0.4828857183456421,
-0.11283230781555176,
0.35548731684684753,
-0.12558992207050323,
0.0751071646809578,
-0.23488187789916992,
0.46664100885391235,
-0.216677725315094,
0.14157770574092865,
-0.19877131283283234,
0.07482826709747314,
-0.3287349343299866,
-0.09783925116062164,
0.11178562045097351,
-0.044093336910009384,
0.11475540697574615,
-0.3137929141521454,
0.03581208363175392,
-0.34268441796302795,
-0.39021915197372437,
0.20483891665935516,
0.1276548206806183,
0.13472971320152283,
0.11427950114011765,
0.13683393597602844,
-0.34554582834243774,
-0.11190284788608551,
0.2977122664451599,
-0.24408164620399475,
-0.16865046322345734,
-0.247171089053154,
0.12778237462043762,
0.2770240008831024,
-0.13568732142448425,
-0.19983819127082825,
0.3772835433483124,
-0.3766762316226959,
0.059026192873716354,
-0.25982466340065,
0.003070186823606491,
0.13508273661136627,
0.022877395153045654,
0.37360313534736633,
-0.03253193572163582,
0.3433389961719513,
-0.3428807556629181,
-0.6186208128929138,
0.3327629566192627,
-0.2934361696243286,
-0.4534328579902649,
0.09080639481544495,
0.1113559752702713,
0.32322317361831665,
-0.17141513526439667,
-0.6657216548919678,
-0.4494045078754425,
-0.052178241312503815,
-0.1216290295124054,
-0.12446437776088715,
0.35584190487861633,
0.07959609478712082,
-0.14114920794963837,
-0.18064580857753754,
-0.26727837324142456,
-0.2581387162208557,
0.23727363348007202,
-0.2800486981868744,
0.17267832159996033,
-0.022062353789806366,
0.2553946077823639,
0.3443892002105713,
0.47865504026412964,
0.11039802432060242,
0.08418609201908112,
0.36810368299484253,
-0.04980970919132233,
0.5326354503631592,
-0.1469946801662445,
-0.12471161037683487,
-0.1366056501865387,
-0.08107861876487732,
-0.11346585303544998,
0.2914402484893799,
0.3898856043815613,
0.19937843084335327,
-0.26062294840812683,
-0.05972961708903313,
-0.33190515637397766,
-0.3316083252429962,
-0.178960919380188,
-0.2502670884132385,
0.023315198719501495,
0.01761883869767189,
-0.07298821955919266,
0.0038599688559770584,
0.09660494327545166,
0.28837817907333374,
0.2678385376930237,
0.34633639454841614,
-0.06390628963708878,
-0.11117319017648697,
0.03646731749176979,
-0.4311513304710388,
0.16818921267986298,
0.0346529446542263,
-0.004426797851920128,
-0.24799278378486633,
-0.1953284740447998,
0.3243802785873413,
-0.05616891384124756,
0.6228228807449341,
0.06829444319009781,
0.18646012246608734,
-0.0325598269701004,
-0.016622820869088173,
-0.24895237386226654,
0.21530131995677948,
0.24863392114639282,
0.0019742059521377087,
0.3849099278450012,
0.18534597754478455,
-0.5065921545028687,
-0.1930997669696808,
0.24405473470687866,
-0.2970658242702484,
-0.05942917615175247,
-0.12089652568101883,
-0.20149299502372742,
-0.2721479535102844,
-0.02782689966261387,
-0.08889506012201309,
0.19826863706111908,
0.036077920347452164,
0.26931706070899963,
0.09323246777057648,
0.24152062833309174,
-0.1806451678276062,
-0.14522790908813477,
-0.13145598769187927,
0.33684679865837097,
0.06258122622966766,
-0.042713016271591187,
0.5428190231323242,
0.2475261241197586,
0.25906479358673096,
0.6842395067214966,
-0.07633557915687561,
-0.019819602370262146,
0.009190608747303486,
0.23408497869968414,
0.01678505539894104,
0.4833768308162689,
0.2549589276313782,
0.009933717548847198,
0.1636602133512497,
-0.0005050152540206909,
-0.379467248916626,
0.24144919216632843,
0.18587033450603485,
0.09082844853401184,
-0.02014061063528061,
-0.2531983256340027,
0.7000583410263062,
0.2260541319847107,
-0.11135251820087433,
0.45514819025993347,
0.5576310753822327,
-0.22230809926986694,
-0.17884138226509094,
0.07291539013385773,
1.1817196607589722,
0.11891284584999084,
0.3196152150630951,
0.16374987363815308,
-0.24818994104862213,
0.47251221537590027,
-0.31522268056869507,
-0.021396007388830185,
-0.20687393844127655,
-0.25286829471588135,
-0.08980368077754974,
-0.15213371813297272,
-0.19314628839492798,
-0.26590412855148315,
-0.12877950072288513,
-0.08121243864297867,
-0.10000188648700714,
0.41937172412872314,
0.07380770891904831,
0.010682255029678345,
-0.21747465431690216,
-0.019014127552509308,
-0.21257005631923676,
0.05223432183265686,
0.17224431037902832,
0.4337822198867798,
-0.27509763836860657,
-0.07828507572412491,
-0.19041049480438232,
-0.11965160071849823,
-0.24407166242599487,
0.01381715014576912,
0.07364092022180557,
0.14676694571971893,
0.08290168642997742,
-0.14529205858707428,
-0.13279177248477936,
0.46611538529396057,
0.10131832212209702,
-0.1902935653924942,
-0.47990357875823975,
0.18310590088367462,
-0.12018328160047531,
-0.0032827327959239483,
0.1651274561882019,
-0.19560512900352478,
0.3208666443824768,
-0.13000190258026123,
-0.04114469140768051,
0.006486121565103531,
-0.09942503273487091,
-0.34430545568466187,
0.11743316054344177,
0.03832446411252022,
-0.32368963956832886,
-0.1515115648508072,
-0.41136226058006287,
0.22157476842403412,
0.12858743965625763,
-0.11489026248455048,
0.11883176863193512,
0.12697617709636688,
-0.11098873615264893,
-0.3014950454235077,
0.28386446833610535,
-0.26149386167526245,
-0.016259200870990753,
0.8002411127090454,
-0.5485531687736511,
-0.16886527836322784,
0.014738528057932854,
-0.04750269651412964,
-0.248818501830101,
-0.1383187472820282,
0.06814400106668472,
0.23202365636825562,
-0.2850891649723053,
0.03528713807463646,
-0.13702723383903503,
0.2473071962594986,
-0.3389020562171936,
0.09596347063779831,
0.2334926277399063,
-0.017989903688430786,
0.03920840099453926,
-0.2520388960838318,
-0.3849829137325287,
0.4391988515853882,
-0.34130075573921204,
0.11220788955688477,
-0.08807960897684097,
-0.1844363808631897,
0.41207355260849,
-0.013131735846400261,
-0.30016547441482544,
0.0932384803891182,
-0.17266781628131866,
-0.2834521234035492,
0.34538939595222473,
0.11898816376924515,
0.4238496422767639,
-0.03217754885554314,
0.021211208775639534,
-0.01561371237039566,
-0.23733046650886536,
-0.10703232884407043,
-0.140157550573349,
0.1863287389278412,
-0.026979152113199234,
-0.15456321835517883,
-0.04124872758984566,
-0.1395338773727417,
0.03387909010052681,
-0.12242692708969116,
0.11062672734260559,
0.1017073318362236,
-0.10145863890647888,
-0.14682888984680176,
-0.09736347198486328,
0.2507890462875366,
-0.10288859903812408,
-0.012455958873033524,
0.1174795925617218,
0.29245463013648987,
0.11044818162918091,
-0.2517748773097992,
-0.36305010318756104,
-0.22848065197467804,
-0.03852703049778938,
0.29657259583473206,
0.16669461131095886,
-0.1397402286529541,
0.2738220691680908,
-0.15578798949718475,
0.17061205208301544,
0.0855930969119072,
0.3513282239437103,
0.2938201427459717,
-0.16909259557724,
0.03789845108985901,
-0.06057267636060715,
0.16467536985874176,
0.09444017708301544,
-0.07896505296230316,
-0.18472568690776825,
-0.1238102838397026,
0.030724551528692245,
0.21097134053707123,
0.4487108886241913,
-0.09089560061693192,
0.017880871891975403,
0.2436470091342926,
0.20851564407348633,
-0.07166137546300888,
0.027063684538006783,
0.0458982028067112,
-0.13488426804542542,
0.35808873176574707,
0.4441435933113098,
0.2759312391281128,
0.37724190950393677,
-0.18859528005123138,
0.10381528735160828,
0.3435888886451721,
0.22698462009429932,
0.4433373510837555,
-0.170457661151886,
-0.1917039006948471,
0.08316867053508759,
0.3281959295272827,
0.05572110414505005,
-0.20978063344955444,
-0.1672096848487854,
0.22407987713813782,
-0.09852700680494308,
-0.1498233526945114,
0.00861726887524128,
-0.04427238181233406,
-0.04743962734937668,
-0.24401722848415375,
0.01862955093383789,
-0.2063237428665161,
-0.10078322887420654,
0.05876227095723152,
0.10146723687648773,
-0.24411942064762115,
0.4298894703388214,
-0.19643066823482513,
0.011947833001613617,
-0.2624402940273285,
-0.10552433878183365,
0.2511276602745056,
0.4078094959259033,
-0.16596996784210205,
0.2492046058177948,
-0.20755310356616974,
0.057169027626514435,
0.22457708418369293,
0.3607630431652069,
0.32356712222099304,
0.17117755115032196,
0.12087929248809814,
-0.2300427258014679,
-0.2722119987010956,
-0.010199690237641335,
-0.031836431473493576,
0.09152093529701233,
0.09241703152656555,
-0.33562013506889343,
0.14863499999046326,
0.11553364992141724,
-0.21619576215744019,
0.5340408086776733,
-0.06933601200580597,
0.3752981722354889,
-0.1599409431219101,
-0.005887307226657867,
-0.2845970392227173,
0.0040383413434028625,
-0.3141365945339203,
0.004353366792201996,
-0.3080582916736603,
0.070436030626297,
0.09828610718250275,
-0.31557899713516235,
-0.0549122616648674,
-0.08297377079725266,
0.07851075381040573,
0.4963698089122772,
0.3483191132545471,
0.45076465606689453,
0.10856682807207108,
-0.1530231237411499,
-0.5478881001472473,
-0.5197997093200684,
0.1953313648700714,
0.19302092492580414,
-0.08520345389842987,
0.1172400414943695,
0.10246768593788147,
-0.5166794061660767,
0.12189628928899765,
0.2924017310142517,
-0.13291297852993011,
0.10814361274242401,
0.029095984995365143,
-0.14003469049930573,
-0.024120811372995377,
-0.26011067628860474,
0.2454989105463028,
-0.13277709484100342,
-0.0640941932797432,
0.037912458181381226,
-0.2367829978466034,
-0.02211596816778183,
0.10898808389902115,
0.21630388498306274,
-0.33448609709739685,
0.2341582328081131,
0.6215810179710388,
-0.02441241778433323,
0.15944163501262665,
-0.05755631625652313,
-0.2594168186187744,
-0.38647571206092834,
-0.07752655446529388,
-0.040616169571876526,
0.04278542101383209,
-0.10233248770236969,
-0.02806011773645878,
-0.1740293949842453,
-0.2857396602630615,
-0.13938754796981812,
0.25650668144226074,
0.2639005184173584,
0.07324928045272827,
-0.208926722407341,
-0.06820277124643326,
-0.22875773906707764,
0.019219597801566124,
0.3510909378528595,
0.39276978373527527,
-0.04741763323545456,
0.09768326580524445,
-0.3993920087814331,
-0.36901184916496277,
0.426025927066803,
-0.212630957365036,
0.0559709407389164,
0.3222604990005493,
0.46458449959754944,
0.09228534996509552,
-0.3496682941913605,
-0.7945789098739624,
-0.08019480854272842,
0.2506842017173767,
0.22315293550491333,
-0.5166776180267334,
0.2746463119983673,
-0.2558836340904236,
0.0022749267518520355,
0.03569997474551201,
0.6284372806549072,
0.15041300654411316,
-0.09096652269363403,
0.0712544173002243,
-0.21142567694187164
] |
https://github.com/huggingface/datasets/issues/4562 | Dataset Viewer issue for allocine | Note that the underlying issue is that datasets containing TAR files are not streamable out of the box: they need being iterated with `dl_manager.iter_archive` to avoid performance issues because they access their file content *sequentially* (no random access). | ### Link
https://huggingface.co/datasets/allocine
### Description
Not sure if this is a problem with `bz2` compression, but I thought these datasets could be streamed:
```
Status code: 400
Exception: AttributeError
Message: 'TarContainedFile' object has no attribute 'readable'
```
### Owner
No | 38 | Dataset Viewer issue for allocine
### Link
https://huggingface.co/datasets/allocine
### Description
Not sure if this is a problem with `bz2` compression, but I thought these datasets could be streamed:
```
Status code: 400
Exception: AttributeError
Message: 'TarContainedFile' object has no attribute 'readable'
```
### Owner
No
Note that the underlying issue is that datasets containing TAR files are not streamable out of the box: they need being iterated with `dl_manager.iter_archive` to avoid performance issues because they access their file content *sequentially* (no random access). | [
-0.367940217256546,
-0.06806222349405289,
-0.00010710582137107849,
0.7290315628051758,
0.31127840280532837,
0.09571170061826706,
-0.12551069259643555,
0.329306036233902,
-0.08155284076929092,
0.26617664098739624,
-0.33151957392692566,
0.09606558829545975,
-0.3103848099708557,
0.04245790094137192,
-0.007082986645400524,
0.05520026758313179,
-0.17415034770965576,
0.35343822836875916,
0.08962362259626389,
0.1080286055803299,
-0.16695529222488403,
-0.0965760201215744,
-0.10610286891460419,
0.021406099200248718,
0.20702245831489563,
0.029779953882098198,
-0.006376875564455986,
0.006745796650648117,
-0.4755699038505554,
-0.4442765414714813,
0.26245471835136414,
0.41045621037483215,
0.3574770987033844,
0.4453665018081665,
-0.00011782427463913336,
0.16244907677173615,
0.262267142534256,
-0.17834115028381348,
-0.2691793143749237,
-0.3090391159057617,
-0.28013840317726135,
-0.03938768804073334,
0.20685480535030365,
-0.1516459882259369,
0.013273172080516815,
-0.41247355937957764,
0.21812528371810913,
-0.505811870098114,
0.5200070738792419,
-0.06127522885799408,
0.14231465756893158,
0.1450245976448059,
0.006233863532543182,
0.15243029594421387,
0.5227155089378357,
0.002896837890148163,
-0.2783617079257965,
-0.05256505683064461,
0.03538616746664047,
0.3148745596408844,
-0.0702274963259697,
0.4088468849658966,
-0.15793341398239136,
0.1752638965845108,
0.3610363304615021,
-0.2757554054260254,
-0.24352562427520752,
-0.4372478723526001,
-0.11941058188676834,
0.5738892555236816,
0.6318910717964172,
0.05697513744235039,
-0.49719133973121643,
0.059598326683044434,
0.1396952122449875,
-0.38615095615386963,
-0.050021566450595856,
0.42284294962882996,
0.027612950652837753,
0.12259118258953094,
-0.09844687581062317,
0.09795643389225006,
-0.35134628415107727,
-0.14557582139968872,
-0.24150320887565613,
0.015753477811813354,
-0.338919997215271,
-0.1601487398147583,
0.34668561816215515,
-0.005964081734418869,
0.3972565829753876,
0.23534747958183289,
-0.5338862538337708,
-0.15893271565437317,
-0.29380467534065247,
-0.014071803539991379,
-0.09886565059423447,
0.07582835108041763,
-0.012523828074336052,
0.2999364733695984,
0.6755972504615784,
0.21424415707588196,
0.0684579461812973,
0.11259196698665619,
0.24778881669044495,
0.06193540617823601,
0.22659742832183838,
0.07298270612955093,
0.2931908965110779,
0.07085053622722626,
0.09928491711616516,
-0.3203275203704834,
-0.4964999854564667,
-0.10996990650892258,
-0.07016247510910034,
-0.1811077892780304,
0.28142249584198,
-0.3021529018878937,
-0.461934894323349,
0.11114551872015,
-0.2392635941505432,
-0.1864514946937561,
0.10875743627548218,
0.38093113899230957,
-0.26221543550491333,
-0.010232813656330109,
0.08545659482479095,
0.19357657432556152,
-0.08052375912666321,
-0.3191022276878357,
-0.08090993762016296,
-0.1277741938829422,
-0.1045982837677002,
-0.13882561028003693,
0.2698494493961334,
-0.5414395928382874,
0.13740622997283936,
-0.17156842350959778,
0.16586852073669434,
0.08524616062641144,
0.15482977032661438,
-0.21420760452747345,
0.3660886883735657,
0.4655804932117462,
0.25621429085731506,
0.005963742733001709,
0.15336798131465912,
-0.10202476382255554,
-0.04768531769514084,
-0.0734429880976677,
-0.02830946445465088,
-0.2599310278892517,
-0.2673879861831665,
0.09190870076417923,
-0.29343920946121216,
0.1730230748653412,
-0.0006965324282646179,
-0.0803377628326416,
0.14436069130897522,
-0.2998158633708954,
-0.3613957464694977,
-0.13584424555301666,
-0.020049214363098145,
-0.013947033323347569,
0.32538342475891113,
0.4837256669998169,
-0.43693265318870544,
0.07034148275852203,
-0.24399840831756592,
0.13963279128074646,
0.2792494595050812,
0.057647548615932465,
-0.20582161843776703,
-0.131163090467453,
-0.09506329894065857,
-0.13288521766662598,
0.6804089546203613,
-0.17902812361717224,
-0.4514332115650177,
0.3380804657936096,
-0.05864609777927399,
0.21674983203411102,
0.5407149791717529,
-0.19063784182071686,
0.7912650108337402,
-0.08150679618120193,
0.06836184114217758,
-0.2552749514579773,
0.1742628812789917,
-0.0852876529097557,
-0.30702218413352966,
-0.2386854737997055,
0.22748269140720367,
0.09023985266685486,
0.21578241884708405,
0.23328223824501038,
0.23472633957862854,
0.1967202126979828,
0.3851957321166992,
-0.018111493438482285,
0.26208099722862244,
-0.20955397188663483,
0.22448478639125824,
-0.17652039229869843,
0.15516580641269684,
-0.07598580420017242,
-0.06322956830263138,
-0.04044044390320778,
-0.10584935545921326,
-0.036946967244148254,
-0.27484941482543945,
-0.06693273782730103,
-0.06107940524816513,
-0.16338635981082916,
-0.2669418454170227,
-0.2326957881450653,
0.18877355754375458,
0.25550341606140137,
-0.39180514216423035,
-0.041328705847263336,
-0.31407904624938965,
0.1915023773908615,
-0.08902143687009811,
0.13416816294193268,
0.2325887382030487,
0.2616366744041443,
0.06051768362522125,
-0.14466790854930878,
0.0031177401542663574,
-0.15973958373069763,
-0.008235201239585876,
-0.19411557912826538,
-0.0994696170091629,
0.03932313621044159,
-0.2709886133670807,
-0.12546131014823914,
-0.004627924412488937,
0.2650662064552307,
0.26825767755508423,
-0.2549073398113251,
0.19341988861560822,
-0.06993021070957184,
0.1461530476808548,
-0.05562834441661835,
-0.2272152602672577,
0.2023046314716339,
-0.015735458582639694,
0.36971914768218994,
0.028171658515930176,
0.1557246595621109,
0.05272810906171799,
0.2213553488254547,
-0.24763989448547363,
0.032268740236759186,
0.18211282789707184,
0.03662837669253349,
-0.04992832988500595,
0.05868542939424515,
-0.19877564907073975,
0.23523002862930298,
0.36741453409194946,
0.17342595756053925,
-0.3110758364200592,
0.05500418320298195,
-0.23400646448135376,
-0.01030561700463295,
0.28583458065986633,
0.40211957693099976,
0.14885933697223663,
0.18455974757671356,
0.11251658946275711,
-0.07286957651376724,
0.14150452613830566,
-0.09873868525028229,
0.035319745540618896,
0.09335920959711075,
0.015191841870546341,
0.1736258715391159,
-0.10506424307823181,
0.07410334050655365,
-0.4422166347503662,
-0.02601381205022335,
0.26093921065330505,
0.07889087498188019,
-0.2556498050689697,
0.09388910979032516,
-0.29822391271591187,
-0.19000443816184998,
0.10055046528577805,
0.07639836519956589,
-0.18673191964626312,
-0.3938363194465637,
-0.12723638117313385,
0.7789348363876343,
0.029011424630880356,
-0.15658637881278992,
-0.3214403986930847,
0.45565176010131836,
0.16494528949260712,
0.08525308221578598,
-0.28210946917533875,
-0.11147753149271011,
-0.12013120204210281,
0.06990627944469452,
0.18457841873168945,
-0.4696957468986511,
0.15157264471054077,
-0.23498587310314178,
0.2335490733385086,
-0.0932253748178482,
-0.2494441270828247,
0.1118190586566925,
-0.1427581012248993,
0.12097503244876862,
-0.19545024633407593,
0.22115106880664825,
-0.1654328554868698,
-0.3999198079109192,
0.14566411077976227,
0.21985484659671783,
-0.07678624242544174,
0.3237515389919281,
-0.06305993348360062,
-0.16556468605995178,
-0.04931036755442619,
-0.09199493378400803,
-0.2638532817363739,
-0.5271416306495667,
0.30699098110198975,
0.11195595562458038,
0.08680594712495804,
-0.08566460758447647,
-0.059025838971138,
-0.09532690793275833,
-0.0883808434009552,
0.19132837653160095,
0.007009296678006649,
-0.7185962200164795,
0.32141315937042236,
-0.3654420077800751,
-0.4201803207397461,
0.04654693976044655,
0.26348263025283813,
0.25782492756843567,
0.3525382876396179,
-0.5737950205802917,
0.3446942865848541,
-0.21957863867282867,
-0.226413294672966,
0.1851385086774826,
-0.023895831778645515,
0.25825658440589905,
0.29356151819229126,
-0.0026412997394800186,
-0.11261613667011261,
-0.13894231617450714,
0.15381945669651031,
0.0010262802243232727,
0.14696469902992249,
-0.22198891639709473,
-0.005864381790161133,
0.18546538054943085,
0.30107682943344116,
0.1758638620376587,
0.26785847544670105,
0.4645194113254547,
0.07564317435026169,
0.7214545607566833,
-0.059623174369335175,
-0.4452078342437744,
0.2744014859199524,
-0.2146075963973999,
0.03515726700425148,
0.23696880042552948,
0.0821041688323021,
-0.40384358167648315,
-0.25026005506515503,
0.06473460793495178,
-0.3101634383201599,
-0.23958256840705872,
-0.14405557513237,
-0.2763863503932953,
-0.25839465856552124,
0.14223763346672058,
0.22926375269889832,
0.006458627060055733,
-0.16547170281410217,
-0.005686615128070116,
0.4652221202850342,
0.2910766303539276,
0.027169033885002136,
-0.004544667899608612,
0.03125429153442383,
-0.2752211093902588,
0.18144600093364716,
-0.3003905713558197,
0.23701727390289307,
-0.12286980450153351,
-0.16100606322288513,
0.24668101966381073,
-0.050729695707559586,
0.4127994775772095,
0.08170183002948761,
0.022069048136472702,
0.4621914327144623,
-0.24137921631336212,
-0.17455020546913147,
-0.21444353461265564,
-0.08895690739154816,
0.05293138697743416,
-0.18940608203411102,
0.09252508729696274,
-0.19982872903347015,
-0.10390092432498932,
0.14001768827438354,
-0.17309941351413727,
-0.16733530163764954,
0.046653419733047485,
0.0032653138041496277,
-0.010692857205867767,
0.08281250298023224,
-0.06343794614076614,
-0.15484383702278137,
0.24920468032360077,
-0.3646673560142517,
-0.12272882461547852,
-0.3490673005580902,
-0.03601887822151184,
0.27426618337631226,
0.29476064443588257,
0.09101109951734543,
0.2528597414493561,
0.12958519160747528,
0.39639154076576233,
0.13917851448059082,
0.3160223364830017,
0.4529348611831665,
0.16649354994297028,
-0.6071391105651855,
0.28901055455207825,
-0.23687094449996948,
0.07511414587497711,
0.16834315657615662,
-0.2140229195356369,
-0.18888172507286072,
0.05128404498100281,
0.020177409052848816,
-0.25875183939933777,
0.20324639976024628,
0.5484094023704529,
-0.2793988585472107,
-0.4818556606769562,
-0.3819747865200043,
0.2589729130268097,
0.19909681379795074,
-0.04797585681080818,
0.722724437713623,
0.14359626173973083,
0.03649720922112465,
0.43384748697280884,
0.1642206311225891,
0.9811059832572937,
-0.08999177813529968,
0.002623610198497772,
0.08316624164581299,
-0.1730138212442398,
0.30170169472694397,
-0.6162241101264954,
0.263571560382843,
-0.2323438823223114,
-0.7223189473152161,
-0.08340755850076675,
0.06690393388271332,
0.13799479603767395,
-0.006614290177822113,
-0.2726201117038727,
-0.14657138288021088,
-0.20599322021007538,
-0.16675588488578796,
-0.08511993288993835,
-0.1779521107673645,
-0.21508057415485382,
-0.12708008289337158,
-0.1526363641023636,
0.14019888639450073,
-0.06552677601575851,
0.33682408928871155,
0.05283137410879135,
-0.37166035175323486,
0.231943279504776,
-0.04124641790986061,
-0.34642714262008667,
0.21038249135017395,
-0.12136570364236832,
-0.2791687250137329,
-0.5615556836128235,
-0.2751139998435974,
0.03605728596448898,
0.03084268420934677,
0.12312822043895721,
0.14942093193531036,
-0.25333312153816223,
-0.0893077701330185,
0.07175175100564957,
0.07844323664903641,
0.15937645733356476,
0.13745920360088348,
0.10130443423986435,
-0.12394143640995026,
0.007336355745792389,
0.19680052995681763,
0.11080724000930786,
-0.03840818628668785,
0.5862918496131897,
-0.023867167532444,
0.07930511981248856,
-0.27321764826774597,
0.4576069116592407,
-0.04212397336959839,
-0.02145998366177082,
-0.2539500296115875,
0.07892844080924988,
0.017928514629602432,
-0.13176818192005157,
0.04730084165930748,
0.1003553718328476,
-0.2342987209558487,
-0.053041744977235794,
0.3326528072357178,
0.06966258585453033,
0.25832924246788025,
0.20895645022392273,
-0.19656506180763245,
-0.33021873235702515,
-0.09109538793563843,
0.12123929709196091,
-0.07599249482154846,
-0.2956366539001465,
0.2417982816696167,
-0.045733917504549026,
-0.002335578203201294,
-0.08860522508621216,
0.29999545216560364,
0.16326501965522766,
0.013276297599077225,
-0.09882815182209015,
-0.4096745550632477,
-0.17497147619724274,
0.15150703489780426,
-0.24945314228534698,
0.26338502764701843,
-0.11697382479906082,
-0.20511841773986816,
0.0763297900557518,
0.022901155054569244,
-0.2784675359725952,
-0.0977555438876152,
-0.05644603818655014,
-0.08110611140727997,
-0.12831245362758636,
-0.04862389713525772,
0.21598932147026062,
0.11807608604431152,
0.011822344735264778,
0.07118511945009232,
-0.27072346210479736,
-0.08317936211824417,
-0.1827942430973053,
0.19018636643886566,
0.09694189578294754,
-0.09747709333896637,
-0.15965773165225983,
-0.28712207078933716,
-0.21224386990070343,
-0.11000450700521469,
0.22652022540569305,
0.02576635032892227,
0.07514557242393494,
-0.03490417078137398,
0.3168460428714752,
0.11568410694599152,
-0.07490180432796478,
0.3540153503417969,
0.07169006019830704,
0.3641098737716675,
-0.10353583842515945,
0.04579102620482445,
-0.14736415445804596,
-0.1719820499420166,
-0.072507344186306,
0.016658369451761246,
-0.11895932257175446,
-0.012939706444740295,
0.6430464386940002,
-0.37825536727905273,
0.2914331555366516,
-0.15558983385562897,
0.5500160455703735,
0.614503026008606,
0.38011613488197327,
-0.026607461273670197,
0.21592816710472107,
0.1633632928133011,
-0.10039158165454865,
0.0025566460099071264,
0.06995008140802383,
0.24972230195999146,
-0.07983562350273132,
-0.07448228448629379,
-0.08598858118057251,
-0.11589759588241577,
0.1770075261592865,
0.0011681895703077316,
0.4909505546092987,
-0.2904817461967468,
0.512435793876648,
0.33233925700187683,
-0.14032070338726044,
0.04745347052812576,
0.14032450318336487,
0.11738893389701843,
0.13174287974834442,
0.062319088727235794,
-0.169033944606781,
0.02777787670493126,
0.14834845066070557,
0.13876782357692719,
-0.10199234634637833,
-0.4102111756801605,
0.1354130506515503,
0.27590852975845337,
0.2415178269147873,
0.1979680359363556,
-0.0647837370634079,
0.2563585340976715,
0.030220694839954376,
-0.16167227923870087,
-0.3572816252708435,
0.2711784839630127,
0.06522508710622787,
0.12202325463294983,
-0.05141941457986832,
-0.34675607085227966,
0.07281143963336945,
-0.06571102142333984,
0.09419754892587662,
0.11803628504276276,
0.14240264892578125,
0.17022933065891266,
-0.06211647391319275,
-0.29225313663482666,
-0.2626907229423523,
0.04115287587046623,
0.34859171509742737,
-0.4241728186607361,
0.09195786714553833,
0.33504340052604675,
0.20303238928318024,
0.22409556806087494,
0.6786522269248962,
0.45657962560653687,
0.42182856798171997,
0.22916312515735626,
-0.2165020853281021,
-0.03297393023967743,
-0.2083059847354889,
-0.2822403609752655,
0.2188938707113266,
0.13974151015281677,
0.00428975373506546,
0.2438160628080368,
0.03429390490055084,
-0.07171717286109924,
0.41121551394462585,
-0.1693967878818512,
0.1504187285900116,
-0.0026023080572485924,
-0.0729418471455574,
0.015831055119633675,
-0.11408823728561401,
0.0288744755089283,
-0.46701470017433167,
-0.3360450863838196,
0.17518699169158936,
0.2609597146511078,
-0.09999866783618927,
0.08807054162025452,
-0.09003566950559616,
0.029236387461423874,
0.2473069727420807,
0.2664912939071655,
0.20932753384113312,
-0.1535017490386963,
0.02021075040102005,
0.0394243448972702,
-0.3008783459663391,
0.35492369532585144,
0.01953408680856228,
0.17456430196762085,
0.010468639433383942,
0.3871484100818634,
0.14890089631080627,
0.039349447935819626,
-0.1263052374124527,
-0.07109617441892624,
0.10181379318237305,
0.4188007712364197,
-0.4736372232437134,
-0.05176681652665138,
0.3701392412185669,
0.06517072021961212,
-0.19627009332180023,
-0.12024180591106415,
0.4699084758758545,
-0.2686624526977539,
-0.005062960088253021,
0.11188745498657227,
-0.025969427078962326,
-0.08228364586830139,
-0.22957995533943176,
0.40501248836517334,
-0.024370847269892693,
0.37883347272872925,
0.045495837926864624,
-0.065760038793087,
-0.4242570400238037,
-0.14807194471359253,
-0.22937282919883728,
0.0018281936645507812,
0.5216518640518188,
0.4612845778465271,
-0.08624338358640671,
-0.04630947485566139,
-0.20862531661987305,
0.19368799030780792,
-0.2765999436378479,
0.21833190321922302,
-0.22206445038318634,
0.0565512552857399,
-0.028514333069324493,
-0.009700686670839787,
0.09729934483766556,
-0.3539711833000183,
0.03917556628584862,
-0.2818964123725891,
-0.24087512493133545,
-0.320109099149704,
0.632745087146759,
-0.4083346128463745,
0.05697065219283104,
0.18648065626621246,
-0.01314537227153778,
0.21497148275375366,
-0.20394989848136902,
-0.30316099524497986,
0.21709689497947693,
0.33401185274124146,
-0.3487119972705841,
0.13560526072978973,
0.1715608835220337,
0.047885678708553314,
-0.017172716557979584,
-0.18311333656311035,
0.271841824054718,
0.03730310872197151,
-0.40249085426330566,
-0.09564373642206192,
-0.21737591922283173
] |
https://github.com/huggingface/datasets/issues/4562 | Dataset Viewer issue for allocine | > Note that the underlying issue is that datasets containing TAR files are not streamable out of the box: they need being iterated with `dl_manager.iter_archive` to avoid performance issues because they access their file content _sequentially_ (no random access).
Ah thanks for the clarification! I'll look out for this next time and implement the fix myself :) | ### Link
https://huggingface.co/datasets/allocine
### Description
Not sure if this is a problem with `bz2` compression, but I thought these datasets could be streamed:
```
Status code: 400
Exception: AttributeError
Message: 'TarContainedFile' object has no attribute 'readable'
```
### Owner
No | 57 | Dataset Viewer issue for allocine
### Link
https://huggingface.co/datasets/allocine
### Description
Not sure if this is a problem with `bz2` compression, but I thought these datasets could be streamed:
```
Status code: 400
Exception: AttributeError
Message: 'TarContainedFile' object has no attribute 'readable'
```
### Owner
No
> Note that the underlying issue is that datasets containing TAR files are not streamable out of the box: they need being iterated with `dl_manager.iter_archive` to avoid performance issues because they access their file content _sequentially_ (no random access).
Ah thanks for the clarification! I'll look out for this next time and implement the fix myself :) | [
-0.3704456388950348,
-0.07295586168766022,
0.011078424751758575,
0.676191508769989,
0.3053102493286133,
0.07710147649049759,
-0.09609650075435638,
0.38547754287719727,
-0.09366674721240997,
0.21664907038211823,
-0.3123401403427124,
0.11120874434709549,
-0.2770206332206726,
0.09945391863584518,
0.0077484771609306335,
0.052588026970624924,
-0.16240274906158447,
0.3301643133163452,
0.06647437065839767,
0.12550261616706848,
-0.1663368046283722,
-0.11753664910793304,
-0.06460155546665192,
0.03538023307919502,
0.18197014927864075,
0.03556347265839577,
-0.0008181165903806686,
0.025101512670516968,
-0.4789556860923767,
-0.4469245672225952,
0.22207504510879517,
0.37856560945510864,
0.38350987434387207,
0.41102850437164307,
-0.00011359831114532426,
0.13498051464557648,
0.2736365497112274,
-0.16214224696159363,
-0.2774623930454254,
-0.2900645136833191,
-0.2887674570083618,
-0.05709034204483032,
0.21897263824939728,
-0.14205554127693176,
0.019911419600248337,
-0.37705299258232117,
0.1672312170267105,
-0.5046548247337341,
0.508876621723175,
-0.028393059968948364,
0.17844294011592865,
0.15125128626823425,
-0.025826042518019676,
0.1208847239613533,
0.5242347121238708,
-0.02570732682943344,
-0.24024592339992523,
-0.06477369368076324,
0.07428865134716034,
0.29305335879325867,
-0.04662912338972092,
0.4250990152359009,
-0.15703773498535156,
0.19685429334640503,
0.32501307129859924,
-0.25723180174827576,
-0.24318209290504456,
-0.4513980448246002,
-0.12489857524633408,
0.5635532736778259,
0.6259584426879883,
0.06280851364135742,
-0.47390633821487427,
0.08113200217485428,
0.14641772210597992,
-0.4225023090839386,
-0.045470140874385834,
0.43477773666381836,
0.01664237305521965,
0.10136036574840546,
-0.1034424677491188,
0.09099921584129333,
-0.31651341915130615,
-0.1510152667760849,
-0.2267831414937973,
-0.0039062201976776123,
-0.34011921286582947,
-0.16412726044654846,
0.3156334459781647,
-0.015530884265899658,
0.3911072909832001,
0.20356425642967224,
-0.5686063766479492,
-0.1579679399728775,
-0.33247172832489014,
-0.0353219136595726,
-0.08558858186006546,
0.09248590469360352,
0.04334568977355957,
0.2634310722351074,
0.702902615070343,
0.18926402926445007,
0.04726983606815338,
0.11671847850084305,
0.2585207223892212,
0.06451843678951263,
0.2089783251285553,
-0.002881621941924095,
0.32283055782318115,
0.06403697282075882,
0.11080221831798553,
-0.31272220611572266,
-0.45861220359802246,
-0.12807141244411469,
-0.05684124678373337,
-0.20832163095474243,
0.26566314697265625,
-0.3458760678768158,
-0.44755610823631287,
0.10511362552642822,
-0.2164856493473053,
-0.14002038538455963,
0.08841036260128021,
0.37668052315711975,
-0.257301390171051,
-0.013948705047369003,
0.11476720869541168,
0.21342116594314575,
-0.07150089740753174,
-0.34247052669525146,
-0.10601631551980972,
-0.15785543620586395,
-0.09921331703662872,
-0.09567952156066895,
0.30631545186042786,
-0.5144537687301636,
0.16257767379283905,
-0.09033308178186417,
0.16417744755744934,
0.09934233129024506,
0.15959672629833221,
-0.18632078170776367,
0.31964942812919617,
0.41679471731185913,
0.2834918200969696,
0.00851123221218586,
0.15157651901245117,
-0.03436104208230972,
-0.01810116320848465,
-0.041266970336437225,
-0.05432198941707611,
-0.27276647090911865,
-0.27853330969810486,
0.13407744467258453,
-0.2824668884277344,
0.14592570066452026,
0.026780158281326294,
-0.06853599846363068,
0.15532061457633972,
-0.2986367344856262,
-0.39363905787467957,
-0.14236730337142944,
-0.01644604280591011,
-0.03292745724320412,
0.33472445607185364,
0.44380617141723633,
-0.4454313814640045,
0.09793660044670105,
-0.25491806864738464,
0.17242328822612762,
0.2749340236186981,
0.07152073085308075,
-0.24901482462882996,
-0.1513136923313141,
-0.10512744635343552,
-0.10895028710365295,
0.6574024558067322,
-0.13731266558170319,
-0.39150428771972656,
0.32138851284980774,
-0.06856000423431396,
0.20479384064674377,
0.4861529469490051,
-0.17341801524162292,
0.7510881423950195,
-0.08329358696937561,
0.08325225114822388,
-0.18223512172698975,
0.16184177994728088,
-0.04876939579844475,
-0.3288334012031555,
-0.2523445188999176,
0.21146918833255768,
0.10404390096664429,
0.16543829441070557,
0.20138075947761536,
0.18407371640205383,
0.1791532337665558,
0.3973926901817322,
-0.03514422848820686,
0.2677311301231384,
-0.19620159268379211,
0.20858530700206757,
-0.19957612454891205,
0.1417245715856552,
-0.06278543174266815,
-0.030643999576568604,
-0.008655309677124023,
-0.10435762256383896,
-0.014125429093837738,
-0.2436678558588028,
-0.06477382034063339,
-0.059898488223552704,
-0.20616328716278076,
-0.24349422752857208,
-0.24563419818878174,
0.22206246852874756,
0.2451588213443756,
-0.4025822579860687,
-0.04340054467320442,
-0.30716946721076965,
0.19815374910831451,
-0.059634171426296234,
0.08763754367828369,
0.22290188074111938,
0.29284611344337463,
0.025425855070352554,
-0.1701449453830719,
0.002819664776325226,
-0.20625513792037964,
-0.031619660556316376,
-0.15888036787509918,
-0.11037765443325043,
0.06719127297401428,
-0.3086076080799103,
-0.1340153068304062,
-0.0042595937848091125,
0.2772170305252075,
0.24500352144241333,
-0.25704672932624817,
0.22508879005908966,
-0.07332229614257812,
0.14572012424468994,
-0.05403778702020645,
-0.2355394959449768,
0.20249904692173004,
-0.027878668159246445,
0.37178686261177063,
0.037145406007766724,
0.14469558000564575,
0.06614187359809875,
0.19449923932552338,
-0.22823920845985413,
0.06287215650081635,
0.1748141050338745,
0.022326888516545296,
-0.0890846997499466,
0.03580660745501518,
-0.20453570783138275,
0.24749553203582764,
0.3950476050376892,
0.20177650451660156,
-0.31296318769454956,
0.06392097473144531,
-0.24920570850372314,
-0.012076904065907001,
0.2582909166812897,
0.38744938373565674,
0.2141844928264618,
0.21993958950042725,
0.08900797367095947,
-0.05865704268217087,
0.13888365030288696,
-0.12826400995254517,
0.06578719615936279,
0.05005542188882828,
0.002255041617900133,
0.1513686180114746,
-0.07306577265262604,
0.0453697070479393,
-0.45451271533966064,
-0.0036315396428108215,
0.24710312485694885,
0.06910122185945511,
-0.2413834035396576,
0.08480092138051987,
-0.2981201708316803,
-0.2021753489971161,
0.07431623339653015,
0.0828133299946785,
-0.20510607957839966,
-0.38311275839805603,
-0.08354915678501129,
0.7442584037780762,
0.01935500279068947,
-0.12392338365316391,
-0.31874340772628784,
0.45114487409591675,
0.14502236247062683,
0.07324814051389694,
-0.23868122696876526,
-0.14992395043373108,
-0.12150318175554276,
0.11062730848789215,
0.20707039535045624,
-0.41040462255477905,
0.1518973708152771,
-0.22341307997703552,
0.18976052105426788,
-0.08596359938383102,
-0.24196699261665344,
0.11291513592004776,
-0.12995368242263794,
0.1251412183046341,
-0.2426878809928894,
0.2701405882835388,
-0.13230487704277039,
-0.42051517963409424,
0.17116138339042664,
0.17950765788555145,
-0.09075026214122772,
0.3093123435974121,
-0.031774550676345825,
-0.1556575447320938,
-0.07384886592626572,
-0.1298706829547882,
-0.2267703115940094,
-0.5690383911132812,
0.23235927522182465,
0.07693067193031311,
0.07678867876529694,
-0.06052081286907196,
-0.03624672070145607,
-0.11272532492876053,
-0.05227886140346527,
0.20213347673416138,
-0.013598175719380379,
-0.7418456673622131,
0.3222985863685608,
-0.3767887353897095,
-0.4492497444152832,
0.059612471610307693,
0.2680830955505371,
0.3009284436702728,
0.3471100926399231,
-0.5676771402359009,
0.3322622776031494,
-0.22319020330905914,
-0.21602387726306915,
0.15722811222076416,
-0.027373934164643288,
0.25405222177505493,
0.2906063497066498,
-0.0405782088637352,
-0.12175831198692322,
-0.1598609834909439,
0.1440640240907669,
0.047276660799980164,
0.17494887113571167,
-0.21061480045318604,
-0.013184793293476105,
0.1504083275794983,
0.2753491997718811,
0.14510340988636017,
0.23297397792339325,
0.47511598467826843,
0.08576072007417679,
0.6925551295280457,
-0.07761884480714798,
-0.4482250213623047,
0.26522043347358704,
-0.25400853157043457,
0.04669586569070816,
0.2444354146718979,
0.09218686819076538,
-0.42915067076683044,
-0.26498842239379883,
0.08553102612495422,
-0.31850624084472656,
-0.24945078790187836,
-0.10183822363615036,
-0.2804454565048218,
-0.23832160234451294,
0.14942722022533417,
0.1763077676296234,
0.006750661879777908,
-0.14812320470809937,
0.02042529359459877,
0.4156463146209717,
0.29460597038269043,
0.033301737159490585,
-0.008880291134119034,
0.07503382861614227,
-0.23260900378227234,
0.1711232215166092,
-0.29664167761802673,
0.2356472760438919,
-0.1635042130947113,
-0.1789558231830597,
0.24034836888313293,
-0.02950800210237503,
0.4104660749435425,
0.05983801931142807,
0.006628170609474182,
0.4473852515220642,
-0.2228328436613083,
-0.19173631072044373,
-0.21314512193202972,
-0.11434058845043182,
0.03662439435720444,
-0.15751759707927704,
0.10150608420372009,
-0.18039990961551666,
-0.10428252071142197,
0.09872898459434509,
-0.12706877291202545,
-0.16063380241394043,
0.045881420373916626,
-0.0005387924611568451,
-0.0071713849902153015,
0.04167976230382919,
-0.08368030935525894,
-0.13440029323101044,
0.246564581990242,
-0.38201940059661865,
-0.14036786556243896,
-0.3169979453086853,
-0.04728040471673012,
0.23417150974273682,
0.3084780275821686,
0.13822302222251892,
0.2542392313480377,
0.1570325493812561,
0.3621237277984619,
0.13213036954402924,
0.3174137473106384,
0.4660387337207794,
0.16827011108398438,
-0.5941218733787537,
0.2628342807292938,
-0.21116790175437927,
0.08705870807170868,
0.20679621398448944,
-0.15338261425495148,
-0.16451945900917053,
0.03088073804974556,
0.049243438988924026,
-0.23061180114746094,
0.2350345104932785,
0.5619193911552429,
-0.2756287753582001,
-0.463115394115448,
-0.339362233877182,
0.26129990816116333,
0.2349521368741989,
-0.030054420232772827,
0.7374604344367981,
0.09398884326219559,
0.006221036426723003,
0.45812422037124634,
0.16910216212272644,
0.9846208691596985,
-0.03547941893339157,
0.028579119592905045,
0.05392242223024368,
-0.19912859797477722,
0.31074410676956177,
-0.5828944444656372,
0.2660216689109802,
-0.23878486454486847,
-0.7387380003929138,
-0.04885980486869812,
0.058239784091711044,
0.10759752988815308,
0.0022314339876174927,
-0.2919539511203766,
-0.1482827365398407,
-0.23645050823688507,
-0.1332152634859085,
-0.09218967705965042,
-0.1499634087085724,
-0.24296215176582336,
-0.14505018293857574,
-0.15247289836406708,
0.18204914033412933,
-0.11309611797332764,
0.29314297437667847,
0.035066377371549606,
-0.4009830355644226,
0.21275827288627625,
-0.036852747201919556,
-0.3345975875854492,
0.23922476172447205,
-0.1204070970416069,
-0.2595425248146057,
-0.6102398037910461,
-0.23791222274303436,
0.028908316045999527,
0.030470699071884155,
0.12389039993286133,
0.1503683179616928,
-0.27440232038497925,
-0.05135240778326988,
0.07028432935476303,
0.09422077238559723,
0.14299306273460388,
0.13682760298252106,
0.10040296614170074,
-0.1433148980140686,
-0.026056692004203796,
0.19137051701545715,
0.11014997959136963,
0.01461760699748993,
0.5367390513420105,
-0.013714805245399475,
0.060665275901556015,
-0.25467589497566223,
0.42283913493156433,
-0.011059537529945374,
0.027206499129533768,
-0.26004382967948914,
0.1131858378648758,
0.03261739760637283,
-0.1756318062543869,
0.07282290607690811,
0.11396537721157074,
-0.1898488998413086,
-0.07097148895263672,
0.3170087933540344,
0.0672571137547493,
0.26999759674072266,
0.2094772607088089,
-0.18605366349220276,
-0.3064209818840027,
-0.09242255240678787,
0.14234763383865356,
-0.05238773301243782,
-0.26045748591423035,
0.2198285162448883,
-0.01935954950749874,
0.0016973316669464111,
-0.11294237524271011,
0.2853557765483856,
0.1424168050289154,
0.021420300006866455,
-0.07955600321292877,
-0.39863303303718567,
-0.17006300389766693,
0.14988180994987488,
-0.24043507874011993,
0.30783918499946594,
-0.1619267761707306,
-0.1821305751800537,
0.08302903920412064,
0.028540881350636482,
-0.31385454535484314,
-0.08801580220460892,
-0.0438554510474205,
-0.04950590431690216,
-0.1457609236240387,
-0.045705102384090424,
0.192144513130188,
0.1045713722705841,
0.040370941162109375,
0.05913136899471283,
-0.2990719974040985,
-0.11284013092517853,
-0.15447168052196503,
0.17894487082958221,
0.09669040888547897,
-0.117333322763443,
-0.14941070973873138,
-0.2888266444206238,
-0.20565029978752136,
-0.1068660318851471,
0.19412778317928314,
-0.007487967610359192,
0.06199484318494797,
-0.05722050368785858,
0.3384317457675934,
0.07204529643058777,
-0.03887241706252098,
0.30809715390205383,
0.06831423938274384,
0.36640310287475586,
-0.07110864669084549,
0.018696125596761703,
-0.10494717955589294,
-0.18323369324207306,
-0.053211115300655365,
0.01820952445268631,
-0.14816910028457642,
0.027001390233635902,
0.6089427471160889,
-0.38256120681762695,
0.2719232141971588,
-0.1565118283033371,
0.5452934503555298,
0.6166505217552185,
0.3625410199165344,
-0.015742067247629166,
0.22551405429840088,
0.21601402759552002,
-0.09662117063999176,
0.003955037798732519,
0.053771279752254486,
0.21862159669399261,
-0.10207121819257736,
-0.08901961892843246,
-0.07970903068780899,
-0.11500536650419235,
0.14572560787200928,
0.02070043236017227,
0.5052054524421692,
-0.2904048562049866,
0.5047836899757385,
0.33158424496650696,
-0.1843291074037552,
0.013965494930744171,
0.09542266279459,
0.05563516169786453,
0.12980616092681885,
0.04920917749404907,
-0.18519359827041626,
0.017403410747647285,
0.15612216293811798,
0.1362931877374649,
-0.08777514845132828,
-0.35732150077819824,
0.09079105406999588,
0.26525360345840454,
0.2307894378900528,
0.17692360281944275,
-0.05682937800884247,
0.2492344081401825,
0.03337208181619644,
-0.24179881811141968,
-0.3283366560935974,
0.2842676043510437,
0.07258434593677521,
0.1657504290342331,
-0.07177290320396423,
-0.34207960963249207,
0.043197207152843475,
-0.04773597791790962,
0.12171067297458649,
0.13344526290893555,
0.16513553261756897,
0.1813705563545227,
-0.0839846134185791,
-0.3288586437702179,
-0.2802525758743286,
0.07856554538011551,
0.3243943750858307,
-0.4014531075954437,
0.09798886626958847,
0.37667274475097656,
0.16472914814949036,
0.21574336290359497,
0.6627383232116699,
0.4639204144477844,
0.4554618299007416,
0.21863515675067902,
-0.19759447872638702,
-0.021991517394781113,
-0.19521230459213257,
-0.27789968252182007,
0.16685742139816284,
0.15185457468032837,
-0.024742692708969116,
0.23238787055015564,
0.06793394684791565,
-0.09444937109947205,
0.3982281982898712,
-0.21054257452487946,
0.10789209604263306,
-0.02459844760596752,
-0.056499041616916656,
0.04831044748425484,
-0.10536716133356094,
-0.005485806614160538,
-0.4796276390552521,
-0.33559921383857727,
0.1623772829771042,
0.2834990918636322,
-0.09230907261371613,
0.06683908402919769,
-0.060798805207014084,
0.04618086665868759,
0.24105440080165863,
0.29474055767059326,
0.15603260695934296,
-0.1437329649925232,
-0.03677860647439957,
0.016906678676605225,
-0.3309763967990875,
0.3360898792743683,
0.008724670857191086,
0.21320322155952454,
-0.005894155241549015,
0.37165287137031555,
0.13645726442337036,
0.05214199423789978,
-0.10197068750858307,
-0.07519898563623428,
0.09321790188550949,
0.37695491313934326,
-0.5420089960098267,
-0.031460199505090714,
0.34275269508361816,
0.06827827543020248,
-0.181797057390213,
-0.11007764935493469,
0.4745282530784607,
-0.28629419207572937,
0.03551287204027176,
0.12910696864128113,
-0.06260381639003754,
-0.07969719171524048,
-0.23758241534233093,
0.4447951912879944,
-0.005253428593277931,
0.38629016280174255,
0.027459710836410522,
-0.07789786159992218,
-0.38473424315452576,
-0.20039322972297668,
-0.26580575108528137,
0.024255551397800446,
0.515702486038208,
0.47421154379844666,
-0.06337764114141464,
-0.07511244714260101,
-0.2595028579235077,
0.19560152292251587,
-0.25558486580848694,
0.15548714995384216,
-0.19199945032596588,
0.007236652076244354,
0.006880819797515869,
0.014363553375005722,
0.08727255463600159,
-0.34261152148246765,
0.018946770578622818,
-0.26423585414886475,
-0.263091117143631,
-0.34797438979148865,
0.66402268409729,
-0.3617255389690399,
0.030254103243350983,
0.21389658749103546,
0.03348487615585327,
0.17722338438034058,
-0.1880243569612503,
-0.32430511713027954,
0.21845027804374695,
0.3207443952560425,
-0.33070725202560425,
0.10084886848926544,
0.1951713263988495,
0.04993358999490738,
-0.0030912794172763824,
-0.15928727388381958,
0.24741268157958984,
0.054236866533756256,
-0.4206202030181885,
-0.07618068158626556,
-0.21786822378635406
] |
https://github.com/huggingface/datasets/issues/4550 | imdb source error | Thanks for reporting, @Muhtasham.
Indeed IMDB dataset is not accessible from yesterday, because the data is hosted on the data owners servers at Stanford (http://ai.stanford.edu/) and these are down due to a power outage originated by a fire: https://twitter.com/StanfordAILab/status/1539472302399623170?s=20&t=1HU1hrtaXprtn14U61P55w
As a temporary workaroud, you can load the IMDB dataset with this tweak:
```python
ds = load_dataset("imdb", revision="tmp-fix-imdb")
```
| ## Describe the bug
imdb dataset not loading
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("imdb")
```
## Expected results
## Actual results
```bash
06/23/2022 14:45:18 - INFO - datasets.builder - Dataset not on Hf google storage. Downloading and preparing it from source
06/23/2022 14:46:34 - INFO - datasets.utils.file_utils - HEAD request to http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz timed out, retrying... [1.0]
.....
ConnectionError: Couldn't reach http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz (ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='ai.stanford.edu', port=80): Max retries exceeded with url: /~amaas/data/sentiment/aclImdb_v1.tar.gz (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f2d750cf690>, 'Connection to ai.stanford.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
| 58 | imdb source error
## Describe the bug
imdb dataset not loading
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("imdb")
```
## Expected results
## Actual results
```bash
06/23/2022 14:45:18 - INFO - datasets.builder - Dataset not on Hf google storage. Downloading and preparing it from source
06/23/2022 14:46:34 - INFO - datasets.utils.file_utils - HEAD request to http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz timed out, retrying... [1.0]
.....
ConnectionError: Couldn't reach http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz (ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='ai.stanford.edu', port=80): Max retries exceeded with url: /~amaas/data/sentiment/aclImdb_v1.tar.gz (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f2d750cf690>, 'Connection to ai.stanford.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
Thanks for reporting, @Muhtasham.
Indeed IMDB dataset is not accessible from yesterday, because the data is hosted on the data owners servers at Stanford (http://ai.stanford.edu/) and these are down due to a power outage originated by a fire: https://twitter.com/StanfordAILab/status/1539472302399623170?s=20&t=1HU1hrtaXprtn14U61P55w
As a temporary workaroud, you can load the IMDB dataset with this tweak:
```python
ds = load_dataset("imdb", revision="tmp-fix-imdb")
```
| [
-0.45994019508361816,
0.15562114119529724,
-0.12848222255706787,
0.2241038978099823,
0.0967068299651146,
0.1051640585064888,
0.30303269624710083,
0.24203068017959595,
0.25008004903793335,
0.16574518382549286,
-0.13026617467403412,
-0.16933122277259827,
0.2551252245903015,
0.08268401771783829,
0.01527240127325058,
0.21234551072120667,
-0.061770327389240265,
-0.056641578674316406,
0.07575419545173645,
0.035925060510635376,
-0.25854986906051636,
0.20571298897266388,
-0.21958184242248535,
-0.05940301716327667,
-0.3453863859176636,
-0.045110903680324554,
0.005054915323853493,
0.004000421613454819,
-0.0034028440713882446,
-0.32357433438301086,
0.26592570543289185,
-0.009455792605876923,
0.15664848685264587,
0.2965339720249176,
-0.00011372275912435725,
-0.13078264892101288,
0.4888761043548584,
0.11217191815376282,
-0.502127468585968,
-0.30035400390625,
-0.2155991792678833,
0.07744979858398438,
0.06895403563976288,
0.13905063271522522,
0.01392677053809166,
-0.05832141265273094,
0.14627909660339355,
-0.49703511595726013,
-0.04686558246612549,
0.5226984024047852,
0.16372060775756836,
0.0392163060605526,
0.31619447469711304,
-0.20363253355026245,
0.33791494369506836,
-0.12851130962371826,
0.018881632015109062,
0.34798479080200195,
0.2477777600288391,
-0.09705942124128342,
0.1342310607433319,
0.1083240658044815,
-0.05828974395990372,
0.012859600596129894,
0.41982969641685486,
0.10684093087911606,
0.0349968746304512,
-0.35416659712791443,
0.19975540041923523,
0.25638332962989807,
0.8449698686599731,
-0.06910152733325958,
-0.5104479789733887,
-0.006078079342842102,
0.27745985984802246,
-0.029221344739198685,
0.39866188168525696,
0.13773424923419952,
-0.11413250863552094,
0.16009663045406342,
-0.36807993054389954,
0.06497979909181595,
-0.10277320444583893,
0.4382250905036926,
-0.10079053044319153,
0.04046761989593506,
-0.0683036744594574,
0.10312455892562866,
-0.21321220695972443,
-0.0765114352107048,
0.37523049116134644,
-0.2788568139076233,
-0.016504064202308655,
0.049430910497903824,
-0.3848200738430023,
-0.11753343045711517,
0.06786053627729416,
0.19122225046157837,
0.02660861238837242,
0.285605251789093,
0.07199307531118393,
-0.20201972126960754,
-0.05001266673207283,
0.16818511486053467,
0.46162623167037964,
0.23724976181983948,
-0.2135198414325714,
-0.03707214072346687,
0.49214911460876465,
0.42533397674560547,
-0.14694912731647491,
-0.1140676811337471,
0.07187897711992264,
-0.13987214863300323,
0.19417792558670044,
-0.1575685441493988,
0.31549209356307983,
-0.23117595911026,
-0.5352428555488586,
0.2533419728279114,
-0.2242664098739624,
-0.04136376827955246,
-0.013210096396505833,
0.3308221697807312,
-0.35180485248565674,
0.044076308608055115,
0.30017393827438354,
0.17303983867168427,
0.0038793403655290604,
-0.032548222690820694,
-0.24302555620670319,
-0.05324332043528557,
-0.11507548391819,
-0.008250784128904343,
0.2534404397010803,
-0.1250702440738678,
0.18986038863658905,
0.1443362981081009,
0.12362629175186157,
-0.29777637124061584,
0.1430032104253769,
-0.31325027346611023,
0.17820870876312256,
0.36860334873199463,
0.35365864634513855,
0.12309811264276505,
0.10979586839675903,
-0.02272247150540352,
-0.0812322199344635,
-0.07764684408903122,
-0.19429296255111694,
-0.23972278833389282,
-0.26720941066741943,
0.27205419540405273,
0.09211453795433044,
-0.026990920305252075,
-0.5466382503509521,
-0.07653726637363434,
0.008512787520885468,
-0.1085221916437149,
-0.03243926912546158,
-0.00180768221616745,
-0.057066116482019424,
-0.07532823830842972,
0.36586472392082214,
0.37703758478164673,
-0.3686729967594147,
0.058427661657333374,
-0.3921433687210083,
0.19511979818344116,
-0.16620168089866638,
0.29928645491600037,
-0.3010358512401581,
0.21677488088607788,
-0.4713165760040283,
-0.07354938983917236,
0.10007566958665848,
-0.1903543621301651,
-0.572056770324707,
0.4615110754966736,
-0.1545596867799759,
0.00011526420712471008,
0.040500517934560776,
0.18350473046302795,
0.2953757047653198,
-0.05934586375951767,
0.38150885701179504,
0.3635392189025879,
-0.1656963974237442,
-0.13884446024894714,
-0.16292347013950348,
-0.13551174104213715,
-0.3057126998901367,
-0.04157336428761482,
0.42324987053871155,
0.24614471197128296,
0.12694141268730164,
-0.07912077009677887,
0.18882295489311218,
0.2875913381576538,
0.1251111924648285,
0.20909516513347626,
0.07046356797218323,
0.5201951265335083,
-0.06359335780143738,
-0.13948333263397217,
-0.44558078050613403,
0.2008242905139923,
0.12130892276763916,
0.09913230687379837,
-0.25814175605773926,
-0.30015528202056885,
-0.2295270562171936,
-0.02929806523025036,
0.0959797203540802,
-0.007120363414287567,
0.1502685844898224,
0.23702147603034973,
-0.08561159670352936,
0.09959174692630768,
-0.2458539456129074,
0.21920081973075867,
-0.026651130989193916,
0.0759822204709053,
-0.22724810242652893,
0.4882833957672119,
-0.25760820508003235,
-0.20841141045093536,
0.03273891657590866,
-0.12308352440595627,
0.17214977741241455,
0.007910315878689289,
-0.08334915339946747,
0.29799866676330566,
-0.24538318812847137,
0.36262089014053345,
0.0791628509759903,
0.12719011306762695,
0.18967083096504211,
-0.289314866065979,
0.3769479990005493,
0.04969875514507294,
0.09522710740566254,
-0.1104583889245987,
0.013561710715293884,
0.15366673469543457,
0.16033460199832916,
0.269514799118042,
0.24900300800800323,
0.18770264089107513,
0.20827482640743256,
-0.1006394624710083,
0.10867731273174286,
-0.36197999119758606,
0.009637758135795593,
-0.03719717636704445,
0.0967433899641037,
-0.1391589194536209,
-0.3439314663410187,
0.35703244805336,
0.43923357129096985,
0.016630049794912338,
-0.026216357946395874,
0.2593871057033539,
-0.23523277044296265,
-0.2580084502696991,
0.0021876879036426544,
-0.029235538095235825,
0.18001873791217804,
0.1917407065629959,
-0.050968583673238754,
-0.04376217722892761,
0.010375987738370895,
-0.2634390592575073,
0.27176162600517273,
0.07221216708421707,
-0.02295631729066372,
0.28609520196914673,
0.17204584181308746,
0.2602722644805908,
-0.267326295375824,
-0.4665195047855377,
-0.12232629954814911,
0.09847945719957352,
-0.4945429265499115,
-0.014577299356460571,
-0.08687973767518997,
-0.1012837141752243,
0.10830741375684738,
-0.0018586600199341774,
-0.06877179443836212,
-0.4195464849472046,
-0.11319208145141602,
0.5649657249450684,
0.029079541563987732,
0.08155102282762527,
-0.11109043657779694,
0.21701359748840332,
-0.0011121276766061783,
0.05217690020799637,
-0.17844551801681519,
-0.08143424987792969,
-0.05927208811044693,
0.10866627097129822,
0.32226184010505676,
-0.1595805585384369,
0.10577348619699478,
-0.26337701082229614,
-0.16955286264419556,
-0.5327911376953125,
-0.0800774022936821,
0.057975899428129196,
-0.11108548939228058,
0.3322024643421173,
0.06430923938751221,
0.2734449505805969,
0.05777611583471298,
-0.2048376351594925,
0.15244252979755402,
-0.18586210906505585,
0.0928235724568367,
0.07635503262281418,
-0.1039980873465538,
-0.05570217967033386,
0.14021490514278412,
-0.2591848373413086,
-0.12922842800617218,
-0.29200494289398193,
0.04852907359600067,
0.0025792717933654785,
0.0468209944665432,
-0.01850825548171997,
0.2792125940322876,
0.20984242856502533,
0.373313844203949,
0.21743370592594147,
-0.30263474583625793,
-0.4380243420600891,
0.3056044280529022,
-0.14376474916934967,
-0.233690544962883,
0.17384545505046844,
0.01192585751414299,
0.0959589034318924,
0.0404583103954792,
-0.8278072476387024,
-0.004615183919668198,
-0.2793123424053192,
0.21409949660301208,
-0.03892002999782562,
-0.21783556044101715,
0.21241644024848938,
-0.2455487847328186,
-0.22783266007900238,
0.012274976819753647,
-0.07215655595064163,
-0.08384772390127182,
0.02825590968132019,
0.02543274313211441,
-0.016170702874660492,
0.6740308403968811,
-0.13338437676429749,
0.398769736289978,
0.18985839188098907,
0.03568299859762192,
0.3930935859680176,
0.020936010405421257,
0.4115898609161377,
-0.32587745785713196,
-0.20733946561813354,
0.0471784807741642,
-0.08294112980365753,
-0.3173369765281677,
0.052320074290037155,
0.0353119894862175,
-0.22263582050800323,
-0.14801165461540222,
-0.11345671117305756,
-0.3771907091140747,
-0.2463812381029129,
-0.09157641232013702,
-0.2061028778553009,
0.08715741336345673,
0.17905457317829132,
0.03017483651638031,
-0.0831913948059082,
-0.23724526166915894,
0.014927025884389877,
0.25609052181243896,
0.2698290944099426,
-0.09397056698799133,
0.06309334933757782,
-0.16187308728694916,
-0.14617222547531128,
0.3538479804992676,
-0.16973938047885895,
0.22215032577514648,
-0.23078203201293945,
0.08747801929712296,
0.15089574456214905,
-0.015101436525583267,
0.6678043007850647,
-0.4362351596355438,
0.2567175626754761,
0.16659393906593323,
0.06404206901788712,
-0.13824425637722015,
0.016529452055692673,
-0.007574215531349182,
-0.08536816388368607,
0.29890820384025574,
0.6207162737846375,
0.01820354163646698,
-0.06771784275770187,
0.28712931275367737,
-0.059923216700553894,
0.029267963021993637,
0.027450036257505417,
-0.0022284574806690216,
-0.2365240454673767,
-0.26431581377983093,
-0.11447637528181076,
0.14399248361587524,
0.0034652785398066044,
0.056982070207595825,
-0.373268723487854,
-0.11714321374893188,
0.13247111439704895,
-0.09500671923160553,
-0.1297147125005722,
0.11762780696153641,
0.06640992313623428,
0.28290030360221863,
0.1405794322490692,
-0.18829935789108276,
0.6749641299247742,
0.6511495113372803,
-0.11427447199821472,
-0.07778878509998322,
0.20238399505615234,
-0.02563074603676796,
-0.07486871629953384,
0.4165664315223694,
-0.14795604348182678,
-0.33531132340431213,
0.12299900501966476,
0.3799670934677124,
-0.2999628782272339,
-0.11454124003648758,
0.33481505513191223,
0.015151112340390682,
-0.17960084974765778,
-0.5445175766944885,
0.4201660454273224,
0.106194406747818,
-0.06876125931739807,
0.2743026614189148,
0.4274699091911316,
-0.3242764174938202,
0.40144461393356323,
0.03994685783982277,
0.8377746343612671,
-0.022275030612945557,
0.06599050015211105,
0.0202653668820858,
0.0999552458524704,
0.11664960533380508,
-0.30958235263824463,
0.12894484400749207,
-0.19203956425189972,
-0.311421662569046,
-0.15118518471717834,
-0.16524861752986908,
-0.09461455792188644,
0.1982654184103012,
-0.18932294845581055,
0.24342216551303864,
-0.4109657406806946,
0.21676933765411377,
-0.002872108481824398,
0.5012958645820618,
-0.5013503432273865,
0.061872731894254684,
-0.13107486069202423,
0.2409127950668335,
0.16530603170394897,
0.2640327215194702,
0.0334244929254055,
0.20944535732269287,
-0.08414159715175629,
0.015618342906236649,
-0.6949585676193237,
0.11279765516519547,
-0.2500882148742676,
0.1585419476032257,
-0.2535674571990967,
-0.2788310945034027,
0.1416938453912735,
0.06824589520692825,
0.22679392993450165,
0.14700624346733093,
-0.1876208484172821,
0.1434357464313507,
0.1998053789138794,
-0.06288769096136093,
0.09302344173192978,
-0.043815091252326965,
0.46251487731933594,
-0.065912626683712,
-0.31103241443634033,
0.14897207915782928,
0.07748561352491379,
-0.22265872359275818,
0.15153834223747253,
-0.06248188018798828,
-0.15149208903312683,
-0.32499122619628906,
-0.055274754762649536,
-0.2996559739112854,
-0.1222197562456131,
-0.31942978501319885,
0.13863861560821533,
-0.06472265720367432,
0.20542818307876587,
-0.03713776916265488,
0.1464691162109375,
-0.27372097969055176,
-0.19401368498802185,
0.5307101011276245,
-0.055922918021678925,
0.1789686232805252,
0.36769577860832214,
0.2893957197666168,
-0.2749723494052887,
-0.25702011585235596,
-0.09922711551189423,
0.02294020913541317,
-0.38743719458580017,
0.36059290170669556,
-0.17300745844841003,
0.23081006109714508,
-0.0836566835641861,
0.18581107258796692,
0.16516916453838348,
0.27462154626846313,
-0.19186125695705414,
-0.5817746520042419,
0.07047978043556213,
0.3538210391998291,
-0.040141511708498,
0.14664849638938904,
-0.08554618060588837,
-0.05106428638100624,
0.12111662328243256,
-0.2353844940662384,
-0.35685378313064575,
0.09853088110685349,
-0.27709537744522095,
-0.03319316357374191,
-0.23862096667289734,
-0.17439261078834534,
0.3618432879447937,
-0.16654908657073975,
0.1663147509098053,
-0.17220374941825867,
0.0019770748913288116,
-0.20903027057647705,
-0.0033103469759225845,
0.11277318000793457,
0.03775535523891449,
-0.253118097782135,
-0.096997931599617,
-0.3857882022857666,
-0.16160032153129578,
-0.22095537185668945,
0.25330403447151184,
0.20241177082061768,
0.09610610455274582,
-0.18239788711071014,
-0.02346159890294075,
-0.1777905821800232,
-0.05357754975557327,
0.07544548809528351,
0.0473584346473217,
0.33872270584106445,
-0.02364199236035347,
0.1329146921634674,
0.008666924200952053,
0.05362670123577118,
-0.3045685589313507,
0.32615259289741516,
-0.34975188970565796,
0.26724180579185486,
0.6184157729148865,
-0.2372770756483078,
-0.13925738632678986,
0.2518741488456726,
0.28782498836517334,
0.21594330668449402,
-0.15696242451667786,
-0.15943099558353424,
-0.1782470941543579,
0.2732974886894226,
-0.14095667004585266,
-0.015537858009338379,
0.03548283874988556,
-0.0826171264052391,
0.08906209468841553,
-0.10568990558385849,
0.18626827001571655,
-0.07173936069011688,
-0.15280336141586304,
0.1946655511856079,
0.7549718618392944,
-0.11677150428295135,
0.13638222217559814,
0.0039264000952243805,
0.14214681088924408,
0.21169903874397278,
0.17570346593856812,
0.25242748856544495,
0.09012545645236969,
0.14793507754802704,
-0.03703738749027252,
-0.2277081161737442,
-0.11297480016946793,
0.25132855772972107,
0.02282361313700676,
-0.4821683168411255,
0.23670828342437744,
0.14396046102046967,
-0.359238862991333,
-0.17315763235092163,
-0.05114458501338959,
0.08252041041851044,
-0.2134118229150772,
0.1654016226530075,
-0.1844760626554489,
0.08248341083526611,
-0.10042335838079453,
0.10089468955993652,
-0.11148201674222946,
-0.10902538895606995,
-0.0893125832080841,
0.027555782347917557,
-0.052553970366716385,
-0.11739777028560638,
-0.018601760268211365,
0.21427075564861298,
-0.17509467899799347,
-0.3278999328613281,
0.272463858127594,
-0.14846622943878174,
0.4423578381538391,
-0.35879603028297424,
0.22430597245693207,
0.06813395023345947,
0.13153308629989624,
0.05265674367547035,
0.4531424045562744,
0.5967772603034973,
0.2158823013305664,
-0.08960297703742981,
0.2921328842639923,
0.19719041883945465,
-0.32548293471336365,
-0.1657908409833908,
0.03894348815083504,
0.21860498189926147,
0.016447976231575012,
0.18049664795398712,
0.2639240026473999,
-0.16021846234798431,
0.2659907639026642,
0.09121160954236984,
0.6106685996055603,
-0.23529671132564545,
0.2875344753265381,
-0.20543542504310608,
-0.1462024599313736,
-0.1262369602918625,
-0.002858974039554596,
-0.27105942368507385,
-0.2702113091945648,
0.41441306471824646,
-0.32064610719680786,
0.018807798624038696,
-0.14774000644683838,
0.08552820235490799,
-0.16046284139156342,
0.2751201093196869,
0.48736152052879333,
0.28023436665534973,
-0.35427579283714294,
-0.10390815138816833,
-0.32385584712028503,
0.14976388216018677,
-0.1338656097650528,
0.010043704882264137,
0.09992022812366486,
0.46949732303619385,
-0.1725998818874359,
-0.07801397144794464,
0.31598061323165894,
0.06862179934978485,
-0.3099934160709381,
0.31568053364753723,
-0.2059934288263321,
-0.3162728250026703,
-0.14169393479824066,
0.15830987691879272,
-0.1611781120300293,
-0.25383898615837097,
0.12004302442073822,
-0.5064892172813416,
0.07557503879070282,
-0.11567848920822144,
-0.13362827897071838,
0.2062230110168457,
0.11657728254795074,
0.6156890392303467,
-0.06449166685342789,
0.3580474853515625,
-0.10276678949594498,
-0.18829737603664398,
-0.37886396050453186,
-0.3835239112377167,
-0.2578172981739044,
0.11028898507356644,
0.09033282846212387,
0.37026798725128174,
-0.05053926259279251,
-0.16806712746620178,
-0.1802867203950882,
0.3523741066455841,
-0.10766629874706268,
-0.14678291976451874,
-0.13411067426204681,
0.04258572310209274,
-0.2356378138065338,
0.07102644443511963,
0.07492126524448395,
0.050107963383197784,
0.13882923126220703,
0.0845676138997078,
-0.3392520546913147,
-0.5487364530563354,
0.4389970600605011,
-0.098354272544384,
-0.10983419418334961,
-0.25443658232688904,
0.46144795417785645,
-0.01575300097465515,
-0.1680741161108017,
-0.23877060413360596,
0.1662788689136505,
0.39473193883895874,
0.017672087997198105,
-0.35531073808670044,
0.1218651831150055,
0.12299032509326935,
0.20452459156513214,
-0.10871617496013641,
-0.04208779335021973,
0.009585889056324959,
-0.3169434070587158,
-0.2520292103290558,
-0.12093548476696014
] |
https://github.com/huggingface/datasets/issues/4548 | Metadata.jsonl for Imagefolder is ignored if it's in a parent directory to the splits directories/do not have "{split}_" prefix | I agree it would be nice to support this. It doesn't fit really well in the current data_files.py, where files of each splits are separated in different folder though, maybe we have to modify a bit the logic here.
One idea would be to extend `get_patterns_in_dataset_repository` and `get_patterns_locally` to additionally check for `metadata.json`, but feel free to comment if you have better ideas (I feel like we're reaching the limits of what the current implementation IMO, so we could think of a different way of resolving the data files if necessary) | If data contains a single `metadata.jsonl` file for several splits, it won't be included in a dataset's `data_files` and therefore ignored.
This happens when a directory is structured like as follows:
```
train/
file_1.jpg
file_2.jpg
test/
file_3.jpg
file_4.jpg
metadata.jsonl
```
or like as follows:
```
train_file_1.jpg
train_file_2.jpg
test_file_3.jpg
test_file_4.jpg
metadata.jsonl
```
The same for HF repos.
because it's ignored by the patterns [here](https://github.com/huggingface/datasets/blob/master/src/datasets/data_files.py#L29)
@lhoestq @mariosasko Do you think it's better to add this functionality in `data_files.py` or just specifically in imagefolder/audiofolder code? In `data_files.py` would me more general but I don't know if there are any other cases when that might be needed.
| 91 | Metadata.jsonl for Imagefolder is ignored if it's in a parent directory to the splits directories/do not have "{split}_" prefix
If data contains a single `metadata.jsonl` file for several splits, it won't be included in a dataset's `data_files` and therefore ignored.
This happens when a directory is structured like as follows:
```
train/
file_1.jpg
file_2.jpg
test/
file_3.jpg
file_4.jpg
metadata.jsonl
```
or like as follows:
```
train_file_1.jpg
train_file_2.jpg
test_file_3.jpg
test_file_4.jpg
metadata.jsonl
```
The same for HF repos.
because it's ignored by the patterns [here](https://github.com/huggingface/datasets/blob/master/src/datasets/data_files.py#L29)
@lhoestq @mariosasko Do you think it's better to add this functionality in `data_files.py` or just specifically in imagefolder/audiofolder code? In `data_files.py` would me more general but I don't know if there are any other cases when that might be needed.
I agree it would be nice to support this. It doesn't fit really well in the current data_files.py, where files of each splits are separated in different folder though, maybe we have to modify a bit the logic here.
One idea would be to extend `get_patterns_in_dataset_repository` and `get_patterns_locally` to additionally check for `metadata.json`, but feel free to comment if you have better ideas (I feel like we're reaching the limits of what the current implementation IMO, so we could think of a different way of resolving the data files if necessary) | [
-0.13286085426807404,
0.3551522493362427,
-0.035635486245155334,
0.39058631658554077,
-0.1205938309431076,
-0.20107102394104004,
0.4794278144836426,
0.27004241943359375,
-0.1125064492225647,
0.1683419793844223,
0.014017962850630283,
0.23228803277015686,
-0.3527262210845947,
0.23982901871204376,
-0.23389996588230133,
-0.11571769416332245,
0.028183355927467346,
0.29874932765960693,
0.11928029358386993,
0.11143636703491211,
-0.3302512764930725,
0.12849979102611542,
0.020927146077156067,
-0.10927055776119232,
-0.3226226270198822,
0.14650268852710724,
-0.15771791338920593,
0.3082691431045532,
-0.1248445138335228,
-0.2948387563228607,
-0.03891802951693535,
0.2732045352458954,
0.3050033450126648,
0.3448095917701721,
-0.00012076907296432182,
0.16957271099090576,
0.2812293469905853,
-0.1341220587491989,
-0.112770676612854,
-0.11965782940387726,
-0.5785766839981079,
-0.10411161929368973,
-0.12387260794639587,
-0.2247900366783142,
0.13175973296165466,
-0.20598995685577393,
0.02918286807835102,
-0.012697439640760422,
-0.05711674690246582,
-0.11345971375703812,
0.07471095025539398,
0.1231493204832077,
-0.018618017435073853,
0.3966757655143738,
0.5899065732955933,
0.8903870582580566,
-0.004780663177371025,
0.26682740449905396,
0.15674233436584473,
-0.15374870598316193,
-0.019107043743133545,
0.5565253496170044,
0.1352425217628479,
0.10180197656154633,
0.2910296320915222,
0.18208922445774078,
-0.028452880680561066,
-0.23519116640090942,
-0.24329489469528198,
0.26600247621536255,
0.33808258175849915,
-0.04216255992650986,
-0.522211492061615,
-0.5847742557525635,
-0.18337593972682953,
-0.08891259133815765,
0.1009330153465271,
0.22532880306243896,
0.12353712320327759,
0.23466169834136963,
0.0598885603249073,
-0.10021522641181946,
-0.12627379596233368,
0.11618346720933914,
-0.15504090487957,
0.3677162230014801,
0.07003504782915115,
0.06469324231147766,
0.2526799738407135,
-0.04243878275156021,
-0.08607295155525208,
-0.21376344561576843,
-0.13803507387638092,
-0.010766583494842052,
0.013452611863613129,
-0.2355170100927353,
-0.01985941082239151,
-0.0664602741599083,
0.19756340980529785,
0.35954058170318604,
-0.16932974755764008,
0.10545921325683594,
-0.3896433711051941,
0.2449534833431244,
0.4148896336555481,
-0.22119328379631042,
-0.04242493957281113,
0.42242276668548584,
0.7704403400421143,
0.2750110626220703,
-0.06273851543664932,
0.013926947489380836,
0.010983146727085114,
0.06264491379261017,
-0.04926915839314461,
-0.09833310544490814,
0.22081497311592102,
-0.1536943018436432,
-0.2132282555103302,
-0.4358718991279602,
-0.3236318528652191,
-0.5595847964286804,
0.2963261902332306,
0.04052865132689476,
0.3244746923446655,
0.32209068536758423,
-0.1139032170176506,
0.32400619983673096,
0.22755062580108643,
0.30362510681152344,
-0.07359606772661209,
0.09018228948116302,
0.07830791175365448,
0.24041445553302765,
0.133220374584198,
-0.05250163748860359,
0.27357596158981323,
-0.10436967760324478,
0.0864553153514862,
-0.06577887386083603,
0.18477210402488708,
-0.21431958675384521,
-0.02018803358078003,
0.4148033857345581,
-0.37604883313179016,
-0.07089559733867645,
-0.0677684098482132,
0.3006492853164673,
-0.2826294004917145,
0.11729983985424042,
-0.460698664188385,
-0.399360328912735,
0.36433181166648865,
0.07461244612932205,
-0.19167537987232208,
-0.06312449276447296,
-0.5530248284339905,
0.22945785522460938,
-0.1155429556965828,
-0.35772496461868286,
0.14340491592884064,
-0.04073508828878403,
-0.06033675745129585,
-0.22718429565429688,
-0.015649810433387756,
0.3624623417854309,
-0.37557724118232727,
-0.04695457965135574,
-0.1798611432313919,
-0.32046008110046387,
0.0874854177236557,
0.1823733001947403,
-0.42096391320228577,
0.2855507433414459,
-0.509397029876709,
0.35504770278930664,
0.07693131268024445,
-0.6497893333435059,
-0.08683282881975174,
0.2533808946609497,
0.07954578101634979,
0.156565323472023,
0.3917641043663025,
0.13798357546329498,
0.09356754273176193,
-0.2546744644641876,
-0.22529059648513794,
0.33298760652542114,
-0.05947505682706833,
0.1982743889093399,
0.13821052014827728,
-0.12079983949661255,
-0.03056401014328003,
0.3675483465194702,
-0.13504472374916077,
-0.008478686213493347,
0.1969892531633377,
0.05885493755340576,
0.15469613671302795,
-0.22668585181236267,
0.10196726024150848,
-0.023222364485263824,
0.48960989713668823,
0.021468013525009155,
0.015879716724157333,
-0.15948796272277832,
-0.24721431732177734,
0.1684567928314209,
-0.019027341157197952,
-0.11313071846961975,
-0.5067353844642639,
-0.2497742623090744,
0.23898634314537048,
-0.2747403085231781,
-0.41926679015159607,
-0.07723301649093628,
0.026706412434577942,
0.2586422264575958,
-0.0336371473968029,
-0.18093930184841156,
-0.33172959089279175,
0.24399815499782562,
0.1688741147518158,
0.3512689471244812,
0.08333930373191833,
0.5573146343231201,
0.08129120618104935,
0.1439094990491867,
0.12320074439048767,
0.23971158266067505,
-0.08146790415048599,
-0.42547228932380676,
0.15563520789146423,
0.37935107946395874,
0.4516373574733734,
0.1072760745882988,
0.12119029462337494,
0.3768317699432373,
0.4557581841945648,
-0.1418779492378235,
0.09392333030700684,
0.030331699177622795,
0.07029637694358826,
-0.20454555749893188,
-0.288465291261673,
0.3487665355205536,
0.12385554611682892,
0.4456773102283478,
0.1524316817522049,
-0.44561463594436646,
0.026630787178874016,
0.046484921127557755,
-0.3034091293811798,
-0.32139676809310913,
-0.3676355183124542,
-0.00987861305475235,
0.35556820034980774,
0.25994256138801575,
-0.23923847079277039,
0.20370550453662872,
0.6574750542640686,
-0.060459475964307785,
0.16253221035003662,
0.2888530492782593,
0.07114087045192719,
0.005744125694036484,
-0.0958353728055954,
0.6219859719276428,
0.6115438342094421,
0.22421719133853912,
0.016614116728305817,
-0.17676004767417908,
0.2735181748867035,
-0.23467130959033966,
-0.005026280879974365,
0.21752387285232544,
0.16649740934371948,
0.21085119247436523,
0.24614126980304718,
-0.0742744579911232,
-0.24331560730934143,
-0.5587093830108643,
-0.00479224044829607,
-0.015156092122197151,
0.03160829469561577,
0.011376464739441872,
-0.4576816260814667,
-0.2468920648097992,
-0.17370997369289398,
-0.20635639131069183,
-0.35339000821113586,
-0.19046787917613983,
0.19528807699680328,
-0.07460908591747284,
-0.44381818175315857,
-0.01394394040107727,
0.16782619059085846,
0.32858407497406006,
-0.28649038076400757,
-0.3763536810874939,
-0.14471693336963654,
0.13444308936595917,
-0.07098615914583206,
-0.03220026567578316,
0.3104248344898224,
0.07219147682189941,
0.16319599747657776,
-0.00277046300470829,
0.005204090848565102,
-0.41279757022857666,
-0.45992687344551086,
0.1126895546913147,
-0.16578496992588043,
-0.20544297993183136,
0.22850050032138824,
0.007140360772609711,
0.48335033655166626,
-0.3500625491142273,
0.1809627115726471,
0.28257694840431213,
-0.08120756596326828,
-0.0666046291589737,
0.12160278111696243,
0.41159531474113464,
-0.33972492814064026,
-0.10155727714300156,
-0.5075626373291016,
-0.545848548412323,
0.318844199180603,
-0.03212553635239601,
0.1683005541563034,
0.11637920141220093,
-0.35769376158714294,
-0.1262681782245636,
-0.34883052110671997,
-0.11986267566680908,
0.18584242463111877,
-0.24278908967971802,
0.25303545594215393,
-0.040111638605594635,
0.159057155251503,
-0.11905471235513687,
-0.22733871638774872,
0.07094592601060867,
0.20020417869091034,
-0.2780013680458069,
-0.4681077003479004,
-0.09935212880373001,
0.06314122676849365,
-0.03987756371498108,
0.1402389109134674,
0.26093268394470215,
0.18300187587738037,
0.04589592665433884,
-0.13414300978183746,
0.04243490472435951,
0.23270240426063538,
0.09357532858848572,
0.13698537647724152,
0.11624005436897278,
0.20954746007919312,
-0.00409306213259697,
0.4618331789970398,
-0.07848744094371796,
0.1158619374036789,
0.28300929069519043,
0.12500087916851044,
0.2609955370426178,
0.10596684366464615,
0.09609177708625793,
0.09826524555683136,
0.16723322868347168,
0.03092161938548088,
0.3550945520401001,
0.18957975506782532,
-0.15657193958759308,
-0.13966841995716095,
-0.1510242521762848,
-0.11475880444049835,
-0.31824421882629395,
0.12391991168260574,
0.25904273986816406,
0.37377360463142395,
-0.1855226308107376,
-0.07242856174707413,
0.19153346121311188,
0.18573153018951416,
0.0668710321187973,
0.6767932772636414,
0.44017550349235535,
0.05034177005290985,
-0.3879242241382599,
-0.3094604015350342,
0.1781083643436432,
-0.07801070809364319,
0.15741069614887238,
0.25342169404029846,
-0.004422686994075775,
-0.10995015501976013,
-0.12172231078147888,
-0.15317320823669434,
0.3557307720184326,
-0.12721964716911316,
-0.030216895043849945,
-0.2526519298553467,
-0.20965221524238586,
0.11978615075349808,
-0.17900925874710083,
-0.18455615639686584,
-0.0830063596367836,
-0.01723003014922142,
0.8432693481445312,
-0.5341311097145081,
-0.1903328001499176,
0.30155473947525024,
0.19947677850723267,
0.14423246681690216,
-0.37678006291389465,
-0.08121172338724136,
-0.07566772401332855,
-0.3419647216796875,
-0.10836432129144669,
0.122486911714077,
-0.09285518527030945,
0.06576120853424072,
-0.1757790446281433,
0.31580913066864014,
-0.2642207145690918,
-0.04991665482521057,
0.1450505554676056,
0.16234350204467773,
-0.15719403326511383,
0.1316627562046051,
0.19386473298072815,
-0.043291784822940826,
0.8306521773338318,
0.44155168533325195,
-0.2560614049434662,
-0.26476070284843445,
0.054346948862075806,
-0.25756150484085083,
0.3693946897983551,
0.23829130828380585,
-0.13806197047233582,
0.16404864192008972,
-0.05224525183439255,
-0.01900342106819153,
-0.48690158128738403,
-0.11944366246461868,
0.16934333741664886,
-0.1308351457118988,
-0.1078319400548935,
-0.4546360969543457,
0.4383636713027954,
0.2304971069097519,
0.020284757018089294,
-0.09390489757061005,
0.3048238456249237,
-0.35324400663375854,
0.1957826465368271,
-0.4057812988758087,
0.6290515661239624,
0.37017112970352173,
0.09648223221302032,
0.35482650995254517,
-0.30269116163253784,
0.2240569293498993,
-0.5062660574913025,
0.011255459859967232,
-0.07943543046712875,
0.14339348673820496,
-0.05702650547027588,
-0.17726926505565643,
0.2939267158508301,
0.5335426926612854,
-0.03746982663869858,
0.3001231551170349,
-0.03513745591044426,
0.13168954849243164,
-0.2214459478855133,
0.2353110909461975,
-0.23023411631584167,
-0.21180260181427002,
-0.19648230075836182,
0.013556137681007385,
0.04006892442703247,
0.20112499594688416,
-0.05291043594479561,
-0.3674167990684509,
-0.10125899314880371,
-0.17459507286548615,
-0.08315349370241165,
-0.16097399592399597,
-0.030008399859070778,
0.011765970848500729,
0.0813741460442543,
-0.07498776912689209,
0.1566571146249771,
-0.18471397459506989,
0.11164043843746185,
0.05206892639398575,
-0.053494758903980255,
0.0731298103928566,
-0.20040616393089294,
0.3491429388523102,
-0.12681171298027039,
-0.14271247386932373,
0.19052080810070038,
0.008965250104665756,
-0.10999798029661179,
-0.43278008699417114,
-0.27428141236305237,
-0.4819127917289734,
-0.21359610557556152,
0.16531628370285034,
-0.23277322947978973,
0.09032674133777618,
-0.04068177565932274,
0.07282749563455582,
-0.27431923151016235,
-0.19550931453704834,
0.05306556820869446,
0.2851623296737671,
-0.1427040696144104,
0.19928878545761108,
-0.4048907458782196,
-0.14213067293167114,
-0.20283527672290802,
-0.2128431797027588,
-0.1487683653831482,
0.18819880485534668,
0.21089039742946625,
-0.14387184381484985,
-0.10613849759101868,
-0.1583068072795868,
0.3403024673461914,
0.3194541931152344,
-0.10850312560796738,
0.1347293108701706,
0.2665010392665863,
-0.14712168276309967,
0.0984889566898346,
-0.1725323498249054,
0.010082446038722992,
-0.2265283465385437,
-0.2596147656440735,
-0.6474169492721558,
-0.1708652824163437,
0.3984300494194031,
-0.265302836894989,
0.14753781259059906,
-0.2790692448616028,
0.1543913036584854,
-0.11324062943458557,
0.04298381134867668,
-0.19390368461608887,
0.003022091696038842,
-0.07944043725728989,
0.12732407450675964,
0.15070904791355133,
0.1964271068572998,
0.19554664194583893,
0.19399315118789673,
0.0011970363557338715,
0.09625614434480667,
-0.13391537964344025,
0.02363581210374832,
-0.033215995877981186,
0.19193367660045624,
0.21074584126472473,
0.2723761796951294,
0.29866471886634827,
-0.17963576316833496,
-0.12806017696857452,
0.03852903097867966,
0.2776152789592743,
-0.2941025197505951,
-0.008494168519973755,
0.2017688900232315,
0.15448705852031708,
-0.29624006152153015,
0.10787175595760345,
0.33911198377609253,
-0.0983254611492157,
0.25770843029022217,
0.18846511840820312,
0.2855398654937744,
-0.38173985481262207,
-0.07660598307847977,
0.008432780392467976,
0.10766232013702393,
-0.06027308106422424,
0.2886815369129181,
0.1960112452507019,
0.034002553671598434,
0.16951525211334229,
0.07767628133296967,
0.4431569576263428,
0.2267841100692749,
0.009736638516187668,
0.15676847100257874,
0.08817930519580841,
0.0919480249285698,
-0.2773889899253845,
-0.2672163248062134,
0.17226190865039825,
-0.17017759382724762,
0.2737361192703247,
0.41587355732917786,
0.3638301193714142,
0.4277569651603699,
-0.080254465341568,
-0.10272131860256195,
0.4489192068576813,
0.12601621448993683,
0.08927211165428162,
0.5313017964363098,
-0.18136389553546906,
0.06839025765657425,
0.2959890067577362,
0.034631554037332535,
0.3184353709220886,
0.3383551836013794,
-0.10547887533903122,
0.47846946120262146,
0.1993182897567749,
-0.1650087982416153,
0.5654920935630798,
-0.2765500843524933,
-0.2314521223306656,
0.2157546430826187,
0.4558931589126587,
-0.20565441250801086,
-0.024938002228736877,
0.2924545705318451,
-0.34316161274909973,
-0.010738937184214592,
0.43036603927612305,
0.06084829941391945,
0.19627967476844788,
-0.004657818004488945,
0.0901259034872055,
-0.15553930401802063,
-0.255774587392807,
-0.20479166507720947,
-0.079094797372818,
-0.15910018980503082,
-0.04219602048397064,
0.07344887405633926,
0.12578009068965912,
-0.22848297655582428,
-0.008271194994449615,
0.05966508015990257,
0.23505032062530518,
-0.1851624846458435,
0.06304348260164261,
0.22151440382003784,
-0.23378419876098633,
0.5788931846618652,
0.22275911271572113,
0.04313717409968376,
0.06873221695423126,
0.26312923431396484,
-0.14535671472549438,
-0.6052863597869873,
-0.05997035652399063,
-0.21002358198165894,
-0.03972208499908447,
-0.2496415674686432,
-0.1182343065738678,
0.2877548336982727,
0.06720554083585739,
-0.07435638457536697,
-0.061382900923490524,
0.0032262690365314484,
-0.19387277960777283,
-0.3064115047454834,
0.5180757641792297,
-0.09701716899871826,
0.010815821588039398,
0.1645773947238922,
-0.1321747601032257,
-0.34330347180366516,
-0.3597530424594879,
0.23796913027763367,
0.015491152182221413,
-0.042510274797677994,
0.09941329807043076,
0.012096133083105087,
-0.12263606488704681,
0.18664446473121643,
0.24298614263534546,
-0.04345697909593582,
-0.0179763026535511,
-0.16919207572937012,
-0.6931633949279785,
-0.25464928150177,
-0.2565169036388397,
-0.3594314157962799,
0.04023609682917595,
0.058362022042274475,
0.236583411693573,
0.03522513806819916,
0.22368469834327698,
-0.018571922555565834,
0.14077746868133545,
-0.22931554913520813,
-0.42209193110466003,
-0.016849618405103683,
-0.09334936738014221,
0.12045618146657944,
-0.07534891366958618,
-0.3392997980117798,
0.16675341129302979,
0.3335193991661072,
-0.0976233035326004,
-0.014233540743589401,
0.10944905877113342,
-0.03663810342550278,
-0.2359381914138794,
0.1841847151517868,
0.08869694918394089,
0.10517053306102753,
-0.09019719809293747,
-0.05796279013156891,
-0.05782788619399071,
-0.1299883872270584,
-0.28317299485206604,
-0.020119696855545044,
-0.05226762965321541,
0.7761247158050537,
-0.25919023156166077,
-0.18277673423290253,
-0.5422118902206421,
0.11751935631036758,
-0.18141044676303864,
-0.08566469699144363,
-0.12099780887365341,
0.3614164888858795,
-0.19139736890792847,
-0.11849986761808395,
0.23684632778167725,
0.08929583430290222,
0.11474566906690598,
-0.4445338845252991,
-0.37588024139404297,
-0.28902220726013184,
0.3694112300872803,
-0.1660115271806717,
-0.24438965320587158,
-0.026278521865606308,
0.25901591777801514,
-0.08093630522489548,
0.2633075416088104,
-0.3663972020149231,
-0.009092926979064941,
0.302254319190979,
0.12621921300888062,
-0.11523982882499695,
-0.023821156471967697,
0.2815941572189331,
-0.3517894446849823,
0.0012700296938419342,
-0.2757391631603241,
0.14974236488342285,
-0.11830830574035645,
0.10726398229598999,
-0.02362329140305519
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | This has so much potential to be great! Also I think you tagged some poor random dude on the internet whose name is also Joao, lol, edited that for you! | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 30 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
This has so much potential to be great! Also I think you tagged some poor random dude on the internet whose name is also Joao, lol, edited that for you! | [
-0.18132002651691437,
-0.35117894411087036,
-0.21138040721416473,
0.33765530586242676,
0.22188808023929596,
0.08644422143697739,
0.13927793502807617,
0.6314025521278381,
-0.2770540118217468,
0.0345197468996048,
-0.16364216804504395,
0.53013014793396,
0.017655998468399048,
-0.15838204324245453,
0.10740727186203003,
-0.12373459339141846,
0.014143139123916626,
0.013032525777816772,
-0.16644158959388733,
-0.05942479893565178,
0.016414951533079147,
0.03302385285496712,
0.031412020325660706,
0.03875721991062164,
-0.13501279056072235,
0.016981378197669983,
0.13410793244838715,
0.18703675270080566,
0.09919090569019318,
-0.0472426600754261,
0.12224814295768738,
0.0815558135509491,
-0.1163976863026619,
0.329001247882843,
-0.00009976918227039278,
0.28981447219848633,
0.0909719467163086,
0.029781026765704155,
0.036193206906318665,
0.000010907649993896484,
-0.11772537231445312,
-0.06063937395811081,
-0.11307366192340851,
-0.25748372077941895,
-0.16287440061569214,
-0.10986392945051193,
-0.013215696439146996,
-0.2569517493247986,
0.34155911207199097,
0.37545058131217957,
0.27863749861717224,
0.38513490557670593,
0.08285444974899292,
0.19704513251781464,
0.42019301652908325,
-0.16738085448741913,
-0.2389153242111206,
0.14918407797813416,
-0.044858187437057495,
0.02685622312128544,
0.024544604122638702,
0.223778635263443,
-0.07769747078418732,
0.08792388439178467,
0.2456684708595276,
-0.01688753440976143,
-0.20957964658737183,
-0.3995307981967926,
-0.15782886743545532,
0.5529895424842834,
0.14822673797607422,
-0.16582879424095154,
-0.32536137104034424,
-0.15492038428783417,
-0.043936025351285934,
-0.13230858743190765,
0.06095702201128006,
-0.28922414779663086,
-0.06087562441825867,
0.13894981145858765,
0.22977212071418762,
0.01034438144415617,
-0.37765800952911377,
0.18731558322906494,
-0.07333555072546005,
0.13672980666160583,
-0.05488179996609688,
0.023140668869018555,
0.061835337430238724,
-0.01250481978058815,
0.27608609199523926,
-0.06115312874317169,
0.22128728032112122,
-0.002516297623515129,
-0.28891903162002563,
-0.21454112231731415,
0.09907284379005432,
-0.2630077302455902,
0.03496704250574112,
-0.06422822922468185,
0.45605984330177307,
0.29688572883605957,
-0.046023499220609665,
0.16335740685462952,
-0.3774718940258026,
-0.33744490146636963,
-0.18785256147384644,
-0.33629047870635986,
0.300260066986084,
-0.33057186007499695,
-0.15936808288097382,
0.014398027211427689,
-0.1393062323331833,
-0.07468163222074509,
-0.2333063930273056,
-0.25554198026657104,
0.11277538537979126,
0.05744132772088051,
-0.45215824246406555,
0.03101189061999321,
0.06359098106622696,
-0.08971242606639862,
0.08566445112228394,
0.04917188733816147,
0.03865186870098114,
0.18343880772590637,
0.13602805137634277,
-0.12058144807815552,
-0.18090946972370148,
-0.1303969770669937,
-0.15709325671195984,
-0.07907994091510773,
0.03285716101527214,
-0.00683467835187912,
-0.10543020069599152,
-0.11167778074741364,
0.09236948937177658,
0.019500885158777237,
0.1486789882183075,
0.37239259481430054,
0.3049865961074829,
-0.2278081178665161,
-0.03656121343374252,
0.011893436312675476,
-0.3171349763870239,
-0.23683573305606842,
0.11952929198741913,
0.3237243890762329,
-0.2452673316001892,
0.02635231986641884,
-0.3510977029800415,
-0.4071926176548004,
-0.12960337102413177,
0.2371586710214615,
-0.08487138152122498,
-0.37343400716781616,
-0.1718011200428009,
0.44635477662086487,
-0.005590721964836121,
-0.09393495321273804,
0.013237617909908295,
-0.3080946207046509,
-0.4655793607234955,
-0.38478296995162964,
0.15804490447044373,
0.0554322749376297,
-0.5321000218391418,
0.12901705503463745,
0.08144770562648773,
-0.05043826624751091,
0.05972597375512123,
0.28981974720954895,
-0.23083579540252686,
0.18929436802864075,
-0.03331325203180313,
0.10836562514305115,
0.8796048760414124,
-0.25157999992370605,
-0.17480051517486572,
0.18997140228748322,
-0.1553233563899994,
0.12757080793380737,
0.06342200189828873,
0.131098210811615,
0.06558839976787567,
-0.19544027745723724,
0.19267097115516663,
0.3165891766548157,
-0.09196529537439346,
-0.030708663165569305,
-0.3155217170715332,
-0.15579049289226532,
-0.03579320013523102,
0.21833238005638123,
-0.3018638789653778,
-0.2491864264011383,
0.026779986917972565,
-0.14184366166591644,
0.16059106588363647,
-0.1400376856327057,
-0.056050606071949005,
0.0957656130194664,
0.2649644613265991,
0.26296257972717285,
-0.09245922416448593,
-0.16249972581863403,
-0.2626219391822815,
0.2233075499534607,
0.24243193864822388,
0.04317305609583855,
0.2629680037498474,
-0.1984582543373108,
0.12789472937583923,
-0.0058098454028368,
0.14440959692001343,
0.08539022505283356,
0.25536048412323,
-0.0846036970615387,
0.09703528881072998,
0.11689485609531403,
-0.41017213463783264,
0.039789143949747086,
-0.623650848865509,
-0.013424849137663841,
0.03547058254480362,
0.2717924416065216,
0.17760418355464935,
-0.04780237004160881,
-0.06317281723022461,
0.15275000035762787,
-0.4271259903907776,
-0.29801687598228455,
-0.0738091841340065,
0.2540127635002136,
-0.21284106373786926,
-0.011114619672298431,
0.1306568682193756,
0.6185361742973328,
0.06195969879627228,
0.1060134619474411,
-0.04576072841882706,
0.1676369160413742,
-0.1209748163819313,
0.008277185261249542,
-0.027464404702186584,
0.5664968490600586,
0.23666100203990936,
0.07445836067199707,
0.07848481833934784,
-0.22224543988704681,
0.08368165791034698,
0.15003345906734467,
0.01027335599064827,
0.10641862452030182,
0.10310143232345581,
-0.18574725091457367,
0.23174937069416046,
0.013688097707927227,
-0.49187615513801575,
0.46985721588134766,
0.7501153349876404,
0.05811585113406181,
-0.06792273372411728,
0.24424731731414795,
0.003947779536247253,
-0.07497583329677582,
0.09772877395153046,
0.20401553809642792,
0.47567009925842285,
0.3173001706600189,
0.09755738079547882,
-0.14868012070655823,
-0.08835109323263168,
-0.23610036075115204,
0.34143567085266113,
-0.04445396363735199,
0.36491507291793823,
0.022499579936265945,
-0.017443209886550903,
0.12365459650754929,
-0.2633708417415619,
-0.4435182511806488,
-0.0684586688876152,
0.23345696926116943,
-0.16733701527118683,
0.00030384771525859833,
-0.15196165442466736,
-0.27069100737571716,
-0.08470717072486877,
0.11438026279211044,
-0.166643425822258,
-0.23537786304950714,
0.07412755489349365,
0.25009962916374207,
-0.050874825567007065,
-0.07613302022218704,
-0.18382351100444794,
0.253852903842926,
0.3288772702217102,
-0.2759610712528229,
-0.29751408100128174,
0.10036180168390274,
-0.2253096103668213,
0.1997525542974472,
0.3950032889842987,
-0.05162493884563446,
0.3345431387424469,
0.043519362807273865,
0.15743954479694366,
-0.2173597365617752,
-0.4381767511367798,
0.1261991262435913,
-0.4625074863433838,
0.23400789499282837,
0.06801840662956238,
0.3143422305583954,
-0.17813627421855927,
-0.0733141079545021,
0.20673570036888123,
-0.11891845613718033,
-0.07375603914260864,
-0.05960408225655556,
-0.026834268122911453,
-0.00800338014960289,
0.02743159607052803,
-0.2971169650554657,
-0.12824560701847076,
-0.4764104187488556,
0.23238416016101837,
-0.07103028893470764,
0.19504670798778534,
0.03983660414814949,
0.1296529471874237,
0.5096994042396545,
0.1105206310749054,
0.21617287397384644,
-0.12228142470121384,
-0.6069241166114807,
0.3533535897731781,
-0.18832054734230042,
-0.31467053294181824,
-0.09117458760738373,
0.17357395589351654,
0.20690472424030304,
0.15956801176071167,
-0.4851250648498535,
-0.4371194839477539,
-0.20377086102962494,
0.32011497020721436,
-0.12787677347660065,
-0.14051295816898346,
0.11708774417638779,
-0.07789379358291626,
-0.2270069420337677,
-0.1400361955165863,
0.3335190415382385,
-0.08622673898935318,
-0.08162009716033936,
-0.016594044864177704,
0.28770431876182556,
0.2229880392551422,
0.27493909001350403,
0.6915355324745178,
0.16450725495815277,
-0.30064070224761963,
0.12311668694019318,
-0.17308266460895538,
0.025145143270492554,
-0.2216775119304657,
-0.13454583287239075,
0.18354059755802155,
-0.07671846449375153,
0.3009948134422302,
0.33542048931121826,
-0.06780073046684265,
0.0765734314918518,
0.0010182447731494904,
0.12163731455802917,
0.06488953530788422,
-0.2435377985239029,
0.4547941982746124,
-0.20325738191604614,
0.059092700481414795,
-0.04406353086233139,
-0.04869205877184868,
-0.11297285556793213,
-0.18593856692314148,
0.1888747215270996,
0.2825957238674164,
0.2766840159893036,
-0.05804497003555298,
-0.08597923070192337,
0.08558815717697144,
-0.4771466851234436,
0.31700238585472107,
0.11280029267072678,
-0.0708649605512619,
-0.005432054400444031,
-0.20640772581100464,
0.08930497616529465,
-0.012303231284022331,
0.4661633372306824,
-0.2927796244621277,
-0.30825531482696533,
0.19489304721355438,
-0.1349782943725586,
-0.382579505443573,
0.11723783612251282,
-0.183367520570755,
0.051670219749212265,
0.2028382271528244,
0.3016183376312256,
-0.21654438972473145,
-0.6554441452026367,
0.07588288187980652,
-0.035093847662210464,
0.003337778151035309,
-0.002932329662144184,
-0.11503934860229492,
-0.026825036853551865,
-0.07652313262224197,
-0.06384701281785965,
-0.12591437995433807,
-0.10355450958013535,
-0.20046541094779968,
-0.1389380842447281,
-0.1819845288991928,
-0.03594892472028732,
0.323666512966156,
0.14313001930713654,
-0.046358589082956314,
0.10855022817850113,
-0.047028250992298126,
-0.0371565967798233,
0.028171127662062645,
0.3984347879886627,
0.26176968216896057,
0.01702236384153366,
-0.5040384531021118,
-0.23632502555847168,
0.18213139474391937,
0.07020128518342972,
0.21480418741703033,
-0.122954823076725,
0.18974804878234863,
-0.39236146211624146,
0.23651450872421265,
-0.026237692683935165,
0.28174275159835815,
0.2909960150718689,
0.0815749242901802,
-0.1362171471118927,
-0.4002647399902344,
0.43986809253692627,
0.08692742884159088,
0.07687459886074066,
0.5153159499168396,
0.1953345239162445,
-0.2275453358888626,
0.2296341508626938,
0.3046071529388428,
0.9606980085372925,
-0.09549614787101746,
0.31752297282218933,
0.4834146201610565,
0.18660955131053925,
0.46608343720436096,
-0.378825843334198,
-0.01735825091600418,
-0.10977885127067566,
-0.27920737862586975,
-0.010215960443019867,
0.04167814925312996,
-0.0055941566824913025,
0.01201760396361351,
-0.021886087954044342,
-0.03641650825738907,
0.30988407135009766,
0.1371115893125534,
-0.09068641811609268,
0.2831808030605316,
-0.0000011567026376724243,
-0.20554792881011963,
-0.08028288930654526,
0.2771628797054291,
0.03614066541194916,
-0.13841547071933746,
-0.024405786767601967,
-0.29099953174591064,
-0.4474460184574127,
0.3021872639656067,
0.03549434244632721,
-0.14924955368041992,
-0.44144073128700256,
0.2537323534488678,
-0.2850376069545746,
-0.39221006631851196,
0.20036879181861877,
0.20784907042980194,
0.11080899834632874,
-0.18077367544174194,
-0.2658146917819977,
-0.10986994206905365,
0.14833617210388184,
-0.02899554744362831,
0.07636287808418274,
-0.3894500732421875,
0.5602521896362305,
-0.029437832534313202,
0.0607307031750679,
0.08407796919345856,
0.0303209125995636,
-0.3122078776359558,
-0.1135653406381607,
0.01136866956949234,
0.026381459087133408,
-0.2156226634979248,
-0.3520461320877075,
0.05483826994895935,
-0.46635088324546814,
0.03675359860062599,
0.2554762065410614,
0.04298471659421921,
0.04872987046837807,
0.049606360495090485,
0.15384721755981445,
-0.14669038355350494,
0.05941426381468773,
-0.0177367702126503,
-0.0264500230550766,
-0.013375841081142426,
0.04701041802763939,
-0.13360649347305298,
-0.21619321405887604,
-0.20478656888008118,
0.34107908606529236,
0.1605636477470398,
-0.14605246484279633,
0.08892849832773209,
0.05880827084183693,
0.1220313161611557,
-0.09494199603796005,
-0.0019075684249401093,
0.003081534057855606,
-0.016245797276496887,
-0.15893971920013428,
-0.00742369145154953,
-0.3302993178367615,
0.2575967311859131,
0.035078875720500946,
0.2336571365594864,
-0.5136730670928955,
0.09737081825733185,
-0.10044154524803162,
-0.12036605179309845,
-0.48023808002471924,
0.23300263285636902,
0.253592312335968,
0.01804698258638382,
0.3683450222015381,
0.013832885771989822,
0.280686616897583,
0.15419958531856537,
0.21311615407466888,
0.2227175533771515,
-0.41684213280677795,
-0.3717982769012451,
-0.06819896399974823,
0.07981999963521957,
0.01019772607833147,
-0.2737325131893158,
0.17061303555965424,
-0.06085532158613205,
-0.27508625388145447,
-0.20071488618850708,
0.08379898965358734,
-0.1530831754207611,
-0.17958612740039825,
-0.05403364449739456,
0.10603105276823044,
0.20445725321769714,
0.0967438668012619,
0.01318746991455555,
0.08324781060218811,
0.3831813335418701,
-0.07114852964878082,
0.18112583458423615,
-0.12299764901399612,
-0.19673660397529602,
0.027160383760929108,
0.2731877267360687,
0.09337707608938217,
-0.04135150462388992,
0.1656525582075119,
0.010540816932916641,
-0.061365798115730286,
0.1328803449869156,
0.24055245518684387,
0.48652583360671997,
-0.20163209736347198,
0.022074980661273003,
0.14026841521263123,
0.30714142322540283,
0.0470283180475235,
0.04241102933883667,
0.20455579459667206,
-0.025539159774780273,
0.1619381606578827,
0.1403120756149292,
-0.0446927547454834,
0.37119778990745544,
-0.06146341562271118,
-0.2042076587677002,
-0.011973815970122814,
-0.33585280179977417,
0.0851789265871048,
0.03715629130601883,
0.11398833990097046,
-0.04941832646727562,
0.11472589522600174,
0.04708226025104523,
0.19288331270217896,
0.44652998447418213,
0.11022698134183884,
0.37288644909858704,
0.1092422679066658,
-0.06010797992348671,
0.048995982855558395,
-0.1335565447807312,
-0.05414323881268501,
0.1232919842004776,
-0.11296172440052032,
0.41767022013664246,
0.20908987522125244,
0.36094462871551514,
0.16152465343475342,
-0.3202655017375946,
0.11735496670007706,
0.25229811668395996,
-0.09036419540643692,
-0.10581663250923157,
-0.06902923434972763,
0.01048509031534195,
0.0013270527124404907,
-0.023229554295539856,
-0.07911503314971924,
-0.10629303753376007,
-0.09769946336746216,
0.27651071548461914,
0.26353538036346436,
0.005195640027523041,
-0.035768061876297,
-0.03144093602895737,
0.4098219573497772,
0.027973700314760208,
0.15532372891902924,
0.0631115734577179,
-0.09602472186088562,
-0.2180272340774536,
0.05361045151948929,
0.22210422158241272,
0.03123285062611103,
0.026126185432076454,
0.24994003772735596,
-0.2365490347146988,
-0.0687173455953598,
0.04625353962182999,
0.08699086308479309,
0.01820460706949234,
-0.031084496527910233,
0.2977016866207123,
0.20860596001148224,
-0.2472376823425293,
0.03017214871942997,
-0.17054854333400726,
0.012033158913254738,
-0.45565375685691833,
-0.04041140526533127,
0.15343554317951202,
-0.14735090732574463,
-0.21508899331092834,
-0.06342149525880814,
-0.15062835812568665,
0.03642573207616806,
0.4389283359050751,
-0.0741337463259697,
0.02658901736140251,
0.10282886773347855,
0.14864516258239746,
-0.04525471851229668,
0.4202328026294708,
-0.06390267610549927,
0.24935153126716614,
-0.026317741721868515,
-0.1537683606147766,
-0.3427453339099884,
0.031379371881484985,
-0.013272225856781006,
0.23319628834724426,
-0.04357527568936348,
0.3058764934539795,
0.2075829952955246,
0.19298449158668518,
0.20426584780216217,
-0.7083029747009277,
0.14925944805145264,
0.14540261030197144,
-0.3386187255382538,
0.15857939422130585,
-0.5114913582801819,
0.07143422961235046,
0.10808071494102478,
-0.25035902857780457,
0.08967316150665283,
-0.0977955311536789,
0.19243061542510986,
-0.3290063738822937,
0.1291598528623581,
0.23053854703903198,
0.02422838658094406,
0.4862712025642395,
-0.03743106871843338,
0.052253175526857376,
-0.11628981679677963,
-0.2008322924375534,
-0.17189231514930725,
0.040829554200172424,
-0.31172800064086914,
0.42908987402915955,
0.014031298458576202,
0.28510937094688416,
-0.02537841908633709,
-0.6731117963790894,
-0.041624363511800766,
0.02361416630446911,
-0.047021251171827316,
-0.1701885610818863,
-0.12059447914361954,
0.06691058725118637,
0.04118695855140686,
0.1316392421722412,
-0.11910606920719147,
0.5549363493919373,
-0.03996823728084564,
0.05957163870334625,
-0.39795708656311035,
-0.260795533657074,
0.45525118708610535,
-0.30279627442359924,
-0.11765162646770477,
0.18000838160514832,
0.08752945810556412,
0.1762770712375641,
0.2795024812221527,
-0.5051913857460022,
-0.1944192349910736,
0.41908469796180725,
-0.111651711165905,
-0.24502389132976532,
0.44444331526756287,
0.2688363194465637,
-0.025333356112241745,
-0.07246460020542145,
0.23355840146541595,
-0.11196983605623245,
-0.2333289384841919,
-0.02735176682472229,
-0.274831086397171
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Noted and I will look into the thread in detail tomorrow once I log back in. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 16 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Noted and I will look into the thread in detail tomorrow once I log back in. | [
-0.21949516236782074,
-0.3593602776527405,
-0.19776371121406555,
0.32190948724746704,
0.21467049419879913,
0.10271384567022324,
0.16388170421123505,
0.6277858018875122,
-0.2596612870693207,
0.027159854769706726,
-0.17608962953090668,
0.525818407535553,
0.025152914226055145,
-0.15139685571193695,
0.08682196587324142,
-0.1079922765493393,
-0.005291789770126343,
0.01401277631521225,
-0.166497603058815,
-0.07260296493768692,
-0.02582063153386116,
0.07004451006650925,
-0.011898308992385864,
0.021375086158514023,
-0.1643698513507843,
0.005722464993596077,
0.1314435750246048,
0.20578116178512573,
0.14010222256183624,
-0.06609594821929932,
0.1374978870153427,
0.05305490642786026,
-0.10091052204370499,
0.3304164707660675,
-0.00009950897219823673,
0.2990396022796631,
0.10063683986663818,
0.03476114571094513,
0.011159729212522507,
-0.002741694450378418,
-0.12549994885921478,
-0.0848085954785347,
-0.08809205144643784,
-0.2737385332584381,
-0.11095632612705231,
-0.09970267117023468,
-0.00894567184150219,
-0.213026762008667,
0.327755331993103,
0.3836502730846405,
0.2820318043231964,
0.4291417598724365,
0.10264147818088531,
0.201945498585701,
0.35372310876846313,
-0.17468418180942535,
-0.2200738936662674,
0.15049029886722565,
-0.06646105647087097,
0.04707265645265579,
-0.0004976987838745117,
0.19239503145217896,
-0.07126811146736145,
0.12725475430488586,
0.21053597331047058,
0.0006556706503033638,
-0.2161821722984314,
-0.3831610083580017,
-0.16495823860168457,
0.5480103492736816,
0.1808122843503952,
-0.15815100073814392,
-0.3155896067619324,
-0.14000123739242554,
-0.05438760295510292,
-0.1336255669593811,
0.08321871608495712,
-0.29574111104011536,
-0.04442719370126724,
0.13218677043914795,
0.18865272402763367,
0.005766799673438072,
-0.3883249759674072,
0.1665724813938141,
-0.09508450329303741,
0.13213962316513062,
-0.031840838491916656,
0.038334254175424576,
0.049385491758584976,
0.009381374344229698,
0.28376704454421997,
-0.06355633586645126,
0.21714121103286743,
-0.01917380839586258,
-0.3285365402698517,
-0.20118677616119385,
0.09374123066663742,
-0.2788107395172119,
0.01353224366903305,
-0.08179909735918045,
0.41895630955696106,
0.3349640369415283,
-0.05936232954263687,
0.15846669673919678,
-0.3525417447090149,
-0.31158268451690674,
-0.17411470413208008,
-0.3008873760700226,
0.30343934893608093,
-0.323151558637619,
-0.19417373836040497,
0.019440656527876854,
-0.13912412524223328,
-0.1049632728099823,
-0.194659024477005,
-0.2954244911670685,
0.14635701477527618,
0.04286376014351845,
-0.4780532121658325,
0.020229723304510117,
0.0849284753203392,
-0.11871370673179626,
0.0837145522236824,
0.03717118129134178,
0.07317771762609482,
0.19495996832847595,
0.15360605716705322,
-0.13719531893730164,
-0.20683389902114868,
-0.13336339592933655,
-0.16720686852931976,
-0.09745189547538757,
0.04614019766449928,
-0.013505296781659126,
-0.1215713769197464,
-0.09125858545303345,
0.10755909979343414,
-0.00500888517126441,
0.1501302719116211,
0.3863193690776825,
0.3258918821811676,
-0.1993202567100525,
-0.030955582857131958,
0.03527006506919861,
-0.29041898250579834,
-0.1952820122241974,
0.1169910728931427,
0.3788720965385437,
-0.2327209711074829,
0.030198566615581512,
-0.37479516863822937,
-0.4233413338661194,
-0.09278280287981033,
0.24194294214248657,
-0.0737893208861351,
-0.3766506016254425,
-0.1569785177707672,
0.42521190643310547,
0.00756487250328064,
-0.1107858270406723,
-0.013961061835289001,
-0.3392215967178345,
-0.48423153162002563,
-0.39956700801849365,
0.1453174203634262,
0.051513515412807465,
-0.5293465852737427,
0.1503353714942932,
0.07659216970205307,
-0.07548704743385315,
0.061056990176439285,
0.28568708896636963,
-0.25054383277893066,
0.15945082902908325,
-0.05393849313259125,
0.117616206407547,
0.8345156311988831,
-0.24197271466255188,
-0.21148571372032166,
0.21403896808624268,
-0.16558650135993958,
0.13218086957931519,
0.014701679348945618,
0.16066372394561768,
0.011795539408922195,
-0.21568776667118073,
0.1911320984363556,
0.30580127239227295,
-0.06939166784286499,
-0.013272130861878395,
-0.3115934431552887,
-0.15568426251411438,
-0.04090282320976257,
0.20828641951084137,
-0.2977920174598694,
-0.25563254952430725,
0.00926239788532257,
-0.14544780552387238,
0.1546691656112671,
-0.14082497358322144,
-0.04366529732942581,
0.11535440385341644,
0.26599979400634766,
0.26144999265670776,
-0.06493090093135834,
-0.15305587649345398,
-0.27998027205467224,
0.24670353531837463,
0.2479349672794342,
0.04660438001155853,
0.29865431785583496,
-0.17462360858917236,
0.13141107559204102,
-0.009337016381323338,
0.13942494988441467,
0.09636588394641876,
0.25236615538597107,
-0.07477939128875732,
0.09898847341537476,
0.09782540798187256,
-0.40927472710609436,
0.062458425760269165,
-0.6248641014099121,
-0.006708444561809301,
0.0512537956237793,
0.2623544931411743,
0.18199501931667328,
-0.06831563264131546,
-0.05072205886244774,
0.12115553021430969,
-0.42107850313186646,
-0.2696140706539154,
-0.09513061493635178,
0.2972014248371124,
-0.20582950115203857,
0.005638279020786285,
0.1038668304681778,
0.6066349744796753,
0.06864675879478455,
0.12067961692810059,
-0.04796154797077179,
0.15672262012958527,
-0.1404082477092743,
0.015013463795185089,
-0.03224758803844452,
0.5606905817985535,
0.2304237335920334,
0.05939638242125511,
0.08148300647735596,
-0.1961844265460968,
0.0800170972943306,
0.15893994271755219,
0.04369170218706131,
0.08648470044136047,
0.07278841733932495,
-0.2026585042476654,
0.22612465918064117,
0.024754434823989868,
-0.48286932706832886,
0.46798795461654663,
0.7600638270378113,
0.05455554649233818,
-0.052696920931339264,
0.24624371528625488,
-0.02104756236076355,
-0.08811284601688385,
0.10204663872718811,
0.25060442090034485,
0.49146199226379395,
0.3107739984989166,
0.12875062227249146,
-0.1616750806570053,
-0.13578784465789795,
-0.24447554349899292,
0.3119039833545685,
-0.047487691044807434,
0.3865537643432617,
0.013414133340120316,
0.0035397657193243504,
0.12177591025829315,
-0.25955551862716675,
-0.41202712059020996,
-0.05750206857919693,
0.23213940858840942,
-0.1757429540157318,
-0.0300411619246006,
-0.16653627157211304,
-0.26271307468414307,
-0.0755077674984932,
0.1378745585680008,
-0.1516278088092804,
-0.2711825370788574,
0.023440998047590256,
0.22643502056598663,
-0.042007461190223694,
-0.09521137177944183,
-0.19382712244987488,
0.21033528447151184,
0.37027546763420105,
-0.2593232989311218,
-0.29927340149879456,
0.110516756772995,
-0.244419127702713,
0.19528396427631378,
0.3756236433982849,
-0.043562132865190506,
0.31088951230049133,
0.05588294565677643,
0.13039171695709229,
-0.2324608713388443,
-0.4433858394622803,
0.11449126899242401,
-0.46948331594467163,
0.23619265854358673,
0.08256323635578156,
0.35340845584869385,
-0.17293153703212738,
-0.046445079147815704,
0.2167336493730545,
-0.13101069629192352,
-0.07523086667060852,
-0.027329642325639725,
-0.01631132885813713,
-0.04592299088835716,
0.00215226411819458,
-0.29276230931282043,
-0.10654450207948685,
-0.4822183847427368,
0.21323226392269135,
-0.07967841625213623,
0.20067360997200012,
0.060101501643657684,
0.09887884557247162,
0.502230167388916,
0.10479388386011124,
0.20809274911880493,
-0.11485540866851807,
-0.5725465416908264,
0.39391377568244934,
-0.19414885342121124,
-0.33522847294807434,
-0.05737975612282753,
0.18786928057670593,
0.22916021943092346,
0.18422503769397736,
-0.47989875078201294,
-0.4600461721420288,
-0.23840154707431793,
0.319195032119751,
-0.12175983190536499,
-0.1278822124004364,
0.1290096938610077,
-0.08906765282154083,
-0.22199009358882904,
-0.18108990788459778,
0.33095109462738037,
-0.04560071974992752,
-0.027615170925855637,
-0.042237795889377594,
0.2778951823711395,
0.21001768112182617,
0.2729381024837494,
0.6397376656532288,
0.1605873703956604,
-0.3054724633693695,
0.10350525379180908,
-0.19219353795051575,
0.026599258184432983,
-0.23206937313079834,
-0.07807520031929016,
0.16180194914340973,
-0.0682111382484436,
0.30855870246887207,
0.3390331268310547,
-0.08781321346759796,
0.06952905654907227,
0.015144821256399155,
0.1324174553155899,
0.060462042689323425,
-0.23060855269432068,
0.4201180338859558,
-0.17947201430797577,
0.11544424295425415,
-0.013966187834739685,
-0.030576325953006744,
-0.10953272879123688,
-0.1718628704547882,
0.1952064037322998,
0.2603970170021057,
0.28591424226760864,
-0.07427521049976349,
-0.12437120079994202,
0.0846661776304245,
-0.49546194076538086,
0.32843130826950073,
0.11507448554039001,
-0.03206792101264,
-0.0162057988345623,
-0.22388598322868347,
0.06846481561660767,
-0.026468293741345406,
0.4289807081222534,
-0.28862449526786804,
-0.3009999394416809,
0.18139341473579407,
-0.13896262645721436,
-0.3834376633167267,
0.09724478423595428,
-0.19605420529842377,
0.07182659208774567,
0.19904711842536926,
0.29712438583374023,
-0.22517594695091248,
-0.6359512209892273,
0.08002176880836487,
-0.02952316775918007,
0.012405585497617722,
0.01762339472770691,
-0.1253095120191574,
-0.05369541049003601,
-0.06069561839103699,
-0.11243974417448044,
-0.17580342292785645,
-0.10717282444238663,
-0.23650185763835907,
-0.12338285148143768,
-0.16800513863563538,
-0.056055568158626556,
0.30712711811065674,
0.14736975729465485,
0.00016852468252182007,
0.08961102366447449,
-0.032408591359853745,
-0.011224791407585144,
-0.008765913546085358,
0.4606030583381653,
0.2552858293056488,
0.04245328903198242,
-0.4902295470237732,
-0.21753355860710144,
0.1820877194404602,
0.04632856696844101,
0.2110145390033722,
-0.15005846321582794,
0.16200503706932068,
-0.38458123803138733,
0.21140073239803314,
-0.034215185791254044,
0.3037201762199402,
0.3006378710269928,
0.10510646551847458,
-0.13224302232265472,
-0.38138291239738464,
0.42842426896095276,
0.08216135203838348,
0.11006131768226624,
0.5254659652709961,
0.19269786775112152,
-0.2178424447774887,
0.21947434544563293,
0.30683982372283936,
0.9032114148139954,
-0.12352101504802704,
0.30875927209854126,
0.5384440422058105,
0.19631843268871307,
0.4591285288333893,
-0.3171987533569336,
0.01868249848484993,
-0.11556534469127655,
-0.2722027599811554,
0.004072533920407295,
0.030267637223005295,
-0.014331139624118805,
0.014102406799793243,
-0.0065061599016189575,
-0.03357694670557976,
0.34497755765914917,
0.1226472556591034,
-0.09079261124134064,
0.30684953927993774,
-0.04770171642303467,
-0.1767725795507431,
-0.03410502150654793,
0.27639344334602356,
0.019583281129598618,
-0.14869022369384766,
-0.023173630237579346,
-0.2966935634613037,
-0.46647965908050537,
0.2804802656173706,
0.04317474365234375,
-0.1541222631931305,
-0.4251439571380615,
0.28461241722106934,
-0.24668681621551514,
-0.3706439733505249,
0.19682107865810394,
0.22112609446048737,
0.11623471975326538,
-0.18869756162166595,
-0.2792598307132721,
-0.0953453779220581,
0.14242587983608246,
-0.055179987102746964,
0.0895756185054779,
-0.38141974806785583,
0.5544198155403137,
-0.01553807221353054,
0.05925009399652481,
0.055539365857839584,
0.005746188573539257,
-0.3053544759750366,
-0.09627938270568848,
0.013535499572753906,
0.04866050183773041,
-0.23505669832229614,
-0.35723522305488586,
0.04093664512038231,
-0.49659642577171326,
0.03598708286881447,
0.2557128071784973,
0.045012444257736206,
0.07351936399936676,
0.05462587997317314,
0.1259826272726059,
-0.13796047866344452,
0.0680156797170639,
-0.013021528720855713,
-0.010431073606014252,
-0.044037263840436935,
0.08573930710554123,
-0.1133393794298172,
-0.1934984177350998,
-0.18474170565605164,
0.30761438608169556,
0.14696991443634033,
-0.12840713560581207,
0.12219541519880295,
0.06454472988843918,
0.16840781271457672,
-0.06513877213001251,
0.04108019173145294,
-0.046810925006866455,
-0.01422111690044403,
-0.2199232429265976,
-0.006004031747579575,
-0.3359232544898987,
0.2807061970233917,
-0.006422791630029678,
0.2735729515552521,
-0.5009361505508423,
0.07115548849105835,
-0.1004907637834549,
-0.11685536801815033,
-0.47440093755722046,
0.20982538163661957,
0.2652263641357422,
0.03746651113033295,
0.36390161514282227,
0.00394696369767189,
0.29728108644485474,
0.1548382043838501,
0.21359381079673767,
0.23819050192832947,
-0.4072730243206024,
-0.36733803153038025,
-0.045522525906562805,
0.07820774614810944,
-0.005811093375086784,
-0.32178255915641785,
0.16395303606987,
-0.07590767741203308,
-0.297661691904068,
-0.21580061316490173,
0.07899948954582214,
-0.14555545151233673,
-0.2334449142217636,
-0.05381854996085167,
0.11173233389854431,
0.20010653138160706,
0.09002266824245453,
0.02311565913259983,
0.0502292700111866,
0.3528313636779785,
-0.0767698809504509,
0.2012147754430771,
-0.12754029035568237,
-0.18191342055797577,
0.02076607570052147,
0.2542562782764435,
0.10541537404060364,
-0.06427913159132004,
0.17728546261787415,
-0.00772508978843689,
-0.08267036080360413,
0.09580649435520172,
0.25191041827201843,
0.4850398898124695,
-0.208228200674057,
0.010051384568214417,
0.10062137246131897,
0.3083508014678955,
0.06511074304580688,
0.040775444358587265,
0.22703976929187775,
-0.015842359513044357,
0.16239997744560242,
0.11780273914337158,
-0.010442260652780533,
0.3733862638473511,
-0.05866473913192749,
-0.17512920498847961,
0.0032479208894073963,
-0.34514689445495605,
0.07572104036808014,
0.06531660258769989,
0.12114010751247406,
-0.03382009640336037,
0.13065072894096375,
0.025026649236679077,
0.19817474484443665,
0.44092220067977905,
0.152094304561615,
0.362138032913208,
0.08863109350204468,
-0.038845162838697433,
0.024147208780050278,
-0.1868848204612732,
-0.06175212934613228,
0.09344109892845154,
-0.1333393007516861,
0.43079033493995667,
0.1862417757511139,
0.35978737473487854,
0.139546200633049,
-0.29223984479904175,
0.11332481354475021,
0.23839712142944336,
-0.1335223913192749,
-0.09682019054889679,
-0.08104576170444489,
0.027958780527114868,
0.027440093457698822,
0.008622176945209503,
-0.061428945511579514,
-0.09097275137901306,
-0.11594831943511963,
0.26586928963661194,
0.2624284029006958,
0.020180128514766693,
-0.016572020947933197,
-0.00996415689587593,
0.3917815387248993,
0.03364304080605507,
0.15717186033725739,
0.07708035409450531,
-0.10812138020992279,
-0.18857888877391815,
0.03974880278110504,
0.2464773803949356,
0.0311924796551466,
0.023176338523626328,
0.2671275734901428,
-0.19162827730178833,
-0.0564660020172596,
0.05368206650018692,
0.082529716193676,
-0.003065638244152069,
-0.011097636073827744,
0.29642239212989807,
0.21163077652454376,
-0.23450280725955963,
0.00798361748456955,
-0.1870422661304474,
0.0052457815036177635,
-0.44349971413612366,
-0.04755849391222,
0.15601544082164764,
-0.19108012318611145,
-0.20513442158699036,
-0.0715700015425682,
-0.12144431471824646,
-0.014206486754119396,
0.4384356737136841,
-0.07759808748960495,
0.030676621943712234,
0.11270366609096527,
0.1502017378807068,
-0.0588395930826664,
0.44597432017326355,
-0.031026635318994522,
0.2741929292678833,
-0.02883240208029747,
-0.19132819771766663,
-0.34148573875427246,
0.019543252885341644,
0.006812766194343567,
0.2147829681634903,
-0.05332336574792862,
0.3107955753803253,
0.17124825716018677,
0.13277943432331085,
0.23266395926475525,
-0.7034084796905518,
0.1611844152212143,
0.1366369128227234,
-0.3307286202907562,
0.1627025604248047,
-0.5101911425590515,
0.013223620131611824,
0.0805286169052124,
-0.24576550722122192,
0.10674525797367096,
-0.1078648790717125,
0.18217182159423828,
-0.316802442073822,
0.13450674712657928,
0.25284337997436523,
0.05802137777209282,
0.4874667227268219,
-0.03238274157047272,
0.054884593933820724,
-0.10858989506959915,
-0.199937105178833,
-0.19017839431762695,
0.0586918443441391,
-0.2983804941177368,
0.3755541741847992,
-0.02124343439936638,
0.33356571197509766,
-0.02010902762413025,
-0.6134752035140991,
-0.03651119023561478,
0.038399048149585724,
-0.055454447865486145,
-0.18270058929920197,
-0.09376151114702225,
0.07075385004281998,
-0.009508613497018814,
0.11754007637500763,
-0.04036865010857582,
0.5582094192504883,
0.0009884685277938843,
0.031038278713822365,
-0.40723717212677,
-0.25372597575187683,
0.45452797412872314,
-0.33346274495124817,
-0.12393338978290558,
0.175339013338089,
0.07590267062187195,
0.1397298276424408,
0.26771336793899536,
-0.5112463235855103,
-0.22557693719863892,
0.429045170545578,
-0.0967169925570488,
-0.2724016308784485,
0.4304940402507782,
0.278667151927948,
-0.02904064767062664,
-0.05664372444152832,
0.2718832790851593,
-0.09302957355976105,
-0.23319490253925323,
-0.06054985523223877,
-0.2504216134548187
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | @lhoestq I have used TFRecords with `tf.data` for both vision and text and I can say that they are quite performant. I haven't worked with Feather yet as similarly as I have with TFRecords. If you haven't started the benchmarking script yet, I can prepare a Colab notebook that loads Feather files, converts them into a `tf.data` pipeline, and does some basic preprocessing.
But in my limited understanding, Feather might be better suited for CSV files. Not yet sure if it's good for modalities like images. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 86 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
@lhoestq I have used TFRecords with `tf.data` for both vision and text and I can say that they are quite performant. I haven't worked with Feather yet as similarly as I have with TFRecords. If you haven't started the benchmarking script yet, I can prepare a Colab notebook that loads Feather files, converts them into a `tf.data` pipeline, and does some basic preprocessing.
But in my limited understanding, Feather might be better suited for CSV files. Not yet sure if it's good for modalities like images. | [
-0.25734996795654297,
-0.35805952548980713,
-0.19969205558300018,
0.3299427032470703,
0.14493732154369354,
0.08801896125078201,
0.19334548711776733,
0.6237207651138306,
-0.2784808576107025,
0.0033727511763572693,
-0.17989224195480347,
0.471015602350235,
0.02251257747411728,
-0.23422735929489136,
0.08185681700706482,
-0.08838638663291931,
0.030893705785274506,
0.029272839426994324,
-0.21402671933174133,
-0.061531517654657364,
-0.04157722741365433,
0.031088005751371384,
0.01723913848400116,
0.014837287366390228,
-0.16520348191261292,
-0.03478384017944336,
0.07685195654630661,
0.22328531742095947,
0.11943114548921585,
0.07796868681907654,
0.07463287562131882,
0.011990027502179146,
-0.06063995137810707,
0.3715311288833618,
-0.00010118277714354917,
0.30729907751083374,
0.022949427366256714,
0.017697671428322792,
0.11857281625270844,
-0.08048155903816223,
-0.03613758832216263,
-0.1495029330253601,
-0.10671380907297134,
-0.3423635959625244,
-0.11594031006097794,
-0.006332299672067165,
0.0776045098900795,
-0.18038314580917358,
0.42803114652633667,
0.36491116881370544,
0.23804815113544464,
0.3520624339580536,
0.13971684873104095,
0.3019491732120514,
0.32796338200569153,
-0.11291998624801636,
-0.25548481941223145,
0.15028055012226105,
-0.03608345240354538,
0.04666786640882492,
-0.06864627450704575,
0.2865569293498993,
-0.12723717093467712,
0.12859384715557098,
0.23211747407913208,
0.07780645787715912,
-0.24748045206069946,
-0.3902532160282135,
-0.18603581190109253,
0.5165430307388306,
0.13267798721790314,
-0.15998846292495728,
-0.3435963988304138,
-0.1685394048690796,
-0.0865233764052391,
-0.14627128839492798,
0.07985728979110718,
-0.2018297165632248,
-0.046547144651412964,
0.09522312879562378,
0.07660853862762451,
-0.03352906182408333,
-0.39387908577919006,
0.2086627036333084,
-0.06689145416021347,
-0.020526938140392303,
-0.017294947057962418,
0.059287089854478836,
0.06373360008001328,
0.03779704496264458,
0.4102829098701477,
-0.13440531492233276,
0.25539177656173706,
-0.015945784747600555,
-0.38024088740348816,
-0.2016071230173111,
0.017422057688236237,
-0.2393799126148224,
-0.07770148664712906,
-0.13091637194156647,
0.45413362979888916,
0.3205702006816864,
-0.1204608753323555,
0.18392083048820496,
-0.3973091244697571,
-0.32056474685668945,
-0.17111238837242126,
-0.2201620191335678,
0.2683333158493042,
-0.33356356620788574,
-0.14929744601249695,
0.034291379153728485,
-0.1625898778438568,
-0.1673727035522461,
-0.2433639019727707,
-0.31684622168540955,
0.05640408396720886,
0.03426847979426384,
-0.43847548961639404,
-0.0344289168715477,
0.05654286593198776,
-0.07830554991960526,
-0.0073668574914336205,
-0.017268188297748566,
0.04120425879955292,
0.16522419452667236,
0.30042171478271484,
-0.11882896721363068,
-0.1900961697101593,
-0.11794921010732651,
-0.09261462092399597,
-0.018435019999742508,
0.05942508205771446,
0.03170706331729889,
-0.17072349786758423,
-0.009068073704838753,
0.048676498234272,
-0.09411197900772095,
0.16441820561885834,
0.4166547358036041,
0.2896631956100464,
-0.28125354647636414,
-0.02427852898836136,
-0.024709295481443405,
-0.32580843567848206,
-0.2850186824798584,
0.08340014517307281,
0.35833269357681274,
-0.19669869542121887,
0.03690503537654877,
-0.3884076178073883,
-0.3162665069103241,
-0.03508356213569641,
0.17984358966350555,
-0.11285199224948883,
-0.3809081017971039,
-0.17043372988700867,
0.4980393648147583,
0.024292640388011932,
-0.13445891439914703,
-0.005269050598144531,
-0.36472243070602417,
-0.4832368791103363,
-0.37719762325286865,
0.14623720943927765,
0.05042260140180588,
-0.6058050394058228,
0.20327380299568176,
0.003238449804484844,
0.0475333034992218,
-0.02521137148141861,
0.30911287665367126,
-0.1740487664937973,
0.16474469006061554,
0.01617336831986904,
0.08185036480426788,
0.8340713977813721,
-0.27648019790649414,
-0.13749577105045319,
0.17945216596126556,
-0.09944663941860199,
0.10925551503896713,
-0.03711547702550888,
0.2674686908721924,
0.0812111422419548,
-0.27627599239349365,
0.1932164579629898,
0.2768542766571045,
-0.10803118348121643,
-0.022460635751485825,
-0.24507972598075867,
-0.16873197257518768,
-0.07818000763654709,
0.2796895205974579,
-0.27119413018226624,
-0.3592849671840668,
0.009731099009513855,
-0.24988842010498047,
0.106782466173172,
-0.2110919952392578,
-0.05072959512472153,
0.08588501065969467,
0.23933006823062897,
0.24483619630336761,
-0.10183806717395782,
-0.14501522481441498,
-0.23360639810562134,
0.24695059657096863,
0.2244793176651001,
0.10896517336368561,
0.2845074534416199,
-0.10479376465082169,
0.259600430727005,
-0.08722424507141113,
0.20216874778270721,
0.08323708176612854,
0.20841360092163086,
-0.16629928350448608,
0.05506724491715431,
0.1105649322271347,
-0.3743235766887665,
0.016529323533177376,
-0.6392967700958252,
0.035614460706710815,
0.12487201392650604,
0.3132465183734894,
0.17657752335071564,
-0.10153220593929291,
-0.09358535706996918,
0.12697938084602356,
-0.5217410326004028,
-0.29286572337150574,
-0.05122647061944008,
0.3408549427986145,
-0.15281736850738525,
-0.013717502355575562,
0.14502587914466858,
0.622873842716217,
0.11694498360157013,
0.07784055173397064,
-0.03970273584127426,
0.12454217672348022,
-0.09721642732620239,
0.040793657302856445,
-0.09153323620557785,
0.522704005241394,
0.2543618679046631,
0.09360978752374649,
0.08365879952907562,
-0.20129108428955078,
-0.0076242294162511826,
0.15014199912548065,
0.06733901798725128,
0.1807091385126114,
0.04752329736948013,
-0.1951189488172531,
0.168895423412323,
-0.006835119798779488,
-0.4439292550086975,
0.421965092420578,
0.7086458206176758,
0.05768168345093727,
-0.03507967293262482,
0.23314332962036133,
-0.0393194779753685,
-0.058188118040561676,
0.15902794897556305,
0.19724874198436737,
0.4307553768157959,
0.31220749020576477,
0.02265755459666252,
-0.17069633305072784,
-0.19427230954170227,
-0.16519753634929657,
0.33914440870285034,
-0.02362377941608429,
0.4307214319705963,
-0.06903285533189774,
-0.02902805618941784,
0.20585128664970398,
-0.23472315073013306,
-0.46022653579711914,
-0.10438103973865509,
0.15237997472286224,
-0.12875831127166748,
0.017995627596974373,
-0.048692166805267334,
-0.3862507939338684,
-0.07622050493955612,
0.3231671452522278,
-0.1926967203617096,
-0.1630188673734665,
0.038669928908348083,
0.1419631540775299,
0.037154022604227066,
-0.09308882802724838,
-0.14500586688518524,
0.2411881536245346,
0.37651801109313965,
-0.313503235578537,
-0.3012022376060486,
0.051835797727108,
-0.24402865767478943,
0.17911681532859802,
0.3756375312805176,
-0.0587521456182003,
0.30959999561309814,
0.06158970296382904,
0.1373288631439209,
-0.18085041642189026,
-0.5196239948272705,
0.1458718627691269,
-0.5161387324333191,
0.2503622770309448,
0.023338988423347473,
0.31956902146339417,
-0.19712993502616882,
0.006583881564438343,
0.1732715517282486,
-0.05113972723484039,
-0.09468670189380646,
-0.09876824170351028,
0.017775706946849823,
-0.10801400244235992,
0.019643403589725494,
-0.2183203101158142,
-0.09412124752998352,
-0.4577154219150543,
0.20416785776615143,
0.04048542305827141,
0.16104549169540405,
0.07265733182430267,
0.219937264919281,
0.48392173647880554,
0.11411543190479279,
0.26489344239234924,
-0.03344811499118805,
-0.42432376742362976,
0.3625625669956207,
-0.10963565856218338,
-0.379246324300766,
-0.1511576920747757,
0.14526720345020294,
0.2565482258796692,
0.22592735290527344,
-0.4889591336250305,
-0.5200455784797668,
-0.24337749183177948,
0.2651554346084595,
-0.05832807719707489,
-0.12185905873775482,
0.13545478880405426,
-0.0325242280960083,
-0.18520112335681915,
-0.16340942680835724,
0.32658320665359497,
-0.08665918558835983,
0.04522988945245743,
-0.002408742904663086,
0.30182304978370667,
0.1742044985294342,
0.3263157606124878,
0.6161786317825317,
0.12752482295036316,
-0.423240602016449,
0.07949382066726685,
-0.19163885712623596,
0.05217614024877548,
-0.1998668611049652,
-0.11347540467977524,
0.26554426550865173,
-0.11502569913864136,
0.3043484687805176,
0.30466145277023315,
-0.10827454179525375,
0.023154258728027344,
-0.08667852729558945,
0.182729110121727,
-0.11580739170312881,
-0.24212105572223663,
0.4179205596446991,
-0.1286250650882721,
0.10734845697879791,
-0.06234384700655937,
-0.06420126557350159,
-0.05573566257953644,
-0.27576252818107605,
0.2094118446111679,
0.26734495162963867,
0.3202652037143707,
-0.06012260541319847,
-0.0058433301746845245,
0.06939318776130676,
-0.3687490224838257,
0.3751675486564636,
0.16125836968421936,
-0.15715426206588745,
-0.004949204623699188,
-0.1595754623413086,
0.04146387800574303,
-0.06922522932291031,
0.39454174041748047,
-0.2396474927663803,
-0.31134694814682007,
0.13635769486427307,
-0.19463063776493073,
-0.40489137172698975,
0.13663806021213531,
-0.2297361046075821,
-0.03761843219399452,
0.22929683327674866,
0.3881080448627472,
-0.19790169596672058,
-0.5581895112991333,
0.055631984025239944,
-0.016943739727139473,
-0.006900999695062637,
0.03793087229132652,
-0.06927753984928131,
0.04167500138282776,
-0.07406537234783173,
-0.1253730058670044,
-0.24920213222503662,
-0.07940521836280823,
-0.16206474602222443,
-0.0673275738954544,
-0.15688011050224304,
-0.13602043688297272,
0.27282559871673584,
0.1418876349925995,
-0.04812043905258179,
-0.01802648790180683,
-0.023848285898566246,
0.04029271751642227,
0.014043182134628296,
0.4021601974964142,
0.23998863995075226,
0.09589850902557373,
-0.44176608324050903,
-0.2346777319908142,
0.21043583750724792,
0.026071660220623016,
0.26574528217315674,
-0.09431712329387665,
0.05430077016353607,
-0.39294132590293884,
0.19096989929676056,
-0.06996949017047882,
0.3290703594684601,
0.330629825592041,
0.19167311489582062,
-0.13569793105125427,
-0.3605883717536926,
0.3948879837989807,
0.09066446125507355,
0.10180260241031647,
0.43260660767555237,
0.16283974051475525,
-0.23166146874427795,
0.20682859420776367,
0.416437566280365,
0.8780331611633301,
-0.16503648459911346,
0.39784541726112366,
0.4789385199546814,
0.20615534484386444,
0.5107164978981018,
-0.3415229916572571,
0.05029117688536644,
-0.09571588784456253,
-0.26815128326416016,
-0.021894117817282677,
0.047299738973379135,
0.0025434084236621857,
0.02473992109298706,
0.036167021840810776,
-0.023912308737635612,
0.5277844071388245,
0.10771907866001129,
-0.12822087109088898,
0.19964106380939484,
0.0015963204205036163,
-0.19920426607131958,
0.10665319859981537,
0.23842597007751465,
-0.011444352567195892,
-0.19190581142902374,
0.0075963083654642105,
-0.24496902525424957,
-0.5608564615249634,
0.32922035455703735,
0.048956796526908875,
-0.14250852167606354,
-0.42949962615966797,
0.31636762619018555,
-0.3289041221141815,
-0.406801700592041,
0.19315685331821442,
0.32015329599380493,
0.030956942588090897,
-0.1999584436416626,
-0.27252039313316345,
-0.035118866711854935,
0.1603008657693863,
-0.07732004672288895,
0.17891204357147217,
-0.3866990804672241,
0.6023122072219849,
-0.017268944531679153,
0.12447554618120193,
0.03870362788438797,
0.039666205644607544,
-0.24208806455135345,
-0.10389454662799835,
-0.029903478920459747,
0.04512155055999756,
-0.17144687473773956,
-0.33962082862854004,
0.04137350618839264,
-0.5313729643821716,
0.09593762457370758,
0.22428417205810547,
-0.04367233067750931,
0.19688594341278076,
0.0923948809504509,
0.1306079477071762,
-0.11749089509248734,
0.0795767530798912,
0.039347950369119644,
-0.04543358087539673,
-0.1008867546916008,
0.008837977424263954,
-0.08361027389764786,
-0.2065151333808899,
-0.14749860763549805,
0.37930580973625183,
0.14170485734939575,
-0.2195630669593811,
0.14314310252666473,
0.06243960186839104,
0.12910322844982147,
-0.08548524975776672,
0.09646078944206238,
0.052645280957221985,
-0.15234977006912231,
-0.21914933621883392,
0.05198746919631958,
-0.2995874285697937,
0.3602476119995117,
0.04247220233082771,
0.2929496765136719,
-0.5226063132286072,
0.09086377918720245,
-0.040954940021038055,
-0.14960919320583344,
-0.4382285177707672,
0.22094012796878815,
0.30802005529403687,
0.09092220664024353,
0.37441983819007874,
0.04755012318491936,
0.29485049843788147,
0.1611097902059555,
0.18390142917633057,
0.19596529006958008,
-0.39540040493011475,
-0.315774142742157,
-0.07386620342731476,
0.08767317980527878,
0.06324288249015808,
-0.3809877336025238,
0.202168807387352,
-0.1487635374069214,
-0.2978534698486328,
-0.2781401574611664,
-0.008517967537045479,
-0.20856261253356934,
-0.28489649295806885,
-0.10207663476467133,
-0.032764632254838943,
0.15341809391975403,
0.17720146477222443,
0.01712672784924507,
-0.07940405607223511,
0.4107359051704407,
-0.011645029298961163,
0.22704370319843292,
-0.0647767037153244,
-0.1996619701385498,
0.03489694744348526,
0.28805848956108093,
0.09189020097255707,
-0.11821199208498001,
0.22363287210464478,
0.031905971467494965,
-0.032858751714229584,
0.002670817542821169,
0.34266942739486694,
0.4328235983848572,
-0.21976643800735474,
-0.006249162368476391,
0.1073121652007103,
0.26381227374076843,
0.052321501076221466,
0.06925671547651291,
0.2318614423274994,
-0.03219110891222954,
0.20246243476867676,
0.1728261113166809,
-0.06103351712226868,
0.4891916513442993,
-0.12005436420440674,
-0.19534826278686523,
0.09580692648887634,
-0.41023582220077515,
0.020627819001674652,
0.059365492314100266,
0.1657090187072754,
0.028577281162142754,
0.09411536902189255,
0.02922978438436985,
0.2138543576002121,
0.474309504032135,
0.07546894252300262,
0.30266591906547546,
0.03359371796250343,
-0.04196670278906822,
0.08288833498954773,
-0.1369137167930603,
0.027481984347105026,
-0.0008438825607299805,
-0.09539060294628143,
0.4727638065814972,
0.1555328369140625,
0.33323630690574646,
0.1532708704471588,
-0.2827800214290619,
0.13684578239917755,
0.24108834564685822,
-0.08179979771375656,
-0.03383073955774307,
-0.1631787270307541,
0.044125206768512726,
0.03745632618665695,
0.06983184814453125,
-0.04293498769402504,
-0.13908636569976807,
-0.07262727618217468,
0.32019561529159546,
0.2712685763835907,
0.04967575520277023,
-0.07504919916391373,
-0.09231991320848465,
0.41156503558158875,
0.0855662077665329,
0.14673639833927155,
0.11877892166376114,
-0.05918604135513306,
-0.13704143464565277,
0.08908675611019135,
0.22702646255493164,
0.0012403316795825958,
-0.03386354446411133,
0.22426913678646088,
-0.18551142513751984,
-0.049011990427970886,
0.05497030168771744,
0.0932423323392868,
-0.04158388078212738,
0.02172873355448246,
0.3060929775238037,
0.17515699565410614,
-0.21930831670761108,
0.027812747284770012,
-0.2499639242887497,
-0.057180244475603104,
-0.43587160110473633,
-0.11198966950178146,
0.1508769690990448,
-0.1805492788553238,
-0.2365836501121521,
-0.0878339633345604,
-0.13395273685455322,
0.023322753608226776,
0.35815027356147766,
-0.1361478567123413,
0.0013740174472332,
0.21099847555160522,
0.13744433224201202,
-0.04092343524098396,
0.3749014735221863,
0.04489794373512268,
0.32496774196624756,
-0.013818680308759212,
-0.12476645410060883,
-0.247883602976799,
-0.05076044052839279,
0.024789731949567795,
0.14503422379493713,
-0.10297258198261261,
0.2934468686580658,
0.1920377016067505,
0.1947147399187088,
0.2686266303062439,
-0.7193275094032288,
0.24478751420974731,
0.12033841013908386,
-0.28728967905044556,
0.1780017465353012,
-0.4402931332588196,
0.04020248353481293,
0.05125174671411514,
-0.24485674500465393,
0.04662580415606499,
-0.11050362139940262,
0.1390661895275116,
-0.2839844226837158,
0.14994442462921143,
0.24643462896347046,
-0.09997588396072388,
0.48835110664367676,
-0.10080090910196304,
0.052999019622802734,
-0.12587332725524902,
-0.2000129520893097,
-0.07137936353683472,
0.07449234277009964,
-0.3196539878845215,
0.3525311052799225,
0.0438605397939682,
0.3940436840057373,
-0.02796032465994358,
-0.6449872255325317,
0.012241687625646591,
0.11809178441762924,
-0.061124637722969055,
-0.1855156570672989,
-0.08160065114498138,
0.04424218833446503,
-0.02315196394920349,
0.10618269443511963,
-0.07825035601854324,
0.519789457321167,
-0.0612778440117836,
0.020110120996832848,
-0.4074556231498718,
-0.300971120595932,
0.4509721100330353,
-0.4149613678455353,
-0.03713896870613098,
0.22860348224639893,
-0.04493109881877899,
0.13396728038787842,
0.3359961211681366,
-0.47827696800231934,
-0.27041301131248474,
0.41809624433517456,
-0.05377413332462311,
-0.29127204418182373,
0.42353910207748413,
0.2647493779659271,
-0.0473848320543766,
-0.037722066044807434,
0.22027531266212463,
-0.1140650138258934,
-0.20830416679382324,
-0.06525435298681259,
-0.22091977298259735
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | > Not yet sure if it's good for modalities like images.
We store images pretty much the same way as tensorflow_datasets (i.e. storing the encoded image bytes, or a path to the local image, so that the image can be decoded on-the-fly), so as long as we use something similar as TFDS for image decoding it should be ok | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 59 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
> Not yet sure if it's good for modalities like images.
We store images pretty much the same way as tensorflow_datasets (i.e. storing the encoded image bytes, or a path to the local image, so that the image can be decoded on-the-fly), so as long as we use something similar as TFDS for image decoding it should be ok | [
-0.19923469424247742,
-0.30785703659057617,
-0.22012363374233246,
0.33751946687698364,
0.2104814350605011,
0.10459720343351364,
0.13910046219825745,
0.6205322742462158,
-0.28925469517707825,
0.033259548246860504,
-0.20853188633918762,
0.4609624147415161,
-0.0301036573946476,
-0.1719948798418045,
0.07697466015815735,
-0.10269145667552948,
0.021360225975513458,
0.041662395000457764,
-0.1559341996908188,
-0.05023510754108429,
-0.04338299483060837,
0.03832460567355156,
0.05290018022060394,
0.05175406485795975,
-0.16256946325302124,
-0.02166147343814373,
0.07992088794708252,
0.1916695535182953,
0.11945844441652298,
-0.011459293775260448,
0.06595545262098312,
0.08534082770347595,
-0.047917626798152924,
0.35287147760391235,
-0.00009997516463045031,
0.34779876470565796,
0.06640411168336868,
-0.015082044526934624,
0.0433458611369133,
-0.009713336825370789,
-0.11549054086208344,
-0.14434608817100525,
-0.1296856850385666,
-0.29217323660850525,
-0.09323149919509888,
-0.1992829442024231,
0.04428735002875328,
-0.21397031843662262,
0.36293721199035645,
0.34086480736732483,
0.27247920632362366,
0.36003679037094116,
0.1178375631570816,
0.2931378185749054,
0.3487677276134491,
-0.11288344860076904,
-0.21147917211055756,
0.17145265638828278,
-0.05386766791343689,
0.057878412306308746,
-0.03361407667398453,
0.24493874609470367,
-0.08128291368484497,
0.11621543765068054,
0.21864664554595947,
0.06280268728733063,
-0.19093245267868042,
-0.38427576422691345,
-0.15015506744384766,
0.507441520690918,
0.13840457797050476,
-0.1457783579826355,
-0.3849312663078308,
-0.16761881113052368,
-0.07219681888818741,
-0.06738021224737167,
0.0984230637550354,
-0.2426375150680542,
-0.06008421629667282,
0.1471131145954132,
0.11412595957517624,
-0.06992993503808975,
-0.3954663574695587,
0.2006121724843979,
-0.09093507379293442,
0.014215677976608276,
-0.012808400206267834,
0.026742659509181976,
0.007601112127304077,
0.007714040577411652,
0.3339916169643402,
-0.10884018242359161,
0.27470019459724426,
-0.004113450646400452,
-0.24067483842372894,
-0.2060455083847046,
0.03903574496507645,
-0.23841971158981323,
0.044699206948280334,
-0.08920866996049881,
0.3725333511829376,
0.3102015256881714,
-0.13397221267223358,
0.17337444424629211,
-0.3663073480129242,
-0.3657069802284241,
-0.2307390570640564,
-0.2984236776828766,
0.301371306180954,
-0.34256598353385925,
-0.18687500059604645,
0.00870128720998764,
-0.18227572739124298,
-0.06364665180444717,
-0.17567868530750275,
-0.312288761138916,
0.11830958724021912,
0.08400735259056091,
-0.40404239296913147,
0.000644320622086525,
0.1134195402264595,
-0.10013145208358765,
0.07239840179681778,
0.023511510342359543,
0.0719950720667839,
0.20028576254844666,
0.19737574458122253,
-0.13925524055957794,
-0.13239388167858124,
-0.1258944272994995,
-0.1333996057510376,
-0.10151542723178864,
0.06362640857696533,
0.03795277327299118,
-0.17292428016662598,
-0.09457056224346161,
0.09149131178855896,
-0.042642585933208466,
0.14597593247890472,
0.42121466994285583,
0.3728269636631012,
-0.27066418528556824,
0.03280618041753769,
0.016894720494747162,
-0.2899002730846405,
-0.2763442099094391,
0.08848973363637924,
0.3665919899940491,
-0.23617109656333923,
0.048545677214860916,
-0.36019787192344666,
-0.37741562724113464,
-0.1308140903711319,
0.21005332469940186,
-0.09685882180929184,
-0.3698217272758484,
-0.1911403238773346,
0.45832738280296326,
0.03087775409221649,
-0.1354491412639618,
-0.03473576158285141,
-0.3059331178665161,
-0.4883109927177429,
-0.40417033433914185,
0.1367591917514801,
0.0665363073348999,
-0.540590763092041,
0.1903335452079773,
0.07716234028339386,
-0.05820346251130104,
0.01885419338941574,
0.25574949383735657,
-0.22081358730793,
0.17770397663116455,
-0.04316610097885132,
0.07581816613674164,
0.8077456951141357,
-0.286670982837677,
-0.18922755122184753,
0.19911330938339233,
-0.06764284521341324,
0.1340199112892151,
-0.006089434027671814,
0.2162891924381256,
0.04649098962545395,
-0.24444100260734558,
0.14131179451942444,
0.3132053017616272,
-0.1348744034767151,
0.021576447412371635,
-0.2676944136619568,
-0.2135375738143921,
-0.023840058594942093,
0.25302261114120483,
-0.2590191066265106,
-0.26883283257484436,
0.016843125224113464,
-0.16541850566864014,
0.08394982665777206,
-0.1551695168018341,
-0.046051785349845886,
0.06870024651288986,
0.27697378396987915,
0.274686336517334,
-0.09490986913442612,
-0.14924752712249756,
-0.30553001165390015,
0.24803122878074646,
0.20879365503787994,
0.001710362732410431,
0.2331417351961136,
-0.1792430281639099,
0.21262788772583008,
-0.07603415846824646,
0.1649307757616043,
0.1220579594373703,
0.2556842267513275,
-0.07081446051597595,
0.0943545550107956,
0.12738724052906036,
-0.43508169054985046,
0.05954768508672714,
-0.5698605179786682,
0.028363758698105812,
0.12408703565597534,
0.29935726523399353,
0.1865207403898239,
-0.09778128564357758,
-0.0659714862704277,
0.08501589298248291,
-0.49887242913246155,
-0.28389957547187805,
-0.058442920446395874,
0.3291921019554138,
-0.17401055991649628,
0.009007900953292847,
0.07750729471445084,
0.5923044681549072,
0.12313757091760635,
0.0891958624124527,
-0.03112650103867054,
0.08736254274845123,
-0.14714482426643372,
0.05787680298089981,
-0.08900965005159378,
0.5068473219871521,
0.24456635117530823,
0.04041868820786476,
0.0893602967262268,
-0.21074575185775757,
0.05099574476480484,
0.16990889608860016,
0.02904473803937435,
0.0489954799413681,
0.004731804132461548,
-0.20035585761070251,
0.26631346344947815,
0.01397702656686306,
-0.42767176032066345,
0.41841238737106323,
0.7216318845748901,
0.06879428029060364,
-0.0401628240942955,
0.2580634355545044,
0.012103118002414703,
-0.07877922058105469,
0.1315547078847885,
0.2486417442560196,
0.49097055196762085,
0.31299132108688354,
0.09518769383430481,
-0.17697016894817352,
-0.12826426327228546,
-0.18889553844928741,
0.2777978479862213,
-0.02126680314540863,
0.4058873951435089,
-0.0010357387363910675,
-0.02037479728460312,
0.15184743702411652,
-0.2276500165462494,
-0.4255483150482178,
-0.045393023639917374,
0.19456572830677032,
-0.12081311643123627,
-0.0066366903483867645,
-0.15911491215229034,
-0.3386026918888092,
-0.030108775943517685,
0.18838706612586975,
-0.2118780016899109,
-0.2083827257156372,
0.041796766221523285,
0.14187872409820557,
-0.03521941974759102,
-0.09727830439805984,
-0.19933639466762543,
0.21478240191936493,
0.3644923269748688,
-0.33126282691955566,
-0.26367926597595215,
0.09585212916135788,
-0.23354598879814148,
0.18223528563976288,
0.40386590361595154,
-0.10469746589660645,
0.352909117937088,
0.056571513414382935,
0.10819855332374573,
-0.22371426224708557,
-0.45381230115890503,
0.16275164484977722,
-0.4710080623626709,
0.2366093397140503,
0.06529001146554947,
0.31065958738327026,
-0.16629399359226227,
0.008588152937591076,
0.22829385101795197,
-0.06794602423906326,
-0.08963235467672348,
-0.08472991734743118,
0.04015808925032616,
-0.047304898500442505,
0.024519965052604675,
-0.16817232966423035,
-0.17984576523303986,
-0.4591267704963684,
0.1996666043996811,
-0.024966701865196228,
0.22488756477832794,
0.09591203927993774,
0.16468164324760437,
0.4707075357437134,
0.142264723777771,
0.21972207725048065,
-0.0880293920636177,
-0.5749198794364929,
0.3731602728366852,
-0.18618161976337433,
-0.3067169785499573,
-0.10325811803340912,
0.16019262373447418,
0.24709057807922363,
0.2667553424835205,
-0.4683666229248047,
-0.5353323221206665,
-0.23753668367862701,
0.31627312302589417,
-0.08557809889316559,
-0.11734376847743988,
0.08272053301334381,
-0.05248580500483513,
-0.2036602944135666,
-0.18897056579589844,
0.36568278074264526,
-0.05892563611268997,
-0.020378902554512024,
-0.03655334562063217,
0.33002999424934387,
0.1566562056541443,
0.30979305505752563,
0.5768851637840271,
0.14584097266197205,
-0.38089677691459656,
0.13196882605552673,
-0.19289368391036987,
0.061979107558727264,
-0.22296643257141113,
-0.042433466762304306,
0.2120995968580246,
-0.015336588025093079,
0.27745550870895386,
0.2925567030906677,
-0.062439925968647,
0.07613494992256165,
-0.03707285225391388,
0.15844357013702393,
-0.031389396637678146,
-0.21226000785827637,
0.41346487402915955,
-0.14394918084144592,
0.1332465410232544,
-0.052340731024742126,
-0.0752808004617691,
-0.09806695580482483,
-0.18760842084884644,
0.19327548146247864,
0.2789527177810669,
0.3111650049686432,
-0.036377135664224625,
-0.042760495096445084,
0.07856081426143646,
-0.3994816243648529,
0.27839601039886475,
0.17197875678539276,
-0.07881057262420654,
-0.009434133768081665,
-0.15186138451099396,
0.04984390363097191,
-0.06315848976373672,
0.3903080224990845,
-0.2941147983074188,
-0.33729392290115356,
0.1247381865978241,
-0.1391870379447937,
-0.37461957335472107,
0.11398759484291077,
-0.1717377007007599,
0.015679964795708656,
0.12385500967502594,
0.3863324820995331,
-0.21246901154518127,
-0.6041810512542725,
0.03383132815361023,
-0.02388940565288067,
-0.01999521255493164,
0.02665427327156067,
-0.09784521162509918,
-0.07043120265007019,
-0.06125643104314804,
-0.17751982808113098,
-0.1699131280183792,
-0.15216083824634552,
-0.13686338067054749,
-0.13412773609161377,
-0.20236052572727203,
-0.0775812417268753,
0.32115039229393005,
0.1419260948896408,
0.0006780745461583138,
0.04106162488460541,
-0.049632586538791656,
0.028999600559473038,
0.0008247308433055878,
0.48161500692367554,
0.25530678033828735,
0.00955292209982872,
-0.450464129447937,
-0.2075369954109192,
0.16432923078536987,
0.005986489355564117,
0.22565126419067383,
-0.14036943018436432,
0.08518200367689133,
-0.3918037712574005,
0.19808654487133026,
-0.1427937000989914,
0.28842321038246155,
0.29256290197372437,
0.07605533301830292,
-0.10091735422611237,
-0.37490424513816833,
0.4439578652381897,
0.10426117479801178,
0.11440493166446686,
0.43501904606819153,
0.21021124720573425,
-0.2522841989994049,
0.25794267654418945,
0.4260821044445038,
0.8611806035041809,
-0.16503514349460602,
0.3440718948841095,
0.5227326154708862,
0.17071415483951569,
0.4776513874530792,
-0.35875165462493896,
-0.02185891941189766,
-0.058353498578071594,
-0.2665535807609558,
-0.02992934174835682,
0.044698845595121384,
0.008819013833999634,
0.04102712869644165,
-0.018905986100435257,
-0.054690465331077576,
0.39110052585601807,
0.0859416052699089,
-0.0813765898346901,
0.2955847382545471,
-0.08217377215623856,
-0.21747955679893494,
-0.0019935350865125656,
0.28547194600105286,
0.000911075621843338,
-0.1645399034023285,
-0.03810156509280205,
-0.2716742753982544,
-0.48199161887168884,
0.36640465259552,
0.039176106452941895,
-0.2043401300907135,
-0.43706467747688293,
0.30828404426574707,
-0.24570107460021973,
-0.35866862535476685,
0.13162341713905334,
0.2560604214668274,
0.13902164995670319,
-0.22764001786708832,
-0.27314284443855286,
-0.10218584537506104,
0.14512193202972412,
-0.058060914278030396,
0.07562673836946487,
-0.41305011510849,
0.612575113773346,
0.009998749941587448,
0.13790374994277954,
0.033275406807661057,
0.04849395528435707,
-0.26067429780960083,
-0.10946278274059296,
-0.05138331651687622,
0.05817658081650734,
-0.1812152862548828,
-0.34113645553588867,
-0.006037630140781403,
-0.5030391812324524,
0.10822156071662903,
0.24473324418067932,
0.03201315551996231,
0.12844306230545044,
0.10475337505340576,
0.08062086254358292,
-0.07673156261444092,
0.08967968821525574,
-0.011414766311645508,
-0.03929046541452408,
-0.12868262827396393,
0.01958720199763775,
-0.14398860931396484,
-0.20542825758457184,
-0.14590372145175934,
0.3898625373840332,
0.10876348614692688,
-0.12513184547424316,
0.1461833268404007,
0.0487421415746212,
0.13590307533740997,
-0.1442285031080246,
-0.04939623549580574,
0.02197030559182167,
-0.09668967872858047,
-0.17477983236312866,
0.022022441029548645,
-0.37519365549087524,
0.33020687103271484,
0.045476607978343964,
0.2911497950553894,
-0.5282219052314758,
0.060231298208236694,
-0.0662715882062912,
-0.1282096803188324,
-0.4648275673389435,
0.21831703186035156,
0.26824718713760376,
0.037454940378665924,
0.3392195701599121,
0.037597667425870895,
0.2969115674495697,
0.12208539247512817,
0.1961643248796463,
0.24900545179843903,
-0.36219748854637146,
-0.3415151834487915,
-0.10277049243450165,
0.08313421905040741,
0.0426754467189312,
-0.3586169481277466,
0.19241364300251007,
-0.0977989062666893,
-0.2950778603553772,
-0.21125438809394836,
0.05449270084500313,
-0.1395430862903595,
-0.23659081757068634,
-0.06195667386054993,
0.042912423610687256,
0.17517328262329102,
0.14889447391033173,
0.024740640074014664,
0.050085823982954025,
0.4763084650039673,
-0.04248303174972534,
0.20868514478206635,
-0.12348691374063492,
-0.20746582746505737,
0.05273853987455368,
0.29450005292892456,
0.10062707960605621,
-0.1285645067691803,
0.2121848165988922,
0.027595210820436478,
-0.0057460591197013855,
0.0941748172044754,
0.28738516569137573,
0.4442673325538635,
-0.2510221302509308,
0.0054228659719228745,
0.1478891372680664,
0.29126518964767456,
0.08512663096189499,
0.05405145511031151,
0.2244308590888977,
-0.01922546699643135,
0.1812172830104828,
0.17563864588737488,
-0.041973892599344254,
0.4534722566604614,
-0.13047167658805847,
-0.19281238317489624,
0.04259315878152847,
-0.3471522927284241,
0.02460801787674427,
0.046198051422834396,
0.12280550599098206,
0.002993609756231308,
0.06237586587667465,
0.05491097643971443,
0.2084769904613495,
0.49153512716293335,
0.10548202693462372,
0.35635772347450256,
0.0823298990726471,
-0.04464652016758919,
0.08250390738248825,
-0.15569978952407837,
-0.04322576895356178,
0.11657429486513138,
-0.09448102116584778,
0.47553759813308716,
0.14513054490089417,
0.34001195430755615,
0.17703187465667725,
-0.31272760033607483,
0.15579549968242645,
0.2864091098308563,
-0.0709887146949768,
-0.08085289597511292,
-0.11720908433198929,
0.04477465897798538,
-0.05556086450815201,
0.02820713445544243,
-0.06316550076007843,
-0.18869997560977936,
-0.15912958979606628,
0.33494478464126587,
0.28069359064102173,
0.06473580002784729,
-0.04581785947084427,
-0.01623482257127762,
0.38705432415008545,
0.0605531744658947,
0.18309330940246582,
0.1732020229101181,
-0.11298289895057678,
-0.13144418597221375,
0.09160470217466354,
0.21035484969615936,
0.004399530589580536,
-0.010245608165860176,
0.277861624956131,
-0.2121596485376358,
-0.050624918192625046,
0.027231547981500626,
0.04517572000622749,
-0.0602036714553833,
0.001421857625246048,
0.29472804069519043,
0.20090623199939728,
-0.23251128196716309,
-0.027711767703294754,
-0.19340766966342926,
-0.02616673707962036,
-0.40317702293395996,
-0.07815634459257126,
0.15443319082260132,
-0.14538775384426117,
-0.14242102205753326,
-0.10717671364545822,
-0.16271257400512695,
-0.053308047354221344,
0.4122629463672638,
-0.10324158519506454,
0.06950143724679947,
0.22689278423786163,
0.14073236286640167,
-0.07418140769004822,
0.4148601293563843,
-0.004477392882108688,
0.3023902177810669,
-0.03434959053993225,
-0.1798103302717209,
-0.2891935706138611,
-0.035475678741931915,
-0.0094832181930542,
0.12033061683177948,
-0.09658835828304291,
0.3111555874347687,
0.14682629704475403,
0.18603630363941193,
0.23712119460105896,
-0.6956253051757812,
0.1975875198841095,
0.14238214492797852,
-0.27102646231651306,
0.1293681561946869,
-0.49537765979766846,
0.05209223926067352,
0.05735694617033005,
-0.2605021595954895,
0.1118830144405365,
-0.0857073962688446,
0.16053587198257446,
-0.30538803339004517,
0.11885535717010498,
0.2019975483417511,
-0.02284449338912964,
0.49761664867401123,
-0.03621865063905716,
0.007023386657238007,
-0.12344096601009369,
-0.2191648632287979,
-0.12529997527599335,
0.0895444005727768,
-0.33135879039764404,
0.33403030037879944,
-0.019989222288131714,
0.36609482765197754,
-0.051464639604091644,
-0.628042459487915,
-0.050488363951444626,
0.0838305801153183,
-0.06030216068029404,
-0.20283186435699463,
-0.09105967730283737,
0.03481879085302353,
-0.007267989218235016,
0.08938794583082199,
-0.03541617840528488,
0.5444625616073608,
-0.047758251428604126,
0.07478500157594681,
-0.42795097827911377,
-0.2547265589237213,
0.45500287413597107,
-0.3014587163925171,
-0.07605765014886856,
0.2347986102104187,
0.02265992760658264,
0.12993711233139038,
0.29761284589767456,
-0.49729835987091064,
-0.20975106954574585,
0.4348725378513336,
-0.09386291354894638,
-0.29393431544303894,
0.40393128991127014,
0.3330746293067932,
-0.039430104196071625,
-0.050064049661159515,
0.19456464052200317,
-0.1282137632369995,
-0.22725392878055573,
-0.07286389917135239,
-0.19799818098545074
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | So for image datasets, we could potentially store the paths in the feather format and decode and read them on the fly? But it introduces an I/O redundancy of having to read the images every time.
With caching it could be somewhat mitigated but it's not a good solution for bigger image datasets. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 53 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
So for image datasets, we could potentially store the paths in the feather format and decode and read them on the fly? But it introduces an I/O redundancy of having to read the images every time.
With caching it could be somewhat mitigated but it's not a good solution for bigger image datasets. | [
-0.22257301211357117,
-0.2932806611061096,
-0.1837540715932846,
0.36468958854675293,
0.22176894545555115,
0.07951072603464127,
0.16813993453979492,
0.5981181859970093,
-0.2809324562549591,
0.04962294548749924,
-0.19159699976444244,
0.5340715646743774,
-0.17334376275539398,
-0.15028639137744904,
0.08420887589454651,
-0.12985840439796448,
0.00929589569568634,
-0.00975143164396286,
-0.20525488257408142,
-0.04496636986732483,
-0.08539655059576035,
0.06852882355451584,
0.06889542937278748,
0.0871739536523819,
-0.17165182530879974,
-0.07119593769311905,
0.07226251065731049,
0.21139445900917053,
0.17366668581962585,
-0.06111980974674225,
0.02435448206961155,
0.09320361912250519,
0.02749091386795044,
0.3993776738643646,
-0.00010095110337715596,
0.344387412071228,
0.09846558421850204,
0.014227619394659996,
-0.022208072245121002,
-0.12303604185581207,
-0.1850588619709015,
-0.03693857043981552,
-0.10233975201845169,
-0.3355203866958618,
-0.05538669973611832,
-0.14803823828697205,
0.1260085552930832,
-0.23339012265205383,
0.40365248918533325,
0.38612428307533264,
0.2570760250091553,
0.2923339605331421,
0.10327281057834625,
0.2991015613079071,
0.38557326793670654,
-0.08538396656513214,
-0.2213311344385147,
0.11184464395046234,
-0.15273873507976532,
0.08391842991113663,
-0.08328711241483688,
0.21326276659965515,
-0.07090011239051819,
0.12463104724884033,
0.2676839828491211,
0.06819956004619598,
-0.1936025619506836,
-0.3845067024230957,
-0.18191727995872498,
0.5688163638114929,
0.10184000432491302,
-0.11387433856725693,
-0.40281060338020325,
-0.19659018516540527,
-0.11712118983268738,
-0.12157294154167175,
0.12578094005584717,
-0.1347263902425766,
-0.03842739760875702,
0.17838236689567566,
0.10906080156564713,
-0.04292822629213333,
-0.4237256944179535,
0.2202787697315216,
-0.06227392703294754,
-0.052135005593299866,
-0.026464466005563736,
0.028214309364557266,
0.0751529186964035,
0.07509005814790726,
0.39460358023643494,
-0.15567101538181305,
0.26311811804771423,
-0.014027503319084644,
-0.1750899851322174,
-0.13440513610839844,
0.028357863426208496,
-0.2396915853023529,
0.045207679271698,
-0.08627846091985703,
0.4520217478275299,
0.2654799520969391,
-0.16129429638385773,
0.20199602842330933,
-0.3245621919631958,
-0.4223068654537201,
-0.27139461040496826,
-0.26170918345451355,
0.30832403898239136,
-0.3022248148918152,
-0.1981469839811325,
-0.043348655104637146,
-0.2345440834760666,
-0.07342246919870377,
-0.23762382566928864,
-0.2720721662044525,
0.11915764212608337,
0.09511265158653259,
-0.3709109127521515,
-0.06857534497976303,
0.17286831140518188,
-0.12707138061523438,
0.08734700828790665,
0.053672101348638535,
0.07501110434532166,
0.12952908873558044,
0.18254464864730835,
-0.13973505795001984,
-0.11816676706075668,
-0.041912224143743515,
-0.11377314478158951,
-0.11910037696361542,
0.0370258204638958,
0.04255884885787964,
-0.21343736350536346,
-0.05529021844267845,
0.18004119396209717,
-0.13035742938518524,
0.09792215377092361,
0.3676759898662567,
0.33251816034317017,
-0.3368265926837921,
0.05713155120611191,
-0.028005603700876236,
-0.2938081920146942,
-0.22461847960948944,
0.016744831576943398,
0.36858123540878296,
-0.23998352885246277,
0.060564074665308,
-0.43933379650115967,
-0.41204848885536194,
-0.01906830258667469,
0.16987642645835876,
-0.10615446418523788,
-0.3537920117378235,
-0.22363555431365967,
0.4048130214214325,
-0.001444295048713684,
-0.0960850715637207,
-0.06420698016881943,
-0.28884029388427734,
-0.5220030546188354,
-0.4174153804779053,
0.17432846128940582,
0.08709947764873505,
-0.4299612045288086,
0.18531382083892822,
0.1000143513083458,
-0.03693518415093422,
0.02813887596130371,
0.31724050641059875,
-0.2844930589199066,
0.18917280435562134,
-0.12195957452058792,
0.06897887587547302,
0.8222804665565491,
-0.27344009280204773,
-0.09445450454950333,
0.16648490726947784,
-0.08776199817657471,
0.1253303438425064,
0.03644738346338272,
0.19162505865097046,
0.06664268672466278,
-0.28921228647232056,
0.12807194888591766,
0.3694656491279602,
-0.08860936760902405,
0.03335394710302353,
-0.22939433157444,
-0.2746494710445404,
0.04617848992347717,
0.19571346044540405,
-0.26341870427131653,
-0.30920320749282837,
0.04248400032520294,
-0.13294781744480133,
0.13110360503196716,
-0.20380666851997375,
-0.07713045179843903,
0.1242692619562149,
0.2279319018125534,
0.2565314769744873,
-0.09182792156934738,
-0.08631415665149689,
-0.28314369916915894,
0.22971922159194946,
0.2009972482919693,
-0.08949176967144012,
0.20539435744285583,
-0.207980677485466,
0.23774021863937378,
-0.07258173823356628,
0.11151861399412155,
0.11726778745651245,
0.22085675597190857,
-0.07254350185394287,
0.11761856079101562,
0.17551402747631073,
-0.45665645599365234,
0.021787092089653015,
-0.6214354634284973,
-0.01024613156914711,
0.1841365247964859,
0.3375219404697418,
0.19341905415058136,
-0.021445557475090027,
-0.0646480917930603,
0.17992886900901794,
-0.5022340416908264,
-0.29135552048683167,
-0.03276921063661575,
0.3422488272190094,
-0.10092706233263016,
0.030340753495693207,
0.11534575372934341,
0.644683301448822,
0.1343456208705902,
0.11101622879505157,
-0.04784366488456726,
0.1117449551820755,
-0.16108037531375885,
0.09425156563520432,
-0.1422928273677826,
0.49636948108673096,
0.17698121070861816,
0.086008220911026,
0.10363563895225525,
-0.19131170213222504,
0.07079952210187912,
0.12575040757656097,
-0.027265403419733047,
0.09838184714317322,
0.03743591532111168,
-0.2180463820695877,
0.31071600317955017,
0.006964422762393951,
-0.5276488065719604,
0.4180014133453369,
0.7561669945716858,
0.11669275164604187,
-0.06691258400678635,
0.25228139758110046,
-0.03482731431722641,
-0.04406459257006645,
0.12889547646045685,
0.333143949508667,
0.428977906703949,
0.30322954058647156,
0.14645494520664215,
-0.16555696725845337,
-0.1815168410539627,
-0.19264598190784454,
0.29179149866104126,
0.04865431785583496,
0.4778231978416443,
-0.05812068283557892,
-0.054485984146595,
0.14989538490772247,
-0.25477734208106995,
-0.42596134543418884,
-0.021328868344426155,
0.1506417989730835,
-0.15489442646503448,
0.028988083824515343,
-0.19082102179527283,
-0.419723778963089,
-0.14442181587219238,
0.17987339198589325,
-0.1903170645236969,
-0.19953890144824982,
0.029356155544519424,
0.14331816136837006,
-0.06142924353480339,
-0.07213272154331207,
-0.16772660613059998,
0.18468263745307922,
0.3483426868915558,
-0.3198069930076599,
-0.23003332316875458,
0.07144365459680557,
-0.18468061089515686,
0.1586504876613617,
0.4276568293571472,
-0.11060231178998947,
0.30420637130737305,
0.05524475872516632,
0.11182244122028351,
-0.2735901474952698,
-0.42186489701271057,
0.1274055540561676,
-0.41223692893981934,
0.1687939316034317,
0.09247852116823196,
0.29280173778533936,
-0.11470063030719757,
-0.058862052857875824,
0.2217377871274948,
-0.014056354761123657,
-0.021537568420171738,
-0.08934027701616287,
0.06769510358572006,
-0.03185666352510452,
0.03354319557547569,
-0.19149768352508545,
-0.16506202518939972,
-0.47840338945388794,
0.25007447600364685,
0.0007684007287025452,
0.3218325972557068,
0.11100464314222336,
0.18680298328399658,
0.46607962250709534,
0.015198877081274986,
0.2279672473669052,
-0.046749990433454514,
-0.5715233683586121,
0.3785388767719269,
-0.19389301538467407,
-0.324814110994339,
-0.07759007811546326,
0.12230204045772552,
0.2872134745121002,
0.2996496558189392,
-0.5514652132987976,
-0.5372676849365234,
-0.21637028455734253,
0.34356266260147095,
-0.06455150991678238,
-0.12047140300273895,
0.0812315121293068,
-0.0021243044175207615,
-0.18387499451637268,
-0.18752938508987427,
0.4321445822715759,
-0.013640835881233215,
-0.042387768626213074,
0.05375910922884941,
0.37087905406951904,
0.17107713222503662,
0.319091260433197,
0.5827791690826416,
0.1544114053249359,
-0.2941344082355499,
0.13998889923095703,
-0.2645251750946045,
0.11139312386512756,
-0.21108919382095337,
-0.011137433350086212,
0.16506923735141754,
-0.07612878084182739,
0.24911542236804962,
0.3051585555076599,
0.017354462295770645,
0.049274370074272156,
-0.012568090111017227,
0.14561210572719574,
-0.026267949491739273,
-0.2698625922203064,
0.4280945956707001,
-0.16343535482883453,
0.13800200819969177,
-0.04296213388442993,
-0.046393223106861115,
-0.113053098320961,
-0.17507800459861755,
0.236930713057518,
0.2994381785392761,
0.42122378945350647,
0.002594703808426857,
-0.027569735422730446,
0.06480520218610764,
-0.46551328897476196,
0.20062308013439178,
0.10165273398160934,
-0.08655782788991928,
0.014740485697984695,
-0.16769641637802124,
0.04215520992875099,
-0.05450128763914108,
0.41523492336273193,
-0.23278741538524628,
-0.30544406175613403,
0.07382352650165558,
-0.1693594753742218,
-0.4239453673362732,
0.16027766466140747,
-0.1075606569647789,
0.03208586946129799,
0.12120363116264343,
0.397274911403656,
-0.21702688932418823,
-0.6171806454658508,
0.040526244789361954,
0.03578849136829376,
-0.03158619999885559,
0.05745135620236397,
-0.08077993988990784,
-0.067721426486969,
-0.09506424516439438,
-0.23238691687583923,
-0.1470910757780075,
-0.15711675584316254,
-0.15593592822551727,
-0.19488026201725006,
-0.2517082691192627,
-0.08080582320690155,
0.2289709597826004,
0.09864255785942078,
0.06353378295898438,
0.0514402836561203,
-0.039070095866918564,
0.06504743546247482,
0.0581560954451561,
0.45975515246391296,
0.2583836317062378,
-0.056437935680150986,
-0.4720683693885803,
-0.2449105679988861,
0.0875314325094223,
0.008639015257358551,
0.23013444244861603,
-0.15300332009792328,
0.12283377349376678,
-0.3371192514896393,
0.17427363991737366,
-0.18029427528381348,
0.29225876927375793,
0.2923864722251892,
0.12802927196025848,
-0.09342917799949646,
-0.4232114553451538,
0.40913692116737366,
0.16386112570762634,
0.09242086112499237,
0.48217323422431946,
0.1951964646577835,
-0.29556018114089966,
0.2538418173789978,
0.40122562646865845,
0.8481255173683167,
-0.17627643048763275,
0.4199177026748657,
0.5373848080635071,
0.1440686285495758,
0.4175163507461548,
-0.26204508543014526,
-0.03753967955708504,
-0.04292229190468788,
-0.2222081869840622,
-0.04997386410832405,
-0.0027985088527202606,
-0.018143393099308014,
0.0687679722905159,
0.015093106776475906,
0.001308628125116229,
0.43318313360214233,
0.10602128505706787,
-0.12756937742233276,
0.28727948665618896,
-0.033166877925395966,
-0.2061879187822342,
0.03583371266722679,
0.2401568591594696,
0.0378560796380043,
-0.1787525713443756,
-0.0013250941410660744,
-0.30195069313049316,
-0.4343889057636261,
0.3127822279930115,
0.1223411113023758,
-0.23534870147705078,
-0.5073636770248413,
0.31188684701919556,
-0.3385908305644989,
-0.4364265203475952,
0.09699040651321411,
0.28780966997146606,
0.089213527739048,
-0.21645347774028778,
-0.27364370226860046,
-0.09350188076496124,
0.12771785259246826,
-0.10538574308156967,
-0.030602170154452324,
-0.41885945200920105,
0.5388374328613281,
0.002022393047809601,
0.20658567547798157,
0.03228496015071869,
-0.0289614237844944,
-0.3133472800254822,
-0.07689481973648071,
-0.005845591425895691,
0.08815158903598785,
-0.09771498292684555,
-0.312319278717041,
0.027904145419597626,
-0.5711028575897217,
0.08956079185009003,
0.21772077679634094,
0.012039456516504288,
0.15828074514865875,
0.1055242270231247,
0.14763660728931427,
-0.12237118184566498,
0.10506798326969147,
-0.06714565306901932,
-0.06686104089021683,
-0.07547025382518768,
0.10926536470651627,
-0.17644895613193512,
-0.19771355390548706,
-0.1112845167517662,
0.427630215883255,
0.09911568462848663,
-0.19460441172122955,
0.15538930892944336,
0.023197725415229797,
0.1684315949678421,
-0.17106284201145172,
-0.04034372791647911,
-0.018869109451770782,
-0.08318369835615158,
-0.24361594021320343,
-0.03260581195354462,
-0.3473331928253174,
0.36174750328063965,
-0.04314923658967018,
0.3239381015300751,
-0.4820944368839264,
-0.007791746407747269,
-0.06048985570669174,
-0.19125843048095703,
-0.4327310025691986,
0.2722393274307251,
0.24037322402000427,
0.06546875834465027,
0.38025450706481934,
0.06507033854722977,
0.30589601397514343,
0.11199435591697693,
0.16625119745731354,
0.18160654604434967,
-0.32082661986351013,
-0.31959331035614014,
-0.13139232993125916,
0.0952940434217453,
0.06733684986829758,
-0.30720314383506775,
0.18616677820682526,
-0.16514088213443756,
-0.2899855077266693,
-0.2144864797592163,
0.002204885706305504,
-0.08923695981502533,
-0.25938403606414795,
-0.10729102790355682,
0.04579942300915718,
0.14192301034927368,
0.11475072801113129,
0.06407343596220016,
0.002277761697769165,
0.48242872953414917,
-0.0518551766872406,
0.22597931325435638,
-0.15081000328063965,
-0.21360114216804504,
0.01597377471625805,
0.21482717990875244,
0.06008576974272728,
-0.13919731974601746,
0.21592530608177185,
0.024296309798955917,
-0.01280348002910614,
0.10275839269161224,
0.264417827129364,
0.4203273355960846,
-0.21545375883579254,
0.002192862331867218,
0.23929095268249512,
0.2501646876335144,
0.09791664779186249,
0.05057073011994362,
0.18343393504619598,
-0.06945391744375229,
0.1752205640077591,
0.16121672093868256,
-0.029900848865509033,
0.4572107791900635,
-0.15269838273525238,
-0.201480895280838,
0.06829779595136642,
-0.3734164834022522,
0.09254243969917297,
0.03974677249789238,
0.10187971591949463,
-0.013149533420801163,
0.033918559551239014,
0.07439705729484558,
0.21508964896202087,
0.46489202976226807,
0.07217399030923843,
0.35162127017974854,
0.21888384222984314,
-0.09805718064308167,
0.08603177964687347,
-0.17188242077827454,
-0.1141352653503418,
0.0009596943855285645,
-0.10450786352157593,
0.43382883071899414,
0.10398823022842407,
0.36009201407432556,
0.19669832289218903,
-0.29078009724617004,
0.19710959494113922,
0.34270137548446655,
-0.052235402166843414,
-0.09828633069992065,
-0.15919166803359985,
0.07044819742441177,
-0.000093117356300354,
0.012867067009210587,
-0.02767164632678032,
-0.2181992381811142,
-0.14042992889881134,
0.346862256526947,
0.36569809913635254,
0.03178507089614868,
0.03816009685397148,
-0.00020454451441764832,
0.4029739499092102,
0.01955471560359001,
0.18570344150066376,
0.11554516851902008,
-0.041116975247859955,
-0.09171658754348755,
0.035049911588430405,
0.2015225738286972,
0.010776534676551819,
0.01453943271189928,
0.21357014775276184,
-0.19250968098640442,
-0.002782616764307022,
0.047979868948459625,
-0.00011547468602657318,
-0.00042075663805007935,
0.004691999405622482,
0.4062805473804474,
0.1630919873714447,
-0.20303742587566376,
0.03084256313741207,
-0.20897887647151947,
0.006831730715930462,
-0.3917602002620697,
-0.04525905102491379,
0.19170325994491577,
-0.12933485209941864,
-0.12459138035774231,
-0.08695510774850845,
-0.14974406361579895,
-0.009012299589812756,
0.4344892203807831,
-0.15818774700164795,
0.06839188933372498,
0.25149309635162354,
0.12843561172485352,
-0.0265667587518692,
0.44545483589172363,
-0.00020639225840568542,
0.3929389715194702,
-0.060446932911872864,
-0.1762314736843109,
-0.3090413808822632,
-0.06332912296056747,
-0.07397380471229553,
0.11080113053321838,
-0.1235681027173996,
0.28485533595085144,
0.07449757307767868,
0.17324353754520416,
0.2986382246017456,
-0.631605327129364,
0.257432222366333,
0.1728401482105255,
-0.3079572916030884,
0.10747873783111572,
-0.37796181440353394,
0.06880228966474533,
0.03436774015426636,
-0.2646718919277191,
0.1053822860121727,
-0.010687059722840786,
0.14119920134544373,
-0.18753765523433685,
0.17233602702617645,
0.13778191804885864,
-0.03228282183408737,
0.4546828269958496,
-0.08914784342050552,
-0.04258595407009125,
-0.10415677726268768,
-0.15474295616149902,
-0.1723918467760086,
-0.013898279517889023,
-0.2938936650753021,
0.28765812516212463,
-0.0010820217430591583,
0.3534526228904724,
-0.0973057970404625,
-0.6865999102592468,
-0.1176195815205574,
0.020323142409324646,
-0.06835697591304779,
-0.1734207719564438,
-0.036827538162469864,
0.09752731770277023,
-0.016891825944185257,
0.13094526529312134,
-0.01657875068485737,
0.4904453158378601,
-0.07331086695194244,
0.025266757234930992,
-0.31873825192451477,
-0.2691422998905182,
0.48082488775253296,
-0.33789604902267456,
-0.06108478829264641,
0.23043173551559448,
0.013180792331695557,
0.14890886843204498,
0.3625301122665405,
-0.5099201202392578,
-0.2616947591304779,
0.4398222863674164,
-0.051956869661808014,
-0.28423240780830383,
0.3393375873565674,
0.28385066986083984,
0.0012684501707553864,
-0.0222493726760149,
0.24377666413784027,
-0.13389945030212402,
-0.2548316419124603,
-0.10812826454639435,
-0.2579280436038971
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | > So for image datasets, we could potentially store the paths in the feather format and decode and read them on the fly?
hopefully yes :)
I double-checked the TFDS source code and they always save the bytes actually, not the path. Anyway we'll see if we run into issues or not (as a first step we can require the bytes to be in the feather file) | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 67 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
> So for image datasets, we could potentially store the paths in the feather format and decode and read them on the fly?
hopefully yes :)
I double-checked the TFDS source code and they always save the bytes actually, not the path. Anyway we'll see if we run into issues or not (as a first step we can require the bytes to be in the feather file) | [
-0.2071114033460617,
-0.289401113986969,
-0.1920882612466812,
0.39897215366363525,
0.2264755666255951,
0.07998507469892502,
0.11777102202177048,
0.5918859243392944,
-0.32529881596565247,
0.028287097811698914,
-0.18735376000404358,
0.5183919668197632,
-0.16292768716812134,
-0.18630404770374298,
0.10621881484985352,
-0.07816405594348907,
0.03927917778491974,
-0.0011096596717834473,
-0.23205479979515076,
-0.04327655956149101,
-0.047210562974214554,
0.12265359610319138,
0.06664423644542694,
0.09025418013334274,
-0.19704823195934296,
-0.022610077634453773,
0.07086128741502762,
0.2614706754684448,
0.18109269440174103,
-0.03535914793610573,
0.07478176802396774,
0.09404785931110382,
0.011413710191845894,
0.42774367332458496,
-0.00010269720223732293,
0.3346772789955139,
0.08732497692108154,
0.022117896005511284,
-0.004415723495185375,
-0.08144134283065796,
-0.1799297332763672,
-0.038855746388435364,
-0.1125563532114029,
-0.31802886724472046,
-0.04839739948511124,
-0.1417529433965683,
0.03212224319577217,
-0.24049147963523865,
0.3948827385902405,
0.38948854804039,
0.23704108595848083,
0.31877389550209045,
0.13755300641059875,
0.31289127469062805,
0.3684195876121521,
-0.04729609936475754,
-0.20961827039718628,
0.1638495773077011,
-0.15037967264652252,
0.06659549474716187,
-0.026442721486091614,
0.18014676868915558,
-0.0900709480047226,
0.12260691821575165,
0.28330546617507935,
0.09597835689783096,
-0.23157715797424316,
-0.3637009561061859,
-0.15238866209983826,
0.5968883633613586,
0.11754553765058517,
-0.14537551999092102,
-0.3571033775806427,
-0.19551602005958557,
-0.11397963762283325,
-0.12553495168685913,
0.15702855587005615,
-0.2271302342414856,
-0.061095498502254486,
0.1839037537574768,
0.12848469614982605,
-0.07537442445755005,
-0.4053407907485962,
0.2079630047082901,
-0.047845806926488876,
-0.006481491029262543,
-0.036385245621204376,
-0.001610688865184784,
0.04296800121665001,
0.04162215441465378,
0.41091206669807434,
-0.13115613162517548,
0.2274026721715927,
0.005893167108297348,
-0.22168560326099396,
-0.14548084139823914,
0.051592692732810974,
-0.24134355783462524,
0.026408180594444275,
-0.09591484069824219,
0.4296438694000244,
0.24444401264190674,
-0.1593245565891266,
0.15887302160263062,
-0.3511865735054016,
-0.3998652398586273,
-0.21922186017036438,
-0.28348833322525024,
0.29257285594940186,
-0.2913135886192322,
-0.1605682373046875,
-0.014690771698951721,
-0.2230442464351654,
-0.074464812874794,
-0.24192176759243011,
-0.3057967722415924,
0.15393370389938354,
0.07160478830337524,
-0.3485948145389557,
-0.016235437244176865,
0.18424981832504272,
-0.14002260565757751,
0.07788955420255661,
0.02722018212080002,
0.07951991260051727,
0.14856383204460144,
0.19542430341243744,
-0.14695502817630768,
-0.10727667063474655,
-0.05555740371346474,
-0.12048380821943283,
-0.15638166666030884,
0.08328168094158173,
0.03910081088542938,
-0.22591106593608856,
-0.04383720085024834,
0.14146342873573303,
-0.11181866377592087,
0.13208447396755219,
0.42897626757621765,
0.25923973321914673,
-0.2618195116519928,
0.058126334100961685,
-0.05013762786984444,
-0.3030100166797638,
-0.2100706696510315,
0.08095167577266693,
0.35676878690719604,
-0.20606499910354614,
0.056810811161994934,
-0.405860960483551,
-0.3722221553325653,
-0.11850287020206451,
0.17170481383800507,
-0.13315004110336304,
-0.368003249168396,
-0.23619911074638367,
0.4105868935585022,
0.008513934910297394,
-0.12787163257598877,
-0.021088220179080963,
-0.3274526000022888,
-0.504883348941803,
-0.4308892786502838,
0.2118866741657257,
0.08123400062322617,
-0.4758315682411194,
0.19065949320793152,
0.08252346515655518,
-0.05525163933634758,
0.007489942014217377,
0.2430032193660736,
-0.2414090484380722,
0.1969330757856369,
-0.12383189797401428,
0.12717030942440033,
0.8584250211715698,
-0.2543678879737854,
-0.0949358120560646,
0.2141820639371872,
-0.07890912145376205,
0.14231739938259125,
0.000141829252243042,
0.12997756898403168,
0.06546641886234283,
-0.26539865136146545,
0.14514705538749695,
0.3502170443534851,
-0.1035536676645279,
-0.011028539389371872,
-0.25816258788108826,
-0.26100751757621765,
0.03530676290392876,
0.17663925886154175,
-0.28337985277175903,
-0.30670616030693054,
0.06897994875907898,
-0.12730127573013306,
0.156302809715271,
-0.1961757242679596,
-0.054010309278964996,
0.1595233678817749,
0.2278929352760315,
0.30288660526275635,
-0.06599101424217224,
-0.13349702954292297,
-0.3207037150859833,
0.2208741307258606,
0.21003207564353943,
-0.06516585499048233,
0.2238706350326538,
-0.18261592090129852,
0.2393243908882141,
-0.0843239426612854,
0.1334824562072754,
0.1197594702243805,
0.21883925795555115,
-0.11403249204158783,
0.1276347041130066,
0.1768677830696106,
-0.4589312970638275,
-0.0246844831854105,
-0.6443966627120972,
-0.006791651248931885,
0.16420653462409973,
0.33618927001953125,
0.23082782328128815,
-0.08929473906755447,
-0.07703666388988495,
0.18028825521469116,
-0.5201794505119324,
-0.3120228946208954,
-0.08393058180809021,
0.34834402799606323,
-0.18025347590446472,
0.0018289461731910706,
0.12706483900547028,
0.6698441505432129,
0.11114642769098282,
0.12864388525485992,
-0.09138898551464081,
0.1382775753736496,
-0.14107251167297363,
0.07254377752542496,
-0.12067072838544846,
0.4737449884414673,
0.16263656318187714,
0.08100885897874832,
0.09975782036781311,
-0.19172392785549164,
0.06031575798988342,
0.14689205586910248,
0.013801202178001404,
0.11754538118839264,
0.03655555099248886,
-0.268252432346344,
0.27163055539131165,
0.019733112305402756,
-0.4835174083709717,
0.4446374773979187,
0.758793830871582,
0.0894085019826889,
-0.08138776570558548,
0.2786107361316681,
-0.04099549353122711,
-0.07416392117738724,
0.14292219281196594,
0.3209565281867981,
0.47178786993026733,
0.2849702835083008,
0.13337627053260803,
-0.1852259337902069,
-0.1693650484085083,
-0.21051765978336334,
0.3036782741546631,
0.007550239562988281,
0.45476034283638,
-0.022853322327136993,
-0.09934515506029129,
0.18626588582992554,
-0.25184503197669983,
-0.42115914821624756,
-0.038964442908763885,
0.1434277892112732,
-0.18692830204963684,
0.005505640059709549,
-0.21645693480968475,
-0.40372881293296814,
-0.11511898040771484,
0.19569310545921326,
-0.22209963202476501,
-0.1869250237941742,
0.015755226835608482,
0.15506920218467712,
-0.025937894359230995,
-0.08551125228404999,
-0.1724085658788681,
0.18091975152492523,
0.3374139070510864,
-0.3426280915737152,
-0.2644529938697815,
0.08349122852087021,
-0.26787278056144714,
0.1527639776468277,
0.463329941034317,
-0.08172963559627533,
0.30377697944641113,
0.05048925429582596,
0.10077186673879623,
-0.28454646468162537,
-0.3960359990596771,
0.13118083775043488,
-0.4472559690475464,
0.21252109110355377,
0.09041942656040192,
0.2998110055923462,
-0.18925657868385315,
0.009743218310177326,
0.22016209363937378,
-0.043045103549957275,
-0.04149392247200012,
-0.10442807525396347,
0.0647040531039238,
-0.06639751046895981,
0.016632765531539917,
-0.14789855480194092,
-0.1390199065208435,
-0.43941283226013184,
0.20934875309467316,
-0.014637645334005356,
0.27634626626968384,
0.09533026814460754,
0.18930023908615112,
0.5202339887619019,
0.054023467004299164,
0.2099684476852417,
-0.0443950891494751,
-0.6195070743560791,
0.3994242548942566,
-0.1872788816690445,
-0.3356216847896576,
-0.06066572666168213,
0.13746808469295502,
0.30228790640830994,
0.28627294301986694,
-0.47894906997680664,
-0.5487509369850159,
-0.21244221925735474,
0.3691994547843933,
-0.09480969607830048,
-0.08586578816175461,
0.11864389479160309,
-0.020045205950737,
-0.17139217257499695,
-0.19089066982269287,
0.4196087121963501,
-0.03380971401929855,
-0.03683968633413315,
0.058671243488788605,
0.40938058495521545,
0.16452717781066895,
0.30821192264556885,
0.5739086270332336,
0.1464659720659256,
-0.3009158670902252,
0.13240084052085876,
-0.28215280175209045,
0.09728705883026123,
-0.1872660517692566,
-0.0067587075755000114,
0.20072560012340546,
-0.06401300430297852,
0.24998469650745392,
0.31768298149108887,
0.0003069266676902771,
0.1204950213432312,
0.013547319918870926,
0.18359073996543884,
-0.037332020699977875,
-0.24045610427856445,
0.417618989944458,
-0.18718750774860382,
0.137785866856575,
-0.05759673938155174,
-0.08483169972896576,
-0.060476530343294144,
-0.21216201782226562,
0.25266095995903015,
0.335182249546051,
0.4095427691936493,
0.0018347682198509574,
-0.008731614798307419,
0.08429795503616333,
-0.4498292803764343,
0.22163785994052887,
0.11977347731590271,
-0.11958420276641846,
-0.039056725800037384,
-0.12412001937627792,
0.02795393019914627,
-0.051981400698423386,
0.4175637364387512,
-0.24578483402729034,
-0.30801528692245483,
0.1254645735025406,
-0.14318343997001648,
-0.3533315658569336,
0.14125117659568787,
-0.11317437887191772,
-0.013904936611652374,
0.1044120341539383,
0.37614503502845764,
-0.2080332487821579,
-0.632719874382019,
0.02006608434021473,
0.00472533842548728,
-0.035789526998996735,
0.05719197168946266,
-0.056794673204422,
-0.08706043660640717,
-0.09966667741537094,
-0.2400999367237091,
-0.11490722745656967,
-0.10446804016828537,
-0.15602095425128937,
-0.15698447823524475,
-0.25063979625701904,
-0.09096547216176987,
0.24860848486423492,
0.08836780488491058,
0.07358522713184357,
0.047402091324329376,
-0.06253738701343536,
0.051245320588350296,
0.023515988141298294,
0.4578177332878113,
0.2461843490600586,
-0.006974868476390839,
-0.48654013872146606,
-0.24232015013694763,
0.10114898532629013,
0.03342196345329285,
0.22694508731365204,
-0.19894029200077057,
0.07556214928627014,
-0.33404895663261414,
0.1922999918460846,
-0.14246878027915955,
0.3130207657814026,
0.30483269691467285,
0.09702645242214203,
-0.08132290095090866,
-0.39785099029541016,
0.4076518416404724,
0.16328422725200653,
0.1188863068819046,
0.5003256797790527,
0.2381349503993988,
-0.30926066637039185,
0.2446858435869217,
0.4030333459377289,
0.8442455530166626,
-0.15206511318683624,
0.4238831102848053,
0.5822684168815613,
0.160119891166687,
0.44343918561935425,
-0.2954455614089966,
-0.08545675128698349,
-0.03170883655548096,
-0.21357658505439758,
-0.07260990887880325,
0.03886969015002251,
0.018694229423999786,
0.06857249140739441,
0.053422700613737106,
-0.01327995304018259,
0.44100433588027954,
0.09467758238315582,
-0.06423789262771606,
0.2816479504108429,
0.012088393792510033,
-0.2021813690662384,
0.031849056482315063,
0.23894941806793213,
0.034106314182281494,
-0.21674314141273499,
-0.0013921111822128296,
-0.32510584592819214,
-0.48976531624794006,
0.3088288903236389,
0.0924513041973114,
-0.22725704312324524,
-0.4644554555416107,
0.291068434715271,
-0.31498241424560547,
-0.41081035137176514,
0.11308008432388306,
0.31793513894081116,
0.10592889785766602,
-0.23762594163417816,
-0.29618388414382935,
-0.09349167346954346,
0.14509350061416626,
-0.06979638338088989,
-0.012678607366979122,
-0.4294635057449341,
0.5602719783782959,
0.014098767191171646,
0.23205530643463135,
0.03767050802707672,
-0.014500899240374565,
-0.31820327043533325,
-0.09933587908744812,
-0.06405100226402283,
0.021555613726377487,
-0.12797006964683533,
-0.3357767164707184,
-0.03131189942359924,
-0.542647123336792,
0.11677686870098114,
0.20794342458248138,
0.029302500188350677,
0.1401161402463913,
0.07286068797111511,
0.15229827165603638,
-0.09703977406024933,
0.08539657294750214,
-0.06922831386327744,
-0.07411716878414154,
-0.11267433315515518,
0.07691223919391632,
-0.15770304203033447,
-0.18013153970241547,
-0.10928426682949066,
0.39325493574142456,
0.09269197285175323,
-0.19219417870044708,
0.13790228962898254,
0.08322088420391083,
0.18150566518306732,
-0.1838012933731079,
-0.028594333678483963,
0.011638674885034561,
-0.09856339544057846,
-0.21684609353542328,
-0.005725804716348648,
-0.31437575817108154,
0.3342854380607605,
-0.046199869364500046,
0.30453118681907654,
-0.5123917460441589,
0.02105174958705902,
-0.05947937071323395,
-0.21618033945560455,
-0.41248658299446106,
0.24581684172153473,
0.3033513128757477,
0.024976195767521858,
0.40295469760894775,
0.0760856494307518,
0.31735673546791077,
0.07496470212936401,
0.15414953231811523,
0.1979934126138687,
-0.3146167993545532,
-0.3115842044353485,
-0.1291370987892151,
0.09570872783660889,
0.078476682305336,
-0.3392702043056488,
0.20213378965854645,
-0.12657257914543152,
-0.2976837754249573,
-0.20000059902668,
-0.009416049346327782,
-0.13835415244102478,
-0.24546299874782562,
-0.11911547183990479,
0.08184658735990524,
0.15636371076107025,
0.10972799360752106,
0.07007096707820892,
0.039519619196653366,
0.46738243103027344,
-0.0800306499004364,
0.21132072806358337,
-0.12543915212154388,
-0.2094677835702896,
0.021490704268217087,
0.2321406602859497,
0.0496024414896965,
-0.15469738841056824,
0.21707454323768616,
-0.011231712996959686,
-0.04540422558784485,
0.12166853249073029,
0.2990742623806,
0.43473300337791443,
-0.2227819859981537,
-0.007773942314088345,
0.24387189745903015,
0.23529815673828125,
0.12776215374469757,
0.038696955889463425,
0.20725204050540924,
-0.06675897538661957,
0.111854687333107,
0.1449834555387497,
-0.039753351360559464,
0.4576830267906189,
-0.1620040088891983,
-0.18495014309883118,
0.051884450018405914,
-0.3739401698112488,
0.09613615274429321,
0.05596299096941948,
0.11131098866462708,
0.026052631437778473,
0.018909957259893417,
0.04201842471957207,
0.175970196723938,
0.4630284309387207,
0.07707691937685013,
0.3156215250492096,
0.16543540358543396,
-0.05705280974507332,
0.05641648545861244,
-0.17609666287899017,
-0.09907422959804535,
-0.04274487495422363,
-0.07664652168750763,
0.4433418810367584,
0.12897729873657227,
0.39624452590942383,
0.15819238126277924,
-0.3266509175300598,
0.2054801732301712,
0.30785077810287476,
-0.08098118752241135,
-0.08001205325126648,
-0.10237479954957962,
0.07097917050123215,
-0.013854071497917175,
0.02073751389980316,
-0.06627349555492401,
-0.17883603274822235,
-0.142535001039505,
0.33679425716400146,
0.32953423261642456,
0.04641272872686386,
-0.010256484150886536,
-0.011698175221681595,
0.34859001636505127,
0.0551316998898983,
0.16553039848804474,
0.07078142464160919,
-0.07988967001438141,
-0.14745542407035828,
0.04551621526479721,
0.21568529307842255,
0.04280952364206314,
0.03765469789505005,
0.1881924420595169,
-0.23234957456588745,
0.010291067883372307,
0.05763408541679382,
0.045044053345918655,
-0.001171700656414032,
-0.007415976375341415,
0.3510376513004303,
0.15544277429580688,
-0.192840576171875,
0.03613680973649025,
-0.24556873738765717,
-0.01305786520242691,
-0.3795475363731384,
-0.04047174006700516,
0.17912346124649048,
-0.10103291273117065,
-0.12765789031982422,
-0.11957678943872452,
-0.15929165482521057,
-0.012500946410000324,
0.446103572845459,
-0.09692899137735367,
0.07737309485673904,
0.22101503610610962,
0.11957114934921265,
-0.004558047279715538,
0.4203398525714874,
0.009313788264989853,
0.3500867486000061,
-0.03863753378391266,
-0.17134711146354675,
-0.36293789744377136,
-0.06966013461351395,
-0.003404725342988968,
0.13977769017219543,
-0.08373187482357025,
0.2798633277416229,
0.11825336515903473,
0.15338686108589172,
0.28913965821266174,
-0.7179120182991028,
0.2637726962566376,
0.16475331783294678,
-0.28941360116004944,
0.1236671656370163,
-0.4557908773422241,
0.08769451081752777,
0.02863098680973053,
-0.2254296839237213,
0.11805950105190277,
-0.0230218805372715,
0.11766179651021957,
-0.22164462506771088,
0.1681506186723709,
0.17159274220466614,
-0.060285262763500214,
0.4422697126865387,
-0.06511122733354568,
-0.018048129975795746,
-0.12562605738639832,
-0.1504381000995636,
-0.15971645712852478,
0.047690074890851974,
-0.2984790802001953,
0.3279343545436859,
-0.030169736593961716,
0.3438332676887512,
-0.11876416951417923,
-0.6796171069145203,
-0.14546768367290497,
0.027762463316321373,
-0.07549218833446503,
-0.16200941801071167,
-0.06584636121988297,
0.0744079127907753,
0.0021332278847694397,
0.13323846459388733,
0.010269750840961933,
0.4913211762905121,
-0.10343405604362488,
0.07732947170734406,
-0.35451406240463257,
-0.27550551295280457,
0.47070905566215515,
-0.3182104825973511,
-0.044344112277030945,
0.238566592335701,
-0.01518915593624115,
0.19046640396118164,
0.31156450510025024,
-0.5233388543128967,
-0.26677823066711426,
0.4447263479232788,
-0.06763243675231934,
-0.2313288301229477,
0.3627358376979828,
0.29513102769851685,
0.001295391470193863,
-0.03190753608942032,
0.2235170304775238,
-0.13991063833236694,
-0.2273564338684082,
-0.042784806340932846,
-0.21800664067268372
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Yes. For images, TFDS actually prepares TFRecords first for encoding and then reuses them for every subsequent call. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 18 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Yes. For images, TFDS actually prepares TFRecords first for encoding and then reuses them for every subsequent call. | [
-0.23023538291454315,
-0.326091468334198,
-0.20041286945343018,
0.3456084132194519,
0.22998730838298798,
0.09835710376501083,
0.17120975255966187,
0.5812535285949707,
-0.31902188062667847,
0.059196870774030685,
-0.1856551468372345,
0.4404829442501068,
-0.0058611733838915825,
-0.21482475101947784,
0.08747903257608414,
-0.06276606023311615,
0.030079223215579987,
0.033165618777275085,
-0.1854865849018097,
-0.11724016070365906,
-0.05834215134382248,
0.06176907569169998,
0.015128850936889648,
0.015504404902458191,
-0.23845826089382172,
0.007281085476279259,
0.09021937102079391,
0.1958146095275879,
0.18847967684268951,
-0.01871887594461441,
0.06314337253570557,
0.07867246866226196,
-0.04882480949163437,
0.3795453608036041,
-0.00010116778867086396,
0.3195815086364746,
0.06865069270133972,
-0.024071503430604935,
0.02868719771504402,
0.020214922726154327,
-0.14285430312156677,
-0.1040453240275383,
-0.13060055673122406,
-0.33661389350891113,
-0.09487950801849365,
-0.11810002475976944,
0.07914550602436066,
-0.2201514095067978,
0.39042359590530396,
0.36791619658470154,
0.27032262086868286,
0.3785412907600403,
0.08898642659187317,
0.26862719655036926,
0.29427945613861084,
-0.10779270529747009,
-0.2011471688747406,
0.16057419776916504,
-0.10971984267234802,
0.10605286061763763,
-0.008528023958206177,
0.26143449544906616,
-0.06287961453199387,
0.15312613546848297,
0.17724087834358215,
0.0774892270565033,
-0.23149779438972473,
-0.37200629711151123,
-0.16485190391540527,
0.5395005345344543,
0.14775174856185913,
-0.13506197929382324,
-0.35254767537117004,
-0.18860721588134766,
-0.050465092062950134,
-0.10234533995389938,
0.10556182265281677,
-0.2383190542459488,
-0.045316584408283234,
0.13126125931739807,
0.09041817486286163,
-0.016793113201856613,
-0.38027337193489075,
0.17526128888130188,
-0.08838047832250595,
0.044752392917871475,
-0.02758146822452545,
0.04600954428315163,
0.02897898480296135,
0.013896353542804718,
0.32721763849258423,
-0.11873900890350342,
0.2526015341281891,
0.0006857393309473991,
-0.3004564344882965,
-0.17676851153373718,
0.06965538114309311,
-0.2852177619934082,
-0.013385489583015442,
-0.12844707071781158,
0.3778691589832306,
0.29701805114746094,
-0.12892316281795502,
0.1390131413936615,
-0.3566202223300934,
-0.30941861867904663,
-0.18246549367904663,
-0.22902850806713104,
0.28092700242996216,
-0.3447692096233368,
-0.21023057401180267,
-0.006339941173791885,
-0.1683378666639328,
-0.09262380003929138,
-0.15360389649868011,
-0.2916780710220337,
0.11646774411201477,
0.0742512047290802,
-0.40247300267219543,
0.014641541056334972,
0.13220906257629395,
-0.11483076214790344,
0.015450689010322094,
0.01840973272919655,
0.0829339325428009,
0.2094181776046753,
0.19252383708953857,
-0.14885163307189941,
-0.17321056127548218,
-0.07802430540323257,
-0.1667270064353943,
-0.13771212100982666,
0.09069357812404633,
0.058140628039836884,
-0.21602992713451385,
-0.06761547923088074,
0.08912472426891327,
-0.06825941801071167,
0.2147514820098877,
0.4390445947647095,
0.3046515882015228,
-0.23542222380638123,
0.04606303200125694,
-0.0011378265917301178,
-0.2950720489025116,
-0.196608304977417,
0.11602649092674255,
0.3594067096710205,
-0.2351900041103363,
0.052096109837293625,
-0.4157528877258301,
-0.3605140447616577,
-0.07538492977619171,
0.21701793372631073,
-0.07788967341184616,
-0.34597980976104736,
-0.20602542161941528,
0.4448121190071106,
0.06002126261591911,
-0.120035320520401,
0.01701214164495468,
-0.3592461347579956,
-0.48260271549224854,
-0.378268301486969,
0.12683531641960144,
0.07254888862371445,
-0.5144014954566956,
0.169404998421669,
0.12798701226711273,
-0.09101614356040955,
0.030576348304748535,
0.24946272373199463,
-0.1976161152124405,
0.1123388260602951,
-0.06488790363073349,
0.16282902657985687,
0.8274427056312561,
-0.2762559652328491,
-0.17380613088607788,
0.2487860918045044,
-0.09171523153781891,
0.13862980902194977,
-0.04794042557477951,
0.18235261738300323,
0.0627845898270607,
-0.21946826577186584,
0.1314467191696167,
0.33903568983078003,
-0.1196431964635849,
0.0390297994017601,
-0.2749096155166626,
-0.13239704072475433,
-0.05156222730875015,
0.2347317785024643,
-0.32080313563346863,
-0.25477829575538635,
0.014851979911327362,
-0.11201281100511551,
0.13267198204994202,
-0.18454661965370178,
-0.039047159254550934,
0.11543454974889755,
0.23560680449008942,
0.2660716474056244,
-0.051341261714696884,
-0.13405254483222961,
-0.2900860905647278,
0.24920600652694702,
0.2200097143650055,
0.04796792194247246,
0.22703219950199127,
-0.1726568043231964,
0.19978705048561096,
-0.07675763964653015,
0.1253243237733841,
0.1213027685880661,
0.25005754828453064,
-0.0865684449672699,
0.07541689276695251,
0.1452384740114212,
-0.43962129950523376,
0.04883489012718201,
-0.6588848233222961,
-0.02990563213825226,
0.10632149875164032,
0.31028929352760315,
0.23765043914318085,
-0.09121855348348618,
-0.1199805960059166,
0.08280403167009354,
-0.48069462180137634,
-0.3044969439506531,
-0.1175210252404213,
0.37612566351890564,
-0.15044990181922913,
0.0059654489159584045,
0.0744875967502594,
0.5865526795387268,
0.1223413273692131,
0.08254529535770416,
-0.0970609113574028,
0.17209187150001526,
-0.12490027397871017,
0.0066109225153923035,
-0.06636922806501389,
0.5272420048713684,
0.20395399630069733,
0.10009877383708954,
0.10729578137397766,
-0.23937998712062836,
0.049014948308467865,
0.17473573982715607,
0.02987050823867321,
0.05499061197042465,
-0.008668314665555954,
-0.20487047731876373,
0.22665686905384064,
0.013002647086977959,
-0.44826167821884155,
0.4324459433555603,
0.7619228363037109,
0.05906565859913826,
-0.04825481027364731,
0.303446501493454,
0.03047380968928337,
-0.07413338124752045,
0.13703300058841705,
0.2491912990808487,
0.48347580432891846,
0.29921954870224,
0.12435708940029144,
-0.16250543296337128,
-0.14531950652599335,
-0.20217265188694,
0.28707587718963623,
-0.06787121295928955,
0.41120728850364685,
0.008357010781764984,
-0.018139146268367767,
0.13413159549236298,
-0.30206260085105896,
-0.41282516717910767,
-0.027302013710141182,
0.19330988824367523,
-0.11432506889104843,
0.005334177985787392,
-0.1838878095149994,
-0.34428098797798157,
-0.05767342448234558,
0.22040925920009613,
-0.24078369140625,
-0.1939917653799057,
0.03222222626209259,
0.1437094807624817,
-0.017428673803806305,
-0.05445871502161026,
-0.20620562136173248,
0.1943601369857788,
0.3710085153579712,
-0.3143638074398041,
-0.276050865650177,
0.08077429234981537,
-0.2569459080696106,
0.18172723054885864,
0.3640044927597046,
-0.07858184725046158,
0.3327800929546356,
0.03806518018245697,
0.0896964892745018,
-0.22726558148860931,
-0.43558773398399353,
0.1479550302028656,
-0.45105093717575073,
0.19134517014026642,
0.07877741008996964,
0.3109970688819885,
-0.18744762241840363,
0.020408108830451965,
0.2178201973438263,
-0.0697239562869072,
-0.08390143513679504,
-0.10885461419820786,
0.002808526623994112,
-0.05102277547121048,
-0.032031867653131485,
-0.15822124481201172,
-0.10888048261404037,
-0.43945398926734924,
0.18755581974983215,
-0.01766877993941307,
0.22624772787094116,
0.09829093515872955,
0.1615348905324936,
0.46921783685684204,
0.14612725377082825,
0.2160518318414688,
-0.10286422818899155,
-0.5674582123756409,
0.36962464451789856,
-0.18026939034461975,
-0.3349432945251465,
-0.12364132702350616,
0.14341410994529724,
0.2338903844356537,
0.26820266246795654,
-0.4830400347709656,
-0.5570179224014282,
-0.26520058512687683,
0.31182795763015747,
-0.13506965339183807,
-0.08774437755346298,
0.10380436480045319,
-0.06965731829404831,
-0.1955951750278473,
-0.1995561420917511,
0.39041274785995483,
-0.05530592054128647,
0.03395988792181015,
-0.04936333745718002,
0.3168206214904785,
0.19236162304878235,
0.3323307931423187,
0.5730298161506653,
0.1195170134305954,
-0.33757635951042175,
0.15436038374900818,
-0.24877291917800903,
0.08801518380641937,
-0.2694571316242218,
-0.030392613261938095,
0.23076032102108002,
-0.021565407514572144,
0.2628997564315796,
0.30912262201309204,
-0.10017433762550354,
0.07607361674308777,
0.012718699872493744,
0.20167647302150726,
-0.02699786052107811,
-0.2049981951713562,
0.39083394408226013,
-0.1810552477836609,
0.14462892711162567,
-0.023877369239926338,
-0.05628298595547676,
-0.07972799241542816,
-0.18055987358093262,
0.1716921627521515,
0.22973790764808655,
0.41523534059524536,
-0.0737721249461174,
-0.09327685832977295,
0.08332576602697372,
-0.46335095167160034,
0.29448431730270386,
0.1774148792028427,
-0.06398765742778778,
-0.020300012081861496,
-0.178928405046463,
0.07282280176877975,
-0.06903646886348724,
0.43604356050491333,
-0.25827863812446594,
-0.3062623143196106,
0.13789759576320648,
-0.18541401624679565,
-0.38152870535850525,
0.12814994156360626,
-0.1568300575017929,
-0.06263501197099686,
0.12068067491054535,
0.3796282708644867,
-0.28474006056785583,
-0.5837702751159668,
0.03976175934076309,
-0.02732951007783413,
-0.02681143209338188,
0.005290815606713295,
-0.10948196798563004,
-0.07294698804616928,
-0.06011930853128433,
-0.1498321294784546,
-0.15698112547397614,
-0.09170319885015488,
-0.1677732616662979,
-0.08672282099723816,
-0.17592878639698029,
-0.09422340989112854,
0.2784774899482727,
0.13574211299419403,
0.030365077778697014,
0.06158363074064255,
-0.06973224133253098,
0.002924654632806778,
-0.06391991674900055,
0.45414721965789795,
0.28667423129081726,
0.010130409151315689,
-0.4740148186683655,
-0.2078167200088501,
0.17252422869205475,
0.04044570028781891,
0.262393057346344,
-0.13431499898433685,
0.06025058403611183,
-0.3867718279361725,
0.22771640121936798,
-0.10971789807081223,
0.35721179842948914,
0.3326985538005829,
0.03319666534662247,
-0.09067870676517487,
-0.38217228651046753,
0.42834681272506714,
0.1006561666727066,
0.14245781302452087,
0.4836961328983307,
0.23035959899425507,
-0.2521944046020508,
0.21180607378482819,
0.39676135778427124,
0.8727898001670837,
-0.130994975566864,
0.37660133838653564,
0.5444155335426331,
0.18814463913440704,
0.48076972365379333,
-0.3085026741027832,
-0.02948242798447609,
-0.08842875063419342,
-0.30850133299827576,
-0.03321651741862297,
0.05566556379199028,
-0.00471118837594986,
0.09492601454257965,
0.047264378517866135,
-0.033592332154512405,
0.3997414708137512,
0.051313336938619614,
-0.08005870133638382,
0.2509220242500305,
-0.06823167949914932,
-0.19256025552749634,
0.01614847593009472,
0.2752440571784973,
0.04424518346786499,
-0.19086410105228424,
-0.02299875020980835,
-0.2753826379776001,
-0.44860273599624634,
0.26942265033721924,
0.07435491681098938,
-0.15622925758361816,
-0.4021470248699188,
0.31326913833618164,
-0.2751629948616028,
-0.36652159690856934,
0.09548942744731903,
0.26059234142303467,
0.10883535444736481,
-0.2365027815103531,
-0.22749915719032288,
-0.0373680405318737,
0.19011721014976501,
0.030528681352734566,
0.06980932503938675,
-0.39219576120376587,
0.5935009121894836,
0.004525382071733475,
0.14857852458953857,
0.028287947177886963,
0.042672790586948395,
-0.3114801049232483,
-0.14047424495220184,
-0.011566750705242157,
-0.016271986067295074,
-0.14831934869289398,
-0.3806675672531128,
0.02240203693509102,
-0.5085015892982483,
0.10740073025226593,
0.23247243463993073,
-0.029234446585178375,
0.10956479609012604,
0.08416443318128586,
0.11145146191120148,
-0.1351146548986435,
0.07287567853927612,
0.019663043320178986,
0.015777738764882088,
-0.08915600180625916,
0.04214572533965111,
-0.1503695398569107,
-0.19069929420948029,
-0.14426229894161224,
0.3487579822540283,
0.13220107555389404,
-0.20042076706886292,
0.18055954575538635,
0.06301300972700119,
0.16928650438785553,
-0.15006636083126068,
-0.011762354522943497,
-0.07177813351154327,
-0.06297776848077774,
-0.21432584524154663,
0.05926483869552612,
-0.32432663440704346,
0.2646908164024353,
0.0043039023876190186,
0.32210394740104675,
-0.5142927765846252,
0.12028868496417999,
-0.09819195419549942,
-0.13150306046009064,
-0.4524356722831726,
0.2272433340549469,
0.2594412565231323,
0.08643749356269836,
0.32332098484039307,
0.06541065871715546,
0.31125345826148987,
0.1562078446149826,
0.1983652263879776,
0.2998972535133362,
-0.3584776520729065,
-0.34642207622528076,
-0.09106053411960602,
0.08455324172973633,
0.05531315878033638,
-0.35237109661102295,
0.19402384757995605,
-0.06985501945018768,
-0.34417176246643066,
-0.24795132875442505,
0.08360186219215393,
-0.12516926229000092,
-0.29527562856674194,
-0.051130447536706924,
0.12477308511734009,
0.16542579233646393,
0.1753174364566803,
0.0008415132761001587,
0.036959026008844376,
0.4378419518470764,
-0.06377588212490082,
0.22189539670944214,
-0.12478407472372055,
-0.18774472177028656,
-0.0214240662753582,
0.22497528791427612,
0.10999377071857452,
-0.15442979335784912,
0.22795668244361877,
-0.006756797432899475,
-0.05937308073043823,
0.07411620765924454,
0.3355671465396881,
0.4611920416355133,
-0.2264215499162674,
-0.05380513519048691,
0.1294587254524231,
0.28428006172180176,
0.07991685718297958,
0.042784757912158966,
0.20433256030082703,
-0.036565616726875305,
0.13484907150268555,
0.14813220500946045,
-0.04502288997173309,
0.47094881534576416,
-0.09129264950752258,
-0.2051382064819336,
0.04904330521821976,
-0.3958302140235901,
0.044026996940374374,
0.08717191964387894,
0.11343647539615631,
0.01114572212100029,
0.0948481634259224,
-0.009243804961442947,
0.17719532549381256,
0.43534302711486816,
0.1280614286661148,
0.3477887511253357,
0.058718979358673096,
-0.05433354154229164,
0.0439130961894989,
-0.18270687758922577,
-0.07252009212970734,
0.03815758228302002,
-0.09652665257453918,
0.48755067586898804,
0.17820292711257935,
0.29498291015625,
0.14744685590267181,
-0.3319071829319,
0.13964612782001495,
0.2896679639816284,
-0.09065929800271988,
-0.07948493957519531,
-0.0656471773982048,
0.08065693825483322,
-0.031088262796401978,
0.05333467200398445,
-0.08536586165428162,
-0.1342700868844986,
-0.12614977359771729,
0.33888888359069824,
0.28068315982818604,
0.026077106595039368,
-0.11772563308477402,
-0.060982562601566315,
0.40472766757011414,
0.05171600356698036,
0.1660861223936081,
0.14564967155456543,
-0.074006587266922,
-0.1226295679807663,
0.08525998890399933,
0.22663551568984985,
0.026825882494449615,
0.048528220504522324,
0.26012086868286133,
-0.2291191667318344,
-0.0000352226197719574,
0.03302467614412308,
0.11976923793554306,
-0.03525927662849426,
-0.012721296399831772,
0.3032591938972473,
0.17736977338790894,
-0.21950463950634003,
0.014446655288338661,
-0.2224481850862503,
-0.057946670800447464,
-0.4203507602214813,
-0.04473663121461868,
0.10553395748138428,
-0.10698698461055756,
-0.20842082798480988,
-0.0717606469988823,
-0.13930794596672058,
-0.02632187306880951,
0.3940769135951996,
-0.12631238996982574,
0.030097611248493195,
0.14543068408966064,
0.1331261694431305,
-0.09289595484733582,
0.45651745796203613,
0.0007560849189758301,
0.2846571207046509,
-0.020083975046873093,
-0.16727715730667114,
-0.325454443693161,
0.03905053436756134,
0.017559556290507317,
0.18205919861793518,
-0.06795257329940796,
0.3095811605453491,
0.14383117854595184,
0.1293925940990448,
0.22740332782268524,
-0.7220873236656189,
0.18175077438354492,
0.1555664837360382,
-0.26961520314216614,
0.14462223649024963,
-0.5554127097129822,
0.03436636924743652,
0.010605383664369583,
-0.28186601400375366,
0.10660193860530853,
-0.11849917471408844,
0.14541733264923096,
-0.25157761573791504,
0.12796556949615479,
0.21232888102531433,
0.025737013667821884,
0.49923327565193176,
0.011146493256092072,
0.023527473211288452,
-0.15549655258655548,
-0.16666202247142792,
-0.12282389402389526,
0.057029660791158676,
-0.3248283267021179,
0.33364561200141907,
-0.037769269198179245,
0.36572638154029846,
-0.0392533615231514,
-0.6484746336936951,
-0.07339045405387878,
0.09510698914527893,
-0.03473905846476555,
-0.19130182266235352,
-0.05679333209991455,
0.05354864150285721,
-0.03440404683351517,
0.07964907586574554,
-0.021303053945302963,
0.5489919781684875,
-0.018933109939098358,
0.054048530757427216,
-0.3694908618927002,
-0.2973959743976593,
0.4857494831085205,
-0.3107217252254486,
-0.11056992411613464,
0.20750463008880615,
0.008817687630653381,
0.16065576672554016,
0.2706719934940338,
-0.4909379780292511,
-0.21288490295410156,
0.45972299575805664,
-0.06450474262237549,
-0.30202314257621765,
0.43685227632522583,
0.34113505482673645,
-0.05522382631897926,
-0.06288029253482819,
0.22640128433704376,
-0.1401580274105072,
-0.22066134214401245,
-0.032578933984041214,
-0.2447848618030548
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | @lhoestq @Rocketknight1 I worked on [this PoC](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59) that
* Creates Feather files from a medium resolution dataset (`tf_flowers`).
* Explores different options with TensorFlow IO to load the Feather files.
I haven't benchmarked those different options yet. There's also a gotcha that I have noted in the PoC. I hope it gets us started but I'm sorry if this is redundant. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 61 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
@lhoestq @Rocketknight1 I worked on [this PoC](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59) that
* Creates Feather files from a medium resolution dataset (`tf_flowers`).
* Explores different options with TensorFlow IO to load the Feather files.
I haven't benchmarked those different options yet. There's also a gotcha that I have noted in the PoC. I hope it gets us started but I'm sorry if this is redundant. | [
-0.215074822306633,
-0.34239041805267334,
-0.19228726625442505,
0.3727593421936035,
0.12391891330480576,
0.09236171096563339,
0.11055265367031097,
0.6560563445091248,
-0.299883097410202,
0.0027167871594429016,
-0.1586039811372757,
0.5379610657691956,
0.04900551959872246,
-0.2160024642944336,
0.07216685265302658,
-0.09968714416027069,
0.010279551148414612,
0.014651954174041748,
-0.1916319727897644,
-0.060954414308071136,
-0.012895919382572174,
0.09145904332399368,
0.049528345465660095,
0.0007752254605293274,
-0.2137145847082138,
0.02855062484741211,
0.09343080967664719,
0.2665902078151703,
0.08892714977264404,
0.014927138574421406,
0.17601999640464783,
0.023221349343657494,
-0.062459349632263184,
0.3166922926902771,
-0.00010146681597689167,
0.3193630576133728,
0.08277226984500885,
0.03514885902404785,
0.04859565570950508,
-0.010825052857398987,
-0.06927019357681274,
-0.08677823841571808,
-0.1541859209537506,
-0.27494269609451294,
-0.12176817655563354,
-0.07926970720291138,
-0.07588698714971542,
-0.24244661629199982,
0.3639984130859375,
0.3995898365974426,
0.24466544389724731,
0.38538047671318054,
0.15632706880569458,
0.21909669041633606,
0.3691120147705078,
-0.12197543680667877,
-0.20384186506271362,
0.1645105928182602,
-0.04750838875770569,
0.0075319427996873856,
-0.025883018970489502,
0.16217811405658722,
-0.07601744681596756,
0.14328935742378235,
0.13692596554756165,
0.018841562792658806,
-0.2090456485748291,
-0.3780974745750427,
-0.14276430010795593,
0.5404024124145508,
0.09428451210260391,
-0.09620765596628189,
-0.3205612301826477,
-0.15552076697349548,
-0.060294315218925476,
-0.14243300259113312,
0.09054471552371979,
-0.3280203938484192,
-0.032686810940504074,
0.14543819427490234,
0.22058962285518646,
0.018085597082972527,
-0.41139712929725647,
0.14880821108818054,
-0.03029736876487732,
0.06832978874444962,
-0.041973553597927094,
0.053777702152729034,
0.0658280998468399,
0.026633480563759804,
0.3144121468067169,
-0.06887542456388474,
0.19006630778312683,
0.01892170123755932,
-0.32678571343421936,
-0.17280174791812897,
0.13903263211250305,
-0.24218031764030457,
0.06582077592611313,
-0.041673704981803894,
0.44542717933654785,
0.3195233941078186,
-0.09130263328552246,
0.14635279774665833,
-0.3929919898509979,
-0.34000635147094727,
-0.1610400676727295,
-0.3508383333683014,
0.2752777934074402,
-0.3026811480522156,
-0.12098713219165802,
0.049732573330402374,
-0.10260763764381409,
-0.12998570501804352,
-0.27941274642944336,
-0.3271961808204651,
0.14816072583198547,
0.02158498391509056,
-0.4458157420158386,
0.05471712723374367,
0.03441154956817627,
-0.16169945895671844,
0.06687808036804199,
-0.013702645897865295,
0.0961277112364769,
0.2093297243118286,
0.12504832446575165,
-0.111967071890831,
-0.18033525347709656,
-0.1957128345966339,
-0.1411658525466919,
-0.0879335105419159,
0.11244702339172363,
0.010971076786518097,
-0.10461725294589996,
-0.10897472500801086,
0.11099635809659958,
-0.011331421323120594,
0.17218294739723206,
0.40513288974761963,
0.2837594449520111,
-0.18807004392147064,
-0.0661207064986229,
-0.004859026521444321,
-0.2917647361755371,
-0.23693245649337769,
0.17620204389095306,
0.3560624122619629,
-0.21016839146614075,
0.008389018476009369,
-0.3705322742462158,
-0.39638829231262207,
-0.1047503799200058,
0.1991574764251709,
-0.11465062946081161,
-0.32979995012283325,
-0.16625511646270752,
0.456720769405365,
-0.012799166142940521,
-0.1199050098657608,
-0.02163957804441452,
-0.35415804386138916,
-0.45278531312942505,
-0.38643184304237366,
0.19217032194137573,
0.08347800374031067,
-0.5591838955879211,
0.18532271683216095,
0.03703990578651428,
-0.016563434153795242,
0.044778890907764435,
0.2774617671966553,
-0.24751649796962738,
0.17975571751594543,
-0.09533100575208664,
0.11837244033813477,
0.8421609401702881,
-0.24018016457557678,
-0.15474440157413483,
0.24822010099887848,
-0.14697480201721191,
0.18829241394996643,
0.04707791283726692,
0.11032547056674957,
0.018263284116983414,
-0.22760045528411865,
0.19687309861183167,
0.27062469720840454,
-0.07137077301740646,
-0.07287097722291946,
-0.32041680812835693,
-0.15980812907218933,
-0.04841101914644241,
0.2116384357213974,
-0.33488672971725464,
-0.26798561215400696,
0.026875503361225128,
-0.20402510464191437,
0.11891835927963257,
-0.14802657067775726,
-0.016723211854696274,
0.09830642491579056,
0.2519412338733673,
0.26875829696655273,
-0.04319240525364876,
-0.13529649376869202,
-0.23706138134002686,
0.2574007213115692,
0.18508219718933105,
0.09520290791988373,
0.30696016550064087,
-0.15764875710010529,
0.13981637358665466,
-0.019042236730456352,
0.15524804592132568,
0.04384714737534523,
0.22357037663459778,
-0.14623486995697021,
0.1827734112739563,
0.10428410768508911,
-0.41778916120529175,
0.0002489164471626282,
-0.6651473045349121,
0.017485542222857475,
-0.007658896967768669,
0.2637560963630676,
0.20072101056575775,
-0.05907835066318512,
-0.05947565287351608,
0.12555444240570068,
-0.48220548033714294,
-0.30193230509757996,
-0.09721274673938751,
0.2907618582248688,
-0.2047124207019806,
-0.03985075652599335,
0.1862218976020813,
0.6597428917884827,
0.07180795818567276,
0.1469399780035019,
-0.021451564505696297,
0.11639510095119476,
-0.1496475785970688,
0.027844354510307312,
-0.02502591907978058,
0.5857250690460205,
0.2613387405872345,
0.10410092771053314,
0.04759165644645691,
-0.2319524884223938,
0.09326640516519547,
0.15712682902812958,
0.011402806267142296,
0.1432989239692688,
0.09137565642595291,
-0.2027805745601654,
0.25124967098236084,
-0.0004380568861961365,
-0.42800915241241455,
0.4675074517726898,
0.6693603992462158,
0.02648814767599106,
-0.12416354566812515,
0.21733498573303223,
-0.04178760200738907,
-0.11113093048334122,
0.10463793575763702,
0.23217995464801788,
0.4970420002937317,
0.29083216190338135,
0.1284031718969345,
-0.1822933554649353,
-0.17730334401130676,
-0.24267829954624176,
0.3105720579624176,
-0.08965326845645905,
0.4095084071159363,
0.0020730607211589813,
-0.0559522807598114,
0.16399657726287842,
-0.24892064929008484,
-0.44796931743621826,
-0.0682687982916832,
0.21552115678787231,
-0.19893231987953186,
-0.015653762966394424,
-0.12220146507024765,
-0.2794867157936096,
-0.07637833803892136,
0.1512991189956665,
-0.15278595685958862,
-0.2312353104352951,
0.01804358698427677,
0.25567805767059326,
0.030951697379350662,
-0.10468817502260208,
-0.1523972749710083,
0.26572224497795105,
0.4096161127090454,
-0.2997557818889618,
-0.3273822069168091,
0.13278886675834656,
-0.2765128016471863,
0.19276632368564606,
0.3889823853969574,
-0.04642761871218681,
0.28317153453826904,
0.04701273888349533,
0.13677379488945007,
-0.23415851593017578,
-0.44533589482307434,
0.10427787899971008,
-0.5080438852310181,
0.2795242667198181,
0.06487541645765305,
0.34151214361190796,
-0.16289886832237244,
0.05547171086072922,
0.2192642241716385,
-0.05811075121164322,
-0.06363622844219208,
-0.05195929855108261,
-0.046133410185575485,
-0.08455637842416763,
0.016900699585676193,
-0.2761712074279785,
-0.048062823712825775,
-0.4270061254501343,
0.2301839143037796,
-0.005488507449626923,
0.16691899299621582,
-0.0254882350564003,
0.17294210195541382,
0.5811516046524048,
0.12013068050146103,
0.2096407413482666,
-0.09538980573415756,
-0.6073012948036194,
0.39470475912094116,
-0.16527265310287476,
-0.3330097496509552,
-0.02599577233195305,
0.17611727118492126,
0.25458917021751404,
0.15399402379989624,
-0.4753340482711792,
-0.5133343935012817,
-0.17290644347667694,
0.34097692370414734,
-0.10551951825618744,
-0.09867678582668304,
0.13088104128837585,
-0.09999528527259827,
-0.18223823606967926,
-0.18213891983032227,
0.40256768465042114,
-0.028567634522914886,
-0.04033065587282181,
0.007284998893737793,
0.3372291028499603,
0.19897958636283875,
0.2555016577243805,
0.6301957964897156,
0.20564645528793335,
-0.28789541125297546,
0.08983254432678223,
-0.19647198915481567,
0.03710465133190155,
-0.20627430081367493,
-0.01526959240436554,
0.1585184931755066,
-0.10549524426460266,
0.3085676431655884,
0.33698970079421997,
-0.07665187865495682,
0.09759190678596497,
-0.009171750396490097,
0.14590802788734436,
0.06761778146028519,
-0.20852386951446533,
0.4614449739456177,
-0.17800621688365936,
0.0956779271364212,
-0.041701897978782654,
-0.07811921089887619,
-0.036405645310878754,
-0.18222159147262573,
0.20316627621650696,
0.2446863055229187,
0.32266801595687866,
-0.03833533823490143,
-0.08769889175891876,
0.09733894467353821,
-0.4452240467071533,
0.33764058351516724,
0.121293805539608,
-0.022697322070598602,
0.0027829110622406006,
-0.19751793146133423,
0.02348494529724121,
-0.0377701073884964,
0.4544873833656311,
-0.26698803901672363,
-0.29550111293792725,
0.20830057561397552,
-0.14274147152900696,
-0.3332292139530182,
0.09681057929992676,
-0.24071471393108368,
0.05745372921228409,
0.20977970957756042,
0.3323531448841095,
-0.2262798249721527,
-0.6238133311271667,
0.042264100164175034,
-0.04911606386303902,
0.027192693203687668,
0.06632131338119507,
-0.09116034209728241,
-0.027046335861086845,
-0.08576197922229767,
-0.11001060158014297,
-0.20837640762329102,
-0.05108742415904999,
-0.2705700397491455,
-0.08043357729911804,
-0.17900222539901733,
-0.060783062130212784,
0.3184306025505066,
0.16692593693733215,
-0.03651847317814827,
0.03057423233985901,
-0.05295884981751442,
-0.003253605216741562,
0.006894588470458984,
0.4459241032600403,
0.25963902473449707,
0.08855541050434113,
-0.534313440322876,
-0.21934878826141357,
0.22126547992229462,
0.03666330873966217,
0.2054567188024521,
-0.16677305102348328,
0.10618551075458527,
-0.3973824977874756,
0.15736903250217438,
-0.028977777808904648,
0.32117611169815063,
0.2954712510108948,
0.13662998378276825,
-0.14150430262088776,
-0.40050604939460754,
0.4510727524757385,
0.11340411007404327,
0.14538602530956268,
0.5239235758781433,
0.2522544264793396,
-0.20778663456439972,
0.23209600150585175,
0.2915160357952118,
0.8136863112449646,
-0.058611102402210236,
0.30171290040016174,
0.5279931426048279,
0.2811133861541748,
0.4633233845233917,
-0.32981574535369873,
-0.034032732248306274,
-0.09015493094921112,
-0.24063895642757416,
-0.015627875924110413,
0.05242747440934181,
0.06957567483186722,
0.012978047132492065,
0.09258145093917847,
-0.039058372378349304,
0.4539448022842407,
0.0859847217798233,
-0.08743998408317566,
0.2556208670139313,
-0.047938764095306396,
-0.1872902512550354,
0.040011025965213776,
0.2614597678184509,
-0.006820231676101685,
-0.17792648077011108,
0.021784014999866486,
-0.24877755343914032,
-0.5728207230567932,
0.266499400138855,
0.08391071856021881,
-0.13557273149490356,
-0.43503957986831665,
0.28032296895980835,
-0.28360041975975037,
-0.39737313985824585,
0.19287267327308655,
0.26930007338523865,
0.007895953953266144,
-0.2601691782474518,
-0.31800034642219543,
-0.12965326011180878,
0.17294707894325256,
-0.1418723613023758,
0.1366054117679596,
-0.3572309613227844,
0.5749166011810303,
0.020662527531385422,
0.09161386638879776,
0.08120369911193848,
-0.015969648957252502,
-0.26443976163864136,
-0.04932621121406555,
-0.04454860836267471,
0.03231737017631531,
-0.22171713411808014,
-0.3990677297115326,
0.054852232336997986,
-0.5226043462753296,
0.058209244161844254,
0.2303590178489685,
0.06245412677526474,
0.07402455061674118,
0.03248961642384529,
0.13735821843147278,
-0.12949861586093903,
0.05708829313516617,
-0.012172587215900421,
-0.06777516007423401,
-0.07430417835712433,
0.01674635335803032,
-0.11684584617614746,
-0.17378219962120056,
-0.12968993186950684,
0.3572790324687958,
0.12756673991680145,
-0.15006160736083984,
0.06930237263441086,
0.10325463116168976,
0.20722274482250214,
-0.07179854065179825,
0.007740497589111328,
-0.0010112151503562927,
-0.04594024270772934,
-0.19629578292369843,
-0.04466797411441803,
-0.2983151078224182,
0.28987258672714233,
0.025844542309641838,
0.26196882128715515,
-0.511814296245575,
0.01698053628206253,
-0.13987118005752563,
-0.1555001586675644,
-0.43636947870254517,
0.21103385090827942,
0.3526606261730194,
-0.0016587711870670319,
0.40051352977752686,
0.07620552182197571,
0.33106285333633423,
0.16973109543323517,
0.1774337738752365,
0.22078323364257812,
-0.4045265316963196,
-0.3405573070049286,
-0.04640591889619827,
0.08198996633291245,
0.030757702887058258,
-0.3600025475025177,
0.15858206152915955,
-0.11787043511867523,
-0.2902940809726715,
-0.23031723499298096,
0.030830178409814835,
-0.2413228154182434,
-0.24843008816242218,
-0.12862294912338257,
0.09070438146591187,
0.21230459213256836,
0.06190585345029831,
0.020777620375156403,
0.07663996517658234,
0.3521304130554199,
-0.09355887770652771,
0.19155383110046387,
-0.16070587933063507,
-0.1811126470565796,
0.018256327137351036,
0.25556936860084534,
0.12396961450576782,
-0.08491522073745728,
0.21228739619255066,
0.016456183046102524,
-0.07079241424798965,
0.05273350700736046,
0.2804522216320038,
0.5001252293586731,
-0.22106198966503143,
0.021542152389883995,
0.11903409659862518,
0.26786670088768005,
0.08158279955387115,
0.07109158486127853,
0.2325352281332016,
-0.0050351377576589584,
0.15599939227104187,
0.16116824746131897,
0.021905478090047836,
0.40754392743110657,
-0.11106336116790771,
-0.2035084068775177,
0.025916941463947296,
-0.32623612880706787,
0.0673300176858902,
0.06388714909553528,
0.11747342348098755,
0.010419927537441254,
0.13888734579086304,
0.009366190060973167,
0.20027929544448853,
0.43046945333480835,
0.09240369498729706,
0.3692280948162079,
0.0530606284737587,
-0.02844734862446785,
-0.046515606343746185,
-0.17607314884662628,
-0.07682734727859497,
0.0699225440621376,
-0.11210784316062927,
0.48786696791648865,
0.15930411219596863,
0.4146755635738373,
0.10563557595014572,
-0.2916412353515625,
0.12983421981334686,
0.2091793417930603,
-0.10590878874063492,
-0.07516193389892578,
-0.09999562799930573,
0.004400014877319336,
0.017315320670604706,
0.01689790189266205,
-0.07636228203773499,
-0.068936288356781,
-0.1620396077632904,
0.23376093804836273,
0.23314572870731354,
0.04664481431245804,
-0.0327751561999321,
-0.046237848699092865,
0.3622875511646271,
0.042830172926187515,
0.14296014606952667,
0.1300160437822342,
-0.10051698982715607,
-0.22331759333610535,
0.017342831939458847,
0.24112676084041595,
-0.01888180896639824,
0.04889271408319473,
0.19540710747241974,
-0.17968648672103882,
-0.031307876110076904,
0.07898809760808945,
0.09899157285690308,
-0.026813752949237823,
-0.07670663297176361,
0.2880347967147827,
0.18789471685886383,
-0.22867488861083984,
-0.009550608694553375,
-0.21046270430088043,
0.013166045770049095,
-0.4123747944831848,
-0.05433467775583267,
0.11496448516845703,
-0.19241997599601746,
-0.18446004390716553,
-0.07437857240438461,
-0.11715154349803925,
0.016217010095715523,
0.4038185179233551,
-0.042269881814718246,
0.029067471623420715,
0.14544916152954102,
0.13968850672245026,
-0.0621548555791378,
0.37795111536979675,
0.0029325783252716064,
0.2382790446281433,
-0.012540892697870731,
-0.22041262686252594,
-0.32009610533714294,
-0.005047723650932312,
0.004557333886623383,
0.19797161221504211,
-0.07767026871442795,
0.280599981546402,
0.2050780951976776,
0.14312200248241425,
0.2074381411075592,
-0.8086975812911987,
0.2096526175737381,
0.14809200167655945,
-0.3070650100708008,
0.14106886088848114,
-0.5078957080841064,
0.045990921556949615,
0.07056508213281631,
-0.19537734985351562,
0.09301190823316574,
-0.10388277471065521,
0.14733552932739258,
-0.318364679813385,
0.15422876179218292,
0.2815771698951721,
-0.008868727833032608,
0.45067521929740906,
-0.00970105268061161,
0.03500230610370636,
-0.10127658396959305,
-0.20603427290916443,
-0.19728994369506836,
0.1090356856584549,
-0.2646174430847168,
0.41383543610572815,
-0.04645465686917305,
0.3606105446815491,
-0.04390445351600647,
-0.6606842875480652,
-0.016163885593414307,
0.04008972644805908,
-0.07813698053359985,
-0.22455653548240662,
-0.1492363065481186,
0.043574973940849304,
-0.047542378306388855,
0.1006961464881897,
-0.04137687012553215,
0.5695744752883911,
-0.02504195272922516,
0.05412384122610092,
-0.3736972212791443,
-0.21675756573677063,
0.4104984402656555,
-0.36242642998695374,
-0.06924596428871155,
0.22382189333438873,
0.0008020997047424316,
0.15880408883094788,
0.24903590977191925,
-0.47555041313171387,
-0.2626429498195648,
0.405696839094162,
-0.06630638986825943,
-0.23145097494125366,
0.41045334935188293,
0.24019581079483032,
-0.01702101156115532,
-0.047372642904520035,
0.22266845405101776,
-0.09798412770032883,
-0.2164759784936905,
-0.0037237703800201416,
-0.21885548532009125
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Cool thanks ! If I understand correctly in your PoC you store the flattened array of pixels in the feather file. This will take a lot of disk space.
Maybe we could just save the encoded bytes and let users apply a `map` to decode/transform them into the format they need for training ? Users can use tf.image to do so for example | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 63 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Cool thanks ! If I understand correctly in your PoC you store the flattened array of pixels in the feather file. This will take a lot of disk space.
Maybe we could just save the encoded bytes and let users apply a `map` to decode/transform them into the format they need for training ? Users can use tf.image to do so for example | [
-0.16578981280326843,
-0.348147451877594,
-0.16695056855678558,
0.35054653882980347,
0.2775442898273468,
0.07106592506170273,
0.1695111095905304,
0.5484029650688171,
-0.3050580322742462,
0.1729336977005005,
-0.13176727294921875,
0.335033655166626,
-0.04377017542719841,
-0.02583644911646843,
0.1887793391942978,
-0.13492664694786072,
-0.12004608660936356,
0.1778239905834198,
-0.2310948669910431,
-0.03279983997344971,
0.018204640597105026,
0.022186661139130592,
0.08093994855880737,
0.10170132666826248,
-0.22450704872608185,
-0.13901737332344055,
-0.004179727286100388,
0.21629223227500916,
0.04514551907777786,
-0.04103929549455643,
0.1473693698644638,
0.06567113846540451,
-0.1284361183643341,
0.2962507903575897,
-0.00009902436431730166,
0.27570009231567383,
-0.11894384026527405,
-0.1103886142373085,
0.1304725855588913,
0.20337717235088348,
0.020233504474163055,
-0.20774179697036743,
-0.26049479842185974,
-0.3603638708591461,
-0.2922123372554779,
-0.010244536213576794,
-0.03510471433401108,
-0.2140936553478241,
0.3396943509578705,
0.4130181074142456,
0.26547107100486755,
0.3487622141838074,
0.05638987943530083,
0.27731209993362427,
0.3305175304412842,
-0.03626205027103424,
-0.27174389362335205,
0.1502971649169922,
-0.09169873595237732,
-0.014431838877499104,
0.0010848641395568848,
0.19282090663909912,
-0.07599690556526184,
0.029299460351467133,
0.1784551590681076,
0.10819428414106369,
-0.04423932731151581,
-0.3348885774612427,
-0.1653754711151123,
0.38623175024986267,
0.015315212309360504,
-0.10638647526502609,
-0.2806175649166107,
-0.19328665733337402,
-0.0063220178708434105,
-0.3226127028465271,
0.025155719369649887,
-0.05430737882852554,
-0.04873792454600334,
0.17075133323669434,
0.013350438326597214,
0.03339759260416031,
-0.41699451208114624,
0.13483895361423492,
-0.1713857799768448,
-0.09269356727600098,
-0.07432448863983154,
0.00968090072274208,
0.023464258760213852,
-0.011551067233085632,
0.26521801948547363,
-0.08198834210634232,
0.35967063903808594,
0.015892861410975456,
-0.1401505172252655,
-0.2795197367668152,
-0.004091508686542511,
-0.3670699894428253,
0.07611489295959473,
-0.2050102949142456,
0.4290202558040619,
0.24951624870300293,
-0.022736407816410065,
0.1469569206237793,
-0.4082036316394806,
-0.21734945476055145,
-0.2575860619544983,
-0.21762385964393616,
0.17691418528556824,
-0.25173741579055786,
-0.28753116726875305,
0.02812088280916214,
-0.22168183326721191,
0.08680851757526398,
-0.08008541166782379,
-0.29365989565849304,
0.16752177476882935,
0.03685806319117546,
-0.4478238523006439,
0.01773378998041153,
-0.019198428839445114,
0.022531623020768166,
-0.008535514585673809,
-0.029990248382091522,
0.1285392940044403,
0.3587920665740967,
0.1792747974395752,
-0.22540079057216644,
-0.19588148593902588,
-0.21653923392295837,
-0.16330021619796753,
-0.03264637663960457,
-0.046978630125522614,
0.11765385419130325,
-0.13271400332450867,
-0.1827734410762787,
0.14049436151981354,
-0.09209147095680237,
0.20369736850261688,
0.354072630405426,
0.277416467666626,
-0.20423243939876556,
-0.0023465678095817566,
-0.010596390813589096,
-0.3099704384803772,
-0.3209271728992462,
0.05858296528458595,
0.3052510619163513,
-0.2007737159729004,
0.10819379985332489,
-0.3759801387786865,
-0.3856894075870514,
-0.0043836478143930435,
0.19098401069641113,
-0.07265457510948181,
-0.28427207469940186,
-0.1586151421070099,
0.38330700993537903,
0.1644344925880432,
-0.024653587490320206,
-0.0916353240609169,
-0.3828287720680237,
-0.5238162875175476,
-0.4142177402973175,
0.2044619917869568,
-0.022878244519233704,
-0.5234919786453247,
0.2751173973083496,
0.15161342918872833,
0.042453616857528687,
0.14888319373130798,
0.4269123077392578,
-0.217172771692276,
0.1289670318365097,
-0.050938114523887634,
0.1578896939754486,
0.5058212876319885,
-0.24557173252105713,
-0.26670408248901367,
0.18001185357570648,
-0.10961133986711502,
0.15474329888820648,
0.03204094618558884,
0.1391432285308838,
0.11095087975263596,
-0.2377399206161499,
0.11173097789287567,
0.3329201936721802,
-0.22720953822135925,
0.1037999615073204,
-0.34085503220558167,
-0.23518270254135132,
0.06747733056545258,
0.28377100825309753,
-0.24741147458553314,
-0.30752697587013245,
-0.17458459734916687,
-0.03263736516237259,
0.18604472279548645,
-0.23476046323776245,
0.0017947073793038726,
0.11252131313085556,
0.24104690551757812,
0.027769051492214203,
-0.11730366200208664,
-0.12301499396562576,
-0.23329710960388184,
0.17701008915901184,
0.1593104749917984,
0.07124311476945877,
0.24186697602272034,
-0.2135096788406372,
0.06965706497430801,
0.004232702776789665,
0.17395125329494476,
0.02733455039560795,
0.1957225650548935,
-0.10187026858329773,
0.23931419849395752,
-0.0008227378129959106,
-0.3626702129840851,
-0.003434920683503151,
-0.5426263213157654,
-0.08016451448202133,
0.06496793776750565,
0.3770753741264343,
0.1256209909915924,
-0.10347463190555573,
-0.0766356959939003,
0.13449013233184814,
-0.3831421136856079,
-0.3125467300415039,
-0.027411751449108124,
0.3791290521621704,
-0.037545666098594666,
-0.11948280036449432,
0.02619002014398575,
0.5782235264778137,
0.22858436405658722,
0.0026178620755672455,
0.04190712422132492,
0.17888830602169037,
-0.15068013966083527,
0.15828555822372437,
-0.08402218669652939,
0.6082442402839661,
0.22416427731513977,
-0.07656174153089523,
0.06121181696653366,
-0.2445615828037262,
0.14342990517616272,
0.0937371701002121,
-0.009325066581368446,
-0.05032629892230034,
-0.018693257123231888,
-0.12705403566360474,
0.2571490406990051,
0.09599541872739792,
-0.5762249231338501,
0.51680988073349,
0.8445005416870117,
0.07628419995307922,
-0.12810134887695312,
0.2774806618690491,
0.062428392469882965,
-0.04285240173339844,
0.015019948594272137,
0.05532780662178993,
0.3762201964855194,
0.38718128204345703,
0.001269228756427765,
-0.10912575572729111,
-0.19467295706272125,
-0.17672517895698547,
0.2987997829914093,
-0.1364331990480423,
0.3974311053752899,
-0.022669896483421326,
-0.03231295943260193,
0.09034614264965057,
-0.2573537528514862,
-0.3071329891681671,
-0.05696386843919754,
0.24447987973690033,
-0.052475348114967346,
-0.08356340229511261,
-0.18099266290664673,
-0.42762061953544617,
-0.08649393171072006,
0.2229669839143753,
-0.14897149801254272,
-0.0986766442656517,
0.14839622378349304,
0.1717502474784851,
-0.08851118385791779,
-0.0039062537252902985,
-0.2743890583515167,
0.3011472821235657,
0.44488251209259033,
-0.11204629391431808,
-0.2251121997833252,
0.11490095406770706,
-0.21379488706588745,
0.18632303178310394,
0.33773523569107056,
-0.1300419270992279,
0.38189947605133057,
0.07087806612253189,
0.16054295003414154,
-0.1979614794254303,
-0.43533265590667725,
0.15246173739433289,
-0.4541162848472595,
0.06900931894779205,
-0.09464570879936218,
0.31746163964271545,
-0.20305532217025757,
-0.07663130760192871,
0.23509716987609863,
-0.2289728969335556,
-0.2328254133462906,
-0.006529823876917362,
0.12840881943702698,
-0.08472011983394623,
-0.127766415476799,
-0.1735815405845642,
-0.18475615978240967,
-0.40136829018592834,
0.07214511185884476,
0.0031061209738254547,
0.2849307656288147,
0.13038261234760284,
0.16940930485725403,
0.44226741790771484,
0.20026911795139313,
0.027441825717687607,
-0.1707499772310257,
-0.641002357006073,
0.44410690665245056,
-0.15691855549812317,
-0.40876373648643494,
-0.16012683510780334,
0.0731426551938057,
0.15659411251544952,
0.27696841955184937,
-0.44311076402664185,
-0.5449157953262329,
-0.2084932178258896,
0.2323889136314392,
-0.06898174434900284,
-0.19163382053375244,
0.1643626093864441,
-0.0751328095793724,
-0.20096054673194885,
-0.12766632437705994,
0.21962352097034454,
0.06797907501459122,
0.18066459894180298,
0.06003116816282272,
0.1336957812309265,
0.20985901355743408,
0.29623398184776306,
0.5833320021629333,
0.12423695623874664,
-0.3631865680217743,
0.1111421287059784,
-0.21163630485534668,
0.09384961426258087,
-0.1964486837387085,
-0.03854772448539734,
0.207270085811615,
-0.02245694398880005,
0.22440911829471588,
0.37923067808151245,
-0.046326685696840286,
0.04772590845823288,
0.05972207337617874,
0.20793229341506958,
0.06347808241844177,
-0.23578540980815887,
0.5453975796699524,
-0.21912074089050293,
0.2125750184059143,
-0.09363915026187897,
0.006724990904331207,
-0.10247683525085449,
-0.24974673986434937,
0.08848839998245239,
-0.04284696280956268,
0.3055790066719055,
-0.06863729655742645,
0.08585560321807861,
0.04003487154841423,
-0.5227233171463013,
0.19185225665569305,
0.2240452766418457,
-0.057575762271881104,
-0.03866202384233475,
-0.1290469765663147,
0.08317482471466064,
-0.04949971288442612,
0.46126437187194824,
-0.18741197884082794,
-0.2758316993713379,
0.1280052363872528,
-0.15510262548923492,
-0.3193705081939697,
0.04703756049275398,
-0.21606773138046265,
-0.11763999611139297,
0.12124727666378021,
0.5219746232032776,
-0.24270233511924744,
-0.5349416136741638,
0.025124406442046165,
-0.03988061100244522,
-0.06336336582899094,
0.09268508106470108,
-0.10482034087181091,
-0.15012061595916748,
-0.0889207273721695,
-0.004506446421146393,
-0.08376613259315491,
-0.024629291146993637,
-0.11269927024841309,
-0.11022292077541351,
-0.1856398731470108,
-0.034114085137844086,
0.33044302463531494,
0.2256043553352356,
0.0700717493891716,
0.10372237116098404,
-0.06881090998649597,
-0.03245808929204941,
0.14391177892684937,
0.4899420738220215,
0.23453977704048157,
0.1624552309513092,
-0.3417281210422516,
-0.1822708547115326,
0.10955658555030823,
0.05745236948132515,
0.2778835594654083,
0.018519025295972824,
0.08200030028820038,
-0.3666733503341675,
0.3336446285247803,
-0.12436487525701523,
0.3776249587535858,
0.22668780386447906,
0.06996230036020279,
-0.1834251433610916,
-0.28464481234550476,
0.303478479385376,
0.007078163325786591,
0.22627387940883636,
0.24625101685523987,
0.20754632353782654,
-0.25877535343170166,
0.3005208969116211,
0.477459579706192,
0.908433198928833,
-0.2883618474006653,
0.40579524636268616,
0.5501843690872192,
0.15675275027751923,
0.4144165813922882,
-0.3094053864479065,
0.0772218182682991,
-0.11999398469924927,
-0.3431623876094818,
-0.011246923357248306,
0.08364412188529968,
-0.05761715769767761,
0.134688138961792,
-0.13312068581581116,
-0.05687840282917023,
0.4262732267379761,
0.07809792459011078,
-0.11957882344722748,
0.19512394070625305,
0.1814802885055542,
-0.3375511169433594,
-0.23484033346176147,
0.2673673629760742,
-0.07470867037773132,
-0.25421178340911865,
0.07290312647819519,
-0.27611684799194336,
-0.4361603260040283,
0.3159055709838867,
0.11666621267795563,
-0.02809506095945835,
-0.41404080390930176,
0.2661069929599762,
-0.30279940366744995,
-0.31052637100219727,
0.045360881835222244,
0.16195207834243774,
-0.02462974190711975,
-0.18284006416797638,
-0.1613524705171585,
-0.1314050704240799,
0.18093422055244446,
-0.1364978700876236,
0.11335129290819168,
-0.3433499336242676,
0.5315248966217041,
-0.012258125469088554,
0.129445880651474,
0.11384382098913193,
0.0076349833980202675,
-0.23903632164001465,
0.007333815097808838,
-0.061145856976509094,
0.01831606775522232,
-0.20698735117912292,
-0.36657947301864624,
0.0034786835312843323,
-0.457086980342865,
0.07328703999519348,
0.22829794883728027,
0.023549966514110565,
0.013688424602150917,
0.11435706913471222,
0.16203945875167847,
-0.047202154994010925,
0.1209997832775116,
-0.00621458888053894,
0.07504178583621979,
-0.06713929772377014,
0.08395038545131683,
-0.22748687863349915,
-0.12860530614852905,
-0.2040988802909851,
0.4726095199584961,
0.12477048486471176,
-0.05595487728714943,
0.15317992866039276,
0.043231185525655746,
0.09868548810482025,
-0.030949292704463005,
-0.02000989392399788,
0.14310458302497864,
-0.09765204042196274,
-0.21674461662769318,
0.033019937574863434,
-0.5023794174194336,
0.12209980189800262,
0.1734442263841629,
0.28708919882774353,
-0.38728100061416626,
0.21126163005828857,
-0.13237494230270386,
-0.03742498904466629,
-0.46441763639450073,
0.1389681100845337,
0.11676865071058273,
0.12032260000705719,
0.3493368923664093,
-0.025060057640075684,
0.20455209910869598,
0.07314376533031464,
0.22209283709526062,
0.29250097274780273,
-0.40921518206596375,
-0.35712549090385437,
-0.11561350524425507,
0.06027635186910629,
0.07593600451946259,
-0.36840492486953735,
0.27844810485839844,
0.004729202017188072,
-0.28597506880760193,
-0.22280046343803406,
0.0705994963645935,
-0.17004907131195068,
-0.17931807041168213,
-0.1769545078277588,
-0.07050298154354095,
0.1817380040884018,
0.1310647428035736,
-0.1398971527814865,
0.06027434766292572,
0.46307283639907837,
0.10503930598497391,
0.24059763550758362,
-0.1282353699207306,
-0.24233397841453552,
0.10005397349596024,
0.21131768822669983,
0.08931734412908554,
-0.1363072395324707,
0.24523597955703735,
-0.07063037157058716,
-0.10110965371131897,
0.15110094845294952,
0.26196375489234924,
0.3366633355617523,
-0.16925664246082306,
-0.03966580331325531,
0.12997734546661377,
0.3105370104312897,
-0.04049023240804672,
0.1335366666316986,
0.3679546117782593,
-0.03586588799953461,
0.18548381328582764,
0.20174795389175415,
-0.09100651741027832,
0.40497052669525146,
-0.1346280574798584,
-0.1590733528137207,
-0.0024363864213228226,
-0.3868309259414673,
-0.029507596045732498,
0.22578038275241852,
0.15175187587738037,
-0.050129104405641556,
0.1484663337469101,
0.07303665578365326,
0.24624955654144287,
0.5136175155639648,
0.16705645620822906,
0.32518908381462097,
0.0003535635769367218,
0.011090796440839767,
-0.09064365178346634,
-0.02471950277686119,
-0.2813221514225006,
0.19015328586101532,
-0.14109674096107483,
0.5006975531578064,
0.17669227719306946,
0.3502119779586792,
0.10379761457443237,
-0.47838279604911804,
0.08053451776504517,
0.3209075331687927,
-0.1607241928577423,
0.0566847063601017,
-0.1706651896238327,
0.10068441182374954,
-0.03356722742319107,
0.06960263848304749,
-0.010808441787958145,
-0.18479329347610474,
0.0364273302257061,
0.2675454616546631,
0.18512187898159027,
0.07631135731935501,
-0.12366703897714615,
0.027638211846351624,
0.4954867362976074,
-0.009706750512123108,
0.30737292766571045,
0.09779317677021027,
-0.17300021648406982,
-0.23399019241333008,
-0.006363736465573311,
0.24020515382289886,
0.017659209668636322,
0.048784203827381134,
0.34983035922050476,
-0.058732111006975174,
-0.047148674726486206,
0.04761628806591034,
0.06600221991539001,
0.11659654974937439,
0.11090828478336334,
0.34117457270622253,
0.18030191957950592,
-0.21435709297657013,
-0.046387892216444016,
-0.10765942931175232,
-0.08166489005088806,
-0.29783502221107483,
-0.1896580457687378,
0.19400367140769958,
-0.12473076581954956,
-0.13784544169902802,
-0.163248211145401,
-0.1135801374912262,
0.057902030646800995,
0.3134981095790863,
-0.05718590319156647,
0.10742080956697464,
0.22553019225597382,
0.1420142501592636,
-0.10752499103546143,
0.4314285218715668,
0.03021051362156868,
0.16116899251937866,
-0.04812651127576828,
-0.1710488200187683,
-0.32293763756752014,
0.06534593552350998,
-0.08118109405040741,
-0.07408102601766586,
-0.118436798453331,
0.37617596983909607,
0.2638693153858185,
0.14535968005657196,
0.1110619381070137,
-0.5012305974960327,
0.2642940878868103,
0.17704430222511292,
-0.3605940639972687,
0.21372036635875702,
-0.4831984043121338,
0.06222573667764664,
0.10609486699104309,
-0.3218170404434204,
0.09146910905838013,
-0.013614848256111145,
0.17347049713134766,
-0.19770042598247528,
0.3170439600944519,
0.029947906732559204,
0.09573104232549667,
0.3679351806640625,
-0.05361723154783249,
0.03981274738907814,
-0.14493964612483978,
-0.06044591963291168,
-0.10842111706733704,
0.1648474782705307,
-0.40972182154655457,
0.2697058320045471,
0.1200370341539383,
0.3656221032142639,
-0.048911094665527344,
-0.5425947308540344,
-0.07937929034233093,
0.13644148409366608,
0.07108088582754135,
-0.2844242453575134,
0.1812887191772461,
0.12934336066246033,
0.030196189880371094,
-0.03343209996819496,
-0.08073081076145172,
0.510217010974884,
-0.0025207139551639557,
-0.09070251882076263,
-0.32164710760116577,
-0.25596776604652405,
0.4452873766422272,
-0.26118895411491394,
-0.15402673184871674,
0.30863988399505615,
-0.01847018301486969,
0.11567778885364532,
0.16768214106559753,
-0.4066837430000305,
-0.15962524712085724,
0.3086654841899872,
-0.18993094563484192,
-0.32623130083084106,
0.3775416612625122,
0.18434105813503265,
-0.07674595713615417,
-0.008809223771095276,
0.30395954847335815,
-0.07949427515268326,
-0.24438926577568054,
-0.04248443618416786,
-0.2599904537200928
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | @lhoestq this is what I tried:
```py
def read_image(path):
with open(path, "rb") as f:
return f.read()
total_images_written = 0
for step in tqdm.tnrange(int(math.ceil(len(image_paths) / batch_size))):
batch_image_paths = image_paths[step * batch_size : (step + 1) * batch_size]
batch_image_labels = all_integer_labels[step * batch_size : (step + 1) * batch_size]
data = [read_image(path) for path in batch_image_paths]
table = pa.Table.from_arrays([data, batch_image_labels], ["data", "labels"])
write_feather(table, f"/tmp/flowers_feather_{step}.feather", chunksize=chunk_size)
total_images_written += len(batch_image_paths)
print(f"Total images written: {total_images_written}.")
del data
```
I got the feather files done (no resizing required as you can see):
```sh
ls -lh /tmp/*.feather
-rw-r--r-- 1 sayakpaul wheel 64M Jun 24 09:28 /tmp/flowers_feather_0.feather
-rw-r--r-- 1 sayakpaul wheel 59M Jun 24 09:28 /tmp/flowers_feather_1.feather
-rw-r--r-- 1 sayakpaul wheel 51M Jun 24 09:28 /tmp/flowers_feather_2.feather
-rw-r--r-- 1 sayakpaul wheel 45M Jun 24 09:28 /tmp/flowers_feather_3.feather
```
Now there seems to be a problem with `tfio.arrow`:
```py
import tensorflow_io.arrow as arrow_io
dataset = arrow_io.ArrowFeatherDataset(
["/tmp/flowers_feather_0.feather"],
columns=(0, 1),
output_types=(tf.string, tf.int64),
output_shapes=([], []),
batch_mode="auto",
)
print(dataset.element_spec)
```
Prints:
```
(TensorSpec(shape=(None,), dtype=tf.string, name=None),
TensorSpec(shape=(None,), dtype=tf.int64, name=None))
```
But when I do `sample = next(iter(dataset))` it goes into:
```py
InternalError Traceback (most recent call last)
Input In [30], in <cell line: 1>()
----> 1 sample = next(iter(dataset))
File ~/.local/bin/.virtualenvs/jax/lib/python3.8/site-packages/tensorflow/python/data/ops/iterator_ops.py:766, in OwnedIterator.__next__(self)
764 def __next__(self):
765 try:
--> 766 return self._next_internal()
767 except errors.OutOfRangeError:
768 raise StopIteration
File ~/.local/bin/.virtualenvs/jax/lib/python3.8/site-packages/tensorflow/python/data/ops/iterator_ops.py:749, in OwnedIterator._next_internal(self)
746 # TODO(b/77291417): This runs in sync mode as iterators use an error status
747 # to communicate that there is no more data to iterate over.
748 with context.execution_mode(context.SYNC):
--> 749 ret = gen_dataset_ops.iterator_get_next(
750 self._iterator_resource,
751 output_types=self._flat_output_types,
752 output_shapes=self._flat_output_shapes)
754 try:
755 # Fast path for the case `self._structure` is not a nested structure.
756 return self._element_spec._from_compatible_tensor_list(ret) # pylint: disable=protected-access
File ~/.local/bin/.virtualenvs/jax/lib/python3.8/site-packages/tensorflow/python/ops/gen_dataset_ops.py:3017, in iterator_get_next(iterator, output_types, output_shapes, name)
3015 return _result
3016 except _core._NotOkStatusException as e:
-> 3017 _ops.raise_from_not_ok_status(e, name)
3018 except _core._FallbackException:
3019 pass
File ~/.local/bin/.virtualenvs/jax/lib/python3.8/site-packages/tensorflow/python/framework/ops.py:7164, in raise_from_not_ok_status(e, name)
7162 def raise_from_not_ok_status(e, name):
7163 e.message += (" name: " + name if name is not None else "")
-> 7164 raise core._status_to_exception(e) from None
InternalError: Invalid: INVALID_ARGUMENT: arrow data type 0x7ff9899d8038 is not supported: Type error: Arrow data type is not supported [Op:IteratorGetNext]
```
Some additional notes:
* I can actually decode an image encoded with `read_image()` (shown earlier):
```py
sample_image_path = image_paths[0]
encoded_image = read_image(sample_image_path)
image = tf.image.decode_png(encoded_image, 3)
print(image.shape)
```
* If the above `tf.data.Dataset` object would have succeeded my plan was to just map the decoder like so:
```py
autotune = tf.data.AUTOTUNE
dataset = dataset.map(lambda x, y: (tf.image.decode_png(x, 3), y), num_parallel_calls=autotune)
``` | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 413 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
@lhoestq this is what I tried:
```py
def read_image(path):
with open(path, "rb") as f:
return f.read()
total_images_written = 0
for step in tqdm.tnrange(int(math.ceil(len(image_paths) / batch_size))):
batch_image_paths = image_paths[step * batch_size : (step + 1) * batch_size]
batch_image_labels = all_integer_labels[step * batch_size : (step + 1) * batch_size]
data = [read_image(path) for path in batch_image_paths]
table = pa.Table.from_arrays([data, batch_image_labels], ["data", "labels"])
write_feather(table, f"/tmp/flowers_feather_{step}.feather", chunksize=chunk_size)
total_images_written += len(batch_image_paths)
print(f"Total images written: {total_images_written}.")
del data
```
I got the feather files done (no resizing required as you can see):
```sh
ls -lh /tmp/*.feather
-rw-r--r-- 1 sayakpaul wheel 64M Jun 24 09:28 /tmp/flowers_feather_0.feather
-rw-r--r-- 1 sayakpaul wheel 59M Jun 24 09:28 /tmp/flowers_feather_1.feather
-rw-r--r-- 1 sayakpaul wheel 51M Jun 24 09:28 /tmp/flowers_feather_2.feather
-rw-r--r-- 1 sayakpaul wheel 45M Jun 24 09:28 /tmp/flowers_feather_3.feather
```
Now there seems to be a problem with `tfio.arrow`:
```py
import tensorflow_io.arrow as arrow_io
dataset = arrow_io.ArrowFeatherDataset(
["/tmp/flowers_feather_0.feather"],
columns=(0, 1),
output_types=(tf.string, tf.int64),
output_shapes=([], []),
batch_mode="auto",
)
print(dataset.element_spec)
```
Prints:
```
(TensorSpec(shape=(None,), dtype=tf.string, name=None),
TensorSpec(shape=(None,), dtype=tf.int64, name=None))
```
But when I do `sample = next(iter(dataset))` it goes into:
```py
InternalError Traceback (most recent call last)
Input In [30], in <cell line: 1>()
----> 1 sample = next(iter(dataset))
File ~/.local/bin/.virtualenvs/jax/lib/python3.8/site-packages/tensorflow/python/data/ops/iterator_ops.py:766, in OwnedIterator.__next__(self)
764 def __next__(self):
765 try:
--> 766 return self._next_internal()
767 except errors.OutOfRangeError:
768 raise StopIteration
File ~/.local/bin/.virtualenvs/jax/lib/python3.8/site-packages/tensorflow/python/data/ops/iterator_ops.py:749, in OwnedIterator._next_internal(self)
746 # TODO(b/77291417): This runs in sync mode as iterators use an error status
747 # to communicate that there is no more data to iterate over.
748 with context.execution_mode(context.SYNC):
--> 749 ret = gen_dataset_ops.iterator_get_next(
750 self._iterator_resource,
751 output_types=self._flat_output_types,
752 output_shapes=self._flat_output_shapes)
754 try:
755 # Fast path for the case `self._structure` is not a nested structure.
756 return self._element_spec._from_compatible_tensor_list(ret) # pylint: disable=protected-access
File ~/.local/bin/.virtualenvs/jax/lib/python3.8/site-packages/tensorflow/python/ops/gen_dataset_ops.py:3017, in iterator_get_next(iterator, output_types, output_shapes, name)
3015 return _result
3016 except _core._NotOkStatusException as e:
-> 3017 _ops.raise_from_not_ok_status(e, name)
3018 except _core._FallbackException:
3019 pass
File ~/.local/bin/.virtualenvs/jax/lib/python3.8/site-packages/tensorflow/python/framework/ops.py:7164, in raise_from_not_ok_status(e, name)
7162 def raise_from_not_ok_status(e, name):
7163 e.message += (" name: " + name if name is not None else "")
-> 7164 raise core._status_to_exception(e) from None
InternalError: Invalid: INVALID_ARGUMENT: arrow data type 0x7ff9899d8038 is not supported: Type error: Arrow data type is not supported [Op:IteratorGetNext]
```
Some additional notes:
* I can actually decode an image encoded with `read_image()` (shown earlier):
```py
sample_image_path = image_paths[0]
encoded_image = read_image(sample_image_path)
image = tf.image.decode_png(encoded_image, 3)
print(image.shape)
```
* If the above `tf.data.Dataset` object would have succeeded my plan was to just map the decoder like so:
```py
autotune = tf.data.AUTOTUNE
dataset = dataset.map(lambda x, y: (tf.image.decode_png(x, 3), y), num_parallel_calls=autotune)
``` | [
-0.2916852831840515,
-0.34014731645584106,
-0.19338682293891907,
0.39395976066589355,
0.2313348352909088,
0.16601523756980896,
0.12490998208522797,
0.6766043901443481,
-0.31396815180778503,
-0.03397534787654877,
-0.20921370387077332,
0.5446645021438599,
-0.07021685689687729,
-0.25731316208839417,
0.07334987819194794,
-0.03318525850772858,
0.046452928334474564,
-0.03657585382461548,
-0.22242462635040283,
-0.06707487255334854,
-0.04890507459640503,
0.1502017378807068,
0.041814424097537994,
0.015289321541786194,
-0.20545005798339844,
-0.03722861409187317,
0.12969836592674255,
0.29675137996673584,
0.13490353524684906,
0.03142955154180527,
0.12237153947353363,
0.08053738623857498,
0.004234340041875839,
0.43677234649658203,
-0.00010686993482522666,
0.331948459148407,
0.044209957122802734,
-0.0035609453916549683,
0.09125106036663055,
0.04279562830924988,
-0.07845327258110046,
-0.10709642618894577,
-0.15974123775959015,
-0.28993192315101624,
-0.09034787863492966,
-0.13124553859233856,
-0.016142891719937325,
-0.22204554080963135,
0.4317631721496582,
0.33978503942489624,
0.20446646213531494,
0.3311989903450012,
0.1437922716140747,
0.3049725294113159,
0.37389734387397766,
-0.10434666275978088,
-0.17115123569965363,
0.20512448251247406,
-0.05354125797748566,
0.006237102672457695,
-0.06177287548780441,
0.29468482732772827,
-0.10562048107385635,
0.22047369182109833,
0.14283347129821777,
0.104009710252285,
-0.1615896224975586,
-0.418326735496521,
-0.15309354662895203,
0.5017814636230469,
0.013382107019424438,
-0.16158777475357056,
-0.389968603849411,
-0.18210342526435852,
-0.1227029338479042,
-0.17766879498958588,
0.06640011817216873,
-0.26762235164642334,
-0.1663116067647934,
0.061926230788230896,
0.11105409264564514,
0.028394341468811035,
-0.4051087498664856,
0.15493637323379517,
-0.0039650797843933105,
-0.05862772464752197,
-0.005850848741829395,
0.013832595199346542,
0.10033866763114929,
0.04217449203133583,
0.44497260451316833,
-0.026729285717010498,
0.2090165764093399,
0.021412115544080734,
-0.30299311876296997,
-0.09471946954727173,
0.10218402743339539,
-0.2658558487892151,
0.08709432184696198,
-0.04905513674020767,
0.39218103885650635,
0.31397494673728943,
-0.12226983159780502,
0.14308200776576996,
-0.4642167091369629,
-0.38273885846138,
-0.25343212485313416,
-0.2742868661880493,
0.23669548332691193,
-0.23696742951869965,
-0.18168212473392487,
0.01726676896214485,
-0.2328048050403595,
-0.17387542128562927,
-0.17430733144283295,
-0.256740927696228,
0.12155504524707794,
0.06755198538303375,
-0.4332118034362793,
0.040665823966264725,
0.14866364002227783,
-0.11469048261642456,
0.00011263415217399597,
0.09575816243886948,
0.10569801181554794,
0.09288986027240753,
0.2076394259929657,
-0.13465890288352966,
-0.18244628608226776,
-0.19491906464099884,
-0.13837489485740662,
-0.12229643762111664,
0.03156837448477745,
-0.007525267079472542,
-0.13537167012691498,
-0.08588792383670807,
0.14693580567836761,
-0.07317918539047241,
0.161685973405838,
0.3780231177806854,
0.26945799589157104,
-0.25174054503440857,
0.07439912855625153,
-0.008820418268442154,
-0.268838495016098,
-0.22450830042362213,
0.23612245917320251,
0.34424686431884766,
-0.1749652773141861,
0.0064785294234752655,
-0.42478758096694946,
-0.2586386799812317,
-0.09818068146705627,
0.1344851404428482,
-0.05573917552828789,
-0.299335241317749,
-0.3475651443004608,
0.3781634271144867,
0.03345899283885956,
-0.12890054285526276,
-0.03221616894006729,
-0.35853105783462524,
-0.41460931301116943,
-0.3547917902469635,
0.23168045282363892,
0.13529802858829498,
-0.5455026626586914,
0.1999644935131073,
0.06410621851682663,
0.050448834896087646,
0.08688049763441086,
0.2678196430206299,
-0.14637528359889984,
0.21672716736793518,
-0.17716524004936218,
0.11805844306945801,
0.8216106295585632,
-0.2822054326534271,
-0.16806022822856903,
0.28849494457244873,
-0.11481915414333344,
0.11455868929624557,
-0.00018872320652008057,
0.17521144449710846,
0.0780533030629158,
-0.20279841125011444,
0.18703556060791016,
0.3466513156890869,
-0.11420883238315582,
0.003362966701388359,
-0.23071174323558807,
-0.19380085170269012,
-0.056989796459674835,
0.19495755434036255,
-0.23365803062915802,
-0.26212236285209656,
0.07306113839149475,
-0.2829985022544861,
0.19995471835136414,
-0.1500295251607895,
-0.04079681634902954,
0.15545275807380676,
0.24003294110298157,
0.21452245116233826,
-0.10447167605161667,
-0.09483234584331512,
-0.29470324516296387,
0.2611566483974457,
0.15079158544540405,
0.006195519119501114,
0.1479625552892685,
-0.12266739457845688,
0.20985043048858643,
-0.046490393579006195,
0.08203446120023727,
0.0956593006849289,
0.19226738810539246,
-0.1401970237493515,
0.12845657765865326,
0.141440287232399,
-0.35734134912490845,
0.04576091468334198,
-0.6342594027519226,
0.044467274099588394,
0.07928304374217987,
0.28476929664611816,
0.2675936222076416,
-0.14732198417186737,
-0.04876253008842468,
0.09450007975101471,
-0.4463931620121002,
-0.29097118973731995,
-0.10709482431411743,
0.3247136175632477,
-0.17910079658031464,
-0.031340762972831726,
0.14444316923618317,
0.504570484161377,
0.025943055748939514,
0.07551786303520203,
-0.083073690533638,
0.09697088599205017,
-0.1298217475414276,
0.03842870146036148,
-0.061113521456718445,
0.5851511359214783,
0.1844072788953781,
0.12852434813976288,
0.07033403217792511,
-0.19093617796897888,
0.06110701709985733,
0.16705912351608276,
0.014141451567411423,
0.1660771369934082,
0.14113642275333405,
-0.22384445369243622,
0.22271521389484406,
-0.12698769569396973,
-0.3735356330871582,
0.40055686235427856,
0.6426225304603577,
0.1406387835741043,
-0.14272013306617737,
0.2126019299030304,
-0.049773700535297394,
0.01976684480905533,
0.1598685085773468,
0.2612208127975464,
0.4892963171005249,
0.3276159167289734,
0.05751046910881996,
-0.18575523793697357,
-0.13827146589756012,
-0.1546541154384613,
0.2123517394065857,
-0.014562025666236877,
0.43601900339126587,
0.023415204137563705,
-0.019122164696455002,
0.15410824120044708,
-0.2821955978870392,
-0.5397992134094238,
-0.007731373887509108,
0.20373308658599854,
-0.21097542345523834,
0.019148746505379677,
-0.10059019923210144,
-0.3486156761646271,
-0.04862959682941437,
0.2031424641609192,
-0.14942829310894012,
-0.240753173828125,
-0.05682571232318878,
0.25575125217437744,
0.0782046765089035,
-0.01135188341140747,
-0.19939866662025452,
0.14671657979488373,
0.44668835401535034,
-0.4525171220302582,
-0.30387449264526367,
0.1847178339958191,
-0.24227803945541382,
0.12626539170742035,
0.47384384274482727,
-0.0770903080701828,
0.3575226068496704,
0.04580547660589218,
0.12183420360088348,
-0.31117168068885803,
-0.35961878299713135,
0.1364595592021942,
-0.5436791181564331,
0.2870810627937317,
0.009536772966384888,
0.33581435680389404,
-0.27955177426338196,
0.02992582693696022,
0.25856301188468933,
-0.022969651967287064,
-0.06538378447294235,
-0.07038964331150055,
-0.0039158957079052925,
-0.04553604498505592,
0.08075161278247833,
-0.08489375561475754,
-0.07344700396060944,
-0.3942854106426239,
0.14084964990615845,
0.06287053227424622,
0.2380300760269165,
0.10501502454280853,
0.22103451192378998,
0.46322494745254517,
0.11302243173122406,
0.16132880747318268,
-0.023299435153603554,
-0.6148378849029541,
0.4101686179637909,
-0.1531495749950409,
-0.3073756694793701,
-0.05905139446258545,
0.1066313236951828,
0.30563482642173767,
0.3024488091468811,
-0.4588460922241211,
-0.547107994556427,
-0.16546855866909027,
0.39250823855400085,
-0.1419542282819748,
-0.10445679724216461,
0.08870846033096313,
-0.05856005474925041,
-0.1738726645708084,
-0.17118802666664124,
0.39635974168777466,
-0.04666668921709061,
-0.1579965054988861,
0.04270579665899277,
0.32350385189056396,
0.23690998554229736,
0.30435478687286377,
0.6374703645706177,
0.20550590753555298,
-0.3265291452407837,
0.14781957864761353,
-0.32907652854919434,
0.08410239219665527,
-0.11466004699468613,
-0.058718323707580566,
0.13400523364543915,
-0.056930094957351685,
0.23566152155399323,
0.21281801164150238,
-0.058226533234119415,
0.13222044706344604,
0.00732610747218132,
0.22875192761421204,
-0.07524920254945755,
-0.1873750239610672,
0.4395751953125,
-0.23838049173355103,
0.09067557007074356,
-0.09289327263832092,
-0.07584453374147415,
-0.09847015142440796,
-0.23625946044921875,
0.20873025059700012,
0.27158603072166443,
0.35988926887512207,
-0.038938410580158234,
0.040789645165205,
0.11656663566827774,
-0.4684339165687561,
0.3287057876586914,
0.0680624321103096,
-0.05146588757634163,
-0.010062310844659805,
-0.09706699848175049,
0.04419497400522232,
-0.07849671691656113,
0.5314277410507202,
-0.24919213354587555,
-0.2049158364534378,
0.17582771182060242,
-0.10392973572015762,
-0.43333232402801514,
0.0733734518289566,
-0.18086226284503937,
0.02068283222615719,
0.1819329708814621,
0.3720822036266327,
-0.19396451115608215,
-0.5372981429100037,
0.05996144190430641,
-0.0823531523346901,
-0.031551480293273926,
0.04512453079223633,
-0.13657023012638092,
-0.11447130888700485,
-0.0913068875670433,
-0.0833355262875557,
-0.07425820827484131,
-0.06549013406038284,
-0.1780513972043991,
-0.07580079883337021,
-0.2682315409183502,
-0.10252045094966888,
0.30885279178619385,
0.11385117471218109,
0.06720136851072311,
0.0852956622838974,
0.011098869144916534,
0.003690805286169052,
-0.020132511854171753,
0.4615243673324585,
0.2508886456489563,
-0.0036885999143123627,
-0.5022355914115906,
-0.24638956785202026,
0.1669784039258957,
0.021646007895469666,
0.2525821030139923,
-0.176681786775589,
0.0384053960442543,
-0.3121192753314972,
0.23794008791446686,
-0.027815725654363632,
0.36448797583580017,
0.3526785373687744,
0.10066108405590057,
-0.16370044648647308,
-0.371394544839859,
0.45035454630851746,
0.19533169269561768,
0.1644555777311325,
0.5410966873168945,
0.1507612019777298,
-0.22772453725337982,
0.2508172392845154,
0.339598685503006,
0.8173676133155823,
-0.1826157122850418,
0.35367169976234436,
0.5423833727836609,
0.40873897075653076,
0.35522884130477905,
-0.2824692130088806,
0.011229117400944233,
-0.08515673875808716,
-0.2595318555831909,
-0.061917223036289215,
0.005711745470762253,
0.011575572192668915,
0.016196873039007187,
0.07063943147659302,
-0.026872675865888596,
0.40353137254714966,
0.11687161028385162,
-0.07980338484048843,
0.19191882014274597,
-0.04440693557262421,
-0.2382916808128357,
0.02245335653424263,
0.22864076495170593,
0.003940042108297348,
-0.14441362023353577,
-0.010271860286593437,
-0.28833234310150146,
-0.5719647407531738,
0.3006244897842407,
0.03664439916610718,
-0.15682977437973022,
-0.5149892568588257,
0.2571474015712738,
-0.2658284902572632,
-0.4443090558052063,
0.04396304860711098,
0.30163201689720154,
0.0721316784620285,
-0.2515222728252411,
-0.2858004570007324,
-0.0705106258392334,
0.26102352142333984,
-0.12205933779478073,
0.06532111763954163,
-0.465055376291275,
0.5266054272651672,
0.06439248472452164,
0.21880844235420227,
0.05106253921985626,
0.058152586221694946,
-0.30350250005722046,
-0.05116495490074158,
-0.038191184401512146,
0.0669289380311966,
-0.17970313131809235,
-0.39532414078712463,
-0.030773095786571503,
-0.5462313890457153,
0.08705797791481018,
0.18771106004714966,
0.04319695383310318,
0.07245910167694092,
0.13855768740177155,
0.168175607919693,
-0.12908275425434113,
0.11828632652759552,
0.040675412863492966,
-0.12386896461248398,
-0.15595009922981262,
0.09613081812858582,
-0.06604553759098053,
-0.1164136603474617,
-0.11623253673315048,
0.38474488258361816,
0.16664251685142517,
-0.2469547986984253,
0.13180196285247803,
0.0630725622177124,
0.24973498284816742,
-0.10433613508939743,
0.011301010847091675,
0.029760556295514107,
-0.09789466112852097,
-0.15031574666500092,
-0.06147289648652077,
-0.33205363154411316,
0.29564347863197327,
-0.0714946836233139,
0.2945795953273773,
-0.5169912576675415,
0.05567578598856926,
-0.12746895849704742,
-0.18756714463233948,
-0.38538646697998047,
0.25412091612815857,
0.30320802330970764,
-0.02940770983695984,
0.39969033002853394,
0.15077073872089386,
0.348720908164978,
0.12471386790275574,
0.16003727912902832,
0.2735191881656647,
-0.32829684019088745,
-0.2864241898059845,
-0.09350056946277618,
0.09725554287433624,
0.042110688984394073,
-0.32632553577423096,
0.23586656153202057,
-0.14334151148796082,
-0.33075863122940063,
-0.24752849340438843,
0.0022212322801351547,
-0.16951969265937805,
-0.2611134648323059,
-0.164590984582901,
0.10837402939796448,
0.17426633834838867,
0.1775505542755127,
0.012841684743762016,
0.0017682835459709167,
0.44359326362609863,
-0.06604557484388351,
0.185164675116539,
-0.08066724240779877,
-0.17632821202278137,
-0.0019901529885828495,
0.23688465356826782,
0.09821243584156036,
-0.12846985459327698,
0.22128254175186157,
-0.11998316645622253,
-0.07485152035951614,
0.06827810406684875,
0.3605498671531677,
0.4670964181423187,
-0.2568477690219879,
-0.03860333561897278,
0.1531115174293518,
0.2397885024547577,
0.07796066254377365,
0.05792875960469246,
0.20825549960136414,
-0.03535141423344612,
0.14820289611816406,
0.16758844256401062,
-0.0854797214269638,
0.41046327352523804,
-0.16814664006233215,
-0.12517531216144562,
0.1313214749097824,
-0.42402541637420654,
0.006098809652030468,
0.03346375375986099,
0.17126837372779846,
0.06823956966400146,
0.12615995109081268,
0.07384301722049713,
0.1390523612499237,
0.4685518145561218,
0.06877967715263367,
0.35807234048843384,
0.02916366420686245,
-0.09823532402515411,
-0.07985628396272659,
-0.277572900056839,
-0.09863539040088654,
0.03535744547843933,
-0.09207490086555481,
0.5175607204437256,
0.050381384789943695,
0.4416365325450897,
0.17581309378147125,
-0.33867257833480835,
0.13500775396823883,
0.29959923028945923,
-0.09251859039068222,
-0.06960715353488922,
-0.14072921872138977,
0.0258304625749588,
0.0019232332706451416,
0.04700426384806633,
-0.09374578297138214,
-0.1639249473810196,
-0.17091017961502075,
0.3343793749809265,
0.30004018545150757,
0.022374916821718216,
-0.1484394073486328,
0.02127329260110855,
0.2976319193840027,
0.012438420206308365,
0.19171418249607086,
0.1327425241470337,
-0.11438889801502228,
-0.17393797636032104,
0.0503445528447628,
0.3151398301124573,
0.035617947578430176,
0.06619091331958771,
0.13252508640289307,
-0.2550898790359497,
-0.02311314456164837,
0.022204186767339706,
0.06451921910047531,
-0.021599866449832916,
-0.065297931432724,
0.29559504985809326,
0.16004998981952667,
-0.18796879053115845,
-0.019047345966100693,
-0.19812075793743134,
-0.009591320529580116,
-0.3065221905708313,
-0.027453981339931488,
0.08404697477817535,
-0.1611383557319641,
-0.22846364974975586,
-0.1289348304271698,
-0.18278838694095612,
0.009844494983553886,
0.48094213008880615,
-0.10402464866638184,
0.08462630212306976,
0.24704603850841522,
0.10689190030097961,
-0.10972510278224945,
0.35332611203193665,
0.046513985842466354,
0.3584778308868408,
-0.15094409883022308,
-0.15811514854431152,
-0.37943264842033386,
-0.04454069584608078,
-0.07979920506477356,
0.05042809993028641,
-0.08618973940610886,
0.31147143244743347,
0.1829577088356018,
0.1465059071779251,
0.31770944595336914,
-0.777703583240509,
0.2369309961795807,
0.3004264831542969,
-0.36451253294944763,
0.12348389625549316,
-0.4603302478790283,
0.11902780830860138,
0.054133668541908264,
-0.2710823118686676,
0.1011105328798294,
-0.05130404606461525,
0.11225251108407974,
-0.23941953480243683,
0.09718285501003265,
0.19720140099525452,
-0.05695737898349762,
0.4664871394634247,
-0.04561489820480347,
0.08236031234264374,
-0.1764129400253296,
-0.1762770116329193,
-0.23600369691848755,
0.09732795506715775,
-0.28877556324005127,
0.3322135806083679,
0.010051380842924118,
0.4223860502243042,
-0.0676838606595993,
-0.7201473712921143,
-0.12910239398479462,
0.06624723225831985,
-0.046052321791648865,
-0.24527618288993835,
-0.1373331993818283,
0.08939027786254883,
0.03496447950601578,
0.14682869613170624,
-0.08116239309310913,
0.47819390892982483,
-0.02695976197719574,
0.18344075977802277,
-0.4291347861289978,
-0.3113296627998352,
0.4924866557121277,
-0.43232885003089905,
-0.06475798040628433,
0.23238006234169006,
0.04063395410776138,
0.11980639398097992,
0.3044421076774597,
-0.4257463216781616,
-0.1725538671016693,
0.41179966926574707,
0.0032826904207468033,
-0.267191082239151,
0.4827197790145874,
0.27183952927589417,
0.02203844115138054,
-0.007470142096281052,
0.14185333251953125,
-0.1110779419541359,
-0.2792895436286926,
-0.09088771790266037,
-0.22915329039096832
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | @lhoestq I think I was able to make it work in the way you were envisioning. Here's the PoC:
https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb
Some details:
* I am currently serializing the images as strings with `base64`). In comparison to the flattened arrays as before, the size of the individual feather files has reduced (144 MB -> 85 MB, largest).
* When decoding, I am first decoding the base64 string and then decoding that string (with `tf.io.decode_base64`) as an image with `tf.image.decode_png()`.
* The entire workflow (from generating the Feather files to loading them and preparing the batched `tf.data` pipeline) involves the following libraries: `pyarraow`, `tensorflow-io`, and `tensorflow`.
Cc: @Rocketknight1 @gante | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 107 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
@lhoestq I think I was able to make it work in the way you were envisioning. Here's the PoC:
https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb
Some details:
* I am currently serializing the images as strings with `base64`). In comparison to the flattened arrays as before, the size of the individual feather files has reduced (144 MB -> 85 MB, largest).
* When decoding, I am first decoding the base64 string and then decoding that string (with `tf.io.decode_base64`) as an image with `tf.image.decode_png()`.
* The entire workflow (from generating the Feather files to loading them and preparing the batched `tf.data` pipeline) involves the following libraries: `pyarraow`, `tensorflow-io`, and `tensorflow`.
Cc: @Rocketknight1 @gante | [
-0.15111899375915527,
-0.2583698034286499,
-0.17873255908489227,
0.33229172229766846,
0.2542518377304077,
0.1207948550581932,
0.17362992465496063,
0.6264511942863464,
-0.30424678325653076,
0.08291283249855042,
-0.2909771502017975,
0.4283265173435211,
-0.04531325399875641,
-0.21035680174827576,
0.03018796816468239,
-0.07879310846328735,
-0.07711543887853622,
0.16516859829425812,
-0.22499144077301025,
-0.06663081049919128,
0.005798868834972382,
0.18825925886631012,
0.11164766550064087,
-0.052212074398994446,
-0.12159503996372223,
0.006350448355078697,
0.02743431366980076,
0.24026456475257874,
0.026369355618953705,
0.04819246381521225,
0.18560977280139923,
0.14991997182369232,
-0.07248581200838089,
0.38055548071861267,
-0.00010080108768306673,
0.3351380228996277,
-0.008006960153579712,
-0.08494115620851517,
0.10986924171447754,
0.06926316022872925,
0.03230247646570206,
-0.1753331869840622,
-0.22326435148715973,
-0.3391644358634949,
-0.2208074927330017,
-0.2593853175640106,
0.041915375739336014,
-0.23722586035728455,
0.5083524584770203,
0.2741951048374176,
0.24472716450691223,
0.2570255994796753,
0.2103828340768814,
0.32352179288864136,
0.28605619072914124,
-0.061751142144203186,
-0.23564454913139343,
0.16639015078544617,
-0.10215157270431519,
0.014320900663733482,
-0.05933611840009689,
0.2099626213312149,
-0.07015335559844971,
0.2219475507736206,
0.11283783614635468,
0.11154778301715851,
-0.1481117606163025,
-0.4128444492816925,
-0.25009506940841675,
0.4776844382286072,
-0.022323086857795715,
-0.12698224186897278,
-0.37399253249168396,
-0.2228270173072815,
-0.10298897325992584,
-0.15078264474868774,
0.023954160511493683,
-0.07432921230792999,
-0.09002833068370819,
0.13020092248916626,
0.02191830985248089,
0.07652585953474045,
-0.44574159383773804,
0.1756666600704193,
-0.15191660821437836,
-0.1287316530942917,
-0.02894003689289093,
0.055065132677555084,
0.08230000734329224,
0.0155500378459692,
0.28840386867523193,
-0.10723370313644409,
0.3555341064929962,
0.08590831607580185,
-0.19815094769001007,
-0.24619796872138977,
0.08492240309715271,
-0.4319455921649933,
0.12311915308237076,
-0.13099665939807892,
0.40474793314933777,
0.38936516642570496,
-0.12851175665855408,
0.14032721519470215,
-0.3940022587776184,
-0.2296348512172699,
-0.35223254561424255,
-0.29520121216773987,
0.24463078379631042,
-0.26228901743888855,
-0.24584008753299713,
0.03322794660925865,
-0.24589265882968903,
0.04488503187894821,
-0.27356427907943726,
-0.26545706391334534,
0.15205933153629303,
0.12675708532333374,
-0.3714029788970947,
0.021234389394521713,
0.036610230803489685,
0.0023577953688800335,
-0.08244755119085312,
-0.024981096386909485,
0.1303495317697525,
0.26010313630104065,
0.23581387102603912,
-0.24108867347240448,
-0.20708948373794556,
-0.1369737684726715,
-0.1413862258195877,
-0.12196381390094757,
0.011013071984052658,
0.03419531509280205,
-0.1236286610364914,
-0.09053459763526917,
0.0725351944565773,
-0.05507564917206764,
0.25109416246414185,
0.4247215688228607,
0.4470195472240448,
-0.2655928432941437,
0.08976463228464127,
-0.005751904100179672,
-0.25087258219718933,
-0.21876855194568634,
0.14562638103961945,
0.2966526746749878,
-0.22196680307388306,
0.016985058784484863,
-0.41335439682006836,
-0.1790022850036621,
-0.16982899606227875,
0.16061341762542725,
-0.1362178921699524,
-0.2319587767124176,
-0.21622830629348755,
0.3987301290035248,
0.16867634654045105,
-0.1642703115940094,
-0.14089509844779968,
-0.3112078309059143,
-0.46864569187164307,
-0.32867205142974854,
0.23826107382774353,
0.006528019905090332,
-0.5326544046401978,
0.24030449986457825,
0.07397006452083588,
0.04306560754776001,
0.1407424509525299,
0.271803081035614,
-0.16747541725635529,
0.08562911301851273,
-0.1919901818037033,
0.25086432695388794,
0.44528499245643616,
-0.17160452902317047,
-0.20425277948379517,
0.2798226773738861,
-0.10237197577953339,
0.22393248975276947,
-0.006362535059452057,
0.15656451880931854,
0.09478269517421722,
-0.20341217517852783,
0.0893678367137909,
0.39828014373779297,
-0.1533520370721817,
0.0981866642832756,
-0.22938160598278046,
-0.3162759244441986,
-0.015084821730852127,
0.2171751707792282,
-0.2898600101470947,
-0.22958511114120483,
0.002575993537902832,
-0.10938786715269089,
0.26985540986061096,
-0.2595888376235962,
0.09470367431640625,
0.12720686197280884,
0.23906877636909485,
0.11884160339832306,
-0.05944375321269035,
-0.08141486346721649,
-0.27723512053489685,
0.2146115005016327,
0.14290200173854828,
0.09467966854572296,
0.10249952226877213,
-0.1661500334739685,
0.12932434678077698,
-0.1343604028224945,
0.11998391151428223,
0.1654151827096939,
0.25398364663124084,
-0.030022703111171722,
0.07993780076503754,
0.04964929446578026,
-0.37322312593460083,
-0.020230678841471672,
-0.45838698744773865,
-0.0739542618393898,
0.0057826051488518715,
0.4298223555088043,
0.24489760398864746,
-0.11575255542993546,
-0.06858042627573013,
0.014895826578140259,
-0.44406548142433167,
-0.3372282087802887,
0.017524275928735733,
0.33127108216285706,
-0.0968330129981041,
0.07180812209844589,
0.06543935090303421,
0.5488326549530029,
0.1750628501176834,
0.07917490601539612,
-0.016249170526862144,
0.2517889440059662,
-0.18509000539779663,
0.04308921843767166,
-0.05943421274423599,
0.5921282768249512,
0.15800689160823822,
0.07432986795902252,
0.13747866451740265,
-0.24946637451648712,
0.17213185131549835,
0.0817568451166153,
-0.06758391857147217,
-0.02715205028653145,
-0.04067700728774071,
-0.1884063482284546,
0.2090264856815338,
-0.05074114352464676,
-0.409256249666214,
0.4800410866737366,
0.7448412179946899,
0.16265250742435455,
-0.13804131746292114,
0.22583556175231934,
-0.005566038191318512,
0.02126079425215721,
0.16534863412380219,
0.18350616097450256,
0.5007727742195129,
0.30525699257850647,
0.1200484186410904,
-0.11779830604791641,
-0.11345004290342331,
-0.12336311489343643,
0.20225021243095398,
-0.10206949710845947,
0.42694735527038574,
0.12184952199459076,
0.05130554363131523,
0.10211767256259918,
-0.35952240228652954,
-0.4136395752429962,
0.01842189021408558,
0.10110974311828613,
-0.060002900660037994,
0.006996065378189087,
-0.09740311652421951,
-0.3631637394428253,
-0.11047669500112534,
0.09340207278728485,
-0.13328790664672852,
-0.18683362007141113,
0.07028783112764359,
0.2701122760772705,
-0.10052382946014404,
0.03449229523539543,
-0.2322208136320114,
0.2015073001384735,
0.4815692901611328,
-0.25964275002479553,
-0.25031647086143494,
0.2190781533718109,
-0.11742687970399857,
0.18798430263996124,
0.3321649134159088,
-0.14903248846530914,
0.29877886176109314,
0.09777998924255371,
0.048646487295627594,
-0.19952929019927979,
-0.5364695191383362,
0.2529582977294922,
-0.4905244708061218,
0.19392620027065277,
0.0076972320675849915,
0.375372052192688,
-0.1813730150461197,
-0.09083551168441772,
0.29339003562927246,
-0.04765310883522034,
-0.17690367996692657,
-0.05616287514567375,
0.13033273816108704,
0.0003173685690853745,
-0.18292389810085297,
-0.1336820125579834,
-0.1560111939907074,
-0.3808223605155945,
0.16907723248004913,
0.057243917137384415,
0.2771539092063904,
0.23736244440078735,
0.27163687348365784,
0.38018158078193665,
0.19167275726795197,
0.08276624977588654,
-0.14889121055603027,
-0.572691798210144,
0.44557493925094604,
-0.22069531679153442,
-0.36330047249794006,
-0.13925696909427643,
0.15202513337135315,
0.19869650900363922,
0.24674615263938904,
-0.4241675138473511,
-0.5969629287719727,
-0.2215617597103119,
0.21980667114257812,
-0.11480075120925903,
-0.09114142507314682,
0.013079799711704254,
-0.04261195659637451,
-0.19510269165039062,
-0.2547464072704315,
0.4369758367538452,
-0.04078211635351181,
0.01638220064342022,
-0.0060279518365859985,
0.26547491550445557,
0.14073446393013,
0.3092711567878723,
0.4927304983139038,
0.1500157117843628,
-0.33364030718803406,
0.1927419751882553,
-0.24268046021461487,
0.12381716072559357,
-0.18046757578849792,
-0.0008487608283758163,
0.16781958937644958,
-0.05230851471424103,
0.18819385766983032,
0.2591695189476013,
-0.06062004715204239,
0.038021333515644073,
0.05064704269170761,
0.30991730093955994,
0.05761104077100754,
-0.2170761525630951,
0.4620051980018616,
-0.09187944233417511,
0.063505619764328,
-0.06896965950727463,
-0.09973645210266113,
-0.0744154304265976,
-0.2232329249382019,
0.12939144670963287,
-0.02445904165506363,
0.37774744629859924,
-0.0394769012928009,
0.06529322266578674,
0.053021859377622604,
-0.5702537298202515,
0.18701042234897614,
0.12158079445362091,
-0.08644762635231018,
0.06322364509105682,
-0.15088844299316406,
0.05417908355593681,
-0.07272212207317352,
0.4923832416534424,
-0.0880243256688118,
-0.21361862123012543,
0.11112266778945923,
-0.10009951889514923,
-0.3598560094833374,
0.07011796534061432,
-0.14532239735126495,
-0.018105225637555122,
0.11676892638206482,
0.5263961553573608,
-0.39281386137008667,
-0.43433570861816406,
-0.07207266241312027,
0.022846009582281113,
0.0043503642082214355,
0.05748892202973366,
-0.1483052521944046,
-0.18404465913772583,
-0.10925175249576569,
-0.1816059648990631,
-0.06508287042379379,
-0.027854161337018013,
-0.19913780689239502,
-0.1853102594614029,
-0.14986416697502136,
-0.09098279476165771,
0.2746337652206421,
0.17984318733215332,
0.10818313807249069,
0.0964408814907074,
-0.0483521968126297,
0.05491475388407707,
0.021771270781755447,
0.455352246761322,
0.2817304730415344,
0.09842036664485931,
-0.374778151512146,
-0.1724991500377655,
0.08064074069261551,
-0.11405589431524277,
0.22160717844963074,
-0.053767889738082886,
0.019394077360630035,
-0.3298729956150055,
0.3018987774848938,
-0.16504527628421783,
0.3753245770931244,
0.24201074242591858,
-0.040589265525341034,
-0.056613195687532425,
-0.35247117280960083,
0.37537649273872375,
0.01715885102748871,
0.18042965233325958,
0.41926220059394836,
0.19130028784275055,
-0.27117758989334106,
0.23214368522167206,
0.40479058027267456,
0.8421164751052856,
-0.15034626424312592,
0.39179372787475586,
0.4515359699726105,
0.23430214822292328,
0.4425046145915985,
-0.31606554985046387,
0.09661079943180084,
-0.10317674279212952,
-0.2976619601249695,
-0.032905884087085724,
0.11367753148078918,
-0.10994131118059158,
0.14954422414302826,
-0.03007853776216507,
-0.16959427297115326,
0.4703179597854614,
0.10629022121429443,
-0.1549808531999588,
0.2459401786327362,
-0.04010079801082611,
-0.24881163239479065,
-0.12545853853225708,
0.26951348781585693,
0.009518146514892578,
-0.22965934872627258,
0.04089374095201492,
-0.3137170672416687,
-0.4738418459892273,
0.2709852457046509,
0.11918376386165619,
-0.02244480513036251,
-0.37749403715133667,
0.38628458976745605,
-0.3159075677394867,
-0.3688361644744873,
-0.09393233060836792,
0.17117667198181152,
-0.09086808562278748,
-0.2558273673057556,
-0.24352025985717773,
-0.10160008072853088,
0.20469120144844055,
-0.08299648761749268,
0.0007612402550876141,
-0.4405380189418793,
0.44777464866638184,
0.03016606718301773,
0.1716311275959015,
0.00811174139380455,
0.036007776856422424,
-0.2620220184326172,
-0.02009175717830658,
0.00939185917377472,
-0.006401777267456055,
-0.14942175149917603,
-0.30642449855804443,
0.0014964565634727478,
-0.5071099996566772,
0.0946098119020462,
0.21562959253787994,
-0.04673561453819275,
0.03739876672625542,
0.16304293274879456,
0.11429396271705627,
-0.0315508097410202,
0.15706554055213928,
0.1269722282886505,
-0.011283032596111298,
-0.05850176140666008,
0.1405622363090515,
-0.08569119870662689,
-0.1264365315437317,
-0.10994734615087509,
0.32001492381095886,
0.1351018249988556,
-0.19762739539146423,
0.20055367052555084,
0.017997002229094505,
0.13405202329158783,
-0.046070948243141174,
0.053406476974487305,
-0.0034603290259838104,
0.014271881431341171,
-0.23257970809936523,
-0.082301065325737,
-0.36301854252815247,
0.219297856092453,
-0.003885570913553238,
0.4009021818637848,
-0.44571590423583984,
0.0787891149520874,
-0.12559647858142853,
-0.18516884744167328,
-0.4512985944747925,
0.2286984771490097,
0.21731969714164734,
0.03187360242009163,
0.24128715693950653,
0.0681409016251564,
0.2011738270521164,
0.07115665078163147,
0.1927972286939621,
0.33144140243530273,
-0.3401400148868561,
-0.30041059851646423,
-0.06764446943998337,
0.07236829400062561,
0.10659869760274887,
-0.41922494769096375,
0.28369662165641785,
-0.047904565930366516,
-0.36393314599990845,
-0.2863721549510956,
0.1268443614244461,
-0.16073720157146454,
-0.23955534398555756,
-0.18376308679580688,
0.038192443549633026,
0.1764211356639862,
0.1684820055961609,
-0.1624128222465515,
0.14006483554840088,
0.41517823934555054,
0.09608330577611923,
0.2076970785856247,
-0.1562267243862152,
-0.15443025529384613,
0.116378553211689,
0.23293468356132507,
0.1194285899400711,
-0.1776389181613922,
0.3899558484554291,
-0.022429972887039185,
-0.13555631041526794,
0.14633721113204956,
0.42715340852737427,
0.4655134081840515,
-0.25019189715385437,
-0.06590766459703445,
0.0046122269704937935,
0.29877015948295593,
0.02839575707912445,
0.03717418387532234,
0.3090697228908539,
-0.005945981480181217,
0.13341160118579865,
0.15016405284404755,
-0.05733784660696983,
0.3673345148563385,
-0.1850360482931137,
-0.11589016765356064,
0.18826180696487427,
-0.31020408868789673,
-0.014127355068922043,
0.18354608118534088,
0.06157473102211952,
-0.030577708035707474,
0.06363068521022797,
-0.07178640365600586,
0.208501935005188,
0.5212331414222717,
0.01167750358581543,
0.3253589868545532,
0.0477902889251709,
-0.12482427060604095,
-0.0627228245139122,
-0.09779605269432068,
-0.15536615252494812,
0.15647603571414948,
-0.004428304731845856,
0.5494105219841003,
0.09185575693845749,
0.3704014718532562,
0.13997510075569153,
-0.3035203218460083,
0.08724293112754822,
0.40257638692855835,
-0.09738054126501083,
-0.03589235246181488,
-0.1893061250448227,
-0.0036388710141181946,
-0.042634524405002594,
0.028982769697904587,
-0.0625753104686737,
-0.16019941866397858,
-0.04966416954994202,
0.22821757197380066,
0.21830563247203827,
-0.010322330519557,
-0.10320758074522018,
0.018005387857556343,
0.4155442714691162,
-0.03774227574467659,
0.2634826600551605,
0.34593966603279114,
-0.13104818761348724,
-0.17823481559753418,
0.005669035017490387,
0.22331728041172028,
0.020541280508041382,
0.14187464118003845,
0.2416699230670929,
-0.13793794810771942,
-0.027821268886327744,
-0.06778751313686371,
0.15201367437839508,
0.07034531980752945,
-0.02051418274641037,
0.30575621128082275,
0.18036405742168427,
-0.2457718700170517,
-0.04385877028107643,
-0.07833211123943329,
-0.06585726141929626,
-0.2708035111427307,
-0.1721436083316803,
0.05539100617170334,
-0.1203995794057846,
-0.11327964067459106,
-0.21990376710891724,
-0.16198697686195374,
-0.022342685610055923,
0.3162589371204376,
-0.11413837969303131,
0.08956590294837952,
0.25283244252204895,
0.12909305095672607,
-0.22082416713237762,
0.3864978849887848,
0.07059049606323242,
0.19517570734024048,
-0.05658647418022156,
-0.2253127247095108,
-0.30783024430274963,
0.1250411421060562,
-0.045976247638463974,
0.03691764920949936,
-0.18015208840370178,
0.4073698818683624,
0.24460771679878235,
0.09128627181053162,
0.1390356570482254,
-0.683165967464447,
0.2558753788471222,
0.19356608390808105,
-0.36731502413749695,
0.17336834967136383,
-0.3958158493041992,
0.09854906052350998,
0.0253191776573658,
-0.2963368892669678,
0.07172868400812149,
-0.016157066449522972,
0.1670774519443512,
-0.19396920502185822,
0.13280761241912842,
0.03915863856673241,
-0.07453563809394836,
0.4877670407295227,
-0.009198321029543877,
0.07153653353452682,
-0.2513970136642456,
-0.17426536977291107,
-0.22913259267807007,
0.13704706728458405,
-0.3619517982006073,
0.2913396656513214,
0.01812569983303547,
0.5387821197509766,
-0.024273287504911423,
-0.5092900395393372,
-0.12025974690914154,
0.06998276710510254,
-0.008759189397096634,
-0.20913977921009064,
-0.06637096405029297,
0.12885846197605133,
-0.1885787844657898,
0.02360491082072258,
-0.1857575625181198,
0.4928514063358307,
0.019618436694145203,
0.08237320184707642,
-0.3181687593460083,
-0.40530291199684143,
0.4718387722969055,
-0.4012995660305023,
-0.20625920593738556,
0.3001503646373749,
-0.07654276490211487,
0.018560633063316345,
0.18413403630256653,
-0.44058629870414734,
-0.05233719199895859,
0.35717880725860596,
-0.0179135724902153,
-0.30140942335128784,
0.3897635340690613,
0.2973235249519348,
-0.07550704479217529,
-0.016132574528455734,
0.29677432775497437,
0.0736439898610115,
-0.2701582908630371,
-0.11014395952224731,
-0.24740636348724365
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Cool thanks ! Too bad the Arrow binary type doesn't seem to be supported in `arrow_io.ArrowFeatherDataset` :/ We would also need it to support Arrow struct type. Indeed images in `datasets` are represented using an Arrow type
```python
pa.struct({"path": pa.string(), "bytes": pa.binary()})
```
not sure yet how hard it is to support this though.
Changing the typing on our side would create concerning breaking changes, that's why it would be awesome if it could work using these types | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 78 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Cool thanks ! Too bad the Arrow binary type doesn't seem to be supported in `arrow_io.ArrowFeatherDataset` :/ We would also need it to support Arrow struct type. Indeed images in `datasets` are represented using an Arrow type
```python
pa.struct({"path": pa.string(), "bytes": pa.binary()})
```
not sure yet how hard it is to support this though.
Changing the typing on our side would create concerning breaking changes, that's why it would be awesome if it could work using these types | [
-0.22203543782234192,
-0.3213922381401062,
-0.18058297038078308,
0.3587227463722229,
0.23031316697597504,
0.08110857754945755,
0.14607404172420502,
0.6311078667640686,
-0.2608279585838318,
-0.05396699905395508,
-0.17374618351459503,
0.5902265310287476,
-0.04628640413284302,
-0.13949131965637207,
0.08993944525718689,
-0.11478914320468903,
0.021588951349258423,
0.003686949610710144,
-0.19792121648788452,
-0.06903795152902603,
-0.009297512471675873,
0.06394986808300018,
0.061195388436317444,
0.056627679616212845,
-0.15476161241531372,
-0.02093411795794964,
0.14773976802825928,
0.1706865131855011,
0.047577276825904846,
-0.020347286015748978,
0.1665569394826889,
0.02634090930223465,
-0.058131005614995956,
0.3648732900619507,
-0.00010367666254751384,
0.37087029218673706,
0.15378442406654358,
0.03167036920785904,
0.016442859545350075,
-0.07918471097946167,
-0.11260740458965302,
-0.08839333802461624,
-0.062032394111156464,
-0.25938060879707336,
-0.05716249346733093,
-0.23760473728179932,
0.012096971273422241,
-0.24032483994960785,
0.342069149017334,
0.3653757572174072,
0.23078244924545288,
0.36182332038879395,
0.22565554082393646,
0.2670234739780426,
0.364117294549942,
-0.06607407331466675,
-0.2532801032066345,
0.14236395061016083,
-0.07549278438091278,
0.10327216982841492,
0.014731727540493011,
0.1736336052417755,
-0.04240827262401581,
0.14278914034366608,
0.19507038593292236,
0.016664328053593636,
-0.2319740653038025,
-0.3724823594093323,
-0.19661587476730347,
0.5624802708625793,
0.14114218950271606,
-0.19307810068130493,
-0.36592960357666016,
-0.11129994690418243,
-0.08218616247177124,
-0.13227765262126923,
0.11566546559333801,
-0.228860005736351,
-0.06465867161750793,
0.14130285382270813,
0.23766128718852997,
-0.0315120592713356,
-0.4131617248058319,
0.25023752450942993,
-0.0294397734105587,
0.055869895964860916,
-0.05152487754821777,
0.05433207005262375,
0.01748552918434143,
-0.005700036883354187,
0.3577667474746704,
-0.07776731252670288,
0.2082393765449524,
-0.02857634425163269,
-0.2791855037212372,
-0.1549701988697052,
0.012410108000040054,
-0.27189040184020996,
0.04862397164106369,
-0.0549016147851944,
0.4651879072189331,
0.3486005663871765,
-0.16976895928382874,
0.17457003891468048,
-0.34635716676712036,
-0.3985978960990906,
-0.17007800936698914,
-0.2502818703651428,
0.2488383799791336,
-0.2599278390407562,
-0.14380180835723877,
0.007686786353588104,
-0.2252374291419983,
-0.1286286860704422,
-0.21664215624332428,
-0.31001222133636475,
0.19101756811141968,
0.08929845690727234,
-0.39429834485054016,
-0.02882258966565132,
0.053052373230457306,
-0.08656103909015656,
0.08436516672372818,
0.01652200147509575,
0.09760826081037521,
0.1984991729259491,
0.18839673697948456,
-0.093475341796875,
-0.15324558317661285,
-0.117169588804245,
-0.09529124945402145,
-0.1167023628950119,
0.045446235686540604,
-0.04082557559013367,
-0.12919877469539642,
-0.09423868358135223,
0.06960806250572205,
-0.031597867608070374,
0.12515920400619507,
0.4313327670097351,
0.30810457468032837,
-0.20159874856472015,
0.028564147651195526,
-0.01398087665438652,
-0.37154528498649597,
-0.24214909970760345,
0.1326761245727539,
0.3513665795326233,
-0.23210465908050537,
0.02750394493341446,
-0.3935260772705078,
-0.3669135570526123,
-0.16764779388904572,
0.17399223148822784,
-0.08263608813285828,
-0.34793123602867126,
-0.2658444344997406,
0.3861238658428192,
-0.011355161666870117,
-0.10352975875139236,
0.03927212208509445,
-0.34812188148498535,
-0.41382479667663574,
-0.386826753616333,
0.14324431121349335,
-0.0031513720750808716,
-0.5670711994171143,
0.1266658753156662,
-0.0036828613374382257,
-0.01780277118086815,
0.08836046606302261,
0.2704562842845917,
-0.20263932645320892,
0.1264440417289734,
-0.08077233284711838,
0.1161237508058548,
0.9173239469528198,
-0.23977994918823242,
-0.202907532453537,
0.16479310393333435,
-0.06779520958662033,
0.13615387678146362,
0.015360131859779358,
0.15429231524467468,
0.029639286920428276,
-0.19686610996723175,
0.14574357867240906,
0.3382686376571655,
-0.09219667315483093,
-0.0440497100353241,
-0.2568773031234741,
-0.22889266908168793,
-0.00032493844628334045,
0.18839505314826965,
-0.3059484660625458,
-0.31633260846138,
0.06644029170274734,
-0.23587121069431305,
0.14210911095142365,
-0.1545008271932602,
0.012347140349447727,
0.05075258016586304,
0.3201228976249695,
0.23225267231464386,
-0.041743386536836624,
-0.14431041479110718,
-0.275057852268219,
0.21586203575134277,
0.1779746264219284,
0.008676886558532715,
0.14005663990974426,
-0.1637464165687561,
0.18592095375061035,
0.002773646265268326,
0.11850261688232422,
0.15274246037006378,
0.1996990293264389,
-0.14179153740406036,
0.0803040862083435,
0.12512609362602234,
-0.4292661249637604,
-0.013032210990786552,
-0.6291943788528442,
0.04384858161211014,
0.09620967507362366,
0.28224918246269226,
0.22010613977909088,
-0.09284524619579315,
-0.0841386541724205,
0.17768271267414093,
-0.4964276850223541,
-0.2889513373374939,
-0.07974577695131302,
0.3098558485507965,
-0.16987064480781555,
-0.017816513776779175,
0.11216636002063751,
0.6323482990264893,
0.0899030864238739,
0.06403708457946777,
-0.05452994257211685,
0.12246985733509064,
-0.11973820626735687,
0.038564056158065796,
-0.03342343121767044,
0.5485450029373169,
0.23574896156787872,
0.10236898809671402,
0.03697817027568817,
-0.1397036463022232,
0.07069307565689087,
0.19992151856422424,
-0.025865551084280014,
0.06302601099014282,
-0.01058637723326683,
-0.2646762430667877,
0.22005869448184967,
0.015495723113417625,
-0.46044105291366577,
0.3869754672050476,
0.7600764036178589,
0.14295430481433868,
-0.012877427041530609,
0.24452060461044312,
-0.08218774944543839,
-0.033429138362407684,
0.1699160933494568,
0.2751418948173523,
0.44707661867141724,
0.2738445997238159,
0.10410930961370468,
-0.20634306967258453,
-0.14382655918598175,
-0.20762673020362854,
0.30817052721977234,
-0.05293528735637665,
0.4618682563304901,
-0.0551433190703392,
-0.0025848266668617725,
0.13347190618515015,
-0.2402237355709076,
-0.4046727120876312,
-0.04937247931957245,
0.15772759914398193,
-0.1817084103822708,
-0.01657506451010704,
-0.18739721179008484,
-0.3202503025531769,
-0.11775432527065277,
0.16889001429080963,
-0.11492691934108734,
-0.20572593808174133,
0.006163561716675758,
0.16937053203582764,
-0.004088325425982475,
-0.04033845663070679,
-0.14985445141792297,
0.20829744637012482,
0.3898572027683258,
-0.3650464117527008,
-0.30201393365859985,
0.11445659399032593,
-0.2423287034034729,
0.16050414741039276,
0.4427751302719116,
-0.07532479614019394,
0.29877689480781555,
0.10038475692272186,
0.123491570353508,
-0.3102451264858246,
-0.4636989235877991,
0.12313149869441986,
-0.4786243438720703,
0.20999298989772797,
0.12370565533638,
0.2940969467163086,
-0.2074621319770813,
-0.0398176871240139,
0.2737363576889038,
-0.06934070587158203,
-0.11523576080799103,
-0.027472615242004395,
-0.038364164531230927,
-0.038802824914455414,
0.0038984231650829315,
-0.17736640572547913,
-0.12256034463644028,
-0.481611430644989,
0.2945960462093353,
0.033115167170763016,
0.2456815540790558,
0.059436120092868805,
0.22136430442333221,
0.49740204215049744,
0.12820276618003845,
0.20486605167388916,
-0.013813573867082596,
-0.5147473216056824,
0.4257729649543762,
-0.18872690200805664,
-0.330170214176178,
-0.07033436000347137,
0.12695233523845673,
0.30251121520996094,
0.2784188389778137,
-0.43378907442092896,
-0.4396607279777527,
-0.2430947870016098,
0.33932098746299744,
-0.07811073958873749,
-0.0996430516242981,
0.09792328625917435,
0.0005665994249284267,
-0.17177936434745789,
-0.19703352451324463,
0.39573076367378235,
-0.05052650719881058,
-0.05623622238636017,
0.04065486788749695,
0.40535083413124084,
0.18915247917175293,
0.3192608058452606,
0.6445072889328003,
0.15645261108875275,
-0.40392163395881653,
0.13817469775676727,
-0.21278850734233856,
0.025274064391851425,
-0.20493969321250916,
-0.07424980401992798,
0.13065165281295776,
-0.08633847534656525,
0.3426564335823059,
0.2322346568107605,
-0.07172136008739471,
0.030202291905879974,
0.02602500468492508,
0.18931543827056885,
-0.0067140646278858185,
-0.22925421595573425,
0.479997843503952,
-0.28634214401245117,
0.07840356230735779,
-0.10729889571666718,
-0.1331419199705124,
-0.07400128245353699,
-0.18906092643737793,
0.26013150811195374,
0.2577853202819824,
0.2609868347644806,
-0.03106348030269146,
-0.03019322268664837,
0.07131192833185196,
-0.391444593667984,
0.3249622583389282,
0.10406719148159027,
-0.031638965010643005,
0.016476895660161972,
-0.17791971564292908,
0.050023362040519714,
-0.016087453812360764,
0.4088958501815796,
-0.27649417519569397,
-0.3185657262802124,
0.14208179712295532,
-0.08275747299194336,
-0.4650637209415436,
0.11405351758003235,
-0.18251557648181915,
0.08096952736377716,
0.0874275267124176,
0.31614789366722107,
-0.2414763867855072,
-0.6037124991416931,
-0.007881205528974533,
-0.024453055113554,
0.027516182512044907,
0.0827978253364563,
-0.08893557637929916,
-0.013142682611942291,
-0.09482123702764511,
-0.18868935108184814,
-0.11585261672735214,
-0.062323879450559616,
-0.21072864532470703,
-0.15465854108333588,
-0.2994844615459442,
-0.07010960578918457,
0.25980550050735474,
0.07651644945144653,
0.05975044518709183,
0.026001734659075737,
-0.07017775624990463,
-0.0017631202936172485,
0.0651540756225586,
0.5630602240562439,
0.2815546989440918,
0.07090821117162704,
-0.5534967184066772,
-0.25742191076278687,
0.17587725818157196,
0.04332054406404495,
0.21805281937122345,
-0.14964646100997925,
0.1156974583864212,
-0.3743078112602234,
0.15904267132282257,
-0.03988868370652199,
0.29626893997192383,
0.3051154315471649,
0.1534477323293686,
-0.1253979355096817,
-0.39595216512680054,
0.4430001974105835,
0.13556025922298431,
0.11654533445835114,
0.6048917174339294,
0.2477712333202362,
-0.2691519856452942,
0.2870873808860779,
0.3817130923271179,
0.8590393662452698,
-0.1484130471944809,
0.359138548374176,
0.49837246537208557,
0.18816347420215607,
0.43795278668403625,
-0.2628757953643799,
-0.022749334573745728,
-0.08350066840648651,
-0.20362085103988647,
-0.04685550928115845,
0.005189284682273865,
0.03126852959394455,
0.03611180931329727,
-0.039797402918338776,
-0.10643146932125092,
0.32733404636383057,
0.08546166867017746,
-0.103834368288517,
0.29070815443992615,
-0.12405721098184586,
-0.22016030550003052,
0.014495667070150375,
0.2248643934726715,
0.011728998273611069,
-0.2127602994441986,
-0.0058151716366410255,
-0.33152103424072266,
-0.5412828326225281,
0.29337066411972046,
0.014447025954723358,
-0.1690090298652649,
-0.5124909281730652,
0.2813739776611328,
-0.21213671565055847,
-0.3759104013442993,
0.26616179943084717,
0.3103049695491791,
0.11194078624248505,
-0.23004566133022308,
-0.2848975956439972,
-0.11316736042499542,
0.22341316938400269,
-0.08079864829778671,
0.07472054660320282,
-0.4166874587535858,
0.5918135046958923,
0.025459066033363342,
0.12556380033493042,
0.048636529594659805,
0.044500503689050674,
-0.282575398683548,
-0.01926255226135254,
-0.02610650658607483,
0.05029962584376335,
-0.20112662017345428,
-0.3658044934272766,
-0.02412048727273941,
-0.5608084797859192,
0.09986352920532227,
0.21823075413703918,
0.0043893903493881226,
0.1267755776643753,
0.02937477082014084,
0.21929800510406494,
-0.11106979101896286,
0.1341402679681778,
-0.06845303624868393,
-0.08294766396284103,
-0.03387077525258064,
0.12313596159219742,
-0.11632543802261353,
-0.19058556854724884,
-0.14481711387634277,
0.35811421275138855,
0.23508334159851074,
-0.1945905089378357,
0.11883387714624405,
0.021155592054128647,
0.13255666196346283,
-0.11444561928510666,
0.05609486997127533,
0.017314165830612183,
-0.0028919652104377747,
-0.25963515043258667,
0.00831727683544159,
-0.342911958694458,
0.4069244861602783,
-0.04539437219500542,
0.2924995720386505,
-0.5727921724319458,
0.033368442207574844,
-0.06966663897037506,
-0.19008313119411469,
-0.41297006607055664,
0.2660447955131531,
0.3463608920574188,
0.018760323524475098,
0.30462363362312317,
0.08784599602222443,
0.3243660032749176,
0.0998137891292572,
0.16328033804893494,
0.2388673722743988,
-0.3925544023513794,
-0.29925355315208435,
-0.06863290816545486,
0.0920933336019516,
0.029081763699650764,
-0.3314761817455292,
0.17833000421524048,
-0.14768078923225403,
-0.2617618441581726,
-0.21594500541687012,
-0.0006578080356121063,
-0.19068807363510132,
-0.25249147415161133,
-0.10454957187175751,
0.16423462331295013,
0.17757079005241394,
0.10372906923294067,
0.013554578647017479,
0.003813832998275757,
0.40642738342285156,
-0.05372083559632301,
0.18520089983940125,
-0.07210015505552292,
-0.19776687026023865,
0.07237493991851807,
0.2872099280357361,
0.08697865903377533,
-0.06536149978637695,
0.2335699200630188,
0.009617753326892853,
-0.0767330750823021,
0.08530699461698532,
0.2901560068130493,
0.47987255454063416,
-0.21564766764640808,
0.02256898395717144,
0.11749545484781265,
0.25557011365890503,
0.08720510452985764,
0.05531686916947365,
0.21639232337474823,
-0.03295556455850601,
0.13375899195671082,
0.1520836055278778,
0.0017713047564029694,
0.4152970016002655,
-0.2033996731042862,
-0.19412559270858765,
-0.03204869106411934,
-0.3916725516319275,
0.12356331944465637,
0.07971371710300446,
0.09953534603118896,
-0.03463936969637871,
0.11574356257915497,
0.01719195768237114,
0.18780651688575745,
0.4183036684989929,
0.08917228132486343,
0.32234257459640503,
0.20394939184188843,
-0.050512250512838364,
0.06516007333993912,
-0.13625726103782654,
-0.1019020825624466,
0.030364125967025757,
-0.07454535365104675,
0.4398946166038513,
0.18707707524299622,
0.5015891790390015,
0.22858555614948273,
-0.3490864932537079,
0.19684769213199615,
0.19568917155265808,
-0.09477370232343674,
-0.07095840573310852,
-0.21806100010871887,
0.04063967615365982,
-0.04702018201351166,
-0.060025766491889954,
-0.07193250954151154,
-0.1265074759721756,
-0.08379790186882019,
0.3194838762283325,
0.29751747846603394,
-0.014734428375959396,
0.005666738376021385,
0.010885380208492279,
0.4124492108821869,
0.027841705828905106,
0.15292607247829437,
0.11489605903625488,
-0.15265661478042603,
-0.20621049404144287,
0.05611381679773331,
0.25276872515678406,
0.06382825970649719,
0.0003876481205224991,
0.2215588390827179,
-0.17532920837402344,
-0.07493144273757935,
0.05902983248233795,
0.05985603109002113,
0.05327477306127548,
-0.06019003316760063,
0.25340309739112854,
0.18753962218761444,
-0.1812726855278015,
-0.017635546624660492,
-0.23164664208889008,
0.026052212342619896,
-0.3541056513786316,
-0.025568261742591858,
0.12217725068330765,
-0.18175648152828217,
-0.14883989095687866,
-0.10831410437822342,
-0.12376055866479874,
-0.03010043501853943,
0.498982697725296,
-0.1284654587507248,
0.054521188139915466,
0.1548949033021927,
0.12366098165512085,
-0.018292710185050964,
0.4088671803474426,
0.02228330820798874,
0.2961576581001282,
0.007105918601155281,
-0.17339995503425598,
-0.262565940618515,
-0.02416195720434189,
-0.027312126010656357,
0.1615620106458664,
-0.05575830489397049,
0.347696989774704,
0.23755547404289246,
0.126318097114563,
0.26878565549850464,
-0.7283560633659363,
0.21571055054664612,
0.18918916583061218,
-0.36118242144584656,
0.11475129425525665,
-0.4212372303009033,
0.07420548796653748,
0.049166806042194366,
-0.27738773822784424,
0.07419968396425247,
-0.08554033190011978,
0.11883208900690079,
-0.2748205065727234,
0.1183423101902008,
0.2189561128616333,
-0.07251255214214325,
0.5189085006713867,
-0.05896022170782089,
-0.0013857260346412659,
-0.10210888087749481,
-0.2196110337972641,
-0.16798004508018494,
0.006498645059764385,
-0.3349596858024597,
0.42409902811050415,
-0.04533402994275093,
0.3974854052066803,
-0.06942056119441986,
-0.6156221032142639,
-0.06457097083330154,
0.009949462488293648,
-0.08511229604482651,
-0.19558407366275787,
-0.12378687411546707,
0.09730390459299088,
-0.061197396367788315,
0.0489824041724205,
-0.10155944526195526,
0.5064033269882202,
-0.04817740619182587,
0.03009006939828396,
-0.3344539701938629,
-0.2853524684906006,
0.4637298882007599,
-0.3165813088417053,
-0.09153518080711365,
0.2648966610431671,
-0.029133036732673645,
0.2125556468963623,
0.31233131885528564,
-0.5268785357475281,
-0.25156667828559875,
0.3988397419452667,
-0.07966427505016327,
-0.23192471265792847,
0.37112319469451904,
0.3266042470932007,
0.031639326363801956,
-0.0937710553407669,
0.268541544675827,
-0.150723397731781,
-0.1824072152376175,
-0.12159691751003265,
-0.25339633226394653
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | If the ArrowFeatherDataset doesn't yet support it, I guess our hands are a bit tied at the moment.
IIUC, in my [latest PoC notebook](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb), you wanted to see each entry in the feather file to be represented like so?
```
pa.struct({"path": pa.string(), "bytes": pa.binary()})
```
In that case, `pa.binary()` isn't yet supported. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 52 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
If the ArrowFeatherDataset doesn't yet support it, I guess our hands are a bit tied at the moment.
IIUC, in my [latest PoC notebook](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb), you wanted to see each entry in the feather file to be represented like so?
```
pa.struct({"path": pa.string(), "bytes": pa.binary()})
```
In that case, `pa.binary()` isn't yet supported. | [
-0.2572590708732605,
-0.2702956199645996,
-0.19007010757923126,
0.3072047531604767,
0.25379329919815063,
0.10088399797677994,
0.10707797110080719,
0.6265484690666199,
-0.3587113618850708,
-0.042664989829063416,
-0.206526517868042,
0.5051928758621216,
0.01807660423219204,
-0.1313142329454422,
0.12939757108688354,
-0.07655851542949677,
0.006349928677082062,
0.045292917639017105,
-0.19968369603157043,
-0.000049736350774765015,
-0.05919554457068443,
0.1465175747871399,
0.04436925798654556,
0.1148722916841507,
-0.09342022985219955,
-0.0830431580543518,
0.040523260831832886,
0.19532957673072815,
0.06825941801071167,
-0.07103529572486877,
0.15036287903785706,
0.09796638786792755,
-0.07911113649606705,
0.265364408493042,
-0.00010101959924213588,
0.339657187461853,
0.03461456671357155,
0.009008048102259636,
0.03982468321919441,
-0.011168941855430603,
-0.12175058573484421,
-0.1598840057849884,
-0.09196007996797562,
-0.3048062324523926,
-0.08383245021104813,
-0.08090481162071228,
0.026342932134866714,
-0.19876891374588013,
0.2906714677810669,
0.44864147901535034,
0.24824827909469604,
0.4107825458049774,
0.1676807999610901,
0.2679121196269989,
0.39890238642692566,
-0.036905914545059204,
-0.281685471534729,
0.19439372420310974,
-0.08100908994674683,
0.02105095051229,
0.016604207456111908,
0.038231439888477325,
-0.04701908305287361,
0.1317530870437622,
0.17600411176681519,
0.08215004950761795,
-0.16229218244552612,
-0.3384239375591278,
-0.20663267374038696,
0.53169846534729,
0.07265734672546387,
-0.2157837152481079,
-0.3383001685142517,
-0.06936528533697128,
-0.05533699691295624,
-0.2927356958389282,
0.04517241194844246,
-0.19332516193389893,
0.03969965875148773,
0.19402869045734406,
0.25532266497612,
0.0772363618016243,
-0.3884184956550598,
0.22272613644599915,
-0.10250800102949142,
0.0425894595682621,
-0.06001667678356171,
0.024322547018527985,
0.027889972552657127,
0.03811843693256378,
0.3286958336830139,
-0.03544562682509422,
0.20734097063541412,
-0.0551563985645771,
-0.2494688183069229,
-0.2071167528629303,
0.08852145820856094,
-0.22281843423843384,
0.053107090294361115,
-0.15733373165130615,
0.4695138931274414,
0.30415961146354675,
-0.07256937772035599,
0.199843168258667,
-0.3739702105522156,
-0.3804461658000946,
-0.20011016726493835,
-0.2763080298900604,
0.33800530433654785,
-0.2744017541408539,
-0.1770869493484497,
-0.0198771134018898,
-0.17814961075782776,
-0.024725083261728287,
-0.2804946005344391,
-0.2864297926425934,
0.1332979053258896,
0.04914109781384468,
-0.5129578709602356,
0.02263406105339527,
0.02947370707988739,
-0.0794181227684021,
0.06643074005842209,
0.026311222463846207,
0.13966012001037598,
0.2912553548812866,
0.16222526133060455,
-0.15123729407787323,
-0.24524658918380737,
-0.18721331655979156,
-0.15220095217227936,
-0.09198109805583954,
-0.0012319311499595642,
0.04563724249601364,
-0.14550010859966278,
-0.07415638864040375,
0.10970325022935867,
-0.018833041191101074,
0.16266927123069763,
0.3655047118663788,
0.3255590796470642,
-0.20714114606380463,
-0.09837784618139267,
-0.016492698341608047,
-0.30236682295799255,
-0.26391199231147766,
0.1218557059764862,
0.34726977348327637,
-0.2630588114261627,
0.011463817209005356,
-0.3527509868144989,
-0.4086305797100067,
-0.09048396348953247,
0.1745399683713913,
-0.11427149921655655,
-0.33114272356033325,
-0.23055550456047058,
0.39526161551475525,
0.011751972138881683,
-0.15037307143211365,
-0.04917430132627487,
-0.36906200647354126,
-0.46736833453178406,
-0.3982132375240326,
0.1823931783437729,
-0.025098636746406555,
-0.4612042009830475,
0.18298625946044922,
0.08716800808906555,
-0.0506720133125782,
0.1456243246793747,
0.28146401047706604,
-0.20208021998405457,
0.2004660964012146,
-0.10132008045911789,
0.09611403942108154,
0.8226087689399719,
-0.20475269854068756,
-0.20669014751911163,
0.24802985787391663,
-0.10256291925907135,
0.10256532579660416,
0.02432064712047577,
0.13066866993904114,
0.01867101341485977,
-0.22110389173030853,
0.15538644790649414,
0.2773591876029968,
-0.10693898797035217,
0.045622341334819794,
-0.2718053162097931,
-0.16771848499774933,
-0.04741267114877701,
0.169146329164505,
-0.3629738688468933,
-0.3016461133956909,
0.05667542666196823,
-0.08500433713197708,
0.25623658299446106,
-0.17815303802490234,
0.0006825639866292477,
0.08918203413486481,
0.2836979925632477,
0.2311161309480667,
-0.1618710607290268,
-0.14927199482917786,
-0.24222686886787415,
0.19499874114990234,
0.20168288052082062,
0.01405104249715805,
0.2575807571411133,
-0.2119446098804474,
0.16052165627479553,
0.011815624311566353,
0.12860365211963654,
0.08006994426250458,
0.20754720270633698,
-0.07340657711029053,
0.13981349766254425,
0.055605869740247726,
-0.3295426666736603,
0.019799599424004555,
-0.6245412230491638,
0.005807843524962664,
0.03135136142373085,
0.2848648130893707,
0.16360560059547424,
-0.08502331376075745,
-0.020901435986161232,
0.2482982873916626,
-0.44824227690696716,
-0.2921898663043976,
-0.028831619769334793,
0.33409443497657776,
-0.11015594750642776,
-0.023651808500289917,
0.13087624311447144,
0.6905933618545532,
0.1875247359275818,
0.16600701212882996,
-0.02915571816265583,
0.11840412020683289,
-0.1529308259487152,
0.0385904535651207,
-0.07560824602842331,
0.6515975594520569,
0.17277945578098297,
0.06303201615810394,
0.052156493067741394,
-0.17697268724441528,
0.18012401461601257,
0.19690366089344025,
-0.017790120095014572,
0.0646449476480484,
0.036591485142707825,
-0.07752494513988495,
0.267089307308197,
0.018393758684396744,
-0.543047308921814,
0.44031617045402527,
0.7426396608352661,
0.12030661106109619,
-0.12153925746679306,
0.17923030257225037,
-0.053575046360492706,
-0.0739477276802063,
0.14105653762817383,
0.16513918340206146,
0.4693226218223572,
0.32797354459762573,
0.07195761799812317,
-0.19657258689403534,
-0.17327085137367249,
-0.21886008977890015,
0.24343934655189514,
-0.08390215039253235,
0.37076887488365173,
-0.0054665133357048035,
0.05500929430127144,
0.10537917166948318,
-0.2567770779132843,
-0.4520118236541748,
-0.07819156348705292,
0.23864001035690308,
-0.17341488599777222,
-0.021654469892382622,
-0.16574673354625702,
-0.30719903111457825,
-0.10421598702669144,
0.1604301780462265,
-0.10018926858901978,
-0.26938098669052124,
-0.025493398308753967,
0.27314698696136475,
-0.0018685422837734222,
-0.09586836397647858,
-0.22268278896808624,
0.1843019276857376,
0.39073315262794495,
-0.2618436813354492,
-0.266652375459671,
0.09999208897352219,
-0.24546504020690918,
0.17499180138111115,
0.41119685769081116,
0.010205147787928581,
0.3044637143611908,
0.07547750324010849,
0.11671288311481476,
-0.30135613679885864,
-0.4755307137966156,
0.1773957759141922,
-0.5274913907051086,
0.1729949414730072,
0.037884198129177094,
0.2750406265258789,
-0.18499985337257385,
-0.05039549246430397,
0.2539232671260834,
-0.10740874707698822,
-0.15417727828025818,
0.025914356112480164,
-0.027442293241620064,
-0.0683697834610939,
-0.011654499918222427,
-0.24981126189231873,
-0.10769744962453842,
-0.4828348457813263,
0.291228711605072,
-0.00419752299785614,
0.22854197025299072,
-0.005301901139318943,
0.1409447342157364,
0.5100198984146118,
0.17258507013320923,
0.14833082258701324,
-0.07725361734628677,
-0.5858591794967651,
0.47639772295951843,
-0.22246544063091278,
-0.3558041751384735,
-0.039277009665966034,
0.14405560493469238,
0.2611232101917267,
0.202153742313385,
-0.48345357179641724,
-0.4952767491340637,
-0.2322142869234085,
0.36320436000823975,
-0.0294593945145607,
-0.14290598034858704,
0.16435348987579346,
-0.04915052279829979,
-0.1577327996492386,
-0.17083343863487244,
0.31433695554733276,
-0.06569599360227585,
0.05334371328353882,
0.06454984843730927,
0.31203868985176086,
0.2611536383628845,
0.20774100720882416,
0.6535916328430176,
0.1665840446949005,
-0.34120190143585205,
0.08579777181148529,
-0.33137214183807373,
0.04200424998998642,
-0.19919618964195251,
0.008476004004478455,
0.1265077441930771,
-0.15604496002197266,
0.281686007976532,
0.36731815338134766,
-0.04606598988175392,
0.08646663278341293,
0.07028893381357193,
0.2744561433792114,
0.028425179421901703,
-0.2753185033798218,
0.47476083040237427,
-0.19759714603424072,
0.14499130845069885,
-0.12390176951885223,
-0.11243873834609985,
-0.019235674291849136,
-0.23198020458221436,
0.2282250076532364,
0.18711403012275696,
0.24621829390525818,
-0.04123027250170708,
0.0718221366405487,
0.1162150651216507,
-0.5742072463035583,
0.25869742035865784,
0.07808124274015427,
-0.08459068089723587,
0.024989794939756393,
-0.21967872977256775,
0.03792201727628708,
-0.0706668272614479,
0.37588268518447876,
-0.17882408201694489,
-0.27976417541503906,
0.2123386710882187,
-0.14957541227340698,
-0.3208032548427582,
0.06047985330224037,
-0.27632975578308105,
0.04372676461935043,
0.2523265779018402,
0.41247037053108215,
-0.23206371068954468,
-0.5312525033950806,
0.047148652374744415,
-0.0625830665230751,
0.01033509150147438,
0.06388988345861435,
-0.13463318347930908,
-0.06520764529705048,
-0.09078943729400635,
-0.11583652347326279,
-0.13751506805419922,
-0.0501202717423439,
-0.2142248898744583,
-0.13732902705669403,
-0.2024034559726715,
-0.09657113999128342,
0.2999716103076935,
0.1901988387107849,
0.004971573129296303,
0.04195166751742363,
-0.08400474488735199,
0.024586614221334457,
0.02707792818546295,
0.5978868007659912,
0.3463320732116699,
0.1772923767566681,
-0.5831658840179443,
-0.17809653282165527,
0.11989964544773102,
0.054353829473257065,
0.14425858855247498,
-0.07889179140329361,
0.1336745023727417,
-0.40248236060142517,
0.16455651819705963,
-0.004543987102806568,
0.38159993290901184,
0.2873557507991791,
0.12297128885984421,
-0.14252105355262756,
-0.3483317494392395,
0.4396412670612335,
0.1300310641527176,
0.14202234148979187,
0.4372978210449219,
0.21648210287094116,
-0.2613269090652466,
0.25440388917922974,
0.35761758685112,
0.8755044341087341,
-0.18550445139408112,
0.38363251090049744,
0.517160177230835,
0.14674951136112213,
0.4592392146587372,
-0.4243417978286743,
0.024552015587687492,
-0.13747884333133698,
-0.24299775063991547,
-0.026477107778191566,
0.06229683384299278,
0.002122599631547928,
0.060302674770355225,
-0.06256876140832901,
-0.05247149616479874,
0.4938361644744873,
0.13693559169769287,
-0.09203974902629852,
0.24061763286590576,
0.021145539358258247,
-0.22278597950935364,
-0.033274322748184204,
0.23397472500801086,
-0.02681085467338562,
-0.26718589663505554,
0.03015274927020073,
-0.2902662754058838,
-0.4729604125022888,
0.36008787155151367,
0.07413212954998016,
-0.13423632085323334,
-0.4562191069126129,
0.26349741220474243,
-0.24438536167144775,
-0.3928743600845337,
0.14257657527923584,
0.31699925661087036,
0.006679713726043701,
-0.2140079289674759,
-0.2370041310787201,
-0.11213596165180206,
0.24034717679023743,
-0.14166799187660217,
0.041004009544849396,
-0.3424566686153412,
0.4497404396533966,
0.006591852754354477,
0.14656314253807068,
0.06415945291519165,
-0.006931018084287643,
-0.3364650011062622,
0.01801016926765442,
-0.01023709774017334,
0.07018236815929413,
-0.19768716394901276,
-0.2789619266986847,
0.08012308180332184,
-0.569358766078949,
0.026381779462099075,
0.22283075749874115,
0.016704458743333817,
0.08000458031892776,
-0.035191379487514496,
0.14189885556697845,
-0.10918775945901871,
0.07359878718852997,
-0.05718117207288742,
-0.08126917481422424,
-0.10674139857292175,
0.05896930396556854,
-0.08582612127065659,
-0.16769962012767792,
-0.17067405581474304,
0.3862394690513611,
0.09774340689182281,
-0.07161706686019897,
0.06239800900220871,
0.08689075708389282,
0.1534428745508194,
-0.0009194567683152854,
0.07213211059570312,
0.004049886018037796,
-0.018558025360107422,
-0.23493847250938416,
-0.02965543046593666,
-0.41527217626571655,
0.21910333633422852,
0.02245679497718811,
0.28479787707328796,
-0.4493553042411804,
0.048099346458911896,
-0.19299960136413574,
-0.1321377009153366,
-0.4303628206253052,
0.11916688084602356,
0.2977343499660492,
0.04229007288813591,
0.3444627523422241,
0.07297448813915253,
0.2283795028924942,
0.14313293993473053,
0.2021338790655136,
0.29026615619659424,
-0.34752601385116577,
-0.3161718547344208,
-0.09023351967334747,
0.08892229199409485,
0.06172841414809227,
-0.2682678997516632,
0.21793843805789948,
0.0669599175453186,
-0.25224974751472473,
-0.31729933619499207,
0.05390118435025215,
-0.17129158973693848,
-0.233861044049263,
-0.14887000620365143,
0.1903117299079895,
0.23635971546173096,
0.07684998959302902,
-0.06282868981361389,
0.07865376770496368,
0.35835158824920654,
0.005150326061993837,
0.22643084824085236,
-0.14299364387989044,
-0.1809387058019638,
0.14599162340164185,
0.23602300882339478,
0.07893859595060349,
-0.07785888016223907,
0.23627018928527832,
0.020588211715221405,
-0.07312428951263428,
0.11256927251815796,
0.24790063500404358,
0.45985281467437744,
-0.12080339342355728,
0.013004658743739128,
0.0742579847574234,
0.28227895498275757,
0.03022383525967598,
0.08875168859958649,
0.2361229807138443,
-0.03381204232573509,
0.15663348138332367,
0.14365291595458984,
-0.02125145122408867,
0.39640650153160095,
-0.11509788036346436,
-0.21705079078674316,
-0.08590001612901688,
-0.3762547969818115,
0.061643172055482864,
0.11167748272418976,
0.10575476288795471,
-0.03713001683354378,
0.19430424273014069,
0.010562922805547714,
0.21242493391036987,
0.4707578420639038,
0.16421732306480408,
0.2207336723804474,
0.15307000279426575,
0.04080317169427872,
-0.034701280295848846,
-0.13844622671604156,
-0.20594818890094757,
-0.00596870481967926,
-0.07850396633148193,
0.45961636304855347,
0.1962094008922577,
0.32490313053131104,
0.17659910023212433,
-0.2830529510974884,
0.13822007179260254,
0.21162930130958557,
-0.11940968781709671,
-0.04630325362086296,
-0.1906200796365738,
0.0717400386929512,
-0.00030784308910369873,
-0.0046924687922000885,
-0.03918863460421562,
-0.18529610335826874,
-0.0833151638507843,
0.28319430351257324,
0.2649131417274475,
-0.03845558315515518,
0.019908921793103218,
-0.02141786366701126,
0.407235711812973,
0.003827247768640518,
0.1478910744190216,
0.05183611065149307,
-0.1813349425792694,
-0.25979548692703247,
-0.009280415251851082,
0.2442043423652649,
-0.003809954971075058,
0.0679917111992836,
0.27977535128593445,
-0.2513933479785919,
-0.014974690973758698,
0.08722299337387085,
0.03151772916316986,
0.04751523211598396,
0.08199763298034668,
0.22407014667987823,
0.18936039507389069,
-0.17620539665222168,
0.03939373046159744,
-0.21598197519779205,
-0.004228945821523666,
-0.3118181526660919,
0.01380227506160736,
0.24403080344200134,
-0.22176799178123474,
-0.1051238626241684,
-0.07934542745351791,
-0.12071257829666138,
0.01914244145154953,
0.4502793252468109,
-0.10481932014226913,
0.0730414167046547,
0.23768216371536255,
0.13749998807907104,
-0.039324380457401276,
0.3857254385948181,
0.07449281215667725,
0.20816868543624878,
-0.017768267542123795,
-0.20312851667404175,
-0.26023775339126587,
-0.0005078166723251343,
-0.027882132679224014,
0.12203583121299744,
-0.09954504668712616,
0.31983038783073425,
0.21881800889968872,
0.18083636462688446,
0.15374264121055603,
-0.7156352400779724,
0.16354842483997345,
0.16422152519226074,
-0.3596169650554657,
0.14191555976867676,
-0.5200660824775696,
0.03708895668387413,
0.04271053522825241,
-0.2109222412109375,
0.04182855039834976,
-0.03283976390957832,
0.15409865975379944,
-0.3310393691062927,
0.1462690234184265,
0.16783997416496277,
-0.001438729465007782,
0.3889722228050232,
-0.04161616414785385,
0.04367198422551155,
-0.14044874906539917,
-0.1315653920173645,
-0.19611510634422302,
0.039314497262239456,
-0.32799339294433594,
0.4272623360157013,
-0.09805122017860413,
0.33709731698036194,
-0.04638931155204773,
-0.6166099905967712,
-0.06321030855178833,
0.028769388794898987,
-0.028882166370749474,
-0.25819361209869385,
-0.0042644040659070015,
0.0852399468421936,
-0.04834635555744171,
0.05301254615187645,
-0.11870581656694412,
0.5532628893852234,
0.0373813658952713,
-0.019730767235159874,
-0.32077792286872864,
-0.23866184055805206,
0.33300286531448364,
-0.42930591106414795,
-0.06992815434932709,
0.25844043493270874,
0.006694100797176361,
0.10185005515813828,
0.3013424575328827,
-0.49829962849617004,
-0.18792247772216797,
0.4226655066013336,
-0.14054790139198303,
-0.3102474510669708,
0.3568636178970337,
0.23508614301681519,
0.0001704283058643341,
-0.07161766290664673,
0.32591015100479126,
-0.0894368588924408,
-0.23870228230953217,
-0.09697802364826202,
-0.2896230220794678
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | > IIUC, in my [latest PoC notebook](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb), you wanted to see each entry in the feather file to be represented like so?
>
> pa.struct({"path": pa.string(), "bytes": pa.binary()})
Yea because that's the data format we're using. If we were to use base64, then we would have to process the full dataset to convert it, which can take some time. Converting to TFRecords would be simpler than converting to base64 in Feather files.
Maybe it would take too much time to be worth exploring, but according to https://github.com/tensorflow/io/issues/1361#issuecomment-819029002 it's possible to add support for binary type in ArrowFeatherDataset. What do you think ? Any other alternative in mind ? | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 108 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
> IIUC, in my [latest PoC notebook](https://gist.github.com/sayakpaul/f7d5cc312cd01cb31098fad3fd9c6b59#file-feather-tf-poc-bytes-ipynb), you wanted to see each entry in the feather file to be represented like so?
>
> pa.struct({"path": pa.string(), "bytes": pa.binary()})
Yea because that's the data format we're using. If we were to use base64, then we would have to process the full dataset to convert it, which can take some time. Converting to TFRecords would be simpler than converting to base64 in Feather files.
Maybe it would take too much time to be worth exploring, but according to https://github.com/tensorflow/io/issues/1361#issuecomment-819029002 it's possible to add support for binary type in ArrowFeatherDataset. What do you think ? Any other alternative in mind ? | [
-0.25264889001846313,
-0.32756614685058594,
-0.18621915578842163,
0.32281363010406494,
0.25000661611557007,
0.11986025422811508,
0.11895257979631424,
0.6613963842391968,
-0.35216501355171204,
-0.03672116994857788,
-0.2022198736667633,
0.4895215630531311,
0.030787024646997452,
-0.15543398261070251,
0.132911816239357,
-0.08819958567619324,
0.007908016443252563,
0.06870405375957489,
-0.20253905653953552,
-0.02545556053519249,
-0.08185231685638428,
0.15081298351287842,
0.05044601857662201,
0.02953067421913147,
-0.13183541595935822,
-0.01085221953690052,
0.0600733608007431,
0.23523151874542236,
0.06497811526060104,
-0.03954645246267319,
0.16346128284931183,
0.042932018637657166,
-0.0542038194835186,
0.32910507917404175,
-0.00010023415234172717,
0.34447020292282104,
0.07053712010383606,
0.03302875906229019,
-0.006142417434602976,
-0.013628870248794556,
-0.09516102075576782,
-0.11830050498247147,
-0.13283343613147736,
-0.3063819706439972,
-0.10609627515077591,
-0.12570102512836456,
-0.008648866787552834,
-0.18635869026184082,
0.34935808181762695,
0.4167689383029938,
0.25428545475006104,
0.3720342516899109,
0.17936167120933533,
0.2410316914319992,
0.3402715027332306,
-0.07583901286125183,
-0.24833756685256958,
0.1609230488538742,
-0.11863173544406891,
0.05676649510860443,
0.021398313343524933,
0.0897836983203888,
-0.03534402698278427,
0.14487195014953613,
0.1510867476463318,
0.037453543394804,
-0.13974398374557495,
-0.3367130160331726,
-0.15696772933006287,
0.5831083655357361,
0.05338519811630249,
-0.13847333192825317,
-0.36271604895591736,
-0.06013934314250946,
-0.09003079682588577,
-0.26436856389045715,
0.0729946717619896,
-0.17989499866962433,
-0.008177081122994423,
0.19201163947582245,
0.13930384814739227,
0.06321310997009277,
-0.3759220838546753,
0.20363764464855194,
-0.13307663798332214,
0.031860772520303726,
-0.06657596677541733,
0.029811784625053406,
0.06295472383499146,
0.011931683868169785,
0.3036807179450989,
-0.05706992745399475,
0.22752301394939423,
-0.06583407521247864,
-0.2673695981502533,
-0.21772772073745728,
0.08404775708913803,
-0.13931846618652344,
0.04274768382310867,
-0.1419306844472885,
0.43899428844451904,
0.32890868186950684,
-0.06088440120220184,
0.17390021681785583,
-0.39301934838294983,
-0.3913465142250061,
-0.24752169847488403,
-0.3148270845413208,
0.3423025608062744,
-0.29015910625457764,
-0.17957431077957153,
0.010814456269145012,
-0.1599658876657486,
-0.027004625648260117,
-0.27788788080215454,
-0.3444080054759979,
0.13627196848392487,
0.038765136152505875,
-0.45950350165367126,
0.03782264143228531,
0.04311186820268631,
-0.0897613912820816,
0.08056733757257462,
0.06325703859329224,
0.09657040238380432,
0.27610790729522705,
0.12396013736724854,
-0.17407801747322083,
-0.23916374146938324,
-0.19628427922725677,
-0.15578940510749817,
-0.10296066105365753,
-0.010035090148448944,
-0.0015898589044809341,
-0.12303091585636139,
-0.10188011825084686,
0.13667085766792297,
0.006059653125703335,
0.11826729774475098,
0.3717783987522125,
0.3367851674556732,
-0.22858084738254547,
-0.06755562871694565,
0.012289538979530334,
-0.2666223347187042,
-0.24075540900230408,
0.10107381641864777,
0.3768174648284912,
-0.2544739842414856,
0.006441768258810043,
-0.36686447262763977,
-0.3973209857940674,
-0.1331142634153366,
0.19298724830150604,
-0.13256357610225677,
-0.33454620838165283,
-0.1828266680240631,
0.41061320900917053,
0.021896764636039734,
-0.13283765316009521,
-0.06968285888433456,
-0.34925156831741333,
-0.47975954413414,
-0.3791373074054718,
0.19733268022537231,
-0.012473851442337036,
-0.4635644555091858,
0.19370612502098083,
0.044538259506225586,
-0.015506092458963394,
0.14151129126548767,
0.27958059310913086,
-0.21719814836978912,
0.15179277956485748,
-0.08739446103572845,
0.11987084150314331,
0.8079825043678284,
-0.18820950388908386,
-0.2273424118757248,
0.2713339030742645,
-0.11193343997001648,
0.07667707651853561,
0.02966207265853882,
0.1508818417787552,
-0.019576039165258408,
-0.24541978538036346,
0.16642329096794128,
0.3066173195838928,
-0.10424210131168365,
0.07494319975376129,
-0.2743765115737915,
-0.22060765326023102,
-0.03130076080560684,
0.18473660945892334,
-0.3525773882865906,
-0.30138757824897766,
0.07710888981819153,
-0.0761273205280304,
0.20911052823066711,
-0.23536598682403564,
-0.027088919654488564,
0.09166869521141052,
0.26306816935539246,
0.25085359811782837,
-0.135846808552742,
-0.1378951072692871,
-0.27863961458206177,
0.196941077709198,
0.24992573261260986,
0.022880755364894867,
0.24845366179943085,
-0.19111883640289307,
0.17891889810562134,
-0.02340184710919857,
0.13729430735111237,
0.08680866658687592,
0.21603314578533173,
-0.0729081779718399,
0.14092350006103516,
0.014820028096437454,
-0.37521329522132874,
-0.01612977869808674,
-0.5885602831840515,
0.008173700422048569,
0.041271649301052094,
0.2722046375274658,
0.1685568392276764,
-0.07812312245368958,
-0.02770066261291504,
0.20316630601882935,
-0.4245602488517761,
-0.31157174706459045,
-0.038104794919490814,
0.32947275042533875,
-0.13722944259643555,
-0.030243292450904846,
0.14957614243030548,
0.7018476128578186,
0.16298459470272064,
0.17518748342990875,
-0.017979325726628304,
0.12033145129680634,
-0.17057740688323975,
0.03993196040391922,
-0.05622682720422745,
0.5767056941986084,
0.213751420378685,
0.05007299780845642,
0.0937824696302414,
-0.1787438541650772,
0.1988748013973236,
0.15368430316448212,
0.01709170825779438,
0.069050133228302,
0.05012723058462143,
-0.13007579743862152,
0.2633266746997833,
0.06451889127492905,
-0.4952448308467865,
0.41901567578315735,
0.7937183380126953,
0.08401328325271606,
-0.09993445128202438,
0.19554483890533447,
-0.05845310539007187,
-0.141352117061615,
0.13270634412765503,
0.19009359180927277,
0.4850943088531494,
0.3047393262386322,
0.08417772501707077,
-0.18542009592056274,
-0.17412815988063812,
-0.2458222359418869,
0.2501429617404938,
-0.07120418548583984,
0.3871890604496002,
-0.04853326082229614,
0.03539218008518219,
0.11536622047424316,
-0.25642094016075134,
-0.4057820737361908,
-0.018673215061426163,
0.2320808321237564,
-0.17680992186069489,
-0.015908345580101013,
-0.1762913316488266,
-0.24123957753181458,
-0.06685283780097961,
0.14200226962566376,
-0.0993766188621521,
-0.2714006006717682,
-0.04005308449268341,
0.26891010999679565,
-0.002225857228040695,
-0.11531443148851395,
-0.22640271484851837,
0.18672484159469604,
0.40785422921180725,
-0.262448251247406,
-0.27618786692619324,
0.11293858289718628,
-0.2551823854446411,
0.1768781989812851,
0.38820338249206543,
-0.04939016327261925,
0.3019201457500458,
0.03409060835838318,
0.07938948273658752,
-0.2826762795448303,
-0.5074613690376282,
0.19232143461704254,
-0.5306458473205566,
0.23027557134628296,
0.07700701802968979,
0.3104054927825928,
-0.21050314605236053,
-0.02112346887588501,
0.26513242721557617,
-0.10321226716041565,
-0.11009005457162857,
0.03613341227173805,
-0.0027292435988783836,
-0.041588276624679565,
-0.022562965750694275,
-0.24030137062072754,
-0.06837909668684006,
-0.4540245234966278,
0.24579618871212006,
-0.0022805482149124146,
0.21363846957683563,
0.04360454902052879,
0.15382519364356995,
0.49302148818969727,
0.11737952381372452,
0.1749366670846939,
-0.13459385931491852,
-0.6149402856826782,
0.4652809202671051,
-0.22031156718730927,
-0.34931057691574097,
-0.06606002897024155,
0.16574931144714355,
0.3078034222126007,
0.22907590866088867,
-0.4736480712890625,
-0.5515182614326477,
-0.2808767855167389,
0.40018174052238464,
-0.07223214954137802,
-0.11552177369594574,
0.15437433123588562,
-0.08605002611875534,
-0.18311205506324768,
-0.1839073896408081,
0.35968145728111267,
-0.0754287913441658,
0.029119282960891724,
0.043608468025922775,
0.30959248542785645,
0.23016363382339478,
0.2307402789592743,
0.6386330723762512,
0.17261801660060883,
-0.3766821622848511,
0.09931628406047821,
-0.28843459486961365,
0.053014010190963745,
-0.21185344457626343,
0.024223754182457924,
0.14340077340602875,
-0.1092441976070404,
0.26947784423828125,
0.39761483669281006,
-0.04359130561351776,
0.08291366696357727,
0.029001057147979736,
0.22991496324539185,
0.012223273515701294,
-0.2656501531600952,
0.4488895535469055,
-0.11662428081035614,
0.13715921342372894,
-0.0886567085981369,
-0.05354625731706619,
-0.03397613763809204,
-0.23950791358947754,
0.24108219146728516,
0.19879873096942902,
0.23661530017852783,
-0.02907128445804119,
-0.01945955492556095,
0.11479562520980835,
-0.5366678833961487,
0.2870210111141205,
0.06465592980384827,
-0.026681818068027496,
0.018582474440336227,
-0.21710601449012756,
0.04306969419121742,
-0.06336294114589691,
0.3514636158943176,
-0.20144106447696686,
-0.238749697804451,
0.13243825733661652,
-0.19923774898052216,
-0.29039520025253296,
0.08274076879024506,
-0.23262181878089905,
0.11749587208032608,
0.2449314147233963,
0.37815776467323303,
-0.27493056654930115,
-0.5546948909759521,
0.08856495469808578,
-0.04518412798643112,
0.04036921635270119,
0.033344052731990814,
-0.13772913813591003,
-0.09087646007537842,
-0.057479240000247955,
-0.15428844094276428,
-0.1339569240808487,
-0.038258228451013565,
-0.2184818536043167,
-0.1385021209716797,
-0.20692449808120728,
-0.10237663239240646,
0.3158873915672302,
0.19937102496623993,
-0.030989184975624084,
0.05976240336894989,
-0.08256153762340546,
0.025880660861730576,
0.007186122238636017,
0.5168279409408569,
0.30908530950546265,
0.14601056277751923,
-0.5641886591911316,
-0.16769233345985413,
0.15358468890190125,
0.006431132555007935,
0.171885684132576,
-0.11084067821502686,
0.08092442899942398,
-0.3443668782711029,
0.2152431756258011,
-0.05350586399435997,
0.35821494460105896,
0.30995866656303406,
0.12913969159126282,
-0.17139863967895508,
-0.38341253995895386,
0.4209538400173187,
0.1341819167137146,
0.15746520459651947,
0.3839264214038849,
0.24102507531642914,
-0.22910118103027344,
0.22808557748794556,
0.3580774962902069,
0.8520846962928772,
-0.19274453818798065,
0.3720804750919342,
0.5246642231941223,
0.2526014447212219,
0.4769488275051117,
-0.40990543365478516,
0.04291519895195961,
-0.1291116327047348,
-0.2488054782152176,
-0.02623538300395012,
0.07589507102966309,
-0.0018590763211250305,
0.01630531996488571,
-0.006474904716014862,
-0.028084319084882736,
0.4827662706375122,
0.18081212043762207,
-0.0781722143292427,
0.27773621678352356,
-0.02470545656979084,
-0.2178250253200531,
-0.0841994509100914,
0.2551065981388092,
0.003914345055818558,
-0.23795229196548462,
0.023627478629350662,
-0.29987770318984985,
-0.4885110557079315,
0.30098140239715576,
0.08973106741905212,
-0.1309816688299179,
-0.44564923644065857,
0.2723264694213867,
-0.2839508652687073,
-0.37048161029815674,
0.11754904687404633,
0.29630210995674133,
0.08155220001935959,
-0.15278248488903046,
-0.26885873079299927,
-0.08675217628479004,
0.16694340109825134,
-0.12970155477523804,
0.07168800383806229,
-0.3622734248638153,
0.4604671895503998,
0.010036483407020569,
0.1576622724533081,
0.08145362138748169,
0.00125051848590374,
-0.3072854280471802,
0.002810463309288025,
-0.0367511510848999,
0.020090192556381226,
-0.20737914741039276,
-0.29383987188339233,
0.03897951543331146,
-0.5653570890426636,
0.046396177262067795,
0.2279360592365265,
-0.004000991582870483,
0.06435855478048325,
-0.0019910186529159546,
0.18629664182662964,
-0.13992221653461456,
0.057477764785289764,
-0.029069527983665466,
-0.09539137035608292,
-0.07971587777137756,
0.07324650883674622,
-0.076408751308918,
-0.1648583710193634,
-0.15838855504989624,
0.31067442893981934,
0.10530578345060349,
-0.11565662175416946,
0.09025443345308304,
0.1109706461429596,
0.1661447435617447,
0.0038779645692557096,
0.06468244642019272,
-0.021021775901317596,
0.0024301856756210327,
-0.22057540714740753,
-0.0140647292137146,
-0.38715970516204834,
0.21436046063899994,
-0.002677135169506073,
0.25219857692718506,
-0.4037705659866333,
0.02024969272315502,
-0.17994381487369537,
-0.16174139082431793,
-0.442985475063324,
0.15338534116744995,
0.28469517827033997,
0.06952233612537384,
0.3378860652446747,
0.01975877396762371,
0.25587475299835205,
0.1410125344991684,
0.21535338461399078,
0.2730989456176758,
-0.3761030435562134,
-0.32656678557395935,
-0.0649244636297226,
0.08659517765045166,
0.08120252192020416,
-0.32406166195869446,
0.19798879325389862,
0.0026958435773849487,
-0.27159518003463745,
-0.3036153316497803,
0.07603362202644348,
-0.14995625615119934,
-0.2055659145116806,
-0.15228286385536194,
0.12803837656974792,
0.21930566430091858,
0.09275144338607788,
-0.025508791208267212,
0.04310687258839607,
0.3805413246154785,
-0.03975171595811844,
0.24838776886463165,
-0.12730735540390015,
-0.18948820233345032,
0.14292949438095093,
0.22989588975906372,
0.09997648745775223,
-0.08575958758592606,
0.23798486590385437,
-0.011314690113067627,
-0.04951201751828194,
0.13539911806583405,
0.2588019073009491,
0.4607310891151428,
-0.17235985398292542,
-0.013532263226807117,
0.08480803668498993,
0.2885774075984955,
0.059065207839012146,
0.07708533853292465,
0.2588805556297302,
-0.033325206488370895,
0.16077743470668793,
0.16550150513648987,
-0.0019009262323379517,
0.38326528668403625,
-0.12866298854351044,
-0.22997727990150452,
-0.04381265118718147,
-0.3295438885688782,
0.07189375162124634,
0.1747364103794098,
0.08716857433319092,
-0.0391966812312603,
0.16310811042785645,
0.02096748910844326,
0.16875754296779633,
0.4947132468223572,
0.060073502361774445,
0.2409229278564453,
0.10395009815692902,
0.0063966140151023865,
-0.0026976987719535828,
-0.1295548677444458,
-0.12661218643188477,
0.0595826655626297,
-0.056121110916137695,
0.45985114574432373,
0.15521398186683655,
0.36160480976104736,
0.17834749817848206,
-0.24626821279525757,
0.0843849778175354,
0.23129068315029144,
-0.1445997953414917,
-0.06070074811577797,
-0.1464950442314148,
0.06309286504983902,
-0.04928258806467056,
0.048227567225694656,
-0.11039501428604126,
-0.14865320920944214,
-0.1344963163137436,
0.3045791983604431,
0.2742384672164917,
-0.0476929247379303,
0.017849436029791832,
-0.009083151817321777,
0.3695567548274994,
-0.009112376719713211,
0.18247030675411224,
0.0930650532245636,
-0.18231678009033203,
-0.21873456239700317,
-0.03821558505296707,
0.23771634697914124,
0.00036283954977989197,
0.07973481714725494,
0.2593361735343933,
-0.1980999857187271,
-0.014911459758877754,
0.06894658505916595,
0.03663672134280205,
0.04994320869445801,
0.09501630067825317,
0.25393977761268616,
0.1940881758928299,
-0.19313114881515503,
0.020320599898695946,
-0.2619970142841339,
0.0016879942268133163,
-0.35379526019096375,
-0.042452193796634674,
0.2248798906803131,
-0.19112741947174072,
-0.15753164887428284,
-0.0589589849114418,
-0.11189036816358566,
0.0050898464396595955,
0.43358439207077026,
-0.10868436843156815,
0.0556107759475708,
0.1799362748861313,
0.14246106147766113,
-0.04535062238574028,
0.4163309633731842,
0.06142965331673622,
0.17827966809272766,
-0.0263085775077343,
-0.2098785936832428,
-0.2723854184150696,
-0.014303483068943024,
-0.02615918591618538,
0.1845632940530777,
-0.10561976581811905,
0.3283218443393707,
0.21020859479904175,
0.1788426637649536,
0.17580267786979675,
-0.724055290222168,
0.19647789001464844,
0.20305432379245758,
-0.28973278403282166,
0.1715410053730011,
-0.5197586417198181,
0.05361205339431763,
0.047749295830726624,
-0.24038231372833252,
0.09713097661733627,
-0.037795159965753555,
0.15400004386901855,
-0.3345637917518616,
0.15357398986816406,
0.17456327378749847,
-0.06649967283010483,
0.40324336290359497,
-0.02215694449841976,
0.039372432976961136,
-0.15218499302864075,
-0.17779672145843506,
-0.21980807185173035,
0.0833013653755188,
-0.3094576597213745,
0.39976537227630615,
-0.09615756571292877,
0.34306061267852783,
-0.010894164443016052,
-0.5574872493743896,
-0.07635551691055298,
0.03454599902033806,
-0.07203137874603271,
-0.21755589544773102,
-0.031968310475349426,
0.060788318514823914,
-0.07265202701091766,
0.0565892793238163,
-0.07070201635360718,
0.5401335954666138,
0.008485466241836548,
0.007308788597583771,
-0.32473254203796387,
-0.2829347848892212,
0.4057087302207947,
-0.45271041989326477,
-0.06317087262868881,
0.20756523311138153,
0.026126161217689514,
0.1713419407606125,
0.2640124559402466,
-0.49619731307029724,
-0.1433020830154419,
0.39543965458869934,
-0.09765692800283432,
-0.29235097765922546,
0.3833645284175873,
0.22401531040668488,
-0.016224239021539688,
-0.07857471704483032,
0.2633208930492401,
-0.07353662699460983,
-0.26529327034950256,
-0.0810362696647644,
-0.2642408013343811
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | > Maybe it would take too much time to be worth exploring, but according to https://github.com/tensorflow/io/issues/1361#issuecomment-819029002 it's possible to add support for binary type in ArrowFeatherDataset.
Should be possible as per the comment but there hasn't been any progress and it's been more than a year.
> If we were to use base64, then we would have to process the full dataset to convert it, which can take some time.
I don't understand this. I would think TFRecords would also need something similar but I need the context you're coming from.
> What do you think ? Any other alternative in mind ?
TFRecords since the TensorFlow ecosystem has developed good support for it over the years. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 117 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
> Maybe it would take too much time to be worth exploring, but according to https://github.com/tensorflow/io/issues/1361#issuecomment-819029002 it's possible to add support for binary type in ArrowFeatherDataset.
Should be possible as per the comment but there hasn't been any progress and it's been more than a year.
> If we were to use base64, then we would have to process the full dataset to convert it, which can take some time.
I don't understand this. I would think TFRecords would also need something similar but I need the context you're coming from.
> What do you think ? Any other alternative in mind ?
TFRecords since the TensorFlow ecosystem has developed good support for it over the years. | [
-0.17058022320270538,
-0.3873800039291382,
-0.1889611780643463,
0.3548506498336792,
0.22678060829639435,
0.13572287559509277,
0.1497403383255005,
0.6562891006469727,
-0.2997130751609802,
-0.03184419870376587,
-0.14510926604270935,
0.4352554678916931,
-0.026862874627113342,
-0.2127152383327484,
0.05115699768066406,
-0.08821417391300201,
0.027396589517593384,
0.037993066012859344,
-0.14886507391929626,
-0.07688768208026886,
-0.057839855551719666,
0.09444715827703476,
0.0008557066321372986,
-0.04399020969867706,
-0.19227895140647888,
0.04106755182147026,
0.07263747602701187,
0.22132641077041626,
0.03827435150742531,
0.005058555863797665,
0.1500927060842514,
-0.058745283633470535,
-0.05234663933515549,
0.3321199417114258,
-0.0001042319490807131,
0.3341061472892761,
0.08841069787740707,
0.045272164046764374,
-0.08642998337745667,
-0.05333787202835083,
-0.15195325016975403,
-0.07572995126247406,
-0.1027369573712349,
-0.2840926945209503,
-0.07496567070484161,
-0.13507726788520813,
0.004557276144623756,
-0.2543567419052124,
0.37809455394744873,
0.38264578580856323,
0.21916687488555908,
0.37066322565078735,
0.19723273813724518,
0.21104329824447632,
0.2754334807395935,
-0.11367633938789368,
-0.2779083847999573,
0.12991629540920258,
-0.04245781898498535,
0.16498145461082458,
0.05999695509672165,
0.1261303871870041,
-0.011119546368718147,
0.1753578633069992,
0.15681709349155426,
-0.01549553219228983,
-0.16103041172027588,
-0.3883683979511261,
-0.14609912037849426,
0.5756486058235168,
0.14241759479045868,
-0.07822640985250473,
-0.36823195219039917,
-0.13496392965316772,
-0.07264336198568344,
-0.1950361579656601,
0.09801148623228073,
-0.23682469129562378,
-0.023230552673339844,
0.22813718020915985,
0.1416972279548645,
-0.013808867894113064,
-0.3653576076030731,
0.20171362161636353,
-0.10643619298934937,
0.14540180563926697,
-0.09107962995767593,
0.06009397655725479,
0.03402673453092575,
0.06148506700992584,
0.30481478571891785,
-0.11504201591014862,
0.26094290614128113,
-0.00468343123793602,
-0.33436810970306396,
-0.2393161952495575,
0.021411824971437454,
-0.14845025539398193,
0.00460529699921608,
-0.07318991422653198,
0.4184289574623108,
0.33989739418029785,
-0.18648064136505127,
0.1619684249162674,
-0.41761913895606995,
-0.345196008682251,
-0.19964909553527832,
-0.34319719672203064,
0.2620941400527954,
-0.34123414754867554,
-0.1329595148563385,
0.040573205798864365,
-0.19497178494930267,
-0.1538015455007553,
-0.271590918302536,
-0.27717018127441406,
0.1639622449874878,
0.03897080197930336,
-0.4452655017375946,
0.03069256618618965,
0.030037395656108856,
-0.14617392420768738,
0.09806357324123383,
0.0323636569082737,
0.038716960698366165,
0.21760717034339905,
0.1302376538515091,
-0.10447855293750763,
-0.19846829771995544,
-0.13472409546375275,
-0.09514149278402328,
-0.1632501631975174,
0.058278199285268784,
-0.029037969186902046,
-0.14703819155693054,
-0.12721708416938782,
0.08334866911172867,
0.024964019656181335,
0.09528592228889465,
0.4098668098449707,
0.31052231788635254,
-0.23166461288928986,
-0.0059347376227378845,
-0.002154562622308731,
-0.3550814092159271,
-0.16204114258289337,
0.18902720510959625,
0.36545705795288086,
-0.263438880443573,
0.03722717612981796,
-0.48589444160461426,
-0.3902015686035156,
-0.18622326850891113,
0.1785285621881485,
-0.07264979183673859,
-0.3341008722782135,
-0.18221744894981384,
0.3963284194469452,
0.026956364512443542,
-0.14977943897247314,
0.01006367802619934,
-0.4091123342514038,
-0.4706963300704956,
-0.39011532068252563,
0.10445158928632736,
-0.06163303554058075,
-0.5510196685791016,
0.15632320940494537,
-0.024664461612701416,
0.022729959338903427,
0.12274365872144699,
0.2935411334037781,
-0.24549204111099243,
0.10761755704879761,
-0.07795626670122147,
0.1150149554014206,
0.9241618514060974,
-0.18657001852989197,
-0.12959866225719452,
0.23694248497486115,
-0.15117225050926208,
0.16444414854049683,
0.03753888979554176,
0.15283416211605072,
0.0028819763101637363,
-0.2845759987831116,
0.23378555476665497,
0.28823333978652954,
-0.06871598213911057,
-0.026220975443720818,
-0.26832619309425354,
-0.2276490330696106,
-0.047604404389858246,
0.18502141535282135,
-0.3415547311306,
-0.2894863784313202,
0.08960656076669693,
-0.10053417086601257,
0.12125161290168762,
-0.20041173696517944,
-0.0012114513665437698,
0.05465424060821533,
0.2334790676832199,
0.31671375036239624,
-0.05377178266644478,
-0.13072526454925537,
-0.26709261536598206,
0.2512664198875427,
0.23003384470939636,
0.013915468007326126,
0.28915244340896606,
-0.14743436872959137,
0.192941814661026,
-0.03912266343832016,
0.16240637004375458,
0.1596422791481018,
0.1704162210226059,
-0.11051316559314728,
0.1121697723865509,
0.04358051344752312,
-0.48630455136299133,
-0.05589434504508972,
-0.6875614523887634,
0.012604596093297005,
0.08849279582500458,
0.33041250705718994,
0.20907175540924072,
-0.042266588658094406,
-0.0725095123052597,
0.17495518922805786,
-0.4716431796550751,
-0.29695117473602295,
-0.1086769551038742,
0.28171077370643616,
-0.15064921975135803,
-0.06835545599460602,
0.14476162195205688,
0.7298439741134644,
0.137800931930542,
0.15786251425743103,
-0.0082340557128191,
0.14205648005008698,
-0.1508675217628479,
-0.0025169067084789276,
-0.02152518928050995,
0.4908468723297119,
0.2584342658519745,
0.09439276158809662,
0.06050296872854233,
-0.18639259040355682,
0.12836545705795288,
0.14701808989048004,
-0.010472014546394348,
0.11869214475154877,
0.01130710169672966,
-0.253200501203537,
0.23658083379268646,
0.09996283799409866,
-0.4978189468383789,
0.403713196516037,
0.8258198499679565,
0.06317217648029327,
-0.07994801551103592,
0.27415791153907776,
-0.04753923416137695,
-0.12845700979232788,
0.1319018304347992,
0.21829594671726227,
0.5103594064712524,
0.24633455276489258,
0.12250486761331558,
-0.2227974236011505,
-0.19254352152347565,
-0.2581869065761566,
0.29040637612342834,
-0.0414775088429451,
0.4544646441936493,
-0.08257352560758591,
-0.025468656793236732,
0.2354121059179306,
-0.18197426199913025,
-0.41228020191192627,
-0.042364701628685,
0.13555721938610077,
-0.23621293902397156,
-0.021324707195162773,
-0.2072259485721588,
-0.19256463646888733,
-0.1451357901096344,
0.14830362796783447,
-0.08588901162147522,
-0.21875642240047455,
0.023122169077396393,
0.18532420694828033,
0.03620712086558342,
-0.12194044142961502,
-0.15296109020709991,
0.2916857600212097,
0.4199472665786743,
-0.2901165187358856,
-0.3146522641181946,
0.11731584370136261,
-0.23812136054039001,
0.16887512803077698,
0.4393065273761749,
-0.041743263602256775,
0.3170904815196991,
0.026887239888310432,
0.06874628365039825,
-0.23557049036026,
-0.5175331234931946,
0.12125609070062637,
-0.5360602736473083,
0.22414417564868927,
0.07080627232789993,
0.375669002532959,
-0.2697320580482483,
-0.03916294500231743,
0.19624431431293488,
0.018734676763415337,
-0.03854970633983612,
-0.06900909543037415,
-0.011262286454439163,
-0.05325957387685776,
-0.017859354615211487,
-0.2072531282901764,
-0.07502321898937225,
-0.44048964977264404,
0.21448850631713867,
0.02788912132382393,
0.20733791589736938,
0.05308057367801666,
0.19382241368293762,
0.5490076541900635,
0.13056039810180664,
0.2723979949951172,
-0.08419088274240494,
-0.5377317070960999,
0.4225939214229584,
-0.2316446751356125,
-0.3364976644515991,
-0.08101290464401245,
0.20490287244319916,
0.2541974186897278,
0.23351186513900757,
-0.4636703133583069,
-0.4871773421764374,
-0.30900123715400696,
0.3096578121185303,
-0.10580925643444061,
-0.07156497240066528,
0.1529216319322586,
-0.0733724981546402,
-0.16265948116779327,
-0.19535714387893677,
0.42756110429763794,
-0.10509278625249863,
-0.02215149626135826,
0.052646536380052567,
0.4020931124687195,
0.2037695050239563,
0.31279516220092773,
0.667441189289093,
0.13108347356319427,
-0.3883093595504761,
0.09000732749700546,
-0.14485710859298706,
0.01587088406085968,
-0.26495620608329773,
-0.010868947021663189,
0.22283247113227844,
-0.10858571529388428,
0.3104732036590576,
0.37720227241516113,
-0.08540763705968857,
0.12174062430858612,
0.030023984611034393,
0.2067088931798935,
-0.01697470247745514,
-0.22133012115955353,
0.47325485944747925,
-0.13589048385620117,
0.10192295163869858,
-0.06469227373600006,
-0.0636240616440773,
-0.0275370292365551,
-0.17031461000442505,
0.24171707034111023,
0.30347907543182373,
0.2994691729545593,
-0.04979996755719185,
-0.11783520877361298,
0.06820939481258392,
-0.3366525173187256,
0.33336853981018066,
0.13515980541706085,
-0.03564660996198654,
-0.007665902376174927,
-0.1761797070503235,
0.09065511077642441,
0.04474419355392456,
0.3172333240509033,
-0.18073025345802307,
-0.31173479557037354,
0.082558274269104,
-0.18061290681362152,
-0.33615681529045105,
0.12113367021083832,
-0.20415543019771576,
0.13976657390594482,
0.13021516799926758,
0.34013503789901733,
-0.28834497928619385,
-0.62800133228302,
0.012797956354916096,
0.007658286020159721,
0.03745951130986214,
0.06443902850151062,
-0.07007598131895065,
0.036427728831768036,
-0.1349622756242752,
-0.15939220786094666,
-0.1673731505870819,
-0.045412275940179825,
-0.2858157753944397,
-0.1698983609676361,
-0.2485380321741104,
-0.05673857033252716,
0.33431529998779297,
0.08709022402763367,
-0.06566966325044632,
0.10942447930574417,
-0.11706395447254181,
-0.03583351522684097,
-0.025729112327098846,
0.49307963252067566,
0.27196186780929565,
0.08862878382205963,
-0.5056702494621277,
-0.11900676041841507,
0.24083060026168823,
-0.0009789466857910156,
0.2530707120895386,
-0.14074072241783142,
0.06702709197998047,
-0.31696635484695435,
0.2224397361278534,
-0.07431039959192276,
0.3040245473384857,
0.33503779768943787,
0.13590852916240692,
-0.2273140847682953,
-0.47750481963157654,
0.40542179346084595,
0.14811816811561584,
0.15107788145542145,
0.5541854500770569,
0.36739951372146606,
-0.1872260570526123,
0.24822847545146942,
0.4041140675544739,
0.8624924421310425,
-0.16591458022594452,
0.32322248816490173,
0.5117069482803345,
0.25233179330825806,
0.5005349516868591,
-0.3289809226989746,
-0.004321916028857231,
-0.08357704430818558,
-0.2390090376138687,
-0.04731316491961479,
0.03897063061594963,
0.06805938482284546,
0.01476261019706726,
0.022464867681264877,
-0.05106727406382561,
0.4248533248901367,
0.11002868413925171,
-0.05010707676410675,
0.25111886858940125,
-0.09866757690906525,
-0.2091977447271347,
-0.05818524211645126,
0.22603461146354675,
0.01171993836760521,
-0.19823268055915833,
0.016219202429056168,
-0.2974529266357422,
-0.580270528793335,
0.3086848855018616,
0.08166821300983429,
-0.2287098467350006,
-0.4412141442298889,
0.29281872510910034,
-0.24989452958106995,
-0.33569252490997314,
0.27763673663139343,
0.3158024251461029,
0.19879138469696045,
-0.1356361210346222,
-0.32979103922843933,
-0.08935025334358215,
0.14055384695529938,
-0.06595730781555176,
0.12087858468294144,
-0.40420690178871155,
0.6213189363479614,
0.0023769550025463104,
0.18656837940216064,
0.09178663045167923,
0.025749221444129944,
-0.32262754440307617,
-0.06984987109899521,
-0.027186214923858643,
-0.05155307054519653,
-0.2108449637889862,
-0.47540682554244995,
0.037552475929260254,
-0.5342666506767273,
0.1120789647102356,
0.20389777421951294,
-0.001888364553451538,
0.09959108382463455,
0.029167886823415756,
0.2361232340335846,
-0.16953513026237488,
0.06685365736484528,
-0.03846815973520279,
-0.07722270488739014,
-0.02426666021347046,
0.09733186662197113,
-0.12068819999694824,
-0.212293341755867,
-0.10156738758087158,
0.290473073720932,
0.16518935561180115,
-0.1762874573469162,
0.079413041472435,
0.06023864075541496,
0.14299388229846954,
-0.07063797116279602,
0.0813673660159111,
-0.004566740244626999,
0.04489041119813919,
-0.24504059553146362,
-0.006504002958536148,
-0.2630540728569031,
0.29088133573532104,
-0.07074490189552307,
0.259636253118515,
-0.44026654958724976,
0.04067164659500122,
-0.14117905497550964,
-0.2283581793308258,
-0.4108927547931671,
0.23421189188957214,
0.30526572465896606,
0.07270868122577667,
0.28236252069473267,
0.028847234323620796,
0.2792012691497803,
0.19380946457386017,
0.15514062345027924,
0.21262945234775543,
-0.4292716681957245,
-0.3109334409236908,
-0.038158200681209564,
0.10261677950620651,
0.06314621865749359,
-0.3470313251018524,
0.12332407385110855,
-0.1698516607284546,
-0.26185691356658936,
-0.24847015738487244,
0.01574639603495598,
-0.1344081610441208,
-0.20957668125629425,
-0.10986725240945816,
0.18033558130264282,
0.17984718084335327,
0.12174716591835022,
0.040700916200876236,
0.011083416640758514,
0.41896337270736694,
-0.032418884336948395,
0.1907086819410324,
-0.11330103874206543,
-0.1636769324541092,
-0.0331856943666935,
0.2829996347427368,
0.1742139607667923,
-0.10214509814977646,
0.28921473026275635,
0.025637298822402954,
-0.018251588568091393,
0.12234638631343842,
0.24412712454795837,
0.47185832262039185,
-0.23879246413707733,
0.014999182894825935,
0.1302817165851593,
0.22796763479709625,
0.15446783602237701,
0.08914609998464584,
0.26360487937927246,
-0.028297793120145798,
0.08964183926582336,
0.16027945280075073,
0.0725870430469513,
0.3753613233566284,
-0.08592118322849274,
-0.22216147184371948,
-0.0496223084628582,
-0.3254743814468384,
0.10153743624687195,
0.15907132625579834,
0.10647989809513092,
-0.04238423332571983,
0.07558954507112503,
-0.07328864932060242,
0.17104163765907288,
0.3342586159706116,
-0.012644462287425995,
0.3549158275127411,
0.10560460388660431,
-0.04644959792494774,
0.07765864580869675,
-0.12354646623134613,
-0.014471665024757385,
0.09860493242740631,
-0.08617034554481506,
0.3965573310852051,
0.19469469785690308,
0.37636134028434753,
0.15177761018276215,
-0.28850144147872925,
0.11984675377607346,
0.2470930516719818,
-0.1036820337176323,
-0.05711023136973381,
-0.1417996883392334,
0.0691341981291771,
-0.05582791566848755,
-0.0015739761292934418,
-0.1802660971879959,
-0.07107014954090118,
-0.1633099913597107,
0.32220953702926636,
0.27305418252944946,
0.0312546081840992,
-0.01934410259127617,
-0.04669104516506195,
0.3315202593803406,
0.027687545865774155,
0.15446892380714417,
0.10345872491598129,
-0.09376415610313416,
-0.18057934939861298,
-0.02939225547015667,
0.23362214863300323,
0.09059713780879974,
0.05325296148657799,
0.19540990889072418,
-0.1293202042579651,
-0.0375109426677227,
0.08843794465065002,
0.09792588651180267,
0.0008617714047431946,
0.04360748082399368,
0.29925426840782166,
0.1907215118408203,
-0.2016497105360031,
0.0049711428582668304,
-0.32561546564102173,
-0.024686288088560104,
-0.47440704703330994,
-0.06970212608575821,
0.16582240164279938,
-0.13325318694114685,
-0.16305077075958252,
-0.05823240429162979,
-0.14767006039619446,
-0.0032959366217255592,
0.40178561210632324,
-0.12580902874469757,
0.0035829804837703705,
0.15572281181812286,
0.11873149871826172,
-0.004716278985142708,
0.3448755145072937,
0.06978781521320343,
0.18762296438217163,
-0.007205001078546047,
-0.20128300786018372,
-0.2947731614112854,
0.013078667223453522,
0.06538686901330948,
0.24433577060699463,
-0.06396231800317764,
0.32985836267471313,
0.20101529359817505,
0.15215419232845306,
0.18080781400203705,
-0.8952135443687439,
0.28177446126937866,
0.16576392948627472,
-0.26117628812789917,
0.16287341713905334,
-0.46850186586380005,
0.059436894953250885,
0.0047601573169231415,
-0.24889394640922546,
0.17027489840984344,
-0.0986076146364212,
0.08808412402868271,
-0.33657801151275635,
0.16735140979290009,
0.2333742082118988,
-0.02997267246246338,
0.4704423248767853,
-0.025719868019223213,
0.029176458716392517,
-0.09157653898000717,
-0.2016104757785797,
-0.18311633169651031,
0.08632770925760269,
-0.1867683380842209,
0.4248943328857422,
-0.09842915832996368,
0.36271271109580994,
-0.09335731714963913,
-0.6035245060920715,
-0.038851138204336166,
0.058898843824863434,
-0.10789494961500168,
-0.2033298760652542,
-0.1165672168135643,
0.031194088980555534,
-0.17031681537628174,
0.09673188626766205,
0.03576653078198433,
0.5105656981468201,
0.006301186978816986,
0.03567556291818619,
-0.31918299198150635,
-0.2543743848800659,
0.45820319652557373,
-0.36962905526161194,
-0.07893155515193939,
0.2245720773935318,
-0.031095951795578003,
0.2595771551132202,
0.2939233183860779,
-0.4903530776500702,
-0.273849219083786,
0.4094414710998535,
-0.04996603727340698,
-0.21659334003925323,
0.4073464572429657,
0.3331385552883148,
-0.006165649741888046,
-0.09784941375255585,
0.17602932453155518,
-0.11989554017782211,
-0.1584581732749939,
-0.03611705079674721,
-0.26598578691482544
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | > I don't understand this. I would think TFRecords would also need something similar but I need the context you're coming from.
Users already have a copy of the dataset in Arrow format (we can change this to Feather). So to load the Arrow/feather files to a TF dataset we need TF IO or something like that. Otherwise the user has to convert all the files from Arrow to TFRecords to use TF data efficiently. But the conversion needs resources: CPU, disk, time. Converting the images to base64 require the same sort of resources.
So the issue we're trying to tackle is how to load the Arrow data in TF without having to convert anything ^^ | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 116 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
> I don't understand this. I would think TFRecords would also need something similar but I need the context you're coming from.
Users already have a copy of the dataset in Arrow format (we can change this to Feather). So to load the Arrow/feather files to a TF dataset we need TF IO or something like that. Otherwise the user has to convert all the files from Arrow to TFRecords to use TF data efficiently. But the conversion needs resources: CPU, disk, time. Converting the images to base64 require the same sort of resources.
So the issue we're trying to tackle is how to load the Arrow data in TF without having to convert anything ^^ | [
-0.11969158053398132,
-0.34964945912361145,
-0.19668905436992645,
0.4366620182991028,
0.21471460163593292,
0.18524745106697083,
0.13212405145168304,
0.6460262537002563,
-0.342017263174057,
-0.03586047887802124,
-0.22465965151786804,
0.37848100066185,
0.03197769448161125,
-0.29962384700775146,
-0.014010476879775524,
-0.1324428915977478,
0.05055374652147293,
0.07450612634420395,
-0.15802843868732452,
-0.02118019387125969,
-0.03128794580698013,
0.09073928743600845,
0.08133211731910706,
-0.039623335003852844,
-0.20048479735851288,
0.06953507661819458,
0.08533713221549988,
0.3080761432647705,
0.042989104986190796,
0.14537303149700165,
0.07194917649030685,
-0.007389567792415619,
-0.02426055073738098,
0.37637558579444885,
-0.00010938084597000852,
0.3895679712295532,
0.01690429449081421,
0.021358514204621315,
-0.05677162855863571,
-0.05153264105319977,
-0.04251765459775925,
-0.06309447437524796,
-0.1301364153623581,
-0.30387604236602783,
-0.07373986393213272,
-0.21146787703037262,
-0.01796640269458294,
-0.2897868752479553,
0.5110878348350525,
0.29155758023262024,
0.16511142253875732,
0.33172672986984253,
0.15156517922878265,
0.27342650294303894,
0.3058185577392578,
-0.07097770273685455,
-0.20862984657287598,
0.21528826653957367,
-0.006551608443260193,
0.12959566712379456,
0.05958417430520058,
0.23619307577610016,
-0.09796106070280075,
0.15469565987586975,
0.11534073203802109,
-0.00847697164863348,
-0.15605652332305908,
-0.37478819489479065,
-0.11765316873788834,
0.5106399059295654,
0.09702037274837494,
0.0034858062863349915,
-0.34505897760391235,
-0.16825082898139954,
-0.12913018465042114,
-0.13437364995479584,
0.03165128454566002,
-0.23100179433822632,
-0.06320999562740326,
0.20194245874881744,
0.03275543823838234,
-0.019409462809562683,
-0.37790051102638245,
0.17383095622062683,
-0.04569219797849655,
0.016976304352283478,
-0.06170743703842163,
0.10820604860782623,
0.06497187912464142,
0.11025445908308029,
0.31275591254234314,
-0.09142552316188812,
0.25477027893066406,
0.028481539338827133,
-0.23406879603862762,
-0.13066819310188293,
0.044040828943252563,
-0.14751774072647095,
0.04711943119764328,
0.031109372153878212,
0.43153396248817444,
0.3372856080532074,
-0.2204093337059021,
0.13235875964164734,
-0.4229886829853058,
-0.3407900333404541,
-0.2676948010921478,
-0.40541285276412964,
0.17098340392112732,
-0.28268977999687195,
-0.17690026760101318,
-0.00074724480509758,
-0.19530610740184784,
-0.20336571335792542,
-0.28387102484703064,
-0.30090978741645813,
0.25090932846069336,
-0.020795699208974838,
-0.3947168290615082,
-0.014334318228065968,
-0.020677097141742706,
-0.1630200743675232,
0.069978728890419,
0.012827180325984955,
0.02891489863395691,
0.22601622343063354,
0.22567470371723175,
-0.04388496279716492,
-0.2804984450340271,
-0.1635827124118805,
-0.0551600307226181,
-0.104840487241745,
0.07725663483142853,
0.009408144280314445,
-0.19531551003456116,
-0.11838509142398834,
0.12522847950458527,
-0.044731367379426956,
0.14064274728298187,
0.3521097004413605,
0.3868277668952942,
-0.30228763818740845,
0.053413793444633484,
-0.00632336363196373,
-0.30271369218826294,
-0.20798219740390778,
0.3328457474708557,
0.3552064895629883,
-0.2158094048500061,
0.09624502062797546,
-0.5237122774124146,
-0.30051252245903015,
-0.16790151596069336,
0.11915841698646545,
-0.11977891623973846,
-0.2626636028289795,
-0.23320546746253967,
0.3742741644382477,
0.00009980052709579468,
-0.2265167236328125,
0.045486487448215485,
-0.34846729040145874,
-0.43362289667129517,
-0.33259865641593933,
0.1826370656490326,
0.061363138258457184,
-0.5797406435012817,
0.16055849194526672,
-0.04207891970872879,
0.04947022348642349,
0.06095278263092041,
0.24580976366996765,
-0.3027856945991516,
0.22741928696632385,
-0.1289120316505432,
0.10734160244464874,
0.90874844789505,
-0.2274717539548874,
-0.05897796154022217,
0.20305903255939484,
-0.15817523002624512,
0.2539305090904236,
0.0456230565905571,
0.1751163899898529,
0.018267875537276268,
-0.2614976167678833,
0.19120800495147705,
0.3203420639038086,
-0.052909813821315765,
-0.07107521593570709,
-0.21817617118358612,
-0.24754467606544495,
-0.08342655748128891,
0.15734133124351501,
-0.30520808696746826,
-0.2184770405292511,
0.1246832087635994,
-0.17544406652450562,
0.06451303511857986,
-0.22899872064590454,
0.0034463037736713886,
0.054598014801740646,
0.17021682858467102,
0.34419989585876465,
-0.03672255575656891,
0.012680023908615112,
-0.23743858933448792,
0.27370861172676086,
0.2346668541431427,
0.001596987247467041,
0.16539305448532104,
-0.13001175224781036,
0.14289727807044983,
-0.04751722887158394,
0.13726924359798431,
0.18427658081054688,
0.13573886454105377,
-0.1427171379327774,
0.09919339418411255,
0.038773950189352036,
-0.38079559803009033,
-0.08702759444713593,
-0.6292107105255127,
0.031887978315353394,
0.015929188579320908,
0.37652575969696045,
0.2607591450214386,
0.000896817073225975,
-0.13696447014808655,
0.08175414055585861,
-0.48720112442970276,
-0.30011481046676636,
-0.11453711986541748,
0.28079649806022644,
-0.1283508837223053,
0.0252433642745018,
0.1493234932422638,
0.7140615582466125,
0.10943250358104706,
0.062015142291784286,
0.047229476273059845,
0.1128612607717514,
-0.09232181310653687,
0.0526481494307518,
-0.026031427085399628,
0.5139867663383484,
0.23449069261550903,
0.21754947304725647,
0.06539690494537354,
-0.1948142647743225,
0.07983515411615372,
0.10932271182537079,
-0.038160115480422974,
0.1367030143737793,
0.016329355537891388,
-0.20464664697647095,
0.24123258888721466,
0.0634218230843544,
-0.44414499402046204,
0.42934906482696533,
0.6926747560501099,
0.11048372089862823,
-0.21875080466270447,
0.21560436487197876,
-0.06363338977098465,
-0.12429454177618027,
0.2379530519247055,
0.1478399634361267,
0.5343037247657776,
0.27818745374679565,
0.15356218814849854,
-0.19859515130519867,
-0.08595732599496841,
-0.19511814415454865,
0.2720663547515869,
-0.016255654394626617,
0.5484322905540466,
-0.12915319204330444,
-0.1288173496723175,
0.25324106216430664,
-0.217932790517807,
-0.46930617094039917,
-0.007623849902302027,
0.052308350801467896,
-0.27438536286354065,
0.025447631254792213,
-0.07092398405075073,
-0.17713463306427002,
-0.12680752575397491,
0.07723458856344223,
-0.09003052115440369,
-0.18598391115665436,
0.02982954867184162,
0.24408669769763947,
0.06018241122364998,
-0.14242058992385864,
-0.17875179648399353,
0.2371756136417389,
0.39987170696258545,
-0.3889378309249878,
-0.31058910489082336,
0.07985634356737137,
-0.22659620642662048,
0.14376698434352875,
0.520135760307312,
0.016970086842775345,
0.2990865409374237,
-0.021168846637010574,
0.12145842611789703,
-0.2840974032878876,
-0.4690222144126892,
0.14864355325698853,
-0.49568819999694824,
0.2439580112695694,
-0.00687900185585022,
0.38372915983200073,
-0.32070934772491455,
0.046402186155319214,
0.1838836520910263,
0.09096751362085342,
-0.025540217757225037,
-0.0702153891324997,
-0.03588760644197464,
-0.007682309485971928,
0.012760672718286514,
-0.15689513087272644,
-0.03360607475042343,
-0.34241989254951477,
0.1718103289604187,
0.10755027830600739,
0.22901444137096405,
0.09933236986398697,
0.41467535495758057,
0.5272106528282166,
0.22933951020240784,
0.2744571268558502,
-0.09878022223711014,
-0.5676639676094055,
0.375724196434021,
-0.21780696511268616,
-0.32059723138809204,
-0.010114405304193497,
0.2382972687482834,
0.27703025937080383,
0.34791141748428345,
-0.48166704177856445,
-0.6373807787895203,
-0.2546410858631134,
0.2791144847869873,
-0.18253065645694733,
-0.026957789435982704,
0.11258126050233841,
-0.043186385184526443,
-0.17269150912761688,
-0.18420925736427307,
0.5446273684501648,
-0.08844432979822159,
-0.09206583350896835,
0.012634143233299255,
0.41593143343925476,
0.20819470286369324,
0.3405029773712158,
0.756420910358429,
0.0795760452747345,
-0.34032943844795227,
0.16819214820861816,
-0.17912818491458893,
0.11846154928207397,
-0.28400295972824097,
-0.0047095296904444695,
0.10390052199363708,
-0.08229818940162659,
0.26593708992004395,
0.33656221628189087,
-0.03537995368242264,
0.19606366753578186,
-0.020056266337633133,
0.21250838041305542,
-0.11890294402837753,
-0.21408967673778534,
0.48608607053756714,
-0.1879393458366394,
0.05046617239713669,
-0.04477338120341301,
-0.09556475281715393,
-0.08104892075061798,
-0.16250541806221008,
0.22985835373401642,
0.2820693254470825,
0.37659385800361633,
0.030557049438357353,
-0.0490415021777153,
0.05748777464032173,
-0.24309194087982178,
0.3727447986602783,
0.09282958507537842,
-0.06131695955991745,
0.0003065653145313263,
-0.15455889701843262,
0.1333974003791809,
-0.04285391792654991,
0.37485790252685547,
-0.09202177822589874,
-0.2899842858314514,
0.06767904758453369,
-0.15169578790664673,
-0.3434736430644989,
0.12494528293609619,
-0.13779063522815704,
0.0963018536567688,
0.0985594391822815,
0.41647374629974365,
-0.30386844277381897,
-0.644432544708252,
-0.023557770997285843,
0.012613153085112572,
-0.01006259024143219,
0.1551484763622284,
-0.13879361748695374,
-0.042326245456933975,
-0.2479509860277176,
-0.19558358192443848,
-0.14971193671226501,
-0.05600852146744728,
-0.2871336042881012,
-0.13246825337409973,
-0.26034048199653625,
0.0004264209419488907,
0.3422982692718506,
0.15162470936775208,
-0.04436296597123146,
0.08398540318012238,
-0.20279422402381897,
0.01731754280626774,
-0.05090506374835968,
0.4253232181072235,
0.33164021372795105,
0.08982720971107483,
-0.49274879693984985,
-0.17209762334823608,
0.3009278476238251,
0.02592679113149643,
0.3142085671424866,
-0.1301169991493225,
-0.05978851765394211,
-0.2631615102291107,
0.204884871840477,
-0.061672065407037735,
0.34314048290252686,
0.2708596885204315,
0.08748997002840042,
-0.1732288897037506,
-0.4544476568698883,
0.43938758969306946,
0.23741714656352997,
0.17369462549686432,
0.4933841824531555,
0.40681546926498413,
-0.18546169996261597,
0.245256707072258,
0.4582708477973938,
0.9511393904685974,
-0.2622912526130676,
0.38214975595474243,
0.5609006881713867,
0.2885439395904541,
0.48690685629844666,
-0.3525034785270691,
-0.08805356919765472,
-0.015573792159557343,
-0.2174033373594284,
-0.12147504836320877,
0.060658346861600876,
0.10383588075637817,
0.06383933126926422,
0.03942471370100975,
-0.06959574669599533,
0.35795044898986816,
0.08478453755378723,
-0.008665589615702629,
0.156957745552063,
-0.08286355435848236,
-0.2305721938610077,
-0.03264476731419563,
0.20762646198272705,
0.018785398453474045,
-0.20566725730895996,
-0.028299128636717796,
-0.29390811920166016,
-0.7043396830558777,
0.2739904522895813,
0.241719052195549,
-0.18179237842559814,
-0.4873983561992645,
0.2935435175895691,
-0.37587475776672363,
-0.39003485441207886,
0.14314371347427368,
0.3515656590461731,
0.09028558433055878,
-0.2911483943462372,
-0.32150182127952576,
-0.10657821595668793,
0.15220454335212708,
-0.13680505752563477,
0.08906140923500061,
-0.40480419993400574,
0.6002684235572815,
0.04945068806409836,
0.2251904010772705,
0.11163224279880524,
-0.012883893214166164,
-0.33276593685150146,
-0.05258559435606003,
-0.06563469767570496,
0.01906193420290947,
-0.16845299303531647,
-0.5437827110290527,
0.061570413410663605,
-0.5612959861755371,
0.1909581869840622,
0.15914539992809296,
-0.03323051333427429,
0.0642557367682457,
0.00815264880657196,
0.24720102548599243,
-0.18070575594902039,
0.14791837334632874,
-0.007718242704868317,
-0.12696006894111633,
-0.08193758130073547,
0.10678346455097198,
-0.17121267318725586,
-0.1292704939842224,
-0.049967266619205475,
0.2825411558151245,
0.15433603525161743,
-0.29997530579566956,
0.03785816207528114,
0.0931168794631958,
0.2134113758802414,
-0.11792325228452682,
0.021174464374780655,
0.02648886851966381,
0.023420214653015137,
-0.19366103410720825,
-0.09997231513261795,
-0.2813009023666382,
0.36380624771118164,
-0.05023234710097313,
0.25230181217193604,
-0.4238194227218628,
-0.06539227068424225,
-0.11601359397172928,
-0.21739614009857178,
-0.35788077116012573,
0.28179386258125305,
0.34353819489479065,
0.10600274056196213,
0.3260463774204254,
0.05329878628253937,
0.24255023896694183,
0.1753706932067871,
0.10269179940223694,
0.14006033539772034,
-0.43097203969955444,
-0.28267765045166016,
-0.07585489749908447,
0.13726842403411865,
0.12716946005821228,
-0.4158337116241455,
0.1486106812953949,
-0.18651239573955536,
-0.2373981773853302,
-0.27889806032180786,
0.001786956563591957,
-0.13517968356609344,
-0.3066185712814331,
-0.24738344550132751,
0.10935381054878235,
0.23172345757484436,
0.044523365795612335,
0.020947307348251343,
0.0374794602394104,
0.47944796085357666,
-0.0704282894730568,
0.1769578605890274,
-0.1306917369365692,
-0.18811464309692383,
-0.007304958067834377,
0.31863918900489807,
0.2852137088775635,
-0.1531398594379425,
0.23783287405967712,
0.02713068574666977,
0.06807878613471985,
-0.00047724973410367966,
0.2557295560836792,
0.4880920648574829,
-0.20413263142108917,
0.02361169643700123,
0.12388097494840622,
0.17627204954624176,
0.185832679271698,
0.06682159751653671,
0.3117315173149109,
-0.2096690833568573,
0.04647717997431755,
0.2023523449897766,
0.1227646917104721,
0.4422280192375183,
-0.14412255585193634,
-0.2376788854598999,
0.0038970208261162043,
-0.28590571880340576,
0.07944196462631226,
0.14533384144306183,
0.06548768281936646,
-0.007235083729028702,
0.045515276491642,
-0.06658369302749634,
0.16236096620559692,
0.21709346771240234,
-0.11612055450677872,
0.36545053124427795,
0.048652444034814835,
-0.03477104380726814,
-0.06187658756971359,
-0.23692084848880768,
-0.0008542314171791077,
0.0998801589012146,
-0.023719146847724915,
0.5113500356674194,
0.11894585192203522,
0.49410098791122437,
0.21876636147499084,
-0.31832146644592285,
0.16960659623146057,
0.34879928827285767,
-0.040203675627708435,
-0.039167433977127075,
-0.17596712708473206,
0.06605889648199081,
-0.13252106308937073,
0.018504813313484192,
-0.154501810669899,
-0.12160146236419678,
-0.14198213815689087,
0.35220909118652344,
0.22327962517738342,
0.0994257926940918,
-0.1077190712094307,
0.013641264289617538,
0.2463315725326538,
-0.008662424981594086,
0.12671560049057007,
0.13279509544372559,
-0.10549923777580261,
-0.10072220861911774,
-0.03280288726091385,
0.23998521268367767,
0.02580239810049534,
0.07726864516735077,
0.1369619369506836,
-0.05448804423213005,
-0.011630022898316383,
0.08069593459367752,
0.04809371754527092,
0.04106036573648453,
-0.041415002197027206,
0.2293039709329605,
0.14657990634441376,
-0.20013658702373505,
-0.08466640114784241,
-0.27666333317756653,
-0.06381106376647949,
-0.4392770826816559,
-0.1121189221739769,
0.10939204692840576,
-0.19355103373527527,
-0.1548585295677185,
-0.10049191862344742,
-0.1744043380022049,
-0.004190824925899506,
0.3734971582889557,
-0.16185025870800018,
-0.005899100564420223,
0.2261490672826767,
0.08252588659524918,
0.0019126404076814651,
0.26187050342559814,
0.12369164824485779,
0.1919316053390503,
-0.07225915044546127,
-0.17525239288806915,
-0.37354519963264465,
-0.01760060340166092,
0.02613234892487526,
0.195109024643898,
-0.02688535302877426,
0.2674607038497925,
0.25630924105644226,
0.1973705291748047,
0.19560019671916962,
-0.9182479977607727,
0.3547624349594116,
0.21182218194007874,
-0.2741315960884094,
0.13673155009746552,
-0.35640305280685425,
0.15348239243030548,
-0.0727367177605629,
-0.2610240578651428,
0.1296875923871994,
-0.11516938358545303,
0.06055527180433273,
-0.27457767724990845,
0.15505829453468323,
0.20273298025131226,
-0.08727128803730011,
0.5327111482620239,
-0.06942470371723175,
0.019840367138385773,
-0.0717177540063858,
-0.13574814796447754,
-0.18136027455329895,
0.16088329255580902,
-0.14129553735256195,
0.3508417010307312,
-0.05465065315365791,
0.4101088345050812,
-0.14209771156311035,
-0.5705012679100037,
-0.05798393487930298,
0.07278554141521454,
-0.06902532279491425,
-0.259519100189209,
-0.1338684856891632,
-0.00771112646907568,
-0.2452712059020996,
0.10366478562355042,
-0.048376113176345825,
0.5381667613983154,
0.0027685388922691345,
0.09058217704296112,
-0.42521071434020996,
-0.18322837352752686,
0.4537075459957123,
-0.4059238135814667,
-0.07900731265544891,
0.29140743613243103,
-0.03333905339241028,
0.2397838532924652,
0.27639341354370117,
-0.39710256457328796,
-0.20502321422100067,
0.38519716262817383,
-0.000616246834397316,
-0.18876710534095764,
0.4713204801082611,
0.31180182099342346,
-0.007469944655895233,
-0.056890830397605896,
0.13457003235816956,
-0.12275006622076035,
-0.12442240118980408,
-0.07784450799226761,
-0.2268437296152115
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Yeah, it looks like in its current state the tfio support for `Feather` is incomplete, so we'd end up having to write a lot of it, or do a conversion that defeats the whole point (because if we're going to convert the whole dataset we might as well convert to `TFRecord`). | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 51 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Yeah, it looks like in its current state the tfio support for `Feather` is incomplete, so we'd end up having to write a lot of it, or do a conversion that defeats the whole point (because if we're going to convert the whole dataset we might as well convert to `TFRecord`). | [
-0.22031497955322266,
-0.3183137774467468,
-0.1723816841840744,
0.3096850514411926,
0.25142696499824524,
0.12205082923173904,
0.14120136201381683,
0.6504305601119995,
-0.3065379858016968,
0.01626821607351303,
-0.21796773374080658,
0.5098268389701843,
0.03138432651758194,
-0.11834442615509033,
0.07240097969770432,
-0.09092088043689728,
-0.012199550867080688,
0.027947723865509033,
-0.16344964504241943,
-0.05374070629477501,
-0.06183885037899017,
0.10804136842489243,
0.020556561648845673,
0.05197643116116524,
-0.1535339206457138,
0.04385606572031975,
0.12027141451835632,
0.19640663266181946,
0.08891262114048004,
-0.03228522464632988,
0.1272186040878296,
0.04655371233820915,
-0.12442038953304291,
0.30673491954803467,
-0.00010165422281716019,
0.3235127925872803,
0.06627024710178375,
0.018611537292599678,
0.02174479514360428,
-0.025830432772636414,
-0.15989384055137634,
-0.030472056940197945,
-0.13081668317317963,
-0.2846648097038269,
-0.11808540672063828,
-0.04258470609784126,
-0.0150237325578928,
-0.2343982607126236,
0.2998356521129608,
0.4292334020137787,
0.2674127221107483,
0.382698655128479,
0.1498355120420456,
0.20093165338039398,
0.3782459795475006,
-0.14237935841083527,
-0.25109922885894775,
0.16495159268379211,
-0.06054285168647766,
0.06650267541408539,
-0.03277353197336197,
0.17304012179374695,
-0.07519461959600449,
0.09319925308227539,
0.18192090094089508,
-0.026539478451013565,
-0.19628101587295532,
-0.367250919342041,
-0.1448514759540558,
0.6072231531143188,
0.1670173853635788,
-0.1553560495376587,
-0.34505200386047363,
-0.11211960017681122,
-0.06971941143274307,
-0.1775180697441101,
0.0696222335100174,
-0.31547513604164124,
-0.03002069517970085,
0.13959740102291107,
0.22080343961715698,
-0.011312766000628471,
-0.4040156602859497,
0.1595616638660431,
-0.157035231590271,
0.16219462454319,
-0.07356586307287216,
0.042127035558223724,
0.0861683115363121,
-0.006057605147361755,
0.25299206376075745,
-0.03723493963479996,
0.22357472777366638,
-0.038191746920347214,
-0.31129127740859985,
-0.2105703055858612,
0.05841990187764168,
-0.20805665850639343,
0.0540354922413826,
-0.11257180571556091,
0.4194318354129791,
0.2866164445877075,
-0.07322462648153305,
0.1532968282699585,
-0.37187856435775757,
-0.3069467544555664,
-0.1678999662399292,
-0.2942500710487366,
0.2559475600719452,
-0.3426613211631775,
-0.17319762706756592,
0.03863111510872841,
-0.13097253441810608,
-0.13485585153102875,
-0.24572989344596863,
-0.28502753376960754,
0.19208228588104248,
0.01473301276564598,
-0.4867953360080719,
-0.0375695563852787,
0.06615013629198074,
-0.08060619980096817,
0.08049589395523071,
-0.029071971774101257,
0.0984630212187767,
0.1992795169353485,
0.19186346232891083,
-0.09610491991043091,
-0.2269018441438675,
-0.16027824580669403,
-0.13800376653671265,
-0.11494733393192291,
0.07732141017913818,
-0.002121269702911377,
-0.16151085495948792,
-0.11600060760974884,
0.10688173025846481,
-0.04626389592885971,
0.1793842911720276,
0.41349318623542786,
0.2728255093097687,
-0.1770264059305191,
-0.04734698683023453,
0.014406587928533554,
-0.32563215494155884,
-0.19995585083961487,
0.17149201035499573,
0.336691677570343,
-0.2297164499759674,
0.04653284698724747,
-0.40112435817718506,
-0.43544256687164307,
-0.10046717524528503,
0.20906026661396027,
-0.07204361259937286,
-0.4319452941417694,
-0.204833984375,
0.45120853185653687,
0.0512935146689415,
-0.161100834608078,
-0.016002260148525238,
-0.3784620761871338,
-0.5231832265853882,
-0.3728228807449341,
0.16762252151966095,
0.07045770436525345,
-0.5374457836151123,
0.16156001389026642,
0.0680624395608902,
-0.11062364280223846,
0.08582580089569092,
0.23730531334877014,
-0.207012340426445,
0.13855233788490295,
-0.09206219762563705,
0.12139813601970673,
0.863711953163147,
-0.23087981343269348,
-0.1646263748407364,
0.2240668386220932,
-0.20196887850761414,
0.11406601220369339,
0.01691492646932602,
0.12199995666742325,
0.009755193255841732,
-0.23987166583538055,
0.18751835823059082,
0.3146076798439026,
-0.09622559696435928,
-0.01389039121568203,
-0.3097076714038849,
-0.1562727838754654,
-0.028393685817718506,
0.20477460324764252,
-0.31908494234085083,
-0.210058331489563,
0.00564691424369812,
-0.13597598671913147,
0.15234550833702087,
-0.14776013791561127,
-0.007653931155800819,
0.08050257712602615,
0.23948746919631958,
0.25999903678894043,
-0.04649372771382332,
-0.1263069063425064,
-0.2512255907058716,
0.22306865453720093,
0.2675154507160187,
0.004062429070472717,
0.33308327198028564,
-0.1779940128326416,
0.13089731335639954,
-0.0010167937725782394,
0.1355772167444229,
0.16064365208148956,
0.2370859682559967,
-0.10369622707366943,
0.15205489099025726,
0.09861238300800323,
-0.3779531717300415,
0.023721838369965553,
-0.6189247369766235,
0.017194943502545357,
0.012265777215361595,
0.2726871073246002,
0.2004522681236267,
-0.05789979547262192,
-0.04793442040681839,
0.16798563301563263,
-0.39989906549453735,
-0.28436213731765747,
-0.12442945688962936,
0.3057248294353485,
-0.20617879927158356,
-0.011840008199214935,
0.1126934364438057,
0.679317831993103,
0.08320169150829315,
0.13201993703842163,
-0.06333112716674805,
0.17141719162464142,
-0.15562885999679565,
0.026084870100021362,
-0.021624773740768433,
0.5804232954978943,
0.2129315733909607,
0.09560195356607437,
0.05406631529331207,
-0.14471964538097382,
0.09595127403736115,
0.15604493021965027,
0.019534969702363014,
0.09079785645008087,
0.046156998723745346,
-0.22359400987625122,
0.18924440443515778,
0.025728965178132057,
-0.4748724400997162,
0.4986828565597534,
0.7550719380378723,
0.06056397780776024,
-0.07942201942205429,
0.2452802062034607,
-0.001864112913608551,
-0.1080293208360672,
0.08056613802909851,
0.265924870967865,
0.4877052307128906,
0.29677248001098633,
0.1228269711136818,
-0.17138288915157318,
-0.12724310159683228,
-0.2597973644733429,
0.334931343793869,
-0.023791827261447906,
0.41971248388290405,
-0.01777178794145584,
-0.019329898059368134,
0.13852915167808533,
-0.24084198474884033,
-0.4342441260814667,
-0.03551303595304489,
0.22696347534656525,
-0.19700336456298828,
-0.01516764983534813,
-0.19461268186569214,
-0.27647191286087036,
-0.07235544919967651,
0.15621186792850494,
-0.1360868662595749,
-0.30010849237442017,
0.05622847005724907,
0.23388388752937317,
-0.035701870918273926,
-0.1037353053689003,
-0.17862531542778015,
0.19105175137519836,
0.4002748429775238,
-0.308539479970932,
-0.3154444098472595,
0.07730092853307724,
-0.2664541006088257,
0.1873999536037445,
0.3912847936153412,
-0.08923810720443726,
0.3126291036605835,
0.017577266320586205,
0.14131112396717072,
-0.25548914074897766,
-0.4372417628765106,
0.09855296462774277,
-0.514529287815094,
0.20991165935993195,
0.06337778270244598,
0.33054032921791077,
-0.18980184197425842,
-0.015740998089313507,
0.20940923690795898,
-0.06256303191184998,
-0.0739942267537117,
0.02640516683459282,
-0.06056944280862808,
-0.0239273514598608,
0.016469456255435944,
-0.2840879559516907,
-0.08350394666194916,
-0.4817740023136139,
0.1921892762184143,
-0.08356641978025436,
0.22186173498630524,
0.056922998279333115,
0.12535201013088226,
0.532112717628479,
0.11516159027814865,
0.19247248768806458,
-0.08242923021316528,
-0.5897205471992493,
0.4127938747406006,
-0.19290971755981445,
-0.326774537563324,
-0.052218958735466,
0.2006116807460785,
0.24304482340812683,
0.20542939007282257,
-0.49271857738494873,
-0.5035439133644104,
-0.2129061073064804,
0.3104892373085022,
-0.1428501307964325,
-0.16038069128990173,
0.14250445365905762,
-0.06007677689194679,
-0.19743748009204865,
-0.16897433996200562,
0.3667435944080353,
-0.06213062256574631,
-0.02935706079006195,
-0.040089525282382965,
0.29603311419487,
0.22469186782836914,
0.301743745803833,
0.6489217281341553,
0.14775165915489197,
-0.3049481213092804,
0.10016152262687683,
-0.21201862394809723,
0.030195554718375206,
-0.27382710576057434,
-0.07153330743312836,
0.20662803947925568,
-0.07704129815101624,
0.3253607749938965,
0.33942240476608276,
-0.07771970331668854,
0.09687527269124985,
0.03347355127334595,
0.16191993653774261,
0.0652906745672226,
-0.24736931920051575,
0.40113672614097595,
-0.18076114356517792,
0.09476359188556671,
-0.03413572907447815,
-0.06931417435407639,
-0.05997424200177193,
-0.1805531084537506,
0.21742156147956848,
0.3021261692047119,
0.33699336647987366,
-0.048827074468135834,
-0.09653729200363159,
0.0634424164891243,
-0.42971575260162354,
0.3286038637161255,
0.11410437524318695,
-0.06913363188505173,
-0.029820812866091728,
-0.19105109572410583,
0.04658225551247597,
-0.021088173612952232,
0.4450322985649109,
-0.24839983880519867,
-0.27614808082580566,
0.237013041973114,
-0.13035744428634644,
-0.402701199054718,
0.08985061943531036,
-0.16364790499210358,
0.06069311499595642,
0.23088352382183075,
0.3267163038253784,
-0.2593630254268646,
-0.6669235229492188,
0.0856686532497406,
-0.0023568482138216496,
0.0156884603202343,
0.05870745703577995,
-0.08448508381843567,
-0.045526210218667984,
-0.08562570810317993,
-0.09835351258516312,
-0.15000295639038086,
-0.06233459711074829,
-0.24624131619930267,
-0.1254929006099701,
-0.1448502242565155,
-0.07819987833499908,
0.27940815687179565,
0.09821870923042297,
-0.03316266089677811,
0.11871475726366043,
-0.05426286160945892,
-0.02894352376461029,
-0.013829953968524933,
0.45427629351615906,
0.2488904893398285,
0.0420992374420166,
-0.5226680040359497,
-0.20577311515808105,
0.2447792887687683,
0.05243409797549248,
0.1762915998697281,
-0.15078981220722198,
0.10005103051662445,
-0.40188780426979065,
0.2103899121284485,
0.0020519066601991653,
0.2905667722225189,
0.25898346304893494,
0.08800336718559265,
-0.1317559778690338,
-0.3584738075733185,
0.4571935534477234,
0.10674887895584106,
0.13518227636814117,
0.5214569568634033,
0.2984853982925415,
-0.22124533355236053,
0.2604791522026062,
0.2877846658229828,
0.8964067101478577,
-0.15311852097511292,
0.3191412091255188,
0.5794712901115417,
0.17905528843402863,
0.4882822632789612,
-0.3085600733757019,
-0.012318609282374382,
-0.10990843176841736,
-0.2708486318588257,
0.017841460183262825,
0.04991200193762779,
0.003849402070045471,
0.01445019617676735,
-0.03756893798708916,
-0.024923650547862053,
0.3124099373817444,
0.07546930760145187,
-0.04848092049360275,
0.22127246856689453,
-0.05202876031398773,
-0.18060536682605743,
0.0012737195938825607,
0.2680143117904663,
-0.011439912021160126,
-0.1687539517879486,
0.014278054237365723,
-0.3131566643714905,
-0.49308836460113525,
0.32496941089630127,
0.04386399686336517,
-0.12201406806707382,
-0.5001558065414429,
0.24179425835609436,
-0.27467629313468933,
-0.3371620774269104,
0.2051651030778885,
0.27391317486763,
0.13052773475646973,
-0.17606090009212494,
-0.3000481426715851,
-0.14049015939235687,
0.15341080725193024,
-0.05051496624946594,
0.11056220531463623,
-0.3908407688140869,
0.5554609894752502,
-0.015285596251487732,
0.11981777101755142,
0.003182820975780487,
-0.01200450211763382,
-0.32700031995773315,
-0.08424178510904312,
-0.06619508564472198,
0.08729694783687592,
-0.23872822523117065,
-0.3495589792728424,
0.053772903978824615,
-0.4798198938369751,
0.04277994856238365,
0.23216868937015533,
0.07484617084264755,
0.030579350888729095,
0.038101278245449066,
0.10099199414253235,
-0.16431337594985962,
0.11116175353527069,
-0.03166952729225159,
-0.021053824573755264,
-0.022441260516643524,
0.06901322305202484,
-0.15225571393966675,
-0.1782831996679306,
-0.1522253155708313,
0.33006012439727783,
0.15894100069999695,
-0.14613160490989685,
0.12777185440063477,
0.07341550290584564,
0.1823953241109848,
-0.0894489660859108,
-0.004331257194280624,
-0.07550478726625443,
-0.035240449011325836,
-0.20432204008102417,
-0.03238881751894951,
-0.3190367817878723,
0.24201428890228271,
-0.02993490919470787,
0.24476853013038635,
-0.4984881281852722,
0.09918838739395142,
-0.11430404335260391,
-0.14295990765094757,
-0.4506385028362274,
0.2189481556415558,
0.30556920170783997,
0.06975692510604858,
0.44449925422668457,
0.017287176102399826,
0.2763417959213257,
0.2226717621088028,
0.18801811337471008,
0.23840998113155365,
-0.42634671926498413,
-0.3508804142475128,
-0.06275709718465805,
0.08230268210172653,
0.039877749979496,
-0.3159632086753845,
0.21309682726860046,
-0.09471292793750763,
-0.3067706823348999,
-0.22223606705665588,
0.06400975584983826,
-0.13389042019844055,
-0.23785991966724396,
-0.06744299829006195,
0.15869782865047455,
0.20867735147476196,
0.1120772659778595,
0.016126403585076332,
0.06846044957637787,
0.35780417919158936,
-0.10255976021289825,
0.25880497694015503,
-0.15248827636241913,
-0.2103259116411209,
-0.01527938712388277,
0.2410103976726532,
0.10010755062103271,
-0.0839230865240097,
0.1941448152065277,
-0.004803858697414398,
-0.06893035024404526,
0.11962775886058807,
0.2332412600517273,
0.449052631855011,
-0.18451544642448425,
0.038094498217105865,
0.10245814174413681,
0.2838890552520752,
0.07807635515928268,
0.07485444098711014,
0.2584353983402252,
-0.025590572506189346,
0.1448667198419571,
0.10787239670753479,
-0.03046737052500248,
0.3554224371910095,
-0.015083461999893188,
-0.2208537757396698,
-0.025562524795532227,
-0.3436685800552368,
0.07647068798542023,
0.11238089948892593,
0.10637620091438293,
-0.028316680341959,
0.09510667622089386,
-0.002760067582130432,
0.20110219717025757,
0.38082820177078247,
0.12835776805877686,
0.395741730928421,
0.13031406700611115,
-0.013185795396566391,
0.0490250363945961,
-0.17482878267765045,
-0.07104955613613129,
0.09211979806423187,
-0.1020950973033905,
0.421983927488327,
0.1904524564743042,
0.3314412534236908,
0.12197896093130112,
-0.29584774374961853,
0.1402062475681305,
0.24539640545845032,
-0.10792232304811478,
-0.10327498614788055,
-0.10382753610610962,
0.05923563987016678,
0.0041082799434661865,
-0.006553018465638161,
-0.08114597201347351,
-0.11642606556415558,
-0.1743583381175995,
0.27081260085105896,
0.2566128373146057,
0.05261044204235077,
-0.04189115762710571,
-0.013213269412517548,
0.37958645820617676,
0.030811648815870285,
0.14078786969184875,
0.046128902584314346,
-0.11976240575313568,
-0.19736410677433014,
0.08895664662122726,
0.2328217774629593,
0.03885945677757263,
0.049798958003520966,
0.24404391646385193,
-0.17733131349086761,
-0.045866191387176514,
0.0833386778831482,
0.07731449604034424,
0.009844683110713959,
-0.018354102969169617,
0.30957603454589844,
0.18649324774742126,
-0.20801419019699097,
-0.01483745127916336,
-0.17582519352436066,
0.026698308065533638,
-0.4415734112262726,
-0.03178194910287857,
0.20243233442306519,
-0.1933605968952179,
-0.18604126572608948,
-0.07786456495523453,
-0.12760433554649353,
0.026373203843832016,
0.41348642110824585,
-0.0910576730966568,
0.02514640986919403,
0.15863122045993805,
0.13698329031467438,
0.014752320013940334,
0.3518144190311432,
-0.010960068553686142,
0.2186458706855774,
-0.0689864456653595,
-0.1515934318304062,
-0.3159952163696289,
0.046640291810035706,
0.08914664387702942,
0.2661858797073364,
-0.042634837329387665,
0.3214205503463745,
0.18847475945949554,
0.15880437195301056,
0.20104411244392395,
-0.7825503945350647,
0.20831502974033356,
0.15180855989456177,
-0.30694764852523804,
0.11309477686882019,
-0.4771001935005188,
0.026440180838108063,
0.060492150485515594,
-0.2538032829761505,
0.11210929602384567,
-0.0943576768040657,
0.1668320894241333,
-0.31769508123397827,
0.12185639142990112,
0.26165497303009033,
0.013536099344491959,
0.4305419623851776,
0.0012198053300380707,
-0.0010376796126365662,
-0.07107527554035187,
-0.1711205393075943,
-0.20077890157699585,
0.07024756819009781,
-0.33353564143180847,
0.3543863892555237,
-0.0658324658870697,
0.30443868041038513,
-0.04738224297761917,
-0.6588839292526245,
-0.03142949193716049,
0.034863583743572235,
-0.08182872086763382,
-0.19589151442050934,
-0.08034423738718033,
0.08304552733898163,
-0.01816413551568985,
0.07993569225072861,
-0.05603278800845146,
0.5507170557975769,
0.013231787830591202,
0.06656942516565323,
-0.4175213575363159,
-0.22027894854545593,
0.42753326892852783,
-0.34438556432724,
-0.08345142006874084,
0.2212633490562439,
0.07191240787506104,
0.16117218136787415,
0.26940038800239563,
-0.4072254002094269,
-0.218522310256958,
0.448367714881897,
-0.11326204985380173,
-0.2353149950504303,
0.4179544448852539,
0.27789124846458435,
-0.03184650093317032,
-0.07212841510772705,
0.2473450005054474,
-0.0856635719537735,
-0.2266252487897873,
-0.04620068147778511,
-0.24327825009822845
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | @lhoestq Although I think this is a dead-end for now unfortunately, because of the limitations at TF's end, we could still explore automatic conversion to TFRecord, or I could dive into refining `to_tf_dataset()` to yield unbatched samples and/or load samples with multiprocessing to improve throughput. Do you have any preferences there? | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 51 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
@lhoestq Although I think this is a dead-end for now unfortunately, because of the limitations at TF's end, we could still explore automatic conversion to TFRecord, or I could dive into refining `to_tf_dataset()` to yield unbatched samples and/or load samples with multiprocessing to improve throughput. Do you have any preferences there? | [
-0.24478371441364288,
-0.3425455689430237,
-0.1803840696811676,
0.28472524881362915,
0.2043169140815735,
0.11832699924707413,
0.0859355553984642,
0.6752026081085205,
-0.2810034453868866,
-0.013641074299812317,
-0.15951956808567047,
0.5657948851585388,
-0.040372978895902634,
-0.20643167197704315,
0.0635579526424408,
-0.07645048201084137,
0.00846739113330841,
0.009273514151573181,
-0.17230059206485748,
-0.060465823858976364,
-0.05825173854827881,
0.09681349992752075,
0.0022496283054351807,
-0.02346823364496231,
-0.14983442425727844,
0.01893111877143383,
0.1604166030883789,
0.17462030053138733,
0.14753498136997223,
-0.00968625582754612,
0.13672427833080292,
0.10426457226276398,
-0.09268677979707718,
0.34320369362831116,
-0.00010138909419765696,
0.3103821277618408,
0.07251845300197601,
0.023408418521285057,
0.020273219794034958,
-0.021901682019233704,
-0.09009578824043274,
-0.046997956931591034,
-0.11049263179302216,
-0.23562225699424744,
-0.14724478125572205,
-0.08627713471651077,
-0.05008925497531891,
-0.26747092604637146,
0.35550642013549805,
0.3869846761226654,
0.24886983633041382,
0.38890114426612854,
0.135763481259346,
0.23266786336898804,
0.3283282220363617,
-0.12871433794498444,
-0.23313765227794647,
0.1553930789232254,
-0.026644013822078705,
0.040615878999233246,
-0.0008750557899475098,
0.1602720022201538,
-0.06846506893634796,
0.14901353418827057,
0.1482284963130951,
-0.011805078946053982,
-0.1925295889377594,
-0.38636311888694763,
-0.1460515856742859,
0.5751469731330872,
0.13933522999286652,
-0.15834033489227295,
-0.34631597995758057,
-0.15209054946899414,
-0.03945547342300415,
-0.11670569330453873,
0.08354618400335312,
-0.32179391384124756,
-0.08849319815635681,
0.16267631947994232,
0.15700559318065643,
-0.01476234383881092,
-0.34763646125793457,
0.17551246285438538,
-0.08784734457731247,
0.09683236479759216,
-0.022837985306978226,
0.003568630665540695,
0.08543543517589569,
-0.0057846494019031525,
0.3060842454433441,
-0.043463803827762604,
0.197045236825943,
-0.035663820803165436,
-0.3620157837867737,
-0.21544083952903748,
0.0864625796675682,
-0.28207796812057495,
0.05641587823629379,
-0.04411578178405762,
0.4309840798377991,
0.3437105119228363,
-0.08759033679962158,
0.11828237771987915,
-0.37852996587753296,
-0.36140432953834534,
-0.1673714518547058,
-0.3207239806652069,
0.2509908676147461,
-0.30074289441108704,
-0.13252481818199158,
0.06552232801914215,
-0.1365419179201126,
-0.14954106509685516,
-0.21931640803813934,
-0.274251788854599,
0.12289777398109436,
0.0310622937977314,
-0.4620484411716461,
-0.0004494227468967438,
0.05295611917972565,
-0.10041668266057968,
0.08327377587556839,
0.026918817311525345,
0.0637701228260994,
0.24207893013954163,
0.16108867526054382,
-0.13632020354270935,
-0.20746611058712006,
-0.18320874869823456,
-0.1368027925491333,
-0.12717100977897644,
0.07646113634109497,
-0.007843021303415298,
-0.1160118579864502,
-0.08786390721797943,
0.07080437988042831,
-0.0024561993777751923,
0.16285884380340576,
0.3995921313762665,
0.2974279820919037,
-0.1837128847837448,
-0.04389152675867081,
-0.005192086100578308,
-0.30400970578193665,
-0.1740206927061081,
0.12634681165218353,
0.3667658567428589,
-0.20868149399757385,
0.015370044857263565,
-0.4041198790073395,
-0.3927834630012512,
-0.10116834938526154,
0.20724593102931976,
-0.1135091707110405,
-0.36649447679519653,
-0.200400710105896,
0.45296385884284973,
-0.0015199333429336548,
-0.09137972444295883,
-0.0640183612704277,
-0.3978425860404968,
-0.4462965726852417,
-0.4037008583545685,
0.1949448585510254,
0.03444730490446091,
-0.5358153581619263,
0.1814616471529007,
0.04648580774664879,
-0.033910319209098816,
0.08282311260700226,
0.23373061418533325,
-0.20030812919139862,
0.17579051852226257,
-0.06791473925113678,
0.08602513372898102,
0.8504659533500671,
-0.22950182855129242,
-0.1786840856075287,
0.24309784173965454,
-0.1585366427898407,
0.15742075443267822,
0.03429704159498215,
0.10160917043685913,
0.011490466073155403,
-0.20726019144058228,
0.2268579751253128,
0.3290606737136841,
-0.07295247912406921,
-0.02014864608645439,
-0.32660776376724243,
-0.15535899996757507,
-0.032028332352638245,
0.23435549437999725,
-0.3024700880050659,
-0.2539273500442505,
-0.00383845716714859,
-0.165352001786232,
0.18108989298343658,
-0.16760584712028503,
-0.03934210538864136,
0.11183140426874161,
0.2843397259712219,
0.26076680421829224,
-0.09426582604646683,
-0.13716185092926025,
-0.25732964277267456,
0.22980058193206787,
0.23742210865020752,
0.03295151889324188,
0.306048721075058,
-0.16321012377738953,
0.17418476939201355,
-0.02162274904549122,
0.1296355426311493,
0.13391543924808502,
0.22385135293006897,
-0.11419415473937988,
0.12554803490638733,
0.12286345660686493,
-0.3873926103115082,
-0.010498227551579475,
-0.6275669932365417,
0.027724768966436386,
0.0347917415201664,
0.2722885012626648,
0.2609376013278961,
-0.10201656818389893,
0.005270358175039291,
0.165108785033226,
-0.4504718482494354,
-0.29252636432647705,
-0.09176047891378403,
0.2812892198562622,
-0.20064304769039154,
-0.017111793160438538,
0.10985064506530762,
0.6251574754714966,
0.053778961300849915,
0.1677171289920807,
-0.11239819973707199,
0.16982072591781616,
-0.17100372910499573,
0.021230854094028473,
-0.029024042189121246,
0.5782774686813354,
0.22890448570251465,
0.08673043549060822,
0.05127125233411789,
-0.1699988692998886,
0.0913839042186737,
0.14066475629806519,
0.01942845620214939,
0.12842616438865662,
0.08280657976865768,
-0.22608934342861176,
0.21161909401416779,
-0.013765813782811165,
-0.46325594186782837,
0.4365403950214386,
0.6849605441093445,
0.05452627316117287,
-0.09021209925413132,
0.2594713270664215,
-0.02889915555715561,
-0.08258001506328583,
0.10290803760290146,
0.23461447656154633,
0.45820188522338867,
0.32321593165397644,
0.08800093829631805,
-0.21712112426757812,
-0.1346053183078766,
-0.217293843626976,
0.26420915126800537,
-0.06665395200252533,
0.40442124009132385,
0.02684687077999115,
-0.004185595083981752,
0.14946521818637848,
-0.24121886491775513,
-0.4399500787258148,
-0.050337523221969604,
0.2257722020149231,
-0.22227904200553894,
-0.05210351571440697,
-0.1984330713748932,
-0.24024340510368347,
-0.08969703316688538,
0.19177769124507904,
-0.13356396555900574,
-0.2701248526573181,
0.0356992706656456,
0.2736455500125885,
0.0010496154427528381,
-0.07874159514904022,
-0.1678105741739273,
0.2257215678691864,
0.38078683614730835,
-0.33413663506507874,
-0.2817786931991577,
0.13534694910049438,
-0.27054962515830994,
0.18559278547763824,
0.40816619992256165,
-0.038446974009275436,
0.3387334942817688,
0.04897212237119675,
0.13228346407413483,
-0.2175847589969635,
-0.4098164439201355,
0.0991348922252655,
-0.47142767906188965,
0.2646138072013855,
0.08980745077133179,
0.3316831886768341,
-0.1931191384792328,
-0.010959513485431671,
0.23015566170215607,
-0.06315486878156662,
-0.028652578592300415,
-0.039616458117961884,
-0.03607233241200447,
-0.03866751119494438,
0.058555107563734055,
-0.24519756436347961,
-0.07581988722085953,
-0.45959317684173584,
0.16960471868515015,
-0.0620061531662941,
0.16203585267066956,
-0.002401985228061676,
0.14442937076091766,
0.4832969307899475,
0.10260790586471558,
0.1784936636686325,
-0.07234036922454834,
-0.582197904586792,
0.42026883363723755,
-0.18018440902233124,
-0.309246689081192,
-0.1004466712474823,
0.15348410606384277,
0.23019571602344513,
0.24592240154743195,
-0.4509243369102478,
-0.48114264011383057,
-0.19969230890274048,
0.33553388714790344,
-0.12799857556819916,
-0.17178690433502197,
0.12568768858909607,
-0.06633275747299194,
-0.1891607791185379,
-0.14685650169849396,
0.35547590255737305,
-0.06007916480302811,
-0.02079315111041069,
0.027836553752422333,
0.34753596782684326,
0.1917315125465393,
0.2959723472595215,
0.6410908699035645,
0.19379061460494995,
-0.3346021771430969,
0.07582809776067734,
-0.2094959318637848,
-0.011874321848154068,
-0.1942947506904602,
-0.05097650736570358,
0.1432580053806305,
-0.07711201906204224,
0.3473973870277405,
0.3135809302330017,
-0.06840301305055618,
0.10768528282642365,
0.018597766757011414,
0.20750819146633148,
0.016580067574977875,
-0.25617220997810364,
0.47292274236679077,
-0.21968874335289001,
0.11742949485778809,
-0.05673326924443245,
-0.04666934162378311,
-0.057237543165683746,
-0.2061592936515808,
0.22838905453681946,
0.268202006816864,
0.3323576748371124,
-0.06423425674438477,
-0.08672157675027847,
0.13539685308933258,
-0.45431214570999146,
0.33291634917259216,
0.11200007051229477,
-0.03278623893857002,
-0.004112675786018372,
-0.18341422080993652,
0.016903243958950043,
-0.028260521590709686,
0.455679714679718,
-0.30169352889060974,
-0.2793077230453491,
0.21047280728816986,
-0.1339772343635559,
-0.36548912525177,
0.09483034908771515,
-0.2058883160352707,
0.07345911115407944,
0.19353044033050537,
0.30621257424354553,
-0.2330549657344818,
-0.645697295665741,
0.019582455977797508,
-0.02128388173878193,
-0.00650976225733757,
0.03538639098405838,
-0.08429548144340515,
-0.04713002219796181,
-0.0419282466173172,
-0.10624121874570847,
-0.1680726259946823,
-0.048366691917181015,
-0.26884952187538147,
-0.1352510303258896,
-0.18944576382637024,
-0.09883803874254227,
0.3404073119163513,
0.11175115406513214,
0.013752661645412445,
0.0913480743765831,
0.020982183516025543,
-0.011081818491220474,
-0.03121679276227951,
0.496422678232193,
0.19963093101978302,
0.050153013318777084,
-0.5185724496841431,
-0.22468042373657227,
0.19408102333545685,
0.04233841598033905,
0.19569721817970276,
-0.1418779194355011,
0.14644555747509003,
-0.39900317788124084,
0.2244592010974884,
-0.03228086233139038,
0.31527966260910034,
0.3037319481372833,
0.09681979566812515,
-0.18208280205726624,
-0.4095040261745453,
0.4184270203113556,
0.11527766287326813,
0.1344996988773346,
0.5287649631500244,
0.20670607686042786,
-0.21557237207889557,
0.27425020933151245,
0.34566980600357056,
0.86259526014328,
-0.1487000733613968,
0.2632339894771576,
0.5338272452354431,
0.27739131450653076,
0.4548831582069397,
-0.37236839532852173,
0.0116361603140831,
-0.10985797643661499,
-0.23725132644176483,
-0.00243220292031765,
0.03233620151877403,
0.025931749492883682,
0.02959936484694481,
0.022567909210920334,
-0.013909943401813507,
0.35385602712631226,
0.06598825752735138,
-0.056815579533576965,
0.30101603269577026,
0.012353185564279556,
-0.20366014540195465,
0.0074694715440273285,
0.2587277591228485,
-0.01508515328168869,
-0.1445135921239853,
0.018979806452989578,
-0.3171820044517517,
-0.4951091408729553,
0.32270026206970215,
0.025260433554649353,
-0.18240857124328613,
-0.4348016679286957,
0.243516206741333,
-0.2488308548927307,
-0.39662402868270874,
0.2122245728969574,
0.27890685200691223,
0.09678119421005249,
-0.16595706343650818,
-0.29905831813812256,
-0.09926970303058624,
0.1835947185754776,
-0.05848809331655502,
0.10956109315156937,
-0.3949037492275238,
0.5403035879135132,
0.003867547959089279,
0.09480095654726028,
0.04362252354621887,
0.03778405860066414,
-0.3170992136001587,
-0.0518718883395195,
-0.11030668020248413,
0.03847457841038704,
-0.2458118498325348,
-0.3868689239025116,
0.05263785645365715,
-0.4512363374233246,
0.06619706749916077,
0.23499277234077454,
0.05281658470630646,
0.06204740330576897,
0.05226266011595726,
0.15680451691150665,
-0.12201885879039764,
0.06905483454465866,
-0.018617168068885803,
-0.06079462170600891,
-0.05301526188850403,
0.03393401950597763,
-0.1071314662694931,
-0.16496479511260986,
-0.16990187764167786,
0.34464171528816223,
0.18237686157226562,
-0.16899517178535461,
0.10668524354696274,
0.0657612681388855,
0.19666899740695953,
-0.07502707093954086,
0.012437213212251663,
-0.023617014288902283,
-0.043604776263237,
-0.19270019233226776,
0.01796158403158188,
-0.26945310831069946,
0.266002357006073,
-0.003962665796279907,
0.24202384054660797,
-0.5335240364074707,
0.06907181441783905,
-0.13503330945968628,
-0.1312166303396225,
-0.44444164633750916,
0.17909947037696838,
0.29371967911720276,
0.014302756637334824,
0.3751816749572754,
0.05156188830733299,
0.2628636360168457,
0.17055758833885193,
0.20675010979175568,
0.23533594608306885,
-0.3910538852214813,
-0.34691500663757324,
-0.06180629879236221,
0.07861518859863281,
-0.013654861599206924,
-0.29396486282348633,
0.21687735617160797,
-0.0669454038143158,
-0.30373555421829224,
-0.2504805624485016,
0.01090925931930542,
-0.1811930239200592,
-0.22590632736682892,
-0.1116870790719986,
0.1154860332608223,
0.17421439290046692,
0.06712531298398972,
0.03973432257771492,
0.04883664473891258,
0.35116422176361084,
-0.09065475314855576,
0.23096805810928345,
-0.09785116463899612,
-0.18063879013061523,
-0.010790877975523472,
0.244838148355484,
0.10672203451395035,
-0.07975871860980988,
0.1694716513156891,
-0.010250136256217957,
-0.08597666025161743,
0.12270794808864594,
0.247379332780838,
0.4840201437473297,
-0.25857385993003845,
0.04075602442026138,
0.14529410004615784,
0.29367831349372864,
0.0890817791223526,
0.07370435446500778,
0.2349541336297989,
0.010456275194883347,
0.1442832201719284,
0.1153271272778511,
-0.021422559395432472,
0.39408549666404724,
-0.06488485634326935,
-0.20252877473831177,
0.0036212364211678505,
-0.34285295009613037,
0.07284770905971527,
0.09320811182260513,
0.15122318267822266,
-0.010962244123220444,
0.10351239144802094,
-0.024287711828947067,
0.14818033576011658,
0.38865721225738525,
0.12946437299251556,
0.3794426918029785,
0.08242842555046082,
-0.052155669778585434,
0.0025583505630493164,
-0.20368406176567078,
-0.08274401724338531,
0.08256042748689651,
-0.12380926311016083,
0.4742449223995209,
0.19649666547775269,
0.4273679554462433,
0.12604482471942902,
-0.34704166650772095,
0.12787993252277374,
0.22508500516414642,
-0.11296608299016953,
-0.09017367660999298,
-0.07914198189973831,
0.023197956383228302,
-0.01688835769891739,
0.015035416930913925,
-0.07411155104637146,
-0.11359652876853943,
-0.16451868414878845,
0.27957552671432495,
0.29893776774406433,
0.02206422947347164,
-0.06691128760576248,
-0.05689625442028046,
0.3836192786693573,
0.03968914970755577,
0.12292376905679703,
0.05829690024256706,
-0.12203343212604523,
-0.1909203827381134,
0.015741702169179916,
0.23534387350082397,
0.015777213498950005,
0.008991865441203117,
0.20823176205158234,
-0.21913297474384308,
-0.026649653911590576,
0.08338436484336853,
0.08854497969150543,
-0.022669538855552673,
-0.04424351081252098,
0.3105570673942566,
0.2042742818593979,
-0.2193136066198349,
-0.010137490928173065,
-0.21910794079303741,
0.007590366527438164,
-0.4399312436580658,
-0.014242120087146759,
0.19614402949810028,
-0.1744251251220703,
-0.17964616417884827,
-0.10692786425352097,
-0.07858856767416,
0.04355135187506676,
0.42286503314971924,
-0.0863867998123169,
0.01227111928164959,
0.17348912358283997,
0.14367665350437164,
-0.023680344223976135,
0.3686104416847229,
-0.05723269656300545,
0.27040165662765503,
-0.02638459950685501,
-0.20857921242713928,
-0.3216601610183716,
0.00806920975446701,
-0.0019169598817825317,
0.23615014553070068,
-0.03453654423356056,
0.26244160532951355,
0.20805193483829498,
0.18875329196453094,
0.15963895618915558,
-0.7707104682922363,
0.18286249041557312,
0.1983695775270462,
-0.3029676675796509,
0.15019431710243225,
-0.5134649872779846,
0.05841420590877533,
0.07139865309000015,
-0.2603917419910431,
0.12093629688024521,
-0.08404731005430222,
0.15723156929016113,
-0.31338727474212646,
0.13754811882972717,
0.2865304946899414,
-0.003906887024641037,
0.44772881269454956,
-0.03172775357961655,
0.04862881079316139,
-0.09832430630922318,
-0.1874513030052185,
-0.1838248074054718,
0.0897880494594574,
-0.2710680365562439,
0.3783019483089447,
-0.017337679862976074,
0.35504743456840515,
-0.020087262615561485,
-0.6183278560638428,
-0.06403006613254547,
0.04187321290373802,
-0.03547511622309685,
-0.16814830899238586,
-0.15014244616031647,
0.04126540571451187,
0.00531449168920517,
0.11397155374288559,
-0.047062743455171585,
0.5568956732749939,
-0.014437355101108551,
0.03450707346200943,
-0.40861427783966064,
-0.22740525007247925,
0.41825172305107117,
-0.3909783363342285,
-0.08803552389144897,
0.17386622726917267,
0.03739488869905472,
0.15202103555202484,
0.28122416138648987,
-0.46451663970947266,
-0.24783754348754883,
0.42984920740127563,
-0.08558253943920135,
-0.23447443544864655,
0.4314442276954651,
0.26313894987106323,
-0.02957487851381302,
-0.03960296884179115,
0.23489047586917877,
-0.0847652330994606,
-0.23304273188114166,
-0.04361671954393387,
-0.24116754531860352
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | > @lhoestq Although I think this is a dead-end for now unfortunately, because of the limitations at TF's end, we could still explore automatic conversion to TFRecord, or I could dive into refining `to_tf_dataset()` to yield unbatched samples and/or load samples with multiprocessing to improve throughput. Do you have any preferences there?
Happy to take part there @Rocketknight1. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 58 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
> @lhoestq Although I think this is a dead-end for now unfortunately, because of the limitations at TF's end, we could still explore automatic conversion to TFRecord, or I could dive into refining `to_tf_dataset()` to yield unbatched samples and/or load samples with multiprocessing to improve throughput. Do you have any preferences there?
Happy to take part there @Rocketknight1. | [
-0.24645575881004333,
-0.34320536255836487,
-0.1833573579788208,
0.28056204319000244,
0.20292077958583832,
0.10813478380441666,
0.10141293704509735,
0.6635622382164001,
-0.2711960971355438,
-0.009996876120567322,
-0.15782709419727325,
0.5561668872833252,
-0.03692617267370224,
-0.19016730785369873,
0.07194599509239197,
-0.09412097930908203,
-0.0034686028957366943,
0.014345832169055939,
-0.17435109615325928,
-0.06534086912870407,
-0.05387421324849129,
0.08324199169874191,
-0.004692606627941132,
-0.027449101209640503,
-0.14321136474609375,
0.006944209337234497,
0.15799513459205627,
0.1721024513244629,
0.14920349419116974,
-0.0185166634619236,
0.12275607883930206,
0.0900118499994278,
-0.08764160424470901,
0.33457642793655396,
-0.00010027307143900543,
0.2999258041381836,
0.07442407310009003,
0.022153111174702644,
0.016982944682240486,
-0.01740172505378723,
-0.09504453837871552,
-0.04768562316894531,
-0.11028897017240524,
-0.2523670494556427,
-0.148784801363945,
-0.08177533000707626,
-0.051669515669345856,
-0.25728949904441833,
0.3569965362548828,
0.38945403695106506,
0.2614329159259796,
0.3991907238960266,
0.12092989683151245,
0.2299303263425827,
0.3243331015110016,
-0.14112068712711334,
-0.2322230488061905,
0.14803268015384674,
-0.02521943300962448,
0.04699619859457016,
-0.0044145360589027405,
0.1709757149219513,
-0.060949116945266724,
0.14657965302467346,
0.15694060921669006,
-0.011319580487906933,
-0.18966573476791382,
-0.3771204948425293,
-0.16156408190727234,
0.5685781836509705,
0.14054633677005768,
-0.1634122133255005,
-0.3515560030937195,
-0.1462922990322113,
-0.035147152841091156,
-0.12581712007522583,
0.07434526085853577,
-0.3001142144203186,
-0.09311795234680176,
0.15782934427261353,
0.16692140698432922,
-0.017515530809760094,
-0.35787853598594666,
0.17137733101844788,
-0.08536005020141602,
0.10335152596235275,
-0.01953992247581482,
0.006420966237783432,
0.07574435323476791,
0.00037208572030067444,
0.3028045892715454,
-0.046561919152736664,
0.21275638043880463,
-0.038127947598695755,
-0.35713618993759155,
-0.22498251497745514,
0.07288249582052231,
-0.2847907841205597,
0.051650598645210266,
-0.0505976527929306,
0.43041980266571045,
0.342960387468338,
-0.07649105042219162,
0.13064083456993103,
-0.3755192160606384,
-0.35442349314689636,
-0.16280856728553772,
-0.30635136365890503,
0.2546645402908325,
-0.3019132614135742,
-0.1427377313375473,
0.06706924736499786,
-0.13218040764331818,
-0.14569832384586334,
-0.2081512212753296,
-0.2695467472076416,
0.10512608289718628,
0.04257403686642647,
-0.45673003792762756,
-0.0033686235547065735,
0.05666253715753555,
-0.0844784677028656,
0.07832443714141846,
0.03213650733232498,
0.06245356425642967,
0.235082745552063,
0.16535639762878418,
-0.14288590848445892,
-0.20331212878227234,
-0.17386789619922638,
-0.1444762796163559,
-0.11256308853626251,
0.06865565478801727,
-0.007752817124128342,
-0.11669884622097015,
-0.09244892001152039,
0.085715651512146,
-0.003414459526538849,
0.16052742302417755,
0.3959863781929016,
0.31065672636032104,
-0.18604406714439392,
-0.03777468949556351,
-0.005195453763008118,
-0.30246102809906006,
-0.18579375743865967,
0.10867777466773987,
0.36600935459136963,
-0.21943482756614685,
0.019091151654720306,
-0.38893431425094604,
-0.39541205763816833,
-0.09150321781635284,
0.21664509177207947,
-0.10807570815086365,
-0.3677821755409241,
-0.1977439820766449,
0.4512955844402313,
-0.00035624951124191284,
-0.07762107998132706,
-0.06319061666727066,
-0.3937642574310303,
-0.4491412937641144,
-0.39572790265083313,
0.19096937775611877,
0.04272928833961487,
-0.5206633806228638,
0.17350612580776215,
0.055917106568813324,
-0.03834940120577812,
0.07928995043039322,
0.2485688179731369,
-0.2065727859735489,
0.16535866260528564,
-0.06215720623731613,
0.0865335464477539,
0.8450283408164978,
-0.2349933534860611,
-0.17851929366588593,
0.23587045073509216,
-0.16154953837394714,
0.14524245262145996,
0.02821321040391922,
0.11365693807601929,
0.01969272643327713,
-0.19380469620227814,
0.21975752711296082,
0.3362957239151001,
-0.0763973593711853,
-0.004540525376796722,
-0.3303367495536804,
-0.15144997835159302,
-0.031172312796115875,
0.2336658388376236,
-0.2965923249721527,
-0.25599345564842224,
-0.013431243598461151,
-0.15781238675117493,
0.1852686107158661,
-0.1653088927268982,
-0.032284729182720184,
0.10855867713689804,
0.27635741233825684,
0.24045521020889282,
-0.09255331754684448,
-0.14966224133968353,
-0.2595004439353943,
0.23030295968055725,
0.2344154417514801,
0.044180501252412796,
0.3074815571308136,
-0.15984034538269043,
0.16105622053146362,
-0.016067130491137505,
0.13982926309108734,
0.12634101510047913,
0.2322441041469574,
-0.11393381655216217,
0.11864395439624786,
0.10961183905601501,
-0.39014339447021484,
0.0012252330780029297,
-0.6291362643241882,
0.025943761691451073,
0.03943435102701187,
0.26935717463493347,
0.24605904519557953,
-0.09378227591514587,
0.00016220659017562866,
0.15923160314559937,
-0.4496667683124542,
-0.2816118001937866,
-0.08212995529174805,
0.276645690202713,
-0.1962893158197403,
-0.013998284935951233,
0.1189563125371933,
0.6133453845977783,
0.0545196607708931,
0.15479286015033722,
-0.10455595701932907,
0.17267879843711853,
-0.16601815819740295,
0.031958915293216705,
-0.02635333687067032,
0.5808507204055786,
0.2348301261663437,
0.08694171905517578,
0.06488455086946487,
-0.16206853091716766,
0.08963397145271301,
0.13737118244171143,
0.02102704904973507,
0.11972340941429138,
0.07989279180765152,
-0.2193634808063507,
0.2197534590959549,
-0.011698892340064049,
-0.4666999578475952,
0.43645453453063965,
0.6795889735221863,
0.0567966066300869,
-0.07479358464479446,
0.25632551312446594,
-0.03632861375808716,
-0.07825589925050735,
0.10084272921085358,
0.23818792402744293,
0.4500875473022461,
0.32544592022895813,
0.09720580279827118,
-0.20554503798484802,
-0.13507191836833954,
-0.22027041018009186,
0.2776077687740326,
-0.06274808943271637,
0.3974907398223877,
0.021692700684070587,
0.0054594906978309155,
0.136989563703537,
-0.24772602319717407,
-0.43714436888694763,
-0.04705163836479187,
0.2289033979177475,
-0.21492399275302887,
-0.04867835342884064,
-0.18786059319972992,
-0.2378121018409729,
-0.09775528311729431,
0.18726852536201477,
-0.13114362955093384,
-0.2688351571559906,
0.03682275861501694,
0.2645447254180908,
-0.013539260253310204,
-0.07739006727933884,
-0.17196765542030334,
0.22805754840373993,
0.37811389565467834,
-0.3170691430568695,
-0.2830696105957031,
0.12785258889198303,
-0.25057077407836914,
0.1938091367483139,
0.3988962471485138,
-0.022624820470809937,
0.34427541494369507,
0.051787808537483215,
0.12383691966533661,
-0.21367214620113373,
-0.4236324429512024,
0.09709355235099792,
-0.4590446352958679,
0.2575570046901703,
0.08881335705518723,
0.3373987674713135,
-0.18457333743572235,
-0.016743384301662445,
0.22121675312519073,
-0.07966141402721405,
-0.03827138990163803,
-0.039717935025691986,
-0.02963823452591896,
-0.03466369956731796,
0.04555414989590645,
-0.26742681860923767,
-0.0884731337428093,
-0.4652162492275238,
0.17655213177204132,
-0.0690469741821289,
0.17134523391723633,
-0.00041255634278059006,
0.1296164095401764,
0.4813961386680603,
0.0973469465970993,
0.18397417664527893,
-0.07619598507881165,
-0.5719652771949768,
0.41627392172813416,
-0.18426521122455597,
-0.312156617641449,
-0.10907162725925446,
0.14438927173614502,
0.22320424020290375,
0.23726136982440948,
-0.44813060760498047,
-0.4686009883880615,
-0.2075563222169876,
0.3297053575515747,
-0.12871816754341125,
-0.171182319521904,
0.1249922513961792,
-0.0651543140411377,
-0.19667169451713562,
-0.1541098952293396,
0.3503280580043793,
-0.04570194333791733,
-0.020828597247600555,
0.0195181742310524,
0.3311113715171814,
0.18169254064559937,
0.2943166494369507,
0.6409584879875183,
0.18865591287612915,
-0.33612537384033203,
0.07337617874145508,
-0.20565427839756012,
-0.02140909805893898,
-0.19770494103431702,
-0.050181012600660324,
0.14826902747154236,
-0.06899307668209076,
0.342868447303772,
0.3113476037979126,
-0.07424246519804001,
0.09148689359426498,
0.01719876006245613,
0.19788169860839844,
0.024900317192077637,
-0.25631290674209595,
0.4675978124141693,
-0.21219196915626526,
0.12023568153381348,
-0.04708551988005638,
-0.04256189614534378,
-0.07184720784425735,
-0.19216784834861755,
0.22584156692028046,
0.255145400762558,
0.3270249366760254,
-0.06741590052843094,
-0.09930568188428879,
0.13370104134082794,
-0.46629244089126587,
0.31748339533805847,
0.12302941828966141,
-0.03616498038172722,
0.009188491851091385,
-0.18952146172523499,
0.018543198704719543,
-0.022612035274505615,
0.44844353199005127,
-0.2978811264038086,
-0.28534621000289917,
0.19725944101810455,
-0.13804280757904053,
-0.37882521748542786,
0.10103026032447815,
-0.2085355967283249,
0.058206796646118164,
0.19422563910484314,
0.3053593039512634,
-0.24224144220352173,
-0.6405355930328369,
0.02756151370704174,
-0.01472751796245575,
-0.005254644900560379,
0.021867483854293823,
-0.08096981048583984,
-0.04634316638112068,
-0.04249373823404312,
-0.09830931574106216,
-0.16619093716144562,
-0.05207560211420059,
-0.2595633864402771,
-0.14678743481636047,
-0.18279580771923065,
-0.08980029821395874,
0.33354246616363525,
0.11465778946876526,
0.021569881588220596,
0.09141114354133606,
0.023068420588970184,
-0.018900834023952484,
-0.018997810781002045,
0.4834928810596466,
0.19810006022453308,
0.04605856537818909,
-0.5048061609268188,
-0.22714582085609436,
0.19706478714942932,
0.04209773987531662,
0.20123609900474548,
-0.14269065856933594,
0.1526210457086563,
-0.40643423795700073,
0.22787445783615112,
-0.03735728561878204,
0.31742510199546814,
0.2917691469192505,
0.11095164716243744,
-0.16555432975292206,
-0.41332384943962097,
0.425116628408432,
0.09883320331573486,
0.1315058320760727,
0.5187590718269348,
0.1955416351556778,
-0.21664440631866455,
0.2759655714035034,
0.336881160736084,
0.8662876486778259,
-0.1428031474351883,
0.2631571888923645,
0.5331382155418396,
0.262389600276947,
0.4494573771953583,
-0.35486942529678345,
0.013906717300415039,
-0.11787473410367966,
-0.24266694486141205,
0.005175655707716942,
0.024505827575922012,
0.013200711458921432,
0.029493173584342003,
0.017730731517076492,
-0.01648409105837345,
0.3454524278640747,
0.062346450984478,
-0.06262117624282837,
0.30416807532310486,
0.002302473410964012,
-0.2085018754005432,
0.0008696634322404861,
0.2652965188026428,
-0.016018852591514587,
-0.1489880532026291,
0.016091033816337585,
-0.3165796995162964,
-0.48979562520980835,
0.3143402934074402,
0.026626311242580414,
-0.17571571469306946,
-0.43695104122161865,
0.24993155896663666,
-0.252487450838089,
-0.3952478766441345,
0.21301235258579254,
0.26928073167800903,
0.10218682140111923,
-0.16648787260055542,
-0.2927168905735016,
-0.08934655785560608,
0.17540106177330017,
-0.053025197237730026,
0.12605372071266174,
-0.3830181360244751,
0.5380321741104126,
-0.002517610788345337,
0.07675796002149582,
0.04716233164072037,
0.03329147771000862,
-0.3194873332977295,
-0.044536665081977844,
-0.10030786693096161,
0.04171649366617203,
-0.24125055968761444,
-0.37562277913093567,
0.06952724605798721,
-0.46264490485191345,
0.05517776682972908,
0.24390578269958496,
0.05365009605884552,
0.05627880245447159,
0.06618382781744003,
0.15364034473896027,
-0.12365196645259857,
0.07047880440950394,
-0.020679868757724762,
-0.0453721284866333,
-0.040159981697797775,
0.0432114340364933,
-0.1059601902961731,
-0.1748729795217514,
-0.17890897393226624,
0.33337122201919556,
0.18115532398223877,
-0.15990972518920898,
0.11940409243106842,
0.06436936557292938,
0.18259058892726898,
-0.07603175193071365,
0.01369437575340271,
-0.03641097992658615,
-0.03672625869512558,
-0.19894063472747803,
0.015541061758995056,
-0.28561267256736755,
0.26607006788253784,
-0.005355276167392731,
0.24641075730323792,
-0.5258457660675049,
0.07988224923610687,
-0.14042523503303528,
-0.1229788064956665,
-0.4590482711791992,
0.18019266426563263,
0.28575700521469116,
0.026154834777116776,
0.3560159504413605,
0.039505485445261,
0.2657119333744049,
0.16899779438972473,
0.2148737609386444,
0.24095755815505981,
-0.38556966185569763,
-0.3575809895992279,
-0.061462849378585815,
0.07424052059650421,
-0.016917839646339417,
-0.28976544737815857,
0.21160529553890228,
-0.06326290220022202,
-0.31350138783454895,
-0.24832683801651,
0.02614505961537361,
-0.17279374599456787,
-0.2293277531862259,
-0.09132316708564758,
0.11616643518209457,
0.17742566764354706,
0.06608235090970993,
0.038791995495557785,
0.0444948635995388,
0.3432375192642212,
-0.09280236065387726,
0.2330038845539093,
-0.10300115495920181,
-0.18447566032409668,
-0.004284130409359932,
0.24019595980644226,
0.09981886297464371,
-0.07252821326255798,
0.1759873926639557,
-0.0008013509213924408,
-0.09306761622428894,
0.11610079556703568,
0.24989154934883118,
0.4791337847709656,
-0.2502516210079193,
0.042290911078453064,
0.13252803683280945,
0.3060312569141388,
0.07271591573953629,
0.08192474395036697,
0.2163698971271515,
0.008708514273166656,
0.16240936517715454,
0.11833509802818298,
-0.028274787589907646,
0.3853400647640228,
-0.06708154082298279,
-0.20101642608642578,
-0.007473614066839218,
-0.34753674268722534,
0.0687292069196701,
0.08741185069084167,
0.16010862588882446,
-0.018483448773622513,
0.10201740264892578,
-0.01146429032087326,
0.1645156294107437,
0.38835829496383667,
0.12816555798053741,
0.3791796863079071,
0.0850011557340622,
-0.04186994954943657,
0.009959198534488678,
-0.186676025390625,
-0.08325698971748352,
0.08944110572338104,
-0.11933813989162445,
0.47314032912254333,
0.19445359706878662,
0.4173392355442047,
0.13744564354419708,
-0.34120863676071167,
0.11865588277578354,
0.22027073800563812,
-0.11760929971933365,
-0.0906217098236084,
-0.08339820802211761,
0.026315927505493164,
-0.007502138614654541,
0.011133432388305664,
-0.06467564404010773,
-0.1218159943819046,
-0.14866086840629578,
0.28272706270217896,
0.29915162920951843,
0.014077405445277691,
-0.06252295523881912,
-0.04130103439092636,
0.3884653151035309,
0.03333572670817375,
0.12220015376806259,
0.06707706302404404,
-0.12220937013626099,
-0.19484007358551025,
0.02512003667652607,
0.22548842430114746,
0.015123970806598663,
0.007339969277381897,
0.22601835429668427,
-0.20794199407100677,
-0.03063138574361801,
0.0855664312839508,
0.08095228672027588,
-0.015454575419425964,
-0.03779614344239235,
0.318230539560318,
0.2082263082265854,
-0.22739243507385254,
-0.010917287319898605,
-0.21351565420627594,
0.006441447883844376,
-0.43348228931427,
-0.014500178396701813,
0.1997951716184616,
-0.1745171844959259,
-0.18838952481746674,
-0.10337115079164505,
-0.07705960422754288,
0.03165417164564133,
0.42039018869400024,
-0.09904835373163223,
0.0069200824946165085,
0.16041401028633118,
0.14945217967033386,
-0.039546675980091095,
0.3883468210697174,
-0.0608505941927433,
0.2706074118614197,
-0.03601642698049545,
-0.20368146896362305,
-0.3146767020225525,
0.013982534408569336,
0.004949849098920822,
0.23158279061317444,
-0.04331545531749725,
0.26917943358421326,
0.19868093729019165,
0.18238019943237305,
0.15785689651966095,
-0.7424671053886414,
0.17844121158123016,
0.19203560054302216,
-0.3083116412162781,
0.15659531950950623,
-0.5136473178863525,
0.054654285311698914,
0.08517592400312424,
-0.26372167468070984,
0.12382574379444122,
-0.09718365967273712,
0.16610324382781982,
-0.307181715965271,
0.1387903243303299,
0.2904856503009796,
0.011979594826698303,
0.44557344913482666,
-0.039091333746910095,
0.050132688134908676,
-0.10859294980764389,
-0.18914800882339478,
-0.17612329125404358,
0.07242447882890701,
-0.28602084517478943,
0.3711415231227875,
-0.011962555348873138,
0.34973543882369995,
-0.007432090118527412,
-0.6126013398170471,
-0.05622962862253189,
0.03822309523820877,
-0.0363653227686882,
-0.17978131771087646,
-0.14237259328365326,
0.04531647264957428,
0.008044391870498657,
0.1260032206773758,
-0.051701437681913376,
0.5538824796676636,
-0.013489924371242523,
0.025504523888230324,
-0.4015306234359741,
-0.240497887134552,
0.42378896474838257,
-0.3748001158237457,
-0.08886988461017609,
0.1729549914598465,
0.04793647676706314,
0.1492716670036316,
0.2755521237850189,
-0.47744762897491455,
-0.24408379197120667,
0.42743444442749023,
-0.08029957860708237,
-0.2410627156496048,
0.42797866463661194,
0.26435336470603943,
-0.019450198858976364,
-0.04439045861363411,
0.23728084564208984,
-0.0862746611237526,
-0.2335108518600464,
-0.04993373528122902,
-0.2519136071205139
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | If `to_tf_dataset` can be unbatched, then it should be fairly easy for users to convert the TF dataset to TFRecords right ? | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 22 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
If `to_tf_dataset` can be unbatched, then it should be fairly easy for users to convert the TF dataset to TFRecords right ? | [
-0.19158858060836792,
-0.3452412486076355,
-0.1851748377084732,
0.33419305086135864,
0.21170924603939056,
0.14207971096038818,
0.1280040591955185,
0.6166422963142395,
-0.33440226316452026,
0.02891974151134491,
-0.22360369563102722,
0.5038834810256958,
0.0003141304478049278,
-0.21968400478363037,
0.028673797845840454,
-0.0698884055018425,
0.02579609304666519,
0.0037665441632270813,
-0.161873459815979,
-0.05550733208656311,
-0.08373923599720001,
0.1185835674405098,
0.0074800848960876465,
0.029467716813087463,
-0.1271766722202301,
0.02742105908691883,
0.13022707402706146,
0.20102444291114807,
0.1106269508600235,
0.021987419575452805,
0.14047521352767944,
0.05758598446846008,
-0.07354901731014252,
0.3535352647304535,
-0.00010367105278419331,
0.35282570123672485,
0.004412088543176651,
0.010830653831362724,
0.029679428786039352,
-0.0410468727350235,
-0.20423582196235657,
-0.030815690755844116,
-0.12079054117202759,
-0.27614113688468933,
-0.12237821519374847,
-0.026405416429042816,
-0.020028715953230858,
-0.282988965511322,
0.3863565921783447,
0.4273035526275635,
0.22944414615631104,
0.3779018819332123,
0.10396987199783325,
0.23658376932144165,
0.353610098361969,
-0.17972691357135773,
-0.2809034287929535,
0.17507968842983246,
-0.09530143439769745,
0.11942625045776367,
0.011197209358215332,
0.1821061223745346,
-0.05205230414867401,
0.1180260181427002,
0.16340577602386475,
-0.040452200919389725,
-0.20006665587425232,
-0.383088618516922,
-0.150223046541214,
0.5850632190704346,
0.15793673694133759,
-0.1820032298564911,
-0.345418781042099,
-0.1411038488149643,
-0.04903334751725197,
-0.12318792939186096,
0.0586608424782753,
-0.3463680148124695,
0.01287965476512909,
0.18625424802303314,
0.1686532348394394,
-0.05160883069038391,
-0.3897349536418915,
0.1512744128704071,
-0.14089801907539368,
0.15659171342849731,
-0.04314341023564339,
0.03718753159046173,
0.01833893358707428,
-0.010755293071269989,
0.34990277886390686,
-0.04802738130092621,
0.21936990320682526,
-0.006781666539609432,
-0.3599050045013428,
-0.2265278846025467,
0.07368822395801544,
-0.2567739486694336,
-0.008649598807096481,
-0.04090362787246704,
0.43656229972839355,
0.319400429725647,
-0.08679444342851639,
0.13781815767288208,
-0.42864787578582764,
-0.35029658675193787,
-0.15675196051597595,
-0.30757835507392883,
0.2782444655895233,
-0.3439667522907257,
-0.12749749422073364,
0.043892282992601395,
-0.1690000742673874,
-0.1982364058494568,
-0.28511059284210205,
-0.23465463519096375,
0.17388662695884705,
-0.00493612140417099,
-0.5047570466995239,
0.009794805198907852,
0.04597024619579315,
-0.08059526234865189,
0.07089322060346603,
-0.016491346061229706,
0.09192313253879547,
0.1956312656402588,
0.18938221037387848,
-0.08315621316432953,
-0.22803953289985657,
-0.10960805416107178,
-0.12196911126375198,
-0.14460283517837524,
0.1067117303609848,
0.009137960150837898,
-0.18832337856292725,
-0.07391518354415894,
0.07632235437631607,
-0.03922257944941521,
0.1802697777748108,
0.4403446912765503,
0.27966412901878357,
-0.18211853504180908,
-0.023125000298023224,
-0.026333827525377274,
-0.3373927175998688,
-0.17021703720092773,
0.16658176481723785,
0.36453622579574585,
-0.2054576575756073,
0.02318413183093071,
-0.4431433081626892,
-0.37368589639663696,
-0.08798256516456604,
0.20028603076934814,
-0.0944969579577446,
-0.39372047781944275,
-0.20547211170196533,
0.44529634714126587,
0.03799434006214142,
-0.13802634179592133,
0.014669865369796753,
-0.4358949065208435,
-0.46690964698791504,
-0.39212438464164734,
0.11836936324834824,
0.011217720806598663,
-0.5461258888244629,
0.17950952053070068,
0.05993885174393654,
-0.0965414047241211,
0.0513765886425972,
0.2550535798072815,
-0.18360525369644165,
0.14484134316444397,
-0.04408203065395355,
0.10332119464874268,
0.8767396807670593,
-0.19020430743694305,
-0.1312015801668167,
0.21820761263370514,
-0.16959205269813538,
0.1540219783782959,
-0.023920506238937378,
0.12495763599872589,
-0.006038317456841469,
-0.26044201850891113,
0.23397041857242584,
0.2781655192375183,
-0.05379287153482437,
-0.03229832649230957,
-0.3141493797302246,
-0.16209447383880615,
-0.026904508471488953,
0.17781110107898712,
-0.2741718590259552,
-0.249332994222641,
0.025037109851837158,
-0.13081175088882446,
0.13885560631752014,
-0.14595413208007812,
-0.031206147745251656,
0.14811572432518005,
0.26204735040664673,
0.2965966463088989,
-0.06527068465948105,
-0.15398690104484558,
-0.2501506209373474,
0.22482705116271973,
0.22481513023376465,
0.03780274838209152,
0.33279556035995483,
-0.18482384085655212,
0.12692072987556458,
-0.006382565945386887,
0.12110114097595215,
0.17590360343456268,
0.2039482593536377,
-0.1318650245666504,
0.1517014354467392,
0.07076883316040039,
-0.39765703678131104,
-0.04780207574367523,
-0.696351170539856,
0.005779697559773922,
0.022780397906899452,
0.3172796368598938,
0.24376757442951202,
-0.027526970952749252,
-0.05230060592293739,
0.171530082821846,
-0.4281027019023895,
-0.3118758797645569,
-0.10791260749101639,
0.3023594617843628,
-0.1883517950773239,
-0.030125737190246582,
0.08926026523113251,
0.6759780645370483,
0.07576165348291397,
0.12136948108673096,
-0.10415982455015182,
0.20059312880039215,
-0.15140771865844727,
0.04208981990814209,
-0.06585118919610977,
0.5673957467079163,
0.229516863822937,
0.112436942756176,
0.04638189077377319,
-0.18396295607089996,
0.0715375617146492,
0.14032159745693207,
0.006378805264830589,
0.10111130774021149,
0.033073488622903824,
-0.22123007476329803,
0.18559326231479645,
0.0014638397842645645,
-0.4890790581703186,
0.45558375120162964,
0.7142850160598755,
0.06744047999382019,
-0.12037650495767593,
0.253207802772522,
-0.0030316486954689026,
-0.08604814112186432,
0.11490676552057266,
0.2233225256204605,
0.4619765281677246,
0.29817262291908264,
0.15533649921417236,
-0.17594681680202484,
-0.15594235062599182,
-0.239820659160614,
0.29709863662719727,
-0.07974062860012054,
0.4309021234512329,
-0.007268674671649933,
-0.029956979677081108,
0.17448589205741882,
-0.22731107473373413,
-0.4832979738712311,
-0.05546700209379196,
0.2254333198070526,
-0.25473687052726746,
-0.04946726933121681,
-0.18926064670085907,
-0.2759367525577545,
-0.11871939897537231,
0.17347460985183716,
-0.13822610676288605,
-0.2949874997138977,
0.07434916496276855,
0.21119019389152527,
-0.002175314351916313,
-0.08083194494247437,
-0.1782635897397995,
0.20052185654640198,
0.3782999813556671,
-0.3044573664665222,
-0.31742337346076965,
0.08604689687490463,
-0.2379210889339447,
0.18663690984249115,
0.4308347702026367,
-0.07937604933977127,
0.30139172077178955,
0.01763986237347126,
0.12600557506084442,
-0.26912230253219604,
-0.42697465419769287,
0.10157444328069687,
-0.4914647936820984,
0.236821249127388,
0.09059535712003708,
0.3526538610458374,
-0.2062528431415558,
-0.008192617446184158,
0.15413644909858704,
-0.014367787167429924,
-0.05721592903137207,
-0.0549614392220974,
-0.04563805088400841,
-0.053517647087574005,
0.04982231929898262,
-0.2610161602497101,
-0.055968038737773895,
-0.435369074344635,
0.17802076041698456,
-0.016072571277618408,
0.18311822414398193,
0.006062464322894812,
0.13202495872974396,
0.5251675248146057,
0.17886091768741608,
0.22561024129390717,
-0.07474816590547562,
-0.5602023005485535,
0.3945589065551758,
-0.20857226848602295,
-0.32089948654174805,
-0.08252743631601334,
0.2119280993938446,
0.2268202006816864,
0.24718239903450012,
-0.44780778884887695,
-0.45878085494041443,
-0.23224349319934845,
0.3239872455596924,
-0.1170596331357956,
-0.13050568103790283,
0.11762627959251404,
-0.03520021215081215,
-0.16546323895454407,
-0.14125537872314453,
0.36871635913848877,
-0.07685372978448868,
0.006777079775929451,
-0.016179159283638,
0.3247787058353424,
0.18757590651512146,
0.3342758119106293,
0.6630262136459351,
0.16049496829509735,
-0.3221713900566101,
0.06389789283275604,
-0.22054742276668549,
0.015947937965393066,
-0.2507563531398773,
-0.02994599938392639,
0.20816859602928162,
-0.0594182014465332,
0.3251644968986511,
0.32982826232910156,
-0.07219510525465012,
0.1280801147222519,
0.04932026565074921,
0.21090863645076752,
0.02036687731742859,
-0.25693708658218384,
0.4112781286239624,
-0.2169596254825592,
0.11450695246458054,
-0.008490942418575287,
-0.058420486748218536,
-0.04127262160181999,
-0.2125418782234192,
0.22332894802093506,
0.3207276463508606,
0.3209148049354553,
-0.01964910700917244,
-0.12102678418159485,
0.08754757046699524,
-0.3824159801006317,
0.3816359043121338,
0.1343328356742859,
-0.06607171893119812,
0.012096773833036423,
-0.19641339778900146,
0.0499638170003891,
-0.0555388517677784,
0.4114610552787781,
-0.2700909674167633,
-0.2733367085456848,
0.20996329188346863,
-0.09544631093740463,
-0.3788776397705078,
0.08729557693004608,
-0.2066570669412613,
0.06903132796287537,
0.1619776487350464,
0.38650625944137573,
-0.22316604852676392,
-0.6511136293411255,
0.018907763063907623,
-0.011918491683900356,
-0.02289757691323757,
0.10586242377758026,
-0.09933499246835709,
-0.03539085388183594,
-0.07266221940517426,
-0.07748562842607498,
-0.19544607400894165,
-0.0662132278084755,
-0.2739812135696411,
-0.09602759778499603,
-0.21248023211956024,
-0.05607433617115021,
0.34266072511672974,
0.15107502043247223,
-0.03267282620072365,
0.13394615054130554,
-0.09312950074672699,
-0.05573788285255432,
-0.053337857127189636,
0.4987826347351074,
0.22682808339595795,
0.0415668785572052,
-0.4964222311973572,
-0.19479656219482422,
0.25814229249954224,
0.07895445823669434,
0.2378179430961609,
-0.15608923137187958,
0.0852402001619339,
-0.3688546419143677,
0.23790717124938965,
-0.008750730194151402,
0.33516791462898254,
0.2711202800273895,
0.10107579082250595,
-0.20461560785770416,
-0.4390373229980469,
0.4019455909729004,
0.11875934898853302,
0.13102997839450836,
0.5220663547515869,
0.34273672103881836,
-0.2301184982061386,
0.23351585865020752,
0.3705199956893921,
0.909196674823761,
-0.19112615287303925,
0.3100816011428833,
0.5556939840316772,
0.22838075459003448,
0.4792881906032562,
-0.3540998101234436,
-0.007429338991641998,
-0.12845632433891296,
-0.2609097957611084,
-0.031226538121700287,
0.06327112019062042,
0.03964303433895111,
0.03225737810134888,
0.03894290700554848,
0.009593174792826176,
0.3738735318183899,
0.04380093887448311,
-0.05638057738542557,
0.2477688193321228,
-0.01754140295088291,
-0.15499691665172577,
0.02337072417140007,
0.24469897150993347,
0.008775323629379272,
-0.17427894473075867,
0.0030480027198791504,
-0.28591829538345337,
-0.5337049961090088,
0.33228856325149536,
0.06819070875644684,
-0.1697055697441101,
-0.4492090940475464,
0.3013448715209961,
-0.2956218719482422,
-0.35898810625076294,
0.21608151495456696,
0.3012189567089081,
0.15995867550373077,
-0.17297083139419556,
-0.30585506558418274,
-0.13408876955509186,
0.18805433809757233,
-0.07245569676160812,
0.1380157470703125,
-0.3366136848926544,
0.5755782127380371,
-0.00019996985793113708,
0.14928865432739258,
0.04048243165016174,
0.03426153585314751,
-0.3092559576034546,
-0.14554160833358765,
-0.06093950569629669,
0.0581793338060379,
-0.2629917562007904,
-0.4280627369880676,
0.05829048156738281,
-0.48993706703186035,
0.07393355667591095,
0.2138446867465973,
-0.004682645201683044,
0.08020301163196564,
0.015402138233184814,
0.15030567348003387,
-0.165534108877182,
0.07140230387449265,
0.012863822281360626,
-0.04232233762741089,
-0.06447827816009521,
0.021574515849351883,
-0.16001014411449432,
-0.1988755315542221,
-0.15735000371932983,
0.3872896432876587,
0.16255024075508118,
-0.16641345620155334,
0.09231971949338913,
0.0449334979057312,
0.18596507608890533,
-0.097865030169487,
0.03428761661052704,
-0.007999643683433533,
-0.067166768014431,
-0.20028313994407654,
0.012256935238838196,
-0.2556670606136322,
0.2507760524749756,
0.0059026628732681274,
0.2515021860599518,
-0.49905115365982056,
0.08188940584659576,
-0.14049814641475677,
-0.2067011296749115,
-0.4261631667613983,
0.2347516268491745,
0.28581303358078003,
0.057050835341215134,
0.3615029454231262,
0.0523969866335392,
0.24932768940925598,
0.18782217800617218,
0.18026411533355713,
0.19306358695030212,
-0.4092978835105896,
-0.33620110154151917,
-0.10494887828826904,
0.08618626743555069,
0.0250297449529171,
-0.3259637653827667,
0.19387510418891907,
-0.08195029199123383,
-0.27841436862945557,
-0.210322767496109,
0.028917409479618073,
-0.11240662634372711,
-0.22110547125339508,
-0.04620186612010002,
0.0983511209487915,
0.17014753818511963,
0.10267768800258636,
0.018519409000873566,
0.07279831171035767,
0.33284926414489746,
-0.12141188979148865,
0.25800246000289917,
-0.1489618420600891,
-0.19185897707939148,
-0.03809722140431404,
0.2723284959793091,
0.14443714916706085,
-0.09337785094976425,
0.16759827733039856,
0.012716453522443771,
-0.038055747747421265,
0.10979524254798889,
0.24255520105361938,
0.5247286558151245,
-0.2113524228334427,
0.032534241676330566,
0.1724289059638977,
0.2537679970264435,
0.09110629558563232,
0.07509441673755646,
0.2874089181423187,
-0.059623584151268005,
0.09990300238132477,
0.11044850200414658,
-0.028409210965037346,
0.4020562767982483,
-0.033147551119327545,
-0.23349937796592712,
-0.017786331474781036,
-0.37871962785720825,
0.11262159049510956,
0.11416837573051453,
0.11548151075839996,
-0.013580303639173508,
0.09734243899583817,
-0.008555334061384201,
0.18746711313724518,
0.34787094593048096,
0.11084750294685364,
0.37943947315216064,
0.07090422511100769,
-0.06018504127860069,
0.013458296656608582,
-0.19908806681632996,
-0.06816521286964417,
0.051407963037490845,
-0.08445335924625397,
0.45188358426094055,
0.22258305549621582,
0.3660436272621155,
0.12615624070167542,
-0.3336506485939026,
0.1853531450033188,
0.2434566766023636,
-0.11182229965925217,
-0.11627064645290375,
-0.09361842274665833,
0.04798731952905655,
0.008181050419807434,
-0.01328062079846859,
-0.11541827023029327,
-0.1147170215845108,
-0.15925157070159912,
0.2901383638381958,
0.32891717553138733,
0.09210527688264847,
-0.0639369934797287,
-0.055439576506614685,
0.36077916622161865,
0.05689318850636482,
0.12722574174404144,
0.05981835722923279,
-0.07458548247814178,
-0.18880191445350647,
0.005042718723416328,
0.22273539006710052,
0.04082048311829567,
0.006002866663038731,
0.22853416204452515,
-0.1562449038028717,
-0.05048098415136337,
0.09678539633750916,
0.08245545625686646,
-0.056338295340538025,
-0.01038074865937233,
0.3356291651725769,
0.1823570430278778,
-0.20354630053043365,
-0.002879250794649124,
-0.20401187241077423,
0.027223583310842514,
-0.4327831566333771,
-0.03254220634698868,
0.15893612802028656,
-0.15414613485336304,
-0.1326071172952652,
-0.08473672717809677,
-0.10990763455629349,
0.04553580284118652,
0.3827527165412903,
-0.10700546950101852,
0.04300012066960335,
0.1937006413936615,
0.1298532485961914,
0.069680355489254,
0.32756057381629944,
-0.0004663988947868347,
0.22709310054779053,
-0.015007118694484234,
-0.1662873476743698,
-0.34123682975769043,
-0.010675482451915741,
0.0962601900100708,
0.24720248579978943,
-0.009111471474170685,
0.28742286562919617,
0.1818346381187439,
0.17500442266464233,
0.15592993795871735,
-0.8117102384567261,
0.18894681334495544,
0.17696645855903625,
-0.2799588441848755,
0.1789056956768036,
-0.46796196699142456,
0.01400698907673359,
0.058542400598526,
-0.248610258102417,
0.08835376799106598,
-0.05738936364650726,
0.12492237240076065,
-0.30732059478759766,
0.16639767587184906,
0.2692105174064636,
0.024268584325909615,
0.43460333347320557,
-0.03201920539140701,
0.014765501022338867,
-0.1078391820192337,
-0.15592074394226074,
-0.1515621542930603,
0.07670024037361145,
-0.2794443666934967,
0.4071078896522522,
-0.062335435301065445,
0.31946706771850586,
-0.057619623839855194,
-0.6761414408683777,
-0.023862063884735107,
0.028101272881031036,
-0.028882930055260658,
-0.14475758373737335,
-0.15903325378894806,
0.07319363206624985,
-0.04939061030745506,
0.11956552416086197,
-0.05326399207115173,
0.562057614326477,
0.004150304943323135,
0.07341869920492172,
-0.38682955503463745,
-0.23246096074581146,
0.46370187401771545,
-0.3483579456806183,
-0.10319419205188751,
0.23207037150859833,
0.013400323688983917,
0.19264283776283264,
0.26373931765556335,
-0.43022775650024414,
-0.22462034225463867,
0.455028772354126,
-0.1359361708164215,
-0.22861412167549133,
0.4188915491104126,
0.2585636377334595,
-0.04667535051703453,
-0.07714373618364334,
0.22958707809448242,
-0.07674295455217361,
-0.2273559272289276,
-0.03600157052278519,
-0.2829938232898712
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | > If to_tf_dataset can be unbatched, then it should be fairly easy for users to convert the TF dataset to TFRecords right ?
Sort of! A `tf.data.Dataset` is more like an iterator, and does not support sample indexing. `to_tf_dataset()` creates an iterator, but to convert that to `TFRecord`, the user would have to iterate over the whole thing and manually save the stream of samples to files. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 67 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
> If to_tf_dataset can be unbatched, then it should be fairly easy for users to convert the TF dataset to TFRecords right ?
Sort of! A `tf.data.Dataset` is more like an iterator, and does not support sample indexing. `to_tf_dataset()` creates an iterator, but to convert that to `TFRecord`, the user would have to iterate over the whole thing and manually save the stream of samples to files. | [
-0.2197135090827942,
-0.31706297397613525,
-0.1883411854505539,
0.2767757773399353,
0.1667056530714035,
0.14267495274543762,
0.16800734400749207,
0.6147660613059998,
-0.2690677344799042,
0.09936442971229553,
-0.1987474113702774,
0.5110944509506226,
-0.03801554813981056,
-0.21571753919124603,
0.0580672062933445,
-0.10694810748100281,
-0.012986771762371063,
0.041852060705423355,
-0.18840205669403076,
-0.056370705366134644,
-0.06584002077579498,
0.06149354577064514,
-0.010717056691646576,
0.02445904165506363,
-0.06292074173688889,
-0.013707416132092476,
0.13718706369400024,
0.12787683308124542,
0.1342981606721878,
-0.05317692086100578,
0.09981365501880646,
0.05943721905350685,
-0.07457385957241058,
0.3762069642543793,
-0.000101100915344432,
0.3630843162536621,
0.0009695664048194885,
-0.004596177488565445,
-0.004870804026722908,
-0.08939529955387115,
-0.15440014004707336,
-0.006457229144871235,
-0.14107805490493774,
-0.32208991050720215,
-0.14049383997917175,
-0.08454228937625885,
0.037499427795410156,
-0.27831465005874634,
0.363037109375,
0.41178396344184875,
0.25497564673423767,
0.4224203824996948,
0.09082922339439392,
0.21750463545322418,
0.37101319432258606,
-0.1459968239068985,
-0.26425647735595703,
0.14948956668376923,
-0.040919557213783264,
0.1309943050146103,
-0.01564805954694748,
0.16674944758415222,
-0.06613031029701233,
0.11573900282382965,
0.13604646921157837,
-0.037012990564107895,
-0.19513025879859924,
-0.38771310448646545,
-0.19022175669670105,
0.5546519160270691,
0.1590811312198639,
-0.1828235685825348,
-0.35720232129096985,
-0.13865751028060913,
-0.07715003937482834,
-0.10778234153985977,
0.01810934767127037,
-0.32959499955177307,
-0.00997759960591793,
0.16141590476036072,
0.17846576869487762,
0.019410524517297745,
-0.38061806559562683,
0.14632317423820496,
-0.10787482559680939,
0.16768532991409302,
-0.03807010501623154,
0.06338939815759659,
0.04859987646341324,
-0.014326747506856918,
0.34511810541152954,
-0.055327899754047394,
0.2392255663871765,
-0.00029404833912849426,
-0.36019909381866455,
-0.2627941370010376,
0.15758192539215088,
-0.36542564630508423,
0.007158573716878891,
-0.01461920514702797,
0.46626144647598267,
0.33192527294158936,
-0.03029518574476242,
0.12544503808021545,
-0.364485502243042,
-0.3181203007698059,
-0.15361544489860535,
-0.26013725996017456,
0.26194849610328674,
-0.3223514258861542,
-0.13206171989440918,
0.03305874764919281,
-0.1325540989637375,
-0.17453576624393463,
-0.21904216706752777,
-0.22985386848449707,
0.1398819386959076,
0.03590698167681694,
-0.46877193450927734,
-0.024449296295642853,
0.0062703900039196014,
-0.07627946883440018,
0.11827853322029114,
0.029813457280397415,
0.1077541932463646,
0.13624286651611328,
0.13516680896282196,
-0.13193488121032715,
-0.2156984508037567,
-0.08590574562549591,
-0.15075361728668213,
-0.12031601369380951,
0.10108624398708344,
0.02008269727230072,
-0.13976727426052094,
-0.1103442907333374,
0.12798410654067993,
-0.0634608268737793,
0.17008960247039795,
0.44909459352493286,
0.35840359330177307,
-0.20507925748825073,
0.040463000535964966,
0.007640037685632706,
-0.2838950753211975,
-0.13483308255672455,
0.12025108933448792,
0.3148845434188843,
-0.2502234876155853,
0.01634090021252632,
-0.4287866950035095,
-0.4097468852996826,
-0.015369696542620659,
0.21932272613048553,
-0.11798194795846939,
-0.37305963039398193,
-0.17653384804725647,
0.43377119302749634,
0.041340477764606476,
-0.13610602915287018,
0.001136288046836853,
-0.40565210580825806,
-0.4710313379764557,
-0.4120778739452362,
0.13988801836967468,
0.03585630655288696,
-0.47425931692123413,
0.19896912574768066,
0.022194892168045044,
-0.09518343210220337,
0.07824632525444031,
0.21794168651103973,
-0.2403719127178192,
0.217085599899292,
-0.0673949271440506,
0.179488405585289,
0.8352274298667908,
-0.18181604146957397,
-0.16052573919296265,
0.20864595472812653,
-0.1826370656490326,
0.14275580644607544,
-0.0053563192486763,
0.14590869843959808,
0.03795626387000084,
-0.2690994143486023,
0.19978827238082886,
0.2808012366294861,
-0.05562213808298111,
-0.019971419125795364,
-0.2820447087287903,
-0.0946875661611557,
-0.030460737645626068,
0.20511385798454285,
-0.2887297570705414,
-0.23585733771324158,
0.016570478677749634,
-0.13042667508125305,
0.1586913764476776,
-0.18728134036064148,
-0.018877362832427025,
0.1491902768611908,
0.2845178246498108,
0.2747279405593872,
-0.04754296690225601,
-0.18553858995437622,
-0.1952492892742157,
0.2394181191921234,
0.21366162598133087,
0.006942089647054672,
0.3101198375225067,
-0.19097234308719635,
0.12623822689056396,
0.03254044055938721,
0.11340737342834473,
0.14950846135616302,
0.22216558456420898,
-0.1110185831785202,
0.14596809446811676,
0.03817849978804588,
-0.43342724442481995,
-0.06619106978178024,
-0.6534585952758789,
-0.045401401817798615,
-0.02562098577618599,
0.2913529574871063,
0.23038341104984283,
-0.04275977611541748,
-0.030945125967264175,
0.15709003806114197,
-0.4548453390598297,
-0.34463271498680115,
-0.0730213150382042,
0.30465152859687805,
-0.15327821671962738,
-0.06343656778335571,
0.12067421525716782,
0.6148321628570557,
0.04044725373387337,
0.07499013841152191,
-0.11167777329683304,
0.20041294395923615,
-0.10678960382938385,
0.03510572016239166,
-0.053089700639247894,
0.5733813047409058,
0.17327727377414703,
0.15350590646266937,
0.06403671950101852,
-0.18393418192863464,
0.09630337357521057,
0.13565242290496826,
-0.00025259237736463547,
0.0988236516714096,
0.034619443118572235,
-0.19827865064144135,
0.21477237343788147,
-0.009941557422280312,
-0.5139468908309937,
0.46764934062957764,
0.6674816608428955,
0.07341200113296509,
-0.09356137365102768,
0.23004981875419617,
-0.006628386676311493,
-0.07364802062511444,
0.10732762515544891,
0.2063850611448288,
0.47026002407073975,
0.30959486961364746,
0.18340352177619934,
-0.21441499888896942,
-0.12205364555120468,
-0.22839893400669098,
0.28401651978492737,
-0.09844125807285309,
0.353698194026947,
0.03981376439332962,
-0.023138483986258507,
0.13115638494491577,
-0.22886353731155396,
-0.5093361735343933,
-0.06585675477981567,
0.24397842586040497,
-0.22981898486614227,
-0.006050022318959236,
-0.1610630452632904,
-0.26275885105133057,
-0.0843534767627716,
0.17716605961322784,
-0.08235099911689758,
-0.3009333908557892,
0.07922761142253876,
0.2602309286594391,
-0.06052331626415253,
-0.07951752841472626,
-0.16030113399028778,
0.19821520149707794,
0.3855142593383789,
-0.30097153782844543,
-0.2722667455673218,
0.0694107860326767,
-0.21031689643859863,
0.1971541792154312,
0.3781379759311676,
-0.03843894600868225,
0.336838960647583,
0.028195111081004143,
0.10712767392396927,
-0.2525008022785187,
-0.3931494355201721,
0.09630866348743439,
-0.46689409017562866,
0.2554217576980591,
0.12124115973711014,
0.344852089881897,
-0.15947456657886505,
-0.06890028715133667,
0.14169616997241974,
-0.02784990891814232,
-0.09227145463228226,
-0.02333439514040947,
-0.03947950527071953,
-0.05748586356639862,
0.015633564442396164,
-0.28283509612083435,
-0.05982852727174759,
-0.452355295419693,
0.15546369552612305,
-0.011479908600449562,
0.23319360613822937,
0.03659748286008835,
0.13034439086914062,
0.5425955057144165,
0.16626060009002686,
0.18603284657001495,
-0.08779691159725189,
-0.5430755615234375,
0.4187104403972626,
-0.26077333092689514,
-0.32469338178634644,
-0.11039486527442932,
0.16058366000652313,
0.1852138489484787,
0.2682235836982727,
-0.45415228605270386,
-0.4311821758747101,
-0.2405061572790146,
0.3009974956512451,
-0.10262079536914825,
-0.09881363809108734,
0.11917579174041748,
-0.01690838113427162,
-0.18831582367420197,
-0.16791266202926636,
0.3673229217529297,
-0.014138378202915192,
0.01686893217265606,
-0.0031149834394454956,
0.30996912717819214,
0.1854497194290161,
0.321031391620636,
0.7298734784126282,
0.16534458100795746,
-0.33122268319129944,
0.08540019392967224,
-0.24191373586654663,
-0.004160892218351364,
-0.27351513504981995,
-0.07773128896951675,
0.16502130031585693,
-0.03110477328300476,
0.2779262661933899,
0.30504611134529114,
-0.10474041849374771,
0.06017015129327774,
0.04997687041759491,
0.24194630980491638,
0.04059340059757233,
-0.27700355648994446,
0.43029502034187317,
-0.15939243137836456,
0.12712931632995605,
-0.02532496117055416,
-0.01826518028974533,
-0.10728560388088226,
-0.202284574508667,
0.18379224836826324,
0.2568184733390808,
0.3216474950313568,
-0.022927841171622276,
-0.16561385989189148,
0.09709956496953964,
-0.4584493637084961,
0.3252267837524414,
0.15735028684139252,
-0.04394620656967163,
0.018820423632860184,
-0.2463940978050232,
0.06387246400117874,
-0.05596647039055824,
0.424751877784729,
-0.2751801908016205,
-0.2296939343214035,
0.2230978161096573,
-0.11472947150468826,
-0.364198237657547,
0.10331694781780243,
-0.21483248472213745,
0.145211860537529,
0.11898349225521088,
0.36786919832229614,
-0.23246732354164124,
-0.6094894409179688,
0.052456557750701904,
0.0007365254568867385,
-0.022376639768481255,
0.0719541385769844,
-0.1244170069694519,
-0.09943734109401703,
-0.033412691205739975,
-0.11451669782400131,
-0.18269211053848267,
-0.05190141499042511,
-0.219467893242836,
-0.11027869582176208,
-0.2304261177778244,
-0.06647397577762604,
0.3289684057235718,
0.17833267152309418,
0.011223390698432922,
0.1325267255306244,
-0.04909537360072136,
-0.019548267126083374,
-0.021810464560985565,
0.455412358045578,
0.21432563662528992,
0.014051580801606178,
-0.417948842048645,
-0.171585351228714,
0.21383024752140045,
0.07204753160476685,
0.23886233568191528,
-0.15075066685676575,
0.12405714392662048,
-0.39607009291648865,
0.2316882312297821,
-0.035688623785972595,
0.37424057722091675,
0.2524125277996063,
0.09409069269895554,
-0.17779117822647095,
-0.46404775977134705,
0.4181418716907501,
0.07584208250045776,
0.0901242196559906,
0.5478172302246094,
0.2680639624595642,
-0.2378067523241043,
0.2833382487297058,
0.35961875319480896,
0.8977348804473877,
-0.15898467600345612,
0.288803368806839,
0.5624356269836426,
0.2766490578651428,
0.46524912118911743,
-0.3104427456855774,
0.04850073903799057,
-0.10550899803638458,
-0.32534241676330566,
-0.026280691847205162,
0.024750810116529465,
-0.026517584919929504,
0.057920437306165695,
0.02038564160466194,
0.016897881403565407,
0.32655006647109985,
0.04804164543747902,
-0.10246407985687256,
0.26697656512260437,
0.0028360290452837944,
-0.15264005959033966,
0.08016747236251831,
0.2539699375629425,
0.04091312736272812,
-0.1381983458995819,
0.016166947782039642,
-0.3028299808502197,
-0.5103105306625366,
0.34543782472610474,
0.04556497931480408,
-0.16622966527938843,
-0.43537649512290955,
0.3184211850166321,
-0.30923348665237427,
-0.33707332611083984,
0.1736159473657608,
0.2587469518184662,
0.1439237892627716,
-0.19334284961223602,
-0.27122437953948975,
-0.12289237976074219,
0.20679894089698792,
-0.05224713310599327,
0.14023840427398682,
-0.3163645565509796,
0.5993539094924927,
0.0014177672564983368,
0.11596212536096573,
0.07888109236955643,
0.027307800948619843,
-0.3559091091156006,
-0.10779193043708801,
-0.023438937962055206,
0.03983619809150696,
-0.2640957832336426,
-0.38861149549484253,
0.12689432501792908,
-0.4891930818557739,
0.07288193702697754,
0.22177083790302277,
-0.010247647762298584,
0.06741400808095932,
0.0657445415854454,
0.10093808174133301,
-0.1650961935520172,
0.0973532497882843,
-0.026541627943515778,
-0.04209151864051819,
0.020556941628456116,
0.0677710473537445,
-0.16035209596157074,
-0.20549969375133514,
-0.18288317322731018,
0.31661996245384216,
0.1981724053621292,
-0.16086885333061218,
0.14161409437656403,
-0.010709886439144611,
0.19929905235767365,
-0.09134029597043991,
0.053584687411785126,
-0.02845967561006546,
-0.060550861060619354,
-0.2587023675441742,
0.005210988223552704,
-0.2747208774089813,
0.23659072816371918,
0.03414518013596535,
0.27797171473503113,
-0.5410122871398926,
0.09420447051525116,
-0.15469296276569366,
-0.18644124269485474,
-0.45271679759025574,
0.17636413872241974,
0.22360315918922424,
0.08330859243869781,
0.3636680543422699,
0.05242755636572838,
0.22684802114963531,
0.1893659383058548,
0.19829781353473663,
0.16944833099842072,
-0.43890243768692017,
-0.3569672107696533,
-0.09279772639274597,
0.07272829860448837,
-0.007987547665834427,
-0.31754934787750244,
0.18575166165828705,
-0.07126080989837646,
-0.30703645944595337,
-0.22959548234939575,
0.03482741490006447,
-0.12019406259059906,
-0.2154822200536728,
-0.051015548408031464,
0.07724405825138092,
0.1860015094280243,
0.08239901065826416,
0.04116138070821762,
0.05862554907798767,
0.28891193866729736,
-0.11121613532304764,
0.28359556198120117,
-0.17302767932415009,
-0.222633957862854,
-0.026083216071128845,
0.2528599202632904,
0.1409359872341156,
-0.14029088616371155,
0.19388645887374878,
0.025673944503068924,
-0.028838209807872772,
0.12596926093101501,
0.2268523871898651,
0.5590149164199829,
-0.20459093153476715,
0.024905407801270485,
0.12569576501846313,
0.28087982535362244,
0.058809034526348114,
0.11275584250688553,
0.2205943614244461,
0.0192713625729084,
0.16080912947654724,
0.09645965695381165,
-0.03023211844265461,
0.38796380162239075,
-0.09117734432220459,
-0.21928063035011292,
-0.01835152506828308,
-0.30948835611343384,
0.0694587230682373,
0.13682010769844055,
0.12196367979049683,
-0.026416484266519547,
0.09798288345336914,
0.0018426962196826935,
0.21882304549217224,
0.36499857902526855,
0.08511396497488022,
0.4691384732723236,
0.09101514518260956,
-0.06388987600803375,
-0.005502656102180481,
-0.18386335670948029,
-0.01495671272277832,
0.09958770871162415,
-0.031146973371505737,
0.47002872824668884,
0.25233057141304016,
0.3620801866054535,
0.08567044138908386,
-0.3043195903301239,
0.1631350815296173,
0.23389457166194916,
-0.09028507024049759,
-0.14371535181999207,
-0.13805292546749115,
0.04005516320466995,
-0.03980112075805664,
-0.02606932818889618,
-0.054843608289957047,
-0.12153048813343048,
-0.19043540954589844,
0.25204232335090637,
0.28998884558677673,
0.03372960537672043,
-0.06050935387611389,
-0.044824592769145966,
0.39350664615631104,
0.02926405891776085,
0.08992362767457962,
0.06091897562146187,
-0.11104181408882141,
-0.18381017446517944,
0.04456879943609238,
0.19053401052951813,
0.04611996188759804,
-0.022289790213108063,
0.27016937732696533,
-0.197488471865654,
-0.057883407920598984,
0.07189341634511948,
0.04744546487927437,
-0.09785772860050201,
-0.03515780344605446,
0.38274019956588745,
0.18112219870090485,
-0.2106289565563202,
-0.03431941941380501,
-0.16364514827728271,
0.036203302443027496,
-0.41915687918663025,
-0.0858101174235344,
0.15982376039028168,
-0.14285951852798462,
-0.09042715281248093,
-0.10231900960206985,
-0.10288926959037781,
0.04042714461684227,
0.38613495230674744,
-0.18094904720783234,
0.05861521512269974,
0.19062204658985138,
0.14261849224567413,
-0.004295343533158302,
0.3506590723991394,
-0.029211994260549545,
0.22047066688537598,
-0.027226358652114868,
-0.16639381647109985,
-0.34108880162239075,
-0.006893180310726166,
0.06815887987613678,
0.23314446210861206,
0.010750128887593746,
0.3335167169570923,
0.14140459895133972,
0.18193994462490082,
0.12253377586603165,
-0.7422418594360352,
0.15178200602531433,
0.2267204225063324,
-0.2834864854812622,
0.14320991933345795,
-0.524634063243866,
0.04461152106523514,
0.05605752021074295,
-0.2830524444580078,
0.04606739804148674,
-0.15385234355926514,
0.16756200790405273,
-0.272047758102417,
0.1370300054550171,
0.310007244348526,
0.024732476100325584,
0.44385579228401184,
-0.054372526705265045,
-0.01369582861661911,
-0.10143782943487167,
-0.0952528640627861,
-0.14288635551929474,
0.06117265671491623,
-0.2983778119087219,
0.3454710841178894,
-0.015229057520627975,
0.28224724531173706,
-0.03697318211197853,
-0.5955543518066406,
-0.027817025780677795,
0.05506407842040062,
0.02044697105884552,
-0.181455597281456,
-0.16689182817935944,
0.06057707965373993,
-0.10151487588882446,
0.13351918756961823,
-0.03699670359492302,
0.5474227070808411,
-0.014166206121444702,
0.061308108270168304,
-0.3513990044593811,
-0.24314382672309875,
0.43756380677223206,
-0.3923434913158417,
-0.07602401077747345,
0.19672787189483643,
0.036523111164569855,
0.21832120418548584,
0.25926846265792847,
-0.42193400859832764,
-0.24108576774597168,
0.4594331681728363,
-0.12287680059671402,
-0.24333660304546356,
0.408457487821579,
0.2441813349723816,
-0.040484555065631866,
-0.0881761685013771,
0.22433564066886902,
-0.060412466526031494,
-0.22672735154628754,
-0.05370713025331497,
-0.2759603261947632
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Someone would like to try to dive into tfio to fix this ? Sounds like a good opportunity to learn what are the best ways to load a dataset for TF, and also the connections between Arrow and TF.
If we can at least have the Arrow `binary` type working for TF that would be awesome already (issue https://github.com/tensorflow/io/issues/1361)
also cc @nateraw in case you'd be interested ;) | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 68 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Someone would like to try to dive into tfio to fix this ? Sounds like a good opportunity to learn what are the best ways to load a dataset for TF, and also the connections between Arrow and TF.
If we can at least have the Arrow `binary` type working for TF that would be awesome already (issue https://github.com/tensorflow/io/issues/1361)
also cc @nateraw in case you'd be interested ;) | [
-0.19004784524440765,
-0.2709863781929016,
-0.16404575109481812,
0.3839750289916992,
0.2847211956977844,
0.12409123033285141,
0.1592927724123001,
0.6563934087753296,
-0.3040992319583893,
-0.03179715573787689,
-0.18088248372077942,
0.5398513674736023,
0.03200758993625641,
-0.10359114408493042,
0.028032027184963226,
-0.07838189601898193,
-0.05164986103773117,
0.0028931796550750732,
-0.1238967627286911,
-0.08446356654167175,
0.02483033388853073,
0.12048458307981491,
0.013220243155956268,
0.06716184318065643,
-0.22160589694976807,
0.019903307780623436,
0.14424289762973785,
0.25411519408226013,
0.06362902373075485,
-0.01034175418317318,
0.1986285150051117,
0.07010659575462341,
-0.14371800422668457,
0.3711537718772888,
-0.0001033159060170874,
0.3176729679107666,
0.15197476744651794,
0.04785978049039841,
0.06139563396573067,
-0.029092803597450256,
-0.14814147353172302,
0.010986804962158203,
-0.07439518719911575,
-0.20237967371940613,
-0.10061612725257874,
-0.13069458305835724,
-0.05517112463712692,
-0.20719197392463684,
0.3169404864311218,
0.38529735803604126,
0.2398597002029419,
0.36919718980789185,
0.1853332221508026,
0.19996468722820282,
0.394756942987442,
-0.09347356855869293,
-0.23857752978801727,
0.2096274048089981,
0.018525995314121246,
-0.04594027251005173,
-0.09375708550214767,
0.19458653032779694,
-0.06129048764705658,
0.13809268176555634,
0.14910408854484558,
-0.0359521210193634,
-0.1960628628730774,
-0.4058574140071869,
-0.15517356991767883,
0.6042625904083252,
0.1506187915802002,
-0.1093476191163063,
-0.30482807755470276,
-0.1600712686777115,
-0.10724315047264099,
-0.2213243842124939,
0.15401527285575867,
-0.35003793239593506,
-0.07404966652393341,
0.10986223816871643,
0.27701500058174133,
-0.020202267915010452,
-0.37535732984542847,
0.18132013082504272,
-0.08018340170383453,
0.12641313672065735,
-0.07653383165597916,
0.019625704735517502,
0.111172154545784,
0.023340772837400436,
0.27781942486763,
0.036193493753671646,
0.13654349744319916,
-0.05216582119464874,
-0.412826806306839,
-0.11581996083259583,
0.1461089551448822,
-0.21085262298583984,
0.07987016439437866,
-0.07356422394514084,
0.47332459688186646,
0.343254029750824,
-0.14123675227165222,
0.11914007365703583,
-0.29322823882102966,
-0.2904645502567291,
-0.14744117856025696,
-0.28302350640296936,
0.20737576484680176,
-0.26568204164505005,
-0.20522171258926392,
0.04012062028050423,
-0.16022451221942902,
-0.15772750973701477,
-0.2908318340778351,
-0.3127405643463135,
0.23916713893413544,
-0.051501039415597916,
-0.45894020795822144,
0.011602682061493397,
0.019262872636318207,
-0.1705469787120819,
0.1218700259923935,
0.010918907821178436,
0.059647087007761,
0.21160045266151428,
0.18947190046310425,
-0.06855697929859161,
-0.2884754538536072,
-0.20865876972675323,
-0.11965654045343399,
-0.15930385887622833,
0.01571960374712944,
-0.007237706333398819,
-0.12364611029624939,
-0.11171400547027588,
0.11778674274682999,
0.0014850972220301628,
0.1850922405719757,
0.33397364616394043,
0.25280389189720154,
-0.1807941496372223,
-0.09137382358312607,
0.014186590909957886,
-0.34166744351387024,
-0.22521093487739563,
0.23295830190181732,
0.3512033224105835,
-0.1539939045906067,
0.03369283676147461,
-0.42405155301094055,
-0.4463880956172943,
-0.17525891959667206,
0.18617424368858337,
-0.07765526324510574,
-0.3422013819217682,
-0.19682759046554565,
0.41445910930633545,
0.0031468570232391357,
-0.15137241780757904,
-0.041704557836055756,
-0.34066110849380493,
-0.45356637239456177,
-0.3431730568408966,
0.23064059019088745,
0.10144832730293274,
-0.5682000517845154,
0.14077723026275635,
-0.023197464644908905,
-0.0005903206765651703,
0.10164226591587067,
0.260553240776062,
-0.25027844309806824,
0.2232469916343689,
-0.14429114758968353,
0.09106537699699402,
0.8761939406394958,
-0.1895809918642044,
-0.16614793241024017,
0.21902042627334595,
-0.21775662899017334,
0.16778679192066193,
0.008938394486904144,
0.07847230136394501,
-0.007290937006473541,
-0.20487938821315765,
0.18281319737434387,
0.3008158802986145,
-0.06820471584796906,
-0.08628539741039276,
-0.33475351333618164,
-0.17782199382781982,
-0.09662288427352905,
0.27458176016807556,
-0.34762632846832275,
-0.26168251037597656,
-0.004064351320266724,
-0.244101420044899,
0.18925541639328003,
-0.13045591115951538,
-0.06007701903581619,
0.11583905667066574,
0.27086710929870605,
0.3190101981163025,
0.00026812683790922165,
-0.049760278314352036,
-0.2825509309768677,
0.23495244979858398,
0.2524731457233429,
-0.006202705204486847,
0.28707894682884216,
-0.14064699411392212,
0.13591745495796204,
0.007447298616170883,
0.0813927873969078,
0.1488325148820877,
0.20456914603710175,
-0.1650535762310028,
0.09472587704658508,
0.1187802255153656,
-0.3927575945854187,
0.03199528530240059,
-0.6544528007507324,
0.04712234064936638,
0.016744112595915794,
0.2537915110588074,
0.19761094450950623,
-0.09835172444581985,
-0.048747602850198746,
0.17322683334350586,
-0.42854660749435425,
-0.28109902143478394,
-0.1634189784526825,
0.2926933467388153,
-0.2571759521961212,
0.009946465492248535,
0.15219207108020782,
0.6958023309707642,
0.08584782481193542,
0.12508103251457214,
-0.11870961636304855,
0.12405349314212799,
-0.13932831585407257,
0.004259660840034485,
0.013541150838136673,
0.5652000308036804,
0.1563125103712082,
0.1097451001405716,
-0.021552417427301407,
-0.1564147174358368,
0.11058826744556427,
0.12351027131080627,
0.007149089127779007,
0.12869197130203247,
0.1623123437166214,
-0.29243192076683044,
0.19866545498371124,
0.03408833220601082,
-0.45801815390586853,
0.4693761169910431,
0.6849042177200317,
0.1181994378566742,
-0.1346130669116974,
0.22310560941696167,
-0.0030643343925476074,
-0.0721878707408905,
0.043564893305301666,
0.28878921270370483,
0.44875413179397583,
0.2870487868785858,
0.03494933247566223,
-0.23436254262924194,
-0.11549484729766846,
-0.2970009744167328,
0.29893186688423157,
0.006329692900180817,
0.47049418091773987,
0.017781279981136322,
-0.019178839400410652,
0.15122145414352417,
-0.21116182208061218,
-0.4239942729473114,
-0.012136328034102917,
0.2084154188632965,
-0.23352353274822235,
-0.05031481757760048,
-0.15422990918159485,
-0.25428256392478943,
-0.027453262358903885,
0.11480320990085602,
-0.11861148476600647,
-0.26249298453330994,
0.04165589064359665,
0.24880361557006836,
-0.022850438952445984,
-0.08578388392925262,
-0.1491018384695053,
0.21264658868312836,
0.4232326149940491,
-0.2439216524362564,
-0.2874301075935364,
0.04419670253992081,
-0.2874428927898407,
0.15813036262989044,
0.4706237316131592,
-0.12663184106349945,
0.3215614855289459,
0.020319120958447456,
0.17192324995994568,
-0.23389247059822083,
-0.4366184175014496,
0.12043297290802002,
-0.48018378019332886,
0.2575869858264923,
0.01922275871038437,
0.33783742785453796,
-0.2597644031047821,
-0.0666188895702362,
0.2426004260778427,
-0.026137782260775566,
-0.022109800949692726,
0.0360359363257885,
-0.040252454578876495,
-0.017021598294377327,
0.023418564349412918,
-0.2751913070678711,
-0.012802230194211006,
-0.49206432700157166,
0.19815848767757416,
-0.0703437477350235,
0.24160172045230865,
0.1314328908920288,
0.1609373688697815,
0.5262886881828308,
0.05154911428689957,
0.16437111794948578,
-0.06726886332035065,
-0.6329557299613953,
0.42523854970932007,
-0.17697827517986298,
-0.3260940611362457,
-0.03168463706970215,
0.20689360797405243,
0.29410240054130554,
0.1987914890050888,
-0.5034165978431702,
-0.5013728141784668,
-0.17998425662517548,
0.31026941537857056,
-0.21726983785629272,
-0.18763314187526703,
0.14942505955696106,
-0.057196635752916336,
-0.1982274204492569,
-0.18308144807815552,
0.3749743402004242,
-0.013358965516090393,
-0.10686879605054855,
0.03535543382167816,
0.34271445870399475,
0.2531115412712097,
0.2636033892631531,
0.7017816305160522,
0.13357867300510406,
-0.31470462679862976,
0.11813068389892578,
-0.14508292078971863,
0.027229368686676025,
-0.17778125405311584,
-0.10388902574777603,
0.14381365478038788,
-0.055793121457099915,
0.3054525852203369,
0.3544090688228607,
-0.06493064016103745,
0.07913881540298462,
0.04281935840845108,
0.22839507460594177,
0.024059511721134186,
-0.2365797907114029,
0.4529712498188019,
-0.25471481680870056,
0.0697421133518219,
-0.05620229244232178,
-0.06296949088573456,
-0.0693543404340744,
-0.19298991560935974,
0.24458011984825134,
0.22268760204315186,
0.340200275182724,
-0.11331908404827118,
0.02085850015282631,
0.08474316447973251,
-0.36389055848121643,
0.26398634910583496,
0.042651962488889694,
-0.059459388256073,
-0.056783564388751984,
-0.1494705080986023,
0.10805051028728485,
-0.014752812683582306,
0.5156850814819336,
-0.21986430883407593,
-0.23786930739879608,
0.24540498852729797,
-0.0915331318974495,
-0.3976059556007385,
0.05219892039895058,
-0.16331028938293457,
0.12951545417308807,
0.23759131133556366,
0.24898074567317963,
-0.23808535933494568,
-0.6788464784622192,
0.03610454499721527,
-0.064565509557724,
0.0016203969717025757,
0.04270165413618088,
-0.03912600874900818,
0.008835751563310623,
-0.1024334505200386,
-0.10737798362970352,
-0.13478797674179077,
-0.06699313968420029,
-0.2732010781764984,
-0.08720628917217255,
-0.17669619619846344,
-0.047382548451423645,
0.262859970331192,
0.06961548328399658,
0.055681273341178894,
0.09679136425256729,
0.006034117192029953,
0.04519598186016083,
-0.0011746734380722046,
0.46976906061172485,
0.27472174167633057,
0.12801437079906464,
-0.5371440649032593,
-0.22974833846092224,
0.1756119728088379,
0.006754539906978607,
0.21976152062416077,
-0.11734329909086227,
0.0580407977104187,
-0.4485647678375244,
0.21293509006500244,
0.03687579184770584,
0.30161768198013306,
0.3162235915660858,
0.09153951704502106,
-0.09939456731081009,
-0.34927400946617126,
0.43713515996932983,
0.13733342289924622,
0.11186078190803528,
0.6451655626296997,
0.2677013576030731,
-0.1991826444864273,
0.27834242582321167,
0.27914533019065857,
0.9016669392585754,
-0.1696355938911438,
0.2573131024837494,
0.5296154618263245,
0.187427818775177,
0.3990776240825653,
-0.33693861961364746,
-0.02952137589454651,
-0.10461009293794632,
-0.2828913927078247,
0.02760295383632183,
0.02485189214348793,
-0.004201583564281464,
-0.00652560219168663,
-0.000022526830434799194,
-0.09693033993244171,
0.2578505277633667,
0.069747194647789,
-0.008008725941181183,
0.20986300706863403,
0.01910145953297615,
-0.20547910034656525,
0.006805725395679474,
0.23635005950927734,
-0.028831057250499725,
-0.14957240223884583,
-0.011185670271515846,
-0.3369215130805969,
-0.5172709822654724,
0.2972638010978699,
0.010809071362018585,
-0.09554828703403473,
-0.5555081963539124,
0.20466935634613037,
-0.23081061244010925,
-0.3421223759651184,
0.2477436065673828,
0.36145153641700745,
0.07524219900369644,
-0.21765871345996857,
-0.3539157509803772,
-0.08469565212726593,
0.18586769700050354,
-0.08546391874551773,
0.09544073045253754,
-0.43379268050193787,
0.5270557403564453,
0.01615796610713005,
0.10947758704423904,
-0.008528389036655426,
-0.03589675575494766,
-0.31026691198349,
-0.1238991767168045,
-0.04950554668903351,
0.1312904953956604,
-0.24569280445575714,
-0.363589346408844,
0.014940395951271057,
-0.4516252279281616,
0.09094762802124023,
0.22521266341209412,
0.12662182748317719,
0.028086675330996513,
0.031837042421102524,
0.19287781417369843,
-0.16792836785316467,
0.11058288812637329,
-0.010039269924163818,
-0.06710570305585861,
-0.02230641059577465,
0.12566925585269928,
-0.05078558251261711,
-0.1372024416923523,
-0.14445354044437408,
0.2776581645011902,
0.22001108527183533,
-0.2196054458618164,
0.06772926449775696,
0.07863594591617584,
0.18202011287212372,
-0.05113930255174637,
-0.022009793668985367,
-0.007528685033321381,
-0.0362016037106514,
-0.16187167167663574,
-0.08278817683458328,
-0.28650200366973877,
0.2688462436199188,
-0.07444383203983307,
0.20654095709323883,
-0.55208820104599,
-0.0007184557616710663,
-0.10425997525453568,
-0.0979108065366745,
-0.4219552278518677,
0.25572508573532104,
0.32483622431755066,
0.019423354417085648,
0.4574540853500366,
0.04576420411467552,
0.33354538679122925,
0.13228288292884827,
0.16307613253593445,
0.18592602014541626,
-0.43056026101112366,
-0.3238166868686676,
-0.020411241799592972,
0.08841250836849213,
-0.0001720953732728958,
-0.33700162172317505,
0.22620978951454163,
-0.13044415414333344,
-0.268657922744751,
-0.18772897124290466,
0.02761281654238701,
-0.18243816494941711,
-0.22016708552837372,
-0.16218946874141693,
0.17522406578063965,
0.2563607394695282,
0.07810463011264801,
0.038629546761512756,
0.018988199532032013,
0.40883368253707886,
-0.07684431970119476,
0.15978896617889404,
-0.07654835283756256,
-0.18690276145935059,
0.05129905045032501,
0.2403070032596588,
0.0598432719707489,
-0.03687502443790436,
0.17807206511497498,
-0.07829032838344574,
-0.06768221408128738,
0.1784447878599167,
0.2575148642063141,
0.45610082149505615,
-0.1980651617050171,
-0.005136782303452492,
0.04985892027616501,
0.28163784742355347,
0.12926216423511505,
0.07342976331710815,
0.2254336029291153,
0.020498022437095642,
0.1133749932050705,
0.07218076288700104,
-0.002995498478412628,
0.30414941906929016,
-0.04898107051849365,
-0.13045887649059296,
-0.04630105569958687,
-0.37235844135284424,
0.14266903698444366,
0.10085302591323853,
0.06672035157680511,
-0.053716909140348434,
0.0798337534070015,
-0.04384290799498558,
0.1877283751964569,
0.35982370376586914,
0.09901568293571472,
0.3708592653274536,
0.1955406665802002,
0.01145012304186821,
-0.007680550217628479,
-0.2456110119819641,
-0.06845463812351227,
0.10411109775304794,
-0.09788420796394348,
0.3871645927429199,
0.15786384046077728,
0.45184311270713806,
0.16540515422821045,
-0.3407566249370575,
0.14221318066120148,
0.1861380934715271,
-0.12237101048231125,
-0.025112997740507126,
-0.14449584484100342,
0.020792432129383087,
-0.05018508434295654,
-0.006660712882876396,
-0.10472001135349274,
0.008478328585624695,
-0.17161789536476135,
0.277217298746109,
0.16283217072486877,
0.013801367953419685,
-0.07072160392999649,
0.008959578350186348,
0.3937009871006012,
0.015516888350248337,
0.18309810757637024,
0.00675627589225769,
-0.16491934657096863,
-0.19039319455623627,
0.13985437154769897,
0.2507994472980499,
0.11104762554168701,
0.030592624098062515,
0.1761784702539444,
-0.15651164948940277,
-0.031804848462343216,
0.0998263955116272,
0.09537263214588165,
0.015075929462909698,
-0.07395428419113159,
0.2593784034252167,
0.17934627830982208,
-0.22048233449459076,
0.00045340508222579956,
-0.2025691419839859,
0.07043883949518204,
-0.38970112800598145,
-0.036908991634845734,
0.1734766960144043,
-0.1977386176586151,
-0.19275544583797455,
-0.13973793387413025,
-0.15147104859352112,
0.00695006363093853,
0.480368971824646,
-0.0606132447719574,
0.0038680974394083023,
0.13849303126335144,
0.12979909777641296,
-0.007994428277015686,
0.3502790331840515,
0.07241982221603394,
0.17898797988891602,
-0.07202094793319702,
-0.1439657211303711,
-0.3565978407859802,
0.07119373232126236,
0.014079589396715164,
0.252300500869751,
-0.008675828576087952,
0.3032664656639099,
0.22740444540977478,
0.14903907477855682,
0.23250962793827057,
-0.8572109937667847,
0.2693529427051544,
0.1288258582353592,
-0.4419111907482147,
0.13469962775707245,
-0.4535980224609375,
0.046876210719347,
0.05047537386417389,
-0.2268986701965332,
0.10584292560815811,
-0.10295110940933228,
0.1612148880958557,
-0.2698313593864441,
0.05914796143770218,
0.23474657535552979,
-0.01592181622982025,
0.4379412531852722,
-0.017782611772418022,
-0.010401532053947449,
-0.04356886073946953,
-0.20990033447742462,
-0.2567006051540375,
0.04333232343196869,
-0.2732675075531006,
0.3694538474082947,
-0.017447199672460556,
0.3319140672683716,
-0.12017759680747986,
-0.7048538327217102,
-0.08702526986598969,
-0.00414700573310256,
-0.14003856480121613,
-0.14519773423671722,
-0.10046255588531494,
0.06961630284786224,
0.036612942814826965,
0.08491713553667068,
-0.09002499282360077,
0.5491257309913635,
-0.012656494975090027,
0.07848935574293137,
-0.41901230812072754,
-0.22428473830223083,
0.4055417478084564,
-0.35572293400764465,
-0.04287857562303543,
0.23924246430397034,
0.08254718035459518,
0.20054125785827637,
0.295361191034317,
-0.4249529540538788,
-0.2455647885799408,
0.3823769986629486,
-0.11247587949037552,
-0.2292497605085373,
0.41333091259002686,
0.3236196041107178,
-0.03806861490011215,
-0.06315821409225464,
0.1994016170501709,
-0.04119747132062912,
-0.21408040821552277,
-0.02287342958152294,
-0.13657289743423462
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | > Sounds like a good opportunity to learn what are the best ways to load a dataset for TF
The recommended way would likely be a combination of TFRecords and `tf.data`.
Exploring the connection between Arrow and TensorFlow is definitely worth pursuing though. But I am not sure about the implications of storing images in a format supported by Arrow. I guess we'll know more once we have at least figured out the support for `binary` type for TFIO. I will spend some time on it and keep this thread updated. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 91 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
> Sounds like a good opportunity to learn what are the best ways to load a dataset for TF
The recommended way would likely be a combination of TFRecords and `tf.data`.
Exploring the connection between Arrow and TensorFlow is definitely worth pursuing though. But I am not sure about the implications of storing images in a format supported by Arrow. I guess we'll know more once we have at least figured out the support for `binary` type for TFIO. I will spend some time on it and keep this thread updated. | [
-0.19480963051319122,
-0.2943651080131531,
-0.2003171145915985,
0.38074421882629395,
0.19934654235839844,
0.11298234015703201,
0.20417383313179016,
0.605063259601593,
-0.240081787109375,
-0.01243242621421814,
-0.19916443526744843,
0.4508001208305359,
-0.03618120402097702,
-0.1304941475391388,
0.0842297151684761,
-0.09628714621067047,
-0.044835902750492096,
0.05003823712468147,
-0.10606016218662262,
-0.09041404724121094,
-0.040006935596466064,
0.04877215623855591,
0.06297625601291656,
0.07151294499635696,
-0.21635845303535461,
-0.02375159226357937,
0.08861322700977325,
0.23949673771858215,
0.09158240258693695,
-0.006862767040729523,
0.08402503281831741,
0.015896007418632507,
-0.05268465355038643,
0.37750741839408875,
-0.00010096307232743129,
0.30282866954803467,
0.06146514043211937,
-0.022024989128112793,
0.07803675532341003,
-0.06589801609516144,
-0.14127637445926666,
-0.049197450280189514,
-0.13058948516845703,
-0.30271220207214355,
-0.056344352662563324,
-0.21434438228607178,
0.0659981444478035,
-0.15932585299015045,
0.36249011754989624,
0.3457958400249481,
0.2668180763721466,
0.3519676625728607,
0.1942591667175293,
0.2562733292579651,
0.34678515791893005,
-0.12265916168689728,
-0.2573913633823395,
0.17589926719665527,
-0.01589052379131317,
0.07522275298833847,
-0.021803468465805054,
0.23328043520450592,
-0.019218720495700836,
0.11842015385627747,
0.2007373571395874,
0.03481701761484146,
-0.17362475395202637,
-0.4366021752357483,
-0.15225782990455627,
0.5288019776344299,
0.1812320351600647,
-0.1335080862045288,
-0.3512398600578308,
-0.10331739485263824,
-0.08829458802938461,
-0.14117729663848877,
0.12243834137916565,
-0.16759920120239258,
-0.04098492115736008,
0.11266620457172394,
0.2031635046005249,
-0.09115287661552429,
-0.4584323763847351,
0.20657648146152496,
-0.11639730632305145,
0.11618068069219589,
-0.070881187915802,
0.062985360622406,
0.0053656622767448425,
0.07570616900920868,
0.2962596118450165,
-0.09304822236299515,
0.26444241404533386,
-0.01944342628121376,
-0.2760038375854492,
-0.14823929965496063,
0.03472573310136795,
-0.24236029386520386,
0.04730222374200821,
-0.09529213607311249,
0.4386870563030243,
0.29113784432411194,
-0.16486181318759918,
0.14357641339302063,
-0.292577862739563,
-0.29903823137283325,
-0.21581706404685974,
-0.22173328697681427,
0.17572803795337677,
-0.31753575801849365,
-0.19290068745613098,
-0.0030256472527980804,
-0.18269245326519012,
-0.10064774006605148,
-0.15437772870063782,
-0.365830659866333,
0.17726515233516693,
0.022235717624425888,
-0.36524730920791626,
-0.08198360353708267,
0.08570123463869095,
-0.10335411131381989,
0.03171281889081001,
0.024899497628211975,
0.0638638436794281,
0.21300292015075684,
0.22384993731975555,
-0.08576317876577377,
-0.19436267018318176,
-0.0785863921046257,
-0.11316262930631638,
-0.09763716161251068,
0.035399023443460464,
-0.020311636850237846,
-0.16905204951763153,
-0.13040046393871307,
0.11079694330692291,
-0.09707006067037582,
0.16201823949813843,
0.38457629084587097,
0.35559141635894775,
-0.2524021565914154,
0.030904419720172882,
0.03664405643939972,
-0.35101231932640076,
-0.27385157346725464,
0.10279905796051025,
0.38830602169036865,
-0.2289167046546936,
0.08238880336284637,
-0.4161573350429535,
-0.40174400806427,
-0.12403328716754913,
0.19586139917373657,
-0.06489089131355286,
-0.353104829788208,
-0.17480897903442383,
0.3941991329193115,
0.02934732288122177,
-0.09670107066631317,
-0.0016616731882095337,
-0.3057481050491333,
-0.4679596424102783,
-0.3959946930408478,
0.14494666457176208,
0.04910936951637268,
-0.5552821159362793,
0.15712250769138336,
0.06969453394412994,
-0.025056712329387665,
0.024254336953163147,
0.26324549317359924,
-0.2180817872285843,
0.1823117434978485,
-0.05661206692457199,
0.0937291830778122,
0.8566259741783142,
-0.27491462230682373,
-0.14608265459537506,
0.13930624723434448,
-0.1166442334651947,
0.17097695171833038,
-0.06327904015779495,
0.2153947800397873,
0.013940790668129921,
-0.22228319942951202,
0.1256471872329712,
0.32157576084136963,
-0.12320214509963989,
-0.01580028049647808,
-0.26185140013694763,
-0.2060185968875885,
-0.09230196475982666,
0.2844180464744568,
-0.2638373374938965,
-0.30145618319511414,
-0.02272740751504898,
-0.21129250526428223,
0.10702994465827942,
-0.14593537151813507,
-0.03034096397459507,
0.052893929183483124,
0.2722192704677582,
0.2824811339378357,
-0.03980748727917671,
-0.07654464989900589,
-0.2681289613246918,
0.22145727276802063,
0.23358720541000366,
0.001000232994556427,
0.20402371883392334,
-0.10508966445922852,
0.17551708221435547,
-0.012084638699889183,
0.12619748711585999,
0.12048986554145813,
0.23114565014839172,
-0.11108559370040894,
0.07719086110591888,
0.1341216117143631,
-0.42652586102485657,
0.07326456904411316,
-0.5904309749603271,
0.03784503415226936,
0.0874488353729248,
0.29203709959983826,
0.17672277987003326,
-0.08907300233840942,
-0.07668882608413696,
0.13247080147266388,
-0.5409243702888489,
-0.2925824522972107,
-0.08326520770788193,
0.36989495158195496,
-0.17041291296482086,
0.02846621721982956,
0.09948747605085373,
0.6407226324081421,
0.1388576328754425,
0.0412655808031559,
-0.045322611927986145,
0.07190706580877304,
-0.11047549545764923,
0.09797511249780655,
-0.04071074724197388,
0.4833974838256836,
0.1769654005765915,
0.028126396238803864,
0.0425359383225441,
-0.19253291189670563,
-0.004521496593952179,
0.1433774083852768,
-0.0031740963459014893,
0.09994913637638092,
0.00416705384850502,
-0.221824049949646,
0.20334173738956451,
0.006180541589856148,
-0.45443829894065857,
0.4029541313648224,
0.7273746728897095,
0.09782905876636505,
-0.0632471814751625,
0.22442343831062317,
-0.010062627494335175,
-0.0520305261015892,
0.11946048587560654,
0.2710600793361664,
0.472939133644104,
0.28996601700782776,
0.031074369326233864,
-0.23105251789093018,
-0.1745813637971878,
-0.19859087467193604,
0.3176102042198181,
0.018369991332292557,
0.4885929226875305,
-0.04101106524467468,
0.006363783497363329,
0.1434764266014099,
-0.2005997896194458,
-0.37888938188552856,
-0.07327868789434433,
0.16070201992988586,
-0.15351000428199768,
0.005499476566910744,
-0.06434044986963272,
-0.27626290917396545,
-0.048037491738796234,
0.1991184949874878,
-0.13800758123397827,
-0.18257735669612885,
0.09856000542640686,
0.1250847578048706,
-0.0353931188583374,
-0.11354438215494156,
-0.2027588039636612,
0.2799626290798187,
0.3668937087059021,
-0.2712084650993347,
-0.2768833339214325,
0.09422104805707932,
-0.23227235674858093,
0.19003717601299286,
0.3888378441333771,
-0.13948170840740204,
0.40821877121925354,
0.03530581295490265,
0.11203113198280334,
-0.2351667881011963,
-0.4854952096939087,
0.12633565068244934,
-0.4660072922706604,
0.21989448368549347,
0.0700395405292511,
0.33076345920562744,
-0.20440903306007385,
-0.014233947731554508,
0.2390066236257553,
-0.08944085985422134,
-0.03185432031750679,
-0.0760277584195137,
0.02648218534886837,
-0.019306976348161697,
-0.01082388125360012,
-0.25482720136642456,
-0.13752712309360504,
-0.4779309928417206,
0.22353559732437134,
0.03936341032385826,
0.2578025758266449,
0.12098378688097,
0.23487259447574615,
0.4819684624671936,
0.10525472462177277,
0.17766836285591125,
-0.07078466564416885,
-0.5271643996238708,
0.39533695578575134,
-0.2125502973794937,
-0.34552764892578125,
-0.06236936151981354,
0.15853586792945862,
0.28071239590644836,
0.24295759201049805,
-0.5351580381393433,
-0.5350609421730042,
-0.16814479231834412,
0.25304755568504333,
-0.12302325665950775,
-0.12487764656543732,
0.10137160122394562,
-0.050680723041296005,
-0.20403805375099182,
-0.21726170182228088,
0.39760729670524597,
-0.014621511101722717,
-0.046685464680194855,
0.04320889338850975,
0.36491045355796814,
0.14145389199256897,
0.28879451751708984,
0.6254752278327942,
0.08369423449039459,
-0.39832520484924316,
0.1194143295288086,
-0.17180657386779785,
0.06776031106710434,
-0.2291143834590912,
-0.06782573461532593,
0.19161997735500336,
-0.0029644668102264404,
0.3062647581100464,
0.29786741733551025,
-0.06527570635080338,
0.03223082795739174,
-0.0021225400269031525,
0.2323305308818817,
-0.032513923943042755,
-0.17071740329265594,
0.45428869128227234,
-0.1542636603116989,
0.1377534717321396,
-0.055159829556941986,
-0.13826937973499298,
-0.1129249781370163,
-0.19157522916793823,
0.181563600897789,
0.19455572962760925,
0.3188440799713135,
-0.0858386754989624,
0.010438591241836548,
0.10438640415668488,
-0.3931535482406616,
0.2677462100982666,
0.13577432930469513,
-0.12451179325580597,
0.006536420434713364,
-0.1479283571243286,
0.08370928466320038,
-0.06726697087287903,
0.4489566683769226,
-0.2712472975254059,
-0.3353913426399231,
0.09943664073944092,
-0.14011740684509277,
-0.4570647180080414,
0.12591607868671417,
-0.1752714216709137,
0.007746004965156317,
0.14279787242412567,
0.3279128968715668,
-0.27471598982810974,
-0.6556792259216309,
0.02675449661910534,
-0.05027054250240326,
-0.031884271651506424,
0.009665180929005146,
-0.06777516007423401,
0.012532416731119156,
-0.13869528472423553,
-0.1813756823539734,
-0.1652204990386963,
-0.1257241815328598,
-0.1831037700176239,
-0.12942859530448914,
-0.1987106204032898,
-0.04238186031579971,
0.22503480315208435,
0.0769854485988617,
0.08169384300708771,
0.05620274692773819,
-0.08908220380544662,
0.09644302725791931,
0.06808318197727203,
0.47339916229248047,
0.24134865403175354,
0.0010804347693920135,
-0.42050737142562866,
-0.17843496799468994,
0.1771502047777176,
-0.016156412661075592,
0.25045526027679443,
-0.11564154922962189,
0.0033227726817131042,
-0.41679173707962036,
0.17806240916252136,
-0.0880294069647789,
0.29146111011505127,
0.3307183086872101,
0.12139419466257095,
-0.05662795901298523,
-0.35894501209259033,
0.4440315067768097,
0.11372397840023041,
0.12676140666007996,
0.537605881690979,
0.22997309267520905,
-0.24082405865192413,
0.25318413972854614,
0.404386043548584,
0.9184896349906921,
-0.18730789422988892,
0.3894319534301758,
0.5421077609062195,
0.08739477396011353,
0.43275392055511475,
-0.293148934841156,
-0.08474577963352203,
-0.06307914108037949,
-0.23578321933746338,
-0.012981850653886795,
0.0061089396476745605,
-0.04488382488489151,
0.026518886908888817,
-0.04952554404735565,
-0.12158231437206268,
0.3279491662979126,
0.027786394581198692,
-0.07888210564851761,
0.24839156866073608,
-0.043387241661548615,
-0.22069048881530762,
-0.029680125415325165,
0.2625937759876251,
0.004960872232913971,
-0.2011946439743042,
-0.06575677543878555,
-0.30192381143569946,
-0.5004535913467407,
0.32937532663345337,
0.07718104124069214,
-0.12739858031272888,
-0.5358232259750366,
0.2803698778152466,
-0.24568766355514526,
-0.30622100830078125,
0.19965842366218567,
0.2697124779224396,
0.08294294774532318,
-0.26370853185653687,
-0.3074372410774231,
-0.09270147979259491,
0.17495626211166382,
-0.08004515618085861,
0.09548819810152054,
-0.4199691116809845,
0.6117174625396729,
-0.024812426418066025,
0.12592026591300964,
0.03793260455131531,
0.002593744546175003,
-0.3072702884674072,
-0.07717318087816238,
-0.03938101977109909,
0.1173299252986908,
-0.16673174500465393,
-0.39883551001548767,
0.005153320729732513,
-0.5473995804786682,
0.14702658355236053,
0.24320021271705627,
0.05383051931858063,
0.13154730200767517,
0.0853758305311203,
0.16822806000709534,
-0.16510410606861115,
0.11152605712413788,
-0.050501562654972076,
-0.026817455887794495,
-0.02868853509426117,
0.13628888130187988,
-0.13877549767494202,
-0.13684424757957458,
-0.1473483443260193,
0.2835470139980316,
0.22312764823436737,
-0.25314244627952576,
0.11806417256593704,
0.05558830127120018,
0.15130235254764557,
-0.13187424838542938,
0.01685251295566559,
0.03893879055976868,
-0.06988730281591415,
-0.1984633058309555,
0.003702811896800995,
-0.3419223725795746,
0.3567727208137512,
0.012191452085971832,
0.3426592946052551,
-0.5585718750953674,
0.05726141855120659,
-0.012876028195023537,
-0.11244483292102814,
-0.4609949588775635,
0.26764020323753357,
0.29171743988990784,
0.04550401121377945,
0.3576681613922119,
0.07482007145881653,
0.3147937059402466,
0.13705043494701385,
0.17523403465747833,
0.2167447805404663,
-0.44459033012390137,
-0.34126272797584534,
-0.0645495057106018,
0.08365514129400253,
0.04083692282438278,
-0.4197405278682709,
0.16768088936805725,
-0.18405209481716156,
-0.2847400903701782,
-0.14657334983348846,
0.014657091349363327,
-0.1802692413330078,
-0.2648082971572876,
-0.15167275071144104,
0.12219218909740448,
0.20656588673591614,
0.11829645931720734,
0.05578507483005524,
0.0018131062388420105,
0.41649430990219116,
0.009408149868249893,
0.20427723228931427,
-0.11251668632030487,
-0.22383129596710205,
0.01883675716817379,
0.2612268924713135,
0.10331632196903229,
-0.057601362466812134,
0.2297482192516327,
0.024807371199131012,
-0.026790320873260498,
0.09737246483564377,
0.2666980028152466,
0.3816397190093994,
-0.2480466365814209,
-0.0377003438770771,
0.02948550321161747,
0.2901547849178314,
0.09907102584838867,
0.13195154070854187,
0.1153377890586853,
0.011119330301880836,
0.1488051563501358,
0.16433341801166534,
-0.001727413386106491,
0.43363529443740845,
-0.13470277190208435,
-0.13379570841789246,
-0.03450053930282593,
-0.3656039834022522,
0.05309196189045906,
0.044485904276371,
0.034413810819387436,
0.0305563323199749,
0.05165303498506546,
0.038089051842689514,
0.19620823860168457,
0.3387170433998108,
0.11008798331022263,
0.3664188086986542,
0.157240092754364,
-0.04712511971592903,
0.09343015402555466,
-0.10702483355998993,
-0.052626315504312515,
0.10030881315469742,
-0.08566400408744812,
0.4751241207122803,
0.16174378991127014,
0.36947616934776306,
0.22652851045131683,
-0.32469236850738525,
0.1327361911535263,
0.2487817257642746,
-0.07479967921972275,
-0.028588052839040756,
-0.1837499439716339,
-0.005430407822132111,
-0.041180551052093506,
-0.02145555429160595,
-0.05598951503634453,
-0.14242060482501984,
-0.11903509497642517,
0.33089643716812134,
0.20220446586608887,
0.0435255765914917,
-0.031345270574092865,
0.007468193769454956,
0.3941674828529358,
0.07821343839168549,
0.21058550477027893,
0.11577872931957245,
-0.09723968803882599,
-0.11889754235744476,
0.19402357935905457,
0.23085202276706696,
0.0722125843167305,
0.050958409905433655,
0.23544472455978394,
-0.0995020866394043,
-0.019969969987869263,
0.08830417692661285,
0.059394534677267075,
0.04941556602716446,
-0.11259418725967407,
0.2780134677886963,
0.20597682893276215,
-0.23607137799263,
-0.0019945651292800903,
-0.19160087406635284,
0.01703411526978016,
-0.41622576117515564,
-0.05961940437555313,
0.18041275441646576,
-0.1949082612991333,
-0.18144316971302032,
-0.09961149841547012,
-0.16979879140853882,
0.006167596206068993,
0.3908637762069702,
-0.14931060373783112,
0.0337899848818779,
0.1757291853427887,
0.1352769434452057,
-0.05027412995696068,
0.4424784779548645,
0.03499234467744827,
0.2821391522884369,
-0.06384821981191635,
-0.15409371256828308,
-0.30059438943862915,
0.06100664287805557,
0.01771290972828865,
0.1441696137189865,
-0.09381874650716782,
0.3444972336292267,
0.17167307436466217,
0.13576900959014893,
0.2676050662994385,
-0.7277185320854187,
0.23396414518356323,
0.1566225290298462,
-0.37601083517074585,
0.14541184902191162,
-0.38731813430786133,
0.12271416187286377,
0.01875871792435646,
-0.22748801112174988,
0.08187595009803772,
-0.12639383971691132,
0.15956240892410278,
-0.2571932077407837,
0.07646797597408295,
0.20237703621387482,
0.017694763839244843,
0.5045369863510132,
-0.05583684891462326,
-0.04599715769290924,
-0.10016138851642609,
-0.24888038635253906,
-0.1797829121351242,
0.04524264484643936,
-0.31246864795684814,
0.3261106014251709,
0.04740983620285988,
0.35767602920532227,
-0.06267672777175903,
-0.6467246413230896,
-0.03765622153878212,
0.011003678664565086,
-0.10568802058696747,
-0.18407651782035828,
-0.023182161152362823,
0.01248379796743393,
0.0033620446920394897,
0.01075570285320282,
-0.0592966228723526,
0.5487077832221985,
-0.03463467210531235,
0.020139550790190697,
-0.4271273612976074,
-0.22232307493686676,
0.42641592025756836,
-0.32081207633018494,
-0.09936854243278503,
0.2642126977443695,
0.012268565595149994,
0.15893509984016418,
0.32768407464027405,
-0.4802040159702301,
-0.2069169580936432,
0.41032883524894714,
-0.071532242000103,
-0.2660734951496124,
0.4126661419868469,
0.37101292610168457,
-0.005121510475873947,
-0.06700289249420166,
0.23668120801448822,
-0.15645119547843933,
-0.17399658262729645,
-0.0997934639453888,
-0.19540652632713318
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | I am currently working on a fine-tuning notebook for the TFSegFormer model (Semantic Segmentation). The resolution is high for both the input images and the labels - (512, 512, 3). Here's the [Colab Notebook](https://colab.research.google.com/drive/1jAtR7Z0lYX6m6JsDI5VByh5vFaNhHIbP?usp=sharing) (it's a WIP so please bear that in mind).
I think the current implementation of `to_tf_dataset()` does create a bottleneck here since the GPU utilization is quite low. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 62 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
I am currently working on a fine-tuning notebook for the TFSegFormer model (Semantic Segmentation). The resolution is high for both the input images and the labels - (512, 512, 3). Here's the [Colab Notebook](https://colab.research.google.com/drive/1jAtR7Z0lYX6m6JsDI5VByh5vFaNhHIbP?usp=sharing) (it's a WIP so please bear that in mind).
I think the current implementation of `to_tf_dataset()` does create a bottleneck here since the GPU utilization is quite low. | [
-0.31573164463043213,
-0.282195508480072,
-0.1356143057346344,
0.35996705293655396,
0.1856335699558258,
0.08832024782896042,
0.11754545569419861,
0.6270353198051453,
-0.39910072088241577,
-0.0722702145576477,
-0.15658274292945862,
0.49510547518730164,
-0.05284678190946579,
-0.1015544980764389,
0.10446486622095108,
-0.1367531269788742,
0.04358240216970444,
0.010325215756893158,
-0.19392329454421997,
-0.08980177342891693,
-0.11601592600345612,
0.062382228672504425,
0.05176621675491333,
0.04698660969734192,
-0.31296706199645996,
0.0025458168238401413,
0.21021366119384766,
0.20152640342712402,
0.14773796498775482,
0.03345946595072746,
0.032576531171798706,
0.01294703595340252,
-0.10816402733325958,
0.34707334637641907,
-0.00010500710050109774,
0.3264042139053345,
-0.05276162177324295,
0.0023185499012470245,
-0.03981979191303253,
0.08131112158298492,
0.0018359385430812836,
-0.06355363130569458,
-0.17541326582431793,
-0.2938098609447479,
-0.15994974970817566,
-0.08738712966442108,
-0.0045615304261446,
-0.11628034710884094,
0.33653709292411804,
0.33443906903266907,
0.2079000324010849,
0.2681470811367035,
0.12537388503551483,
0.2804408371448517,
0.30469825863838196,
-0.07487063109874725,
-0.23854760825634003,
0.2249155044555664,
-0.16263286769390106,
-0.07121547311544418,
-0.12089941650629044,
0.3398045003414154,
-0.022570012137293816,
0.13529746234416962,
0.29888904094696045,
0.0558924525976181,
-0.23594573140144348,
-0.42179495096206665,
-0.0632137581706047,
0.5383366346359253,
0.18387609720230103,
-0.15047919750213623,
-0.3959636986255646,
-0.2736775875091553,
-0.06714949011802673,
-0.08288799971342087,
0.15439769625663757,
-0.4033487141132355,
-0.11086045205593109,
0.11720690131187439,
0.1666291207075119,
-0.13792549073696136,
-0.3188033103942871,
0.04478085786104202,
-0.06907478719949722,
0.25225868821144104,
0.026581719517707825,
-0.006348401308059692,
0.1013728678226471,
0.04101371020078659,
0.25790247321128845,
-0.025483351200819016,
0.22260595858097076,
0.0007023625075817108,
-0.43997472524642944,
-0.14674800634384155,
0.007614724338054657,
-0.2564293146133423,
-0.10059742629528046,
-0.011376947164535522,
0.45244431495666504,
0.2632412016391754,
0.06174493208527565,
0.06666688621044159,
-0.42533037066459656,
-0.39341434836387634,
-0.21829479932785034,
-0.23300036787986755,
0.2578343152999878,
-0.30291682481765747,
-0.08846043050289154,
0.05345357954502106,
-0.20198649168014526,
-0.1246180459856987,
-0.23933909833431244,
-0.35683438181877136,
0.08293107151985168,
0.07832178473472595,
-0.3846735656261444,
0.04457885026931763,
0.08123739808797836,
-0.14061273634433746,
0.011479075998067856,
-0.06608053296804428,
0.06576025485992432,
0.18897059559822083,
0.16374699771404266,
-0.21309277415275574,
-0.2283354103565216,
-0.20705458521842957,
-0.09370790421962738,
-0.16035890579223633,
0.06108599528670311,
0.031314268708229065,
-0.14702829718589783,
-0.1296187937259674,
0.08294137567281723,
-0.04415930435061455,
0.04207286983728409,
0.45655226707458496,
0.2374940812587738,
-0.2817811965942383,
-0.11864728480577469,
0.0187152661383152,
-0.3633041977882385,
-0.19194628298282623,
0.114485964179039,
0.30889320373535156,
-0.15363192558288574,
-0.0448969230055809,
-0.3383409082889557,
-0.38120442628860474,
-0.08701929450035095,
0.16151206195354462,
-0.03106817416846752,
-0.3191727101802826,
-0.2504887878894806,
0.5417827367782593,
0.051584091037511826,
-0.09795135259628296,
-0.05144069343805313,
-0.4580078125,
-0.5426018238067627,
-0.34508463740348816,
0.17595665156841278,
0.07790927588939667,
-0.5986871719360352,
0.06450511515140533,
0.1972515732049942,
0.03375215083360672,
0.05690529942512512,
0.32334333658218384,
-0.15020357072353363,
0.25223052501678467,
-0.030827336013317108,
0.1646937131881714,
0.729776918888092,
-0.22458532452583313,
-0.2374669909477234,
0.23893412947654724,
-0.2494884431362152,
0.221787229180336,
0.08983257412910461,
0.1752876192331314,
0.16797052323818207,
-0.2759229242801666,
0.21252629160881042,
0.3150178790092468,
-0.044105395674705505,
-0.06157008558511734,
-0.28814271092414856,
-0.09524428099393845,
-0.008612595498561859,
0.21175244450569153,
-0.25489744544029236,
-0.31719470024108887,
-0.10338198393583298,
0.06131930649280548,
0.12467141449451447,
-0.22347363829612732,
0.026036424562335014,
0.0492900013923645,
0.27680110931396484,
0.2101447582244873,
-0.07378357648849487,
-0.05745050311088562,
-0.3123752474784851,
0.28478434681892395,
0.30535513162612915,
0.14302824437618256,
0.3773396611213684,
-0.11890473961830139,
0.24361902475357056,
0.014967469498515129,
0.13740301132202148,
0.061615850776433945,
0.1579919010400772,
-0.0831918716430664,
0.19093182682991028,
0.15093037486076355,
-0.3777659833431244,
-0.023850852623581886,
-0.6666296720504761,
0.07582574337720871,
0.1508689969778061,
0.29106488823890686,
0.2929881513118744,
-0.09782622754573822,
-0.10879570245742798,
0.15582777559757233,
-0.4884427487850189,
-0.24594920873641968,
-0.06568647176027298,
0.23131999373435974,
-0.14604641497135162,
-0.1731760948896408,
0.03708893060684204,
0.7241264581680298,
0.08487912267446518,
0.24438190460205078,
-0.07305998355150223,
0.06120065227150917,
-0.11202118545770645,
-0.027428794652223587,
-0.017589494585990906,
0.4496028423309326,
0.373760849237442,
0.12988033890724182,
0.15649092197418213,
-0.22608740627765656,
0.08515188097953796,
0.20913922786712646,
0.06458668410778046,
0.14687268435955048,
0.09914427250623703,
-0.36663445830345154,
0.28004202246665955,
0.02852187491953373,
-0.4918519854545593,
0.5156893134117126,
0.6408981084823608,
0.08106695115566254,
-0.09770119935274124,
0.3050220310688019,
-0.10867492109537125,
-0.1552036702632904,
0.1051688939332962,
0.23344986140727997,
0.39477938413619995,
0.2703791856765747,
0.13237214088439941,
-0.15508152544498444,
-0.16568170487880707,
-0.2093065083026886,
0.26968303322792053,
-0.0282718688249588,
0.456061452627182,
0.038054533302783966,
-0.11527195572853088,
0.15615302324295044,
-0.20667091012001038,
-0.5247939229011536,
-0.06385437399148941,
0.22754062712192535,
-0.21588242053985596,
0.010654652491211891,
-0.03469737619161606,
-0.3799923062324524,
-0.05384483188390732,
0.1594891995191574,
-0.22686150670051575,
-0.22327135503292084,
0.06910580396652222,
0.275889128446579,
0.06834165751934052,
-0.08948923647403717,
-0.131726935505867,
0.2799014747142792,
0.35482481122016907,
-0.2715359032154083,
-0.2687937021255493,
0.06697250157594681,
-0.3398951590061188,
0.16720044612884521,
0.37650519609451294,
-0.035126276314258575,
0.1664045751094818,
0.009237386286258698,
0.23017920553684235,
-0.15627579391002655,
-0.48497629165649414,
0.2099011242389679,
-0.5917537808418274,
0.280687153339386,
0.014632314443588257,
0.26449906826019287,
-0.19383245706558228,
-0.0034509077668190002,
0.15597252547740936,
-0.023907780647277832,
-0.05134857818484306,
-0.0886644646525383,
-0.0317443385720253,
-0.10856429487466812,
0.09923747181892395,
-0.1328263282775879,
-0.12321709841489792,
-0.4218275249004364,
0.1541263461112976,
0.03582363203167915,
0.17227190732955933,
0.10904283076524734,
0.0801047533750534,
0.5105716586112976,
0.1342741996049881,
0.2713720500469208,
-0.06792564690113068,
-0.407640665769577,
0.3861214816570282,
-0.08995073288679123,
-0.27670595049858093,
-0.10775059461593628,
0.13668479025363922,
0.3198118507862091,
0.20960405468940735,
-0.5777239203453064,
-0.5084980726242065,
-0.19460730254650116,
0.18939632177352905,
-0.1780082881450653,
-0.17135395109653473,
-0.03361143171787262,
0.0016133373137563467,
-0.13630101084709167,
-0.08981683105230331,
0.3609251081943512,
-0.013265945017337799,
-0.08664797246456146,
-0.07087523490190506,
0.2912006378173828,
0.23260822892189026,
0.3261478543281555,
0.5635595321655273,
0.1525365710258484,
-0.33562925457954407,
0.04891681671142578,
-0.18036149442195892,
-0.00004892796277999878,
-0.1732179820537567,
-0.026157911866903305,
0.3100803792476654,
-0.12406289577484131,
0.2991793155670166,
0.35755765438079834,
-0.09787853062152863,
0.12555241584777832,
0.020367488265037537,
0.14632238447666168,
0.0123845674097538,
-0.24744459986686707,
0.526378870010376,
-0.06116785854101181,
0.10007380694150925,
-0.09609989821910858,
0.023627839982509613,
-0.04983295872807503,
-0.2342493236064911,
0.21734298765659332,
0.23578782379627228,
0.40899917483329773,
-0.019160903990268707,
-0.1223909854888916,
0.1488850712776184,
-0.5217536091804504,
0.3122941851615906,
0.10926980525255203,
-0.007720469497144222,
-0.06543897092342377,
-0.18162059783935547,
-0.030759543180465698,
-0.01838734745979309,
0.45177388191223145,
-0.1982412487268448,
-0.22766093909740448,
0.21594008803367615,
-0.2095070481300354,
-0.18949691951274872,
0.09477454423904419,
-0.21410764753818512,
0.015101708471775055,
0.3954065442085266,
0.42434176802635193,
-0.17819534242153168,
-0.4989023208618164,
0.08144143223762512,
-0.06396853923797607,
-0.07343781739473343,
0.08015511184930801,
-0.08151113241910934,
-0.00005113333463668823,
-0.05070808157324791,
-0.016056351363658905,
-0.16206802427768707,
-0.026179801672697067,
-0.1912422925233841,
0.03425408527255058,
-0.20202943682670593,
-0.20469370484352112,
0.3359885811805725,
0.2668667733669281,
-0.06194612383842468,
0.05971531197428703,
-0.0355151891708374,
0.055567458271980286,
0.026129912585020065,
0.5165588855743408,
0.2513163387775421,
0.14621607959270477,
-0.6612489819526672,
-0.1134820505976677,
0.2348034828901291,
0.11879773437976837,
0.25139036774635315,
-0.1430574357509613,
0.13526228070259094,
-0.3880385756492615,
0.21143212914466858,
-0.12523792684078217,
0.33052417635917664,
0.27054548263549805,
0.20001231133937836,
-0.33750849962234497,
-0.39998573064804077,
0.40226396918296814,
0.18525850772857666,
0.1406640112400055,
0.2786785364151001,
0.2559279203414917,
-0.2674759328365326,
0.2661673426628113,
0.3829737901687622,
0.8134289979934692,
-0.1329064816236496,
0.2935957610607147,
0.4838845133781433,
0.2734455466270447,
0.6076730489730835,
-0.37780439853668213,
0.06192348897457123,
-0.12340449541807175,
-0.39411383867263794,
-0.051075875759124756,
0.10811477899551392,
0.03749280422925949,
0.07970431447029114,
0.08669167757034302,
0.0730205848813057,
0.4483281373977661,
0.15829680860042572,
-0.07582777738571167,
0.29335156083106995,
0.09805018454790115,
-0.2664828598499298,
-0.025737274438142776,
0.21634143590927124,
-0.09319652616977692,
-0.1018851101398468,
0.03344357758760452,
-0.19883304834365845,
-0.5519168376922607,
0.3200142979621887,
0.024922281503677368,
-0.1178012490272522,
-0.42945045232772827,
0.20741668343544006,
-0.2771611213684082,
-0.4096900224685669,
0.2141941487789154,
0.19165094196796417,
0.007500588893890381,
-0.13106350600719452,
-0.25798046588897705,
-0.11974923312664032,
0.11194111406803131,
-0.0775967389345169,
0.24076926708221436,
-0.3381228744983673,
0.6609664559364319,
0.007859662175178528,
0.1691453456878662,
0.12633037567138672,
0.07677658647298813,
-0.30483829975128174,
0.01210564374923706,
-0.20592699944972992,
0.029808135703206062,
-0.18838363885879517,
-0.3407462239265442,
-0.01719719171524048,
-0.5001254081726074,
0.019505847245454788,
0.1759241223335266,
-0.08714243769645691,
0.11821503937244415,
-0.018867671489715576,
0.1402534544467926,
-0.13219410181045532,
0.06604285538196564,
0.04007023945450783,
-0.07924066483974457,
-0.14951229095458984,
0.05136712267994881,
-0.017704762518405914,
-0.19755242764949799,
-0.07884706556797028,
0.28255346417427063,
0.1398468166589737,
-0.2844489514827728,
0.08492686599493027,
0.10066955536603928,
0.15969060361385345,
-0.109905906021595,
-0.0355394221842289,
0.15599077939987183,
-0.15348133444786072,
-0.28746265172958374,
-0.0033209919929504395,
-0.2997087836265564,
0.30976545810699463,
-0.01061556488275528,
0.19542530179023743,
-0.5048807859420776,
0.06046922504901886,
-0.1449749767780304,
-0.05814170092344284,
-0.3920212984085083,
0.08422111719846725,
0.25272950530052185,
-0.001938890665769577,
0.4069100618362427,
0.02527029812335968,
0.24503009021282196,
0.23137569427490234,
0.1444321721792221,
0.22628198564052582,
-0.3275948166847229,
-0.2952292561531067,
-0.08483389019966125,
0.09730485826730728,
0.08691546320915222,
-0.3969274163246155,
0.11729975789785385,
-0.06508919596672058,
-0.31529977917671204,
-0.3124709725379944,
0.08735597133636475,
-0.2713128626346588,
-0.2551388740539551,
-0.20853787660598755,
0.08097220212221146,
0.1313311755657196,
0.15046702325344086,
0.0512506328523159,
0.05978541821241379,
0.445284366607666,
-0.044495392590761185,
0.25806552171707153,
-0.04591653123497963,
-0.15459421277046204,
-0.1562345325946808,
0.31620314717292786,
0.11024336516857147,
-0.16587308049201965,
0.14323125779628754,
-0.0764932781457901,
-0.048283062875270844,
0.12569169700145721,
0.2863914966583252,
0.44067493081092834,
-0.12119022756814957,
-0.11709340661764145,
0.16243159770965576,
0.21354228258132935,
0.050942882895469666,
-0.061398863792419434,
0.28992751240730286,
-0.004301079548895359,
0.14874252676963806,
0.22044050693511963,
0.09931929409503937,
0.48835456371307373,
-0.1829397827386856,
-0.18197539448738098,
-0.004841224290430546,
-0.2605634331703186,
0.07872290909290314,
0.1737014353275299,
0.16640780866146088,
0.14761358499526978,
0.24607934057712555,
0.020912975072860718,
0.2158707231283188,
0.4435364603996277,
0.12824036180973053,
0.25691497325897217,
0.1124427393078804,
-0.00386970117688179,
-0.0385088250041008,
-0.31040987372398376,
-0.17242687940597534,
0.0914277657866478,
-0.15403199195861816,
0.5264847278594971,
0.14128458499908447,
0.22201856970787048,
0.13883963227272034,
-0.35000079870224,
0.07377529889345169,
0.26843270659446716,
-0.17019453644752502,
-0.09770292043685913,
-0.10231702774763107,
-0.031016521155834198,
-0.03594924509525299,
0.11019432544708252,
-0.17523401975631714,
-0.1695071905851364,
-0.18476474285125732,
0.1999712735414505,
0.3000330924987793,
0.09387382864952087,
-0.22300869226455688,
-0.07914691418409348,
0.3281955420970917,
0.008125226944684982,
0.17950278520584106,
0.09807366877794266,
-0.03967864811420441,
-0.1855432093143463,
0.07242292165756226,
0.25413939356803894,
0.03497600555419922,
-0.043364014476537704,
0.11477959901094437,
-0.18417096138000488,
0.03519893437623978,
0.03452940657734871,
0.1586121916770935,
-0.06212802231311798,
-0.04188969358801842,
0.3537071645259857,
0.1293506920337677,
-0.18870653212070465,
0.023320598527789116,
-0.21936281025409698,
0.038592275232076645,
-0.35088178515434265,
-0.08872608095407486,
0.21719875931739807,
-0.15083371102809906,
-0.15404260158538818,
-0.021206974983215332,
-0.13667261600494385,
-0.01333791296929121,
0.4808867573738098,
-0.03985820710659027,
-0.010962720029056072,
0.1647522896528244,
0.11761440336704254,
-0.039060018956661224,
0.40442147850990295,
0.010566577315330505,
0.23954519629478455,
-0.05638178437948227,
-0.09656339883804321,
-0.20681875944137573,
-0.006749413907527924,
-0.0731997936964035,
0.05948033928871155,
0.002174916211515665,
0.24241067469120026,
0.2541813254356384,
0.2695328891277313,
0.16107624769210815,
-0.6953025460243225,
0.18334661424160004,
0.1667526364326477,
-0.31046852469444275,
0.19581086933612823,
-0.5203767418861389,
0.08599639683961868,
0.01208551973104477,
-0.262579083442688,
0.18095062673091888,
-0.03356087580323219,
0.10297129303216934,
-0.3747434616088867,
0.168454110622406,
0.2756020724773407,
-0.010970015078783035,
0.49894869327545166,
-0.05325645953416824,
0.050233129411935806,
-0.05879509449005127,
-0.21400627493858337,
-0.19750207662582397,
0.1329282820224762,
-0.2930290400981903,
0.3630836308002472,
-0.011965204030275345,
0.3767121732234955,
-0.002535979263484478,
-0.5448250770568848,
-0.07443086802959442,
0.047702986747026443,
-0.06422114372253418,
-0.024888843297958374,
-0.12446992844343185,
0.11992575973272324,
-0.037132203578948975,
0.07385481148958206,
-0.009523920714855194,
0.5344942808151245,
-0.038755595684051514,
-0.00017563067376613617,
-0.33597472310066223,
-0.2364623099565506,
0.41602379083633423,
-0.4057110846042633,
-0.08452846109867096,
0.18114976584911346,
-0.03461180627346039,
0.18595051765441895,
0.31508851051330566,
-0.4879285395145416,
-0.2624371647834778,
0.40303412079811096,
-0.08743652701377869,
-0.26068052649497986,
0.4370509088039398,
0.21037165820598602,
-0.0576288178563118,
-0.04845823347568512,
0.2579081952571869,
-0.23908260464668274,
-0.27424073219299316,
-0.13076382875442505,
-0.2535410523414612
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Here's a notebook showing the performance difference: https://colab.research.google.com/gist/sayakpaul/d7ca67c90beb47e354942c9d8c0bd8ef/scratchpad.ipynb.
Note that I acknowledge that it's not an apples-to-apples comparison in many aspects (the dataset isn't the same, data serialization format isn't the same, etc.) but this is the best I could do. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 41 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Here's a notebook showing the performance difference: https://colab.research.google.com/gist/sayakpaul/d7ca67c90beb47e354942c9d8c0bd8ef/scratchpad.ipynb.
Note that I acknowledge that it's not an apples-to-apples comparison in many aspects (the dataset isn't the same, data serialization format isn't the same, etc.) but this is the best I could do. | [
-0.21969950199127197,
-0.3385400176048279,
-0.20645871758460999,
0.30945885181427,
0.17953848838806152,
0.08475372940301895,
0.15653382241725922,
0.6617066264152527,
-0.29074788093566895,
0.01681845635175705,
-0.2021189033985138,
0.5323149561882019,
0.02723846584558487,
-0.17319785058498383,
0.0961323156952858,
-0.10961359739303589,
0.052079953253269196,
0.009704187512397766,
-0.17526942491531372,
-0.037972502410411835,
-0.0078013576567173,
0.07654870301485062,
0.004936888813972473,
0.030712153762578964,
-0.14739613234996796,
0.03840802237391472,
0.13342399895191193,
0.23088040947914124,
0.12710541486740112,
-0.051002003252506256,
0.1960746794939041,
0.06282036006450653,
-0.06411492079496384,
0.32149577140808105,
-0.00010075359750771895,
0.31307774782180786,
0.09378325939178467,
0.04637262225151062,
0.03669511899352074,
-0.010771512985229492,
-0.09989457577466965,
-0.0866437554359436,
-0.1096169501543045,
-0.29125890135765076,
-0.10492442548274994,
-0.11539509892463684,
-0.03210800141096115,
-0.21072101593017578,
0.34504735469818115,
0.3595275282859802,
0.2559475898742676,
0.4194243550300598,
0.1236426830291748,
0.20623286068439484,
0.35844725370407104,
-0.16106563806533813,
-0.22412902116775513,
0.19940900802612305,
-0.039707936346530914,
0.03869873285293579,
-0.00904741883277893,
0.18941621482372284,
-0.09929381310939789,
0.13380244374275208,
0.20729655027389526,
0.011552659794688225,
-0.23765704035758972,
-0.3402147591114044,
-0.1383969485759735,
0.5566614270210266,
0.1488293707370758,
-0.1580733358860016,
-0.32668450474739075,
-0.15413862466812134,
-0.0734563022851944,
-0.12328819185495377,
0.08375827223062515,
-0.298942506313324,
-0.0591532327234745,
0.15982592105865479,
0.18944710493087769,
0.03397012874484062,
-0.370445191860199,
0.16043150424957275,
-0.05136941745877266,
0.10318055748939514,
-0.01993142068386078,
0.03669251501560211,
0.04643972963094711,
-0.0006568990647792816,
0.35090938210487366,
-0.08573949337005615,
0.23343047499656677,
-0.023822594434022903,
-0.3339686691761017,
-0.21502643823623657,
0.08368318527936935,
-0.2880711257457733,
0.045038141310214996,
-0.04846242815256119,
0.427252858877182,
0.33817994594573975,
-0.07245159894227982,
0.16252408921718597,
-0.4096303880214691,
-0.3289002776145935,
-0.17467287182807922,
-0.3410760462284088,
0.29032695293426514,
-0.3187183737754822,
-0.17388398945331573,
0.026160240173339844,
-0.12872432172298431,
-0.09690030664205551,
-0.21681170165538788,
-0.27101626992225647,
0.11988680064678192,
0.022746551781892776,
-0.4894711375236511,
0.015483688563108444,
0.03982604295015335,
-0.13190993666648865,
0.07104422897100449,
0.017835721373558044,
0.07608073204755783,
0.18879687786102295,
0.15059219300746918,
-0.12854789197444916,
-0.18739907443523407,
-0.16463980078697205,
-0.12913526594638824,
-0.087199866771698,
0.07523703575134277,
-0.0025070086121559143,
-0.13315698504447937,
-0.11391711235046387,
0.12153924256563187,
0.005633027292788029,
0.12553969025611877,
0.4118781089782715,
0.34046053886413574,
-0.20455312728881836,
-0.03834792226552963,
-0.028207462280988693,
-0.2784930467605591,
-0.22802472114562988,
0.11946679651737213,
0.3739360570907593,
-0.23340392112731934,
0.010095302015542984,
-0.3611529767513275,
-0.40313056111335754,
-0.0911947563290596,
0.21672290563583374,
-0.07370999455451965,
-0.36956778168678284,
-0.20814403891563416,
0.4232781231403351,
-0.03343848139047623,
-0.139952152967453,
-0.02652619034051895,
-0.3616682291030884,
-0.48725613951683044,
-0.38851282000541687,
0.1455092579126358,
0.028812266886234283,
-0.4965054392814636,
0.17872607707977295,
0.0949605405330658,
-0.03741550073027611,
0.04321262985467911,
0.2911111116409302,
-0.2606300413608551,
0.1773400604724884,
-0.04671184718608856,
0.13002637028694153,
0.8453935980796814,
-0.24092762172222137,
-0.20937637984752655,
0.22689735889434814,
-0.125837042927742,
0.12175238877534866,
0.042683761566877365,
0.15530799329280853,
0.04845762252807617,
-0.2236597239971161,
0.2214316874742508,
0.28693169355392456,
-0.03126031160354614,
-0.01272224448621273,
-0.3086871802806854,
-0.17686505615711212,
-0.015431758016347885,
0.1894209384918213,
-0.3439393937587738,
-0.2857624292373657,
0.01430271565914154,
-0.15150585770606995,
0.14935541152954102,
-0.16459795832633972,
-0.06520910561084747,
0.09531375765800476,
0.24793414771556854,
0.24416552484035492,
-0.11603397130966187,
-0.1702997088432312,
-0.2804306447505951,
0.2477758228778839,
0.207229346036911,
0.04159883037209511,
0.33884918689727783,
-0.17851698398590088,
0.14846640825271606,
-0.037032417953014374,
0.18721739947795868,
0.07214610278606415,
0.2360854148864746,
-0.09573513269424438,
0.16365277767181396,
0.09746958315372467,
-0.38323429226875305,
0.03261528164148331,
-0.6219784617424011,
0.014607863500714302,
0.05687013640999794,
0.2675253748893738,
0.19059200584888458,
-0.08367983996868134,
-0.026453731581568718,
0.11283480376005173,
-0.4485732614994049,
-0.26352882385253906,
-0.08534277975559235,
0.2851908206939697,
-0.21221695840358734,
-0.006256654858589172,
0.13860706984996796,
0.6366374492645264,
0.05043691396713257,
0.15621672570705414,
-0.03277409076690674,
0.18866793811321259,
-0.1339658796787262,
0.028105072677135468,
-0.07932374626398087,
0.5751585960388184,
0.2959841787815094,
0.0844494178891182,
0.0764191597700119,
-0.2106412649154663,
0.05681014060974121,
0.1573425829410553,
0.03919325768947601,
0.14799284934997559,
0.08432210981845856,
-0.195383220911026,
0.2867545783519745,
0.031500767916440964,
-0.47215136885643005,
0.45452508330345154,
0.7404885292053223,
0.03795411065220833,
-0.08446324616670609,
0.22105592489242554,
-0.05243159085512161,
-0.11306945234537125,
0.13104958832263947,
0.2261626273393631,
0.4895949959754944,
0.31667155027389526,
0.10979562997817993,
-0.15850399434566498,
-0.13190950453281403,
-0.2284211963415146,
0.30336248874664307,
-0.05610354244709015,
0.3522531986236572,
-0.014303997159004211,
0.009786863811314106,
0.16493041813373566,
-0.2613998353481293,
-0.4509163796901703,
-0.09888582676649094,
0.2141076922416687,
-0.15424014627933502,
-0.012488984502851963,
-0.15788084268569946,
-0.29006367921829224,
-0.08593828976154327,
0.13947947323322296,
-0.1478760838508606,
-0.2767386734485626,
-0.007174264639616013,
0.2553544342517853,
-0.003004385158419609,
-0.12053859978914261,
-0.182444229722023,
0.19233104586601257,
0.3432278037071228,
-0.264556348323822,
-0.28993290662765503,
0.12843894958496094,
-0.2685488164424896,
0.18477797508239746,
0.4144609272480011,
-0.0023100124672055244,
0.32790109515190125,
0.055456653237342834,
0.12729673087596893,
-0.23039573431015015,
-0.44183260202407837,
0.1172230914235115,
-0.4573558568954468,
0.23267017304897308,
0.0701683983206749,
0.32567039132118225,
-0.1698826104402542,
-0.043120741844177246,
0.21160851418972015,
-0.09014969319105148,
-0.08587150275707245,
-0.04802217334508896,
-0.005373865365982056,
-0.08834128081798553,
0.038584817200899124,
-0.285976380109787,
-0.08909475803375244,
-0.4689406156539917,
0.20869164168834686,
-0.08106391131877899,
0.17779111862182617,
0.021088074892759323,
0.08995978534221649,
0.5117729306221008,
0.09730912744998932,
0.2463698536157608,
-0.09260997176170349,
-0.5801593065261841,
0.3761022090911865,
-0.16450481116771698,
-0.31954431533813477,
-0.07272282242774963,
0.1834113895893097,
0.24222524464130402,
0.20176514983177185,
-0.43978577852249146,
-0.4490717053413391,
-0.24625785648822784,
0.35832807421684265,
-0.08596448600292206,
-0.12448336184024811,
0.15109476447105408,
-0.07502929866313934,
-0.20803116261959076,
-0.14814011752605438,
0.3506036698818207,
-0.08032532781362534,
-0.05579342693090439,
-0.025136999785900116,
0.3394697308540344,
0.20792534947395325,
0.26815149188041687,
0.6592736840248108,
0.1952306181192398,
-0.3299044072628021,
0.08990704268217087,
-0.21292608976364136,
0.001706831157207489,
-0.24701881408691406,
-0.06377752870321274,
0.1701393872499466,
-0.08578011393547058,
0.31594038009643555,
0.3554806709289551,
-0.08950585126876831,
0.08935687690973282,
-0.0010592713952064514,
0.10042990744113922,
0.046049751341342926,
-0.2213900089263916,
0.45224735140800476,
-0.16885541379451752,
0.09432083368301392,
-0.010408894158899784,
-0.02615111693739891,
-0.09376625716686249,
-0.18483904004096985,
0.21670836210250854,
0.26167964935302734,
0.29594385623931885,
-0.05425113067030907,
-0.10130888223648071,
0.10251854360103607,
-0.5116130709648132,
0.3232749104499817,
0.13873890042304993,
-0.07140075415372849,
0.009069729596376419,
-0.21373221278190613,
0.058773741126060486,
-0.04155715927481651,
0.3993203639984131,
-0.2602986693382263,
-0.332141637802124,
0.16649594902992249,
-0.16044199466705322,
-0.37972119450569153,
0.09433063864707947,
-0.22530877590179443,
0.06862126290798187,
0.21622683107852936,
0.316453754901886,
-0.2364005148410797,
-0.6168205738067627,
0.05360925942659378,
-0.009039614349603653,
0.03970940783619881,
0.023993216454982758,
-0.1041775643825531,
-0.009462982416152954,
-0.07606527209281921,
-0.11581742018461227,
-0.2093299925327301,
-0.08712460845708847,
-0.21258646249771118,
-0.10959361493587494,
-0.19668811559677124,
-0.0572335422039032,
0.3377457857131958,
0.1845845729112625,
-0.017619416117668152,
0.05371023714542389,
-0.043881699442863464,
-0.05050629377365112,
0.0029884688556194305,
0.46204692125320435,
0.23473748564720154,
0.059274207800626755,
-0.48372262716293335,
-0.25085726380348206,
0.18765239417552948,
0.023548312485218048,
0.20148712396621704,
-0.1498139351606369,
0.15959283709526062,
-0.3752289414405823,
0.1981789469718933,
-0.047439273446798325,
0.2803342342376709,
0.2877174913883209,
0.13017939031124115,
-0.13449355959892273,
-0.4023975431919098,
0.43705883622169495,
0.1126156747341156,
0.09960225224494934,
0.48525184392929077,
0.18440350890159607,
-0.2016674280166626,
0.21764153242111206,
0.2812553942203522,
0.8797295093536377,
-0.08919529616832733,
0.34035828709602356,
0.5525957942008972,
0.23603402078151703,
0.4651085436344147,
-0.3272857666015625,
0.001847740262746811,
-0.08213093876838684,
-0.28544387221336365,
-0.017494484782218933,
0.03993449732661247,
-0.019360661506652832,
0.020430635660886765,
0.028165224939584732,
-0.0019052650313824415,
0.42513078451156616,
0.12761297821998596,
-0.09932757914066315,
0.3066251277923584,
-0.05473790317773819,
-0.18082928657531738,
-0.04640021175146103,
0.26682502031326294,
0.009919952601194382,
-0.14192238450050354,
-0.011405897326767445,
-0.2822811007499695,
-0.5363638997077942,
0.2855978012084961,
0.0462031364440918,
-0.15489301085472107,
-0.4074991047382355,
0.300301730632782,
-0.2313997745513916,
-0.3869820833206177,
0.1898038536310196,
0.22525902092456818,
0.09715083986520767,
-0.19728197157382965,
-0.2816314995288849,
-0.13412006199359894,
0.15011641383171082,
-0.046494416892528534,
0.1159675344824791,
-0.42079177498817444,
0.5570424795150757,
0.002566833049058914,
0.09239720553159714,
0.07821120321750641,
0.02700357884168625,
-0.321397602558136,
-0.08475572615861893,
0.00003024190664291382,
0.042269282042980194,
-0.23850400745868683,
-0.3770562708377838,
0.05930718779563904,
-0.5327601432800293,
0.060584355145692825,
0.2361745834350586,
0.016494322568178177,
0.09804872423410416,
0.04909150302410126,
0.14122523367404938,
-0.11087257415056229,
0.06676515936851501,
0.008202984929084778,
-0.025484640151262283,
-0.045126937329769135,
0.06507929414510727,
-0.14525654911994934,
-0.20050014555454254,
-0.15860405564308167,
0.33314692974090576,
0.1559181660413742,
-0.10687223076820374,
0.0821276605129242,
0.04670806601643562,
0.18169580399990082,
-0.07600568234920502,
-0.005405645817518234,
-0.010039996355772018,
-0.013812795281410217,
-0.201697438955307,
0.005696684122085571,
-0.31674686074256897,
0.3152514100074768,
0.02476223185658455,
0.25327014923095703,
-0.4918021261692047,
0.06251057982444763,
-0.12372644245624542,
-0.18121232092380524,
-0.454012393951416,
0.21256029605865479,
0.31834152340888977,
0.013627838343381882,
0.35409849882125854,
0.013368338346481323,
0.29670050740242004,
0.13413004577159882,
0.19490580260753632,
0.22393028438091278,
-0.37545904517173767,
-0.3529658019542694,
-0.05952216684818268,
0.07560950517654419,
-0.00189199298620224,
-0.3254186511039734,
0.164126455783844,
-0.07827258110046387,
-0.26833173632621765,
-0.23777364194393158,
0.06669048964977264,
-0.16782453656196594,
-0.20859386026859283,
-0.09853251278400421,
0.11384570598602295,
0.22246763110160828,
0.049949757754802704,
0.052163220942020416,
0.0260239876806736,
0.33829444646835327,
-0.10022876411676407,
0.20303362607955933,
-0.11949813365936279,
-0.17203202843666077,
0.004900380037724972,
0.28202223777770996,
0.11154957115650177,
-0.09140660613775253,
0.1953011155128479,
0.023034196346998215,
-0.08407782018184662,
0.10593146830797195,
0.24968412518501282,
0.5052173137664795,
-0.20140038430690765,
0.0272838082164526,
0.10879652202129364,
0.29113295674324036,
0.08077359199523926,
0.05630858242511749,
0.22428718209266663,
-0.033728353679180145,
0.15699973702430725,
0.11139804124832153,
-0.020352039486169815,
0.392719566822052,
-0.07007570564746857,
-0.21409356594085693,
0.02773790806531906,
-0.37829726934432983,
0.06696777045726776,
0.051361873745918274,
0.18457554280757904,
-0.021994944661855698,
0.12348182499408722,
0.008744500577449799,
0.1977016031742096,
0.4307064414024353,
0.13655871152877808,
0.3498704433441162,
0.10806016623973846,
-0.01996186003088951,
0.0030125752091407776,
-0.1301988959312439,
-0.11134815216064453,
0.11093014478683472,
-0.10591189563274384,
0.4362289607524872,
0.18475452065467834,
0.3711182177066803,
0.13132190704345703,
-0.2839522957801819,
0.13052093982696533,
0.24312078952789307,
-0.11217502504587173,
-0.10992296040058136,
-0.11283151060342789,
0.04145804047584534,
0.009155996143817902,
0.03339080885052681,
-0.10055102407932281,
-0.10098256170749664,
-0.12235596776008606,
0.2788422405719757,
0.2601385712623596,
0.022308148443698883,
-0.05998603254556656,
-0.004053730517625809,
0.38587719202041626,
0.04346388205885887,
0.13569729030132294,
0.11534616351127625,
-0.09376314282417297,
-0.19185274839401245,
0.0725771114230156,
0.278938889503479,
0.0027025770395994186,
0.00829053670167923,
0.20477479696273804,
-0.19932503998279572,
-0.050127893686294556,
0.04192415252327919,
0.051366038620471954,
-0.03427761048078537,
-0.018142759799957275,
0.2778598964214325,
0.205708846449852,
-0.22990168631076813,
0.0011078529059886932,
-0.2184862643480301,
0.00008858926594257355,
-0.44788500666618347,
-0.08000033348798752,
0.14735953509807587,
-0.17277376353740692,
-0.1926964521408081,
-0.06257220357656479,
-0.14345011115074158,
0.030901886522769928,
0.3937975764274597,
-0.06484400480985641,
0.03943542391061783,
0.16098086535930634,
0.14474672079086304,
-0.07354426383972168,
0.4047269821166992,
-0.004015464335680008,
0.2598811984062195,
-0.01314136479049921,
-0.1776689887046814,
-0.32263556122779846,
-0.04623875766992569,
-0.007743421941995621,
0.19740138947963715,
-0.08193089812994003,
0.2772865295410156,
0.18570321798324585,
0.1717987060546875,
0.1917327344417572,
-0.7235807180404663,
0.1391780823469162,
0.1189369410276413,
-0.31980010867118835,
0.1710432469844818,
-0.4804072976112366,
-0.018345916643738747,
0.07733593136072159,
-0.24966084957122803,
0.09985698759555817,
-0.07696465402841568,
0.15614530444145203,
-0.3095967769622803,
0.15350082516670227,
0.26639047265052795,
0.03382660448551178,
0.4354769289493561,
-0.0257075447589159,
0.05324525386095047,
-0.11281102895736694,
-0.21883171796798706,
-0.159517303109169,
0.08500941097736359,
-0.29229217767715454,
0.4266743063926697,
-0.028403546661138535,
0.3393319845199585,
-0.022323301061987877,
-0.651293933391571,
-0.007278528530150652,
0.0710386335849762,
-0.06185285374522209,
-0.19267989695072174,
-0.12247207760810852,
0.03332562744617462,
-0.036524392664432526,
0.12036804854869843,
-0.07151574641466141,
0.5453874468803406,
-0.019060976803302765,
0.03893427550792694,
-0.3845481276512146,
-0.2518793046474457,
0.41032421588897705,
-0.337006151676178,
-0.06837386637926102,
0.17695985734462738,
0.03914545476436615,
0.14250436425209045,
0.28652894496917725,
-0.4824080467224121,
-0.2248680591583252,
0.416483610868454,
-0.09649495035409927,
-0.24266977608203888,
0.4471180737018585,
0.28105372190475464,
-0.009722750633955002,
-0.04624997079372406,
0.2618267238140106,
-0.10877389460802078,
-0.2508176863193512,
-0.045458950102329254,
-0.23305553197860718
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Thanks ! I think the speed difference can be partly explained: you use ds.shuffle in your dataset, which is an exact shuffling (compared to TFDS which does buffer shuffling): it slows down query time by 2x to 10x since it has to play with data that are not contiguous.
The rest of the speed difference seems to be caused by image decoding (from 330µs/image to 30ms/image) | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 66 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Thanks ! I think the speed difference can be partly explained: you use ds.shuffle in your dataset, which is an exact shuffling (compared to TFDS which does buffer shuffling): it slows down query time by 2x to 10x since it has to play with data that are not contiguous.
The rest of the speed difference seems to be caused by image decoding (from 330µs/image to 30ms/image) | [
-0.22871193289756775,
-0.3641956150531769,
-0.18967565894126892,
0.3243299126625061,
0.14951056241989136,
0.09072578698396683,
0.10503315925598145,
0.594196081161499,
-0.3187565803527832,
0.09548544883728027,
-0.26880747079849243,
0.511590838432312,
0.06493517756462097,
-0.25421467423439026,
-0.06945604830980301,
-0.10251429677009583,
0.053294043987989426,
0.01575465500354767,
-0.2313159704208374,
-0.1402798295021057,
0.018015366047620773,
0.0021998491138219833,
-0.007355533540248871,
-0.027454577386379242,
-0.16427761316299438,
0.0413418710231781,
0.09888562560081482,
0.21353009343147278,
0.08985399454832077,
0.062282808125019073,
0.10263825953006744,
0.09886778891086578,
-0.12381336838006973,
0.4477250874042511,
-0.00010172423935728148,
0.3630516529083252,
0.0243089459836483,
0.05862214416265488,
0.07861775159835815,
0.07144985347986221,
-0.019730322062969208,
-0.010479537770152092,
-0.13886424899101257,
-0.2621326744556427,
-0.18060100078582764,
-0.10538455098867416,
-0.11018455028533936,
-0.2527468204498291,
0.3126632571220398,
0.366411030292511,
0.2751590609550476,
0.3348286747932434,
0.020799104124307632,
0.21174491941928864,
0.39011988043785095,
-0.1432313770055771,
-0.2646115720272064,
0.2270064353942871,
-0.023593224585056305,
0.03533817082643509,
-0.0039051249623298645,
0.2775175869464874,
-0.11757926642894745,
0.17979462444782257,
0.21870377659797668,
0.059322942048311234,
-0.18707087635993958,
-0.32433363795280457,
0.006049342453479767,
0.6300134658813477,
0.13687676191329956,
-0.044891342520713806,
-0.3500007390975952,
-0.16174036264419556,
-0.1351044774055481,
-0.02809436060488224,
0.018012139946222305,
-0.2978602647781372,
-0.04899091646075249,
0.0906047523021698,
0.015883108600974083,
0.15779854357242584,
-0.24594198167324066,
0.07126092165708542,
-0.08053189516067505,
0.1134931668639183,
0.029468700289726257,
0.0696030706167221,
0.1259487122297287,
-0.008878152817487717,
0.36513686180114746,
-0.07550521194934845,
0.21671314537525177,
-0.0019272025674581528,
-0.4037555456161499,
-0.12929126620292664,
0.15845465660095215,
-0.25931936502456665,
-0.028465524315834045,
-0.11066542565822601,
0.4243237376213074,
0.32024946808815,
-0.035004399716854095,
0.02607388235628605,
-0.37355878949165344,
-0.2685224711894989,
-0.24888476729393005,
-0.2577883005142212,
0.18158964812755585,
-0.2816337049007416,
-0.23993445932865143,
0.025794802233576775,
-0.053163569420576096,
-0.11348135024309158,
-0.21670567989349365,
-0.3696310818195343,
0.04737599939107895,
0.026800241321325302,
-0.4263092279434204,
0.001669660210609436,
0.07291163504123688,
-0.14064671099185944,
0.027646858245134354,
0.1435597538948059,
-0.009110752493143082,
0.14019453525543213,
0.08679518103599548,
-0.1711474508047104,
-0.21624192595481873,
-0.07176338136196136,
-0.207778200507164,
-0.09872269630432129,
0.038439441472291946,
-0.003999730572104454,
-0.20967558026313782,
-0.12094967067241669,
0.09869168698787689,
0.04882781580090523,
0.14575853943824768,
0.4308921992778778,
0.26727956533432007,
-0.2749657928943634,
-0.0021023154258728027,
-0.01627546176314354,
-0.24276499450206757,
-0.17139789462089539,
0.14235980808734894,
0.3467089533805847,
-0.22389215230941772,
0.0122525654733181,
-0.4051712453365326,
-0.3763914406299591,
-0.09678050875663757,
0.22272813320159912,
-0.06578993052244186,
-0.3610561192035675,
-0.15560811758041382,
0.4967215061187744,
-0.028408817946910858,
-0.09835855662822723,
-0.06248866766691208,
-0.29862159490585327,
-0.5197868347167969,
-0.38657131791114807,
0.10941020399332047,
0.04236459732055664,
-0.5353072881698608,
0.26163339614868164,
0.05316995456814766,
0.06970915198326111,
0.1950661838054657,
0.3292231857776642,
-0.24601635336875916,
0.177219420671463,
-0.06554489582777023,
0.07530586421489716,
0.7978364825248718,
-0.22101160883903503,
-0.2175241857767105,
0.28121647238731384,
-0.10371152311563492,
0.1909787654876709,
0.0460432730615139,
0.16110128164291382,
0.10381504893302917,
-0.22406047582626343,
0.2536441683769226,
0.23726721107959747,
-0.0547904372215271,
0.07816771417856216,
-0.3272952735424042,
-0.14529870450496674,
0.11127723753452301,
0.2655172348022461,
-0.44208091497421265,
-0.18070751428604126,
0.06769401580095291,
-0.22456566989421844,
0.20090878009796143,
-0.20592543482780457,
-0.12438411265611649,
0.1520754098892212,
0.16920241713523865,
0.28261858224868774,
-0.053121570497751236,
-0.07637385278940201,
-0.2362801730632782,
0.27431923151016235,
0.24173849821090698,
0.1341710388660431,
0.3025800287723541,
-0.12962111830711365,
0.1422542929649353,
-0.1573210060596466,
0.11156930029392242,
0.054795436561107635,
0.24810078740119934,
-0.18451431393623352,
0.21811184287071228,
0.04779701307415962,
-0.3110690414905548,
-0.021585294976830482,
-0.6157093644142151,
-0.06104819476604462,
0.09036387503147125,
0.28910741209983826,
0.22113323211669922,
-0.10186722874641418,
-0.01996149681508541,
0.08288959413766861,
-0.4415701925754547,
-0.21815627813339233,
-0.1483142375946045,
0.32385802268981934,
-0.18658779561519623,
0.012771978974342346,
0.1659628003835678,
0.521719753742218,
-0.031675614416599274,
0.1685536801815033,
0.01910598948597908,
0.0835559293627739,
-0.11081252992153168,
-0.04882442206144333,
-0.07078326493501663,
0.5347047448158264,
0.20383107662200928,
0.18811659514904022,
0.08077366650104523,
-0.3343256711959839,
0.09500241279602051,
0.14769597351551056,
0.07249875366687775,
0.1300121694803238,
0.16244836151599884,
-0.20321430265903473,
0.2356654554605484,
0.12603366374969482,
-0.4625529944896698,
0.5013210773468018,
0.7457112669944763,
0.08773630857467651,
-0.14308515191078186,
0.24394983053207397,
-0.014414191246032715,
-0.21003484725952148,
0.08734074234962463,
0.2452642172574997,
0.5373163223266602,
0.32110315561294556,
0.13089099526405334,
-0.12918739020824432,
-0.16969455778598785,
-0.20513150095939636,
0.26450592279434204,
-0.07910659909248352,
0.375984251499176,
-0.0101051926612854,
0.03903612866997719,
0.16112883388996124,
-0.3224751949310303,
-0.45104730129241943,
-0.032649219036102295,
0.3315085470676422,
-0.07879476249217987,
0.030955607071518898,
-0.18980281054973602,
-0.3044626712799072,
0.054119765758514404,
0.13471515476703644,
-0.18927519023418427,
-0.2271660417318344,
-0.0009089633822441101,
0.18626773357391357,
-0.021522825583815575,
-0.17660266160964966,
-0.13212355971336365,
0.09367763996124268,
0.4450685977935791,
-0.31040042638778687,
-0.3262515068054199,
0.11711964756250381,
-0.3202609717845917,
0.18708115816116333,
0.287456750869751,
0.03327835351228714,
0.31338414549827576,
0.014304103329777718,
0.08797364681959152,
-0.25202882289886475,
-0.4238092601299286,
0.018437344580888748,
-0.46567732095718384,
0.2364487200975418,
0.04776333272457123,
0.35122060775756836,
-0.19710814952850342,
-0.0664668008685112,
0.2584008574485779,
-0.05373227968811989,
-0.08271396905183792,
-0.024754108861088753,
-0.0582176148891449,
-0.09104370325803757,
0.034702401608228683,
-0.2246955931186676,
-0.05808402597904205,
-0.4505096971988678,
0.10389586538076401,
-0.01994289830327034,
0.1938287615776062,
0.059383463114500046,
0.13579829037189484,
0.42120277881622314,
0.06315474957227707,
0.27593931555747986,
-0.18946252763271332,
-0.5761392712593079,
0.37740403413772583,
-0.11507425457239151,
-0.3253149688243866,
-0.1309538185596466,
0.1683734953403473,
0.27652671933174133,
0.24649977684020996,
-0.4351281523704529,
-0.4397064447402954,
-0.366197407245636,
0.29574358463287354,
-0.12881894409656525,
-0.1002635657787323,
0.12332995235919952,
-0.08521763980388641,
-0.2062559723854065,
-0.12291359901428223,
0.3272814452648163,
-0.1061205342411995,
-0.00034400448203086853,
0.0037734657526016235,
0.24755042791366577,
0.23195818066596985,
0.27457642555236816,
0.580543041229248,
0.10758103430271149,
-0.3337016999721527,
0.1005396842956543,
-0.2099728137254715,
0.06664135307073593,
-0.36490631103515625,
-0.07919736951589584,
0.23400580883026123,
0.010644271969795227,
0.23981793224811554,
0.2978900372982025,
-0.13207975029945374,
0.011917909607291222,
-0.020644957199692726,
0.19548925757408142,
0.0577135905623436,
-0.18662835657596588,
0.36392560601234436,
-0.1057216078042984,
0.015351105481386185,
0.06554268300533295,
0.034184783697128296,
-0.10452178120613098,
-0.20248588919639587,
0.1358121633529663,
0.2134760022163391,
0.29505565762519836,
-0.09026028960943222,
-0.17176547646522522,
0.13341830670833588,
-0.5635493993759155,
0.2791580557823181,
0.11538714170455933,
-0.05302998423576355,
0.008173521608114243,
-0.16043344140052795,
0.16046777367591858,
-0.003640891518443823,
0.4517069458961487,
-0.22958804666996002,
-0.28923720121383667,
0.18303042650222778,
-0.23889800906181335,
-0.438664048910141,
0.0010088011622428894,
-0.23326246440410614,
-0.0604805164039135,
0.21516266465187073,
0.38470137119293213,
-0.25941482186317444,
-0.5384169220924377,
0.03237525746226311,
-0.032297879457473755,
0.0695258229970932,
-0.020900720730423927,
-0.14962579309940338,
-0.13941043615341187,
0.057267919182777405,
-0.1260594129562378,
-0.2511211037635803,
-0.05195529758930206,
-0.20117834210395813,
-0.17648302018642426,
-0.14431731402873993,
-0.027954181656241417,
0.29174453020095825,
0.14688877761363983,
0.01269468106329441,
0.08719873428344727,
0.06400667130947113,
0.029468826949596405,
0.01899125427007675,
0.35453563928604126,
0.2331676036119461,
0.0695771872997284,
-0.423536479473114,
-0.2010054588317871,
0.1899576187133789,
-0.1235676035284996,
0.2792539596557617,
-0.07596031576395035,
0.17696934938430786,
-0.38409730792045593,
0.3132396340370178,
-0.013591228984296322,
0.25525540113449097,
0.36577147245407104,
0.0813477635383606,
-0.14969800412654877,
-0.4528326392173767,
0.3922303020954132,
0.13895432651042938,
0.10976742208003998,
0.4715740978717804,
0.16940777003765106,
-0.1522841602563858,
0.25099146366119385,
0.2219456434249878,
0.878351628780365,
-0.0984012633562088,
0.28630194067955017,
0.5740466713905334,
0.2036612182855606,
0.4246132969856262,
-0.250629186630249,
-0.03696143627166748,
-0.07194560021162033,
-0.3690432608127594,
-0.003306536003947258,
0.01714552566409111,
-0.07451022416353226,
0.024226637557148933,
0.06782858073711395,
0.041932612657547,
0.367428719997406,
0.048806291073560715,
-0.12045399844646454,
0.18737298250198364,
0.017496850341558456,
-0.12275795638561249,
-0.0008956175297498703,
0.2606264650821686,
0.02592676319181919,
-0.1253645420074463,
0.04529513791203499,
-0.2221505492925644,
-0.6071521639823914,
0.32623326778411865,
0.031220346689224243,
-0.13753223419189453,
-0.33774834871292114,
0.2738814353942871,
-0.23500654101371765,
-0.3509356379508972,
0.08263160288333893,
0.23000754415988922,
0.007800698280334473,
-0.20716841518878937,
-0.23620134592056274,
0.0006303340196609497,
0.18460634350776672,
0.09096521139144897,
0.19264160096645355,
-0.4831285774707794,
0.46963533759117126,
0.0192069411277771,
0.08349353820085526,
0.032949429005384445,
-0.005883723963052034,
-0.37269169092178345,
-0.16569170355796814,
0.05567733943462372,
-0.025383852422237396,
-0.18410666286945343,
-0.40943241119384766,
0.06255537271499634,
-0.47502028942108154,
0.07427668571472168,
0.24363648891448975,
0.009270995855331421,
0.13248297572135925,
0.17603668570518494,
0.1665138155221939,
-0.2589113116264343,
0.040761418640613556,
0.11479274928569794,
0.06626138836145401,
-0.03412695229053497,
-0.03945638984441757,
-0.16817618906497955,
-0.23324261605739594,
-0.1087210401892662,
0.25156891345977783,
0.13672494888305664,
-0.16829857230186462,
0.12321269512176514,
-0.00039519136771559715,
0.18930433690547943,
-0.022740574553608894,
-0.054867248982191086,
-0.05059204250574112,
-0.016179159283638,
-0.2765778601169586,
0.07231290638446808,
-0.20735689997673035,
0.24919070303440094,
0.03744068741798401,
0.2297043651342392,
-0.50673508644104,
0.04674790799617767,
-0.18523626029491425,
-0.1423189342021942,
-0.452674925327301,
0.20111843943595886,
0.26095008850097656,
0.06726062297821045,
0.28390926122665405,
-0.06794413924217224,
0.2904825210571289,
0.16399647295475006,
0.22490043938159943,
0.26098763942718506,
-0.3423570990562439,
-0.36832401156425476,
0.016490627080202103,
0.0641736090183258,
-0.0268423929810524,
-0.3964631259441376,
0.2033775895833969,
-0.13166214525699615,
-0.3453921377658844,
-0.24726182222366333,
0.09755359590053558,
-0.056725841015577316,
-0.23089046776294708,
-0.2036421298980713,
0.10681593418121338,
0.1001972034573555,
0.16307099163532257,
0.062379755079746246,
-0.052289485931396484,
0.3600795269012451,
-0.09062816202640533,
0.1464426964521408,
-0.10084840655326843,
-0.22667059302330017,
0.038449808955192566,
0.19715367257595062,
0.0012054815888404846,
-0.1199864074587822,
0.2490856647491455,
-0.01758250594139099,
-0.02336944453418255,
0.10698153078556061,
0.35828259587287903,
0.5454192161560059,
-0.14598652720451355,
-0.14764325320720673,
0.12558414041996002,
0.2842939794063568,
0.0643577128648758,
-0.0903516337275505,
0.21326768398284912,
0.03706122934818268,
0.2065328061580658,
0.030473671853542328,
-0.09842964261770248,
0.42231786251068115,
-0.10406830906867981,
-0.22015351057052612,
0.06859093904495239,
-0.3496226668357849,
0.021151401102542877,
0.08183743059635162,
0.14289557933807373,
-0.011122766882181168,
0.17263095080852509,
-0.06918951869010925,
0.05340961739420891,
0.5586380362510681,
0.22878652811050415,
0.37648677825927734,
0.12006286531686783,
0.013965543359518051,
-0.08180046826601028,
-0.15550380945205688,
-0.05277753993868828,
0.1876041293144226,
-0.22715112566947937,
0.42040929198265076,
0.1857253611087799,
0.2364118993282318,
0.12217620760202408,
-0.2633398175239563,
0.14145991206169128,
0.21800823509693146,
-0.09129757434129715,
-0.09086710214614868,
-0.026779938489198685,
0.04510241001844406,
-0.06724977493286133,
0.09019504487514496,
-0.12864187359809875,
-0.026007898151874542,
-0.18809473514556885,
0.18316338956356049,
0.26685601472854614,
0.022863827645778656,
-0.10119972378015518,
-0.09666121751070023,
0.3662126362323761,
0.08538906276226044,
0.15491676330566406,
0.1479118913412094,
-0.05814442038536072,
-0.04550415650010109,
0.04100636765360832,
0.24323704838752747,
0.05232846736907959,
0.08781898021697998,
0.1700834333896637,
-0.16777847707271576,
-0.07177422940731049,
0.054982930421829224,
0.1492127627134323,
-0.013483963906764984,
-0.0845993161201477,
0.3089733123779297,
0.1804257184267044,
-0.2580110430717468,
-0.06532670557498932,
-0.24844540655612946,
0.09159007668495178,
-0.4117647707462311,
-0.12595891952514648,
0.02875678613781929,
-0.06102438643574715,
-0.19005626440048218,
-0.06136865168809891,
-0.16014966368675232,
-0.02869320660829544,
0.2734642028808594,
-0.15749554336071014,
0.011656126007437706,
0.15185792744159698,
0.13858163356781006,
-0.10674901306629181,
0.4552953839302063,
0.045595552772283554,
0.28702422976493835,
-0.002526544965803623,
-0.21340321004390717,
-0.31716620922088623,
-0.10005392879247665,
-0.06455175578594208,
0.2284819483757019,
-0.039858292788267136,
0.4243481457233429,
0.14302217960357666,
0.1662147343158722,
0.2698143720626831,
-0.64505535364151,
0.18196624517440796,
0.21521632373332977,
-0.27446407079696655,
0.1662132441997528,
-0.5886757373809814,
-0.008217921480536461,
0.00032341666519641876,
-0.3114473223686218,
0.1970689296722412,
-0.021086204797029495,
0.17629295587539673,
-0.25609785318374634,
0.16474966704845428,
0.26564809679985046,
0.059927958995103836,
0.3822426497936249,
0.013916511088609695,
0.08811593055725098,
-0.08713294565677643,
-0.1168988049030304,
-0.12597373127937317,
0.09243012219667435,
-0.24317127466201782,
0.34725484251976013,
0.02491173893213272,
0.3277668058872223,
0.09453464299440384,
-0.6351662278175354,
0.05658508464694023,
0.18456462025642395,
-0.0510227233171463,
-0.11575821042060852,
-0.14062705636024475,
0.08303216099739075,
0.07474278658628464,
0.11426132917404175,
-0.14303246140480042,
0.48540952801704407,
0.05689948424696922,
0.04446201026439667,
-0.3466950058937073,
-0.24764788150787354,
0.46007341146469116,
-0.22596880793571472,
-0.08764427900314331,
0.14841587841510773,
-0.016660183668136597,
0.20346316695213318,
0.28074315190315247,
-0.34435078501701355,
-0.22746136784553528,
0.40716978907585144,
-0.11837304383516312,
-0.20676903426647186,
0.4767678380012512,
0.21998192369937897,
-0.022024400532245636,
-0.0014628060162067413,
0.16615153849124908,
-0.13680288195610046,
-0.21048223972320557,
-0.016235005110502243,
-0.19617290794849396
] |
https://github.com/huggingface/datasets/issues/4542 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ? | Fair enough. Can do one without shuffling too. But it's an important one to consider I guess. | To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data | 17 | [to_tf_dataset] Use Feather for better compatibility with TensorFlow ?
To have better performance in TensorFlow, it is important to provide lists of data files in supported formats. For example sharded TFRecords datasets are extremely performant. This is because tf.data can better leverage parallelism in this case, and load one file at a time in memory.
It seems that using `tensorflow_io` we could have something similar for `to_tf_dataset` if we provide sharded Feather files: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowFeatherDataset
Feather is a format almost equivalent to the Arrow IPC Stream format we're using in `datasets`: Feather V2 is equivalent to Arrow IPC File format, which is an extension of the stream format (it has an extra footer). Therefore we could store datasets as Feather instead of Arrow IPC Stream format without breaking the whole library.
Here are a few points to explore
- [ ] check the performance of ArrowFeatherDataset in tf.data
- [ ] check what would change if we were to switch to Feather if needed, in particular check that those are fine: memory mapping, typing, writing, reading to python objects, etc.
We would also need to implement sharding when loading a dataset (this will be done anyway for #546)
cc @Rocketknight1 @gante feel free to comment in case I missed anything !
I'll share some files and scripts, so that we can benchmark performance of Feather files with tf.data
Fair enough. Can do one without shuffling too. But it's an important one to consider I guess. | [
-0.169965922832489,
-0.3561721742153168,
-0.17893844842910767,
0.3590160608291626,
0.1892334222793579,
0.12650755047798157,
0.1364956796169281,
0.6386116147041321,
-0.2957867980003357,
0.028843954205513,
-0.20244094729423523,
0.528727650642395,
-0.007805046625435352,
-0.15644265711307526,
0.08745121955871582,
-0.11597895622253418,
0.02774413675069809,
-0.00016169250011444092,
-0.1695885956287384,
-0.05405845493078232,
-0.030034169554710388,
0.017243769019842148,
-0.009304255247116089,
0.00946887582540512,
-0.1400197148323059,
0.0023925192654132843,
0.12266165018081665,
0.23046404123306274,
0.11310733109712601,
-0.01509200967848301,
0.10213282704353333,
0.09881769120693207,
-0.0884481817483902,
0.3528575003147125,
-0.00010073365410789847,
0.3065720796585083,
0.056819576770067215,
0.015953337773680687,
0.025780975818634033,
-0.0284845232963562,
-0.07910379767417908,
-0.03189506381750107,
-0.14562682807445526,
-0.2867172062397003,
-0.10102695226669312,
-0.10838183015584946,
-0.01929175667464733,
-0.22498823702335358,
0.3349153995513916,
0.36015814542770386,
0.2585706412792206,
0.39852258563041687,
0.0954405665397644,
0.2365376502275467,
0.4153806269168854,
-0.1549648940563202,
-0.21361280977725983,
0.17303848266601562,
-0.08736209571361542,
0.06979627907276154,
-0.0025388896465301514,
0.1857796162366867,
-0.06587737798690796,
0.11916841566562653,
0.21402797102928162,
-0.010454258881509304,
-0.24220260977745056,
-0.3582288920879364,
-0.1550755500793457,
0.562465250492096,
0.15935668349266052,
-0.18358388543128967,
-0.3387226164340973,
-0.14210358262062073,
-0.04194749519228935,
-0.11559939384460449,
0.08803045749664307,
-0.29490816593170166,
0.000812554731965065,
0.09442281723022461,
0.21656827628612518,
0.05300801619887352,
-0.3540347218513489,
0.15169697999954224,
-0.05851896479725838,
0.158384308218956,
-0.007706228643655777,
0.04781125485897064,
0.08018512278795242,
0.0016995929181575775,
0.3561052083969116,
-0.07291285693645477,
0.22329595685005188,
0.005550268571823835,
-0.3138887584209442,
-0.21130497753620148,
0.0734628215432167,
-0.2654038071632385,
0.03597322106361389,
-0.10178481042385101,
0.4306987226009369,
0.3111250102519989,
-0.06629401445388794,
0.13896971940994263,
-0.36028558015823364,
-0.3281070291996002,
-0.17276954650878906,
-0.29882848262786865,
0.2553480267524719,
-0.3099880814552307,
-0.16230668127536774,
0.01779448240995407,
-0.14414620399475098,
-0.10701870918273926,
-0.2292286455631256,
-0.2953532636165619,
0.107688307762146,
0.06033642217516899,
-0.456161767244339,
-0.01840575411915779,
0.07300936430692673,
-0.13546213507652283,
0.11136267334222794,
0.033043574541807175,
0.08845619112253189,
0.20562824606895447,
0.13196206092834473,
-0.1463230699300766,
-0.15683908760547638,
-0.11672156304121017,
-0.15851247310638428,
-0.09889593720436096,
0.04020024463534355,
0.005761975422501564,
-0.13598334789276123,
-0.08516387641429901,
0.10232990235090256,
0.007768192328512669,
0.1584482491016388,
0.4297389090061188,
0.3087165653705597,
-0.19254711270332336,
-0.013774856925010681,
-0.00003410503268241882,
-0.2933759391307831,
-0.20207712054252625,
0.11510100960731506,
0.41058415174484253,
-0.25619637966156006,
0.03907061368227005,
-0.37824302911758423,
-0.432696133852005,
-0.05323091894388199,
0.2285328209400177,
-0.07409854233264923,
-0.3786095976829529,
-0.21830731630325317,
0.41465961933135986,
0.007673293352127075,
-0.14049158990383148,
-0.0026264116168022156,
-0.3422258496284485,
-0.5013138651847839,
-0.43176141381263733,
0.11357929557561874,
0.02154066413640976,
-0.4806227385997772,
0.19797056913375854,
0.11188822239637375,
-0.04144875332713127,
0.056662775576114655,
0.305563360452652,
-0.25834062695503235,
0.12375745177268982,
-0.06033257395029068,
0.09567354619503021,
0.8604983687400818,
-0.23289871215820312,
-0.19928689301013947,
0.17196162045001984,
-0.16625136137008667,
0.15257111191749573,
0.048277225345373154,
0.15878307819366455,
0.00925202202051878,
-0.25935208797454834,
0.24820326268672943,
0.2874104976654053,
-0.08343960344791412,
0.017684107646346092,
-0.32681047916412354,
-0.16178831458091736,
0.005662225186824799,
0.21723823249340057,
-0.3477609157562256,
-0.2609193027019501,
-0.005373053252696991,
-0.16638310253620148,
0.13671866059303284,
-0.14473851025104523,
-0.04984184354543686,
0.07328610122203827,
0.2548794746398926,
0.2757928967475891,
-0.06638860702514648,
-0.13242149353027344,
-0.31056854128837585,
0.2424391210079193,
0.24591651558876038,
0.033558059483766556,
0.3390144109725952,
-0.22473818063735962,
0.16222620010375977,
-0.05260792374610901,
0.15264874696731567,
0.1164032518863678,
0.22842904925346375,
-0.13143832981586456,
0.12996575236320496,
0.07992590963840485,
-0.41477882862091064,
0.025115150958299637,
-0.6621866822242737,
-0.0007171403849497437,
0.05513907968997955,
0.2817169725894928,
0.17845971882343292,
-0.06890904903411865,
-0.04444337636232376,
0.15568256378173828,
-0.4403625428676605,
-0.2752167880535126,
-0.08001306653022766,
0.2964130640029907,
-0.20257776975631714,
-0.03951677680015564,
0.12214469909667969,
0.6302061676979065,
0.07962539792060852,
0.15906082093715668,
-0.038806989789009094,
0.1090189665555954,
-0.15877389907836914,
0.018119603395462036,
-0.020856522023677826,
0.5778883099555969,
0.18386699259281158,
0.055414434522390366,
0.07866859436035156,
-0.242842897772789,
0.06410107761621475,
0.1953299194574356,
0.029438471421599388,
0.11264872550964355,
0.09404695779085159,
-0.21339231729507446,
0.2331496924161911,
0.0678386315703392,
-0.49610912799835205,
0.4624631106853485,
0.7639830708503723,
0.07682645320892334,
-0.10268143564462662,
0.24567708373069763,
0.007305659353733063,
-0.12069422751665115,
0.09237663447856903,
0.25582996010780334,
0.4951620101928711,
0.3146292269229889,
0.13392089307308197,
-0.1596221774816513,
-0.10703012347221375,
-0.23729349672794342,
0.27280446887016296,
-0.07195621728897095,
0.38642165064811707,
-0.0088944211602211,
-0.001016336027532816,
0.15198680758476257,
-0.2513466775417328,
-0.44180673360824585,
-0.03480163589119911,
0.2778970003128052,
-0.18302664160728455,
-0.04405234754085541,
-0.13074462115764618,
-0.2840564548969269,
-0.12165422737598419,
0.11286655813455582,
-0.18575447797775269,
-0.2402721643447876,
0.05939878523349762,
0.25810572504997253,
-0.054781295359134674,
-0.10337840020656586,
-0.15772424638271332,
0.20902010798454285,
0.3418644368648529,
-0.27397677302360535,
-0.3083341419696808,
0.12669526040554047,
-0.22046834230422974,
0.18562136590480804,
0.3998081386089325,
-0.02252678945660591,
0.3462885916233063,
0.053490281105041504,
0.12029795348644257,
-0.23251459002494812,
-0.43627429008483887,
0.08129875361919403,
-0.46922022104263306,
0.19778631627559662,
0.07448741793632507,
0.3315243124961853,
-0.1968655288219452,
-0.07595361769199371,
0.20902949571609497,
-0.1286630928516388,
-0.08188216388225555,
-0.013468289747834206,
-0.02898077853024006,
-0.05835219845175743,
-0.00023584067821502686,
-0.27492859959602356,
-0.11742407828569412,
-0.49091392755508423,
0.21495971083641052,
-0.07959455251693726,
0.21247316896915436,
0.0016200682148337364,
0.09626691788434982,
0.47526276111602783,
0.07386700063943863,
0.19883733987808228,
-0.12426304072141647,
-0.612556517124176,
0.3650308847427368,
-0.17111507058143616,
-0.3117223083972931,
-0.07223169505596161,
0.15901945531368256,
0.21943974494934082,
0.23155660927295685,
-0.44583719968795776,
-0.46671023964881897,
-0.2120959609746933,
0.3114875257015228,
-0.09594367444515228,
-0.11302301287651062,
0.1537543535232544,
-0.09157135337591171,
-0.19258257746696472,
-0.14049264788627625,
0.35448580980300903,
-0.029762856662273407,
-0.011682402342557907,
-0.013644427061080933,
0.3055785596370697,
0.18282225728034973,
0.28390106558799744,
0.6821562051773071,
0.1866799294948578,
-0.31931495666503906,
0.06949244439601898,
-0.18842795491218567,
0.01385962963104248,
-0.2613619565963745,
-0.0645943135023117,
0.1813717633485794,
-0.026562973856925964,
0.30193066596984863,
0.3543383479118347,
-0.11111677438020706,
0.08006922155618668,
0.024480260908603668,
0.14153790473937988,
0.07002002745866776,
-0.21670985221862793,
0.4712260663509369,
-0.18407073616981506,
0.08543100208044052,
-0.035949382930994034,
-0.07140988111495972,
-0.09728021919727325,
-0.1741110384464264,
0.17466938495635986,
0.27968648076057434,
0.288185179233551,
-0.052752211689949036,
-0.1570127308368683,
0.07013215124607086,
-0.47742652893066406,
0.29475051164627075,
0.1501433402299881,
-0.0156918466091156,
0.015250120311975479,
-0.20074892044067383,
0.06319096684455872,
-0.018979046493768692,
0.44287556409835815,
-0.27921557426452637,
-0.3043670058250427,
0.1797429472208023,
-0.13575954735279083,
-0.38041603565216064,
0.08877594769001007,
-0.18640181422233582,
0.009320622310042381,
0.2062932550907135,
0.320604145526886,
-0.24329429864883423,
-0.622983992099762,
0.05944288522005081,
-0.022966593503952026,
0.03355248644948006,
-0.001979595050215721,
-0.14265356957912445,
-0.03652358055114746,
-0.05789286643266678,
-0.10450436919927597,
-0.1742459535598755,
-0.14457423985004425,
-0.24588078260421753,
-0.11402487754821777,
-0.15080779790878296,
-0.06751380860805511,
0.3093157410621643,
0.15229582786560059,
0.0062733786180615425,
0.10801398754119873,
-0.03771868348121643,
0.011634334921836853,
0.012417465448379517,
0.48665156960487366,
0.23670923709869385,
0.03388615697622299,
-0.4866218566894531,
-0.25404226779937744,
0.18108004331588745,
0.017587855458259583,
0.21125288307666779,
-0.1499161571264267,
0.16891798377037048,
-0.39324912428855896,
0.19220733642578125,
-0.035616785287857056,
0.26752758026123047,
0.2716031074523926,
0.0843568667769432,
-0.1718524843454361,
-0.4393277168273926,
0.4194992780685425,
0.1291276216506958,
0.12379129230976105,
0.5304476022720337,
0.1897697001695633,
-0.2160661518573761,
0.24311137199401855,
0.2842820882797241,
0.9061716198921204,
-0.14849820733070374,
0.32432037591934204,
0.5832548141479492,
0.21071697771549225,
0.4394800364971161,
-0.3183460235595703,
0.002613919787108898,
-0.1265828013420105,
-0.29924288392066956,
-0.008174106478691101,
0.021550241857767105,
-0.020655885338783264,
0.02775747701525688,
-0.013828791677951813,
-0.00965789146721363,
0.3767051100730896,
0.11044462025165558,
-0.13801582157611847,
0.29109442234039307,
-0.06255076080560684,
-0.1605626791715622,
-0.01915697008371353,
0.253361314535141,
0.008340556174516678,
-0.15716177225112915,
0.004732869565486908,
-0.26746273040771484,
-0.5178806185722351,
0.3011375069618225,
0.06272701919078827,
-0.18417847156524658,
-0.41097235679626465,
0.27043116092681885,
-0.27985867857933044,
-0.34645795822143555,
0.20696738362312317,
0.1922696977853775,
0.126691997051239,
-0.2132837325334549,
-0.2632318139076233,
-0.12230578064918518,
0.17870178818702698,
-0.06750886887311935,
0.10597900301218033,
-0.38196584582328796,
0.5733456611633301,
0.01164548471570015,
0.06852679699659348,
0.04927714914083481,
0.034328874200582504,
-0.3325503468513489,
-0.13258081674575806,
-0.011872649192810059,
0.06576859951019287,
-0.25068923830986023,
-0.3763946294784546,
0.07337450981140137,
-0.502792477607727,
0.05507388338446617,
0.24543657898902893,
0.04528272524476051,
0.06919477880001068,
0.0712476372718811,
0.10846459865570068,
-0.1189349889755249,
0.05552801117300987,
-0.023902088403701782,
-0.011374283581972122,
-0.044003069400787354,
0.04387860745191574,
-0.13673977553844452,
-0.19057974219322205,
-0.16186150908470154,
0.3227832615375519,
0.14463984966278076,
-0.12676504254341125,
0.1321091502904892,
0.05410975217819214,
0.15816481411457062,
-0.09769948571920395,
0.03279700130224228,
-0.010800611227750778,
0.010026015341281891,
-0.19851070642471313,
0.004697851836681366,
-0.33381110429763794,
0.3198043406009674,
0.04834365099668503,
0.28984498977661133,
-0.5029889345169067,
0.09968894720077515,
-0.13328632712364197,
-0.12509530782699585,
-0.4605610966682434,
0.22317011654376984,
0.30889901518821716,
0.06611311435699463,
0.357039213180542,
0.004886619746685028,
0.26080137491226196,
0.1524803191423416,
0.19182553887367249,
0.22960400581359863,
-0.41230860352516174,
-0.35214710235595703,
-0.03118319809436798,
0.06999775022268295,
-0.0036110132932662964,
-0.3280927538871765,
0.17870908975601196,
-0.12281802296638489,
-0.3135661482810974,
-0.21044273674488068,
0.03928504139184952,
-0.14134547114372253,
-0.2203664928674698,
-0.04783027619123459,
0.14773081243038177,
0.1930558830499649,
0.06878969073295593,
0.07954882085323334,
0.018334269523620605,
0.30383652448654175,
-0.07799703627824783,
0.20714488625526428,
-0.16650858521461487,
-0.18943318724632263,
0.01496545597910881,
0.25045108795166016,
0.08848385512828827,
-0.05934588611125946,
0.1532098948955536,
0.011834181845188141,
-0.05860969424247742,
0.12675420939922333,
0.2729801535606384,
0.5248713493347168,
-0.17760393023490906,
-0.015713127329945564,
0.1509976089000702,
0.2870846092700958,
0.06968799233436584,
0.07054147869348526,
0.25953060388565063,
0.011607855558395386,
0.1652492880821228,
0.1159149557352066,
-0.03783518075942993,
0.364377498626709,
-0.10221187770366669,
-0.19838091731071472,
-0.009845497086644173,
-0.3701375722885132,
0.10494309663772583,
0.049297623336315155,
0.11836512386798859,
-0.03330659493803978,
0.11503642797470093,
0.011546628549695015,
0.18090882897377014,
0.4258997440338135,
0.14277316629886627,
0.38362088799476624,
0.09240124374628067,
-0.04683598503470421,
-0.008644714951515198,
-0.17999988794326782,
-0.07344353199005127,
0.1535700261592865,
-0.1268383413553238,
0.44207876920700073,
0.23824761807918549,
0.3968070149421692,
0.14723172783851624,
-0.2894492447376251,
0.15492025017738342,
0.22519513964653015,
-0.11654692143201828,
-0.08574943244457245,
-0.056437522172927856,
0.006118841469287872,
0.011258281767368317,
0.02417820319533348,
-0.0760158896446228,
-0.0786350816488266,
-0.10770981013774872,
0.2799418568611145,
0.2694646716117859,
0.0055426983162760735,
-0.0018475428223609924,
0.015222219750285149,
0.39464619755744934,
0.054664287716150284,
0.14766713976860046,
0.09175831079483032,
-0.13669870793819427,
-0.1258402317762375,
0.006594790145754814,
0.20636975765228271,
0.02131866104900837,
0.05026988312602043,
0.26518288254737854,
-0.20734091103076935,
-0.04302489757537842,
0.05894364416599274,
0.07673679292201996,
0.01948516070842743,
-0.031000535935163498,
0.29439157247543335,
0.19945916533470154,
-0.2325792908668518,
-0.01910419389605522,
-0.1979740709066391,
-0.005060385912656784,
-0.4255552291870117,
-0.04989119619131088,
0.1679866760969162,
-0.19400858879089355,
-0.17210665345191956,
-0.07598208636045456,
-0.11551785469055176,
0.012529809027910233,
0.35264280438423157,
-0.07463077455759048,
0.02384946495294571,
0.14084699749946594,
0.14177554845809937,
-0.017402663826942444,
0.4131602644920349,
-0.017547931522130966,
0.24298077821731567,
-0.028875134885311127,
-0.20764407515525818,
-0.33454254269599915,
-0.009989209473133087,
0.014450538903474808,
0.2281150221824646,
-0.047209709882736206,
0.3285689353942871,
0.16476577520370483,
0.1310548186302185,
0.2269323468208313,
-0.6945774555206299,
0.15485143661499023,
0.14853236079216003,
-0.3185217082500458,
0.18390393257141113,
-0.5425829291343689,
0.02971068024635315,
0.0828050822019577,
-0.24606534838676453,
0.08058881014585495,
-0.06700214743614197,
0.15689906477928162,
-0.3155896067619324,
0.16471648216247559,
0.22786131501197815,
0.0021533221006393433,
0.42493441700935364,
-0.0591195747256279,
0.023456916213035583,
-0.07758201658725739,
-0.15181323885917664,
-0.18459033966064453,
0.06367107480764389,
-0.3265266418457031,
0.36510226130485535,
-0.0050142668187618256,
0.3442763090133667,
-0.021144356578588486,
-0.624340295791626,
-0.033513933420181274,
0.05403921380639076,
-0.053843628615140915,
-0.18998637795448303,
-0.13331946730613708,
0.10897354781627655,
0.010966762900352478,
0.120970718562603,
-0.07174045592546463,
0.5828287601470947,
0.0014828778803348541,
0.026535624638199806,
-0.3885360360145569,
-0.20591169595718384,
0.46726036071777344,
-0.3139623701572418,
-0.09476512670516968,
0.16844777762889862,
0.03297184407711029,
0.1467757523059845,
0.27320003509521484,
-0.5015984177589417,
-0.2266247570514679,
0.4197658896446228,
-0.0886211171746254,
-0.2201128453016281,
0.4456325173377991,
0.2590698003768921,
-0.014193952083587646,
-0.051812104880809784,
0.24237649142742157,
-0.11690623313188553,
-0.2441977560520172,
-0.030149100348353386,
-0.24989144504070282
] |
https://github.com/huggingface/datasets/issues/4540 | Avoid splitting by` .py` for the file. | Hi @espoirMur, thanks for reporting.
You are right: that code line could be improved and made more generically valid.
On the other hand, I would suggest using `os.path.splitext` instead.
Are you willing to open a PR? :) | https://github.com/huggingface/datasets/blob/90b3a98065556fc66380cafd780af9b1814b9426/src/datasets/load.py#L272
Hello,
Thanks you for this library .
I was using it and I had one edge case. my home folder name ends with `.py` it is `/home/espoir.py` so anytime I am running the code to load a local module this code here it is failing because after splitting it is trying to save the code to my home directory.
Step to reproduce.
- If you have a home folder which ends with `.py`
- load a module with a local folder
`qa_dataset = load_dataset("src/data/build_qa_dataset.py")`
it is failed
A possible workaround would be to use pathlib at the mentioned line
` meta_path = Path(importable_local_file).parent.joinpath("metadata.json")` this can alivate the issue .
Let me what are your thought on this and I can try to fix it by A PR.
| 37 | Avoid splitting by` .py` for the file.
https://github.com/huggingface/datasets/blob/90b3a98065556fc66380cafd780af9b1814b9426/src/datasets/load.py#L272
Hello,
Thanks you for this library .
I was using it and I had one edge case. my home folder name ends with `.py` it is `/home/espoir.py` so anytime I am running the code to load a local module this code here it is failing because after splitting it is trying to save the code to my home directory.
Step to reproduce.
- If you have a home folder which ends with `.py`
- load a module with a local folder
`qa_dataset = load_dataset("src/data/build_qa_dataset.py")`
it is failed
A possible workaround would be to use pathlib at the mentioned line
` meta_path = Path(importable_local_file).parent.joinpath("metadata.json")` this can alivate the issue .
Let me what are your thought on this and I can try to fix it by A PR.
Hi @espoirMur, thanks for reporting.
You are right: that code line could be improved and made more generically valid.
On the other hand, I would suggest using `os.path.splitext` instead.
Are you willing to open a PR? :) | [
-0.21035058796405792,
0.06515146791934967,
-0.009108252823352814,
0.2573428750038147,
0.44132304191589355,
-0.036031629890203476,
0.3877999782562256,
0.417031466960907,
0.02596573904156685,
0.09560815989971161,
-0.20950430631637573,
0.44398683309555054,
-0.029078099876642227,
0.2761284112930298,
-0.02678782120347023,
-0.18067844212055206,
-0.10084054619073868,
0.1804119348526001,
-0.11307765543460846,
-0.009376946836709976,
-0.22561673820018768,
0.33965033292770386,
0.015008717775344849,
0.2838671803474426,
-0.11378323286771774,
0.05675823986530304,
0.013179870322346687,
0.6839746236801147,
-0.012894775718450546,
-0.2499731481075287,
0.1326490044593811,
-0.026372138410806656,
0.004899242892861366,
0.5634465217590332,
-0.00010727540939114988,
0.03529956936836243,
0.268122136592865,
-0.2446112483739853,
-0.1233985424041748,
-0.4796544313430786,
0.09451260417699814,
0.02646552212536335,
0.2565625309944153,
-0.26632317900657654,
0.026059076189994812,
-0.11133076995611191,
-0.19160810112953186,
-0.411419153213501,
0.45739006996154785,
0.07845762372016907,
0.2557789981365204,
0.19859635829925537,
0.1139003187417984,
0.08732415735721588,
0.28215402364730835,
0.3666682243347168,
-0.026334665715694427,
0.4463212788105011,
0.008773289620876312,
-0.21222008764743805,
0.15649455785751343,
0.11257250607013702,
-0.12789008021354675,
0.07793620228767395,
0.40306881070137024,
0.0009857136756181717,
-0.11184809356927872,
-0.18022052943706512,
-0.004761785268783569,
0.2951657176017761,
0.23549026250839233,
-0.3526409864425659,
-0.37444138526916504,
-0.23214739561080933,
-0.18063795566558838,
-0.2370879203081131,
0.20613175630569458,
0.38046887516975403,
-0.14631341397762299,
0.3751040995121002,
0.12560124695301056,
-0.24358128011226654,
-0.2709539532661438,
-0.002151593565940857,
0.017962656915187836,
0.22120948135852814,
-0.13058322668075562,
0.19653090834617615,
0.3360866904258728,
0.04483470693230629,
-0.02040986716747284,
0.05094682052731514,
0.11794991791248322,
0.018846124410629272,
-0.131730318069458,
-0.17735369503498077,
-0.1284618079662323,
0.07504535466432571,
0.2701256275177002,
0.06495949625968933,
-0.1851944923400879,
0.13609272241592407,
-0.06811381876468658,
0.27567166090011597,
0.3565697968006134,
-0.029972808435559273,
0.18870137631893158,
0.16912110149860382,
0.39371323585510254,
0.10254766047000885,
-0.1352708488702774,
0.01008208841085434,
-0.13038060069084167,
-0.17521388828754425,
-0.30828857421875,
-0.04004499316215515,
0.4024049639701843,
-0.2760542333126068,
-0.09315646439790726,
-0.1417338252067566,
0.08620194345712662,
-0.136814683675766,
0.07267830520868301,
0.4739268720149994,
0.0353720523416996,
0.03404819220304489,
-0.20844081044197083,
0.31696397066116333,
-0.1319134682416916,
-0.025247938930988312,
-0.11012629419565201,
0.17904552817344666,
-0.11120638251304626,
0.07194919139146805,
-0.04003051668405533,
-0.38309580087661743,
0.2932666838169098,
-0.19991213083267212,
0.08874142169952393,
-0.28037750720977783,
-0.04814249649643898,
-0.12695659697055817,
0.014204278588294983,
0.3212701082229614,
-0.020799392834305763,
0.062064558267593384,
0.2143353521823883,
-0.09787203371524811,
-0.3436388671398163,
-0.03301023691892624,
-0.331117182970047,
-0.5346393585205078,
-0.19652009010314941,
0.2384689897298813,
-0.04827845096588135,
0.19382897019386292,
-0.11300166696310043,
-0.3656187355518341,
0.1909666657447815,
-0.019545430317521095,
0.1264801025390625,
0.058812692761421204,
-0.033867884427309036,
-0.2998051643371582,
0.17409135401248932,
0.5269647836685181,
-0.29789572954177856,
-0.005699854344129562,
-0.03471853584051132,
-0.3344120979309082,
0.08977416157722473,
0.36755067110061646,
-0.2998161017894745,
0.35216131806373596,
-0.32870522141456604,
0.3279082775115967,
0.3448382616043091,
-0.38282760977745056,
-0.1218707263469696,
0.5817192196846008,
-0.3368992805480957,
-0.22162313759326935,
0.17186574637889862,
0.006238189525902271,
-0.07750579714775085,
-0.25704148411750793,
0.11254604160785675,
0.6087690591812134,
-0.04074545204639435,
0.1307847946882248,
-0.1683328002691269,
-0.5115255117416382,
0.03678319230675697,
0.2750173509120941,
-0.12098732590675354,
-0.13431552052497864,
0.22616177797317505,
0.1313437819480896,
0.41384997963905334,
-0.1905864179134369,
0.1109737977385521,
0.1602676510810852,
0.3215509057044983,
0.10286346822977066,
-0.08538239449262619,
-0.25851598381996155,
-0.25389227271080017,
0.18262788653373718,
0.0023331083357334137,
-0.3090882897377014,
-0.4470553994178772,
-0.3661521077156067,
-0.16449177265167236,
0.006339795887470245,
-0.6157218217849731,
-0.05005447939038277,
0.10799528658390045,
0.02016640454530716,
-0.023663058876991272,
0.0176631361246109,
-0.2919957637786865,
0.11844173818826675,
-0.1388280838727951,
0.25447267293930054,
-0.31611526012420654,
0.3101177513599396,
-0.06802885979413986,
0.037931956350803375,
0.09371085464954376,
0.26101571321487427,
0.20815357565879822,
-0.5269704461097717,
-0.13026222586631775,
0.5639867186546326,
0.2071954309940338,
0.38929975032806396,
-0.11938992887735367,
-0.02384115755558014,
0.0664384514093399,
-0.1625952571630478,
0.1644776612520218,
-0.04296266660094261,
0.11799787729978561,
-0.08094518631696701,
-0.1649078130722046,
0.26610279083251953,
-0.31558844447135925,
0.28614944219589233,
0.17233243584632874,
-0.26814839243888855,
0.13829825818538666,
-0.1508604884147644,
-0.06163076311349869,
-0.3425988554954529,
0.11122976243495941,
0.01569928228855133,
0.15230998396873474,
0.027051419019699097,
-0.10784247517585754,
0.07071636617183685,
0.5168024897575378,
-0.08508950471878052,
0.19962501525878906,
0.13103258609771729,
0.07989124953746796,
0.01427941769361496,
-0.011754153296351433,
0.3103257715702057,
0.4800960421562195,
0.14267981052398682,
0.008326210081577301,
0.3446230888366699,
0.28955042362213135,
-0.27185872197151184,
0.2495523989200592,
0.19568049907684326,
0.026037441566586494,
0.18674913048744202,
-0.1324688047170639,
-0.07448504120111465,
-0.22848063707351685,
-0.022152848541736603,
-0.11454381793737411,
0.12951941788196564,
-0.2722037434577942,
0.24958397448062897,
-0.35143017768859863,
-0.07566958665847778,
-0.42258626222610474,
-0.35850831866264343,
-0.27157944440841675,
-0.12633082270622253,
-0.06655454635620117,
0.1814497411251068,
-0.1836036890745163,
0.07645588368177414,
0.1994551718235016,
0.022718429565429688,
-0.1648070216178894,
-0.6815102100372314,
0.137541264295578,
-0.016131507232785225,
-0.08123713731765747,
0.01759207248687744,
0.49996674060821533,
0.2627067565917969,
0.19165122509002686,
-0.2259899526834488,
-0.2198093831539154,
-0.17780634760856628,
-0.055133260786533356,
0.23628824949264526,
-0.22799162566661835,
0.20295967161655426,
0.2818927764892578,
0.27202141284942627,
0.34583574533462524,
-0.1478855013847351,
0.3222216069698334,
-0.19567768275737762,
-0.055469170212745667,
-0.0676412582397461,
0.36384397745132446,
0.04702338948845863,
-0.36472129821777344,
-0.485888808965683,
-0.33731600642204285,
-0.4915374219417572,
0.3827407956123352,
-0.04972756654024124,
0.23529082536697388,
0.08022516220808029,
0.04710649698972702,
0.11943155527114868,
-0.33289071917533875,
-0.14403411746025085,
-0.06880852580070496,
-0.23622137308120728,
0.1170073002576828,
-0.2966746985912323,
-0.24020196497440338,
0.15086649358272552,
0.2097039371728897,
0.2466106414794922,
-0.2946821451187134,
-0.324893057346344,
-0.20837455987930298,
0.09387058019638062,
0.1365295946598053,
-0.20418162643909454,
0.3016583323478699,
0.25338777899742126,
-0.032301440834999084,
-0.025379154831171036,
-0.05841078236699104,
-0.09940297901630402,
0.13529270887374878,
-0.0445779412984848,
0.03259028494358063,
0.06285758316516876,
0.33353832364082336,
-0.28171250224113464,
0.672217607498169,
0.2175559550523758,
0.11745348572731018,
0.40076544880867004,
-0.08135820925235748,
0.2580832540988922,
-0.38198089599609375,
-0.24693450331687927,
0.049609627574682236,
0.03547370433807373,
-0.20910853147506714,
0.31531524658203125,
0.2138308584690094,
0.24421899020671844,
-0.22985750436782837,
-0.3871040344238281,
-0.20472651720046997,
-0.41180750727653503,
0.0754118338227272,
0.5170677900314331,
-0.01355522871017456,
-0.20172438025474548,
0.05557985603809357,
0.25257211923599243,
0.0861491858959198,
0.1947626769542694,
0.6066000461578369,
0.0005775168538093567,
0.08610719442367554,
-0.43307825922966003,
-0.2004149854183197,
-0.23793798685073853,
0.1772007942199707,
0.013534236699342728,
0.04301580414175987,
-0.1354387253522873,
-0.2088291049003601,
-0.004216693341732025,
-0.067251056432724,
0.6021586656570435,
0.12098095566034317,
0.06566902995109558,
-0.030938588082790375,
-0.00894075632095337,
-0.2811705768108368,
-0.007470417767763138,
0.20638588070869446,
0.3096066117286682,
-0.06092168763279915,
0.4343523681163788,
-0.36377641558647156,
-0.2425583451986313,
0.17084847390651703,
0.49618956446647644,
-0.01002105325460434,
-0.3337321877479553,
-0.28288733959198,
-0.42327848076820374,
-0.5329935550689697,
-0.03205443173646927,
0.00486290268599987,
0.10439342260360718,
-0.04367915540933609,
-0.13970370590686798,
0.21655794978141785,
-0.3587537705898285,
0.14845524728298187,
0.0771491676568985,
0.29486775398254395,
-0.27042534947395325,
0.14457973837852478,
0.06960166245698929,
0.11378533393144608,
0.310548335313797,
0.65874844789505,
-0.280954509973526,
-0.1322839856147766,
-0.058256037533283234,
-0.21295209228992462,
0.3274363875389099,
0.42621639370918274,
-0.2748977839946747,
0.08019319921731949,
-0.09744469821453094,
0.13030186295509338,
-0.1949666440486908,
-0.03888984024524689,
0.06926976889371872,
-0.15460632741451263,
-0.201157346367836,
-0.26776036620140076,
0.5664255023002625,
-0.15020814538002014,
-0.06254854053258896,
0.1694197654724121,
0.11719632148742676,
-0.3184579014778137,
0.3268201947212219,
-0.12263330072164536,
1.013108491897583,
-0.05696815252304077,
0.12098118662834167,
0.21515297889709473,
-0.06681691110134125,
0.23987914621829987,
-0.10100585222244263,
-0.06485182791948318,
-0.47010818123817444,
0.16432669758796692,
0.007185062393546104,
-0.09579026699066162,
0.12234144657850266,
0.012421410530805588,
-0.2427152693271637,
0.37421929836273193,
-0.45650362968444824,
0.0823303759098053,
-0.32831060886383057,
0.5119859576225281,
-0.1914062798023224,
-0.28494736552238464,
-0.6075816750526428,
0.09829306602478027,
0.0361967608332634,
0.25746476650238037,
-0.03426381200551987,
-0.15235666930675507,
-0.033018723130226135,
-0.18429461121559143,
0.029964394867420197,
0.01922888308763504,
-0.05499431863427162,
-0.009763143956661224,
-0.15962333977222443,
-0.011537276208400726,
0.3326704502105713,
-0.03592037782073021,
0.26255613565444946,
0.25972408056259155,
-0.25506582856178284,
-0.04298756644129753,
-0.3975764214992523,
0.008825985714793205,
-0.13520322740077972,
-0.04745678976178169,
0.03945067524909973,
-0.14133033156394958,
-0.06387265771627426,
-0.290547251701355,
-0.13254033029079437,
-0.11647801846265793,
0.10733282566070557,
0.05404190719127655,
0.4033319354057312,
-0.5042319297790527,
-0.2280535250902176,
-0.22976094484329224,
0.07469739019870758,
-0.2407819628715515,
0.12424570322036743,
0.1662449836730957,
-0.13434623181819916,
-0.022821150720119476,
-0.03331771120429039,
-0.2394716739654541,
-0.18948091566562653,
0.30626732110977173,
-0.07353387027978897,
0.013898219913244247,
0.3932662308216095,
0.16488176584243774,
0.010237935930490494,
-0.31192126870155334,
0.26380300521850586,
0.062241993844509125,
-0.303426057100296,
0.13797366619110107,
0.10898017138242722,
-0.008498355746269226,
-0.031021161004900932,
0.27494099736213684,
0.05790551006793976,
-0.041545018553733826,
-0.1613956093788147,
-0.5371700525283813,
-0.16166441142559052,
0.17299087345600128,
-0.09698069095611572,
0.08923184126615524,
0.11985184997320175,
0.22500355541706085,
-0.04523976892232895,
0.08516943454742432,
-0.307721346616745,
0.2292138636112213,
-0.1072915568947792,
-0.16445988416671753,
0.22484977543354034,
0.0534789077937603,
0.23718459904193878,
0.019120676442980766,
0.11975450813770294,
0.13390211760997772,
-0.28281736373901367,
-0.2258893847465515,
-0.1039709597826004,
0.1552012711763382,
-0.06734326481819153,
0.1003597304224968,
0.12848855555057526,
-0.3682243824005127,
-0.1602455973625183,
-0.055580563843250275,
0.25260964035987854,
-0.058917295187711716,
-0.02698735147714615,
-0.0479363277554512,
0.36269500851631165,
-0.09920155256986618,
-0.26499611139297485,
0.125624418258667,
-0.25375694036483765,
0.3073151111602783,
0.07601223140954971,
0.04859033226966858,
-0.32342520356178284,
-0.10225430876016617,
0.009711673483252525,
0.07593397051095963,
0.3228948712348938,
0.15327252447605133,
0.008906111121177673,
-0.14460539817810059,
-0.24981097877025604,
-0.03565087541937828,
0.3614199161529541,
0.5902038216590881,
-0.26645299792289734,
0.03044203482568264,
0.33993247151374817,
0.22109541296958923,
-0.1443040519952774,
-0.25546810030937195,
0.16674263775348663,
-0.28424984216690063,
0.024507228285074234,
0.5680564641952515,
0.24874114990234375,
0.04567153751850128,
0.010635249316692352,
0.05376715958118439,
0.5548606514930725,
0.3225465416908264,
0.19575288891792297,
0.34152504801750183,
-0.2855503261089325,
-0.016222801059484482,
0.2594223916530609,
0.12229152023792267,
0.4130079448223114,
0.528452455997467,
-0.39346280694007874,
0.29893195629119873,
-0.16815388202667236,
0.28695231676101685,
0.12451618909835815,
-0.3942321240901947,
0.07137589156627655,
0.03628036379814148,
0.029362544417381287,
-0.11039247363805771,
-0.04680882394313812,
0.591411292552948,
-0.39455413818359375,
-0.12455222755670547,
0.08967304974794388,
0.40610572695732117,
-0.0044904910027980804,
-0.05229049175977707,
0.1410357803106308,
-0.18741032481193542,
-0.06436315178871155,
-0.13649404048919678,
-0.03470567241311073,
-0.27086883783340454,
0.02868746966123581,
0.00030243396759033203,
0.046272676438093185,
-0.05181422084569931,
0.04491002857685089,
0.019080616533756256,
0.14684036374092102,
-0.28468090295791626,
0.22126361727714539,
0.14064162969589233,
-0.02024291455745697,
0.03963865712285042,
-0.08042124658823013,
0.3527107238769531,
0.19272150099277496,
-0.011615222319960594,
-0.15231257677078247,
-0.3460054397583008,
0.051124945282936096,
0.16865551471710205,
-0.014146935194730759,
-0.2656109035015106,
0.27688053250312805,
0.545017659664154,
0.1777515858411789,
-0.16719859838485718,
-0.10811425745487213,
0.03353984281420708,
0.12354330718517303,
-0.3863215744495392,
0.37744051218032837,
-0.011465273797512054,
-0.06087170168757439,
-0.41225290298461914,
-0.04589598625898361,
-0.5036446452140808,
0.04617738723754883,
0.433303564786911,
0.06816132366657257,
0.08393800258636475,
-0.042111437767744064,
0.1079002171754837,
0.0041484348475933075,
0.5418892502784729,
0.21206940710544586,
0.10015356540679932,
-0.33574777841567993,
-0.1912706196308136,
-0.5946033596992493,
0.07174642384052277,
-0.21590948104858398,
-0.05249491333961487,
0.08450327068567276,
-0.008132659830152988,
0.11320275813341141,
0.2677413523197174,
-0.030492454767227173,
0.43624192476272583,
0.07362417876720428,
-0.06596677005290985,
-0.13188742101192474,
0.054855190217494965,
-0.24808184802532196,
0.04811328649520874,
0.1377180814743042,
-0.48014336824417114,
0.2283094972372055,
-0.30436059832572937,
-0.008188914507627487,
-0.12475563585758209,
0.1796199530363083,
0.10862775146961212,
-0.311125248670578,
0.35925257205963135,
0.04901454597711563,
-0.10030215978622437,
0.07792079448699951,
-0.16437731683254242,
-0.14316166937351227,
0.028615513816475868,
-0.2283938080072403,
0.13738736510276794,
0.22630400955677032,
0.3033602833747864,
-0.1615249365568161,
-0.04230630025267601,
-0.7487850785255432,
0.30194091796875,
0.0492466539144516,
0.08149714022874832,
0.060862839221954346,
0.27324193716049194,
0.001049090176820755,
0.061385441571474075,
0.21117182075977325,
0.23118984699249268,
-0.13504059612751007,
-0.006387245841324329,
-0.33612415194511414,
-0.3515029847621918,
0.569104790687561,
-0.17664815485477448,
-0.32256606221199036,
0.16522088646888733,
0.471985399723053,
-0.07321121543645859,
-0.15477566421031952,
-0.5143901705741882,
0.19811376929283142,
0.23328663408756256,
0.06053263694047928,
-0.16520048677921295,
0.15518666803836823,
-0.11210159957408905,
0.11522388458251953,
-0.05654463171958923,
-0.2651817500591278,
0.17459788918495178,
-0.15067601203918457,
0.2695556581020355,
-0.18330326676368713
] |
https://github.com/huggingface/datasets/issues/4538 | Dataset Viewer issue for Pile of Law | Thanks so much for adding the docs. I was able to successfully hide the viewer using the
```
viewer: false
```
flag in the README.md of the dataset. I'm closing the issue because this is resolved. Thanks again! | ### Link
https://huggingface.co/datasets/pile-of-law/pile-of-law
### Description
Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the data is not indexed by search engines and so would like to turn off dataset previews. But we do not want to collect user emails because it would violate single blind review, allowing us to deduce potential reviewers' identities. Is there a way that we can turn off the dataset viewer without collecting identity information?
Thanks so much!
### Owner
Yes | 38 | Dataset Viewer issue for Pile of Law
### Link
https://huggingface.co/datasets/pile-of-law/pile-of-law
### Description
Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the data is not indexed by search engines and so would like to turn off dataset previews. But we do not want to collect user emails because it would violate single blind review, allowing us to deduce potential reviewers' identities. Is there a way that we can turn off the dataset viewer without collecting identity information?
Thanks so much!
### Owner
Yes
Thanks so much for adding the docs. I was able to successfully hide the viewer using the
```
viewer: false
```
flag in the README.md of the dataset. I'm closing the issue because this is resolved. Thanks again! | [
0.005177520215511322,
0.5496143102645874,
-0.01175617054104805,
0.19413918256759644,
0.005248352885246277,
0.1945982277393341,
0.5157575607299805,
0.20660868287086487,
0.024734079837799072,
0.14431758224964142,
-0.05432166904211044,
0.18721716105937958,
-0.1687048375606537,
0.028566768392920494,
-0.23921510577201843,
0.23281602561473846,
-0.20598375797271729,
0.19808289408683777,
-0.036018356680870056,
-0.05712592601776123,
0.09228768944740295,
-0.2487168163061142,
-0.16260644793510437,
-0.040652841329574585,
0.14826996624469757,
-0.3331800699234009,
0.1151895821094513,
-0.2637677788734436,
-0.2813681364059448,
-0.11404094099998474,
0.08913198113441467,
0.5610735416412354,
-0.02777618169784546,
0.3634030818939209,
-0.00011653015826595947,
-0.000166378915309906,
0.3024287819862366,
0.04251422733068466,
-0.08727090060710907,
-0.15670625865459442,
-0.26570600271224976,
-0.17321550846099854,
0.24028049409389496,
-0.3184892535209656,
-0.08135287463665009,
-0.29307496547698975,
0.18675780296325684,
-0.38547012209892273,
0.18216660618782043,
0.06393134593963623,
0.1072784960269928,
0.17489944398403168,
0.08082997798919678,
0.2009618580341339,
-0.014217004179954529,
0.26464951038360596,
-0.3447837829589844,
-0.047878582030534744,
-0.237106591463089,
0.1285770833492279,
-0.36684930324554443,
0.34907761216163635,
-0.30959275364875793,
-0.04151308164000511,
0.1642044186592102,
-0.030223079025745392,
0.20201420783996582,
-0.37734678387641907,
0.274953156709671,
0.23416730761528015,
0.7647819519042969,
-0.22440680861473083,
-0.2049751728773117,
-0.07168572396039963,
0.318068265914917,
0.3221679925918579,
0.16389042139053345,
0.5786505937576294,
-0.26606884598731995,
0.45804086327552795,
-0.5791198015213013,
-0.18036484718322754,
-0.44431033730506897,
0.0670861005783081,
-0.19634287059307098,
-0.3198133409023285,
-0.340628057718277,
0.04778808355331421,
0.3204764425754547,
-0.18737101554870605,
0.8144848942756653,
-0.12790027260780334,
0.023495342582464218,
-0.09285791963338852,
-0.09798130393028259,
-0.22891809046268463,
0.15131112933158875,
0.4329873025417328,
0.04578061401844025,
-0.05650489032268524,
0.4943374693393707,
0.2614682614803314,
-0.017636731266975403,
0.029552405700087547,
0.5444149971008301,
-0.12203715741634369,
0.3575909435749054,
0.27549904584884644,
0.3836209774017334,
0.14087431132793427,
0.3771533966064453,
0.2559857666492462,
0.06991133838891983,
0.03499453142285347,
-0.0789768174290657,
-0.15488147735595703,
0.5276622176170349,
-0.38778412342071533,
-0.14459121227264404,
0.04071010276675224,
-0.3343086838722229,
0.11826260387897491,
0.22021859884262085,
0.27372726798057556,
-0.02650279924273491,
0.04789438843727112,
-0.04217830300331116,
-0.14577002823352814,
0.03618422895669937,
-0.17004841566085815,
-0.17198270559310913,
-0.18217773735523224,
-0.09597288072109222,
0.0010179663076996803,
0.3276112377643585,
-0.3133945167064667,
0.0039855800569057465,
0.18675804138183594,
-0.08300808072090149,
0.1782444268465042,
0.21081039309501648,
-0.1908736526966095,
-0.013357289135456085,
0.23121246695518494,
0.04730850085616112,
-0.16936516761779785,
0.06947331130504608,
-0.00975106656551361,
0.1071331724524498,
0.40341711044311523,
-0.031707763671875,
-0.028045618906617165,
-0.2182438224554062,
0.08763976395130157,
-0.5753543376922607,
0.035075943917036057,
-0.21139463782310486,
0.06885011494159698,
-0.3008003234863281,
0.029017414897680283,
0.11493966728448868,
0.03898816555738449,
0.23340126872062683,
-0.16693194210529327,
0.01743648760020733,
0.5110846757888794,
-0.45291993021965027,
-0.14701072871685028,
-0.5473495125770569,
-0.4213314950466156,
-0.014900468289852142,
-0.060963768512010574,
-0.2894911766052246,
0.05166233330965042,
-0.3264356255531311,
-0.2155095636844635,
0.4119572937488556,
-0.14442399144172668,
-0.7405381202697754,
0.2551116943359375,
-0.23886477947235107,
0.08305855095386505,
0.21452420949935913,
0.31078243255615234,
0.030372455716133118,
-0.2833539545536041,
-0.6281256675720215,
-0.15683698654174805,
0.20787890255451202,
-0.06553211063146591,
-0.1582956165075302,
-0.3409067690372467,
0.03193770721554756,
-0.018645435571670532,
-0.1553030014038086,
0.3518109917640686,
0.37761932611465454,
-0.2413373589515686,
0.3526422083377838,
-0.01830272749066353,
0.0669906735420227,
-0.008167441934347153,
0.20818071067333221,
0.07809051126241684,
-0.020318571478128433,
0.3591039776802063,
-0.48102790117263794,
-0.005294382572174072,
-0.03219654783606529,
0.027937084436416626,
-0.2849263548851013,
-0.5173078775405884,
0.030918534845113754,
-0.20943307876586914,
-0.2180393785238266,
0.02506840229034424,
-0.00706610269844532,
-0.0009565427899360657,
-0.4433736205101013,
-0.26372483372688293,
0.04678827151656151,
-0.20287147164344788,
-0.0053476449102163315,
0.10529737919569016,
-0.23992766439914703,
-0.14659062027931213,
0.14845037460327148,
0.34721797704696655,
0.01011829823255539,
-0.17226481437683105,
0.34341105818748474,
0.008872593753039837,
0.3270025849342346,
0.07282670587301254,
0.011064071208238602,
0.31429168581962585,
0.3716244101524353,
0.4419591426849365,
-0.04351457953453064,
-0.4923149347305298,
0.43521925806999207,
-0.025865450501441956,
-0.04390944167971611,
0.06939990073442459,
-0.6326394081115723,
0.3881226181983948,
0.15254050493240356,
-0.06642036885023117,
-0.26327261328697205,
0.11929240077733994,
0.07225577533245087,
-0.20624969899654388,
-0.1598544865846634,
-0.4665088951587677,
-0.0207635797560215,
0.3337356150150299,
0.19800476729869843,
0.07717284560203552,
-0.11163077503442764,
0.2168014943599701,
-0.005800206214189529,
0.13973641395568848,
0.09082667529582977,
0.04553878679871559,
-0.09793371707201004,
-0.0593358539044857,
-0.013677733018994331,
-0.046044401824474335,
0.28238242864608765,
0.31587451696395874,
0.17170235514640808,
0.22945982217788696,
0.4255087375640869,
-0.1748465746641159,
-0.024741165339946747,
0.10641519725322723,
-0.18009419739246368,
-0.1788800060749054,
0.09586119651794434,
-0.011622712947428226,
-0.3150264620780945,
0.010181587189435959,
0.2476654052734375,
0.0393490344285965,
-0.29334452748298645,
-0.10594287514686584,
-0.07933927327394485,
-0.43521344661712646,
0.04514966905117035,
0.1281384974718094,
-0.25104042887687683,
-0.08439760655164719,
0.007113195955753326,
0.4459400177001953,
-0.2609541118144989,
0.33734604716300964,
-0.30193838477134705,
0.3877484202384949,
-0.10306692123413086,
0.12525923550128937,
-0.07149215787649155,
-0.03063269332051277,
0.07437506318092346,
0.11171816289424896,
0.35271069407463074,
0.05259755998849869,
0.46987995505332947,
0.11733899265527725,
-0.06767700612545013,
-0.7135783433914185,
-0.2855040729045868,
0.13358992338180542,
-0.003478948026895523,
0.28188639879226685,
0.10214777290821075,
-0.02653702348470688,
-0.26130104064941406,
0.14222656190395355,
-0.30986833572387695,
-0.12751054763793945,
-0.03983917087316513,
0.014987081289291382,
0.22412718832492828,
0.4028830826282501,
0.057499270886182785,
-0.03307153284549713,
0.06274835765361786,
-0.14188946783542633,
0.3191811442375183,
-0.08824098110198975,
0.239055797457695,
-0.00799610372632742,
-0.3131346106529236,
0.2264615297317505,
-0.05849173292517662,
-0.07435750216245651,
-0.102415531873703,
-0.4441591501235962,
0.20003513991832733,
-0.032077476382255554,
-0.32363274693489075,
0.253071665763855,
0.12907879054546356,
-0.01766921952366829,
0.33680927753448486,
-0.6431652307510376,
-0.09036796540021896,
-0.07377505302429199,
0.0012920983135700226,
0.059760041534900665,
-0.25909870862960815,
0.4135923385620117,
0.013888886198401451,
0.015586553141474724,
-0.0780419260263443,
0.2647587060928345,
0.020976901054382324,
-0.2672778367996216,
0.15586869418621063,
0.15495717525482178,
0.08383449912071228,
-0.0426345020532608,
0.8482314944267273,
0.22117333114147186,
0.24243061244487762,
0.011788219213485718,
0.29118385910987854,
0.5193384885787964,
0.22794121503829956,
-0.2824351489543915,
-0.07829446345567703,
0.22766119241714478,
0.07748926430940628,
0.27185434103012085,
0.01022355817258358,
-0.2598106861114502,
-0.20162177085876465,
-0.1386733204126358,
-0.15502247214317322,
-0.38664504885673523,
-0.03796720504760742,
-0.27755042910575867,
0.23952171206474304,
0.12459750473499298,
0.1900174915790558,
-0.1063014566898346,
-0.5704777836799622,
-0.13797560334205627,
0.3007488250732422,
0.38997337222099304,
-0.15884071588516235,
-0.06333494186401367,
0.31275326013565063,
-0.40491825342178345,
0.2159774899482727,
-0.3501836061477661,
0.09324296563863754,
-0.017701972275972366,
0.033999569714069366,
0.36929869651794434,
0.34585681557655334,
0.8254375457763672,
-0.015054704621434212,
0.40202003717422485,
0.008195385336875916,
0.18628188967704773,
-0.059207573533058167,
0.09966999292373657,
-0.32538914680480957,
-0.036213941872119904,
0.030074138194322586,
0.12578552961349487,
-0.07615210860967636,
-0.20539380609989166,
0.23066730797290802,
-0.29005885124206543,
-0.036532916128635406,
-0.4125213027000427,
-0.055508650839328766,
-0.07587563246488571,
0.11454568803310394,
0.05984813719987869,
-0.015207196585834026,
-0.1748020350933075,
-0.4323718249797821,
-0.10850284993648529,
-0.31915727257728577,
-0.1343260407447815,
0.1599193513393402,
-0.02155860885977745,
-0.011770013719797134,
0.15844497084617615,
0.03244719281792641,
0.5437972545623779,
0.2288261204957962,
0.5588974952697754,
0.41665956377983093,
0.2733916640281677,
-0.5426502227783203,
0.22527694702148438,
-0.19760848581790924,
-0.014940015971660614,
0.4259810149669647,
-0.21853646636009216,
0.05090087652206421,
0.04512130469083786,
0.25903642177581787,
-0.1490803211927414,
0.04972919821739197,
0.21053995192050934,
-0.25263938307762146,
-0.44831231236457825,
-0.3478187918663025,
0.39567291736602783,
0.19109486043453217,
-0.22711536288261414,
-0.14981494843959808,
0.43051499128341675,
-0.23081476986408234,
-0.025983506813645363,
-0.016374260187149048,
0.9821400046348572,
0.3135167360305786,
-0.08624984323978424,
-0.08174633234739304,
-0.17027848958969116,
0.5111271142959595,
-0.12372995167970657,
0.07591868937015533,
-0.18728026747703552,
-0.3286455273628235,
-0.32519927620887756,
-0.20139099657535553,
0.37696123123168945,
0.43377840518951416,
-0.03407935053110123,
0.12647086381912231,
-0.3330498933792114,
-0.16658586263656616,
0.17074993252754211,
0.2465406358242035,
-0.21370989084243774,
0.039363354444503784,
0.06970690190792084,
0.06334611028432846,
-0.10308690369129181,
-0.05387043580412865,
0.19909712672233582,
-0.2916499376296997,
0.07327745854854584,
-0.11694210022687912,
-0.1906021535396576,
0.10566850751638412,
0.10265738517045975,
-0.022951308637857437,
-0.36081087589263916,
-0.28005242347717285,
0.5774751901626587,
0.3193036913871765,
0.15251804888248444,
0.0025409385561943054,
-0.28968122601509094,
-0.04789254441857338,
0.26652243733406067,
0.00317631964571774,
0.15011514723300934,
0.027690358459949493,
0.2242913842201233,
-0.02291560359299183,
-0.18367230892181396,
0.18571743369102478,
0.10471605509519577,
-0.002244129776954651,
-0.08293954282999039,
-0.001950688660144806,
0.16412881016731262,
-0.5995962023735046,
0.35289448499679565,
-0.28327658772468567,
0.10979054868221283,
0.016731809824705124,
0.09824281930923462,
0.21607252955436707,
-0.00464823329821229,
0.06291015446186066,
-0.17840345203876495,
-0.1353132128715515,
-0.010760899633169174,
0.5138707756996155,
0.23262661695480347,
-0.18656502664089203,
0.23760496079921722,
-0.04739474877715111,
-0.31491702795028687,
-0.14835157990455627,
0.11421484500169754,
0.17604754865169525,
-0.36681342124938965,
0.05243845283985138,
0.336496502161026,
0.32778745889663696,
0.09157311916351318,
-0.28454428911209106,
-0.24487684667110443,
0.03950931504368782,
-0.2183784395456314,
-0.2426711767911911,
0.04722309112548828,
-0.003687843680381775,
-0.4360927641391754,
0.12015444040298462,
-0.05517148599028587,
0.09188216924667358,
0.07193765044212341,
-0.0985252782702446,
-0.2476504147052765,
-0.02776435576379299,
-0.113723024725914,
0.0029885508120059967,
0.006888333708047867,
0.2120288908481598,
-0.014234132133424282,
-0.27474701404571533,
0.005652859807014465,
-0.2157025933265686,
-0.23090071976184845,
-0.14411672949790955,
-0.04637902230024338,
0.16394853591918945,
0.02437688037753105,
-0.21303701400756836,
0.09231510013341904,
-0.295279324054718,
-0.33774039149284363,
0.16037218272686005,
0.34550362825393677,
0.11966940015554428,
0.37741756439208984,
-0.03858302906155586,
0.27977320551872253,
0.17222103476524353,
-0.031827472150325775,
-0.09236045181751251,
0.03709335997700691,
-0.09161713719367981,
-0.16977377235889435,
0.250811904668808,
-0.22866559028625488,
-0.09519548714160919,
0.23814955353736877,
0.3096745014190674,
0.4553961157798767,
0.09329898655414581,
0.164573073387146,
-0.06496749818325043,
0.05489839240908623,
0.3085189163684845,
0.18042242527008057,
0.05675656720995903,
-0.43443089723587036,
-0.28572359681129456,
0.3090813457965851,
0.1409216672182083,
-0.36189040541648865,
-0.17433787882328033,
0.14089779555797577,
0.25467047095298767,
0.03902630880475044,
-0.10737145692110062,
-0.3178985118865967,
0.05291895568370819,
-0.23152010142803192,
0.006243504583835602,
0.2658125162124634,
-0.15519827604293823,
0.25762495398521423,
0.48886638879776,
-0.32923898100852966,
-0.10334447026252747,
0.4551118016242981,
0.39090046286582947,
-0.032848842442035675,
0.2889218032360077,
0.05037785321474075,
-0.0787888616323471,
0.056986190378665924,
0.47080764174461365,
0.08843908458948135,
-0.4921538829803467,
-0.13131460547447205,
0.4371180534362793,
-0.18990132212638855,
0.1450512409210205,
-0.09747035801410675,
0.18996360898017883,
0.19091136753559113,
0.3135392367839813,
-0.1537800133228302,
0.11750461161136627,
-0.09248312562704086,
0.2022983282804489,
0.027425765991210938,
-0.00989224761724472,
0.04244648665189743,
0.05093572661280632,
-0.10924823582172394,
-0.22763632237911224,
-0.5216089487075806,
-0.06846822798252106,
-0.3304498791694641,
-0.24177022278308868,
0.01765328273177147,
0.24318429827690125,
0.25355708599090576,
-0.2910551428794861,
-0.22936521470546722,
-0.16478432714939117,
0.24578164517879486,
0.16222909092903137,
0.4973118305206299,
-0.0981050431728363,
-0.13505472242832184,
0.5097419619560242,
-0.04955738037824631,
0.17947709560394287,
-0.1606377363204956,
-0.16527783870697021,
0.1041240245103836,
0.179027259349823,
0.24488550424575806,
-0.15236353874206543,
-0.0026758573949337006,
0.007985803298652172,
-0.06519767642021179,
-0.011029016226530075,
0.3440987467765808,
-0.3917185962200165,
0.30060914158821106,
-0.016505103558301926,
-0.2657078206539154,
0.11868671327829361,
-0.22097107768058777,
-0.13307540118694305,
-0.22388826310634613,
0.5168136954307556,
-0.001670381403528154,
0.08131158351898193,
-0.21106769144535065,
0.04004883021116257,
-0.16511636972427368,
0.10736310482025146,
0.24948255717754364,
-0.04605837166309357,
-0.1739027351140976,
-0.025975316762924194,
-0.5275509357452393,
0.22478440403938293,
0.3123944103717804,
-0.006291614845395088,
0.21545815467834473,
-0.2253820300102234,
0.08559135347604752,
0.22617189586162567,
-0.1817876547574997,
0.20094862580299377,
0.02543659508228302,
0.1748959869146347,
0.01671682670712471,
0.046542275696992874,
-0.29295337200164795,
0.24945050477981567,
0.0015696622431278229,
-0.20769920945167542,
0.45339226722717285,
0.17113997042179108,
-0.09878379106521606,
0.015629500150680542,
0.14727725088596344,
-0.09932638704776764,
0.015958420932292938,
0.055958498269319534,
0.17106176912784576,
0.2323472499847412,
0.19642877578735352,
0.2405720353126526,
-0.30574291944503784,
0.22019992768764496,
-0.4448300898075104,
0.27209895849227905,
0.4402828812599182,
-0.1710606962442398,
-0.2338789999485016,
0.1531233787536621,
0.10392362624406815,
0.12056839466094971,
-0.12010272592306137,
0.15407229959964752,
-0.14199218153953552,
-0.0926147922873497,
-0.08552224189043045,
0.11656763404607773,
-0.1389399915933609,
-0.0900329127907753,
0.11836682260036469,
-0.09927713871002197,
-0.19083765149116516,
-0.3462514281272888,
0.3482727110385895,
-0.2790328860282898,
0.10314998030662537,
0.013386609964072704,
0.5871362686157227,
-0.19691962003707886,
-0.4065883457660675,
-0.5873423218727112,
0.1526487171649933,
0.30178654193878174,
-0.3184148669242859,
0.10373623669147491,
0.07626485824584961,
-0.2272905707359314,
0.12527503073215485,
-0.07669045031070709,
0.38439247012138367,
0.2558668851852417,
-0.004472887143492699,
-0.017320191487669945,
-0.23031510412693024
] |
https://github.com/huggingface/datasets/issues/4538 | Dataset Viewer issue for Pile of Law | Just for the record:
- the doc
<img width="1430" alt="Capture d’écran 2022-06-27 à 09 29 27" src="https://user-images.githubusercontent.com/1676121/175884089-bca6c0d5-6387-473e-98ca-86a910ede4bd.png">
- the dataset main page
<img width="1134" alt="Capture d’écran 2022-06-27 à 09 29 05" src="https://user-images.githubusercontent.com/1676121/175884152-5f285bf0-3471-45de-927a-e141b00ebb33.png">
- the dataset viewer page
<img width="567" alt="Capture d’écran 2022-06-27 à 09 29 16" src="https://user-images.githubusercontent.com/1676121/175884191-ab6a297b-1c11-417e-bbde-0b7623278a79.png">
| ### Link
https://huggingface.co/datasets/pile-of-law/pile-of-law
### Description
Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the data is not indexed by search engines and so would like to turn off dataset previews. But we do not want to collect user emails because it would violate single blind review, allowing us to deduce potential reviewers' identities. Is there a way that we can turn off the dataset viewer without collecting identity information?
Thanks so much!
### Owner
Yes | 47 | Dataset Viewer issue for Pile of Law
### Link
https://huggingface.co/datasets/pile-of-law/pile-of-law
### Description
Hi, I would like to turn off the dataset viewer for our dataset without enabling access requests. To comply with upstream dataset creator requests/licenses, we would like to make sure that the data is not indexed by search engines and so would like to turn off dataset previews. But we do not want to collect user emails because it would violate single blind review, allowing us to deduce potential reviewers' identities. Is there a way that we can turn off the dataset viewer without collecting identity information?
Thanks so much!
### Owner
Yes
Just for the record:
- the doc
<img width="1430" alt="Capture d’écran 2022-06-27 à 09 29 27" src="https://user-images.githubusercontent.com/1676121/175884089-bca6c0d5-6387-473e-98ca-86a910ede4bd.png">
- the dataset main page
<img width="1134" alt="Capture d’écran 2022-06-27 à 09 29 05" src="https://user-images.githubusercontent.com/1676121/175884152-5f285bf0-3471-45de-927a-e141b00ebb33.png">
- the dataset viewer page
<img width="567" alt="Capture d’écran 2022-06-27 à 09 29 16" src="https://user-images.githubusercontent.com/1676121/175884191-ab6a297b-1c11-417e-bbde-0b7623278a79.png">
| [
-0.037661753594875336,
0.6128958463668823,
-0.03957809507846832,
0.17966030538082123,
0.0031195469200611115,
0.17033958435058594,
0.5186964869499207,
0.20412862300872803,
-0.04262673109769821,
0.14952965080738068,
-0.052597276866436005,
0.14462190866470337,
-0.12436025589704514,
0.07956277579069138,
-0.25087839365005493,
0.25182533264160156,
-0.25085920095443726,
0.22672605514526367,
-0.08512437343597412,
-0.059856608510017395,
0.08178497850894928,
-0.27928730845451355,
-0.12352132797241211,
-0.07750067114830017,
0.16827981173992157,
-0.35200294852256775,
0.14138086140155792,
-0.19846567511558533,
-0.2874622046947479,
-0.03684624284505844,
0.08723804354667664,
0.659909725189209,
-0.04101628437638283,
0.22445747256278992,
-0.0001200327678816393,
-0.01103520393371582,
0.28979095816612244,
0.07270462065935135,
-0.09958913922309875,
-0.15997867286205292,
-0.38040536642074585,
-0.19581560790538788,
0.12541861832141876,
-0.37988942861557007,
-0.06391333788633347,
-0.2348605990409851,
0.1342976838350296,
-0.3789495825767517,
0.25271207094192505,
0.09117633104324341,
0.08395542204380035,
0.11629286408424377,
0.023452606052160263,
0.21942941844463348,
0.021041899919509888,
0.32764947414398193,
-0.3079868257045746,
-0.14751094579696655,
-0.2885834872722626,
0.05031821131706238,
-0.32890045642852783,
0.3669891059398651,
-0.30395904183387756,
-0.09905506670475006,
0.1212897077202797,
0.006741347722709179,
0.22511929273605347,
-0.3338766396045685,
0.31865131855010986,
0.23239317536354065,
0.7554344534873962,
-0.1592283844947815,
-0.2281537503004074,
-0.13251779973506927,
0.26157256960868835,
0.3093167543411255,
0.09113717079162598,
0.5484320521354675,
-0.30109092593193054,
0.476561963558197,
-0.736992359161377,
-0.20306210219860077,
-0.45351842045783997,
0.05850304663181305,
-0.27294379472732544,
-0.37079674005508423,
-0.29594722390174866,
0.012360770255327225,
0.3123210668563843,
-0.171479269862175,
0.8270055651664734,
-0.08638781309127808,
-0.004122797399759293,
-0.10855163633823395,
-0.025910023599863052,
-0.25740891695022583,
0.14502322673797607,
0.4099033772945404,
0.08462757617235184,
0.05640546232461929,
0.5354716777801514,
0.16854730248451233,
-0.11977261304855347,
-0.018091201782226562,
0.5292389392852783,
-0.0813426524400711,
0.3002622127532959,
0.3037041425704956,
0.3184814453125,
0.14538496732711792,
0.4271766245365143,
0.297294020652771,
0.11026669293642044,
0.005838298238813877,
-0.11024551093578339,
-0.09512516856193542,
0.48101896047592163,
-0.3904724717140198,
-0.2659408748149872,
0.03698804974555969,
-0.29943373799324036,
0.12270937860012054,
0.20480628311634064,
0.2858211398124695,
0.004708663560450077,
0.04033353552222252,
0.011102508753538132,
-0.12617026269435883,
0.019264953210949898,
-0.20542725920677185,
-0.15591704845428467,
-0.15376578271389008,
-0.05540507286787033,
-0.013759074732661247,
0.29276686906814575,
-0.22710731625556946,
0.0124889574944973,
0.24154730141162872,
-0.04473744332790375,
0.21416780352592468,
0.18504369258880615,
-0.22028951346874237,
0.06657230854034424,
0.23595337569713593,
0.05194300785660744,
-0.12532152235507965,
0.04107670858502388,
-0.053450051695108414,
0.08844680339097977,
0.4568778872489929,
0.025691397488117218,
0.002500869333744049,
-0.13745763897895813,
0.06449899822473526,
-0.5826848745346069,
-0.036818020045757294,
-0.21768277883529663,
0.08600247651338577,
-0.27632808685302734,
0.11413736641407013,
0.14728112518787384,
0.005899827927350998,
0.18218320608139038,
-0.1412705034017563,
0.06196260452270508,
0.526146411895752,
-0.3854357600212097,
-0.16773295402526855,
-0.5120424628257751,
-0.42208683490753174,
-0.056747980415821075,
-0.10597202181816101,
-0.2473018765449524,
0.10140271484851837,
-0.2963084876537323,
-0.22840620577335358,
0.3738103210926056,
-0.23215895891189575,
-0.7171705365180969,
0.2977381646633148,
-0.21284447610378265,
0.10935180634260178,
0.22842326760292053,
0.3339405059814453,
0.07669766247272491,
-0.25401830673217773,
-0.6238459348678589,
-0.0369337759912014,
0.14755824208259583,
-0.051748380064964294,
-0.12537986040115356,
-0.35837090015411377,
0.04389284923672676,
-0.029306858777999878,
-0.13367751240730286,
0.36829036474227905,
0.376597136259079,
-0.17237591743469238,
0.33338484168052673,
-0.0493464432656765,
0.04336981475353241,
0.020028751343488693,
0.1282339245080948,
0.028459738940000534,
-0.09486699104309082,
0.41417622566223145,
-0.5421158671379089,
0.00577516108751297,
0.004091344773769379,
0.062404561787843704,
-0.23469261825084686,
-0.5380488038063049,
-0.019555166363716125,
-0.2258881777524948,
-0.17814594507217407,
0.044262178242206573,
-0.039985720068216324,
-0.015332475304603577,
-0.39112064242362976,
-0.2593514621257782,
0.07650509476661682,
-0.13215850293636322,
0.004321595653891563,
0.13105982542037964,
-0.22962550818920135,
-0.16105681657791138,
0.16691726446151733,
0.39385849237442017,
0.006442055106163025,
-0.19680580496788025,
0.33331602811813354,
0.06616465747356415,
0.3450700342655182,
0.17300397157669067,
0.007493538316339254,
0.3725535273551941,
0.31494179368019104,
0.42850348353385925,
-0.04263343662023544,
-0.4808512330055237,
0.3819638192653656,
-0.04082849249243736,
-0.08938419073820114,
0.027888096868991852,
-0.6790122389793396,
0.42945611476898193,
0.08846719563007355,
-0.010386846959590912,
-0.2150120586156845,
0.16300326585769653,
0.030485915020108223,
-0.25441715121269226,
-0.17550063133239746,
-0.4849913716316223,
-0.0213126502931118,
0.30384892225265503,
0.20869077742099762,
0.06410142034292221,
-0.039902213960886,
0.25196054577827454,
-0.03034983202815056,
0.15726059675216675,
0.05558859556913376,
0.013809394091367722,
-0.059963442385196686,
0.01115371659398079,
0.014838945120573044,
-0.008108414709568024,
0.27138155698776245,
0.3081634044647217,
0.2024579793214798,
0.18981346487998962,
0.3844369947910309,
-0.16661228239536285,
0.002791948616504669,
0.03809279203414917,
-0.20605820417404175,
-0.20585402846336365,
0.14021891355514526,
-0.0366424024105072,
-0.25472983717918396,
-0.003083992749452591,
0.23002587258815765,
0.04027962684631348,
-0.33512020111083984,
-0.0801934078335762,
-0.10895941406488419,
-0.4308823049068451,
0.10357117652893066,
0.16359640657901764,
-0.2800358235836029,
-0.08436358720064163,
0.023201249539852142,
0.4250667095184326,
-0.22330042719841003,
0.31966882944107056,
-0.3874531090259552,
0.3911883234977722,
-0.15227414667606354,
0.05571124702692032,
-0.08150374889373779,
-0.018107745796442032,
0.126983642578125,
0.10709366202354431,
0.347610741853714,
-0.012099353596568108,
0.4946229159832001,
0.10932087153196335,
-0.12052634358406067,
-0.6430068612098694,
-0.25658243894577026,
0.10924682021141052,
0.020128458738327026,
0.30125272274017334,
0.07335041463375092,
-0.08207660913467407,
-0.1959919035434723,
0.15650275349617004,
-0.2724952697753906,
-0.05574682354927063,
-0.11449415236711502,
-0.09090842306613922,
0.25533327460289,
0.45439693331718445,
0.057116564363241196,
0.06616717576980591,
0.13062123954296112,
-0.14446094632148743,
0.28513890504837036,
-0.04362456128001213,
0.23719079792499542,
0.0388600118458271,
-0.27511557936668396,
0.1538994312286377,
-0.034493740648031235,
-0.056097663938999176,
-0.08442308753728867,
-0.39950549602508545,
0.13225135207176208,
-0.0006490934174507856,
-0.2554202973842621,
0.18146362900733948,
0.11876733601093292,
0.026236414909362793,
0.4636225700378418,
-0.6630021929740906,
-0.02887728065252304,
-0.12339051067829132,
0.008445724844932556,
0.007785104215145111,
-0.2512363791465759,
0.4211036264896393,
-0.004558103624731302,
0.03733997046947479,
-0.05065489932894707,
0.25481116771698,
0.017755307257175446,
-0.2887305021286011,
0.14774614572525024,
0.1494203805923462,
0.13560454547405243,
-0.00019291043281555176,
0.8890492916107178,
0.2766740918159485,
0.26380857825279236,
-0.03733865171670914,
0.23472125828266144,
0.5452731251716614,
0.23061493039131165,
-0.26755985617637634,
-0.11697761714458466,
0.28849494457244873,
0.07527376711368561,
0.1804404854774475,
0.039529211819171906,
-0.277887225151062,
-0.2609427571296692,
-0.08905762434005737,
-0.2604086399078369,
-0.4085495173931122,
-0.020323509350419044,
-0.3005523681640625,
0.27211785316467285,
0.09970524907112122,
0.21834927797317505,
-0.03916063904762268,
-0.5370330810546875,
-0.14509978890419006,
0.28770357370376587,
0.41038522124290466,
-0.18818587064743042,
-0.13365770876407623,
0.32215359807014465,
-0.4030911326408386,
0.21000824868679047,
-0.3210175633430481,
0.05147832632064819,
-0.03384774178266525,
0.028948701918125153,
0.374891996383667,
0.2840169370174408,
0.8314156532287598,
-0.06992089003324509,
0.4197636842727661,
0.017271798104047775,
0.10373573005199432,
-0.029270566999912262,
0.1746765524148941,
-0.29490214586257935,
-0.014001797884702682,
0.05568557232618332,
0.1011018231511116,
-0.09975354373455048,
-0.21355219185352325,
0.31229692697525024,
-0.397214412689209,
-0.07416553795337677,
-0.33867090940475464,
0.009090278297662735,
-0.13164015114307404,
0.10363242030143738,
0.04879898205399513,
-0.018929120153188705,
-0.18173794448375702,
-0.4376935064792633,
-0.10265306383371353,
-0.3955562114715576,
-0.1395529955625534,
0.15868014097213745,
-0.04054933413863182,
-0.10931709408760071,
0.17171677947044373,
0.06599768996238708,
0.5896995067596436,
0.12612512707710266,
0.5689908266067505,
0.46989473700523376,
0.2537631690502167,
-0.46078985929489136,
0.11057613044977188,
-0.09715927392244339,
0.008940175175666809,
0.49112576246261597,
-0.18993160128593445,
-0.03495624661445618,
0.08410182595252991,
0.21464760601520538,
-0.19497491419315338,
0.06894443929195404,
0.1905132532119751,
-0.3091331422328949,
-0.3938227593898773,
-0.3887718617916107,
0.41370680928230286,
0.19853486120700836,
-0.2568894624710083,
-0.1663382202386856,
0.4541367292404175,
-0.30646663904190063,
-0.07836821675300598,
0.012974254786968231,
1.0086379051208496,
0.2696855664253235,
-0.07053354382514954,
-0.1347995102405548,
-0.1850772649049759,
0.500785768032074,
-0.08045929670333862,
0.045100778341293335,
-0.18272943794727325,
-0.29389575123786926,
-0.31771770119667053,
-0.19624654948711395,
0.2782796323299408,
0.47751355171203613,
0.09296582639217377,
0.09221669286489487,
-0.32355010509490967,
-0.12841841578483582,
0.18848255276679993,
0.2607000768184662,
-0.27429044246673584,
0.060702234506607056,
0.10540656000375748,
0.05244297534227371,
-0.13230828940868378,
-0.08115783333778381,
0.15836074948310852,
-0.2325691431760788,
0.012777131050825119,
-0.1371724009513855,
-0.1968698799610138,
0.11849801987409592,
0.015733424574136734,
-0.01621265709400177,
-0.41597628593444824,
-0.3676913380622864,
0.5244776010513306,
0.31174755096435547,
0.12913848459720612,
-0.012313537299633026,
-0.2588082551956177,
-0.05269302800297737,
0.251210480928421,
0.03295035660266876,
0.20310978591442108,
0.025416389107704163,
0.20021529495716095,
0.012191962450742722,
-0.1005159318447113,
0.1956385374069214,
0.13672414422035217,
-0.027355292811989784,
-0.11948369443416595,
-0.027843520045280457,
0.13891702890396118,
-0.5926792025566101,
0.40219229459762573,
-0.2110089361667633,
0.14228440821170807,
0.015508417040109634,
0.06602510064840317,
0.14180010557174683,
0.07884719222784042,
0.04892975836992264,
-0.1527562439441681,
-0.12543833255767822,
0.02274704910814762,
0.5899245142936707,
0.19762927293777466,
-0.22798192501068115,
0.2310778647661209,
-0.15501593053340912,
-0.300626277923584,
-0.16960394382476807,
0.1825665831565857,
0.18292146921157837,
-0.3469502031803131,
0.08022821694612503,
0.27814528346061707,
0.3366333246231079,
0.021671826019883156,
-0.3063400089740753,
-0.24700112640857697,
0.05393511801958084,
-0.14806407690048218,
-0.21612267196178436,
0.05875235050916672,
-0.002356976270675659,
-0.42562904953956604,
0.21785935759544373,
-0.11440003663301468,
0.05458234250545502,
0.004632357507944107,
-0.06758621335029602,
-0.21766646206378937,
-0.059092722833156586,
-0.09311575442552567,
0.006036320701241493,
0.06620717793703079,
0.2326136827468872,
-0.026283808052539825,
-0.30723950266838074,
-0.011408096179366112,
-0.2772010564804077,
-0.17703865468502045,
-0.13664251565933228,
-0.059154558926820755,
0.18448702991008759,
0.05883251503109932,
-0.3021121323108673,
0.11421379446983337,
-0.31538987159729004,
-0.3025822639465332,
0.13001853227615356,
0.3837554156780243,
0.12365343421697617,
0.3710997700691223,
-0.06791343539953232,
0.2014746516942978,
0.2532755732536316,
-0.04667157307267189,
-0.07426795363426208,
0.03987683355808258,
-0.022326886653900146,
-0.1284274309873581,
0.33605679869651794,
-0.23066800832748413,
-0.08925247192382812,
0.2812468409538269,
0.3044934570789337,
0.47004079818725586,
0.10971064865589142,
0.15890805423259735,
-0.037677496671676636,
0.022134263068437576,
0.30434921383857727,
0.2091870903968811,
-0.006996318697929382,
-0.46447867155075073,
-0.2674438953399658,
0.2561364769935608,
0.139194056391716,
-0.2828497290611267,
-0.10733122378587723,
0.09844344854354858,
0.20174646377563477,
0.05010971054434776,
0.0015402957797050476,
-0.3399481475353241,
0.012549974024295807,
-0.23579438030719757,
-0.0411534383893013,
0.32160282135009766,
-0.09108314663171768,
0.23988701403141022,
0.5252452492713928,
-0.3364265263080597,
-0.08449284732341766,
0.4710063338279724,
0.3920433521270752,
-0.008032023906707764,
0.3135378956794739,
0.0456283800303936,
-0.027640128508210182,
0.06492215394973755,
0.4902281165122986,
0.11361178755760193,
-0.4915506839752197,
-0.17885014414787292,
0.3838713765144348,
-0.11955718696117401,
0.22678101062774658,
-0.1167328953742981,
0.10462294518947601,
0.22929197549819946,
0.33527836203575134,
-0.12839992344379425,
0.14323681592941284,
-0.047924622893333435,
0.1723850518465042,
-0.044777967035770416,
-0.01669745147228241,
-0.012711957097053528,
0.12588728964328766,
-0.1396993100643158,
-0.3538898229598999,
-0.4602073132991791,
-0.07444800436496735,
-0.3822004199028015,
-0.24092502892017365,
0.09435707330703735,
0.17527738213539124,
0.23641139268875122,
-0.3136272430419922,
-0.23465006053447723,
-0.0868680328130722,
0.2561795711517334,
0.20413738489151,
0.5600943565368652,
-0.0863194614648819,
-0.10984982550144196,
0.47615984082221985,
-0.07003704458475113,
0.21813951432704926,
-0.14855913817882538,
-0.2115131914615631,
0.10313964635133743,
0.13589559495449066,
0.19089381396770477,
-0.18603673577308655,
-0.01227396260946989,
-0.003584759309887886,
-0.0934191644191742,
0.03821254149079323,
0.33000433444976807,
-0.41297608613967896,
0.28793978691101074,
0.020073870196938515,
-0.2426624596118927,
0.16286298632621765,
-0.2109992802143097,
-0.054245561361312866,
-0.2839794158935547,
0.43753278255462646,
-0.05245881527662277,
0.13102689385414124,
-0.09851904213428497,
0.024712223559617996,
-0.17624743282794952,
0.06370221078395844,
0.25484558939933777,
-0.022061564028263092,
-0.24419274926185608,
-0.035202570259571075,
-0.4946683347225189,
0.12788622081279755,
0.2496577948331833,
-0.030251294374465942,
0.23790593445301056,
-0.18112698197364807,
0.07959724962711334,
0.22756537795066833,
-0.11025300621986389,
0.22596320509910583,
0.06103801727294922,
0.24258403480052948,
0.04967545345425606,
0.009941566735506058,
-0.24373312294483185,
0.20092317461967468,
-0.03861904889345169,
-0.2628340721130371,
0.44267091155052185,
0.18468162417411804,
-0.13629719614982605,
0.034194834530353546,
0.1600567251443863,
-0.07669828832149506,
-0.0058213695883750916,
0.06322586536407471,
0.19972416758537292,
0.19603459537029266,
0.1865796148777008,
0.2229587882757187,
-0.25473010540008545,
0.21617189049720764,
-0.4964819848537445,
0.3009079396724701,
0.46787890791893005,
-0.1926298439502716,
-0.22676853835582733,
0.09827539324760437,
0.11891234666109085,
0.10374823212623596,
-0.08799204230308533,
0.11403553932905197,
-0.17439866065979004,
-0.1193561926484108,
-0.11107276380062103,
0.1150907352566719,
-0.19698162376880646,
-0.05019901692867279,
0.10559314489364624,
-0.029921311885118484,
-0.2645416855812073,
-0.397705614566803,
0.3209741413593292,
-0.22613811492919922,
0.1545347273349762,
0.04190436750650406,
0.5958870649337769,
-0.11630723625421524,
-0.31284424662590027,
-0.5152990221977234,
0.14941909909248352,
0.3240082561969757,
-0.38974812626838684,
0.09644965827465057,
0.09164033830165863,
-0.18493875861167908,
0.06433020532131195,
-0.035924918949604034,
0.3551378548145294,
0.2929757535457611,
-0.01438783761113882,
-0.04643434286117554,
-0.2346496731042862
] |
https://github.com/huggingface/datasets/issues/4531 | Dataset Viewer issue for CSV datasets | Confirmed, it's fixed now. Thanks for reporting, and thanks @coyotte508 for fixing it
<img width="1123" alt="Capture d’écran 2022-06-21 à 10 28 05" src="https://user-images.githubusercontent.com/1676121/174753833-1b453a5a-6a90-4717-bca1-1b5fc6b75e4a.png">
| ### Link
https://huggingface.co/datasets/scikit-learn/breast-cancer-wisconsin
### Description
I'm populating CSV datasets [here](https://huggingface.co/scikit-learn) but the viewer is not enabled and it looks for a dataset loading script, the datasets aren't on queue as well.
You can replicate the problem by simply uploading any CSV dataset.
### Owner
Yes | 23 | Dataset Viewer issue for CSV datasets
### Link
https://huggingface.co/datasets/scikit-learn/breast-cancer-wisconsin
### Description
I'm populating CSV datasets [here](https://huggingface.co/scikit-learn) but the viewer is not enabled and it looks for a dataset loading script, the datasets aren't on queue as well.
You can replicate the problem by simply uploading any CSV dataset.
### Owner
Yes
Confirmed, it's fixed now. Thanks for reporting, and thanks @coyotte508 for fixing it
<img width="1123" alt="Capture d’écran 2022-06-21 à 10 28 05" src="https://user-images.githubusercontent.com/1676121/174753833-1b453a5a-6a90-4717-bca1-1b5fc6b75e4a.png">
| [
-0.2977893650531769,
-0.1538040041923523,
-0.04626820981502533,
0.11964289844036102,
0.2975062131881714,
0.15254339575767517,
0.32641035318374634,
0.08021751046180725,
0.3668113350868225,
0.1949506253004074,
0.17112113535404205,
0.08126784861087799,
-0.08213744312524796,
0.27133074402809143,
-0.09554466605186462,
0.1447024643421173,
0.1262485682964325,
0.2397821694612503,
-0.308871865272522,
0.10541985929012299,
-0.19051654636859894,
-0.05808268487453461,
-0.320315957069397,
-0.2435779720544815,
-0.010789282619953156,
0.0060785021632909775,
-0.042630188167095184,
0.0037790536880493164,
-0.17307114601135254,
-0.515508234500885,
0.29884758591651917,
0.21696937084197998,
0.24871346354484558,
0.2103463113307953,
-0.00010611412290018052,
0.12786829471588135,
0.4784852862358093,
0.025955533608794212,
-0.2215261459350586,
-0.20457999408245087,
-0.12914273142814636,
-0.4439926743507385,
0.4015914499759674,
-0.12513253092765808,
-0.11339962482452393,
0.05078372359275818,
0.27510136365890503,
-0.4181385338306427,
0.3639625310897827,
0.08879085630178452,
0.27133938670158386,
0.19792889058589935,
0.10293062031269073,
-0.02122732810676098,
-0.10793488472700119,
0.12392348796129227,
-0.262899249792099,
0.09276233613491058,
0.10096904635429382,
0.09094273298978806,
-0.18902045488357544,
0.15277385711669922,
-0.1393822431564331,
-0.002449335530400276,
0.34138861298561096,
-0.11232145130634308,
-0.23035869002342224,
-0.4342575669288635,
0.1375654935836792,
0.025236140936613083,
0.8096472024917603,
0.01235901191830635,
-0.08829222619533539,
-0.12445856630802155,
0.0704730674624443,
-0.12574540078639984,
0.2917698621749878,
0.20828412473201752,
-0.004877173341810703,
0.17486229538917542,
-0.3132503926753998,
-0.07434292137622833,
-0.18589356541633606,
-0.028213441371917725,
-0.14830102026462555,
-0.26704177260398865,
-0.24637380242347717,
0.09611901640892029,
0.03140736371278763,
-0.17987683415412903,
0.4147668480873108,
-0.2864508330821991,
0.09356468915939331,
0.07459381222724915,
-0.566697359085083,
0.19592685997486115,
0.1698116809129715,
0.17771075665950775,
-0.08861389756202698,
0.2370830625295639,
0.12524987757205963,
0.04460527375340462,
-0.1469365507364273,
0.3032219707965851,
0.12395764887332916,
-0.056317441165447235,
0.13363507390022278,
0.08516206592321396,
0.25611382722854614,
0.1543504297733307,
0.14267408847808838,
-0.014981448650360107,
-0.20743536949157715,
-0.623266875743866,
-0.016091935336589813,
-0.04881947487592697,
0.1337403804063797,
0.025461796671152115,
-0.2604927718639374,
0.21620987355709076,
0.15319862961769104,
0.1242179274559021,
-0.046987973153591156,
0.4275120794773102,
-0.002139594405889511,
0.14848844707012177,
0.09479153156280518,
0.02997889555990696,
-0.2543253004550934,
-0.2368539422750473,
-0.14906781911849976,
0.04796569049358368,
-0.14769409596920013,
-0.07970122992992401,
0.3669969439506531,
-0.3249446451663971,
0.0059498995542526245,
0.1852070689201355,
0.04799451306462288,
-0.18397538363933563,
-0.1520899087190628,
-0.09395803511142731,
-0.0802500769495964,
0.3963371217250824,
0.3276396095752716,
0.10306914895772934,
0.3080044984817505,
-0.005846969783306122,
0.24225348234176636,
0.33076322078704834,
-0.1819068193435669,
0.09506221115589142,
-0.08498495817184448,
0.22624804079532623,
-0.34391897916793823,
-0.29793649911880493,
-0.3632206618785858,
0.0889759510755539,
-0.23417678475379944,
-0.22079938650131226,
-0.20672956109046936,
-0.21376240253448486,
-0.16237863898277283,
-0.28954601287841797,
0.27076300978660583,
0.7500730156898499,
-0.6287727355957031,
0.13725817203521729,
-0.36002618074417114,
-0.12263865768909454,
-0.06833230704069138,
0.06603805720806122,
-0.09165764600038528,
-0.1004972830414772,
-0.32250142097473145,
-0.10024144500494003,
0.17188750207424164,
-0.1688195765018463,
-0.3359736502170563,
0.3031226098537445,
-0.07542967796325684,
0.20553690195083618,
0.18486467003822327,
0.0894903838634491,
0.22788304090499878,
0.004408624023199081,
-0.3479745388031006,
-0.12418875098228455,
0.07742808759212494,
-0.08706091344356537,
-0.09428606927394867,
-0.2554028034210205,
0.2790262997150421,
0.18807443976402283,
0.26416364312171936,
0.04015999659895897,
0.1198025643825531,
-0.5836337804794312,
0.2684074640274048,
0.0570438951253891,
0.09427165985107422,
0.10362544655799866,
0.11089906096458435,
0.11968790739774704,
-0.08549408614635468,
0.03043539822101593,
-0.5500253438949585,
0.25104740262031555,
0.32353517413139343,
-0.3132334351539612,
-0.10050475597381592,
-0.028661485761404037,
-0.20957934856414795,
0.08707206696271896,
-0.35247811675071716,
-0.06098989024758339,
0.1793733835220337,
0.04321805760264397,
-0.3596133291721344,
0.07161422073841095,
-0.05331554263830185,
0.08448689430952072,
-0.1529846489429474,
0.24000076949596405,
-0.20070071518421173,
0.35228243470191956,
-0.12104199081659317,
0.09282709658145905,
0.28515884280204773,
-0.1878616213798523,
0.2917030155658722,
-0.1243913397192955,
-0.0033401334658265114,
0.26898911595344543,
0.2863064110279083,
0.34427452087402344,
0.2080601453781128,
-0.160758838057518,
0.07141868025064468,
-0.26743951439857483,
0.0003306828439235687,
0.07269074022769928,
0.1619139313697815,
0.013866439461708069,
-0.39225199818611145,
0.29671743512153625,
-0.18935856223106384,
0.1723819077014923,
-0.0467958077788353,
0.2372572422027588,
0.21897843480110168,
0.017658833414316177,
-0.050686269998550415,
-0.05357518047094345,
0.17530663311481476,
0.19534558057785034,
0.08342859148979187,
0.03932224214076996,
-0.3609180152416229,
-0.08815792948007584,
-0.007282063364982605,
0.09895877540111542,
-0.17372927069664001,
0.14792400598526,
-0.20932283997535706,
0.02952629327774048,
0.18849483132362366,
-0.05022451654076576,
0.0774669200181961,
0.13907673954963684,
-0.34651845693588257,
0.04238315299153328,
0.25118035078048706,
-0.24000079929828644,
0.11924804002046585,
0.1450943648815155,
0.1650920957326889,
0.1732918620109558,
0.10389196872711182,
0.05459870770573616,
-0.5380046963691711,
0.06872151792049408,
0.1657605916261673,
0.07573304325342178,
-0.46958836913108826,
-0.018478065729141235,
-0.29963335394859314,
-0.17402619123458862,
-0.09496080130338669,
0.26958808302879333,
0.007187534123659134,
-0.2344113290309906,
-0.22756408154964447,
0.32352185249328613,
-0.05088093876838684,
0.18785564601421356,
-0.33168086409568787,
0.3313978910446167,
0.01760069467127323,
0.18954713642597198,
-0.07815158367156982,
0.05385489761829376,
-0.1175965741276741,
0.19485071301460266,
0.45541372895240784,
-0.17516109347343445,
0.28408384323120117,
0.03257705271244049,
0.4478004574775696,
-0.31319329142570496,
-0.23758229613304138,
-0.07555483281612396,
0.03875550627708435,
0.10130345076322556,
-0.08600364625453949,
0.2037300169467926,
-0.21432849764823914,
0.0641821026802063,
0.007651102729141712,
-0.08156434446573257,
0.17499122023582458,
0.09219097346067429,
0.010622129775583744,
-0.26470428705215454,
0.061482999473810196,
-0.34478893876075745,
-0.2626499533653259,
-0.2657719552516937,
-0.04071018844842911,
0.15439358353614807,
-0.0848403126001358,
-0.0694563016295433,
0.22479431331157684,
-0.09950413554906845,
0.05351247265934944,
-0.17815813422203064,
-0.035687822848558426,
-0.32290589809417725,
0.4110199809074402,
-0.2792143225669861,
-0.448809415102005,
0.3789925277233124,
0.09436646103858948,
0.042690154165029526,
0.004604075103998184,
-0.6150243282318115,
0.25754013657569885,
-0.0683806836605072,
-0.011634550988674164,
0.18168875575065613,
-0.2414069026708603,
0.28004753589630127,
0.05161433294415474,
0.01166742853820324,
-0.23953202366828918,
-0.15898621082305908,
-0.0993817076086998,
-0.352431058883667,
0.09049785137176514,
-0.07644236832857132,
0.5112559795379639,
0.10323949158191681,
0.5829869508743286,
0.2731642425060272,
0.05420300364494324,
0.24341006577014923,
-0.14356830716133118,
0.5349359512329102,
-0.003398485481739044,
-0.341729998588562,
0.1608600616455078,
-0.20047467947006226,
-0.12700970470905304,
0.2295760065317154,
-0.038037605583667755,
-0.015615943819284439,
-0.33042821288108826,
0.1368279606103897,
-0.39931678771972656,
-0.1739666610956192,
0.00717460922896862,
-0.3000744581222534,
0.1697291135787964,
0.17160125076770782,
0.17689022421836853,
-0.19115810096263885,
-0.2222486138343811,
-0.31742623448371887,
0.485565185546875,
0.5335009694099426,
-0.23164209723472595,
-0.05327862501144409,
-0.08357509225606918,
-0.12420489639043808,
0.32147449254989624,
-0.17413346469402313,
0.39567309617996216,
-0.1840604543685913,
0.051552146673202515,
0.26038727164268494,
0.03249988704919815,
0.6548503637313843,
-0.1572948694229126,
-0.0181577131152153,
0.04052809253334999,
-0.019885079935193062,
-0.301862508058548,
-0.11097724735736847,
0.10386186838150024,
0.15199677646160126,
-0.0628577172756195,
0.0441645085811615,
0.13824227452278137,
0.084046870470047,
0.13123595714569092,
-0.13542284071445465,
-0.28226324915885925,
-0.42846521735191345,
-0.1255817711353302,
0.22255367040634155,
-0.18002218008041382,
-0.302394300699234,
-0.10550336539745331,
0.028848921880126,
-0.3050991892814636,
-0.21424539387226105,
-0.27512502670288086,
-0.19094783067703247,
0.08554448932409286,
0.026783745735883713,
0.03562859445810318,
0.2497563511133194,
0.3177354335784912,
0.3191273510456085,
0.20907339453697205,
0.44332006573677063,
0.5649441480636597,
0.0614478625357151,
-0.7592077255249023,
0.234663724899292,
-0.03861425444483757,
0.18646842241287231,
0.11219290643930435,
-0.19348090887069702,
-0.09775535017251968,
0.09635353088378906,
0.04886756092309952,
-0.25029081106185913,
0.0057671950198709965,
0.36557039618492126,
-0.0199106577783823,
-0.44323888421058655,
-0.4773557782173157,
0.5137088298797607,
0.02223881706595421,
0.03675447404384613,
-0.03484885394573212,
-0.012466385960578918,
-0.08610790967941284,
0.007474036887288094,
-0.08274845033884048,
0.5130508542060852,
-0.20840324461460114,
-0.10823690891265869,
0.14276398718357086,
-0.08915811777114868,
0.47324541211128235,
-0.15839388966560364,
0.22125279903411865,
-0.42252010107040405,
-0.4112115204334259,
-0.13146646320819855,
-0.009989161044359207,
0.4008086323738098,
0.005577847361564636,
0.06258334219455719,
0.15502962470054626,
-0.2810274064540863,
0.4655781090259552,
0.054861605167388916,
0.0272226482629776,
0.057475700974464417,
-0.15849155187606812,
-0.08320167660713196,
0.23174017667770386,
0.04656630754470825,
0.11700364947319031,
-0.07357072830200195,
-0.03653496131300926,
-0.01186416670680046,
0.061820052564144135,
-0.3083672523498535,
0.19143825769424438,
0.006645787041634321,
0.09608010947704315,
0.025913573801517487,
-0.308826744556427,
0.5960724353790283,
0.4639788568019867,
-0.024991445243358612,
0.22671595215797424,
-0.2628534138202667,
0.44098296761512756,
0.12354190647602081,
-0.09286917746067047,
-0.1099725067615509,
0.20186711847782135,
0.10541196912527084,
0.0872441902756691,
-0.061682142317295074,
0.24955520033836365,
-0.017480552196502686,
0.03661816567182541,
-0.15148602426052094,
0.20048367977142334,
0.2610478401184082,
-0.39530012011528015,
-0.20920738577842712,
-0.28974610567092896,
0.16274608671665192,
-0.11472532153129578,
0.1828279197216034,
-0.05457821488380432,
0.5027284026145935,
0.08609185367822647,
0.07527898252010345,
-0.060224972665309906,
-0.04977482929825783,
0.3308931291103363,
-0.08930982649326324,
-0.17188242077827454,
0.4769236147403717,
0.3047759532928467,
-0.34260284900665283,
-0.25970160961151123,
0.23615211248397827,
0.07720811665058136,
-0.1610705852508545,
0.04619278386235237,
0.18611809611320496,
0.4259176254272461,
0.16100981831550598,
0.16142424941062927,
0.07815289497375488,
-0.3577985465526581,
0.06846432387828827,
-0.5446870923042297,
0.01225385069847107,
-0.07942406833171844,
-0.35740503668785095,
0.06751341372728348,
0.19067049026489258,
-0.042341478168964386,
0.07677176594734192,
-0.11268250644207001,
-0.3227447271347046,
-0.13513760268688202,
0.13169175386428833,
-0.18061988055706024,
0.2638395428657532,
0.1844395101070404,
-0.16083870828151703,
-0.2099858671426773,
0.1866147518157959,
-0.04822651296854019,
-0.13179251551628113,
-0.23322218656539917,
0.10107122361660004,
0.09651843458414078,
0.1160518005490303,
-0.07936171442270279,
-0.17337359488010406,
-0.17822222411632538,
-0.32980799674987793,
-0.1509033441543579,
-0.11707942187786102,
-0.004612687975168228,
-0.1063595861196518,
-0.1382252424955368,
-0.3456835150718689,
-0.10467229038476944,
0.020633291453123093,
0.13567319512367249,
-0.11334654688835144,
0.33445876836776733,
-0.04314063489437103,
-0.021762177348136902,
0.16234464943408966,
0.083597332239151,
-0.15056781470775604,
0.2101704478263855,
0.04672609269618988,
0.1935984492301941,
0.3815181255340576,
-0.38722431659698486,
0.3368556797504425,
0.07273300737142563,
0.4114284813404083,
0.34130793809890747,
-0.2400389015674591,
-0.009171424433588982,
0.17432060837745667,
0.2628577649593353,
-0.30959105491638184,
0.11033065617084503,
0.17582419514656067,
0.20444907248020172,
0.00720609724521637,
-0.11517050117254257,
-0.019851379096508026,
-0.05496551841497421,
0.18530812859535217,
0.24290502071380615,
0.524927020072937,
-0.23126022517681122,
0.508054256439209,
0.2678636610507965,
0.03834376856684685,
0.057772744446992874,
0.28079238533973694,
0.2148449569940567,
-0.10730422288179398,
0.6527699828147888,
0.024580322206020355,
-0.08517991751432419,
0.06581441313028336,
0.14507858455181122,
-0.16791900992393494,
-0.6319680213928223,
0.2008925974369049,
0.08529096841812134,
-0.4294400215148926,
0.05661731958389282,
0.10665227472782135,
0.3692255914211273,
-0.06516186892986298,
-0.036895763128995895,
-0.4792710244655609,
0.14346608519554138,
-0.019477643072605133,
0.028063669800758362,
-0.1610444039106369,
-0.09889809787273407,
0.036098986864089966,
0.16724370419979095,
-0.024599935859441757,
-0.10298679769039154,
-0.07224006950855255,
0.12587514519691467,
-0.2537992000579834,
-0.38670796155929565,
0.21990135312080383,
0.20681920647621155,
0.24660903215408325,
-0.21537572145462036,
0.014825964346528053,
-0.025977060198783875,
0.10426920652389526,
0.19924816489219666,
0.18515481054782867,
0.32301193475723267,
0.17492376267910004,
0.26815834641456604,
-0.1879115253686905,
-0.12498587369918823,
-0.1268656849861145,
-0.037409696727991104,
0.1697371006011963,
0.029014952480793,
0.3031245172023773,
0.24587638676166534,
0.2020716518163681,
-0.1593833565711975,
0.3382731080055237,
0.14965593814849854,
0.2736820876598358,
-0.4801486134529114,
-0.21986114978790283,
-0.25772997736930847,
-0.06562282145023346,
-0.1849135309457779,
-0.28490784764289856,
-0.34109780192375183,
-0.062079258263111115,
0.2570125162601471,
-0.01968918740749359,
0.11232680827379227,
-0.24327987432479858,
0.10556592047214508,
-0.0005713906139135361,
0.2890949249267578,
0.21524998545646667,
-0.057005301117897034,
-0.08790723234415054,
-0.18683339655399323,
-0.7089374661445618,
-0.004149958491325378,
0.12388761341571808,
-0.16512402892112732,
0.03011777251958847,
-0.05463217943906784,
-0.07821490615606308,
0.03989817574620247,
0.053589142858982086,
0.08086390048265457,
0.09881272912025452,
0.29272860288619995,
0.001975197345018387,
-0.038196492940187454,
-0.12999993562698364,
-0.08372475951910019,
-0.2743528485298157,
-0.11377173662185669,
0.35848599672317505,
-0.2848259210586548,
0.10821216553449631,
-0.08321192860603333,
0.23417550325393677,
-0.14904643595218658,
-0.3387622535228729,
0.4023634195327759,
-0.04966036230325699,
0.6781442165374756,
0.03785163164138794,
0.2643727958202362,
-0.47999125719070435,
-0.2559419572353363,
-0.1739228367805481,
0.338632196187973,
0.12829476594924927,
0.37764790654182434,
-0.04595467448234558,
-0.2118714600801468,
0.0146565493196249,
-0.06843509525060654,
-0.01662299409508705,
0.08387453854084015,
-0.1853337287902832,
-0.08201110363006592,
-0.1337181180715561,
0.10190961509943008,
0.16662253439426422,
0.08279703557491302,
-0.08775411546230316,
0.07873938232660294,
-0.19307497143745422,
-0.4004431366920471,
0.11333859711885452,
-0.3777163028717041,
-0.14573414623737335,
-0.15879450738430023,
0.17961540818214417,
-0.03885022550821304,
0.02567114308476448,
-0.15054911375045776,
0.08298350125551224,
0.32078230381011963,
-0.16603359580039978,
0.1255631148815155,
0.3984050154685974,
-0.15693852305412292,
-0.07963219285011292,
-0.015142722055315971,
0.4263315200805664,
0.24396616220474243,
-0.108929842710495,
-0.07242285460233688,
-0.082426056265831
] |
https://github.com/huggingface/datasets/issues/4529 | Ecoset | Hi! Very cool dataset! I answered your questions on the forum. Also, feel free to comment `#self-assign` on this issue to self-assign it. | ## Adding a Dataset
- **Name:** *Ecoset*
- **Description:** *https://www.kietzmannlab.org/ecoset/*
- **Paper:** *https://doi.org/10.1073/pnas.2011417118*
- **Data:** *https://codeocean.com/capsule/9570390/tree/v1*
- **Motivation:**
**Ecoset** was created as a clean and ecologically valid alternative to **Imagenet**.
It is a large image recognition dataset, similar to Imagenet in size and structure. However, the authors of ecoset claim several improvements over Imagenet, like:
- more ecologically valid classes (e.g. not over-focussed on distinguishing different dog breeds)
- less NSFW content
- 'pre-packed image recognition models' that come with the dataset and can be used for validation of other models.
I am working for one of the authors of the paper with the aim of bringing Ecoset to huggingface datasets. Therefore I can work on this issue personally, but could use some help from devs and experienced users if the dataset is of interest to them. I phrased some of my questions on [discuss.huggingface](https://discuss.huggingface.co/t/handling-large-image-datasets/19373).
| 23 | Ecoset
## Adding a Dataset
- **Name:** *Ecoset*
- **Description:** *https://www.kietzmannlab.org/ecoset/*
- **Paper:** *https://doi.org/10.1073/pnas.2011417118*
- **Data:** *https://codeocean.com/capsule/9570390/tree/v1*
- **Motivation:**
**Ecoset** was created as a clean and ecologically valid alternative to **Imagenet**.
It is a large image recognition dataset, similar to Imagenet in size and structure. However, the authors of ecoset claim several improvements over Imagenet, like:
- more ecologically valid classes (e.g. not over-focussed on distinguishing different dog breeds)
- less NSFW content
- 'pre-packed image recognition models' that come with the dataset and can be used for validation of other models.
I am working for one of the authors of the paper with the aim of bringing Ecoset to huggingface datasets. Therefore I can work on this issue personally, but could use some help from devs and experienced users if the dataset is of interest to them. I phrased some of my questions on [discuss.huggingface](https://discuss.huggingface.co/t/handling-large-image-datasets/19373).
Hi! Very cool dataset! I answered your questions on the forum. Also, feel free to comment `#self-assign` on this issue to self-assign it. | [
-0.16670556366443634,
-0.11438922584056854,
-0.16410377621650696,
0.23576483130455017,
0.18277928233146667,
0.05192003399133682,
0.004891350865364075,
0.02119327336549759,
0.19682440161705017,
0.03119056671857834,
-0.2643848657608032,
0.29552116990089417,
-0.3128073513507843,
0.49795812368392944,
0.06571807712316513,
-0.2767665386199951,
0.06962405145168304,
-0.2559170424938202,
-0.10988749563694,
-0.34577780961990356,
-0.2681853473186493,
-0.000959472730755806,
0.2395067662000656,
-0.1399271935224533,
-0.18822136521339417,
-0.23817959427833557,
-0.18372125923633575,
0.18722003698349,
-0.239847794175148,
-0.2227734625339508,
-0.06952843070030212,
0.15953728556632996,
-0.11838046461343765,
0.3808077573776245,
-0.00010361075692344457,
-0.1287640929222107,
0.06274494528770447,
0.06983298063278198,
-0.13610120117664337,
0.00934535264968872,
-0.09574218094348907,
-0.10977146774530411,
-0.12845130264759064,
-0.2507208287715912,
-0.040601130574941635,
-0.16573970019817352,
0.28481146693229675,
-0.223115012049675,
0.39590126276016235,
0.16304703056812286,
0.29969626665115356,
0.08325549960136414,
0.10752296447753906,
-0.08457745611667633,
-0.17980554699897766,
0.4323115348815918,
-0.02034287340939045,
-0.03572401776909828,
-0.028269045054912567,
0.028117729350924492,
-0.14603841304779053,
0.4134904742240906,
0.25228551030158997,
-0.13998566567897797,
0.5517147183418274,
0.04819786548614502,
0.07234527915716171,
-0.3887381851673126,
-0.1246127262711525,
0.3773687183856964,
0.10116545855998993,
0.13158255815505981,
-0.4736393094062805,
-0.33499082922935486,
-0.047574616968631744,
-0.35742175579071045,
0.021140217781066895,
0.3137986958026886,
-0.021210938692092896,
0.10522720217704773,
-0.4329072833061218,
0.03040379285812378,
-0.45850303769111633,
0.1687728762626648,
-0.19384439289569855,
0.05127815157175064,
-0.09401082247495651,
0.13151253759860992,
0.3499568700790405,
-0.05991170555353165,
-0.34755370020866394,
-0.09645722806453705,
0.2505178153514862,
0.08465243130922318,
-0.11835798621177673,
-0.11394777148962021,
0.21123144030570984,
0.49719738960266113,
0.48036855459213257,
0.4483602046966553,
0.09391547739505768,
0.02941182814538479,
-0.11988567560911179,
0.037705060094594955,
0.1421521008014679,
0.03574863448739052,
-0.31208696961402893,
-0.15635932981967926,
0.13646353781223297,
0.13642056286334991,
-0.007653933018445969,
0.01943659968674183,
-0.09521300345659256,
-0.0025450948160141706,
-0.0711306780576706,
-0.4072111248970032,
0.03211251273751259,
-0.15250708162784576,
-0.3413981795310974,
0.10455533862113953,
0.18124210834503174,
0.05330488830804825,
0.002397913485765457,
0.2454473376274109,
0.13929013907909393,
-0.017233848571777344,
0.12058904767036438,
0.14250367879867554,
0.029171941801905632,
-0.06930471211671829,
-0.14822673797607422,
-0.00361640565097332,
-0.10316228866577148,
0.15214207768440247,
-0.000033702701330184937,
-0.12090618908405304,
0.2562814950942993,
-0.3506855368614197,
0.11302514374256134,
0.22577115893363953,
-0.13378441333770752,
-0.12493394315242767,
0.10592357069253922,
0.10961274802684784,
-0.22695492208003998,
-0.18472877144813538,
-0.01325821503996849,
0.10773597657680511,
-0.3773599863052368,
-0.31257206201553345,
0.07498857378959656,
-0.07193818688392639,
-0.3162093162536621,
0.268085241317749,
-0.07365227490663528,
-0.17036381363868713,
-0.12478228658437729,
0.3642006516456604,
-0.08499472588300705,
0.1217196136713028,
0.04692448675632477,
0.12903830409049988,
-0.4086814820766449,
-0.11749669164419174,
-0.026669619604945183,
0.24906370043754578,
-0.04077699035406113,
-0.03419363498687744,
-0.3372080624103546,
-0.12100133299827576,
0.05807153508067131,
0.4443633258342743,
-0.013539327308535576,
0.15759989619255066,
-0.04005192220211029,
-0.17229481041431427,
-0.07137791067361832,
-0.3503991961479187,
-0.32606974244117737,
0.0073931217193603516,
-0.22004137933254242,
0.24275057017803192,
-0.09871547669172287,
0.35433879494667053,
-0.10323283821344376,
-0.19133131206035614,
-0.051629990339279175,
0.4595435857772827,
-0.12903963029384613,
0.019372595474123955,
-0.13349756598472595,
-0.40214142203330994,
-0.08867286145687103,
0.22480012476444244,
0.0482485368847847,
-0.1909233033657074,
0.1767594814300537,
-0.16016685962677002,
0.015645388513803482,
-0.23298078775405884,
0.08041903376579285,
0.14784324169158936,
0.5120368003845215,
0.21045684814453125,
-0.31690216064453125,
-0.0941326841711998,
-0.14291861653327942,
0.26435741782188416,
0.0574529692530632,
0.32861825823783875,
-0.01621144264936447,
-0.3250375986099243,
-0.28618112206459045,
0.11166288703680038,
-0.16165682673454285,
-0.30271777510643005,
0.14558002352714539,
0.1755044162273407,
0.1409897357225418,
0.12049934267997742,
-0.021287444978952408,
0.4922555088996887,
-0.25149834156036377,
0.16634158790111542,
-0.14113397896289825,
0.24617941677570343,
-0.039405085146427155,
0.18670105934143066,
-0.0037462934851646423,
0.14576119184494019,
-0.3237749934196472,
-0.03638840839266777,
0.07698532193899155,
0.2830730378627777,
-0.2846108376979828,
-0.0469241738319397,
-0.011302240192890167,
0.24285128712654114,
0.20536750555038452,
-0.5341265797615051,
-0.02097889594733715,
-0.11254659295082092,
0.21071995794773102,
0.10225456207990646,
-0.5853331089019775,
0.23532484471797943,
-0.16803517937660217,
0.07320713996887207,
0.029564999043941498,
-0.0772530734539032,
-0.014333803206682205,
-0.03667137026786804,
-0.023831158876419067,
-0.028041433542966843,
0.1505327969789505,
0.06348837912082672,
0.20776735246181488,
0.09248805791139603,
-0.2650020718574524,
0.07877416163682938,
0.327933669090271,
-0.006813040003180504,
0.05514910817146301,
0.38048362731933594,
0.05666491389274597,
0.0027547217905521393,
0.03954901546239853,
0.24137456715106964,
0.28574979305267334,
0.40754348039627075,
0.038706980645656586,
0.13660040497779846,
-0.07127473503351212,
0.1896299570798874,
0.1142708957195282,
0.265191912651062,
0.4702438414096832,
-0.116241954267025,
0.3164993226528168,
0.19358855485916138,
-0.39803656935691833,
-0.2538711428642273,
-0.1247481033205986,
0.0446479395031929,
-0.15904586017131805,
0.278337687253952,
0.03641744703054428,
-0.29213210940361023,
-0.06625878810882568,
0.2597028911113739,
-0.19376739859580994,
-0.2241901457309723,
0.1388891637325287,
0.016558228060603142,
-0.14778636395931244,
0.235631063580513,
-0.22089654207229614,
0.4092772603034973,
0.017452547326683998,
-0.18303775787353516,
-0.09921547770500183,
0.01838948205113411,
0.02048005722463131,
0.15665797889232635,
0.4152635335922241,
0.006406639236956835,
0.6821880340576172,
-0.024681456387043,
0.16676056385040283,
-0.1448693722486496,
-0.8693496584892273,
0.07824356853961945,
-0.280364990234375,
0.5621636509895325,
0.06248845160007477,
0.11049878597259521,
-0.12979280948638916,
-0.3805634379386902,
0.011025403626263142,
-0.17673534154891968,
-0.29238754510879517,
-0.35546785593032837,
-0.021366197615861893,
0.004334110766649246,
-0.05107772350311279,
-0.10032806545495987,
-0.09256946295499802,
-0.3731577694416046,
0.5215693116188049,
0.3317336142063141,
0.12988099455833435,
0.5623914003372192,
0.07572568953037262,
0.151692733168602,
-0.20286880433559418,
0.22669871151447296,
-0.21541470289230347,
-0.28700748085975647,
0.21114754676818848,
-0.002607471076771617,
-0.3542725741863251,
-0.3050713539123535,
-0.16587282717227936,
0.2970169186592102,
0.06670078635215759,
-0.2821168303489685,
-0.18634910881519318,
-0.18954572081565857,
0.31382831931114197,
0.0914866179227829,
0.025463955476880074,
0.12471705675125122,
0.0001331111416220665,
-0.23524221777915955,
0.0064114853739738464,
-0.052936919033527374,
0.10628853738307953,
-0.0318879708647728,
0.21511918306350708,
-0.0861254632472992,
0.31851568818092346,
0.06434513628482819,
0.3683856129646301,
0.08068743348121643,
-0.2175455242395401,
0.4526894986629486,
-0.04870843142271042,
0.41369086503982544,
-0.2207687497138977,
-0.3981778621673584,
0.2588574290275574,
-0.09900760650634766,
0.17438055574893951,
0.2607588768005371,
0.012998745776712894,
0.05071189999580383,
0.06782608479261398,
-0.08920411765575409,
-0.30568206310272217,
-0.08010734617710114,
-0.0025787316262722015,
0.5610438585281372,
0.10709899663925171,
-0.23551934957504272,
-0.2654697000980377,
-0.16897551715373993,
-0.17559558153152466,
-0.06855426728725433,
0.31827783584594727,
-0.09404546767473221,
-0.03212782368063927,
-0.788167417049408,
0.3393714427947998,
-0.48696738481521606,
0.1709386110305786,
-0.16716574132442474,
-0.32986849546432495,
-0.13537098467350006,
-0.11229436844587326,
0.17902638018131256,
-0.046260036528110504,
0.48698389530181885,
-0.0675470158457756,
-0.10086941719055176,
-0.22454065084457397,
-0.02179144322872162,
-0.17637917399406433,
0.472275048494339,
-0.14299224317073822,
-0.0539228729903698,
0.12134498357772827,
0.22304317355155945,
-0.4090132713317871,
-0.026060979813337326,
0.39808398485183716,
0.12132743000984192,
-0.011816222220659256,
0.08420569449663162,
-0.17575950920581818,
-0.2890237271785736,
-0.3240838050842285,
0.11980516463518143,
0.05506608635187149,
0.21857665479183197,
0.09283618628978729,
0.16867594420909882,
-0.241831973195076,
0.09488984942436218,
0.26901447772979736,
0.10525837540626526,
0.027964241802692413,
0.037744440138339996,
0.2115934193134308,
0.008879709988832474,
-0.001999370753765106,
0.49937593936920166,
0.6738042235374451,
-0.28998860716819763,
-0.26420843601226807,
-0.08637266606092453,
0.04774031415581703,
0.236139178276062,
0.3674355745315552,
0.2892492413520813,
-0.25967180728912354,
0.13589395582675934,
0.20599247515201569,
-0.3549513816833496,
0.3477809727191925,
0.06664997339248657,
0.02657241001725197,
-0.30272427201271057,
0.03060210309922695,
0.4942900240421295,
0.2621840238571167,
-0.07286454737186432,
0.08118010312318802,
0.7639608979225159,
-0.27155759930610657,
0.14833612740039825,
0.3494358956813812,
1.034456729888916,
-0.24664734303951263,
0.38901469111442566,
0.08562392741441727,
-0.18670395016670227,
0.6465787291526794,
0.12550120055675507,
0.00042406655848026276,
-0.07631133496761322,
0.0014449134469032288,
0.0030766520649194717,
0.045798126608133316,
0.16929876804351807,
0.23971441388130188,
-0.05125910043716431,
0.0931762307882309,
0.28510475158691406,
-0.384927362203598,
-0.22389854490756989,
0.5284676551818848,
-0.1727398782968521,
-0.45737987756729126,
-0.2765377461910248,
0.24944058060646057,
0.02150028571486473,
0.324391633272171,
-0.043792612850666046,
-0.2433600276708603,
-0.2645558714866638,
-0.09080632030963898,
-0.011619821190834045,
-0.08018520474433899,
-0.1365254819393158,
0.028212402015924454,
0.015324041247367859,
-0.12247836589813232,
0.20406271517276764,
0.0930618867278099,
0.09455748647451401,
-0.08114616572856903,
-0.14132346212863922,
0.18821649253368378,
-0.22478950023651123,
0.10771016031503677,
0.04284033924341202,
-0.26394742727279663,
0.43004435300827026,
-0.013283489271998405,
-0.12451517581939697,
-0.09187265485525131,
0.15917257964611053,
0.07583698630332947,
-0.05463610589504242,
0.05845489725470543,
0.15638311207294464,
-0.12825295329093933,
-0.0344802662730217,
-0.046702101826667786,
-0.1146002858877182,
-0.1828623116016388,
0.1551516056060791,
-0.13539160788059235,
0.1532732993364334,
0.003390580415725708,
0.3071272671222687,
-0.128050297498703,
-0.1041761040687561,
0.22674605250358582,
-0.07314819097518921,
0.016044069081544876,
0.26294344663619995,
-0.05157608911395073,
-0.0652472972869873,
-0.27572768926620483,
0.2544471025466919,
0.31277409195899963,
-0.6660283803939819,
-0.007678230293095112,
0.07910773158073425,
-0.1927061825990677,
-0.03156556934118271,
0.17705760896205902,
0.2736578583717346,
-0.3346979022026062,
0.25947657227516174,
0.009771361947059631,
-0.4293724000453949,
0.196000337600708,
-0.24187539517879486,
0.35366103053092957,
-0.06761755794286728,
0.04643287509679794,
0.05472046881914139,
0.1378553807735443,
-0.41984763741493225,
0.1409653127193451,
-0.28051304817199707,
-0.17169593274593353,
0.3822686970233917,
-0.08406645804643631,
0.26415377855300903,
-0.13512182235717773,
0.2180638462305069,
-0.050968021154403687,
-0.20943401753902435,
-0.25896772742271423,
-0.3135278522968292,
0.09750515967607498,
-0.01731358841061592,
-0.3495675325393677,
0.39858150482177734,
-0.12997588515281677,
-0.24981948733329773,
-0.04877445474267006,
0.32253944873809814,
0.04469257593154907,
0.0930108055472374,
-0.1168212816119194,
0.028219688683748245,
-0.052228860557079315,
0.31009018421173096,
-0.15609362721443176,
-0.008750207722187042,
0.20896799862384796,
0.16771483421325684,
-0.02049751579761505,
0.13237382471561432,
-0.21724824607372284,
0.010866174474358559,
0.11820081621408463,
0.27093493938446045,
-0.21644195914268494,
0.3000473082065582,
0.079628124833107,
-0.24031558632850647,
0.323045551776886,
0.29728493094444275,
-0.004749365150928497,
-0.2820878326892853,
-0.004879377782344818,
0.20038580894470215,
0.2827855944633484,
-0.3875616788864136,
-0.009702288545668125,
-0.009325923398137093,
-0.1682981252670288,
0.17345266044139862,
0.2240123450756073,
0.12930390238761902,
0.16260632872581482,
-0.20124651491641998,
0.07103771716356277,
0.4907430112361908,
0.06868555396795273,
0.09182387590408325,
0.2434125542640686,
-0.04971401393413544,
0.08799666911363602,
0.41064542531967163,
0.31218433380126953,
0.4948561191558838,
0.16210728883743286,
-0.08676665276288986,
0.44363686442375183,
-0.4466460049152374,
0.21018600463867188,
0.3785429000854492,
0.0037132538855075836,
0.1979164481163025,
0.1473533809185028,
0.1727147400379181,
0.3370857834815979,
0.0763048380613327,
0.2542513310909271,
0.03923787176609039,
-0.0915953665971756,
-0.2678966224193573,
0.513198971748352,
0.04154687002301216,
-0.1859140843153,
-0.18441443145275116,
-0.23619166016578674,
-0.1218186616897583,
0.08362975716590881,
-0.1497298777103424,
-0.6348913908004761,
0.22211025655269623,
0.07139904797077179,
-0.0682993084192276,
-0.3853703439235687,
-0.23235991597175598,
0.02850697562098503,
0.3004831373691559,
-0.04035108536481857,
0.21094641089439392,
0.3778280019760132,
-0.20607468485832214,
0.30264967679977417,
0.5155319571495056,
0.30525240302085876,
-0.1166679710149765,
0.11400391161441803,
0.13910916447639465,
-0.08400240540504456,
-0.06317178905010223,
-0.18284551799297333,
0.021272119134664536,
0.07192893326282501,
0.03206174820661545,
0.29576757550239563,
0.12990616261959076,
-0.1931801587343216,
-0.2614399194717407,
-0.03709367290139198,
-0.10259553790092468,
-0.4244996905326843,
-0.11641743034124374,
-0.30603718757629395,
0.12879526615142822,
-0.24668431282043457,
0.24423712491989136,
-0.2963135242462158,
0.03119697794318199,
-0.04173413664102554,
-0.17630040645599365,
0.049638181924819946,
-0.005699313245713711,
0.09423994272947311,
-0.10276281833648682,
0.3945785462856293,
0.33507010340690613,
-0.27982527017593384,
-0.04162101075053215,
-0.08411532640457153,
-0.6675581336021423,
0.10721937566995621,
-0.30322393774986267,
-0.3858494758605957,
-0.04053648188710213,
0.06660569459199905,
0.09200792014598846,
-0.059678345918655396,
0.14981551468372345,
-0.21365563571453094,
-0.11793296784162521,
-0.09629686176776886,
-0.2569582462310791,
0.08009010553359985,
-0.008906565606594086,
-0.021188905462622643,
0.00061839260160923,
-0.007169559597969055,
0.11203299462795258,
-0.04567769169807434,
0.11520979553461075,
-0.16942845284938812,
0.18851658701896667,
-0.5041121244430542,
0.08114928007125854,
0.22094325721263885,
0.19183990359306335,
0.14585638046264648,
-0.18992361426353455,
-0.3335607051849365,
-0.11856640875339508,
-0.03224487230181694,
-0.2209853082895279,
0.46416589617729187,
0.1909083127975464,
0.5074331760406494,
-0.05366428196430206,
-0.459274560213089,
0.06382343173027039,
-0.006940703839063644,
0.027390524744987488,
-0.15469245612621307,
-0.2922057509422302,
0.2003038376569748,
-0.012375213205814362,
-0.04470042139291763,
0.08019198477268219,
0.2989416718482971,
0.06654477119445801,
-0.143283873796463,
-0.19378679990768433,
-0.29625776410102844,
0.5089209079742432,
-0.18588021397590637,
-0.10864539444446564,
0.04145949333906174,
-0.003115646541118622,
0.2556082606315613,
-0.013462478294968605,
-0.47381994128227234,
0.04611498862504959,
0.20796385407447815,
0.038479890674352646,
-0.29802337288856506,
0.26946377754211426,
-0.15551960468292236,
-0.2921695411205292,
-0.026511967182159424,
0.0592910572886467,
-0.184023916721344,
-0.20337124168872833,
0.23787370324134827,
-0.08753003925085068
] |
https://github.com/huggingface/datasets/issues/4529 | Ecoset | Hey There, thanks for closing 🤗
Forgot the issue existed, so I didn't close it after implementing the downloader :) | ## Adding a Dataset
- **Name:** *Ecoset*
- **Description:** *https://www.kietzmannlab.org/ecoset/*
- **Paper:** *https://doi.org/10.1073/pnas.2011417118*
- **Data:** *https://codeocean.com/capsule/9570390/tree/v1*
- **Motivation:**
**Ecoset** was created as a clean and ecologically valid alternative to **Imagenet**.
It is a large image recognition dataset, similar to Imagenet in size and structure. However, the authors of ecoset claim several improvements over Imagenet, like:
- more ecologically valid classes (e.g. not over-focussed on distinguishing different dog breeds)
- less NSFW content
- 'pre-packed image recognition models' that come with the dataset and can be used for validation of other models.
I am working for one of the authors of the paper with the aim of bringing Ecoset to huggingface datasets. Therefore I can work on this issue personally, but could use some help from devs and experienced users if the dataset is of interest to them. I phrased some of my questions on [discuss.huggingface](https://discuss.huggingface.co/t/handling-large-image-datasets/19373).
| 20 | Ecoset
## Adding a Dataset
- **Name:** *Ecoset*
- **Description:** *https://www.kietzmannlab.org/ecoset/*
- **Paper:** *https://doi.org/10.1073/pnas.2011417118*
- **Data:** *https://codeocean.com/capsule/9570390/tree/v1*
- **Motivation:**
**Ecoset** was created as a clean and ecologically valid alternative to **Imagenet**.
It is a large image recognition dataset, similar to Imagenet in size and structure. However, the authors of ecoset claim several improvements over Imagenet, like:
- more ecologically valid classes (e.g. not over-focussed on distinguishing different dog breeds)
- less NSFW content
- 'pre-packed image recognition models' that come with the dataset and can be used for validation of other models.
I am working for one of the authors of the paper with the aim of bringing Ecoset to huggingface datasets. Therefore I can work on this issue personally, but could use some help from devs and experienced users if the dataset is of interest to them. I phrased some of my questions on [discuss.huggingface](https://discuss.huggingface.co/t/handling-large-image-datasets/19373).
Hey There, thanks for closing 🤗
Forgot the issue existed, so I didn't close it after implementing the downloader :) | [
-0.30091434717178345,
-0.10279533267021179,
-0.14716804027557373,
0.3084726929664612,
0.17652015388011932,
-0.03046783059835434,
-0.059655409306287766,
0.08555851131677628,
0.2404097020626068,
0.07148589193820953,
-0.2491772174835205,
0.2522232234477997,
-0.32661518454551697,
0.46639496088027954,
0.0037166057154536247,
-0.2881733477115631,
0.05085669085383415,
-0.124778613448143,
-0.1497965306043625,
-0.2655591070652008,
-0.20730020105838776,
0.09452202171087265,
0.2358011156320572,
-0.07893942296504974,
-0.03165072202682495,
-0.18123845756053925,
-0.19930535554885864,
0.19589760899543762,
-0.39384031295776367,
-0.2204694151878357,
0.032508671283721924,
0.20801974833011627,
-0.05290000140666962,
0.4406043291091919,
-0.000106045015854761,
-0.054509133100509644,
0.05575831979513168,
0.04776822030544281,
-0.14346647262573242,
0.01798953115940094,
-0.08092893660068512,
-0.0818081721663475,
-0.053126104176044464,
-0.2595086097717285,
0.03840384632349014,
-0.12871021032333374,
0.20536482334136963,
-0.15525051951408386,
0.40662848949432373,
0.19048266112804413,
0.2778830826282501,
0.13924741744995117,
0.13535940647125244,
-0.052712973207235336,
-0.10720912367105484,
0.3550682067871094,
-0.07825928181409836,
-0.018572933971881866,
0.06471382081508636,
0.12694036960601807,
-0.1959519386291504,
0.4344569444656372,
0.2360982596874237,
-0.06358134746551514,
0.5146779417991638,
-0.004742288030683994,
0.08441947400569916,
-0.4349016845226288,
-0.07035574316978455,
0.3620740473270416,
0.1981935352087021,
0.1250898689031601,
-0.4561179280281067,
-0.403353214263916,
-0.06622517108917236,
-0.3459697961807251,
0.16276830434799194,
0.22530657052993774,
-0.14899878203868866,
0.12317202985286713,
-0.5482360124588013,
-0.02668268047273159,
-0.4631687104701996,
0.13974514603614807,
-0.25756001472473145,
0.005481518805027008,
-0.16112768650054932,
0.08887004852294922,
0.3517060875892639,
-0.01960199698805809,
-0.3364385664463043,
-0.07535882294178009,
0.21820738911628723,
0.043713778257369995,
-0.14006458222866058,
-0.19820788502693176,
0.2711966931819916,
0.4303736090660095,
0.4299377202987671,
0.46240055561065674,
0.05718227103352547,
0.018152156844735146,
-0.141158789396286,
0.04645102471113205,
0.15479153394699097,
0.15367363393306732,
-0.3327083885669708,
-0.18529357016086578,
0.21221739053726196,
0.3383046090602875,
0.014246176928281784,
0.017011074349284172,
-0.09704600274562836,
0.013617296703159809,
-0.11657543480396271,
-0.35151970386505127,
0.1136263906955719,
-0.14238151907920837,
-0.3197231590747833,
0.04779429733753204,
0.16095605492591858,
0.014613555744290352,
0.022837303578853607,
0.23927459120750427,
0.030639171600341797,
0.06413069367408752,
0.09853513538837433,
0.09217426180839539,
0.016425197944045067,
-0.11674051731824875,
-0.11957532167434692,
-0.028452113270759583,
-0.12390933930873871,
0.13700902462005615,
-0.0009807683527469635,
-0.16097141802310944,
0.27291980385780334,
-0.35000550746917725,
0.11572007834911346,
0.2478066384792328,
-0.10737670958042145,
-0.17020529508590698,
-0.01101347804069519,
0.13687406480312347,
-0.15446695685386658,
-0.12063056230545044,
-0.01049620658159256,
0.08961841464042664,
-0.35487252473831177,
-0.3076108992099762,
-0.025116614997386932,
-0.09863608330488205,
-0.2606601417064667,
0.2537616491317749,
-0.1176140308380127,
-0.13848546147346497,
-0.1713714599609375,
0.21915042400360107,
-0.11508398503065109,
0.06800325214862823,
0.1310313642024994,
0.1079857349395752,
-0.4748379588127136,
-0.1309468299150467,
-0.03515748679637909,
0.3225252628326416,
-0.07360320538282394,
-0.0875079333782196,
-0.4308395981788635,
-0.1605861335992813,
0.06439707428216934,
0.35888612270355225,
-0.08636841177940369,
0.26293277740478516,
-0.14376448094844818,
-0.10036957263946533,
-0.020083211362361908,
-0.4009418189525604,
-0.40523406863212585,
0.18572644889354706,
-0.33975231647491455,
0.32307004928588867,
0.02172452211380005,
0.26717421412467957,
0.04970618337392807,
-0.16547158360481262,
-0.15819166600704193,
0.44818711280822754,
-0.11375416815280914,
0.06109997630119324,
-0.07585328072309494,
-0.49145519733428955,
-0.06776059418916702,
0.2557694613933563,
0.13460421562194824,
-0.14913609623908997,
0.19913195073604584,
-0.11296609789133072,
0.05396293103694916,
-0.23330402374267578,
0.12891779839992523,
0.17847363650798798,
0.40188637375831604,
0.17544275522232056,
-0.3374311029911041,
-0.1235482469201088,
-0.13825958967208862,
0.342937707901001,
-0.01176069863140583,
0.32239100337028503,
-0.16835837066173553,
-0.2716188430786133,
-0.387612521648407,
0.08414695411920547,
-0.20017944276332855,
-0.40158939361572266,
0.12353497743606567,
0.2532293200492859,
0.20471739768981934,
0.1831045001745224,
0.007301006466150284,
0.532326877117157,
-0.23692242801189423,
0.1759568750858307,
-0.11010181903839111,
0.27512630820274353,
-0.09695445746183395,
0.17553463578224182,
0.03540854901075363,
-0.01604049652814865,
-0.2843572795391083,
-0.007810422219336033,
0.04764208570122719,
0.35211876034736633,
-0.3058299124240875,
0.016900569200515747,
0.026710012927651405,
0.21250414848327637,
0.28669464588165283,
-0.4470287263393402,
0.044410351663827896,
-0.05234566703438759,
0.22081643342971802,
0.07860995084047318,
-0.6304616332054138,
0.21792347729206085,
-0.09046736359596252,
0.07602667063474655,
0.10899944603443146,
-0.04544558748602867,
0.008330954238772392,
-0.06457467377185822,
0.014482524245977402,
-0.028625674545764923,
0.20111626386642456,
0.038803644478321075,
0.18985365331172943,
0.051269613206386566,
-0.20039544999599457,
0.12565232813358307,
0.4126320481300354,
0.03089623898267746,
0.013941224664449692,
0.500243604183197,
0.016414500772953033,
-0.016835324466228485,
0.08735936135053635,
0.3444201946258545,
0.39213091135025024,
0.3305974006652832,
0.09989448636770248,
0.1855688989162445,
0.016070950776338577,
0.12549541890621185,
0.08907158672809601,
0.2544216513633728,
0.4244796931743622,
-0.06267121434211731,
0.286709725856781,
0.12540729343891144,
-0.4018424153327942,
-0.29505279660224915,
-0.06648848950862885,
0.09671314060688019,
-0.19804997742176056,
0.2766000032424927,
-0.03776202350854874,
-0.3941931128501892,
-0.08531221747398376,
0.2534515857696533,
-0.17739535868167877,
-0.2616560161113739,
0.10189639776945114,
0.11369545757770538,
-0.10227261483669281,
0.19656942784786224,
-0.23280920088291168,
0.33791446685791016,
0.09946264326572418,
-0.157759889960289,
-0.09602418541908264,
0.17480452358722687,
-0.045288071036338806,
0.15509358048439026,
0.37336623668670654,
-0.026503203436732292,
0.6457670331001282,
-0.08923681825399399,
0.1615932285785675,
-0.20444267988204956,
-0.8208419680595398,
0.1591041535139084,
-0.2133917659521103,
0.512998104095459,
0.1516115367412567,
0.2053525745868683,
-0.13301892578601837,
-0.40173643827438354,
0.03528616949915886,
-0.20564764738082886,
-0.32686588168144226,
-0.35003867745399475,
0.0659266784787178,
0.03609409183263779,
-0.06812820583581924,
-0.1392183005809784,
-0.11499399691820145,
-0.40439435839653015,
0.4909185767173767,
0.3486122786998749,
0.15274782478809357,
0.524406909942627,
0.17481647431850433,
0.17530730366706848,
-0.2233888953924179,
0.2429829239845276,
-0.1544366478919983,
-0.33846211433410645,
0.21351318061351776,
-0.019754469394683838,
-0.32776451110839844,
-0.2308056801557541,
-0.07207326591014862,
0.2512069046497345,
0.15760186314582825,
-0.4005270004272461,
-0.14248628914356232,
-0.2229069173336029,
0.2957801818847656,
0.10572020709514618,
0.04371821880340576,
0.195133775472641,
-0.03955722972750664,
-0.22326982021331787,
0.052941061556339264,
0.03144809976220131,
-0.00025171786546707153,
-0.20722359418869019,
0.26180702447891235,
-0.11518112570047379,
0.36799153685569763,
0.12000338733196259,
0.3831339478492737,
0.03097633644938469,
-0.10774300992488861,
0.45825424790382385,
0.032851576805114746,
0.45937666296958923,
-0.18127107620239258,
-0.3894418776035309,
0.22169779241085052,
-0.23154586553573608,
0.1271008402109146,
0.303381085395813,
0.069904625415802,
0.03516007214784622,
-0.02536492981016636,
-0.14921610057353973,
-0.23142454028129578,
-0.08568806201219559,
-0.03797928988933563,
0.6363482475280762,
0.10056819766759872,
-0.2515729069709778,
-0.1806090772151947,
-0.12968769669532776,
-0.15113183856010437,
-0.018898939713835716,
0.4104785919189453,
-0.07726385444402695,
-0.03502672165632248,
-0.7785497307777405,
0.409648060798645,
-0.5460433959960938,
0.08573464304208755,
-0.10585445165634155,
-0.30728474259376526,
-0.09388606250286102,
-0.07360050082206726,
0.13950064778327942,
-0.10307718068361282,
0.5737688541412354,
-0.06173565983772278,
0.03708114102482796,
-0.20580695569515228,
-0.12473449856042862,
-0.150231271982193,
0.3487916886806488,
-0.1694829761981964,
-0.028713198378682137,
0.2370617687702179,
0.18032407760620117,
-0.4221116304397583,
0.012803418561816216,
0.37261897325515747,
0.05013306066393852,
-0.020666450262069702,
0.025252263993024826,
-0.14179253578186035,
-0.2784003019332886,
-0.4203239679336548,
0.05898619815707207,
-0.025253411382436752,
0.16110125184059143,
0.013042709790170193,
0.185222327709198,
-0.17082996666431427,
0.0987265333533287,
0.21928399801254272,
0.06671389937400818,
0.035723887383937836,
0.03189076483249664,
0.22282058000564575,
-0.044597938656806946,
-0.031882040202617645,
0.4594503939151764,
0.6732915043830872,
-0.1879281848669052,
-0.35027796030044556,
-0.045455604791641235,
-0.001071687787771225,
0.021598801016807556,
0.3798813223838806,
0.12411686778068542,
-0.18355250358581543,
0.17043273150920868,
0.25408637523651123,
-0.32185038924217224,
0.3666578531265259,
0.12119679898023605,
0.02773403376340866,
-0.20360316336154938,
-0.01860968768596649,
0.4467398226261139,
0.2907836437225342,
-0.08107581734657288,
0.15878154337406158,
0.6963446140289307,
-0.28138914704322815,
0.04186326637864113,
0.2643333077430725,
1.0179916620254517,
-0.132189080119133,
0.37194570899009705,
0.2136102020740509,
-0.25585392117500305,
0.6795249581336975,
0.051484085619449615,
0.024614574387669563,
-0.01857418194413185,
-0.05623116344213486,
-0.06637164205312729,
0.05997732654213905,
0.21714428067207336,
0.15205514430999756,
-0.1659858375787735,
0.1442054808139801,
0.2853941321372986,
-0.26342302560806274,
-0.14035065472126007,
0.550064206123352,
-0.2556973695755005,
-0.4692668318748474,
-0.2826354503631592,
0.22698354721069336,
0.0031269676983356476,
0.375255823135376,
-0.0885104238986969,
-0.30105483531951904,
-0.2984948456287384,
-0.10717269033193588,
-0.10309950262308121,
-0.0290424432605505,
-0.09405237436294556,
0.02742738462984562,
-0.05927201732993126,
0.004126399755477905,
0.26440340280532837,
0.12514728307724,
0.026505257934331894,
-0.05966070666909218,
-0.2685258984565735,
0.21468979120254517,
-0.27417048811912537,
0.04135563224554062,
0.14657728374004364,
-0.29998287558555603,
0.41762465238571167,
-0.06104974448680878,
-0.02662312239408493,
-0.03984779864549637,
0.16209307312965393,
0.043769657611846924,
0.11856210231781006,
0.024348728358745575,
0.12218853831291199,
-0.21545585989952087,
-0.0374317429959774,
-0.11885656416416168,
-0.17581696808338165,
-0.2308184951543808,
0.1180727630853653,
-0.15524500608444214,
0.16017809510231018,
-0.03250221908092499,
0.3062158524990082,
-0.1896188110113144,
-0.15180717408657074,
0.37020817399024963,
-0.053388163447380066,
-0.0698622465133667,
0.29860278964042664,
0.011280007660388947,
-0.12578125298023224,
-0.23694854974746704,
0.1824951171875,
0.15170493721961975,
-0.7477209568023682,
0.022004500031471252,
-0.03890024870634079,
-0.15271231532096863,
-0.04227519780397415,
0.13226494193077087,
0.30418938398361206,
-0.2329457402229309,
0.27686625719070435,
-0.11451412737369537,
-0.4319702684879303,
0.13710540533065796,
-0.22677625715732574,
0.2804555296897888,
-0.08261939138174057,
-0.027572643011808395,
0.13550163805484772,
0.087374746799469,
-0.37866416573524475,
0.13373835384845734,
-0.33871760964393616,
-0.2535545229911804,
0.4593959152698517,
-0.0604361891746521,
0.2998766005039215,
-0.07937997579574585,
0.14634139835834503,
-0.010546371340751648,
-0.29966771602630615,
-0.20060104131698608,
-0.24764268100261688,
0.11615990102291107,
-0.036756664514541626,
-0.4089393615722656,
0.4479053020477295,
-0.18944166600704193,
-0.19173699617385864,
0.06099337339401245,
0.2784704566001892,
0.0036507248878479004,
0.07927984744310379,
-0.22848933935165405,
0.09605848789215088,
-0.012062899768352509,
0.16004496812820435,
-0.12295456230640411,
-0.08137962222099304,
0.28116899728775024,
0.15851210057735443,
0.03372896835207939,
0.10790391266345978,
-0.2081289440393448,
-0.07107815891504288,
0.13566803932189941,
0.25874146819114685,
-0.22299012541770935,
0.4847874343395233,
0.01813388615846634,
-0.19256934523582458,
0.2849043905735016,
0.33794906735420227,
0.1147928386926651,
-0.3329143226146698,
-0.036764174699783325,
0.18172746896743774,
0.2516656517982483,
-0.35227468609809875,
-0.07825727760791779,
0.013469500467181206,
-0.14757320284843445,
0.11045025289058685,
0.19636675715446472,
0.1278083175420761,
0.07934236526489258,
-0.05701124668121338,
0.1388152539730072,
0.5691553950309753,
0.1519625037908554,
0.08865906298160553,
0.31273341178894043,
-0.18833494186401367,
0.08711746335029602,
0.3642159402370453,
0.2737058401107788,
0.4296632707118988,
0.2024756819009781,
-0.14860281348228455,
0.3767571449279785,
-0.4264056980609894,
0.16357994079589844,
0.26286062598228455,
-0.05909286439418793,
0.15206587314605713,
0.1901344358921051,
0.11925463378429413,
0.22685548663139343,
0.11543979495763779,
0.2269277572631836,
0.11834811419248581,
0.01676955260336399,
-0.27976933121681213,
0.6018074750900269,
0.04793631657958031,
-0.09105284512042999,
-0.23301953077316284,
-0.3240645229816437,
-0.1841718852519989,
0.2054164707660675,
-0.22617536783218384,
-0.5750503540039062,
0.1825103461742401,
0.04152465984225273,
-0.18436948955059052,
-0.4253690242767334,
-0.2777073085308075,
-0.061068177223205566,
0.2344125509262085,
-0.19767166674137115,
0.1875760704278946,
0.5141494274139404,
-0.10118316113948822,
0.3127475678920746,
0.4990261197090149,
0.41045451164245605,
0.008470596745610237,
0.1676608771085739,
0.03655581548810005,
-0.030908551067113876,
-0.03924161568284035,
-0.19825665652751923,
0.020273905247449875,
0.08018246293067932,
0.1540183424949646,
0.32998600602149963,
0.10725414007902145,
-0.2476823776960373,
-0.1615767776966095,
-0.04682449623942375,
-0.0771334320306778,
-0.4212155044078827,
-0.10946216434240341,
-0.26483023166656494,
0.22588831186294556,
-0.24126246571540833,
0.21227851510047913,
-0.3088356852531433,
0.13003835082054138,
-0.054381582885980606,
-0.18290673196315765,
0.09361637383699417,
-0.04549573361873627,
0.07401347160339355,
-0.0760805755853653,
0.4098072350025177,
0.4241976737976074,
-0.2498224675655365,
-0.0853944718837738,
-0.12263371795415878,
-0.7232130765914917,
0.07179320603609085,
-0.33038318157196045,
-0.46507903933525085,
-0.04708234593272209,
0.11046874523162842,
0.054350610822439194,
0.03504886478185654,
0.12721090018749237,
-0.07826485484838486,
-0.04724505916237831,
-0.10441504418849945,
-0.24823226034641266,
0.05917637050151825,
0.02798818051815033,
0.05213869363069534,
-0.042134590446949005,
-0.08656191825866699,
0.2600156366825104,
-0.07123750448226929,
0.0940084382891655,
-0.12025022506713867,
0.16862310469150543,
-0.49143633246421814,
0.016715094447135925,
0.2948025166988373,
0.20099201798439026,
0.1503104567527771,
-0.2253948152065277,
-0.3575739860534668,
-0.17644795775413513,
0.012562758289277554,
-0.24336689710617065,
0.3982197046279907,
0.2869015634059906,
0.49953553080558777,
-0.11290393024682999,
-0.38840848207473755,
-0.06511462479829788,
0.06533737480640411,
0.06226121634244919,
-0.02461831085383892,
-0.3048359751701355,
0.1588355451822281,
-0.006674077361822128,
-0.006424503400921822,
0.12268218398094177,
0.20672327280044556,
0.006772398948669434,
-0.19784848392009735,
-0.26410436630249023,
-0.39587390422821045,
0.5134626030921936,
-0.14256514608860016,
-0.08440162986516953,
0.012858807109296322,
-0.030203059315681458,
0.2782958149909973,
0.010730923153460026,
-0.4902048408985138,
0.06388270109891891,
0.23568694293498993,
0.053557269275188446,
-0.2894335389137268,
0.24798649549484253,
-0.12771892547607422,
-0.23535878956317902,
-0.027808181941509247,
0.17396056652069092,
-0.197262704372406,
-0.24665218591690063,
0.23942047357559204,
-0.07544161379337311
] |
https://github.com/huggingface/datasets/issues/4528 | Memory leak when iterating a Dataset | Here is a modified repro example that makes it easier to see the leak:
```
$ cat ds2.py
import gc, sys
import time
from datasets import load_dataset
import os, psutil
process = psutil.Process(os.getpid())
print(process.memory_info().rss/2**20)
corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_memory=False, streaming=False)['corpus']
corpus = corpus.select(range(200000))
print(process.memory_info().rss/2**20)
batch = None
mem_before_start = psutil.Process(os.getpid()).memory_info().rss / 2**20
step = 20000
for i in range(0, 10*step, step):
mem_before = psutil.Process(os.getpid()).memory_info().rss / 2**20
batch = corpus[i:i+step]
import objgraph
#objgraph.show_refs([batch])
#objgraph.show_refs([corpus])
#sys.exit()
gc.collect()
mem_after = psutil.Process(os.getpid()).memory_info().rss / 2**20
print(f"{i:6d} {mem_after - mem_before:12.4f} {mem_after - mem_before_start:12.4f}")
```
Let's run:
```
$ python ds2.py
0 36.5391 36.5391
20000 10.4609 47.0000
40000 5.9766 52.9766
60000 7.8906 60.8672
80000 6.0586 66.9258
100000 8.4453 75.3711
120000 6.7422 82.1133
140000 8.5664 90.6797
160000 5.7344 96.4141
180000 8.3398 104.7539
```
You can see the last column of total RSS memory keeps on growing in MBs. The mid column is by how much it was grown during a single iteration of the repro script (20000 items) | e## Describe the bug
It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop)
## Steps to reproduce the bug
```python
import gc
import logging
import time
import pyarrow
from datasets import load_dataset
from tqdm import trange
import os, psutil
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
process = psutil.Process(os.getpid())
print(process.memory_info().rss) # output: 633507840 bytes
corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_memory=False, streaming=False)['corpus'] # or "BeIR/trec-covid" for a smaller dataset
print(process.memory_info().rss) # output: 698601472 bytes
logger.info("Applying method to all examples in all splits")
for i in trange(0, len(corpus), 1000):
batch = corpus[i:i+1000]
data = pyarrow.total_allocated_bytes()
if data > 0:
logger.info(f"{i}/{len(corpus)}: {data}")
print(process.memory_info().rss) # output: 3788247040 bytes
del batch
gc.collect()
print(process.memory_info().rss) # output: 3788247040 bytes
logger.info("Done...")
time.sleep(100)
```
## Expected results
Limited memory usage, and memory to be freed after processing
## Actual results
Memory leak

You can see how the memory allocation keeps increasing until it reaches a steady state when we hit the `time.sleep(100)`, which showcases that even the garbage collector couldn't free the allocated memory
## 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.4.0-90-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 160 | Memory leak when iterating a Dataset
e## Describe the bug
It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop)
## Steps to reproduce the bug
```python
import gc
import logging
import time
import pyarrow
from datasets import load_dataset
from tqdm import trange
import os, psutil
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
process = psutil.Process(os.getpid())
print(process.memory_info().rss) # output: 633507840 bytes
corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_memory=False, streaming=False)['corpus'] # or "BeIR/trec-covid" for a smaller dataset
print(process.memory_info().rss) # output: 698601472 bytes
logger.info("Applying method to all examples in all splits")
for i in trange(0, len(corpus), 1000):
batch = corpus[i:i+1000]
data = pyarrow.total_allocated_bytes()
if data > 0:
logger.info(f"{i}/{len(corpus)}: {data}")
print(process.memory_info().rss) # output: 3788247040 bytes
del batch
gc.collect()
print(process.memory_info().rss) # output: 3788247040 bytes
logger.info("Done...")
time.sleep(100)
```
## Expected results
Limited memory usage, and memory to be freed after processing
## Actual results
Memory leak

You can see how the memory allocation keeps increasing until it reaches a steady state when we hit the `time.sleep(100)`, which showcases that even the garbage collector couldn't free the allocated memory
## 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.4.0-90-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Here is a modified repro example that makes it easier to see the leak:
```
$ cat ds2.py
import gc, sys
import time
from datasets import load_dataset
import os, psutil
process = psutil.Process(os.getpid())
print(process.memory_info().rss/2**20)
corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_memory=False, streaming=False)['corpus']
corpus = corpus.select(range(200000))
print(process.memory_info().rss/2**20)
batch = None
mem_before_start = psutil.Process(os.getpid()).memory_info().rss / 2**20
step = 20000
for i in range(0, 10*step, step):
mem_before = psutil.Process(os.getpid()).memory_info().rss / 2**20
batch = corpus[i:i+step]
import objgraph
#objgraph.show_refs([batch])
#objgraph.show_refs([corpus])
#sys.exit()
gc.collect()
mem_after = psutil.Process(os.getpid()).memory_info().rss / 2**20
print(f"{i:6d} {mem_after - mem_before:12.4f} {mem_after - mem_before_start:12.4f}")
```
Let's run:
```
$ python ds2.py
0 36.5391 36.5391
20000 10.4609 47.0000
40000 5.9766 52.9766
60000 7.8906 60.8672
80000 6.0586 66.9258
100000 8.4453 75.3711
120000 6.7422 82.1133
140000 8.5664 90.6797
160000 5.7344 96.4141
180000 8.3398 104.7539
```
You can see the last column of total RSS memory keeps on growing in MBs. The mid column is by how much it was grown during a single iteration of the repro script (20000 items) | [
-0.15567363798618317,
-0.16557979583740234,
-0.01564326509833336,
0.3840182423591614,
0.13620826601982117,
-0.029722709208726883,
-0.06453169882297516,
0.019132450222969055,
-0.13223832845687866,
-0.10357432067394257,
0.16322122514247894,
0.3858795762062073,
-0.14323654770851135,
-0.21546171605587006,
0.12570707499980927,
0.09860650449991226,
0.0029050856828689575,
-0.13598603010177612,
-0.3500617444515228,
-0.085844486951828,
-0.3050389587879181,
0.042510002851486206,
-0.4736517071723938,
-0.21192453801631927,
-0.22705526649951935,
-0.31818097829818726,
-0.04545930027961731,
0.08895020186901093,
-0.07946644723415375,
-0.5444040894508362,
0.0748053714632988,
-0.13648860156536102,
0.0496334508061409,
0.4289909303188324,
-0.00011345982056809589,
-0.11267291009426117,
0.12946443259716034,
-0.017380906268954277,
-0.07578578591346741,
0.31977832317352295,
-0.2418404221534729,
-0.13890878856182098,
-0.011214877478778362,
-0.053612153977155685,
0.26759377121925354,
-0.045384038239717484,
-0.10258452594280243,
-0.5545278787612915,
0.2065182477235794,
0.13807465136051178,
0.18736515939235687,
0.40692153573036194,
-0.06870254874229431,
0.08749469369649887,
0.2374895215034485,
-0.22269736230373383,
-0.0779796913266182,
0.08695268630981445,
0.3179495930671692,
-0.39060550928115845,
-0.18761944770812988,
0.35529839992523193,
-0.261163592338562,
0.17108823359012604,
0.19710087776184082,
0.19975745677947998,
0.06771402060985565,
-0.4860440790653229,
-0.04939644783735275,
-0.007487162947654724,
0.4258568584918976,
-0.44355612993240356,
-0.01550988294184208,
-0.031094912439584732,
-0.18065457046031952,
-0.2129250019788742,
0.03288634866476059,
0.3360932767391205,
-0.5592200756072998,
0.07844138890504837,
-0.3073003590106964,
-0.042275745421648026,
0.05317239463329315,
0.11495409905910492,
-0.044655926525592804,
-0.020828738808631897,
0.03384217619895935,
0.10514648258686066,
0.24083144962787628,
0.05348307639360428,
0.03521315008401871,
-0.2635982632637024,
-0.41796305775642395,
0.06267253309488297,
-0.3535718023777008,
-0.10375174134969711,
0.3653177320957184,
-0.09674444049596786,
0.223936527967453,
-0.14737819135189056,
0.02779042348265648,
-0.18900024890899658,
0.32645395398139954,
0.12112617492675781,
0.6278262734413147,
0.09229589998722076,
-0.38636186718940735,
0.4721226394176483,
-0.03656291961669922,
-0.07005823403596878,
-0.27336904406547546,
-0.2730028033256531,
0.38690653443336487,
-0.13482412695884705,
0.6613052487373352,
-0.10030589997768402,
0.2740892767906189,
0.16262772679328918,
-0.2648184895515442,
0.18377386033535004,
-0.27376049757003784,
0.17080488801002502,
-0.05120515450835228,
0.2580448091030121,
0.2143266499042511,
0.02270238660275936,
-0.08270841836929321,
0.14585354924201965,
-0.27361243963241577,
-0.15275421738624573,
-0.368125319480896,
-0.14200975000858307,
-0.5239878296852112,
0.1151805892586708,
-0.1250735968351364,
0.12391719222068787,
0.037061937153339386,
0.19025197625160217,
-0.04508032649755478,
-0.22906512022018433,
0.11712914705276489,
-0.33398815989494324,
0.6199022531509399,
0.2652372717857361,
-0.2679271399974823,
0.15561872720718384,
-0.010557308793067932,
0.004732798784971237,
-0.15687230229377747,
0.3574863374233246,
-0.04653063416481018,
-0.03756538778543472,
0.13715536892414093,
0.1442033052444458,
0.20081157982349396,
-0.0621989443898201,
-0.2624293267726898,
0.10253861546516418,
0.2721032202243805,
0.20194563269615173,
0.2618488073348999,
-0.19340340793132782,
-0.21748916804790497,
-0.3469923138618469,
0.05182179808616638,
0.5476411581039429,
0.039334576576948166,
0.039384424686431885,
-0.026241375133395195,
0.009364297613501549,
0.5219078063964844,
0.2593298852443695,
-0.04743814468383789,
0.40610796213150024,
-0.22600720822811127,
0.21046505868434906,
0.13074293732643127,
-0.27178049087524414,
-0.7070569396018982,
0.38892683386802673,
0.027773380279541016,
0.04780903458595276,
-0.09733157604932785,
0.1780376136302948,
0.09060421586036682,
0.11168407648801804,
0.11926458775997162,
0.14611123502254486,
-0.3321341276168823,
0.3663073778152466,
-0.2435849905014038,
-0.02447267808020115,
-0.0828837975859642,
-0.24991081655025482,
0.09377168118953705,
0.21068787574768066,
0.15398186445236206,
-0.09032692760229111,
0.6838641166687012,
0.020110253244638443,
0.11429714411497116,
0.16571570932865143,
0.35667550563812256,
-0.43061840534210205,
-0.031116321682929993,
-0.21006640791893005,
-0.42235448956489563,
0.1430920958518982,
0.04367886483669281,
-0.08945135772228241,
-0.09876115620136261,
0.001336425542831421,
0.07083643227815628,
0.37715381383895874,
-0.008795265108346939,
-0.3100714087486267,
0.10672737658023834,
0.05527699738740921,
-0.0808936059474945,
-0.12601977586746216,
-0.1831299513578415,
0.015341916121542454,
0.18718217313289642,
0.05543610826134682,
0.0016749287024140358,
0.15192709863185883,
0.33493801951408386,
-0.30839216709136963,
0.07787294685840607,
-0.06950143724679947,
0.09026502072811127,
0.05844920128583908,
-0.0096366498619318,
0.35768449306488037,
0.3020777404308319,
0.17003780603408813,
-0.11950766295194626,
0.02136652171611786,
0.15669958293437958,
-0.21925406157970428,
-0.024046337231993675,
0.11742173135280609,
0.2742934226989746,
-0.018572252243757248,
0.3397514522075653,
0.014913380146026611,
0.08352590352296829,
0.06404848396778107,
0.03416500985622406,
-0.012135133147239685,
-0.16491882503032684,
-0.11303964257240295,
0.17789913713932037,
0.005270518362522125,
-0.15172380208969116,
-0.007302150130271912,
0.1689952313899994,
0.13691718876361847,
-0.16917967796325684,
0.10995376110076904,
0.4937762916088104,
0.1765938699245453,
0.057398319244384766,
-0.1565048098564148,
-0.4073392450809479,
-0.002903735265135765,
0.1609145998954773,
-0.02277132123708725,
0.5693210959434509,
0.01728002354502678,
0.22653573751449585,
-0.03023691661655903,
0.17965301871299744,
-0.12491914629936218,
0.17473097145557404,
0.24416792392730713,
0.164784237742424,
0.09091661125421524,
0.11758621782064438,
-0.22690008580684662,
-0.141616553068161,
0.06642071902751923,
0.06028132140636444,
0.332232266664505,
-0.04306189715862274,
0.12299535423517227,
-0.16903473436832428,
-0.008878890424966812,
0.061954714357852936,
0.003357328474521637,
0.086053267121315,
-0.3192428946495056,
-0.2663993835449219,
0.14221911132335663,
-0.11853362619876862,
-0.054619260132312775,
-0.04976096749305725,
0.03429904580116272,
0.34946730732917786,
-0.12993095815181732,
-0.11159875988960266,
-0.4543558955192566,
-0.10014268010854721,
0.039908360689878464,
0.28172773122787476,
-0.5336243510246277,
0.27338218688964844,
0.09761420637369156,
-0.17679868638515472,
-0.14754265546798706,
0.14052119851112366,
0.22774645686149597,
0.11465921998023987,
0.23245440423488617,
-0.14417961239814758,
0.001590721309185028,
-0.2330556958913803,
0.18332454562187195,
0.02101955935359001,
-0.43548038601875305,
-0.24083347618579865,
0.254668653011322,
0.11948230862617493,
-0.14574992656707764,
0.0718403309583664,
-0.34316954016685486,
0.012447454035282135,
-0.25758305191993713,
0.13970543444156647,
-0.19412924349308014,
0.06223654747009277,
0.3935290277004242,
0.08990218490362167,
0.04535315930843353,
-0.05593787506222725,
-0.1281420886516571,
-0.0450403094291687,
-0.2154930830001831,
0.2015436291694641,
-0.19726493954658508,
-0.18509820103645325,
0.005394924432039261,
0.07963748276233673,
0.010413188487291336,
0.4422864317893982,
-0.7107982039451599,
0.044482432305812836,
-0.27694272994995117,
0.20407499372959137,
-0.13610394299030304,
0.10111172497272491,
-0.0950327068567276,
0.02948893792927265,
-0.15857326984405518,
-0.09515313804149628,
-0.09994983673095703,
-0.23588451743125916,
0.20302453637123108,
0.07854466885328293,
-0.014353398233652115,
0.22001203894615173,
0.40561509132385254,
0.5934959650039673,
0.4473057687282562,
0.16032148897647858,
0.3661254048347473,
-0.2470383644104004,
0.09893178939819336,
-0.02977350354194641,
-0.34164959192276,
-0.033533357083797455,
-0.24662330746650696,
-0.3643874526023865,
0.09348654001951218,
-0.10090188682079315,
-0.47179603576660156,
0.010812591761350632,
0.12853001058101654,
-0.007713235914707184,
-0.44851818680763245,
0.11883802711963654,
0.12056535482406616,
0.3989350199699402,
0.196195587515831,
0.002560913562774658,
0.04886243864893913,
-0.4379931688308716,
-0.006370327435433865,
-0.18713943660259247,
0.16269342601299286,
0.024175386875867844,
-0.22469565272331238,
0.042328257113695145,
-0.5361015796661377,
0.1578546017408371,
-0.046543676406145096,
0.22837620973587036,
0.13045385479927063,
-0.35315003991127014,
0.14409250020980835,
0.2510075271129608,
0.47049009799957275,
0.012343826703727245,
-0.009228192269802094,
0.1375385969877243,
-0.12303295731544495,
-0.16164390742778778,
0.1149713546037674,
-0.32939502596855164,
0.4512697756290436,
0.2561950087547302,
0.12106764316558838,
-0.014295920729637146,
-0.14312013983726501,
0.19301706552505493,
0.11133354902267456,
-0.06105906516313553,
-0.03605780005455017,
-0.333676815032959,
-0.3676552474498749,
-0.07431972771883011,
0.15475992858409882,
0.25957417488098145,
0.22205086052417755,
0.316667765378952,
0.037651512771844864,
0.003545887768268585,
-0.022279728204011917,
0.15909308195114136,
-0.17117513716220856,
0.41792675852775574,
-0.008943499997258186,
0.28652364015579224,
0.13465487957000732,
-0.2208675742149353,
0.3259451985359192,
0.5599152445793152,
0.1159382164478302,
-0.018673092126846313,
0.1230536624789238,
0.14177162945270538,
0.4338191747665405,
0.3492763936519623,
-0.14671722054481506,
-0.1116354689002037,
-0.06627986580133438,
0.3855960965156555,
-0.3124881088733673,
-0.051538143306970596,
0.28074392676353455,
-0.04436101019382477,
-0.3486785292625427,
-0.2450190782546997,
0.17966856062412262,
-0.07663105428218842,
-0.10535567998886108,
0.5678073763847351,
-0.3779039978981018,
-0.167168527841568,
0.29708045721054077,
0.06168677285313606,
0.7045109868049622,
-0.1588422954082489,
0.28541454672813416,
0.29010921716690063,
0.23356689512729645,
0.03978990018367767,
-0.2690185308456421,
0.47518497705459595,
-0.33937856554985046,
-0.1403757780790329,
0.024861129000782967,
-0.2559295892715454,
0.05934535712003708,
0.15147215127944946,
-0.03985577076673508,
0.27695703506469727,
0.06085401773452759,
0.47837644815444946,
0.0945778489112854,
-0.18325841426849365,
-0.13521325588226318,
-0.14560148119926453,
0.015140842646360397,
0.09972241520881653,
0.0622359961271286,
-0.04529885575175285,
-0.12075956165790558,
-0.03537537902593613,
0.2665882110595703,
-0.01903710328042507,
-0.28585994243621826,
-0.05441645532846451,
-0.6176233887672424,
0.168894961476326,
0.23205003142356873,
-0.3226305842399597,
-0.279998242855072,
0.2828614115715027,
-0.19783739745616913,
0.03747210651636124,
0.1529148817062378,
0.16047392785549164,
0.24685749411582947,
0.2776503264904022,
0.17198602855205536,
0.04011694714426994,
0.24688933789730072,
0.213868647813797,
-0.31060725450515747,
0.3100340962409973,
-0.018268190324306488,
-0.10729467868804932,
-0.19904761016368866,
0.36432093381881714,
0.16215479373931885,
-0.17482714354991913,
0.13138051331043243,
0.017829008400440216,
-0.09464976191520691,
-0.06650258600711823,
0.12378475069999695,
0.18867146968841553,
-0.20700255036354065,
0.6759279370307922,
-0.36791926622390747,
-0.4442833364009857,
-0.13081564009189606,
0.1652069389820099,
0.06914055347442627,
0.23679110407829285,
0.2593199610710144,
0.112540602684021,
-0.13694517314434052,
-0.297655314207077,
0.23966777324676514,
-0.016033610329031944,
-0.14853814244270325,
0.37599632143974304,
-0.20012633502483368,
0.28546643257141113,
-0.10426502674818039,
0.08677127212285995,
-0.21324576437473297,
-0.24752777814865112,
0.09299199283123016,
-0.22999149560928345,
-0.31552931666374207,
0.08024699240922928,
0.0325014591217041,
0.089764304459095,
-0.121620774269104,
-0.005943087860941887,
0.0362553671002388,
0.2598295509815216,
-0.26916664838790894,
-0.0033700475469231606,
-0.11431240290403366,
0.10591591894626617,
0.27412042021751404,
0.20084905624389648,
0.3525855243206024,
-0.2135189324617386,
0.09174488484859467,
0.32829731702804565,
-0.006880028173327446,
-0.24698173999786377,
0.011899378150701523,
0.11023950576782227,
0.03822103142738342,
-0.29399892687797546,
-0.0986793264746666,
-0.22224833071231842,
0.1371621936559677,
-0.33987846970558167,
0.37495240569114685,
0.24054619669914246,
0.006040163338184357,
0.1130356714129448,
0.20135638117790222,
-0.2757675051689148,
0.13803468644618988,
0.15747575461864471,
0.07904980331659317,
0.13686999678611755,
0.11097699403762817,
0.24782592058181763,
0.16888611018657684,
0.010899774730205536,
0.03449292480945587,
-0.11715473979711533,
0.048188019543886185,
-0.10746371001005173,
0.36525291204452515,
-0.178965225815773,
-0.1876310557126999,
0.002525110263377428,
0.2170325219631195,
0.1985960602760315,
-0.3552241027355194,
-0.09917015582323074,
-0.04667552933096886,
0.20356206595897675,
0.08148987591266632,
-0.06303118169307709,
-0.0062676649540662766,
0.28508713841438293,
-0.02199365571141243,
0.35132813453674316,
-0.12448576092720032,
-0.1925981640815735,
-0.23919494450092316,
0.052819058299064636,
0.19680535793304443,
-0.20161354541778564,
0.05820882320404053,
-0.055115167051553726,
0.08402739465236664,
-0.0014692321419715881,
0.30884310603141785,
0.4328359067440033,
0.16400550305843353,
0.3543105721473694,
0.2374861240386963,
0.1990405023097992,
0.11606701463460922,
-0.07095760107040405,
-0.23228177428245544,
-0.3701951801776886,
-0.23456870019435883,
0.40748971700668335,
-0.2788273096084595,
0.2716946303844452,
-0.061260491609573364,
-0.18383952975273132,
0.40181878209114075,
-0.11093809455633163,
-0.034845203161239624,
0.14571808278560638,
-0.17341744899749756,
-0.05711623653769493,
0.2504520118236542,
-0.22646522521972656,
0.1607191562652588,
0.24836894869804382,
0.1412869691848755,
-0.4160271883010864,
0.5697013139724731,
0.24171020090579987,
0.13317546248435974,
-0.19660797715187073,
0.001317724585533142,
0.23511311411857605,
0.11017747968435287,
-0.454789400100708,
0.019242480397224426,
-0.1565590351819992,
0.2664695978164673,
-0.16325263679027557,
0.35057300329208374,
0.44573774933815,
0.37581339478492737,
-0.37600767612457275,
0.21731887757778168,
0.0669284462928772,
-0.17624475061893463,
-0.2855455279350281,
0.30007725954055786,
-0.17374098300933838,
0.08725067973136902,
0.027518223971128464,
0.08483840525150299,
-0.011788556352257729,
-0.1452859789133072,
0.3297121226787567,
0.1287468671798706,
-0.5223034620285034,
0.3276822566986084,
-0.17614972591400146,
-0.19409126043319702,
0.12021342664957047,
-0.12848475575447083,
-0.1964796483516693,
-0.16057251393795013,
0.6432223916053772,
-0.4684320390224457,
0.32368433475494385,
-0.23640666902065277,
0.07030528783798218,
-0.24075037240982056,
0.3104488253593445,
0.011382080614566803,
0.040387921035289764,
-0.5050092339515686,
-0.15097996592521667,
-0.4020015597343445,
0.07331430912017822,
-0.2016507238149643,
-0.1669638454914093,
0.12152506411075592,
0.3788527250289917,
-0.2246864140033722,
0.2155841439962387,
0.10724137723445892,
-0.19595444202423096,
-0.20797482132911682,
0.3957589566707611,
-0.168503537774086,
-0.28618672490119934,
-0.37369316816329956,
0.009634443558752537,
0.19712421298027039,
-0.5533304810523987,
0.2613382339477539,
-0.4814022183418274,
0.09197830408811569,
-0.142290860414505,
-0.13253547251224518,
0.3894743025302887,
0.5237559080123901,
0.4207251965999603,
0.2053922712802887,
0.1484924554824829,
-0.08614613115787506,
-0.2771330177783966,
-0.20744970440864563,
-0.4343337118625641,
-0.10659781843423843,
-0.10507457703351974,
-0.3215078115463257,
0.008831456303596497,
-0.3670285642147064,
-0.1661129891872406,
-0.18426480889320374,
-0.12307672202587128,
0.09980311989784241,
-0.008391208946704865,
-0.09906810522079468,
-0.11667753010988235,
-0.09051463007926941,
0.42029500007629395,
-0.06046847626566887,
0.5085269808769226,
-0.1482650339603424,
0.3356032967567444,
-0.24156858026981354,
-0.47983062267303467,
0.2473365217447281,
-0.42796197533607483,
-0.4515444338321686,
0.20908856391906738,
0.2930932343006134,
0.023843929171562195,
-0.32011061906814575,
-0.5394083857536316,
-0.03947889432311058,
0.33204829692840576,
-0.1501045525074005,
-0.39220717549324036,
-0.03396082669496536,
-0.07648000121116638,
0.053441766649484634,
0.15813101828098297,
0.46853116154670715,
0.02427782118320465,
-0.5143874287605286,
0.2751167118549347,
-0.21622933447360992
] |
https://github.com/huggingface/datasets/issues/4528 | Memory leak when iterating a Dataset | @NouamaneTazi, please check my analysis here https://github.com/huggingface/datasets/issues/4883#issuecomment-1242599722 so if you agree with my research this Issue can be closed as well.
I also made a suggestion at how to proceed to hunt for a real leak here https://github.com/huggingface/datasets/issues/4883#issuecomment-1242600626
you may find this one to be useful as well https://github.com/huggingface/datasets/issues/4883#issuecomment-1242597966 | e## Describe the bug
It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop)
## Steps to reproduce the bug
```python
import gc
import logging
import time
import pyarrow
from datasets import load_dataset
from tqdm import trange
import os, psutil
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
process = psutil.Process(os.getpid())
print(process.memory_info().rss) # output: 633507840 bytes
corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_memory=False, streaming=False)['corpus'] # or "BeIR/trec-covid" for a smaller dataset
print(process.memory_info().rss) # output: 698601472 bytes
logger.info("Applying method to all examples in all splits")
for i in trange(0, len(corpus), 1000):
batch = corpus[i:i+1000]
data = pyarrow.total_allocated_bytes()
if data > 0:
logger.info(f"{i}/{len(corpus)}: {data}")
print(process.memory_info().rss) # output: 3788247040 bytes
del batch
gc.collect()
print(process.memory_info().rss) # output: 3788247040 bytes
logger.info("Done...")
time.sleep(100)
```
## Expected results
Limited memory usage, and memory to be freed after processing
## Actual results
Memory leak

You can see how the memory allocation keeps increasing until it reaches a steady state when we hit the `time.sleep(100)`, which showcases that even the garbage collector couldn't free the allocated memory
## 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.4.0-90-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 49 | Memory leak when iterating a Dataset
e## Describe the bug
It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop)
## Steps to reproduce the bug
```python
import gc
import logging
import time
import pyarrow
from datasets import load_dataset
from tqdm import trange
import os, psutil
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
process = psutil.Process(os.getpid())
print(process.memory_info().rss) # output: 633507840 bytes
corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_memory=False, streaming=False)['corpus'] # or "BeIR/trec-covid" for a smaller dataset
print(process.memory_info().rss) # output: 698601472 bytes
logger.info("Applying method to all examples in all splits")
for i in trange(0, len(corpus), 1000):
batch = corpus[i:i+1000]
data = pyarrow.total_allocated_bytes()
if data > 0:
logger.info(f"{i}/{len(corpus)}: {data}")
print(process.memory_info().rss) # output: 3788247040 bytes
del batch
gc.collect()
print(process.memory_info().rss) # output: 3788247040 bytes
logger.info("Done...")
time.sleep(100)
```
## Expected results
Limited memory usage, and memory to be freed after processing
## Actual results
Memory leak

You can see how the memory allocation keeps increasing until it reaches a steady state when we hit the `time.sleep(100)`, which showcases that even the garbage collector couldn't free the allocated memory
## 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.4.0-90-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
@NouamaneTazi, please check my analysis here https://github.com/huggingface/datasets/issues/4883#issuecomment-1242599722 so if you agree with my research this Issue can be closed as well.
I also made a suggestion at how to proceed to hunt for a real leak here https://github.com/huggingface/datasets/issues/4883#issuecomment-1242600626
you may find this one to be useful as well https://github.com/huggingface/datasets/issues/4883#issuecomment-1242597966 | [
-0.15567363798618317,
-0.16557979583740234,
-0.01564326509833336,
0.3840182423591614,
0.13620826601982117,
-0.029722709208726883,
-0.06453169882297516,
0.019132450222969055,
-0.13223832845687866,
-0.10357432067394257,
0.16322122514247894,
0.3858795762062073,
-0.14323654770851135,
-0.21546171605587006,
0.12570707499980927,
0.09860650449991226,
0.0029050856828689575,
-0.13598603010177612,
-0.3500617444515228,
-0.085844486951828,
-0.3050389587879181,
0.042510002851486206,
-0.4736517071723938,
-0.21192453801631927,
-0.22705526649951935,
-0.31818097829818726,
-0.04545930027961731,
0.08895020186901093,
-0.07946644723415375,
-0.5444040894508362,
0.0748053714632988,
-0.13648860156536102,
0.0496334508061409,
0.4289909303188324,
-0.00011345982056809589,
-0.11267291009426117,
0.12946443259716034,
-0.017380906268954277,
-0.07578578591346741,
0.31977832317352295,
-0.2418404221534729,
-0.13890878856182098,
-0.011214877478778362,
-0.053612153977155685,
0.26759377121925354,
-0.045384038239717484,
-0.10258452594280243,
-0.5545278787612915,
0.2065182477235794,
0.13807465136051178,
0.18736515939235687,
0.40692153573036194,
-0.06870254874229431,
0.08749469369649887,
0.2374895215034485,
-0.22269736230373383,
-0.0779796913266182,
0.08695268630981445,
0.3179495930671692,
-0.39060550928115845,
-0.18761944770812988,
0.35529839992523193,
-0.261163592338562,
0.17108823359012604,
0.19710087776184082,
0.19975745677947998,
0.06771402060985565,
-0.4860440790653229,
-0.04939644783735275,
-0.007487162947654724,
0.4258568584918976,
-0.44355612993240356,
-0.01550988294184208,
-0.031094912439584732,
-0.18065457046031952,
-0.2129250019788742,
0.03288634866476059,
0.3360932767391205,
-0.5592200756072998,
0.07844138890504837,
-0.3073003590106964,
-0.042275745421648026,
0.05317239463329315,
0.11495409905910492,
-0.044655926525592804,
-0.020828738808631897,
0.03384217619895935,
0.10514648258686066,
0.24083144962787628,
0.05348307639360428,
0.03521315008401871,
-0.2635982632637024,
-0.41796305775642395,
0.06267253309488297,
-0.3535718023777008,
-0.10375174134969711,
0.3653177320957184,
-0.09674444049596786,
0.223936527967453,
-0.14737819135189056,
0.02779042348265648,
-0.18900024890899658,
0.32645395398139954,
0.12112617492675781,
0.6278262734413147,
0.09229589998722076,
-0.38636186718940735,
0.4721226394176483,
-0.03656291961669922,
-0.07005823403596878,
-0.27336904406547546,
-0.2730028033256531,
0.38690653443336487,
-0.13482412695884705,
0.6613052487373352,
-0.10030589997768402,
0.2740892767906189,
0.16262772679328918,
-0.2648184895515442,
0.18377386033535004,
-0.27376049757003784,
0.17080488801002502,
-0.05120515450835228,
0.2580448091030121,
0.2143266499042511,
0.02270238660275936,
-0.08270841836929321,
0.14585354924201965,
-0.27361243963241577,
-0.15275421738624573,
-0.368125319480896,
-0.14200975000858307,
-0.5239878296852112,
0.1151805892586708,
-0.1250735968351364,
0.12391719222068787,
0.037061937153339386,
0.19025197625160217,
-0.04508032649755478,
-0.22906512022018433,
0.11712914705276489,
-0.33398815989494324,
0.6199022531509399,
0.2652372717857361,
-0.2679271399974823,
0.15561872720718384,
-0.010557308793067932,
0.004732798784971237,
-0.15687230229377747,
0.3574863374233246,
-0.04653063416481018,
-0.03756538778543472,
0.13715536892414093,
0.1442033052444458,
0.20081157982349396,
-0.0621989443898201,
-0.2624293267726898,
0.10253861546516418,
0.2721032202243805,
0.20194563269615173,
0.2618488073348999,
-0.19340340793132782,
-0.21748916804790497,
-0.3469923138618469,
0.05182179808616638,
0.5476411581039429,
0.039334576576948166,
0.039384424686431885,
-0.026241375133395195,
0.009364297613501549,
0.5219078063964844,
0.2593298852443695,
-0.04743814468383789,
0.40610796213150024,
-0.22600720822811127,
0.21046505868434906,
0.13074293732643127,
-0.27178049087524414,
-0.7070569396018982,
0.38892683386802673,
0.027773380279541016,
0.04780903458595276,
-0.09733157604932785,
0.1780376136302948,
0.09060421586036682,
0.11168407648801804,
0.11926458775997162,
0.14611123502254486,
-0.3321341276168823,
0.3663073778152466,
-0.2435849905014038,
-0.02447267808020115,
-0.0828837975859642,
-0.24991081655025482,
0.09377168118953705,
0.21068787574768066,
0.15398186445236206,
-0.09032692760229111,
0.6838641166687012,
0.020110253244638443,
0.11429714411497116,
0.16571570932865143,
0.35667550563812256,
-0.43061840534210205,
-0.031116321682929993,
-0.21006640791893005,
-0.42235448956489563,
0.1430920958518982,
0.04367886483669281,
-0.08945135772228241,
-0.09876115620136261,
0.001336425542831421,
0.07083643227815628,
0.37715381383895874,
-0.008795265108346939,
-0.3100714087486267,
0.10672737658023834,
0.05527699738740921,
-0.0808936059474945,
-0.12601977586746216,
-0.1831299513578415,
0.015341916121542454,
0.18718217313289642,
0.05543610826134682,
0.0016749287024140358,
0.15192709863185883,
0.33493801951408386,
-0.30839216709136963,
0.07787294685840607,
-0.06950143724679947,
0.09026502072811127,
0.05844920128583908,
-0.0096366498619318,
0.35768449306488037,
0.3020777404308319,
0.17003780603408813,
-0.11950766295194626,
0.02136652171611786,
0.15669958293437958,
-0.21925406157970428,
-0.024046337231993675,
0.11742173135280609,
0.2742934226989746,
-0.018572252243757248,
0.3397514522075653,
0.014913380146026611,
0.08352590352296829,
0.06404848396778107,
0.03416500985622406,
-0.012135133147239685,
-0.16491882503032684,
-0.11303964257240295,
0.17789913713932037,
0.005270518362522125,
-0.15172380208969116,
-0.007302150130271912,
0.1689952313899994,
0.13691718876361847,
-0.16917967796325684,
0.10995376110076904,
0.4937762916088104,
0.1765938699245453,
0.057398319244384766,
-0.1565048098564148,
-0.4073392450809479,
-0.002903735265135765,
0.1609145998954773,
-0.02277132123708725,
0.5693210959434509,
0.01728002354502678,
0.22653573751449585,
-0.03023691661655903,
0.17965301871299744,
-0.12491914629936218,
0.17473097145557404,
0.24416792392730713,
0.164784237742424,
0.09091661125421524,
0.11758621782064438,
-0.22690008580684662,
-0.141616553068161,
0.06642071902751923,
0.06028132140636444,
0.332232266664505,
-0.04306189715862274,
0.12299535423517227,
-0.16903473436832428,
-0.008878890424966812,
0.061954714357852936,
0.003357328474521637,
0.086053267121315,
-0.3192428946495056,
-0.2663993835449219,
0.14221911132335663,
-0.11853362619876862,
-0.054619260132312775,
-0.04976096749305725,
0.03429904580116272,
0.34946730732917786,
-0.12993095815181732,
-0.11159875988960266,
-0.4543558955192566,
-0.10014268010854721,
0.039908360689878464,
0.28172773122787476,
-0.5336243510246277,
0.27338218688964844,
0.09761420637369156,
-0.17679868638515472,
-0.14754265546798706,
0.14052119851112366,
0.22774645686149597,
0.11465921998023987,
0.23245440423488617,
-0.14417961239814758,
0.001590721309185028,
-0.2330556958913803,
0.18332454562187195,
0.02101955935359001,
-0.43548038601875305,
-0.24083347618579865,
0.254668653011322,
0.11948230862617493,
-0.14574992656707764,
0.0718403309583664,
-0.34316954016685486,
0.012447454035282135,
-0.25758305191993713,
0.13970543444156647,
-0.19412924349308014,
0.06223654747009277,
0.3935290277004242,
0.08990218490362167,
0.04535315930843353,
-0.05593787506222725,
-0.1281420886516571,
-0.0450403094291687,
-0.2154930830001831,
0.2015436291694641,
-0.19726493954658508,
-0.18509820103645325,
0.005394924432039261,
0.07963748276233673,
0.010413188487291336,
0.4422864317893982,
-0.7107982039451599,
0.044482432305812836,
-0.27694272994995117,
0.20407499372959137,
-0.13610394299030304,
0.10111172497272491,
-0.0950327068567276,
0.02948893792927265,
-0.15857326984405518,
-0.09515313804149628,
-0.09994983673095703,
-0.23588451743125916,
0.20302453637123108,
0.07854466885328293,
-0.014353398233652115,
0.22001203894615173,
0.40561509132385254,
0.5934959650039673,
0.4473057687282562,
0.16032148897647858,
0.3661254048347473,
-0.2470383644104004,
0.09893178939819336,
-0.02977350354194641,
-0.34164959192276,
-0.033533357083797455,
-0.24662330746650696,
-0.3643874526023865,
0.09348654001951218,
-0.10090188682079315,
-0.47179603576660156,
0.010812591761350632,
0.12853001058101654,
-0.007713235914707184,
-0.44851818680763245,
0.11883802711963654,
0.12056535482406616,
0.3989350199699402,
0.196195587515831,
0.002560913562774658,
0.04886243864893913,
-0.4379931688308716,
-0.006370327435433865,
-0.18713943660259247,
0.16269342601299286,
0.024175386875867844,
-0.22469565272331238,
0.042328257113695145,
-0.5361015796661377,
0.1578546017408371,
-0.046543676406145096,
0.22837620973587036,
0.13045385479927063,
-0.35315003991127014,
0.14409250020980835,
0.2510075271129608,
0.47049009799957275,
0.012343826703727245,
-0.009228192269802094,
0.1375385969877243,
-0.12303295731544495,
-0.16164390742778778,
0.1149713546037674,
-0.32939502596855164,
0.4512697756290436,
0.2561950087547302,
0.12106764316558838,
-0.014295920729637146,
-0.14312013983726501,
0.19301706552505493,
0.11133354902267456,
-0.06105906516313553,
-0.03605780005455017,
-0.333676815032959,
-0.3676552474498749,
-0.07431972771883011,
0.15475992858409882,
0.25957417488098145,
0.22205086052417755,
0.316667765378952,
0.037651512771844864,
0.003545887768268585,
-0.022279728204011917,
0.15909308195114136,
-0.17117513716220856,
0.41792675852775574,
-0.008943499997258186,
0.28652364015579224,
0.13465487957000732,
-0.2208675742149353,
0.3259451985359192,
0.5599152445793152,
0.1159382164478302,
-0.018673092126846313,
0.1230536624789238,
0.14177162945270538,
0.4338191747665405,
0.3492763936519623,
-0.14671722054481506,
-0.1116354689002037,
-0.06627986580133438,
0.3855960965156555,
-0.3124881088733673,
-0.051538143306970596,
0.28074392676353455,
-0.04436101019382477,
-0.3486785292625427,
-0.2450190782546997,
0.17966856062412262,
-0.07663105428218842,
-0.10535567998886108,
0.5678073763847351,
-0.3779039978981018,
-0.167168527841568,
0.29708045721054077,
0.06168677285313606,
0.7045109868049622,
-0.1588422954082489,
0.28541454672813416,
0.29010921716690063,
0.23356689512729645,
0.03978990018367767,
-0.2690185308456421,
0.47518497705459595,
-0.33937856554985046,
-0.1403757780790329,
0.024861129000782967,
-0.2559295892715454,
0.05934535712003708,
0.15147215127944946,
-0.03985577076673508,
0.27695703506469727,
0.06085401773452759,
0.47837644815444946,
0.0945778489112854,
-0.18325841426849365,
-0.13521325588226318,
-0.14560148119926453,
0.015140842646360397,
0.09972241520881653,
0.0622359961271286,
-0.04529885575175285,
-0.12075956165790558,
-0.03537537902593613,
0.2665882110595703,
-0.01903710328042507,
-0.28585994243621826,
-0.05441645532846451,
-0.6176233887672424,
0.168894961476326,
0.23205003142356873,
-0.3226305842399597,
-0.279998242855072,
0.2828614115715027,
-0.19783739745616913,
0.03747210651636124,
0.1529148817062378,
0.16047392785549164,
0.24685749411582947,
0.2776503264904022,
0.17198602855205536,
0.04011694714426994,
0.24688933789730072,
0.213868647813797,
-0.31060725450515747,
0.3100340962409973,
-0.018268190324306488,
-0.10729467868804932,
-0.19904761016368866,
0.36432093381881714,
0.16215479373931885,
-0.17482714354991913,
0.13138051331043243,
0.017829008400440216,
-0.09464976191520691,
-0.06650258600711823,
0.12378475069999695,
0.18867146968841553,
-0.20700255036354065,
0.6759279370307922,
-0.36791926622390747,
-0.4442833364009857,
-0.13081564009189606,
0.1652069389820099,
0.06914055347442627,
0.23679110407829285,
0.2593199610710144,
0.112540602684021,
-0.13694517314434052,
-0.297655314207077,
0.23966777324676514,
-0.016033610329031944,
-0.14853814244270325,
0.37599632143974304,
-0.20012633502483368,
0.28546643257141113,
-0.10426502674818039,
0.08677127212285995,
-0.21324576437473297,
-0.24752777814865112,
0.09299199283123016,
-0.22999149560928345,
-0.31552931666374207,
0.08024699240922928,
0.0325014591217041,
0.089764304459095,
-0.121620774269104,
-0.005943087860941887,
0.0362553671002388,
0.2598295509815216,
-0.26916664838790894,
-0.0033700475469231606,
-0.11431240290403366,
0.10591591894626617,
0.27412042021751404,
0.20084905624389648,
0.3525855243206024,
-0.2135189324617386,
0.09174488484859467,
0.32829731702804565,
-0.006880028173327446,
-0.24698173999786377,
0.011899378150701523,
0.11023950576782227,
0.03822103142738342,
-0.29399892687797546,
-0.0986793264746666,
-0.22224833071231842,
0.1371621936559677,
-0.33987846970558167,
0.37495240569114685,
0.24054619669914246,
0.006040163338184357,
0.1130356714129448,
0.20135638117790222,
-0.2757675051689148,
0.13803468644618988,
0.15747575461864471,
0.07904980331659317,
0.13686999678611755,
0.11097699403762817,
0.24782592058181763,
0.16888611018657684,
0.010899774730205536,
0.03449292480945587,
-0.11715473979711533,
0.048188019543886185,
-0.10746371001005173,
0.36525291204452515,
-0.178965225815773,
-0.1876310557126999,
0.002525110263377428,
0.2170325219631195,
0.1985960602760315,
-0.3552241027355194,
-0.09917015582323074,
-0.04667552933096886,
0.20356206595897675,
0.08148987591266632,
-0.06303118169307709,
-0.0062676649540662766,
0.28508713841438293,
-0.02199365571141243,
0.35132813453674316,
-0.12448576092720032,
-0.1925981640815735,
-0.23919494450092316,
0.052819058299064636,
0.19680535793304443,
-0.20161354541778564,
0.05820882320404053,
-0.055115167051553726,
0.08402739465236664,
-0.0014692321419715881,
0.30884310603141785,
0.4328359067440033,
0.16400550305843353,
0.3543105721473694,
0.2374861240386963,
0.1990405023097992,
0.11606701463460922,
-0.07095760107040405,
-0.23228177428245544,
-0.3701951801776886,
-0.23456870019435883,
0.40748971700668335,
-0.2788273096084595,
0.2716946303844452,
-0.061260491609573364,
-0.18383952975273132,
0.40181878209114075,
-0.11093809455633163,
-0.034845203161239624,
0.14571808278560638,
-0.17341744899749756,
-0.05711623653769493,
0.2504520118236542,
-0.22646522521972656,
0.1607191562652588,
0.24836894869804382,
0.1412869691848755,
-0.4160271883010864,
0.5697013139724731,
0.24171020090579987,
0.13317546248435974,
-0.19660797715187073,
0.001317724585533142,
0.23511311411857605,
0.11017747968435287,
-0.454789400100708,
0.019242480397224426,
-0.1565590351819992,
0.2664695978164673,
-0.16325263679027557,
0.35057300329208374,
0.44573774933815,
0.37581339478492737,
-0.37600767612457275,
0.21731887757778168,
0.0669284462928772,
-0.17624475061893463,
-0.2855455279350281,
0.30007725954055786,
-0.17374098300933838,
0.08725067973136902,
0.027518223971128464,
0.08483840525150299,
-0.011788556352257729,
-0.1452859789133072,
0.3297121226787567,
0.1287468671798706,
-0.5223034620285034,
0.3276822566986084,
-0.17614972591400146,
-0.19409126043319702,
0.12021342664957047,
-0.12848475575447083,
-0.1964796483516693,
-0.16057251393795013,
0.6432223916053772,
-0.4684320390224457,
0.32368433475494385,
-0.23640666902065277,
0.07030528783798218,
-0.24075037240982056,
0.3104488253593445,
0.011382080614566803,
0.040387921035289764,
-0.5050092339515686,
-0.15097996592521667,
-0.4020015597343445,
0.07331430912017822,
-0.2016507238149643,
-0.1669638454914093,
0.12152506411075592,
0.3788527250289917,
-0.2246864140033722,
0.2155841439962387,
0.10724137723445892,
-0.19595444202423096,
-0.20797482132911682,
0.3957589566707611,
-0.168503537774086,
-0.28618672490119934,
-0.37369316816329956,
0.009634443558752537,
0.19712421298027039,
-0.5533304810523987,
0.2613382339477539,
-0.4814022183418274,
0.09197830408811569,
-0.142290860414505,
-0.13253547251224518,
0.3894743025302887,
0.5237559080123901,
0.4207251965999603,
0.2053922712802887,
0.1484924554824829,
-0.08614613115787506,
-0.2771330177783966,
-0.20744970440864563,
-0.4343337118625641,
-0.10659781843423843,
-0.10507457703351974,
-0.3215078115463257,
0.008831456303596497,
-0.3670285642147064,
-0.1661129891872406,
-0.18426480889320374,
-0.12307672202587128,
0.09980311989784241,
-0.008391208946704865,
-0.09906810522079468,
-0.11667753010988235,
-0.09051463007926941,
0.42029500007629395,
-0.06046847626566887,
0.5085269808769226,
-0.1482650339603424,
0.3356032967567444,
-0.24156858026981354,
-0.47983062267303467,
0.2473365217447281,
-0.42796197533607483,
-0.4515444338321686,
0.20908856391906738,
0.2930932343006134,
0.023843929171562195,
-0.32011061906814575,
-0.5394083857536316,
-0.03947889432311058,
0.33204829692840576,
-0.1501045525074005,
-0.39220717549324036,
-0.03396082669496536,
-0.07648000121116638,
0.053441766649484634,
0.15813101828098297,
0.46853116154670715,
0.02427782118320465,
-0.5143874287605286,
0.2751167118549347,
-0.21622933447360992
] |
https://github.com/huggingface/datasets/issues/4528 | Memory leak when iterating a Dataset | Amazing job! Thanks for taking time to debug this 🤗
For my side, I tried to do some more research as well, but to no avail. https://github.com/huggingface/datasets/issues/4883#issuecomment-1243415957 | e## Describe the bug
It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop)
## Steps to reproduce the bug
```python
import gc
import logging
import time
import pyarrow
from datasets import load_dataset
from tqdm import trange
import os, psutil
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
process = psutil.Process(os.getpid())
print(process.memory_info().rss) # output: 633507840 bytes
corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_memory=False, streaming=False)['corpus'] # or "BeIR/trec-covid" for a smaller dataset
print(process.memory_info().rss) # output: 698601472 bytes
logger.info("Applying method to all examples in all splits")
for i in trange(0, len(corpus), 1000):
batch = corpus[i:i+1000]
data = pyarrow.total_allocated_bytes()
if data > 0:
logger.info(f"{i}/{len(corpus)}: {data}")
print(process.memory_info().rss) # output: 3788247040 bytes
del batch
gc.collect()
print(process.memory_info().rss) # output: 3788247040 bytes
logger.info("Done...")
time.sleep(100)
```
## Expected results
Limited memory usage, and memory to be freed after processing
## Actual results
Memory leak

You can see how the memory allocation keeps increasing until it reaches a steady state when we hit the `time.sleep(100)`, which showcases that even the garbage collector couldn't free the allocated memory
## 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.4.0-90-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
| 27 | Memory leak when iterating a Dataset
e## Describe the bug
It seems that memory never gets freed after iterating a `Dataset` (using `.map()` or a simple `for` loop)
## Steps to reproduce the bug
```python
import gc
import logging
import time
import pyarrow
from datasets import load_dataset
from tqdm import trange
import os, psutil
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
process = psutil.Process(os.getpid())
print(process.memory_info().rss) # output: 633507840 bytes
corpus = load_dataset("BeIR/msmarco", 'corpus', keep_in_memory=False, streaming=False)['corpus'] # or "BeIR/trec-covid" for a smaller dataset
print(process.memory_info().rss) # output: 698601472 bytes
logger.info("Applying method to all examples in all splits")
for i in trange(0, len(corpus), 1000):
batch = corpus[i:i+1000]
data = pyarrow.total_allocated_bytes()
if data > 0:
logger.info(f"{i}/{len(corpus)}: {data}")
print(process.memory_info().rss) # output: 3788247040 bytes
del batch
gc.collect()
print(process.memory_info().rss) # output: 3788247040 bytes
logger.info("Done...")
time.sleep(100)
```
## Expected results
Limited memory usage, and memory to be freed after processing
## Actual results
Memory leak

You can see how the memory allocation keeps increasing until it reaches a steady state when we hit the `time.sleep(100)`, which showcases that even the garbage collector couldn't free the allocated memory
## 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.4.0-90-generic-x86_64-with-glibc2.31
- Python version: 3.9.7
- PyArrow version: 8.0.0
- Pandas version: 1.4.2
Amazing job! Thanks for taking time to debug this 🤗
For my side, I tried to do some more research as well, but to no avail. https://github.com/huggingface/datasets/issues/4883#issuecomment-1243415957 | [
-0.15567363798618317,
-0.16557979583740234,
-0.01564326509833336,
0.3840182423591614,
0.13620826601982117,
-0.029722709208726883,
-0.06453169882297516,
0.019132450222969055,
-0.13223832845687866,
-0.10357432067394257,
0.16322122514247894,
0.3858795762062073,
-0.14323654770851135,
-0.21546171605587006,
0.12570707499980927,
0.09860650449991226,
0.0029050856828689575,
-0.13598603010177612,
-0.3500617444515228,
-0.085844486951828,
-0.3050389587879181,
0.042510002851486206,
-0.4736517071723938,
-0.21192453801631927,
-0.22705526649951935,
-0.31818097829818726,
-0.04545930027961731,
0.08895020186901093,
-0.07946644723415375,
-0.5444040894508362,
0.0748053714632988,
-0.13648860156536102,
0.0496334508061409,
0.4289909303188324,
-0.00011345982056809589,
-0.11267291009426117,
0.12946443259716034,
-0.017380906268954277,
-0.07578578591346741,
0.31977832317352295,
-0.2418404221534729,
-0.13890878856182098,
-0.011214877478778362,
-0.053612153977155685,
0.26759377121925354,
-0.045384038239717484,
-0.10258452594280243,
-0.5545278787612915,
0.2065182477235794,
0.13807465136051178,
0.18736515939235687,
0.40692153573036194,
-0.06870254874229431,
0.08749469369649887,
0.2374895215034485,
-0.22269736230373383,
-0.0779796913266182,
0.08695268630981445,
0.3179495930671692,
-0.39060550928115845,
-0.18761944770812988,
0.35529839992523193,
-0.261163592338562,
0.17108823359012604,
0.19710087776184082,
0.19975745677947998,
0.06771402060985565,
-0.4860440790653229,
-0.04939644783735275,
-0.007487162947654724,
0.4258568584918976,
-0.44355612993240356,
-0.01550988294184208,
-0.031094912439584732,
-0.18065457046031952,
-0.2129250019788742,
0.03288634866476059,
0.3360932767391205,
-0.5592200756072998,
0.07844138890504837,
-0.3073003590106964,
-0.042275745421648026,
0.05317239463329315,
0.11495409905910492,
-0.044655926525592804,
-0.020828738808631897,
0.03384217619895935,
0.10514648258686066,
0.24083144962787628,
0.05348307639360428,
0.03521315008401871,
-0.2635982632637024,
-0.41796305775642395,
0.06267253309488297,
-0.3535718023777008,
-0.10375174134969711,
0.3653177320957184,
-0.09674444049596786,
0.223936527967453,
-0.14737819135189056,
0.02779042348265648,
-0.18900024890899658,
0.32645395398139954,
0.12112617492675781,
0.6278262734413147,
0.09229589998722076,
-0.38636186718940735,
0.4721226394176483,
-0.03656291961669922,
-0.07005823403596878,
-0.27336904406547546,
-0.2730028033256531,
0.38690653443336487,
-0.13482412695884705,
0.6613052487373352,
-0.10030589997768402,
0.2740892767906189,
0.16262772679328918,
-0.2648184895515442,
0.18377386033535004,
-0.27376049757003784,
0.17080488801002502,
-0.05120515450835228,
0.2580448091030121,
0.2143266499042511,
0.02270238660275936,
-0.08270841836929321,
0.14585354924201965,
-0.27361243963241577,
-0.15275421738624573,
-0.368125319480896,
-0.14200975000858307,
-0.5239878296852112,
0.1151805892586708,
-0.1250735968351364,
0.12391719222068787,
0.037061937153339386,
0.19025197625160217,
-0.04508032649755478,
-0.22906512022018433,
0.11712914705276489,
-0.33398815989494324,
0.6199022531509399,
0.2652372717857361,
-0.2679271399974823,
0.15561872720718384,
-0.010557308793067932,
0.004732798784971237,
-0.15687230229377747,
0.3574863374233246,
-0.04653063416481018,
-0.03756538778543472,
0.13715536892414093,
0.1442033052444458,
0.20081157982349396,
-0.0621989443898201,
-0.2624293267726898,
0.10253861546516418,
0.2721032202243805,
0.20194563269615173,
0.2618488073348999,
-0.19340340793132782,
-0.21748916804790497,
-0.3469923138618469,
0.05182179808616638,
0.5476411581039429,
0.039334576576948166,
0.039384424686431885,
-0.026241375133395195,
0.009364297613501549,
0.5219078063964844,
0.2593298852443695,
-0.04743814468383789,
0.40610796213150024,
-0.22600720822811127,
0.21046505868434906,
0.13074293732643127,
-0.27178049087524414,
-0.7070569396018982,
0.38892683386802673,
0.027773380279541016,
0.04780903458595276,
-0.09733157604932785,
0.1780376136302948,
0.09060421586036682,
0.11168407648801804,
0.11926458775997162,
0.14611123502254486,
-0.3321341276168823,
0.3663073778152466,
-0.2435849905014038,
-0.02447267808020115,
-0.0828837975859642,
-0.24991081655025482,
0.09377168118953705,
0.21068787574768066,
0.15398186445236206,
-0.09032692760229111,
0.6838641166687012,
0.020110253244638443,
0.11429714411497116,
0.16571570932865143,
0.35667550563812256,
-0.43061840534210205,
-0.031116321682929993,
-0.21006640791893005,
-0.42235448956489563,
0.1430920958518982,
0.04367886483669281,
-0.08945135772228241,
-0.09876115620136261,
0.001336425542831421,
0.07083643227815628,
0.37715381383895874,
-0.008795265108346939,
-0.3100714087486267,
0.10672737658023834,
0.05527699738740921,
-0.0808936059474945,
-0.12601977586746216,
-0.1831299513578415,
0.015341916121542454,
0.18718217313289642,
0.05543610826134682,
0.0016749287024140358,
0.15192709863185883,
0.33493801951408386,
-0.30839216709136963,
0.07787294685840607,
-0.06950143724679947,
0.09026502072811127,
0.05844920128583908,
-0.0096366498619318,
0.35768449306488037,
0.3020777404308319,
0.17003780603408813,
-0.11950766295194626,
0.02136652171611786,
0.15669958293437958,
-0.21925406157970428,
-0.024046337231993675,
0.11742173135280609,
0.2742934226989746,
-0.018572252243757248,
0.3397514522075653,
0.014913380146026611,
0.08352590352296829,
0.06404848396778107,
0.03416500985622406,
-0.012135133147239685,
-0.16491882503032684,
-0.11303964257240295,
0.17789913713932037,
0.005270518362522125,
-0.15172380208969116,
-0.007302150130271912,
0.1689952313899994,
0.13691718876361847,
-0.16917967796325684,
0.10995376110076904,
0.4937762916088104,
0.1765938699245453,
0.057398319244384766,
-0.1565048098564148,
-0.4073392450809479,
-0.002903735265135765,
0.1609145998954773,
-0.02277132123708725,
0.5693210959434509,
0.01728002354502678,
0.22653573751449585,
-0.03023691661655903,
0.17965301871299744,
-0.12491914629936218,
0.17473097145557404,
0.24416792392730713,
0.164784237742424,
0.09091661125421524,
0.11758621782064438,
-0.22690008580684662,
-0.141616553068161,
0.06642071902751923,
0.06028132140636444,
0.332232266664505,
-0.04306189715862274,
0.12299535423517227,
-0.16903473436832428,
-0.008878890424966812,
0.061954714357852936,
0.003357328474521637,
0.086053267121315,
-0.3192428946495056,
-0.2663993835449219,
0.14221911132335663,
-0.11853362619876862,
-0.054619260132312775,
-0.04976096749305725,
0.03429904580116272,
0.34946730732917786,
-0.12993095815181732,
-0.11159875988960266,
-0.4543558955192566,
-0.10014268010854721,
0.039908360689878464,
0.28172773122787476,
-0.5336243510246277,
0.27338218688964844,
0.09761420637369156,
-0.17679868638515472,
-0.14754265546798706,
0.14052119851112366,
0.22774645686149597,
0.11465921998023987,
0.23245440423488617,
-0.14417961239814758,
0.001590721309185028,
-0.2330556958913803,
0.18332454562187195,
0.02101955935359001,
-0.43548038601875305,
-0.24083347618579865,
0.254668653011322,
0.11948230862617493,
-0.14574992656707764,
0.0718403309583664,
-0.34316954016685486,
0.012447454035282135,
-0.25758305191993713,
0.13970543444156647,
-0.19412924349308014,
0.06223654747009277,
0.3935290277004242,
0.08990218490362167,
0.04535315930843353,
-0.05593787506222725,
-0.1281420886516571,
-0.0450403094291687,
-0.2154930830001831,
0.2015436291694641,
-0.19726493954658508,
-0.18509820103645325,
0.005394924432039261,
0.07963748276233673,
0.010413188487291336,
0.4422864317893982,
-0.7107982039451599,
0.044482432305812836,
-0.27694272994995117,
0.20407499372959137,
-0.13610394299030304,
0.10111172497272491,
-0.0950327068567276,
0.02948893792927265,
-0.15857326984405518,
-0.09515313804149628,
-0.09994983673095703,
-0.23588451743125916,
0.20302453637123108,
0.07854466885328293,
-0.014353398233652115,
0.22001203894615173,
0.40561509132385254,
0.5934959650039673,
0.4473057687282562,
0.16032148897647858,
0.3661254048347473,
-0.2470383644104004,
0.09893178939819336,
-0.02977350354194641,
-0.34164959192276,
-0.033533357083797455,
-0.24662330746650696,
-0.3643874526023865,
0.09348654001951218,
-0.10090188682079315,
-0.47179603576660156,
0.010812591761350632,
0.12853001058101654,
-0.007713235914707184,
-0.44851818680763245,
0.11883802711963654,
0.12056535482406616,
0.3989350199699402,
0.196195587515831,
0.002560913562774658,
0.04886243864893913,
-0.4379931688308716,
-0.006370327435433865,
-0.18713943660259247,
0.16269342601299286,
0.024175386875867844,
-0.22469565272331238,
0.042328257113695145,
-0.5361015796661377,
0.1578546017408371,
-0.046543676406145096,
0.22837620973587036,
0.13045385479927063,
-0.35315003991127014,
0.14409250020980835,
0.2510075271129608,
0.47049009799957275,
0.012343826703727245,
-0.009228192269802094,
0.1375385969877243,
-0.12303295731544495,
-0.16164390742778778,
0.1149713546037674,
-0.32939502596855164,
0.4512697756290436,
0.2561950087547302,
0.12106764316558838,
-0.014295920729637146,
-0.14312013983726501,
0.19301706552505493,
0.11133354902267456,
-0.06105906516313553,
-0.03605780005455017,
-0.333676815032959,
-0.3676552474498749,
-0.07431972771883011,
0.15475992858409882,
0.25957417488098145,
0.22205086052417755,
0.316667765378952,
0.037651512771844864,
0.003545887768268585,
-0.022279728204011917,
0.15909308195114136,
-0.17117513716220856,
0.41792675852775574,
-0.008943499997258186,
0.28652364015579224,
0.13465487957000732,
-0.2208675742149353,
0.3259451985359192,
0.5599152445793152,
0.1159382164478302,
-0.018673092126846313,
0.1230536624789238,
0.14177162945270538,
0.4338191747665405,
0.3492763936519623,
-0.14671722054481506,
-0.1116354689002037,
-0.06627986580133438,
0.3855960965156555,
-0.3124881088733673,
-0.051538143306970596,
0.28074392676353455,
-0.04436101019382477,
-0.3486785292625427,
-0.2450190782546997,
0.17966856062412262,
-0.07663105428218842,
-0.10535567998886108,
0.5678073763847351,
-0.3779039978981018,
-0.167168527841568,
0.29708045721054077,
0.06168677285313606,
0.7045109868049622,
-0.1588422954082489,
0.28541454672813416,
0.29010921716690063,
0.23356689512729645,
0.03978990018367767,
-0.2690185308456421,
0.47518497705459595,
-0.33937856554985046,
-0.1403757780790329,
0.024861129000782967,
-0.2559295892715454,
0.05934535712003708,
0.15147215127944946,
-0.03985577076673508,
0.27695703506469727,
0.06085401773452759,
0.47837644815444946,
0.0945778489112854,
-0.18325841426849365,
-0.13521325588226318,
-0.14560148119926453,
0.015140842646360397,
0.09972241520881653,
0.0622359961271286,
-0.04529885575175285,
-0.12075956165790558,
-0.03537537902593613,
0.2665882110595703,
-0.01903710328042507,
-0.28585994243621826,
-0.05441645532846451,
-0.6176233887672424,
0.168894961476326,
0.23205003142356873,
-0.3226305842399597,
-0.279998242855072,
0.2828614115715027,
-0.19783739745616913,
0.03747210651636124,
0.1529148817062378,
0.16047392785549164,
0.24685749411582947,
0.2776503264904022,
0.17198602855205536,
0.04011694714426994,
0.24688933789730072,
0.213868647813797,
-0.31060725450515747,
0.3100340962409973,
-0.018268190324306488,
-0.10729467868804932,
-0.19904761016368866,
0.36432093381881714,
0.16215479373931885,
-0.17482714354991913,
0.13138051331043243,
0.017829008400440216,
-0.09464976191520691,
-0.06650258600711823,
0.12378475069999695,
0.18867146968841553,
-0.20700255036354065,
0.6759279370307922,
-0.36791926622390747,
-0.4442833364009857,
-0.13081564009189606,
0.1652069389820099,
0.06914055347442627,
0.23679110407829285,
0.2593199610710144,
0.112540602684021,
-0.13694517314434052,
-0.297655314207077,
0.23966777324676514,
-0.016033610329031944,
-0.14853814244270325,
0.37599632143974304,
-0.20012633502483368,
0.28546643257141113,
-0.10426502674818039,
0.08677127212285995,
-0.21324576437473297,
-0.24752777814865112,
0.09299199283123016,
-0.22999149560928345,
-0.31552931666374207,
0.08024699240922928,
0.0325014591217041,
0.089764304459095,
-0.121620774269104,
-0.005943087860941887,
0.0362553671002388,
0.2598295509815216,
-0.26916664838790894,
-0.0033700475469231606,
-0.11431240290403366,
0.10591591894626617,
0.27412042021751404,
0.20084905624389648,
0.3525855243206024,
-0.2135189324617386,
0.09174488484859467,
0.32829731702804565,
-0.006880028173327446,
-0.24698173999786377,
0.011899378150701523,
0.11023950576782227,
0.03822103142738342,
-0.29399892687797546,
-0.0986793264746666,
-0.22224833071231842,
0.1371621936559677,
-0.33987846970558167,
0.37495240569114685,
0.24054619669914246,
0.006040163338184357,
0.1130356714129448,
0.20135638117790222,
-0.2757675051689148,
0.13803468644618988,
0.15747575461864471,
0.07904980331659317,
0.13686999678611755,
0.11097699403762817,
0.24782592058181763,
0.16888611018657684,
0.010899774730205536,
0.03449292480945587,
-0.11715473979711533,
0.048188019543886185,
-0.10746371001005173,
0.36525291204452515,
-0.178965225815773,
-0.1876310557126999,
0.002525110263377428,
0.2170325219631195,
0.1985960602760315,
-0.3552241027355194,
-0.09917015582323074,
-0.04667552933096886,
0.20356206595897675,
0.08148987591266632,
-0.06303118169307709,
-0.0062676649540662766,
0.28508713841438293,
-0.02199365571141243,
0.35132813453674316,
-0.12448576092720032,
-0.1925981640815735,
-0.23919494450092316,
0.052819058299064636,
0.19680535793304443,
-0.20161354541778564,
0.05820882320404053,
-0.055115167051553726,
0.08402739465236664,
-0.0014692321419715881,
0.30884310603141785,
0.4328359067440033,
0.16400550305843353,
0.3543105721473694,
0.2374861240386963,
0.1990405023097992,
0.11606701463460922,
-0.07095760107040405,
-0.23228177428245544,
-0.3701951801776886,
-0.23456870019435883,
0.40748971700668335,
-0.2788273096084595,
0.2716946303844452,
-0.061260491609573364,
-0.18383952975273132,
0.40181878209114075,
-0.11093809455633163,
-0.034845203161239624,
0.14571808278560638,
-0.17341744899749756,
-0.05711623653769493,
0.2504520118236542,
-0.22646522521972656,
0.1607191562652588,
0.24836894869804382,
0.1412869691848755,
-0.4160271883010864,
0.5697013139724731,
0.24171020090579987,
0.13317546248435974,
-0.19660797715187073,
0.001317724585533142,
0.23511311411857605,
0.11017747968435287,
-0.454789400100708,
0.019242480397224426,
-0.1565590351819992,
0.2664695978164673,
-0.16325263679027557,
0.35057300329208374,
0.44573774933815,
0.37581339478492737,
-0.37600767612457275,
0.21731887757778168,
0.0669284462928772,
-0.17624475061893463,
-0.2855455279350281,
0.30007725954055786,
-0.17374098300933838,
0.08725067973136902,
0.027518223971128464,
0.08483840525150299,
-0.011788556352257729,
-0.1452859789133072,
0.3297121226787567,
0.1287468671798706,
-0.5223034620285034,
0.3276822566986084,
-0.17614972591400146,
-0.19409126043319702,
0.12021342664957047,
-0.12848475575447083,
-0.1964796483516693,
-0.16057251393795013,
0.6432223916053772,
-0.4684320390224457,
0.32368433475494385,
-0.23640666902065277,
0.07030528783798218,
-0.24075037240982056,
0.3104488253593445,
0.011382080614566803,
0.040387921035289764,
-0.5050092339515686,
-0.15097996592521667,
-0.4020015597343445,
0.07331430912017822,
-0.2016507238149643,
-0.1669638454914093,
0.12152506411075592,
0.3788527250289917,
-0.2246864140033722,
0.2155841439962387,
0.10724137723445892,
-0.19595444202423096,
-0.20797482132911682,
0.3957589566707611,
-0.168503537774086,
-0.28618672490119934,
-0.37369316816329956,
0.009634443558752537,
0.19712421298027039,
-0.5533304810523987,
0.2613382339477539,
-0.4814022183418274,
0.09197830408811569,
-0.142290860414505,
-0.13253547251224518,
0.3894743025302887,
0.5237559080123901,
0.4207251965999603,
0.2053922712802887,
0.1484924554824829,
-0.08614613115787506,
-0.2771330177783966,
-0.20744970440864563,
-0.4343337118625641,
-0.10659781843423843,
-0.10507457703351974,
-0.3215078115463257,
0.008831456303596497,
-0.3670285642147064,
-0.1661129891872406,
-0.18426480889320374,
-0.12307672202587128,
0.09980311989784241,
-0.008391208946704865,
-0.09906810522079468,
-0.11667753010988235,
-0.09051463007926941,
0.42029500007629395,
-0.06046847626566887,
0.5085269808769226,
-0.1482650339603424,
0.3356032967567444,
-0.24156858026981354,
-0.47983062267303467,
0.2473365217447281,
-0.42796197533607483,
-0.4515444338321686,
0.20908856391906738,
0.2930932343006134,
0.023843929171562195,
-0.32011061906814575,
-0.5394083857536316,
-0.03947889432311058,
0.33204829692840576,
-0.1501045525074005,
-0.39220717549324036,
-0.03396082669496536,
-0.07648000121116638,
0.053441766649484634,
0.15813101828098297,
0.46853116154670715,
0.02427782118320465,
-0.5143874287605286,
0.2751167118549347,
-0.21622933447360992
] |
https://github.com/huggingface/datasets/issues/4526 | split cache used when processing different split | I was not able to reproduce this behavior (I tried without using pytorch lightning though, since I don't know what code you ran in pytorch lightning to get this).
If you can provide a MWE that would be perfect ! :) | ## Describe the bug`
```
ds1 = load_dataset('squad', split='validation')
ds2 = load_dataset('squad', split='train')
ds1 = ds1.map(some_function)
ds2 = ds2.map(some_function)
assert ds1 == ds2
```
This happens when ds1 and ds2 are created in `pytorch_lightning.DataModule` through
```
class myDataModule:
def train_dataloader(self):
ds = load_dataset('squad', split='train')
ds = ds.map(some_function)
return [ds]
def val_dataloader(self):
ds = load_dataset('squad', split="validation")
ds = ds.map(some_function)
return [ds]
```
I don't know if it depends on `pytorch_lightning` or `datasets` but setting `ds.map(some_function, load_from_cache_file=False)` fixes the issue.
If this is not enough to replicate I will try and provide and MWE, I don't have time now so I thought I wuld open the issue first! | 41 | split cache used when processing different split
## Describe the bug`
```
ds1 = load_dataset('squad', split='validation')
ds2 = load_dataset('squad', split='train')
ds1 = ds1.map(some_function)
ds2 = ds2.map(some_function)
assert ds1 == ds2
```
This happens when ds1 and ds2 are created in `pytorch_lightning.DataModule` through
```
class myDataModule:
def train_dataloader(self):
ds = load_dataset('squad', split='train')
ds = ds.map(some_function)
return [ds]
def val_dataloader(self):
ds = load_dataset('squad', split="validation")
ds = ds.map(some_function)
return [ds]
```
I don't know if it depends on `pytorch_lightning` or `datasets` but setting `ds.map(some_function, load_from_cache_file=False)` fixes the issue.
If this is not enough to replicate I will try and provide and MWE, I don't have time now so I thought I wuld open the issue first!
I was not able to reproduce this behavior (I tried without using pytorch lightning though, since I don't know what code you ran in pytorch lightning to get this).
If you can provide a MWE that would be perfect ! :) | [
-0.1003216803073883,
-0.33055466413497925,
0.004680555313825607,
0.4497182369232178,
0.16972169280052185,
-0.1791902631521225,
0.5268461108207703,
0.2223835587501526,
0.14494961500167847,
0.14330217242240906,
-0.16518135368824005,
0.34816986322402954,
0.07826729863882065,
-0.08422911167144775,
-0.12362353503704071,
-0.08996523916721344,
-0.11359184235334396,
0.05347737297415733,
-0.3479263186454773,
-0.08769677579402924,
-0.012338276952505112,
-0.021900756284594536,
-0.20113219320774078,
-0.09297910332679749,
-0.7682393193244934,
-0.003777043893933296,
0.026925085112452507,
0.12643325328826904,
0.2520240247249603,
-0.18310052156448364,
0.3992440104484558,
-0.03353738412261009,
-0.30127835273742676,
0.6007859110832214,
-0.0001095572006306611,
0.006627343595027924,
0.2686970829963684,
-0.012946100905537605,
-0.15551252663135529,
0.08126397430896759,
-0.18875336647033691,
0.07435688376426697,
0.15949863195419312,
-0.22317150235176086,
-0.0785156786441803,
0.00619184086099267,
-0.4114053249359131,
-0.34901487827301025,
0.47528016567230225,
0.15467974543571472,
0.2412671148777008,
0.1877157986164093,
-0.25260287523269653,
-0.04496924951672554,
0.21771463751792908,
0.04205743968486786,
-0.16282959282398224,
0.11122669279575348,
0.03669445589184761,
-0.12217115610837936,
-0.29551658034324646,
0.30936333537101746,
-0.07639355212450027,
0.33301952481269836,
-0.053102292120456696,
-0.00009393878281116486,
-0.24428778886795044,
-0.19931486248970032,
-0.03853847086429596,
0.22361651062965393,
0.17380940914154053,
-0.18582072854042053,
-0.15610165894031525,
-0.39490604400634766,
-0.2590050995349884,
-0.05037354677915573,
0.23942071199417114,
0.0589580312371254,
0.07800237834453583,
0.048714734613895416,
-0.2317241132259369,
0.3071824014186859,
0.14417286217212677,
-0.026728063821792603,
-0.12290968000888824,
0.251254677772522,
-0.005019087344408035,
0.23401176929473877,
0.16359077394008636,
0.16982512176036835,
0.2298966646194458,
-0.2780306935310364,
-0.006982587277889252,
0.07414130866527557,
-0.39234960079193115,
-0.11584007740020752,
-0.1574600636959076,
-0.46787121891975403,
-0.08096471428871155,
0.01957433670759201,
0.006027844734489918,
0.07526957988739014,
0.12404978275299072,
0.04318317770957947,
0.2283589094877243,
0.40957820415496826,
0.17733091115951538,
0.3915609121322632,
0.014713220298290253,
-0.0884329304099083,
-0.3419603705406189,
0.04980737715959549,
0.5780166983604431,
-0.3356510102748871,
0.35283562541007996,
0.20989066362380981,
0.07508670538663864,
-0.1410897672176361,
-0.16596512496471405,
-0.046021584421396255,
-0.2900855839252472,
-0.0883103758096695,
0.21081101894378662,
0.23838591575622559,
-0.09540919959545135,
0.3498654067516327,
-0.001571204513311386,
0.002014175057411194,
-0.301088809967041,
0.008737086318433285,
-0.3764594495296478,
-0.07378086447715759,
-0.1559419333934784,
0.33572426438331604,
0.12012775242328644,
0.06140431761741638,
0.20279072225093842,
0.3683939278125763,
0.28484004735946655,
-0.30765500664711,
0.2907653748989105,
-0.28202855587005615,
0.2670576572418213,
0.1353231519460678,
-0.014633657410740852,
0.1765097677707672,
0.06782454252243042,
0.22372491657733917,
0.07385475188493729,
0.15436673164367676,
-0.3278634250164032,
-0.37235045433044434,
0.025068800896406174,
0.301200807094574,
-0.1564456671476364,
0.3593659996986389,
0.15616877377033234,
-0.11817865073680878,
0.5041932463645935,
-0.25400838255882263,
0.12736262381076813,
-0.16939331591129303,
-0.26923877000808716,
-0.2454834282398224,
0.08892032504081726,
0.3065604567527771,
0.07455582916736603,
-0.1768488734960556,
-0.17945903539657593,
-0.0330553837120533,
0.09658990800380707,
0.27345699071884155,
-0.4572480022907257,
-0.0006365478038787842,
-0.2900262475013733,
0.19516630470752716,
0.459974467754364,
-0.3585226535797119,
-0.771865725517273,
0.10361750423908234,
-0.1345013976097107,
0.2567979395389557,
0.028923213481903076,
0.058398790657520294,
0.31403830647468567,
-0.0990602970123291,
0.1783992052078247,
0.2675652503967285,
0.02993934601545334,
0.14467117190361023,
-0.5377627611160278,
0.05583236366510391,
0.09335486590862274,
0.07031546533107758,
0.01952780783176422,
-0.18291521072387695,
-0.021406859159469604,
0.15263225138187408,
0.24527373909950256,
-0.0903727114200592,
0.06010910123586655,
0.08165192604064941,
-0.13335596024990082,
-0.024189531803131104,
0.1713053435087204,
-0.1983359158039093,
-0.29760655760765076,
0.37870171666145325,
-0.3118107318878174,
-0.25635963678359985,
0.0013786330819129944,
-0.21912632882595062,
-0.1095198467373848,
-0.06519363820552826,
-0.3746897876262665,
-0.39569148421287537,
0.17315806448459625,
0.047715313732624054,
0.16409899294376373,
-0.12043680250644684,
0.10411116480827332,
0.22724999487400055,
-0.009256809949874878,
-0.06051385775208473,
-0.03159867972135544,
0.3111257255077362,
0.00621739961206913,
-0.11557997018098831,
-0.3782564401626587,
0.18603992462158203,
0.18982982635498047,
-0.07215255498886108,
-0.3412932753562927,
0.35559818148612976,
0.33226582407951355,
-0.04628951847553253,
-0.3096798360347748,
-0.26483166217803955,
0.1879458725452423,
-0.11343853175640106,
-0.02677352912724018,
0.09782931208610535,
0.11387012153863907,
-0.1081409603357315,
0.12110167741775513,
0.42278915643692017,
-0.3239130973815918,
0.09783929586410522,
-0.08578696846961975,
-0.0062394822016358376,
0.05354104936122894,
-0.19365671277046204,
0.20392195880413055,
-0.279976487159729,
0.1093493327498436,
-0.2599950432777405,
0.32507848739624023,
0.342229425907135,
0.22799015045166016,
0.17771567404270172,
0.4621075689792633,
0.051679577678442,
0.2406260073184967,
-0.21605515480041504,
-0.30632472038269043,
-0.1281549632549286,
-0.1245785504579544,
0.3918520510196686,
0.5729724168777466,
0.1303606480360031,
0.16343162953853607,
-0.15596246719360352,
0.028812676668167114,
-0.12053947150707245,
0.19481824338436127,
0.0431535430252552,
0.21136434376239777,
0.28507429361343384,
0.22177958488464355,
-0.12380877882242203,
-0.18561530113220215,
0.42046061158180237,
0.2583239674568176,
-0.003940865397453308,
-0.16599750518798828,
0.23585934937000275,
-0.3222505748271942,
0.1502729058265686,
-0.40883901715278625,
-0.2127252221107483,
-0.2763321101665497,
-0.24492448568344116,
0.08635728806257248,
0.2816690504550934,
0.00004003196954727173,
0.19164438545703888,
0.20249515771865845,
-0.08580361306667328,
-0.05106867849826813,
-0.23936320841312408,
0.005265630781650543,
-0.24990378320217133,
-0.2630688548088074,
0.10047882795333862,
0.053829409182071686,
-0.013748502358794212,
0.24683798849582672,
0.009211322292685509,
-0.10049647092819214,
0.09170174598693848,
-0.2527574598789215,
0.06375527381896973,
0.15285241603851318,
-0.01643560640513897,
-0.16841229796409607,
-0.1325857788324356,
0.3889056444168091,
-0.3324032723903656,
0.171661376953125,
-0.19564121961593628,
-0.24255068600177765,
0.03650478646159172,
0.05725821852684021,
0.13119839131832123,
-0.24989479780197144,
-0.49090173840522766,
-0.12545844912528992,
-0.18800987303256989,
0.06214272230863571,
-0.2745930552482605,
0.1441957652568817,
-0.1020045205950737,
-0.06444905698299408,
0.050080928951501846,
-0.14474885165691376,
0.15202750265598297,
-0.4233125150203705,
0.13390778005123138,
0.10703548789024353,
-0.20793522894382477,
-0.13950027525424957,
-0.19612985849380493,
-0.28851234912872314,
0.125723734498024,
0.08452939242124557,
-0.4071577787399292,
-0.352786123752594,
-0.28828954696655273,
0.15094469487667084,
-0.0682273879647255,
-0.34093165397644043,
0.5559613704681396,
-0.013276206329464912,
0.027692323550581932,
-0.13132143020629883,
-0.13137342035770416,
0.15278217196464539,
-0.07915382832288742,
0.21540510654449463,
-0.3046562671661377,
0.12615087628364563,
0.17658628523349762,
0.877545177936554,
0.0507265068590641,
-0.1762772649526596,
0.044187434017658234,
-0.011015156283974648,
0.025339275598526,
-0.1691443920135498,
-0.42820897698402405,
0.11458650231361389,
-0.2344503402709961,
0.07433512806892395,
0.16563206911087036,
-0.19335153698921204,
-0.43913641571998596,
-0.1097264215350151,
-0.07440096884965897,
-0.07440028339624405,
-0.37110838294029236,
0.10299277305603027,
-0.22400948405265808,
0.10566240549087524,
0.10807202756404877,
0.22494331002235413,
-0.15054795145988464,
-0.010517383925616741,
-0.08782079815864563,
-0.11169514060020447,
0.14467424154281616,
-0.1691964715719223,
-0.06114547327160835,
0.05179045721888542,
0.15654520690441132,
0.337862491607666,
0.4690559208393097,
0.13179874420166016,
-0.04295907914638519,
-0.4336346983909607,
0.133949875831604,
0.001671923790127039,
0.5501402020454407,
-0.06995604932308197,
0.08189355581998825,
-0.08648990094661713,
-0.30530694127082825,
-0.16931265592575073,
-0.11259758472442627,
0.0662381500005722,
0.2662391662597656,
0.3588810861110687,
0.3558920919895172,
-0.23899942636489868,
-0.17601998150348663,
0.1869039088487625,
0.12228536605834961,
-0.18518002331256866,
-0.13113440573215485,
-0.24388961493968964,
0.19030055403709412,
-0.0978093072772026,
0.1350988745689392,
-0.05120987072587013,
0.13170969486236572,
-0.2164742648601532,
-0.14814884960651398,
-0.19596144556999207,
-0.13479019701480865,
-0.25003719329833984,
0.2731418013572693,
0.4584091901779175,
-0.24261310696601868,
0.26016759872436523,
0.27713000774383545,
0.15583504736423492,
-0.026265466585755348,
0.4201246201992035,
-0.17915955185890198,
-0.15152493119239807,
0.1392071396112442,
-0.0009769536554813385,
-0.03595293313264847,
0.2765231132507324,
0.0690658912062645,
0.16174162924289703,
-0.29112541675567627,
-0.08764620125293732,
-0.21281924843788147,
0.19987498223781586,
0.3267422020435333,
-0.06279075890779495,
-0.13079866766929626,
-0.3371104598045349,
0.0976288840174675,
0.13670271635055542,
-0.162669837474823,
0.3254331052303314,
-0.4005134105682373,
-0.1378507912158966,
0.1731848418712616,
-0.02099214494228363,
0.8583371043205261,
0.042282842099666595,
0.1807495355606079,
0.016805309802293777,
-0.20117297768592834,
0.24620680510997772,
-0.010218918323516846,
0.264626681804657,
-0.3845609426498413,
-0.5026043653488159,
0.040973961353302,
-0.2683280408382416,
-0.06788601726293564,
0.012986481189727783,
0.02452615275979042,
0.04753761738538742,
-0.24155046045780182,
0.31150713562965393,
-0.018202856183052063,
0.03778611868619919,
0.13341392576694489,
-0.025615286082029343,
0.09603925794363022,
0.2211305797100067,
-0.18449561297893524,
0.07345810532569885,
0.08632868528366089,
-0.09285037219524384,
-0.04693443700671196,
-0.20566484332084656,
0.06323686242103577,
0.3822857439517975,
-0.142984539270401,
0.41721493005752563,
-0.03475765511393547,
-0.10054994374513626,
-0.1383756697177887,
0.29002323746681213,
-0.04450565576553345,
0.03013562224805355,
0.053338102996349335,
0.31361860036849976,
0.24528849124908447,
0.3634892702102661,
-0.025023944675922394,
-0.10541476309299469,
0.3510788679122925,
0.11749093979597092,
-0.2136792689561844,
-0.06959009915590286,
-0.11327118426561356,
-0.30340951681137085,
-0.17399358749389648,
0.41760748624801636,
0.10649605095386505,
-0.4338458478450775,
0.08994394540786743,
0.15206857025623322,
-0.0627579391002655,
-0.2896171808242798,
0.19609148800373077,
-0.19030024111270905,
-0.3340405523777008,
0.21874630451202393,
-0.19179658591747284,
-0.4272899925708771,
0.0821567177772522,
0.5135859847068787,
0.4855451285839081,
0.3481285274028778,
0.38014617562294006,
-0.2489074170589447,
-0.08790567517280579,
-0.244037926197052,
-0.13132363557815552,
-0.0802527591586113,
-0.7474759221076965,
0.2108195275068283,
-0.24229909479618073,
-0.21134918928146362,
0.0714225023984909,
-0.04807465150952339,
-0.03227870166301727,
0.34475794434547424,
-0.18979056179523468,
-0.19758328795433044,
-0.2609424293041229,
-0.10563728213310242,
-0.1254437416791916,
0.32592931389808655,
0.2541593909263611,
0.3414865732192993,
-0.3319675028324127,
0.5411933064460754,
-0.3551894426345825,
0.17557793855667114,
-0.010997874662280083,
0.28559571504592896,
-0.16590933501720428,
-0.47108152508735657,
0.24861866235733032,
-0.04082680493593216,
0.1421785056591034,
0.23343205451965332,
-0.14244452118873596,
-0.2713949382305145,
-0.08886915445327759,
0.07529342174530029,
-0.12253538519144058,
0.008485831320285797,
-0.4025680124759674,
-0.04201209545135498,
0.247243732213974,
-0.29149025678634644,
0.33029627799987793,
0.14944308996200562,
-0.03267023712396622,
0.02168138325214386,
0.35812509059906006,
0.01719827577471733,
-0.260215699672699,
0.11241782456636429,
-0.2917534112930298,
-0.1611294001340866,
-0.08852008730173111,
0.11805182695388794,
-0.09078061580657959,
-0.013085141777992249,
-0.07145911455154419,
-0.22150802612304688,
0.11600473523139954,
-0.06305797398090363,
0.12553775310516357,
-0.2711646556854248,
-0.08960279822349548,
-0.06996451318264008,
0.3845158815383911,
0.1800255924463272,
0.00102236308157444,
-0.1582552194595337,
-0.10651947557926178,
0.2700958549976349,
-0.06864538788795471,
-0.202755406498909,
0.19543182849884033,
-0.018510736525058746,
0.08857841789722443,
0.21122005581855774,
0.04181543365120888,
0.20578637719154358,
0.29989004135131836,
0.21336281299591064,
0.09917750209569931,
-0.36175644397735596,
0.41294679045677185,
0.5149449110031128,
0.02484073117375374,
-0.0027224868535995483,
0.42202067375183105,
-0.2701207995414734,
0.18995007872581482,
0.06401459872722626,
-0.03726939857006073,
0.36880144476890564,
-0.04970511049032211,
-0.23490214347839355,
0.24509885907173157,
-0.022668270394206047,
-0.11390598118305206,
0.09768964350223541,
-0.2049996554851532,
0.07714425027370453,
-0.03797217458486557,
0.32438769936561584,
-0.3869028687477112,
-0.3873377740383148,
-0.2655200958251953,
0.10848800837993622,
-0.3049878776073456,
0.0691378265619278,
0.25558868050575256,
-0.1027798280119896,
-0.1872374415397644,
0.00000492483377456665,
0.007298622280359268,
0.18353481590747833,
0.46892741322517395,
0.11839428544044495,
-0.17799709737300873,
-0.049737051129341125,
-0.2217819094657898,
0.42131075263023376,
0.16806933283805847,
-0.23062902688980103,
0.2661590576171875,
0.19858461618423462,
-0.0734310895204544,
0.0300850011408329,
0.22680561244487762,
0.1577771157026291,
0.2598179578781128,
-0.3215678334236145,
-0.06433501094579697,
0.3498564660549164,
-0.014967497438192368,
0.015324801206588745,
0.2856425940990448,
0.0990523248910904,
-0.04982025548815727,
0.25933676958084106,
0.19569984078407288,
-0.29296210408210754,
0.08840601146221161,
-0.09985664486885071,
0.21782909333705902,
-0.21485166251659393,
0.5277779698371887,
-0.12979985773563385,
0.0935877338051796,
-0.25633910298347473,
0.1777513474225998,
-0.37988439202308655,
-0.1441771686077118,
0.12706103920936584,
-0.15877214074134827,
0.21345919370651245,
-0.12635260820388794,
0.10008208453655243,
-0.06306955218315125,
0.5051705241203308,
-0.12208504974842072,
-0.2202872335910797,
-0.12798471748828888,
0.13749124109745026,
-0.42173582315444946,
0.34617704153060913,
-0.041122350841760635,
0.16218431293964386,
-0.2881298065185547,
0.1254609078168869,
-0.06998855620622635,
0.0969906821846962,
0.253630131483078,
-0.1760757565498352,
0.3645136058330536,
0.15110334753990173,
-0.45595383644104004,
-0.05138908699154854,
-0.06164108216762543,
-0.25397974252700806,
0.23257896304130554,
-0.4195289611816406,
0.13361109793186188,
0.19755510985851288,
0.17615577578544617,
0.24965281784534454,
-0.2991902232170105,
0.37451520562171936,
0.05888042971491814,
0.0831725001335144,
0.2663685083389282,
0.5398144721984863,
0.038026340305805206,
0.1715928316116333,
0.04063160717487335,
-0.32452917098999023,
-0.11215901374816895,
-0.016087591648101807,
0.2657908499240875,
0.4001190960407257,
-0.05168319493532181,
0.0515274740755558,
-0.25461071729660034,
0.27327466011047363,
0.06245335936546326,
-0.1461503654718399,
-0.05360241234302521,
-0.11905321478843689,
-0.14380598068237305,
0.10061341524124146,
0.21650031208992004,
0.5637423992156982,
-0.01824718713760376,
0.13153961300849915,
-0.10171346366405487,
-0.2828325629234314,
0.46461838483810425,
-0.29301515221595764,
-0.11161229014396667,
-0.07597672939300537,
0.3409414291381836,
0.3079679012298584,
-0.15227653086185455,
-0.27126601338386536,
-0.23793691396713257,
0.2834307849407196,
-0.158047616481781,
-0.0419951006770134,
0.11146070063114166,
0.03932194411754608,
0.03664770349860191,
-0.06779325008392334,
0.24996544420719147,
0.16631999611854553,
-0.17774245142936707,
0.3931673765182495,
-0.08955128490924835
] |
https://github.com/huggingface/datasets/issues/4526 | split cache used when processing different split | Hi, I think the issue happened because I was loading datasets under an `if` ... `else` statement and the condition would change the dataset I would need to load but instead the cached one was always returned. However, I believe that is expected behaviour, if so I'll close the issue.
Otherwise I will try to provide a MWE | ## Describe the bug`
```
ds1 = load_dataset('squad', split='validation')
ds2 = load_dataset('squad', split='train')
ds1 = ds1.map(some_function)
ds2 = ds2.map(some_function)
assert ds1 == ds2
```
This happens when ds1 and ds2 are created in `pytorch_lightning.DataModule` through
```
class myDataModule:
def train_dataloader(self):
ds = load_dataset('squad', split='train')
ds = ds.map(some_function)
return [ds]
def val_dataloader(self):
ds = load_dataset('squad', split="validation")
ds = ds.map(some_function)
return [ds]
```
I don't know if it depends on `pytorch_lightning` or `datasets` but setting `ds.map(some_function, load_from_cache_file=False)` fixes the issue.
If this is not enough to replicate I will try and provide and MWE, I don't have time now so I thought I wuld open the issue first! | 58 | split cache used when processing different split
## Describe the bug`
```
ds1 = load_dataset('squad', split='validation')
ds2 = load_dataset('squad', split='train')
ds1 = ds1.map(some_function)
ds2 = ds2.map(some_function)
assert ds1 == ds2
```
This happens when ds1 and ds2 are created in `pytorch_lightning.DataModule` through
```
class myDataModule:
def train_dataloader(self):
ds = load_dataset('squad', split='train')
ds = ds.map(some_function)
return [ds]
def val_dataloader(self):
ds = load_dataset('squad', split="validation")
ds = ds.map(some_function)
return [ds]
```
I don't know if it depends on `pytorch_lightning` or `datasets` but setting `ds.map(some_function, load_from_cache_file=False)` fixes the issue.
If this is not enough to replicate I will try and provide and MWE, I don't have time now so I thought I wuld open the issue first!
Hi, I think the issue happened because I was loading datasets under an `if` ... `else` statement and the condition would change the dataset I would need to load but instead the cached one was always returned. However, I believe that is expected behaviour, if so I'll close the issue.
Otherwise I will try to provide a MWE | [
-0.06270444393157959,
-0.32965248823165894,
0.018213652074337006,
0.5120728611946106,
0.11805802583694458,
-0.165624737739563,
0.46178877353668213,
0.24098673462867737,
0.1695212423801422,
0.01483328640460968,
-0.1850869357585907,
0.3030513823032379,
0.07645106315612793,
-0.11425374448299408,
-0.08541490137577057,
-0.1356896609067917,
-0.10099872201681137,
0.02604386955499649,
-0.3072912096977234,
-0.07850610464811325,
-0.06970071792602539,
0.10393193364143372,
-0.20038285851478577,
-0.12182916700839996,
-0.7808294892311096,
0.02450702339410782,
-0.0032237619161605835,
0.18305496871471405,
0.2619941532611847,
-0.1970415711402893,
0.5004715919494629,
-0.0030601434409618378,
-0.21978697180747986,
0.5075898170471191,
-0.00011310094851069152,
-0.012627698481082916,
0.24782058596611023,
-0.06031104177236557,
-0.10803818702697754,
0.046887464821338654,
-0.18443042039871216,
0.08231097459793091,
0.11217547208070755,
-0.22243937849998474,
-0.19379380345344543,
0.0019189347513020039,
-0.4127860963344574,
-0.4259294867515564,
0.4314239025115967,
0.19596920907497406,
0.21547430753707886,
0.1494997888803482,
-0.302828311920166,
-0.002307603135704994,
0.20680072903633118,
0.005632266402244568,
-0.11484849452972412,
0.03111494891345501,
-0.005763910710811615,
-0.12050798535346985,
-0.27380502223968506,
0.3487403988838196,
-0.13857729732990265,
0.34191858768463135,
-0.06277924031019211,
0.05438082665205002,
-0.3513961136341095,
-0.16379210352897644,
0.05582721158862114,
0.1948339343070984,
0.29256731271743774,
-0.1447962522506714,
-0.12812133133411407,
-0.4062773287296295,
-0.32635995745658875,
-0.13784822821617126,
0.2430676817893982,
0.05794021487236023,
0.09092536568641663,
0.09764203429222107,
-0.2548042833805084,
0.2556154429912567,
0.15899984538555145,
-0.036235734820365906,
-0.11823385953903198,
0.2733163833618164,
-0.00017977925017476082,
0.2727058231830597,
0.08683925867080688,
0.2034982442855835,
0.25588178634643555,
-0.28914281725883484,
-0.05834523215889931,
0.1273847073316574,
-0.4000423848628998,
-0.07784073054790497,
-0.16733050346374512,
-0.3041403293609619,
-0.06953014433383942,
0.07957535982131958,
-0.08237149566411972,
0.13673830032348633,
0.07908716797828674,
-0.053503721952438354,
0.1924906075000763,
0.40441620349884033,
0.17941424250602722,
0.4572957754135132,
-0.009733341634273529,
-0.1307397335767746,
-0.3274762034416199,
0.05382756516337395,
0.5593763589859009,
-0.2502257823944092,
0.44898879528045654,
0.24382591247558594,
0.06512574851512909,
-0.18112114071846008,
-0.13733454048633575,
-0.035571884363889694,
-0.20337554812431335,
-0.13784828782081604,
0.21017426252365112,
0.2621787488460541,
-0.126474529504776,
0.34760960936546326,
-0.003468029201030731,
0.05940878391265869,
-0.29886186122894287,
0.027618277817964554,
-0.36984968185424805,
-0.0953531265258789,
-0.18961885571479797,
0.3494964838027954,
0.1795087307691574,
0.08667810261249542,
0.1982109695672989,
0.28227782249450684,
0.20888866484165192,
-0.3038167953491211,
0.2315618395805359,
-0.25152352452278137,
0.3355325758457184,
0.13114742934703827,
-0.09585266560316086,
0.20389620959758759,
0.16313984990119934,
0.21310238540172577,
0.016878120601177216,
0.153504878282547,
-0.37516242265701294,
-0.48683828115463257,
0.12229862809181213,
0.25310423970222473,
-0.24930207431316376,
0.3588799238204956,
0.13867229223251343,
-0.07622264325618744,
0.5530647039413452,
-0.2443854659795761,
0.12836870551109314,
-0.2033250331878662,
-0.33499014377593994,
-0.22038710117340088,
0.1187063679099083,
0.3749043941497803,
0.09376190602779388,
-0.16322506964206696,
-0.19557558000087738,
-0.04232409968972206,
0.059619855135679245,
0.2887133061885834,
-0.3984966576099396,
-0.04661747068166733,
-0.35780802369117737,
0.1420278400182724,
0.4533084034919739,
-0.361258327960968,
-0.8331201076507568,
0.08717046678066254,
-0.09430474042892456,
0.29676681756973267,
0.07118210196495056,
0.09410616010427475,
0.2893552780151367,
-0.1092650294303894,
0.1488524079322815,
0.303647518157959,
-0.0327538326382637,
0.1578528881072998,
-0.5524024367332458,
0.003703255206346512,
0.1571614146232605,
0.08344383537769318,
0.13120855391025543,
-0.18046313524246216,
-0.04858732968568802,
0.13602960109710693,
0.26987048983573914,
-0.022592220455408096,
0.043141596019268036,
0.05522418022155762,
-0.20267657935619354,
-0.015969283878803253,
0.27370724081993103,
-0.213717520236969,
-0.35161292552948,
0.47049006819725037,
-0.35030457377433777,
-0.2714795768260956,
-0.03676064312458038,
-0.1731479912996292,
-0.13071978092193604,
-0.07954208552837372,
-0.37619027495384216,
-0.4877733886241913,
0.1203279048204422,
0.04997658357024193,
0.27207618951797485,
-0.16779090464115143,
0.04116057977080345,
0.2775494456291199,
0.15557290613651276,
-0.045743249356746674,
-0.05276205763220787,
0.3016901910305023,
0.06918621063232422,
-0.10593489557504654,
-0.4365012049674988,
0.24097147583961487,
0.24793830513954163,
-0.1119905337691307,
-0.3343506455421448,
0.3507791757583618,
0.369363009929657,
0.0003779008984565735,
-0.31024205684661865,
-0.352253258228302,
0.13639742136001587,
-0.12339819967746735,
0.0028377175331115723,
0.13950496912002563,
0.08183149248361588,
-0.09780580550432205,
0.13070915639400482,
0.416198194026947,
-0.3042038381099701,
0.11710435897111893,
-0.15333369374275208,
-0.01598970964550972,
0.05280934274196625,
-0.17313657701015472,
0.2310110479593277,
-0.29418161511421204,
0.10412931442260742,
-0.3106255531311035,
0.34978723526000977,
0.33372995257377625,
0.20740041136741638,
0.25139114260673523,
0.4777151346206665,
0.058735381811857224,
0.17444834113121033,
-0.20819544792175293,
-0.28912338614463806,
-0.15639454126358032,
-0.034828417003154755,
0.3722004294395447,
0.6190794706344604,
0.10053746402263641,
0.19392091035842896,
-0.12653318047523499,
0.06726467609405518,
-0.09659948945045471,
0.18753166496753693,
0.005129016935825348,
0.2136586755514145,
0.23662754893302917,
0.21646980941295624,
-0.15033473074436188,
-0.12574456632137299,
0.4679916203022003,
0.20849508047103882,
-0.06635051965713501,
-0.14586141705513,
0.2811679244041443,
-0.3475954532623291,
0.09085927158594131,
-0.4226532578468323,
-0.2582950294017792,
-0.2792973816394806,
-0.22344540059566498,
0.0645497664809227,
0.2643654942512512,
0.06351339817047119,
0.2198680341243744,
0.16515788435935974,
-0.06669749319553375,
-0.10205136984586716,
-0.3212226629257202,
-0.011985700577497482,
-0.26834389567375183,
-0.28575631976127625,
0.07046695053577423,
0.04828723892569542,
-0.08234746009111404,
0.27679508924484253,
-0.05978960543870926,
-0.13114911317825317,
0.04854118824005127,
-0.19467593729496002,
0.08994230628013611,
0.11780809611082077,
-0.03384529799222946,
-0.11273999512195587,
-0.16931571066379547,
0.4419376254081726,
-0.29415932297706604,
0.17273244261741638,
-0.18820253014564514,
-0.1391465961933136,
0.0919625461101532,
0.08283360302448273,
0.14053316414356232,
-0.15132425725460052,
-0.5253821611404419,
-0.16585572063922882,
-0.11303938925266266,
0.05220405384898186,
-0.28033646941185,
0.09852278232574463,
-0.12230371683835983,
-0.15811054408550262,
0.012075106613337994,
-0.15239401161670685,
0.0794803723692894,
-0.4313707649707794,
0.07583816349506378,
0.10023488104343414,
-0.09379301220178604,
-0.11687295138835907,
-0.14684461057186127,
-0.3019000291824341,
0.1594100445508957,
0.12845014035701752,
-0.3570488691329956,
-0.28796881437301636,
-0.17425528168678284,
0.18069586157798767,
-0.057413674890995026,
-0.353509783744812,
0.6164562702178955,
-0.02781193144619465,
0.1030493825674057,
-0.1451992392539978,
-0.10006742179393768,
0.10254861414432526,
-0.12136705964803696,
0.2565624415874481,
-0.2593401372432709,
0.048641789704561234,
0.19902808964252472,
0.9668627381324768,
0.06873853504657745,
-0.12362466752529144,
0.046651534736156464,
0.05418429523706436,
0.03809027373790741,
-0.1565033495426178,
-0.44754448533058167,
0.05401786044239998,
-0.2800155282020569,
0.009906638413667679,
0.1637951135635376,
-0.12962272763252258,
-0.4738551676273346,
-0.16182255744934082,
-0.048996612429618835,
-0.09163011610507965,
-0.37295427918434143,
0.11771601438522339,
-0.2623128592967987,
0.08772850036621094,
0.16661930084228516,
0.24962568283081055,
-0.22065602242946625,
-0.05837559700012207,
-0.13441048562526703,
-0.019262000918388367,
0.17137962579727173,
-0.11348620802164078,
-0.051868170499801636,
0.019770296290516853,
0.09155015647411346,
0.38133716583251953,
0.47481152415275574,
0.12092270702123642,
-0.03391769528388977,
-0.3684532046318054,
0.12470491975545883,
0.028676889836788177,
0.6021162271499634,
-0.0948689728975296,
0.13623178005218506,
-0.023983148857951164,
-0.34519654512405396,
-0.11074978858232498,
-0.15856236219406128,
0.09940133988857269,
0.34381064772605896,
0.3349910080432892,
0.3805831968784332,
-0.2290130853652954,
-0.16624385118484497,
0.18266835808753967,
0.13852477073669434,
-0.18441183865070343,
-0.2053290754556656,
-0.23883184790611267,
0.24589639902114868,
-0.059368059039115906,
0.15239499509334564,
-0.07501810044050217,
0.09238483756780624,
-0.24209274351596832,
-0.12353752553462982,
-0.20190244913101196,
-0.08652108907699585,
-0.28099972009658813,
0.20051255822181702,
0.4706556797027588,
-0.27683380246162415,
0.25048983097076416,
0.28560009598731995,
0.12280899286270142,
-0.07762882113456726,
0.45440396666526794,
-0.20024697482585907,
-0.13112954795360565,
0.06254571676254272,
0.03658458963036537,
-0.0823773667216301,
0.3095856308937073,
-0.041237328201532364,
0.11267156898975372,
-0.2157975137233734,
-0.09900952875614166,
-0.20655274391174316,
0.18346475064754486,
0.26088687777519226,
-0.03101242706179619,
-0.21906301379203796,
-0.37076979875564575,
0.1921953707933426,
0.10357433557510376,
-0.17062783241271973,
0.34766703844070435,
-0.3375278115272522,
-0.1954994648694992,
0.2245987206697464,
-0.05897270888090134,
0.8207568526268005,
0.03817994147539139,
0.17939463257789612,
0.03611576557159424,
-0.13888728618621826,
0.32023510336875916,
-0.05518939346075058,
0.324615478515625,
-0.3768196105957031,
-0.41246333718299866,
-0.019520774483680725,
-0.24363462626934052,
-0.14288443326950073,
0.008602112531661987,
0.09302985668182373,
0.19866631925106049,
-0.14589980244636536,
0.2717896103858948,
-0.0019127624109387398,
0.028184950351715088,
0.12456987053155899,
-0.036049891263246536,
0.11839377135038376,
0.1896364539861679,
-0.2639264464378357,
0.14165979623794556,
0.0787324607372284,
-0.0754476860165596,
-0.03015615977346897,
-0.21139153838157654,
0.042157530784606934,
0.39874693751335144,
-0.13369090855121613,
0.36780375242233276,
-0.03495490923523903,
-0.2062261998653412,
-0.1997784972190857,
0.25773128867149353,
-0.041727274656295776,
-0.04562344029545784,
0.013424028642475605,
0.27031633257865906,
0.23211178183555603,
0.32647886872291565,
0.005835048854351044,
-0.12726235389709473,
0.3460044860839844,
0.15893128514289856,
-0.23616719245910645,
-0.1057887002825737,
-0.18946075439453125,
-0.2705751657485962,
-0.09259533882141113,
0.3824729919433594,
0.1774665117263794,
-0.39435848593711853,
0.04693206399679184,
0.18383990228176117,
-0.014047166332602501,
-0.23474445939064026,
0.16360360383987427,
-0.1451478749513626,
-0.27203938364982605,
0.20313787460327148,
-0.2359982281923294,
-0.4551858901977539,
0.03519338369369507,
0.521355390548706,
0.4643899202346802,
0.2751350700855255,
0.33715784549713135,
-0.18374955654144287,
-0.09498868882656097,
-0.20234763622283936,
-0.15751701593399048,
-0.13639627397060394,
-0.7539200782775879,
0.15242071449756622,
-0.2475215345621109,
-0.1680224984884262,
0.07003948837518692,
-0.16410689055919647,
-0.009249098598957062,
0.27869418263435364,
-0.19263848662376404,
-0.21217601001262665,
-0.2197980433702469,
-0.058341771364212036,
-0.18883708119392395,
0.2682332992553711,
0.28189364075660706,
0.3205694258213043,
-0.29894542694091797,
0.47835439443588257,
-0.31720486283302307,
0.21102657914161682,
0.09348844736814499,
0.2745177149772644,
-0.1323414444923401,
-0.4344393014907837,
0.26271653175354004,
-0.051187027245759964,
0.07317589223384857,
0.18022890388965607,
-0.22487138211727142,
-0.2347608506679535,
-0.13296163082122803,
0.0873040109872818,
-0.09303434193134308,
-0.04096429795026779,
-0.3866499364376068,
-0.12078686058521271,
0.3299926221370697,
-0.31410396099090576,
0.3126499056816101,
0.1911119520664215,
-0.01343119889497757,
0.021611295640468597,
0.37959763407707214,
-0.026525437831878662,
-0.32927703857421875,
0.16147594153881073,
-0.29814422130584717,
-0.18900348246097565,
-0.14170622825622559,
0.17246964573860168,
-0.07989615947008133,
-0.014338508248329163,
-0.05785995349287987,
-0.2577442526817322,
0.13919149339199066,
-0.03994322568178177,
0.1835310459136963,
-0.2755401134490967,
-0.11690707504749298,
-0.08621734380722046,
0.3568369448184967,
0.04459426924586296,
0.0497339628636837,
-0.1343850940465927,
-0.17125418782234192,
0.22882969677448273,
-0.02673104777932167,
-0.1858087033033371,
0.16298891603946686,
0.09619876742362976,
0.03600865229964256,
0.2809896469116211,
0.09643442928791046,
0.23245853185653687,
0.38598984479904175,
0.21806851029396057,
0.26995420455932617,
-0.38547050952911377,
0.405995637178421,
0.4878584146499634,
0.07918469607830048,
0.08118029683828354,
0.435947060585022,
-0.18831230700016022,
0.15345069766044617,
0.07105358690023422,
-0.018239609897136688,
0.4070918560028076,
-0.019277576357126236,
-0.20473560690879822,
0.19643224775791168,
-0.09010329097509384,
-0.14596323668956757,
-0.0014972537755966187,
-0.21433991193771362,
0.10342592000961304,
-0.03446957468986511,
0.3832496106624603,
-0.42047929763793945,
-0.35159459710121155,
-0.27649152278900146,
0.0634852796792984,
-0.2620544135570526,
0.0060997940599918365,
0.34968701004981995,
-0.09084241837263107,
-0.1537061631679535,
0.005456816405057907,
-0.06341575086116791,
0.1560419797897339,
0.5012850761413574,
0.1043437272310257,
-0.1781327873468399,
-0.06427857279777527,
-0.21854576468467712,
0.37005195021629333,
0.10375942289829254,
-0.21819794178009033,
0.30870166420936584,
0.14781822264194489,
-0.1038212776184082,
0.07650625705718994,
0.14686809480190277,
0.134893000125885,
0.2491111010313034,
-0.3647882044315338,
-0.10218522697687149,
0.3727132976055145,
0.020076794549822807,
-0.02647027000784874,
0.31504175066947937,
0.019727423787117004,
-0.09475500881671906,
0.2026231437921524,
0.18917113542556763,
-0.2397749125957489,
0.149388387799263,
-0.04111339524388313,
0.23074574768543243,
-0.2571147382259369,
0.501768171787262,
-0.10901862382888794,
0.12810969352722168,
-0.1914435178041458,
0.22289565205574036,
-0.352809339761734,
-0.007807082496583462,
0.15254168212413788,
-0.08692114800214767,
0.23562711477279663,
-0.06835939735174179,
0.08183847367763519,
-0.037803951650857925,
0.4491010904312134,
-0.11643731594085693,
-0.15615111589431763,
-0.1855432689189911,
0.19906555116176605,
-0.4351232349872589,
0.3323490023612976,
0.014818722382187843,
0.13354462385177612,
-0.26064053177833557,
0.08651214838027954,
-0.0274931862950325,
0.10797050595283508,
0.2507752776145935,
-0.09707052260637283,
0.41473308205604553,
0.13841837644577026,
-0.4562913477420807,
-0.12035132944583893,
-0.05705854296684265,
-0.21290412545204163,
0.18382003903388977,
-0.4428328573703766,
0.16039079427719116,
0.2681554853916168,
0.13131269812583923,
0.19527462124824524,
-0.3666200339794159,
0.4156162142753601,
0.09131021797657013,
0.06887418031692505,
0.3190706968307495,
0.46571874618530273,
0.12142985314130783,
0.17756487429141998,
-0.11245325207710266,
-0.2845190167427063,
-0.10480249673128128,
-0.07886780053377151,
0.21599242091178894,
0.41150400042533875,
-0.141513854265213,
0.00467522069811821,
-0.2596399784088135,
0.24819594621658325,
0.05197133868932724,
-0.088142529129982,
-0.09269583970308304,
-0.10069345682859421,
-0.18120887875556946,
0.1180894523859024,
0.22247910499572754,
0.6167851686477661,
-0.0161028653383255,
0.15861156582832336,
-0.10733697563409805,
-0.20660828053951263,
0.46359488368034363,
-0.30145472288131714,
-0.1278301626443863,
-0.04876333475112915,
0.36939167976379395,
0.3442527651786804,
-0.2250295728445053,
-0.2894805371761322,
-0.2147703468799591,
0.2628329396247864,
-0.15450537204742432,
0.023553740233182907,
-0.010802535340189934,
0.07495792210102081,
0.048892583698034286,
-0.08286463469266891,
0.22892165184020996,
0.1691514551639557,
-0.14974775910377502,
0.36394327878952026,
-0.09855664521455765
] |
https://github.com/huggingface/datasets/issues/4525 | Out of memory error on workers while running Beam+Dataflow | Some naive ideas to cope with this:
- enable more RAM on each worker
- force the spanning of more workers
- others? | ## Describe the bug
While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files).
Previously we ran the preprocessing for the "dev" config (only dev files) with success.
Train data files are larger than dev ones and apparently workers run out of memory while processing them.
Any help/hint is welcome!
Error message:
```
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
Info from the Diagnostics tab:
```
Out of memory: Killed process 1882 (python) total-vm:6041764kB, anon-rss:3290928kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:9520kB oom_score_adj:900
The worker VM had to shut down one or more processes due to lack of memory.
```
## Additional information
### Stack trace
```
Traceback (most recent call last):
File "/home/albert_huggingface_co/natural_questions/venv/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/run_beam.py", line 127, in run
builder.download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 1389, in _download_and_prepare
pipeline_results.wait_until_finish()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/apache_beam/runners/dataflow/dataflow_runner.py", line 1667, in wait_until_finish
raise DataflowRuntimeException(
apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
### Logs
```
Error message from worker: Data channel closed, unable to receive additional data from SDK sdk-0-0
Workflow failed. Causes: S30:train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/Read+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/GroupByWindow+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/FlatMap(restore_timestamps)+train/ReadAllFromText/ReadAllFiles/Reshard/RemoveRandomKeys+train/ReadAllFromText/ReadAllFiles/ReadRange+train/Map(_parse_example)+train/Encode+train/Count N. Examples+train/Get values/Values+train/Save to parquet/Write/WriteImpl/WindowInto(WindowIntoFn)+train/Save to parquet/Write/WriteImpl/WriteBundles+train/Save to parquet/Write/WriteImpl/Pair+train/Save to parquet/Write/WriteImpl/GroupByKey/Write failed., The job failed because a work item has failed 4 times. Look in previous log entries for the cause of each one of the 4 failures. For more information, see https://cloud.google.com/dataflow/docs/guides/common-errors. The work item was attempted on these workers: beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: Data channel closed, unable to receive additional data from SDK sdk-0-0, beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-bwsj Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-5052 Root cause: The worker lost contact with the service.
```
| 23 | Out of memory error on workers while running Beam+Dataflow
## Describe the bug
While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files).
Previously we ran the preprocessing for the "dev" config (only dev files) with success.
Train data files are larger than dev ones and apparently workers run out of memory while processing them.
Any help/hint is welcome!
Error message:
```
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
Info from the Diagnostics tab:
```
Out of memory: Killed process 1882 (python) total-vm:6041764kB, anon-rss:3290928kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:9520kB oom_score_adj:900
The worker VM had to shut down one or more processes due to lack of memory.
```
## Additional information
### Stack trace
```
Traceback (most recent call last):
File "/home/albert_huggingface_co/natural_questions/venv/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/run_beam.py", line 127, in run
builder.download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 1389, in _download_and_prepare
pipeline_results.wait_until_finish()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/apache_beam/runners/dataflow/dataflow_runner.py", line 1667, in wait_until_finish
raise DataflowRuntimeException(
apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
### Logs
```
Error message from worker: Data channel closed, unable to receive additional data from SDK sdk-0-0
Workflow failed. Causes: S30:train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/Read+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/GroupByWindow+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/FlatMap(restore_timestamps)+train/ReadAllFromText/ReadAllFiles/Reshard/RemoveRandomKeys+train/ReadAllFromText/ReadAllFiles/ReadRange+train/Map(_parse_example)+train/Encode+train/Count N. Examples+train/Get values/Values+train/Save to parquet/Write/WriteImpl/WindowInto(WindowIntoFn)+train/Save to parquet/Write/WriteImpl/WriteBundles+train/Save to parquet/Write/WriteImpl/Pair+train/Save to parquet/Write/WriteImpl/GroupByKey/Write failed., The job failed because a work item has failed 4 times. Look in previous log entries for the cause of each one of the 4 failures. For more information, see https://cloud.google.com/dataflow/docs/guides/common-errors. The work item was attempted on these workers: beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: Data channel closed, unable to receive additional data from SDK sdk-0-0, beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-bwsj Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-5052 Root cause: The worker lost contact with the service.
```
Some naive ideas to cope with this:
- enable more RAM on each worker
- force the spanning of more workers
- others? | [
-0.3179207444190979,
-0.12448765337467194,
-0.04219004511833191,
0.325805127620697,
0.3414510488510132,
-0.14221429824829102,
-0.09138506650924683,
0.4362598657608032,
-0.1771542876958847,
0.3672865331172943,
0.2916374206542969,
0.17966338992118835,
-0.20729193091392517,
0.29709017276763916,
0.017125552520155907,
-0.26205524802207947,
-0.06626906245946884,
-0.005221329629421234,
-0.35569286346435547,
-0.09661632776260376,
-0.29713374376296997,
-0.03457030653953552,
-0.11048303544521332,
-0.07314218580722809,
-0.11726446449756622,
0.05389855057001114,
0.107256218791008,
0.4139477610588074,
-0.07015205174684525,
-0.22861814498901367,
-0.06279042363166809,
-0.11586974561214447,
0.07130087167024612,
0.3142407536506653,
-0.00012188479740871117,
-0.06275603175163269,
0.43871384859085083,
0.06228065490722656,
-0.2059805542230606,
-0.053728193044662476,
-0.032909903675317764,
-0.3655340373516083,
-0.12045765668153763,
0.0588950589299202,
0.014400869607925415,
-0.5790768265724182,
0.1763344556093216,
-0.3162025809288025,
0.32520565390586853,
0.5608006715774536,
0.07473074644804001,
0.08038074523210526,
0.26977866888046265,
0.18152792751789093,
0.21284112334251404,
-0.035108864307403564,
-0.05375117063522339,
0.2698899507522583,
0.23745004832744598,
-0.36455461382865906,
0.21583408117294312,
0.1666087955236435,
0.19662989675998688,
-0.010068289935588837,
0.2543727159500122,
-0.15034779906272888,
0.2740083932876587,
-0.5025782585144043,
0.2648738622665405,
0.27127495408058167,
0.20192527770996094,
-0.24250200390815735,
0.13461948931217194,
-0.3733041286468506,
0.17644301056861877,
-0.24762408435344696,
0.26927417516708374,
0.363773912191391,
-0.48760128021240234,
-0.1214117556810379,
-0.527358889579773,
-0.2158638834953308,
-0.08068926632404327,
0.32597994804382324,
0.18513250350952148,
0.021651439368724823,
-0.11677226424217224,
0.24219956994056702,
0.3242601454257965,
-0.05004183202981949,
0.6149072051048279,
-0.1527658849954605,
0.07137956470251083,
-0.0858222022652626,
-0.4351768493652344,
-0.08971680700778961,
0.16071264445781708,
-0.21966049075126648,
0.20741817355155945,
-0.08452196419239044,
-0.38217106461524963,
-0.03140607476234436,
0.19613908231258392,
-0.1683107316493988,
0.46027299761772156,
0.27587223052978516,
-0.09481551498174667,
0.14077620208263397,
0.019949819892644882,
-0.00581202981993556,
-0.2708378732204437,
-0.17453786730766296,
0.027956970036029816,
-0.6094490885734558,
-0.1337055265903473,
-0.06845298409461975,
0.3605669140815735,
0.012115519493818283,
0.09540955722332001,
0.0868021622300148,
-0.093608058989048,
0.22808872163295746,
0.1541600078344345,
0.44920772314071655,
-0.00322737917304039,
0.607182502746582,
-0.12736567854881287,
0.12570618093013763,
-0.14646433293819427,
-0.2800045609474182,
-0.17747578024864197,
0.14299921691417694,
-0.5383463501930237,
-0.052086926996707916,
0.09608694911003113,
-0.22970297932624817,
0.28036871552467346,
-0.07943695783615112,
0.185634046792984,
-0.6217135787010193,
0.26869991421699524,
-0.3050214350223541,
0.07617375999689102,
0.1886168122291565,
-0.04756659269332886,
0.13873916864395142,
-0.15060019493103027,
0.33828508853912354,
0.155306875705719,
0.4130154252052307,
-0.33169934153556824,
-0.7142782211303711,
-0.040441691875457764,
0.09067296236753464,
-0.0037189647555351257,
0.3584856390953064,
-0.0006031841039657593,
-0.07530361413955688,
0.3249034285545349,
0.17882969975471497,
-0.0960165485739708,
-0.46915435791015625,
-0.10934779047966003,
-0.09721139818429947,
0.1579122692346573,
0.37736332416534424,
-0.02293841913342476,
0.2762838304042816,
-0.0012996091973036528,
0.014649532735347748,
0.4374241828918457,
0.055641256272792816,
-0.16527530550956726,
0.2267512083053589,
-0.23394489288330078,
-0.37913817167282104,
0.30407992005348206,
-0.06622273474931717,
-0.1390976756811142,
0.3959626257419586,
0.0697285383939743,
-0.02550649829208851,
-0.2382306456565857,
-0.008316563442349434,
-0.0660979226231575,
0.1560378223657608,
0.13027174770832062,
0.23189659416675568,
-0.26230764389038086,
0.2058728188276291,
-0.3505077660083771,
-0.226212278008461,
-0.0532601922750473,
0.11262011528015137,
0.4177105128765106,
-0.03323926031589508,
-0.10219716280698776,
0.02221592143177986,
0.17187991738319397,
0.002568911761045456,
0.09755370020866394,
0.3538062572479248,
-0.15176540613174438,
0.03860051557421684,
-0.03053358569741249,
-0.26037362217903137,
-0.20436838269233704,
0.11721762269735336,
-0.06657639145851135,
-0.06184414029121399,
0.4010004997253418,
0.18008694052696228,
-0.23906871676445007,
0.07861257344484329,
-0.04575689509510994,
-0.17490960657596588,
-0.006956348195672035,
0.10201163589954376,
-0.3647189736366272,
-0.2568778991699219,
-0.13745971024036407,
0.11535358428955078,
-0.8277051448822021,
0.01479681208729744,
-0.15473808348178864,
0.2829660475254059,
-0.08613631874322891,
-0.3054013252258301,
-0.09589666873216629,
0.14147748053073883,
0.029285842552781105,
0.2161426991224289,
-0.1751239001750946,
0.37610214948654175,
-0.0974125787615776,
0.15250878036022186,
-0.21832984685897827,
0.3186455965042114,
0.03383171558380127,
-0.1786680817604065,
0.14609360694885254,
-0.28511470556259155,
-0.14663255214691162,
0.2432989478111267,
0.16593188047409058,
-0.1597050279378891,
-0.07662296295166016,
0.2198808491230011,
0.20292456448078156,
0.17965476214885712,
-0.0944797694683075,
-0.10465781390666962,
0.30119359493255615,
0.0668242871761322,
0.24652253091335297,
-0.09825518727302551,
0.010600287467241287,
0.046045925468206406,
-0.35290083289146423,
-0.07801563292741776,
0.48210951685905457,
0.11903609335422516,
-0.03786931931972504,
0.02002396620810032,
-0.20588085055351257,
-0.17741256952285767,
0.2964673638343811,
0.2819262742996216,
0.5339245200157166,
0.07711436599493027,
0.1697365939617157,
0.2081507444381714,
0.10197629779577255,
-0.06834035366773605,
0.16766248643398285,
0.10936591029167175,
0.576978862285614,
0.3514205813407898,
0.10978326201438904,
-0.09700020402669907,
-0.1171187087893486,
0.027422692626714706,
0.36047786474227905,
0.41848790645599365,
-0.38697290420532227,
-0.0756634846329689,
-0.09720806032419205,
-0.11971508711576462,
-0.32956770062446594,
0.33069226145744324,
-0.12090738117694855,
-0.25416773557662964,
-0.11144240200519562,
0.06111188977956772,
-0.3849814832210541,
0.04288603365421295,
0.2994481325149536,
0.05973871052265167,
0.04126270115375519,
-0.01608896441757679,
0.031848445534706116,
-0.03999509662389755,
-0.037078142166137695,
-0.09253956377506256,
0.36462825536727905,
-0.14720851182937622,
0.18976490199565887,
0.256786972284317,
-0.28692173957824707,
-0.17057746648788452,
0.10487080365419388,
0.26744091510772705,
0.3569685220718384,
0.5967714190483093,
-0.09184741973876953,
0.3900044560432434,
0.13155756890773773,
-0.04119276627898216,
0.1388920098543167,
-0.06693685054779053,
-0.021814581006765366,
-0.14928142726421356,
0.14716382324695587,
0.18394847214221954,
-0.3534565567970276,
-0.5560477375984192,
-0.058566972613334656,
-0.43790310621261597,
0.101499542593956,
-0.15147554874420166,
0.03690805286169052,
0.07629907876253128,
0.4020797312259674,
-0.2050609290599823,
0.10263974964618683,
0.0924692377448082,
-0.07129118591547012,
-0.28510358929634094,
-0.14817975461483002,
-0.11888288706541061,
-0.05189964547753334,
-0.01140923798084259,
0.1653687208890915,
0.12481328845024109,
0.37369227409362793,
-0.5742104649543762,
-0.037167664617300034,
-0.29506823420524597,
-0.21038177609443665,
-0.28057268261909485,
-0.06426627188920975,
0.33693233132362366,
-0.05777492746710777,
0.006412407383322716,
0.06137534976005554,
0.01364731416106224,
0.02398598939180374,
0.04759296402335167,
0.28497493267059326,
0.2467295229434967,
0.2743972837924957,
0.02631485089659691,
0.7497295141220093,
-0.02383672446012497,
0.180414080619812,
0.08029916137456894,
-0.17573976516723633,
0.45122283697128296,
0.14867770671844482,
-0.10184108465909958,
0.6407608985900879,
0.0993366688489914,
-0.1402498185634613,
-0.10927200317382812,
0.042149245738983154,
-0.20272491872310638,
-0.13068705797195435,
-0.005087606608867645,
-0.19248217344284058,
-0.1457650363445282,
0.3520159423351288,
-0.3024119436740875,
0.3199042081832886,
0.1387394219636917,
0.05951957404613495,
-0.003127962350845337,
-0.20976004004478455,
-0.16487646102905273,
-0.12306943535804749,
-0.09784769266843796,
0.02295016497373581,
-0.05880327522754669,
-0.1668565273284912,
-0.3072408437728882,
0.043387435376644135,
-0.04851285740733147,
0.377621591091156,
-0.05635245144367218,
0.11679025739431381,
-0.008995912969112396,
-0.09572048485279083,
0.6420639753341675,
-0.300699919462204,
-0.10198019444942474,
-0.17174240946769714,
-0.27291440963745117,
-0.031083907932043076,
-0.20603224635124207,
0.02587156370282173,
-0.024333711713552475,
0.22242970764636993,
0.21765604615211487,
0.024713225662708282,
-0.35649386048316956,
0.3609442710876465,
-0.008644714951515198,
-0.1827370673418045,
-0.2881239950656891,
-0.04056002199649811,
-0.16853652894496918,
-0.2989383041858673,
-0.035491250455379486,
-0.10998135805130005,
0.13431625068187714,
-0.3868103623390198,
-0.08320575952529907,
0.07579367607831955,
0.15907907485961914,
0.13825610280036926,
-0.01894081011414528,
0.27103209495544434,
-0.20169182121753693,
0.11963893473148346,
0.05555882304906845,
0.24973663687705994,
0.24216915667057037,
0.19351127743721008,
0.11548183858394623,
-0.0036143958568573,
0.11059272289276123,
0.1066933199763298,
0.2411734163761139,
0.5215757489204407,
-0.20765995979309082,
-0.2883319556713104,
0.020866218954324722,
0.3867443799972534,
-0.2595761716365814,
0.4780765473842621,
0.3917366862297058,
0.17419686913490295,
-0.005110675934702158,
-0.34141722321510315,
0.044449128210544586,
0.13327233493328094,
-0.053830064833164215,
0.3611895442008972,
-0.24300526082515717,
-0.20356550812721252,
0.10210054367780685,
0.3517509400844574,
1.1873949766159058,
-0.2560913562774658,
0.013052672147750854,
0.1647394895553589,
-0.30053073167800903,
0.6263619661331177,
-0.625778079032898,
0.2518238127231598,
-0.26333335041999817,
-0.3297612965106964,
0.1888357549905777,
-0.2192295342683792,
-0.002086736261844635,
-0.015976399183273315,
0.16008496284484863,
0.3508228063583374,
0.1531193107366562,
0.1187235563993454,
-0.08072347193956375,
0.2111988067626953,
-0.19023500382900238,
-0.05563958361744881,
-0.19482015073299408,
0.047927454113960266,
-0.2505906820297241,
-0.015919972211122513,
-0.30737945437431335,
0.09169749915599823,
0.22449761629104614,
0.021404743194580078,
-0.3516777753829956,
0.25864627957344055,
-0.30154821276664734,
-0.11288443207740784,
-0.024361006915569305,
-0.1529855728149414,
0.1045917272567749,
0.5068589448928833,
0.2185697704553604,
0.33337265253067017,
-0.08062941581010818,
0.40471675992012024,
0.018613319844007492,
-0.17460957169532776,
0.1528114676475525,
0.12573722004890442,
0.407822847366333,
-0.23510423302650452,
-0.4662654399871826,
0.05772173032164574,
-0.22224077582359314,
0.03516865521669388,
-0.38480859994888306,
0.081668920814991,
0.16467244923114777,
-0.18538159132003784,
-0.32259640097618103,
0.21704980731010437,
-0.0774097591638565,
-0.001583382487297058,
0.0892888754606247,
-0.019572943449020386,
-0.2598622143268585,
0.18757811188697815,
-0.24570603668689728,
-0.35194796323776245,
-0.02870432659983635,
-0.15702331066131592,
0.37778788805007935,
-0.2217346578836441,
0.5133670568466187,
0.21774078905582428,
0.06077555567026138,
-0.1719810664653778,
-0.13404661417007446,
0.40282341837882996,
-0.42648348212242126,
0.08628234267234802,
-0.018437162041664124,
-0.2969436049461365,
0.04750003665685654,
-0.14471614360809326,
-0.04759429395198822,
0.2825298607349396,
0.05756788328289986,
-0.21744365990161896,
-0.3293708562850952,
0.13833662867546082,
-0.3302876055240631,
0.36616313457489014,
-0.19536885619163513,
0.28609195351600647,
-0.005943732336163521,
-0.08717446029186249,
-0.21075521409511566,
0.06397361308336258,
-0.42249080538749695,
0.2527047395706177,
-0.06691496819257736,
0.037265803664922714,
0.09308962523937225,
-0.1990072876214981,
-0.0715906023979187,
0.0023613926023244858,
-0.16823691129684448,
-0.11563581228256226,
0.12576355040073395,
0.14029264450073242,
-0.025738965719938278,
-0.34145694971084595,
-0.0205155648291111,
-0.5516072511672974,
-0.13324251770973206,
-0.18896348774433136,
0.19231480360031128,
-0.0932830274105072,
-0.12948743999004364,
0.0674365758895874,
-0.05566702410578728,
0.25432005524635315,
0.10819727182388306,
0.42037302255630493,
0.07664119452238083,
0.4934372305870056,
-0.10158327221870422,
0.2945255637168884,
0.29345738887786865,
-0.041786450892686844,
-0.42612433433532715,
-0.011092975735664368,
-0.024180784821510315,
0.23524150252342224,
0.10725151002407074,
-0.2775578498840332,
-0.16204608976840973,
-0.053276777267456055,
0.2861033082008362,
0.4138427972793579,
-0.23306837677955627,
0.146237313747406,
0.34753748774528503,
0.13508032262325287,
0.07833971083164215,
0.22168685495853424,
0.33784645795822144,
0.003028303850442171,
-0.0667118951678276,
0.005376338958740234,
0.08287031948566437,
-0.11304350197315216,
-0.13126204907894135,
0.2187248170375824,
-0.27842092514038086,
-0.5897895097732544,
0.00042368099093437195,
0.014626946300268173,
-0.056450262665748596,
-0.12236489355564117,
-0.0013479441404342651,
0.12530817091464996,
0.14009372889995575,
0.7140223383903503,
0.11960773169994354,
0.18026210367679596,
0.32365965843200684,
0.21127372980117798,
-0.015298672020435333,
-0.45878127217292786,
-0.2097761183977127,
0.5016226768493652,
-0.2853482961654663,
0.23913869261741638,
-0.2798146605491638,
0.022403918206691742,
0.22009502351284027,
-0.3724938631057739,
-0.03787325322628021,
0.1936887949705124,
-0.2706792652606964,
0.038121797144412994,
-0.29689574241638184,
-0.11415412276983261,
-0.04193955659866333,
0.230354905128479,
0.2111303061246872,
-0.276108980178833,
0.20923291146755219,
0.13155284523963928,
-0.41753292083740234,
-0.01957881636917591,
0.28620675206184387,
0.36564937233924866,
-0.03545915335416794,
-0.404375821352005,
0.15768000483512878,
0.11825551837682724,
-0.07216836512088776,
-0.11964535713195801,
0.29820477962493896,
0.47275474667549133,
0.4340927302837372,
-0.22080668807029724,
0.05388457700610161,
0.47984087467193604,
0.047490693628787994,
-0.2682685852050781,
0.04548002406954765,
0.46884146332740784,
0.5673755407333374,
0.11229319870471954,
0.11769168078899384,
-0.05809282138943672,
-0.055296484380960464,
0.34776026010513306,
0.3328334093093872,
-0.3607565462589264,
-0.05689644068479538,
0.097407765686512,
-0.22215485572814941,
-0.16654007136821747,
0.04301707074046135,
-0.34958335757255554,
-0.06010240316390991,
0.47086891531944275,
-0.06964875012636185,
0.2441125214099884,
0.0441695936024189,
0.023393332958221436,
-0.19039396941661835,
0.45347529649734497,
0.20711052417755127,
0.292917400598526,
-0.4905242323875427,
-0.4067947268486023,
-0.30933231115341187,
0.04232364147901535,
-0.09486755728721619,
0.24090924859046936,
0.23384852707386017,
0.2883282005786896,
-0.10818088799715042,
-0.32197409868240356,
-0.27338141202926636,
-0.06440094858407974,
0.09485878795385361,
0.3143032193183899,
-0.38965904712677,
-0.42241427302360535,
-0.0865737795829773,
0.09856484085321426,
0.3361666202545166,
-0.2893314063549042,
0.12364637851715088,
-0.21641206741333008,
-0.20058193802833557,
0.2649870812892914,
0.21116748452186584,
-0.043314892798662186,
-0.07020630687475204,
0.30581146478652954,
0.10352607071399689,
0.3858698010444641,
0.10868262499570847,
-0.29201656579971313,
-0.4035603106021881,
-0.4986024498939514,
-0.21533772349357605,
-0.056619398295879364,
-0.0025109685957431793,
0.24292710423469543,
-0.3103574812412262,
0.270866334438324,
-0.2856939435005188,
-0.14194855093955994,
-0.032260917127132416,
0.30050626397132874,
-0.016372621059417725,
-0.19375090301036835,
0.20532333850860596,
0.19772933423519135,
0.24480412900447845,
0.2973262667655945,
-0.06112440675497055,
-0.006612565368413925,
-0.3463704586029053,
-0.1477833092212677,
0.42900025844573975,
0.0910186618566513,
-0.3435969352722168,
-0.2823697328567505,
0.08761527389287949,
0.17529022693634033,
-0.0303731020539999,
-0.47166335582733154,
-0.022052429616451263,
0.13011808693408966,
0.14728863537311554,
-0.2639214098453522,
0.05785626918077469,
-0.35397693514823914,
0.1769774705171585,
0.06097136810421944,
0.1225929707288742,
-0.01870589330792427,
-0.2262902408838272,
0.15499339997768402,
-0.08807773888111115
] |
https://github.com/huggingface/datasets/issues/4525 | Out of memory error on workers while running Beam+Dataflow | @albertvillanova We were finally able to process the full NQ dataset on our machines using 600 gb with 5 workers. Maybe these numbers will work for you as well. | ## Describe the bug
While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files).
Previously we ran the preprocessing for the "dev" config (only dev files) with success.
Train data files are larger than dev ones and apparently workers run out of memory while processing them.
Any help/hint is welcome!
Error message:
```
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
Info from the Diagnostics tab:
```
Out of memory: Killed process 1882 (python) total-vm:6041764kB, anon-rss:3290928kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:9520kB oom_score_adj:900
The worker VM had to shut down one or more processes due to lack of memory.
```
## Additional information
### Stack trace
```
Traceback (most recent call last):
File "/home/albert_huggingface_co/natural_questions/venv/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/run_beam.py", line 127, in run
builder.download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 1389, in _download_and_prepare
pipeline_results.wait_until_finish()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/apache_beam/runners/dataflow/dataflow_runner.py", line 1667, in wait_until_finish
raise DataflowRuntimeException(
apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
### Logs
```
Error message from worker: Data channel closed, unable to receive additional data from SDK sdk-0-0
Workflow failed. Causes: S30:train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/Read+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/GroupByWindow+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/FlatMap(restore_timestamps)+train/ReadAllFromText/ReadAllFiles/Reshard/RemoveRandomKeys+train/ReadAllFromText/ReadAllFiles/ReadRange+train/Map(_parse_example)+train/Encode+train/Count N. Examples+train/Get values/Values+train/Save to parquet/Write/WriteImpl/WindowInto(WindowIntoFn)+train/Save to parquet/Write/WriteImpl/WriteBundles+train/Save to parquet/Write/WriteImpl/Pair+train/Save to parquet/Write/WriteImpl/GroupByKey/Write failed., The job failed because a work item has failed 4 times. Look in previous log entries for the cause of each one of the 4 failures. For more information, see https://cloud.google.com/dataflow/docs/guides/common-errors. The work item was attempted on these workers: beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: Data channel closed, unable to receive additional data from SDK sdk-0-0, beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-bwsj Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-5052 Root cause: The worker lost contact with the service.
```
| 29 | Out of memory error on workers while running Beam+Dataflow
## Describe the bug
While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files).
Previously we ran the preprocessing for the "dev" config (only dev files) with success.
Train data files are larger than dev ones and apparently workers run out of memory while processing them.
Any help/hint is welcome!
Error message:
```
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
Info from the Diagnostics tab:
```
Out of memory: Killed process 1882 (python) total-vm:6041764kB, anon-rss:3290928kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:9520kB oom_score_adj:900
The worker VM had to shut down one or more processes due to lack of memory.
```
## Additional information
### Stack trace
```
Traceback (most recent call last):
File "/home/albert_huggingface_co/natural_questions/venv/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/run_beam.py", line 127, in run
builder.download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 1389, in _download_and_prepare
pipeline_results.wait_until_finish()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/apache_beam/runners/dataflow/dataflow_runner.py", line 1667, in wait_until_finish
raise DataflowRuntimeException(
apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
### Logs
```
Error message from worker: Data channel closed, unable to receive additional data from SDK sdk-0-0
Workflow failed. Causes: S30:train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/Read+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/GroupByWindow+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/FlatMap(restore_timestamps)+train/ReadAllFromText/ReadAllFiles/Reshard/RemoveRandomKeys+train/ReadAllFromText/ReadAllFiles/ReadRange+train/Map(_parse_example)+train/Encode+train/Count N. Examples+train/Get values/Values+train/Save to parquet/Write/WriteImpl/WindowInto(WindowIntoFn)+train/Save to parquet/Write/WriteImpl/WriteBundles+train/Save to parquet/Write/WriteImpl/Pair+train/Save to parquet/Write/WriteImpl/GroupByKey/Write failed., The job failed because a work item has failed 4 times. Look in previous log entries for the cause of each one of the 4 failures. For more information, see https://cloud.google.com/dataflow/docs/guides/common-errors. The work item was attempted on these workers: beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: Data channel closed, unable to receive additional data from SDK sdk-0-0, beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-bwsj Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-5052 Root cause: The worker lost contact with the service.
```
@albertvillanova We were finally able to process the full NQ dataset on our machines using 600 gb with 5 workers. Maybe these numbers will work for you as well. | [
-0.3179207444190979,
-0.12448765337467194,
-0.04219004511833191,
0.325805127620697,
0.3414510488510132,
-0.14221429824829102,
-0.09138506650924683,
0.4362598657608032,
-0.1771542876958847,
0.3672865331172943,
0.2916374206542969,
0.17966338992118835,
-0.20729193091392517,
0.29709017276763916,
0.017125552520155907,
-0.26205524802207947,
-0.06626906245946884,
-0.005221329629421234,
-0.35569286346435547,
-0.09661632776260376,
-0.29713374376296997,
-0.03457030653953552,
-0.11048303544521332,
-0.07314218580722809,
-0.11726446449756622,
0.05389855057001114,
0.107256218791008,
0.4139477610588074,
-0.07015205174684525,
-0.22861814498901367,
-0.06279042363166809,
-0.11586974561214447,
0.07130087167024612,
0.3142407536506653,
-0.00012188479740871117,
-0.06275603175163269,
0.43871384859085083,
0.06228065490722656,
-0.2059805542230606,
-0.053728193044662476,
-0.032909903675317764,
-0.3655340373516083,
-0.12045765668153763,
0.0588950589299202,
0.014400869607925415,
-0.5790768265724182,
0.1763344556093216,
-0.3162025809288025,
0.32520565390586853,
0.5608006715774536,
0.07473074644804001,
0.08038074523210526,
0.26977866888046265,
0.18152792751789093,
0.21284112334251404,
-0.035108864307403564,
-0.05375117063522339,
0.2698899507522583,
0.23745004832744598,
-0.36455461382865906,
0.21583408117294312,
0.1666087955236435,
0.19662989675998688,
-0.010068289935588837,
0.2543727159500122,
-0.15034779906272888,
0.2740083932876587,
-0.5025782585144043,
0.2648738622665405,
0.27127495408058167,
0.20192527770996094,
-0.24250200390815735,
0.13461948931217194,
-0.3733041286468506,
0.17644301056861877,
-0.24762408435344696,
0.26927417516708374,
0.363773912191391,
-0.48760128021240234,
-0.1214117556810379,
-0.527358889579773,
-0.2158638834953308,
-0.08068926632404327,
0.32597994804382324,
0.18513250350952148,
0.021651439368724823,
-0.11677226424217224,
0.24219956994056702,
0.3242601454257965,
-0.05004183202981949,
0.6149072051048279,
-0.1527658849954605,
0.07137956470251083,
-0.0858222022652626,
-0.4351768493652344,
-0.08971680700778961,
0.16071264445781708,
-0.21966049075126648,
0.20741817355155945,
-0.08452196419239044,
-0.38217106461524963,
-0.03140607476234436,
0.19613908231258392,
-0.1683107316493988,
0.46027299761772156,
0.27587223052978516,
-0.09481551498174667,
0.14077620208263397,
0.019949819892644882,
-0.00581202981993556,
-0.2708378732204437,
-0.17453786730766296,
0.027956970036029816,
-0.6094490885734558,
-0.1337055265903473,
-0.06845298409461975,
0.3605669140815735,
0.012115519493818283,
0.09540955722332001,
0.0868021622300148,
-0.093608058989048,
0.22808872163295746,
0.1541600078344345,
0.44920772314071655,
-0.00322737917304039,
0.607182502746582,
-0.12736567854881287,
0.12570618093013763,
-0.14646433293819427,
-0.2800045609474182,
-0.17747578024864197,
0.14299921691417694,
-0.5383463501930237,
-0.052086926996707916,
0.09608694911003113,
-0.22970297932624817,
0.28036871552467346,
-0.07943695783615112,
0.185634046792984,
-0.6217135787010193,
0.26869991421699524,
-0.3050214350223541,
0.07617375999689102,
0.1886168122291565,
-0.04756659269332886,
0.13873916864395142,
-0.15060019493103027,
0.33828508853912354,
0.155306875705719,
0.4130154252052307,
-0.33169934153556824,
-0.7142782211303711,
-0.040441691875457764,
0.09067296236753464,
-0.0037189647555351257,
0.3584856390953064,
-0.0006031841039657593,
-0.07530361413955688,
0.3249034285545349,
0.17882969975471497,
-0.0960165485739708,
-0.46915435791015625,
-0.10934779047966003,
-0.09721139818429947,
0.1579122692346573,
0.37736332416534424,
-0.02293841913342476,
0.2762838304042816,
-0.0012996091973036528,
0.014649532735347748,
0.4374241828918457,
0.055641256272792816,
-0.16527530550956726,
0.2267512083053589,
-0.23394489288330078,
-0.37913817167282104,
0.30407992005348206,
-0.06622273474931717,
-0.1390976756811142,
0.3959626257419586,
0.0697285383939743,
-0.02550649829208851,
-0.2382306456565857,
-0.008316563442349434,
-0.0660979226231575,
0.1560378223657608,
0.13027174770832062,
0.23189659416675568,
-0.26230764389038086,
0.2058728188276291,
-0.3505077660083771,
-0.226212278008461,
-0.0532601922750473,
0.11262011528015137,
0.4177105128765106,
-0.03323926031589508,
-0.10219716280698776,
0.02221592143177986,
0.17187991738319397,
0.002568911761045456,
0.09755370020866394,
0.3538062572479248,
-0.15176540613174438,
0.03860051557421684,
-0.03053358569741249,
-0.26037362217903137,
-0.20436838269233704,
0.11721762269735336,
-0.06657639145851135,
-0.06184414029121399,
0.4010004997253418,
0.18008694052696228,
-0.23906871676445007,
0.07861257344484329,
-0.04575689509510994,
-0.17490960657596588,
-0.006956348195672035,
0.10201163589954376,
-0.3647189736366272,
-0.2568778991699219,
-0.13745971024036407,
0.11535358428955078,
-0.8277051448822021,
0.01479681208729744,
-0.15473808348178864,
0.2829660475254059,
-0.08613631874322891,
-0.3054013252258301,
-0.09589666873216629,
0.14147748053073883,
0.029285842552781105,
0.2161426991224289,
-0.1751239001750946,
0.37610214948654175,
-0.0974125787615776,
0.15250878036022186,
-0.21832984685897827,
0.3186455965042114,
0.03383171558380127,
-0.1786680817604065,
0.14609360694885254,
-0.28511470556259155,
-0.14663255214691162,
0.2432989478111267,
0.16593188047409058,
-0.1597050279378891,
-0.07662296295166016,
0.2198808491230011,
0.20292456448078156,
0.17965476214885712,
-0.0944797694683075,
-0.10465781390666962,
0.30119359493255615,
0.0668242871761322,
0.24652253091335297,
-0.09825518727302551,
0.010600287467241287,
0.046045925468206406,
-0.35290083289146423,
-0.07801563292741776,
0.48210951685905457,
0.11903609335422516,
-0.03786931931972504,
0.02002396620810032,
-0.20588085055351257,
-0.17741256952285767,
0.2964673638343811,
0.2819262742996216,
0.5339245200157166,
0.07711436599493027,
0.1697365939617157,
0.2081507444381714,
0.10197629779577255,
-0.06834035366773605,
0.16766248643398285,
0.10936591029167175,
0.576978862285614,
0.3514205813407898,
0.10978326201438904,
-0.09700020402669907,
-0.1171187087893486,
0.027422692626714706,
0.36047786474227905,
0.41848790645599365,
-0.38697290420532227,
-0.0756634846329689,
-0.09720806032419205,
-0.11971508711576462,
-0.32956770062446594,
0.33069226145744324,
-0.12090738117694855,
-0.25416773557662964,
-0.11144240200519562,
0.06111188977956772,
-0.3849814832210541,
0.04288603365421295,
0.2994481325149536,
0.05973871052265167,
0.04126270115375519,
-0.01608896441757679,
0.031848445534706116,
-0.03999509662389755,
-0.037078142166137695,
-0.09253956377506256,
0.36462825536727905,
-0.14720851182937622,
0.18976490199565887,
0.256786972284317,
-0.28692173957824707,
-0.17057746648788452,
0.10487080365419388,
0.26744091510772705,
0.3569685220718384,
0.5967714190483093,
-0.09184741973876953,
0.3900044560432434,
0.13155756890773773,
-0.04119276627898216,
0.1388920098543167,
-0.06693685054779053,
-0.021814581006765366,
-0.14928142726421356,
0.14716382324695587,
0.18394847214221954,
-0.3534565567970276,
-0.5560477375984192,
-0.058566972613334656,
-0.43790310621261597,
0.101499542593956,
-0.15147554874420166,
0.03690805286169052,
0.07629907876253128,
0.4020797312259674,
-0.2050609290599823,
0.10263974964618683,
0.0924692377448082,
-0.07129118591547012,
-0.28510358929634094,
-0.14817975461483002,
-0.11888288706541061,
-0.05189964547753334,
-0.01140923798084259,
0.1653687208890915,
0.12481328845024109,
0.37369227409362793,
-0.5742104649543762,
-0.037167664617300034,
-0.29506823420524597,
-0.21038177609443665,
-0.28057268261909485,
-0.06426627188920975,
0.33693233132362366,
-0.05777492746710777,
0.006412407383322716,
0.06137534976005554,
0.01364731416106224,
0.02398598939180374,
0.04759296402335167,
0.28497493267059326,
0.2467295229434967,
0.2743972837924957,
0.02631485089659691,
0.7497295141220093,
-0.02383672446012497,
0.180414080619812,
0.08029916137456894,
-0.17573976516723633,
0.45122283697128296,
0.14867770671844482,
-0.10184108465909958,
0.6407608985900879,
0.0993366688489914,
-0.1402498185634613,
-0.10927200317382812,
0.042149245738983154,
-0.20272491872310638,
-0.13068705797195435,
-0.005087606608867645,
-0.19248217344284058,
-0.1457650363445282,
0.3520159423351288,
-0.3024119436740875,
0.3199042081832886,
0.1387394219636917,
0.05951957404613495,
-0.003127962350845337,
-0.20976004004478455,
-0.16487646102905273,
-0.12306943535804749,
-0.09784769266843796,
0.02295016497373581,
-0.05880327522754669,
-0.1668565273284912,
-0.3072408437728882,
0.043387435376644135,
-0.04851285740733147,
0.377621591091156,
-0.05635245144367218,
0.11679025739431381,
-0.008995912969112396,
-0.09572048485279083,
0.6420639753341675,
-0.300699919462204,
-0.10198019444942474,
-0.17174240946769714,
-0.27291440963745117,
-0.031083907932043076,
-0.20603224635124207,
0.02587156370282173,
-0.024333711713552475,
0.22242970764636993,
0.21765604615211487,
0.024713225662708282,
-0.35649386048316956,
0.3609442710876465,
-0.008644714951515198,
-0.1827370673418045,
-0.2881239950656891,
-0.04056002199649811,
-0.16853652894496918,
-0.2989383041858673,
-0.035491250455379486,
-0.10998135805130005,
0.13431625068187714,
-0.3868103623390198,
-0.08320575952529907,
0.07579367607831955,
0.15907907485961914,
0.13825610280036926,
-0.01894081011414528,
0.27103209495544434,
-0.20169182121753693,
0.11963893473148346,
0.05555882304906845,
0.24973663687705994,
0.24216915667057037,
0.19351127743721008,
0.11548183858394623,
-0.0036143958568573,
0.11059272289276123,
0.1066933199763298,
0.2411734163761139,
0.5215757489204407,
-0.20765995979309082,
-0.2883319556713104,
0.020866218954324722,
0.3867443799972534,
-0.2595761716365814,
0.4780765473842621,
0.3917366862297058,
0.17419686913490295,
-0.005110675934702158,
-0.34141722321510315,
0.044449128210544586,
0.13327233493328094,
-0.053830064833164215,
0.3611895442008972,
-0.24300526082515717,
-0.20356550812721252,
0.10210054367780685,
0.3517509400844574,
1.1873949766159058,
-0.2560913562774658,
0.013052672147750854,
0.1647394895553589,
-0.30053073167800903,
0.6263619661331177,
-0.625778079032898,
0.2518238127231598,
-0.26333335041999817,
-0.3297612965106964,
0.1888357549905777,
-0.2192295342683792,
-0.002086736261844635,
-0.015976399183273315,
0.16008496284484863,
0.3508228063583374,
0.1531193107366562,
0.1187235563993454,
-0.08072347193956375,
0.2111988067626953,
-0.19023500382900238,
-0.05563958361744881,
-0.19482015073299408,
0.047927454113960266,
-0.2505906820297241,
-0.015919972211122513,
-0.30737945437431335,
0.09169749915599823,
0.22449761629104614,
0.021404743194580078,
-0.3516777753829956,
0.25864627957344055,
-0.30154821276664734,
-0.11288443207740784,
-0.024361006915569305,
-0.1529855728149414,
0.1045917272567749,
0.5068589448928833,
0.2185697704553604,
0.33337265253067017,
-0.08062941581010818,
0.40471675992012024,
0.018613319844007492,
-0.17460957169532776,
0.1528114676475525,
0.12573722004890442,
0.407822847366333,
-0.23510423302650452,
-0.4662654399871826,
0.05772173032164574,
-0.22224077582359314,
0.03516865521669388,
-0.38480859994888306,
0.081668920814991,
0.16467244923114777,
-0.18538159132003784,
-0.32259640097618103,
0.21704980731010437,
-0.0774097591638565,
-0.001583382487297058,
0.0892888754606247,
-0.019572943449020386,
-0.2598622143268585,
0.18757811188697815,
-0.24570603668689728,
-0.35194796323776245,
-0.02870432659983635,
-0.15702331066131592,
0.37778788805007935,
-0.2217346578836441,
0.5133670568466187,
0.21774078905582428,
0.06077555567026138,
-0.1719810664653778,
-0.13404661417007446,
0.40282341837882996,
-0.42648348212242126,
0.08628234267234802,
-0.018437162041664124,
-0.2969436049461365,
0.04750003665685654,
-0.14471614360809326,
-0.04759429395198822,
0.2825298607349396,
0.05756788328289986,
-0.21744365990161896,
-0.3293708562850952,
0.13833662867546082,
-0.3302876055240631,
0.36616313457489014,
-0.19536885619163513,
0.28609195351600647,
-0.005943732336163521,
-0.08717446029186249,
-0.21075521409511566,
0.06397361308336258,
-0.42249080538749695,
0.2527047395706177,
-0.06691496819257736,
0.037265803664922714,
0.09308962523937225,
-0.1990072876214981,
-0.0715906023979187,
0.0023613926023244858,
-0.16823691129684448,
-0.11563581228256226,
0.12576355040073395,
0.14029264450073242,
-0.025738965719938278,
-0.34145694971084595,
-0.0205155648291111,
-0.5516072511672974,
-0.13324251770973206,
-0.18896348774433136,
0.19231480360031128,
-0.0932830274105072,
-0.12948743999004364,
0.0674365758895874,
-0.05566702410578728,
0.25432005524635315,
0.10819727182388306,
0.42037302255630493,
0.07664119452238083,
0.4934372305870056,
-0.10158327221870422,
0.2945255637168884,
0.29345738887786865,
-0.041786450892686844,
-0.42612433433532715,
-0.011092975735664368,
-0.024180784821510315,
0.23524150252342224,
0.10725151002407074,
-0.2775578498840332,
-0.16204608976840973,
-0.053276777267456055,
0.2861033082008362,
0.4138427972793579,
-0.23306837677955627,
0.146237313747406,
0.34753748774528503,
0.13508032262325287,
0.07833971083164215,
0.22168685495853424,
0.33784645795822144,
0.003028303850442171,
-0.0667118951678276,
0.005376338958740234,
0.08287031948566437,
-0.11304350197315216,
-0.13126204907894135,
0.2187248170375824,
-0.27842092514038086,
-0.5897895097732544,
0.00042368099093437195,
0.014626946300268173,
-0.056450262665748596,
-0.12236489355564117,
-0.0013479441404342651,
0.12530817091464996,
0.14009372889995575,
0.7140223383903503,
0.11960773169994354,
0.18026210367679596,
0.32365965843200684,
0.21127372980117798,
-0.015298672020435333,
-0.45878127217292786,
-0.2097761183977127,
0.5016226768493652,
-0.2853482961654663,
0.23913869261741638,
-0.2798146605491638,
0.022403918206691742,
0.22009502351284027,
-0.3724938631057739,
-0.03787325322628021,
0.1936887949705124,
-0.2706792652606964,
0.038121797144412994,
-0.29689574241638184,
-0.11415412276983261,
-0.04193955659866333,
0.230354905128479,
0.2111303061246872,
-0.276108980178833,
0.20923291146755219,
0.13155284523963928,
-0.41753292083740234,
-0.01957881636917591,
0.28620675206184387,
0.36564937233924866,
-0.03545915335416794,
-0.404375821352005,
0.15768000483512878,
0.11825551837682724,
-0.07216836512088776,
-0.11964535713195801,
0.29820477962493896,
0.47275474667549133,
0.4340927302837372,
-0.22080668807029724,
0.05388457700610161,
0.47984087467193604,
0.047490693628787994,
-0.2682685852050781,
0.04548002406954765,
0.46884146332740784,
0.5673755407333374,
0.11229319870471954,
0.11769168078899384,
-0.05809282138943672,
-0.055296484380960464,
0.34776026010513306,
0.3328334093093872,
-0.3607565462589264,
-0.05689644068479538,
0.097407765686512,
-0.22215485572814941,
-0.16654007136821747,
0.04301707074046135,
-0.34958335757255554,
-0.06010240316390991,
0.47086891531944275,
-0.06964875012636185,
0.2441125214099884,
0.0441695936024189,
0.023393332958221436,
-0.19039396941661835,
0.45347529649734497,
0.20711052417755127,
0.292917400598526,
-0.4905242323875427,
-0.4067947268486023,
-0.30933231115341187,
0.04232364147901535,
-0.09486755728721619,
0.24090924859046936,
0.23384852707386017,
0.2883282005786896,
-0.10818088799715042,
-0.32197409868240356,
-0.27338141202926636,
-0.06440094858407974,
0.09485878795385361,
0.3143032193183899,
-0.38965904712677,
-0.42241427302360535,
-0.0865737795829773,
0.09856484085321426,
0.3361666202545166,
-0.2893314063549042,
0.12364637851715088,
-0.21641206741333008,
-0.20058193802833557,
0.2649870812892914,
0.21116748452186584,
-0.043314892798662186,
-0.07020630687475204,
0.30581146478652954,
0.10352607071399689,
0.3858698010444641,
0.10868262499570847,
-0.29201656579971313,
-0.4035603106021881,
-0.4986024498939514,
-0.21533772349357605,
-0.056619398295879364,
-0.0025109685957431793,
0.24292710423469543,
-0.3103574812412262,
0.270866334438324,
-0.2856939435005188,
-0.14194855093955994,
-0.032260917127132416,
0.30050626397132874,
-0.016372621059417725,
-0.19375090301036835,
0.20532333850860596,
0.19772933423519135,
0.24480412900447845,
0.2973262667655945,
-0.06112440675497055,
-0.006612565368413925,
-0.3463704586029053,
-0.1477833092212677,
0.42900025844573975,
0.0910186618566513,
-0.3435969352722168,
-0.2823697328567505,
0.08761527389287949,
0.17529022693634033,
-0.0303731020539999,
-0.47166335582733154,
-0.022052429616451263,
0.13011808693408966,
0.14728863537311554,
-0.2639214098453522,
0.05785626918077469,
-0.35397693514823914,
0.1769774705171585,
0.06097136810421944,
0.1225929707288742,
-0.01870589330792427,
-0.2262902408838272,
0.15499339997768402,
-0.08807773888111115
] |
https://github.com/huggingface/datasets/issues/4525 | Out of memory error on workers while running Beam+Dataflow | Thanks a lot for the hint, @seirasto.
I have one question: what runner did you use? Direct, Apache Flink/Nemo/Samza/Spark, Google Dataflow...? Thank you. | ## Describe the bug
While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files).
Previously we ran the preprocessing for the "dev" config (only dev files) with success.
Train data files are larger than dev ones and apparently workers run out of memory while processing them.
Any help/hint is welcome!
Error message:
```
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
Info from the Diagnostics tab:
```
Out of memory: Killed process 1882 (python) total-vm:6041764kB, anon-rss:3290928kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:9520kB oom_score_adj:900
The worker VM had to shut down one or more processes due to lack of memory.
```
## Additional information
### Stack trace
```
Traceback (most recent call last):
File "/home/albert_huggingface_co/natural_questions/venv/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/run_beam.py", line 127, in run
builder.download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 1389, in _download_and_prepare
pipeline_results.wait_until_finish()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/apache_beam/runners/dataflow/dataflow_runner.py", line 1667, in wait_until_finish
raise DataflowRuntimeException(
apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
### Logs
```
Error message from worker: Data channel closed, unable to receive additional data from SDK sdk-0-0
Workflow failed. Causes: S30:train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/Read+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/GroupByWindow+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/FlatMap(restore_timestamps)+train/ReadAllFromText/ReadAllFiles/Reshard/RemoveRandomKeys+train/ReadAllFromText/ReadAllFiles/ReadRange+train/Map(_parse_example)+train/Encode+train/Count N. Examples+train/Get values/Values+train/Save to parquet/Write/WriteImpl/WindowInto(WindowIntoFn)+train/Save to parquet/Write/WriteImpl/WriteBundles+train/Save to parquet/Write/WriteImpl/Pair+train/Save to parquet/Write/WriteImpl/GroupByKey/Write failed., The job failed because a work item has failed 4 times. Look in previous log entries for the cause of each one of the 4 failures. For more information, see https://cloud.google.com/dataflow/docs/guides/common-errors. The work item was attempted on these workers: beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: Data channel closed, unable to receive additional data from SDK sdk-0-0, beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-bwsj Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-5052 Root cause: The worker lost contact with the service.
```
| 23 | Out of memory error on workers while running Beam+Dataflow
## Describe the bug
While running the preprocessing of the natural_question dataset (see PR #4368), there is an issue for the "default" config (train+dev files).
Previously we ran the preprocessing for the "dev" config (only dev files) with success.
Train data files are larger than dev ones and apparently workers run out of memory while processing them.
Any help/hint is welcome!
Error message:
```
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
Info from the Diagnostics tab:
```
Out of memory: Killed process 1882 (python) total-vm:6041764kB, anon-rss:3290928kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:9520kB oom_score_adj:900
The worker VM had to shut down one or more processes due to lack of memory.
```
## Additional information
### Stack trace
```
Traceback (most recent call last):
File "/home/albert_huggingface_co/natural_questions/venv/bin/datasets-cli", line 8, in <module>
sys.exit(main())
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/datasets_cli.py", line 39, in main
service.run()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/commands/run_beam.py", line 127, in run
builder.download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 704, in download_and_prepare
self._download_and_prepare(
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/datasets/builder.py", line 1389, in _download_and_prepare
pipeline_results.wait_until_finish()
File "/home/albert_huggingface_co/natural_questions/venv/lib/python3.9/site-packages/apache_beam/runners/dataflow/dataflow_runner.py", line 1667, in wait_until_finish
raise DataflowRuntimeException(
apache_beam.runners.dataflow.dataflow_runner.DataflowRuntimeException: Dataflow pipeline failed. State: FAILED, Error:
Data channel closed, unable to receive additional data from SDK sdk-0-0
```
### Logs
```
Error message from worker: Data channel closed, unable to receive additional data from SDK sdk-0-0
Workflow failed. Causes: S30:train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/Read+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/GroupByKey/GroupByWindow+train/ReadAllFromText/ReadAllFiles/Reshard/ReshufflePerKey/FlatMap(restore_timestamps)+train/ReadAllFromText/ReadAllFiles/Reshard/RemoveRandomKeys+train/ReadAllFromText/ReadAllFiles/ReadRange+train/Map(_parse_example)+train/Encode+train/Count N. Examples+train/Get values/Values+train/Save to parquet/Write/WriteImpl/WindowInto(WindowIntoFn)+train/Save to parquet/Write/WriteImpl/WriteBundles+train/Save to parquet/Write/WriteImpl/Pair+train/Save to parquet/Write/WriteImpl/GroupByKey/Write failed., The job failed because a work item has failed 4 times. Look in previous log entries for the cause of each one of the 4 failures. For more information, see https://cloud.google.com/dataflow/docs/guides/common-errors. The work item was attempted on these workers: beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: Data channel closed, unable to receive additional data from SDK sdk-0-0, beamapp-alberthuggingface-06170554-5p23-harness-t4v9 Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-bwsj Root cause: The worker lost contact with the service., beamapp-alberthuggingface-06170554-5p23-harness-5052 Root cause: The worker lost contact with the service.
```
Thanks a lot for the hint, @seirasto.
I have one question: what runner did you use? Direct, Apache Flink/Nemo/Samza/Spark, Google Dataflow...? Thank you. | [
-0.3179207444190979,
-0.12448765337467194,
-0.04219004511833191,
0.325805127620697,
0.3414510488510132,
-0.14221429824829102,
-0.09138506650924683,
0.4362598657608032,
-0.1771542876958847,
0.3672865331172943,
0.2916374206542969,
0.17966338992118835,
-0.20729193091392517,
0.29709017276763916,
0.017125552520155907,
-0.26205524802207947,
-0.06626906245946884,
-0.005221329629421234,
-0.35569286346435547,
-0.09661632776260376,
-0.29713374376296997,
-0.03457030653953552,
-0.11048303544521332,
-0.07314218580722809,
-0.11726446449756622,
0.05389855057001114,
0.107256218791008,
0.4139477610588074,
-0.07015205174684525,
-0.22861814498901367,
-0.06279042363166809,
-0.11586974561214447,
0.07130087167024612,
0.3142407536506653,
-0.00012188479740871117,
-0.06275603175163269,
0.43871384859085083,
0.06228065490722656,
-0.2059805542230606,
-0.053728193044662476,
-0.032909903675317764,
-0.3655340373516083,
-0.12045765668153763,
0.0588950589299202,
0.014400869607925415,
-0.5790768265724182,
0.1763344556093216,
-0.3162025809288025,
0.32520565390586853,
0.5608006715774536,
0.07473074644804001,
0.08038074523210526,
0.26977866888046265,
0.18152792751789093,
0.21284112334251404,
-0.035108864307403564,
-0.05375117063522339,
0.2698899507522583,
0.23745004832744598,
-0.36455461382865906,
0.21583408117294312,
0.1666087955236435,
0.19662989675998688,
-0.010068289935588837,
0.2543727159500122,
-0.15034779906272888,
0.2740083932876587,
-0.5025782585144043,
0.2648738622665405,
0.27127495408058167,
0.20192527770996094,
-0.24250200390815735,
0.13461948931217194,
-0.3733041286468506,
0.17644301056861877,
-0.24762408435344696,
0.26927417516708374,
0.363773912191391,
-0.48760128021240234,
-0.1214117556810379,
-0.527358889579773,
-0.2158638834953308,
-0.08068926632404327,
0.32597994804382324,
0.18513250350952148,
0.021651439368724823,
-0.11677226424217224,
0.24219956994056702,
0.3242601454257965,
-0.05004183202981949,
0.6149072051048279,
-0.1527658849954605,
0.07137956470251083,
-0.0858222022652626,
-0.4351768493652344,
-0.08971680700778961,
0.16071264445781708,
-0.21966049075126648,
0.20741817355155945,
-0.08452196419239044,
-0.38217106461524963,
-0.03140607476234436,
0.19613908231258392,
-0.1683107316493988,
0.46027299761772156,
0.27587223052978516,
-0.09481551498174667,
0.14077620208263397,
0.019949819892644882,
-0.00581202981993556,
-0.2708378732204437,
-0.17453786730766296,
0.027956970036029816,
-0.6094490885734558,
-0.1337055265903473,
-0.06845298409461975,
0.3605669140815735,
0.012115519493818283,
0.09540955722332001,
0.0868021622300148,
-0.093608058989048,
0.22808872163295746,
0.1541600078344345,
0.44920772314071655,
-0.00322737917304039,
0.607182502746582,
-0.12736567854881287,
0.12570618093013763,
-0.14646433293819427,
-0.2800045609474182,
-0.17747578024864197,
0.14299921691417694,
-0.5383463501930237,
-0.052086926996707916,
0.09608694911003113,
-0.22970297932624817,
0.28036871552467346,
-0.07943695783615112,
0.185634046792984,
-0.6217135787010193,
0.26869991421699524,
-0.3050214350223541,
0.07617375999689102,
0.1886168122291565,
-0.04756659269332886,
0.13873916864395142,
-0.15060019493103027,
0.33828508853912354,
0.155306875705719,
0.4130154252052307,
-0.33169934153556824,
-0.7142782211303711,
-0.040441691875457764,
0.09067296236753464,
-0.0037189647555351257,
0.3584856390953064,
-0.0006031841039657593,
-0.07530361413955688,
0.3249034285545349,
0.17882969975471497,
-0.0960165485739708,
-0.46915435791015625,
-0.10934779047966003,
-0.09721139818429947,
0.1579122692346573,
0.37736332416534424,
-0.02293841913342476,
0.2762838304042816,
-0.0012996091973036528,
0.014649532735347748,
0.4374241828918457,
0.055641256272792816,
-0.16527530550956726,
0.2267512083053589,
-0.23394489288330078,
-0.37913817167282104,
0.30407992005348206,
-0.06622273474931717,
-0.1390976756811142,
0.3959626257419586,
0.0697285383939743,
-0.02550649829208851,
-0.2382306456565857,
-0.008316563442349434,
-0.0660979226231575,
0.1560378223657608,
0.13027174770832062,
0.23189659416675568,
-0.26230764389038086,
0.2058728188276291,
-0.3505077660083771,
-0.226212278008461,
-0.0532601922750473,
0.11262011528015137,
0.4177105128765106,
-0.03323926031589508,
-0.10219716280698776,
0.02221592143177986,
0.17187991738319397,
0.002568911761045456,
0.09755370020866394,
0.3538062572479248,
-0.15176540613174438,
0.03860051557421684,
-0.03053358569741249,
-0.26037362217903137,
-0.20436838269233704,
0.11721762269735336,
-0.06657639145851135,
-0.06184414029121399,
0.4010004997253418,
0.18008694052696228,
-0.23906871676445007,
0.07861257344484329,
-0.04575689509510994,
-0.17490960657596588,
-0.006956348195672035,
0.10201163589954376,
-0.3647189736366272,
-0.2568778991699219,
-0.13745971024036407,
0.11535358428955078,
-0.8277051448822021,
0.01479681208729744,
-0.15473808348178864,
0.2829660475254059,
-0.08613631874322891,
-0.3054013252258301,
-0.09589666873216629,
0.14147748053073883,
0.029285842552781105,
0.2161426991224289,
-0.1751239001750946,
0.37610214948654175,
-0.0974125787615776,
0.15250878036022186,
-0.21832984685897827,
0.3186455965042114,
0.03383171558380127,
-0.1786680817604065,
0.14609360694885254,
-0.28511470556259155,
-0.14663255214691162,
0.2432989478111267,
0.16593188047409058,
-0.1597050279378891,
-0.07662296295166016,
0.2198808491230011,
0.20292456448078156,
0.17965476214885712,
-0.0944797694683075,
-0.10465781390666962,
0.30119359493255615,
0.0668242871761322,
0.24652253091335297,
-0.09825518727302551,
0.010600287467241287,
0.046045925468206406,
-0.35290083289146423,
-0.07801563292741776,
0.48210951685905457,
0.11903609335422516,
-0.03786931931972504,
0.02002396620810032,
-0.20588085055351257,
-0.17741256952285767,
0.2964673638343811,
0.2819262742996216,
0.5339245200157166,
0.07711436599493027,
0.1697365939617157,
0.2081507444381714,
0.10197629779577255,
-0.06834035366773605,
0.16766248643398285,
0.10936591029167175,
0.576978862285614,
0.3514205813407898,
0.10978326201438904,
-0.09700020402669907,
-0.1171187087893486,
0.027422692626714706,
0.36047786474227905,
0.41848790645599365,
-0.38697290420532227,
-0.0756634846329689,
-0.09720806032419205,
-0.11971508711576462,
-0.32956770062446594,
0.33069226145744324,
-0.12090738117694855,
-0.25416773557662964,
-0.11144240200519562,
0.06111188977956772,
-0.3849814832210541,
0.04288603365421295,
0.2994481325149536,
0.05973871052265167,
0.04126270115375519,
-0.01608896441757679,
0.031848445534706116,
-0.03999509662389755,
-0.037078142166137695,
-0.09253956377506256,
0.36462825536727905,
-0.14720851182937622,
0.18976490199565887,
0.256786972284317,
-0.28692173957824707,
-0.17057746648788452,
0.10487080365419388,
0.26744091510772705,
0.3569685220718384,
0.5967714190483093,
-0.09184741973876953,
0.3900044560432434,
0.13155756890773773,
-0.04119276627898216,
0.1388920098543167,
-0.06693685054779053,
-0.021814581006765366,
-0.14928142726421356,
0.14716382324695587,
0.18394847214221954,
-0.3534565567970276,
-0.5560477375984192,
-0.058566972613334656,
-0.43790310621261597,
0.101499542593956,
-0.15147554874420166,
0.03690805286169052,
0.07629907876253128,
0.4020797312259674,
-0.2050609290599823,
0.10263974964618683,
0.0924692377448082,
-0.07129118591547012,
-0.28510358929634094,
-0.14817975461483002,
-0.11888288706541061,
-0.05189964547753334,
-0.01140923798084259,
0.1653687208890915,
0.12481328845024109,
0.37369227409362793,
-0.5742104649543762,
-0.037167664617300034,
-0.29506823420524597,
-0.21038177609443665,
-0.28057268261909485,
-0.06426627188920975,
0.33693233132362366,
-0.05777492746710777,
0.006412407383322716,
0.06137534976005554,
0.01364731416106224,
0.02398598939180374,
0.04759296402335167,
0.28497493267059326,
0.2467295229434967,
0.2743972837924957,
0.02631485089659691,
0.7497295141220093,
-0.02383672446012497,
0.180414080619812,
0.08029916137456894,
-0.17573976516723633,
0.45122283697128296,
0.14867770671844482,
-0.10184108465909958,
0.6407608985900879,
0.0993366688489914,
-0.1402498185634613,
-0.10927200317382812,
0.042149245738983154,
-0.20272491872310638,
-0.13068705797195435,
-0.005087606608867645,
-0.19248217344284058,
-0.1457650363445282,
0.3520159423351288,
-0.3024119436740875,
0.3199042081832886,
0.1387394219636917,
0.05951957404613495,
-0.003127962350845337,
-0.20976004004478455,
-0.16487646102905273,
-0.12306943535804749,
-0.09784769266843796,
0.02295016497373581,
-0.05880327522754669,
-0.1668565273284912,
-0.3072408437728882,
0.043387435376644135,
-0.04851285740733147,
0.377621591091156,
-0.05635245144367218,
0.11679025739431381,
-0.008995912969112396,
-0.09572048485279083,
0.6420639753341675,
-0.300699919462204,
-0.10198019444942474,
-0.17174240946769714,
-0.27291440963745117,
-0.031083907932043076,
-0.20603224635124207,
0.02587156370282173,
-0.024333711713552475,
0.22242970764636993,
0.21765604615211487,
0.024713225662708282,
-0.35649386048316956,
0.3609442710876465,
-0.008644714951515198,
-0.1827370673418045,
-0.2881239950656891,
-0.04056002199649811,
-0.16853652894496918,
-0.2989383041858673,
-0.035491250455379486,
-0.10998135805130005,
0.13431625068187714,
-0.3868103623390198,
-0.08320575952529907,
0.07579367607831955,
0.15907907485961914,
0.13825610280036926,
-0.01894081011414528,
0.27103209495544434,
-0.20169182121753693,
0.11963893473148346,
0.05555882304906845,
0.24973663687705994,
0.24216915667057037,
0.19351127743721008,
0.11548183858394623,
-0.0036143958568573,
0.11059272289276123,
0.1066933199763298,
0.2411734163761139,
0.5215757489204407,
-0.20765995979309082,
-0.2883319556713104,
0.020866218954324722,
0.3867443799972534,
-0.2595761716365814,
0.4780765473842621,
0.3917366862297058,
0.17419686913490295,
-0.005110675934702158,
-0.34141722321510315,
0.044449128210544586,
0.13327233493328094,
-0.053830064833164215,
0.3611895442008972,
-0.24300526082515717,
-0.20356550812721252,
0.10210054367780685,
0.3517509400844574,
1.1873949766159058,
-0.2560913562774658,
0.013052672147750854,
0.1647394895553589,
-0.30053073167800903,
0.6263619661331177,
-0.625778079032898,
0.2518238127231598,
-0.26333335041999817,
-0.3297612965106964,
0.1888357549905777,
-0.2192295342683792,
-0.002086736261844635,
-0.015976399183273315,
0.16008496284484863,
0.3508228063583374,
0.1531193107366562,
0.1187235563993454,
-0.08072347193956375,
0.2111988067626953,
-0.19023500382900238,
-0.05563958361744881,
-0.19482015073299408,
0.047927454113960266,
-0.2505906820297241,
-0.015919972211122513,
-0.30737945437431335,
0.09169749915599823,
0.22449761629104614,
0.021404743194580078,
-0.3516777753829956,
0.25864627957344055,
-0.30154821276664734,
-0.11288443207740784,
-0.024361006915569305,
-0.1529855728149414,
0.1045917272567749,
0.5068589448928833,
0.2185697704553604,
0.33337265253067017,
-0.08062941581010818,
0.40471675992012024,
0.018613319844007492,
-0.17460957169532776,
0.1528114676475525,
0.12573722004890442,
0.407822847366333,
-0.23510423302650452,
-0.4662654399871826,
0.05772173032164574,
-0.22224077582359314,
0.03516865521669388,
-0.38480859994888306,
0.081668920814991,
0.16467244923114777,
-0.18538159132003784,
-0.32259640097618103,
0.21704980731010437,
-0.0774097591638565,
-0.001583382487297058,
0.0892888754606247,
-0.019572943449020386,
-0.2598622143268585,
0.18757811188697815,
-0.24570603668689728,
-0.35194796323776245,
-0.02870432659983635,
-0.15702331066131592,
0.37778788805007935,
-0.2217346578836441,
0.5133670568466187,
0.21774078905582428,
0.06077555567026138,
-0.1719810664653778,
-0.13404661417007446,
0.40282341837882996,
-0.42648348212242126,
0.08628234267234802,
-0.018437162041664124,
-0.2969436049461365,
0.04750003665685654,
-0.14471614360809326,
-0.04759429395198822,
0.2825298607349396,
0.05756788328289986,
-0.21744365990161896,
-0.3293708562850952,
0.13833662867546082,
-0.3302876055240631,
0.36616313457489014,
-0.19536885619163513,
0.28609195351600647,
-0.005943732336163521,
-0.08717446029186249,
-0.21075521409511566,
0.06397361308336258,
-0.42249080538749695,
0.2527047395706177,
-0.06691496819257736,
0.037265803664922714,
0.09308962523937225,
-0.1990072876214981,
-0.0715906023979187,
0.0023613926023244858,
-0.16823691129684448,
-0.11563581228256226,
0.12576355040073395,
0.14029264450073242,
-0.025738965719938278,
-0.34145694971084595,
-0.0205155648291111,
-0.5516072511672974,
-0.13324251770973206,
-0.18896348774433136,
0.19231480360031128,
-0.0932830274105072,
-0.12948743999004364,
0.0674365758895874,
-0.05566702410578728,
0.25432005524635315,
0.10819727182388306,
0.42037302255630493,
0.07664119452238083,
0.4934372305870056,
-0.10158327221870422,
0.2945255637168884,
0.29345738887786865,
-0.041786450892686844,
-0.42612433433532715,
-0.011092975735664368,
-0.024180784821510315,
0.23524150252342224,
0.10725151002407074,
-0.2775578498840332,
-0.16204608976840973,
-0.053276777267456055,
0.2861033082008362,
0.4138427972793579,
-0.23306837677955627,
0.146237313747406,
0.34753748774528503,
0.13508032262325287,
0.07833971083164215,
0.22168685495853424,
0.33784645795822144,
0.003028303850442171,
-0.0667118951678276,
0.005376338958740234,
0.08287031948566437,
-0.11304350197315216,
-0.13126204907894135,
0.2187248170375824,
-0.27842092514038086,
-0.5897895097732544,
0.00042368099093437195,
0.014626946300268173,
-0.056450262665748596,
-0.12236489355564117,
-0.0013479441404342651,
0.12530817091464996,
0.14009372889995575,
0.7140223383903503,
0.11960773169994354,
0.18026210367679596,
0.32365965843200684,
0.21127372980117798,
-0.015298672020435333,
-0.45878127217292786,
-0.2097761183977127,
0.5016226768493652,
-0.2853482961654663,
0.23913869261741638,
-0.2798146605491638,
0.022403918206691742,
0.22009502351284027,
-0.3724938631057739,
-0.03787325322628021,
0.1936887949705124,
-0.2706792652606964,
0.038121797144412994,
-0.29689574241638184,
-0.11415412276983261,
-0.04193955659866333,
0.230354905128479,
0.2111303061246872,
-0.276108980178833,
0.20923291146755219,
0.13155284523963928,
-0.41753292083740234,
-0.01957881636917591,
0.28620675206184387,
0.36564937233924866,
-0.03545915335416794,
-0.404375821352005,
0.15768000483512878,
0.11825551837682724,
-0.07216836512088776,
-0.11964535713195801,
0.29820477962493896,
0.47275474667549133,
0.4340927302837372,
-0.22080668807029724,
0.05388457700610161,
0.47984087467193604,
0.047490693628787994,
-0.2682685852050781,
0.04548002406954765,
0.46884146332740784,
0.5673755407333374,
0.11229319870471954,
0.11769168078899384,
-0.05809282138943672,
-0.055296484380960464,
0.34776026010513306,
0.3328334093093872,
-0.3607565462589264,
-0.05689644068479538,
0.097407765686512,
-0.22215485572814941,
-0.16654007136821747,
0.04301707074046135,
-0.34958335757255554,
-0.06010240316390991,
0.47086891531944275,
-0.06964875012636185,
0.2441125214099884,
0.0441695936024189,
0.023393332958221436,
-0.19039396941661835,
0.45347529649734497,
0.20711052417755127,
0.292917400598526,
-0.4905242323875427,
-0.4067947268486023,
-0.30933231115341187,
0.04232364147901535,
-0.09486755728721619,
0.24090924859046936,
0.23384852707386017,
0.2883282005786896,
-0.10818088799715042,
-0.32197409868240356,
-0.27338141202926636,
-0.06440094858407974,
0.09485878795385361,
0.3143032193183899,
-0.38965904712677,
-0.42241427302360535,
-0.0865737795829773,
0.09856484085321426,
0.3361666202545166,
-0.2893314063549042,
0.12364637851715088,
-0.21641206741333008,
-0.20058193802833557,
0.2649870812892914,
0.21116748452186584,
-0.043314892798662186,
-0.07020630687475204,
0.30581146478652954,
0.10352607071399689,
0.3858698010444641,
0.10868262499570847,
-0.29201656579971313,
-0.4035603106021881,
-0.4986024498939514,
-0.21533772349357605,
-0.056619398295879364,
-0.0025109685957431793,
0.24292710423469543,
-0.3103574812412262,
0.270866334438324,
-0.2856939435005188,
-0.14194855093955994,
-0.032260917127132416,
0.30050626397132874,
-0.016372621059417725,
-0.19375090301036835,
0.20532333850860596,
0.19772933423519135,
0.24480412900447845,
0.2973262667655945,
-0.06112440675497055,
-0.006612565368413925,
-0.3463704586029053,
-0.1477833092212677,
0.42900025844573975,
0.0910186618566513,
-0.3435969352722168,
-0.2823697328567505,
0.08761527389287949,
0.17529022693634033,
-0.0303731020539999,
-0.47166335582733154,
-0.022052429616451263,
0.13011808693408966,
0.14728863537311554,
-0.2639214098453522,
0.05785626918077469,
-0.35397693514823914,
0.1769774705171585,
0.06097136810421944,
0.1225929707288742,
-0.01870589330792427,
-0.2262902408838272,
0.15499339997768402,
-0.08807773888111115
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.